@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
package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.mts
RENAMED
|
@@ -2,35 +2,35 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Corti from "../../../index.mjs";
|
|
5
|
-
export declare namespace
|
|
5
|
+
export declare namespace AlphaSectionVersionsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<
|
|
12
|
-
constructor(options:
|
|
10
|
+
export declare class AlphaSectionVersionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaSectionVersionsClient.Options>;
|
|
12
|
+
constructor(options: AlphaSectionVersionsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {string} sectionID
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @throws {@link Corti.NotFoundError}
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* await client.
|
|
20
|
+
* await client.alphaSectionVersions.list("sectionID")
|
|
21
21
|
*/
|
|
22
|
-
list(sectionID: string, requestOptions?:
|
|
22
|
+
list(sectionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion[]>;
|
|
23
23
|
private __list;
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} sectionID
|
|
26
26
|
* @param {Corti.SectionGeneration} request
|
|
27
|
-
* @param {
|
|
27
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Corti.BadRequestError}
|
|
30
30
|
* @throws {@link Corti.NotFoundError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await client.
|
|
33
|
+
* await client.alphaSectionVersions.create("sectionID", {
|
|
34
34
|
* title: "title",
|
|
35
35
|
* instructions: {
|
|
36
36
|
* contentPrompt: "contentPrompt",
|
|
@@ -41,44 +41,44 @@ export declare class NewSectionVersionsClient {
|
|
|
41
41
|
* }
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
|
-
create(sectionID: string, request: Corti.SectionGeneration, requestOptions?:
|
|
44
|
+
create(sectionID: string, request: Corti.SectionGeneration, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
|
|
45
45
|
private __create;
|
|
46
46
|
/**
|
|
47
47
|
* @param {string} sectionID
|
|
48
48
|
* @param {string} versionID
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
50
|
*
|
|
51
51
|
* @throws {@link Corti.NotFoundError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.
|
|
54
|
+
* await client.alphaSectionVersions.get("sectionID", "versionID")
|
|
55
55
|
*/
|
|
56
|
-
get(sectionID: string, versionID: string, requestOptions?:
|
|
56
|
+
get(sectionID: string, versionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
|
|
57
57
|
private __get;
|
|
58
58
|
/**
|
|
59
59
|
* @param {string} sectionID
|
|
60
60
|
* @param {string} versionID
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link Corti.NotFoundError}
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
|
-
* await client.
|
|
66
|
+
* await client.alphaSectionVersions.delete("sectionID", "versionID")
|
|
67
67
|
*/
|
|
68
|
-
delete(sectionID: string, versionID: string, requestOptions?:
|
|
68
|
+
delete(sectionID: string, versionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
69
69
|
private __delete;
|
|
70
70
|
/**
|
|
71
71
|
* Sets this version as the published version of the section.
|
|
72
72
|
*
|
|
73
73
|
* @param {string} sectionID
|
|
74
74
|
* @param {string} versionID
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link Corti.NotFoundError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.
|
|
80
|
+
* await client.alphaSectionVersions.publish("sectionID", "versionID")
|
|
81
81
|
*/
|
|
82
|
-
publish(sectionID: string, versionID: string, requestOptions?:
|
|
82
|
+
publish(sectionID: string, versionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
|
|
83
83
|
private __publish;
|
|
84
84
|
}
|
package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.mjs
RENAMED
|
@@ -15,18 +15,18 @@ 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 AlphaSectionVersionsClient {
|
|
19
19
|
constructor(options) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {string} sectionID
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @throws {@link Corti.NotFoundError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* await client.
|
|
29
|
+
* await client.alphaSectionVersions.list("sectionID")
|
|
30
30
|
*/
|
|
31
31
|
list(sectionID, requestOptions) {
|
|
32
32
|
return core.HttpResponsePromise.fromPromise(this.__list(sectionID, requestOptions));
|
|
@@ -49,7 +49,7 @@ export class NewSectionVersionsClient {
|
|
|
49
49
|
});
|
|
50
50
|
if (_response.ok) {
|
|
51
51
|
return {
|
|
52
|
-
data: serializers.
|
|
52
|
+
data: serializers.alphaSectionVersions.list.Response.parseOrThrow(_response.body, {
|
|
53
53
|
unrecognizedObjectKeys: "passthrough",
|
|
54
54
|
allowUnrecognizedUnionMembers: true,
|
|
55
55
|
allowUnrecognizedEnumValues: true,
|
|
@@ -77,13 +77,13 @@ export class NewSectionVersionsClient {
|
|
|
77
77
|
/**
|
|
78
78
|
* @param {string} sectionID
|
|
79
79
|
* @param {Corti.SectionGeneration} request
|
|
80
|
-
* @param {
|
|
80
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
81
|
*
|
|
82
82
|
* @throws {@link Corti.BadRequestError}
|
|
83
83
|
* @throws {@link Corti.NotFoundError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.
|
|
86
|
+
* await client.alphaSectionVersions.create("sectionID", {
|
|
87
87
|
* title: "title",
|
|
88
88
|
* instructions: {
|
|
89
89
|
* contentPrompt: "contentPrompt",
|
|
@@ -151,12 +151,12 @@ export class NewSectionVersionsClient {
|
|
|
151
151
|
/**
|
|
152
152
|
* @param {string} sectionID
|
|
153
153
|
* @param {string} versionID
|
|
154
|
-
* @param {
|
|
154
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
155
|
*
|
|
156
156
|
* @throws {@link Corti.NotFoundError}
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
|
-
* await client.
|
|
159
|
+
* await client.alphaSectionVersions.get("sectionID", "versionID")
|
|
160
160
|
*/
|
|
161
161
|
get(sectionID, versionID, requestOptions) {
|
|
162
162
|
return core.HttpResponsePromise.fromPromise(this.__get(sectionID, versionID, requestOptions));
|
|
@@ -207,12 +207,12 @@ export class NewSectionVersionsClient {
|
|
|
207
207
|
/**
|
|
208
208
|
* @param {string} sectionID
|
|
209
209
|
* @param {string} versionID
|
|
210
|
-
* @param {
|
|
210
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
211
211
|
*
|
|
212
212
|
* @throws {@link Corti.NotFoundError}
|
|
213
213
|
*
|
|
214
214
|
* @example
|
|
215
|
-
* await client.
|
|
215
|
+
* await client.alphaSectionVersions.delete("sectionID", "versionID")
|
|
216
216
|
*/
|
|
217
217
|
delete(sectionID, versionID, requestOptions) {
|
|
218
218
|
return core.HttpResponsePromise.fromPromise(this.__delete(sectionID, versionID, requestOptions));
|
|
@@ -256,12 +256,12 @@ export class NewSectionVersionsClient {
|
|
|
256
256
|
*
|
|
257
257
|
* @param {string} sectionID
|
|
258
258
|
* @param {string} versionID
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
260
260
|
*
|
|
261
261
|
* @throws {@link Corti.NotFoundError}
|
|
262
262
|
*
|
|
263
263
|
* @example
|
|
264
|
-
* await client.
|
|
264
|
+
* await client.alphaSectionVersions.publish("sectionID", "versionID")
|
|
265
265
|
*/
|
|
266
266
|
publish(sectionID, versionID, requestOptions) {
|
|
267
267
|
return core.HttpResponsePromise.fromPromise(this.__publish(sectionID, versionID, requestOptions));
|
|
@@ -2,31 +2,31 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Corti from "../../../index.mjs";
|
|
5
|
-
export declare namespace
|
|
5
|
+
export declare namespace AlphaSectionsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<
|
|
12
|
-
constructor(options:
|
|
10
|
+
export declare class AlphaSectionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaSectionsClient.Options>;
|
|
12
|
+
constructor(options: AlphaSectionsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* @param {Corti.
|
|
15
|
-
* @param {
|
|
14
|
+
* @param {Corti.ListAlphaSectionsRequest} request
|
|
15
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* await client.
|
|
18
|
+
* await client.alphaSections.list()
|
|
19
19
|
*/
|
|
20
|
-
list(request?: Corti.
|
|
20
|
+
list(request?: Corti.ListAlphaSectionsRequest, requestOptions?: AlphaSectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section[]>;
|
|
21
21
|
private __list;
|
|
22
22
|
/**
|
|
23
23
|
* @param {Corti.CreateSectionRequest} request
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @throws {@link Corti.BadRequestError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* await client.
|
|
29
|
+
* await client.alphaSections.create({
|
|
30
30
|
* name: "name",
|
|
31
31
|
* language: "language",
|
|
32
32
|
* generation: {
|
|
@@ -41,41 +41,41 @@ export declare class NewSectionsClient {
|
|
|
41
41
|
* }
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
|
-
create(request: Corti.CreateSectionRequest, requestOptions?:
|
|
44
|
+
create(request: Corti.CreateSectionRequest, requestOptions?: AlphaSectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
|
|
45
45
|
private __create;
|
|
46
46
|
/**
|
|
47
47
|
* @param {string} sectionID
|
|
48
|
-
* @param {
|
|
48
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
49
|
*
|
|
50
50
|
* @throws {@link Corti.NotFoundError}
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
|
-
* await client.
|
|
53
|
+
* await client.alphaSections.get("sectionID")
|
|
54
54
|
*/
|
|
55
|
-
get(sectionID: string, requestOptions?:
|
|
55
|
+
get(sectionID: string, requestOptions?: AlphaSectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
|
|
56
56
|
private __get;
|
|
57
57
|
/**
|
|
58
58
|
* @param {string} sectionID
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
60
|
*
|
|
61
61
|
* @throws {@link Corti.NotFoundError}
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.
|
|
64
|
+
* await client.alphaSections.delete("sectionID")
|
|
65
65
|
*/
|
|
66
|
-
delete(sectionID: string, requestOptions?:
|
|
66
|
+
delete(sectionID: string, requestOptions?: AlphaSectionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
67
67
|
private __delete;
|
|
68
68
|
/**
|
|
69
69
|
* @param {string} sectionID
|
|
70
70
|
* @param {Corti.UpdateSectionRequest} request
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
72
|
*
|
|
73
73
|
* @throws {@link Corti.BadRequestError}
|
|
74
74
|
* @throws {@link Corti.NotFoundError}
|
|
75
75
|
*
|
|
76
76
|
* @example
|
|
77
|
-
* await client.
|
|
77
|
+
* await client.alphaSections.update("sectionID")
|
|
78
78
|
*/
|
|
79
|
-
update(sectionID: string, request?: Corti.UpdateSectionRequest, requestOptions?:
|
|
79
|
+
update(sectionID: string, request?: Corti.UpdateSectionRequest, requestOptions?: AlphaSectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
|
|
80
80
|
private __update;
|
|
81
81
|
}
|
|
@@ -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 AlphaSectionsClient {
|
|
19
19
|
constructor(options) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* @param {Corti.
|
|
24
|
-
* @param {
|
|
23
|
+
* @param {Corti.ListAlphaSectionsRequest} request
|
|
24
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.
|
|
27
|
+
* await client.alphaSections.list()
|
|
28
28
|
*/
|
|
29
29
|
list(request = {}, requestOptions) {
|
|
30
30
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -53,7 +53,7 @@ export class NewSectionsClient {
|
|
|
53
53
|
});
|
|
54
54
|
if (_response.ok) {
|
|
55
55
|
return {
|
|
56
|
-
data: serializers.
|
|
56
|
+
data: serializers.alphaSections.list.Response.parseOrThrow(_response.body, {
|
|
57
57
|
unrecognizedObjectKeys: "passthrough",
|
|
58
58
|
allowUnrecognizedUnionMembers: true,
|
|
59
59
|
allowUnrecognizedEnumValues: true,
|
|
@@ -75,12 +75,12 @@ export class NewSectionsClient {
|
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* @param {Corti.CreateSectionRequest} request
|
|
78
|
-
* @param {
|
|
78
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link Corti.BadRequestError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.
|
|
83
|
+
* await client.alphaSections.create({
|
|
84
84
|
* name: "name",
|
|
85
85
|
* language: "language",
|
|
86
86
|
* generation: {
|
|
@@ -149,12 +149,12 @@ export class NewSectionsClient {
|
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* @param {string} sectionID
|
|
152
|
-
* @param {
|
|
152
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
153
|
*
|
|
154
154
|
* @throws {@link Corti.NotFoundError}
|
|
155
155
|
*
|
|
156
156
|
* @example
|
|
157
|
-
* await client.
|
|
157
|
+
* await client.alphaSections.get("sectionID")
|
|
158
158
|
*/
|
|
159
159
|
get(sectionID, requestOptions) {
|
|
160
160
|
return core.HttpResponsePromise.fromPromise(this.__get(sectionID, requestOptions));
|
|
@@ -204,12 +204,12 @@ export class NewSectionsClient {
|
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* @param {string} sectionID
|
|
207
|
-
* @param {
|
|
207
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
208
|
*
|
|
209
209
|
* @throws {@link Corti.NotFoundError}
|
|
210
210
|
*
|
|
211
211
|
* @example
|
|
212
|
-
* await client.
|
|
212
|
+
* await client.alphaSections.delete("sectionID")
|
|
213
213
|
*/
|
|
214
214
|
delete(sectionID, requestOptions) {
|
|
215
215
|
return core.HttpResponsePromise.fromPromise(this.__delete(sectionID, requestOptions));
|
|
@@ -251,13 +251,13 @@ export class NewSectionsClient {
|
|
|
251
251
|
/**
|
|
252
252
|
* @param {string} sectionID
|
|
253
253
|
* @param {Corti.UpdateSectionRequest} request
|
|
254
|
-
* @param {
|
|
254
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
255
|
*
|
|
256
256
|
* @throws {@link Corti.BadRequestError}
|
|
257
257
|
* @throws {@link Corti.NotFoundError}
|
|
258
258
|
*
|
|
259
259
|
* @example
|
|
260
|
-
* await client.
|
|
260
|
+
* await client.alphaSections.update("sectionID")
|
|
261
261
|
*/
|
|
262
262
|
update(sectionID, request = {}, requestOptions) {
|
|
263
263
|
return core.HttpResponsePromise.fromPromise(this.__update(sectionID, request, requestOptions));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ListAlphaSectionsRequest {
|
|
6
6
|
/** Filter sections by language (BCP 47 tag). Repeatable. */
|
|
7
7
|
lang?: string | string[];
|
|
8
8
|
/** Filter sections by label. Repeatable; matches sections that have any of the given labels. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { CreateSectionRequest } from "./CreateSectionRequest.mjs";
|
|
2
|
-
export type {
|
|
2
|
+
export type { ListAlphaSectionsRequest } from "./ListAlphaSectionsRequest.mjs";
|
|
3
3
|
export type { UpdateSectionRequest } from "./UpdateSectionRequest.mjs";
|
|
@@ -0,0 +1,60 @@
|
|
|
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 AlphaTemplateVersionsClient {
|
|
5
|
+
type Options = BaseClientOptions;
|
|
6
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class AlphaTemplateVersionsClient {
|
|
10
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaTemplateVersionsClient.Options>;
|
|
11
|
+
constructor(options: AlphaTemplateVersionsClient.Options);
|
|
12
|
+
/**
|
|
13
|
+
* @param {string} templateId
|
|
14
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* await client.alphaTemplateVersions.list("templateId")
|
|
18
|
+
*/
|
|
19
|
+
list(templateId: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
20
|
+
private __list;
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} templateId
|
|
23
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.alphaTemplateVersions.create("templateId")
|
|
27
|
+
*/
|
|
28
|
+
create(templateId: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
29
|
+
private __create;
|
|
30
|
+
/**
|
|
31
|
+
* @param {string} templateId
|
|
32
|
+
* @param {string} versionID
|
|
33
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.alphaTemplateVersions.get("templateId", "versionID")
|
|
37
|
+
*/
|
|
38
|
+
get(templateId: string, versionID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
39
|
+
private __get;
|
|
40
|
+
/**
|
|
41
|
+
* @param {string} templateId
|
|
42
|
+
* @param {string} versionID
|
|
43
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.alphaTemplateVersions.delete("templateId", "versionID")
|
|
47
|
+
*/
|
|
48
|
+
delete(templateId: string, versionID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
+
private __delete;
|
|
50
|
+
/**
|
|
51
|
+
* @param {string} templateId
|
|
52
|
+
* @param {string} versionID
|
|
53
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.alphaTemplateVersions.publish("templateId", "versionID")
|
|
57
|
+
*/
|
|
58
|
+
publish(templateId: string, versionID: string, requestOptions?: AlphaTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
59
|
+
private __publish;
|
|
60
|
+
}
|
package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.mjs
RENAMED
|
@@ -13,16 +13,16 @@ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.
|
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
|
-
export class
|
|
16
|
+
export class AlphaTemplateVersionsClient {
|
|
17
17
|
constructor(options) {
|
|
18
18
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @param {string} templateId
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await client.
|
|
25
|
+
* await client.alphaTemplateVersions.list("templateId")
|
|
26
26
|
*/
|
|
27
27
|
list(templateId, requestOptions) {
|
|
28
28
|
return core.HttpResponsePromise.fromPromise(this.__list(templateId, requestOptions));
|
|
@@ -58,10 +58,10 @@ export class NewTemplateVersionsClient {
|
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* @param {string} templateId
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.
|
|
64
|
+
* await client.alphaTemplateVersions.create("templateId")
|
|
65
65
|
*/
|
|
66
66
|
create(templateId, requestOptions) {
|
|
67
67
|
return core.HttpResponsePromise.fromPromise(this.__create(templateId, requestOptions));
|
|
@@ -98,10 +98,10 @@ export class NewTemplateVersionsClient {
|
|
|
98
98
|
/**
|
|
99
99
|
* @param {string} templateId
|
|
100
100
|
* @param {string} versionID
|
|
101
|
-
* @param {
|
|
101
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
104
|
-
* await client.
|
|
104
|
+
* await client.alphaTemplateVersions.get("templateId", "versionID")
|
|
105
105
|
*/
|
|
106
106
|
get(templateId, versionID, requestOptions) {
|
|
107
107
|
return core.HttpResponsePromise.fromPromise(this.__get(templateId, versionID, requestOptions));
|
|
@@ -138,10 +138,10 @@ export class NewTemplateVersionsClient {
|
|
|
138
138
|
/**
|
|
139
139
|
* @param {string} templateId
|
|
140
140
|
* @param {string} versionID
|
|
141
|
-
* @param {
|
|
141
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
142
|
*
|
|
143
143
|
* @example
|
|
144
|
-
* await client.
|
|
144
|
+
* await client.alphaTemplateVersions.delete("templateId", "versionID")
|
|
145
145
|
*/
|
|
146
146
|
delete(templateId, versionID, requestOptions) {
|
|
147
147
|
return core.HttpResponsePromise.fromPromise(this.__delete(templateId, versionID, requestOptions));
|
|
@@ -178,10 +178,10 @@ export class NewTemplateVersionsClient {
|
|
|
178
178
|
/**
|
|
179
179
|
* @param {string} templateId
|
|
180
180
|
* @param {string} versionID
|
|
181
|
-
* @param {
|
|
181
|
+
* @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
182
|
*
|
|
183
183
|
* @example
|
|
184
|
-
* await client.
|
|
184
|
+
* await client.alphaTemplateVersions.publish("templateId", "versionID")
|
|
185
185
|
*/
|
|
186
186
|
publish(templateId, versionID, requestOptions) {
|
|
187
187
|
return core.HttpResponsePromise.fromPromise(this.__publish(templateId, versionID, requestOptions));
|
|
@@ -0,0 +1,68 @@
|
|
|
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 AlphaTemplatesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AlphaTemplatesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaTemplatesClient.Options>;
|
|
12
|
+
constructor(options: AlphaTemplatesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {Corti.ListAlphaTemplatesRequest} request
|
|
15
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* await client.alphaTemplates.list()
|
|
19
|
+
*/
|
|
20
|
+
list(request?: Corti.ListAlphaTemplatesRequest, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template[]>;
|
|
21
|
+
private __list;
|
|
22
|
+
/**
|
|
23
|
+
* @param {Corti.CreateTemplateRequest} request
|
|
24
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Corti.BadRequestError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.alphaTemplates.create({
|
|
30
|
+
* name: "name",
|
|
31
|
+
* language: "language",
|
|
32
|
+
* generation: {
|
|
33
|
+
* instructions: {
|
|
34
|
+
* prompt: "prompt"
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
create(request: Corti.CreateTemplateRequest, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
|
|
40
|
+
private __create;
|
|
41
|
+
/**
|
|
42
|
+
* @param {string} templateId
|
|
43
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.alphaTemplates.get("templateId")
|
|
47
|
+
*/
|
|
48
|
+
get(templateId: string, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
+
private __get;
|
|
50
|
+
/**
|
|
51
|
+
* @param {string} templateId
|
|
52
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.alphaTemplates.delete("templateId")
|
|
56
|
+
*/
|
|
57
|
+
delete(templateId: string, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
58
|
+
private __delete;
|
|
59
|
+
/**
|
|
60
|
+
* @param {string} templateId
|
|
61
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.alphaTemplates.update("templateId")
|
|
65
|
+
*/
|
|
66
|
+
update(templateId: string, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
67
|
+
private __update;
|
|
68
|
+
}
|