@corti/sdk 1.2.0-templates-beta.2 → 1.2.0-templates-beta.4

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.
Files changed (168) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -42
  4. package/dist/cjs/Client.js +14 -217
  5. package/dist/cjs/api/resources/index.d.ts +3 -4
  6. package/dist/cjs/api/resources/index.js +4 -5
  7. package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/Client.d.ts +19 -19
  8. package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/Client.js +14 -14
  9. package/dist/cjs/api/resources/newSections/client/Client.d.ts +52 -0
  10. package/dist/cjs/api/resources/newSections/client/Client.js +226 -0
  11. package/dist/cjs/api/resources/newSections/client/requests/CreateSectionRequest.d.ts +30 -0
  12. package/dist/cjs/api/resources/newSections/client/requests/ListNewSectionsRequest.d.ts +12 -0
  13. package/dist/cjs/api/resources/{templateVersions/client/requests/index.js → newSections/client/requests/ListNewSectionsRequest.js} +1 -0
  14. package/dist/cjs/api/resources/newSections/client/requests/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/Client.d.ts +19 -19
  16. package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/Client.js +14 -14
  17. package/dist/cjs/api/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.js +3 -0
  18. package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +45 -0
  19. package/dist/cjs/api/resources/newTemplates/client/Client.js +219 -0
  20. package/dist/cjs/api/resources/newTemplates/client/requests/CreateTemplateRequest.d.ts +24 -0
  21. package/dist/cjs/api/resources/newTemplates/client/requests/CreateTemplateRequest.js +3 -0
  22. package/dist/cjs/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.d.ts +12 -0
  23. package/dist/cjs/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.js +3 -0
  24. package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/templates/client/Client.d.ts +0 -22
  26. package/dist/cjs/api/resources/templates/client/Client.js +0 -101
  27. package/dist/cjs/api/types/Section.d.ts +8 -0
  28. package/dist/cjs/api/types/SectionVersion.d.ts +1 -0
  29. package/dist/cjs/api/types/Template.d.ts +9 -0
  30. package/dist/cjs/api/types/TemplateVersion.d.ts +2 -0
  31. package/dist/cjs/serialization/resources/index.d.ts +3 -3
  32. package/dist/cjs/serialization/resources/index.js +4 -4
  33. package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/list.d.ts +1 -1
  34. package/dist/cjs/serialization/resources/newSections/client/index.d.ts +1 -0
  35. package/dist/cjs/serialization/resources/newSections/client/index.js +24 -0
  36. package/dist/cjs/serialization/resources/newSections/client/list.d.ts +8 -0
  37. package/dist/cjs/serialization/resources/newSections/client/list.js +40 -0
  38. package/dist/cjs/serialization/resources/newSections/client/requests/CreateSectionRequest.d.ts +16 -0
  39. package/dist/cjs/serialization/resources/newSections/client/requests/CreateSectionRequest.js +48 -0
  40. package/dist/cjs/serialization/resources/newSections/client/requests/index.d.ts +1 -0
  41. package/dist/cjs/serialization/resources/newSections/client/requests/index.js +3 -1
  42. package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/list.d.ts +1 -1
  43. package/dist/cjs/serialization/resources/newTemplates/client/index.d.ts +1 -0
  44. package/dist/cjs/serialization/resources/newTemplates/client/index.js +24 -0
  45. package/dist/cjs/serialization/resources/newTemplates/client/list.d.ts +8 -0
  46. package/dist/cjs/serialization/resources/newTemplates/client/list.js +40 -0
  47. package/dist/cjs/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.d.ts +18 -0
  48. package/dist/cjs/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.js +50 -0
  49. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.d.ts +1 -0
  50. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.js +3 -1
  51. package/dist/cjs/version.d.ts +1 -1
  52. package/dist/cjs/version.js +1 -1
  53. package/dist/esm/BaseClient.d.mts +2 -2
  54. package/dist/esm/BaseClient.mjs +2 -2
  55. package/dist/esm/Client.d.mts +6 -42
  56. package/dist/esm/Client.mjs +6 -176
  57. package/dist/esm/api/resources/index.d.mts +3 -4
  58. package/dist/esm/api/resources/index.mjs +3 -4
  59. package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/Client.d.mts +19 -19
  60. package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/Client.mjs +12 -12
  61. package/dist/esm/api/resources/newSections/client/Client.d.mts +52 -0
  62. package/dist/esm/api/resources/newSections/client/Client.mjs +226 -0
  63. package/dist/esm/api/resources/newSections/client/requests/CreateSectionRequest.d.mts +30 -0
  64. package/dist/esm/api/resources/newSections/client/requests/ListNewSectionsRequest.d.mts +12 -0
  65. package/dist/esm/api/resources/newSections/client/requests/ListNewSectionsRequest.mjs +2 -0
  66. package/dist/esm/api/resources/newSections/client/requests/index.d.mts +2 -0
  67. package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/Client.d.mts +19 -19
  68. package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/Client.mjs +12 -12
  69. package/dist/esm/api/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs +2 -0
  70. package/dist/esm/api/resources/newTemplates/client/Client.d.mts +45 -0
  71. package/dist/esm/api/resources/newTemplates/client/Client.mjs +219 -0
  72. package/dist/esm/api/resources/newTemplates/client/requests/CreateTemplateRequest.d.mts +24 -0
  73. package/dist/esm/api/resources/newTemplates/client/requests/CreateTemplateRequest.mjs +2 -0
  74. package/dist/esm/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.d.mts +12 -0
  75. package/dist/esm/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.mjs +2 -0
  76. package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +2 -0
  77. package/dist/esm/api/resources/templates/client/Client.d.mts +0 -22
  78. package/dist/esm/api/resources/templates/client/Client.mjs +0 -101
  79. package/dist/esm/api/types/Section.d.mts +8 -0
  80. package/dist/esm/api/types/SectionVersion.d.mts +1 -0
  81. package/dist/esm/api/types/Template.d.mts +9 -0
  82. package/dist/esm/api/types/TemplateVersion.d.mts +2 -0
  83. package/dist/esm/serialization/resources/index.d.mts +3 -3
  84. package/dist/esm/serialization/resources/index.mjs +3 -3
  85. package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/list.d.mts +1 -1
  86. package/dist/esm/serialization/resources/newSections/client/index.d.mts +1 -0
  87. package/dist/esm/serialization/resources/newSections/client/index.mjs +1 -0
  88. package/dist/esm/serialization/resources/newSections/client/list.d.mts +8 -0
  89. package/dist/esm/serialization/resources/newSections/client/list.mjs +4 -0
  90. package/dist/esm/serialization/resources/newSections/client/requests/CreateSectionRequest.d.mts +16 -0
  91. package/dist/esm/serialization/resources/newSections/client/requests/CreateSectionRequest.mjs +12 -0
  92. package/dist/esm/serialization/resources/newSections/client/requests/index.d.mts +1 -0
  93. package/dist/esm/serialization/resources/newSections/client/requests/index.mjs +1 -0
  94. package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/list.d.mts +1 -1
  95. package/dist/esm/serialization/resources/newTemplates/client/index.d.mts +1 -0
  96. package/dist/esm/serialization/resources/newTemplates/client/index.mjs +1 -0
  97. package/dist/esm/serialization/resources/newTemplates/client/list.d.mts +8 -0
  98. package/dist/esm/serialization/resources/newTemplates/client/list.mjs +4 -0
  99. package/dist/esm/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.d.mts +18 -0
  100. package/dist/esm/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.mjs +14 -0
  101. package/dist/esm/serialization/resources/newTemplates/client/requests/index.d.mts +1 -0
  102. package/dist/esm/serialization/resources/newTemplates/client/requests/index.mjs +1 -0
  103. package/dist/esm/version.d.mts +1 -1
  104. package/dist/esm/version.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cjs/api/resources/sections/client/Client.d.ts +0 -35
  107. package/dist/cjs/api/resources/sections/client/Client.js +0 -160
  108. package/dist/cjs/api/resources/sections/client/index.d.ts +0 -1
  109. package/dist/cjs/serialization/resources/templateVersions/index.d.ts +0 -1
  110. package/dist/cjs/serialization/resources/templateVersions/index.js +0 -17
  111. package/dist/esm/api/resources/sections/client/Client.d.mts +0 -35
  112. package/dist/esm/api/resources/sections/client/Client.mjs +0 -123
  113. package/dist/esm/api/resources/sections/client/index.d.mts +0 -1
  114. package/dist/esm/api/resources/templateVersions/client/requests/index.mjs +0 -1
  115. package/dist/esm/serialization/resources/templateVersions/index.d.mts +0 -1
  116. package/dist/esm/serialization/resources/templateVersions/index.mjs +0 -1
  117. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/index.d.ts +0 -0
  118. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/index.js +0 -0
  119. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/index.d.ts +0 -0
  120. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/index.js +0 -0
  121. /package/dist/cjs/api/resources/{templateVersions/client/requests/CreateTemplateVersionRequest.js → newSections/client/requests/CreateSectionRequest.js} +0 -0
  122. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/index.d.ts +0 -0
  123. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/index.js +0 -0
  124. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.ts +0 -0
  125. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.ts +0 -0
  126. /package/dist/cjs/api/resources/{sections/client → newTemplateVersions/client/requests}/index.js +0 -0
  127. /package/dist/cjs/api/resources/{sections → newTemplateVersions}/index.d.ts +0 -0
  128. /package/dist/cjs/api/resources/{sections → newTemplateVersions}/index.js +0 -0
  129. /package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/index.d.ts +0 -0
  130. /package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/index.js +0 -0
  131. /package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/list.js +0 -0
  132. /package/dist/cjs/{api/resources/templateVersions → serialization/resources/newSectionVersions}/index.d.ts +0 -0
  133. /package/dist/cjs/{api/resources/templateVersions → serialization/resources/newSectionVersions}/index.js +0 -0
  134. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/index.d.ts +0 -0
  135. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/index.js +0 -0
  136. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/list.js +0 -0
  137. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.ts +0 -0
  138. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.js +0 -0
  139. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.ts +0 -0
  140. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.js +0 -0
  141. /package/dist/cjs/serialization/resources/{sectionVersions → newTemplateVersions}/index.d.ts +0 -0
  142. /package/dist/cjs/serialization/resources/{sectionVersions → newTemplateVersions}/index.js +0 -0
  143. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/index.d.mts +0 -0
  144. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/index.mjs +0 -0
  145. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/index.d.mts +0 -0
  146. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/index.mjs +0 -0
  147. /package/dist/esm/api/resources/{templateVersions/client/requests/CreateTemplateVersionRequest.mjs → newSections/client/requests/CreateSectionRequest.mjs} +0 -0
  148. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/index.d.mts +0 -0
  149. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/index.mjs +0 -0
  150. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.mts +0 -0
  151. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.mts +0 -0
  152. /package/dist/esm/api/resources/{sections/client → newTemplateVersions/client/requests}/index.mjs +0 -0
  153. /package/dist/esm/api/resources/{sections → newTemplateVersions}/index.d.mts +0 -0
  154. /package/dist/esm/api/resources/{sections → newTemplateVersions}/index.mjs +0 -0
  155. /package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/index.d.mts +0 -0
  156. /package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/index.mjs +0 -0
  157. /package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/list.mjs +0 -0
  158. /package/dist/esm/{api/resources/templateVersions → serialization/resources/newSectionVersions}/index.d.mts +0 -0
  159. /package/dist/esm/{api/resources/templateVersions → serialization/resources/newSectionVersions}/index.mjs +0 -0
  160. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/index.d.mts +0 -0
  161. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/index.mjs +0 -0
  162. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/list.mjs +0 -0
  163. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.mts +0 -0
  164. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.mjs +0 -0
  165. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.mts +0 -0
  166. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.mjs +0 -0
  167. /package/dist/esm/serialization/resources/{sectionVersions → newTemplateVersions}/index.d.mts +0 -0
  168. /package/dist/esm/serialization/resources/{sectionVersions → newTemplateVersions}/index.mjs +0 -0
@@ -6,7 +6,7 @@ export type BaseClientOptions = {
6
6
  /** Specify a custom URL to connect the client to. */
7
7
  baseUrl?: core.Supplier<string>;
8
8
  /** Override the Tenant-Name header */
9
- tenantName?: core.Supplier<string | undefined>;
9
+ tenantName: core.Supplier<string>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
12
  /** The default maximum time to wait for a response in seconds. */
@@ -26,7 +26,7 @@ export interface BaseRequestOptions {
26
26
  /** A hook to abort the request. */
27
27
  abortSignal?: AbortSignal;
28
28
  /** Override the Tenant-Name header */
29
- tenantName?: string | undefined;
29
+ tenantName?: string;
30
30
  /** Additional query string parameters to include in the request. */
31
31
  queryParams?: Record<string, unknown>;
32
32
  /** Additional headers to include in the request. */
@@ -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": "1.2.0-templates-beta.2",
47
- "User-Agent": "@corti/sdk/1.2.0-templates-beta.2",
46
+ "X-Fern-SDK-Version": "1.2.0-templates-beta.4",
47
+ "User-Agent": "@corti/sdk/1.2.0-templates-beta.4",
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,
@@ -5,18 +5,16 @@ import { DocumentsClient } from "./api/resources/documents/client/Client.js";
5
5
  import { FactsClient } from "./api/resources/facts/client/Client.js";
6
6
  import { InteractionsClient } from "./api/resources/interactions/client/Client.js";
7
7
  import { NewSectionsClient } from "./api/resources/newSections/client/Client.js";
8
+ import { NewSectionVersionsClient } from "./api/resources/newSectionVersions/client/Client.js";
8
9
  import { NewTemplatesClient } from "./api/resources/newTemplates/client/Client.js";
10
+ import { NewTemplateVersionsClient } from "./api/resources/newTemplateVersions/client/Client.js";
9
11
  import { RecordingsClient } from "./api/resources/recordings/client/Client.js";
10
- import { SectionsClient } from "./api/resources/sections/client/Client.js";
11
- import { SectionVersionsClient } from "./api/resources/sectionVersions/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";
14
- import { TemplateVersionsClient } from "./api/resources/templateVersions/client/Client.js";
15
14
  import { TranscribeClient } from "./api/resources/transcribe/client/Client.js";
16
15
  import { TranscriptsClient } from "./api/resources/transcripts/client/Client.js";
17
16
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
18
17
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
19
- import * as core from "./core/index.js";
20
18
  export declare namespace CortiClient {
21
19
  type Options = BaseClientOptions;
22
20
  interface RequestOptions extends BaseRequestOptions {
@@ -33,10 +31,9 @@ export declare class CortiClient {
33
31
  protected _templates: TemplatesClient | undefined;
34
32
  protected _codes: CodesClient | undefined;
35
33
  protected _newTemplates: NewTemplatesClient | undefined;
36
- protected _templateVersions: TemplateVersionsClient | undefined;
37
- protected _sections: SectionsClient | undefined;
34
+ protected _newTemplateVersions: NewTemplateVersionsClient | undefined;
38
35
  protected _newSections: NewSectionsClient | undefined;
39
- protected _sectionVersions: SectionVersionsClient | undefined;
36
+ protected _newSectionVersions: NewSectionVersionsClient | undefined;
40
37
  protected _agents: AgentsClient | undefined;
41
38
  protected _stream: StreamClient | undefined;
42
39
  protected _transcribe: TranscribeClient | undefined;
@@ -50,43 +47,10 @@ export declare class CortiClient {
50
47
  get templates(): TemplatesClient;
51
48
  get codes(): CodesClient;
52
49
  get newTemplates(): NewTemplatesClient;
53
- get templateVersions(): TemplateVersionsClient;
54
- get sections(): SectionsClient;
50
+ get newTemplateVersions(): NewTemplateVersionsClient;
55
51
  get newSections(): NewSectionsClient;
56
- get sectionVersions(): SectionVersionsClient;
52
+ get newSectionVersions(): NewSectionVersionsClient;
57
53
  get agents(): AgentsClient;
58
54
  get stream(): StreamClient;
59
55
  get transcribe(): TranscribeClient;
60
- /**
61
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
62
- *
63
- * @example
64
- * await client.getNewTemplates()
65
- */
66
- getNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
67
- private __getNewTemplates;
68
- /**
69
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
70
- *
71
- * @example
72
- * await client.postNewTemplates()
73
- */
74
- postNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
75
- private __postNewTemplates;
76
- /**
77
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
78
- *
79
- * @example
80
- * await client.getNewSections()
81
- */
82
- getNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
83
- private __getNewSections;
84
- /**
85
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
86
- *
87
- * @example
88
- * await client.postNewSections()
89
- */
90
- postNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
91
- private __postNewSections;
92
56
  }
@@ -1,47 +1,5 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
3
  Object.defineProperty(exports, "__esModule", { value: true });
46
4
  exports.CortiClient = void 0;
47
5
  const Client_js_1 = require("./api/resources/agents/client/Client.js");
@@ -51,20 +9,15 @@ const Client_js_4 = require("./api/resources/documents/client/Client.js");
51
9
  const Client_js_5 = require("./api/resources/facts/client/Client.js");
52
10
  const Client_js_6 = require("./api/resources/interactions/client/Client.js");
53
11
  const Client_js_7 = require("./api/resources/newSections/client/Client.js");
54
- const Client_js_8 = require("./api/resources/newTemplates/client/Client.js");
55
- const Client_js_9 = require("./api/resources/recordings/client/Client.js");
56
- const Client_js_10 = require("./api/resources/sections/client/Client.js");
57
- const Client_js_11 = require("./api/resources/sectionVersions/client/Client.js");
12
+ const Client_js_8 = require("./api/resources/newSectionVersions/client/Client.js");
13
+ const Client_js_9 = require("./api/resources/newTemplates/client/Client.js");
14
+ const Client_js_10 = require("./api/resources/newTemplateVersions/client/Client.js");
15
+ const Client_js_11 = require("./api/resources/recordings/client/Client.js");
58
16
  const Client_js_12 = require("./api/resources/stream/client/Client.js");
59
17
  const Client_js_13 = require("./api/resources/templates/client/Client.js");
60
- const Client_js_14 = require("./api/resources/templateVersions/client/Client.js");
61
- const Client_js_15 = require("./api/resources/transcribe/client/Client.js");
62
- const Client_js_16 = require("./api/resources/transcripts/client/Client.js");
18
+ const Client_js_14 = require("./api/resources/transcribe/client/Client.js");
19
+ const Client_js_15 = require("./api/resources/transcripts/client/Client.js");
63
20
  const BaseClient_js_1 = require("./BaseClient.js");
64
- const headers_js_1 = require("./core/headers.js");
65
- const core = __importStar(require("./core/index.js"));
66
- const handleNonStatusCodeError_js_1 = require("./errors/handleNonStatusCodeError.js");
67
- const errors = __importStar(require("./errors/index.js"));
68
21
  class CortiClient {
69
22
  constructor(options) {
70
23
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
@@ -79,11 +32,11 @@ class CortiClient {
79
32
  }
80
33
  get recordings() {
81
34
  var _a;
82
- return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_9.RecordingsClient(this._options)));
35
+ return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_11.RecordingsClient(this._options)));
83
36
  }
84
37
  get transcripts() {
85
38
  var _a;
86
- return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_16.TranscriptsClient(this._options)));
39
+ return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_15.TranscriptsClient(this._options)));
87
40
  }
88
41
  get facts() {
89
42
  var _a;
@@ -103,23 +56,19 @@ class CortiClient {
103
56
  }
104
57
  get newTemplates() {
105
58
  var _a;
106
- return ((_a = this._newTemplates) !== null && _a !== void 0 ? _a : (this._newTemplates = new Client_js_8.NewTemplatesClient(this._options)));
107
- }
108
- get templateVersions() {
109
- var _a;
110
- return ((_a = this._templateVersions) !== null && _a !== void 0 ? _a : (this._templateVersions = new Client_js_14.TemplateVersionsClient(this._options)));
59
+ return ((_a = this._newTemplates) !== null && _a !== void 0 ? _a : (this._newTemplates = new Client_js_9.NewTemplatesClient(this._options)));
111
60
  }
112
- get sections() {
61
+ get newTemplateVersions() {
113
62
  var _a;
114
- return ((_a = this._sections) !== null && _a !== void 0 ? _a : (this._sections = new Client_js_10.SectionsClient(this._options)));
63
+ return ((_a = this._newTemplateVersions) !== null && _a !== void 0 ? _a : (this._newTemplateVersions = new Client_js_10.NewTemplateVersionsClient(this._options)));
115
64
  }
116
65
  get newSections() {
117
66
  var _a;
118
67
  return ((_a = this._newSections) !== null && _a !== void 0 ? _a : (this._newSections = new Client_js_7.NewSectionsClient(this._options)));
119
68
  }
120
- get sectionVersions() {
69
+ get newSectionVersions() {
121
70
  var _a;
122
- return ((_a = this._sectionVersions) !== null && _a !== void 0 ? _a : (this._sectionVersions = new Client_js_11.SectionVersionsClient(this._options)));
71
+ return ((_a = this._newSectionVersions) !== null && _a !== void 0 ? _a : (this._newSectionVersions = new Client_js_8.NewSectionVersionsClient(this._options)));
123
72
  }
124
73
  get agents() {
125
74
  var _a;
@@ -131,159 +80,7 @@ class CortiClient {
131
80
  }
132
81
  get transcribe() {
133
82
  var _a;
134
- return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_15.TranscribeClient(this._options)));
135
- }
136
- /**
137
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
138
- *
139
- * @example
140
- * await client.getNewTemplates()
141
- */
142
- getNewTemplates(requestOptions) {
143
- return core.HttpResponsePromise.fromPromise(this.__getNewTemplates(requestOptions));
144
- }
145
- __getNewTemplates(requestOptions) {
146
- return __awaiter(this, void 0, void 0, function* () {
147
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
148
- const _authRequest = yield this._options.authProvider.getAuthRequest();
149
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
150
- const _response = yield core.fetcher({
151
- url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/templates/"),
152
- method: "GET",
153
- headers: _headers,
154
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
155
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
156
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
157
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
158
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
159
- logging: this._options.logging,
160
- });
161
- if (_response.ok) {
162
- return { data: undefined, rawResponse: _response.rawResponse };
163
- }
164
- if (_response.error.reason === "status-code") {
165
- throw new errors.CortiError({
166
- statusCode: _response.error.statusCode,
167
- body: _response.error.body,
168
- rawResponse: _response.rawResponse,
169
- });
170
- }
171
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/templates/");
172
- });
173
- }
174
- /**
175
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
176
- *
177
- * @example
178
- * await client.postNewTemplates()
179
- */
180
- postNewTemplates(requestOptions) {
181
- return core.HttpResponsePromise.fromPromise(this.__postNewTemplates(requestOptions));
182
- }
183
- __postNewTemplates(requestOptions) {
184
- return __awaiter(this, void 0, void 0, function* () {
185
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
186
- const _authRequest = yield this._options.authProvider.getAuthRequest();
187
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
188
- const _response = yield core.fetcher({
189
- url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/templates/"),
190
- method: "POST",
191
- headers: _headers,
192
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
193
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
194
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
195
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
196
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
197
- logging: this._options.logging,
198
- });
199
- if (_response.ok) {
200
- return { data: undefined, rawResponse: _response.rawResponse };
201
- }
202
- if (_response.error.reason === "status-code") {
203
- throw new errors.CortiError({
204
- statusCode: _response.error.statusCode,
205
- body: _response.error.body,
206
- rawResponse: _response.rawResponse,
207
- });
208
- }
209
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/templates/");
210
- });
211
- }
212
- /**
213
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
214
- *
215
- * @example
216
- * await client.getNewSections()
217
- */
218
- getNewSections(requestOptions) {
219
- return core.HttpResponsePromise.fromPromise(this.__getNewSections(requestOptions));
220
- }
221
- __getNewSections(requestOptions) {
222
- return __awaiter(this, void 0, void 0, function* () {
223
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
224
- const _authRequest = yield this._options.authProvider.getAuthRequest();
225
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
226
- const _response = yield core.fetcher({
227
- url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/sections/"),
228
- method: "GET",
229
- headers: _headers,
230
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
231
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
232
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
233
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
234
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
235
- logging: this._options.logging,
236
- });
237
- if (_response.ok) {
238
- return { data: undefined, rawResponse: _response.rawResponse };
239
- }
240
- if (_response.error.reason === "status-code") {
241
- throw new errors.CortiError({
242
- statusCode: _response.error.statusCode,
243
- body: _response.error.body,
244
- rawResponse: _response.rawResponse,
245
- });
246
- }
247
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/sections/");
248
- });
249
- }
250
- /**
251
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
252
- *
253
- * @example
254
- * await client.postNewSections()
255
- */
256
- postNewSections(requestOptions) {
257
- return core.HttpResponsePromise.fromPromise(this.__postNewSections(requestOptions));
258
- }
259
- __postNewSections(requestOptions) {
260
- return __awaiter(this, void 0, void 0, function* () {
261
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
262
- const _authRequest = yield this._options.authProvider.getAuthRequest();
263
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
264
- const _response = yield core.fetcher({
265
- url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/sections/"),
266
- method: "POST",
267
- headers: _headers,
268
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
269
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
270
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
271
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
272
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
273
- logging: this._options.logging,
274
- });
275
- if (_response.ok) {
276
- return { data: undefined, rawResponse: _response.rawResponse };
277
- }
278
- if (_response.error.reason === "status-code") {
279
- throw new errors.CortiError({
280
- statusCode: _response.error.statusCode,
281
- body: _response.error.body,
282
- rawResponse: _response.rawResponse,
283
- });
284
- }
285
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/sections/");
286
- });
83
+ return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_14.TranscribeClient(this._options)));
287
84
  }
288
85
  }
289
86
  exports.CortiClient = CortiClient;
@@ -14,16 +14,15 @@ export * as interactions from "./interactions/index.js";
14
14
  export * from "./interactions/types/index.js";
15
15
  export * from "./newSections/client/requests/index.js";
16
16
  export * as newSections from "./newSections/index.js";
17
+ export * as newSectionVersions from "./newSectionVersions/index.js";
17
18
  export * from "./newTemplates/client/requests/index.js";
18
19
  export * as newTemplates from "./newTemplates/index.js";
20
+ export * from "./newTemplateVersions/client/requests/index.js";
21
+ export * as newTemplateVersions from "./newTemplateVersions/index.js";
19
22
  export * as recordings from "./recordings/index.js";
20
- export * as sections from "./sections/index.js";
21
- export * as sectionVersions from "./sectionVersions/index.js";
22
23
  export * as stream from "./stream/index.js";
23
24
  export * from "./templates/client/requests/index.js";
24
25
  export * as templates from "./templates/index.js";
25
- export * from "./templateVersions/client/requests/index.js";
26
- export * as templateVersions from "./templateVersions/index.js";
27
26
  export * as transcribe from "./transcribe/index.js";
28
27
  export * from "./transcripts/client/requests/index.js";
29
28
  export * as transcripts from "./transcripts/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transcripts = exports.transcribe = exports.templateVersions = exports.templates = exports.stream = exports.sectionVersions = exports.sections = exports.recordings = exports.newTemplates = exports.newSections = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
39
+ exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.newTemplateVersions = exports.newTemplates = exports.newSectionVersions = exports.newSections = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
40
40
  __exportStar(require("./agents/client/requests/index.js"), exports);
41
41
  exports.agents = __importStar(require("./agents/index.js"));
42
42
  __exportStar(require("./agents/types/index.js"), exports);
@@ -53,16 +53,15 @@ exports.interactions = __importStar(require("./interactions/index.js"));
53
53
  __exportStar(require("./interactions/types/index.js"), exports);
54
54
  __exportStar(require("./newSections/client/requests/index.js"), exports);
55
55
  exports.newSections = __importStar(require("./newSections/index.js"));
56
+ exports.newSectionVersions = __importStar(require("./newSectionVersions/index.js"));
56
57
  __exportStar(require("./newTemplates/client/requests/index.js"), exports);
57
58
  exports.newTemplates = __importStar(require("./newTemplates/index.js"));
59
+ __exportStar(require("./newTemplateVersions/client/requests/index.js"), exports);
60
+ exports.newTemplateVersions = __importStar(require("./newTemplateVersions/index.js"));
58
61
  exports.recordings = __importStar(require("./recordings/index.js"));
59
- exports.sections = __importStar(require("./sections/index.js"));
60
- exports.sectionVersions = __importStar(require("./sectionVersions/index.js"));
61
62
  exports.stream = __importStar(require("./stream/index.js"));
62
63
  __exportStar(require("./templates/client/requests/index.js"), exports);
63
64
  exports.templates = __importStar(require("./templates/index.js"));
64
- __exportStar(require("./templateVersions/client/requests/index.js"), exports);
65
- exports.templateVersions = __importStar(require("./templateVersions/index.js"));
66
65
  exports.transcribe = __importStar(require("./transcribe/index.js"));
67
66
  __exportStar(require("./transcripts/client/requests/index.js"), exports);
68
67
  exports.transcripts = __importStar(require("./transcripts/index.js"));
@@ -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 SectionVersionsClient {
5
+ export declare namespace NewSectionVersionsClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class SectionVersionsClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<SectionVersionsClient.Options>;
12
- constructor(options: SectionVersionsClient.Options);
10
+ export declare class NewSectionVersionsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<NewSectionVersionsClient.Options>;
12
+ constructor(options: NewSectionVersionsClient.Options);
13
13
  /**
14
14
  * @param {string} sectionID
15
- * @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
15
+ * @param {NewSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
16
16
  *
17
17
  * @throws {@link Corti.NotFoundError}
18
18
  *
19
19
  * @example
20
- * await client.sectionVersions.list("sectionID")
20
+ * await client.newSectionVersions.list("sectionID")
21
21
  */
22
- list(sectionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion[]>;
22
+ list(sectionID: string, requestOptions?: NewSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion[]>;
23
23
  private __list;
24
24
  /**
25
25
  * @param {string} sectionID
26
26
  * @param {Corti.CreateSectionVersionRequest} request
27
- * @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
27
+ * @param {NewSectionVersionsClient.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.sectionVersions.create("sectionID", {
33
+ * await client.newSectionVersions.create("sectionID", {
34
34
  * title: "title",
35
35
  * instructions: {
36
36
  * contentPrompt: "contentPrompt",
@@ -38,44 +38,44 @@ export declare class SectionVersionsClient {
38
38
  * }
39
39
  * })
40
40
  */
41
- create(sectionID: string, request: Corti.CreateSectionVersionRequest, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
41
+ create(sectionID: string, request: Corti.CreateSectionVersionRequest, requestOptions?: NewSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
42
42
  private __create;
43
43
  /**
44
44
  * @param {string} sectionID
45
45
  * @param {string} versionID
46
- * @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
46
+ * @param {NewSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
47
47
  *
48
48
  * @throws {@link Corti.NotFoundError}
49
49
  *
50
50
  * @example
51
- * await client.sectionVersions.get("sectionID", "versionID")
51
+ * await client.newSectionVersions.get("sectionID", "versionID")
52
52
  */
53
- get(sectionID: string, versionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
53
+ get(sectionID: string, versionID: string, requestOptions?: NewSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
54
54
  private __get;
55
55
  /**
56
56
  * @param {string} sectionID
57
57
  * @param {string} versionID
58
- * @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
58
+ * @param {NewSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
59
59
  *
60
60
  * @throws {@link Corti.NotFoundError}
61
61
  *
62
62
  * @example
63
- * await client.sectionVersions.delete("sectionID", "versionID")
63
+ * await client.newSectionVersions.delete("sectionID", "versionID")
64
64
  */
65
- delete(sectionID: string, versionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
65
+ delete(sectionID: string, versionID: string, requestOptions?: NewSectionVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
66
66
  private __delete;
67
67
  /**
68
68
  * Sets this version as the published version of the section.
69
69
  *
70
70
  * @param {string} sectionID
71
71
  * @param {string} versionID
72
- * @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
72
+ * @param {NewSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
73
73
  *
74
74
  * @throws {@link Corti.NotFoundError}
75
75
  *
76
76
  * @example
77
- * await client.sectionVersions.publish("sectionID", "versionID")
77
+ * await client.newSectionVersions.publish("sectionID", "versionID")
78
78
  */
79
- publish(sectionID: string, versionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
79
+ publish(sectionID: string, versionID: string, requestOptions?: NewSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
80
80
  private __publish;
81
81
  }