@corti/sdk 1.2.0-templates-beta.4 → 2.0.0-rc

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 (339) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +0 -12
  3. package/dist/cjs/Client.js +10 -30
  4. package/dist/cjs/api/resources/index.d.ts +0 -7
  5. package/dist/cjs/api/resources/index.js +1 -8
  6. package/dist/cjs/api/types/index.d.ts +0 -17
  7. package/dist/cjs/api/types/index.js +0 -17
  8. package/dist/cjs/custom/CortiClient.js +2 -2
  9. package/dist/cjs/custom/auth/CortiAuth.js +2 -2
  10. package/dist/cjs/custom/stream/CustomStream.js +2 -2
  11. package/dist/cjs/custom/transcribe/CustomTranscribe.js +3 -3
  12. package/dist/cjs/serialization/resources/index.d.ts +0 -7
  13. package/dist/cjs/serialization/resources/index.js +1 -8
  14. package/dist/cjs/serialization/types/index.d.ts +0 -17
  15. package/dist/cjs/serialization/types/index.js +0 -17
  16. package/dist/cjs/version.d.ts +1 -1
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/esm/BaseClient.mjs +2 -2
  19. package/dist/esm/Client.d.mts +0 -12
  20. package/dist/esm/Client.mjs +0 -20
  21. package/dist/esm/api/resources/index.d.mts +0 -7
  22. package/dist/esm/api/resources/index.mjs +0 -7
  23. package/dist/esm/api/types/index.d.mts +0 -17
  24. package/dist/esm/api/types/index.mjs +0 -17
  25. package/dist/esm/custom/CortiClient.mjs +2 -2
  26. package/dist/esm/custom/auth/CortiAuth.mjs +2 -2
  27. package/dist/esm/custom/stream/CustomStream.mjs +2 -2
  28. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +3 -3
  29. package/dist/esm/serialization/resources/index.d.mts +0 -7
  30. package/dist/esm/serialization/resources/index.mjs +0 -7
  31. package/dist/esm/serialization/types/index.d.mts +0 -17
  32. package/dist/esm/serialization/types/index.mjs +0 -17
  33. package/dist/esm/version.d.mts +1 -1
  34. package/dist/esm/version.mjs +1 -1
  35. package/package.json +1 -1
  36. package/dist/cjs/api/resources/newSectionVersions/client/Client.d.ts +0 -81
  37. package/dist/cjs/api/resources/newSectionVersions/client/Client.js +0 -346
  38. package/dist/cjs/api/resources/newSectionVersions/client/index.d.ts +0 -1
  39. package/dist/cjs/api/resources/newSectionVersions/client/index.js +0 -2
  40. package/dist/cjs/api/resources/newSectionVersions/index.d.ts +0 -1
  41. package/dist/cjs/api/resources/newSectionVersions/index.js +0 -17
  42. package/dist/cjs/api/resources/newSections/client/Client.d.ts +0 -78
  43. package/dist/cjs/api/resources/newSections/client/Client.js +0 -350
  44. package/dist/cjs/api/resources/newSections/client/index.d.ts +0 -1
  45. package/dist/cjs/api/resources/newSections/client/index.js +0 -17
  46. package/dist/cjs/api/resources/newSections/client/requests/CreateSectionRequest.d.ts +0 -30
  47. package/dist/cjs/api/resources/newSections/client/requests/CreateSectionRequest.js +0 -3
  48. package/dist/cjs/api/resources/newSections/client/requests/ListNewSectionsRequest.d.ts +0 -12
  49. package/dist/cjs/api/resources/newSections/client/requests/ListNewSectionsRequest.js +0 -3
  50. package/dist/cjs/api/resources/newSections/client/requests/UpdateSectionRequest.d.ts +0 -10
  51. package/dist/cjs/api/resources/newSections/client/requests/UpdateSectionRequest.js +0 -3
  52. package/dist/cjs/api/resources/newSections/client/requests/index.d.ts +0 -3
  53. package/dist/cjs/api/resources/newSections/client/requests/index.js +0 -2
  54. package/dist/cjs/api/resources/newSections/index.d.ts +0 -1
  55. package/dist/cjs/api/resources/newSections/index.js +0 -17
  56. package/dist/cjs/api/resources/newTemplateVersions/client/Client.d.ts +0 -75
  57. package/dist/cjs/api/resources/newTemplateVersions/client/Client.js +0 -340
  58. package/dist/cjs/api/resources/newTemplateVersions/client/index.d.ts +0 -1
  59. package/dist/cjs/api/resources/newTemplateVersions/client/index.js +0 -17
  60. package/dist/cjs/api/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +0 -9
  61. package/dist/cjs/api/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.js +0 -3
  62. package/dist/cjs/api/resources/newTemplateVersions/client/requests/index.d.ts +0 -1
  63. package/dist/cjs/api/resources/newTemplateVersions/client/requests/index.js +0 -2
  64. package/dist/cjs/api/resources/newTemplateVersions/index.d.ts +0 -1
  65. package/dist/cjs/api/resources/newTemplateVersions/index.js +0 -17
  66. package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +0 -71
  67. package/dist/cjs/api/resources/newTemplates/client/Client.js +0 -343
  68. package/dist/cjs/api/resources/newTemplates/client/index.d.ts +0 -1
  69. package/dist/cjs/api/resources/newTemplates/client/index.js +0 -17
  70. package/dist/cjs/api/resources/newTemplates/client/requests/CreateTemplateRequest.d.ts +0 -24
  71. package/dist/cjs/api/resources/newTemplates/client/requests/CreateTemplateRequest.js +0 -3
  72. package/dist/cjs/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.d.ts +0 -12
  73. package/dist/cjs/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.js +0 -3
  74. package/dist/cjs/api/resources/newTemplates/client/requests/UpdateTemplateRequest.d.ts +0 -10
  75. package/dist/cjs/api/resources/newTemplates/client/requests/UpdateTemplateRequest.js +0 -3
  76. package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +0 -3
  77. package/dist/cjs/api/resources/newTemplates/client/requests/index.js +0 -2
  78. package/dist/cjs/api/resources/newTemplates/index.d.ts +0 -1
  79. package/dist/cjs/api/resources/newTemplates/index.js +0 -17
  80. package/dist/cjs/api/types/BoolNode.d.ts +0 -7
  81. package/dist/cjs/api/types/BoolNode.js +0 -3
  82. package/dist/cjs/api/types/CreateSectionVersionRequest.d.ts +0 -7
  83. package/dist/cjs/api/types/CreateSectionVersionRequest.js +0 -3
  84. package/dist/cjs/api/types/DictNode.d.ts +0 -12
  85. package/dist/cjs/api/types/DictNode.js +0 -3
  86. package/dist/cjs/api/types/FieldDefinition.d.ts +0 -8
  87. package/dist/cjs/api/types/FieldDefinition.js +0 -3
  88. package/dist/cjs/api/types/FloatNode.d.ts +0 -13
  89. package/dist/cjs/api/types/FloatNode.js +0 -3
  90. package/dist/cjs/api/types/IntegerNode.d.ts +0 -13
  91. package/dist/cjs/api/types/IntegerNode.js +0 -3
  92. package/dist/cjs/api/types/ListNode.d.ts +0 -13
  93. package/dist/cjs/api/types/ListNode.js +0 -3
  94. package/dist/cjs/api/types/OutputSchema.d.ts +0 -2
  95. package/dist/cjs/api/types/OutputSchema.js +0 -3
  96. package/dist/cjs/api/types/Section.d.ts +0 -21
  97. package/dist/cjs/api/types/Section.js +0 -3
  98. package/dist/cjs/api/types/SectionInstructions.d.ts +0 -6
  99. package/dist/cjs/api/types/SectionInstructions.js +0 -3
  100. package/dist/cjs/api/types/SectionVersion.d.ts +0 -12
  101. package/dist/cjs/api/types/SectionVersion.js +0 -3
  102. package/dist/cjs/api/types/StatusResponse.d.ts +0 -3
  103. package/dist/cjs/api/types/StatusResponse.js +0 -3
  104. package/dist/cjs/api/types/StringNode.d.ts +0 -11
  105. package/dist/cjs/api/types/StringNode.js +0 -3
  106. package/dist/cjs/api/types/Template.d.ts +0 -22
  107. package/dist/cjs/api/types/Template.js +0 -3
  108. package/dist/cjs/api/types/TemplateInstructions.d.ts +0 -4
  109. package/dist/cjs/api/types/TemplateInstructions.js +0 -3
  110. package/dist/cjs/api/types/TemplateVersion.d.ts +0 -10
  111. package/dist/cjs/api/types/TemplateVersion.js +0 -3
  112. package/dist/cjs/api/types/TemplateVersionSectionRequest.d.ts +0 -7
  113. package/dist/cjs/api/types/TemplateVersionSectionRequest.js +0 -3
  114. package/dist/cjs/serialization/resources/newSectionVersions/client/index.d.ts +0 -1
  115. package/dist/cjs/serialization/resources/newSectionVersions/client/index.js +0 -37
  116. package/dist/cjs/serialization/resources/newSectionVersions/client/list.d.ts +0 -8
  117. package/dist/cjs/serialization/resources/newSectionVersions/client/list.js +0 -40
  118. package/dist/cjs/serialization/resources/newSectionVersions/index.d.ts +0 -1
  119. package/dist/cjs/serialization/resources/newSectionVersions/index.js +0 -17
  120. package/dist/cjs/serialization/resources/newSections/client/index.d.ts +0 -2
  121. package/dist/cjs/serialization/resources/newSections/client/index.js +0 -41
  122. package/dist/cjs/serialization/resources/newSections/client/list.d.ts +0 -8
  123. package/dist/cjs/serialization/resources/newSections/client/list.js +0 -40
  124. package/dist/cjs/serialization/resources/newSections/client/requests/CreateSectionRequest.d.ts +0 -16
  125. package/dist/cjs/serialization/resources/newSections/client/requests/CreateSectionRequest.js +0 -48
  126. package/dist/cjs/serialization/resources/newSections/client/requests/UpdateSectionRequest.d.ts +0 -12
  127. package/dist/cjs/serialization/resources/newSections/client/requests/UpdateSectionRequest.js +0 -44
  128. package/dist/cjs/serialization/resources/newSections/client/requests/index.d.ts +0 -2
  129. package/dist/cjs/serialization/resources/newSections/client/requests/index.js +0 -7
  130. package/dist/cjs/serialization/resources/newSections/index.d.ts +0 -1
  131. package/dist/cjs/serialization/resources/newSections/index.js +0 -17
  132. package/dist/cjs/serialization/resources/newTemplateVersions/client/index.d.ts +0 -2
  133. package/dist/cjs/serialization/resources/newTemplateVersions/client/index.js +0 -41
  134. package/dist/cjs/serialization/resources/newTemplateVersions/client/list.d.ts +0 -8
  135. package/dist/cjs/serialization/resources/newTemplateVersions/client/list.js +0 -40
  136. package/dist/cjs/serialization/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +0 -12
  137. package/dist/cjs/serialization/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.js +0 -44
  138. package/dist/cjs/serialization/resources/newTemplateVersions/client/requests/index.d.ts +0 -1
  139. package/dist/cjs/serialization/resources/newTemplateVersions/client/requests/index.js +0 -5
  140. package/dist/cjs/serialization/resources/newTemplateVersions/index.d.ts +0 -1
  141. package/dist/cjs/serialization/resources/newTemplateVersions/index.js +0 -17
  142. package/dist/cjs/serialization/resources/newTemplates/client/index.d.ts +0 -2
  143. package/dist/cjs/serialization/resources/newTemplates/client/index.js +0 -41
  144. package/dist/cjs/serialization/resources/newTemplates/client/list.d.ts +0 -8
  145. package/dist/cjs/serialization/resources/newTemplates/client/list.js +0 -40
  146. package/dist/cjs/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.d.ts +0 -18
  147. package/dist/cjs/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.js +0 -50
  148. package/dist/cjs/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.d.ts +0 -12
  149. package/dist/cjs/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.js +0 -44
  150. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.d.ts +0 -2
  151. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.js +0 -7
  152. package/dist/cjs/serialization/resources/newTemplates/index.d.ts +0 -1
  153. package/dist/cjs/serialization/resources/newTemplates/index.js +0 -17
  154. package/dist/cjs/serialization/types/BoolNode.d.ts +0 -11
  155. package/dist/cjs/serialization/types/BoolNode.js +0 -43
  156. package/dist/cjs/serialization/types/CreateSectionVersionRequest.d.ts +0 -12
  157. package/dist/cjs/serialization/types/CreateSectionVersionRequest.js +0 -45
  158. package/dist/cjs/serialization/types/DictNode.d.ts +0 -13
  159. package/dist/cjs/serialization/types/DictNode.js +0 -46
  160. package/dist/cjs/serialization/types/FieldDefinition.d.ts +0 -11
  161. package/dist/cjs/serialization/types/FieldDefinition.js +0 -44
  162. package/dist/cjs/serialization/types/FloatNode.d.ts +0 -14
  163. package/dist/cjs/serialization/types/FloatNode.js +0 -46
  164. package/dist/cjs/serialization/types/IntegerNode.d.ts +0 -14
  165. package/dist/cjs/serialization/types/IntegerNode.js +0 -46
  166. package/dist/cjs/serialization/types/ListNode.d.ts +0 -14
  167. package/dist/cjs/serialization/types/ListNode.js +0 -47
  168. package/dist/cjs/serialization/types/OutputSchema.d.ts +0 -11
  169. package/dist/cjs/serialization/types/OutputSchema.js +0 -51
  170. package/dist/cjs/serialization/types/Section.d.ts +0 -18
  171. package/dist/cjs/serialization/types/Section.js +0 -50
  172. package/dist/cjs/serialization/types/SectionInstructions.d.ts +0 -10
  173. package/dist/cjs/serialization/types/SectionInstructions.js +0 -42
  174. package/dist/cjs/serialization/types/SectionVersion.d.ts +0 -14
  175. package/dist/cjs/serialization/types/SectionVersion.js +0 -47
  176. package/dist/cjs/serialization/types/StatusResponse.d.ts +0 -9
  177. package/dist/cjs/serialization/types/StatusResponse.js +0 -41
  178. package/dist/cjs/serialization/types/StringNode.d.ts +0 -13
  179. package/dist/cjs/serialization/types/StringNode.js +0 -45
  180. package/dist/cjs/serialization/types/Template.d.ts +0 -19
  181. package/dist/cjs/serialization/types/Template.js +0 -51
  182. package/dist/cjs/serialization/types/TemplateInstructions.d.ts +0 -9
  183. package/dist/cjs/serialization/types/TemplateInstructions.js +0 -41
  184. package/dist/cjs/serialization/types/TemplateVersion.d.ts +0 -14
  185. package/dist/cjs/serialization/types/TemplateVersion.js +0 -46
  186. package/dist/cjs/serialization/types/TemplateVersionSectionRequest.d.ts +0 -11
  187. package/dist/cjs/serialization/types/TemplateVersionSectionRequest.js +0 -43
  188. package/dist/esm/api/resources/newSectionVersions/client/Client.d.mts +0 -81
  189. package/dist/esm/api/resources/newSectionVersions/client/Client.mjs +0 -309
  190. package/dist/esm/api/resources/newSectionVersions/client/index.d.mts +0 -1
  191. package/dist/esm/api/resources/newSectionVersions/client/index.mjs +0 -1
  192. package/dist/esm/api/resources/newSectionVersions/index.d.mts +0 -1
  193. package/dist/esm/api/resources/newSectionVersions/index.mjs +0 -1
  194. package/dist/esm/api/resources/newSections/client/Client.d.mts +0 -78
  195. package/dist/esm/api/resources/newSections/client/Client.mjs +0 -313
  196. package/dist/esm/api/resources/newSections/client/index.d.mts +0 -1
  197. package/dist/esm/api/resources/newSections/client/index.mjs +0 -1
  198. package/dist/esm/api/resources/newSections/client/requests/CreateSectionRequest.d.mts +0 -30
  199. package/dist/esm/api/resources/newSections/client/requests/CreateSectionRequest.mjs +0 -2
  200. package/dist/esm/api/resources/newSections/client/requests/ListNewSectionsRequest.d.mts +0 -12
  201. package/dist/esm/api/resources/newSections/client/requests/ListNewSectionsRequest.mjs +0 -2
  202. package/dist/esm/api/resources/newSections/client/requests/UpdateSectionRequest.d.mts +0 -10
  203. package/dist/esm/api/resources/newSections/client/requests/UpdateSectionRequest.mjs +0 -2
  204. package/dist/esm/api/resources/newSections/client/requests/index.d.mts +0 -3
  205. package/dist/esm/api/resources/newSections/client/requests/index.mjs +0 -1
  206. package/dist/esm/api/resources/newSections/index.d.mts +0 -1
  207. package/dist/esm/api/resources/newSections/index.mjs +0 -1
  208. package/dist/esm/api/resources/newTemplateVersions/client/Client.d.mts +0 -75
  209. package/dist/esm/api/resources/newTemplateVersions/client/Client.mjs +0 -303
  210. package/dist/esm/api/resources/newTemplateVersions/client/index.d.mts +0 -1
  211. package/dist/esm/api/resources/newTemplateVersions/client/index.mjs +0 -1
  212. package/dist/esm/api/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +0 -9
  213. package/dist/esm/api/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs +0 -2
  214. package/dist/esm/api/resources/newTemplateVersions/client/requests/index.d.mts +0 -1
  215. package/dist/esm/api/resources/newTemplateVersions/client/requests/index.mjs +0 -1
  216. package/dist/esm/api/resources/newTemplateVersions/index.d.mts +0 -1
  217. package/dist/esm/api/resources/newTemplateVersions/index.mjs +0 -1
  218. package/dist/esm/api/resources/newTemplates/client/Client.d.mts +0 -71
  219. package/dist/esm/api/resources/newTemplates/client/Client.mjs +0 -306
  220. package/dist/esm/api/resources/newTemplates/client/index.d.mts +0 -1
  221. package/dist/esm/api/resources/newTemplates/client/index.mjs +0 -1
  222. package/dist/esm/api/resources/newTemplates/client/requests/CreateTemplateRequest.d.mts +0 -24
  223. package/dist/esm/api/resources/newTemplates/client/requests/CreateTemplateRequest.mjs +0 -2
  224. package/dist/esm/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.d.mts +0 -12
  225. package/dist/esm/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.mjs +0 -2
  226. package/dist/esm/api/resources/newTemplates/client/requests/UpdateTemplateRequest.d.mts +0 -10
  227. package/dist/esm/api/resources/newTemplates/client/requests/UpdateTemplateRequest.mjs +0 -2
  228. package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +0 -3
  229. package/dist/esm/api/resources/newTemplates/client/requests/index.mjs +0 -1
  230. package/dist/esm/api/resources/newTemplates/index.d.mts +0 -1
  231. package/dist/esm/api/resources/newTemplates/index.mjs +0 -1
  232. package/dist/esm/api/types/BoolNode.d.mts +0 -7
  233. package/dist/esm/api/types/BoolNode.mjs +0 -2
  234. package/dist/esm/api/types/CreateSectionVersionRequest.d.mts +0 -7
  235. package/dist/esm/api/types/CreateSectionVersionRequest.mjs +0 -2
  236. package/dist/esm/api/types/DictNode.d.mts +0 -12
  237. package/dist/esm/api/types/DictNode.mjs +0 -2
  238. package/dist/esm/api/types/FieldDefinition.d.mts +0 -8
  239. package/dist/esm/api/types/FieldDefinition.mjs +0 -2
  240. package/dist/esm/api/types/FloatNode.d.mts +0 -13
  241. package/dist/esm/api/types/FloatNode.mjs +0 -2
  242. package/dist/esm/api/types/IntegerNode.d.mts +0 -13
  243. package/dist/esm/api/types/IntegerNode.mjs +0 -2
  244. package/dist/esm/api/types/ListNode.d.mts +0 -13
  245. package/dist/esm/api/types/ListNode.mjs +0 -2
  246. package/dist/esm/api/types/OutputSchema.d.mts +0 -2
  247. package/dist/esm/api/types/OutputSchema.mjs +0 -2
  248. package/dist/esm/api/types/Section.d.mts +0 -21
  249. package/dist/esm/api/types/Section.mjs +0 -2
  250. package/dist/esm/api/types/SectionInstructions.d.mts +0 -6
  251. package/dist/esm/api/types/SectionInstructions.mjs +0 -2
  252. package/dist/esm/api/types/SectionVersion.d.mts +0 -12
  253. package/dist/esm/api/types/SectionVersion.mjs +0 -2
  254. package/dist/esm/api/types/StatusResponse.d.mts +0 -3
  255. package/dist/esm/api/types/StatusResponse.mjs +0 -2
  256. package/dist/esm/api/types/StringNode.d.mts +0 -11
  257. package/dist/esm/api/types/StringNode.mjs +0 -2
  258. package/dist/esm/api/types/Template.d.mts +0 -22
  259. package/dist/esm/api/types/Template.mjs +0 -2
  260. package/dist/esm/api/types/TemplateInstructions.d.mts +0 -4
  261. package/dist/esm/api/types/TemplateInstructions.mjs +0 -2
  262. package/dist/esm/api/types/TemplateVersion.d.mts +0 -10
  263. package/dist/esm/api/types/TemplateVersion.mjs +0 -2
  264. package/dist/esm/api/types/TemplateVersionSectionRequest.d.mts +0 -7
  265. package/dist/esm/api/types/TemplateVersionSectionRequest.mjs +0 -2
  266. package/dist/esm/serialization/resources/newSectionVersions/client/index.d.mts +0 -1
  267. package/dist/esm/serialization/resources/newSectionVersions/client/index.mjs +0 -1
  268. package/dist/esm/serialization/resources/newSectionVersions/client/list.d.mts +0 -8
  269. package/dist/esm/serialization/resources/newSectionVersions/client/list.mjs +0 -4
  270. package/dist/esm/serialization/resources/newSectionVersions/index.d.mts +0 -1
  271. package/dist/esm/serialization/resources/newSectionVersions/index.mjs +0 -1
  272. package/dist/esm/serialization/resources/newSections/client/index.d.mts +0 -2
  273. package/dist/esm/serialization/resources/newSections/client/index.mjs +0 -2
  274. package/dist/esm/serialization/resources/newSections/client/list.d.mts +0 -8
  275. package/dist/esm/serialization/resources/newSections/client/list.mjs +0 -4
  276. package/dist/esm/serialization/resources/newSections/client/requests/CreateSectionRequest.d.mts +0 -16
  277. package/dist/esm/serialization/resources/newSections/client/requests/CreateSectionRequest.mjs +0 -12
  278. package/dist/esm/serialization/resources/newSections/client/requests/UpdateSectionRequest.d.mts +0 -12
  279. package/dist/esm/serialization/resources/newSections/client/requests/UpdateSectionRequest.mjs +0 -8
  280. package/dist/esm/serialization/resources/newSections/client/requests/index.d.mts +0 -2
  281. package/dist/esm/serialization/resources/newSections/client/requests/index.mjs +0 -2
  282. package/dist/esm/serialization/resources/newSections/index.d.mts +0 -1
  283. package/dist/esm/serialization/resources/newSections/index.mjs +0 -1
  284. package/dist/esm/serialization/resources/newTemplateVersions/client/index.d.mts +0 -2
  285. package/dist/esm/serialization/resources/newTemplateVersions/client/index.mjs +0 -2
  286. package/dist/esm/serialization/resources/newTemplateVersions/client/list.d.mts +0 -8
  287. package/dist/esm/serialization/resources/newTemplateVersions/client/list.mjs +0 -4
  288. package/dist/esm/serialization/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +0 -12
  289. package/dist/esm/serialization/resources/newTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs +0 -8
  290. package/dist/esm/serialization/resources/newTemplateVersions/client/requests/index.d.mts +0 -1
  291. package/dist/esm/serialization/resources/newTemplateVersions/client/requests/index.mjs +0 -1
  292. package/dist/esm/serialization/resources/newTemplateVersions/index.d.mts +0 -1
  293. package/dist/esm/serialization/resources/newTemplateVersions/index.mjs +0 -1
  294. package/dist/esm/serialization/resources/newTemplates/client/index.d.mts +0 -2
  295. package/dist/esm/serialization/resources/newTemplates/client/index.mjs +0 -2
  296. package/dist/esm/serialization/resources/newTemplates/client/list.d.mts +0 -8
  297. package/dist/esm/serialization/resources/newTemplates/client/list.mjs +0 -4
  298. package/dist/esm/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.d.mts +0 -18
  299. package/dist/esm/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.mjs +0 -14
  300. package/dist/esm/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.d.mts +0 -12
  301. package/dist/esm/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.mjs +0 -8
  302. package/dist/esm/serialization/resources/newTemplates/client/requests/index.d.mts +0 -2
  303. package/dist/esm/serialization/resources/newTemplates/client/requests/index.mjs +0 -2
  304. package/dist/esm/serialization/resources/newTemplates/index.d.mts +0 -1
  305. package/dist/esm/serialization/resources/newTemplates/index.mjs +0 -1
  306. package/dist/esm/serialization/types/BoolNode.d.mts +0 -11
  307. package/dist/esm/serialization/types/BoolNode.mjs +0 -7
  308. package/dist/esm/serialization/types/CreateSectionVersionRequest.d.mts +0 -12
  309. package/dist/esm/serialization/types/CreateSectionVersionRequest.mjs +0 -9
  310. package/dist/esm/serialization/types/DictNode.d.mts +0 -13
  311. package/dist/esm/serialization/types/DictNode.mjs +0 -10
  312. package/dist/esm/serialization/types/FieldDefinition.d.mts +0 -11
  313. package/dist/esm/serialization/types/FieldDefinition.mjs +0 -8
  314. package/dist/esm/serialization/types/FloatNode.d.mts +0 -14
  315. package/dist/esm/serialization/types/FloatNode.mjs +0 -10
  316. package/dist/esm/serialization/types/IntegerNode.d.mts +0 -14
  317. package/dist/esm/serialization/types/IntegerNode.mjs +0 -10
  318. package/dist/esm/serialization/types/ListNode.d.mts +0 -14
  319. package/dist/esm/serialization/types/ListNode.mjs +0 -11
  320. package/dist/esm/serialization/types/OutputSchema.d.mts +0 -11
  321. package/dist/esm/serialization/types/OutputSchema.mjs +0 -15
  322. package/dist/esm/serialization/types/Section.d.mts +0 -18
  323. package/dist/esm/serialization/types/Section.mjs +0 -14
  324. package/dist/esm/serialization/types/SectionInstructions.d.mts +0 -10
  325. package/dist/esm/serialization/types/SectionInstructions.mjs +0 -6
  326. package/dist/esm/serialization/types/SectionVersion.d.mts +0 -14
  327. package/dist/esm/serialization/types/SectionVersion.mjs +0 -11
  328. package/dist/esm/serialization/types/StatusResponse.d.mts +0 -9
  329. package/dist/esm/serialization/types/StatusResponse.mjs +0 -5
  330. package/dist/esm/serialization/types/StringNode.d.mts +0 -13
  331. package/dist/esm/serialization/types/StringNode.mjs +0 -9
  332. package/dist/esm/serialization/types/Template.d.mts +0 -19
  333. package/dist/esm/serialization/types/Template.mjs +0 -15
  334. package/dist/esm/serialization/types/TemplateInstructions.d.mts +0 -9
  335. package/dist/esm/serialization/types/TemplateInstructions.mjs +0 -5
  336. package/dist/esm/serialization/types/TemplateVersion.d.mts +0 -14
  337. package/dist/esm/serialization/types/TemplateVersion.mjs +0 -10
  338. package/dist/esm/serialization/types/TemplateVersionSectionRequest.d.mts +0 -11
  339. package/dist/esm/serialization/types/TemplateVersionSectionRequest.mjs +0 -7
@@ -1,303 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
13
- import * as core from "../../../../core/index.mjs";
14
- import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
15
- import * as errors from "../../../../errors/index.mjs";
16
- import * as serializers from "../../../../serialization/index.mjs";
17
- import * as Corti from "../../../index.mjs";
18
- export class NewTemplateVersionsClient {
19
- constructor(options) {
20
- this._options = normalizeClientOptionsWithAuth(options);
21
- }
22
- /**
23
- * @param {string} templateId
24
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
25
- *
26
- * @throws {@link Corti.NotFoundError}
27
- *
28
- * @example
29
- * await client.newTemplateVersions.list("templateId")
30
- */
31
- list(templateId, requestOptions) {
32
- return core.HttpResponsePromise.fromPromise(this.__list(templateId, requestOptions));
33
- }
34
- __list(templateId, requestOptions) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
37
- const _authRequest = yield this._options.authProvider.getAuthRequest();
38
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
39
- const _response = yield core.fetcher({
40
- 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/${core.url.encodePathParam(templateId)}/versions`),
41
- method: "GET",
42
- headers: _headers,
43
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
44
- 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,
45
- 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,
46
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
47
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
48
- logging: this._options.logging,
49
- });
50
- if (_response.ok) {
51
- return {
52
- data: serializers.newTemplateVersions.list.Response.parseOrThrow(_response.body, {
53
- unrecognizedObjectKeys: "passthrough",
54
- allowUnrecognizedUnionMembers: true,
55
- allowUnrecognizedEnumValues: true,
56
- skipValidation: true,
57
- breadcrumbsPrefix: ["response"],
58
- }),
59
- rawResponse: _response.rawResponse,
60
- };
61
- }
62
- if (_response.error.reason === "status-code") {
63
- switch (_response.error.statusCode) {
64
- case 404:
65
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
66
- default:
67
- throw new errors.CortiError({
68
- statusCode: _response.error.statusCode,
69
- body: _response.error.body,
70
- rawResponse: _response.rawResponse,
71
- });
72
- }
73
- }
74
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/new/templates/{templateId}/versions");
75
- });
76
- }
77
- /**
78
- * @param {string} templateId
79
- * @param {Corti.CreateTemplateVersionRequest} request
80
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
81
- *
82
- * @throws {@link Corti.BadRequestError}
83
- * @throws {@link Corti.NotFoundError}
84
- *
85
- * @example
86
- * await client.newTemplateVersions.create("templateId")
87
- */
88
- create(templateId, request = {}, requestOptions) {
89
- return core.HttpResponsePromise.fromPromise(this.__create(templateId, request, requestOptions));
90
- }
91
- __create(templateId_1) {
92
- return __awaiter(this, arguments, void 0, function* (templateId, request = {}, requestOptions) {
93
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
94
- const _authRequest = yield this._options.authProvider.getAuthRequest();
95
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
96
- const _response = yield core.fetcher({
97
- 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/${core.url.encodePathParam(templateId)}/versions`),
98
- method: "POST",
99
- headers: _headers,
100
- contentType: "application/json",
101
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
102
- requestType: "json",
103
- body: serializers.CreateTemplateVersionRequest.jsonOrThrow(request, {
104
- unrecognizedObjectKeys: "strip",
105
- omitUndefined: true,
106
- }),
107
- 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,
108
- 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,
109
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
111
- logging: this._options.logging,
112
- });
113
- if (_response.ok) {
114
- return {
115
- data: serializers.TemplateVersion.parseOrThrow(_response.body, {
116
- unrecognizedObjectKeys: "passthrough",
117
- allowUnrecognizedUnionMembers: true,
118
- allowUnrecognizedEnumValues: true,
119
- skipValidation: true,
120
- breadcrumbsPrefix: ["response"],
121
- }),
122
- rawResponse: _response.rawResponse,
123
- };
124
- }
125
- if (_response.error.reason === "status-code") {
126
- switch (_response.error.statusCode) {
127
- case 400:
128
- throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
129
- case 404:
130
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
131
- default:
132
- throw new errors.CortiError({
133
- statusCode: _response.error.statusCode,
134
- body: _response.error.body,
135
- rawResponse: _response.rawResponse,
136
- });
137
- }
138
- }
139
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/new/templates/{templateId}/versions");
140
- });
141
- }
142
- /**
143
- * @param {string} templateId
144
- * @param {string} versionID
145
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
146
- *
147
- * @throws {@link Corti.NotFoundError}
148
- *
149
- * @example
150
- * await client.newTemplateVersions.get("templateId", "versionID")
151
- */
152
- get(templateId, versionID, requestOptions) {
153
- return core.HttpResponsePromise.fromPromise(this.__get(templateId, versionID, requestOptions));
154
- }
155
- __get(templateId, versionID, requestOptions) {
156
- return __awaiter(this, void 0, void 0, function* () {
157
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
158
- const _authRequest = yield this._options.authProvider.getAuthRequest();
159
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
160
- const _response = yield core.fetcher({
161
- 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/${core.url.encodePathParam(templateId)}/versions/${core.url.encodePathParam(versionID)}`),
162
- method: "GET",
163
- headers: _headers,
164
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
165
- 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,
166
- 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,
167
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
168
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
169
- logging: this._options.logging,
170
- });
171
- if (_response.ok) {
172
- return {
173
- data: serializers.TemplateVersion.parseOrThrow(_response.body, {
174
- unrecognizedObjectKeys: "passthrough",
175
- allowUnrecognizedUnionMembers: true,
176
- allowUnrecognizedEnumValues: true,
177
- skipValidation: true,
178
- breadcrumbsPrefix: ["response"],
179
- }),
180
- rawResponse: _response.rawResponse,
181
- };
182
- }
183
- if (_response.error.reason === "status-code") {
184
- switch (_response.error.statusCode) {
185
- case 404:
186
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
187
- default:
188
- throw new errors.CortiError({
189
- statusCode: _response.error.statusCode,
190
- body: _response.error.body,
191
- rawResponse: _response.rawResponse,
192
- });
193
- }
194
- }
195
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/new/templates/{templateId}/versions/{versionID}");
196
- });
197
- }
198
- /**
199
- * @param {string} templateId
200
- * @param {string} versionID
201
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
202
- *
203
- * @throws {@link Corti.NotFoundError}
204
- *
205
- * @example
206
- * await client.newTemplateVersions.delete("templateId", "versionID")
207
- */
208
- delete(templateId, versionID, requestOptions) {
209
- return core.HttpResponsePromise.fromPromise(this.__delete(templateId, versionID, requestOptions));
210
- }
211
- __delete(templateId, versionID, 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 = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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/templates/${core.url.encodePathParam(templateId)}/versions/${core.url.encodePathParam(versionID)}`),
218
- method: "DELETE",
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
- switch (_response.error.statusCode) {
232
- case 404:
233
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
234
- default:
235
- throw new errors.CortiError({
236
- statusCode: _response.error.statusCode,
237
- body: _response.error.body,
238
- rawResponse: _response.rawResponse,
239
- });
240
- }
241
- }
242
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/new/templates/{templateId}/versions/{versionID}");
243
- });
244
- }
245
- /**
246
- * Sets this version as the published version of the template.
247
- *
248
- * @param {string} templateId
249
- * @param {string} versionID
250
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
251
- *
252
- * @throws {@link Corti.NotFoundError}
253
- *
254
- * @example
255
- * await client.newTemplateVersions.publish("templateId", "versionID")
256
- */
257
- publish(templateId, versionID, requestOptions) {
258
- return core.HttpResponsePromise.fromPromise(this.__publish(templateId, versionID, requestOptions));
259
- }
260
- __publish(templateId, versionID, requestOptions) {
261
- return __awaiter(this, void 0, void 0, function* () {
262
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
263
- const _authRequest = yield this._options.authProvider.getAuthRequest();
264
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
265
- const _response = yield core.fetcher({
266
- 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/${core.url.encodePathParam(templateId)}/versions/${core.url.encodePathParam(versionID)}/publish`),
267
- method: "POST",
268
- headers: _headers,
269
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
270
- 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,
271
- 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,
272
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
273
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
274
- logging: this._options.logging,
275
- });
276
- if (_response.ok) {
277
- return {
278
- data: serializers.StatusResponse.parseOrThrow(_response.body, {
279
- unrecognizedObjectKeys: "passthrough",
280
- allowUnrecognizedUnionMembers: true,
281
- allowUnrecognizedEnumValues: true,
282
- skipValidation: true,
283
- breadcrumbsPrefix: ["response"],
284
- }),
285
- rawResponse: _response.rawResponse,
286
- };
287
- }
288
- if (_response.error.reason === "status-code") {
289
- switch (_response.error.statusCode) {
290
- case 404:
291
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
292
- default:
293
- throw new errors.CortiError({
294
- statusCode: _response.error.statusCode,
295
- body: _response.error.body,
296
- rawResponse: _response.rawResponse,
297
- });
298
- }
299
- }
300
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/new/templates/{templateId}/versions/{versionID}/publish");
301
- });
302
- }
303
- }
@@ -1 +0,0 @@
1
- export * from "./requests/index.mjs";
@@ -1 +0,0 @@
1
- export * from "./requests/index.mjs";
@@ -1,9 +0,0 @@
1
- import type * as Corti from "../../../../index.mjs";
2
- /**
3
- * @example
4
- * {}
5
- */
6
- export interface CreateTemplateVersionRequest {
7
- instructions?: Corti.TemplateInstructions;
8
- sections?: Corti.TemplateVersionSectionRequest[];
9
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1 +0,0 @@
1
- export type { CreateTemplateVersionRequest } from "./CreateTemplateVersionRequest.mjs";
@@ -1 +0,0 @@
1
- export * from "./client/index.mjs";
@@ -1 +0,0 @@
1
- export * from "./client/index.mjs";
@@ -1,71 +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
- * })
33
- */
34
- create(request: Corti.CreateTemplateRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
35
- private __create;
36
- /**
37
- * @param {string} templateId
38
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
39
- *
40
- * @throws {@link Corti.NotFoundError}
41
- *
42
- * @example
43
- * await client.newTemplates.get("templateId")
44
- */
45
- get(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
46
- private __get;
47
- /**
48
- * @param {string} templateId
49
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
50
- *
51
- * @throws {@link Corti.NotFoundError}
52
- *
53
- * @example
54
- * await client.newTemplates.delete("templateId")
55
- */
56
- delete(templateId: string, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
57
- private __delete;
58
- /**
59
- * @param {string} templateId
60
- * @param {Corti.UpdateTemplateRequest} request
61
- * @param {NewTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
62
- *
63
- * @throws {@link Corti.BadRequestError}
64
- * @throws {@link Corti.NotFoundError}
65
- *
66
- * @example
67
- * await client.newTemplates.update("templateId")
68
- */
69
- update(templateId: string, request?: Corti.UpdateTemplateRequest, requestOptions?: NewTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
70
- private __update;
71
- }