@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
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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": "0.
|
|
47
|
-
"User-Agent": "@corti/sdk/0.
|
|
46
|
+
"X-Fern-SDK-Version": "1.0.0-rc",
|
|
47
|
+
"User-Agent": "@corti/sdk/1.0.0-rc",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -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.
|
|
@@ -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, 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.
|
|
@@ -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.js";
|
|
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];
|
|
@@ -7,4 +7,8 @@ exports.CommonCodingSystemEnum = {
|
|
|
7
7
|
Icd10CmOutpatient: "icd10cm-outpatient",
|
|
8
8
|
Icd10Pcs: "icd10pcs",
|
|
9
9
|
Cpt: "cpt",
|
|
10
|
+
Icd10IntInpatient: "icd10int-inpatient",
|
|
11
|
+
Icd10IntOutpatient: "icd10int-outpatient",
|
|
12
|
+
Icd10UkInpatient: "icd10uk-inpatient",
|
|
13
|
+
Icd10UkOutpatient: "icd10uk-outpatient",
|
|
10
14
|
};
|
|
@@ -2,4 +2,6 @@ import type * as Corti from "../index.js";
|
|
|
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,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.StreamConfigXCortiRetentionPolicy = void 0;
|
|
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
|
+
exports.StreamConfigXCortiRetentionPolicy = {
|
|
7
|
+
Retain: "retain",
|
|
8
|
+
None: "none",
|
|
9
|
+
};
|
|
@@ -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);
|
|
@@ -6,9 +6,9 @@ const CortiAuth_js_1 = require("./auth/CortiAuth.js");
|
|
|
6
6
|
const CustomStream_js_1 = require("./stream/CustomStream.js");
|
|
7
7
|
const CustomTranscribe_js_1 = require("./transcribe/CustomTranscribe.js");
|
|
8
8
|
const authToBaseOptions_js_1 = require("./utils/authToBaseOptions.js");
|
|
9
|
-
const withCredentialsConfig_js_1 = require("./utils/withCredentialsConfig.js");
|
|
10
9
|
const environment_js_1 = require("./utils/environment.js");
|
|
11
10
|
const resolveClientOptions_js_1 = require("./utils/resolveClientOptions.js");
|
|
11
|
+
const withCredentialsConfig_js_1 = require("./utils/withCredentialsConfig.js");
|
|
12
12
|
class CortiClient extends Client_js_1.CortiClient {
|
|
13
13
|
constructor(options) {
|
|
14
14
|
const opts = options;
|
|
@@ -45,8 +45,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
45
45
|
exports.OAuthAuthCodeAuthProvider = void 0;
|
|
46
46
|
const core = __importStar(require("../../core/index.js"));
|
|
47
47
|
const errors = __importStar(require("../../errors/index.js"));
|
|
48
|
-
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
49
48
|
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
49
|
+
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
50
50
|
class OAuthAuthCodeAuthProvider {
|
|
51
51
|
constructor(options) {
|
|
52
52
|
this.options = options;
|
|
@@ -45,8 +45,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
45
45
|
exports.OAuthPkceAuthProvider = void 0;
|
|
46
46
|
const core = __importStar(require("../../core/index.js"));
|
|
47
47
|
const errors = __importStar(require("../../errors/index.js"));
|
|
48
|
-
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
49
48
|
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
49
|
+
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
50
50
|
class OAuthPkceAuthProvider {
|
|
51
51
|
constructor(options) {
|
|
52
52
|
this.options = options;
|
|
@@ -45,8 +45,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
45
45
|
exports.OAuthRopcAuthProvider = void 0;
|
|
46
46
|
const core = __importStar(require("../../core/index.js"));
|
|
47
47
|
const errors = __importStar(require("../../errors/index.js"));
|
|
48
|
-
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
49
48
|
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
49
|
+
const CortiAuth_js_1 = require("./CortiAuth.js");
|
|
50
50
|
class OAuthRopcAuthProvider {
|
|
51
51
|
constructor(options) {
|
|
52
52
|
this.options = options;
|
|
@@ -44,12 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.OAuthTokenOverrideAuthProvider = exports.OAuthAuthProvider = exports.USERNAME_REQUIRED_ERROR_MESSAGE = exports.USERNAME_PARAM = exports.REDIRECT_URI_PARAM = exports.PASSWORD_REQUIRED_ERROR_MESSAGE = exports.PASSWORD_PARAM = exports.getExpiresAt = exports.CODE_VERIFIER_PARAM = exports.CODE_PARAM = exports.CLIENT_SECRET_REQUIRED_ERROR_MESSAGE = exports.CLIENT_SECRET_PARAM = exports.CLIENT_ID_REQUIRED_ERROR_MESSAGE = exports.CLIENT_ID_PARAM = exports.BUFFER_IN_MINUTES = void 0;
|
|
46
46
|
const core = __importStar(require("../../core/index.js"));
|
|
47
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
47
48
|
const CortiAuth_js_1 = require("../auth/CortiAuth.js");
|
|
48
49
|
const OAuthAuthCodeAuthProvider_js_1 = require("../auth/OAuthAuthCodeAuthProvider.js");
|
|
49
50
|
const OAuthPkceAuthProvider_js_1 = require("../auth/OAuthPkceAuthProvider.js");
|
|
50
51
|
const OAuthRopcAuthProvider_js_1 = require("../auth/OAuthRopcAuthProvider.js");
|
|
51
52
|
const oauthAuthHelpers_js_1 = require("../utils/oauthAuthHelpers.js");
|
|
52
|
-
const errors = __importStar(require("../../errors/index.js"));
|
|
53
53
|
/** Patch: Re-export for consumers; implementation shared with OAuthRopcAuthProvider, OAuthAuthCodeAuthProvider and OAuthPkceAuthProvider. */
|
|
54
54
|
var oauthAuthHelpers_js_2 = require("../utils/oauthAuthHelpers.js");
|
|
55
55
|
Object.defineProperty(exports, "BUFFER_IN_MINUTES", { enumerable: true, get: function () { return oauthAuthHelpers_js_2.BUFFER_IN_MINUTES; } });
|
|
@@ -3,10 +3,10 @@ export type { BinaryResponse } from "../../../core/fetcher/BinaryResponse.js";
|
|
|
3
3
|
export type { EndpointMetadata } from "../../../core/fetcher/EndpointMetadata.js";
|
|
4
4
|
export { EndpointSupplier } from "../../../core/fetcher/EndpointSupplier.js";
|
|
5
5
|
export type { Fetcher, FetchFunction } from "../../../core/fetcher/Fetcher.js";
|
|
6
|
-
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
7
|
-
export { fetcher } from "../../fetcher.js";
|
|
8
6
|
export { getHeader } from "../../../core/fetcher/getHeader.js";
|
|
9
7
|
export { HttpResponsePromise } from "../../../core/fetcher/HttpResponsePromise.js";
|
|
10
8
|
export type { RawResponse, WithRawResponse } from "../../../core/fetcher/RawResponse.js";
|
|
11
9
|
export { abortRawResponse, toRawResponse, unknownRawResponse } from "../../../core/fetcher/RawResponse.js";
|
|
12
10
|
export { Supplier } from "../../../core/fetcher/Supplier.js";
|
|
11
|
+
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
12
|
+
export { fetcher } from "../../fetcher.js";
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.
|
|
3
|
+
exports.fetcher = exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.EndpointSupplier = void 0;
|
|
4
4
|
var EndpointSupplier_js_1 = require("../../../core/fetcher/EndpointSupplier.js");
|
|
5
5
|
Object.defineProperty(exports, "EndpointSupplier", { enumerable: true, get: function () { return EndpointSupplier_js_1.EndpointSupplier; } });
|
|
6
|
-
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
7
|
-
var fetcher_js_1 = require("../../fetcher.js");
|
|
8
|
-
Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return fetcher_js_1.fetcher; } });
|
|
9
6
|
var getHeader_js_1 = require("../../../core/fetcher/getHeader.js");
|
|
10
7
|
Object.defineProperty(exports, "getHeader", { enumerable: true, get: function () { return getHeader_js_1.getHeader; } });
|
|
11
8
|
var HttpResponsePromise_js_1 = require("../../../core/fetcher/HttpResponsePromise.js");
|
|
@@ -16,3 +13,6 @@ Object.defineProperty(exports, "toRawResponse", { enumerable: true, get: functio
|
|
|
16
13
|
Object.defineProperty(exports, "unknownRawResponse", { enumerable: true, get: function () { return RawResponse_js_1.unknownRawResponse; } });
|
|
17
14
|
var Supplier_js_1 = require("../../../core/fetcher/Supplier.js");
|
|
18
15
|
Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return Supplier_js_1.Supplier; } });
|
|
16
|
+
/** Patch: withCredentials - re-export custom fetcher that injects global withCredentials default */
|
|
17
|
+
var fetcher_js_1 = require("../../fetcher.js");
|
|
18
|
+
Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return fetcher_js_1.fetcher; } });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * as Corti from "../../api/index.js";
|
|
2
2
|
export type { BaseClientOptions, BaseRequestOptions } from "../../BaseClient.js";
|
|
3
|
+
export { JsonError } from "../../core/schemas/builders/schema-utils/JsonError.js";
|
|
4
|
+
export { ParseError } from "../../core/schemas/builders/schema-utils/ParseError.js";
|
|
3
5
|
export { CortiEnvironment, type CortiEnvironmentUrls } from "../../environments.js";
|
|
4
6
|
export { CortiError, CortiTimeoutError } from "../../errors/index.js";
|
|
5
7
|
export * from "../../exports.js";
|
|
6
8
|
export * as serialization from "../../serialization/index.js";
|
|
7
9
|
export { CortiAuth } from "../auth/CortiAuth.js";
|
|
8
10
|
export { CortiClient } from "../CortiClient.js";
|
|
9
|
-
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.js";
|
|
10
|
-
export { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.js";
|
|
11
|
-
export { type CortiInternalEnvironment, type Environment } from "../utils/environment.js";
|
|
12
11
|
export { CortiSDKError, CortiSDKErrorCodes } from "../CortiSDKError.js";
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
12
|
+
export { CortiWebSocketProxyClient } from "../CortiWebSocketProxyClient.js";
|
|
13
|
+
export type { ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.js";
|
|
14
|
+
export type { CortiInternalEnvironment, Environment } from "../utils/environment.js";
|
|
@@ -36,8 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.CortiWebSocketProxyClient = exports.CortiSDKErrorCodes = exports.CortiSDKError = exports.CortiClient = exports.CortiAuth = exports.serialization = exports.CortiTimeoutError = exports.CortiError = exports.CortiEnvironment = exports.ParseError = exports.JsonError = exports.Corti = void 0;
|
|
40
40
|
exports.Corti = __importStar(require("../../api/index.js"));
|
|
41
|
+
var JsonError_js_1 = require("../../core/schemas/builders/schema-utils/JsonError.js");
|
|
42
|
+
Object.defineProperty(exports, "JsonError", { enumerable: true, get: function () { return JsonError_js_1.JsonError; } });
|
|
43
|
+
var ParseError_js_1 = require("../../core/schemas/builders/schema-utils/ParseError.js");
|
|
44
|
+
Object.defineProperty(exports, "ParseError", { enumerable: true, get: function () { return ParseError_js_1.ParseError; } });
|
|
41
45
|
var environments_js_1 = require("../../environments.js");
|
|
42
46
|
Object.defineProperty(exports, "CortiEnvironment", { enumerable: true, get: function () { return environments_js_1.CortiEnvironment; } });
|
|
43
47
|
var index_js_1 = require("../../errors/index.js");
|
|
@@ -50,12 +54,8 @@ var CortiAuth_js_1 = require("../auth/CortiAuth.js");
|
|
|
50
54
|
Object.defineProperty(exports, "CortiAuth", { enumerable: true, get: function () { return CortiAuth_js_1.CortiAuth; } });
|
|
51
55
|
var CortiClient_js_1 = require("../CortiClient.js");
|
|
52
56
|
Object.defineProperty(exports, "CortiClient", { enumerable: true, get: function () { return CortiClient_js_1.CortiClient; } });
|
|
53
|
-
var CortiWebSocketProxyClient_js_1 = require("../CortiWebSocketProxyClient.js");
|
|
54
|
-
Object.defineProperty(exports, "CortiWebSocketProxyClient", { enumerable: true, get: function () { return CortiWebSocketProxyClient_js_1.CortiWebSocketProxyClient; } });
|
|
55
57
|
var CortiSDKError_js_1 = require("../CortiSDKError.js");
|
|
56
58
|
Object.defineProperty(exports, "CortiSDKError", { enumerable: true, get: function () { return CortiSDKError_js_1.CortiSDKError; } });
|
|
57
59
|
Object.defineProperty(exports, "CortiSDKErrorCodes", { enumerable: true, get: function () { return CortiSDKError_js_1.CortiSDKErrorCodes; } });
|
|
58
|
-
var
|
|
59
|
-
Object.defineProperty(exports, "
|
|
60
|
-
var JsonError_js_1 = require("../../core/schemas/builders/schema-utils/JsonError.js");
|
|
61
|
-
Object.defineProperty(exports, "JsonError", { enumerable: true, get: function () { return JsonError_js_1.JsonError; } });
|
|
60
|
+
var CortiWebSocketProxyClient_js_1 = require("../CortiWebSocketProxyClient.js");
|
|
61
|
+
Object.defineProperty(exports, "CortiWebSocketProxyClient", { enumerable: true, get: function () { return CortiWebSocketProxyClient_js_1.CortiWebSocketProxyClient; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StreamClient } from "../../api/resources/stream/client/Client.js";
|
|
2
|
-
import { CustomStreamSocket } from "./CustomStreamSocket.js";
|
|
3
1
|
import * as Corti from "../../api/index.js";
|
|
2
|
+
import { StreamClient } from "../../api/resources/stream/client/Client.js";
|
|
4
3
|
import { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.js";
|
|
4
|
+
import { CustomStreamSocket } from "./CustomStreamSocket.js";
|
|
5
5
|
export type CustomStreamConnectArgs = {
|
|
6
6
|
id: string;
|
|
7
7
|
/** When provided, connect() resolves after CONFIG_ACCEPTED or rejects on failure. */
|
|
@@ -54,13 +54,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
54
54
|
};
|
|
55
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56
56
|
exports.CustomStream = void 0;
|
|
57
|
-
const Client_js_1 = require("../../api/resources/stream/client/Client.js");
|
|
58
|
-
const CustomStreamSocket_js_1 = require("./CustomStreamSocket.js");
|
|
59
57
|
const Corti = __importStar(require("../../api/index.js"));
|
|
60
|
-
const
|
|
61
|
-
const parseStreamResponseType_js_1 = require("./parseStreamResponseType.js");
|
|
58
|
+
const Client_js_1 = require("../../api/resources/stream/client/Client.js");
|
|
62
59
|
const core = __importStar(require("../../core/index.js"));
|
|
60
|
+
const events_js_1 = require("../../core/websocket/events.js");
|
|
63
61
|
const encodeHeadersAsWsProtocols_js_1 = require("../utils/encodeHeadersAsWsProtocols.js");
|
|
62
|
+
const CustomStreamSocket_js_1 = require("./CustomStreamSocket.js");
|
|
63
|
+
const parseStreamResponseType_js_1 = require("./parseStreamResponseType.js");
|
|
64
64
|
const STREAM_CONFIG_REJECTION_TYPES = [
|
|
65
65
|
Corti.StreamConfigStatusMessageType.ConfigDenied,
|
|
66
66
|
Corti.StreamConfigStatusMessageType.ConfigMissing,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TranscribeClient } from "../../api/resources/transcribe/client/Client.js";
|
|
2
|
-
import { CustomTranscribeSocket } from "./CustomTranscribeSocket.js";
|
|
3
1
|
import * as Corti from "../../api/index.js";
|
|
2
|
+
import { TranscribeClient } from "../../api/resources/transcribe/client/Client.js";
|
|
4
3
|
import { type ProxyOptions } from "../utils/encodeHeadersAsWsProtocols.js";
|
|
4
|
+
import { CustomTranscribeSocket } from "./CustomTranscribeSocket.js";
|
|
5
5
|
export type CustomTranscribeConnectArgs = {
|
|
6
6
|
/** When provided, connect() resolves after CONFIG_ACCEPTED or rejects on failure. */
|
|
7
7
|
configuration?: Corti.TranscribeConfig;
|
|
@@ -54,13 +54,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
54
54
|
};
|
|
55
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56
56
|
exports.CustomTranscribe = void 0;
|
|
57
|
-
const Client_js_1 = require("../../api/resources/transcribe/client/Client.js");
|
|
58
|
-
const CustomTranscribeSocket_js_1 = require("./CustomTranscribeSocket.js");
|
|
59
57
|
const Corti = __importStar(require("../../api/index.js"));
|
|
60
|
-
const
|
|
61
|
-
const parseTranscribeResponseType_js_1 = require("./parseTranscribeResponseType.js");
|
|
58
|
+
const Client_js_1 = require("../../api/resources/transcribe/client/Client.js");
|
|
62
59
|
const core = __importStar(require("../../core/index.js"));
|
|
60
|
+
const events_js_1 = require("../../core/websocket/events.js");
|
|
63
61
|
const encodeHeadersAsWsProtocols_js_1 = require("../utils/encodeHeadersAsWsProtocols.js");
|
|
62
|
+
const CustomTranscribeSocket_js_1 = require("./CustomTranscribeSocket.js");
|
|
63
|
+
const parseTranscribeResponseType_js_1 = require("./parseTranscribeResponseType.js");
|
|
64
64
|
const TRANSCRIBE_CONFIG_REJECTION_TYPES = [
|
|
65
65
|
Corti.TranscribeConfigStatusMessageType.ConfigDenied,
|
|
66
66
|
Corti.TranscribeConfigStatusMessageType.ConfigTimeout,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { generateCodeChallenge, generateCodeVerifier } from "./pkceHelpers.js";
|
|
1
|
+
export { type DecodedToken, decodeToken } from "./decodeToken.js";
|
|
3
2
|
export { getEnvironment } from "./environment.js";
|
|
3
|
+
export { generateCodeChallenge, generateCodeVerifier } from "./pkceHelpers.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.generateCodeVerifier = exports.generateCodeChallenge = exports.getEnvironment = exports.decodeToken = void 0;
|
|
4
4
|
var decodeToken_js_1 = require("./decodeToken.js");
|
|
5
5
|
Object.defineProperty(exports, "decodeToken", { enumerable: true, get: function () { return decodeToken_js_1.decodeToken; } });
|
|
6
|
+
var environment_js_1 = require("./environment.js");
|
|
7
|
+
Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return environment_js_1.getEnvironment; } });
|
|
6
8
|
var pkceHelpers_js_1 = require("./pkceHelpers.js");
|
|
7
9
|
Object.defineProperty(exports, "generateCodeChallenge", { enumerable: true, get: function () { return pkceHelpers_js_1.generateCodeChallenge; } });
|
|
8
10
|
Object.defineProperty(exports, "generateCodeVerifier", { enumerable: true, get: function () { return pkceHelpers_js_1.generateCodeVerifier; } });
|
|
9
|
-
var environment_js_1 = require("./environment.js");
|
|
10
|
-
Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return environment_js_1.getEnvironment; } });
|
|
@@ -6,7 +6,7 @@ exports.setDefaultWithCredentials = setDefaultWithCredentials;
|
|
|
6
6
|
* Global default for fetcher withCredentials. Set by CortiClient when withCredentials
|
|
7
7
|
* is passed in options; the core fetcher reads this when args.withCredentials is undefined.
|
|
8
8
|
*/
|
|
9
|
-
let defaultWithCredentials
|
|
9
|
+
let defaultWithCredentials;
|
|
10
10
|
function getDefaultWithCredentials() {
|
|
11
11
|
return defaultWithCredentials;
|
|
12
12
|
}
|
|
@@ -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[];
|
|
@@ -50,9 +50,9 @@ exports.AgentsAgentCard = core.serialization.object({
|
|
|
50
50
|
additionalInterfaces: core.serialization.list(AgentsAgentInterface_js_1.AgentsAgentInterface).optionalNullable(),
|
|
51
51
|
iconUrl: core.serialization.string().optionalNullable(),
|
|
52
52
|
documentationUrl: core.serialization.string().optionalNullable(),
|
|
53
|
-
provider: AgentsAgentProvider_js_1.AgentsAgentProvider.
|
|
53
|
+
provider: AgentsAgentProvider_js_1.AgentsAgentProvider.optionalNullable(),
|
|
54
54
|
version: core.serialization.string(),
|
|
55
|
-
capabilities: AgentsAgentCapabilities_js_1.AgentsAgentCapabilities,
|
|
55
|
+
capabilities: AgentsAgentCapabilities_js_1.AgentsAgentCapabilities.nullable(),
|
|
56
56
|
securitySchemes: core.serialization
|
|
57
57
|
.record(core.serialization.string(), core.serialization.unknown())
|
|
58
58
|
.optionalNullable(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
|
-
import * as serializers from "../index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
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
|
}
|
|
@@ -36,11 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AgentsErrorResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const serializers = __importStar(require("../index.js"));
|
|
40
39
|
exports.AgentsErrorResponse = core.serialization.object({
|
|
41
40
|
code: core.serialization.string(),
|
|
42
41
|
description: core.serialization.string(),
|
|
43
42
|
howToFix: core.serialization.string().optional(),
|
|
44
43
|
details: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
45
|
-
cause: core.serialization.
|
|
44
|
+
cause: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
46
45
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
|
-
import * as serializers from "../index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { AgentsErrorResponse } from "./AgentsErrorResponse.js";
|
|
4
5
|
import { AgentsValidationError } from "./AgentsValidationError.js";
|
|
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
|
}
|
|
@@ -36,10 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AgentsValidationErrorResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const
|
|
39
|
+
const AgentsErrorResponse_js_1 = require("./AgentsErrorResponse.js");
|
|
40
40
|
const AgentsValidationError_js_1 = require("./AgentsValidationError.js");
|
|
41
41
|
exports.AgentsValidationErrorResponse = core.serialization
|
|
42
42
|
.object({
|
|
43
43
|
detail: core.serialization.list(AgentsValidationError_js_1.AgentsValidationError).optional(),
|
|
44
44
|
})
|
|
45
|
-
.extend(
|
|
45
|
+
.extend(AgentsErrorResponse_js_1.AgentsErrorResponse);
|
|
@@ -41,5 +41,5 @@ const CommonUsageInfo_js_1 = require("./CommonUsageInfo.js");
|
|
|
41
41
|
exports.CodesGeneralResponse = core.serialization.object({
|
|
42
42
|
codes: core.serialization.list(CodesGeneralReadResponse_js_1.CodesGeneralReadResponse),
|
|
43
43
|
candidates: core.serialization.list(CodesGeneralReadResponse_js_1.CodesGeneralReadResponse),
|
|
44
|
-
usageInfo: CommonUsageInfo_js_1.CommonUsageInfo
|
|
44
|
+
usageInfo: CommonUsageInfo_js_1.CommonUsageInfo,
|
|
45
45
|
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
export declare const CommonCodingSystemEnum: core.serialization.Schema<serializers.CommonCodingSystemEnum.Raw, Corti.CommonCodingSystemEnum>;
|
|
5
5
|
export declare namespace CommonCodingSystemEnum {
|
|
6
|
-
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt";
|
|
6
|
+
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient";
|
|
7
7
|
}
|
|
@@ -36,4 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.CommonCodingSystemEnum = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.CommonCodingSystemEnum = core.serialization.enum_([
|
|
39
|
+
exports.CommonCodingSystemEnum = core.serialization.enum_([
|
|
40
|
+
"icd10cm-inpatient",
|
|
41
|
+
"icd10cm-outpatient",
|
|
42
|
+
"icd10pcs",
|
|
43
|
+
"cpt",
|
|
44
|
+
"icd10int-inpatient",
|
|
45
|
+
"icd10int-outpatient",
|
|
46
|
+
"icd10uk-inpatient",
|
|
47
|
+
"icd10uk-outpatient",
|
|
48
|
+
]);
|
|
@@ -3,10 +3,12 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { StreamConfigMode } from "./StreamConfigMode.js";
|
|
5
5
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.js";
|
|
6
|
+
import { StreamConfigXCortiRetentionPolicy } from "./StreamConfigXCortiRetentionPolicy.js";
|
|
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
|
}
|
|
@@ -38,7 +38,9 @@ exports.StreamConfig = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const StreamConfigMode_js_1 = require("./StreamConfigMode.js");
|
|
40
40
|
const StreamConfigTranscription_js_1 = require("./StreamConfigTranscription.js");
|
|
41
|
+
const StreamConfigXCortiRetentionPolicy_js_1 = require("./StreamConfigXCortiRetentionPolicy.js");
|
|
41
42
|
exports.StreamConfig = core.serialization.object({
|
|
42
43
|
transcription: StreamConfigTranscription_js_1.StreamConfigTranscription,
|
|
43
44
|
mode: StreamConfigMode_js_1.StreamConfigMode,
|
|
45
|
+
xCortiRetentionPolicy: core.serialization.property("X-Corti-Retention-Policy", StreamConfigXCortiRetentionPolicy_js_1.StreamConfigXCortiRetentionPolicy.optional()),
|
|
44
46
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const StreamConfigXCortiRetentionPolicy: core.serialization.Schema<serializers.StreamConfigXCortiRetentionPolicy.Raw, Corti.StreamConfigXCortiRetentionPolicy>;
|
|
5
|
+
export declare namespace StreamConfigXCortiRetentionPolicy {
|
|
6
|
+
type Raw = "retain" | "none";
|
|
7
|
+
}
|