@corti/sdk 3.0.0 → 3.1.0-rc.1
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/documents/resources/sections/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +6 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +7 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +7 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.js +6 -0
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +3 -1
- package/dist/cjs/api/types/GuidedArrayNode.d.ts +3 -2
- package/dist/cjs/api/types/GuidedBoolNode.d.ts +2 -2
- package/dist/cjs/api/types/GuidedDocumentsGenerateBase.d.ts +2 -0
- package/dist/cjs/api/types/GuidedEphemeralDocument.d.ts +5 -0
- package/dist/cjs/api/types/GuidedFieldDefinition.d.ts +4 -1
- package/dist/cjs/api/types/GuidedNumberNode.d.ts +3 -3
- package/dist/cjs/api/types/GuidedObjectNode.d.ts +3 -3
- package/dist/cjs/api/types/GuidedSection.d.ts +0 -2
- package/dist/cjs/api/types/GuidedSectionsCreateBase.d.ts +0 -2
- package/dist/cjs/api/types/GuidedStringNode.d.ts +4 -4
- package/dist/cjs/api/types/GuidedTemplate.d.ts +0 -2
- package/dist/cjs/api/types/GuidedTemplatesCreateBase.d.ts +0 -2
- package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
- package/dist/cjs/api/types/StreamErrorDetail.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeCommand.d.ts +3 -3
- package/dist/cjs/api/types/TranscribeCommandVariable.d.ts +6 -5
- package/dist/cjs/api/types/TranscribeCommandVariableType.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeCommandVariableType.js +9 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +6 -4
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeSupportedLanguage.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +2 -5
- package/dist/cjs/api/types/index.js +2 -5
- package/dist/cjs/custom/CortiClient.d.ts +14 -0
- package/dist/cjs/custom/CortiClient.js +21 -0
- package/dist/cjs/custom/utils/dictationTranscript.d.ts +26 -0
- package/dist/cjs/custom/utils/dictationTranscript.js +77 -0
- package/dist/cjs/custom/utils/index.d.ts +1 -0
- package/dist/cjs/custom/utils/index.js +3 -1
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +1 -0
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.d.ts +2 -0
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.js +2 -0
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.d.ts +3 -0
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.js +3 -0
- package/dist/cjs/serialization/types/GuidedFieldDefinition.d.ts +1 -0
- package/dist/cjs/serialization/types/GuidedFieldDefinition.js +1 -0
- package/dist/cjs/serialization/types/GuidedSection.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedSection.js +0 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateBase.js +0 -2
- package/dist/cjs/serialization/types/GuidedTemplate.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedTemplate.js +0 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateBase.js +0 -2
- package/dist/cjs/serialization/types/StreamErrorDetail.d.ts +6 -5
- package/dist/cjs/serialization/types/StreamErrorDetail.js +6 -5
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +1 -1
- package/dist/cjs/serialization/types/TranscribeCommandVariable.d.ts +3 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariable.js +3 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariableType.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedTemplatePolicyKind.js → TranscribeCommandVariableType.js} +2 -2
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
- package/dist/cjs/serialization/types/TranscribeConfigReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/{GuidedSectionsCreatePolicyRequest.js → TranscribeConfigReplacementsItem.js} +4 -5
- package/dist/cjs/serialization/types/TranscribeErrorMessageError.d.ts +6 -5
- package/dist/cjs/serialization/types/TranscribeErrorMessageError.js +6 -5
- package/dist/cjs/serialization/types/index.d.ts +2 -5
- package/dist/cjs/serialization/types/index.js +2 -5
- 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/documents/resources/sections/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +6 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +7 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +7 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.mjs +6 -0
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +3 -1
- package/dist/esm/api/types/GuidedArrayNode.d.mts +3 -2
- package/dist/esm/api/types/GuidedBoolNode.d.mts +2 -2
- package/dist/esm/api/types/GuidedDocumentsGenerateBase.d.mts +2 -0
- package/dist/esm/api/types/GuidedEphemeralDocument.d.mts +5 -0
- package/dist/esm/api/types/GuidedFieldDefinition.d.mts +4 -1
- package/dist/esm/api/types/GuidedNumberNode.d.mts +3 -3
- package/dist/esm/api/types/GuidedObjectNode.d.mts +3 -3
- package/dist/esm/api/types/GuidedSection.d.mts +0 -2
- package/dist/esm/api/types/GuidedSectionsCreateBase.d.mts +0 -2
- package/dist/esm/api/types/GuidedStringNode.d.mts +4 -4
- package/dist/esm/api/types/GuidedTemplate.d.mts +0 -2
- package/dist/esm/api/types/GuidedTemplatesCreateBase.d.mts +0 -2
- package/dist/esm/api/types/StreamConfig.d.mts +1 -1
- package/dist/esm/api/types/StreamErrorDetail.d.mts +7 -5
- package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/api/types/TranscribeCommand.d.mts +3 -3
- package/dist/esm/api/types/TranscribeCommandVariable.d.mts +6 -5
- package/dist/esm/api/types/TranscribeCommandVariableType.d.mts +6 -0
- package/dist/esm/api/types/TranscribeCommandVariableType.mjs +6 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +6 -4
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +7 -5
- package/dist/esm/api/types/TranscribeSupportedLanguage.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +2 -5
- package/dist/esm/api/types/index.mjs +2 -5
- package/dist/esm/custom/CortiClient.d.mts +14 -0
- package/dist/esm/custom/CortiClient.mjs +21 -0
- package/dist/esm/custom/utils/dictationTranscript.d.mts +26 -0
- package/dist/esm/custom/utils/dictationTranscript.mjs +74 -0
- package/dist/esm/custom/utils/index.d.mts +1 -0
- package/dist/esm/custom/utils/index.mjs +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +1 -0
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.d.mts +2 -0
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.mjs +2 -0
- package/dist/esm/serialization/types/GuidedEphemeralDocument.d.mts +3 -0
- package/dist/esm/serialization/types/GuidedEphemeralDocument.mjs +3 -0
- package/dist/esm/serialization/types/GuidedFieldDefinition.d.mts +1 -0
- package/dist/esm/serialization/types/GuidedFieldDefinition.mjs +1 -0
- package/dist/esm/serialization/types/GuidedSection.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedSection.mjs +0 -2
- package/dist/esm/serialization/types/GuidedSectionsCreateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedSectionsCreateBase.mjs +0 -2
- package/dist/esm/serialization/types/GuidedTemplate.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedTemplate.mjs +0 -2
- package/dist/esm/serialization/types/GuidedTemplatesCreateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedTemplatesCreateBase.mjs +0 -2
- package/dist/esm/serialization/types/StreamErrorDetail.d.mts +6 -5
- package/dist/esm/serialization/types/StreamErrorDetail.mjs +6 -5
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeCommandVariable.d.mts +3 -2
- package/dist/esm/serialization/types/TranscribeCommandVariable.mjs +3 -2
- package/dist/esm/serialization/types/TranscribeCommandVariableType.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedTemplatePolicyKind.mjs → TranscribeCommandVariableType.mjs} +1 -1
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.d.mts +10 -0
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.mjs +6 -0
- package/dist/esm/serialization/types/TranscribeErrorMessageError.d.mts +6 -5
- package/dist/esm/serialization/types/TranscribeErrorMessageError.mjs +6 -5
- package/dist/esm/serialization/types/index.d.mts +2 -5
- package/dist/esm/serialization/types/index.mjs +2 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/types/GuidedSectionPolicy.d.ts +0 -16
- package/dist/cjs/api/types/GuidedSectionsCreatePolicyRequest.d.ts +0 -6
- package/dist/cjs/api/types/GuidedSectionsCreatePolicyRequest.js +0 -3
- package/dist/cjs/api/types/GuidedTemplatePolicy.d.ts +0 -16
- package/dist/cjs/api/types/GuidedTemplatePolicy.js +0 -3
- package/dist/cjs/api/types/GuidedTemplatePolicyKind.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplatePolicyKind.js +0 -9
- package/dist/cjs/api/types/GuidedTemplatesCreatePolicyRequest.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplatesCreatePolicyRequest.js +0 -3
- package/dist/cjs/serialization/types/GuidedSectionPolicy.d.ts +0 -16
- package/dist/cjs/serialization/types/GuidedSectionPolicy.js +0 -48
- package/dist/cjs/serialization/types/GuidedSectionsCreatePolicyRequest.d.ts +0 -11
- package/dist/cjs/serialization/types/GuidedTemplatePolicy.d.ts +0 -16
- package/dist/cjs/serialization/types/GuidedTemplatePolicy.js +0 -48
- package/dist/cjs/serialization/types/GuidedTemplatePolicyKind.d.ts +0 -7
- package/dist/cjs/serialization/types/GuidedTemplatesCreatePolicyRequest.d.ts +0 -11
- package/dist/cjs/serialization/types/GuidedTemplatesCreatePolicyRequest.js +0 -43
- package/dist/esm/api/types/GuidedSectionPolicy.d.mts +0 -16
- package/dist/esm/api/types/GuidedSectionsCreatePolicyRequest.d.mts +0 -6
- package/dist/esm/api/types/GuidedSectionsCreatePolicyRequest.mjs +0 -2
- package/dist/esm/api/types/GuidedTemplatePolicy.d.mts +0 -16
- package/dist/esm/api/types/GuidedTemplatePolicy.mjs +0 -2
- package/dist/esm/api/types/GuidedTemplatePolicyKind.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplatePolicyKind.mjs +0 -6
- package/dist/esm/api/types/GuidedTemplatesCreatePolicyRequest.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplatesCreatePolicyRequest.mjs +0 -2
- package/dist/esm/serialization/types/GuidedSectionPolicy.d.mts +0 -16
- package/dist/esm/serialization/types/GuidedSectionPolicy.mjs +0 -12
- package/dist/esm/serialization/types/GuidedSectionsCreatePolicyRequest.d.mts +0 -11
- package/dist/esm/serialization/types/GuidedSectionsCreatePolicyRequest.mjs +0 -7
- package/dist/esm/serialization/types/GuidedTemplatePolicy.d.mts +0 -16
- package/dist/esm/serialization/types/GuidedTemplatePolicy.mjs +0 -12
- package/dist/esm/serialization/types/GuidedTemplatePolicyKind.d.mts +0 -7
- package/dist/esm/serialization/types/GuidedTemplatesCreatePolicyRequest.d.mts +0 -11
- package/dist/esm/serialization/types/GuidedTemplatesCreatePolicyRequest.mjs +0 -7
- /package/dist/cjs/api/types/{GuidedSectionPolicy.js → TranscribeConfigReplacementsItem.js} +0 -0
- /package/dist/esm/api/types/{GuidedSectionPolicy.mjs → TranscribeConfigReplacementsItem.mjs} +0 -0
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": "3.0.
|
|
47
|
-
"User-Agent": "@corti/sdk/3.0.
|
|
46
|
+
"X-Fern-SDK-Version": "3.1.0-rc.1",
|
|
47
|
+
"User-Agent": "@corti/sdk/3.1.0-rc.1",
|
|
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,
|
|
@@ -14,6 +14,9 @@ export declare class SectionsClient {
|
|
|
14
14
|
constructor(options: SectionsClient.Options);
|
|
15
15
|
get versions(): VersionsClient;
|
|
16
16
|
/**
|
|
17
|
+
* Returns a list of sections and their metadata. Fetch a sectionId to get the full generation content.
|
|
18
|
+
* Use query parameters to filter by language, region, specialty, label, publish status, or source.
|
|
19
|
+
*
|
|
17
20
|
* @param {Corti.documents.GuidedSectionsListRequest} request
|
|
18
21
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
22
|
*
|
|
@@ -78,6 +81,9 @@ export declare class SectionsClient {
|
|
|
78
81
|
delete(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
79
82
|
private __delete;
|
|
80
83
|
/**
|
|
84
|
+
* Updates the section's metadata fields (name, description, languages, regions, specialties, labels).
|
|
85
|
+
* Generation content (instructions, output schema) is managed through versions and cannot be updated here.
|
|
86
|
+
*
|
|
81
87
|
* @param {string} sectionID
|
|
82
88
|
* @param {Corti.documents.GuidedSectionsUpdateRequest} request
|
|
83
89
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -61,6 +61,9 @@ class SectionsClient {
|
|
|
61
61
|
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new Client_js_1.VersionsClient(this._options)));
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* Returns a list of sections and their metadata. Fetch a sectionId to get the full generation content.
|
|
65
|
+
* Use query parameters to filter by language, region, specialty, label, publish status, or source.
|
|
66
|
+
*
|
|
64
67
|
* @param {Corti.documents.GuidedSectionsListRequest} request
|
|
65
68
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
69
|
*
|
|
@@ -315,6 +318,9 @@ class SectionsClient {
|
|
|
315
318
|
});
|
|
316
319
|
}
|
|
317
320
|
/**
|
|
321
|
+
* Updates the section's metadata fields (name, description, languages, regions, specialties, labels).
|
|
322
|
+
* Generation content (instructions, output schema) is managed through versions and cannot be updated here.
|
|
323
|
+
*
|
|
318
324
|
* @param {string} sectionID
|
|
319
325
|
* @param {Corti.documents.GuidedSectionsUpdateRequest} request
|
|
320
326
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -14,6 +14,9 @@ export declare class TemplatesClient {
|
|
|
14
14
|
constructor(options: TemplatesClient.Options);
|
|
15
15
|
get versions(): VersionsClient;
|
|
16
16
|
/**
|
|
17
|
+
* Returns a list of templates and their metadata. Fetch a specific templateId to get the expanded sections.
|
|
18
|
+
* Use query parameters to filter by language, region, specialty, label, publish status, or source.
|
|
19
|
+
*
|
|
17
20
|
* @param {Corti.documents.GuidedTemplatesListRequest} request
|
|
18
21
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
22
|
*
|
|
@@ -74,6 +77,10 @@ export declare class TemplatesClient {
|
|
|
74
77
|
delete(templateID: string, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
75
78
|
private __delete;
|
|
76
79
|
/**
|
|
80
|
+
* Updates the template's metadata fields (name, description, languages, regions, specialties, labels).
|
|
81
|
+
* Generation content (template instructions, section composition) is managed through versions
|
|
82
|
+
* and cannot be updated here.
|
|
83
|
+
*
|
|
77
84
|
* @param {string} templateID
|
|
78
85
|
* @param {Corti.documents.GuidedTemplatesUpdateRequest} request
|
|
79
86
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -61,6 +61,9 @@ class TemplatesClient {
|
|
|
61
61
|
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new Client_js_1.VersionsClient(this._options)));
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* Returns a list of templates and their metadata. Fetch a specific templateId to get the expanded sections.
|
|
65
|
+
* Use query parameters to filter by language, region, specialty, label, publish status, or source.
|
|
66
|
+
*
|
|
64
67
|
* @param {Corti.documents.GuidedTemplatesListRequest} request
|
|
65
68
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
69
|
*
|
|
@@ -311,6 +314,10 @@ class TemplatesClient {
|
|
|
311
314
|
});
|
|
312
315
|
}
|
|
313
316
|
/**
|
|
317
|
+
* Updates the template's metadata fields (name, description, languages, regions, specialties, labels).
|
|
318
|
+
* Generation content (template instructions, section composition) is managed through versions
|
|
319
|
+
* and cannot be updated here.
|
|
320
|
+
*
|
|
314
321
|
* @param {string} templateID
|
|
315
322
|
* @param {Corti.documents.GuidedTemplatesUpdateRequest} request
|
|
316
323
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export declare class VersionsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<VersionsClient.Options>;
|
|
12
12
|
constructor(options: VersionsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Returns raw authored template versions without inheritance resolution or section expansion.
|
|
15
|
+
* To see resolved content, use GET /documents/templates/{templateID} instead.
|
|
16
|
+
*
|
|
14
17
|
* @param {string} templateID
|
|
15
18
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
19
|
*
|
|
@@ -39,6 +42,9 @@ export declare class VersionsClient {
|
|
|
39
42
|
create(templateID: string, request: Corti.documents.templates.GuidedTemplatesCreateVersionRequest, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedShallowTemplateVersionResponse>;
|
|
40
43
|
private __create;
|
|
41
44
|
/**
|
|
45
|
+
* Returns the raw authored template version without inheritance resolution or section expansion.
|
|
46
|
+
* To see resolved content, use GET /documents/templates/{templateID} instead.
|
|
47
|
+
*
|
|
42
48
|
* @param {string} templateID
|
|
43
49
|
* @param {string} versionID
|
|
44
50
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.js
CHANGED
|
@@ -56,6 +56,9 @@ class VersionsClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
+
* Returns raw authored template versions without inheritance resolution or section expansion.
|
|
60
|
+
* To see resolved content, use GET /documents/templates/{templateID} instead.
|
|
61
|
+
*
|
|
59
62
|
* @param {string} templateID
|
|
60
63
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
64
|
*
|
|
@@ -180,6 +183,9 @@ class VersionsClient {
|
|
|
180
183
|
});
|
|
181
184
|
}
|
|
182
185
|
/**
|
|
186
|
+
* Returns the raw authored template version without inheritance resolution or section expansion.
|
|
187
|
+
* To see resolved content, use GET /documents/templates/{templateID} instead.
|
|
188
|
+
*
|
|
183
189
|
* @param {string} templateID
|
|
184
190
|
* @param {string} versionID
|
|
185
191
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
|
|
|
29
29
|
list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
|
|
30
30
|
private __list;
|
|
31
31
|
/**
|
|
32
|
-
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>
|
|
32
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
|
|
33
33
|
*
|
|
34
34
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
35
35
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -142,7 +142,7 @@ class TranscriptsClient {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>
|
|
145
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
|
|
146
146
|
*
|
|
147
147
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
148
148
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -11,7 +11,7 @@ export interface TranscriptsCreateRequest {
|
|
|
11
11
|
recordingId: Corti.Uuid;
|
|
12
12
|
/** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
|
|
13
13
|
primaryLanguage: string;
|
|
14
|
-
/**
|
|
14
|
+
/** If true, spoken punctuation will be converted to symbols (e.g., 'comma' → ','). */
|
|
15
15
|
isDictation?: boolean;
|
|
16
16
|
/** If true, each audio channel is transcribed separately. */
|
|
17
17
|
isMultichannel?: boolean;
|
|
@@ -19,4 +19,6 @@ export interface TranscriptsCreateRequest {
|
|
|
19
19
|
diarize?: boolean;
|
|
20
20
|
/** An array of participants, each specifying a role and an assigned audio channel in the recording. Leave empty when shouldDiarize: true */
|
|
21
21
|
participants?: Corti.TranscriptsParticipant[];
|
|
22
|
+
/** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
|
|
23
|
+
async?: boolean;
|
|
22
24
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface GuidedArrayNode {
|
|
3
3
|
type: "array";
|
|
4
|
-
/**
|
|
4
|
+
/** Guide the LLM in what to output for this node. Supplements the section-level instructions. */
|
|
5
5
|
description?: string;
|
|
6
|
+
/** Must be another output schema node (string, number, boolean, array, or object). */
|
|
6
7
|
items: Corti.GuidedOutputSchema;
|
|
7
|
-
/**
|
|
8
|
+
/** Format string used to render each array item in the generated output. Use the `{item}` placeholder for the item value. */
|
|
8
9
|
itemFormat?: string;
|
|
9
10
|
/** Minimum number of array items to generate. */
|
|
10
11
|
minItems?: number | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface GuidedBoolNode {
|
|
2
2
|
type: "boolean";
|
|
3
|
-
/**
|
|
3
|
+
/** Guide the LLM in what to output for this node. Supplements the section-level instructions. */
|
|
4
4
|
description?: string;
|
|
5
|
-
/**
|
|
5
|
+
/** If nothing is outputted, this default is used. */
|
|
6
6
|
default?: boolean | null;
|
|
7
7
|
}
|
|
@@ -9,4 +9,6 @@ export interface GuidedDocumentsGenerateBase {
|
|
|
9
9
|
context?: Corti.GuidedDocumentContext[];
|
|
10
10
|
/** When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. Facts with `isDiscarded: true` are not passed on. */
|
|
11
11
|
interactionId?: string;
|
|
12
|
+
/** Key/value labels attached to the document. Used for filtering in the LIST /documents endpoint. */
|
|
13
|
+
labels?: Corti.GuidedLabel[];
|
|
12
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* A generated document that was not saved to the database.
|
|
3
4
|
*/
|
|
@@ -7,6 +8,10 @@ export interface GuidedEphemeralDocument {
|
|
|
7
8
|
templateVersionId: string;
|
|
8
9
|
/** The BCP 47 language tag of the generated output. */
|
|
9
10
|
language: string;
|
|
11
|
+
/** The interaction whose context was used to generate this document, if supplied. */
|
|
12
|
+
interactionId?: string | null;
|
|
10
13
|
stringDocument: Record<string, string>;
|
|
11
14
|
structuredDocument?: Record<string, unknown> | null;
|
|
15
|
+
/** Key/value labels attached to this document. */
|
|
16
|
+
labels: Corti.GuidedLabel[];
|
|
12
17
|
}
|
|
@@ -2,7 +2,10 @@ import type * as Corti from "../index.js";
|
|
|
2
2
|
export interface GuidedFieldDefinition {
|
|
3
3
|
/** Use to set a key to reference. */
|
|
4
4
|
key: string;
|
|
5
|
-
/**
|
|
5
|
+
/** Guide the LLM in what to output for this node. Supplements the section-level instructions. */
|
|
6
6
|
description: string;
|
|
7
|
+
/** Must be another output schema node (string, number, boolean, array, or object). */
|
|
7
8
|
value: Corti.GuidedOutputSchema;
|
|
9
|
+
/** If nothing is outputted for this field, this default value is used in the rendered output. */
|
|
10
|
+
default?: string | null;
|
|
8
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface GuidedNumberNode {
|
|
2
2
|
type: "number";
|
|
3
|
-
/**
|
|
3
|
+
/** Guide the LLM in what to output for this node. Supplements the section-level instructions. */
|
|
4
4
|
description?: string;
|
|
5
|
-
/**
|
|
5
|
+
/** If nothing is outputted, this default is used. */
|
|
6
6
|
default?: number | null;
|
|
7
|
-
/** Can be used to
|
|
7
|
+
/** Can be used to guide the LLM with specific values to output. */
|
|
8
8
|
enum?: number[];
|
|
9
9
|
/** Use if a minimum value applies. */
|
|
10
10
|
minimum?: number | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface GuidedObjectNode {
|
|
3
3
|
type: "object";
|
|
4
|
-
/**
|
|
4
|
+
/** Guide the LLM in what to output for this node. Supplements the section-level instructions. */
|
|
5
5
|
description?: string;
|
|
6
6
|
/**
|
|
7
7
|
* Free-form format string that controls how an object's fields are rendered into the final text output. Operates in one of two modes determined by which placeholders appear:
|
|
8
8
|
*
|
|
9
|
-
* **Subheading mode** (default: `"{key}: {value}\n"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line.
|
|
9
|
+
* **Subheading mode** (default: `"{key}: {value}\n"`): triggered when the format contains both `{key}` and `{value}`. Applied per field — each field becomes a key/value line. When a field has no relevant input/output and no `default` is set, the entire key/value line for that field is omitted from the rendered output.
|
|
10
10
|
*
|
|
11
|
-
* **Object mode** (e.g. `"{name} ({age})"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string.
|
|
11
|
+
* **Object mode** (e.g. `"{name} ({age})"`): triggered when `{key}` and `{value}` are absent. Placeholders must be actual field keys defined in `fields`. Applied once for the whole object, composing all fields into a single string. When a field has no relevant input/output and no `default` is set, its placeholder is replaced with an empty string (`""`).
|
|
12
12
|
*
|
|
13
13
|
* Validation rules: format must not be empty; if either `{key}` or `{value}` appears, both must be present; in subheading mode no extra placeholders are allowed; in object mode every placeholder must match a defined field key.
|
|
14
14
|
*/
|
|
@@ -28,6 +28,4 @@ export interface GuidedSection {
|
|
|
28
28
|
updatedAt: Date;
|
|
29
29
|
/** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
30
30
|
deletedAt?: Date | null;
|
|
31
|
-
/** Access policies for this section. */
|
|
32
|
-
policies?: Corti.GuidedSectionPolicy[];
|
|
33
31
|
}
|
|
@@ -14,6 +14,4 @@ export interface GuidedSectionsCreateBase {
|
|
|
14
14
|
labels?: Corti.GuidedLabel[];
|
|
15
15
|
/** Defaults to true when omitted. Set this to false if you do not want the section to automatically show up in LIST /sections. */
|
|
16
16
|
publish?: boolean;
|
|
17
|
-
/** Access policies to apply to the section on creation. */
|
|
18
|
-
policies?: Corti.GuidedSectionsCreatePolicyRequest[];
|
|
19
17
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface GuidedStringNode {
|
|
2
2
|
type: "string";
|
|
3
|
-
/**
|
|
3
|
+
/** Guide the LLM in what to output for this node. Supplements the section-level instructions. */
|
|
4
4
|
description?: string;
|
|
5
|
-
/**
|
|
5
|
+
/** If nothing is outputted, this default is used. When `enum` is set, the default must be one of the enum values. */
|
|
6
6
|
default?: string | null;
|
|
7
|
-
/** Can be used to
|
|
7
|
+
/** Can be used to guide the LLM with specific values to output. */
|
|
8
8
|
enum?: string[];
|
|
9
|
-
/** Can be used to
|
|
9
|
+
/** Can be used to constrain the LLM to output a specific pattern. */
|
|
10
10
|
pattern?: string | null;
|
|
11
11
|
}
|
|
@@ -20,8 +20,6 @@ export interface GuidedTemplate {
|
|
|
20
20
|
specialties: string[];
|
|
21
21
|
/** The available labels to use as query param filter in the LIST /templates endpoint. */
|
|
22
22
|
labels: Corti.GuidedLabel[];
|
|
23
|
-
/** Access policies for this template. */
|
|
24
|
-
policies?: Corti.GuidedTemplatePolicy[];
|
|
25
23
|
/** The currently published version with inheritance fully resolved. Present when a version has been published. */
|
|
26
24
|
publishedVersion?: Corti.GuidedTemplateVersion;
|
|
27
25
|
/** The original timestamp when the template was created. */
|
|
@@ -14,6 +14,4 @@ export interface GuidedTemplatesCreateBase {
|
|
|
14
14
|
labels?: Corti.GuidedLabel[];
|
|
15
15
|
/** Defaults to true when omitted. Set this to false if you do not want the template to automatically show up in LIST templates. */
|
|
16
16
|
publish?: boolean;
|
|
17
|
-
/** Access policies to apply to the template on creation. */
|
|
18
|
-
policies?: Corti.GuidedTemplatesCreatePolicyRequest[];
|
|
19
17
|
}
|
|
@@ -5,6 +5,6 @@ export interface StreamConfig {
|
|
|
5
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
6
|
retentionPolicy?: Corti.StreamConfigRetentionPolicy;
|
|
7
7
|
audioEvents?: Corti.StreamAudioEventsConfig;
|
|
8
|
-
/**
|
|
8
|
+
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
9
9
|
audioFormat?: string;
|
|
10
10
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export interface StreamErrorDetail {
|
|
2
|
+
/** Unique identifier for the request, for support and debugging. */
|
|
3
|
+
requestid?: string;
|
|
2
4
|
/** Error identifier */
|
|
3
|
-
id
|
|
5
|
+
id?: string;
|
|
4
6
|
/** Error title */
|
|
5
|
-
title
|
|
7
|
+
title?: string;
|
|
6
8
|
/** HTTP status code or similar error code */
|
|
7
|
-
status
|
|
9
|
+
status?: number;
|
|
8
10
|
/** Detailed error message */
|
|
9
|
-
details
|
|
11
|
+
details?: string;
|
|
10
12
|
/** Link to documentation or further information */
|
|
11
|
-
doc
|
|
13
|
+
doc?: string;
|
|
12
14
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface TranscribeCommand {
|
|
3
|
-
/**
|
|
3
|
+
/** Unique value to identify the command when it is detected and returned over the WebSocket */
|
|
4
4
|
id: string;
|
|
5
|
-
/**
|
|
5
|
+
/** One or more word sequence(s) that can be spoken to trigger the command. At least one phrase is required per command. */
|
|
6
6
|
phrases: string[];
|
|
7
|
-
/**
|
|
7
|
+
/** Placeholders that can (optionally) be added in phrases to provide flexibility and extensibility for triggering commands. */
|
|
8
8
|
variables?: Corti.TranscribeCommandVariable[];
|
|
9
9
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
1
2
|
export interface TranscribeCommandVariable {
|
|
2
|
-
/**
|
|
3
|
+
/** Define the variable used in command phrases. */
|
|
3
4
|
key: string;
|
|
4
|
-
/** Variable type */
|
|
5
|
-
type:
|
|
6
|
-
/**
|
|
7
|
-
enum
|
|
5
|
+
/** Variable type. Use `enum` to define a fixed list of values that can be recognized for the variable. Use `wildcard` to recognize any undefined, open-ended free-text utterance. When using `wildcard`, the phrase must include a literal trigger word before the wildcard variable (a phrase may not begin with a wildcard variable), and multiple wildcard variables in a single phrase must be separated by a non-empty literal string (e.g. `select {text1} end select {text2}` is valid; `{text1} {text2}` is not). */
|
|
6
|
+
type: Corti.TranscribeCommandVariableType;
|
|
7
|
+
/** List of values that should be recognized for the defined variable. Required when `type` is `enum`. Not used (and ignored) when `type` is `wildcard`. */
|
|
8
|
+
enum?: string[];
|
|
8
9
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Variable type. Use `enum` to define a fixed list of values that can be recognized for the variable. Use `wildcard` to recognize any undefined, open-ended free-text utterance. When using `wildcard`, the phrase must include a literal trigger word before the wildcard variable (a phrase may not begin with a wildcard variable), and multiple wildcard variables in a single phrase must be separated by a non-empty literal string (e.g. `select {text1} end select {text2}` is valid; `{text1} {text2}` is not). */
|
|
2
|
+
export declare const TranscribeCommandVariableType: {
|
|
3
|
+
readonly Enum: "enum";
|
|
4
|
+
readonly Wildcard: "wildcard";
|
|
5
|
+
};
|
|
6
|
+
export type TranscribeCommandVariableType = (typeof TranscribeCommandVariableType)[keyof typeof TranscribeCommandVariableType];
|
|
@@ -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.TranscribeCommandVariableType = void 0;
|
|
5
|
+
/** Variable type. Use `enum` to define a fixed list of values that can be recognized for the variable. Use `wildcard` to recognize any undefined, open-ended free-text utterance. When using `wildcard`, the phrase must include a literal trigger word before the wildcard variable (a phrase may not begin with a wildcard variable), and multiple wildcard variables in a single phrase must be separated by a non-empty literal string (e.g. `select {text1} end select {text2}` is valid; `{text1} {text2}` is not). */
|
|
6
|
+
exports.TranscribeCommandVariableType = {
|
|
7
|
+
Enum: "enum",
|
|
8
|
+
Wildcard: "wildcard",
|
|
9
|
+
};
|
|
@@ -2,16 +2,18 @@ import type * as Corti from "../index.js";
|
|
|
2
2
|
export interface TranscribeConfig {
|
|
3
3
|
/** The locale of the primary spoken language. */
|
|
4
4
|
primaryLanguage: Corti.TranscribeSupportedLanguage;
|
|
5
|
-
/** When true, returns interim results for reduced latency */
|
|
5
|
+
/** When true, returns interim (preview) transcript results (`isFinal=false`) for reduced latency than final transcripts. Defaults to false. */
|
|
6
6
|
interimResults?: boolean;
|
|
7
|
-
/** When true, converts spoken punctuation such as 'period' or 'slash' into '.' or '/' */
|
|
7
|
+
/** When true, converts spoken punctuation such as 'period' or 'slash' into '.' or '/'. Defaults to false. Overrides automaticPunctuation when both are enabled. */
|
|
8
8
|
spokenPunctuation?: boolean;
|
|
9
|
-
/** When true, automatically punctuates and capitalizes in the final transcript */
|
|
9
|
+
/** When true, automatically punctuates and capitalizes in the final transcript. Defaults to false. Overridden by spokenPunctuation when both are enabled. */
|
|
10
10
|
automaticPunctuation?: boolean;
|
|
11
11
|
/** Commands that should be registered and detected */
|
|
12
12
|
commands?: Corti.TranscribeCommand[];
|
|
13
13
|
formatting?: Corti.TranscribeFormatting;
|
|
14
14
|
audioEvents?: Corti.TranscribeAudioEventsConfig;
|
|
15
|
-
/**
|
|
15
|
+
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
16
16
|
audioFormat?: string;
|
|
17
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is limited to 1,000 replacements per stream. */
|
|
18
|
+
replacements?: Corti.TranscribeConfigReplacementsItem[];
|
|
17
19
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export interface TranscribeErrorMessageError {
|
|
2
|
+
/** Unique identifier for the request, for support and debugging. */
|
|
3
|
+
requestid?: string;
|
|
2
4
|
/** Unique error identifier */
|
|
3
|
-
id
|
|
5
|
+
id?: string;
|
|
4
6
|
/** Error title */
|
|
5
|
-
title
|
|
7
|
+
title?: string;
|
|
6
8
|
/** HTTP status code */
|
|
7
|
-
status
|
|
9
|
+
status?: number;
|
|
8
10
|
/** Detailed error description */
|
|
9
|
-
details
|
|
11
|
+
details?: string;
|
|
10
12
|
/** Link to documentation */
|
|
11
|
-
doc
|
|
13
|
+
doc?: string;
|
|
12
14
|
}
|
|
@@ -143,12 +143,10 @@ export * from "./GuidedSectionInstructionsOverride.js";
|
|
|
143
143
|
export * from "./GuidedSectionInstructionsPartial.js";
|
|
144
144
|
export * from "./GuidedSectionOverride.js";
|
|
145
145
|
export * from "./GuidedSectionOverrides.js";
|
|
146
|
-
export * from "./GuidedSectionPolicy.js";
|
|
147
146
|
export * from "./GuidedSectionSource.js";
|
|
148
147
|
export * from "./GuidedSectionsCreateBase.js";
|
|
149
148
|
export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
|
|
150
149
|
export * from "./GuidedSectionsCreateFromScratchRequest.js";
|
|
151
|
-
export * from "./GuidedSectionsCreatePolicyRequest.js";
|
|
152
150
|
export * from "./GuidedSectionsCreateRequest.js";
|
|
153
151
|
export * from "./GuidedSectionVersion.js";
|
|
154
152
|
export * from "./GuidedShallowTemplateGeneration.js";
|
|
@@ -160,8 +158,6 @@ export * from "./GuidedTemplateGeneration.js";
|
|
|
160
158
|
export * from "./GuidedTemplateInstructions.js";
|
|
161
159
|
export * from "./GuidedTemplateInstructionsPartial.js";
|
|
162
160
|
export * from "./GuidedTemplateOverrides.js";
|
|
163
|
-
export * from "./GuidedTemplatePolicy.js";
|
|
164
|
-
export * from "./GuidedTemplatePolicyKind.js";
|
|
165
161
|
export * from "./GuidedTemplateRef.js";
|
|
166
162
|
export * from "./GuidedTemplateSource.js";
|
|
167
163
|
export * from "./GuidedTemplatesCreateBase.js";
|
|
@@ -169,7 +165,6 @@ export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
|
|
|
169
165
|
export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.js";
|
|
170
166
|
export * from "./GuidedTemplatesCreateFromScratchRequest.js";
|
|
171
167
|
export * from "./GuidedTemplatesCreateFromScratchRequestGeneration.js";
|
|
172
|
-
export * from "./GuidedTemplatesCreatePolicyRequest.js";
|
|
173
168
|
export * from "./GuidedTemplatesCreateRequest.js";
|
|
174
169
|
export * from "./GuidedTemplatesVersionGeneration.js";
|
|
175
170
|
export * from "./GuidedTemplatesVersionSectionRequest.js";
|
|
@@ -238,8 +233,10 @@ export * from "./TranscribeCommand.js";
|
|
|
238
233
|
export * from "./TranscribeCommandData.js";
|
|
239
234
|
export * from "./TranscribeCommandMessage.js";
|
|
240
235
|
export * from "./TranscribeCommandVariable.js";
|
|
236
|
+
export * from "./TranscribeCommandVariableType.js";
|
|
241
237
|
export * from "./TranscribeConfig.js";
|
|
242
238
|
export * from "./TranscribeConfigMessage.js";
|
|
239
|
+
export * from "./TranscribeConfigReplacementsItem.js";
|
|
243
240
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
244
241
|
export * from "./TranscribeConfigStatusMessageType.js";
|
|
245
242
|
export * from "./TranscribeDeltaUsageMessage.js";
|
|
@@ -159,12 +159,10 @@ __exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
|
|
|
159
159
|
__exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
|
|
160
160
|
__exportStar(require("./GuidedSectionOverride.js"), exports);
|
|
161
161
|
__exportStar(require("./GuidedSectionOverrides.js"), exports);
|
|
162
|
-
__exportStar(require("./GuidedSectionPolicy.js"), exports);
|
|
163
162
|
__exportStar(require("./GuidedSectionSource.js"), exports);
|
|
164
163
|
__exportStar(require("./GuidedSectionsCreateBase.js"), exports);
|
|
165
164
|
__exportStar(require("./GuidedSectionsCreateFromInheritanceRequest.js"), exports);
|
|
166
165
|
__exportStar(require("./GuidedSectionsCreateFromScratchRequest.js"), exports);
|
|
167
|
-
__exportStar(require("./GuidedSectionsCreatePolicyRequest.js"), exports);
|
|
168
166
|
__exportStar(require("./GuidedSectionsCreateRequest.js"), exports);
|
|
169
167
|
__exportStar(require("./GuidedSectionVersion.js"), exports);
|
|
170
168
|
__exportStar(require("./GuidedShallowTemplateGeneration.js"), exports);
|
|
@@ -176,8 +174,6 @@ __exportStar(require("./GuidedTemplateGeneration.js"), exports);
|
|
|
176
174
|
__exportStar(require("./GuidedTemplateInstructions.js"), exports);
|
|
177
175
|
__exportStar(require("./GuidedTemplateInstructionsPartial.js"), exports);
|
|
178
176
|
__exportStar(require("./GuidedTemplateOverrides.js"), exports);
|
|
179
|
-
__exportStar(require("./GuidedTemplatePolicy.js"), exports);
|
|
180
|
-
__exportStar(require("./GuidedTemplatePolicyKind.js"), exports);
|
|
181
177
|
__exportStar(require("./GuidedTemplateRef.js"), exports);
|
|
182
178
|
__exportStar(require("./GuidedTemplateSource.js"), exports);
|
|
183
179
|
__exportStar(require("./GuidedTemplatesCreateBase.js"), exports);
|
|
@@ -185,7 +181,6 @@ __exportStar(require("./GuidedTemplatesCreateFromInheritanceRequest.js"), export
|
|
|
185
181
|
__exportStar(require("./GuidedTemplatesCreateFromInheritanceRequestGeneration.js"), exports);
|
|
186
182
|
__exportStar(require("./GuidedTemplatesCreateFromScratchRequest.js"), exports);
|
|
187
183
|
__exportStar(require("./GuidedTemplatesCreateFromScratchRequestGeneration.js"), exports);
|
|
188
|
-
__exportStar(require("./GuidedTemplatesCreatePolicyRequest.js"), exports);
|
|
189
184
|
__exportStar(require("./GuidedTemplatesCreateRequest.js"), exports);
|
|
190
185
|
__exportStar(require("./GuidedTemplatesVersionGeneration.js"), exports);
|
|
191
186
|
__exportStar(require("./GuidedTemplatesVersionSectionRequest.js"), exports);
|
|
@@ -254,8 +249,10 @@ __exportStar(require("./TranscribeCommand.js"), exports);
|
|
|
254
249
|
__exportStar(require("./TranscribeCommandData.js"), exports);
|
|
255
250
|
__exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
256
251
|
__exportStar(require("./TranscribeCommandVariable.js"), exports);
|
|
252
|
+
__exportStar(require("./TranscribeCommandVariableType.js"), exports);
|
|
257
253
|
__exportStar(require("./TranscribeConfig.js"), exports);
|
|
258
254
|
__exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
255
|
+
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
259
256
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
|
260
257
|
__exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
|
|
261
258
|
__exportStar(require("./TranscribeDeltaUsageMessage.js"), exports);
|
|
@@ -48,6 +48,20 @@ export declare class CortiClient extends BaseCortiClient {
|
|
|
48
48
|
get stream(): CustomStream;
|
|
49
49
|
get transcribe(): CustomTranscribe;
|
|
50
50
|
get agents(): CustomAgents;
|
|
51
|
+
/**
|
|
52
|
+
* Returns the full set of URLs the client is configured to use.
|
|
53
|
+
*
|
|
54
|
+
* If a custom `baseUrl` was provided it overrides the `base` field; all
|
|
55
|
+
* other URLs are derived from the configured environment.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const client = new CortiClient({ environment: "eu", ... });
|
|
60
|
+
* const urls = await client.getEnvironmentUrls();
|
|
61
|
+
* // { base: "https://api.eu.corti.app/v2", wss: "wss://...", login: "https://...", agents: "https://..." }
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
getEnvironmentUrls: () => Promise<environments.CortiEnvironmentUrls>;
|
|
51
65
|
/**
|
|
52
66
|
* Retrieves authentication headers for API requests.
|
|
53
67
|
*
|