@corti/sdk 6.0.0-rc → 6.0.0

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 (89) 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/A2AsseEvent.d.ts +16 -0
  6. package/dist/cjs/api/types/A2AsseEvent.js +3 -0
  7. package/dist/cjs/api/types/AgenticAgentsSendMessageResponse.d.ts +5 -1
  8. package/dist/cjs/api/types/AgenticAgentsStreamEventResponse.d.ts +2 -12
  9. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +1 -1
  10. package/dist/cjs/api/types/CommonCodingSystemEnum.js +1 -1
  11. package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
  12. package/dist/cjs/api/types/TranscribeCommandRemove.d.ts +7 -0
  13. package/dist/cjs/api/types/TranscribeCommandRemove.js +3 -0
  14. package/dist/cjs/api/types/TranscribeCommandsUpdateAcceptedMessage.d.ts +8 -0
  15. package/dist/cjs/api/types/TranscribeCommandsUpdateAcceptedMessage.js +3 -0
  16. package/dist/cjs/api/types/TranscribeCommandsUpdateDeniedMessage.d.ts +12 -0
  17. package/dist/cjs/api/types/TranscribeCommandsUpdateDeniedMessage.js +3 -0
  18. package/dist/cjs/api/types/TranscribeCommandsUpdateMessage.d.ts +11 -0
  19. package/dist/cjs/api/types/TranscribeCommandsUpdateMessage.js +3 -0
  20. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -1
  21. package/dist/cjs/api/types/index.d.ts +5 -0
  22. package/dist/cjs/api/types/index.js +5 -0
  23. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +4 -2
  24. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +4 -0
  25. package/dist/cjs/serialization/types/A2AsseEvent.d.ts +12 -0
  26. package/dist/cjs/serialization/types/A2AsseEvent.js +44 -0
  27. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.d.ts +7 -2
  28. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.js +6 -1
  29. package/dist/cjs/serialization/types/AgenticAgentsStreamEventResponse.d.ts +2 -5
  30. package/dist/cjs/serialization/types/AgenticAgentsStreamEventResponse.js +2 -6
  31. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
  32. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +1 -1
  33. package/dist/cjs/serialization/types/TranscribeCommandRemove.d.ts +9 -0
  34. package/dist/cjs/serialization/types/TranscribeCommandRemove.js +41 -0
  35. package/dist/cjs/serialization/types/TranscribeCommandsUpdateAcceptedMessage.d.ts +12 -0
  36. package/dist/cjs/serialization/types/TranscribeCommandsUpdateAcceptedMessage.js +44 -0
  37. package/dist/cjs/serialization/types/TranscribeCommandsUpdateDeniedMessage.d.ts +14 -0
  38. package/dist/cjs/serialization/types/TranscribeCommandsUpdateDeniedMessage.js +46 -0
  39. package/dist/cjs/serialization/types/TranscribeCommandsUpdateMessage.d.ts +13 -0
  40. package/dist/cjs/serialization/types/TranscribeCommandsUpdateMessage.js +45 -0
  41. package/dist/cjs/serialization/types/index.d.ts +5 -0
  42. package/dist/cjs/serialization/types/index.js +5 -0
  43. package/dist/cjs/version.d.ts +1 -1
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/esm/BaseClient.mjs +2 -2
  46. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +2 -1
  47. package/dist/esm/api/resources/transcribe/client/Socket.mjs +12 -0
  48. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  49. package/dist/esm/api/types/A2AsseEvent.d.mts +16 -0
  50. package/dist/esm/api/types/A2AsseEvent.mjs +2 -0
  51. package/dist/esm/api/types/AgenticAgentsSendMessageResponse.d.mts +5 -1
  52. package/dist/esm/api/types/AgenticAgentsStreamEventResponse.d.mts +2 -12
  53. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +1 -1
  54. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +1 -1
  55. package/dist/esm/api/types/StreamConfig.d.mts +1 -1
  56. package/dist/esm/api/types/TranscribeCommandRemove.d.mts +7 -0
  57. package/dist/esm/api/types/TranscribeCommandRemove.mjs +2 -0
  58. package/dist/esm/api/types/TranscribeCommandsUpdateAcceptedMessage.d.mts +8 -0
  59. package/dist/esm/api/types/TranscribeCommandsUpdateAcceptedMessage.mjs +2 -0
  60. package/dist/esm/api/types/TranscribeCommandsUpdateDeniedMessage.d.mts +12 -0
  61. package/dist/esm/api/types/TranscribeCommandsUpdateDeniedMessage.mjs +2 -0
  62. package/dist/esm/api/types/TranscribeCommandsUpdateMessage.d.mts +11 -0
  63. package/dist/esm/api/types/TranscribeCommandsUpdateMessage.mjs +2 -0
  64. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -1
  65. package/dist/esm/api/types/index.d.mts +5 -0
  66. package/dist/esm/api/types/index.mjs +5 -0
  67. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +4 -2
  68. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +4 -0
  69. package/dist/esm/serialization/types/A2AsseEvent.d.mts +12 -0
  70. package/dist/esm/serialization/types/A2AsseEvent.mjs +8 -0
  71. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.d.mts +7 -2
  72. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.mjs +6 -1
  73. package/dist/esm/serialization/types/AgenticAgentsStreamEventResponse.d.mts +2 -5
  74. package/dist/esm/serialization/types/AgenticAgentsStreamEventResponse.mjs +2 -6
  75. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
  76. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +1 -1
  77. package/dist/esm/serialization/types/TranscribeCommandRemove.d.mts +9 -0
  78. package/dist/esm/serialization/types/TranscribeCommandRemove.mjs +5 -0
  79. package/dist/esm/serialization/types/TranscribeCommandsUpdateAcceptedMessage.d.mts +12 -0
  80. package/dist/esm/serialization/types/TranscribeCommandsUpdateAcceptedMessage.mjs +8 -0
  81. package/dist/esm/serialization/types/TranscribeCommandsUpdateDeniedMessage.d.mts +14 -0
  82. package/dist/esm/serialization/types/TranscribeCommandsUpdateDeniedMessage.mjs +10 -0
  83. package/dist/esm/serialization/types/TranscribeCommandsUpdateMessage.d.mts +13 -0
  84. package/dist/esm/serialization/types/TranscribeCommandsUpdateMessage.mjs +9 -0
  85. package/dist/esm/serialization/types/index.d.mts +5 -0
  86. package/dist/esm/serialization/types/index.mjs +5 -0
  87. package/dist/esm/version.d.mts +1 -1
  88. package/dist/esm/version.mjs +1 -1
  89. package/package.json +1 -1
@@ -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
+ });
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.js";
1
2
  export * from "./AgenticAgentCardResponse.js";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.js";
3
4
  export * from "./AgenticAgentCardResponseProvider.js";
@@ -337,6 +338,10 @@ export * from "./TranscribeAudioEventsConfig.js";
337
338
  export * from "./TranscribeCommand.js";
338
339
  export * from "./TranscribeCommandData.js";
339
340
  export * from "./TranscribeCommandMessage.js";
341
+ export * from "./TranscribeCommandRemove.js";
342
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.js";
343
+ export * from "./TranscribeCommandsUpdateDeniedMessage.js";
344
+ export * from "./TranscribeCommandsUpdateMessage.js";
340
345
  export * from "./TranscribeCommandVariable.js";
341
346
  export * from "./TranscribeCommandVariableType.js";
342
347
  export * from "./TranscribeConfig.js";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./A2AsseEvent.js"), exports);
17
18
  __exportStar(require("./AgenticAgentCardResponse.js"), exports);
18
19
  __exportStar(require("./AgenticAgentCardResponseCapabilities.js"), exports);
19
20
  __exportStar(require("./AgenticAgentCardResponseProvider.js"), exports);
@@ -353,6 +354,10 @@ __exportStar(require("./TranscribeAudioEventsConfig.js"), exports);
353
354
  __exportStar(require("./TranscribeCommand.js"), exports);
354
355
  __exportStar(require("./TranscribeCommandData.js"), exports);
355
356
  __exportStar(require("./TranscribeCommandMessage.js"), exports);
357
+ __exportStar(require("./TranscribeCommandRemove.js"), exports);
358
+ __exportStar(require("./TranscribeCommandsUpdateAcceptedMessage.js"), exports);
359
+ __exportStar(require("./TranscribeCommandsUpdateDeniedMessage.js"), exports);
360
+ __exportStar(require("./TranscribeCommandsUpdateMessage.js"), exports);
356
361
  __exportStar(require("./TranscribeCommandVariable.js"), exports);
357
362
  __exportStar(require("./TranscribeCommandVariableType.js"), exports);
358
363
  __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";
@@ -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";
@@ -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",
10
+ "User-Agent": "@corti/sdk/6.0.0",
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;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A single Server-Sent Event frame (W3C SSE wire format). The server currently writes only `id` and `data` lines; `event` and `retry` are declared for forward compatibility but not sent.
3
+ */
4
+ export interface A2AsseEvent {
5
+ /** SSE payload (JSON-encoded). */
6
+ data: string;
7
+ /** Event type. Absent for the default `message` event. */
8
+ event?: string;
9
+ /**
10
+ * Opaque event id. Clients echo the most recent value in the
11
+ * `Last-Event-ID` header to resume a dropped stream.
12
+ */
13
+ id?: string;
14
+ /** Reconnection time in milliseconds the client should use. */
15
+ retry?: number;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,4 +1,8 @@
1
+ import type * as Corti from "../index.mjs";
1
2
  /**
2
3
  * Exactly one of `task` or `message` is present.
3
4
  */
4
- export type AgenticAgentsSendMessageResponse = unknown;
5
+ export interface AgenticAgentsSendMessageResponse {
6
+ task?: Corti.CommonTaskResponse;
7
+ message?: Corti.CommonMessage;
8
+ }
@@ -1,16 +1,6 @@
1
+ import type * as Corti from "../index.mjs";
1
2
  /**
2
3
  * An SSE event carrying an A2A `HTTP+JSON` streaming response.
3
4
  */
4
- export interface AgenticAgentsStreamEventResponse {
5
- /** SSE payload: an A2A HTTP+JSON streaming response. */
6
- data?: string;
7
- /** Event type. Absent for the default `message` event. */
8
- event?: string;
9
- /**
10
- * Opaque event id. Clients echo the most recent value in the
11
- * `Last-Event-ID` header to resume a dropped stream.
12
- */
13
- id?: string;
14
- /** Reconnection time in milliseconds the client should use. */
15
- retry?: number;
5
+ export interface AgenticAgentsStreamEventResponse extends Corti.A2AsseEvent {
16
6
  }
@@ -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;
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.mjs";
1
2
  export * from "./AgenticAgentCardResponse.mjs";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.mjs";
3
4
  export * from "./AgenticAgentCardResponseProvider.mjs";
@@ -337,6 +338,10 @@ export * from "./TranscribeAudioEventsConfig.mjs";
337
338
  export * from "./TranscribeCommand.mjs";
338
339
  export * from "./TranscribeCommandData.mjs";
339
340
  export * from "./TranscribeCommandMessage.mjs";
341
+ export * from "./TranscribeCommandRemove.mjs";
342
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.mjs";
343
+ export * from "./TranscribeCommandsUpdateDeniedMessage.mjs";
344
+ export * from "./TranscribeCommandsUpdateMessage.mjs";
340
345
  export * from "./TranscribeCommandVariable.mjs";
341
346
  export * from "./TranscribeCommandVariableType.mjs";
342
347
  export * from "./TranscribeConfig.mjs";
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.mjs";
1
2
  export * from "./AgenticAgentCardResponse.mjs";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.mjs";
3
4
  export * from "./AgenticAgentCardResponseProvider.mjs";
@@ -337,6 +338,10 @@ export * from "./TranscribeAudioEventsConfig.mjs";
337
338
  export * from "./TranscribeCommand.mjs";
338
339
  export * from "./TranscribeCommandData.mjs";
339
340
  export * from "./TranscribeCommandMessage.mjs";
341
+ export * from "./TranscribeCommandRemove.mjs";
342
+ export * from "./TranscribeCommandsUpdateAcceptedMessage.mjs";
343
+ export * from "./TranscribeCommandsUpdateDeniedMessage.mjs";
344
+ export * from "./TranscribeCommandsUpdateMessage.mjs";
340
345
  export * from "./TranscribeCommandVariable.mjs";
341
346
  export * from "./TranscribeCommandVariableType.mjs";
342
347
  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
  ]);
@@ -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
+ export declare const A2AsseEvent: core.serialization.ObjectSchema<serializers.A2AsseEvent.Raw, Corti.A2AsseEvent>;
5
+ export declare namespace A2AsseEvent {
6
+ interface Raw {
7
+ data: string;
8
+ event?: string | null;
9
+ id?: string | null;
10
+ retry?: number | null;
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
+ export const A2AsseEvent = core.serialization.object({
4
+ data: core.serialization.string(),
5
+ event: core.serialization.string().optional(),
6
+ id: core.serialization.string().optional(),
7
+ retry: core.serialization.number().optional(),
8
+ });
@@ -1,7 +1,12 @@
1
1
  import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
- export declare const AgenticAgentsSendMessageResponse: core.serialization.Schema<serializers.AgenticAgentsSendMessageResponse.Raw, Corti.AgenticAgentsSendMessageResponse>;
4
+ import { CommonMessage } from "./CommonMessage.mjs";
5
+ import { CommonTaskResponse } from "./CommonTaskResponse.mjs";
6
+ export declare const AgenticAgentsSendMessageResponse: core.serialization.ObjectSchema<serializers.AgenticAgentsSendMessageResponse.Raw, Corti.AgenticAgentsSendMessageResponse>;
5
7
  export declare namespace AgenticAgentsSendMessageResponse {
6
- type Raw = unknown;
8
+ interface Raw {
9
+ task?: CommonTaskResponse.Raw | null;
10
+ message?: CommonMessage.Raw | null;
11
+ }
7
12
  }
@@ -1,3 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- export const AgenticAgentsSendMessageResponse = core.serialization.undiscriminatedUnion([core.serialization.unknown()]);
3
+ import { CommonMessage } from "./CommonMessage.mjs";
4
+ import { CommonTaskResponse } from "./CommonTaskResponse.mjs";
5
+ export const AgenticAgentsSendMessageResponse = core.serialization.object({
6
+ task: CommonTaskResponse.optional(),
7
+ message: CommonMessage.optional(),
8
+ });
@@ -1,12 +1,9 @@
1
1
  import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
+ import { A2AsseEvent } from "./A2AsseEvent.mjs";
4
5
  export declare const AgenticAgentsStreamEventResponse: core.serialization.ObjectSchema<serializers.AgenticAgentsStreamEventResponse.Raw, Corti.AgenticAgentsStreamEventResponse>;
5
6
  export declare namespace AgenticAgentsStreamEventResponse {
6
- interface Raw {
7
- data?: string | null;
8
- event?: string | null;
9
- id?: string | null;
10
- retry?: number | null;
7
+ interface Raw extends A2AsseEvent.Raw {
11
8
  }
12
9
  }
@@ -1,8 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- export const AgenticAgentsStreamEventResponse = core.serialization.object({
4
- data: core.serialization.string().optional(),
5
- event: core.serialization.string().optional(),
6
- id: core.serialization.string().optional(),
7
- retry: core.serialization.number().optional(),
8
- });
3
+ import { A2AsseEvent } from "./A2AsseEvent.mjs";
4
+ export const AgenticAgentsStreamEventResponse = core.serialization.object({}).extend(A2AsseEvent);
@@ -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
+ });