@corti/sdk 2.0.0-templates → 2.0.0-templates.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +12 -12
  3. package/dist/cjs/Client.js +22 -22
  4. package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.ts +19 -19
  5. package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.js +14 -14
  6. package/dist/cjs/api/resources/{newSections → alphaSections}/client/Client.d.ts +20 -20
  7. package/dist/cjs/api/resources/{newSections → alphaSections}/client/Client.js +15 -15
  8. package/dist/cjs/api/resources/{newSections/client/requests/ListNewSectionsRequest.d.ts → alphaSections/client/requests/ListAlphaSectionsRequest.d.ts} +1 -1
  9. package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/index.d.ts +1 -1
  10. package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.d.ts +60 -0
  11. package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.js +13 -13
  12. package/dist/cjs/api/resources/alphaTemplates/client/Client.d.ts +68 -0
  13. package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/Client.js +15 -15
  14. package/dist/cjs/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.d.ts → alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.ts} +1 -1
  15. package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/index.d.ts +7 -7
  17. package/dist/cjs/api/resources/index.js +8 -8
  18. package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.d.ts +1 -1
  19. package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/list.d.ts +1 -1
  20. package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/list.d.ts +1 -1
  21. package/dist/cjs/serialization/resources/index.d.ts +6 -6
  22. package/dist/cjs/serialization/resources/index.js +7 -7
  23. package/dist/cjs/version.d.ts +1 -1
  24. package/dist/cjs/version.js +1 -1
  25. package/dist/esm/BaseClient.mjs +2 -2
  26. package/dist/esm/Client.d.mts +12 -12
  27. package/dist/esm/Client.mjs +12 -12
  28. package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.mts +19 -19
  29. package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.mjs +12 -12
  30. package/dist/esm/api/resources/{newSections → alphaSections}/client/Client.d.mts +20 -20
  31. package/dist/esm/api/resources/{newSections → alphaSections}/client/Client.mjs +13 -13
  32. package/dist/esm/api/resources/{newSections/client/requests/ListNewSectionsRequest.d.mts → alphaSections/client/requests/ListAlphaSectionsRequest.d.mts} +1 -1
  33. package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/index.d.mts +1 -1
  34. package/dist/esm/api/resources/alphaTemplateVersions/client/Client.d.mts +60 -0
  35. package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.mjs +11 -11
  36. package/dist/esm/api/resources/alphaTemplates/client/Client.d.mts +68 -0
  37. package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/Client.mjs +13 -13
  38. package/dist/esm/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.d.mts → alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.mts} +1 -1
  39. package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +2 -0
  40. package/dist/esm/api/resources/index.d.mts +7 -7
  41. package/dist/esm/api/resources/index.mjs +7 -7
  42. package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.d.mts +1 -1
  43. package/dist/esm/serialization/resources/{newSections → alphaSections}/client/list.d.mts +1 -1
  44. package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/list.d.mts +1 -1
  45. package/dist/esm/serialization/resources/index.d.mts +6 -6
  46. package/dist/esm/serialization/resources/index.mjs +6 -6
  47. package/dist/esm/version.d.mts +1 -1
  48. package/dist/esm/version.mjs +1 -1
  49. package/package.json +2 -4
  50. package/dist/cjs/api/resources/newTemplateVersions/client/Client.d.ts +0 -60
  51. package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +0 -68
  52. package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +0 -2
  53. package/dist/esm/api/resources/newTemplateVersions/client/Client.d.mts +0 -60
  54. package/dist/esm/api/resources/newTemplates/client/Client.d.mts +0 -68
  55. package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +0 -2
  56. /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts +0 -0
  57. /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.js +0 -0
  58. /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/index.d.ts +0 -0
  59. /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/index.js +0 -0
  60. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/index.d.ts +0 -0
  61. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/index.js +0 -0
  62. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.ts +0 -0
  63. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.js +0 -0
  64. /package/dist/cjs/api/resources/{newSections/client/requests/ListNewSectionsRequest.js → alphaSections/client/requests/ListAlphaSectionsRequest.js} +0 -0
  65. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
  66. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.js +0 -0
  67. /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/index.js +0 -0
  68. /package/dist/cjs/api/resources/{newSections → alphaSections}/index.d.ts +0 -0
  69. /package/dist/cjs/api/resources/{newSections → alphaSections}/index.js +0 -0
  70. /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.d.ts +0 -0
  71. /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.js +0 -0
  72. /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.d.ts +0 -0
  73. /package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.js +0 -0
  74. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/index.d.ts +0 -0
  75. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/index.js +0 -0
  76. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.ts +0 -0
  77. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.js +0 -0
  78. /package/dist/cjs/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.js → alphaTemplates/client/requests/ListAlphaTemplatesRequest.js} +0 -0
  79. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/index.js +0 -0
  80. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/index.d.ts +0 -0
  81. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/index.js +0 -0
  82. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.ts +0 -0
  83. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.js +0 -0
  84. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/index.d.ts +0 -0
  85. /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/index.js +0 -0
  86. /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts +0 -0
  87. /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.js +0 -0
  88. /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.js +0 -0
  89. /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.d.ts +0 -0
  90. /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.js +0 -0
  91. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/index.d.ts +0 -0
  92. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/index.js +0 -0
  93. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/list.js +0 -0
  94. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.ts +0 -0
  95. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.js +0 -0
  96. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
  97. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.js +0 -0
  98. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/index.d.ts +0 -0
  99. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/index.js +0 -0
  100. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/index.d.ts +0 -0
  101. /package/dist/cjs/serialization/resources/{newSections → alphaSections}/index.js +0 -0
  102. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/index.d.ts +0 -0
  103. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/index.js +0 -0
  104. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/list.js +0 -0
  105. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.ts +0 -0
  106. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.js +0 -0
  107. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.d.ts +0 -0
  108. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.js +0 -0
  109. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/index.d.ts +0 -0
  110. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/index.js +0 -0
  111. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.ts +0 -0
  112. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.js +0 -0
  113. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/index.d.ts +0 -0
  114. /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/index.js +0 -0
  115. /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.mts +0 -0
  116. /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.mjs +0 -0
  117. /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/index.d.mts +0 -0
  118. /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/index.mjs +0 -0
  119. /package/dist/esm/api/resources/{newSections → alphaSections}/client/index.d.mts +0 -0
  120. /package/dist/esm/api/resources/{newSections → alphaSections}/client/index.mjs +0 -0
  121. /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.mts +0 -0
  122. /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.mjs +0 -0
  123. /package/dist/esm/api/resources/{newSections/client/requests/ListNewSectionsRequest.mjs → alphaSections/client/requests/ListAlphaSectionsRequest.mjs} +0 -0
  124. /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
  125. /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.mjs +0 -0
  126. /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/index.mjs +0 -0
  127. /package/dist/esm/api/resources/{newSections → alphaSections}/index.d.mts +0 -0
  128. /package/dist/esm/api/resources/{newSections → alphaSections}/index.mjs +0 -0
  129. /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.d.mts +0 -0
  130. /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/index.mjs +0 -0
  131. /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.d.mts +0 -0
  132. /package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/index.mjs +0 -0
  133. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/index.d.mts +0 -0
  134. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/index.mjs +0 -0
  135. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.mts +0 -0
  136. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.mjs +0 -0
  137. /package/dist/esm/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.mjs → alphaTemplates/client/requests/ListAlphaTemplatesRequest.mjs} +0 -0
  138. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/index.mjs +0 -0
  139. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/index.d.mts +0 -0
  140. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/index.mjs +0 -0
  141. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.mts +0 -0
  142. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.mjs +0 -0
  143. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/index.d.mts +0 -0
  144. /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/index.mjs +0 -0
  145. /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.mts +0 -0
  146. /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.mjs +0 -0
  147. /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.mjs +0 -0
  148. /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.d.mts +0 -0
  149. /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/index.mjs +0 -0
  150. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/index.d.mts +0 -0
  151. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/index.mjs +0 -0
  152. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/list.mjs +0 -0
  153. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.mts +0 -0
  154. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.mjs +0 -0
  155. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
  156. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.mjs +0 -0
  157. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/index.d.mts +0 -0
  158. /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/index.mjs +0 -0
  159. /package/dist/esm/serialization/resources/{newSections → alphaSections}/index.d.mts +0 -0
  160. /package/dist/esm/serialization/resources/{newSections → alphaSections}/index.mjs +0 -0
  161. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/index.d.mts +0 -0
  162. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/index.mjs +0 -0
  163. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/list.mjs +0 -0
  164. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.mts +0 -0
  165. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.mjs +0 -0
  166. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.d.mts +0 -0
  167. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.mjs +0 -0
  168. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/index.d.mts +0 -0
  169. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/index.mjs +0 -0
  170. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.mts +0 -0
  171. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.mjs +0 -0
  172. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/index.d.mts +0 -0
  173. /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/index.mjs +0 -0
@@ -15,16 +15,16 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
15
15
  import * as errors from "../../../../errors/index.mjs";
16
16
  import * as serializers from "../../../../serialization/index.mjs";
17
17
  import * as Corti from "../../../index.mjs";
18
- export class NewTemplatesClient {
18
+ export class AlphaTemplatesClient {
19
19
  constructor(options) {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * @param {Corti.ListNewTemplatesRequest} request
24
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
23
+ * @param {Corti.ListAlphaTemplatesRequest} request
24
+ * @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
25
25
  *
26
26
  * @example
27
- * await client.newTemplates.list()
27
+ * await client.alphaTemplates.list()
28
28
  */
29
29
  list(request = {}, requestOptions) {
30
30
  return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
@@ -53,7 +53,7 @@ export class NewTemplatesClient {
53
53
  });
54
54
  if (_response.ok) {
55
55
  return {
56
- data: serializers.newTemplates.list.Response.parseOrThrow(_response.body, {
56
+ data: serializers.alphaTemplates.list.Response.parseOrThrow(_response.body, {
57
57
  unrecognizedObjectKeys: "passthrough",
58
58
  allowUnrecognizedUnionMembers: true,
59
59
  allowUnrecognizedEnumValues: true,
@@ -75,12 +75,12 @@ export class NewTemplatesClient {
75
75
  }
76
76
  /**
77
77
  * @param {Corti.CreateTemplateRequest} request
78
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
78
+ * @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
79
79
  *
80
80
  * @throws {@link Corti.BadRequestError}
81
81
  *
82
82
  * @example
83
- * await client.newTemplates.create({
83
+ * await client.alphaTemplates.create({
84
84
  * name: "name",
85
85
  * language: "language",
86
86
  * generation: {
@@ -144,10 +144,10 @@ export class NewTemplatesClient {
144
144
  }
145
145
  /**
146
146
  * @param {string} templateId
147
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
147
+ * @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
148
148
  *
149
149
  * @example
150
- * await client.newTemplates.get("templateId")
150
+ * await client.alphaTemplates.get("templateId")
151
151
  */
152
152
  get(templateId, requestOptions) {
153
153
  return core.HttpResponsePromise.fromPromise(this.__get(templateId, requestOptions));
@@ -183,10 +183,10 @@ export class NewTemplatesClient {
183
183
  }
184
184
  /**
185
185
  * @param {string} templateId
186
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
186
+ * @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
187
187
  *
188
188
  * @example
189
- * await client.newTemplates.delete("templateId")
189
+ * await client.alphaTemplates.delete("templateId")
190
190
  */
191
191
  delete(templateId, requestOptions) {
192
192
  return core.HttpResponsePromise.fromPromise(this.__delete(templateId, requestOptions));
@@ -222,10 +222,10 @@ export class NewTemplatesClient {
222
222
  }
223
223
  /**
224
224
  * @param {string} templateId
225
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
225
+ * @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
226
226
  *
227
227
  * @example
228
- * await client.newTemplates.update("templateId")
228
+ * await client.alphaTemplates.update("templateId")
229
229
  */
230
230
  update(templateId, requestOptions) {
231
231
  return core.HttpResponsePromise.fromPromise(this.__update(templateId, requestOptions));
@@ -2,7 +2,7 @@
2
2
  * @example
3
3
  * {}
4
4
  */
5
- export interface ListNewTemplatesRequest {
5
+ export interface ListAlphaTemplatesRequest {
6
6
  /** Filter templates by language (BCP 47 tag). Repeatable. */
7
7
  lang?: string | string[];
8
8
  /** Filter templates by label. Repeatable; matches templates that have any of the given labels. */
@@ -0,0 +1,2 @@
1
+ export type { CreateTemplateRequest } from "./CreateTemplateRequest.mjs";
2
+ export type { ListAlphaTemplatesRequest } from "./ListAlphaTemplatesRequest.mjs";
@@ -1,6 +1,13 @@
1
1
  export * from "./agents/client/requests/index.mjs";
2
2
  export * as agents from "./agents/index.mjs";
3
3
  export * from "./agents/types/index.mjs";
4
+ export * from "./alphaSections/client/requests/index.mjs";
5
+ export * as alphaSections from "./alphaSections/index.mjs";
6
+ export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
7
+ export * from "./alphaTemplates/client/requests/index.mjs";
8
+ export * as alphaTemplates from "./alphaTemplates/index.mjs";
9
+ export * from "./alphaTemplates/types/index.mjs";
10
+ export * as alphaTemplateVersions from "./alphaTemplateVersions/index.mjs";
4
11
  export * as auth from "./auth/index.mjs";
5
12
  export * from "./auth/types/index.mjs";
6
13
  export * from "./codes/client/requests/index.mjs";
@@ -12,13 +19,6 @@ export * as facts from "./facts/index.mjs";
12
19
  export * from "./interactions/client/requests/index.mjs";
13
20
  export * as interactions from "./interactions/index.mjs";
14
21
  export * from "./interactions/types/index.mjs";
15
- export * from "./newSections/client/requests/index.mjs";
16
- export * as newSections from "./newSections/index.mjs";
17
- export * as newSectionVersions from "./newSectionVersions/index.mjs";
18
- export * from "./newTemplates/client/requests/index.mjs";
19
- export * as newTemplates from "./newTemplates/index.mjs";
20
- export * from "./newTemplates/types/index.mjs";
21
- export * as newTemplateVersions from "./newTemplateVersions/index.mjs";
22
22
  export * as recordings from "./recordings/index.mjs";
23
23
  export * as stream from "./stream/index.mjs";
24
24
  export * from "./templates/client/requests/index.mjs";
@@ -1,6 +1,13 @@
1
1
  export * from "./agents/client/requests/index.mjs";
2
2
  export * as agents from "./agents/index.mjs";
3
3
  export * from "./agents/types/index.mjs";
4
+ export * from "./alphaSections/client/requests/index.mjs";
5
+ export * as alphaSections from "./alphaSections/index.mjs";
6
+ export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
7
+ export * from "./alphaTemplates/client/requests/index.mjs";
8
+ export * as alphaTemplates from "./alphaTemplates/index.mjs";
9
+ export * from "./alphaTemplates/types/index.mjs";
10
+ export * as alphaTemplateVersions from "./alphaTemplateVersions/index.mjs";
4
11
  export * as auth from "./auth/index.mjs";
5
12
  export * from "./auth/types/index.mjs";
6
13
  export * from "./codes/client/requests/index.mjs";
@@ -12,13 +19,6 @@ export * as facts from "./facts/index.mjs";
12
19
  export * from "./interactions/client/requests/index.mjs";
13
20
  export * as interactions from "./interactions/index.mjs";
14
21
  export * from "./interactions/types/index.mjs";
15
- export * from "./newSections/client/requests/index.mjs";
16
- export * as newSections from "./newSections/index.mjs";
17
- export * as newSectionVersions from "./newSectionVersions/index.mjs";
18
- export * from "./newTemplates/client/requests/index.mjs";
19
- export * as newTemplates from "./newTemplates/index.mjs";
20
- export * from "./newTemplates/types/index.mjs";
21
- export * as newTemplateVersions from "./newTemplateVersions/index.mjs";
22
22
  export * as recordings from "./recordings/index.mjs";
23
23
  export * as stream from "./stream/index.mjs";
24
24
  export * from "./templates/client/requests/index.mjs";
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { SectionVersion } from "../../../types/SectionVersion.mjs";
5
- export declare const Response: core.serialization.Schema<serializers.newSectionVersions.list.Response.Raw, Corti.SectionVersion[]>;
5
+ export declare const Response: core.serialization.Schema<serializers.alphaSectionVersions.list.Response.Raw, Corti.SectionVersion[]>;
6
6
  export declare namespace Response {
7
7
  type Raw = SectionVersion.Raw[];
8
8
  }
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { Section } from "../../../types/Section.mjs";
5
- export declare const Response: core.serialization.Schema<serializers.newSections.list.Response.Raw, Corti.Section[]>;
5
+ export declare const Response: core.serialization.Schema<serializers.alphaSections.list.Response.Raw, Corti.Section[]>;
6
6
  export declare namespace Response {
7
7
  type Raw = Section.Raw[];
8
8
  }
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { Template } from "../../../types/Template.mjs";
5
- export declare const Response: core.serialization.Schema<serializers.newTemplates.list.Response.Raw, Corti.Template[]>;
5
+ export declare const Response: core.serialization.Schema<serializers.alphaTemplates.list.Response.Raw, Corti.Template[]>;
6
6
  export declare namespace Response {
7
7
  type Raw = Template.Raw[];
8
8
  }
@@ -1,6 +1,12 @@
1
1
  export * from "./agents/client/requests/index.mjs";
2
2
  export * as agents from "./agents/index.mjs";
3
3
  export * from "./agents/types/index.mjs";
4
+ export * from "./alphaSections/client/requests/index.mjs";
5
+ export * as alphaSections from "./alphaSections/index.mjs";
6
+ export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
7
+ export * from "./alphaTemplates/client/requests/index.mjs";
8
+ export * as alphaTemplates from "./alphaTemplates/index.mjs";
9
+ export * from "./alphaTemplates/types/index.mjs";
4
10
  export * as auth from "./auth/index.mjs";
5
11
  export * from "./auth/types/index.mjs";
6
12
  export * from "./codes/client/requests/index.mjs";
@@ -12,12 +18,6 @@ export * as facts from "./facts/index.mjs";
12
18
  export * from "./interactions/client/requests/index.mjs";
13
19
  export * as interactions from "./interactions/index.mjs";
14
20
  export * from "./interactions/types/index.mjs";
15
- export * from "./newSections/client/requests/index.mjs";
16
- export * as newSections from "./newSections/index.mjs";
17
- export * as newSectionVersions from "./newSectionVersions/index.mjs";
18
- export * from "./newTemplates/client/requests/index.mjs";
19
- export * as newTemplates from "./newTemplates/index.mjs";
20
- export * from "./newTemplates/types/index.mjs";
21
21
  export * from "./stream/client/socket/index.mjs";
22
22
  export * as stream from "./stream/index.mjs";
23
23
  export * from "./transcribe/client/socket/index.mjs";
@@ -1,6 +1,12 @@
1
1
  export * from "./agents/client/requests/index.mjs";
2
2
  export * as agents from "./agents/index.mjs";
3
3
  export * from "./agents/types/index.mjs";
4
+ export * from "./alphaSections/client/requests/index.mjs";
5
+ export * as alphaSections from "./alphaSections/index.mjs";
6
+ export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
7
+ export * from "./alphaTemplates/client/requests/index.mjs";
8
+ export * as alphaTemplates from "./alphaTemplates/index.mjs";
9
+ export * from "./alphaTemplates/types/index.mjs";
4
10
  export * as auth from "./auth/index.mjs";
5
11
  export * from "./auth/types/index.mjs";
6
12
  export * from "./codes/client/requests/index.mjs";
@@ -12,12 +18,6 @@ export * as facts from "./facts/index.mjs";
12
18
  export * from "./interactions/client/requests/index.mjs";
13
19
  export * as interactions from "./interactions/index.mjs";
14
20
  export * from "./interactions/types/index.mjs";
15
- export * from "./newSections/client/requests/index.mjs";
16
- export * as newSections from "./newSections/index.mjs";
17
- export * as newSectionVersions from "./newSectionVersions/index.mjs";
18
- export * from "./newTemplates/client/requests/index.mjs";
19
- export * as newTemplates from "./newTemplates/index.mjs";
20
- export * from "./newTemplates/types/index.mjs";
21
21
  export * from "./stream/client/socket/index.mjs";
22
22
  export * as stream from "./stream/index.mjs";
23
23
  export * from "./transcribe/client/socket/index.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0-templates";
1
+ export declare const SDK_VERSION = "2.0.0-templates.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.0-templates";
1
+ export const SDK_VERSION = "2.0.0-templates.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "2.0.0-templates",
3
+ "version": "2.0.0-templates.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,9 +66,7 @@
66
66
  "test": "vitest",
67
67
  "test:unit": "vitest --project unit",
68
68
  "test:wire": "vitest --project wire",
69
- "test:integration": "pnpm test:integration:main && pnpm test:integration:empty-state",
70
- "test:integration:main": "vitest run --config vitest.integration.config.mts --project integration",
71
- "test:integration:empty-state": "vitest run --config vitest.integration.config.mts --project integration-empty-state"
69
+ "test:integration": "vitest --config vitest.integration.config.mts"
72
70
  },
73
71
  "dependencies": {
74
72
  "ws": "^8.16.0"
@@ -1,60 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
- import * as core from "../../../../core/index.js";
4
- export declare namespace NewTemplateVersionsClient {
5
- type Options = BaseClientOptions;
6
- interface RequestOptions extends BaseRequestOptions {
7
- }
8
- }
9
- export declare class NewTemplateVersionsClient {
10
- protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplateVersionsClient.Options>;
11
- constructor(options: NewTemplateVersionsClient.Options);
12
- /**
13
- * @param {string} templateId
14
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
15
- *
16
- * @example
17
- * await client.newTemplateVersions.list("templateId")
18
- */
19
- list(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
20
- private __list;
21
- /**
22
- * @param {string} templateId
23
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
24
- *
25
- * @example
26
- * await client.newTemplateVersions.create("templateId")
27
- */
28
- create(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
29
- private __create;
30
- /**
31
- * @param {string} templateId
32
- * @param {string} versionID
33
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
34
- *
35
- * @example
36
- * await client.newTemplateVersions.get("templateId", "versionID")
37
- */
38
- get(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
39
- private __get;
40
- /**
41
- * @param {string} templateId
42
- * @param {string} versionID
43
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
44
- *
45
- * @example
46
- * await client.newTemplateVersions.delete("templateId", "versionID")
47
- */
48
- delete(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
49
- private __delete;
50
- /**
51
- * @param {string} templateId
52
- * @param {string} versionID
53
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
54
- *
55
- * @example
56
- * await client.newTemplateVersions.publish("templateId", "versionID")
57
- */
58
- publish(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
59
- private __publish;
60
- }
@@ -1,68 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
- import * as core from "../../../../core/index.js";
4
- import * as Corti from "../../../index.js";
5
- export declare namespace NewTemplatesClient {
6
- type Options = BaseClientOptions;
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class NewTemplatesClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplatesClient.Options>;
12
- constructor(options: NewTemplatesClient.Options);
13
- /**
14
- * @param {Corti.ListNewTemplatesRequest} request
15
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
16
- *
17
- * @example
18
- * await client.newTemplates.list()
19
- */
20
- list(request?: Corti.ListNewTemplatesRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template[]>;
21
- private __list;
22
- /**
23
- * @param {Corti.CreateTemplateRequest} request
24
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
25
- *
26
- * @throws {@link Corti.BadRequestError}
27
- *
28
- * @example
29
- * await client.newTemplates.create({
30
- * name: "name",
31
- * language: "language",
32
- * generation: {
33
- * instructions: {
34
- * prompt: "prompt"
35
- * }
36
- * }
37
- * })
38
- */
39
- create(request: Corti.CreateTemplateRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
40
- private __create;
41
- /**
42
- * @param {string} templateId
43
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
44
- *
45
- * @example
46
- * await client.newTemplates.get("templateId")
47
- */
48
- get(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
49
- private __get;
50
- /**
51
- * @param {string} templateId
52
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
53
- *
54
- * @example
55
- * await client.newTemplates.delete("templateId")
56
- */
57
- delete(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
58
- private __delete;
59
- /**
60
- * @param {string} templateId
61
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
62
- *
63
- * @example
64
- * await client.newTemplates.update("templateId")
65
- */
66
- update(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
67
- private __update;
68
- }
@@ -1,2 +0,0 @@
1
- export type { CreateTemplateRequest } from "./CreateTemplateRequest.js";
2
- export type { ListNewTemplatesRequest } from "./ListNewTemplatesRequest.js";
@@ -1,60 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
- export declare namespace NewTemplateVersionsClient {
5
- type Options = BaseClientOptions;
6
- interface RequestOptions extends BaseRequestOptions {
7
- }
8
- }
9
- export declare class NewTemplateVersionsClient {
10
- protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplateVersionsClient.Options>;
11
- constructor(options: NewTemplateVersionsClient.Options);
12
- /**
13
- * @param {string} templateId
14
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
15
- *
16
- * @example
17
- * await client.newTemplateVersions.list("templateId")
18
- */
19
- list(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
20
- private __list;
21
- /**
22
- * @param {string} templateId
23
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
24
- *
25
- * @example
26
- * await client.newTemplateVersions.create("templateId")
27
- */
28
- create(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
29
- private __create;
30
- /**
31
- * @param {string} templateId
32
- * @param {string} versionID
33
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
34
- *
35
- * @example
36
- * await client.newTemplateVersions.get("templateId", "versionID")
37
- */
38
- get(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
39
- private __get;
40
- /**
41
- * @param {string} templateId
42
- * @param {string} versionID
43
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
44
- *
45
- * @example
46
- * await client.newTemplateVersions.delete("templateId", "versionID")
47
- */
48
- delete(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
49
- private __delete;
50
- /**
51
- * @param {string} templateId
52
- * @param {string} versionID
53
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
54
- *
55
- * @example
56
- * await client.newTemplateVersions.publish("templateId", "versionID")
57
- */
58
- publish(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
59
- private __publish;
60
- }
@@ -1,68 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
- import * as Corti from "../../../index.mjs";
5
- export declare namespace NewTemplatesClient {
6
- type Options = BaseClientOptions;
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class NewTemplatesClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplatesClient.Options>;
12
- constructor(options: NewTemplatesClient.Options);
13
- /**
14
- * @param {Corti.ListNewTemplatesRequest} request
15
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
16
- *
17
- * @example
18
- * await client.newTemplates.list()
19
- */
20
- list(request?: Corti.ListNewTemplatesRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template[]>;
21
- private __list;
22
- /**
23
- * @param {Corti.CreateTemplateRequest} request
24
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
25
- *
26
- * @throws {@link Corti.BadRequestError}
27
- *
28
- * @example
29
- * await client.newTemplates.create({
30
- * name: "name",
31
- * language: "language",
32
- * generation: {
33
- * instructions: {
34
- * prompt: "prompt"
35
- * }
36
- * }
37
- * })
38
- */
39
- create(request: Corti.CreateTemplateRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
40
- private __create;
41
- /**
42
- * @param {string} templateId
43
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
44
- *
45
- * @example
46
- * await client.newTemplates.get("templateId")
47
- */
48
- get(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
49
- private __get;
50
- /**
51
- * @param {string} templateId
52
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
53
- *
54
- * @example
55
- * await client.newTemplates.delete("templateId")
56
- */
57
- delete(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
58
- private __delete;
59
- /**
60
- * @param {string} templateId
61
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
62
- *
63
- * @example
64
- * await client.newTemplates.update("templateId")
65
- */
66
- update(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
67
- private __update;
68
- }
@@ -1,2 +0,0 @@
1
- export type { CreateTemplateRequest } from "./CreateTemplateRequest.mjs";
2
- export type { ListNewTemplatesRequest } from "./ListNewTemplatesRequest.mjs";