Skip to content

Commit 9a8ef6c

Browse files
AssemblyAISwimburger
AssemblyAI
authored andcommitted
Project import generated by Copybara.
GitOrigin-RevId: 8822072d34b2d302a3db9b76d06c0e7e7525a3e3
1 parent c61fc08 commit 9a8ef6c

File tree

6 files changed

+135
-134
lines changed

6 files changed

+135
-134
lines changed

Diff for: .spectral.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
extends: ["spectral:oas", "spectral:asyncapi"]
22
overrides:
33
- files:
4-
- "openapi.yml#/components/schemas/TranscriptParams/example"
5-
- "openapi.yml#/components/schemas/TranscriptList/example"
6-
- "openapi.yml#/components/schemas/LemurSummaryResponse/example"
7-
- "openapi.yml#/components/schemas/LemurSummaryParams/example"
8-
- "openapi.yml#/components/schemas/LemurQuestionAnswerResponse/example"
9-
- "openapi.yml#/components/schemas/LemurQuestionAnswerParams/example"
10-
- "openapi.yml#/components/schemas/LemurActionItemsResponse/example"
11-
- "openapi.yml#/components/schemas/LemurActionItemsParams/example"
12-
- "openapi.yml#/components/schemas/LemurTaskParams/example"
13-
- "openapi.yml#/components/schemas/LemurTaskResponse/example"
14-
- "asyncapi.yml#/components/schemas/PartialTranscript/examples"
15-
- "asyncapi.yml#/components/schemas/FinalTranscript/examples"
4+
- "openapi.yml"
5+
- "asyncapi.yml"
166
rules:
177
oas3-valid-schema-example: "off"
188
asyncapi-payload-examples: "off"

Diff for: fern/.definition/lemur.yml

+12-16
Original file line numberDiff line numberDiff line change
@@ -401,20 +401,25 @@ types:
401401
usage:
402402
type: LemurUsage
403403
docs: The usage numbers for the LeMUR request
404-
LemurTaskResponse:
404+
LemurStringResponse:
405405
properties:
406406
response:
407407
type: string
408408
docs: The response generated by LeMUR.
409409
extends:
410410
- LemurBaseResponse
411+
LemurTaskResponse:
412+
properties: {}
413+
extends:
414+
- LemurStringResponse
411415
LemurSummaryResponse:
412-
properties:
413-
response:
414-
type: string
415-
docs: The response generated by LeMUR
416+
properties: {}
416417
extends:
417-
- LemurBaseResponse
418+
- LemurStringResponse
419+
LemurActionItemsResponse:
420+
properties: {}
421+
extends:
422+
- LemurStringResponse
418423
LemurQuestionAnswerResponse:
419424
properties:
420425
response:
@@ -431,20 +436,11 @@ types:
431436
answer:
432437
type: string
433438
docs: The answer generated by LeMUR
434-
LemurActionItemsResponse:
435-
properties:
436-
response:
437-
type: string
438-
docs: The response generated by LeMUR
439-
extends:
440-
- LemurBaseResponse
441439
LemurResponse:
442440
discriminated: false
443441
union:
444-
- LemurTaskResponse
445-
- LemurSummaryResponse
442+
- LemurStringResponse
446443
- LemurQuestionAnswerResponse
447-
- LemurActionItemsResponse
448444
LemurBaseParamsContext:
449445
discriminated: false
450446
docs: >-

Diff for: fern/.definition/transcripts.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2392,6 +2392,11 @@ types:
23922392
speech_model: optional<SpeechModel>
23932393
webhook_url:
23942394
type: optional<string>
2395+
docs: >-
2396+
The URL to which we send webhook requests. We sends two different
2397+
types of webhook requests. One request when a transcript is completed
2398+
or failed, and one request when the redacted audio is ready if
2399+
redact_pii_audio is enabled.
23952400
validation:
23962401
format: url
23972402
webhook_auth_header_name:

Diff for: fern/openapi-overrides.yml

+19
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,22 @@ components:
2121
properties:
2222
final_model:
2323
$ref: "#/components/schemas/LemurModel"
24+
LemurTaskResponse:
25+
allOf:
26+
- $ref: "#/components/schemas/LemurStringResponse"
27+
# required to force Fern to keep the LemurTaskResponse class around and not use LemurStringResponse directly
28+
- type: object
29+
additionalProperties: false
30+
LemurSummaryResponse:
31+
allOf:
32+
- $ref: "#/components/schemas/LemurStringResponse"
33+
# required to force Fern to keep the LemurSummaryResponse class around and not use LemurStringResponse directly
34+
- type: object
35+
additionalProperties: false
36+
37+
LemurActionItemsResponse:
38+
allOf:
39+
- $ref: "#/components/schemas/LemurStringResponse"
40+
# required to force Fern to keep the LemurActionItemsResponse class around and not use LemurStringResponse directly
41+
- type: object
42+
additionalProperties: false

Diff for: openapi.json

+42-53
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,8 @@
16361636
]
16371637
},
16381638
"webhook_url": {
1639-
"x-label": "Webhook URL The URL to which we send webhook requests. We sends two different types of webhook requests. One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled.",
1639+
"x-label": "Webhook URL",
1640+
"description": "The URL to which we send webhook requests. We sends two different types of webhook requests. One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled.",
16401641
"type": "string",
16411642
"format": "url"
16421643
},
@@ -6062,8 +6063,8 @@
60626063
}
60636064
}
60646065
},
6065-
"LemurTaskResponse": {
6066-
"x-label": "LeMUR task response",
6066+
"LemurStringResponse": {
6067+
"x-label": "LeMUR string response",
60676068
"x-fern-sdk-group-name": "lemur",
60686069
"type": "object",
60696070
"allOf": [
@@ -6092,25 +6093,31 @@
60926093
}
60936094
}
60946095
},
6096+
"LemurTaskResponse": {
6097+
"x-label": "LeMUR task response",
6098+
"x-fern-sdk-group-name": "lemur",
6099+
"type": "object",
6100+
"allOf": [
6101+
{
6102+
"$ref": "#/components/schemas/LemurStringResponse"
6103+
}
6104+
],
6105+
"example": {
6106+
"request_id": "5e1b27c2-691f-4414-8bc5-f14678442f9e",
6107+
"response": "Based on the transcript, the following locations were mentioned as being affected by wildfire smoke from Canada:\n\n- Maine\n- Maryland\n- Minnesota\n- Mid Atlantic region\n- Northeast region\n- New York City\n- Baltimore\n",
6108+
"usage": {
6109+
"input_tokens": 27,
6110+
"output_tokens": 3
6111+
}
6112+
}
6113+
},
60956114
"LemurSummaryResponse": {
60966115
"x-label": "LeMUR summary response",
60976116
"x-fern-sdk-group-name": "lemur",
60986117
"type": "object",
60996118
"allOf": [
61006119
{
6101-
"$ref": "#/components/schemas/LemurBaseResponse"
6102-
},
6103-
{
6104-
"type": "object",
6105-
"additionalProperties": false,
6106-
"properties": {
6107-
"response": {
6108-
"x-label": "Response",
6109-
"description": "The response generated by LeMUR",
6110-
"type": "string"
6111-
}
6112-
},
6113-
"required": ["response"]
6120+
"$ref": "#/components/schemas/LemurStringResponse"
61146121
}
61156122
],
61166123
"example": {
@@ -6122,6 +6129,24 @@
61226129
}
61236130
}
61246131
},
6132+
"LemurActionItemsResponse": {
6133+
"x-label": "LeMUR action items response",
6134+
"x-fern-sdk-group-name": "lemur",
6135+
"type": "object",
6136+
"allOf": [
6137+
{
6138+
"$ref": "#/components/schemas/LemurStringResponse"
6139+
}
6140+
],
6141+
"example": {
6142+
"request_id": "5e1b27c2-691f-4414-8bc5-f14678442f9e",
6143+
"response": "Here are some potential action items based on the transcript:\n\n- Monitor air quality levels in affected areas and issue warnings as needed.\n\n- Advise vulnerable populations like children, the elderly, and those with respiratory conditions to limit time outdoors.\n\n- Have schools cancel outdoor activities when air quality is poor.\n\n- Educate the public on health impacts of smoke inhalation and precautions to take.\n\n- Track progression of smoke plumes using weather and air quality monitoring systems.\n\n- Coordinate cross-regionally to manage smoke exposure as air masses shift.\n\n- Plan for likely increase in such events due to climate change. Expand monitoring and forecasting capabilities.\n\n- Conduct research to better understand health impacts of wildfire smoke and mitigation strategies.\n\n- Develop strategies to prevent and manage wildfires to limit air quality impacts.\n",
6144+
"usage": {
6145+
"input_tokens": 27,
6146+
"output_tokens": 3
6147+
}
6148+
}
6149+
},
61256150
"LemurQuestionAnswerResponse": {
61266151
"x-label": "LeMUR question & answer response",
61276152
"x-fern-sdk-group-name": "lemur",
@@ -6189,52 +6214,16 @@
61896214
"question": "Where are there wildfires?"
61906215
}
61916216
},
6192-
"LemurActionItemsResponse": {
6193-
"x-label": "LeMUR action items response",
6194-
"x-fern-sdk-group-name": "lemur",
6195-
"type": "object",
6196-
"allOf": [
6197-
{
6198-
"$ref": "#/components/schemas/LemurBaseResponse"
6199-
},
6200-
{
6201-
"type": "object",
6202-
"additionalProperties": false,
6203-
"properties": {
6204-
"response": {
6205-
"x-label": "Response",
6206-
"description": "The response generated by LeMUR",
6207-
"type": "string"
6208-
}
6209-
},
6210-
"required": ["response"]
6211-
}
6212-
],
6213-
"example": {
6214-
"request_id": "5e1b27c2-691f-4414-8bc5-f14678442f9e",
6215-
"response": "Here are some potential action items based on the transcript:\n\n- Monitor air quality levels in affected areas and issue warnings as needed.\n\n- Advise vulnerable populations like children, the elderly, and those with respiratory conditions to limit time outdoors.\n\n- Have schools cancel outdoor activities when air quality is poor.\n\n- Educate the public on health impacts of smoke inhalation and precautions to take.\n\n- Track progression of smoke plumes using weather and air quality monitoring systems.\n\n- Coordinate cross-regionally to manage smoke exposure as air masses shift.\n\n- Plan for likely increase in such events due to climate change. Expand monitoring and forecasting capabilities.\n\n- Conduct research to better understand health impacts of wildfire smoke and mitigation strategies.\n\n- Develop strategies to prevent and manage wildfires to limit air quality impacts.\n",
6216-
"usage": {
6217-
"input_tokens": 27,
6218-
"output_tokens": 3
6219-
}
6220-
}
6221-
},
62226217
"LemurResponse": {
62236218
"x-label": "LeMUR response",
62246219
"x-fern-sdk-group-name": "lemur",
62256220
"type": "object",
62266221
"oneOf": [
62276222
{
6228-
"$ref": "#/components/schemas/LemurTaskResponse"
6229-
},
6230-
{
6231-
"$ref": "#/components/schemas/LemurSummaryResponse"
6223+
"$ref": "#/components/schemas/LemurStringResponse"
62326224
},
62336225
{
62346226
"$ref": "#/components/schemas/LemurQuestionAnswerResponse"
6235-
},
6236-
{
6237-
"$ref": "#/components/schemas/LemurActionItemsResponse"
62386227
}
62396228
]
62406229
},

0 commit comments

Comments
 (0)