Skip to content

Commit

Permalink
Project import generated by Copybara. (#30)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 079849e8af839a1de663411ea0e45c22ca9af90c

Co-authored-by: AssemblyAI <[email protected]>
  • Loading branch information
Swimburger and AssemblyAI committed Dec 11, 2023
1 parent c0a36ef commit 93b27d2
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 21 deletions.
15 changes: 14 additions & 1 deletion asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -133,6 +135,7 @@ components:
- $ref: "#/components/schemas/RealtimeError"
RealtimeError:
type: object
x-fern-sdk-group-name: realtime
additionalProperties: false
required: [error]
properties:
Expand All @@ -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
Expand Down Expand Up @@ -182,6 +189,7 @@ components:
message_type: "SessionBegins",
}
SessionTerminated:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
Expand All @@ -197,6 +205,7 @@ components:
- { message_type: "SessionTerminated" }
RealtimeBaseTranscript:
type: object
x-fern-sdk-group-name: realtime
required:
- audio_start
- audio_end
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -276,8 +286,8 @@ components:
},
],
}

FinalTranscript:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseTranscript"
- type: object
Expand Down Expand Up @@ -364,6 +374,7 @@ components:
}
Word:
type: object
x-fern-sdk-group-name: realtime
required:
- start
- end
Expand Down Expand Up @@ -398,6 +409,7 @@ components:
]
AudioData:
type: object
x-fern-sdk-group-name: realtime
required:
- audio_data
properties:
Expand All @@ -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
Expand Down
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.3"
}
19 changes: 4 additions & 15 deletions fern/generators.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
default-group: local
openapi: ../openapi.yml
async-api: ../asyncapi.yml
openapi: ../openapi.yml
groups:
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'
config:
namespaceExport: AssemblyAI
outputSourceFiles: true
publish:
generators:
- name: fernapi/fern-java-sdk
version: 0.5.14
version: 0.5.18
output:
location: maven
coordinate: com.assemblyai:assemblyai-java
Expand All @@ -25,8 +14,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

0 comments on commit 93b27d2

Please sign in to comment.