@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,350 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.NewSectionsClient = void 0;
47
- const BaseClient_js_1 = require("../../../../BaseClient.js");
48
- const headers_js_1 = require("../../../../core/headers.js");
49
- const core = __importStar(require("../../../../core/index.js"));
50
- const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
51
- const errors = __importStar(require("../../../../errors/index.js"));
52
- const serializers = __importStar(require("../../../../serialization/index.js"));
53
- const Corti = __importStar(require("../../../index.js"));
54
- class NewSectionsClient {
55
- constructor(options) {
56
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
- }
58
- /**
59
- * @param {Corti.ListNewSectionsRequest} request
60
- * @param {NewSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
61
- *
62
- * @example
63
- * await client.newSections.list()
64
- */
65
- list(request = {}, requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
67
- }
68
- __list() {
69
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
70
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
71
- const { lang, label, published } = request;
72
- const _queryParams = {
73
- lang,
74
- label,
75
- published,
76
- };
77
- const _authRequest = yield this._options.authProvider.getAuthRequest();
78
- 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);
79
- const _response = yield core.fetcher({
80
- 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"),
81
- method: "GET",
82
- headers: _headers,
83
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
84
- 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,
85
- 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,
86
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
88
- logging: this._options.logging,
89
- });
90
- if (_response.ok) {
91
- return {
92
- data: serializers.newSections.list.Response.parseOrThrow(_response.body, {
93
- unrecognizedObjectKeys: "passthrough",
94
- allowUnrecognizedUnionMembers: true,
95
- allowUnrecognizedEnumValues: true,
96
- skipValidation: true,
97
- breadcrumbsPrefix: ["response"],
98
- }),
99
- rawResponse: _response.rawResponse,
100
- };
101
- }
102
- if (_response.error.reason === "status-code") {
103
- throw new errors.CortiError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.body,
106
- rawResponse: _response.rawResponse,
107
- });
108
- }
109
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/sections");
110
- });
111
- }
112
- /**
113
- * @param {Corti.CreateSectionRequest} request
114
- * @param {NewSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
115
- *
116
- * @throws {@link Corti.BadRequestError}
117
- *
118
- * @example
119
- * await client.newSections.create({
120
- * name: "name",
121
- * language: "language",
122
- * generation: {
123
- * title: "title",
124
- * instructions: {
125
- * contentPrompt: "contentPrompt",
126
- * writingStylePrompt: "writingStylePrompt"
127
- * }
128
- * }
129
- * })
130
- */
131
- create(request, requestOptions) {
132
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
133
- }
134
- __create(request, requestOptions) {
135
- return __awaiter(this, void 0, void 0, function* () {
136
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
137
- const _authRequest = yield this._options.authProvider.getAuthRequest();
138
- 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);
139
- const _response = yield core.fetcher({
140
- 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"),
141
- method: "POST",
142
- headers: _headers,
143
- contentType: "application/json",
144
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
145
- requestType: "json",
146
- body: serializers.CreateSectionRequest.jsonOrThrow(request, {
147
- unrecognizedObjectKeys: "strip",
148
- omitUndefined: true,
149
- }),
150
- 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,
151
- 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,
152
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
153
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
154
- logging: this._options.logging,
155
- });
156
- if (_response.ok) {
157
- return {
158
- data: serializers.Section.parseOrThrow(_response.body, {
159
- unrecognizedObjectKeys: "passthrough",
160
- allowUnrecognizedUnionMembers: true,
161
- allowUnrecognizedEnumValues: true,
162
- skipValidation: true,
163
- breadcrumbsPrefix: ["response"],
164
- }),
165
- rawResponse: _response.rawResponse,
166
- };
167
- }
168
- if (_response.error.reason === "status-code") {
169
- switch (_response.error.statusCode) {
170
- case 400:
171
- throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
172
- default:
173
- throw new errors.CortiError({
174
- statusCode: _response.error.statusCode,
175
- body: _response.error.body,
176
- rawResponse: _response.rawResponse,
177
- });
178
- }
179
- }
180
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/sections");
181
- });
182
- }
183
- /**
184
- * @param {string} sectionID
185
- * @param {NewSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
186
- *
187
- * @throws {@link Corti.NotFoundError}
188
- *
189
- * @example
190
- * await client.newSections.get("sectionID")
191
- */
192
- get(sectionID, requestOptions) {
193
- return core.HttpResponsePromise.fromPromise(this.__get(sectionID, requestOptions));
194
- }
195
- __get(sectionID, requestOptions) {
196
- return __awaiter(this, void 0, void 0, function* () {
197
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
198
- const _authRequest = yield this._options.authProvider.getAuthRequest();
199
- 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);
200
- const _response = yield core.fetcher({
201
- 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/${core.url.encodePathParam(sectionID)}`),
202
- method: "GET",
203
- headers: _headers,
204
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
205
- 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,
206
- 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,
207
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
209
- logging: this._options.logging,
210
- });
211
- if (_response.ok) {
212
- return {
213
- data: serializers.Section.parseOrThrow(_response.body, {
214
- unrecognizedObjectKeys: "passthrough",
215
- allowUnrecognizedUnionMembers: true,
216
- allowUnrecognizedEnumValues: true,
217
- skipValidation: true,
218
- breadcrumbsPrefix: ["response"],
219
- }),
220
- rawResponse: _response.rawResponse,
221
- };
222
- }
223
- if (_response.error.reason === "status-code") {
224
- switch (_response.error.statusCode) {
225
- case 404:
226
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
227
- default:
228
- throw new errors.CortiError({
229
- statusCode: _response.error.statusCode,
230
- body: _response.error.body,
231
- rawResponse: _response.rawResponse,
232
- });
233
- }
234
- }
235
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/sections/{sectionID}");
236
- });
237
- }
238
- /**
239
- * @param {string} sectionID
240
- * @param {NewSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
241
- *
242
- * @throws {@link Corti.NotFoundError}
243
- *
244
- * @example
245
- * await client.newSections.delete("sectionID")
246
- */
247
- delete(sectionID, requestOptions) {
248
- return core.HttpResponsePromise.fromPromise(this.__delete(sectionID, requestOptions));
249
- }
250
- __delete(sectionID, requestOptions) {
251
- return __awaiter(this, void 0, void 0, function* () {
252
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
253
- const _authRequest = yield this._options.authProvider.getAuthRequest();
254
- 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);
255
- const _response = yield core.fetcher({
256
- 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/${core.url.encodePathParam(sectionID)}`),
257
- method: "DELETE",
258
- headers: _headers,
259
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
260
- 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,
261
- 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,
262
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
263
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
264
- logging: this._options.logging,
265
- });
266
- if (_response.ok) {
267
- return { data: undefined, rawResponse: _response.rawResponse };
268
- }
269
- if (_response.error.reason === "status-code") {
270
- switch (_response.error.statusCode) {
271
- case 404:
272
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
273
- default:
274
- throw new errors.CortiError({
275
- statusCode: _response.error.statusCode,
276
- body: _response.error.body,
277
- rawResponse: _response.rawResponse,
278
- });
279
- }
280
- }
281
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/new/sections/{sectionID}");
282
- });
283
- }
284
- /**
285
- * @param {string} sectionID
286
- * @param {Corti.UpdateSectionRequest} request
287
- * @param {NewSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
288
- *
289
- * @throws {@link Corti.BadRequestError}
290
- * @throws {@link Corti.NotFoundError}
291
- *
292
- * @example
293
- * await client.newSections.update("sectionID")
294
- */
295
- update(sectionID, request = {}, requestOptions) {
296
- return core.HttpResponsePromise.fromPromise(this.__update(sectionID, request, requestOptions));
297
- }
298
- __update(sectionID_1) {
299
- return __awaiter(this, arguments, void 0, function* (sectionID, request = {}, requestOptions) {
300
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
301
- const _authRequest = yield this._options.authProvider.getAuthRequest();
302
- 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);
303
- const _response = yield core.fetcher({
304
- 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/${core.url.encodePathParam(sectionID)}`),
305
- method: "PATCH",
306
- headers: _headers,
307
- contentType: "application/json",
308
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
309
- requestType: "json",
310
- body: serializers.UpdateSectionRequest.jsonOrThrow(request, {
311
- unrecognizedObjectKeys: "strip",
312
- omitUndefined: true,
313
- }),
314
- 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,
315
- 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,
316
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
317
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
318
- logging: this._options.logging,
319
- });
320
- if (_response.ok) {
321
- return {
322
- data: serializers.Section.parseOrThrow(_response.body, {
323
- unrecognizedObjectKeys: "passthrough",
324
- allowUnrecognizedUnionMembers: true,
325
- allowUnrecognizedEnumValues: true,
326
- skipValidation: true,
327
- breadcrumbsPrefix: ["response"],
328
- }),
329
- rawResponse: _response.rawResponse,
330
- };
331
- }
332
- if (_response.error.reason === "status-code") {
333
- switch (_response.error.statusCode) {
334
- case 400:
335
- throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
336
- case 404:
337
- throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
338
- default:
339
- throw new errors.CortiError({
340
- statusCode: _response.error.statusCode,
341
- body: _response.error.body,
342
- rawResponse: _response.rawResponse,
343
- });
344
- }
345
- }
346
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/new/sections/{sectionID}");
347
- });
348
- }
349
- }
350
- exports.NewSectionsClient = NewSectionsClient;
@@ -1 +0,0 @@
1
- export * from "./requests/index.js";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests/index.js"), exports);
@@ -1,30 +0,0 @@
1
- import type * as Corti from "../../../../index.js";
2
- /**
3
- * @example
4
- * {
5
- * name: "name",
6
- * language: "language",
7
- * generation: {
8
- * title: "title",
9
- * instructions: {
10
- * contentPrompt: "contentPrompt",
11
- * writingStylePrompt: "writingStylePrompt"
12
- * }
13
- * }
14
- * }
15
- */
16
- export interface CreateSectionRequest {
17
- /** A human-readable identifier for this section. Not passed to the LLM. */
18
- name: string;
19
- /** The intended language for outputs as BCP 47 tag. Does not strictly have to match outputLanguage in POST /documents request. */
20
- language: string;
21
- /** A description for this section. Not passed to the LLM. */
22
- description?: string;
23
- /** Labels work as query param filter in the LIST /sections endpoint. */
24
- labels?: string[];
25
- /** Reference to the section to inherit generation configuration from. Inherits from published version unless fields are changed or overridden in the POST /documents request. */
26
- inheritFromId?: string | null;
27
- generation: Corti.CreateSectionVersionRequest;
28
- /** Defaults to true when omitted. Set this to false if you do not want the section to automatically show up in LIST /sections. */
29
- publish?: boolean;
30
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * @example
3
- * {}
4
- */
5
- export interface ListNewSectionsRequest {
6
- /** Filter sections by language (BCP 47 tag). Repeatable. */
7
- lang?: string | string[];
8
- /** Filter sections by label. Repeatable; matches sections that have any of the given labels. */
9
- label?: string | string[];
10
- /** Filter by publish status. Defaults to true when omitted. */
11
- published?: boolean;
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * @example
3
- * {}
4
- */
5
- export interface UpdateSectionRequest {
6
- name?: string;
7
- language?: string;
8
- description?: string;
9
- labels?: string[];
10
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export type { CreateSectionRequest } from "./CreateSectionRequest.js";
2
- export type { ListNewSectionsRequest } from "./ListNewSectionsRequest.js";
3
- export type { UpdateSectionRequest } from "./UpdateSectionRequest.js";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client/index.js";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client/index.js"), exports);
@@ -1,75 +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 NewTemplateVersionsClient {
6
- type Options = BaseClientOptions;
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class NewTemplateVersionsClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<NewTemplateVersionsClient.Options>;
12
- constructor(options: NewTemplateVersionsClient.Options);
13
- /**
14
- * @param {string} templateId
15
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
16
- *
17
- * @throws {@link Corti.NotFoundError}
18
- *
19
- * @example
20
- * await client.newTemplateVersions.list("templateId")
21
- */
22
- list(templateId: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion[]>;
23
- private __list;
24
- /**
25
- * @param {string} templateId
26
- * @param {Corti.CreateTemplateVersionRequest} request
27
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
28
- *
29
- * @throws {@link Corti.BadRequestError}
30
- * @throws {@link Corti.NotFoundError}
31
- *
32
- * @example
33
- * await client.newTemplateVersions.create("templateId")
34
- */
35
- create(templateId: string, request?: Corti.CreateTemplateVersionRequest, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion>;
36
- private __create;
37
- /**
38
- * @param {string} templateId
39
- * @param {string} versionID
40
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
41
- *
42
- * @throws {@link Corti.NotFoundError}
43
- *
44
- * @example
45
- * await client.newTemplateVersions.get("templateId", "versionID")
46
- */
47
- get(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion>;
48
- private __get;
49
- /**
50
- * @param {string} templateId
51
- * @param {string} versionID
52
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
53
- *
54
- * @throws {@link Corti.NotFoundError}
55
- *
56
- * @example
57
- * await client.newTemplateVersions.delete("templateId", "versionID")
58
- */
59
- delete(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
60
- private __delete;
61
- /**
62
- * Sets this version as the published version of the template.
63
- *
64
- * @param {string} templateId
65
- * @param {string} versionID
66
- * @param {NewTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
67
- *
68
- * @throws {@link Corti.NotFoundError}
69
- *
70
- * @example
71
- * await client.newTemplateVersions.publish("templateId", "versionID")
72
- */
73
- publish(templateId: string, versionID: string, requestOptions?: NewTemplateVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
74
- private __publish;
75
- }