@corti/sdk 2.0.0 → 2.1.0-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/facts/client/requests/FactsExtractRequest.d.ts +1 -1
  3. package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
  4. package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
  5. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
  6. package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  8. package/dist/cjs/api/types/AgentsCreateExpertReference.d.ts +2 -0
  9. package/dist/cjs/api/types/AgentsExpertReference.d.ts +2 -0
  10. package/dist/cjs/api/types/AgentsRegistryExpert.d.ts +2 -0
  11. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
  12. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +1 -1
  13. package/dist/cjs/api/types/DocumentsGetResponse.d.ts +1 -1
  14. package/dist/cjs/api/types/StreamAudioEventData.d.ts +9 -0
  15. package/dist/cjs/api/types/StreamAudioEventData.js +3 -0
  16. package/dist/cjs/api/types/StreamAudioEventDataEvent.d.ts +8 -0
  17. package/dist/cjs/api/types/StreamAudioEventDataEvent.js +11 -0
  18. package/dist/cjs/api/types/StreamAudioEventMessage.d.ts +5 -0
  19. package/dist/cjs/api/types/StreamAudioEventMessage.js +3 -0
  20. package/dist/cjs/api/types/StreamAudioEventsConfig.d.ts +4 -0
  21. package/dist/cjs/api/types/StreamAudioEventsConfig.js +3 -0
  22. package/dist/cjs/api/types/StreamConfig.d.ts +1 -0
  23. package/dist/cjs/api/types/StreamConfigMode.d.ts +2 -0
  24. package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.d.ts +6 -0
  25. package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.js +9 -0
  26. package/dist/cjs/api/types/TranscribeAudioEventData.d.ts +9 -0
  27. package/dist/cjs/api/types/TranscribeAudioEventData.js +3 -0
  28. package/dist/cjs/api/types/TranscribeAudioEventDataEvent.d.ts +8 -0
  29. package/dist/cjs/api/types/TranscribeAudioEventDataEvent.js +11 -0
  30. package/dist/cjs/api/types/TranscribeAudioEventMessage.d.ts +5 -0
  31. package/dist/cjs/api/types/TranscribeAudioEventMessage.js +3 -0
  32. package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +4 -0
  33. package/dist/cjs/api/types/TranscribeAudioEventsConfig.js +3 -0
  34. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -0
  35. package/dist/cjs/api/types/index.d.ts +9 -0
  36. package/dist/cjs/api/types/index.js +9 -0
  37. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +3 -2
  38. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +2 -0
  39. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +3 -2
  40. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +2 -0
  41. package/dist/cjs/serialization/types/AgentsCreateExpertReference.d.ts +1 -0
  42. package/dist/cjs/serialization/types/AgentsCreateExpertReference.js +1 -0
  43. package/dist/cjs/serialization/types/AgentsExpertReference.d.ts +1 -0
  44. package/dist/cjs/serialization/types/AgentsExpertReference.js +1 -0
  45. package/dist/cjs/serialization/types/AgentsRegistryExpert.d.ts +1 -0
  46. package/dist/cjs/serialization/types/AgentsRegistryExpert.js +1 -0
  47. package/dist/cjs/serialization/types/StreamAudioEventData.d.ts +12 -0
  48. package/dist/cjs/serialization/types/StreamAudioEventData.js +44 -0
  49. package/dist/cjs/serialization/types/StreamAudioEventDataEvent.d.ts +7 -0
  50. package/dist/cjs/serialization/types/StreamAudioEventDataEvent.js +44 -0
  51. package/dist/cjs/serialization/types/StreamAudioEventMessage.d.ts +11 -0
  52. package/dist/cjs/serialization/types/StreamAudioEventMessage.js +43 -0
  53. package/dist/cjs/serialization/types/StreamAudioEventsConfig.d.ts +9 -0
  54. package/dist/cjs/serialization/types/StreamAudioEventsConfig.js +41 -0
  55. package/dist/cjs/serialization/types/StreamConfig.d.ts +2 -0
  56. package/dist/cjs/serialization/types/StreamConfig.js +2 -0
  57. package/dist/cjs/serialization/types/StreamConfigMode.d.ts +2 -0
  58. package/dist/cjs/serialization/types/StreamConfigMode.js +2 -0
  59. package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.d.ts +7 -0
  60. package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.js +39 -0
  61. package/dist/cjs/serialization/types/TranscribeAudioEventData.d.ts +12 -0
  62. package/dist/cjs/serialization/types/TranscribeAudioEventData.js +44 -0
  63. package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.d.ts +7 -0
  64. package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.js +44 -0
  65. package/dist/cjs/serialization/types/TranscribeAudioEventMessage.d.ts +11 -0
  66. package/dist/cjs/serialization/types/TranscribeAudioEventMessage.js +43 -0
  67. package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +9 -0
  68. package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +41 -0
  69. package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
  70. package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
  71. package/dist/cjs/serialization/types/index.d.ts +9 -0
  72. package/dist/cjs/serialization/types/index.js +9 -0
  73. package/dist/cjs/version.d.ts +1 -1
  74. package/dist/cjs/version.js +1 -1
  75. package/dist/esm/BaseClient.mjs +2 -2
  76. package/dist/esm/api/resources/facts/client/requests/FactsExtractRequest.d.mts +1 -1
  77. package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
  78. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
  79. package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
  80. package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
  81. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  82. package/dist/esm/api/types/AgentsCreateExpertReference.d.mts +2 -0
  83. package/dist/esm/api/types/AgentsExpertReference.d.mts +2 -0
  84. package/dist/esm/api/types/AgentsRegistryExpert.d.mts +2 -0
  85. package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
  86. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +1 -1
  87. package/dist/esm/api/types/DocumentsGetResponse.d.mts +1 -1
  88. package/dist/esm/api/types/StreamAudioEventData.d.mts +9 -0
  89. package/dist/esm/api/types/StreamAudioEventData.mjs +2 -0
  90. package/dist/esm/api/types/StreamAudioEventDataEvent.d.mts +8 -0
  91. package/dist/esm/api/types/StreamAudioEventDataEvent.mjs +8 -0
  92. package/dist/esm/api/types/StreamAudioEventMessage.d.mts +5 -0
  93. package/dist/esm/api/types/StreamAudioEventMessage.mjs +2 -0
  94. package/dist/esm/api/types/StreamAudioEventsConfig.d.mts +4 -0
  95. package/dist/esm/api/types/StreamAudioEventsConfig.mjs +2 -0
  96. package/dist/esm/api/types/StreamConfig.d.mts +1 -0
  97. package/dist/esm/api/types/StreamConfigMode.d.mts +2 -0
  98. package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.d.mts +6 -0
  99. package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.mjs +6 -0
  100. package/dist/esm/api/types/TranscribeAudioEventData.d.mts +9 -0
  101. package/dist/esm/api/types/TranscribeAudioEventData.mjs +2 -0
  102. package/dist/esm/api/types/TranscribeAudioEventDataEvent.d.mts +8 -0
  103. package/dist/esm/api/types/TranscribeAudioEventDataEvent.mjs +8 -0
  104. package/dist/esm/api/types/TranscribeAudioEventMessage.d.mts +5 -0
  105. package/dist/esm/api/types/TranscribeAudioEventMessage.mjs +2 -0
  106. package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +4 -0
  107. package/dist/esm/api/types/TranscribeAudioEventsConfig.mjs +2 -0
  108. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -0
  109. package/dist/esm/api/types/index.d.mts +9 -0
  110. package/dist/esm/api/types/index.mjs +9 -0
  111. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +3 -2
  112. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +2 -0
  113. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +3 -2
  114. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +2 -0
  115. package/dist/esm/serialization/types/AgentsCreateExpertReference.d.mts +1 -0
  116. package/dist/esm/serialization/types/AgentsCreateExpertReference.mjs +1 -0
  117. package/dist/esm/serialization/types/AgentsExpertReference.d.mts +1 -0
  118. package/dist/esm/serialization/types/AgentsExpertReference.mjs +1 -0
  119. package/dist/esm/serialization/types/AgentsRegistryExpert.d.mts +1 -0
  120. package/dist/esm/serialization/types/AgentsRegistryExpert.mjs +1 -0
  121. package/dist/esm/serialization/types/StreamAudioEventData.d.mts +12 -0
  122. package/dist/esm/serialization/types/StreamAudioEventData.mjs +8 -0
  123. package/dist/esm/serialization/types/StreamAudioEventDataEvent.d.mts +7 -0
  124. package/dist/esm/serialization/types/StreamAudioEventDataEvent.mjs +8 -0
  125. package/dist/esm/serialization/types/StreamAudioEventMessage.d.mts +11 -0
  126. package/dist/esm/serialization/types/StreamAudioEventMessage.mjs +7 -0
  127. package/dist/esm/serialization/types/StreamAudioEventsConfig.d.mts +9 -0
  128. package/dist/esm/serialization/types/StreamAudioEventsConfig.mjs +5 -0
  129. package/dist/esm/serialization/types/StreamConfig.d.mts +2 -0
  130. package/dist/esm/serialization/types/StreamConfig.mjs +2 -0
  131. package/dist/esm/serialization/types/StreamConfigMode.d.mts +2 -0
  132. package/dist/esm/serialization/types/StreamConfigMode.mjs +2 -0
  133. package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.d.mts +7 -0
  134. package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.mjs +3 -0
  135. package/dist/esm/serialization/types/TranscribeAudioEventData.d.mts +12 -0
  136. package/dist/esm/serialization/types/TranscribeAudioEventData.mjs +8 -0
  137. package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.d.mts +7 -0
  138. package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.mjs +8 -0
  139. package/dist/esm/serialization/types/TranscribeAudioEventMessage.d.mts +11 -0
  140. package/dist/esm/serialization/types/TranscribeAudioEventMessage.mjs +7 -0
  141. package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +9 -0
  142. package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +5 -0
  143. package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
  144. package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
  145. package/dist/esm/serialization/types/index.d.mts +9 -0
  146. package/dist/esm/serialization/types/index.mjs +9 -0
  147. package/dist/esm/version.d.mts +1 -1
  148. package/dist/esm/version.mjs +1 -1
  149. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "2.0.0",
47
- "User-Agent": "@corti/sdk/2.0.0",
46
+ "X-Fern-SDK-Version": "2.1.0-rc",
47
+ "User-Agent": "@corti/sdk/2.1.0-rc",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -11,6 +11,6 @@ import type * as Corti from "../../../../index.js";
11
11
  */
12
12
  export interface FactsExtractRequest {
13
13
  context: Corti.CommonTextContext[];
14
- /** The desired output language code for extracted facts. Check [languages page](/about/languages) for more. */
14
+ /** The desired output language code for extracted facts. Check [languages page](/stt/languages) for more. */
15
15
  outputLanguage: string;
16
16
  }
@@ -4,7 +4,7 @@ export declare namespace StreamSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
- type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
7
+ type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage | Corti.StreamAudioEventMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -4,7 +4,7 @@ export declare namespace TranscribeSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
- type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
7
+ type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
29
29
  list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
30
30
  private __list;
31
31
  /**
32
- * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an incomplete or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
32
+ * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
33
33
  *
34
34
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
35
35
  * @param {Corti.TranscriptsCreateRequest} request
@@ -142,7 +142,7 @@ class TranscriptsClient {
142
142
  });
143
143
  }
144
144
  /**
145
- * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an incomplete or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
145
+ * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
146
146
  *
147
147
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
148
148
  * @param {Corti.TranscriptsCreateRequest} request
@@ -9,7 +9,7 @@ import type * as Corti from "../../../../index.js";
9
9
  export interface TranscriptsCreateRequest {
10
10
  /** The unique identifier for the recording. */
11
11
  recordingId: Corti.Uuid;
12
- /** The primary spoken language of the recording. Check https://docs.corti.ai/about/languages for more. */
12
+ /** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
13
13
  primaryLanguage: string;
14
14
  /** Indicates whether spoken dictation commands should be converted to punctuation (e.g., 'comma' → ','). */
15
15
  isDictation?: boolean;
@@ -10,4 +10,6 @@ export interface AgentsCreateExpertReference {
10
10
  name?: string;
11
11
  /** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
12
12
  systemPrompt?: string;
13
+ /** Optional configuration override for the registry expert. Values provided here are deep-merged with the schema defaults declared on the registry expert and validated against its `configSchema`. Ignored when the registry expert has no schema. */
14
+ config?: Record<string, unknown>;
13
15
  }
@@ -10,4 +10,6 @@ export interface AgentsExpertReference {
10
10
  name: string;
11
11
  /** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
12
12
  systemPrompt?: string;
13
+ /** The fully resolved configuration for this expert: schema defaults from the registry expert deep-merged with any `config` override supplied at creation. Present only when the source registry expert defined a `configSchema`. */
14
+ resolvedConfig?: Record<string, unknown>;
13
15
  }
@@ -10,4 +10,6 @@ export interface AgentsRegistryExpert {
10
10
  description: string;
11
11
  /** A list of MCP servers the expert can call, including their authorization types. */
12
12
  mcpServers?: Corti.AgentsRegistryMcpServer[];
13
+ /** Optional JSON Schema describing the configuration this expert accepts. When present, callers may supply a matching `config` object on `AgentsCreateExpertReference`; values are deep-merged with schema defaults and validated against this schema. */
14
+ configSchema?: Record<string, unknown>;
13
15
  }
@@ -6,7 +6,7 @@ export interface DocumentsCreateRequestWithTemplate {
6
6
  template: Corti.DocumentsTemplate;
7
7
  /** An optional name for the document. */
8
8
  name?: string;
9
- /** The language in which the document will be generated. Check [languages page](/about/languages) for more. */
9
+ /** The language in which the document will be generated. Check [languages page](/stt/languages) for more. */
10
10
  outputLanguage: string;
11
11
  /** Set to true to disable guardrails during document generation, default is false. */
12
12
  disableGuardrails?: boolean;
@@ -6,7 +6,7 @@ export interface DocumentsCreateRequestWithTemplateKey {
6
6
  templateKey: string;
7
7
  /** An optional name for the document. */
8
8
  name?: string;
9
- /** The language in which the document will be generated. Check [languages page](/about/languages) for more. */
9
+ /** The language in which the document will be generated. Check [languages page](/stt/languages) for more. */
10
10
  outputLanguage: string;
11
11
  /** Set to true to disable guardrails during document generation, default is false. */
12
12
  disableGuardrails?: boolean;
@@ -13,7 +13,7 @@ export interface DocumentsGetResponse {
13
13
  createdAt: Date;
14
14
  /** The timestamp when the document was last updated. */
15
15
  updatedAt: Date;
16
- /** The language in which the document will be generated. Check https://docs.corti.ai/about/languages for more. */
16
+ /** The language in which the document will be generated. Check https://docs.corti.ai/stt/languages for more. */
17
17
  outputLanguage: string;
18
18
  usageInfo: Corti.CommonUsageInfo;
19
19
  }
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface StreamAudioEventData {
3
+ /** The type of audio quality or speech activity event */
4
+ event: Corti.StreamAudioEventDataEvent;
5
+ /** Audio channel identifier */
6
+ channel: number;
7
+ /** Start time of the event in milliseconds */
8
+ startTimeMs: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /** The type of audio quality or speech activity event */
2
+ export declare const StreamAudioEventDataEvent: {
3
+ readonly SpeechQualityIssueDetected: "speechQualityIssueDetected";
4
+ readonly SpeechQualityIssueRecovered: "speechQualityIssueRecovered";
5
+ readonly LongSilenceDetected: "longSilenceDetected";
6
+ readonly LongSilenceRecovered: "longSilenceRecovered";
7
+ };
8
+ export type StreamAudioEventDataEvent = (typeof StreamAudioEventDataEvent)[keyof typeof StreamAudioEventDataEvent];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.StreamAudioEventDataEvent = void 0;
5
+ /** The type of audio quality or speech activity event */
6
+ exports.StreamAudioEventDataEvent = {
7
+ SpeechQualityIssueDetected: "speechQualityIssueDetected",
8
+ SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
9
+ LongSilenceDetected: "longSilenceDetected",
10
+ LongSilenceRecovered: "longSilenceRecovered",
11
+ };
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface StreamAudioEventMessage {
3
+ type: "audioEvent";
4
+ data: Corti.StreamAudioEventData;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface StreamAudioEventsConfig {
2
+ /** When true, enables audio quality and speech activity events to be sent over the WebSocket. Disabled by default. */
3
+ enabled?: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ export interface StreamConfig {
4
4
  mode: Corti.StreamConfigMode;
5
5
  /** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
6
6
  retentionPolicy?: Corti.StreamConfigRetentionPolicy;
7
+ audioEvents?: Corti.StreamAudioEventsConfig;
7
8
  /** The audio format of the incoming audio stream */
8
9
  audioFormat?: string;
9
10
  }
@@ -4,4 +4,6 @@ export interface StreamConfigMode {
4
4
  type: Corti.StreamConfigModeType;
5
5
  /** Output language locale specific to facts. */
6
6
  outputLocale?: Corti.StreamSupportedLanguage;
7
+ /** Rate at which fact generation should process and return results. If no value is set, the default is `fixed` and will trigger fact generation at the standard interval of around 60s. With `fast_init`, fact generation will follow a logarithmic curve. */
8
+ factGenerationInterval?: Corti.StreamConfigModeFactGenerationInterval;
7
9
  }
@@ -0,0 +1,6 @@
1
+ /** Rate at which fact generation should process and return results. If no value is set, the default is `fixed` and will trigger fact generation at the standard interval of around 60s. With `fast_init`, fact generation will follow a logarithmic curve. */
2
+ export declare const StreamConfigModeFactGenerationInterval: {
3
+ readonly Fixed: "fixed";
4
+ readonly FastInit: "fast_init";
5
+ };
6
+ export type StreamConfigModeFactGenerationInterval = (typeof StreamConfigModeFactGenerationInterval)[keyof typeof StreamConfigModeFactGenerationInterval];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.StreamConfigModeFactGenerationInterval = void 0;
5
+ /** Rate at which fact generation should process and return results. If no value is set, the default is `fixed` and will trigger fact generation at the standard interval of around 60s. With `fast_init`, fact generation will follow a logarithmic curve. */
6
+ exports.StreamConfigModeFactGenerationInterval = {
7
+ Fixed: "fixed",
8
+ FastInit: "fast_init",
9
+ };
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface TranscribeAudioEventData {
3
+ /** The type of audio quality or speech activity event */
4
+ event: Corti.TranscribeAudioEventDataEvent;
5
+ /** Audio channel identifier */
6
+ channel: number;
7
+ /** Start time of the event in milliseconds */
8
+ startTimeMs: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /** The type of audio quality or speech activity event */
2
+ export declare const TranscribeAudioEventDataEvent: {
3
+ readonly SpeechQualityIssueDetected: "speechQualityIssueDetected";
4
+ readonly SpeechQualityIssueRecovered: "speechQualityIssueRecovered";
5
+ readonly LongSilenceDetected: "longSilenceDetected";
6
+ readonly LongSilenceRecovered: "longSilenceRecovered";
7
+ };
8
+ export type TranscribeAudioEventDataEvent = (typeof TranscribeAudioEventDataEvent)[keyof typeof TranscribeAudioEventDataEvent];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TranscribeAudioEventDataEvent = void 0;
5
+ /** The type of audio quality or speech activity event */
6
+ exports.TranscribeAudioEventDataEvent = {
7
+ SpeechQualityIssueDetected: "speechQualityIssueDetected",
8
+ SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
9
+ LongSilenceDetected: "longSilenceDetected",
10
+ LongSilenceRecovered: "longSilenceRecovered",
11
+ };
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface TranscribeAudioEventMessage {
3
+ type: "audioEvent";
4
+ data: Corti.TranscribeAudioEventData;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface TranscribeAudioEventsConfig {
2
+ /** When true, enables audio quality and speech activity events to be sent over the WebSocket. Disabled by default. */
3
+ enabled?: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,7 @@ export interface TranscribeConfig {
11
11
  /** Commands that should be registered and detected */
12
12
  commands?: Corti.TranscribeCommand[];
13
13
  formatting?: Corti.TranscribeFormatting;
14
+ audioEvents?: Corti.TranscribeAudioEventsConfig;
14
15
  /** The audio format of the incoming audio stream */
15
16
  audioFormat?: string;
16
17
  }
@@ -127,9 +127,14 @@ export * from "./InteractionsPatient.js";
127
127
  export * from "./OAuthTokenRequest.js";
128
128
  export * from "./RecordingsCreateResponse.js";
129
129
  export * from "./RecordingsListResponse.js";
130
+ export * from "./StreamAudioEventData.js";
131
+ export * from "./StreamAudioEventDataEvent.js";
132
+ export * from "./StreamAudioEventMessage.js";
133
+ export * from "./StreamAudioEventsConfig.js";
130
134
  export * from "./StreamConfig.js";
131
135
  export * from "./StreamConfigMessage.js";
132
136
  export * from "./StreamConfigMode.js";
137
+ export * from "./StreamConfigModeFactGenerationInterval.js";
133
138
  export * from "./StreamConfigModeType.js";
134
139
  export * from "./StreamConfigParticipant.js";
135
140
  export * from "./StreamConfigParticipantRole.js";
@@ -162,6 +167,10 @@ export * from "./TemplatesSectionSorted.js";
162
167
  export * from "./TemplatesSectionTranslation.js";
163
168
  export * from "./TemplatesTranslation.js";
164
169
  export * from "./TemplatesWritingStyle.js";
170
+ export * from "./TranscribeAudioEventData.js";
171
+ export * from "./TranscribeAudioEventDataEvent.js";
172
+ export * from "./TranscribeAudioEventMessage.js";
173
+ export * from "./TranscribeAudioEventsConfig.js";
165
174
  export * from "./TranscribeCommand.js";
166
175
  export * from "./TranscribeCommandData.js";
167
176
  export * from "./TranscribeCommandMessage.js";
@@ -143,9 +143,14 @@ __exportStar(require("./InteractionsPatient.js"), exports);
143
143
  __exportStar(require("./OAuthTokenRequest.js"), exports);
144
144
  __exportStar(require("./RecordingsCreateResponse.js"), exports);
145
145
  __exportStar(require("./RecordingsListResponse.js"), exports);
146
+ __exportStar(require("./StreamAudioEventData.js"), exports);
147
+ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
148
+ __exportStar(require("./StreamAudioEventMessage.js"), exports);
149
+ __exportStar(require("./StreamAudioEventsConfig.js"), exports);
146
150
  __exportStar(require("./StreamConfig.js"), exports);
147
151
  __exportStar(require("./StreamConfigMessage.js"), exports);
148
152
  __exportStar(require("./StreamConfigMode.js"), exports);
153
+ __exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
149
154
  __exportStar(require("./StreamConfigModeType.js"), exports);
150
155
  __exportStar(require("./StreamConfigParticipant.js"), exports);
151
156
  __exportStar(require("./StreamConfigParticipantRole.js"), exports);
@@ -178,6 +183,10 @@ __exportStar(require("./TemplatesSectionSorted.js"), exports);
178
183
  __exportStar(require("./TemplatesSectionTranslation.js"), exports);
179
184
  __exportStar(require("./TemplatesTranslation.js"), exports);
180
185
  __exportStar(require("./TemplatesWritingStyle.js"), exports);
186
+ __exportStar(require("./TranscribeAudioEventData.js"), exports);
187
+ __exportStar(require("./TranscribeAudioEventDataEvent.js"), exports);
188
+ __exportStar(require("./TranscribeAudioEventMessage.js"), exports);
189
+ __exportStar(require("./TranscribeAudioEventsConfig.js"), exports);
181
190
  __exportStar(require("./TranscribeCommand.js"), exports);
182
191
  __exportStar(require("./TranscribeCommandData.js"), exports);
183
192
  __exportStar(require("./TranscribeCommandMessage.js"), exports);
@@ -1,6 +1,7 @@
1
1
  import type * as Corti from "../../../../../api/index.js";
2
2
  import * as core from "../../../../../core/index.js";
3
3
  import type * as serializers from "../../../../index.js";
4
+ import { StreamAudioEventMessage } from "../../../../types/StreamAudioEventMessage.js";
4
5
  import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.js";
5
6
  import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.js";
6
7
  import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.js";
@@ -9,7 +10,7 @@ import { StreamFactsMessage } from "../../../../types/StreamFactsMessage.js";
9
10
  import { StreamFlushedMessage } from "../../../../types/StreamFlushedMessage.js";
10
11
  import { StreamTranscriptMessage } from "../../../../types/StreamTranscriptMessage.js";
11
12
  import { StreamUsageMessage } from "../../../../types/StreamUsageMessage.js";
12
- export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage>;
13
+ export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage | Corti.StreamAudioEventMessage>;
13
14
  export declare namespace StreamSocketResponse {
14
- type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamDeltaUsageMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw;
15
+ type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamDeltaUsageMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw | StreamAudioEventMessage.Raw;
15
16
  }
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.StreamSocketResponse = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
+ const StreamAudioEventMessage_js_1 = require("../../../../types/StreamAudioEventMessage.js");
39
40
  const StreamConfigStatusMessage_js_1 = require("../../../../types/StreamConfigStatusMessage.js");
40
41
  const StreamDeltaUsageMessage_js_1 = require("../../../../types/StreamDeltaUsageMessage.js");
41
42
  const StreamEndedMessage_js_1 = require("../../../../types/StreamEndedMessage.js");
@@ -53,4 +54,5 @@ exports.StreamSocketResponse = core.serialization.undiscriminatedUnion([
53
54
  StreamUsageMessage_js_1.StreamUsageMessage,
54
55
  StreamErrorMessage_js_1.StreamErrorMessage,
55
56
  StreamConfigStatusMessage_js_1.StreamConfigStatusMessage,
57
+ StreamAudioEventMessage_js_1.StreamAudioEventMessage,
56
58
  ]);
@@ -1,6 +1,7 @@
1
1
  import type * as Corti from "../../../../../api/index.js";
2
2
  import * as core from "../../../../../core/index.js";
3
3
  import type * as serializers from "../../../../index.js";
4
+ import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.js";
4
5
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.js";
5
6
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.js";
6
7
  import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.js";
@@ -9,7 +10,7 @@ import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage
9
10
  import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.js";
10
11
  import { TranscribeTranscriptMessage } from "../../../../types/TranscribeTranscriptMessage.js";
11
12
  import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage.js";
12
- export declare const TranscribeSocketResponse: core.serialization.Schema<serializers.TranscribeSocketResponse.Raw, Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage>;
13
+ export declare const TranscribeSocketResponse: core.serialization.Schema<serializers.TranscribeSocketResponse.Raw, Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage>;
13
14
  export declare namespace TranscribeSocketResponse {
14
- type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw;
15
+ type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw | TranscribeAudioEventMessage.Raw;
15
16
  }
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TranscribeSocketResponse = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
+ const TranscribeAudioEventMessage_js_1 = require("../../../../types/TranscribeAudioEventMessage.js");
39
40
  const TranscribeCommandMessage_js_1 = require("../../../../types/TranscribeCommandMessage.js");
40
41
  const TranscribeConfigStatusMessage_js_1 = require("../../../../types/TranscribeConfigStatusMessage.js");
41
42
  const TranscribeDeltaUsageMessage_js_1 = require("../../../../types/TranscribeDeltaUsageMessage.js");
@@ -53,4 +54,5 @@ exports.TranscribeSocketResponse = core.serialization.undiscriminatedUnion([
53
54
  TranscribeTranscriptMessage_js_1.TranscribeTranscriptMessage,
54
55
  TranscribeCommandMessage_js_1.TranscribeCommandMessage,
55
56
  TranscribeConfigStatusMessage_js_1.TranscribeConfigStatusMessage,
57
+ TranscribeAudioEventMessage_js_1.TranscribeAudioEventMessage,
56
58
  ]);
@@ -9,5 +9,6 @@ export declare namespace AgentsCreateExpertReference {
9
9
  id?: string | null;
10
10
  name?: string | null;
11
11
  systemPrompt?: string | null;
12
+ config?: Record<string, unknown> | null;
12
13
  }
13
14
  }
@@ -42,4 +42,5 @@ exports.AgentsCreateExpertReference = core.serialization.object({
42
42
  id: core.serialization.string().optional(),
43
43
  name: core.serialization.string().optional(),
44
44
  systemPrompt: core.serialization.string().optional(),
45
+ config: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
46
  });
@@ -9,5 +9,6 @@ export declare namespace AgentsExpertReference {
9
9
  id: string;
10
10
  name: string;
11
11
  systemPrompt?: string | null;
12
+ resolvedConfig?: Record<string, unknown> | null;
12
13
  }
13
14
  }
@@ -42,4 +42,5 @@ exports.AgentsExpertReference = core.serialization.object({
42
42
  id: core.serialization.string(),
43
43
  name: core.serialization.string(),
44
44
  systemPrompt: core.serialization.string().optional(),
45
+ resolvedConfig: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
46
  });
@@ -10,5 +10,6 @@ export declare namespace AgentsRegistryExpert {
10
10
  displayDescription?: string | null;
11
11
  description: string;
12
12
  mcpServers?: AgentsRegistryMcpServer.Raw[] | null;
13
+ configSchema?: Record<string, unknown> | null;
13
14
  }
14
15
  }
@@ -43,4 +43,5 @@ exports.AgentsRegistryExpert = core.serialization.object({
43
43
  displayDescription: core.serialization.string().optional(),
44
44
  description: core.serialization.string(),
45
45
  mcpServers: core.serialization.list(AgentsRegistryMcpServer_js_1.AgentsRegistryMcpServer).optional(),
46
+ configSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
46
47
  });
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { StreamAudioEventDataEvent } from "./StreamAudioEventDataEvent.js";
5
+ export declare const StreamAudioEventData: core.serialization.ObjectSchema<serializers.StreamAudioEventData.Raw, Corti.StreamAudioEventData>;
6
+ export declare namespace StreamAudioEventData {
7
+ interface Raw {
8
+ event: StreamAudioEventDataEvent.Raw;
9
+ channel: number;
10
+ startTimeMs: number;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.StreamAudioEventData = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const StreamAudioEventDataEvent_js_1 = require("./StreamAudioEventDataEvent.js");
40
+ exports.StreamAudioEventData = core.serialization.object({
41
+ event: StreamAudioEventDataEvent_js_1.StreamAudioEventDataEvent,
42
+ channel: core.serialization.number(),
43
+ startTimeMs: core.serialization.number(),
44
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const StreamAudioEventDataEvent: core.serialization.Schema<serializers.StreamAudioEventDataEvent.Raw, Corti.StreamAudioEventDataEvent>;
5
+ export declare namespace StreamAudioEventDataEvent {
6
+ type Raw = "speechQualityIssueDetected" | "speechQualityIssueRecovered" | "longSilenceDetected" | "longSilenceRecovered";
7
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.StreamAudioEventDataEvent = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.StreamAudioEventDataEvent = core.serialization.enum_([
40
+ "speechQualityIssueDetected",
41
+ "speechQualityIssueRecovered",
42
+ "longSilenceDetected",
43
+ "longSilenceRecovered",
44
+ ]);
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { StreamAudioEventData } from "./StreamAudioEventData.js";
5
+ export declare const StreamAudioEventMessage: core.serialization.ObjectSchema<serializers.StreamAudioEventMessage.Raw, Corti.StreamAudioEventMessage>;
6
+ export declare namespace StreamAudioEventMessage {
7
+ interface Raw {
8
+ type: "audioEvent";
9
+ data: StreamAudioEventData.Raw;
10
+ }
11
+ }