@corti/sdk 3.1.0-rc.2 → 4.0.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 (85) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/types/CommonFactsContext.d.ts +2 -2
  3. package/dist/cjs/api/types/StreamConfig.d.ts +0 -4
  4. package/dist/cjs/api/types/StreamErrorDetail.d.ts +5 -7
  5. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -3
  6. package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +5 -7
  7. package/dist/cjs/api/types/index.d.ts +0 -5
  8. package/dist/cjs/api/types/index.js +0 -5
  9. package/dist/cjs/serialization/types/CommonFactsContext.d.ts +1 -1
  10. package/dist/cjs/serialization/types/CommonFactsContext.js +1 -1
  11. package/dist/cjs/serialization/types/StreamConfig.d.ts +0 -4
  12. package/dist/cjs/serialization/types/StreamConfig.js +0 -4
  13. package/dist/cjs/serialization/types/StreamErrorDetail.d.ts +5 -6
  14. package/dist/cjs/serialization/types/StreamErrorDetail.js +5 -6
  15. package/dist/cjs/serialization/types/TranscribeConfig.d.ts +0 -2
  16. package/dist/cjs/serialization/types/TranscribeConfig.js +0 -2
  17. package/dist/cjs/serialization/types/TranscribeErrorMessageError.d.ts +5 -6
  18. package/dist/cjs/serialization/types/TranscribeErrorMessageError.js +5 -6
  19. package/dist/cjs/serialization/types/index.d.ts +0 -5
  20. package/dist/cjs/serialization/types/index.js +0 -5
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/BaseClient.mjs +2 -2
  24. package/dist/esm/api/types/CommonFactsContext.d.mts +2 -2
  25. package/dist/esm/api/types/StreamConfig.d.mts +0 -4
  26. package/dist/esm/api/types/StreamErrorDetail.d.mts +5 -7
  27. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -3
  28. package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +5 -7
  29. package/dist/esm/api/types/index.d.mts +0 -5
  30. package/dist/esm/api/types/index.mjs +0 -5
  31. package/dist/esm/serialization/types/CommonFactsContext.d.mts +1 -1
  32. package/dist/esm/serialization/types/CommonFactsContext.mjs +1 -1
  33. package/dist/esm/serialization/types/StreamConfig.d.mts +0 -4
  34. package/dist/esm/serialization/types/StreamConfig.mjs +0 -4
  35. package/dist/esm/serialization/types/StreamErrorDetail.d.mts +5 -6
  36. package/dist/esm/serialization/types/StreamErrorDetail.mjs +5 -6
  37. package/dist/esm/serialization/types/TranscribeConfig.d.mts +0 -2
  38. package/dist/esm/serialization/types/TranscribeConfig.mjs +0 -2
  39. package/dist/esm/serialization/types/TranscribeErrorMessageError.d.mts +5 -6
  40. package/dist/esm/serialization/types/TranscribeErrorMessageError.mjs +5 -6
  41. package/dist/esm/serialization/types/index.d.mts +0 -5
  42. package/dist/esm/serialization/types/index.mjs +0 -5
  43. package/dist/esm/version.d.mts +1 -1
  44. package/dist/esm/version.mjs +1 -1
  45. package/package.json +1 -1
  46. package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +0 -8
  47. package/dist/cjs/api/types/StreamConfigKeyterms.js +0 -3
  48. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +0 -4
  49. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.js +0 -3
  50. package/dist/cjs/api/types/StreamConfigReplacementsItem.d.ts +0 -6
  51. package/dist/cjs/api/types/StreamConfigReplacementsItem.js +0 -3
  52. package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +0 -8
  53. package/dist/cjs/api/types/TranscribeConfigKeyterms.js +0 -3
  54. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +0 -4
  55. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.js +0 -3
  56. package/dist/cjs/serialization/types/StreamConfigKeyterms.d.ts +0 -10
  57. package/dist/cjs/serialization/types/StreamConfigKeyterms.js +0 -42
  58. package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.d.ts +0 -9
  59. package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.js +0 -41
  60. package/dist/cjs/serialization/types/StreamConfigReplacementsItem.d.ts +0 -10
  61. package/dist/cjs/serialization/types/StreamConfigReplacementsItem.js +0 -42
  62. package/dist/cjs/serialization/types/TranscribeConfigKeyterms.d.ts +0 -10
  63. package/dist/cjs/serialization/types/TranscribeConfigKeyterms.js +0 -42
  64. package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.d.ts +0 -9
  65. package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.js +0 -41
  66. package/dist/esm/api/types/StreamConfigKeyterms.d.mts +0 -8
  67. package/dist/esm/api/types/StreamConfigKeyterms.mjs +0 -2
  68. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +0 -4
  69. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.mjs +0 -2
  70. package/dist/esm/api/types/StreamConfigReplacementsItem.d.mts +0 -6
  71. package/dist/esm/api/types/StreamConfigReplacementsItem.mjs +0 -2
  72. package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +0 -8
  73. package/dist/esm/api/types/TranscribeConfigKeyterms.mjs +0 -2
  74. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +0 -4
  75. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.mjs +0 -2
  76. package/dist/esm/serialization/types/StreamConfigKeyterms.d.mts +0 -10
  77. package/dist/esm/serialization/types/StreamConfigKeyterms.mjs +0 -6
  78. package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.d.mts +0 -9
  79. package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.mjs +0 -5
  80. package/dist/esm/serialization/types/StreamConfigReplacementsItem.d.mts +0 -10
  81. package/dist/esm/serialization/types/StreamConfigReplacementsItem.mjs +0 -6
  82. package/dist/esm/serialization/types/TranscribeConfigKeyterms.d.mts +0 -10
  83. package/dist/esm/serialization/types/TranscribeConfigKeyterms.mjs +0 -6
  84. package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.d.mts +0 -9
  85. package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.mjs +0 -5
@@ -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": "3.1.0-rc.2",
47
- "User-Agent": "@corti/sdk/3.1.0-rc.2",
46
+ "X-Fern-SDK-Version": "4.0.0-rc",
47
+ "User-Agent": "@corti/sdk/4.0.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,
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../index.js";
2
2
  /**
3
- * A single fact provided as input context to the model.
3
+ * A list of facts provided as input context to the model.
4
4
  */
5
5
  export interface CommonFactsContext {
6
6
  type: "facts";
7
- fact: Corti.GuidedDocumentFactMinimal;
7
+ facts: Corti.GuidedDocumentFactMinimal[];
8
8
  }
@@ -7,8 +7,4 @@ export interface StreamConfig {
7
7
  audioEvents?: Corti.StreamAudioEventsConfig;
8
8
  /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
9
9
  audioFormat?: string;
10
- /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
11
- replacements?: Corti.StreamConfigReplacementsItem[];
12
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
13
- keyterms?: Corti.StreamConfigKeyterms;
14
10
  }
@@ -1,14 +1,12 @@
1
1
  export interface StreamErrorDetail {
2
- /** Unique identifier for the request, for support and debugging. */
3
- requestid?: string;
4
2
  /** Error identifier */
5
- id?: string;
3
+ id: string;
6
4
  /** Error title */
7
- title?: string;
5
+ title: string;
8
6
  /** HTTP status code or similar error code */
9
- status?: number;
7
+ status: number;
10
8
  /** Detailed error message */
11
- details?: string;
9
+ details: string;
12
10
  /** Link to documentation or further information */
13
- doc?: string;
11
+ doc: string;
14
12
  }
@@ -14,8 +14,6 @@ export interface TranscribeConfig {
14
14
  audioEvents?: Corti.TranscribeAudioEventsConfig;
15
15
  /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
16
16
  audioFormat?: string;
17
- /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
17
+ /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is limited to 1,000 replacements per stream. */
18
18
  replacements?: Corti.TranscribeConfigReplacementsItem[];
19
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
20
- keyterms?: Corti.TranscribeConfigKeyterms;
21
19
  }
@@ -1,14 +1,12 @@
1
1
  export interface TranscribeErrorMessageError {
2
- /** Unique identifier for the request, for support and debugging. */
3
- requestid?: string;
4
2
  /** Unique error identifier */
5
- id?: string;
3
+ id: string;
6
4
  /** Error title */
7
- title?: string;
5
+ title: string;
8
6
  /** HTTP status code */
9
- status?: number;
7
+ status: number;
10
8
  /** Detailed error description */
11
- details?: string;
9
+ details: string;
12
10
  /** Link to documentation */
13
- doc?: string;
11
+ doc: string;
14
12
  }
@@ -190,15 +190,12 @@ export * from "./StreamAudioEventDataEvent.js";
190
190
  export * from "./StreamAudioEventMessage.js";
191
191
  export * from "./StreamAudioEventsConfig.js";
192
192
  export * from "./StreamConfig.js";
193
- export * from "./StreamConfigKeyterms.js";
194
- export * from "./StreamConfigKeytermsTermsItem.js";
195
193
  export * from "./StreamConfigMessage.js";
196
194
  export * from "./StreamConfigMode.js";
197
195
  export * from "./StreamConfigModeFactGenerationInterval.js";
198
196
  export * from "./StreamConfigModeType.js";
199
197
  export * from "./StreamConfigParticipant.js";
200
198
  export * from "./StreamConfigParticipantRole.js";
201
- export * from "./StreamConfigReplacementsItem.js";
202
199
  export * from "./StreamConfigRetentionPolicy.js";
203
200
  export * from "./StreamConfigStatusMessage.js";
204
201
  export * from "./StreamConfigStatusMessageType.js";
@@ -238,8 +235,6 @@ export * from "./TranscribeCommandMessage.js";
238
235
  export * from "./TranscribeCommandVariable.js";
239
236
  export * from "./TranscribeCommandVariableType.js";
240
237
  export * from "./TranscribeConfig.js";
241
- export * from "./TranscribeConfigKeyterms.js";
242
- export * from "./TranscribeConfigKeytermsTermsItem.js";
243
238
  export * from "./TranscribeConfigMessage.js";
244
239
  export * from "./TranscribeConfigReplacementsItem.js";
245
240
  export * from "./TranscribeConfigStatusMessage.js";
@@ -206,15 +206,12 @@ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
206
206
  __exportStar(require("./StreamAudioEventMessage.js"), exports);
207
207
  __exportStar(require("./StreamAudioEventsConfig.js"), exports);
208
208
  __exportStar(require("./StreamConfig.js"), exports);
209
- __exportStar(require("./StreamConfigKeyterms.js"), exports);
210
- __exportStar(require("./StreamConfigKeytermsTermsItem.js"), exports);
211
209
  __exportStar(require("./StreamConfigMessage.js"), exports);
212
210
  __exportStar(require("./StreamConfigMode.js"), exports);
213
211
  __exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
214
212
  __exportStar(require("./StreamConfigModeType.js"), exports);
215
213
  __exportStar(require("./StreamConfigParticipant.js"), exports);
216
214
  __exportStar(require("./StreamConfigParticipantRole.js"), exports);
217
- __exportStar(require("./StreamConfigReplacementsItem.js"), exports);
218
215
  __exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
219
216
  __exportStar(require("./StreamConfigStatusMessage.js"), exports);
220
217
  __exportStar(require("./StreamConfigStatusMessageType.js"), exports);
@@ -254,8 +251,6 @@ __exportStar(require("./TranscribeCommandMessage.js"), exports);
254
251
  __exportStar(require("./TranscribeCommandVariable.js"), exports);
255
252
  __exportStar(require("./TranscribeCommandVariableType.js"), exports);
256
253
  __exportStar(require("./TranscribeConfig.js"), exports);
257
- __exportStar(require("./TranscribeConfigKeyterms.js"), exports);
258
- __exportStar(require("./TranscribeConfigKeytermsTermsItem.js"), exports);
259
254
  __exportStar(require("./TranscribeConfigMessage.js"), exports);
260
255
  __exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
261
256
  __exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
@@ -6,6 +6,6 @@ export declare const CommonFactsContext: core.serialization.ObjectSchema<seriali
6
6
  export declare namespace CommonFactsContext {
7
7
  interface Raw {
8
8
  type: "facts";
9
- fact: GuidedDocumentFactMinimal.Raw;
9
+ facts: GuidedDocumentFactMinimal.Raw[];
10
10
  }
11
11
  }
@@ -39,5 +39,5 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const GuidedDocumentFactMinimal_js_1 = require("./GuidedDocumentFactMinimal.js");
40
40
  exports.CommonFactsContext = core.serialization.object({
41
41
  type: core.serialization.stringLiteral("facts"),
42
- fact: GuidedDocumentFactMinimal_js_1.GuidedDocumentFactMinimal,
42
+ facts: core.serialization.list(GuidedDocumentFactMinimal_js_1.GuidedDocumentFactMinimal),
43
43
  });
@@ -2,9 +2,7 @@ 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
4
  import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.js";
5
- import { StreamConfigKeyterms } from "./StreamConfigKeyterms.js";
6
5
  import { StreamConfigMode } from "./StreamConfigMode.js";
7
- import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.js";
8
6
  import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.js";
9
7
  import { StreamConfigTranscription } from "./StreamConfigTranscription.js";
10
8
  export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
@@ -15,7 +13,5 @@ export declare namespace StreamConfig {
15
13
  retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
16
14
  audioEvents?: StreamAudioEventsConfig.Raw | null;
17
15
  audioFormat?: string | null;
18
- replacements?: StreamConfigReplacementsItem.Raw[] | null;
19
- keyterms?: StreamConfigKeyterms.Raw | null;
20
16
  }
21
17
  }
@@ -37,9 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.StreamConfig = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const StreamAudioEventsConfig_js_1 = require("./StreamAudioEventsConfig.js");
40
- const StreamConfigKeyterms_js_1 = require("./StreamConfigKeyterms.js");
41
40
  const StreamConfigMode_js_1 = require("./StreamConfigMode.js");
42
- const StreamConfigReplacementsItem_js_1 = require("./StreamConfigReplacementsItem.js");
43
41
  const StreamConfigRetentionPolicy_js_1 = require("./StreamConfigRetentionPolicy.js");
44
42
  const StreamConfigTranscription_js_1 = require("./StreamConfigTranscription.js");
45
43
  exports.StreamConfig = core.serialization.object({
@@ -48,6 +46,4 @@ exports.StreamConfig = core.serialization.object({
48
46
  retentionPolicy: StreamConfigRetentionPolicy_js_1.StreamConfigRetentionPolicy.optional(),
49
47
  audioEvents: StreamAudioEventsConfig_js_1.StreamAudioEventsConfig.optional(),
50
48
  audioFormat: core.serialization.string().optional(),
51
- replacements: core.serialization.list(StreamConfigReplacementsItem_js_1.StreamConfigReplacementsItem).optional(),
52
- keyterms: StreamConfigKeyterms_js_1.StreamConfigKeyterms.optional(),
53
49
  });
@@ -4,11 +4,10 @@ import type * as serializers from "../index.js";
4
4
  export declare const StreamErrorDetail: core.serialization.ObjectSchema<serializers.StreamErrorDetail.Raw, Corti.StreamErrorDetail>;
5
5
  export declare namespace StreamErrorDetail {
6
6
  interface Raw {
7
- requestid?: string | null;
8
- id?: string | null;
9
- title?: string | null;
10
- status?: number | null;
11
- details?: string | null;
12
- doc?: string | null;
7
+ id: string;
8
+ title: string;
9
+ status: number;
10
+ details: string;
11
+ doc: string;
13
12
  }
14
13
  }
@@ -37,10 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.StreamErrorDetail = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.StreamErrorDetail = core.serialization.object({
40
- requestid: core.serialization.string().optional(),
41
- id: core.serialization.string().optional(),
42
- title: core.serialization.string().optional(),
43
- status: core.serialization.number().optional(),
44
- details: core.serialization.string().optional(),
45
- doc: core.serialization.string().optional(),
40
+ id: core.serialization.string(),
41
+ title: core.serialization.string(),
42
+ status: core.serialization.number(),
43
+ details: core.serialization.string(),
44
+ doc: core.serialization.string(),
46
45
  });
@@ -3,7 +3,6 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.js";
5
5
  import { TranscribeCommand } from "./TranscribeCommand.js";
6
- import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.js";
7
6
  import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.js";
8
7
  import { TranscribeFormatting } from "./TranscribeFormatting.js";
9
8
  import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js";
@@ -19,6 +18,5 @@ export declare namespace TranscribeConfig {
19
18
  audioEvents?: TranscribeAudioEventsConfig.Raw | null;
20
19
  audioFormat?: string | null;
21
20
  replacements?: TranscribeConfigReplacementsItem.Raw[] | null;
22
- keyterms?: TranscribeConfigKeyterms.Raw | null;
23
21
  }
24
22
  }
@@ -38,7 +38,6 @@ exports.TranscribeConfig = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const TranscribeAudioEventsConfig_js_1 = require("./TranscribeAudioEventsConfig.js");
40
40
  const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
41
- const TranscribeConfigKeyterms_js_1 = require("./TranscribeConfigKeyterms.js");
42
41
  const TranscribeConfigReplacementsItem_js_1 = require("./TranscribeConfigReplacementsItem.js");
43
42
  const TranscribeFormatting_js_1 = require("./TranscribeFormatting.js");
44
43
  const TranscribeSupportedLanguage_js_1 = require("./TranscribeSupportedLanguage.js");
@@ -52,5 +51,4 @@ exports.TranscribeConfig = core.serialization.object({
52
51
  audioEvents: TranscribeAudioEventsConfig_js_1.TranscribeAudioEventsConfig.optional(),
53
52
  audioFormat: core.serialization.string().optional(),
54
53
  replacements: core.serialization.list(TranscribeConfigReplacementsItem_js_1.TranscribeConfigReplacementsItem).optional(),
55
- keyterms: TranscribeConfigKeyterms_js_1.TranscribeConfigKeyterms.optional(),
56
54
  });
@@ -4,11 +4,10 @@ import type * as serializers from "../index.js";
4
4
  export declare const TranscribeErrorMessageError: core.serialization.ObjectSchema<serializers.TranscribeErrorMessageError.Raw, Corti.TranscribeErrorMessageError>;
5
5
  export declare namespace TranscribeErrorMessageError {
6
6
  interface Raw {
7
- requestid?: string | null;
8
- id?: string | null;
9
- title?: string | null;
10
- status?: number | null;
11
- details?: string | null;
12
- doc?: string | null;
7
+ id: string;
8
+ title: string;
9
+ status: number;
10
+ details: string;
11
+ doc: string;
13
12
  }
14
13
  }
@@ -37,10 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TranscribeErrorMessageError = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.TranscribeErrorMessageError = core.serialization.object({
40
- requestid: core.serialization.string().optional(),
41
- id: core.serialization.string().optional(),
42
- title: core.serialization.string().optional(),
43
- status: core.serialization.number().optional(),
44
- details: core.serialization.string().optional(),
45
- doc: core.serialization.string().optional(),
40
+ id: core.serialization.string(),
41
+ title: core.serialization.string(),
42
+ status: core.serialization.number(),
43
+ details: core.serialization.string(),
44
+ doc: core.serialization.string(),
46
45
  });
@@ -190,15 +190,12 @@ export * from "./StreamAudioEventDataEvent.js";
190
190
  export * from "./StreamAudioEventMessage.js";
191
191
  export * from "./StreamAudioEventsConfig.js";
192
192
  export * from "./StreamConfig.js";
193
- export * from "./StreamConfigKeyterms.js";
194
- export * from "./StreamConfigKeytermsTermsItem.js";
195
193
  export * from "./StreamConfigMessage.js";
196
194
  export * from "./StreamConfigMode.js";
197
195
  export * from "./StreamConfigModeFactGenerationInterval.js";
198
196
  export * from "./StreamConfigModeType.js";
199
197
  export * from "./StreamConfigParticipant.js";
200
198
  export * from "./StreamConfigParticipantRole.js";
201
- export * from "./StreamConfigReplacementsItem.js";
202
199
  export * from "./StreamConfigRetentionPolicy.js";
203
200
  export * from "./StreamConfigStatusMessage.js";
204
201
  export * from "./StreamConfigStatusMessageType.js";
@@ -238,8 +235,6 @@ export * from "./TranscribeCommandMessage.js";
238
235
  export * from "./TranscribeCommandVariable.js";
239
236
  export * from "./TranscribeCommandVariableType.js";
240
237
  export * from "./TranscribeConfig.js";
241
- export * from "./TranscribeConfigKeyterms.js";
242
- export * from "./TranscribeConfigKeytermsTermsItem.js";
243
238
  export * from "./TranscribeConfigMessage.js";
244
239
  export * from "./TranscribeConfigReplacementsItem.js";
245
240
  export * from "./TranscribeConfigStatusMessage.js";
@@ -206,15 +206,12 @@ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
206
206
  __exportStar(require("./StreamAudioEventMessage.js"), exports);
207
207
  __exportStar(require("./StreamAudioEventsConfig.js"), exports);
208
208
  __exportStar(require("./StreamConfig.js"), exports);
209
- __exportStar(require("./StreamConfigKeyterms.js"), exports);
210
- __exportStar(require("./StreamConfigKeytermsTermsItem.js"), exports);
211
209
  __exportStar(require("./StreamConfigMessage.js"), exports);
212
210
  __exportStar(require("./StreamConfigMode.js"), exports);
213
211
  __exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
214
212
  __exportStar(require("./StreamConfigModeType.js"), exports);
215
213
  __exportStar(require("./StreamConfigParticipant.js"), exports);
216
214
  __exportStar(require("./StreamConfigParticipantRole.js"), exports);
217
- __exportStar(require("./StreamConfigReplacementsItem.js"), exports);
218
215
  __exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
219
216
  __exportStar(require("./StreamConfigStatusMessage.js"), exports);
220
217
  __exportStar(require("./StreamConfigStatusMessageType.js"), exports);
@@ -254,8 +251,6 @@ __exportStar(require("./TranscribeCommandMessage.js"), exports);
254
251
  __exportStar(require("./TranscribeCommandVariable.js"), exports);
255
252
  __exportStar(require("./TranscribeCommandVariableType.js"), exports);
256
253
  __exportStar(require("./TranscribeConfig.js"), exports);
257
- __exportStar(require("./TranscribeConfigKeyterms.js"), exports);
258
- __exportStar(require("./TranscribeConfigKeytermsTermsItem.js"), exports);
259
254
  __exportStar(require("./TranscribeConfigMessage.js"), exports);
260
255
  __exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
261
256
  __exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.0-rc.2";
1
+ export declare const SDK_VERSION = "4.0.0-rc";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.0-rc.2";
4
+ exports.SDK_VERSION = "4.0.0-rc";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@corti/sdk",
9
- "X-Fern-SDK-Version": "3.1.0-rc.2",
10
- "User-Agent": "@corti/sdk/3.1.0-rc.2",
9
+ "X-Fern-SDK-Version": "4.0.0-rc",
10
+ "User-Agent": "@corti/sdk/4.0.0-rc",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * A single fact provided as input context to the model.
3
+ * A list of facts provided as input context to the model.
4
4
  */
5
5
  export interface CommonFactsContext {
6
6
  type: "facts";
7
- fact: Corti.GuidedDocumentFactMinimal;
7
+ facts: Corti.GuidedDocumentFactMinimal[];
8
8
  }
@@ -7,8 +7,4 @@ export interface StreamConfig {
7
7
  audioEvents?: Corti.StreamAudioEventsConfig;
8
8
  /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
9
9
  audioFormat?: string;
10
- /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
11
- replacements?: Corti.StreamConfigReplacementsItem[];
12
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
13
- keyterms?: Corti.StreamConfigKeyterms;
14
10
  }
@@ -1,14 +1,12 @@
1
1
  export interface StreamErrorDetail {
2
- /** Unique identifier for the request, for support and debugging. */
3
- requestid?: string;
4
2
  /** Error identifier */
5
- id?: string;
3
+ id: string;
6
4
  /** Error title */
7
- title?: string;
5
+ title: string;
8
6
  /** HTTP status code or similar error code */
9
- status?: number;
7
+ status: number;
10
8
  /** Detailed error message */
11
- details?: string;
9
+ details: string;
12
10
  /** Link to documentation or further information */
13
- doc?: string;
11
+ doc: string;
14
12
  }
@@ -14,8 +14,6 @@ export interface TranscribeConfig {
14
14
  audioEvents?: Corti.TranscribeAudioEventsConfig;
15
15
  /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
16
16
  audioFormat?: string;
17
- /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
17
+ /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is limited to 1,000 replacements per stream. */
18
18
  replacements?: Corti.TranscribeConfigReplacementsItem[];
19
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
20
- keyterms?: Corti.TranscribeConfigKeyterms;
21
19
  }
@@ -1,14 +1,12 @@
1
1
  export interface TranscribeErrorMessageError {
2
- /** Unique identifier for the request, for support and debugging. */
3
- requestid?: string;
4
2
  /** Unique error identifier */
5
- id?: string;
3
+ id: string;
6
4
  /** Error title */
7
- title?: string;
5
+ title: string;
8
6
  /** HTTP status code */
9
- status?: number;
7
+ status: number;
10
8
  /** Detailed error description */
11
- details?: string;
9
+ details: string;
12
10
  /** Link to documentation */
13
- doc?: string;
11
+ doc: string;
14
12
  }
@@ -190,15 +190,12 @@ export * from "./StreamAudioEventDataEvent.mjs";
190
190
  export * from "./StreamAudioEventMessage.mjs";
191
191
  export * from "./StreamAudioEventsConfig.mjs";
192
192
  export * from "./StreamConfig.mjs";
193
- export * from "./StreamConfigKeyterms.mjs";
194
- export * from "./StreamConfigKeytermsTermsItem.mjs";
195
193
  export * from "./StreamConfigMessage.mjs";
196
194
  export * from "./StreamConfigMode.mjs";
197
195
  export * from "./StreamConfigModeFactGenerationInterval.mjs";
198
196
  export * from "./StreamConfigModeType.mjs";
199
197
  export * from "./StreamConfigParticipant.mjs";
200
198
  export * from "./StreamConfigParticipantRole.mjs";
201
- export * from "./StreamConfigReplacementsItem.mjs";
202
199
  export * from "./StreamConfigRetentionPolicy.mjs";
203
200
  export * from "./StreamConfigStatusMessage.mjs";
204
201
  export * from "./StreamConfigStatusMessageType.mjs";
@@ -238,8 +235,6 @@ export * from "./TranscribeCommandMessage.mjs";
238
235
  export * from "./TranscribeCommandVariable.mjs";
239
236
  export * from "./TranscribeCommandVariableType.mjs";
240
237
  export * from "./TranscribeConfig.mjs";
241
- export * from "./TranscribeConfigKeyterms.mjs";
242
- export * from "./TranscribeConfigKeytermsTermsItem.mjs";
243
238
  export * from "./TranscribeConfigMessage.mjs";
244
239
  export * from "./TranscribeConfigReplacementsItem.mjs";
245
240
  export * from "./TranscribeConfigStatusMessage.mjs";
@@ -190,15 +190,12 @@ export * from "./StreamAudioEventDataEvent.mjs";
190
190
  export * from "./StreamAudioEventMessage.mjs";
191
191
  export * from "./StreamAudioEventsConfig.mjs";
192
192
  export * from "./StreamConfig.mjs";
193
- export * from "./StreamConfigKeyterms.mjs";
194
- export * from "./StreamConfigKeytermsTermsItem.mjs";
195
193
  export * from "./StreamConfigMessage.mjs";
196
194
  export * from "./StreamConfigMode.mjs";
197
195
  export * from "./StreamConfigModeFactGenerationInterval.mjs";
198
196
  export * from "./StreamConfigModeType.mjs";
199
197
  export * from "./StreamConfigParticipant.mjs";
200
198
  export * from "./StreamConfigParticipantRole.mjs";
201
- export * from "./StreamConfigReplacementsItem.mjs";
202
199
  export * from "./StreamConfigRetentionPolicy.mjs";
203
200
  export * from "./StreamConfigStatusMessage.mjs";
204
201
  export * from "./StreamConfigStatusMessageType.mjs";
@@ -238,8 +235,6 @@ export * from "./TranscribeCommandMessage.mjs";
238
235
  export * from "./TranscribeCommandVariable.mjs";
239
236
  export * from "./TranscribeCommandVariableType.mjs";
240
237
  export * from "./TranscribeConfig.mjs";
241
- export * from "./TranscribeConfigKeyterms.mjs";
242
- export * from "./TranscribeConfigKeytermsTermsItem.mjs";
243
238
  export * from "./TranscribeConfigMessage.mjs";
244
239
  export * from "./TranscribeConfigReplacementsItem.mjs";
245
240
  export * from "./TranscribeConfigStatusMessage.mjs";
@@ -6,6 +6,6 @@ export declare const CommonFactsContext: core.serialization.ObjectSchema<seriali
6
6
  export declare namespace CommonFactsContext {
7
7
  interface Raw {
8
8
  type: "facts";
9
- fact: GuidedDocumentFactMinimal.Raw;
9
+ facts: GuidedDocumentFactMinimal.Raw[];
10
10
  }
11
11
  }
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import { GuidedDocumentFactMinimal } from "./GuidedDocumentFactMinimal.mjs";
4
4
  export const CommonFactsContext = core.serialization.object({
5
5
  type: core.serialization.stringLiteral("facts"),
6
- fact: GuidedDocumentFactMinimal,
6
+ facts: core.serialization.list(GuidedDocumentFactMinimal),
7
7
  });
@@ -2,9 +2,7 @@ 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
4
  import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.mjs";
5
- import { StreamConfigKeyterms } from "./StreamConfigKeyterms.mjs";
6
5
  import { StreamConfigMode } from "./StreamConfigMode.mjs";
7
- import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.mjs";
8
6
  import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
9
7
  import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
10
8
  export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
@@ -15,7 +13,5 @@ export declare namespace StreamConfig {
15
13
  retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
16
14
  audioEvents?: StreamAudioEventsConfig.Raw | null;
17
15
  audioFormat?: string | null;
18
- replacements?: StreamConfigReplacementsItem.Raw[] | null;
19
- keyterms?: StreamConfigKeyterms.Raw | null;
20
16
  }
21
17
  }
@@ -1,9 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
3
  import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.mjs";
4
- import { StreamConfigKeyterms } from "./StreamConfigKeyterms.mjs";
5
4
  import { StreamConfigMode } from "./StreamConfigMode.mjs";
6
- import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.mjs";
7
5
  import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
8
6
  import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
9
7
  export const StreamConfig = core.serialization.object({
@@ -12,6 +10,4 @@ export const StreamConfig = core.serialization.object({
12
10
  retentionPolicy: StreamConfigRetentionPolicy.optional(),
13
11
  audioEvents: StreamAudioEventsConfig.optional(),
14
12
  audioFormat: core.serialization.string().optional(),
15
- replacements: core.serialization.list(StreamConfigReplacementsItem).optional(),
16
- keyterms: StreamConfigKeyterms.optional(),
17
13
  });
@@ -4,11 +4,10 @@ import type * as serializers from "../index.mjs";
4
4
  export declare const StreamErrorDetail: core.serialization.ObjectSchema<serializers.StreamErrorDetail.Raw, Corti.StreamErrorDetail>;
5
5
  export declare namespace StreamErrorDetail {
6
6
  interface Raw {
7
- requestid?: string | null;
8
- id?: string | null;
9
- title?: string | null;
10
- status?: number | null;
11
- details?: string | null;
12
- doc?: string | null;
7
+ id: string;
8
+ title: string;
9
+ status: number;
10
+ details: string;
11
+ doc: string;
13
12
  }
14
13
  }
@@ -1,10 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
3
  export const StreamErrorDetail = core.serialization.object({
4
- requestid: core.serialization.string().optional(),
5
- id: core.serialization.string().optional(),
6
- title: core.serialization.string().optional(),
7
- status: core.serialization.number().optional(),
8
- details: core.serialization.string().optional(),
9
- doc: core.serialization.string().optional(),
4
+ id: core.serialization.string(),
5
+ title: core.serialization.string(),
6
+ status: core.serialization.number(),
7
+ details: core.serialization.string(),
8
+ doc: core.serialization.string(),
10
9
  });
@@ -3,7 +3,6 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.mjs";
5
5
  import { TranscribeCommand } from "./TranscribeCommand.mjs";
6
- import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.mjs";
7
6
  import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.mjs";
8
7
  import { TranscribeFormatting } from "./TranscribeFormatting.mjs";
9
8
  import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.mjs";
@@ -19,6 +18,5 @@ export declare namespace TranscribeConfig {
19
18
  audioEvents?: TranscribeAudioEventsConfig.Raw | null;
20
19
  audioFormat?: string | null;
21
20
  replacements?: TranscribeConfigReplacementsItem.Raw[] | null;
22
- keyterms?: TranscribeConfigKeyterms.Raw | null;
23
21
  }
24
22
  }
@@ -2,7 +2,6 @@
2
2
  import * as core from "../../core/index.mjs";
3
3
  import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.mjs";
4
4
  import { TranscribeCommand } from "./TranscribeCommand.mjs";
5
- import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.mjs";
6
5
  import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.mjs";
7
6
  import { TranscribeFormatting } from "./TranscribeFormatting.mjs";
8
7
  import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.mjs";
@@ -16,5 +15,4 @@ export const TranscribeConfig = core.serialization.object({
16
15
  audioEvents: TranscribeAudioEventsConfig.optional(),
17
16
  audioFormat: core.serialization.string().optional(),
18
17
  replacements: core.serialization.list(TranscribeConfigReplacementsItem).optional(),
19
- keyterms: TranscribeConfigKeyterms.optional(),
20
18
  });