@corti/sdk 3.0.0-template-policies → 3.1.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/documents/resources/sections/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +2 -7
- package/dist/cjs/api/resources/documents/resources/sections/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/documents/resources/sections/resources/index.js +4 -5
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +2 -7
- package/dist/cjs/api/resources/documents/resources/templates/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/documents/resources/templates/resources/index.js +4 -5
- 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 +1 -3
- package/dist/cjs/api/types/GuidedArrayNode.d.ts +2 -3
- package/dist/cjs/api/types/GuidedBoolNode.d.ts +2 -2
- package/dist/cjs/api/types/GuidedDocumentsGenerateBase.d.ts +0 -2
- package/dist/cjs/api/types/GuidedEphemeralDocument.d.ts +0 -5
- package/dist/cjs/api/types/GuidedFieldDefinition.d.ts +1 -4
- 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/GuidedStringNode.d.ts +4 -4
- 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 +2 -2
- package/dist/cjs/api/types/TranscribeConfig.d.ts +3 -5
- package/dist/cjs/api/types/TranscribeSupportedLanguage.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +0 -1
- package/dist/cjs/api/types/index.js +0 -1
- package/dist/cjs/custom/CortiClient.d.ts +14 -0
- package/dist/cjs/custom/CortiClient.js +21 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.js +4 -5
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.js +4 -5
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +0 -1
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +0 -1
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.js +0 -2
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.d.ts +0 -3
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.js +0 -3
- package/dist/cjs/serialization/types/GuidedFieldDefinition.d.ts +0 -1
- package/dist/cjs/serialization/types/GuidedFieldDefinition.js +0 -1
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +1 -1
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +0 -2
- package/dist/cjs/serialization/types/TranscribeConfig.js +0 -2
- package/dist/cjs/serialization/types/index.d.ts +0 -1
- package/dist/cjs/serialization/types/index.js +0 -1
- 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 +0 -3
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +0 -5
- package/dist/esm/api/resources/documents/resources/sections/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/documents/resources/sections/resources/index.mjs +0 -1
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +0 -5
- package/dist/esm/api/resources/documents/resources/templates/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/documents/resources/templates/resources/index.mjs +0 -1
- 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 +1 -3
- package/dist/esm/api/types/GuidedArrayNode.d.mts +2 -3
- package/dist/esm/api/types/GuidedBoolNode.d.mts +2 -2
- package/dist/esm/api/types/GuidedDocumentsGenerateBase.d.mts +0 -2
- package/dist/esm/api/types/GuidedEphemeralDocument.d.mts +0 -5
- package/dist/esm/api/types/GuidedFieldDefinition.d.mts +1 -4
- 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/GuidedStringNode.d.mts +4 -4
- 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 +2 -2
- package/dist/esm/api/types/TranscribeConfig.d.mts +3 -5
- package/dist/esm/api/types/TranscribeSupportedLanguage.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +0 -1
- package/dist/esm/api/types/index.mjs +0 -1
- package/dist/esm/custom/CortiClient.d.mts +14 -0
- package/dist/esm/custom/CortiClient.mjs +21 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/index.d.mts +0 -1
- package/dist/esm/serialization/resources/documents/resources/sections/resources/index.mjs +0 -1
- package/dist/esm/serialization/resources/documents/resources/templates/resources/index.d.mts +0 -1
- package/dist/esm/serialization/resources/documents/resources/templates/resources/index.mjs +0 -1
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +0 -1
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +0 -1
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.mjs +0 -2
- package/dist/esm/serialization/types/GuidedEphemeralDocument.d.mts +0 -3
- package/dist/esm/serialization/types/GuidedEphemeralDocument.mjs +0 -3
- package/dist/esm/serialization/types/GuidedFieldDefinition.d.mts +0 -1
- package/dist/esm/serialization/types/GuidedFieldDefinition.mjs +0 -1
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +0 -2
- package/dist/esm/serialization/types/TranscribeConfig.mjs +0 -2
- package/dist/esm/serialization/types/index.d.mts +0 -1
- package/dist/esm/serialization/types/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/Client.d.ts +0 -45
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/Client.js +0 -187
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/index.js +0 -2
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/index.d.ts +0 -1
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/index.js +0 -17
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/Client.d.ts +0 -45
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/Client.js +0 -187
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/index.js +0 -2
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/index.d.ts +0 -1
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/index.js +0 -17
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.d.ts +0 -6
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.js +0 -3
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/create.d.ts +0 -13
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/create.js +0 -42
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/index.js +0 -38
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/list.d.ts +0 -8
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/list.js +0 -40
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/index.js +0 -17
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/create.d.ts +0 -13
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/create.js +0 -42
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/index.js +0 -38
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/list.d.ts +0 -8
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/list.js +0 -40
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/index.js +0 -17
- package/dist/cjs/serialization/types/TranscribeConfigReplacementsItem.d.ts +0 -10
- package/dist/cjs/serialization/types/TranscribeConfigReplacementsItem.js +0 -42
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/Client.d.mts +0 -45
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/Client.mjs +0 -150
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/index.d.mts +0 -1
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/index.mjs +0 -1
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/index.d.mts +0 -1
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/index.mjs +0 -1
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/Client.d.mts +0 -45
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/Client.mjs +0 -150
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/index.d.mts +0 -1
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/index.mjs +0 -1
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/index.d.mts +0 -1
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/index.mjs +0 -1
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.d.mts +0 -6
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.mjs +0 -2
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/create.d.mts +0 -13
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/create.mjs +0 -6
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/index.d.mts +0 -2
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/index.mjs +0 -2
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/list.d.mts +0 -8
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/list.mjs +0 -4
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/index.d.mts +0 -1
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/index.mjs +0 -1
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/create.d.mts +0 -13
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/create.mjs +0 -6
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/index.d.mts +0 -2
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/index.mjs +0 -2
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/list.d.mts +0 -8
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/list.mjs +0 -4
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/index.d.mts +0 -1
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/index.mjs +0 -1
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.d.mts +0 -10
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.mjs +0 -6
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.
|
|
47
|
-
"User-Agent": "@corti/sdk/3.
|
|
46
|
+
"X-Fern-SDK-Version": "3.1.0-rc",
|
|
47
|
+
"User-Agent": "@corti/sdk/3.1.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,
|
|
@@ -2,7 +2,6 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as Corti from "../../../../../index.js";
|
|
5
|
-
import { PoliciesClient } from "../resources/policies/client/Client.js";
|
|
6
5
|
import { VersionsClient } from "../resources/versions/client/Client.js";
|
|
7
6
|
export declare namespace SectionsClient {
|
|
8
7
|
type Options = BaseClientOptions;
|
|
@@ -12,10 +11,8 @@ export declare namespace SectionsClient {
|
|
|
12
11
|
export declare class SectionsClient {
|
|
13
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<SectionsClient.Options>;
|
|
14
13
|
protected _versions: VersionsClient | undefined;
|
|
15
|
-
protected _policies: PoliciesClient | undefined;
|
|
16
14
|
constructor(options: SectionsClient.Options);
|
|
17
15
|
get versions(): VersionsClient;
|
|
18
|
-
get policies(): PoliciesClient;
|
|
19
16
|
/**
|
|
20
17
|
* @param {Corti.documents.GuidedSectionsListRequest} request
|
|
21
18
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,19 +51,14 @@ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNo
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
53
53
|
const Corti = __importStar(require("../../../../../index.js"));
|
|
54
|
-
const Client_js_1 = require("../resources/
|
|
55
|
-
const Client_js_2 = require("../resources/versions/client/Client.js");
|
|
54
|
+
const Client_js_1 = require("../resources/versions/client/Client.js");
|
|
56
55
|
class SectionsClient {
|
|
57
56
|
constructor(options) {
|
|
58
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
59
58
|
}
|
|
60
59
|
get versions() {
|
|
61
60
|
var _a;
|
|
62
|
-
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new
|
|
63
|
-
}
|
|
64
|
-
get policies() {
|
|
65
|
-
var _a;
|
|
66
|
-
return ((_a = this._policies) !== null && _a !== void 0 ? _a : (this._policies = new Client_js_1.PoliciesClient(this._options)));
|
|
61
|
+
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new Client_js_1.VersionsClient(this._options)));
|
|
67
62
|
}
|
|
68
63
|
/**
|
|
69
64
|
* @param {Corti.documents.GuidedSectionsListRequest} request
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
22
|
var ownKeys = function(o) {
|
|
20
23
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -32,11 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
35
|
return result;
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.versions =
|
|
40
|
-
exports.policies = __importStar(require("./policies/index.js"));
|
|
39
|
+
exports.versions = void 0;
|
|
41
40
|
__exportStar(require("./versions/client/requests/index.js"), exports);
|
|
42
41
|
exports.versions = __importStar(require("./versions/index.js"));
|
|
@@ -2,7 +2,6 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as Corti from "../../../../../index.js";
|
|
5
|
-
import { PoliciesClient } from "../resources/policies/client/Client.js";
|
|
6
5
|
import { VersionsClient } from "../resources/versions/client/Client.js";
|
|
7
6
|
export declare namespace TemplatesClient {
|
|
8
7
|
type Options = BaseClientOptions;
|
|
@@ -12,10 +11,8 @@ export declare namespace TemplatesClient {
|
|
|
12
11
|
export declare class TemplatesClient {
|
|
13
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<TemplatesClient.Options>;
|
|
14
13
|
protected _versions: VersionsClient | undefined;
|
|
15
|
-
protected _policies: PoliciesClient | undefined;
|
|
16
14
|
constructor(options: TemplatesClient.Options);
|
|
17
15
|
get versions(): VersionsClient;
|
|
18
|
-
get policies(): PoliciesClient;
|
|
19
16
|
/**
|
|
20
17
|
* @param {Corti.documents.GuidedTemplatesListRequest} request
|
|
21
18
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,19 +51,14 @@ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNo
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
53
53
|
const Corti = __importStar(require("../../../../../index.js"));
|
|
54
|
-
const Client_js_1 = require("../resources/
|
|
55
|
-
const Client_js_2 = require("../resources/versions/client/Client.js");
|
|
54
|
+
const Client_js_1 = require("../resources/versions/client/Client.js");
|
|
56
55
|
class TemplatesClient {
|
|
57
56
|
constructor(options) {
|
|
58
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
59
58
|
}
|
|
60
59
|
get versions() {
|
|
61
60
|
var _a;
|
|
62
|
-
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new
|
|
63
|
-
}
|
|
64
|
-
get policies() {
|
|
65
|
-
var _a;
|
|
66
|
-
return ((_a = this._policies) !== null && _a !== void 0 ? _a : (this._policies = new Client_js_1.PoliciesClient(this._options)));
|
|
61
|
+
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new Client_js_1.VersionsClient(this._options)));
|
|
67
62
|
}
|
|
68
63
|
/**
|
|
69
64
|
* @param {Corti.documents.GuidedTemplatesListRequest} request
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
22
|
var ownKeys = function(o) {
|
|
20
23
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -32,11 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
35
|
return result;
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.versions =
|
|
40
|
-
exports.policies = __importStar(require("./policies/index.js"));
|
|
39
|
+
exports.versions = void 0;
|
|
41
40
|
__exportStar(require("./versions/client/requests/index.js"), exports);
|
|
42
41
|
exports.versions = __importStar(require("./versions/index.js"));
|
|
@@ -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/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</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/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</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
|
+
/** Indicates whether spoken dictation commands should be converted to punctuation (e.g., 'comma' → ','). */
|
|
15
15
|
isDictation?: boolean;
|
|
16
16
|
/** If true, each audio channel is transcribed separately. */
|
|
17
17
|
isMultichannel?: boolean;
|
|
@@ -19,6 +19,4 @@ 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;
|
|
24
22
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface GuidedArrayNode {
|
|
3
3
|
type: "array";
|
|
4
|
-
/**
|
|
4
|
+
/** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
|
|
5
5
|
description?: string;
|
|
6
|
-
/** Must be another output schema node (string, number, boolean, array, or object). */
|
|
7
6
|
items: Corti.GuidedOutputSchema;
|
|
8
|
-
/**
|
|
7
|
+
/** Controls how each array item is rendered in the generated output. Use `bullet` (default), `numbered`, or `plain`, or provide a custom format string containing the `{item}` placeholder. */
|
|
9
8
|
itemFormat?: string;
|
|
10
9
|
/** Minimum number of array items to generate. */
|
|
11
10
|
minItems?: number | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface GuidedBoolNode {
|
|
2
2
|
type: "boolean";
|
|
3
|
-
/**
|
|
3
|
+
/** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
|
|
4
4
|
description?: string;
|
|
5
|
-
/**
|
|
5
|
+
/** The default to output if nothing to output. */
|
|
6
6
|
default?: boolean | null;
|
|
7
7
|
}
|
|
@@ -9,6 +9,4 @@ 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[];
|
|
14
12
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type * as Corti from "../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* A generated document that was not saved to the database.
|
|
4
3
|
*/
|
|
@@ -8,10 +7,6 @@ export interface GuidedEphemeralDocument {
|
|
|
8
7
|
templateVersionId: string;
|
|
9
8
|
/** The BCP 47 language tag of the generated output. */
|
|
10
9
|
language: string;
|
|
11
|
-
/** The interaction whose context was used to generate this document, if supplied. */
|
|
12
|
-
interactionId?: string | null;
|
|
13
10
|
stringDocument: Record<string, string>;
|
|
14
11
|
structuredDocument?: Record<string, unknown> | null;
|
|
15
|
-
/** Key/value labels attached to this document. */
|
|
16
|
-
labels: Corti.GuidedLabel[];
|
|
17
12
|
}
|
|
@@ -2,10 +2,7 @@ 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
|
+
/** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
|
|
6
6
|
description: string;
|
|
7
|
-
/** Must be another output schema node (string, number, boolean, array, or object). */
|
|
8
7
|
value: Corti.GuidedOutputSchema;
|
|
9
|
-
/** If nothing is outputted for this field, this default value is used in the rendered output. */
|
|
10
|
-
default?: string | null;
|
|
11
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface GuidedNumberNode {
|
|
2
2
|
type: "number";
|
|
3
|
-
/**
|
|
3
|
+
/** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
|
|
4
4
|
description?: string;
|
|
5
|
-
/**
|
|
5
|
+
/** The default to output if nothing to output. */
|
|
6
6
|
default?: number | null;
|
|
7
|
-
/** Can be used to
|
|
7
|
+
/** Can be used to prompt the LLM for specifically allowed numeric 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
|
+
/** Can be used to prompt the LLM with more guidance in addition to the section.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. Fields that render to null are skipped.
|
|
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. Fields rendering to null become 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
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface GuidedStringNode {
|
|
2
2
|
type: "string";
|
|
3
|
-
/**
|
|
3
|
+
/** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
|
|
4
4
|
description?: string;
|
|
5
|
-
/**
|
|
5
|
+
/** The default to output if nothing to output. */
|
|
6
6
|
default?: string | null;
|
|
7
|
-
/** Can be used to
|
|
7
|
+
/** Can be used to prompt the LLM with specific values to output. */
|
|
8
8
|
enum?: string[];
|
|
9
|
-
/** Can be used to
|
|
9
|
+
/** Can be used to prompt the LLM for a specific output pattern. */
|
|
10
10
|
pattern?: string | null;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface TranscribeCommand {
|
|
3
|
-
/**
|
|
3
|
+
/** To identify the command when it gets detected and returned over the WebSocket */
|
|
4
4
|
id: string;
|
|
5
|
-
/**
|
|
5
|
+
/** The spoken phrases that should trigger the command */
|
|
6
6
|
phrases: string[];
|
|
7
|
-
/**
|
|
7
|
+
/** Variables for the command */
|
|
8
8
|
variables?: Corti.TranscribeCommandVariable[];
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface TranscribeCommandVariable {
|
|
2
|
-
/**
|
|
2
|
+
/** Variable key identifier */
|
|
3
3
|
key: string;
|
|
4
4
|
/** Variable type */
|
|
5
5
|
type: "enum";
|
|
6
|
-
/**
|
|
6
|
+
/** Enum values for the variable */
|
|
7
7
|
enum: string[];
|
|
8
8
|
}
|
|
@@ -2,11 +2,11 @@ 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
|
|
5
|
+
/** When true, returns interim results for reduced latency */
|
|
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 '/' */
|
|
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 */
|
|
10
10
|
automaticPunctuation?: boolean;
|
|
11
11
|
/** Commands that should be registered and detected */
|
|
12
12
|
commands?: Corti.TranscribeCommand[];
|
|
@@ -14,6 +14,4 @@ export interface TranscribeConfig {
|
|
|
14
14
|
audioEvents?: Corti.TranscribeAudioEventsConfig;
|
|
15
15
|
/** The audio format of the incoming audio stream */
|
|
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[];
|
|
19
17
|
}
|
|
@@ -240,7 +240,6 @@ export * from "./TranscribeCommandMessage.js";
|
|
|
240
240
|
export * from "./TranscribeCommandVariable.js";
|
|
241
241
|
export * from "./TranscribeConfig.js";
|
|
242
242
|
export * from "./TranscribeConfigMessage.js";
|
|
243
|
-
export * from "./TranscribeConfigReplacementsItem.js";
|
|
244
243
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
245
244
|
export * from "./TranscribeConfigStatusMessageType.js";
|
|
246
245
|
export * from "./TranscribeDeltaUsageMessage.js";
|
|
@@ -256,7 +256,6 @@ __exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
|
256
256
|
__exportStar(require("./TranscribeCommandVariable.js"), exports);
|
|
257
257
|
__exportStar(require("./TranscribeConfig.js"), exports);
|
|
258
258
|
__exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
259
|
-
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
260
259
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
|
261
260
|
__exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
|
|
262
261
|
__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
|
*
|
|
@@ -59,6 +59,27 @@ class CortiClient extends Client_js_1.CortiClient {
|
|
|
59
59
|
const ctx = (0, resolveClientOptions_js_1.resolveClientOptions)(options);
|
|
60
60
|
const restOptions = Object.assign(Object.assign(Object.assign({}, opts), { tenantName: ctx.tenantName, environment: (0, environment_js_1.getEnvironment)(ctx.environment) }), (ctx.initialTokenResponse != null ? { initialTokenResponse: ctx.initialTokenResponse } : {}));
|
|
61
61
|
super((0, authToBaseOptions_js_1.authToBaseOptions)(opts.auth, restOptions));
|
|
62
|
+
/**
|
|
63
|
+
* Returns the full set of URLs the client is configured to use.
|
|
64
|
+
*
|
|
65
|
+
* If a custom `baseUrl` was provided it overrides the `base` field; all
|
|
66
|
+
* other URLs are derived from the configured environment.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* const client = new CortiClient({ environment: "eu", ... });
|
|
71
|
+
* const urls = await client.getEnvironmentUrls();
|
|
72
|
+
* // { base: "https://api.eu.corti.app/v2", wss: "wss://...", login: "https://...", agents: "https://..." }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
this.getEnvironmentUrls = () => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const baseUrl = yield core.Supplier.get(this._options.baseUrl);
|
|
77
|
+
// baseUrl is a universal override: all generated clients use `baseUrl ?? env.<field>`.
|
|
78
|
+
// Resolve environment only in the fallback path to avoid triggering auth discovery needlessly.
|
|
79
|
+
if (baseUrl != null)
|
|
80
|
+
return { base: baseUrl, wss: baseUrl, login: baseUrl, agents: baseUrl };
|
|
81
|
+
return yield core.Supplier.get(this._options.environment);
|
|
82
|
+
});
|
|
62
83
|
/**
|
|
63
84
|
* Retrieves authentication headers for API requests.
|
|
64
85
|
*
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
22
|
var ownKeys = function(o) {
|
|
20
23
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -32,11 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
35
|
return result;
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.versions =
|
|
40
|
-
exports.policies = __importStar(require("./policies/index.js"));
|
|
39
|
+
exports.versions = void 0;
|
|
41
40
|
__exportStar(require("./versions/client/requests/index.js"), exports);
|
|
42
41
|
exports.versions = __importStar(require("./versions/index.js"));
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
22
|
var ownKeys = function(o) {
|
|
20
23
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -32,11 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
35
|
return result;
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.versions =
|
|
40
|
-
exports.policies = __importStar(require("./policies/index.js"));
|
|
39
|
+
exports.versions = void 0;
|
|
41
40
|
__exportStar(require("./versions/client/requests/index.js"), exports);
|
|
42
41
|
exports.versions = __importStar(require("./versions/index.js"));
|
package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js
CHANGED
|
@@ -45,5 +45,4 @@ exports.TranscriptsCreateRequest = core.serialization.object({
|
|
|
45
45
|
isMultichannel: core.serialization.boolean().optional(),
|
|
46
46
|
diarize: core.serialization.boolean().optional(),
|
|
47
47
|
participants: core.serialization.list(TranscriptsParticipant_js_1.TranscriptsParticipant).optional(),
|
|
48
|
-
async: core.serialization.boolean().optional(),
|
|
49
48
|
});
|
|
@@ -2,13 +2,11 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { GuidedDocumentContext } from "./GuidedDocumentContext.js";
|
|
5
|
-
import { GuidedLabel } from "./GuidedLabel.js";
|
|
6
5
|
export declare const GuidedDocumentsGenerateBase: core.serialization.ObjectSchema<serializers.GuidedDocumentsGenerateBase.Raw, Corti.GuidedDocumentsGenerateBase>;
|
|
7
6
|
export declare namespace GuidedDocumentsGenerateBase {
|
|
8
7
|
interface Raw {
|
|
9
8
|
outputLanguage: string;
|
|
10
9
|
context?: GuidedDocumentContext.Raw[] | null;
|
|
11
10
|
interactionId?: string | null;
|
|
12
|
-
labels?: GuidedLabel.Raw[] | null;
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -37,10 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedDocumentsGenerateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedDocumentContext_js_1 = require("./GuidedDocumentContext.js");
|
|
40
|
-
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
41
40
|
exports.GuidedDocumentsGenerateBase = core.serialization.object({
|
|
42
41
|
outputLanguage: core.serialization.string(),
|
|
43
42
|
context: core.serialization.list(GuidedDocumentContext_js_1.GuidedDocumentContext).optional(),
|
|
44
43
|
interactionId: core.serialization.string().optional(),
|
|
45
|
-
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
46
44
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
-
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
4
|
export declare const GuidedEphemeralDocument: core.serialization.ObjectSchema<serializers.GuidedEphemeralDocument.Raw, Corti.GuidedEphemeralDocument>;
|
|
6
5
|
export declare namespace GuidedEphemeralDocument {
|
|
7
6
|
interface Raw {
|
|
@@ -9,9 +8,7 @@ export declare namespace GuidedEphemeralDocument {
|
|
|
9
8
|
templateId: string;
|
|
10
9
|
templateVersionId: string;
|
|
11
10
|
language: string;
|
|
12
|
-
interactionId?: (string | null | undefined) | null;
|
|
13
11
|
stringDocument: Record<string, string>;
|
|
14
12
|
structuredDocument?: (Record<string, unknown> | null | undefined) | null;
|
|
15
|
-
labels: GuidedLabel.Raw[];
|
|
16
13
|
}
|
|
17
14
|
}
|
|
@@ -36,16 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.GuidedEphemeralDocument = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
39
|
exports.GuidedEphemeralDocument = core.serialization.object({
|
|
41
40
|
name: core.serialization.string(),
|
|
42
41
|
templateId: core.serialization.string(),
|
|
43
42
|
templateVersionId: core.serialization.string(),
|
|
44
43
|
language: core.serialization.string(),
|
|
45
|
-
interactionId: core.serialization.string().optionalNullable(),
|
|
46
44
|
stringDocument: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
47
45
|
structuredDocument: core.serialization
|
|
48
46
|
.record(core.serialization.string(), core.serialization.unknown())
|
|
49
47
|
.optionalNullable(),
|
|
50
|
-
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
51
48
|
});
|
|
@@ -41,5 +41,4 @@ exports.GuidedFieldDefinition = core.serialization.object({
|
|
|
41
41
|
key: core.serialization.string(),
|
|
42
42
|
description: core.serialization.string(),
|
|
43
43
|
value: core.serialization.lazy(() => serializers.GuidedOutputSchema),
|
|
44
|
-
default: core.serialization.string().optionalNullable(),
|
|
45
44
|
});
|