@corti/sdk 2.0.0-rc → 2.0.0-templates

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 (329) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +12 -0
  4. package/dist/cjs/Client.js +30 -10
  5. package/dist/cjs/api/resources/index.d.ts +7 -0
  6. package/dist/cjs/api/resources/index.js +8 -1
  7. package/dist/cjs/api/resources/newSectionVersions/client/Client.d.ts +84 -0
  8. package/dist/cjs/api/resources/newSectionVersions/client/Client.js +349 -0
  9. package/dist/cjs/api/resources/newSectionVersions/client/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/newSectionVersions/client/index.js +2 -0
  11. package/dist/cjs/api/resources/newSectionVersions/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/newSectionVersions/index.js +17 -0
  13. package/dist/cjs/api/resources/newSections/client/Client.d.ts +81 -0
  14. package/dist/cjs/api/resources/newSections/client/Client.js +353 -0
  15. package/dist/cjs/api/resources/newSections/client/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/newSections/client/index.js +17 -0
  17. package/dist/cjs/api/resources/newSections/client/requests/CreateSectionRequest.d.ts +33 -0
  18. package/dist/cjs/api/resources/newSections/client/requests/CreateSectionRequest.js +3 -0
  19. package/dist/cjs/api/resources/newSections/client/requests/ListNewSectionsRequest.d.ts +12 -0
  20. package/dist/cjs/api/resources/newSections/client/requests/ListNewSectionsRequest.js +3 -0
  21. package/dist/cjs/api/resources/newSections/client/requests/UpdateSectionRequest.d.ts +10 -0
  22. package/dist/cjs/api/resources/newSections/client/requests/UpdateSectionRequest.js +3 -0
  23. package/dist/cjs/api/resources/newSections/client/requests/index.d.ts +3 -0
  24. package/dist/cjs/api/resources/newSections/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/newSections/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/newSections/index.js +17 -0
  27. package/dist/cjs/api/resources/newTemplateVersions/client/Client.d.ts +60 -0
  28. package/dist/cjs/api/resources/newTemplateVersions/client/Client.js +255 -0
  29. package/dist/cjs/api/resources/newTemplateVersions/client/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/newTemplateVersions/client/index.js +2 -0
  31. package/dist/cjs/api/resources/newTemplateVersions/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/newTemplateVersions/index.js +17 -0
  33. package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +68 -0
  34. package/dist/cjs/api/resources/newTemplates/client/Client.js +299 -0
  35. package/dist/cjs/api/resources/newTemplates/client/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/newTemplates/client/index.js +17 -0
  37. package/dist/cjs/api/resources/newTemplates/client/requests/CreateTemplateRequest.d.ts +28 -0
  38. package/dist/cjs/api/resources/newTemplates/client/requests/CreateTemplateRequest.js +3 -0
  39. package/dist/cjs/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.d.ts +12 -0
  40. package/dist/cjs/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.js +3 -0
  41. package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/newTemplates/client/requests/index.js +2 -0
  43. package/dist/cjs/api/resources/newTemplates/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/newTemplates/index.js +18 -0
  45. package/dist/cjs/api/resources/newTemplates/types/CreateTemplateRequestGeneration.d.ts +5 -0
  46. package/dist/cjs/api/resources/newTemplates/types/CreateTemplateRequestGeneration.js +3 -0
  47. package/dist/cjs/api/resources/newTemplates/types/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/newTemplates/types/index.js +17 -0
  49. package/dist/cjs/api/types/BoolNode.d.ts +7 -0
  50. package/dist/cjs/api/types/BoolNode.js +3 -0
  51. package/dist/cjs/api/types/DictNode.d.ts +12 -0
  52. package/dist/cjs/api/types/DictNode.js +3 -0
  53. package/dist/cjs/api/types/FieldDefinition.d.ts +8 -0
  54. package/dist/cjs/api/types/FieldDefinition.js +3 -0
  55. package/dist/cjs/api/types/FloatNode.d.ts +13 -0
  56. package/dist/cjs/api/types/FloatNode.js +3 -0
  57. package/dist/cjs/api/types/IntegerNode.d.ts +13 -0
  58. package/dist/cjs/api/types/IntegerNode.js +3 -0
  59. package/dist/cjs/api/types/ListNode.d.ts +13 -0
  60. package/dist/cjs/api/types/ListNode.js +3 -0
  61. package/dist/cjs/api/types/OutputSchema.d.ts +2 -0
  62. package/dist/cjs/api/types/OutputSchema.js +3 -0
  63. package/dist/cjs/api/types/Section.d.ts +23 -0
  64. package/dist/cjs/api/types/Section.js +3 -0
  65. package/dist/cjs/api/types/SectionGeneration.d.ts +8 -0
  66. package/dist/cjs/api/types/SectionGeneration.js +3 -0
  67. package/dist/cjs/api/types/SectionInstructions.d.ts +6 -0
  68. package/dist/cjs/api/types/SectionInstructions.js +3 -0
  69. package/dist/cjs/api/types/SectionVersion.d.ts +8 -0
  70. package/dist/cjs/api/types/SectionVersion.js +3 -0
  71. package/dist/cjs/api/types/StatusResponse.d.ts +3 -0
  72. package/dist/cjs/api/types/StatusResponse.js +3 -0
  73. package/dist/cjs/api/types/StringNode.d.ts +11 -0
  74. package/dist/cjs/api/types/StringNode.js +3 -0
  75. package/dist/cjs/api/types/Template.d.ts +22 -0
  76. package/dist/cjs/api/types/Template.js +3 -0
  77. package/dist/cjs/api/types/TemplateGeneration.d.ts +6 -0
  78. package/dist/cjs/api/types/TemplateGeneration.js +3 -0
  79. package/dist/cjs/api/types/TemplateInstructions.d.ts +4 -0
  80. package/dist/cjs/api/types/TemplateInstructions.js +3 -0
  81. package/dist/cjs/api/types/TemplateVersion.d.ts +8 -0
  82. package/dist/cjs/api/types/TemplateVersion.js +3 -0
  83. package/dist/cjs/api/types/TemplateVersionSectionRequest.d.ts +6 -0
  84. package/dist/cjs/api/types/TemplateVersionSectionRequest.js +3 -0
  85. package/dist/cjs/api/types/index.d.ts +18 -0
  86. package/dist/cjs/api/types/index.js +18 -0
  87. package/dist/cjs/custom/CortiClient.js +2 -2
  88. package/dist/cjs/custom/auth/CortiAuth.js +2 -2
  89. package/dist/cjs/custom/stream/CustomStream.js +2 -2
  90. package/dist/cjs/custom/transcribe/CustomTranscribe.js +3 -3
  91. package/dist/cjs/serialization/resources/index.d.ts +6 -0
  92. package/dist/cjs/serialization/resources/index.js +7 -1
  93. package/dist/cjs/serialization/resources/newSectionVersions/client/index.d.ts +1 -0
  94. package/dist/cjs/serialization/resources/newSectionVersions/client/index.js +37 -0
  95. package/dist/cjs/serialization/resources/newSectionVersions/client/list.d.ts +8 -0
  96. package/dist/cjs/serialization/resources/newSectionVersions/client/list.js +40 -0
  97. package/dist/cjs/serialization/resources/newSectionVersions/index.d.ts +1 -0
  98. package/dist/cjs/serialization/resources/newSectionVersions/index.js +17 -0
  99. package/dist/cjs/serialization/resources/newSections/client/index.d.ts +2 -0
  100. package/dist/cjs/serialization/resources/newSections/client/index.js +41 -0
  101. package/dist/cjs/serialization/resources/newSections/client/list.d.ts +8 -0
  102. package/dist/cjs/serialization/resources/newSections/client/list.js +40 -0
  103. package/dist/cjs/serialization/resources/newSections/client/requests/CreateSectionRequest.d.ts +16 -0
  104. package/dist/cjs/serialization/resources/newSections/client/requests/CreateSectionRequest.js +48 -0
  105. package/dist/cjs/serialization/resources/newSections/client/requests/UpdateSectionRequest.d.ts +12 -0
  106. package/dist/cjs/serialization/resources/newSections/client/requests/UpdateSectionRequest.js +44 -0
  107. package/dist/cjs/serialization/resources/newSections/client/requests/index.d.ts +2 -0
  108. package/dist/cjs/serialization/resources/newSections/client/requests/index.js +7 -0
  109. package/dist/cjs/serialization/resources/newSections/index.d.ts +1 -0
  110. package/dist/cjs/serialization/resources/newSections/index.js +17 -0
  111. package/dist/cjs/serialization/resources/newTemplates/client/index.d.ts +2 -0
  112. package/dist/cjs/serialization/resources/newTemplates/client/index.js +41 -0
  113. package/dist/cjs/serialization/resources/newTemplates/client/list.d.ts +8 -0
  114. package/dist/cjs/serialization/resources/newTemplates/client/list.js +40 -0
  115. package/dist/cjs/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.d.ts +16 -0
  116. package/dist/cjs/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.js +48 -0
  117. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.d.ts +1 -0
  118. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.js +5 -0
  119. package/dist/cjs/serialization/resources/newTemplates/index.d.ts +2 -0
  120. package/dist/cjs/serialization/resources/newTemplates/index.js +18 -0
  121. package/dist/cjs/serialization/resources/newTemplates/types/CreateTemplateRequestGeneration.d.ts +12 -0
  122. package/dist/cjs/serialization/resources/newTemplates/types/CreateTemplateRequestGeneration.js +44 -0
  123. package/dist/cjs/serialization/resources/newTemplates/types/index.d.ts +1 -0
  124. package/dist/cjs/serialization/resources/newTemplates/types/index.js +17 -0
  125. package/dist/cjs/serialization/types/BoolNode.d.ts +11 -0
  126. package/dist/cjs/serialization/types/BoolNode.js +43 -0
  127. package/dist/cjs/serialization/types/DictNode.d.ts +13 -0
  128. package/dist/cjs/serialization/types/DictNode.js +46 -0
  129. package/dist/cjs/serialization/types/FieldDefinition.d.ts +11 -0
  130. package/dist/cjs/serialization/types/FieldDefinition.js +44 -0
  131. package/dist/cjs/serialization/types/FloatNode.d.ts +14 -0
  132. package/dist/cjs/serialization/types/FloatNode.js +46 -0
  133. package/dist/cjs/serialization/types/IntegerNode.d.ts +14 -0
  134. package/dist/cjs/serialization/types/IntegerNode.js +46 -0
  135. package/dist/cjs/serialization/types/ListNode.d.ts +14 -0
  136. package/dist/cjs/serialization/types/ListNode.js +47 -0
  137. package/dist/cjs/serialization/types/OutputSchema.d.ts +11 -0
  138. package/dist/cjs/serialization/types/OutputSchema.js +51 -0
  139. package/dist/cjs/serialization/types/Section.d.ts +19 -0
  140. package/dist/cjs/serialization/types/Section.js +51 -0
  141. package/dist/cjs/serialization/types/SectionGeneration.d.ts +12 -0
  142. package/dist/cjs/serialization/types/SectionGeneration.js +45 -0
  143. package/dist/cjs/serialization/types/SectionInstructions.d.ts +10 -0
  144. package/dist/cjs/serialization/types/SectionInstructions.js +42 -0
  145. package/dist/cjs/serialization/types/SectionVersion.d.ts +12 -0
  146. package/dist/cjs/serialization/types/SectionVersion.js +44 -0
  147. package/dist/cjs/serialization/types/StatusResponse.d.ts +9 -0
  148. package/dist/cjs/serialization/types/StatusResponse.js +41 -0
  149. package/dist/cjs/serialization/types/StringNode.d.ts +13 -0
  150. package/dist/cjs/serialization/types/StringNode.js +45 -0
  151. package/dist/cjs/serialization/types/Template.d.ts +19 -0
  152. package/dist/cjs/serialization/types/Template.js +51 -0
  153. package/dist/cjs/serialization/types/TemplateGeneration.d.ts +12 -0
  154. package/dist/cjs/serialization/types/TemplateGeneration.js +44 -0
  155. package/dist/cjs/serialization/types/TemplateInstructions.d.ts +9 -0
  156. package/dist/cjs/serialization/types/TemplateInstructions.js +41 -0
  157. package/dist/cjs/serialization/types/TemplateVersion.d.ts +12 -0
  158. package/dist/cjs/serialization/types/TemplateVersion.js +44 -0
  159. package/dist/cjs/serialization/types/TemplateVersionSectionRequest.d.ts +10 -0
  160. package/dist/cjs/serialization/types/TemplateVersionSectionRequest.js +42 -0
  161. package/dist/cjs/serialization/types/index.d.ts +18 -0
  162. package/dist/cjs/serialization/types/index.js +18 -0
  163. package/dist/cjs/version.d.ts +1 -1
  164. package/dist/cjs/version.js +1 -1
  165. package/dist/esm/BaseClient.d.mts +2 -2
  166. package/dist/esm/BaseClient.mjs +2 -2
  167. package/dist/esm/Client.d.mts +12 -0
  168. package/dist/esm/Client.mjs +20 -0
  169. package/dist/esm/api/resources/index.d.mts +7 -0
  170. package/dist/esm/api/resources/index.mjs +7 -0
  171. package/dist/esm/api/resources/newSectionVersions/client/Client.d.mts +84 -0
  172. package/dist/esm/api/resources/newSectionVersions/client/Client.mjs +312 -0
  173. package/dist/esm/api/resources/newSectionVersions/client/index.d.mts +1 -0
  174. package/dist/esm/api/resources/newSectionVersions/client/index.mjs +1 -0
  175. package/dist/esm/api/resources/newSectionVersions/index.d.mts +1 -0
  176. package/dist/esm/api/resources/newSectionVersions/index.mjs +1 -0
  177. package/dist/esm/api/resources/newSections/client/Client.d.mts +81 -0
  178. package/dist/esm/api/resources/newSections/client/Client.mjs +316 -0
  179. package/dist/esm/api/resources/newSections/client/index.d.mts +1 -0
  180. package/dist/esm/api/resources/newSections/client/index.mjs +1 -0
  181. package/dist/esm/api/resources/newSections/client/requests/CreateSectionRequest.d.mts +33 -0
  182. package/dist/esm/api/resources/newSections/client/requests/CreateSectionRequest.mjs +2 -0
  183. package/dist/esm/api/resources/newSections/client/requests/ListNewSectionsRequest.d.mts +12 -0
  184. package/dist/esm/api/resources/newSections/client/requests/ListNewSectionsRequest.mjs +2 -0
  185. package/dist/esm/api/resources/newSections/client/requests/UpdateSectionRequest.d.mts +10 -0
  186. package/dist/esm/api/resources/newSections/client/requests/UpdateSectionRequest.mjs +2 -0
  187. package/dist/esm/api/resources/newSections/client/requests/index.d.mts +3 -0
  188. package/dist/esm/api/resources/newSections/client/requests/index.mjs +1 -0
  189. package/dist/esm/api/resources/newSections/index.d.mts +1 -0
  190. package/dist/esm/api/resources/newSections/index.mjs +1 -0
  191. package/dist/esm/api/resources/newTemplateVersions/client/Client.d.mts +60 -0
  192. package/dist/esm/api/resources/newTemplateVersions/client/Client.mjs +218 -0
  193. package/dist/esm/api/resources/newTemplateVersions/client/index.d.mts +1 -0
  194. package/dist/esm/api/resources/newTemplateVersions/client/index.mjs +1 -0
  195. package/dist/esm/api/resources/newTemplateVersions/index.d.mts +1 -0
  196. package/dist/esm/api/resources/newTemplateVersions/index.mjs +1 -0
  197. package/dist/esm/api/resources/newTemplates/client/Client.d.mts +68 -0
  198. package/dist/esm/api/resources/newTemplates/client/Client.mjs +262 -0
  199. package/dist/esm/api/resources/newTemplates/client/index.d.mts +1 -0
  200. package/dist/esm/api/resources/newTemplates/client/index.mjs +1 -0
  201. package/dist/esm/api/resources/newTemplates/client/requests/CreateTemplateRequest.d.mts +28 -0
  202. package/dist/esm/api/resources/newTemplates/client/requests/CreateTemplateRequest.mjs +2 -0
  203. package/dist/esm/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.d.mts +12 -0
  204. package/dist/esm/api/resources/newTemplates/client/requests/ListNewTemplatesRequest.mjs +2 -0
  205. package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +2 -0
  206. package/dist/esm/api/resources/newTemplates/client/requests/index.mjs +1 -0
  207. package/dist/esm/api/resources/newTemplates/index.d.mts +2 -0
  208. package/dist/esm/api/resources/newTemplates/index.mjs +2 -0
  209. package/dist/esm/api/resources/newTemplates/types/CreateTemplateRequestGeneration.d.mts +5 -0
  210. package/dist/esm/api/resources/newTemplates/types/CreateTemplateRequestGeneration.mjs +2 -0
  211. package/dist/esm/api/resources/newTemplates/types/index.d.mts +1 -0
  212. package/dist/esm/api/resources/newTemplates/types/index.mjs +1 -0
  213. package/dist/esm/api/types/BoolNode.d.mts +7 -0
  214. package/dist/esm/api/types/BoolNode.mjs +2 -0
  215. package/dist/esm/api/types/DictNode.d.mts +12 -0
  216. package/dist/esm/api/types/DictNode.mjs +2 -0
  217. package/dist/esm/api/types/FieldDefinition.d.mts +8 -0
  218. package/dist/esm/api/types/FieldDefinition.mjs +2 -0
  219. package/dist/esm/api/types/FloatNode.d.mts +13 -0
  220. package/dist/esm/api/types/FloatNode.mjs +2 -0
  221. package/dist/esm/api/types/IntegerNode.d.mts +13 -0
  222. package/dist/esm/api/types/IntegerNode.mjs +2 -0
  223. package/dist/esm/api/types/ListNode.d.mts +13 -0
  224. package/dist/esm/api/types/ListNode.mjs +2 -0
  225. package/dist/esm/api/types/OutputSchema.d.mts +2 -0
  226. package/dist/esm/api/types/OutputSchema.mjs +2 -0
  227. package/dist/esm/api/types/Section.d.mts +23 -0
  228. package/dist/esm/api/types/Section.mjs +2 -0
  229. package/dist/esm/api/types/SectionGeneration.d.mts +8 -0
  230. package/dist/esm/api/types/SectionGeneration.mjs +2 -0
  231. package/dist/esm/api/types/SectionInstructions.d.mts +6 -0
  232. package/dist/esm/api/types/SectionInstructions.mjs +2 -0
  233. package/dist/esm/api/types/SectionVersion.d.mts +8 -0
  234. package/dist/esm/api/types/SectionVersion.mjs +2 -0
  235. package/dist/esm/api/types/StatusResponse.d.mts +3 -0
  236. package/dist/esm/api/types/StatusResponse.mjs +2 -0
  237. package/dist/esm/api/types/StringNode.d.mts +11 -0
  238. package/dist/esm/api/types/StringNode.mjs +2 -0
  239. package/dist/esm/api/types/Template.d.mts +22 -0
  240. package/dist/esm/api/types/Template.mjs +2 -0
  241. package/dist/esm/api/types/TemplateGeneration.d.mts +6 -0
  242. package/dist/esm/api/types/TemplateGeneration.mjs +2 -0
  243. package/dist/esm/api/types/TemplateInstructions.d.mts +4 -0
  244. package/dist/esm/api/types/TemplateInstructions.mjs +2 -0
  245. package/dist/esm/api/types/TemplateVersion.d.mts +8 -0
  246. package/dist/esm/api/types/TemplateVersion.mjs +2 -0
  247. package/dist/esm/api/types/TemplateVersionSectionRequest.d.mts +6 -0
  248. package/dist/esm/api/types/TemplateVersionSectionRequest.mjs +2 -0
  249. package/dist/esm/api/types/index.d.mts +18 -0
  250. package/dist/esm/api/types/index.mjs +18 -0
  251. package/dist/esm/custom/CortiClient.mjs +2 -2
  252. package/dist/esm/custom/auth/CortiAuth.mjs +2 -2
  253. package/dist/esm/custom/stream/CustomStream.mjs +2 -2
  254. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +3 -3
  255. package/dist/esm/serialization/resources/index.d.mts +6 -0
  256. package/dist/esm/serialization/resources/index.mjs +6 -0
  257. package/dist/esm/serialization/resources/newSectionVersions/client/index.d.mts +1 -0
  258. package/dist/esm/serialization/resources/newSectionVersions/client/index.mjs +1 -0
  259. package/dist/esm/serialization/resources/newSectionVersions/client/list.d.mts +8 -0
  260. package/dist/esm/serialization/resources/newSectionVersions/client/list.mjs +4 -0
  261. package/dist/esm/serialization/resources/newSectionVersions/index.d.mts +1 -0
  262. package/dist/esm/serialization/resources/newSectionVersions/index.mjs +1 -0
  263. package/dist/esm/serialization/resources/newSections/client/index.d.mts +2 -0
  264. package/dist/esm/serialization/resources/newSections/client/index.mjs +2 -0
  265. package/dist/esm/serialization/resources/newSections/client/list.d.mts +8 -0
  266. package/dist/esm/serialization/resources/newSections/client/list.mjs +4 -0
  267. package/dist/esm/serialization/resources/newSections/client/requests/CreateSectionRequest.d.mts +16 -0
  268. package/dist/esm/serialization/resources/newSections/client/requests/CreateSectionRequest.mjs +12 -0
  269. package/dist/esm/serialization/resources/newSections/client/requests/UpdateSectionRequest.d.mts +12 -0
  270. package/dist/esm/serialization/resources/newSections/client/requests/UpdateSectionRequest.mjs +8 -0
  271. package/dist/esm/serialization/resources/newSections/client/requests/index.d.mts +2 -0
  272. package/dist/esm/serialization/resources/newSections/client/requests/index.mjs +2 -0
  273. package/dist/esm/serialization/resources/newSections/index.d.mts +1 -0
  274. package/dist/esm/serialization/resources/newSections/index.mjs +1 -0
  275. package/dist/esm/serialization/resources/newTemplates/client/index.d.mts +2 -0
  276. package/dist/esm/serialization/resources/newTemplates/client/index.mjs +2 -0
  277. package/dist/esm/serialization/resources/newTemplates/client/list.d.mts +8 -0
  278. package/dist/esm/serialization/resources/newTemplates/client/list.mjs +4 -0
  279. package/dist/esm/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.d.mts +16 -0
  280. package/dist/esm/serialization/resources/newTemplates/client/requests/CreateTemplateRequest.mjs +12 -0
  281. package/dist/esm/serialization/resources/newTemplates/client/requests/index.d.mts +1 -0
  282. package/dist/esm/serialization/resources/newTemplates/client/requests/index.mjs +1 -0
  283. package/dist/esm/serialization/resources/newTemplates/index.d.mts +2 -0
  284. package/dist/esm/serialization/resources/newTemplates/index.mjs +2 -0
  285. package/dist/esm/serialization/resources/newTemplates/types/CreateTemplateRequestGeneration.d.mts +12 -0
  286. package/dist/esm/serialization/resources/newTemplates/types/CreateTemplateRequestGeneration.mjs +8 -0
  287. package/dist/esm/serialization/resources/newTemplates/types/index.d.mts +1 -0
  288. package/dist/esm/serialization/resources/newTemplates/types/index.mjs +1 -0
  289. package/dist/esm/serialization/types/BoolNode.d.mts +11 -0
  290. package/dist/esm/serialization/types/BoolNode.mjs +7 -0
  291. package/dist/esm/serialization/types/DictNode.d.mts +13 -0
  292. package/dist/esm/serialization/types/DictNode.mjs +10 -0
  293. package/dist/esm/serialization/types/FieldDefinition.d.mts +11 -0
  294. package/dist/esm/serialization/types/FieldDefinition.mjs +8 -0
  295. package/dist/esm/serialization/types/FloatNode.d.mts +14 -0
  296. package/dist/esm/serialization/types/FloatNode.mjs +10 -0
  297. package/dist/esm/serialization/types/IntegerNode.d.mts +14 -0
  298. package/dist/esm/serialization/types/IntegerNode.mjs +10 -0
  299. package/dist/esm/serialization/types/ListNode.d.mts +14 -0
  300. package/dist/esm/serialization/types/ListNode.mjs +11 -0
  301. package/dist/esm/serialization/types/OutputSchema.d.mts +11 -0
  302. package/dist/esm/serialization/types/OutputSchema.mjs +15 -0
  303. package/dist/esm/serialization/types/Section.d.mts +19 -0
  304. package/dist/esm/serialization/types/Section.mjs +15 -0
  305. package/dist/esm/serialization/types/SectionGeneration.d.mts +12 -0
  306. package/dist/esm/serialization/types/SectionGeneration.mjs +9 -0
  307. package/dist/esm/serialization/types/SectionInstructions.d.mts +10 -0
  308. package/dist/esm/serialization/types/SectionInstructions.mjs +6 -0
  309. package/dist/esm/serialization/types/SectionVersion.d.mts +12 -0
  310. package/dist/esm/serialization/types/SectionVersion.mjs +8 -0
  311. package/dist/esm/serialization/types/StatusResponse.d.mts +9 -0
  312. package/dist/esm/serialization/types/StatusResponse.mjs +5 -0
  313. package/dist/esm/serialization/types/StringNode.d.mts +13 -0
  314. package/dist/esm/serialization/types/StringNode.mjs +9 -0
  315. package/dist/esm/serialization/types/Template.d.mts +19 -0
  316. package/dist/esm/serialization/types/Template.mjs +15 -0
  317. package/dist/esm/serialization/types/TemplateGeneration.d.mts +12 -0
  318. package/dist/esm/serialization/types/TemplateGeneration.mjs +8 -0
  319. package/dist/esm/serialization/types/TemplateInstructions.d.mts +9 -0
  320. package/dist/esm/serialization/types/TemplateInstructions.mjs +5 -0
  321. package/dist/esm/serialization/types/TemplateVersion.d.mts +12 -0
  322. package/dist/esm/serialization/types/TemplateVersion.mjs +8 -0
  323. package/dist/esm/serialization/types/TemplateVersionSectionRequest.d.mts +10 -0
  324. package/dist/esm/serialization/types/TemplateVersionSectionRequest.mjs +6 -0
  325. package/dist/esm/serialization/types/index.d.mts +18 -0
  326. package/dist/esm/serialization/types/index.mjs +18 -0
  327. package/dist/esm/version.d.mts +1 -1
  328. package/dist/esm/version.mjs +1 -1
  329. package/package.json +4 -2
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface StringNode {
2
+ type: "string";
3
+ /** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
4
+ description?: string;
5
+ /** The default to output if nothing to output. */
6
+ default?: string | null;
7
+ /** Can be used to prompt the LLM with specific values to output. */
8
+ enum?: string[];
9
+ /** Can be used to prompt the LLM for a specific output pattern. */
10
+ pattern?: string | null;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface Template {
3
+ /** The UUID of the template. */
4
+ id: string;
5
+ /** Reference to the template to inherit template instructions and sections from. Inherits from published version by default. */
6
+ inheritedFromId?: string | null;
7
+ /** True if the template was auto-generated based on the section-composed POST /documents request. */
8
+ autoGenerated?: boolean;
9
+ /** The name of this template. Not passed to the LLM. */
10
+ name: string;
11
+ /** A description for this template. Not passed to the LLM. */
12
+ description?: string;
13
+ /** The intended language as BCP 47 tag. Does not strictly have to match outputLanguage in POST /documents request. */
14
+ language: string;
15
+ /** The available labels to use as query param filter in the LIST /templates endpoint. */
16
+ labels: string[];
17
+ publishedVersion?: Corti.TemplateVersion;
18
+ /** The original timestamp when the template was created. */
19
+ createdAt: Date;
20
+ /** The original timestamp when the template was last updated. */
21
+ updatedAt: Date;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface TemplateGeneration {
3
+ instructions: Corti.TemplateInstructions;
4
+ /** Populated only on GET /alpha/templates/{templateID}/versions/{versionID}; omitted from list responses. */
5
+ sections?: Corti.Section[];
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface TemplateInstructions {
2
+ /** Template-level prompt instructions that apply generally to all sections. */
3
+ prompt: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface TemplateVersion {
3
+ /** The UUID of the version. */
4
+ id: string;
5
+ /** Starts at 0 and auto-increments. */
6
+ versionNumber: number;
7
+ generation: Corti.TemplateGeneration;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface TemplateVersionSectionRequest {
2
+ /** The UUID of the section to include in the template version. */
3
+ sectionId: string;
4
+ /** Sets the order of this section within this template. Starts at 0. */
5
+ orderIndex?: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -62,6 +62,7 @@ export * from "./AuthTokenRequestClientCredentials.js";
62
62
  export * from "./AuthTokenRequestRefresh.js";
63
63
  export * from "./AuthTokenRequestRopc.js";
64
64
  export * from "./AuthTokenResponse.js";
65
+ export * from "./BoolNode.js";
65
66
  export * from "./CodesFilter.js";
66
67
  export * from "./CodesGeneralReadResponse.js";
67
68
  export * from "./CodesGeneralReadResponseAlternativesItem.js";
@@ -78,6 +79,7 @@ export * from "./CommonTextContextType.js";
78
79
  export * from "./CommonTranscriptRequest.js";
79
80
  export * from "./CommonTranscriptResponse.js";
80
81
  export * from "./CommonUsageInfo.js";
82
+ export * from "./DictNode.js";
81
83
  export * from "./DocumentsContext.js";
82
84
  export * from "./DocumentsContextWithFacts.js";
83
85
  export * from "./DocumentsContextWithFactsType.js";
@@ -113,6 +115,9 @@ export * from "./FactsFactGroupsListResponse.js";
113
115
  export * from "./FactsListItem.js";
114
116
  export * from "./FactsListResponse.js";
115
117
  export * from "./FactsUpdateResponse.js";
118
+ export * from "./FieldDefinition.js";
119
+ export * from "./FloatNode.js";
120
+ export * from "./IntegerNode.js";
116
121
  export * from "./InteractionsCreateResponse.js";
117
122
  export * from "./InteractionsEncounterCreateRequest.js";
118
123
  export * from "./InteractionsEncounterPeriod.js";
@@ -124,9 +129,16 @@ export * from "./InteractionsGenderEnum.js";
124
129
  export * from "./InteractionsGetResponse.js";
125
130
  export * from "./InteractionsListResponse.js";
126
131
  export * from "./InteractionsPatient.js";
132
+ export * from "./ListNode.js";
127
133
  export * from "./OAuthTokenRequest.js";
134
+ export * from "./OutputSchema.js";
128
135
  export * from "./RecordingsCreateResponse.js";
129
136
  export * from "./RecordingsListResponse.js";
137
+ export * from "./Section.js";
138
+ export * from "./SectionGeneration.js";
139
+ export * from "./SectionInstructions.js";
140
+ export * from "./SectionVersion.js";
141
+ export * from "./StatusResponse.js";
130
142
  export * from "./StreamConfig.js";
131
143
  export * from "./StreamConfigMessage.js";
132
144
  export * from "./StreamConfigMode.js";
@@ -152,6 +164,10 @@ export * from "./StreamTranscript.js";
152
164
  export * from "./StreamTranscriptMessage.js";
153
165
  export * from "./StreamTranscriptTime.js";
154
166
  export * from "./StreamUsageMessage.js";
167
+ export * from "./StringNode.js";
168
+ export * from "./Template.js";
169
+ export * from "./TemplateGeneration.js";
170
+ export * from "./TemplateInstructions.js";
155
171
  export * from "./TemplatesDocumentationModeEnum.js";
156
172
  export * from "./TemplatesFormatRule.js";
157
173
  export * from "./TemplatesItem.js";
@@ -162,6 +178,8 @@ export * from "./TemplatesSectionSorted.js";
162
178
  export * from "./TemplatesSectionTranslation.js";
163
179
  export * from "./TemplatesTranslation.js";
164
180
  export * from "./TemplatesWritingStyle.js";
181
+ export * from "./TemplateVersion.js";
182
+ export * from "./TemplateVersionSectionRequest.js";
165
183
  export * from "./TranscribeCommand.js";
166
184
  export * from "./TranscribeCommandData.js";
167
185
  export * from "./TranscribeCommandMessage.js";
@@ -78,6 +78,7 @@ __exportStar(require("./AuthTokenRequestClientCredentials.js"), exports);
78
78
  __exportStar(require("./AuthTokenRequestRefresh.js"), exports);
79
79
  __exportStar(require("./AuthTokenRequestRopc.js"), exports);
80
80
  __exportStar(require("./AuthTokenResponse.js"), exports);
81
+ __exportStar(require("./BoolNode.js"), exports);
81
82
  __exportStar(require("./CodesFilter.js"), exports);
82
83
  __exportStar(require("./CodesGeneralReadResponse.js"), exports);
83
84
  __exportStar(require("./CodesGeneralReadResponseAlternativesItem.js"), exports);
@@ -94,6 +95,7 @@ __exportStar(require("./CommonTextContextType.js"), exports);
94
95
  __exportStar(require("./CommonTranscriptRequest.js"), exports);
95
96
  __exportStar(require("./CommonTranscriptResponse.js"), exports);
96
97
  __exportStar(require("./CommonUsageInfo.js"), exports);
98
+ __exportStar(require("./DictNode.js"), exports);
97
99
  __exportStar(require("./DocumentsContext.js"), exports);
98
100
  __exportStar(require("./DocumentsContextWithFacts.js"), exports);
99
101
  __exportStar(require("./DocumentsContextWithFactsType.js"), exports);
@@ -129,6 +131,9 @@ __exportStar(require("./FactsFactGroupsListResponse.js"), exports);
129
131
  __exportStar(require("./FactsListItem.js"), exports);
130
132
  __exportStar(require("./FactsListResponse.js"), exports);
131
133
  __exportStar(require("./FactsUpdateResponse.js"), exports);
134
+ __exportStar(require("./FieldDefinition.js"), exports);
135
+ __exportStar(require("./FloatNode.js"), exports);
136
+ __exportStar(require("./IntegerNode.js"), exports);
132
137
  __exportStar(require("./InteractionsCreateResponse.js"), exports);
133
138
  __exportStar(require("./InteractionsEncounterCreateRequest.js"), exports);
134
139
  __exportStar(require("./InteractionsEncounterPeriod.js"), exports);
@@ -140,9 +145,16 @@ __exportStar(require("./InteractionsGenderEnum.js"), exports);
140
145
  __exportStar(require("./InteractionsGetResponse.js"), exports);
141
146
  __exportStar(require("./InteractionsListResponse.js"), exports);
142
147
  __exportStar(require("./InteractionsPatient.js"), exports);
148
+ __exportStar(require("./ListNode.js"), exports);
143
149
  __exportStar(require("./OAuthTokenRequest.js"), exports);
150
+ __exportStar(require("./OutputSchema.js"), exports);
144
151
  __exportStar(require("./RecordingsCreateResponse.js"), exports);
145
152
  __exportStar(require("./RecordingsListResponse.js"), exports);
153
+ __exportStar(require("./Section.js"), exports);
154
+ __exportStar(require("./SectionGeneration.js"), exports);
155
+ __exportStar(require("./SectionInstructions.js"), exports);
156
+ __exportStar(require("./SectionVersion.js"), exports);
157
+ __exportStar(require("./StatusResponse.js"), exports);
146
158
  __exportStar(require("./StreamConfig.js"), exports);
147
159
  __exportStar(require("./StreamConfigMessage.js"), exports);
148
160
  __exportStar(require("./StreamConfigMode.js"), exports);
@@ -168,6 +180,10 @@ __exportStar(require("./StreamTranscript.js"), exports);
168
180
  __exportStar(require("./StreamTranscriptMessage.js"), exports);
169
181
  __exportStar(require("./StreamTranscriptTime.js"), exports);
170
182
  __exportStar(require("./StreamUsageMessage.js"), exports);
183
+ __exportStar(require("./StringNode.js"), exports);
184
+ __exportStar(require("./Template.js"), exports);
185
+ __exportStar(require("./TemplateGeneration.js"), exports);
186
+ __exportStar(require("./TemplateInstructions.js"), exports);
171
187
  __exportStar(require("./TemplatesDocumentationModeEnum.js"), exports);
172
188
  __exportStar(require("./TemplatesFormatRule.js"), exports);
173
189
  __exportStar(require("./TemplatesItem.js"), exports);
@@ -178,6 +194,8 @@ __exportStar(require("./TemplatesSectionSorted.js"), exports);
178
194
  __exportStar(require("./TemplatesSectionTranslation.js"), exports);
179
195
  __exportStar(require("./TemplatesTranslation.js"), exports);
180
196
  __exportStar(require("./TemplatesWritingStyle.js"), exports);
197
+ __exportStar(require("./TemplateVersion.js"), exports);
198
+ __exportStar(require("./TemplateVersionSectionRequest.js"), exports);
181
199
  __exportStar(require("./TranscribeCommand.js"), exports);
182
200
  __exportStar(require("./TranscribeCommandData.js"), exports);
183
201
  __exportStar(require("./TranscribeCommandMessage.js"), exports);
@@ -76,9 +76,9 @@ class CortiClient extends Client_js_1.CortiClient {
76
76
  * ```
77
77
  */
78
78
  this.getAuthHeaders = () => __awaiter(this, void 0, void 0, function* () {
79
- var _a;
79
+ var _a, _b;
80
80
  const req = yield this._options.authProvider.getAuthRequest();
81
- return new Headers(Object.assign(Object.assign({}, ((_a = req.headers) !== null && _a !== void 0 ? _a : {})), { "Tenant-Name": yield core.Supplier.get(this._options.tenantName) }));
81
+ return new Headers(Object.assign(Object.assign({}, ((_a = req.headers) !== null && _a !== void 0 ? _a : {})), { "Tenant-Name": (_b = (yield core.Supplier.get(this._options.tenantName))) !== null && _b !== void 0 ? _b : "" }));
82
82
  });
83
83
  (0, withCredentialsConfig_js_1.setDefaultWithCredentials)(options.withCredentials);
84
84
  this._encodeHeadersAsWsProtocols = options.encodeHeadersAsWsProtocols;
@@ -99,7 +99,7 @@ class CortiAuth extends Client_js_1.AuthClient {
99
99
  return __awaiter(this, void 0, void 0, function* () {
100
100
  const authRequest = (0, buildTokenRequestBody_js_1.buildTokenRequestBody)(request);
101
101
  const tenantName = yield core.Supplier.get(this._tenantName);
102
- return this.token(tenantName, authRequest, requestOptions).withRawResponse();
102
+ return this.token(tenantName !== null && tenantName !== void 0 ? tenantName : "base", authRequest, requestOptions).withRawResponse();
103
103
  });
104
104
  }
105
105
  /** Exchange username/password for access token via ROPC (resource owner password credentials). */
@@ -175,7 +175,7 @@ class CortiAuth extends Client_js_1.AuthClient {
175
175
  return __awaiter(this, arguments, void 0, function* ({ clientId, redirectUri, codeChallenge, scopes }, options) {
176
176
  const envUrls = yield core.Supplier.get(this._options.environment);
177
177
  const tenantName = yield core.Supplier.get(this._tenantName);
178
- const authUrl = new URL(core.url.join(envUrls.login, tenantName, "protocol/openid-connect/auth"));
178
+ const authUrl = new URL(core.url.join(envUrls.login, tenantName !== null && tenantName !== void 0 ? tenantName : "", "protocol/openid-connect/auth"));
179
179
  authUrl.searchParams.set("response_type", "code");
180
180
  const allScopes = ["openid", "profile", ...(scopes !== null && scopes !== void 0 ? scopes : [])];
181
181
  authUrl.searchParams.set("scope", [...new Set(allScopes)].join(" "));
@@ -76,7 +76,7 @@ class CustomStream extends Client_js_1.StreamClient {
76
76
  connect: { get: () => super.connect }
77
77
  });
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
- var _a, _b, _c, _d, _e, _f, _g, _h;
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
80
80
  const { configuration, awaitConfiguration = true, proxy } = args, rest = __rest(args, ["configuration", "awaitConfiguration", "proxy"]);
81
81
  const useProxyPath = proxy || this._encodeHeadersAsWsProtocols;
82
82
  const protocols = yield (0, encodeHeadersAsWsProtocols_js_1.getWsProtocols)(Object.assign(Object.assign({}, this._options), { encodeHeadersAsWsProtocols: this._encodeHeadersAsWsProtocols }), proxy === null || proxy === void 0 ? void 0 : proxy.protocols);
@@ -88,7 +88,7 @@ class CustomStream extends Client_js_1.StreamClient {
88
88
  headers: (_d = rest.headers) !== null && _d !== void 0 ? _d : {},
89
89
  options: { debug: (_e = rest.debug) !== null && _e !== void 0 ? _e : false, maxRetries: (_f = rest.reconnectAttempts) !== null && _f !== void 0 ? _f : 30 },
90
90
  })
91
- : (yield _super.connect.call(this, Object.assign(Object.assign({}, rest), { token: ((_h = (yield ((_g = this._options.authProvider) === null || _g === void 0 ? void 0 : _g.getAuthRequest()))) === null || _h === void 0 ? void 0 : _h.headers.Authorization) || "", tenantName: yield core.Supplier.get(this._options.tenantName) }))).socket;
91
+ : (yield _super.connect.call(this, Object.assign(Object.assign({}, rest), { token: ((_h = (yield ((_g = this._options.authProvider) === null || _g === void 0 ? void 0 : _g.getAuthRequest()))) === null || _h === void 0 ? void 0 : _h.headers.Authorization) || "", tenantName: (_j = (yield core.Supplier.get(this._options.tenantName))) !== null && _j !== void 0 ? _j : "base" }))).socket;
92
92
  const ws = new CustomStreamSocket_js_1.CustomStreamSocket({ socket });
93
93
  if (!configuration) {
94
94
  return ws;
@@ -76,8 +76,8 @@ class CustomTranscribe extends Client_js_1.TranscribeClient {
76
76
  connect: { get: () => super.connect }
77
77
  });
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
- var _a, _b, _c, _d, _e, _f, _g, _h;
80
- const _j = args !== null && args !== void 0 ? args : {}, { configuration, awaitConfiguration = true, proxy } = _j, rest = __rest(_j, ["configuration", "awaitConfiguration", "proxy"]);
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
80
+ const _k = args !== null && args !== void 0 ? args : {}, { configuration, awaitConfiguration = true, proxy } = _k, rest = __rest(_k, ["configuration", "awaitConfiguration", "proxy"]);
81
81
  const useProxyPath = proxy || this._encodeHeadersAsWsProtocols;
82
82
  const protocols = yield (0, encodeHeadersAsWsProtocols_js_1.getWsProtocols)(Object.assign(Object.assign({}, this._options), { encodeHeadersAsWsProtocols: this._encodeHeadersAsWsProtocols }), proxy === null || proxy === void 0 ? void 0 : proxy.protocols);
83
83
  const socket = useProxyPath
@@ -88,7 +88,7 @@ class CustomTranscribe extends Client_js_1.TranscribeClient {
88
88
  headers: (_d = rest.headers) !== null && _d !== void 0 ? _d : {},
89
89
  options: { debug: (_e = rest.debug) !== null && _e !== void 0 ? _e : false, maxRetries: (_f = rest.reconnectAttempts) !== null && _f !== void 0 ? _f : 30 },
90
90
  })
91
- : (yield _super.connect.call(this, Object.assign(Object.assign({}, rest), { token: ((_h = (yield ((_g = this._options.authProvider) === null || _g === void 0 ? void 0 : _g.getAuthRequest()))) === null || _h === void 0 ? void 0 : _h.headers.Authorization) || "", tenantName: yield core.Supplier.get(this._options.tenantName) }))).socket;
91
+ : (yield _super.connect.call(this, Object.assign(Object.assign({}, rest), { token: ((_h = (yield ((_g = this._options.authProvider) === null || _g === void 0 ? void 0 : _g.getAuthRequest()))) === null || _h === void 0 ? void 0 : _h.headers.Authorization) || "", tenantName: (_j = (yield core.Supplier.get(this._options.tenantName))) !== null && _j !== void 0 ? _j : "base" }))).socket;
92
92
  const ws = new CustomTranscribeSocket_js_1.CustomTranscribeSocket({ socket });
93
93
  if (!configuration) {
94
94
  return ws;
@@ -12,6 +12,12 @@ export * as facts from "./facts/index.js";
12
12
  export * from "./interactions/client/requests/index.js";
13
13
  export * as interactions from "./interactions/index.js";
14
14
  export * from "./interactions/types/index.js";
15
+ export * from "./newSections/client/requests/index.js";
16
+ export * as newSections from "./newSections/index.js";
17
+ export * as newSectionVersions from "./newSectionVersions/index.js";
18
+ export * from "./newTemplates/client/requests/index.js";
19
+ export * as newTemplates from "./newTemplates/index.js";
20
+ export * from "./newTemplates/types/index.js";
15
21
  export * from "./stream/client/socket/index.js";
16
22
  export * as stream from "./stream/index.js";
17
23
  export * from "./transcribe/client/socket/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transcripts = exports.transcribe = exports.stream = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
39
+ exports.transcripts = exports.transcribe = exports.stream = exports.newTemplates = exports.newSectionVersions = exports.newSections = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
40
40
  __exportStar(require("./agents/client/requests/index.js"), exports);
41
41
  exports.agents = __importStar(require("./agents/index.js"));
42
42
  __exportStar(require("./agents/types/index.js"), exports);
@@ -51,6 +51,12 @@ exports.facts = __importStar(require("./facts/index.js"));
51
51
  __exportStar(require("./interactions/client/requests/index.js"), exports);
52
52
  exports.interactions = __importStar(require("./interactions/index.js"));
53
53
  __exportStar(require("./interactions/types/index.js"), exports);
54
+ __exportStar(require("./newSections/client/requests/index.js"), exports);
55
+ exports.newSections = __importStar(require("./newSections/index.js"));
56
+ exports.newSectionVersions = __importStar(require("./newSectionVersions/index.js"));
57
+ __exportStar(require("./newTemplates/client/requests/index.js"), exports);
58
+ exports.newTemplates = __importStar(require("./newTemplates/index.js"));
59
+ __exportStar(require("./newTemplates/types/index.js"), exports);
54
60
  __exportStar(require("./stream/client/socket/index.js"), exports);
55
61
  exports.stream = __importStar(require("./stream/index.js"));
56
62
  __exportStar(require("./transcribe/client/socket/index.js"), exports);
@@ -0,0 +1 @@
1
+ export * as list from "./list.js";
@@ -0,0 +1,37 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.list = void 0;
37
+ exports.list = __importStar(require("./list.js"));
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { SectionVersion } from "../../../types/SectionVersion.js";
5
+ export declare const Response: core.serialization.Schema<serializers.newSectionVersions.list.Response.Raw, Corti.SectionVersion[]>;
6
+ export declare namespace Response {
7
+ type Raw = SectionVersion.Raw[];
8
+ }
@@ -0,0 +1,40 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Response = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const SectionVersion_js_1 = require("../../../types/SectionVersion.js");
40
+ exports.Response = core.serialization.list(SectionVersion_js_1.SectionVersion);
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
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);
@@ -0,0 +1,2 @@
1
+ export * as list from "./list.js";
2
+ export * from "./requests/index.js";
@@ -0,0 +1,41 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.list = void 0;
40
+ exports.list = __importStar(require("./list.js"));
41
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { Section } from "../../../types/Section.js";
5
+ export declare const Response: core.serialization.Schema<serializers.newSections.list.Response.Raw, Corti.Section[]>;
6
+ export declare namespace Response {
7
+ type Raw = Section.Raw[];
8
+ }
@@ -0,0 +1,40 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Response = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const Section_js_1 = require("../../../types/Section.js");
40
+ exports.Response = core.serialization.list(Section_js_1.Section);
@@ -0,0 +1,16 @@
1
+ import type * as Corti from "../../../../../api/index.js";
2
+ import * as core from "../../../../../core/index.js";
3
+ import type * as serializers from "../../../../index.js";
4
+ import { SectionGeneration } from "../../../../types/SectionGeneration.js";
5
+ export declare const CreateSectionRequest: core.serialization.Schema<serializers.CreateSectionRequest.Raw, Corti.CreateSectionRequest>;
6
+ export declare namespace CreateSectionRequest {
7
+ interface Raw {
8
+ name: string;
9
+ language: string;
10
+ description?: string | null;
11
+ labels?: string[] | null;
12
+ inheritFromId?: (string | null | undefined) | null;
13
+ generation: SectionGeneration.Raw;
14
+ publish?: boolean | null;
15
+ }
16
+ }
@@ -0,0 +1,48 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CreateSectionRequest = void 0;
38
+ const core = __importStar(require("../../../../../core/index.js"));
39
+ const SectionGeneration_js_1 = require("../../../../types/SectionGeneration.js");
40
+ exports.CreateSectionRequest = core.serialization.object({
41
+ name: core.serialization.string(),
42
+ language: core.serialization.string(),
43
+ description: core.serialization.string().optional(),
44
+ labels: core.serialization.list(core.serialization.string()).optional(),
45
+ inheritFromId: core.serialization.string().optionalNullable(),
46
+ generation: SectionGeneration_js_1.SectionGeneration,
47
+ publish: core.serialization.boolean().optional(),
48
+ });
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../../../../../api/index.js";
2
+ import * as core from "../../../../../core/index.js";
3
+ import type * as serializers from "../../../../index.js";
4
+ export declare const UpdateSectionRequest: core.serialization.Schema<serializers.UpdateSectionRequest.Raw, Corti.UpdateSectionRequest>;
5
+ export declare namespace UpdateSectionRequest {
6
+ interface Raw {
7
+ name?: string | null;
8
+ language?: string | null;
9
+ description?: string | null;
10
+ labels?: string[] | null;
11
+ }
12
+ }