@corti/sdk 2.2.0-rc.3 → 3.0.0-template-policies
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 +3 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +7 -2
- package/dist/cjs/api/resources/documents/resources/sections/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/index.js +5 -4
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/Client.d.ts +45 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/Client.js +187 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/client/index.js +2 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/policies/index.js +17 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +7 -2
- package/dist/cjs/api/resources/documents/resources/templates/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/index.js +5 -4
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/Client.d.ts +45 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/Client.js +187 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/index.js +2 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/policies/index.js +17 -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/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 +5 -3
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.js +3 -0
- package/dist/cjs/api/types/TranscribeSupportedLanguage.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.js +5 -4
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/create.d.ts +13 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/create.js +42 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/index.js +38 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/client/list.js +40 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/policies/index.js +17 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.js +5 -4
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/create.d.ts +13 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/create.js +42 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/index.js +38 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/client/list.js +40 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/policies/index.js +17 -0
- 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/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +1 -1
- 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/TranscribeConfigReplacementsItem.js +42 -0
- package/dist/cjs/serialization/types/index.d.ts +1 -0
- package/dist/cjs/serialization/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +5 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/index.mjs +1 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/Client.d.mts +45 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/Client.mjs +150 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/client/index.mjs +1 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/policies/index.mjs +1 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +5 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/index.mjs +1 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/Client.d.mts +45 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/Client.mjs +150 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/client/index.mjs +1 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/policies/index.mjs +1 -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/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 +5 -3
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.mjs +2 -0
- package/dist/esm/api/types/TranscribeSupportedLanguage.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/index.d.mts +1 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/index.mjs +1 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/create.d.mts +13 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/create.mjs +6 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/index.d.mts +1 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/policies/index.mjs +1 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/index.d.mts +1 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/index.mjs +1 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/create.d.mts +13 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/create.mjs +6 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/index.d.mts +1 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/policies/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/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.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/index.d.mts +1 -0
- package/dist/esm/serialization/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/Client.js
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.PoliciesClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
50
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
51
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
52
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index.js"));
|
|
53
|
+
const Corti = __importStar(require("../../../../../../../index.js"));
|
|
54
|
+
class PoliciesClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {string} templateID
|
|
60
|
+
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Corti.NotFoundError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.documents.templates.policies.list("templateID")
|
|
66
|
+
*/
|
|
67
|
+
list(templateID, requestOptions) {
|
|
68
|
+
return core.HttpResponsePromise.fromPromise(this.__list(templateID, requestOptions));
|
|
69
|
+
}
|
|
70
|
+
__list(templateID, requestOptions) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
73
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
74
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
75
|
+
const _response = yield core.fetcher({
|
|
76
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `documents/templates/${core.url.encodePathParam(templateID)}/policies/`),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: _headers,
|
|
79
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
80
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
81
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
82
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
84
|
+
logging: this._options.logging,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return {
|
|
88
|
+
data: serializers.documents.templates.policies.list.Response.parseOrThrow(_response.body, {
|
|
89
|
+
unrecognizedObjectKeys: "passthrough",
|
|
90
|
+
allowUnrecognizedUnionMembers: true,
|
|
91
|
+
allowUnrecognizedEnumValues: true,
|
|
92
|
+
skipValidation: true,
|
|
93
|
+
breadcrumbsPrefix: ["response"],
|
|
94
|
+
}),
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (_response.error.reason === "status-code") {
|
|
99
|
+
switch (_response.error.statusCode) {
|
|
100
|
+
case 404:
|
|
101
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
102
|
+
default:
|
|
103
|
+
throw new errors.CortiError({
|
|
104
|
+
statusCode: _response.error.statusCode,
|
|
105
|
+
body: _response.error.body,
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/documents/templates/{templateID}/policies/");
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @param {string} templateID
|
|
115
|
+
* @param {Corti.GuidedTemplatesCreatePolicyRequest[]} request
|
|
116
|
+
* @param {PoliciesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link Corti.BadRequestError}
|
|
119
|
+
* @throws {@link Corti.NotFoundError}
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* await client.documents.templates.policies.create("templateID", [{
|
|
123
|
+
* kind: "project"
|
|
124
|
+
* }])
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* await client.documents.templates.policies.create("templateID", [{
|
|
128
|
+
* kind: "customers",
|
|
129
|
+
* customerIds: ["customer-tenant-a", "customer-tenant-b"]
|
|
130
|
+
* }])
|
|
131
|
+
*/
|
|
132
|
+
create(templateID, request, requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__create(templateID, request, requestOptions));
|
|
134
|
+
}
|
|
135
|
+
__create(templateID, request, requestOptions) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
138
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
139
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
140
|
+
const _response = yield core.fetcher({
|
|
141
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `documents/templates/${core.url.encodePathParam(templateID)}/policies/`),
|
|
142
|
+
method: "POST",
|
|
143
|
+
headers: _headers,
|
|
144
|
+
contentType: "application/json",
|
|
145
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
146
|
+
requestType: "json",
|
|
147
|
+
body: serializers.documents.templates.policies.create.Request.jsonOrThrow(request, {
|
|
148
|
+
unrecognizedObjectKeys: "strip",
|
|
149
|
+
omitUndefined: true,
|
|
150
|
+
}),
|
|
151
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
152
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
153
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
154
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
155
|
+
logging: this._options.logging,
|
|
156
|
+
});
|
|
157
|
+
if (_response.ok) {
|
|
158
|
+
return {
|
|
159
|
+
data: serializers.documents.templates.policies.create.Response.parseOrThrow(_response.body, {
|
|
160
|
+
unrecognizedObjectKeys: "passthrough",
|
|
161
|
+
allowUnrecognizedUnionMembers: true,
|
|
162
|
+
allowUnrecognizedEnumValues: true,
|
|
163
|
+
skipValidation: true,
|
|
164
|
+
breadcrumbsPrefix: ["response"],
|
|
165
|
+
}),
|
|
166
|
+
rawResponse: _response.rawResponse,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
if (_response.error.reason === "status-code") {
|
|
170
|
+
switch (_response.error.statusCode) {
|
|
171
|
+
case 400:
|
|
172
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
173
|
+
case 404:
|
|
174
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
175
|
+
default:
|
|
176
|
+
throw new errors.CortiError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.body,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/documents/templates/{templateID}/policies/");
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
exports.PoliciesClient = PoliciesClient;
|
package/dist/cjs/api/resources/documents/resources/templates/resources/policies/client/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -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
|
*/
|
|
@@ -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. */
|
|
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
|
}
|
|
@@ -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,8 @@
|
|
|
1
1
|
export interface TranscribeCommandVariable {
|
|
2
|
-
/**
|
|
2
|
+
/** Define the variable used in command phrases. */
|
|
3
3
|
key: string;
|
|
4
4
|
/** Variable type */
|
|
5
5
|
type: "enum";
|
|
6
|
-
/**
|
|
6
|
+
/** List of values that should be recognized for the defined 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 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[];
|
|
@@ -14,4 +14,6 @@ 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[];
|
|
17
19
|
}
|
|
@@ -240,6 +240,7 @@ 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";
|
|
243
244
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
244
245
|
export * from "./TranscribeConfigStatusMessageType.js";
|
|
245
246
|
export * from "./TranscribeDeltaUsageMessage.js";
|
|
@@ -256,6 +256,7 @@ __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);
|
|
259
260
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
|
260
261
|
__exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
|
|
261
262
|
__exportStar(require("./TranscribeDeltaUsageMessage.js"), exports);
|
|
@@ -15,9 +15,6 @@ 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
|
-
};
|
|
21
18
|
var __importStar = (this && this.__importStar) || (function () {
|
|
22
19
|
var ownKeys = function(o) {
|
|
23
20
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -35,7 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
32
|
return result;
|
|
36
33
|
};
|
|
37
34
|
})();
|
|
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 = void 0;
|
|
39
|
+
exports.versions = exports.policies = void 0;
|
|
40
|
+
exports.policies = __importStar(require("./policies/index.js"));
|
|
40
41
|
__exportStar(require("./versions/client/requests/index.js"), exports);
|
|
41
42
|
exports.versions = __importStar(require("./versions/index.js"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Corti from "../../../../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../../../../index.js";
|
|
4
|
+
import { GuidedSectionPolicy } from "../../../../../../../types/GuidedSectionPolicy.js";
|
|
5
|
+
import { GuidedSectionsCreatePolicyRequest } from "../../../../../../../types/GuidedSectionsCreatePolicyRequest.js";
|
|
6
|
+
export declare const Request: core.serialization.Schema<serializers.documents.sections.policies.create.Request.Raw, Corti.GuidedSectionsCreatePolicyRequest[]>;
|
|
7
|
+
export declare namespace Request {
|
|
8
|
+
type Raw = GuidedSectionsCreatePolicyRequest.Raw[];
|
|
9
|
+
}
|
|
10
|
+
export declare const Response: core.serialization.Schema<serializers.documents.sections.policies.create.Response.Raw, Corti.GuidedSectionPolicy[]>;
|
|
11
|
+
export declare namespace Response {
|
|
12
|
+
type Raw = GuidedSectionPolicy.Raw[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Response = exports.Request = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
39
|
+
const GuidedSectionPolicy_js_1 = require("../../../../../../../types/GuidedSectionPolicy.js");
|
|
40
|
+
const GuidedSectionsCreatePolicyRequest_js_1 = require("../../../../../../../types/GuidedSectionsCreatePolicyRequest.js");
|
|
41
|
+
exports.Request = core.serialization.list(GuidedSectionsCreatePolicyRequest_js_1.GuidedSectionsCreatePolicyRequest);
|
|
42
|
+
exports.Response = core.serialization.list(GuidedSectionPolicy_js_1.GuidedSectionPolicy);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.list = exports.create = void 0;
|
|
37
|
+
exports.create = __importStar(require("./create.js"));
|
|
38
|
+
exports.list = __importStar(require("./list.js"));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../../../../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../../../../index.js";
|
|
4
|
+
import { GuidedSectionPolicy } from "../../../../../../../types/GuidedSectionPolicy.js";
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.documents.sections.policies.list.Response.Raw, Corti.GuidedSectionPolicy[]>;
|
|
6
|
+
export declare namespace Response {
|
|
7
|
+
type Raw = GuidedSectionPolicy.Raw[];
|
|
8
|
+
}
|