@corti/sdk 2.0.0-templates.7 → 2.0.0-templates.8

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 (646) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +0 -15
  3. package/dist/cjs/Client.js +20 -45
  4. package/dist/cjs/api/resources/documents/client/Client.d.ts +41 -0
  5. package/dist/cjs/api/resources/documents/client/Client.js +111 -0
  6. package/dist/cjs/api/resources/documents/client/requests/GenerateDocumentsRequest.d.ts +17 -0
  7. package/dist/cjs/api/resources/documents/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/documents/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/documents/index.js +2 -0
  10. package/dist/cjs/api/resources/documents/resources/index.d.ts +4 -0
  11. package/dist/cjs/api/resources/documents/resources/index.js +43 -0
  12. package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +84 -0
  13. package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/client/Client.js +44 -36
  14. package/dist/cjs/api/resources/documents/resources/sections/client/requests/ListSectionsRequest.d.ts +16 -0
  15. package/dist/cjs/api/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.ts +13 -0
  16. package/dist/cjs/api/resources/documents/resources/sections/client/requests/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/documents/resources/sections/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/index.js +1 -0
  19. package/dist/cjs/api/resources/documents/resources/sections/resources/index.d.ts +2 -0
  20. package/dist/cjs/api/resources/documents/resources/sections/resources/index.js +41 -0
  21. package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/Client.d.ts +87 -0
  22. package/dist/cjs/api/resources/{alphaSectionVersions → documents/resources/sections/resources/versions}/client/Client.js +43 -39
  23. package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.ts +18 -0
  24. package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +80 -0
  26. package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/Client.js +44 -36
  27. package/dist/cjs/api/resources/documents/resources/templates/client/requests/ListTemplatesRequest.d.ts +16 -0
  28. package/dist/cjs/api/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.ts +13 -0
  29. package/dist/cjs/api/resources/documents/resources/templates/client/requests/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/documents/resources/templates/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/documents/resources/templates/index.js +18 -0
  32. package/dist/cjs/api/resources/documents/resources/templates/resources/index.d.ts +3 -0
  33. package/dist/cjs/api/resources/documents/resources/templates/resources/index.js +42 -0
  34. package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +83 -0
  35. package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/Client.js +35 -33
  36. package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/index.js +17 -0
  38. package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.d.ts +2 -2
  39. package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.d.ts +1 -1
  40. package/dist/cjs/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.ts +4 -0
  41. package/dist/cjs/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.js +7 -0
  42. package/dist/cjs/api/resources/documents/types/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/documents/types/index.js +17 -0
  44. package/dist/cjs/api/resources/facts/client/requests/FactsExtractRequest.d.ts +1 -1
  45. package/dist/cjs/api/resources/index.d.ts +1 -9
  46. package/dist/cjs/api/resources/index.js +2 -10
  47. package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
  48. package/dist/cjs/api/resources/templates/client/Client.d.ts +4 -4
  49. package/dist/cjs/api/resources/templates/client/Client.js +2 -2
  50. package/dist/{esm/api/resources/templates/client/requests/TemplatesListRequest.d.mts → cjs/api/resources/templates/client/requests/ListTemplatesRequest.d.ts} +1 -1
  51. package/dist/cjs/api/resources/templates/client/requests/{TemplatesSectionListRequest.d.ts → SectionListTemplatesRequest.d.ts} +1 -1
  52. package/dist/cjs/api/resources/templates/client/requests/index.d.ts +2 -2
  53. package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
  54. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
  55. package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
  56. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  57. package/dist/cjs/api/types/CreateEphemeralDocumentResponse.d.ts +8 -0
  58. package/dist/cjs/api/types/CreateSectionBase.d.ts +8 -3
  59. package/dist/cjs/api/types/CreateSectionFromInheritanceRequest.d.ts +1 -1
  60. package/dist/cjs/api/types/CreateTemplateBase.d.ts +10 -3
  61. package/dist/cjs/api/types/CreateTemplateFromInheritanceRequest.d.ts +2 -2
  62. package/dist/cjs/api/types/DocumentationEvidence.d.ts +6 -0
  63. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
  64. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +1 -1
  65. package/dist/cjs/api/types/DocumentsGetResponse.d.ts +1 -1
  66. package/dist/cjs/api/types/EphemeralDocument.d.ts +12 -0
  67. package/dist/cjs/api/types/EphemeralDocument.js +3 -0
  68. package/dist/cjs/api/types/GuidedAssemblyRequest.d.ts +0 -2
  69. package/dist/cjs/api/types/GuidedDocumentBase.d.ts +12 -0
  70. package/dist/cjs/api/types/GuidedDocumentBase.js +3 -0
  71. package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +1 -5
  72. package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +1 -5
  73. package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +1 -5
  74. package/dist/cjs/api/types/GuidedDynamicRequest.d.ts +0 -2
  75. package/dist/cjs/api/types/GuidedSectionOverride.d.ts +1 -5
  76. package/dist/cjs/api/types/Label.d.ts +4 -0
  77. package/dist/cjs/api/types/Label.js +3 -0
  78. package/dist/cjs/api/types/Section.d.ts +9 -3
  79. package/dist/cjs/api/types/SectionInstructionsOverride.d.ts +2 -0
  80. package/dist/cjs/api/types/SectionOverrides.d.ts +2 -2
  81. package/dist/cjs/api/types/SectionSource.d.ts +6 -0
  82. package/dist/cjs/api/types/SectionSource.js +9 -0
  83. package/dist/cjs/api/types/StatusResponse.d.ts +2 -0
  84. package/dist/cjs/api/types/StreamAudioEventData.d.ts +9 -0
  85. package/dist/cjs/api/types/StreamAudioEventData.js +3 -0
  86. package/dist/cjs/api/types/StreamAudioEventDataEvent.d.ts +8 -0
  87. package/dist/cjs/api/types/StreamAudioEventDataEvent.js +11 -0
  88. package/dist/cjs/api/types/StreamAudioEventMessage.d.ts +5 -0
  89. package/dist/cjs/api/types/StreamAudioEventMessage.js +3 -0
  90. package/dist/cjs/api/types/StreamAudioEventsConfig.d.ts +4 -0
  91. package/dist/cjs/api/types/StreamAudioEventsConfig.js +3 -0
  92. package/dist/cjs/api/types/StreamConfig.d.ts +1 -0
  93. package/dist/cjs/api/types/StreamConfigMode.d.ts +2 -0
  94. package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.d.ts +6 -0
  95. package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.js +9 -0
  96. package/dist/cjs/api/types/Template.d.ts +11 -3
  97. package/dist/cjs/api/types/TemplateGeneration.d.ts +1 -1
  98. package/dist/cjs/api/types/TemplateSource.d.ts +6 -0
  99. package/dist/cjs/api/types/TemplateSource.js +9 -0
  100. package/dist/cjs/api/types/TranscribeAudioEventData.d.ts +9 -0
  101. package/dist/cjs/api/types/TranscribeAudioEventData.js +3 -0
  102. package/dist/cjs/api/types/TranscribeAudioEventDataEvent.d.ts +8 -0
  103. package/dist/cjs/api/types/TranscribeAudioEventDataEvent.js +11 -0
  104. package/dist/cjs/api/types/TranscribeAudioEventMessage.d.ts +5 -0
  105. package/dist/cjs/api/types/TranscribeAudioEventMessage.js +3 -0
  106. package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +4 -0
  107. package/dist/cjs/api/types/TranscribeAudioEventsConfig.js +3 -0
  108. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -0
  109. package/dist/cjs/api/types/index.d.ts +16 -4
  110. package/dist/cjs/api/types/index.js +16 -4
  111. package/dist/cjs/custom/CortiClient.js +2 -2
  112. package/dist/cjs/custom/auth/CortiAuth.js +2 -2
  113. package/dist/cjs/custom/stream/CustomStream.js +2 -2
  114. package/dist/cjs/custom/transcribe/CustomTranscribe.js +3 -3
  115. package/dist/cjs/serialization/resources/documents/index.d.ts +2 -0
  116. package/dist/cjs/serialization/resources/documents/index.js +2 -0
  117. package/dist/cjs/serialization/resources/documents/resources/index.d.ts +4 -0
  118. package/dist/cjs/serialization/resources/documents/resources/index.js +43 -0
  119. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +8 -0
  120. package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/list.js +2 -2
  121. package/dist/cjs/serialization/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.ts +15 -0
  122. package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/UpdateSectionRequest.js +6 -3
  123. package/dist/cjs/serialization/resources/documents/resources/sections/index.d.ts +2 -0
  124. package/dist/cjs/serialization/resources/documents/resources/sections/index.js +18 -0
  125. package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.d.ts +2 -0
  126. package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.js +41 -0
  127. package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/list.d.ts +8 -0
  128. package/dist/cjs/serialization/resources/{alphaSectionVersions → documents/resources/sections/resources/versions}/client/list.js +2 -2
  129. package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.ts +10 -0
  130. package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.js +42 -0
  131. package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.d.ts +1 -0
  132. package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.js +5 -0
  133. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +8 -0
  134. package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/list.js +2 -2
  135. package/dist/cjs/serialization/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.ts +15 -0
  136. package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/UpdateTemplateRequest.js +6 -3
  137. package/dist/cjs/serialization/resources/documents/resources/templates/index.d.ts +2 -0
  138. package/dist/cjs/serialization/resources/documents/resources/templates/index.js +18 -0
  139. package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.d.ts +3 -0
  140. package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.js +42 -0
  141. package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/index.d.ts +2 -0
  142. package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/index.js +41 -0
  143. package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/list.d.ts +8 -0
  144. package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/list.js +2 -2
  145. package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.d.ts +10 -0
  146. package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.js +1 -1
  147. package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.d.ts +12 -0
  148. package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.js +3 -3
  149. package/dist/cjs/serialization/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.ts +7 -0
  150. package/dist/cjs/serialization/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.js +39 -0
  151. package/dist/cjs/serialization/resources/documents/types/index.d.ts +1 -0
  152. package/dist/cjs/serialization/resources/documents/types/index.js +17 -0
  153. package/dist/cjs/serialization/resources/index.d.ts +1 -8
  154. package/dist/cjs/serialization/resources/index.js +2 -9
  155. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +3 -2
  156. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +2 -0
  157. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +3 -2
  158. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +2 -0
  159. package/dist/cjs/serialization/types/CreateEphemeralDocumentResponse.d.ts +12 -0
  160. package/dist/cjs/serialization/types/CreateEphemeralDocumentResponse.js +44 -0
  161. package/dist/cjs/serialization/types/CreateSectionBase.d.ts +5 -2
  162. package/dist/cjs/serialization/types/CreateSectionBase.js +5 -2
  163. package/dist/cjs/serialization/types/CreateSectionFromInheritanceRequest.d.ts +1 -1
  164. package/dist/cjs/serialization/types/CreateSectionFromInheritanceRequest.js +1 -1
  165. package/dist/cjs/serialization/types/CreateTemplateBase.d.ts +6 -2
  166. package/dist/cjs/serialization/types/CreateTemplateBase.js +6 -2
  167. package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequest.d.ts +1 -1
  168. package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequest.js +1 -1
  169. package/dist/cjs/serialization/types/DocumentationEvidence.d.ts +12 -0
  170. package/dist/cjs/serialization/types/{GuidedDocumentResponse.js → DocumentationEvidence.js} +6 -6
  171. package/dist/cjs/serialization/types/EphemeralDocument.d.ts +14 -0
  172. package/dist/cjs/serialization/types/{GuidedGenerationResult.js → EphemeralDocument.js} +7 -5
  173. package/dist/cjs/serialization/types/GuidedAssemblyRequest.d.ts +0 -1
  174. package/dist/cjs/serialization/types/GuidedAssemblyRequest.js +0 -1
  175. package/dist/cjs/serialization/types/GuidedDocumentBase.d.ts +12 -0
  176. package/dist/cjs/serialization/types/GuidedDocumentBase.js +44 -0
  177. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +2 -4
  178. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +5 -5
  179. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +2 -4
  180. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.js +5 -5
  181. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +2 -4
  182. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.js +5 -5
  183. package/dist/cjs/serialization/types/GuidedDynamicRequest.d.ts +0 -1
  184. package/dist/cjs/serialization/types/GuidedDynamicRequest.js +0 -1
  185. package/dist/cjs/serialization/types/GuidedSectionOverride.d.ts +3 -5
  186. package/dist/cjs/serialization/types/GuidedSectionOverride.js +2 -5
  187. package/dist/cjs/serialization/types/Label.d.ts +10 -0
  188. package/dist/cjs/serialization/types/{GuidedGenerationResultUsageTokenCount.js → Label.js} +4 -4
  189. package/dist/cjs/serialization/types/Section.d.ts +7 -2
  190. package/dist/cjs/serialization/types/Section.js +7 -2
  191. package/dist/cjs/serialization/types/SectionInstructionsOverride.d.ts +1 -0
  192. package/dist/cjs/serialization/types/SectionInstructionsOverride.js +1 -0
  193. package/dist/cjs/serialization/types/SectionOverrides.d.ts +1 -1
  194. package/dist/cjs/serialization/types/SectionOverrides.js +1 -1
  195. package/dist/cjs/serialization/types/SectionSource.d.ts +7 -0
  196. package/dist/cjs/serialization/{resources/alphaSectionVersions/client/index.js → types/SectionSource.js} +4 -2
  197. package/dist/cjs/serialization/types/StatusResponse.d.ts +2 -0
  198. package/dist/cjs/serialization/types/StatusResponse.js +2 -0
  199. package/dist/cjs/serialization/types/StreamAudioEventData.d.ts +12 -0
  200. package/dist/cjs/serialization/types/StreamAudioEventData.js +44 -0
  201. package/dist/cjs/serialization/types/StreamAudioEventDataEvent.d.ts +7 -0
  202. package/dist/cjs/serialization/types/StreamAudioEventDataEvent.js +44 -0
  203. package/dist/cjs/serialization/types/StreamAudioEventMessage.d.ts +11 -0
  204. package/dist/cjs/serialization/types/StreamAudioEventMessage.js +43 -0
  205. package/dist/cjs/serialization/types/StreamAudioEventsConfig.d.ts +9 -0
  206. package/dist/cjs/serialization/types/StreamAudioEventsConfig.js +41 -0
  207. package/dist/cjs/serialization/types/StreamConfig.d.ts +2 -0
  208. package/dist/cjs/serialization/types/StreamConfig.js +2 -0
  209. package/dist/cjs/serialization/types/StreamConfigMode.d.ts +2 -0
  210. package/dist/cjs/serialization/types/StreamConfigMode.js +2 -0
  211. package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.d.ts +7 -0
  212. package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.js +39 -0
  213. package/dist/cjs/serialization/types/Template.d.ts +8 -2
  214. package/dist/cjs/serialization/types/Template.js +8 -2
  215. package/dist/cjs/serialization/types/TemplateSource.d.ts +7 -0
  216. package/dist/cjs/serialization/types/TemplateSource.js +39 -0
  217. package/dist/cjs/serialization/types/TranscribeAudioEventData.d.ts +12 -0
  218. package/dist/cjs/serialization/types/TranscribeAudioEventData.js +44 -0
  219. package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.d.ts +7 -0
  220. package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.js +44 -0
  221. package/dist/cjs/serialization/types/TranscribeAudioEventMessage.d.ts +11 -0
  222. package/dist/cjs/serialization/types/{GuidedGenerationResultUsage.js → TranscribeAudioEventMessage.js} +5 -4
  223. package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +9 -0
  224. package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +41 -0
  225. package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
  226. package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
  227. package/dist/cjs/serialization/types/index.d.ts +16 -4
  228. package/dist/cjs/serialization/types/index.js +16 -4
  229. package/dist/cjs/version.d.ts +1 -1
  230. package/dist/cjs/version.js +1 -1
  231. package/dist/esm/BaseClient.mjs +2 -2
  232. package/dist/esm/Client.d.mts +0 -15
  233. package/dist/esm/Client.mjs +0 -25
  234. package/dist/esm/api/resources/documents/client/Client.d.mts +41 -0
  235. package/dist/esm/api/resources/documents/client/Client.mjs +111 -0
  236. package/dist/esm/api/resources/documents/client/requests/GenerateDocumentsRequest.d.mts +17 -0
  237. package/dist/esm/api/resources/documents/client/requests/index.d.mts +1 -0
  238. package/dist/esm/api/resources/documents/index.d.mts +2 -0
  239. package/dist/esm/api/resources/documents/index.mjs +2 -0
  240. package/dist/esm/api/resources/documents/resources/index.d.mts +4 -0
  241. package/dist/esm/api/resources/documents/resources/index.mjs +4 -0
  242. package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +84 -0
  243. package/dist/esm/api/resources/{alphaSections → documents/resources/sections}/client/Client.mjs +42 -34
  244. package/dist/esm/api/resources/documents/resources/sections/client/requests/ListSectionsRequest.d.mts +16 -0
  245. package/dist/esm/api/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.mts +13 -0
  246. package/dist/esm/api/resources/documents/resources/sections/client/requests/index.d.mts +2 -0
  247. package/dist/esm/api/resources/documents/resources/sections/index.d.mts +2 -0
  248. package/dist/esm/api/resources/documents/resources/sections/index.mjs +2 -0
  249. package/dist/esm/api/resources/documents/resources/sections/resources/index.d.mts +2 -0
  250. package/dist/esm/api/resources/documents/resources/sections/resources/index.mjs +2 -0
  251. package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.d.mts +87 -0
  252. package/dist/esm/api/resources/{alphaSectionVersions → documents/resources/sections/resources/versions}/client/Client.mjs +41 -37
  253. package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.mts +18 -0
  254. package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/requests/index.d.mts +1 -0
  255. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +80 -0
  256. package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/Client.mjs +42 -34
  257. package/dist/esm/api/resources/documents/resources/templates/client/requests/ListTemplatesRequest.d.mts +16 -0
  258. package/dist/esm/api/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.mts +13 -0
  259. package/dist/esm/api/resources/documents/resources/templates/client/requests/index.d.mts +2 -0
  260. package/dist/esm/api/resources/documents/resources/templates/index.d.mts +2 -0
  261. package/dist/esm/api/resources/documents/resources/templates/index.mjs +2 -0
  262. package/dist/esm/api/resources/documents/resources/templates/resources/index.d.mts +3 -0
  263. package/dist/esm/api/resources/documents/resources/templates/resources/index.mjs +3 -0
  264. package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +83 -0
  265. package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/Client.mjs +33 -31
  266. package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/index.d.mts +1 -0
  267. package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/index.mjs +1 -0
  268. package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.d.mts +2 -2
  269. package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.d.mts +1 -1
  270. package/dist/esm/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.mts +4 -0
  271. package/dist/esm/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.mjs +4 -0
  272. package/dist/esm/api/resources/documents/types/index.d.mts +1 -0
  273. package/dist/esm/api/resources/documents/types/index.mjs +1 -0
  274. package/dist/esm/api/resources/facts/client/requests/FactsExtractRequest.d.mts +1 -1
  275. package/dist/esm/api/resources/index.d.mts +1 -9
  276. package/dist/esm/api/resources/index.mjs +1 -9
  277. package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
  278. package/dist/esm/api/resources/templates/client/Client.d.mts +4 -4
  279. package/dist/esm/api/resources/templates/client/Client.mjs +2 -2
  280. package/dist/{cjs/api/resources/templates/client/requests/TemplatesListRequest.d.ts → esm/api/resources/templates/client/requests/ListTemplatesRequest.d.mts} +1 -1
  281. package/dist/esm/api/resources/templates/client/requests/{TemplatesSectionListRequest.d.mts → SectionListTemplatesRequest.d.mts} +1 -1
  282. package/dist/esm/api/resources/templates/client/requests/index.d.mts +2 -2
  283. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
  284. package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
  285. package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
  286. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  287. package/dist/esm/api/types/CreateEphemeralDocumentResponse.d.mts +8 -0
  288. package/dist/esm/api/types/CreateSectionBase.d.mts +8 -3
  289. package/dist/esm/api/types/CreateSectionFromInheritanceRequest.d.mts +1 -1
  290. package/dist/esm/api/types/CreateTemplateBase.d.mts +10 -3
  291. package/dist/esm/api/types/CreateTemplateFromInheritanceRequest.d.mts +2 -2
  292. package/dist/esm/api/types/DocumentationEvidence.d.mts +6 -0
  293. package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
  294. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +1 -1
  295. package/dist/esm/api/types/DocumentsGetResponse.d.mts +1 -1
  296. package/dist/esm/api/types/EphemeralDocument.d.mts +12 -0
  297. package/dist/esm/api/types/EphemeralDocument.mjs +2 -0
  298. package/dist/esm/api/types/GuidedAssemblyRequest.d.mts +0 -2
  299. package/dist/esm/api/types/GuidedDocumentBase.d.mts +12 -0
  300. package/dist/esm/api/types/GuidedDocumentBase.mjs +2 -0
  301. package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +1 -5
  302. package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +1 -5
  303. package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +1 -5
  304. package/dist/esm/api/types/GuidedDynamicRequest.d.mts +0 -2
  305. package/dist/esm/api/types/GuidedSectionOverride.d.mts +1 -5
  306. package/dist/esm/api/types/Label.d.mts +4 -0
  307. package/dist/esm/api/types/Label.mjs +2 -0
  308. package/dist/esm/api/types/Section.d.mts +9 -3
  309. package/dist/esm/api/types/SectionInstructionsOverride.d.mts +2 -0
  310. package/dist/esm/api/types/SectionOverrides.d.mts +2 -2
  311. package/dist/esm/api/types/SectionSource.d.mts +6 -0
  312. package/dist/esm/api/types/SectionSource.mjs +6 -0
  313. package/dist/esm/api/types/StatusResponse.d.mts +2 -0
  314. package/dist/esm/api/types/StreamAudioEventData.d.mts +9 -0
  315. package/dist/esm/api/types/StreamAudioEventData.mjs +2 -0
  316. package/dist/esm/api/types/StreamAudioEventDataEvent.d.mts +8 -0
  317. package/dist/esm/api/types/StreamAudioEventDataEvent.mjs +8 -0
  318. package/dist/esm/api/types/StreamAudioEventMessage.d.mts +5 -0
  319. package/dist/esm/api/types/StreamAudioEventMessage.mjs +2 -0
  320. package/dist/esm/api/types/StreamAudioEventsConfig.d.mts +4 -0
  321. package/dist/esm/api/types/StreamAudioEventsConfig.mjs +2 -0
  322. package/dist/esm/api/types/StreamConfig.d.mts +1 -0
  323. package/dist/esm/api/types/StreamConfigMode.d.mts +2 -0
  324. package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.d.mts +6 -0
  325. package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.mjs +6 -0
  326. package/dist/esm/api/types/Template.d.mts +11 -3
  327. package/dist/esm/api/types/TemplateGeneration.d.mts +1 -1
  328. package/dist/esm/api/types/TemplateSource.d.mts +6 -0
  329. package/dist/esm/api/types/TemplateSource.mjs +6 -0
  330. package/dist/esm/api/types/TranscribeAudioEventData.d.mts +9 -0
  331. package/dist/esm/api/types/TranscribeAudioEventData.mjs +2 -0
  332. package/dist/esm/api/types/TranscribeAudioEventDataEvent.d.mts +8 -0
  333. package/dist/esm/api/types/TranscribeAudioEventDataEvent.mjs +8 -0
  334. package/dist/esm/api/types/TranscribeAudioEventMessage.d.mts +5 -0
  335. package/dist/esm/api/types/TranscribeAudioEventMessage.mjs +2 -0
  336. package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +4 -0
  337. package/dist/esm/api/types/TranscribeAudioEventsConfig.mjs +2 -0
  338. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -0
  339. package/dist/esm/api/types/index.d.mts +16 -4
  340. package/dist/esm/api/types/index.mjs +16 -4
  341. package/dist/esm/custom/CortiClient.mjs +2 -2
  342. package/dist/esm/custom/auth/CortiAuth.mjs +2 -2
  343. package/dist/esm/custom/stream/CustomStream.mjs +2 -2
  344. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +3 -3
  345. package/dist/esm/serialization/resources/documents/index.d.mts +2 -0
  346. package/dist/esm/serialization/resources/documents/index.mjs +2 -0
  347. package/dist/esm/serialization/resources/documents/resources/index.d.mts +4 -0
  348. package/dist/esm/serialization/resources/documents/resources/index.mjs +4 -0
  349. package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +8 -0
  350. package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +4 -0
  351. package/dist/esm/serialization/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.mts +15 -0
  352. package/dist/esm/serialization/resources/documents/resources/sections/client/requests/UpdateSectionRequest.mjs +11 -0
  353. package/dist/esm/serialization/resources/documents/resources/sections/index.d.mts +2 -0
  354. package/dist/esm/serialization/resources/documents/resources/sections/index.mjs +2 -0
  355. package/dist/esm/serialization/resources/documents/resources/sections/resources/index.d.mts +2 -0
  356. package/dist/esm/serialization/resources/documents/resources/sections/resources/index.mjs +2 -0
  357. package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/list.d.mts +8 -0
  358. package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/list.mjs +4 -0
  359. package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.mts +10 -0
  360. package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.mjs +6 -0
  361. package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.d.mts +1 -0
  362. package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.mjs +1 -0
  363. package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +8 -0
  364. package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/list.mjs +2 -2
  365. package/dist/esm/serialization/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.mts +15 -0
  366. package/dist/esm/serialization/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.mjs +11 -0
  367. package/dist/esm/serialization/resources/documents/resources/templates/index.d.mts +2 -0
  368. package/dist/esm/serialization/resources/documents/resources/templates/index.mjs +2 -0
  369. package/dist/esm/serialization/resources/documents/resources/templates/resources/index.d.mts +3 -0
  370. package/dist/esm/serialization/resources/documents/resources/templates/resources/index.mjs +3 -0
  371. package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/index.d.mts +2 -0
  372. package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/index.mjs +2 -0
  373. package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/list.d.mts +8 -0
  374. package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/list.mjs +4 -0
  375. package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.d.mts +10 -0
  376. package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.mjs +1 -1
  377. package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.d.mts +12 -0
  378. package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.mjs +3 -3
  379. package/dist/esm/serialization/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.mts +7 -0
  380. package/dist/esm/serialization/resources/{alphaSections/client/list.mjs → documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.mjs} +1 -2
  381. package/dist/esm/serialization/resources/documents/types/index.d.mts +1 -0
  382. package/dist/esm/serialization/resources/documents/types/index.mjs +1 -0
  383. package/dist/esm/serialization/resources/index.d.mts +1 -8
  384. package/dist/esm/serialization/resources/index.mjs +1 -8
  385. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +3 -2
  386. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +2 -0
  387. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +3 -2
  388. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +2 -0
  389. package/dist/esm/serialization/types/CreateEphemeralDocumentResponse.d.mts +12 -0
  390. package/dist/esm/serialization/types/CreateEphemeralDocumentResponse.mjs +8 -0
  391. package/dist/esm/serialization/types/CreateSectionBase.d.mts +5 -2
  392. package/dist/esm/serialization/types/CreateSectionBase.mjs +5 -2
  393. package/dist/esm/serialization/types/CreateSectionFromInheritanceRequest.d.mts +1 -1
  394. package/dist/esm/serialization/types/CreateSectionFromInheritanceRequest.mjs +1 -1
  395. package/dist/esm/serialization/types/CreateTemplateBase.d.mts +6 -2
  396. package/dist/esm/serialization/types/CreateTemplateBase.mjs +6 -2
  397. package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequest.d.mts +1 -1
  398. package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequest.mjs +1 -1
  399. package/dist/esm/serialization/types/DocumentationEvidence.d.mts +12 -0
  400. package/dist/esm/serialization/types/DocumentationEvidence.mjs +8 -0
  401. package/dist/esm/serialization/types/EphemeralDocument.d.mts +14 -0
  402. package/dist/esm/serialization/types/{GuidedGenerationResult.mjs → EphemeralDocument.mjs} +6 -4
  403. package/dist/esm/serialization/types/GuidedAssemblyRequest.d.mts +0 -1
  404. package/dist/esm/serialization/types/GuidedAssemblyRequest.mjs +0 -1
  405. package/dist/esm/serialization/types/GuidedDocumentBase.d.mts +12 -0
  406. package/dist/esm/serialization/types/GuidedDocumentBase.mjs +8 -0
  407. package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +2 -4
  408. package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +5 -5
  409. package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +2 -4
  410. package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +5 -5
  411. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +2 -4
  412. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +5 -5
  413. package/dist/esm/serialization/types/GuidedDynamicRequest.d.mts +0 -1
  414. package/dist/esm/serialization/types/GuidedDynamicRequest.mjs +0 -1
  415. package/dist/esm/serialization/types/GuidedSectionOverride.d.mts +3 -5
  416. package/dist/esm/serialization/types/GuidedSectionOverride.mjs +2 -5
  417. package/dist/esm/serialization/types/Label.d.mts +10 -0
  418. package/dist/esm/serialization/types/Label.mjs +6 -0
  419. package/dist/esm/serialization/types/Section.d.mts +7 -2
  420. package/dist/esm/serialization/types/Section.mjs +7 -2
  421. package/dist/esm/serialization/types/SectionInstructionsOverride.d.mts +1 -0
  422. package/dist/esm/serialization/types/SectionInstructionsOverride.mjs +1 -0
  423. package/dist/esm/serialization/types/SectionOverrides.d.mts +1 -1
  424. package/dist/esm/serialization/types/SectionOverrides.mjs +1 -1
  425. package/dist/esm/serialization/types/SectionSource.d.mts +7 -0
  426. package/dist/esm/serialization/types/SectionSource.mjs +3 -0
  427. package/dist/esm/serialization/types/StatusResponse.d.mts +2 -0
  428. package/dist/esm/serialization/types/StatusResponse.mjs +2 -0
  429. package/dist/esm/serialization/types/StreamAudioEventData.d.mts +12 -0
  430. package/dist/esm/serialization/types/StreamAudioEventData.mjs +8 -0
  431. package/dist/esm/serialization/types/StreamAudioEventDataEvent.d.mts +7 -0
  432. package/dist/esm/serialization/types/StreamAudioEventDataEvent.mjs +8 -0
  433. package/dist/esm/serialization/types/StreamAudioEventMessage.d.mts +11 -0
  434. package/dist/esm/serialization/types/StreamAudioEventMessage.mjs +7 -0
  435. package/dist/esm/serialization/types/StreamAudioEventsConfig.d.mts +9 -0
  436. package/dist/esm/serialization/types/StreamAudioEventsConfig.mjs +5 -0
  437. package/dist/esm/serialization/types/StreamConfig.d.mts +2 -0
  438. package/dist/esm/serialization/types/StreamConfig.mjs +2 -0
  439. package/dist/esm/serialization/types/StreamConfigMode.d.mts +2 -0
  440. package/dist/esm/serialization/types/StreamConfigMode.mjs +2 -0
  441. package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.d.mts +7 -0
  442. package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.mjs +3 -0
  443. package/dist/esm/serialization/types/Template.d.mts +8 -2
  444. package/dist/esm/serialization/types/Template.mjs +8 -2
  445. package/dist/esm/serialization/types/TemplateSource.d.mts +7 -0
  446. package/dist/esm/serialization/types/TemplateSource.mjs +3 -0
  447. package/dist/esm/serialization/types/TranscribeAudioEventData.d.mts +12 -0
  448. package/dist/esm/serialization/types/TranscribeAudioEventData.mjs +8 -0
  449. package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.d.mts +7 -0
  450. package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.mjs +8 -0
  451. package/dist/esm/serialization/types/TranscribeAudioEventMessage.d.mts +11 -0
  452. package/dist/esm/serialization/types/TranscribeAudioEventMessage.mjs +7 -0
  453. package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +9 -0
  454. package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +5 -0
  455. package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
  456. package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
  457. package/dist/esm/serialization/types/index.d.mts +16 -4
  458. package/dist/esm/serialization/types/index.mjs +16 -4
  459. package/dist/esm/version.d.mts +1 -1
  460. package/dist/esm/version.mjs +1 -1
  461. package/package.json +1 -1
  462. package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +0 -35
  463. package/dist/cjs/api/resources/alphaDocuments/client/Client.js +0 -143
  464. package/dist/cjs/api/resources/alphaDocuments/client/index.d.ts +0 -1
  465. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.d.ts +0 -83
  466. package/dist/cjs/api/resources/alphaSectionVersions/client/index.d.ts +0 -1
  467. package/dist/cjs/api/resources/alphaSections/client/Client.d.ts +0 -80
  468. package/dist/cjs/api/resources/alphaSections/client/requests/ListAlphaSectionsRequest.d.ts +0 -12
  469. package/dist/cjs/api/resources/alphaSections/client/requests/UpdateSectionRequest.d.ts +0 -10
  470. package/dist/cjs/api/resources/alphaSections/client/requests/index.d.ts +0 -2
  471. package/dist/cjs/api/resources/alphaSections/index.d.ts +0 -1
  472. package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.d.ts +0 -81
  473. package/dist/cjs/api/resources/alphaTemplates/client/Client.d.ts +0 -76
  474. package/dist/cjs/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.ts +0 -12
  475. package/dist/cjs/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +0 -10
  476. package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +0 -2
  477. package/dist/cjs/api/resources/alphaTemplates/client/requests/index.js +0 -2
  478. package/dist/cjs/api/resources/alphaTemplates/index.d.ts +0 -1
  479. package/dist/cjs/api/resources/alphaTemplates/index.js +0 -17
  480. package/dist/cjs/api/types/GuidedDocumentResponse.d.ts +0 -8
  481. package/dist/cjs/api/types/GuidedGenerationResult.d.ts +0 -11
  482. package/dist/cjs/api/types/GuidedGenerationResultUsage.d.ts +0 -4
  483. package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -4
  484. package/dist/cjs/serialization/resources/alphaSectionVersions/client/index.d.ts +0 -1
  485. package/dist/cjs/serialization/resources/alphaSectionVersions/client/list.d.ts +0 -8
  486. package/dist/cjs/serialization/resources/alphaSectionVersions/index.d.ts +0 -1
  487. package/dist/cjs/serialization/resources/alphaSectionVersions/index.js +0 -17
  488. package/dist/cjs/serialization/resources/alphaSections/client/list.d.ts +0 -8
  489. package/dist/cjs/serialization/resources/alphaSections/client/requests/UpdateSectionRequest.d.ts +0 -12
  490. package/dist/cjs/serialization/resources/alphaSections/index.d.ts +0 -1
  491. package/dist/cjs/serialization/resources/alphaSections/index.js +0 -17
  492. package/dist/cjs/serialization/resources/alphaTemplateVersions/client/list.d.ts +0 -8
  493. package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +0 -10
  494. package/dist/cjs/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.ts +0 -12
  495. package/dist/cjs/serialization/resources/alphaTemplates/client/list.d.ts +0 -8
  496. package/dist/cjs/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +0 -12
  497. package/dist/cjs/serialization/resources/alphaTemplates/index.d.ts +0 -1
  498. package/dist/cjs/serialization/resources/alphaTemplates/index.js +0 -17
  499. package/dist/cjs/serialization/types/GuidedDocumentResponse.d.ts +0 -12
  500. package/dist/cjs/serialization/types/GuidedGenerationResult.d.ts +0 -12
  501. package/dist/cjs/serialization/types/GuidedGenerationResultUsage.d.ts +0 -10
  502. package/dist/cjs/serialization/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -10
  503. package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +0 -35
  504. package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +0 -106
  505. package/dist/esm/api/resources/alphaDocuments/client/index.d.mts +0 -1
  506. package/dist/esm/api/resources/alphaSectionVersions/client/Client.d.mts +0 -83
  507. package/dist/esm/api/resources/alphaSectionVersions/client/index.d.mts +0 -1
  508. package/dist/esm/api/resources/alphaSections/client/Client.d.mts +0 -80
  509. package/dist/esm/api/resources/alphaSections/client/requests/ListAlphaSectionsRequest.d.mts +0 -12
  510. package/dist/esm/api/resources/alphaSections/client/requests/UpdateSectionRequest.d.mts +0 -10
  511. package/dist/esm/api/resources/alphaSections/client/requests/index.d.mts +0 -2
  512. package/dist/esm/api/resources/alphaSections/index.d.mts +0 -1
  513. package/dist/esm/api/resources/alphaSections/index.mjs +0 -1
  514. package/dist/esm/api/resources/alphaTemplateVersions/client/Client.d.mts +0 -81
  515. package/dist/esm/api/resources/alphaTemplates/client/Client.d.mts +0 -76
  516. package/dist/esm/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.mts +0 -12
  517. package/dist/esm/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +0 -10
  518. package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +0 -2
  519. package/dist/esm/api/resources/alphaTemplates/client/requests/index.mjs +0 -1
  520. package/dist/esm/api/resources/alphaTemplates/index.d.mts +0 -1
  521. package/dist/esm/api/resources/alphaTemplates/index.mjs +0 -1
  522. package/dist/esm/api/types/GuidedDocumentResponse.d.mts +0 -8
  523. package/dist/esm/api/types/GuidedGenerationResult.d.mts +0 -11
  524. package/dist/esm/api/types/GuidedGenerationResultUsage.d.mts +0 -4
  525. package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -4
  526. package/dist/esm/serialization/resources/alphaSectionVersions/client/index.d.mts +0 -1
  527. package/dist/esm/serialization/resources/alphaSectionVersions/client/index.mjs +0 -1
  528. package/dist/esm/serialization/resources/alphaSectionVersions/client/list.d.mts +0 -8
  529. package/dist/esm/serialization/resources/alphaSectionVersions/client/list.mjs +0 -4
  530. package/dist/esm/serialization/resources/alphaSectionVersions/index.d.mts +0 -1
  531. package/dist/esm/serialization/resources/alphaSectionVersions/index.mjs +0 -1
  532. package/dist/esm/serialization/resources/alphaSections/client/list.d.mts +0 -8
  533. package/dist/esm/serialization/resources/alphaSections/client/requests/UpdateSectionRequest.d.mts +0 -12
  534. package/dist/esm/serialization/resources/alphaSections/client/requests/UpdateSectionRequest.mjs +0 -8
  535. package/dist/esm/serialization/resources/alphaSections/index.d.mts +0 -1
  536. package/dist/esm/serialization/resources/alphaSections/index.mjs +0 -1
  537. package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.d.mts +0 -8
  538. package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.mjs +0 -4
  539. package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +0 -10
  540. package/dist/esm/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.mts +0 -12
  541. package/dist/esm/serialization/resources/alphaTemplates/client/list.d.mts +0 -8
  542. package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +0 -12
  543. package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs +0 -8
  544. package/dist/esm/serialization/resources/alphaTemplates/index.d.mts +0 -1
  545. package/dist/esm/serialization/resources/alphaTemplates/index.mjs +0 -1
  546. package/dist/esm/serialization/types/GuidedDocumentResponse.d.mts +0 -12
  547. package/dist/esm/serialization/types/GuidedDocumentResponse.mjs +0 -8
  548. package/dist/esm/serialization/types/GuidedGenerationResult.d.mts +0 -12
  549. package/dist/esm/serialization/types/GuidedGenerationResultUsage.d.mts +0 -10
  550. package/dist/esm/serialization/types/GuidedGenerationResultUsage.mjs +0 -6
  551. package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -10
  552. package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.mjs +0 -6
  553. /package/dist/cjs/api/resources/{alphaSections/client/requests/ListAlphaSectionsRequest.js → documents/client/requests/GenerateDocumentsRequest.js} +0 -0
  554. /package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/client/index.d.ts +0 -0
  555. /package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/client/index.js +0 -0
  556. /package/dist/cjs/api/resources/{alphaSections/client/requests/UpdateSectionRequest.js → documents/resources/sections/client/requests/ListSectionsRequest.js} +0 -0
  557. /package/dist/cjs/api/resources/{alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.js → documents/resources/sections/client/requests/UpdateSectionRequest.js} +0 -0
  558. /package/dist/cjs/api/resources/{alphaDocuments/client → documents/resources/sections/client/requests}/index.js +0 -0
  559. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.ts +0 -0
  560. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.js +0 -0
  561. /package/dist/cjs/api/resources/{alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.js → documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.js} +0 -0
  562. /package/dist/cjs/api/resources/{alphaSectionVersions/client → documents/resources/sections/resources/versions/client/requests}/index.js +0 -0
  563. /package/dist/cjs/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.d.ts +0 -0
  564. /package/dist/cjs/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.js +0 -0
  565. /package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/index.d.ts +0 -0
  566. /package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/index.js +0 -0
  567. /package/dist/cjs/api/resources/{alphaTemplates/client/requests/ListAlphaTemplatesRequest.js → documents/resources/templates/client/requests/ListTemplatesRequest.js} +0 -0
  568. /package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/requests/UpdateTemplateRequest.js +0 -0
  569. /package/dist/cjs/api/resources/{alphaSections → documents/resources/templates}/client/requests/index.js +0 -0
  570. /package/dist/cjs/api/resources/{templates/client/requests/TemplatesListRequest.js → documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.js} +0 -0
  571. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.ts +0 -0
  572. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.js +0 -0
  573. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.ts +0 -0
  574. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.js +0 -0
  575. /package/dist/cjs/api/resources/{templates/client/requests/TemplatesSectionListRequest.js → documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.js} +0 -0
  576. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.ts +0 -0
  577. /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.js +0 -0
  578. /package/dist/cjs/api/{types/GuidedDocumentResponse.js → resources/templates/client/requests/ListTemplatesRequest.js} +0 -0
  579. /package/dist/cjs/api/{types/GuidedGenerationResult.js → resources/templates/client/requests/SectionListTemplatesRequest.js} +0 -0
  580. /package/dist/cjs/api/types/{GuidedGenerationResultUsage.js → CreateEphemeralDocumentResponse.js} +0 -0
  581. /package/dist/cjs/api/types/{GuidedGenerationResultUsageTokenCount.js → DocumentationEvidence.js} +0 -0
  582. /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/index.d.ts +0 -0
  583. /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/index.js +0 -0
  584. /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.d.ts +0 -0
  585. /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.js +0 -0
  586. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.ts +0 -0
  587. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.js +0 -0
  588. /package/dist/cjs/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.d.ts +0 -0
  589. /package/dist/cjs/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.js +0 -0
  590. /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.d.ts +0 -0
  591. /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.js +0 -0
  592. /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.d.ts +0 -0
  593. /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.js +0 -0
  594. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.ts +0 -0
  595. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.js +0 -0
  596. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.ts +0 -0
  597. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.js +0 -0
  598. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.ts +0 -0
  599. /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.js +0 -0
  600. /package/dist/esm/api/resources/{alphaSections/client/requests/ListAlphaSectionsRequest.mjs → documents/client/requests/GenerateDocumentsRequest.mjs} +0 -0
  601. /package/dist/esm/api/resources/{alphaSections → documents/resources/sections}/client/index.d.mts +0 -0
  602. /package/dist/esm/api/resources/{alphaSections → documents/resources/sections}/client/index.mjs +0 -0
  603. /package/dist/esm/api/resources/{alphaSections/client/requests/UpdateSectionRequest.mjs → documents/resources/sections/client/requests/ListSectionsRequest.mjs} +0 -0
  604. /package/dist/esm/api/resources/{alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs → documents/resources/sections/client/requests/UpdateSectionRequest.mjs} +0 -0
  605. /package/dist/esm/api/resources/{alphaDocuments/client → documents/resources/sections/client/requests}/index.mjs +0 -0
  606. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.mts +0 -0
  607. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.mjs +0 -0
  608. /package/dist/esm/api/resources/{alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.mjs → documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.mjs} +0 -0
  609. /package/dist/esm/api/resources/{alphaSectionVersions/client → documents/resources/sections/resources/versions/client/requests}/index.mjs +0 -0
  610. /package/dist/esm/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.d.mts +0 -0
  611. /package/dist/esm/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.mjs +0 -0
  612. /package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/index.d.mts +0 -0
  613. /package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/index.mjs +0 -0
  614. /package/dist/esm/api/resources/{alphaTemplates/client/requests/ListAlphaTemplatesRequest.mjs → documents/resources/templates/client/requests/ListTemplatesRequest.mjs} +0 -0
  615. /package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/requests/UpdateTemplateRequest.mjs +0 -0
  616. /package/dist/esm/api/resources/{alphaSections → documents/resources/templates}/client/requests/index.mjs +0 -0
  617. /package/dist/esm/api/resources/{templates/client/requests/TemplatesListRequest.mjs → documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.mjs} +0 -0
  618. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.mts +0 -0
  619. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.mjs +0 -0
  620. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.mts +0 -0
  621. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.mjs +0 -0
  622. /package/dist/esm/api/resources/{templates/client/requests/TemplatesSectionListRequest.mjs → documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.mjs} +0 -0
  623. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.mts +0 -0
  624. /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.mjs +0 -0
  625. /package/dist/esm/api/{types/GuidedDocumentResponse.mjs → resources/templates/client/requests/ListTemplatesRequest.mjs} +0 -0
  626. /package/dist/esm/api/{types/GuidedGenerationResult.mjs → resources/templates/client/requests/SectionListTemplatesRequest.mjs} +0 -0
  627. /package/dist/esm/api/types/{GuidedGenerationResultUsage.mjs → CreateEphemeralDocumentResponse.mjs} +0 -0
  628. /package/dist/esm/api/types/{GuidedGenerationResultUsageTokenCount.mjs → DocumentationEvidence.mjs} +0 -0
  629. /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/index.d.mts +0 -0
  630. /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/index.mjs +0 -0
  631. /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.d.mts +0 -0
  632. /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.mjs +0 -0
  633. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.mts +0 -0
  634. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.mjs +0 -0
  635. /package/dist/esm/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.d.mts +0 -0
  636. /package/dist/esm/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.mjs +0 -0
  637. /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.d.mts +0 -0
  638. /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.mjs +0 -0
  639. /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.d.mts +0 -0
  640. /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.mjs +0 -0
  641. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.mts +0 -0
  642. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.mjs +0 -0
  643. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.mts +0 -0
  644. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.mjs +0 -0
  645. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.mts +0 -0
  646. /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.mjs +0 -0
@@ -43,26 +43,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.AlphaTemplateVersionsClient = 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 AlphaTemplateVersionsClient {
46
+ exports.VersionsClient = 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 VersionsClient {
55
55
  constructor(options) {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
59
  * @param {string} templateID
60
- * @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
60
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
61
61
  *
62
62
  * @throws {@link Corti.NotFoundError}
63
63
  *
64
64
  * @example
65
- * await client.alphaTemplateVersions.list("templateID")
65
+ * await client.documents.templates.versions.list("templateID")
66
66
  */
67
67
  list(templateID, requestOptions) {
68
68
  return core.HttpResponsePromise.fromPromise(this.__list(templateID, requestOptions));
@@ -73,7 +73,7 @@ class AlphaTemplateVersionsClient {
73
73
  const _authRequest = yield this._options.authProvider.getAuthRequest();
74
74
  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);
75
75
  const _response = yield core.fetcher({
76
- 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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/`),
76
+ 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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/`),
77
77
  method: "GET",
78
78
  headers: _headers,
79
79
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -85,7 +85,7 @@ class AlphaTemplateVersionsClient {
85
85
  });
86
86
  if (_response.ok) {
87
87
  return {
88
- data: serializers.alphaTemplateVersions.list.Response.parseOrThrow(_response.body, {
88
+ data: serializers.documents.templates.versions.list.Response.parseOrThrow(_response.body, {
89
89
  unrecognizedObjectKeys: "passthrough",
90
90
  allowUnrecognizedUnionMembers: true,
91
91
  allowUnrecognizedEnumValues: true,
@@ -107,19 +107,19 @@ class AlphaTemplateVersionsClient {
107
107
  });
108
108
  }
109
109
  }
110
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/{templateID}/versions/");
110
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/documents/templates/{templateID}/versions/");
111
111
  });
112
112
  }
113
113
  /**
114
114
  * @param {string} templateID
115
- * @param {Corti.CreateTemplateVersionRequest} request
116
- * @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
115
+ * @param {Corti.documents.templates.CreateTemplateVersionRequest} request
116
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
117
117
  *
118
118
  * @throws {@link Corti.BadRequestError}
119
119
  * @throws {@link Corti.NotFoundError}
120
120
  *
121
121
  * @example
122
- * await client.alphaTemplateVersions.create("templateID", {
122
+ * await client.documents.templates.versions.create("templateID", {
123
123
  * generation: {
124
124
  * instructions: {
125
125
  * prompt: "prompt"
@@ -136,13 +136,13 @@ class AlphaTemplateVersionsClient {
136
136
  const _authRequest = yield this._options.authProvider.getAuthRequest();
137
137
  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);
138
138
  const _response = yield core.fetcher({
139
- 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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/`),
139
+ 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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/`),
140
140
  method: "POST",
141
141
  headers: _headers,
142
142
  contentType: "application/json",
143
143
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
144
144
  requestType: "json",
145
- body: serializers.CreateTemplateVersionRequest.jsonOrThrow(request, {
145
+ body: serializers.documents.templates.CreateTemplateVersionRequest.jsonOrThrow(request, {
146
146
  unrecognizedObjectKeys: "strip",
147
147
  omitUndefined: true,
148
148
  }),
@@ -178,18 +178,18 @@ class AlphaTemplateVersionsClient {
178
178
  });
179
179
  }
180
180
  }
181
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/{templateID}/versions/");
181
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/documents/templates/{templateID}/versions/");
182
182
  });
183
183
  }
184
184
  /**
185
185
  * @param {string} templateID
186
186
  * @param {string} versionID
187
- * @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
187
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
188
188
  *
189
189
  * @throws {@link Corti.NotFoundError}
190
190
  *
191
191
  * @example
192
- * await client.alphaTemplateVersions.get("templateID", "versionID")
192
+ * await client.documents.templates.versions.get("templateID", "versionID")
193
193
  */
194
194
  get(templateID, versionID, requestOptions) {
195
195
  return core.HttpResponsePromise.fromPromise(this.__get(templateID, versionID, requestOptions));
@@ -200,7 +200,7 @@ class AlphaTemplateVersionsClient {
200
200
  const _authRequest = yield this._options.authProvider.getAuthRequest();
201
201
  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);
202
202
  const _response = yield core.fetcher({
203
- 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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
203
+ 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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
204
204
  method: "GET",
205
205
  headers: _headers,
206
206
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -234,18 +234,20 @@ class AlphaTemplateVersionsClient {
234
234
  });
235
235
  }
236
236
  }
237
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/{templateID}/versions/{versionID}");
237
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/documents/templates/{templateID}/versions/{versionID}");
238
238
  });
239
239
  }
240
240
  /**
241
+ * A published version cannot be deleted. When deleting a last remaining version of a template, simply create a new version again if needed.
242
+ *
241
243
  * @param {string} templateID
242
244
  * @param {string} versionID
243
- * @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
245
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
244
246
  *
245
247
  * @throws {@link Corti.NotFoundError}
246
248
  *
247
249
  * @example
248
- * await client.alphaTemplateVersions.delete("templateID", "versionID")
250
+ * await client.documents.templates.versions.delete("templateID", "versionID")
249
251
  */
250
252
  delete(templateID, versionID, requestOptions) {
251
253
  return core.HttpResponsePromise.fromPromise(this.__delete(templateID, versionID, requestOptions));
@@ -256,7 +258,7 @@ class AlphaTemplateVersionsClient {
256
258
  const _authRequest = yield this._options.authProvider.getAuthRequest();
257
259
  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);
258
260
  const _response = yield core.fetcher({
259
- 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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
261
+ 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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
260
262
  method: "DELETE",
261
263
  headers: _headers,
262
264
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -281,7 +283,7 @@ class AlphaTemplateVersionsClient {
281
283
  });
282
284
  }
283
285
  }
284
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/alpha/templates/{templateID}/versions/{versionID}");
286
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/documents/templates/{templateID}/versions/{versionID}");
285
287
  });
286
288
  }
287
289
  /**
@@ -289,12 +291,12 @@ class AlphaTemplateVersionsClient {
289
291
  *
290
292
  * @param {string} templateID
291
293
  * @param {string} versionID
292
- * @param {AlphaTemplateVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
294
+ * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
293
295
  *
294
296
  * @throws {@link Corti.NotFoundError}
295
297
  *
296
298
  * @example
297
- * await client.alphaTemplateVersions.publish("templateID", "versionID")
299
+ * await client.documents.templates.versions.publish("templateID", "versionID")
298
300
  */
299
301
  publish(templateID, versionID, requestOptions) {
300
302
  return core.HttpResponsePromise.fromPromise(this.__publish(templateID, versionID, requestOptions));
@@ -305,7 +307,7 @@ class AlphaTemplateVersionsClient {
305
307
  const _authRequest = yield this._options.authProvider.getAuthRequest();
306
308
  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);
307
309
  const _response = yield core.fetcher({
308
- 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, `alpha/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}/publish`),
310
+ 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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}/publish`),
309
311
  method: "POST",
310
312
  headers: _headers,
311
313
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -339,8 +341,8 @@ class AlphaTemplateVersionsClient {
339
341
  });
340
342
  }
341
343
  }
342
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/{templateID}/versions/{versionID}/publish");
344
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/documents/templates/{templateID}/versions/{versionID}/publish");
343
345
  });
344
346
  }
345
347
  }
346
- exports.AlphaTemplateVersionsClient = AlphaTemplateVersionsClient;
348
+ exports.VersionsClient = VersionsClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/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("./requests/index.js"), exports);
@@ -1,4 +1,4 @@
1
- import type * as Corti from "../../../../index.js";
1
+ import type * as Corti from "../../../../../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -10,5 +10,5 @@ import type * as Corti from "../../../../index.js";
10
10
  * }
11
11
  */
12
12
  export interface CreateTemplateVersionRequest {
13
- generation: Corti.CreateTemplateVersionRequestGeneration;
13
+ generation: Corti.documents.templates.CreateTemplateVersionRequestGeneration;
14
14
  }
@@ -1,4 +1,4 @@
1
- import type * as Corti from "../../../index.js";
1
+ import type * as Corti from "../../../../../../../index.js";
2
2
  export interface CreateTemplateVersionRequestGeneration {
3
3
  instructions: Corti.TemplateInstructions;
4
4
  sections?: Corti.TemplateVersionSectionRequest[];
@@ -0,0 +1,4 @@
1
+ export declare const GenerateDocumentsRequestXCortiRetentionPolicy: {
2
+ readonly None: "none";
3
+ };
4
+ export type GenerateDocumentsRequestXCortiRetentionPolicy = (typeof GenerateDocumentsRequestXCortiRetentionPolicy)[keyof typeof GenerateDocumentsRequestXCortiRetentionPolicy];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GenerateDocumentsRequestXCortiRetentionPolicy = void 0;
5
+ exports.GenerateDocumentsRequestXCortiRetentionPolicy = {
6
+ None: "none",
7
+ };
@@ -0,0 +1 @@
1
+ export * from "./GenerateDocumentsRequestXCortiRetentionPolicy.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("./GenerateDocumentsRequestXCortiRetentionPolicy.js"), exports);
@@ -11,6 +11,6 @@ import type * as Corti from "../../../../index.js";
11
11
  */
12
12
  export interface FactsExtractRequest {
13
13
  context: Corti.CommonTextContext[];
14
- /** The desired output language code for extracted facts. Check [languages page](/about/languages) for more. */
14
+ /** The desired output language code for extracted facts. Check [languages page](/stt/languages) for more. */
15
15
  outputLanguage: string;
16
16
  }
@@ -1,21 +1,13 @@
1
1
  export * from "./agents/client/requests/index.js";
2
2
  export * as agents from "./agents/index.js";
3
3
  export * from "./agents/types/index.js";
4
- export * as alphaDocuments from "./alphaDocuments/index.js";
5
- export * from "./alphaSections/client/requests/index.js";
6
- export * as alphaSections from "./alphaSections/index.js";
7
- export * as alphaSectionVersions from "./alphaSectionVersions/index.js";
8
- export * from "./alphaTemplates/client/requests/index.js";
9
- export * as alphaTemplates from "./alphaTemplates/index.js";
10
- export * from "./alphaTemplateVersions/client/requests/index.js";
11
- export * as alphaTemplateVersions from "./alphaTemplateVersions/index.js";
12
- export * from "./alphaTemplateVersions/types/index.js";
13
4
  export * as auth from "./auth/index.js";
14
5
  export * from "./auth/types/index.js";
15
6
  export * from "./codes/client/requests/index.js";
16
7
  export * as codes from "./codes/index.js";
17
8
  export * from "./documents/client/requests/index.js";
18
9
  export * as documents from "./documents/index.js";
10
+ export * from "./documents/types/index.js";
19
11
  export * from "./facts/client/requests/index.js";
20
12
  export * as facts from "./facts/index.js";
21
13
  export * from "./interactions/client/requests/index.js";
@@ -36,25 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.alphaTemplateVersions = exports.alphaTemplates = exports.alphaSectionVersions = exports.alphaSections = exports.alphaDocuments = exports.agents = void 0;
39
+ exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = 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);
43
- exports.alphaDocuments = __importStar(require("./alphaDocuments/index.js"));
44
- __exportStar(require("./alphaSections/client/requests/index.js"), exports);
45
- exports.alphaSections = __importStar(require("./alphaSections/index.js"));
46
- exports.alphaSectionVersions = __importStar(require("./alphaSectionVersions/index.js"));
47
- __exportStar(require("./alphaTemplates/client/requests/index.js"), exports);
48
- exports.alphaTemplates = __importStar(require("./alphaTemplates/index.js"));
49
- __exportStar(require("./alphaTemplateVersions/client/requests/index.js"), exports);
50
- exports.alphaTemplateVersions = __importStar(require("./alphaTemplateVersions/index.js"));
51
- __exportStar(require("./alphaTemplateVersions/types/index.js"), exports);
52
43
  exports.auth = __importStar(require("./auth/index.js"));
53
44
  __exportStar(require("./auth/types/index.js"), exports);
54
45
  __exportStar(require("./codes/client/requests/index.js"), exports);
55
46
  exports.codes = __importStar(require("./codes/index.js"));
56
47
  __exportStar(require("./documents/client/requests/index.js"), exports);
57
48
  exports.documents = __importStar(require("./documents/index.js"));
49
+ __exportStar(require("./documents/types/index.js"), exports);
58
50
  __exportStar(require("./facts/client/requests/index.js"), exports);
59
51
  exports.facts = __importStar(require("./facts/index.js"));
60
52
  __exportStar(require("./interactions/client/requests/index.js"), exports);
@@ -4,7 +4,7 @@ export declare namespace StreamSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
- type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
7
+ type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage | Corti.StreamAudioEventMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -13,7 +13,7 @@ export declare class TemplatesClient {
13
13
  /**
14
14
  * Retrieves a list of template sections with optional filters for organization and language.
15
15
  *
16
- * @param {Corti.TemplatesSectionListRequest} request
16
+ * @param {Corti.SectionListTemplatesRequest} request
17
17
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
19
  * @throws {@link Corti.UnauthorizedError}
@@ -22,12 +22,12 @@ export declare class TemplatesClient {
22
22
  * @example
23
23
  * await client.templates.sectionList()
24
24
  */
25
- sectionList(request?: Corti.TemplatesSectionListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.TemplatesSectionListResponse>;
25
+ sectionList(request?: Corti.SectionListTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.TemplatesSectionListResponse>;
26
26
  private __sectionList;
27
27
  /**
28
28
  * Retrieves a list of templates with optional filters for organization, language, and status.
29
29
  *
30
- * @param {Corti.TemplatesListRequest} request
30
+ * @param {Corti.ListTemplatesRequest} request
31
31
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @throws {@link Corti.UnauthorizedError}
@@ -36,7 +36,7 @@ export declare class TemplatesClient {
36
36
  * @example
37
37
  * await client.templates.list()
38
38
  */
39
- list(request?: Corti.TemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.TemplatesListResponse>;
39
+ list(request?: Corti.ListTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.TemplatesListResponse>;
40
40
  private __list;
41
41
  /**
42
42
  * Retrieves template by key.
@@ -58,7 +58,7 @@ class TemplatesClient {
58
58
  /**
59
59
  * Retrieves a list of template sections with optional filters for organization and language.
60
60
  *
61
- * @param {Corti.TemplatesSectionListRequest} request
61
+ * @param {Corti.SectionListTemplatesRequest} request
62
62
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link Corti.UnauthorizedError}
@@ -129,7 +129,7 @@ class TemplatesClient {
129
129
  /**
130
130
  * Retrieves a list of templates with optional filters for organization, language, and status.
131
131
  *
132
- * @param {Corti.TemplatesListRequest} request
132
+ * @param {Corti.ListTemplatesRequest} request
133
133
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
134
134
  *
135
135
  * @throws {@link Corti.UnauthorizedError}
@@ -2,7 +2,7 @@
2
2
  * @example
3
3
  * {}
4
4
  */
5
- export interface TemplatesListRequest {
5
+ export interface ListTemplatesRequest {
6
6
  /** Filter templates by organization. */
7
7
  org?: string | string[];
8
8
  /** Filter templates by language. */
@@ -2,7 +2,7 @@
2
2
  * @example
3
3
  * {}
4
4
  */
5
- export interface TemplatesSectionListRequest {
5
+ export interface SectionListTemplatesRequest {
6
6
  /** Filter template sections by organization. */
7
7
  org?: string | string[];
8
8
  /** Filter template sections by language. */
@@ -1,2 +1,2 @@
1
- export type { TemplatesListRequest } from "./TemplatesListRequest.js";
2
- export type { TemplatesSectionListRequest } from "./TemplatesSectionListRequest.js";
1
+ export type { ListTemplatesRequest } from "./ListTemplatesRequest.js";
2
+ export type { SectionListTemplatesRequest } from "./SectionListTemplatesRequest.js";
@@ -4,7 +4,7 @@ export declare namespace TranscribeSocket {
4
4
  interface Args {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
- type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
7
+ type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage;
8
8
  type EventHandlers = {
9
9
  open?: () => void;
10
10
  message?: (message: Response) => void;
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
29
29
  list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
30
30
  private __list;
31
31
  /**
32
- * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an incomplete or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
32
+ * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
33
33
  *
34
34
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
35
35
  * @param {Corti.TranscriptsCreateRequest} request
@@ -142,7 +142,7 @@ class TranscriptsClient {
142
142
  });
143
143
  }
144
144
  /**
145
- * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an incomplete or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
145
+ * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
146
146
  *
147
147
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
148
148
  * @param {Corti.TranscriptsCreateRequest} request
@@ -9,7 +9,7 @@ import type * as Corti from "../../../../index.js";
9
9
  export interface TranscriptsCreateRequest {
10
10
  /** The unique identifier for the recording. */
11
11
  recordingId: Corti.Uuid;
12
- /** The primary spoken language of the recording. Check https://docs.corti.ai/about/languages for more. */
12
+ /** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
13
13
  primaryLanguage: string;
14
14
  /** Indicates whether spoken dictation commands should be converted to punctuation (e.g., 'comma' → ','). */
15
15
  isDictation?: boolean;
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Response when a document is generated but not saved (retention policy `none`).
4
+ */
5
+ export interface CreateEphemeralDocumentResponse {
6
+ document: Corti.EphemeralDocument;
7
+ usageInfo: Corti.CommonUsageInfo;
8
+ }
@@ -1,12 +1,17 @@
1
+ import type * as Corti from "../index.js";
1
2
  export interface CreateSectionBase {
2
3
  /** A human-readable identifier for this section. Not passed to the LLM. */
3
4
  name: string;
4
- /** The intended language for outputs as BCP 47 tag. Does not strictly have to match outputLanguage in POST /documents request. */
5
- language: string;
6
5
  /** A description for this section. Not passed to the LLM. */
7
6
  description?: string;
7
+ /** BCP 47 language subtags this section has been tweaked for. */
8
+ languages?: string[];
9
+ /** ISO 3166-1 alpha-3 country codes this section has been tweaked for. */
10
+ regions?: string[];
11
+ /** Clinical specialties this section has been tweaked for. */
12
+ specialties?: string[];
8
13
  /** Labels work as query param filter in the LIST /sections endpoint. */
9
- labels?: string[];
14
+ labels?: Corti.Label[];
10
15
  /** Defaults to true when omitted. Set this to false if you do not want the section to automatically show up in LIST /sections. */
11
16
  publish?: boolean;
12
17
  }
@@ -5,5 +5,5 @@ import type * as Corti from "../index.js";
5
5
  export interface CreateSectionFromInheritanceRequest extends Corti.CreateSectionBase {
6
6
  /** Reference to the section to inherit generation configuration from. Inherits from the published version of the referenced section. */
7
7
  inheritFromId: string;
8
- generation: Corti.SectionGenerationPartial;
8
+ generation?: Corti.SectionGenerationPartial;
9
9
  }
@@ -1,12 +1,19 @@
1
+ import type * as Corti from "../index.js";
1
2
  export interface CreateTemplateBase {
2
3
  /** The name of this template. Not passed to the LLM. */
3
4
  name: string;
4
5
  /** A description for this template. Not passed to the LLM. */
5
6
  description?: string;
6
- /** The intended language for outputs as BCP 47 tag. Does not strictly have to match `outputLanguage` in POST /documents request. */
7
- language: string;
7
+ /** BCP 47 language subtags this template has been tweaked for (e.g. `["fr", "de"]`). */
8
+ languages?: string[];
9
+ /** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). */
10
+ regions?: string[];
11
+ /** Clinical specialties this template has been tweaked for. */
12
+ specialties?: string[];
8
13
  /** Labels work as query param filter in the LIST /templates endpoint. */
9
- labels?: string[];
14
+ labels?: Corti.Label[];
10
15
  /** Defaults to true when omitted. Set this to false if you do not want the template to automatically show up in LIST templates. */
11
16
  publish?: boolean;
17
+ /** Access policies to apply to the template on creation. */
18
+ policies?: unknown[];
12
19
  }
@@ -3,8 +3,8 @@ import type * as Corti from "../index.js";
3
3
  * Creates a template that inherits from another template. Any fields omitted in `generation` are inherited from the referenced template's published version; any fields provided override the inherited values.
4
4
  */
5
5
  export interface CreateTemplateFromInheritanceRequest extends Corti.CreateTemplateBase {
6
- /** Reference to the template to inherit template instructions and sections from. Inherits from the published version of the referenced template. */
6
+ /** Reference to the template to inherit instructions and sections from. Inherits from the published version of the referenced template. */
7
7
  inheritFromId: string;
8
8
  /** Partial overrides applied on top of the inherited template. All inner fields are optional. Any field omitted is inherited from the referenced template. */
9
- generation: Corti.CreateTemplateFromInheritanceRequestGeneration;
9
+ generation?: Corti.CreateTemplateFromInheritanceRequestGeneration;
10
10
  }
@@ -0,0 +1,6 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface DocumentationEvidence {
3
+ evidenceId?: Corti.Uuid;
4
+ type?: string;
5
+ quote?: string;
6
+ }
@@ -6,7 +6,7 @@ export interface DocumentsCreateRequestWithTemplate {
6
6
  template: Corti.DocumentsTemplate;
7
7
  /** An optional name for the document. */
8
8
  name?: string;
9
- /** The language in which the document will be generated. Check [languages page](/about/languages) for more. */
9
+ /** The language in which the document will be generated. Check [languages page](/stt/languages) for more. */
10
10
  outputLanguage: string;
11
11
  /** Set to true to disable guardrails during document generation, default is false. */
12
12
  disableGuardrails?: boolean;
@@ -6,7 +6,7 @@ export interface DocumentsCreateRequestWithTemplateKey {
6
6
  templateKey: string;
7
7
  /** An optional name for the document. */
8
8
  name?: string;
9
- /** The language in which the document will be generated. Check [languages page](/about/languages) for more. */
9
+ /** The language in which the document will be generated. Check [languages page](/stt/languages) for more. */
10
10
  outputLanguage: string;
11
11
  /** Set to true to disable guardrails during document generation, default is false. */
12
12
  disableGuardrails?: boolean;
@@ -13,7 +13,7 @@ export interface DocumentsGetResponse {
13
13
  createdAt: Date;
14
14
  /** The timestamp when the document was last updated. */
15
15
  updatedAt: Date;
16
- /** The language in which the document will be generated. Check https://docs.corti.ai/about/languages for more. */
16
+ /** The language in which the document will be generated. Check https://docs.corti.ai/stt/languages for more. */
17
17
  outputLanguage: string;
18
18
  usageInfo: Corti.CommonUsageInfo;
19
19
  }