@corti/sdk 1.2.0-templates-beta.1 → 1.2.0-templates-beta.3

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 (185) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +12 -42
  3. package/dist/cjs/Client.js +24 -217
  4. package/dist/cjs/api/resources/index.d.ts +7 -5
  5. package/dist/cjs/api/resources/index.js +8 -6
  6. package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/Client.d.ts +19 -19
  7. package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/Client.js +14 -14
  8. package/dist/cjs/api/resources/newSections/client/Client.d.ts +64 -0
  9. package/dist/cjs/api/resources/{sections → newSections}/client/Client.js +88 -12
  10. package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/Client.d.ts +19 -19
  11. package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/Client.js +14 -14
  12. package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +64 -0
  13. package/dist/cjs/api/resources/newTemplates/client/Client.js +301 -0
  14. package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/newTemplates/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/templates/client/Client.d.ts +0 -35
  17. package/dist/cjs/api/resources/templates/client/Client.js +0 -166
  18. package/dist/cjs/api/resources/templates/client/requests/index.d.ts +0 -1
  19. package/dist/cjs/api/types/StreamConfig.d.ts +3 -1
  20. package/dist/cjs/api/types/index.d.ts +0 -2
  21. package/dist/cjs/api/types/index.js +0 -2
  22. package/dist/cjs/serialization/resources/index.d.ts +7 -7
  23. package/dist/cjs/serialization/resources/index.js +8 -8
  24. package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/list.d.ts +1 -1
  25. package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/list.d.ts +1 -1
  26. package/dist/cjs/serialization/resources/newTemplates/client/index.d.ts +1 -0
  27. package/dist/cjs/serialization/resources/newTemplates/client/index.js +17 -0
  28. package/dist/cjs/serialization/resources/newTemplates/index.d.ts +1 -0
  29. package/dist/cjs/serialization/resources/newTemplates/index.js +17 -0
  30. package/dist/cjs/serialization/types/StreamConfig.d.ts +3 -2
  31. package/dist/cjs/serialization/types/StreamConfig.js +3 -2
  32. package/dist/cjs/serialization/types/index.d.ts +0 -2
  33. package/dist/cjs/serialization/types/index.js +0 -2
  34. package/dist/cjs/version.d.ts +1 -1
  35. package/dist/cjs/version.js +1 -1
  36. package/dist/esm/BaseClient.mjs +2 -2
  37. package/dist/esm/Client.d.mts +12 -42
  38. package/dist/esm/Client.mjs +14 -174
  39. package/dist/esm/api/resources/index.d.mts +7 -5
  40. package/dist/esm/api/resources/index.mjs +7 -5
  41. package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/Client.d.mts +19 -19
  42. package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/Client.mjs +12 -12
  43. package/dist/esm/api/resources/newSections/client/Client.d.mts +64 -0
  44. package/dist/esm/api/resources/{sections → newSections}/client/Client.mjs +86 -10
  45. package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/Client.d.mts +19 -19
  46. package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/Client.mjs +12 -12
  47. package/dist/esm/api/resources/newTemplates/client/Client.d.mts +64 -0
  48. package/dist/esm/api/resources/newTemplates/client/Client.mjs +264 -0
  49. package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +1 -0
  50. package/dist/esm/api/resources/newTemplates/client/requests/index.mjs +1 -0
  51. package/dist/esm/api/resources/templates/client/Client.d.mts +0 -35
  52. package/dist/esm/api/resources/templates/client/Client.mjs +0 -166
  53. package/dist/esm/api/resources/templates/client/requests/index.d.mts +0 -1
  54. package/dist/esm/api/types/StreamConfig.d.mts +3 -1
  55. package/dist/esm/api/types/index.d.mts +0 -2
  56. package/dist/esm/api/types/index.mjs +0 -2
  57. package/dist/esm/serialization/resources/index.d.mts +7 -7
  58. package/dist/esm/serialization/resources/index.mjs +7 -7
  59. package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/list.d.mts +1 -1
  60. package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/list.d.mts +1 -1
  61. package/dist/esm/serialization/resources/newTemplates/client/index.d.mts +1 -0
  62. package/dist/esm/serialization/resources/newTemplates/client/index.mjs +1 -0
  63. package/dist/esm/serialization/resources/newTemplates/index.d.mts +1 -0
  64. package/dist/esm/serialization/resources/newTemplates/index.mjs +1 -0
  65. package/dist/esm/serialization/types/StreamConfig.d.mts +3 -2
  66. package/dist/esm/serialization/types/StreamConfig.mjs +3 -2
  67. package/dist/esm/serialization/types/index.d.mts +0 -2
  68. package/dist/esm/serialization/types/index.mjs +0 -2
  69. package/dist/esm/version.d.mts +1 -1
  70. package/dist/esm/version.mjs +1 -1
  71. package/package.json +1 -1
  72. package/dist/cjs/api/resources/sections/client/Client.d.ts +0 -48
  73. package/dist/cjs/api/types/StreamConfigXCortiRetentionPolicy.d.ts +0 -6
  74. package/dist/cjs/api/types/StreamConfigXCortiRetentionPolicy.js +0 -9
  75. package/dist/cjs/serialization/types/StreamConfigXCortiRetentionPolicy.d.ts +0 -7
  76. package/dist/cjs/serialization/types/StreamConfigXCortiRetentionPolicy.js +0 -39
  77. package/dist/esm/api/resources/sections/client/Client.d.mts +0 -48
  78. package/dist/esm/api/types/StreamConfigXCortiRetentionPolicy.d.mts +0 -6
  79. package/dist/esm/api/types/StreamConfigXCortiRetentionPolicy.mjs +0 -6
  80. package/dist/esm/serialization/types/StreamConfigXCortiRetentionPolicy.d.mts +0 -7
  81. package/dist/esm/serialization/types/StreamConfigXCortiRetentionPolicy.mjs +0 -3
  82. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/index.d.ts +0 -0
  83. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/client/index.js +0 -0
  84. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/index.d.ts +0 -0
  85. /package/dist/cjs/api/resources/{sectionVersions → newSectionVersions}/index.js +0 -0
  86. /package/dist/cjs/api/resources/{sections → newSections}/client/index.d.ts +0 -0
  87. /package/dist/cjs/api/resources/{sections → newSections}/client/index.js +0 -0
  88. /package/dist/cjs/api/resources/{sections → newSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
  89. /package/dist/cjs/api/resources/{sections → newSections}/client/requests/UpdateSectionRequest.js +0 -0
  90. /package/dist/cjs/api/resources/{sections → newSections}/client/requests/index.d.ts +0 -0
  91. /package/dist/cjs/api/resources/{sections → newSections}/client/requests/index.js +0 -0
  92. /package/dist/cjs/api/resources/{sections → newSections}/index.d.ts +0 -0
  93. /package/dist/cjs/api/resources/{sections → newSections}/index.js +0 -0
  94. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/index.d.ts +0 -0
  95. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/index.js +0 -0
  96. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.ts +0 -0
  97. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.js +0 -0
  98. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.ts +0 -0
  99. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/client/requests/index.js +0 -0
  100. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/index.d.ts +0 -0
  101. /package/dist/cjs/api/resources/{templateVersions → newTemplateVersions}/index.js +0 -0
  102. /package/dist/cjs/{serialization/resources/sections → api/resources/newTemplates}/client/index.d.ts +0 -0
  103. /package/dist/cjs/{serialization/resources/sections → api/resources/newTemplates}/client/index.js +0 -0
  104. /package/dist/cjs/api/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.d.ts +0 -0
  105. /package/dist/cjs/api/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.js +0 -0
  106. /package/dist/cjs/{serialization/resources/sectionVersions → api/resources/newTemplates}/index.d.ts +0 -0
  107. /package/dist/cjs/{serialization/resources/sectionVersions → api/resources/newTemplates}/index.js +0 -0
  108. /package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/index.d.ts +0 -0
  109. /package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/index.js +0 -0
  110. /package/dist/cjs/serialization/resources/{sectionVersions → newSectionVersions}/client/list.js +0 -0
  111. /package/dist/cjs/serialization/resources/{sections → newSectionVersions}/index.d.ts +0 -0
  112. /package/dist/cjs/serialization/resources/{sections → newSectionVersions}/index.js +0 -0
  113. /package/dist/cjs/serialization/resources/{templates → newSections}/client/index.d.ts +0 -0
  114. /package/dist/cjs/serialization/resources/{templates → newSections}/client/index.js +0 -0
  115. /package/dist/cjs/serialization/resources/{sections → newSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
  116. /package/dist/cjs/serialization/resources/{sections → newSections}/client/requests/UpdateSectionRequest.js +0 -0
  117. /package/dist/cjs/serialization/resources/{sections → newSections}/client/requests/index.d.ts +0 -0
  118. /package/dist/cjs/serialization/resources/{sections → newSections}/client/requests/index.js +0 -0
  119. /package/dist/cjs/serialization/resources/{templateVersions → newSections}/index.d.ts +0 -0
  120. /package/dist/cjs/serialization/resources/{templateVersions → newSections}/index.js +0 -0
  121. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/index.d.ts +0 -0
  122. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/index.js +0 -0
  123. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/list.js +0 -0
  124. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.ts +0 -0
  125. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.js +0 -0
  126. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.ts +0 -0
  127. /package/dist/cjs/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.js +0 -0
  128. /package/dist/cjs/serialization/resources/{templates → newTemplateVersions}/index.d.ts +0 -0
  129. /package/dist/cjs/serialization/resources/{templates → newTemplateVersions}/index.js +0 -0
  130. /package/dist/cjs/serialization/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.d.ts +0 -0
  131. /package/dist/cjs/serialization/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.js +0 -0
  132. /package/dist/cjs/serialization/resources/{templates → newTemplates}/client/requests/index.d.ts +0 -0
  133. /package/dist/cjs/serialization/resources/{templates → newTemplates}/client/requests/index.js +0 -0
  134. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/index.d.mts +0 -0
  135. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/client/index.mjs +0 -0
  136. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/index.d.mts +0 -0
  137. /package/dist/esm/api/resources/{sectionVersions → newSectionVersions}/index.mjs +0 -0
  138. /package/dist/esm/api/resources/{sections → newSections}/client/index.d.mts +0 -0
  139. /package/dist/esm/api/resources/{sections → newSections}/client/index.mjs +0 -0
  140. /package/dist/esm/api/resources/{sections → newSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
  141. /package/dist/esm/api/resources/{sections → newSections}/client/requests/UpdateSectionRequest.mjs +0 -0
  142. /package/dist/esm/api/resources/{sections → newSections}/client/requests/index.d.mts +0 -0
  143. /package/dist/esm/api/resources/{sections → newSections}/client/requests/index.mjs +0 -0
  144. /package/dist/esm/api/resources/{sections → newSections}/index.d.mts +0 -0
  145. /package/dist/esm/api/resources/{sections → newSections}/index.mjs +0 -0
  146. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/index.d.mts +0 -0
  147. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/index.mjs +0 -0
  148. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.mts +0 -0
  149. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.mjs +0 -0
  150. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.mts +0 -0
  151. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/client/requests/index.mjs +0 -0
  152. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/index.d.mts +0 -0
  153. /package/dist/esm/api/resources/{templateVersions → newTemplateVersions}/index.mjs +0 -0
  154. /package/dist/esm/{serialization/resources/sections → api/resources/newTemplates}/client/index.d.mts +0 -0
  155. /package/dist/esm/{serialization/resources/sections → api/resources/newTemplates}/client/index.mjs +0 -0
  156. /package/dist/esm/api/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.d.mts +0 -0
  157. /package/dist/esm/api/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.mjs +0 -0
  158. /package/dist/esm/{serialization/resources/sectionVersions → api/resources/newTemplates}/index.d.mts +0 -0
  159. /package/dist/esm/{serialization/resources/sectionVersions → api/resources/newTemplates}/index.mjs +0 -0
  160. /package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/index.d.mts +0 -0
  161. /package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/index.mjs +0 -0
  162. /package/dist/esm/serialization/resources/{sectionVersions → newSectionVersions}/client/list.mjs +0 -0
  163. /package/dist/esm/serialization/resources/{sections → newSectionVersions}/index.d.mts +0 -0
  164. /package/dist/esm/serialization/resources/{sections → newSectionVersions}/index.mjs +0 -0
  165. /package/dist/esm/serialization/resources/{templates → newSections}/client/index.d.mts +0 -0
  166. /package/dist/esm/serialization/resources/{templates → newSections}/client/index.mjs +0 -0
  167. /package/dist/esm/serialization/resources/{sections → newSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
  168. /package/dist/esm/serialization/resources/{sections → newSections}/client/requests/UpdateSectionRequest.mjs +0 -0
  169. /package/dist/esm/serialization/resources/{sections → newSections}/client/requests/index.d.mts +0 -0
  170. /package/dist/esm/serialization/resources/{sections → newSections}/client/requests/index.mjs +0 -0
  171. /package/dist/esm/serialization/resources/{templateVersions → newSections}/index.d.mts +0 -0
  172. /package/dist/esm/serialization/resources/{templateVersions → newSections}/index.mjs +0 -0
  173. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/index.d.mts +0 -0
  174. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/index.mjs +0 -0
  175. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/list.mjs +0 -0
  176. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.d.mts +0 -0
  177. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/CreateTemplateVersionRequest.mjs +0 -0
  178. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.d.mts +0 -0
  179. /package/dist/esm/serialization/resources/{templateVersions → newTemplateVersions}/client/requests/index.mjs +0 -0
  180. /package/dist/esm/serialization/resources/{templates → newTemplateVersions}/index.d.mts +0 -0
  181. /package/dist/esm/serialization/resources/{templates → newTemplateVersions}/index.mjs +0 -0
  182. /package/dist/esm/serialization/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.d.mts +0 -0
  183. /package/dist/esm/serialization/resources/{templates → newTemplates}/client/requests/UpdateTemplateRequest.mjs +0 -0
  184. /package/dist/esm/serialization/resources/{templates → newTemplates}/client/requests/index.d.mts +0 -0
  185. /package/dist/esm/serialization/resources/{templates → newTemplates}/client/requests/index.mjs +0 -0
@@ -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.1",
47
- "User-Agent": "@corti/sdk/1.2.0-templates-beta.1",
46
+ "X-Fern-SDK-Version": "1.2.0-templates-beta.3",
47
+ "User-Agent": "@corti/sdk/1.2.0-templates-beta.3",
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,
@@ -4,17 +4,17 @@ import { CodesClient } from "./api/resources/codes/client/Client.js";
4
4
  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
+ 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";
7
11
  import { RecordingsClient } from "./api/resources/recordings/client/Client.js";
8
- import { SectionsClient } from "./api/resources/sections/client/Client.js";
9
- import { SectionVersionsClient } from "./api/resources/sectionVersions/client/Client.js";
10
12
  import { StreamClient } from "./api/resources/stream/client/Client.js";
11
13
  import { TemplatesClient } from "./api/resources/templates/client/Client.js";
12
- import { TemplateVersionsClient } from "./api/resources/templateVersions/client/Client.js";
13
14
  import { TranscribeClient } from "./api/resources/transcribe/client/Client.js";
14
15
  import { TranscriptsClient } from "./api/resources/transcripts/client/Client.js";
15
16
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
16
17
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
17
- import * as core from "./core/index.js";
18
18
  export declare namespace CortiClient {
19
19
  type Options = BaseClientOptions;
20
20
  interface RequestOptions extends BaseRequestOptions {
@@ -30,9 +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 _templateVersions: TemplateVersionsClient | undefined;
34
- protected _sections: SectionsClient | undefined;
35
- protected _sectionVersions: SectionVersionsClient | undefined;
33
+ protected _newTemplates: NewTemplatesClient | undefined;
34
+ protected _newTemplateVersions: NewTemplateVersionsClient | undefined;
35
+ protected _newSections: NewSectionsClient | undefined;
36
+ protected _newSectionVersions: NewSectionVersionsClient | undefined;
36
37
  protected _agents: AgentsClient | undefined;
37
38
  protected _stream: StreamClient | undefined;
38
39
  protected _transcribe: TranscribeClient | undefined;
@@ -45,42 +46,11 @@ export declare class CortiClient {
45
46
  get documents(): DocumentsClient;
46
47
  get templates(): TemplatesClient;
47
48
  get codes(): CodesClient;
48
- get templateVersions(): TemplateVersionsClient;
49
- get sections(): SectionsClient;
50
- get sectionVersions(): SectionVersionsClient;
49
+ get newTemplates(): NewTemplatesClient;
50
+ get newTemplateVersions(): NewTemplateVersionsClient;
51
+ get newSections(): NewSectionsClient;
52
+ get newSectionVersions(): NewSectionVersionsClient;
51
53
  get agents(): AgentsClient;
52
54
  get stream(): StreamClient;
53
55
  get transcribe(): TranscribeClient;
54
- /**
55
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
56
- *
57
- * @example
58
- * await client.getNewTemplates()
59
- */
60
- getNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
61
- private __getNewTemplates;
62
- /**
63
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
64
- *
65
- * @example
66
- * await client.postNewTemplates()
67
- */
68
- postNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
69
- private __postNewTemplates;
70
- /**
71
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
72
- *
73
- * @example
74
- * await client.getNewSections()
75
- */
76
- getNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
77
- private __getNewSections;
78
- /**
79
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
80
- *
81
- * @example
82
- * await client.postNewSections()
83
- */
84
- postNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
85
- private __postNewSections;
86
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");
@@ -50,19 +8,16 @@ const Client_js_3 = require("./api/resources/codes/client/Client.js");
50
8
  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
- const Client_js_7 = require("./api/resources/recordings/client/Client.js");
54
- const Client_js_8 = require("./api/resources/sections/client/Client.js");
55
- const Client_js_9 = require("./api/resources/sectionVersions/client/Client.js");
56
- const Client_js_10 = require("./api/resources/stream/client/Client.js");
57
- const Client_js_11 = require("./api/resources/templates/client/Client.js");
58
- const Client_js_12 = require("./api/resources/templateVersions/client/Client.js");
59
- const Client_js_13 = require("./api/resources/transcribe/client/Client.js");
60
- const Client_js_14 = require("./api/resources/transcripts/client/Client.js");
11
+ const Client_js_7 = require("./api/resources/newSections/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");
16
+ const Client_js_12 = require("./api/resources/stream/client/Client.js");
17
+ const Client_js_13 = require("./api/resources/templates/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");
61
20
  const BaseClient_js_1 = require("./BaseClient.js");
62
- const headers_js_1 = require("./core/headers.js");
63
- const core = __importStar(require("./core/index.js"));
64
- const handleNonStatusCodeError_js_1 = require("./errors/handleNonStatusCodeError.js");
65
- const errors = __importStar(require("./errors/index.js"));
66
21
  class CortiClient {
67
22
  constructor(options) {
68
23
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
@@ -77,11 +32,11 @@ class CortiClient {
77
32
  }
78
33
  get recordings() {
79
34
  var _a;
80
- return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_7.RecordingsClient(this._options)));
35
+ return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_11.RecordingsClient(this._options)));
81
36
  }
82
37
  get transcripts() {
83
38
  var _a;
84
- return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_14.TranscriptsClient(this._options)));
39
+ return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_15.TranscriptsClient(this._options)));
85
40
  }
86
41
  get facts() {
87
42
  var _a;
@@ -93,23 +48,27 @@ class CortiClient {
93
48
  }
94
49
  get templates() {
95
50
  var _a;
96
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_11.TemplatesClient(this._options)));
51
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_13.TemplatesClient(this._options)));
97
52
  }
98
53
  get codes() {
99
54
  var _a;
100
55
  return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_3.CodesClient(this._options)));
101
56
  }
102
- get templateVersions() {
57
+ get newTemplates() {
58
+ var _a;
59
+ return ((_a = this._newTemplates) !== null && _a !== void 0 ? _a : (this._newTemplates = new Client_js_9.NewTemplatesClient(this._options)));
60
+ }
61
+ get newTemplateVersions() {
103
62
  var _a;
104
- return ((_a = this._templateVersions) !== null && _a !== void 0 ? _a : (this._templateVersions = new Client_js_12.TemplateVersionsClient(this._options)));
63
+ return ((_a = this._newTemplateVersions) !== null && _a !== void 0 ? _a : (this._newTemplateVersions = new Client_js_10.NewTemplateVersionsClient(this._options)));
105
64
  }
106
- get sections() {
65
+ get newSections() {
107
66
  var _a;
108
- return ((_a = this._sections) !== null && _a !== void 0 ? _a : (this._sections = new Client_js_8.SectionsClient(this._options)));
67
+ return ((_a = this._newSections) !== null && _a !== void 0 ? _a : (this._newSections = new Client_js_7.NewSectionsClient(this._options)));
109
68
  }
110
- get sectionVersions() {
69
+ get newSectionVersions() {
111
70
  var _a;
112
- return ((_a = this._sectionVersions) !== null && _a !== void 0 ? _a : (this._sectionVersions = new Client_js_9.SectionVersionsClient(this._options)));
71
+ return ((_a = this._newSectionVersions) !== null && _a !== void 0 ? _a : (this._newSectionVersions = new Client_js_8.NewSectionVersionsClient(this._options)));
113
72
  }
114
73
  get agents() {
115
74
  var _a;
@@ -117,163 +76,11 @@ class CortiClient {
117
76
  }
118
77
  get stream() {
119
78
  var _a;
120
- return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_10.StreamClient(this._options)));
79
+ return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_12.StreamClient(this._options)));
121
80
  }
122
81
  get transcribe() {
123
82
  var _a;
124
- return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_13.TranscribeClient(this._options)));
125
- }
126
- /**
127
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
128
- *
129
- * @example
130
- * await client.getNewTemplates()
131
- */
132
- getNewTemplates(requestOptions) {
133
- return core.HttpResponsePromise.fromPromise(this.__getNewTemplates(requestOptions));
134
- }
135
- __getNewTemplates(requestOptions) {
136
- return __awaiter(this, void 0, void 0, function* () {
137
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
138
- const _authRequest = yield this._options.authProvider.getAuthRequest();
139
- 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);
140
- const _response = yield core.fetcher({
141
- 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/"),
142
- method: "GET",
143
- headers: _headers,
144
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
145
- 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,
146
- 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,
147
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
148
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
149
- logging: this._options.logging,
150
- });
151
- if (_response.ok) {
152
- return { data: undefined, rawResponse: _response.rawResponse };
153
- }
154
- if (_response.error.reason === "status-code") {
155
- throw new errors.CortiError({
156
- statusCode: _response.error.statusCode,
157
- body: _response.error.body,
158
- rawResponse: _response.rawResponse,
159
- });
160
- }
161
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/templates/");
162
- });
163
- }
164
- /**
165
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
166
- *
167
- * @example
168
- * await client.postNewTemplates()
169
- */
170
- postNewTemplates(requestOptions) {
171
- return core.HttpResponsePromise.fromPromise(this.__postNewTemplates(requestOptions));
172
- }
173
- __postNewTemplates(requestOptions) {
174
- return __awaiter(this, void 0, void 0, function* () {
175
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
176
- const _authRequest = yield this._options.authProvider.getAuthRequest();
177
- 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);
178
- const _response = yield core.fetcher({
179
- 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/"),
180
- method: "POST",
181
- headers: _headers,
182
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
183
- 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,
184
- 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,
185
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
186
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
187
- logging: this._options.logging,
188
- });
189
- if (_response.ok) {
190
- return { data: undefined, rawResponse: _response.rawResponse };
191
- }
192
- if (_response.error.reason === "status-code") {
193
- throw new errors.CortiError({
194
- statusCode: _response.error.statusCode,
195
- body: _response.error.body,
196
- rawResponse: _response.rawResponse,
197
- });
198
- }
199
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/templates/");
200
- });
201
- }
202
- /**
203
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
204
- *
205
- * @example
206
- * await client.getNewSections()
207
- */
208
- getNewSections(requestOptions) {
209
- return core.HttpResponsePromise.fromPromise(this.__getNewSections(requestOptions));
210
- }
211
- __getNewSections(requestOptions) {
212
- return __awaiter(this, void 0, void 0, function* () {
213
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
214
- const _authRequest = yield this._options.authProvider.getAuthRequest();
215
- 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);
216
- const _response = yield core.fetcher({
217
- 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/"),
218
- method: "GET",
219
- headers: _headers,
220
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
221
- 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,
222
- 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,
223
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
224
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
225
- logging: this._options.logging,
226
- });
227
- if (_response.ok) {
228
- return { data: undefined, rawResponse: _response.rawResponse };
229
- }
230
- if (_response.error.reason === "status-code") {
231
- throw new errors.CortiError({
232
- statusCode: _response.error.statusCode,
233
- body: _response.error.body,
234
- rawResponse: _response.rawResponse,
235
- });
236
- }
237
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/sections/");
238
- });
239
- }
240
- /**
241
- * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
242
- *
243
- * @example
244
- * await client.postNewSections()
245
- */
246
- postNewSections(requestOptions) {
247
- return core.HttpResponsePromise.fromPromise(this.__postNewSections(requestOptions));
248
- }
249
- __postNewSections(requestOptions) {
250
- return __awaiter(this, void 0, void 0, function* () {
251
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
252
- const _authRequest = yield this._options.authProvider.getAuthRequest();
253
- 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);
254
- const _response = yield core.fetcher({
255
- 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/"),
256
- method: "POST",
257
- headers: _headers,
258
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
259
- 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,
260
- 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,
261
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
263
- logging: this._options.logging,
264
- });
265
- if (_response.ok) {
266
- return { data: undefined, rawResponse: _response.rawResponse };
267
- }
268
- if (_response.error.reason === "status-code") {
269
- throw new errors.CortiError({
270
- statusCode: _response.error.statusCode,
271
- body: _response.error.body,
272
- rawResponse: _response.rawResponse,
273
- });
274
- }
275
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/sections/");
276
- });
83
+ return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_14.TranscribeClient(this._options)));
277
84
  }
278
85
  }
279
86
  exports.CortiClient = CortiClient;
@@ -12,15 +12,17 @@ export * as facts from "./facts/index.js";
12
12
  export * from "./interactions/client/requests/index.js";
13
13
  export * as interactions from "./interactions/index.js";
14
14
  export * from "./interactions/types/index.js";
15
+ export * from "./newSections/client/requests/index.js";
16
+ export * as newSections from "./newSections/index.js";
17
+ export * as newSectionVersions from "./newSectionVersions/index.js";
18
+ export * from "./newTemplates/client/requests/index.js";
19
+ export * as newTemplates from "./newTemplates/index.js";
20
+ export * from "./newTemplateVersions/client/requests/index.js";
21
+ export * as newTemplateVersions from "./newTemplateVersions/index.js";
15
22
  export * as recordings from "./recordings/index.js";
16
- export * from "./sections/client/requests/index.js";
17
- export * as sections from "./sections/index.js";
18
- export * as sectionVersions from "./sectionVersions/index.js";
19
23
  export * as stream from "./stream/index.js";
20
24
  export * from "./templates/client/requests/index.js";
21
25
  export * as templates from "./templates/index.js";
22
- export * from "./templateVersions/client/requests/index.js";
23
- export * as templateVersions from "./templateVersions/index.js";
24
26
  export * as transcribe from "./transcribe/index.js";
25
27
  export * from "./transcripts/client/requests/index.js";
26
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.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);
@@ -51,15 +51,17 @@ exports.facts = __importStar(require("./facts/index.js"));
51
51
  __exportStar(require("./interactions/client/requests/index.js"), exports);
52
52
  exports.interactions = __importStar(require("./interactions/index.js"));
53
53
  __exportStar(require("./interactions/types/index.js"), exports);
54
+ __exportStar(require("./newSections/client/requests/index.js"), exports);
55
+ exports.newSections = __importStar(require("./newSections/index.js"));
56
+ exports.newSectionVersions = __importStar(require("./newSectionVersions/index.js"));
57
+ __exportStar(require("./newTemplates/client/requests/index.js"), exports);
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"));
54
61
  exports.recordings = __importStar(require("./recordings/index.js"));
55
- __exportStar(require("./sections/client/requests/index.js"), exports);
56
- exports.sections = __importStar(require("./sections/index.js"));
57
- exports.sectionVersions = __importStar(require("./sectionVersions/index.js"));
58
62
  exports.stream = __importStar(require("./stream/index.js"));
59
63
  __exportStar(require("./templates/client/requests/index.js"), exports);
60
64
  exports.templates = __importStar(require("./templates/index.js"));
61
- __exportStar(require("./templateVersions/client/requests/index.js"), exports);
62
- exports.templateVersions = __importStar(require("./templateVersions/index.js"));
63
65
  exports.transcribe = __importStar(require("./transcribe/index.js"));
64
66
  __exportStar(require("./transcripts/client/requests/index.js"), exports);
65
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
  }