@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
@@ -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.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** The type of audio quality or speech activity event */
3
+ export const StreamAudioEventDataEvent = {
4
+ SpeechQualityIssueDetected: "speechQualityIssueDetected",
5
+ SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
6
+ LongSilenceDetected: "longSilenceDetected",
7
+ LongSilenceRecovered: "longSilenceRecovered",
8
+ };
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.mjs";
2
+ export interface StreamAudioEventMessage {
3
+ type: "audioEvent";
4
+ data: Corti.StreamAudioEventData;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** 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. */
3
+ export const StreamConfigModeFactGenerationInterval = {
4
+ Fixed: "fixed",
5
+ FastInit: "fast_init",
6
+ };
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../index.mjs";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** The type of audio quality or speech activity event */
3
+ export const TranscribeAudioEventDataEvent = {
4
+ SpeechQualityIssueDetected: "speechQualityIssueDetected",
5
+ SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
6
+ LongSilenceDetected: "longSilenceDetected",
7
+ LongSilenceRecovered: "longSilenceRecovered",
8
+ };
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.mjs";
2
+ export interface TranscribeAudioEventMessage {
3
+ type: "audioEvent";
4
+ data: Corti.TranscribeAudioEventData;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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.mjs";
127
127
  export * from "./OAuthTokenRequest.mjs";
128
128
  export * from "./RecordingsCreateResponse.mjs";
129
129
  export * from "./RecordingsListResponse.mjs";
130
+ export * from "./StreamAudioEventData.mjs";
131
+ export * from "./StreamAudioEventDataEvent.mjs";
132
+ export * from "./StreamAudioEventMessage.mjs";
133
+ export * from "./StreamAudioEventsConfig.mjs";
130
134
  export * from "./StreamConfig.mjs";
131
135
  export * from "./StreamConfigMessage.mjs";
132
136
  export * from "./StreamConfigMode.mjs";
137
+ export * from "./StreamConfigModeFactGenerationInterval.mjs";
133
138
  export * from "./StreamConfigModeType.mjs";
134
139
  export * from "./StreamConfigParticipant.mjs";
135
140
  export * from "./StreamConfigParticipantRole.mjs";
@@ -162,6 +167,10 @@ export * from "./TemplatesSectionSorted.mjs";
162
167
  export * from "./TemplatesSectionTranslation.mjs";
163
168
  export * from "./TemplatesTranslation.mjs";
164
169
  export * from "./TemplatesWritingStyle.mjs";
170
+ export * from "./TranscribeAudioEventData.mjs";
171
+ export * from "./TranscribeAudioEventDataEvent.mjs";
172
+ export * from "./TranscribeAudioEventMessage.mjs";
173
+ export * from "./TranscribeAudioEventsConfig.mjs";
165
174
  export * from "./TranscribeCommand.mjs";
166
175
  export * from "./TranscribeCommandData.mjs";
167
176
  export * from "./TranscribeCommandMessage.mjs";
@@ -127,9 +127,14 @@ export * from "./InteractionsPatient.mjs";
127
127
  export * from "./OAuthTokenRequest.mjs";
128
128
  export * from "./RecordingsCreateResponse.mjs";
129
129
  export * from "./RecordingsListResponse.mjs";
130
+ export * from "./StreamAudioEventData.mjs";
131
+ export * from "./StreamAudioEventDataEvent.mjs";
132
+ export * from "./StreamAudioEventMessage.mjs";
133
+ export * from "./StreamAudioEventsConfig.mjs";
130
134
  export * from "./StreamConfig.mjs";
131
135
  export * from "./StreamConfigMessage.mjs";
132
136
  export * from "./StreamConfigMode.mjs";
137
+ export * from "./StreamConfigModeFactGenerationInterval.mjs";
133
138
  export * from "./StreamConfigModeType.mjs";
134
139
  export * from "./StreamConfigParticipant.mjs";
135
140
  export * from "./StreamConfigParticipantRole.mjs";
@@ -162,6 +167,10 @@ export * from "./TemplatesSectionSorted.mjs";
162
167
  export * from "./TemplatesSectionTranslation.mjs";
163
168
  export * from "./TemplatesTranslation.mjs";
164
169
  export * from "./TemplatesWritingStyle.mjs";
170
+ export * from "./TranscribeAudioEventData.mjs";
171
+ export * from "./TranscribeAudioEventDataEvent.mjs";
172
+ export * from "./TranscribeAudioEventMessage.mjs";
173
+ export * from "./TranscribeAudioEventsConfig.mjs";
165
174
  export * from "./TranscribeCommand.mjs";
166
175
  export * from "./TranscribeCommandData.mjs";
167
176
  export * from "./TranscribeCommandMessage.mjs";
@@ -1,6 +1,7 @@
1
1
  import type * as Corti from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
+ import { StreamAudioEventMessage } from "../../../../types/StreamAudioEventMessage.mjs";
4
5
  import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.mjs";
5
6
  import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.mjs";
6
7
  import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.mjs";
@@ -9,7 +10,7 @@ import { StreamFactsMessage } from "../../../../types/StreamFactsMessage.mjs";
9
10
  import { StreamFlushedMessage } from "../../../../types/StreamFlushedMessage.mjs";
10
11
  import { StreamTranscriptMessage } from "../../../../types/StreamTranscriptMessage.mjs";
11
12
  import { StreamUsageMessage } from "../../../../types/StreamUsageMessage.mjs";
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
  }
@@ -1,5 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
+ import { StreamAudioEventMessage } from "../../../../types/StreamAudioEventMessage.mjs";
3
4
  import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.mjs";
4
5
  import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.mjs";
5
6
  import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.mjs";
@@ -17,4 +18,5 @@ export const StreamSocketResponse = core.serialization.undiscriminatedUnion([
17
18
  StreamUsageMessage,
18
19
  StreamErrorMessage,
19
20
  StreamConfigStatusMessage,
21
+ StreamAudioEventMessage,
20
22
  ]);
@@ -1,6 +1,7 @@
1
1
  import type * as Corti from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
+ import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.mjs";
4
5
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.mjs";
5
6
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.mjs";
6
7
  import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.mjs";
@@ -9,7 +10,7 @@ import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage
9
10
  import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.mjs";
10
11
  import { TranscribeTranscriptMessage } from "../../../../types/TranscribeTranscriptMessage.mjs";
11
12
  import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage.mjs";
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
  }
@@ -1,5 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
+ import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.mjs";
3
4
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.mjs";
4
5
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.mjs";
5
6
  import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.mjs";
@@ -17,4 +18,5 @@ export const TranscribeSocketResponse = core.serialization.undiscriminatedUnion(
17
18
  TranscribeTranscriptMessage,
18
19
  TranscribeCommandMessage,
19
20
  TranscribeConfigStatusMessage,
21
+ TranscribeAudioEventMessage,
20
22
  ]);
@@ -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
  }
@@ -6,4 +6,5 @@ export const AgentsCreateExpertReference = core.serialization.object({
6
6
  id: core.serialization.string().optional(),
7
7
  name: core.serialization.string().optional(),
8
8
  systemPrompt: core.serialization.string().optional(),
9
+ config: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
9
10
  });
@@ -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
  }
@@ -6,4 +6,5 @@ export const AgentsExpertReference = core.serialization.object({
6
6
  id: core.serialization.string(),
7
7
  name: core.serialization.string(),
8
8
  systemPrompt: core.serialization.string().optional(),
9
+ resolvedConfig: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
9
10
  });
@@ -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
  }
@@ -7,4 +7,5 @@ export const AgentsRegistryExpert = core.serialization.object({
7
7
  displayDescription: core.serialization.string().optional(),
8
8
  description: core.serialization.string(),
9
9
  mcpServers: core.serialization.list(AgentsRegistryMcpServer).optional(),
10
+ configSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
10
11
  });
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { StreamAudioEventDataEvent } from "./StreamAudioEventDataEvent.mjs";
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,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { StreamAudioEventDataEvent } from "./StreamAudioEventDataEvent.mjs";
4
+ export const StreamAudioEventData = core.serialization.object({
5
+ event: StreamAudioEventDataEvent,
6
+ channel: core.serialization.number(),
7
+ startTimeMs: core.serialization.number(),
8
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
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,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const StreamAudioEventDataEvent = core.serialization.enum_([
4
+ "speechQualityIssueDetected",
5
+ "speechQualityIssueRecovered",
6
+ "longSilenceDetected",
7
+ "longSilenceRecovered",
8
+ ]);
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { StreamAudioEventData } from "./StreamAudioEventData.mjs";
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
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { StreamAudioEventData } from "./StreamAudioEventData.mjs";
4
+ export const StreamAudioEventMessage = core.serialization.object({
5
+ type: core.serialization.stringLiteral("audioEvent"),
6
+ data: StreamAudioEventData,
7
+ });
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const StreamAudioEventsConfig: core.serialization.ObjectSchema<serializers.StreamAudioEventsConfig.Raw, Corti.StreamAudioEventsConfig>;
5
+ export declare namespace StreamAudioEventsConfig {
6
+ interface Raw {
7
+ enabled?: boolean | null;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const StreamAudioEventsConfig = core.serialization.object({
4
+ enabled: core.serialization.boolean().optional(),
5
+ });
@@ -1,6 +1,7 @@
1
1
  import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
+ import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.mjs";
4
5
  import { StreamConfigMode } from "./StreamConfigMode.mjs";
5
6
  import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
6
7
  import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
@@ -10,6 +11,7 @@ export declare namespace StreamConfig {
10
11
  transcription: StreamConfigTranscription.Raw;
11
12
  mode: StreamConfigMode.Raw;
12
13
  retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
14
+ audioEvents?: StreamAudioEventsConfig.Raw | null;
13
15
  audioFormat?: string | null;
14
16
  }
15
17
  }
@@ -1,5 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
+ import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.mjs";
3
4
  import { StreamConfigMode } from "./StreamConfigMode.mjs";
4
5
  import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
5
6
  import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
@@ -7,5 +8,6 @@ export const StreamConfig = core.serialization.object({
7
8
  transcription: StreamConfigTranscription,
8
9
  mode: StreamConfigMode,
9
10
  retentionPolicy: StreamConfigRetentionPolicy.optional(),
11
+ audioEvents: StreamAudioEventsConfig.optional(),
10
12
  audioFormat: core.serialization.string().optional(),
11
13
  });
@@ -1,6 +1,7 @@
1
1
  import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
+ import { StreamConfigModeFactGenerationInterval } from "./StreamConfigModeFactGenerationInterval.mjs";
4
5
  import { StreamConfigModeType } from "./StreamConfigModeType.mjs";
5
6
  import { StreamSupportedLanguage } from "./StreamSupportedLanguage.mjs";
6
7
  export declare const StreamConfigMode: core.serialization.ObjectSchema<serializers.StreamConfigMode.Raw, Corti.StreamConfigMode>;
@@ -8,5 +9,6 @@ export declare namespace StreamConfigMode {
8
9
  interface Raw {
9
10
  type: StreamConfigModeType.Raw;
10
11
  outputLocale?: StreamSupportedLanguage.Raw | null;
12
+ factGenerationInterval?: StreamConfigModeFactGenerationInterval.Raw | null;
11
13
  }
12
14
  }
@@ -1,8 +1,10 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
+ import { StreamConfigModeFactGenerationInterval } from "./StreamConfigModeFactGenerationInterval.mjs";
3
4
  import { StreamConfigModeType } from "./StreamConfigModeType.mjs";
4
5
  import { StreamSupportedLanguage } from "./StreamSupportedLanguage.mjs";
5
6
  export const StreamConfigMode = core.serialization.object({
6
7
  type: StreamConfigModeType,
7
8
  outputLocale: StreamSupportedLanguage.optional(),
9
+ factGenerationInterval: StreamConfigModeFactGenerationInterval.optional(),
8
10
  });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const StreamConfigModeFactGenerationInterval: core.serialization.Schema<serializers.StreamConfigModeFactGenerationInterval.Raw, Corti.StreamConfigModeFactGenerationInterval>;
5
+ export declare namespace StreamConfigModeFactGenerationInterval {
6
+ type Raw = "fixed" | "fast_init";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const StreamConfigModeFactGenerationInterval = core.serialization.enum_(["fixed", "fast_init"]);
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { TranscribeAudioEventDataEvent } from "./TranscribeAudioEventDataEvent.mjs";
5
+ export declare const TranscribeAudioEventData: core.serialization.ObjectSchema<serializers.TranscribeAudioEventData.Raw, Corti.TranscribeAudioEventData>;
6
+ export declare namespace TranscribeAudioEventData {
7
+ interface Raw {
8
+ event: TranscribeAudioEventDataEvent.Raw;
9
+ channel: number;
10
+ startTimeMs: number;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { TranscribeAudioEventDataEvent } from "./TranscribeAudioEventDataEvent.mjs";
4
+ export const TranscribeAudioEventData = core.serialization.object({
5
+ event: TranscribeAudioEventDataEvent,
6
+ channel: core.serialization.number(),
7
+ startTimeMs: core.serialization.number(),
8
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const TranscribeAudioEventDataEvent: core.serialization.Schema<serializers.TranscribeAudioEventDataEvent.Raw, Corti.TranscribeAudioEventDataEvent>;
5
+ export declare namespace TranscribeAudioEventDataEvent {
6
+ type Raw = "speechQualityIssueDetected" | "speechQualityIssueRecovered" | "longSilenceDetected" | "longSilenceRecovered";
7
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const TranscribeAudioEventDataEvent = core.serialization.enum_([
4
+ "speechQualityIssueDetected",
5
+ "speechQualityIssueRecovered",
6
+ "longSilenceDetected",
7
+ "longSilenceRecovered",
8
+ ]);
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { TranscribeAudioEventData } from "./TranscribeAudioEventData.mjs";
5
+ export declare const TranscribeAudioEventMessage: core.serialization.ObjectSchema<serializers.TranscribeAudioEventMessage.Raw, Corti.TranscribeAudioEventMessage>;
6
+ export declare namespace TranscribeAudioEventMessage {
7
+ interface Raw {
8
+ type: "audioEvent";
9
+ data: TranscribeAudioEventData.Raw;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { TranscribeAudioEventData } from "./TranscribeAudioEventData.mjs";
4
+ export const TranscribeAudioEventMessage = core.serialization.object({
5
+ type: core.serialization.stringLiteral("audioEvent"),
6
+ data: TranscribeAudioEventData,
7
+ });
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const TranscribeAudioEventsConfig: core.serialization.ObjectSchema<serializers.TranscribeAudioEventsConfig.Raw, Corti.TranscribeAudioEventsConfig>;
5
+ export declare namespace TranscribeAudioEventsConfig {
6
+ interface Raw {
7
+ enabled?: boolean | null;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const TranscribeAudioEventsConfig = core.serialization.object({
4
+ enabled: core.serialization.boolean().optional(),
5
+ });