@corti/sdk 1.0.0-alpha.2 → 1.0.0-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/codes/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/codes/client/Client.js +1 -1
- package/dist/cjs/api/types/AgentsAgentCard.d.ts +2 -2
- package/dist/cjs/api/types/AgentsErrorResponse.d.ts +2 -2
- package/dist/cjs/api/types/CodesGeneralResponse.d.ts +1 -1
- package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +4 -0
- package/dist/cjs/api/types/CommonCodingSystemEnum.js +4 -0
- package/dist/cjs/api/types/StreamConfig.d.ts +2 -0
- package/dist/cjs/api/types/StreamConfigXCortiRetentionPolicy.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigXCortiRetentionPolicy.js +9 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/custom/CortiClient.js +1 -1
- package/dist/cjs/custom/auth/OAuthAuthCodeAuthProvider.js +1 -1
- package/dist/cjs/custom/auth/OAuthPkceAuthProvider.js +1 -1
- package/dist/cjs/custom/auth/OAuthRopcAuthProvider.js +1 -1
- package/dist/cjs/custom/overrides/OAuthAuthProvider.js +1 -1
- package/dist/cjs/custom/overrides/fetcher/index.d.ts +2 -2
- package/dist/cjs/custom/overrides/fetcher/index.js +4 -4
- package/dist/cjs/custom/overrides/index.d.ts +5 -5
- package/dist/cjs/custom/overrides/index.js +7 -7
- package/dist/cjs/custom/proxy/CustomProxyStream.d.ts +1 -1
- package/dist/cjs/custom/proxy/CustomProxyTranscribe.d.ts +1 -1
- package/dist/cjs/custom/stream/CustomStream.d.ts +2 -2
- package/dist/cjs/custom/stream/CustomStream.js +4 -4
- package/dist/cjs/custom/transcribe/CustomTranscribe.d.ts +2 -2
- package/dist/cjs/custom/transcribe/CustomTranscribe.js +4 -4
- package/dist/cjs/custom/utils/index.d.ts +2 -2
- package/dist/cjs/custom/utils/index.js +3 -3
- package/dist/cjs/custom/utils/withCredentialsConfig.js +1 -1
- package/dist/cjs/serialization/types/AgentsAgentCard.d.ts +2 -2
- package/dist/cjs/serialization/types/AgentsAgentCard.js +2 -2
- package/dist/cjs/serialization/types/AgentsErrorResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/AgentsErrorResponse.js +1 -2
- package/dist/cjs/serialization/types/AgentsValidationErrorResponse.d.ts +3 -2
- package/dist/cjs/serialization/types/AgentsValidationErrorResponse.js +2 -2
- package/dist/cjs/serialization/types/CodesGeneralResponse.d.ts +1 -1
- package/dist/cjs/serialization/types/CodesGeneralResponse.js +1 -1
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +10 -1
- package/dist/cjs/serialization/types/StreamConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfig.js +2 -0
- package/dist/cjs/serialization/types/StreamConfigXCortiRetentionPolicy.d.ts +7 -0
- package/dist/cjs/serialization/types/StreamConfigXCortiRetentionPolicy.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +1 -0
- package/dist/cjs/serialization/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/codes/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/codes/client/Client.mjs +1 -1
- package/dist/esm/api/types/AgentsAgentCard.d.mts +2 -2
- package/dist/esm/api/types/AgentsErrorResponse.d.mts +2 -2
- package/dist/esm/api/types/CodesGeneralResponse.d.mts +1 -1
- package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +4 -0
- package/dist/esm/api/types/CommonCodingSystemEnum.mjs +4 -0
- package/dist/esm/api/types/StreamConfig.d.mts +2 -0
- package/dist/esm/api/types/StreamConfigXCortiRetentionPolicy.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigXCortiRetentionPolicy.mjs +6 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/custom/CortiClient.mjs +1 -1
- package/dist/esm/custom/auth/OAuthAuthCodeAuthProvider.mjs +1 -1
- package/dist/esm/custom/auth/OAuthPkceAuthProvider.mjs +1 -1
- package/dist/esm/custom/auth/OAuthRopcAuthProvider.mjs +1 -1
- package/dist/esm/custom/overrides/OAuthAuthProvider.mjs +1 -1
- package/dist/esm/custom/overrides/fetcher/index.d.mts +2 -2
- package/dist/esm/custom/overrides/fetcher/index.mjs +2 -2
- package/dist/esm/custom/overrides/index.d.mts +5 -5
- package/dist/esm/custom/overrides/index.mjs +3 -5
- package/dist/esm/custom/proxy/CustomProxyStream.d.mts +1 -1
- package/dist/esm/custom/proxy/CustomProxyStream.mjs +0 -1
- package/dist/esm/custom/proxy/CustomProxyTranscribe.d.mts +1 -1
- package/dist/esm/custom/proxy/CustomProxyTranscribe.mjs +0 -1
- package/dist/esm/custom/stream/CustomStream.d.mts +2 -2
- package/dist/esm/custom/stream/CustomStream.mjs +4 -4
- package/dist/esm/custom/transcribe/CustomTranscribe.d.mts +2 -2
- package/dist/esm/custom/transcribe/CustomTranscribe.mjs +4 -4
- package/dist/esm/custom/utils/index.d.mts +2 -2
- package/dist/esm/custom/utils/index.mjs +1 -1
- package/dist/esm/custom/utils/withCredentialsConfig.mjs +1 -1
- package/dist/esm/serialization/types/AgentsAgentCard.d.mts +2 -2
- package/dist/esm/serialization/types/AgentsAgentCard.mjs +2 -2
- package/dist/esm/serialization/types/AgentsErrorResponse.d.mts +2 -2
- package/dist/esm/serialization/types/AgentsErrorResponse.mjs +1 -2
- package/dist/esm/serialization/types/AgentsValidationErrorResponse.d.mts +3 -2
- package/dist/esm/serialization/types/AgentsValidationErrorResponse.mjs +2 -2
- package/dist/esm/serialization/types/CodesGeneralResponse.d.mts +1 -1
- package/dist/esm/serialization/types/CodesGeneralResponse.mjs +1 -1
- package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
- package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +10 -1
- package/dist/esm/serialization/types/StreamConfig.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfig.mjs +2 -0
- package/dist/esm/serialization/types/StreamConfigXCortiRetentionPolicy.d.mts +7 -0
- package/dist/esm/serialization/types/StreamConfigXCortiRetentionPolicy.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +1 -0
- package/dist/esm/serialization/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,39 @@
|
|
|
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.StreamConfigXCortiRetentionPolicy = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamConfigXCortiRetentionPolicy = core.serialization.enum_(["retain", "none"]);
|
|
@@ -135,6 +135,7 @@ export * from "./StreamConfigParticipantRole.js";
|
|
|
135
135
|
export * from "./StreamConfigStatusMessage.js";
|
|
136
136
|
export * from "./StreamConfigStatusMessageType.js";
|
|
137
137
|
export * from "./StreamConfigTranscription.js";
|
|
138
|
+
export * from "./StreamConfigXCortiRetentionPolicy.js";
|
|
138
139
|
export * from "./StreamEndedMessage.js";
|
|
139
140
|
export * from "./StreamEndMessage.js";
|
|
140
141
|
export * from "./StreamErrorDetail.js";
|
|
@@ -151,6 +151,7 @@ __exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
|
151
151
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
152
152
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
153
153
|
__exportStar(require("./StreamConfigTranscription.js"), exports);
|
|
154
|
+
__exportStar(require("./StreamConfigXCortiRetentionPolicy.js"), exports);
|
|
154
155
|
__exportStar(require("./StreamEndedMessage.js"), exports);
|
|
155
156
|
__exportStar(require("./StreamEndMessage.js"), exports);
|
|
156
157
|
__exportStar(require("./StreamErrorDetail.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-rc";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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": "0.
|
|
10
|
-
"User-Agent": "@corti/sdk/0.
|
|
9
|
+
"X-Fern-SDK-Version": "1.0.0-rc",
|
|
10
|
+
"User-Agent": "@corti/sdk/1.0.0-rc",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -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, 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.
|
|
@@ -20,7 +20,7 @@ export class CodesClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, 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>
|
|
23
|
+
* 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>
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
26
26
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -15,10 +15,10 @@ export interface AgentsAgentCard {
|
|
|
15
15
|
iconUrl?: string | null;
|
|
16
16
|
/** A URL to documentation describing how to interact with the agent. */
|
|
17
17
|
documentationUrl?: string | null;
|
|
18
|
-
provider?: Corti.AgentsAgentProvider;
|
|
18
|
+
provider?: Corti.AgentsAgentProvider | null;
|
|
19
19
|
/** The version of the agent. */
|
|
20
20
|
version: string;
|
|
21
|
-
capabilities: Corti.AgentsAgentCapabilities;
|
|
21
|
+
capabilities: Corti.AgentsAgentCapabilities | null;
|
|
22
22
|
/** A declaration of the security schemes available to authorize requests. The key is the scheme name. Follows the OpenAPI 3.0 Security Scheme Object. */
|
|
23
23
|
securitySchemes?: Record<string, unknown> | null;
|
|
24
24
|
/** A list of security requirement objects that apply to all agent interactions. Each object lists security schemes that can be used. Follows the OpenAPI 3.0 Security Requirement Object. This list can be seen as an OR of ANDs. Each object in the list describes one possible set of security requirements that must be present on a request. This allows specifying, for example, "callers must either use OAuth OR an API Key AND mTLS." */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type * as Corti from "../index.mjs";
|
|
2
1
|
export interface AgentsErrorResponse {
|
|
3
2
|
/** A machine-readable error code that identifies the type of error. */
|
|
4
3
|
code: string;
|
|
@@ -8,5 +7,6 @@ export interface AgentsErrorResponse {
|
|
|
8
7
|
howToFix?: string;
|
|
9
8
|
/** An optional object containing additional details about the error. */
|
|
10
9
|
details?: Record<string, unknown>;
|
|
11
|
-
cause
|
|
10
|
+
/** An optional object containing the cause of the error, following the same structure as the parent error response. */
|
|
11
|
+
cause?: Record<string, unknown>;
|
|
12
12
|
}
|
|
@@ -4,5 +4,5 @@ export interface CodesGeneralResponse {
|
|
|
4
4
|
codes: Corti.CodesGeneralReadResponse[];
|
|
5
5
|
/** Lower-confidence codes the model considered potentially relevant but excluded from the predicted set. */
|
|
6
6
|
candidates: Corti.CodesGeneralReadResponse[];
|
|
7
|
-
usageInfo
|
|
7
|
+
usageInfo: Corti.CommonUsageInfo;
|
|
8
8
|
}
|
|
@@ -3,5 +3,9 @@ export declare const CommonCodingSystemEnum: {
|
|
|
3
3
|
readonly Icd10CmOutpatient: "icd10cm-outpatient";
|
|
4
4
|
readonly Icd10Pcs: "icd10pcs";
|
|
5
5
|
readonly Cpt: "cpt";
|
|
6
|
+
readonly Icd10IntInpatient: "icd10int-inpatient";
|
|
7
|
+
readonly Icd10IntOutpatient: "icd10int-outpatient";
|
|
8
|
+
readonly Icd10UkInpatient: "icd10uk-inpatient";
|
|
9
|
+
readonly Icd10UkOutpatient: "icd10uk-outpatient";
|
|
6
10
|
};
|
|
7
11
|
export type CommonCodingSystemEnum = (typeof CommonCodingSystemEnum)[keyof typeof CommonCodingSystemEnum];
|
|
@@ -4,4 +4,8 @@ export const CommonCodingSystemEnum = {
|
|
|
4
4
|
Icd10CmOutpatient: "icd10cm-outpatient",
|
|
5
5
|
Icd10Pcs: "icd10pcs",
|
|
6
6
|
Cpt: "cpt",
|
|
7
|
+
Icd10IntInpatient: "icd10int-inpatient",
|
|
8
|
+
Icd10IntOutpatient: "icd10int-outpatient",
|
|
9
|
+
Icd10UkInpatient: "icd10uk-inpatient",
|
|
10
|
+
Icd10UkOutpatient: "icd10uk-outpatient",
|
|
7
11
|
};
|
|
@@ -2,4 +2,6 @@ import type * as Corti from "../index.mjs";
|
|
|
2
2
|
export interface StreamConfig {
|
|
3
3
|
transcription: Corti.StreamConfigTranscription;
|
|
4
4
|
mode: Corti.StreamConfigMode;
|
|
5
|
+
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
6
|
+
xCortiRetentionPolicy?: Corti.StreamConfigXCortiRetentionPolicy;
|
|
5
7
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
2
|
+
export declare const StreamConfigXCortiRetentionPolicy: {
|
|
3
|
+
readonly Retain: "retain";
|
|
4
|
+
readonly None: "none";
|
|
5
|
+
};
|
|
6
|
+
export type StreamConfigXCortiRetentionPolicy = (typeof StreamConfigXCortiRetentionPolicy)[keyof typeof StreamConfigXCortiRetentionPolicy];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
3
|
+
export const StreamConfigXCortiRetentionPolicy = {
|
|
4
|
+
Retain: "retain",
|
|
5
|
+
None: "none",
|
|
6
|
+
};
|
|
@@ -135,6 +135,7 @@ export * from "./StreamConfigParticipantRole.mjs";
|
|
|
135
135
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
136
136
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
137
137
|
export * from "./StreamConfigTranscription.mjs";
|
|
138
|
+
export * from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
138
139
|
export * from "./StreamEndedMessage.mjs";
|
|
139
140
|
export * from "./StreamEndMessage.mjs";
|
|
140
141
|
export * from "./StreamErrorDetail.mjs";
|
|
@@ -135,6 +135,7 @@ export * from "./StreamConfigParticipantRole.mjs";
|
|
|
135
135
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
136
136
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
137
137
|
export * from "./StreamConfigTranscription.mjs";
|
|
138
|
+
export * from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
138
139
|
export * from "./StreamEndedMessage.mjs";
|
|
139
140
|
export * from "./StreamEndMessage.mjs";
|
|
140
141
|
export * from "./StreamErrorDetail.mjs";
|
|
@@ -3,9 +3,9 @@ import { CortiAuth } from "./auth/CortiAuth.mjs";
|
|
|
3
3
|
import { CustomStream } from "./stream/CustomStream.mjs";
|
|
4
4
|
import { CustomTranscribe } from "./transcribe/CustomTranscribe.mjs";
|
|
5
5
|
import { authToBaseOptions } from "./utils/authToBaseOptions.mjs";
|
|
6
|
-
import { setDefaultWithCredentials } from "./utils/withCredentialsConfig.mjs";
|
|
7
6
|
import { getEnvironment } from "./utils/environment.mjs";
|
|
8
7
|
import { resolveClientOptions } from "./utils/resolveClientOptions.mjs";
|
|
8
|
+
import { setDefaultWithCredentials } from "./utils/withCredentialsConfig.mjs";
|
|
9
9
|
export class CortiClient extends BaseCortiClient {
|
|
10
10
|
constructor(options) {
|
|
11
11
|
const opts = options;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import * as core from "../../core/index.mjs";
|
|
11
11
|
import * as errors from "../../errors/index.mjs";
|
|
12
|
-
import { CortiAuth } from "./CortiAuth.mjs";
|
|
13
12
|
import { BUFFER_IN_MINUTES, CLIENT_ID_PARAM, CLIENT_ID_REQUIRED_ERROR_MESSAGE, CLIENT_SECRET_PARAM, CLIENT_SECRET_REQUIRED_ERROR_MESSAGE, CODE_PARAM, CODE_REQUIRED_ERROR_MESSAGE, getExpiresAt, REDIRECT_URI_PARAM, REDIRECT_URI_REQUIRED_ERROR_MESSAGE, } from "../utils/oauthAuthHelpers.mjs";
|
|
13
|
+
import { CortiAuth } from "./CortiAuth.mjs";
|
|
14
14
|
export class OAuthAuthCodeAuthProvider {
|
|
15
15
|
constructor(options) {
|
|
16
16
|
this.options = options;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import * as core from "../../core/index.mjs";
|
|
11
11
|
import * as errors from "../../errors/index.mjs";
|
|
12
|
-
import { CortiAuth } from "./CortiAuth.mjs";
|
|
13
12
|
import { BUFFER_IN_MINUTES, CLIENT_ID_PARAM, CLIENT_ID_REQUIRED_ERROR_MESSAGE, CLIENT_SECRET_PARAM, CODE_PARAM, CODE_REQUIRED_ERROR_MESSAGE, CODE_VERIFIER_PARAM, getExpiresAt, REDIRECT_URI_PARAM, REDIRECT_URI_REQUIRED_ERROR_MESSAGE, } from "../utils/oauthAuthHelpers.mjs";
|
|
13
|
+
import { CortiAuth } from "./CortiAuth.mjs";
|
|
14
14
|
export class OAuthPkceAuthProvider {
|
|
15
15
|
constructor(options) {
|
|
16
16
|
this.options = options;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import * as core from "../../core/index.mjs";
|
|
11
11
|
import * as errors from "../../errors/index.mjs";
|
|
12
|
-
import { CortiAuth } from "./CortiAuth.mjs";
|
|
13
12
|
import { BUFFER_IN_MINUTES, CLIENT_ID_PARAM, CLIENT_ID_REQUIRED_ERROR_MESSAGE, getExpiresAt, PASSWORD_PARAM, PASSWORD_REQUIRED_ERROR_MESSAGE, USERNAME_PARAM, USERNAME_REQUIRED_ERROR_MESSAGE, } from "../utils/oauthAuthHelpers.mjs";
|
|
13
|
+
import { CortiAuth } from "./CortiAuth.mjs";
|
|
14
14
|
export class OAuthRopcAuthProvider {
|
|
15
15
|
constructor(options) {
|
|
16
16
|
this.options = options;
|
|
@@ -8,12 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import * as core from "../../core/index.mjs";
|
|
11
|
+
import * as errors from "../../errors/index.mjs";
|
|
11
12
|
import { CortiAuth } from "../auth/CortiAuth.mjs";
|
|
12
13
|
import { OAuthAuthCodeAuthProvider } from "../auth/OAuthAuthCodeAuthProvider.mjs";
|
|
13
14
|
import { OAuthPkceAuthProvider } from "../auth/OAuthPkceAuthProvider.mjs";
|
|
14
15
|
import { OAuthRopcAuthProvider } from "../auth/OAuthRopcAuthProvider.mjs";
|
|
15
16
|
import { BUFFER_IN_MINUTES, CLIENT_ID_PARAM, CLIENT_ID_REQUIRED_ERROR_MESSAGE, CLIENT_SECRET_PARAM, CLIENT_SECRET_REQUIRED_ERROR_MESSAGE, CODE_PARAM, CODE_VERIFIER_PARAM, getExpiresAt, PASSWORD_PARAM, REDIRECT_URI_PARAM, USERNAME_PARAM, } from "../utils/oauthAuthHelpers.mjs";
|
|
16
|
-
import * as errors from "../../errors/index.mjs";
|
|
17
17
|
/** Patch: Re-export for consumers; implementation shared with OAuthRopcAuthProvider, OAuthAuthCodeAuthProvider and OAuthPkceAuthProvider. */
|
|
18
18
|
export { BUFFER_IN_MINUTES, CLIENT_ID_PARAM, CLIENT_ID_REQUIRED_ERROR_MESSAGE, CLIENT_SECRET_PARAM, CLIENT_SECRET_REQUIRED_ERROR_MESSAGE, CODE_PARAM, CODE_VERIFIER_PARAM, getExpiresAt, PASSWORD_PARAM, PASSWORD_REQUIRED_ERROR_MESSAGE, REDIRECT_URI_PARAM, USERNAME_PARAM, USERNAME_REQUIRED_ERROR_MESSAGE, } from "../utils/oauthAuthHelpers.mjs";
|
|
19
19
|
const TOKEN_PARAM = "token";
|
|
@@ -3,10 +3,10 @@ export type { BinaryResponse } from "../../../core/fetcher/BinaryResponse.mjs";
|
|
|
3
3
|
export type { EndpointMetadata } from "../../../core/fetcher/EndpointMetadata.mjs";
|
|
4
4
|
export { EndpointSupplier } from "../../../core/fetcher/EndpointSupplier.mjs";
|
|
5
5
|
export type { Fetcher, FetchFunction } from "../../../core/fetcher/Fetcher.mjs";
|
|
6
|
-
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
7
|
-
export { fetcher } from "../../fetcher.mjs";
|
|
8
6
|
export { getHeader } from "../../../core/fetcher/getHeader.mjs";
|
|
9
7
|
export { HttpResponsePromise } from "../../../core/fetcher/HttpResponsePromise.mjs";
|
|
10
8
|
export type { RawResponse, WithRawResponse } from "../../../core/fetcher/RawResponse.mjs";
|
|
11
9
|
export { abortRawResponse, toRawResponse, unknownRawResponse } from "../../../core/fetcher/RawResponse.mjs";
|
|
12
10
|
export { Supplier } from "../../../core/fetcher/Supplier.mjs";
|
|
11
|
+
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
12
|
+
export { fetcher } from "../../fetcher.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { EndpointSupplier } from "../../../core/fetcher/EndpointSupplier.mjs";
|
|
2
|
-
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
3
|
-
export { fetcher } from "../../fetcher.mjs";
|
|
4
2
|
export { getHeader } from "../../../core/fetcher/getHeader.mjs";
|
|
5
3
|
export { HttpResponsePromise } from "../../../core/fetcher/HttpResponsePromise.mjs";
|
|
6
4
|
export { abortRawResponse, toRawResponse, unknownRawResponse } from "../../../core/fetcher/RawResponse.mjs";
|
|
7
5
|
export { Supplier } from "../../../core/fetcher/Supplier.mjs";
|
|
6
|
+
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
7
|
+
export { fetcher } from "../../fetcher.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * as Corti from "../../api/index.mjs";
|
|
2
2
|
export type { BaseClientOptions, BaseRequestOptions } from "../../BaseClient.mjs";
|
|
3
|
+
export { JsonError } from "../../core/schemas/builders/schema-utils/JsonError.mjs";
|
|
4
|
+
export { ParseError } from "../../core/schemas/builders/schema-utils/ParseError.mjs";
|
|
3
5
|
export { CortiEnvironment, type CortiEnvironmentUrls } from "../../environments.mjs";
|
|
4
6
|
export { CortiError, CortiTimeoutError } from "../../errors/index.mjs";
|
|
5
7
|
export * from "../../exports.mjs";
|
|
6
8
|
export * as serialization from "../../serialization/index.mjs";
|
|
7
9
|
export { CortiAuth } from "../auth/CortiAuth.mjs";
|
|
8
10
|
export { CortiClient } from "../CortiClient.mjs";
|
|
9
|
-
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.mjs";
|
|
10
|
-
export { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
11
|
-
export { type CortiInternalEnvironment, type Environment } from "../utils/environment.mjs";
|
|
12
11
|
export { CortiSDKError, CortiSDKErrorCodes } from "../CortiSDKError.mjs";
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
12
|
+
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.mjs";
|
|
13
|
+
export type { ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
14
|
+
export type { CortiInternalEnvironment, Environment } from "../utils/environment.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * as Corti from "../../api/index.mjs";
|
|
2
|
+
export { JsonError } from "../../core/schemas/builders/schema-utils/JsonError.mjs";
|
|
3
|
+
export { ParseError } from "../../core/schemas/builders/schema-utils/ParseError.mjs";
|
|
2
4
|
export { CortiEnvironment } from "../../environments.mjs";
|
|
3
5
|
export { CortiError, CortiTimeoutError } from "../../errors/index.mjs";
|
|
4
6
|
export * from "../../exports.mjs";
|
|
@@ -6,9 +8,5 @@ export * as serialization from "../../serialization/index.mjs";
|
|
|
6
8
|
// Custom additions / replacements
|
|
7
9
|
export { CortiAuth } from "../auth/CortiAuth.mjs";
|
|
8
10
|
export { CortiClient } from "../CortiClient.mjs";
|
|
9
|
-
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.mjs";
|
|
10
|
-
export {} from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
11
|
-
export {} from "../utils/environment.mjs";
|
|
12
11
|
export { CortiSDKError, CortiSDKErrorCodes } from "../CortiSDKError.mjs";
|
|
13
|
-
export {
|
|
14
|
-
export { JsonError } from "../../core/schemas/builders/schema-utils/JsonError.mjs";
|
|
12
|
+
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Corti from "../../api/index.mjs";
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
2
|
import type { CustomTranscribeSocket } from "../transcribe/CustomTranscribeSocket.mjs";
|
|
3
3
|
import type { ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StreamClient } from "../../api/resources/stream/client/Client.mjs";
|
|
2
|
-
import { CustomStreamSocket } from "./CustomStreamSocket.mjs";
|
|
3
1
|
import * as Corti from "../../api/index.mjs";
|
|
2
|
+
import { StreamClient } from "../../api/resources/stream/client/Client.mjs";
|
|
4
3
|
import { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
4
|
+
import { CustomStreamSocket } from "./CustomStreamSocket.mjs";
|
|
5
5
|
export type CustomStreamConnectArgs = {
|
|
6
6
|
id: string;
|
|
7
7
|
/** When provided, connect() resolves after CONFIG_ACCEPTED or rejects on failure. */
|
|
@@ -18,13 +18,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
|
-
import { StreamClient } from "../../api/resources/stream/client/Client.mjs";
|
|
22
|
-
import { CustomStreamSocket } from "./CustomStreamSocket.mjs";
|
|
23
21
|
import * as Corti from "../../api/index.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import { parseStreamResponseType } from "./parseStreamResponseType.mjs";
|
|
22
|
+
import { StreamClient } from "../../api/resources/stream/client/Client.mjs";
|
|
26
23
|
import * as core from "../../core/index.mjs";
|
|
24
|
+
import { ErrorEvent } from "../../core/websocket/events.mjs";
|
|
27
25
|
import { getWsProtocols } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
26
|
+
import { CustomStreamSocket } from "./CustomStreamSocket.mjs";
|
|
27
|
+
import { parseStreamResponseType } from "./parseStreamResponseType.mjs";
|
|
28
28
|
const STREAM_CONFIG_REJECTION_TYPES = [
|
|
29
29
|
Corti.StreamConfigStatusMessageType.ConfigDenied,
|
|
30
30
|
Corti.StreamConfigStatusMessageType.ConfigMissing,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TranscribeClient } from "../../api/resources/transcribe/client/Client.mjs";
|
|
2
|
-
import { CustomTranscribeSocket } from "./CustomTranscribeSocket.mjs";
|
|
3
1
|
import * as Corti from "../../api/index.mjs";
|
|
2
|
+
import { TranscribeClient } from "../../api/resources/transcribe/client/Client.mjs";
|
|
4
3
|
import { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
4
|
+
import { CustomTranscribeSocket } from "./CustomTranscribeSocket.mjs";
|
|
5
5
|
export type CustomTranscribeConnectArgs = {
|
|
6
6
|
/** When provided, connect() resolves after CONFIG_ACCEPTED or rejects on failure. */
|
|
7
7
|
configuration?: Corti.TranscribeConfig;
|
|
@@ -18,13 +18,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
|
-
import { TranscribeClient } from "../../api/resources/transcribe/client/Client.mjs";
|
|
22
|
-
import { CustomTranscribeSocket } from "./CustomTranscribeSocket.mjs";
|
|
23
21
|
import * as Corti from "../../api/index.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import { parseTranscribeResponseType } from "./parseTranscribeResponseType.mjs";
|
|
22
|
+
import { TranscribeClient } from "../../api/resources/transcribe/client/Client.mjs";
|
|
26
23
|
import * as core from "../../core/index.mjs";
|
|
24
|
+
import { ErrorEvent } from "../../core/websocket/events.mjs";
|
|
27
25
|
import { getWsProtocols } from "../utils/encodeHeadersAsWsProtocols.mjs";
|
|
26
|
+
import { CustomTranscribeSocket } from "./CustomTranscribeSocket.mjs";
|
|
27
|
+
import { parseTranscribeResponseType } from "./parseTranscribeResponseType.mjs";
|
|
28
28
|
const TRANSCRIBE_CONFIG_REJECTION_TYPES = [
|
|
29
29
|
Corti.TranscribeConfigStatusMessageType.ConfigDenied,
|
|
30
30
|
Corti.TranscribeConfigStatusMessageType.ConfigTimeout,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { generateCodeChallenge, generateCodeVerifier } from "./pkceHelpers.mjs";
|
|
1
|
+
export { type DecodedToken, decodeToken } from "./decodeToken.mjs";
|
|
3
2
|
export { getEnvironment } from "./environment.mjs";
|
|
3
|
+
export { generateCodeChallenge, generateCodeVerifier } from "./pkceHelpers.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Global default for fetcher withCredentials. Set by CortiClient when withCredentials
|
|
3
3
|
* is passed in options; the core fetcher reads this when args.withCredentials is undefined.
|
|
4
4
|
*/
|
|
5
|
-
let defaultWithCredentials
|
|
5
|
+
let defaultWithCredentials;
|
|
6
6
|
export function getDefaultWithCredentials() {
|
|
7
7
|
return defaultWithCredentials;
|
|
8
8
|
}
|
|
@@ -17,9 +17,9 @@ export declare namespace AgentsAgentCard {
|
|
|
17
17
|
additionalInterfaces?: (AgentsAgentInterface.Raw[] | null | undefined) | null;
|
|
18
18
|
iconUrl?: (string | null | undefined) | null;
|
|
19
19
|
documentationUrl?: (string | null | undefined) | null;
|
|
20
|
-
provider?: AgentsAgentProvider.Raw | null;
|
|
20
|
+
provider?: (AgentsAgentProvider.Raw | null | undefined) | null;
|
|
21
21
|
version: string;
|
|
22
|
-
capabilities
|
|
22
|
+
capabilities?: AgentsAgentCapabilities.Raw | null;
|
|
23
23
|
securitySchemes?: (Record<string, unknown> | null | undefined) | null;
|
|
24
24
|
security?: (Record<string, unknown> | null | undefined) | null;
|
|
25
25
|
defaultInputModes: string[];
|
|
@@ -14,9 +14,9 @@ export const AgentsAgentCard = core.serialization.object({
|
|
|
14
14
|
additionalInterfaces: core.serialization.list(AgentsAgentInterface).optionalNullable(),
|
|
15
15
|
iconUrl: core.serialization.string().optionalNullable(),
|
|
16
16
|
documentationUrl: core.serialization.string().optionalNullable(),
|
|
17
|
-
provider: AgentsAgentProvider.
|
|
17
|
+
provider: AgentsAgentProvider.optionalNullable(),
|
|
18
18
|
version: core.serialization.string(),
|
|
19
|
-
capabilities: AgentsAgentCapabilities,
|
|
19
|
+
capabilities: AgentsAgentCapabilities.nullable(),
|
|
20
20
|
securitySchemes: core.serialization
|
|
21
21
|
.record(core.serialization.string(), core.serialization.unknown())
|
|
22
22
|
.optionalNullable(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.mjs";
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
import * as serializers from "../index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
4
|
export declare const AgentsErrorResponse: core.serialization.ObjectSchema<serializers.AgentsErrorResponse.Raw, Corti.AgentsErrorResponse>;
|
|
5
5
|
export declare namespace AgentsErrorResponse {
|
|
6
6
|
interface Raw {
|
|
@@ -8,6 +8,6 @@ export declare namespace AgentsErrorResponse {
|
|
|
8
8
|
description: string;
|
|
9
9
|
howToFix?: string | null;
|
|
10
10
|
details?: Record<string, unknown> | null;
|
|
11
|
-
cause?:
|
|
11
|
+
cause?: Record<string, unknown> | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
import * as serializers from "../index.mjs";
|
|
4
3
|
export const AgentsErrorResponse = core.serialization.object({
|
|
5
4
|
code: core.serialization.string(),
|
|
6
5
|
description: core.serialization.string(),
|
|
7
6
|
howToFix: core.serialization.string().optional(),
|
|
8
7
|
details: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
9
|
-
cause: core.serialization.
|
|
8
|
+
cause: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
10
9
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.mjs";
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
import * as serializers from "../index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { AgentsErrorResponse } from "./AgentsErrorResponse.mjs";
|
|
4
5
|
import { AgentsValidationError } from "./AgentsValidationError.mjs";
|
|
5
6
|
export declare const AgentsValidationErrorResponse: core.serialization.ObjectSchema<serializers.AgentsValidationErrorResponse.Raw, Corti.AgentsValidationErrorResponse>;
|
|
6
7
|
export declare namespace AgentsValidationErrorResponse {
|
|
7
|
-
interface Raw extends
|
|
8
|
+
interface Raw extends AgentsErrorResponse.Raw {
|
|
8
9
|
detail?: AgentsValidationError.Raw[] | null;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
import
|
|
3
|
+
import { AgentsErrorResponse } from "./AgentsErrorResponse.mjs";
|
|
4
4
|
import { AgentsValidationError } from "./AgentsValidationError.mjs";
|
|
5
5
|
export const AgentsValidationErrorResponse = core.serialization
|
|
6
6
|
.object({
|
|
7
7
|
detail: core.serialization.list(AgentsValidationError).optional(),
|
|
8
8
|
})
|
|
9
|
-
.extend(
|
|
9
|
+
.extend(AgentsErrorResponse);
|
|
@@ -5,5 +5,5 @@ import { CommonUsageInfo } from "./CommonUsageInfo.mjs";
|
|
|
5
5
|
export const CodesGeneralResponse = core.serialization.object({
|
|
6
6
|
codes: core.serialization.list(CodesGeneralReadResponse),
|
|
7
7
|
candidates: core.serialization.list(CodesGeneralReadResponse),
|
|
8
|
-
usageInfo: CommonUsageInfo
|
|
8
|
+
usageInfo: CommonUsageInfo,
|
|
9
9
|
});
|
|
@@ -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";
|
|
6
|
+
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient";
|
|
7
7
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
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 CommonCodingSystemEnum = core.serialization.enum_([
|
|
3
|
+
export const CommonCodingSystemEnum = core.serialization.enum_([
|
|
4
|
+
"icd10cm-inpatient",
|
|
5
|
+
"icd10cm-outpatient",
|
|
6
|
+
"icd10pcs",
|
|
7
|
+
"cpt",
|
|
8
|
+
"icd10int-inpatient",
|
|
9
|
+
"icd10int-outpatient",
|
|
10
|
+
"icd10uk-inpatient",
|
|
11
|
+
"icd10uk-outpatient",
|
|
12
|
+
]);
|
|
@@ -3,10 +3,12 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { StreamConfigMode } from "./StreamConfigMode.mjs";
|
|
5
5
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
|
|
6
|
+
import { StreamConfigXCortiRetentionPolicy } from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
6
7
|
export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
|
|
7
8
|
export declare namespace StreamConfig {
|
|
8
9
|
interface Raw {
|
|
9
10
|
transcription: StreamConfigTranscription.Raw;
|
|
10
11
|
mode: StreamConfigMode.Raw;
|
|
12
|
+
"X-Corti-Retention-Policy"?: StreamConfigXCortiRetentionPolicy.Raw | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { StreamConfigMode } from "./StreamConfigMode.mjs";
|
|
4
4
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
|
|
5
|
+
import { StreamConfigXCortiRetentionPolicy } from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
5
6
|
export const StreamConfig = core.serialization.object({
|
|
6
7
|
transcription: StreamConfigTranscription,
|
|
7
8
|
mode: StreamConfigMode,
|
|
9
|
+
xCortiRetentionPolicy: core.serialization.property("X-Corti-Retention-Policy", StreamConfigXCortiRetentionPolicy.optional()),
|
|
8
10
|
});
|