@corti/sdk 2.0.0-templates.1 → 2.0.0-templates.2
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.d.ts +2 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.d.ts +36 -15
- package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.js +155 -64
- package/dist/cjs/api/resources/alphaTemplateVersions/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/alphaTemplateVersions/client/index.js +15 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +14 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.js +3 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/index.d.ts +1 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/index.js +1 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.ts +5 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.js +3 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/index.js +17 -0
- package/dist/cjs/api/resources/alphaTemplates/client/Client.d.ts +17 -9
- package/dist/cjs/api/resources/alphaTemplates/client/Client.js +88 -39
- package/dist/cjs/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +10 -0
- package/dist/cjs/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.js +3 -0
- package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +2 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/index.js +41 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/list.js +40 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.js +42 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/index.js +18 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.ts +12 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.js +44 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/index.js +17 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.js +44 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/alphaTemplateVersions/client/Client.d.mts +36 -15
- package/dist/esm/api/resources/alphaTemplateVersions/client/Client.mjs +155 -64
- package/dist/esm/api/resources/alphaTemplateVersions/client/index.d.mts +1 -1
- package/dist/esm/api/resources/alphaTemplateVersions/client/index.mjs +1 -1
- package/dist/esm/api/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +14 -0
- package/dist/esm/api/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs +2 -0
- package/dist/esm/api/resources/alphaTemplateVersions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/index.d.mts +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/index.mjs +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.mts +5 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.mjs +2 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/index.d.mts +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/index.mjs +1 -0
- package/dist/esm/api/resources/alphaTemplates/client/Client.d.mts +17 -9
- package/dist/esm/api/resources/alphaTemplates/client/Client.mjs +88 -39
- package/dist/esm/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +10 -0
- package/dist/esm/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs +2 -0
- package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs +6 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/index.d.mts +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/index.mjs +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.mts +12 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.mjs +8 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs +8 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type BaseClientOptions = {
|
|
|
6
6
|
/** Specify a custom URL to connect the client to. */
|
|
7
7
|
baseUrl?: core.Supplier<string>;
|
|
8
8
|
/** Override the Tenant-Name header */
|
|
9
|
-
tenantName
|
|
9
|
+
tenantName: core.Supplier<string>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
12
|
/** The default maximum time to wait for a response in seconds. */
|
|
@@ -26,7 +26,7 @@ export interface BaseRequestOptions {
|
|
|
26
26
|
/** A hook to abort the request. */
|
|
27
27
|
abortSignal?: AbortSignal;
|
|
28
28
|
/** Override the Tenant-Name header */
|
|
29
|
-
tenantName?: string
|
|
29
|
+
tenantName?: string;
|
|
30
30
|
/** Additional query string parameters to include in the request. */
|
|
31
31
|
queryParams?: Record<string, unknown>;
|
|
32
32
|
/** Additional headers to include in the request. */
|
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": "2.0.0-templates.
|
|
47
|
-
"User-Agent": "@corti/sdk/2.0.0-templates.
|
|
46
|
+
"X-Fern-SDK-Version": "2.0.0-templates.2",
|
|
47
|
+
"User-Agent": "@corti/sdk/2.0.0-templates.2",
|
|
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,
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ export declare class CortiClient {
|
|
|
31
31
|
protected _templates: TemplatesClient | undefined;
|
|
32
32
|
protected _codes: CodesClient | undefined;
|
|
33
33
|
protected _alphaTemplates: AlphaTemplatesClient | undefined;
|
|
34
|
+
protected _alphaTemplateVersions: AlphaTemplateVersionsClient | undefined;
|
|
34
35
|
protected _alphaSections: AlphaSectionsClient | undefined;
|
|
35
36
|
protected _alphaSectionVersions: AlphaSectionVersionsClient | undefined;
|
|
36
|
-
protected _alphaTemplateVersions: AlphaTemplateVersionsClient | undefined;
|
|
37
37
|
protected _agents: AgentsClient | undefined;
|
|
38
38
|
protected _stream: StreamClient | undefined;
|
|
39
39
|
protected _transcribe: TranscribeClient | undefined;
|
|
@@ -47,9 +47,9 @@ export declare class CortiClient {
|
|
|
47
47
|
get templates(): TemplatesClient;
|
|
48
48
|
get codes(): CodesClient;
|
|
49
49
|
get alphaTemplates(): AlphaTemplatesClient;
|
|
50
|
+
get alphaTemplateVersions(): AlphaTemplateVersionsClient;
|
|
50
51
|
get alphaSections(): AlphaSectionsClient;
|
|
51
52
|
get alphaSectionVersions(): AlphaSectionVersionsClient;
|
|
52
|
-
get alphaTemplateVersions(): AlphaTemplateVersionsClient;
|
|
53
53
|
get agents(): AgentsClient;
|
|
54
54
|
get stream(): StreamClient;
|
|
55
55
|
get transcribe(): TranscribeClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -58,6 +58,10 @@ class CortiClient {
|
|
|
58
58
|
var _a;
|
|
59
59
|
return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new Client_js_4.AlphaTemplatesClient(this._options)));
|
|
60
60
|
}
|
|
61
|
+
get alphaTemplateVersions() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_5.AlphaTemplateVersionsClient(this._options)));
|
|
64
|
+
}
|
|
61
65
|
get alphaSections() {
|
|
62
66
|
var _a;
|
|
63
67
|
return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new Client_js_2.AlphaSectionsClient(this._options)));
|
|
@@ -66,10 +70,6 @@ class CortiClient {
|
|
|
66
70
|
var _a;
|
|
67
71
|
return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new Client_js_3.AlphaSectionVersionsClient(this._options)));
|
|
68
72
|
}
|
|
69
|
-
get alphaTemplateVersions() {
|
|
70
|
-
var _a;
|
|
71
|
-
return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_5.AlphaTemplateVersionsClient(this._options)));
|
|
72
|
-
}
|
|
73
73
|
get agents() {
|
|
74
74
|
var _a;
|
|
75
75
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Corti from "../../../index.js";
|
|
4
5
|
export declare namespace AlphaTemplateVersionsClient {
|
|
5
6
|
type Options = BaseClientOptions;
|
|
6
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -10,51 +11,71 @@ export declare class AlphaTemplateVersionsClient {
|
|
|
10
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaTemplateVersionsClient.Options>;
|
|
11
12
|
constructor(options: AlphaTemplateVersionsClient.Options);
|
|
12
13
|
/**
|
|
13
|
-
* @param {string}
|
|
14
|
+
* @param {string} templateID
|
|
14
15
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
16
|
*
|
|
17
|
+
* @throws {@link Corti.NotFoundError}
|
|
18
|
+
*
|
|
16
19
|
* @example
|
|
17
|
-
* await client.alphaTemplateVersions.list("
|
|
20
|
+
* await client.alphaTemplateVersions.list("templateID")
|
|
18
21
|
*/
|
|
19
|
-
list(
|
|
22
|
+
list(templateID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion[]>;
|
|
20
23
|
private __list;
|
|
21
24
|
/**
|
|
22
|
-
* @param {string}
|
|
25
|
+
* @param {string} templateID
|
|
26
|
+
* @param {Corti.CreateTemplateVersionRequest} request
|
|
23
27
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
28
|
*
|
|
29
|
+
* @throws {@link Corti.BadRequestError}
|
|
30
|
+
* @throws {@link Corti.NotFoundError}
|
|
31
|
+
*
|
|
25
32
|
* @example
|
|
26
|
-
* await client.alphaTemplateVersions.create("
|
|
33
|
+
* await client.alphaTemplateVersions.create("templateID", {
|
|
34
|
+
* generation: {
|
|
35
|
+
* instructions: {
|
|
36
|
+
* prompt: "prompt"
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* })
|
|
27
40
|
*/
|
|
28
|
-
create(
|
|
41
|
+
create(templateID: string, request: Corti.CreateTemplateVersionRequest, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion>;
|
|
29
42
|
private __create;
|
|
30
43
|
/**
|
|
31
|
-
* @param {string}
|
|
44
|
+
* @param {string} templateID
|
|
32
45
|
* @param {string} versionID
|
|
33
46
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
47
|
*
|
|
48
|
+
* @throws {@link Corti.NotFoundError}
|
|
49
|
+
*
|
|
35
50
|
* @example
|
|
36
|
-
* await client.alphaTemplateVersions.get("
|
|
51
|
+
* await client.alphaTemplateVersions.get("templateID", "versionID")
|
|
37
52
|
*/
|
|
38
|
-
get(
|
|
53
|
+
get(templateID: string, versionID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion>;
|
|
39
54
|
private __get;
|
|
40
55
|
/**
|
|
41
|
-
* @param {string}
|
|
56
|
+
* @param {string} templateID
|
|
42
57
|
* @param {string} versionID
|
|
43
58
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
59
|
*
|
|
60
|
+
* @throws {@link Corti.NotFoundError}
|
|
61
|
+
*
|
|
45
62
|
* @example
|
|
46
|
-
* await client.alphaTemplateVersions.delete("
|
|
63
|
+
* await client.alphaTemplateVersions.delete("templateID", "versionID")
|
|
47
64
|
*/
|
|
48
|
-
delete(
|
|
65
|
+
delete(templateID: string, versionID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
66
|
private __delete;
|
|
50
67
|
/**
|
|
51
|
-
*
|
|
68
|
+
* Sets this version as the published version of the template.
|
|
69
|
+
*
|
|
70
|
+
* @param {string} templateID
|
|
52
71
|
* @param {string} versionID
|
|
53
72
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
73
|
*
|
|
74
|
+
* @throws {@link Corti.NotFoundError}
|
|
75
|
+
*
|
|
55
76
|
* @example
|
|
56
|
-
* await client.alphaTemplateVersions.publish("
|
|
77
|
+
* await client.alphaTemplateVersions.publish("templateID", "versionID")
|
|
57
78
|
*/
|
|
58
|
-
publish(
|
|
79
|
+
publish(templateID: string, versionID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
|
|
59
80
|
private __publish;
|
|
60
81
|
}
|
|
@@ -49,27 +49,31 @@ const headers_js_1 = require("../../../../core/headers.js");
|
|
|
49
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
50
50
|
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
53
|
+
const Corti = __importStar(require("../../../index.js"));
|
|
52
54
|
class AlphaTemplateVersionsClient {
|
|
53
55
|
constructor(options) {
|
|
54
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
|
-
* @param {string}
|
|
59
|
+
* @param {string} templateID
|
|
58
60
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
61
|
*
|
|
62
|
+
* @throws {@link Corti.NotFoundError}
|
|
63
|
+
*
|
|
60
64
|
* @example
|
|
61
|
-
* await client.alphaTemplateVersions.list("
|
|
65
|
+
* await client.alphaTemplateVersions.list("templateID")
|
|
62
66
|
*/
|
|
63
|
-
list(
|
|
64
|
-
return core.HttpResponsePromise.fromPromise(this.__list(
|
|
67
|
+
list(templateID, requestOptions) {
|
|
68
|
+
return core.HttpResponsePromise.fromPromise(this.__list(templateID, requestOptions));
|
|
65
69
|
}
|
|
66
|
-
__list(
|
|
70
|
+
__list(templateID, requestOptions) {
|
|
67
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
72
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
69
73
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
70
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);
|
|
71
75
|
const _response = yield core.fetcher({
|
|
72
|
-
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, `alpha/templates/${core.url.encodePathParam(
|
|
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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions`),
|
|
73
77
|
method: "GET",
|
|
74
78
|
headers: _headers,
|
|
75
79
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -80,38 +84,68 @@ class AlphaTemplateVersionsClient {
|
|
|
80
84
|
logging: this._options.logging,
|
|
81
85
|
});
|
|
82
86
|
if (_response.ok) {
|
|
83
|
-
return {
|
|
87
|
+
return {
|
|
88
|
+
data: serializers.alphaTemplateVersions.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
|
+
};
|
|
84
97
|
}
|
|
85
98
|
if (_response.error.reason === "status-code") {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
}
|
|
91
109
|
}
|
|
92
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/{
|
|
110
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/{templateID}/versions");
|
|
93
111
|
});
|
|
94
112
|
}
|
|
95
113
|
/**
|
|
96
|
-
* @param {string}
|
|
114
|
+
* @param {string} templateID
|
|
115
|
+
* @param {Corti.CreateTemplateVersionRequest} request
|
|
97
116
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
117
|
*
|
|
118
|
+
* @throws {@link Corti.BadRequestError}
|
|
119
|
+
* @throws {@link Corti.NotFoundError}
|
|
120
|
+
*
|
|
99
121
|
* @example
|
|
100
|
-
* await client.alphaTemplateVersions.create("
|
|
122
|
+
* await client.alphaTemplateVersions.create("templateID", {
|
|
123
|
+
* generation: {
|
|
124
|
+
* instructions: {
|
|
125
|
+
* prompt: "prompt"
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* })
|
|
101
129
|
*/
|
|
102
|
-
create(
|
|
103
|
-
return core.HttpResponsePromise.fromPromise(this.__create(
|
|
130
|
+
create(templateID, request, requestOptions) {
|
|
131
|
+
return core.HttpResponsePromise.fromPromise(this.__create(templateID, request, requestOptions));
|
|
104
132
|
}
|
|
105
|
-
__create(
|
|
133
|
+
__create(templateID, request, requestOptions) {
|
|
106
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
135
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
108
136
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
109
137
|
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);
|
|
110
138
|
const _response = yield core.fetcher({
|
|
111
|
-
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, `alpha/templates/${core.url.encodePathParam(
|
|
139
|
+
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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions`),
|
|
112
140
|
method: "POST",
|
|
113
141
|
headers: _headers,
|
|
142
|
+
contentType: "application/json",
|
|
114
143
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
144
|
+
requestType: "json",
|
|
145
|
+
body: serializers.CreateTemplateVersionRequest.jsonOrThrow(request, {
|
|
146
|
+
unrecognizedObjectKeys: "strip",
|
|
147
|
+
omitUndefined: true,
|
|
148
|
+
}),
|
|
115
149
|
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,
|
|
116
150
|
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,
|
|
117
151
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -119,36 +153,54 @@ class AlphaTemplateVersionsClient {
|
|
|
119
153
|
logging: this._options.logging,
|
|
120
154
|
});
|
|
121
155
|
if (_response.ok) {
|
|
122
|
-
return {
|
|
156
|
+
return {
|
|
157
|
+
data: serializers.TemplateVersion.parseOrThrow(_response.body, {
|
|
158
|
+
unrecognizedObjectKeys: "passthrough",
|
|
159
|
+
allowUnrecognizedUnionMembers: true,
|
|
160
|
+
allowUnrecognizedEnumValues: true,
|
|
161
|
+
skipValidation: true,
|
|
162
|
+
breadcrumbsPrefix: ["response"],
|
|
163
|
+
}),
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
165
|
+
};
|
|
123
166
|
}
|
|
124
167
|
if (_response.error.reason === "status-code") {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
168
|
+
switch (_response.error.statusCode) {
|
|
169
|
+
case 400:
|
|
170
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
171
|
+
case 404:
|
|
172
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
173
|
+
default:
|
|
174
|
+
throw new errors.CortiError({
|
|
175
|
+
statusCode: _response.error.statusCode,
|
|
176
|
+
body: _response.error.body,
|
|
177
|
+
rawResponse: _response.rawResponse,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
130
180
|
}
|
|
131
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/{
|
|
181
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/{templateID}/versions");
|
|
132
182
|
});
|
|
133
183
|
}
|
|
134
184
|
/**
|
|
135
|
-
* @param {string}
|
|
185
|
+
* @param {string} templateID
|
|
136
186
|
* @param {string} versionID
|
|
137
187
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
188
|
*
|
|
189
|
+
* @throws {@link Corti.NotFoundError}
|
|
190
|
+
*
|
|
139
191
|
* @example
|
|
140
|
-
* await client.alphaTemplateVersions.get("
|
|
192
|
+
* await client.alphaTemplateVersions.get("templateID", "versionID")
|
|
141
193
|
*/
|
|
142
|
-
get(
|
|
143
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
194
|
+
get(templateID, versionID, requestOptions) {
|
|
195
|
+
return core.HttpResponsePromise.fromPromise(this.__get(templateID, versionID, requestOptions));
|
|
144
196
|
}
|
|
145
|
-
__get(
|
|
197
|
+
__get(templateID, versionID, requestOptions) {
|
|
146
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
199
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
148
200
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
149
201
|
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);
|
|
150
202
|
const _response = yield core.fetcher({
|
|
151
|
-
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, `alpha/templates/${core.url.encodePathParam(
|
|
203
|
+
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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
|
|
152
204
|
method: "GET",
|
|
153
205
|
headers: _headers,
|
|
154
206
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -159,36 +211,52 @@ class AlphaTemplateVersionsClient {
|
|
|
159
211
|
logging: this._options.logging,
|
|
160
212
|
});
|
|
161
213
|
if (_response.ok) {
|
|
162
|
-
return {
|
|
214
|
+
return {
|
|
215
|
+
data: serializers.TemplateVersion.parseOrThrow(_response.body, {
|
|
216
|
+
unrecognizedObjectKeys: "passthrough",
|
|
217
|
+
allowUnrecognizedUnionMembers: true,
|
|
218
|
+
allowUnrecognizedEnumValues: true,
|
|
219
|
+
skipValidation: true,
|
|
220
|
+
breadcrumbsPrefix: ["response"],
|
|
221
|
+
}),
|
|
222
|
+
rawResponse: _response.rawResponse,
|
|
223
|
+
};
|
|
163
224
|
}
|
|
164
225
|
if (_response.error.reason === "status-code") {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
226
|
+
switch (_response.error.statusCode) {
|
|
227
|
+
case 404:
|
|
228
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
229
|
+
default:
|
|
230
|
+
throw new errors.CortiError({
|
|
231
|
+
statusCode: _response.error.statusCode,
|
|
232
|
+
body: _response.error.body,
|
|
233
|
+
rawResponse: _response.rawResponse,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
170
236
|
}
|
|
171
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/{
|
|
237
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/{templateID}/versions/{versionID}");
|
|
172
238
|
});
|
|
173
239
|
}
|
|
174
240
|
/**
|
|
175
|
-
* @param {string}
|
|
241
|
+
* @param {string} templateID
|
|
176
242
|
* @param {string} versionID
|
|
177
243
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
244
|
*
|
|
245
|
+
* @throws {@link Corti.NotFoundError}
|
|
246
|
+
*
|
|
179
247
|
* @example
|
|
180
|
-
* await client.alphaTemplateVersions.delete("
|
|
248
|
+
* await client.alphaTemplateVersions.delete("templateID", "versionID")
|
|
181
249
|
*/
|
|
182
|
-
delete(
|
|
183
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
250
|
+
delete(templateID, versionID, requestOptions) {
|
|
251
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(templateID, versionID, requestOptions));
|
|
184
252
|
}
|
|
185
|
-
__delete(
|
|
253
|
+
__delete(templateID, versionID, requestOptions) {
|
|
186
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
255
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
188
256
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
189
257
|
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);
|
|
190
258
|
const _response = yield core.fetcher({
|
|
191
|
-
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, `alpha/templates/${core.url.encodePathParam(
|
|
259
|
+
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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
|
|
192
260
|
method: "DELETE",
|
|
193
261
|
headers: _headers,
|
|
194
262
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -202,33 +270,42 @@ class AlphaTemplateVersionsClient {
|
|
|
202
270
|
return { data: undefined, rawResponse: _response.rawResponse };
|
|
203
271
|
}
|
|
204
272
|
if (_response.error.reason === "status-code") {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
273
|
+
switch (_response.error.statusCode) {
|
|
274
|
+
case 404:
|
|
275
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
276
|
+
default:
|
|
277
|
+
throw new errors.CortiError({
|
|
278
|
+
statusCode: _response.error.statusCode,
|
|
279
|
+
body: _response.error.body,
|
|
280
|
+
rawResponse: _response.rawResponse,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
210
283
|
}
|
|
211
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/alpha/templates/{
|
|
284
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/alpha/templates/{templateID}/versions/{versionID}");
|
|
212
285
|
});
|
|
213
286
|
}
|
|
214
287
|
/**
|
|
215
|
-
*
|
|
288
|
+
* Sets this version as the published version of the template.
|
|
289
|
+
*
|
|
290
|
+
* @param {string} templateID
|
|
216
291
|
* @param {string} versionID
|
|
217
292
|
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
293
|
*
|
|
294
|
+
* @throws {@link Corti.NotFoundError}
|
|
295
|
+
*
|
|
219
296
|
* @example
|
|
220
|
-
* await client.alphaTemplateVersions.publish("
|
|
297
|
+
* await client.alphaTemplateVersions.publish("templateID", "versionID")
|
|
221
298
|
*/
|
|
222
|
-
publish(
|
|
223
|
-
return core.HttpResponsePromise.fromPromise(this.__publish(
|
|
299
|
+
publish(templateID, versionID, requestOptions) {
|
|
300
|
+
return core.HttpResponsePromise.fromPromise(this.__publish(templateID, versionID, requestOptions));
|
|
224
301
|
}
|
|
225
|
-
__publish(
|
|
302
|
+
__publish(templateID, versionID, requestOptions) {
|
|
226
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
304
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
228
305
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
229
306
|
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);
|
|
230
307
|
const _response = yield core.fetcher({
|
|
231
|
-
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, `alpha/templates/${core.url.encodePathParam(
|
|
308
|
+
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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}/publish`),
|
|
232
309
|
method: "POST",
|
|
233
310
|
headers: _headers,
|
|
234
311
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -239,16 +316,30 @@ class AlphaTemplateVersionsClient {
|
|
|
239
316
|
logging: this._options.logging,
|
|
240
317
|
});
|
|
241
318
|
if (_response.ok) {
|
|
242
|
-
return {
|
|
319
|
+
return {
|
|
320
|
+
data: serializers.StatusResponse.parseOrThrow(_response.body, {
|
|
321
|
+
unrecognizedObjectKeys: "passthrough",
|
|
322
|
+
allowUnrecognizedUnionMembers: true,
|
|
323
|
+
allowUnrecognizedEnumValues: true,
|
|
324
|
+
skipValidation: true,
|
|
325
|
+
breadcrumbsPrefix: ["response"],
|
|
326
|
+
}),
|
|
327
|
+
rawResponse: _response.rawResponse,
|
|
328
|
+
};
|
|
243
329
|
}
|
|
244
330
|
if (_response.error.reason === "status-code") {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
331
|
+
switch (_response.error.statusCode) {
|
|
332
|
+
case 404:
|
|
333
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
334
|
+
default:
|
|
335
|
+
throw new errors.CortiError({
|
|
336
|
+
statusCode: _response.error.statusCode,
|
|
337
|
+
body: _response.error.body,
|
|
338
|
+
rawResponse: _response.rawResponse,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
250
341
|
}
|
|
251
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/{
|
|
342
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/{templateID}/versions/{versionID}/publish");
|
|
252
343
|
});
|
|
253
344
|
}
|
|
254
345
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Corti from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* generation: {
|
|
6
|
+
* instructions: {
|
|
7
|
+
* prompt: "prompt"
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTemplateVersionRequest {
|
|
13
|
+
generation: Corti.CreateTemplateVersionRequestGeneration;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CreateTemplateVersionRequest } from "./CreateTemplateVersionRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateTemplateVersionRequestGeneration.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("./CreateTemplateVersionRequestGeneration.js"), exports);
|