@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/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.1",
|
|
47
|
+
"User-Agent": "@corti/sdk/2.0.0-templates.1",
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.js";
|
|
2
|
+
import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.js";
|
|
3
|
+
import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.js";
|
|
4
|
+
import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.js";
|
|
5
|
+
import { AlphaTemplateVersionsClient } from "./api/resources/alphaTemplateVersions/client/Client.js";
|
|
2
6
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
3
7
|
import { CodesClient } from "./api/resources/codes/client/Client.js";
|
|
4
8
|
import { DocumentsClient } from "./api/resources/documents/client/Client.js";
|
|
5
9
|
import { FactsClient } from "./api/resources/facts/client/Client.js";
|
|
6
10
|
import { InteractionsClient } from "./api/resources/interactions/client/Client.js";
|
|
7
|
-
import { NewSectionsClient } from "./api/resources/newSections/client/Client.js";
|
|
8
|
-
import { NewSectionVersionsClient } from "./api/resources/newSectionVersions/client/Client.js";
|
|
9
|
-
import { NewTemplatesClient } from "./api/resources/newTemplates/client/Client.js";
|
|
10
|
-
import { NewTemplateVersionsClient } from "./api/resources/newTemplateVersions/client/Client.js";
|
|
11
11
|
import { RecordingsClient } from "./api/resources/recordings/client/Client.js";
|
|
12
12
|
import { StreamClient } from "./api/resources/stream/client/Client.js";
|
|
13
13
|
import { TemplatesClient } from "./api/resources/templates/client/Client.js";
|
|
@@ -30,10 +30,10 @@ export declare class CortiClient {
|
|
|
30
30
|
protected _documents: DocumentsClient | undefined;
|
|
31
31
|
protected _templates: TemplatesClient | undefined;
|
|
32
32
|
protected _codes: CodesClient | undefined;
|
|
33
|
-
protected
|
|
34
|
-
protected
|
|
35
|
-
protected
|
|
36
|
-
protected
|
|
33
|
+
protected _alphaTemplates: AlphaTemplatesClient | undefined;
|
|
34
|
+
protected _alphaSections: AlphaSectionsClient | undefined;
|
|
35
|
+
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;
|
|
@@ -46,10 +46,10 @@ export declare class CortiClient {
|
|
|
46
46
|
get documents(): DocumentsClient;
|
|
47
47
|
get templates(): TemplatesClient;
|
|
48
48
|
get codes(): CodesClient;
|
|
49
|
-
get
|
|
50
|
-
get
|
|
51
|
-
get
|
|
52
|
-
get
|
|
49
|
+
get alphaTemplates(): AlphaTemplatesClient;
|
|
50
|
+
get alphaSections(): AlphaSectionsClient;
|
|
51
|
+
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
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CortiClient = void 0;
|
|
5
5
|
const Client_js_1 = require("./api/resources/agents/client/Client.js");
|
|
6
|
-
const Client_js_2 = require("./api/resources/
|
|
7
|
-
const Client_js_3 = require("./api/resources/
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
6
|
+
const Client_js_2 = require("./api/resources/alphaSections/client/Client.js");
|
|
7
|
+
const Client_js_3 = require("./api/resources/alphaSectionVersions/client/Client.js");
|
|
8
|
+
const Client_js_4 = require("./api/resources/alphaTemplates/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/alphaTemplateVersions/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/auth/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/codes/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/documents/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/facts/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/interactions/client/Client.js");
|
|
15
15
|
const Client_js_11 = require("./api/resources/recordings/client/Client.js");
|
|
16
16
|
const Client_js_12 = require("./api/resources/stream/client/Client.js");
|
|
17
17
|
const Client_js_13 = require("./api/resources/templates/client/Client.js");
|
|
@@ -24,11 +24,11 @@ class CortiClient {
|
|
|
24
24
|
}
|
|
25
25
|
get auth() {
|
|
26
26
|
var _a;
|
|
27
|
-
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new
|
|
27
|
+
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_6.AuthClient(this._options)));
|
|
28
28
|
}
|
|
29
29
|
get interactions() {
|
|
30
30
|
var _a;
|
|
31
|
-
return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new
|
|
31
|
+
return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new Client_js_10.InteractionsClient(this._options)));
|
|
32
32
|
}
|
|
33
33
|
get recordings() {
|
|
34
34
|
var _a;
|
|
@@ -40,11 +40,11 @@ class CortiClient {
|
|
|
40
40
|
}
|
|
41
41
|
get facts() {
|
|
42
42
|
var _a;
|
|
43
|
-
return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new
|
|
43
|
+
return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new Client_js_9.FactsClient(this._options)));
|
|
44
44
|
}
|
|
45
45
|
get documents() {
|
|
46
46
|
var _a;
|
|
47
|
-
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new
|
|
47
|
+
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_8.DocumentsClient(this._options)));
|
|
48
48
|
}
|
|
49
49
|
get templates() {
|
|
50
50
|
var _a;
|
|
@@ -52,23 +52,23 @@ class CortiClient {
|
|
|
52
52
|
}
|
|
53
53
|
get codes() {
|
|
54
54
|
var _a;
|
|
55
|
-
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new
|
|
55
|
+
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_7.CodesClient(this._options)));
|
|
56
56
|
}
|
|
57
|
-
get
|
|
57
|
+
get alphaTemplates() {
|
|
58
58
|
var _a;
|
|
59
|
-
return ((_a = this.
|
|
59
|
+
return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new Client_js_4.AlphaTemplatesClient(this._options)));
|
|
60
60
|
}
|
|
61
|
-
get
|
|
61
|
+
get alphaSections() {
|
|
62
62
|
var _a;
|
|
63
|
-
return ((_a = this.
|
|
63
|
+
return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new Client_js_2.AlphaSectionsClient(this._options)));
|
|
64
64
|
}
|
|
65
|
-
get
|
|
65
|
+
get alphaSectionVersions() {
|
|
66
66
|
var _a;
|
|
67
|
-
return ((_a = this.
|
|
67
|
+
return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new Client_js_3.AlphaSectionVersionsClient(this._options)));
|
|
68
68
|
}
|
|
69
|
-
get
|
|
69
|
+
get alphaTemplateVersions() {
|
|
70
70
|
var _a;
|
|
71
|
-
return ((_a = this.
|
|
71
|
+
return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_5.AlphaTemplateVersionsClient(this._options)));
|
|
72
72
|
}
|
|
73
73
|
get agents() {
|
|
74
74
|
var _a;
|
package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.ts
RENAMED
|
@@ -2,35 +2,35 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Corti from "../../../index.js";
|
|
5
|
-
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
|
}
|
|
@@ -43,7 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.AlphaSectionVersionsClient = void 0;
|
|
47
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
@@ -51,18 +51,18 @@ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatu
|
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
52
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
53
53
|
const Corti = __importStar(require("../../../index.js"));
|
|
54
|
-
class
|
|
54
|
+
class AlphaSectionVersionsClient {
|
|
55
55
|
constructor(options) {
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* @param {string} sectionID
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link Corti.NotFoundError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.
|
|
65
|
+
* await client.alphaSectionVersions.list("sectionID")
|
|
66
66
|
*/
|
|
67
67
|
list(sectionID, requestOptions) {
|
|
68
68
|
return core.HttpResponsePromise.fromPromise(this.__list(sectionID, requestOptions));
|
|
@@ -85,7 +85,7 @@ class NewSectionVersionsClient {
|
|
|
85
85
|
});
|
|
86
86
|
if (_response.ok) {
|
|
87
87
|
return {
|
|
88
|
-
data: serializers.
|
|
88
|
+
data: serializers.alphaSectionVersions.list.Response.parseOrThrow(_response.body, {
|
|
89
89
|
unrecognizedObjectKeys: "passthrough",
|
|
90
90
|
allowUnrecognizedUnionMembers: true,
|
|
91
91
|
allowUnrecognizedEnumValues: true,
|
|
@@ -113,13 +113,13 @@ class NewSectionVersionsClient {
|
|
|
113
113
|
/**
|
|
114
114
|
* @param {string} sectionID
|
|
115
115
|
* @param {Corti.SectionGeneration} request
|
|
116
|
-
* @param {
|
|
116
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
117
|
*
|
|
118
118
|
* @throws {@link Corti.BadRequestError}
|
|
119
119
|
* @throws {@link Corti.NotFoundError}
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
|
-
* await client.
|
|
122
|
+
* await client.alphaSectionVersions.create("sectionID", {
|
|
123
123
|
* title: "title",
|
|
124
124
|
* instructions: {
|
|
125
125
|
* contentPrompt: "contentPrompt",
|
|
@@ -187,12 +187,12 @@ class NewSectionVersionsClient {
|
|
|
187
187
|
/**
|
|
188
188
|
* @param {string} sectionID
|
|
189
189
|
* @param {string} versionID
|
|
190
|
-
* @param {
|
|
190
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
191
|
*
|
|
192
192
|
* @throws {@link Corti.NotFoundError}
|
|
193
193
|
*
|
|
194
194
|
* @example
|
|
195
|
-
* await client.
|
|
195
|
+
* await client.alphaSectionVersions.get("sectionID", "versionID")
|
|
196
196
|
*/
|
|
197
197
|
get(sectionID, versionID, requestOptions) {
|
|
198
198
|
return core.HttpResponsePromise.fromPromise(this.__get(sectionID, versionID, requestOptions));
|
|
@@ -243,12 +243,12 @@ class NewSectionVersionsClient {
|
|
|
243
243
|
/**
|
|
244
244
|
* @param {string} sectionID
|
|
245
245
|
* @param {string} versionID
|
|
246
|
-
* @param {
|
|
246
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
247
|
*
|
|
248
248
|
* @throws {@link Corti.NotFoundError}
|
|
249
249
|
*
|
|
250
250
|
* @example
|
|
251
|
-
* await client.
|
|
251
|
+
* await client.alphaSectionVersions.delete("sectionID", "versionID")
|
|
252
252
|
*/
|
|
253
253
|
delete(sectionID, versionID, requestOptions) {
|
|
254
254
|
return core.HttpResponsePromise.fromPromise(this.__delete(sectionID, versionID, requestOptions));
|
|
@@ -292,12 +292,12 @@ class NewSectionVersionsClient {
|
|
|
292
292
|
*
|
|
293
293
|
* @param {string} sectionID
|
|
294
294
|
* @param {string} versionID
|
|
295
|
-
* @param {
|
|
295
|
+
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
296
296
|
*
|
|
297
297
|
* @throws {@link Corti.NotFoundError}
|
|
298
298
|
*
|
|
299
299
|
* @example
|
|
300
|
-
* await client.
|
|
300
|
+
* await client.alphaSectionVersions.publish("sectionID", "versionID")
|
|
301
301
|
*/
|
|
302
302
|
publish(sectionID, versionID, requestOptions) {
|
|
303
303
|
return core.HttpResponsePromise.fromPromise(this.__publish(sectionID, versionID, requestOptions));
|
|
@@ -346,4 +346,4 @@ class NewSectionVersionsClient {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
exports.
|
|
349
|
+
exports.AlphaSectionVersionsClient = AlphaSectionVersionsClient;
|
|
@@ -2,31 +2,31 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Corti from "../../../index.js";
|
|
5
|
-
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
|
}
|
|
@@ -43,7 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.AlphaSectionsClient = void 0;
|
|
47
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
@@ -51,16 +51,16 @@ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatu
|
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
52
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
53
53
|
const Corti = __importStar(require("../../../index.js"));
|
|
54
|
-
class
|
|
54
|
+
class AlphaSectionsClient {
|
|
55
55
|
constructor(options) {
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* @param {Corti.
|
|
60
|
-
* @param {
|
|
59
|
+
* @param {Corti.ListAlphaSectionsRequest} request
|
|
60
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.
|
|
63
|
+
* await client.alphaSections.list()
|
|
64
64
|
*/
|
|
65
65
|
list(request = {}, requestOptions) {
|
|
66
66
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -89,7 +89,7 @@ class NewSectionsClient {
|
|
|
89
89
|
});
|
|
90
90
|
if (_response.ok) {
|
|
91
91
|
return {
|
|
92
|
-
data: serializers.
|
|
92
|
+
data: serializers.alphaSections.list.Response.parseOrThrow(_response.body, {
|
|
93
93
|
unrecognizedObjectKeys: "passthrough",
|
|
94
94
|
allowUnrecognizedUnionMembers: true,
|
|
95
95
|
allowUnrecognizedEnumValues: true,
|
|
@@ -111,12 +111,12 @@ class NewSectionsClient {
|
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
* @param {Corti.CreateSectionRequest} request
|
|
114
|
-
* @param {
|
|
114
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
115
|
*
|
|
116
116
|
* @throws {@link Corti.BadRequestError}
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
|
-
* await client.
|
|
119
|
+
* await client.alphaSections.create({
|
|
120
120
|
* name: "name",
|
|
121
121
|
* language: "language",
|
|
122
122
|
* generation: {
|
|
@@ -185,12 +185,12 @@ class NewSectionsClient {
|
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* @param {string} sectionID
|
|
188
|
-
* @param {
|
|
188
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
189
189
|
*
|
|
190
190
|
* @throws {@link Corti.NotFoundError}
|
|
191
191
|
*
|
|
192
192
|
* @example
|
|
193
|
-
* await client.
|
|
193
|
+
* await client.alphaSections.get("sectionID")
|
|
194
194
|
*/
|
|
195
195
|
get(sectionID, requestOptions) {
|
|
196
196
|
return core.HttpResponsePromise.fromPromise(this.__get(sectionID, requestOptions));
|
|
@@ -240,12 +240,12 @@ class NewSectionsClient {
|
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
242
|
* @param {string} sectionID
|
|
243
|
-
* @param {
|
|
243
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
244
|
*
|
|
245
245
|
* @throws {@link Corti.NotFoundError}
|
|
246
246
|
*
|
|
247
247
|
* @example
|
|
248
|
-
* await client.
|
|
248
|
+
* await client.alphaSections.delete("sectionID")
|
|
249
249
|
*/
|
|
250
250
|
delete(sectionID, requestOptions) {
|
|
251
251
|
return core.HttpResponsePromise.fromPromise(this.__delete(sectionID, requestOptions));
|
|
@@ -287,13 +287,13 @@ class NewSectionsClient {
|
|
|
287
287
|
/**
|
|
288
288
|
* @param {string} sectionID
|
|
289
289
|
* @param {Corti.UpdateSectionRequest} request
|
|
290
|
-
* @param {
|
|
290
|
+
* @param {AlphaSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
291
291
|
*
|
|
292
292
|
* @throws {@link Corti.BadRequestError}
|
|
293
293
|
* @throws {@link Corti.NotFoundError}
|
|
294
294
|
*
|
|
295
295
|
* @example
|
|
296
|
-
* await client.
|
|
296
|
+
* await client.alphaSections.update("sectionID")
|
|
297
297
|
*/
|
|
298
298
|
update(sectionID, request = {}, requestOptions) {
|
|
299
299
|
return core.HttpResponsePromise.fromPromise(this.__update(sectionID, request, requestOptions));
|
|
@@ -350,4 +350,4 @@ class NewSectionsClient {
|
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
exports.
|
|
353
|
+
exports.AlphaSectionsClient = AlphaSectionsClient;
|
|
@@ -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.js";
|
|
2
|
-
export type {
|
|
2
|
+
export type { ListAlphaSectionsRequest } from "./ListAlphaSectionsRequest.js";
|
|
3
3
|
export type { UpdateSectionRequest } from "./UpdateSectionRequest.js";
|
|
@@ -0,0 +1,60 @@
|
|
|
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 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
|
+
}
|