@corti/sdk 6.0.0-rc → 6.0.0-rc.2

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 (69) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +2 -1
  3. package/dist/cjs/api/resources/transcribe/client/Socket.js +12 -0
  4. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  5. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +1 -1
  6. package/dist/cjs/api/types/CommonCodingSystemEnum.js +1 -1
  7. package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
  8. package/dist/cjs/api/types/TranscribeCommandRemove.d.ts +7 -0
  9. package/dist/cjs/api/types/TranscribeCommandRemove.js +3 -0
  10. package/dist/cjs/api/types/TranscribeCommandsUpdateAcceptedMessage.d.ts +8 -0
  11. package/dist/cjs/api/types/TranscribeCommandsUpdateAcceptedMessage.js +3 -0
  12. package/dist/cjs/api/types/TranscribeCommandsUpdateDeniedMessage.d.ts +12 -0
  13. package/dist/cjs/api/types/TranscribeCommandsUpdateDeniedMessage.js +3 -0
  14. package/dist/cjs/api/types/TranscribeCommandsUpdateMessage.d.ts +11 -0
  15. package/dist/cjs/api/types/TranscribeCommandsUpdateMessage.js +3 -0
  16. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -1
  17. package/dist/cjs/api/types/index.d.ts +4 -0
  18. package/dist/cjs/api/types/index.js +4 -0
  19. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +4 -2
  20. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +4 -0
  21. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
  22. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +1 -1
  23. package/dist/cjs/serialization/types/TranscribeCommandRemove.d.ts +9 -0
  24. package/dist/cjs/serialization/types/TranscribeCommandRemove.js +41 -0
  25. package/dist/cjs/serialization/types/TranscribeCommandsUpdateAcceptedMessage.d.ts +12 -0
  26. package/dist/cjs/serialization/types/TranscribeCommandsUpdateAcceptedMessage.js +44 -0
  27. package/dist/cjs/serialization/types/TranscribeCommandsUpdateDeniedMessage.d.ts +14 -0
  28. package/dist/cjs/serialization/types/TranscribeCommandsUpdateDeniedMessage.js +46 -0
  29. package/dist/cjs/serialization/types/TranscribeCommandsUpdateMessage.d.ts +13 -0
  30. package/dist/cjs/serialization/types/TranscribeCommandsUpdateMessage.js +45 -0
  31. package/dist/cjs/serialization/types/index.d.ts +4 -0
  32. package/dist/cjs/serialization/types/index.js +4 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/BaseClient.mjs +2 -2
  36. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +2 -1
  37. package/dist/esm/api/resources/transcribe/client/Socket.mjs +12 -0
  38. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  39. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +1 -1
  40. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +1 -1
  41. package/dist/esm/api/types/StreamConfig.d.mts +1 -1
  42. package/dist/esm/api/types/TranscribeCommandRemove.d.mts +7 -0
  43. package/dist/esm/api/types/TranscribeCommandRemove.mjs +2 -0
  44. package/dist/esm/api/types/TranscribeCommandsUpdateAcceptedMessage.d.mts +8 -0
  45. package/dist/esm/api/types/TranscribeCommandsUpdateAcceptedMessage.mjs +2 -0
  46. package/dist/esm/api/types/TranscribeCommandsUpdateDeniedMessage.d.mts +12 -0
  47. package/dist/esm/api/types/TranscribeCommandsUpdateDeniedMessage.mjs +2 -0
  48. package/dist/esm/api/types/TranscribeCommandsUpdateMessage.d.mts +11 -0
  49. package/dist/esm/api/types/TranscribeCommandsUpdateMessage.mjs +2 -0
  50. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -1
  51. package/dist/esm/api/types/index.d.mts +4 -0
  52. package/dist/esm/api/types/index.mjs +4 -0
  53. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +4 -2
  54. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +4 -0
  55. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
  56. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +1 -1
  57. package/dist/esm/serialization/types/TranscribeCommandRemove.d.mts +9 -0
  58. package/dist/esm/serialization/types/TranscribeCommandRemove.mjs +5 -0
  59. package/dist/esm/serialization/types/TranscribeCommandsUpdateAcceptedMessage.d.mts +12 -0
  60. package/dist/esm/serialization/types/TranscribeCommandsUpdateAcceptedMessage.mjs +8 -0
  61. package/dist/esm/serialization/types/TranscribeCommandsUpdateDeniedMessage.d.mts +14 -0
  62. package/dist/esm/serialization/types/TranscribeCommandsUpdateDeniedMessage.mjs +10 -0
  63. package/dist/esm/serialization/types/TranscribeCommandsUpdateMessage.d.mts +13 -0
  64. package/dist/esm/serialization/types/TranscribeCommandsUpdateMessage.mjs +9 -0
  65. package/dist/esm/serialization/types/index.d.mts +4 -0
  66. package/dist/esm/serialization/types/index.mjs +4 -0
  67. package/dist/esm/version.d.mts +1 -1
  68. package/dist/esm/version.mjs +1 -1
  69. 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": "6.0.0-rc",
47
- "User-Agent": "@corti/sdk/6.0.0-rc",
46
+ "X-Fern-SDK-Version": "6.0.0-rc.2",
47
+ "User-Agent": "@corti/sdk/6.0.0-rc.2",
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,
@@ -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 | Corti.TranscribeAudioEventMessage;
7
+ type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage | Corti.TranscribeCommandsUpdateAcceptedMessage | Corti.TranscribeCommandsUpdateDeniedMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -37,6 +37,7 @@ export declare class TranscribeSocket {
37
37
  sendAudio(message: ArrayBufferLike | Blob | ArrayBufferView): void;
38
38
  sendFlush(message: Corti.TranscribeFlushMessage): void;
39
39
  sendEnd(message: Corti.TranscribeEndMessage): void;
40
+ sendCommandsUpdate(message: Corti.TranscribeCommandsUpdateMessage): void;
40
41
  /** Connect to the websocket and register event handlers. */
41
42
  connect(): TranscribeSocket;
42
43
  /** Close the websocket and unregister event handlers. */
@@ -47,6 +47,7 @@ exports.TranscribeSocket = void 0;
47
47
  const core = __importStar(require("../../../../core/index.js"));
48
48
  const json_js_1 = require("../../../../core/json.js");
49
49
  const serializers = __importStar(require("../../../../serialization/index.js"));
50
+ const TranscribeCommandsUpdateMessage_js_1 = require("../../../../serialization/types/TranscribeCommandsUpdateMessage.js");
50
51
  const TranscribeConfigMessage_js_1 = require("../../../../serialization/types/TranscribeConfigMessage.js");
51
52
  const TranscribeEndMessage_js_1 = require("../../../../serialization/types/TranscribeEndMessage.js");
52
53
  const TranscribeFlushMessage_js_1 = require("../../../../serialization/types/TranscribeFlushMessage.js");
@@ -143,6 +144,17 @@ class TranscribeSocket {
143
144
  });
144
145
  this.socket.send(JSON.stringify(jsonPayload));
145
146
  }
147
+ sendCommandsUpdate(message) {
148
+ this.assertSocketIsOpen();
149
+ const jsonPayload = TranscribeCommandsUpdateMessage_js_1.TranscribeCommandsUpdateMessage.jsonOrThrow(message, {
150
+ unrecognizedObjectKeys: "passthrough",
151
+ allowUnrecognizedUnionMembers: true,
152
+ allowUnrecognizedEnumValues: true,
153
+ skipValidation: true,
154
+ omitUndefined: true,
155
+ });
156
+ this.socket.send(JSON.stringify(jsonPayload));
157
+ }
146
158
  /** Connect to the websocket and register event handlers. */
147
159
  connect() {
148
160
  this.socket.reconnect();
@@ -26,7 +26,7 @@ export interface TranscriptsCreateRequest {
26
26
  participants?: Corti.TranscriptsParticipant[];
27
27
  /** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
28
28
  async?: boolean;
29
- /** 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. A defined replacement can have a maximum length of 50 characters and 5-words for `find` and 100 characters and 10-words for `replace`. */
29
+ /** 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. A defined replacement can have a maximum length of 100 characters and 10-words for `find` and `replace` fields. */
30
30
  replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
31
31
  /** 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. */
32
32
  keyterms?: Corti.TranscriptsCreateRequestKeyterms;
@@ -27,7 +27,7 @@ export declare const CommonCodingSystemEnum: {
27
27
  readonly MeddraFr: "meddra-fr";
28
28
  readonly MeddraEs: "meddra-es";
29
29
  readonly MeddraDe: "meddra-de";
30
- readonly MeddraDk: "meddra-dk";
30
+ readonly MeddraNo: "meddra-no";
31
31
  readonly MeddraSe: "meddra-se";
32
32
  readonly Sks: "sks";
33
33
  readonly Kvaa: "kvaa";
@@ -31,7 +31,7 @@ exports.CommonCodingSystemEnum = {
31
31
  MeddraFr: "meddra-fr",
32
32
  MeddraEs: "meddra-es",
33
33
  MeddraDe: "meddra-de",
34
- MeddraDk: "meddra-dk",
34
+ MeddraNo: "meddra-no",
35
35
  MeddraSe: "meddra-se",
36
36
  Sks: "sks",
37
37
  Kvaa: "kvaa",
@@ -8,7 +8,7 @@ export interface StreamConfig {
8
8
  formatting?: Corti.StreamFormatting;
9
9
  /** 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). */
10
10
  audioFormat?: string;
11
- /** 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. A defined replacement can have a maximum length of 50 characters and 5-words for `find` and 100 characters and 10-words for `replace`. */
11
+ /** 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. A defined replacement can have a maximum length of 100 characters and 10-words for `find` and `replace` fields. */
12
12
  replacements?: Corti.StreamConfigReplacementsItem[];
13
13
  /** 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. */
14
14
  keyterms?: Corti.StreamConfigKeyterms;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Minimal command reference for removal. Only the id field is allowed; phrases, variables, and other fields are rejected.
3
+ */
4
+ export interface TranscribeCommandRemove {
5
+ /** ID of the command to remove. */
6
+ id: string;
7
+ }
@@ -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
+ import type * as Corti from "../index.js";
2
+ export interface TranscribeCommandsUpdateAcceptedMessage {
3
+ type: "commands_update_accepted";
4
+ /** The session ID. */
5
+ sessionId: string;
6
+ /** The full resolved list of active commands after the update. This is the complete command set available for recognition. */
7
+ commands: Corti.TranscribeCommand[];
8
+ }
@@ -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,12 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface TranscribeCommandsUpdateDeniedMessage {
3
+ type: "commands_update_denied";
4
+ /** The reason the update was denied. Possible values include "No active session. Send a valid config message first.", "unknown parameter(s)", "ineligible parameter(s): <list>", and "invalid definition". */
5
+ reason?: string;
6
+ /** List of invalid field names that caused the rejection, when applicable. */
7
+ fields?: string[];
8
+ /** The session ID. */
9
+ sessionId: string;
10
+ /** Empty array. The existing command configuration is unchanged. */
11
+ commands: Corti.TranscribeCommand[];
12
+ }
@@ -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,11 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Patch-based command update. Include only the commands being added, updated, or removed, not the full command list. At least one of add or remove must be present. Updates are applied atomically; if validation fails, the existing command configuration remains unchanged.
4
+ */
5
+ export interface TranscribeCommandsUpdateMessage {
6
+ type: "commands_update";
7
+ /** Commands to add or update. Adding a command with an id that already exists overwrites the existing command. Each command must include the full definition (id, phrases, variables). */
8
+ add?: Corti.TranscribeCommand[];
9
+ /** Commands to remove by exact id match. Only the id field is required and allowed in remove definitions. */
10
+ remove?: Corti.TranscribeCommandRemove[];
11
+ }
@@ -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 });
@@ -14,7 +14,7 @@ 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. A defined replacement can have a maximum length of 50 characters and 5-words for `find` and 100 characters and 10-words for `replace`. */
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. A defined replacement can have a maximum length of 100 characters and 10-words for `find` and `replace` fields. */
18
18
  replacements?: Corti.TranscribeConfigReplacementsItem[];
19
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. */
20
20
  keyterms?: Corti.TranscribeConfigKeyterms;
@@ -337,6 +337,10 @@ export * from "./TranscribeAudioEventsConfig.js";
337
337
  export * from "./TranscribeCommand.js";
338
338
  export * from "./TranscribeCommandData.js";
339
339
  export * from "./TranscribeCommandMessage.js";
340
+ export * from "./TranscribeCommandRemove.js";
341
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.js";
342
+ export * from "./TranscribeCommandsUpdateDeniedMessage.js";
343
+ export * from "./TranscribeCommandsUpdateMessage.js";
340
344
  export * from "./TranscribeCommandVariable.js";
341
345
  export * from "./TranscribeCommandVariableType.js";
342
346
  export * from "./TranscribeConfig.js";
@@ -353,6 +353,10 @@ __exportStar(require("./TranscribeAudioEventsConfig.js"), exports);
353
353
  __exportStar(require("./TranscribeCommand.js"), exports);
354
354
  __exportStar(require("./TranscribeCommandData.js"), exports);
355
355
  __exportStar(require("./TranscribeCommandMessage.js"), exports);
356
+ __exportStar(require("./TranscribeCommandRemove.js"), exports);
357
+ __exportStar(require("./TranscribeCommandsUpdateAcceptedMessage.js"), exports);
358
+ __exportStar(require("./TranscribeCommandsUpdateDeniedMessage.js"), exports);
359
+ __exportStar(require("./TranscribeCommandsUpdateMessage.js"), exports);
356
360
  __exportStar(require("./TranscribeCommandVariable.js"), exports);
357
361
  __exportStar(require("./TranscribeCommandVariableType.js"), exports);
358
362
  __exportStar(require("./TranscribeConfig.js"), exports);
@@ -3,6 +3,8 @@ import * as core from "../../../../../core/index.js";
3
3
  import type * as serializers from "../../../../index.js";
4
4
  import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.js";
5
5
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.js";
6
+ import { TranscribeCommandsUpdateAcceptedMessage } from "../../../../types/TranscribeCommandsUpdateAcceptedMessage.js";
7
+ import { TranscribeCommandsUpdateDeniedMessage } from "../../../../types/TranscribeCommandsUpdateDeniedMessage.js";
6
8
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.js";
7
9
  import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.js";
8
10
  import { TranscribeEndedMessage } from "../../../../types/TranscribeEndedMessage.js";
@@ -10,7 +12,7 @@ import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage
10
12
  import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.js";
11
13
  import { TranscribeTranscriptMessage } from "../../../../types/TranscribeTranscriptMessage.js";
12
14
  import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage.js";
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>;
15
+ 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 | Corti.TranscribeCommandsUpdateAcceptedMessage | Corti.TranscribeCommandsUpdateDeniedMessage>;
14
16
  export declare namespace TranscribeSocketResponse {
15
- type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw | TranscribeAudioEventMessage.Raw;
17
+ type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw | TranscribeAudioEventMessage.Raw | TranscribeCommandsUpdateAcceptedMessage.Raw | TranscribeCommandsUpdateDeniedMessage.Raw;
16
18
  }
@@ -38,6 +38,8 @@ exports.TranscribeSocketResponse = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  const TranscribeAudioEventMessage_js_1 = require("../../../../types/TranscribeAudioEventMessage.js");
40
40
  const TranscribeCommandMessage_js_1 = require("../../../../types/TranscribeCommandMessage.js");
41
+ const TranscribeCommandsUpdateAcceptedMessage_js_1 = require("../../../../types/TranscribeCommandsUpdateAcceptedMessage.js");
42
+ const TranscribeCommandsUpdateDeniedMessage_js_1 = require("../../../../types/TranscribeCommandsUpdateDeniedMessage.js");
41
43
  const TranscribeConfigStatusMessage_js_1 = require("../../../../types/TranscribeConfigStatusMessage.js");
42
44
  const TranscribeDeltaUsageMessage_js_1 = require("../../../../types/TranscribeDeltaUsageMessage.js");
43
45
  const TranscribeEndedMessage_js_1 = require("../../../../types/TranscribeEndedMessage.js");
@@ -55,4 +57,6 @@ exports.TranscribeSocketResponse = core.serialization.undiscriminatedUnion([
55
57
  TranscribeCommandMessage_js_1.TranscribeCommandMessage,
56
58
  TranscribeConfigStatusMessage_js_1.TranscribeConfigStatusMessage,
57
59
  TranscribeAudioEventMessage_js_1.TranscribeAudioEventMessage,
60
+ TranscribeCommandsUpdateAcceptedMessage_js_1.TranscribeCommandsUpdateAcceptedMessage,
61
+ TranscribeCommandsUpdateDeniedMessage_js_1.TranscribeCommandsUpdateDeniedMessage,
58
62
  ]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const CommonCodingSystemEnum: core.serialization.Schema<serializers.CommonCodingSystemEnum.Raw, Corti.CommonCodingSystemEnum>;
5
5
  export declare namespace CommonCodingSystemEnum {
6
- type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam" | "snomedctint" | "snomedctde" | "snomedctfr" | "snomedctuk" | "snomedctes" | "snomedctdk" | "snomedctse" | "snomedctus" | "meddra-it" | "meddra-en" | "meddra-fr" | "meddra-es" | "meddra-de" | "meddra-dk" | "meddra-se" | "sks" | "kvaa";
6
+ type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam" | "snomedctint" | "snomedctde" | "snomedctfr" | "snomedctuk" | "snomedctes" | "snomedctdk" | "snomedctse" | "snomedctus" | "meddra-it" | "meddra-en" | "meddra-fr" | "meddra-es" | "meddra-de" | "meddra-no" | "meddra-se" | "sks" | "kvaa";
7
7
  }
@@ -65,7 +65,7 @@ exports.CommonCodingSystemEnum = core.serialization.enum_([
65
65
  "meddra-fr",
66
66
  "meddra-es",
67
67
  "meddra-de",
68
- "meddra-dk",
68
+ "meddra-no",
69
69
  "meddra-se",
70
70
  "sks",
71
71
  "kvaa",
@@ -0,0 +1,9 @@
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 TranscribeCommandRemove: core.serialization.ObjectSchema<serializers.TranscribeCommandRemove.Raw, Corti.TranscribeCommandRemove>;
5
+ export declare namespace TranscribeCommandRemove {
6
+ interface Raw {
7
+ id: string;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
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.TranscribeCommandRemove = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.TranscribeCommandRemove = core.serialization.object({
40
+ id: core.serialization.string(),
41
+ });
@@ -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 { TranscribeCommand } from "./TranscribeCommand.js";
5
+ export declare const TranscribeCommandsUpdateAcceptedMessage: core.serialization.ObjectSchema<serializers.TranscribeCommandsUpdateAcceptedMessage.Raw, Corti.TranscribeCommandsUpdateAcceptedMessage>;
6
+ export declare namespace TranscribeCommandsUpdateAcceptedMessage {
7
+ interface Raw {
8
+ type: "commands_update_accepted";
9
+ sessionId: string;
10
+ commands: TranscribeCommand.Raw[];
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.TranscribeCommandsUpdateAcceptedMessage = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
40
+ exports.TranscribeCommandsUpdateAcceptedMessage = core.serialization.object({
41
+ type: core.serialization.stringLiteral("commands_update_accepted"),
42
+ sessionId: core.serialization.string(),
43
+ commands: core.serialization.list(TranscribeCommand_js_1.TranscribeCommand),
44
+ });
@@ -0,0 +1,14 @@
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 { TranscribeCommand } from "./TranscribeCommand.js";
5
+ export declare const TranscribeCommandsUpdateDeniedMessage: core.serialization.ObjectSchema<serializers.TranscribeCommandsUpdateDeniedMessage.Raw, Corti.TranscribeCommandsUpdateDeniedMessage>;
6
+ export declare namespace TranscribeCommandsUpdateDeniedMessage {
7
+ interface Raw {
8
+ type: "commands_update_denied";
9
+ reason?: string | null;
10
+ fields?: string[] | null;
11
+ sessionId: string;
12
+ commands: TranscribeCommand.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,46 @@
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.TranscribeCommandsUpdateDeniedMessage = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
40
+ exports.TranscribeCommandsUpdateDeniedMessage = core.serialization.object({
41
+ type: core.serialization.stringLiteral("commands_update_denied"),
42
+ reason: core.serialization.string().optional(),
43
+ fields: core.serialization.list(core.serialization.string()).optional(),
44
+ sessionId: core.serialization.string(),
45
+ commands: core.serialization.list(TranscribeCommand_js_1.TranscribeCommand),
46
+ });
@@ -0,0 +1,13 @@
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 { TranscribeCommand } from "./TranscribeCommand.js";
5
+ import { TranscribeCommandRemove } from "./TranscribeCommandRemove.js";
6
+ export declare const TranscribeCommandsUpdateMessage: core.serialization.ObjectSchema<serializers.TranscribeCommandsUpdateMessage.Raw, Corti.TranscribeCommandsUpdateMessage>;
7
+ export declare namespace TranscribeCommandsUpdateMessage {
8
+ interface Raw {
9
+ type: "commands_update";
10
+ add?: TranscribeCommand.Raw[] | null;
11
+ remove?: TranscribeCommandRemove.Raw[] | null;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
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.TranscribeCommandsUpdateMessage = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
40
+ const TranscribeCommandRemove_js_1 = require("./TranscribeCommandRemove.js");
41
+ exports.TranscribeCommandsUpdateMessage = core.serialization.object({
42
+ type: core.serialization.stringLiteral("commands_update"),
43
+ add: core.serialization.list(TranscribeCommand_js_1.TranscribeCommand).optional(),
44
+ remove: core.serialization.list(TranscribeCommandRemove_js_1.TranscribeCommandRemove).optional(),
45
+ });
@@ -337,6 +337,10 @@ export * from "./TranscribeAudioEventsConfig.js";
337
337
  export * from "./TranscribeCommand.js";
338
338
  export * from "./TranscribeCommandData.js";
339
339
  export * from "./TranscribeCommandMessage.js";
340
+ export * from "./TranscribeCommandRemove.js";
341
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.js";
342
+ export * from "./TranscribeCommandsUpdateDeniedMessage.js";
343
+ export * from "./TranscribeCommandsUpdateMessage.js";
340
344
  export * from "./TranscribeCommandVariable.js";
341
345
  export * from "./TranscribeCommandVariableType.js";
342
346
  export * from "./TranscribeConfig.js";
@@ -353,6 +353,10 @@ __exportStar(require("./TranscribeAudioEventsConfig.js"), exports);
353
353
  __exportStar(require("./TranscribeCommand.js"), exports);
354
354
  __exportStar(require("./TranscribeCommandData.js"), exports);
355
355
  __exportStar(require("./TranscribeCommandMessage.js"), exports);
356
+ __exportStar(require("./TranscribeCommandRemove.js"), exports);
357
+ __exportStar(require("./TranscribeCommandsUpdateAcceptedMessage.js"), exports);
358
+ __exportStar(require("./TranscribeCommandsUpdateDeniedMessage.js"), exports);
359
+ __exportStar(require("./TranscribeCommandsUpdateMessage.js"), exports);
356
360
  __exportStar(require("./TranscribeCommandVariable.js"), exports);
357
361
  __exportStar(require("./TranscribeCommandVariableType.js"), exports);
358
362
  __exportStar(require("./TranscribeConfig.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0-rc";
1
+ export declare const SDK_VERSION = "6.0.0-rc.2";
@@ -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 = "6.0.0-rc";
4
+ exports.SDK_VERSION = "6.0.0-rc.2";
@@ -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": "6.0.0-rc",
10
- "User-Agent": "@corti/sdk/6.0.0-rc",
9
+ "X-Fern-SDK-Version": "6.0.0-rc.2",
10
+ "User-Agent": "@corti/sdk/6.0.0-rc.2",
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,
@@ -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 | Corti.TranscribeAudioEventMessage;
7
+ type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage | Corti.TranscribeCommandsUpdateAcceptedMessage | Corti.TranscribeCommandsUpdateDeniedMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -37,6 +37,7 @@ export declare class TranscribeSocket {
37
37
  sendAudio(message: ArrayBufferLike | Blob | ArrayBufferView): void;
38
38
  sendFlush(message: Corti.TranscribeFlushMessage): void;
39
39
  sendEnd(message: Corti.TranscribeEndMessage): void;
40
+ sendCommandsUpdate(message: Corti.TranscribeCommandsUpdateMessage): void;
40
41
  /** Connect to the websocket and register event handlers. */
41
42
  connect(): TranscribeSocket;
42
43
  /** Close the websocket and unregister event handlers. */
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import * as core from "../../../../core/index.mjs";
12
12
  import { fromJson } from "../../../../core/json.mjs";
13
13
  import * as serializers from "../../../../serialization/index.mjs";
14
+ import { TranscribeCommandsUpdateMessage } from "../../../../serialization/types/TranscribeCommandsUpdateMessage.mjs";
14
15
  import { TranscribeConfigMessage } from "../../../../serialization/types/TranscribeConfigMessage.mjs";
15
16
  import { TranscribeEndMessage } from "../../../../serialization/types/TranscribeEndMessage.mjs";
16
17
  import { TranscribeFlushMessage } from "../../../../serialization/types/TranscribeFlushMessage.mjs";
@@ -107,6 +108,17 @@ export class TranscribeSocket {
107
108
  });
108
109
  this.socket.send(JSON.stringify(jsonPayload));
109
110
  }
111
+ sendCommandsUpdate(message) {
112
+ this.assertSocketIsOpen();
113
+ const jsonPayload = TranscribeCommandsUpdateMessage.jsonOrThrow(message, {
114
+ unrecognizedObjectKeys: "passthrough",
115
+ allowUnrecognizedUnionMembers: true,
116
+ allowUnrecognizedEnumValues: true,
117
+ skipValidation: true,
118
+ omitUndefined: true,
119
+ });
120
+ this.socket.send(JSON.stringify(jsonPayload));
121
+ }
110
122
  /** Connect to the websocket and register event handlers. */
111
123
  connect() {
112
124
  this.socket.reconnect();
@@ -26,7 +26,7 @@ export interface TranscriptsCreateRequest {
26
26
  participants?: Corti.TranscriptsParticipant[];
27
27
  /** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
28
28
  async?: boolean;
29
- /** 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. A defined replacement can have a maximum length of 50 characters and 5-words for `find` and 100 characters and 10-words for `replace`. */
29
+ /** 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. A defined replacement can have a maximum length of 100 characters and 10-words for `find` and `replace` fields. */
30
30
  replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
31
31
  /** 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. */
32
32
  keyterms?: Corti.TranscriptsCreateRequestKeyterms;
@@ -27,7 +27,7 @@ export declare const CommonCodingSystemEnum: {
27
27
  readonly MeddraFr: "meddra-fr";
28
28
  readonly MeddraEs: "meddra-es";
29
29
  readonly MeddraDe: "meddra-de";
30
- readonly MeddraDk: "meddra-dk";
30
+ readonly MeddraNo: "meddra-no";
31
31
  readonly MeddraSe: "meddra-se";
32
32
  readonly Sks: "sks";
33
33
  readonly Kvaa: "kvaa";
@@ -28,7 +28,7 @@ export const CommonCodingSystemEnum = {
28
28
  MeddraFr: "meddra-fr",
29
29
  MeddraEs: "meddra-es",
30
30
  MeddraDe: "meddra-de",
31
- MeddraDk: "meddra-dk",
31
+ MeddraNo: "meddra-no",
32
32
  MeddraSe: "meddra-se",
33
33
  Sks: "sks",
34
34
  Kvaa: "kvaa",
@@ -8,7 +8,7 @@ export interface StreamConfig {
8
8
  formatting?: Corti.StreamFormatting;
9
9
  /** 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). */
10
10
  audioFormat?: string;
11
- /** 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. A defined replacement can have a maximum length of 50 characters and 5-words for `find` and 100 characters and 10-words for `replace`. */
11
+ /** 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. A defined replacement can have a maximum length of 100 characters and 10-words for `find` and `replace` fields. */
12
12
  replacements?: Corti.StreamConfigReplacementsItem[];
13
13
  /** 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. */
14
14
  keyterms?: Corti.StreamConfigKeyterms;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Minimal command reference for removal. Only the id field is allowed; phrases, variables, and other fields are rejected.
3
+ */
4
+ export interface TranscribeCommandRemove {
5
+ /** ID of the command to remove. */
6
+ id: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.mjs";
2
+ export interface TranscribeCommandsUpdateAcceptedMessage {
3
+ type: "commands_update_accepted";
4
+ /** The session ID. */
5
+ sessionId: string;
6
+ /** The full resolved list of active commands after the update. This is the complete command set available for recognition. */
7
+ commands: Corti.TranscribeCommand[];
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../index.mjs";
2
+ export interface TranscribeCommandsUpdateDeniedMessage {
3
+ type: "commands_update_denied";
4
+ /** The reason the update was denied. Possible values include "No active session. Send a valid config message first.", "unknown parameter(s)", "ineligible parameter(s): <list>", and "invalid definition". */
5
+ reason?: string;
6
+ /** List of invalid field names that caused the rejection, when applicable. */
7
+ fields?: string[];
8
+ /** The session ID. */
9
+ sessionId: string;
10
+ /** Empty array. The existing command configuration is unchanged. */
11
+ commands: Corti.TranscribeCommand[];
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * Patch-based command update. Include only the commands being added, updated, or removed, not the full command list. At least one of add or remove must be present. Updates are applied atomically; if validation fails, the existing command configuration remains unchanged.
4
+ */
5
+ export interface TranscribeCommandsUpdateMessage {
6
+ type: "commands_update";
7
+ /** Commands to add or update. Adding a command with an id that already exists overwrites the existing command. Each command must include the full definition (id, phrases, variables). */
8
+ add?: Corti.TranscribeCommand[];
9
+ /** Commands to remove by exact id match. Only the id field is required and allowed in remove definitions. */
10
+ remove?: Corti.TranscribeCommandRemove[];
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -14,7 +14,7 @@ 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. A defined replacement can have a maximum length of 50 characters and 5-words for `find` and 100 characters and 10-words for `replace`. */
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. A defined replacement can have a maximum length of 100 characters and 10-words for `find` and `replace` fields. */
18
18
  replacements?: Corti.TranscribeConfigReplacementsItem[];
19
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. */
20
20
  keyterms?: Corti.TranscribeConfigKeyterms;
@@ -337,6 +337,10 @@ export * from "./TranscribeAudioEventsConfig.mjs";
337
337
  export * from "./TranscribeCommand.mjs";
338
338
  export * from "./TranscribeCommandData.mjs";
339
339
  export * from "./TranscribeCommandMessage.mjs";
340
+ export * from "./TranscribeCommandRemove.mjs";
341
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.mjs";
342
+ export * from "./TranscribeCommandsUpdateDeniedMessage.mjs";
343
+ export * from "./TranscribeCommandsUpdateMessage.mjs";
340
344
  export * from "./TranscribeCommandVariable.mjs";
341
345
  export * from "./TranscribeCommandVariableType.mjs";
342
346
  export * from "./TranscribeConfig.mjs";
@@ -337,6 +337,10 @@ export * from "./TranscribeAudioEventsConfig.mjs";
337
337
  export * from "./TranscribeCommand.mjs";
338
338
  export * from "./TranscribeCommandData.mjs";
339
339
  export * from "./TranscribeCommandMessage.mjs";
340
+ export * from "./TranscribeCommandRemove.mjs";
341
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.mjs";
342
+ export * from "./TranscribeCommandsUpdateDeniedMessage.mjs";
343
+ export * from "./TranscribeCommandsUpdateMessage.mjs";
340
344
  export * from "./TranscribeCommandVariable.mjs";
341
345
  export * from "./TranscribeCommandVariableType.mjs";
342
346
  export * from "./TranscribeConfig.mjs";
@@ -3,6 +3,8 @@ import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
4
  import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.mjs";
5
5
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.mjs";
6
+ import { TranscribeCommandsUpdateAcceptedMessage } from "../../../../types/TranscribeCommandsUpdateAcceptedMessage.mjs";
7
+ import { TranscribeCommandsUpdateDeniedMessage } from "../../../../types/TranscribeCommandsUpdateDeniedMessage.mjs";
6
8
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.mjs";
7
9
  import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.mjs";
8
10
  import { TranscribeEndedMessage } from "../../../../types/TranscribeEndedMessage.mjs";
@@ -10,7 +12,7 @@ import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage
10
12
  import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.mjs";
11
13
  import { TranscribeTranscriptMessage } from "../../../../types/TranscribeTranscriptMessage.mjs";
12
14
  import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage.mjs";
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>;
15
+ 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 | Corti.TranscribeCommandsUpdateAcceptedMessage | Corti.TranscribeCommandsUpdateDeniedMessage>;
14
16
  export declare namespace TranscribeSocketResponse {
15
- type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw | TranscribeAudioEventMessage.Raw;
17
+ type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw | TranscribeAudioEventMessage.Raw | TranscribeCommandsUpdateAcceptedMessage.Raw | TranscribeCommandsUpdateDeniedMessage.Raw;
16
18
  }
@@ -2,6 +2,8 @@
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.mjs";
4
4
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.mjs";
5
+ import { TranscribeCommandsUpdateAcceptedMessage } from "../../../../types/TranscribeCommandsUpdateAcceptedMessage.mjs";
6
+ import { TranscribeCommandsUpdateDeniedMessage } from "../../../../types/TranscribeCommandsUpdateDeniedMessage.mjs";
5
7
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.mjs";
6
8
  import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.mjs";
7
9
  import { TranscribeEndedMessage } from "../../../../types/TranscribeEndedMessage.mjs";
@@ -19,4 +21,6 @@ export const TranscribeSocketResponse = core.serialization.undiscriminatedUnion(
19
21
  TranscribeCommandMessage,
20
22
  TranscribeConfigStatusMessage,
21
23
  TranscribeAudioEventMessage,
24
+ TranscribeCommandsUpdateAcceptedMessage,
25
+ TranscribeCommandsUpdateDeniedMessage,
22
26
  ]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const CommonCodingSystemEnum: core.serialization.Schema<serializers.CommonCodingSystemEnum.Raw, Corti.CommonCodingSystemEnum>;
5
5
  export declare namespace CommonCodingSystemEnum {
6
- type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam" | "snomedctint" | "snomedctde" | "snomedctfr" | "snomedctuk" | "snomedctes" | "snomedctdk" | "snomedctse" | "snomedctus" | "meddra-it" | "meddra-en" | "meddra-fr" | "meddra-es" | "meddra-de" | "meddra-dk" | "meddra-se" | "sks" | "kvaa";
6
+ type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam" | "snomedctint" | "snomedctde" | "snomedctfr" | "snomedctuk" | "snomedctes" | "snomedctdk" | "snomedctse" | "snomedctus" | "meddra-it" | "meddra-en" | "meddra-fr" | "meddra-es" | "meddra-de" | "meddra-no" | "meddra-se" | "sks" | "kvaa";
7
7
  }
@@ -29,7 +29,7 @@ export const CommonCodingSystemEnum = core.serialization.enum_([
29
29
  "meddra-fr",
30
30
  "meddra-es",
31
31
  "meddra-de",
32
- "meddra-dk",
32
+ "meddra-no",
33
33
  "meddra-se",
34
34
  "sks",
35
35
  "kvaa",
@@ -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 TranscribeCommandRemove: core.serialization.ObjectSchema<serializers.TranscribeCommandRemove.Raw, Corti.TranscribeCommandRemove>;
5
+ export declare namespace TranscribeCommandRemove {
6
+ interface Raw {
7
+ id: string;
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 TranscribeCommandRemove = core.serialization.object({
4
+ id: core.serialization.string(),
5
+ });
@@ -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 { TranscribeCommand } from "./TranscribeCommand.mjs";
5
+ export declare const TranscribeCommandsUpdateAcceptedMessage: core.serialization.ObjectSchema<serializers.TranscribeCommandsUpdateAcceptedMessage.Raw, Corti.TranscribeCommandsUpdateAcceptedMessage>;
6
+ export declare namespace TranscribeCommandsUpdateAcceptedMessage {
7
+ interface Raw {
8
+ type: "commands_update_accepted";
9
+ sessionId: string;
10
+ commands: TranscribeCommand.Raw[];
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 { TranscribeCommand } from "./TranscribeCommand.mjs";
4
+ export const TranscribeCommandsUpdateAcceptedMessage = core.serialization.object({
5
+ type: core.serialization.stringLiteral("commands_update_accepted"),
6
+ sessionId: core.serialization.string(),
7
+ commands: core.serialization.list(TranscribeCommand),
8
+ });
@@ -0,0 +1,14 @@
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 { TranscribeCommand } from "./TranscribeCommand.mjs";
5
+ export declare const TranscribeCommandsUpdateDeniedMessage: core.serialization.ObjectSchema<serializers.TranscribeCommandsUpdateDeniedMessage.Raw, Corti.TranscribeCommandsUpdateDeniedMessage>;
6
+ export declare namespace TranscribeCommandsUpdateDeniedMessage {
7
+ interface Raw {
8
+ type: "commands_update_denied";
9
+ reason?: string | null;
10
+ fields?: string[] | null;
11
+ sessionId: string;
12
+ commands: TranscribeCommand.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { TranscribeCommand } from "./TranscribeCommand.mjs";
4
+ export const TranscribeCommandsUpdateDeniedMessage = core.serialization.object({
5
+ type: core.serialization.stringLiteral("commands_update_denied"),
6
+ reason: core.serialization.string().optional(),
7
+ fields: core.serialization.list(core.serialization.string()).optional(),
8
+ sessionId: core.serialization.string(),
9
+ commands: core.serialization.list(TranscribeCommand),
10
+ });
@@ -0,0 +1,13 @@
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 { TranscribeCommand } from "./TranscribeCommand.mjs";
5
+ import { TranscribeCommandRemove } from "./TranscribeCommandRemove.mjs";
6
+ export declare const TranscribeCommandsUpdateMessage: core.serialization.ObjectSchema<serializers.TranscribeCommandsUpdateMessage.Raw, Corti.TranscribeCommandsUpdateMessage>;
7
+ export declare namespace TranscribeCommandsUpdateMessage {
8
+ interface Raw {
9
+ type: "commands_update";
10
+ add?: TranscribeCommand.Raw[] | null;
11
+ remove?: TranscribeCommandRemove.Raw[] | null;
12
+ }
13
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { TranscribeCommand } from "./TranscribeCommand.mjs";
4
+ import { TranscribeCommandRemove } from "./TranscribeCommandRemove.mjs";
5
+ export const TranscribeCommandsUpdateMessage = core.serialization.object({
6
+ type: core.serialization.stringLiteral("commands_update"),
7
+ add: core.serialization.list(TranscribeCommand).optional(),
8
+ remove: core.serialization.list(TranscribeCommandRemove).optional(),
9
+ });
@@ -337,6 +337,10 @@ export * from "./TranscribeAudioEventsConfig.mjs";
337
337
  export * from "./TranscribeCommand.mjs";
338
338
  export * from "./TranscribeCommandData.mjs";
339
339
  export * from "./TranscribeCommandMessage.mjs";
340
+ export * from "./TranscribeCommandRemove.mjs";
341
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.mjs";
342
+ export * from "./TranscribeCommandsUpdateDeniedMessage.mjs";
343
+ export * from "./TranscribeCommandsUpdateMessage.mjs";
340
344
  export * from "./TranscribeCommandVariable.mjs";
341
345
  export * from "./TranscribeCommandVariableType.mjs";
342
346
  export * from "./TranscribeConfig.mjs";
@@ -337,6 +337,10 @@ export * from "./TranscribeAudioEventsConfig.mjs";
337
337
  export * from "./TranscribeCommand.mjs";
338
338
  export * from "./TranscribeCommandData.mjs";
339
339
  export * from "./TranscribeCommandMessage.mjs";
340
+ export * from "./TranscribeCommandRemove.mjs";
341
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.mjs";
342
+ export * from "./TranscribeCommandsUpdateDeniedMessage.mjs";
343
+ export * from "./TranscribeCommandsUpdateMessage.mjs";
340
344
  export * from "./TranscribeCommandVariable.mjs";
341
345
  export * from "./TranscribeCommandVariableType.mjs";
342
346
  export * from "./TranscribeConfig.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0-rc";
1
+ export declare const SDK_VERSION = "6.0.0-rc.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "6.0.0-rc";
1
+ export const SDK_VERSION = "6.0.0-rc.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "6.0.0-rc",
3
+ "version": "6.0.0-rc.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",