@corti/sdk 2.0.0-templates → 2.0.0-templates.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +12 -12
- package/dist/cjs/Client.js +22 -22
- package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.js +14 -14
- package/dist/cjs/api/resources/{newSections → alphaSections}/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/{newSections → alphaSections}/client/Client.js +15 -15
- package/dist/cjs/api/resources/{newSections/client/requests/ListNewSectionsRequest.d.ts → alphaSections/client/requests/ListAlphaSectionsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.js +13 -13
- package/dist/cjs/api/resources/alphaTemplates/client/Client.d.ts +68 -0
- package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/Client.js +15 -15
- package/dist/cjs/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.d.ts → alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.d.ts +7 -7
- package/dist/cjs/api/resources/index.js +8 -8
- package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.d.ts +1 -1
- package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/list.d.ts +1 -1
- package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/list.d.ts +1 -1
- package/dist/cjs/serialization/resources/index.d.ts +6 -6
- package/dist/cjs/serialization/resources/index.js +7 -7
- 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/Client.d.mts +12 -12
- package/dist/esm/Client.mjs +12 -12
- package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.mjs +12 -12
- package/dist/esm/api/resources/{newSections → alphaSections}/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/{newSections → alphaSections}/client/Client.mjs +13 -13
- package/dist/esm/api/resources/{newSections/client/requests/ListNewSectionsRequest.d.mts → alphaSections/client/requests/ListAlphaSectionsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/alphaTemplateVersions/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.mjs +11 -11
- package/dist/esm/api/resources/alphaTemplates/client/Client.d.mts +68 -0
- package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/Client.mjs +13 -13
- package/dist/esm/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.d.mts → alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/index.d.mts +7 -7
- package/dist/esm/api/resources/index.mjs +7 -7
- package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.d.mts +1 -1
- package/dist/esm/serialization/resources/{newSections → alphaSections}/client/list.d.mts +1 -1
- package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/list.d.mts +1 -1
- package/dist/esm/serialization/resources/index.d.mts +6 -6
- package/dist/esm/serialization/resources/index.mjs +6 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -4
- package/dist/cjs/api/resources/newTemplateVersions/client/Client.d.ts +0 -60
- package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +0 -68
- package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +0 -2
- package/dist/esm/api/resources/newTemplateVersions/client/Client.d.mts +0 -60
- package/dist/esm/api/resources/newTemplates/client/Client.d.mts +0 -68
- package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +0 -2
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/index.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.js +0 -0
- /package/dist/cjs/api/resources/{newSections/client/requests/ListNewSectionsRequest.js → alphaSections/client/requests/ListAlphaSectionsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.js → alphaTemplates/client/requests/ListAlphaTemplatesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.js +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/list.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/list.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/index.js +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.mjs +0 -0
- /package/dist/esm/api/resources/{newSections/client/requests/ListNewSectionsRequest.mjs → alphaSections/client/requests/ListAlphaSectionsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.mjs → alphaTemplates/client/requests/ListAlphaTemplatesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/list.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/list.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/index.mjs +0 -0
|
@@ -15,16 +15,16 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
|
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
16
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
17
17
|
import * as Corti from "../../../index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class AlphaTemplatesClient {
|
|
19
19
|
constructor(options) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* @param {Corti.
|
|
24
|
-
* @param {
|
|
23
|
+
* @param {Corti.ListAlphaTemplatesRequest} request
|
|
24
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.
|
|
27
|
+
* await client.alphaTemplates.list()
|
|
28
28
|
*/
|
|
29
29
|
list(request = {}, requestOptions) {
|
|
30
30
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -53,7 +53,7 @@ export class NewTemplatesClient {
|
|
|
53
53
|
});
|
|
54
54
|
if (_response.ok) {
|
|
55
55
|
return {
|
|
56
|
-
data: serializers.
|
|
56
|
+
data: serializers.alphaTemplates.list.Response.parseOrThrow(_response.body, {
|
|
57
57
|
unrecognizedObjectKeys: "passthrough",
|
|
58
58
|
allowUnrecognizedUnionMembers: true,
|
|
59
59
|
allowUnrecognizedEnumValues: true,
|
|
@@ -75,12 +75,12 @@ export class NewTemplatesClient {
|
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* @param {Corti.CreateTemplateRequest} request
|
|
78
|
-
* @param {
|
|
78
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link Corti.BadRequestError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.
|
|
83
|
+
* await client.alphaTemplates.create({
|
|
84
84
|
* name: "name",
|
|
85
85
|
* language: "language",
|
|
86
86
|
* generation: {
|
|
@@ -144,10 +144,10 @@ export class NewTemplatesClient {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* @param {string} templateId
|
|
147
|
-
* @param {
|
|
147
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
|
-
* await client.
|
|
150
|
+
* await client.alphaTemplates.get("templateId")
|
|
151
151
|
*/
|
|
152
152
|
get(templateId, requestOptions) {
|
|
153
153
|
return core.HttpResponsePromise.fromPromise(this.__get(templateId, requestOptions));
|
|
@@ -183,10 +183,10 @@ export class NewTemplatesClient {
|
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* @param {string} templateId
|
|
186
|
-
* @param {
|
|
186
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
187
|
*
|
|
188
188
|
* @example
|
|
189
|
-
* await client.
|
|
189
|
+
* await client.alphaTemplates.delete("templateId")
|
|
190
190
|
*/
|
|
191
191
|
delete(templateId, requestOptions) {
|
|
192
192
|
return core.HttpResponsePromise.fromPromise(this.__delete(templateId, requestOptions));
|
|
@@ -222,10 +222,10 @@ export class NewTemplatesClient {
|
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* @param {string} templateId
|
|
225
|
-
* @param {
|
|
225
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
|
-
* await client.
|
|
228
|
+
* await client.alphaTemplates.update("templateId")
|
|
229
229
|
*/
|
|
230
230
|
update(templateId, requestOptions) {
|
|
231
231
|
return core.HttpResponsePromise.fromPromise(this.__update(templateId, requestOptions));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ListAlphaTemplatesRequest {
|
|
6
6
|
/** Filter templates by language (BCP 47 tag). Repeatable. */
|
|
7
7
|
lang?: string | string[];
|
|
8
8
|
/** Filter templates by label. Repeatable; matches templates that have any of the given labels. */
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
+
export * from "./alphaSections/client/requests/index.mjs";
|
|
5
|
+
export * as alphaSections from "./alphaSections/index.mjs";
|
|
6
|
+
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
7
|
+
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
8
|
+
export * as alphaTemplates from "./alphaTemplates/index.mjs";
|
|
9
|
+
export * from "./alphaTemplates/types/index.mjs";
|
|
10
|
+
export * as alphaTemplateVersions from "./alphaTemplateVersions/index.mjs";
|
|
4
11
|
export * as auth from "./auth/index.mjs";
|
|
5
12
|
export * from "./auth/types/index.mjs";
|
|
6
13
|
export * from "./codes/client/requests/index.mjs";
|
|
@@ -12,13 +19,6 @@ export * as facts from "./facts/index.mjs";
|
|
|
12
19
|
export * from "./interactions/client/requests/index.mjs";
|
|
13
20
|
export * as interactions from "./interactions/index.mjs";
|
|
14
21
|
export * from "./interactions/types/index.mjs";
|
|
15
|
-
export * from "./newSections/client/requests/index.mjs";
|
|
16
|
-
export * as newSections from "./newSections/index.mjs";
|
|
17
|
-
export * as newSectionVersions from "./newSectionVersions/index.mjs";
|
|
18
|
-
export * from "./newTemplates/client/requests/index.mjs";
|
|
19
|
-
export * as newTemplates from "./newTemplates/index.mjs";
|
|
20
|
-
export * from "./newTemplates/types/index.mjs";
|
|
21
|
-
export * as newTemplateVersions from "./newTemplateVersions/index.mjs";
|
|
22
22
|
export * as recordings from "./recordings/index.mjs";
|
|
23
23
|
export * as stream from "./stream/index.mjs";
|
|
24
24
|
export * from "./templates/client/requests/index.mjs";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
+
export * from "./alphaSections/client/requests/index.mjs";
|
|
5
|
+
export * as alphaSections from "./alphaSections/index.mjs";
|
|
6
|
+
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
7
|
+
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
8
|
+
export * as alphaTemplates from "./alphaTemplates/index.mjs";
|
|
9
|
+
export * from "./alphaTemplates/types/index.mjs";
|
|
10
|
+
export * as alphaTemplateVersions from "./alphaTemplateVersions/index.mjs";
|
|
4
11
|
export * as auth from "./auth/index.mjs";
|
|
5
12
|
export * from "./auth/types/index.mjs";
|
|
6
13
|
export * from "./codes/client/requests/index.mjs";
|
|
@@ -12,13 +19,6 @@ export * as facts from "./facts/index.mjs";
|
|
|
12
19
|
export * from "./interactions/client/requests/index.mjs";
|
|
13
20
|
export * as interactions from "./interactions/index.mjs";
|
|
14
21
|
export * from "./interactions/types/index.mjs";
|
|
15
|
-
export * from "./newSections/client/requests/index.mjs";
|
|
16
|
-
export * as newSections from "./newSections/index.mjs";
|
|
17
|
-
export * as newSectionVersions from "./newSectionVersions/index.mjs";
|
|
18
|
-
export * from "./newTemplates/client/requests/index.mjs";
|
|
19
|
-
export * as newTemplates from "./newTemplates/index.mjs";
|
|
20
|
-
export * from "./newTemplates/types/index.mjs";
|
|
21
|
-
export * as newTemplateVersions from "./newTemplateVersions/index.mjs";
|
|
22
22
|
export * as recordings from "./recordings/index.mjs";
|
|
23
23
|
export * as stream from "./stream/index.mjs";
|
|
24
24
|
export * from "./templates/client/requests/index.mjs";
|
|
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { SectionVersion } from "../../../types/SectionVersion.mjs";
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaSectionVersions.list.Response.Raw, Corti.SectionVersion[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
7
|
type Raw = SectionVersion.Raw[];
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { Section } from "../../../types/Section.mjs";
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaSections.list.Response.Raw, Corti.Section[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
7
|
type Raw = Section.Raw[];
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { Template } from "../../../types/Template.mjs";
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaTemplates.list.Response.Raw, Corti.Template[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
7
|
type Raw = Template.Raw[];
|
|
8
8
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
+
export * from "./alphaSections/client/requests/index.mjs";
|
|
5
|
+
export * as alphaSections from "./alphaSections/index.mjs";
|
|
6
|
+
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
7
|
+
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
8
|
+
export * as alphaTemplates from "./alphaTemplates/index.mjs";
|
|
9
|
+
export * from "./alphaTemplates/types/index.mjs";
|
|
4
10
|
export * as auth from "./auth/index.mjs";
|
|
5
11
|
export * from "./auth/types/index.mjs";
|
|
6
12
|
export * from "./codes/client/requests/index.mjs";
|
|
@@ -12,12 +18,6 @@ export * as facts from "./facts/index.mjs";
|
|
|
12
18
|
export * from "./interactions/client/requests/index.mjs";
|
|
13
19
|
export * as interactions from "./interactions/index.mjs";
|
|
14
20
|
export * from "./interactions/types/index.mjs";
|
|
15
|
-
export * from "./newSections/client/requests/index.mjs";
|
|
16
|
-
export * as newSections from "./newSections/index.mjs";
|
|
17
|
-
export * as newSectionVersions from "./newSectionVersions/index.mjs";
|
|
18
|
-
export * from "./newTemplates/client/requests/index.mjs";
|
|
19
|
-
export * as newTemplates from "./newTemplates/index.mjs";
|
|
20
|
-
export * from "./newTemplates/types/index.mjs";
|
|
21
21
|
export * from "./stream/client/socket/index.mjs";
|
|
22
22
|
export * as stream from "./stream/index.mjs";
|
|
23
23
|
export * from "./transcribe/client/socket/index.mjs";
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
+
export * from "./alphaSections/client/requests/index.mjs";
|
|
5
|
+
export * as alphaSections from "./alphaSections/index.mjs";
|
|
6
|
+
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
7
|
+
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
8
|
+
export * as alphaTemplates from "./alphaTemplates/index.mjs";
|
|
9
|
+
export * from "./alphaTemplates/types/index.mjs";
|
|
4
10
|
export * as auth from "./auth/index.mjs";
|
|
5
11
|
export * from "./auth/types/index.mjs";
|
|
6
12
|
export * from "./codes/client/requests/index.mjs";
|
|
@@ -12,12 +18,6 @@ export * as facts from "./facts/index.mjs";
|
|
|
12
18
|
export * from "./interactions/client/requests/index.mjs";
|
|
13
19
|
export * as interactions from "./interactions/index.mjs";
|
|
14
20
|
export * from "./interactions/types/index.mjs";
|
|
15
|
-
export * from "./newSections/client/requests/index.mjs";
|
|
16
|
-
export * as newSections from "./newSections/index.mjs";
|
|
17
|
-
export * as newSectionVersions from "./newSectionVersions/index.mjs";
|
|
18
|
-
export * from "./newTemplates/client/requests/index.mjs";
|
|
19
|
-
export * as newTemplates from "./newTemplates/index.mjs";
|
|
20
|
-
export * from "./newTemplates/types/index.mjs";
|
|
21
21
|
export * from "./stream/client/socket/index.mjs";
|
|
22
22
|
export * as stream from "./stream/index.mjs";
|
|
23
23
|
export * from "./transcribe/client/socket/index.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.0-templates";
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0-templates.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.0-templates";
|
|
1
|
+
export const SDK_VERSION = "2.0.0-templates.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corti/sdk",
|
|
3
|
-
"version": "2.0.0-templates",
|
|
3
|
+
"version": "2.0.0-templates.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,9 +66,7 @@
|
|
|
66
66
|
"test": "vitest",
|
|
67
67
|
"test:unit": "vitest --project unit",
|
|
68
68
|
"test:wire": "vitest --project wire",
|
|
69
|
-
"test:integration": "
|
|
70
|
-
"test:integration:main": "vitest run --config vitest.integration.config.mts --project integration",
|
|
71
|
-
"test:integration:empty-state": "vitest run --config vitest.integration.config.mts --project integration-empty-state"
|
|
69
|
+
"test:integration": "vitest --config vitest.integration.config.mts"
|
|
72
70
|
},
|
|
73
71
|
"dependencies": {
|
|
74
72
|
"ws": "^8.16.0"
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../core/index.js";
|
|
4
|
-
export declare namespace NewTemplateVersionsClient {
|
|
5
|
-
type Options = BaseClientOptions;
|
|
6
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare class NewTemplateVersionsClient {
|
|
10
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplateVersionsClient.Options>;
|
|
11
|
-
constructor(options: NewTemplateVersionsClient.Options);
|
|
12
|
-
/**
|
|
13
|
-
* @param {string} templateId
|
|
14
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* await client.newTemplateVersions.list("templateId")
|
|
18
|
-
*/
|
|
19
|
-
list(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
20
|
-
private __list;
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} templateId
|
|
23
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* await client.newTemplateVersions.create("templateId")
|
|
27
|
-
*/
|
|
28
|
-
create(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
29
|
-
private __create;
|
|
30
|
-
/**
|
|
31
|
-
* @param {string} templateId
|
|
32
|
-
* @param {string} versionID
|
|
33
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* await client.newTemplateVersions.get("templateId", "versionID")
|
|
37
|
-
*/
|
|
38
|
-
get(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
39
|
-
private __get;
|
|
40
|
-
/**
|
|
41
|
-
* @param {string} templateId
|
|
42
|
-
* @param {string} versionID
|
|
43
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.newTemplateVersions.delete("templateId", "versionID")
|
|
47
|
-
*/
|
|
48
|
-
delete(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
-
private __delete;
|
|
50
|
-
/**
|
|
51
|
-
* @param {string} templateId
|
|
52
|
-
* @param {string} versionID
|
|
53
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* await client.newTemplateVersions.publish("templateId", "versionID")
|
|
57
|
-
*/
|
|
58
|
-
publish(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
59
|
-
private __publish;
|
|
60
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as Corti from "../../../index.js";
|
|
5
|
-
export declare namespace NewTemplatesClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class NewTemplatesClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplatesClient.Options>;
|
|
12
|
-
constructor(options: NewTemplatesClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* @param {Corti.ListNewTemplatesRequest} request
|
|
15
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* await client.newTemplates.list()
|
|
19
|
-
*/
|
|
20
|
-
list(request?: Corti.ListNewTemplatesRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template[]>;
|
|
21
|
-
private __list;
|
|
22
|
-
/**
|
|
23
|
-
* @param {Corti.CreateTemplateRequest} request
|
|
24
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
-
*
|
|
26
|
-
* @throws {@link Corti.BadRequestError}
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* await client.newTemplates.create({
|
|
30
|
-
* name: "name",
|
|
31
|
-
* language: "language",
|
|
32
|
-
* generation: {
|
|
33
|
-
* instructions: {
|
|
34
|
-
* prompt: "prompt"
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* })
|
|
38
|
-
*/
|
|
39
|
-
create(request: Corti.CreateTemplateRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
|
|
40
|
-
private __create;
|
|
41
|
-
/**
|
|
42
|
-
* @param {string} templateId
|
|
43
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.newTemplates.get("templateId")
|
|
47
|
-
*/
|
|
48
|
-
get(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
-
private __get;
|
|
50
|
-
/**
|
|
51
|
-
* @param {string} templateId
|
|
52
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* await client.newTemplates.delete("templateId")
|
|
56
|
-
*/
|
|
57
|
-
delete(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
58
|
-
private __delete;
|
|
59
|
-
/**
|
|
60
|
-
* @param {string} templateId
|
|
61
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* await client.newTemplates.update("templateId")
|
|
65
|
-
*/
|
|
66
|
-
update(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
67
|
-
private __update;
|
|
68
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
-
import * as core from "../../../../core/index.mjs";
|
|
4
|
-
export declare namespace NewTemplateVersionsClient {
|
|
5
|
-
type Options = BaseClientOptions;
|
|
6
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare class NewTemplateVersionsClient {
|
|
10
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplateVersionsClient.Options>;
|
|
11
|
-
constructor(options: NewTemplateVersionsClient.Options);
|
|
12
|
-
/**
|
|
13
|
-
* @param {string} templateId
|
|
14
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* await client.newTemplateVersions.list("templateId")
|
|
18
|
-
*/
|
|
19
|
-
list(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
20
|
-
private __list;
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} templateId
|
|
23
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* await client.newTemplateVersions.create("templateId")
|
|
27
|
-
*/
|
|
28
|
-
create(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
29
|
-
private __create;
|
|
30
|
-
/**
|
|
31
|
-
* @param {string} templateId
|
|
32
|
-
* @param {string} versionID
|
|
33
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* await client.newTemplateVersions.get("templateId", "versionID")
|
|
37
|
-
*/
|
|
38
|
-
get(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
39
|
-
private __get;
|
|
40
|
-
/**
|
|
41
|
-
* @param {string} templateId
|
|
42
|
-
* @param {string} versionID
|
|
43
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.newTemplateVersions.delete("templateId", "versionID")
|
|
47
|
-
*/
|
|
48
|
-
delete(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
-
private __delete;
|
|
50
|
-
/**
|
|
51
|
-
* @param {string} templateId
|
|
52
|
-
* @param {string} versionID
|
|
53
|
-
* @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* await client.newTemplateVersions.publish("templateId", "versionID")
|
|
57
|
-
*/
|
|
58
|
-
publish(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
59
|
-
private __publish;
|
|
60
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
-
import * as core from "../../../../core/index.mjs";
|
|
4
|
-
import * as Corti from "../../../index.mjs";
|
|
5
|
-
export declare namespace NewTemplatesClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class NewTemplatesClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplatesClient.Options>;
|
|
12
|
-
constructor(options: NewTemplatesClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* @param {Corti.ListNewTemplatesRequest} request
|
|
15
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* await client.newTemplates.list()
|
|
19
|
-
*/
|
|
20
|
-
list(request?: Corti.ListNewTemplatesRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template[]>;
|
|
21
|
-
private __list;
|
|
22
|
-
/**
|
|
23
|
-
* @param {Corti.CreateTemplateRequest} request
|
|
24
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
-
*
|
|
26
|
-
* @throws {@link Corti.BadRequestError}
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* await client.newTemplates.create({
|
|
30
|
-
* name: "name",
|
|
31
|
-
* language: "language",
|
|
32
|
-
* generation: {
|
|
33
|
-
* instructions: {
|
|
34
|
-
* prompt: "prompt"
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* })
|
|
38
|
-
*/
|
|
39
|
-
create(request: Corti.CreateTemplateRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
|
|
40
|
-
private __create;
|
|
41
|
-
/**
|
|
42
|
-
* @param {string} templateId
|
|
43
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.newTemplates.get("templateId")
|
|
47
|
-
*/
|
|
48
|
-
get(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
-
private __get;
|
|
50
|
-
/**
|
|
51
|
-
* @param {string} templateId
|
|
52
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* await client.newTemplates.delete("templateId")
|
|
56
|
-
*/
|
|
57
|
-
delete(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
58
|
-
private __delete;
|
|
59
|
-
/**
|
|
60
|
-
* @param {string} templateId
|
|
61
|
-
* @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* await client.newTemplates.update("templateId")
|
|
65
|
-
*/
|
|
66
|
-
update(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
67
|
-
private __update;
|
|
68
|
-
}
|
/package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.d.ts
RENAMED
|
File without changes
|
/package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.js
RENAMED
|
File without changes
|
/package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|