Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spec 2023/12/11 #28

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion asyncapi.yml
Original file line number Diff line number Diff line change
@@ -118,13 +118,15 @@ components:
schemas:
RealtimeBaseMessage:
type: object
x-fern-sdk-group-name: realtime
required:
- message_type
properties:
message_type:
description: Describes the type of the message
$ref: "#/components/schemas/MessageType"
RealtimeMessage:
x-fern-sdk-group-name: realtime
oneOf:
- $ref: "#/components/schemas/SessionBegins"
- $ref: "#/components/schemas/PartialTranscript"
@@ -133,6 +135,7 @@ components:
- $ref: "#/components/schemas/RealtimeError"
RealtimeError:
type: object
x-fern-sdk-group-name: realtime
additionalProperties: false
required: [error]
properties:
@@ -142,17 +145,21 @@ components:
- { "error": "Client sent audio too fast" }
MessageType:
type: string
x-fern-sdk-group-name: realtime
enum:
[SessionBegins, PartialTranscript, FinalTranscript, SessionTerminated]
RealtimeTranscriptType:
type: string
x-fern-sdk-group-name: realtime
enum: [PartialTranscript, FinalTranscript]
RealtimeTranscript:
x-fern-sdk-group-name: realtime
oneOf:
- $ref: "#/components/schemas/PartialTranscript"
- $ref: "#/components/schemas/FinalTranscript"
discriminator: "message_type"
SessionBegins:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
@@ -182,6 +189,7 @@ components:
message_type: "SessionBegins",
}
SessionTerminated:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
@@ -197,6 +205,7 @@ components:
- { message_type: "SessionTerminated" }
RealtimeBaseTranscript:
type: object
x-fern-sdk-group-name: realtime
required:
- audio_start
- audio_end
@@ -234,6 +243,7 @@ components:
x-fern-type: datetime
additionalProperties: false
PartialTranscript:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseTranscript"
- type: object
@@ -276,8 +286,8 @@ components:
},
],
}

FinalTranscript:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseTranscript"
- type: object
@@ -364,6 +374,7 @@ components:
}
Word:
type: object
x-fern-sdk-group-name: realtime
required:
- start
- end
@@ -398,6 +409,7 @@ components:
]
AudioData:
type: object
x-fern-sdk-group-name: realtime
required:
- audio_data
properties:
@@ -408,6 +420,7 @@ components:
examples:
- { audio_data: "Je8w9JH1hfh1+7EAeQYJCC0JbQkxB70Apv0J/GT5APjA9jX1v/..." }
TerminateSession:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "assemblyai",
"version": "0.15.0-rc74"
}
"version": "0.16.1"
}
14 changes: 7 additions & 7 deletions fern/generators.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
default-group: local
openapi: ../openapi.yml
async-api: ../asyncapi.yml
openapi: ../openapi.yml
groups:
local:
generators:
local:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.7.4-rc0
output:
location: npm
url: npm.buildwithfern.com
package-name: '@assemblyai-fern/api'
package-name: "@assemblyai-fern/api"
config:
namespaceExport: AssemblyAI
outputSourceFiles: true
publish:
generators:
- name: fernapi/fern-java-sdk
version: 0.5.14
version: 0.5.8-1-g8f19766
output:
location: maven
coordinate: com.assemblyai:assemblyai-java
@@ -25,8 +25,8 @@ groups:
github:
repository: AssemblyAI/assemblyai-java-sdk
mode: pull-request
config:
config:
enable-forward-compatible-enums: true
client-class-name: AssemblyAI
custom-dependencies:
custom-dependencies:
- "implementation javax.websocket:javax.websocket-api:1.1"
Loading