@corti/sdk 1.1.0-coding.1 → 1.2.0-templates-beta

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 (112) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +1 -1
  4. package/dist/cjs/api/resources/codes/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/codes/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
  7. package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
  8. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +0 -7
  9. package/dist/cjs/api/types/CommonCodingSystemEnum.js +0 -7
  10. package/dist/cjs/api/types/StreamConfigStatusMessageType.d.ts +1 -0
  11. package/dist/cjs/api/types/StreamConfigStatusMessageType.js +1 -0
  12. package/dist/cjs/api/types/TranscribeConfigStatusMessageType.d.ts +0 -2
  13. package/dist/cjs/api/types/TranscribeConfigStatusMessageType.js +0 -2
  14. package/dist/cjs/api/types/index.d.ts +0 -3
  15. package/dist/cjs/api/types/index.js +0 -3
  16. package/dist/cjs/custom/CortiClient.d.ts +69 -25
  17. package/dist/cjs/custom/CortiClient.js +0 -69
  18. package/dist/cjs/custom/auth/CortiAuth.d.ts +0 -27
  19. package/dist/cjs/custom/auth/CortiAuth.js +4 -10
  20. package/dist/cjs/custom/stream/CustomStream.js +3 -5
  21. package/dist/cjs/custom/transcribe/CustomTranscribe.js +2 -6
  22. package/dist/cjs/custom/utils/encodeHeadersAsWsProtocols.js +11 -2
  23. package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +2 -2
  24. package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.js +2 -2
  25. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +2 -3
  26. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +0 -2
  27. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +2 -3
  28. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +0 -2
  29. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
  30. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +0 -7
  31. package/dist/cjs/serialization/types/StreamConfigStatusMessageType.d.ts +1 -1
  32. package/dist/cjs/serialization/types/StreamConfigStatusMessageType.js +1 -0
  33. package/dist/cjs/serialization/types/TranscribeConfigStatusMessageType.d.ts +1 -1
  34. package/dist/cjs/serialization/types/TranscribeConfigStatusMessageType.js +1 -7
  35. package/dist/cjs/serialization/types/index.d.ts +0 -3
  36. package/dist/cjs/serialization/types/index.js +0 -3
  37. package/dist/cjs/version.d.ts +1 -1
  38. package/dist/cjs/version.js +1 -1
  39. package/dist/esm/BaseClient.mjs +2 -2
  40. package/dist/esm/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +1 -1
  41. package/dist/esm/api/resources/codes/client/Client.d.mts +1 -1
  42. package/dist/esm/api/resources/codes/client/Client.mjs +1 -1
  43. package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
  44. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
  45. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +0 -7
  46. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +0 -7
  47. package/dist/esm/api/types/StreamConfigStatusMessageType.d.mts +1 -0
  48. package/dist/esm/api/types/StreamConfigStatusMessageType.mjs +1 -0
  49. package/dist/esm/api/types/TranscribeConfigStatusMessageType.d.mts +0 -2
  50. package/dist/esm/api/types/TranscribeConfigStatusMessageType.mjs +0 -2
  51. package/dist/esm/api/types/index.d.mts +0 -3
  52. package/dist/esm/api/types/index.mjs +0 -3
  53. package/dist/esm/custom/CortiClient.d.mts +69 -25
  54. package/dist/esm/custom/CortiClient.mjs +0 -36
  55. package/dist/esm/custom/auth/CortiAuth.d.mts +0 -27
  56. package/dist/esm/custom/auth/CortiAuth.mjs +4 -10
  57. package/dist/esm/custom/stream/CustomStream.mjs +3 -5
  58. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +2 -6
  59. package/dist/esm/custom/utils/encodeHeadersAsWsProtocols.mjs +10 -1
  60. package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +2 -2
  61. package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.mjs +2 -2
  62. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +2 -3
  63. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +0 -2
  64. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +2 -3
  65. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +0 -2
  66. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
  67. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +0 -7
  68. package/dist/esm/serialization/types/StreamConfigStatusMessageType.d.mts +1 -1
  69. package/dist/esm/serialization/types/StreamConfigStatusMessageType.mjs +1 -0
  70. package/dist/esm/serialization/types/TranscribeConfigStatusMessageType.d.mts +1 -1
  71. package/dist/esm/serialization/types/TranscribeConfigStatusMessageType.mjs +1 -7
  72. package/dist/esm/serialization/types/index.d.mts +0 -3
  73. package/dist/esm/serialization/types/index.mjs +0 -3
  74. package/dist/esm/version.d.mts +1 -1
  75. package/dist/esm/version.mjs +1 -1
  76. package/package.json +1 -1
  77. package/dist/cjs/api/types/AgentsUpdateExpertReference.d.ts +0 -5
  78. package/dist/cjs/api/types/AgentsUpdateExpertReference.js +0 -3
  79. package/dist/cjs/api/types/StreamDeltaUsageMessage.d.ts +0 -5
  80. package/dist/cjs/api/types/StreamDeltaUsageMessage.js +0 -3
  81. package/dist/cjs/api/types/TranscribeDeltaUsageMessage.d.ts +0 -5
  82. package/dist/cjs/api/types/TranscribeDeltaUsageMessage.js +0 -3
  83. package/dist/cjs/custom/agents/CustomAgents.d.ts +0 -20
  84. package/dist/cjs/custom/agents/CustomAgents.js +0 -73
  85. package/dist/cjs/custom/utils/sdkHeaderNames.d.ts +0 -1
  86. package/dist/cjs/custom/utils/sdkHeaderNames.js +0 -12
  87. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.d.ts +0 -5
  88. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.js +0 -27
  89. package/dist/cjs/serialization/types/AgentsUpdateExpertReference.d.ts +0 -8
  90. package/dist/cjs/serialization/types/AgentsUpdateExpertReference.js +0 -6
  91. package/dist/cjs/serialization/types/StreamDeltaUsageMessage.d.ts +0 -10
  92. package/dist/cjs/serialization/types/StreamDeltaUsageMessage.js +0 -42
  93. package/dist/cjs/serialization/types/TranscribeDeltaUsageMessage.d.ts +0 -10
  94. package/dist/cjs/serialization/types/TranscribeDeltaUsageMessage.js +0 -42
  95. package/dist/esm/api/types/AgentsUpdateExpertReference.d.mts +0 -5
  96. package/dist/esm/api/types/AgentsUpdateExpertReference.mjs +0 -2
  97. package/dist/esm/api/types/StreamDeltaUsageMessage.d.mts +0 -5
  98. package/dist/esm/api/types/StreamDeltaUsageMessage.mjs +0 -2
  99. package/dist/esm/api/types/TranscribeDeltaUsageMessage.d.mts +0 -5
  100. package/dist/esm/api/types/TranscribeDeltaUsageMessage.mjs +0 -2
  101. package/dist/esm/custom/agents/CustomAgents.d.mts +0 -20
  102. package/dist/esm/custom/agents/CustomAgents.mjs +0 -36
  103. package/dist/esm/custom/utils/sdkHeaderNames.d.mts +0 -1
  104. package/dist/esm/custom/utils/sdkHeaderNames.mjs +0 -9
  105. package/dist/esm/custom/utils/stripFernNormalizedHeaders.d.mts +0 -5
  106. package/dist/esm/custom/utils/stripFernNormalizedHeaders.mjs +0 -24
  107. package/dist/esm/serialization/types/AgentsUpdateExpertReference.d.mts +0 -8
  108. package/dist/esm/serialization/types/AgentsUpdateExpertReference.mjs +0 -3
  109. package/dist/esm/serialization/types/StreamDeltaUsageMessage.d.mts +0 -10
  110. package/dist/esm/serialization/types/StreamDeltaUsageMessage.mjs +0 -6
  111. package/dist/esm/serialization/types/TranscribeDeltaUsageMessage.d.mts +0 -10
  112. package/dist/esm/serialization/types/TranscribeDeltaUsageMessage.mjs +0 -6
package/README.md CHANGED
@@ -29,7 +29,7 @@ The Corti JavaScript library provides convenient access to the Corti APIs from J
29
29
 
30
30
  ## Documentation
31
31
 
32
- - [Documentation](https://docs.corti.ai/sdk/js)
32
+ - [Documentation](https://docs.corti.ai/)
33
33
  - [API Reference](https://docs.corti.ai/api-reference)
34
34
  - [Console](https://console.corti.app/) — get your credentials here
35
35
  - [Examples](https://github.com/corticph/corti-examples)
@@ -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": "1.1.0-coding.1",
47
- "User-Agent": "@corti/sdk/1.1.0-coding.1",
46
+ "X-Fern-SDK-Version": "1.2.0-templates-beta",
47
+ "User-Agent": "@corti/sdk/1.2.0-templates-beta",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../../../index.js";
2
- export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsUpdateExpertReference;
2
+ export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsCreateExpertReference;
@@ -11,7 +11,7 @@ export declare class CodesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
12
12
  constructor(options: CodesClient.Options);
13
13
  /**
14
- * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
14
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10-UK and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
15
15
  *
16
16
  * @param {Corti.CodesGeneralPredictRequest} request
17
17
  * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class CodesClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
59
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10-UK and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
60
60
  *
61
61
  * @param {Corti.CodesGeneralPredictRequest} request
62
62
  * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -4,7 +4,7 @@ export declare namespace StreamSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
- type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
7
+ type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -4,7 +4,7 @@ export declare namespace TranscribeSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
- type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
7
+ type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -7,12 +7,5 @@ export declare const CommonCodingSystemEnum: {
7
7
  readonly Icd10IntOutpatient: "icd10int-outpatient";
8
8
  readonly Icd10UkInpatient: "icd10uk-inpatient";
9
9
  readonly Icd10UkOutpatient: "icd10uk-outpatient";
10
- readonly Cim10FrInpatient: "cim10fr-inpatient";
11
- readonly Cim10FrOutpatient: "cim10fr-outpatient";
12
- readonly Icd10GmInpatient: "icd10gm-inpatient";
13
- readonly Icd10GmOutpatient: "icd10gm-outpatient";
14
- readonly Opcs4: "opcs4";
15
- readonly Ops: "ops";
16
- readonly Ccam: "ccam";
17
10
  };
18
11
  export type CommonCodingSystemEnum = (typeof CommonCodingSystemEnum)[keyof typeof CommonCodingSystemEnum];
@@ -11,11 +11,4 @@ exports.CommonCodingSystemEnum = {
11
11
  Icd10IntOutpatient: "icd10int-outpatient",
12
12
  Icd10UkInpatient: "icd10uk-inpatient",
13
13
  Icd10UkOutpatient: "icd10uk-outpatient",
14
- Cim10FrInpatient: "cim10fr-inpatient",
15
- Cim10FrOutpatient: "cim10fr-outpatient",
16
- Icd10GmInpatient: "icd10gm-inpatient",
17
- Icd10GmOutpatient: "icd10gm-outpatient",
18
- Opcs4: "opcs4",
19
- Ops: "ops",
20
- Ccam: "ccam",
21
14
  };
@@ -5,5 +5,6 @@ export declare const StreamConfigStatusMessageType: {
5
5
  readonly ConfigMissing: "CONFIG_MISSING";
6
6
  readonly ConfigNotProvided: "CONFIG_NOT_PROVIDED";
7
7
  readonly ConfigAlreadyReceived: "CONFIG_ALREADY_RECEIVED";
8
+ readonly ConfigTimeout: "CONFIG_TIMEOUT";
8
9
  };
9
10
  export type StreamConfigStatusMessageType = (typeof StreamConfigStatusMessageType)[keyof typeof StreamConfigStatusMessageType];
@@ -9,4 +9,5 @@ exports.StreamConfigStatusMessageType = {
9
9
  ConfigMissing: "CONFIG_MISSING",
10
10
  ConfigNotProvided: "CONFIG_NOT_PROVIDED",
11
11
  ConfigAlreadyReceived: "CONFIG_ALREADY_RECEIVED",
12
+ ConfigTimeout: "CONFIG_TIMEOUT",
12
13
  };
@@ -3,7 +3,5 @@ export declare const TranscribeConfigStatusMessageType: {
3
3
  readonly ConfigAccepted: "CONFIG_ACCEPTED";
4
4
  readonly ConfigDenied: "CONFIG_DENIED";
5
5
  readonly ConfigTimeout: "CONFIG_TIMEOUT";
6
- readonly ConfigAlreadyReceived: "CONFIG_ALREADY_RECEIVED";
7
- readonly ConfigMissing: "CONFIG_MISSING";
8
6
  };
9
7
  export type TranscribeConfigStatusMessageType = (typeof TranscribeConfigStatusMessageType)[keyof typeof TranscribeConfigStatusMessageType];
@@ -7,6 +7,4 @@ exports.TranscribeConfigStatusMessageType = {
7
7
  ConfigAccepted: "CONFIG_ACCEPTED",
8
8
  ConfigDenied: "CONFIG_DENIED",
9
9
  ConfigTimeout: "CONFIG_TIMEOUT",
10
- ConfigAlreadyReceived: "CONFIG_ALREADY_RECEIVED",
11
- ConfigMissing: "CONFIG_MISSING",
12
10
  };
@@ -52,7 +52,6 @@ export * from "./AgentsTaskStatus.js";
52
52
  export * from "./AgentsTaskStatusState.js";
53
53
  export * from "./AgentsTextPart.js";
54
54
  export * from "./AgentsTextPartKind.js";
55
- export * from "./AgentsUpdateExpertReference.js";
56
55
  export * from "./AgentsValidationError.js";
57
56
  export * from "./AgentsValidationErrorErrorsItem.js";
58
57
  export * from "./AgentsValidationErrorResponse.js";
@@ -137,7 +136,6 @@ export * from "./StreamConfigStatusMessage.js";
137
136
  export * from "./StreamConfigStatusMessageType.js";
138
137
  export * from "./StreamConfigTranscription.js";
139
138
  export * from "./StreamConfigXCortiRetentionPolicy.js";
140
- export * from "./StreamDeltaUsageMessage.js";
141
139
  export * from "./StreamEndedMessage.js";
142
140
  export * from "./StreamEndMessage.js";
143
141
  export * from "./StreamErrorDetail.js";
@@ -170,7 +168,6 @@ export * from "./TranscribeConfig.js";
170
168
  export * from "./TranscribeConfigMessage.js";
171
169
  export * from "./TranscribeConfigStatusMessage.js";
172
170
  export * from "./TranscribeConfigStatusMessageType.js";
173
- export * from "./TranscribeDeltaUsageMessage.js";
174
171
  export * from "./TranscribeEndedMessage.js";
175
172
  export * from "./TranscribeEndMessage.js";
176
173
  export * from "./TranscribeErrorMessage.js";
@@ -68,7 +68,6 @@ __exportStar(require("./AgentsTaskStatus.js"), exports);
68
68
  __exportStar(require("./AgentsTaskStatusState.js"), exports);
69
69
  __exportStar(require("./AgentsTextPart.js"), exports);
70
70
  __exportStar(require("./AgentsTextPartKind.js"), exports);
71
- __exportStar(require("./AgentsUpdateExpertReference.js"), exports);
72
71
  __exportStar(require("./AgentsValidationError.js"), exports);
73
72
  __exportStar(require("./AgentsValidationErrorErrorsItem.js"), exports);
74
73
  __exportStar(require("./AgentsValidationErrorResponse.js"), exports);
@@ -153,7 +152,6 @@ __exportStar(require("./StreamConfigStatusMessage.js"), exports);
153
152
  __exportStar(require("./StreamConfigStatusMessageType.js"), exports);
154
153
  __exportStar(require("./StreamConfigTranscription.js"), exports);
155
154
  __exportStar(require("./StreamConfigXCortiRetentionPolicy.js"), exports);
156
- __exportStar(require("./StreamDeltaUsageMessage.js"), exports);
157
155
  __exportStar(require("./StreamEndedMessage.js"), exports);
158
156
  __exportStar(require("./StreamEndMessage.js"), exports);
159
157
  __exportStar(require("./StreamErrorDetail.js"), exports);
@@ -186,7 +184,6 @@ __exportStar(require("./TranscribeConfig.js"), exports);
186
184
  __exportStar(require("./TranscribeConfigMessage.js"), exports);
187
185
  __exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
188
186
  __exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
189
- __exportStar(require("./TranscribeDeltaUsageMessage.js"), exports);
190
187
  __exportStar(require("./TranscribeEndedMessage.js"), exports);
191
188
  __exportStar(require("./TranscribeEndMessage.js"), exports);
192
189
  __exportStar(require("./TranscribeErrorMessage.js"), exports);
@@ -1,10 +1,25 @@
1
+ import type { OAuthAuthProvider } from "../auth/OAuthAuthProvider.js";
1
2
  import { CortiClient as BaseCortiClient } from "../Client.js";
2
3
  import type * as environments from "../environments.js";
3
- import { CustomAgents } from "./agents/CustomAgents.js";
4
4
  import { CortiAuth } from "./auth/CortiAuth.js";
5
5
  import { CustomStream } from "./stream/CustomStream.js";
6
6
  import { CustomTranscribe } from "./transcribe/CustomTranscribe.js";
7
7
  import { type Environment } from "./utils/environment.js";
8
+ type TokenDerivableAuth = {
9
+ accessToken: string;
10
+ refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
11
+ expiresIn?: number;
12
+ refreshToken?: string;
13
+ refreshExpiresIn?: number;
14
+ clientId?: string;
15
+ } | {
16
+ refreshAccessToken: OAuthAuthProvider.RefreshAccessTokenFunction;
17
+ accessToken?: string;
18
+ expiresIn?: number;
19
+ refreshToken?: string;
20
+ refreshExpiresIn?: number;
21
+ clientId?: string;
22
+ };
8
23
  type OptionsBase = Omit<BaseCortiClient.Options, "clientId" | "clientSecret" | "token" | "environment" | "tenantName" | "baseUrl"> & {
9
24
  withCredentials?: boolean;
10
25
  /**
@@ -15,23 +30,71 @@ type OptionsBase = Omit<BaseCortiClient.Options, "clientId" | "clientSecret" | "
15
30
  encodeHeadersAsWsProtocols?: boolean;
16
31
  };
17
32
  export declare namespace CortiClient {
18
- type Auth = CortiAuth.AuthServer | CortiAuth.AuthTokenDerivable;
33
+ type Auth = {
34
+ clientId: string;
35
+ clientSecret: string;
36
+ } | {
37
+ accessToken: string;
38
+ refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
39
+ expiresIn?: number;
40
+ refreshToken?: string;
41
+ refreshExpiresIn?: number;
42
+ clientId?: string;
43
+ } | {
44
+ clientId: string;
45
+ username: string;
46
+ password: string;
47
+ } | {
48
+ clientId: string;
49
+ clientSecret: string;
50
+ code: string;
51
+ redirectUri: string;
52
+ } | {
53
+ clientId: string;
54
+ code: string;
55
+ redirectUri: string;
56
+ codeVerifier?: string;
57
+ } | {
58
+ refreshAccessToken: OAuthAuthProvider.RefreshAccessTokenFunction;
59
+ accessToken?: string;
60
+ expiresIn?: number;
61
+ refreshToken?: string;
62
+ refreshExpiresIn?: number;
63
+ clientId?: string;
64
+ };
19
65
  type Options = (OptionsBase & {
20
- auth: CortiAuth.AuthServer;
66
+ auth: {
67
+ clientId: string;
68
+ clientSecret: string;
69
+ } | {
70
+ clientId: string;
71
+ username: string;
72
+ password: string;
73
+ } | {
74
+ clientId: string;
75
+ clientSecret: string;
76
+ code: string;
77
+ redirectUri: string;
78
+ } | {
79
+ clientId: string;
80
+ code: string;
81
+ redirectUri: string;
82
+ codeVerifier?: string;
83
+ };
21
84
  tenantName: string;
22
85
  environment: Environment;
23
86
  }) | (OptionsBase & {
24
- auth: CortiAuth.AuthTokenDerivable;
87
+ auth: TokenDerivableAuth;
25
88
  tenantName?: string;
26
89
  environment?: Environment;
27
90
  }) | (OptionsBase & {
28
91
  baseUrl: string;
29
- auth?: Auth;
92
+ auth?: CortiClient.Auth;
30
93
  tenantName?: string;
31
94
  environment?: Environment;
32
95
  }) | (OptionsBase & {
33
96
  environment: environments.CortiEnvironmentUrls;
34
- auth?: Auth;
97
+ auth?: CortiClient.Auth;
35
98
  tenantName?: string;
36
99
  });
37
100
  interface RequestOptions extends BaseCortiClient.RequestOptions {
@@ -41,29 +104,10 @@ export declare class CortiClient extends BaseCortiClient {
41
104
  protected _auth: CortiAuth | undefined;
42
105
  protected _stream: CustomStream | undefined;
43
106
  protected _transcribe: CustomTranscribe | undefined;
44
- protected _agents: CustomAgents | undefined;
45
107
  private readonly _encodeHeadersAsWsProtocols;
46
108
  constructor(options: CortiClient.Options);
47
109
  get auth(): CortiAuth;
48
110
  get stream(): CustomStream;
49
111
  get transcribe(): CustomTranscribe;
50
- get agents(): CustomAgents;
51
- /**
52
- * Retrieves authentication headers for API requests.
53
- *
54
- * This method returns a Headers object containing the Authorization header with a valid
55
- * bearer token and the Tenant-Name header. The token is automatically refreshed if needed.
56
- *
57
- * @returns A Promise that resolves to a Headers object with Authorization and Tenant-Name headers
58
- *
59
- * @example
60
- * ```typescript
61
- * const client = new CortiClient({ ... });
62
- * const headers = await client.getAuthHeaders();
63
- * console.log(headers.get("Authorization")); // "Bearer ..."
64
- * console.log(headers.get("Tenant-Name")); // "your-tenant"
65
- * ```
66
- */
67
- getAuthHeaders: () => Promise<Headers>;
68
112
  }
69
113
  export {};
@@ -1,51 +1,7 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
- return new (P || (P = Promise))(function (resolve, reject) {
38
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
- step((generator = generator.apply(thisArg, _arguments || [])).next());
42
- });
43
- };
44
2
  Object.defineProperty(exports, "__esModule", { value: true });
45
3
  exports.CortiClient = void 0;
46
4
  const Client_js_1 = require("../Client.js");
47
- const core = __importStar(require("../core/index.js"));
48
- const CustomAgents_js_1 = require("./agents/CustomAgents.js");
49
5
  const CortiAuth_js_1 = require("./auth/CortiAuth.js");
50
6
  const CustomStream_js_1 = require("./stream/CustomStream.js");
51
7
  const CustomTranscribe_js_1 = require("./transcribe/CustomTranscribe.js");
@@ -59,27 +15,6 @@ class CortiClient extends Client_js_1.CortiClient {
59
15
  const ctx = (0, resolveClientOptions_js_1.resolveClientOptions)(options);
60
16
  const restOptions = Object.assign(Object.assign(Object.assign({}, opts), { tenantName: ctx.tenantName, environment: (0, environment_js_1.getEnvironment)(ctx.environment) }), (ctx.initialTokenResponse != null ? { initialTokenResponse: ctx.initialTokenResponse } : {}));
61
17
  super((0, authToBaseOptions_js_1.authToBaseOptions)(opts.auth, restOptions));
62
- /**
63
- * Retrieves authentication headers for API requests.
64
- *
65
- * This method returns a Headers object containing the Authorization header with a valid
66
- * bearer token and the Tenant-Name header. The token is automatically refreshed if needed.
67
- *
68
- * @returns A Promise that resolves to a Headers object with Authorization and Tenant-Name headers
69
- *
70
- * @example
71
- * ```typescript
72
- * const client = new CortiClient({ ... });
73
- * const headers = await client.getAuthHeaders();
74
- * console.log(headers.get("Authorization")); // "Bearer ..."
75
- * console.log(headers.get("Tenant-Name")); // "your-tenant"
76
- * ```
77
- */
78
- this.getAuthHeaders = () => __awaiter(this, void 0, void 0, function* () {
79
- var _a;
80
- const req = yield this._options.authProvider.getAuthRequest();
81
- return new Headers(Object.assign(Object.assign({}, ((_a = req.headers) !== null && _a !== void 0 ? _a : {})), { "Tenant-Name": yield core.Supplier.get(this._options.tenantName) }));
82
- });
83
18
  (0, withCredentialsConfig_js_1.setDefaultWithCredentials)(options.withCredentials);
84
19
  this._encodeHeadersAsWsProtocols = options.encodeHeadersAsWsProtocols;
85
20
  }
@@ -95,9 +30,5 @@ class CortiClient extends Client_js_1.CortiClient {
95
30
  var _a;
96
31
  return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new CustomTranscribe_js_1.CustomTranscribe(Object.assign(Object.assign({}, this._options), { encodeHeadersAsWsProtocols: this._encodeHeadersAsWsProtocols }))));
97
32
  }
98
- get agents() {
99
- var _a;
100
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new CustomAgents_js_1.CustomAgents(this._options)));
101
- }
102
33
  }
103
34
  exports.CortiClient = CortiClient;
@@ -45,32 +45,6 @@ export declare namespace CortiAuth {
45
45
  codeVerifier?: string;
46
46
  scopes?: string[];
47
47
  }
48
- /**
49
- * Auth shapes used by `CortiClient` when passing `auth: ...`.
50
- */
51
- type AuthClientCredentials = {
52
- clientId: string;
53
- clientSecret: string;
54
- };
55
- type AuthRopc = Omit<GetRopcFlowTokenRequest, "scopes">;
56
- type AuthCode = Omit<GetCodeFlowTokenRequest, "scopes">;
57
- type AuthPkce = Omit<GetPkceFlowTokenRequest, "scopes">;
58
- type AuthTokenDerivable = {
59
- accessToken: string;
60
- refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
61
- expiresIn?: number;
62
- refreshToken?: string;
63
- refreshExpiresIn?: number;
64
- clientId?: string;
65
- } | {
66
- refreshAccessToken: OAuthAuthProvider.RefreshAccessTokenFunction;
67
- accessToken?: string;
68
- expiresIn?: number;
69
- refreshToken?: string;
70
- refreshExpiresIn?: number;
71
- clientId?: string;
72
- };
73
- type AuthServer = AuthClientCredentials | AuthRopc | AuthCode | AuthPkce;
74
48
  /** Parameters for authorizeURL — builds the Keycloak authorization endpoint URL. */
75
49
  interface AuthorizationCodeClient {
76
50
  clientId: string;
@@ -87,7 +61,6 @@ export declare namespace CortiAuth {
87
61
  }
88
62
  }
89
63
  export declare class CortiAuth extends AuthClient {
90
- private readonly _tenantName;
91
64
  /** No-op auth provider so super.token() does not trigger OAuth refresh. When auth is omitted, a dummy token is passed so the base constructor does not throw. */
92
65
  constructor(options: CortiAuth.Options);
93
66
  /**
@@ -61,19 +61,13 @@ const buildTokenRequestBody_js_1 = require("../utils/buildTokenRequestBody.js");
61
61
  const environment_js_1 = require("../utils/environment.js");
62
62
  const localStorageHelpers_js_1 = require("../utils/localStorageHelpers.js");
63
63
  const pkceHelpers_js_1 = require("../utils/pkceHelpers.js");
64
- const stripFernNormalizedHeaders_js_1 = require("../utils/stripFernNormalizedHeaders.js");
65
64
  class CortiAuth extends Client_js_1.AuthClient {
66
65
  /** No-op auth provider so super.token() does not trigger OAuth refresh. When auth is omitted, a dummy token is passed so the base constructor does not throw. */
67
66
  constructor(options) {
68
67
  var _a;
69
- const { environment, tenantName } = options, rest = __rest(options, ["environment", "tenantName"]);
70
- super(Object.assign(Object.assign({}, rest), {
71
- // @ts-expect-error it suppose to be required, but we need to filter out header without rewriting too much
72
- tenantName: null, environment: (0, environment_js_1.getEnvironment)(environment), token: (_a = options.token) !== null && _a !== void 0 ? _a : (() => "") }));
73
- this._tenantName = tenantName;
68
+ const { environment } = options, rest = __rest(options, ["environment"]);
69
+ super(Object.assign(Object.assign({}, rest), { environment: (0, environment_js_1.getEnvironment)(environment), token: (_a = options.token) !== null && _a !== void 0 ? _a : (() => "") }));
74
70
  this._options.authProvider = new core.NoOpAuthProvider();
75
- /** Stripping Fern headers to bypass CORS on authentication requests */
76
- this._options.headers = (0, stripFernNormalizedHeaders_js_1.stripFernNormalizedHeaders)(this._options.headers);
77
71
  }
78
72
  /**
79
73
  * Exchange credentials for a short-lived access token using the tenant token endpoint (client_credentials).
@@ -98,7 +92,7 @@ class CortiAuth extends Client_js_1.AuthClient {
98
92
  _getTokenWithTenant(request, requestOptions) {
99
93
  return __awaiter(this, void 0, void 0, function* () {
100
94
  const authRequest = (0, buildTokenRequestBody_js_1.buildTokenRequestBody)(request);
101
- const tenantName = yield core.Supplier.get(this._tenantName);
95
+ const tenantName = yield core.Supplier.get(this._options.tenantName);
102
96
  return this.token(tenantName, authRequest, requestOptions).withRawResponse();
103
97
  });
104
98
  }
@@ -174,7 +168,7 @@ class CortiAuth extends Client_js_1.AuthClient {
174
168
  authorizeURL(_a, options_1) {
175
169
  return __awaiter(this, arguments, void 0, function* ({ clientId, redirectUri, codeChallenge, scopes }, options) {
176
170
  const envUrls = yield core.Supplier.get(this._options.environment);
177
- const tenantName = yield core.Supplier.get(this._tenantName);
171
+ const tenantName = yield core.Supplier.get(this._options.tenantName);
178
172
  const authUrl = new URL(core.url.join(envUrls.login, tenantName, "protocol/openid-connect/auth"));
179
173
  authUrl.searchParams.set("response_type", "code");
180
174
  const allScopes = ["openid", "profile", ...(scopes !== null && scopes !== void 0 ? scopes : [])];
@@ -64,6 +64,7 @@ const parseStreamResponseType_js_1 = require("./parseStreamResponseType.js");
64
64
  const STREAM_CONFIG_REJECTION_TYPES = [
65
65
  Corti.StreamConfigStatusMessageType.ConfigDenied,
66
66
  Corti.StreamConfigStatusMessageType.ConfigMissing,
67
+ Corti.StreamConfigStatusMessageType.ConfigTimeout,
67
68
  Corti.StreamConfigStatusMessageType.ConfigNotProvided,
68
69
  ];
69
70
  class CustomStream extends Client_js_1.StreamClient {
@@ -133,9 +134,7 @@ class CustomStream extends Client_js_1.StreamClient {
133
134
  });
134
135
  socket.socket.addEventListener("message", (event) => {
135
136
  const type = (0, parseStreamResponseType_js_1.parseStreamResponseType)(event.data);
136
- if (type == null ||
137
- type === Corti.StreamConfigStatusMessageType.ConfigAccepted ||
138
- type === Corti.StreamConfigStatusMessageType.ConfigAlreadyReceived) {
137
+ if (type == null || type === Corti.StreamConfigStatusMessageType.ConfigAccepted) {
139
138
  return;
140
139
  }
141
140
  if (STREAM_CONFIG_REJECTION_TYPES.includes(type) || type === "error") {
@@ -163,8 +162,7 @@ class CustomStream extends Client_js_1.StreamClient {
163
162
  const type = (0, parseStreamResponseType_js_1.parseStreamResponseType)(event.data);
164
163
  if (type == null)
165
164
  return;
166
- if (type === Corti.StreamConfigStatusMessageType.ConfigAccepted ||
167
- type === Corti.StreamConfigStatusMessageType.ConfigAlreadyReceived) {
165
+ if (type === Corti.StreamConfigStatusMessageType.ConfigAccepted) {
168
166
  cleanup();
169
167
  resolve();
170
168
  }
@@ -64,7 +64,6 @@ const parseTranscribeResponseType_js_1 = require("./parseTranscribeResponseType.
64
64
  const TRANSCRIBE_CONFIG_REJECTION_TYPES = [
65
65
  Corti.TranscribeConfigStatusMessageType.ConfigDenied,
66
66
  Corti.TranscribeConfigStatusMessageType.ConfigTimeout,
67
- Corti.TranscribeConfigStatusMessageType.ConfigMissing,
68
67
  ];
69
68
  class CustomTranscribe extends Client_js_1.TranscribeClient {
70
69
  constructor(options) {
@@ -133,9 +132,7 @@ class CustomTranscribe extends Client_js_1.TranscribeClient {
133
132
  });
134
133
  socket.socket.addEventListener("message", (event) => {
135
134
  const type = (0, parseTranscribeResponseType_js_1.parseTranscribeResponseType)(event.data);
136
- if (type == null ||
137
- type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted ||
138
- type === Corti.TranscribeConfigStatusMessageType.ConfigAlreadyReceived) {
135
+ if (type == null || type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted) {
139
136
  return;
140
137
  }
141
138
  if (TRANSCRIBE_CONFIG_REJECTION_TYPES.includes(type) || type === "error") {
@@ -163,8 +160,7 @@ class CustomTranscribe extends Client_js_1.TranscribeClient {
163
160
  const type = (0, parseTranscribeResponseType_js_1.parseTranscribeResponseType)(event.data);
164
161
  if (type == null)
165
162
  return;
166
- if (type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted ||
167
- type === Corti.TranscribeConfigStatusMessageType.ConfigAlreadyReceived) {
163
+ if (type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted) {
168
164
  cleanup();
169
165
  resolve();
170
166
  }
@@ -49,7 +49,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
49
49
  exports.buildProtocolsFromHeaders = buildProtocolsFromHeaders;
50
50
  exports.getWsProtocols = getWsProtocols;
51
51
  const core = __importStar(require("../../core/index.js"));
52
- const sdkHeaderNames_js_1 = require("./sdkHeaderNames.js");
52
+ /** Headers added by the SDK; exclude these when filterSdkHeaders is true (e.g. merged client headers). */
53
+ const SDK_HEADER_NAMES = new Set([
54
+ "Tenant-Name",
55
+ "X-Fern-Language",
56
+ "X-Fern-SDK-Name",
57
+ "X-Fern-SDK-Version",
58
+ "User-Agent",
59
+ "X-Fern-Runtime",
60
+ "X-Fern-Runtime-Version",
61
+ ]);
53
62
  /**
54
63
  * Resolves header values (including suppliers/functions) and returns a flat array
55
64
  * of [name, encodeURIComponent(value)] for each header, skipping undefined/empty values.
@@ -62,7 +71,7 @@ function buildProtocolsFromHeaders(headers_1) {
62
71
  }
63
72
  const protocols = [];
64
73
  for (const [name, valueOrSupplier] of Object.entries(headers)) {
65
- if (filterSdkHeaders && sdkHeaderNames_js_1.SDK_HEADER_NAMES.has(name)) {
74
+ if (filterSdkHeaders && SDK_HEADER_NAMES.has(name)) {
66
75
  continue;
67
76
  }
68
77
  const value = yield core.Supplier.get(valueOrSupplier);
@@ -2,8 +2,8 @@ import type * as Corti from "../../../../api/index.js";
2
2
  import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.js";
5
- import { AgentsUpdateExpertReference } from "../../../types/AgentsUpdateExpertReference.js";
5
+ import { AgentsCreateExpertReference } from "../../../types/AgentsCreateExpertReference.js";
6
6
  export declare const AgentsUpdateAgentExpertsItem: core.serialization.Schema<serializers.AgentsUpdateAgentExpertsItem.Raw, Corti.AgentsUpdateAgentExpertsItem>;
7
7
  export declare namespace AgentsUpdateAgentExpertsItem {
8
- type Raw = AgentsCreateExpert.Raw | AgentsUpdateExpertReference.Raw;
8
+ type Raw = AgentsCreateExpert.Raw | AgentsCreateExpertReference.Raw;
9
9
  }
@@ -37,5 +37,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AgentsUpdateAgentExpertsItem = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const AgentsCreateExpert_js_1 = require("../../../types/AgentsCreateExpert.js");
40
- const AgentsUpdateExpertReference_js_1 = require("../../../types/AgentsUpdateExpertReference.js");
41
- exports.AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert_js_1.AgentsCreateExpert, AgentsUpdateExpertReference_js_1.AgentsUpdateExpertReference]);
40
+ const AgentsCreateExpertReference_js_1 = require("../../../types/AgentsCreateExpertReference.js");
41
+ exports.AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert_js_1.AgentsCreateExpert, AgentsCreateExpertReference_js_1.AgentsCreateExpertReference]);
@@ -2,14 +2,13 @@ import type * as Corti from "../../../../../api/index.js";
2
2
  import * as core from "../../../../../core/index.js";
3
3
  import type * as serializers from "../../../../index.js";
4
4
  import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.js";
5
- import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.js";
6
5
  import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.js";
7
6
  import { StreamErrorMessage } from "../../../../types/StreamErrorMessage.js";
8
7
  import { StreamFactsMessage } from "../../../../types/StreamFactsMessage.js";
9
8
  import { StreamFlushedMessage } from "../../../../types/StreamFlushedMessage.js";
10
9
  import { StreamTranscriptMessage } from "../../../../types/StreamTranscriptMessage.js";
11
10
  import { StreamUsageMessage } from "../../../../types/StreamUsageMessage.js";
12
- export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage>;
11
+ export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage>;
13
12
  export declare namespace StreamSocketResponse {
14
- type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamDeltaUsageMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw;
13
+ type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw;
15
14
  }
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.StreamSocketResponse = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  const StreamConfigStatusMessage_js_1 = require("../../../../types/StreamConfigStatusMessage.js");
40
- const StreamDeltaUsageMessage_js_1 = require("../../../../types/StreamDeltaUsageMessage.js");
41
40
  const StreamEndedMessage_js_1 = require("../../../../types/StreamEndedMessage.js");
42
41
  const StreamErrorMessage_js_1 = require("../../../../types/StreamErrorMessage.js");
43
42
  const StreamFactsMessage_js_1 = require("../../../../types/StreamFactsMessage.js");
@@ -48,7 +47,6 @@ exports.StreamSocketResponse = core.serialization.undiscriminatedUnion([
48
47
  StreamTranscriptMessage_js_1.StreamTranscriptMessage,
49
48
  StreamFactsMessage_js_1.StreamFactsMessage,
50
49
  StreamFlushedMessage_js_1.StreamFlushedMessage,
51
- StreamDeltaUsageMessage_js_1.StreamDeltaUsageMessage,
52
50
  StreamEndedMessage_js_1.StreamEndedMessage,
53
51
  StreamUsageMessage_js_1.StreamUsageMessage,
54
52
  StreamErrorMessage_js_1.StreamErrorMessage,