@corti/sdk 1.2.0-templates-beta → 1.2.0-templates-beta.2

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 (480) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.d.ts +2 -2
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/Client.d.ts +48 -0
  5. package/dist/cjs/Client.js +233 -10
  6. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
  7. package/dist/cjs/api/resources/agents/client/requests/AgentsUpdateAgent.d.ts +2 -0
  8. package/dist/cjs/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +1 -1
  9. package/dist/cjs/api/resources/codes/client/Client.d.ts +1 -1
  10. package/dist/cjs/api/resources/codes/client/Client.js +1 -1
  11. package/dist/cjs/api/resources/index.d.ts +8 -0
  12. package/dist/cjs/api/resources/index.js +9 -1
  13. package/dist/cjs/api/resources/newSections/client/Client.d.ts +26 -0
  14. package/dist/cjs/api/resources/newSections/client/Client.js +124 -0
  15. package/dist/cjs/api/resources/newSections/client/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/newSections/client/index.js +17 -0
  17. package/dist/cjs/api/resources/newSections/client/requests/UpdateSectionRequest.d.ts +10 -0
  18. package/dist/cjs/api/resources/newSections/client/requests/UpdateSectionRequest.js +3 -0
  19. package/dist/cjs/api/resources/newSections/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/newSections/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/newSections/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/newSections/index.js +17 -0
  23. package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +26 -0
  24. package/dist/cjs/api/resources/newTemplates/client/Client.js +124 -0
  25. package/dist/cjs/api/resources/newTemplates/client/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/newTemplates/client/index.js +17 -0
  27. package/dist/cjs/api/resources/newTemplates/client/requests/UpdateTemplateRequest.d.ts +10 -0
  28. package/dist/cjs/api/resources/newTemplates/client/requests/UpdateTemplateRequest.js +3 -0
  29. package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/newTemplates/client/requests/index.js +2 -0
  31. package/dist/cjs/api/resources/newTemplates/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/newTemplates/index.js +17 -0
  33. package/dist/cjs/api/resources/sectionVersions/client/Client.d.ts +81 -0
  34. package/dist/cjs/api/resources/sectionVersions/client/Client.js +346 -0
  35. package/dist/cjs/api/resources/sectionVersions/client/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/sectionVersions/client/index.js +2 -0
  37. package/dist/cjs/api/resources/sectionVersions/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/sectionVersions/index.js +17 -0
  39. package/dist/cjs/api/resources/sections/client/Client.d.ts +35 -0
  40. package/dist/cjs/api/resources/sections/client/Client.js +160 -0
  41. package/dist/cjs/api/resources/sections/client/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/sections/client/index.js +2 -0
  43. package/dist/cjs/api/resources/sections/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/sections/index.js +17 -0
  45. package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
  46. package/dist/cjs/api/resources/templateVersions/client/Client.d.ts +75 -0
  47. package/dist/cjs/api/resources/templateVersions/client/Client.js +340 -0
  48. package/dist/cjs/api/resources/templateVersions/client/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/templateVersions/client/index.js +17 -0
  50. package/dist/cjs/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.ts +9 -0
  51. package/dist/cjs/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.js +3 -0
  52. package/dist/cjs/api/resources/templateVersions/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/templateVersions/client/requests/index.js +2 -0
  54. package/dist/cjs/api/resources/templateVersions/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/templateVersions/index.js +17 -0
  56. package/dist/cjs/api/resources/templates/client/Client.d.ts +22 -0
  57. package/dist/cjs/api/resources/templates/client/Client.js +101 -0
  58. package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
  59. package/dist/cjs/api/types/AgentsAgent.d.ts +2 -0
  60. package/dist/cjs/api/types/AgentsMcpServerTransportType.d.ts +1 -0
  61. package/dist/cjs/api/types/AgentsMcpServerTransportType.js +1 -0
  62. package/dist/cjs/api/types/AgentsRegistryExpert.d.ts +4 -0
  63. package/dist/cjs/api/types/AgentsUpdateExpertReference.d.ts +5 -0
  64. package/dist/cjs/api/types/AgentsUpdateExpertReference.js +3 -0
  65. package/dist/cjs/api/types/BoolNode.d.ts +7 -0
  66. package/dist/cjs/api/types/BoolNode.js +3 -0
  67. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +7 -0
  68. package/dist/cjs/api/types/CommonCodingSystemEnum.js +7 -0
  69. package/dist/cjs/api/types/CreateSectionVersionRequest.d.ts +7 -0
  70. package/dist/cjs/api/types/CreateSectionVersionRequest.js +3 -0
  71. package/dist/cjs/api/types/DictNode.d.ts +12 -0
  72. package/dist/cjs/api/types/DictNode.js +3 -0
  73. package/dist/cjs/api/types/FieldDefinition.d.ts +8 -0
  74. package/dist/cjs/api/types/FieldDefinition.js +3 -0
  75. package/dist/cjs/api/types/FloatNode.d.ts +13 -0
  76. package/dist/cjs/api/types/FloatNode.js +3 -0
  77. package/dist/cjs/api/types/IntegerNode.d.ts +13 -0
  78. package/dist/cjs/api/types/IntegerNode.js +3 -0
  79. package/dist/cjs/api/types/ListNode.d.ts +13 -0
  80. package/dist/cjs/api/types/ListNode.js +3 -0
  81. package/dist/cjs/api/types/OutputSchema.d.ts +2 -0
  82. package/dist/cjs/api/types/OutputSchema.js +3 -0
  83. package/dist/cjs/api/types/Section.d.ts +13 -0
  84. package/dist/cjs/api/types/Section.js +3 -0
  85. package/dist/cjs/api/types/SectionInstructions.d.ts +6 -0
  86. package/dist/cjs/api/types/SectionInstructions.js +3 -0
  87. package/dist/cjs/api/types/SectionVersion.d.ts +11 -0
  88. package/dist/cjs/api/types/SectionVersion.js +3 -0
  89. package/dist/cjs/api/types/StatusResponse.d.ts +3 -0
  90. package/dist/cjs/api/types/StatusResponse.js +3 -0
  91. package/dist/cjs/api/types/StreamConfig.d.ts +3 -1
  92. package/dist/cjs/api/types/{StreamConfigXCortiRetentionPolicy.d.ts → StreamConfigRetentionPolicy.d.ts} +2 -2
  93. package/dist/cjs/api/types/{StreamConfigXCortiRetentionPolicy.js → StreamConfigRetentionPolicy.js} +2 -2
  94. package/dist/cjs/api/types/StreamConfigStatusMessage.d.ts +2 -0
  95. package/dist/cjs/api/types/StreamConfigStatusMessageType.d.ts +0 -1
  96. package/dist/cjs/api/types/StreamConfigStatusMessageType.js +0 -1
  97. package/dist/cjs/api/types/StreamDeltaUsageMessage.d.ts +5 -0
  98. package/dist/cjs/api/types/StreamDeltaUsageMessage.js +3 -0
  99. package/dist/cjs/api/types/StringNode.d.ts +11 -0
  100. package/dist/cjs/api/types/StringNode.js +3 -0
  101. package/dist/cjs/api/types/Template.d.ts +13 -0
  102. package/dist/cjs/api/types/Template.js +3 -0
  103. package/dist/cjs/api/types/TemplateInstructions.d.ts +4 -0
  104. package/dist/cjs/api/types/TemplateInstructions.js +3 -0
  105. package/dist/cjs/api/types/TemplateVersion.d.ts +8 -0
  106. package/dist/cjs/api/types/TemplateVersion.js +3 -0
  107. package/dist/cjs/api/types/TemplateVersionSectionRequest.d.ts +7 -0
  108. package/dist/cjs/api/types/TemplateVersionSectionRequest.js +3 -0
  109. package/dist/cjs/api/types/TranscribeConfig.d.ts +2 -0
  110. package/dist/cjs/api/types/TranscribeConfigStatusMessage.d.ts +4 -2
  111. package/dist/cjs/api/types/TranscribeConfigStatusMessageType.d.ts +2 -0
  112. package/dist/cjs/api/types/TranscribeConfigStatusMessageType.js +2 -0
  113. package/dist/cjs/api/types/TranscribeDeltaUsageMessage.d.ts +5 -0
  114. package/dist/cjs/api/types/TranscribeDeltaUsageMessage.js +3 -0
  115. package/dist/cjs/api/types/index.d.ts +21 -1
  116. package/dist/cjs/api/types/index.js +21 -1
  117. package/dist/cjs/custom/CortiClient.d.ts +25 -69
  118. package/dist/cjs/custom/CortiClient.js +69 -0
  119. package/dist/cjs/custom/agents/CustomAgents.d.ts +20 -0
  120. package/dist/cjs/custom/agents/CustomAgents.js +73 -0
  121. package/dist/cjs/custom/auth/CortiAuth.d.ts +27 -0
  122. package/dist/cjs/custom/auth/CortiAuth.js +12 -6
  123. package/dist/cjs/custom/stream/CustomStream.js +7 -5
  124. package/dist/cjs/custom/transcribe/CustomTranscribe.js +9 -5
  125. package/dist/cjs/custom/utils/encodeHeadersAsWsProtocols.js +2 -11
  126. package/dist/cjs/custom/utils/sdkHeaderNames.d.ts +1 -0
  127. package/dist/cjs/custom/utils/sdkHeaderNames.js +12 -0
  128. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.d.ts +5 -0
  129. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.js +27 -0
  130. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
  131. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.js +2 -0
  132. package/dist/cjs/serialization/resources/agents/client/requests/AgentsUpdateAgent.d.ts +2 -0
  133. package/dist/cjs/serialization/resources/agents/client/requests/AgentsUpdateAgent.js +2 -0
  134. package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +2 -2
  135. package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.js +2 -2
  136. package/dist/cjs/serialization/resources/index.d.ts +7 -0
  137. package/dist/cjs/serialization/resources/index.js +8 -1
  138. package/dist/cjs/serialization/resources/newSections/client/index.d.ts +1 -0
  139. package/dist/cjs/serialization/resources/newSections/client/index.js +17 -0
  140. package/dist/cjs/serialization/resources/newSections/client/requests/UpdateSectionRequest.d.ts +12 -0
  141. package/dist/cjs/serialization/resources/newSections/client/requests/UpdateSectionRequest.js +44 -0
  142. package/dist/cjs/serialization/resources/newSections/client/requests/index.d.ts +1 -0
  143. package/dist/cjs/serialization/resources/newSections/client/requests/index.js +5 -0
  144. package/dist/cjs/serialization/resources/newSections/index.d.ts +1 -0
  145. package/dist/cjs/serialization/resources/newSections/index.js +17 -0
  146. package/dist/cjs/serialization/resources/newTemplates/client/index.d.ts +1 -0
  147. package/dist/cjs/serialization/resources/newTemplates/client/index.js +17 -0
  148. package/dist/cjs/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.d.ts +12 -0
  149. package/dist/cjs/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.js +44 -0
  150. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.d.ts +1 -0
  151. package/dist/cjs/serialization/resources/newTemplates/client/requests/index.js +5 -0
  152. package/dist/cjs/serialization/resources/newTemplates/index.d.ts +1 -0
  153. package/dist/cjs/serialization/resources/newTemplates/index.js +17 -0
  154. package/dist/cjs/serialization/resources/sectionVersions/client/index.d.ts +1 -0
  155. package/dist/cjs/serialization/resources/sectionVersions/client/index.js +37 -0
  156. package/dist/cjs/serialization/resources/sectionVersions/client/list.d.ts +8 -0
  157. package/dist/cjs/serialization/resources/sectionVersions/client/list.js +40 -0
  158. package/dist/cjs/serialization/resources/sectionVersions/index.d.ts +1 -0
  159. package/dist/cjs/serialization/resources/sectionVersions/index.js +17 -0
  160. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +3 -2
  161. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +2 -0
  162. package/dist/cjs/serialization/resources/templateVersions/client/index.d.ts +2 -0
  163. package/dist/cjs/serialization/resources/templateVersions/client/index.js +41 -0
  164. package/dist/cjs/serialization/resources/templateVersions/client/list.d.ts +8 -0
  165. package/dist/cjs/serialization/resources/templateVersions/client/list.js +40 -0
  166. package/dist/cjs/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.ts +12 -0
  167. package/dist/cjs/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.js +44 -0
  168. package/dist/cjs/serialization/resources/templateVersions/client/requests/index.d.ts +1 -0
  169. package/dist/cjs/serialization/resources/templateVersions/client/requests/index.js +5 -0
  170. package/dist/cjs/serialization/resources/templateVersions/index.d.ts +1 -0
  171. package/dist/cjs/serialization/resources/templateVersions/index.js +17 -0
  172. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +3 -2
  173. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +2 -0
  174. package/dist/cjs/serialization/types/AgentsAgent.d.ts +2 -0
  175. package/dist/cjs/serialization/types/AgentsAgent.js +2 -0
  176. package/dist/cjs/serialization/types/AgentsMcpServerTransportType.d.ts +1 -1
  177. package/dist/cjs/serialization/types/AgentsMcpServerTransportType.js +1 -1
  178. package/dist/cjs/serialization/types/AgentsRegistryExpert.d.ts +2 -0
  179. package/dist/cjs/serialization/types/AgentsRegistryExpert.js +2 -0
  180. package/dist/cjs/serialization/types/AgentsUpdateExpertReference.d.ts +8 -0
  181. package/dist/cjs/serialization/types/AgentsUpdateExpertReference.js +6 -0
  182. package/dist/cjs/serialization/types/BoolNode.d.ts +11 -0
  183. package/dist/cjs/serialization/types/BoolNode.js +43 -0
  184. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
  185. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +7 -0
  186. package/dist/cjs/serialization/types/CreateSectionVersionRequest.d.ts +12 -0
  187. package/dist/cjs/serialization/types/CreateSectionVersionRequest.js +45 -0
  188. package/dist/cjs/serialization/types/DictNode.d.ts +13 -0
  189. package/dist/cjs/serialization/types/DictNode.js +46 -0
  190. package/dist/cjs/serialization/types/FieldDefinition.d.ts +11 -0
  191. package/dist/cjs/serialization/types/FieldDefinition.js +44 -0
  192. package/dist/cjs/serialization/types/FloatNode.d.ts +14 -0
  193. package/dist/cjs/serialization/types/FloatNode.js +46 -0
  194. package/dist/cjs/serialization/types/IntegerNode.d.ts +14 -0
  195. package/dist/cjs/serialization/types/IntegerNode.js +46 -0
  196. package/dist/cjs/serialization/types/ListNode.d.ts +14 -0
  197. package/dist/cjs/serialization/types/ListNode.js +47 -0
  198. package/dist/cjs/serialization/types/OutputSchema.d.ts +11 -0
  199. package/dist/cjs/serialization/types/OutputSchema.js +51 -0
  200. package/dist/cjs/serialization/types/Section.d.ts +18 -0
  201. package/dist/cjs/serialization/types/Section.js +50 -0
  202. package/dist/cjs/serialization/types/SectionInstructions.d.ts +10 -0
  203. package/dist/cjs/serialization/types/SectionInstructions.js +42 -0
  204. package/dist/cjs/serialization/types/SectionVersion.d.ts +14 -0
  205. package/dist/cjs/serialization/types/SectionVersion.js +47 -0
  206. package/dist/cjs/serialization/types/StatusResponse.d.ts +9 -0
  207. package/dist/cjs/serialization/types/{StreamConfigXCortiRetentionPolicy.js → StatusResponse.js} +4 -2
  208. package/dist/cjs/serialization/types/StreamConfig.d.ts +3 -2
  209. package/dist/cjs/serialization/types/StreamConfig.js +3 -2
  210. package/dist/cjs/serialization/types/StreamConfigRetentionPolicy.d.ts +7 -0
  211. package/dist/cjs/serialization/types/StreamConfigRetentionPolicy.js +39 -0
  212. package/dist/cjs/serialization/types/StreamConfigStatusMessage.d.ts +2 -0
  213. package/dist/cjs/serialization/types/StreamConfigStatusMessage.js +2 -0
  214. package/dist/cjs/serialization/types/StreamConfigStatusMessageType.d.ts +1 -1
  215. package/dist/cjs/serialization/types/StreamConfigStatusMessageType.js +0 -1
  216. package/dist/cjs/serialization/types/StreamDeltaUsageMessage.d.ts +10 -0
  217. package/dist/cjs/serialization/types/StreamDeltaUsageMessage.js +42 -0
  218. package/dist/cjs/serialization/types/StringNode.d.ts +13 -0
  219. package/dist/cjs/serialization/types/StringNode.js +45 -0
  220. package/dist/cjs/serialization/types/Template.d.ts +19 -0
  221. package/dist/cjs/serialization/types/Template.js +51 -0
  222. package/dist/cjs/serialization/types/TemplateInstructions.d.ts +9 -0
  223. package/dist/cjs/serialization/types/TemplateInstructions.js +41 -0
  224. package/dist/cjs/serialization/types/TemplateVersion.d.ts +14 -0
  225. package/dist/cjs/serialization/types/TemplateVersion.js +46 -0
  226. package/dist/cjs/serialization/types/TemplateVersionSectionRequest.d.ts +11 -0
  227. package/dist/cjs/serialization/types/TemplateVersionSectionRequest.js +43 -0
  228. package/dist/cjs/serialization/types/TranscribeConfig.d.ts +1 -0
  229. package/dist/cjs/serialization/types/TranscribeConfig.js +1 -0
  230. package/dist/cjs/serialization/types/TranscribeConfigStatusMessage.d.ts +3 -1
  231. package/dist/cjs/serialization/types/TranscribeConfigStatusMessage.js +3 -1
  232. package/dist/cjs/serialization/types/TranscribeConfigStatusMessageType.d.ts +1 -1
  233. package/dist/cjs/serialization/types/TranscribeConfigStatusMessageType.js +7 -1
  234. package/dist/cjs/serialization/types/TranscribeDeltaUsageMessage.d.ts +10 -0
  235. package/dist/cjs/serialization/types/TranscribeDeltaUsageMessage.js +42 -0
  236. package/dist/cjs/serialization/types/index.d.ts +21 -1
  237. package/dist/cjs/serialization/types/index.js +21 -1
  238. package/dist/cjs/version.d.ts +1 -1
  239. package/dist/cjs/version.js +1 -1
  240. package/dist/esm/BaseClient.d.mts +2 -2
  241. package/dist/esm/BaseClient.mjs +2 -2
  242. package/dist/esm/Client.d.mts +48 -0
  243. package/dist/esm/Client.mjs +190 -0
  244. package/dist/esm/api/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
  245. package/dist/esm/api/resources/agents/client/requests/AgentsUpdateAgent.d.mts +2 -0
  246. package/dist/esm/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +1 -1
  247. package/dist/esm/api/resources/codes/client/Client.d.mts +1 -1
  248. package/dist/esm/api/resources/codes/client/Client.mjs +1 -1
  249. package/dist/esm/api/resources/index.d.mts +8 -0
  250. package/dist/esm/api/resources/index.mjs +8 -0
  251. package/dist/esm/api/resources/newSections/client/Client.d.mts +26 -0
  252. package/dist/esm/api/resources/newSections/client/Client.mjs +87 -0
  253. package/dist/esm/api/resources/newSections/client/index.d.mts +1 -0
  254. package/dist/esm/api/resources/newSections/client/index.mjs +1 -0
  255. package/dist/esm/api/resources/newSections/client/requests/UpdateSectionRequest.d.mts +10 -0
  256. package/dist/esm/api/resources/newSections/client/requests/UpdateSectionRequest.mjs +2 -0
  257. package/dist/esm/api/resources/newSections/client/requests/index.d.mts +1 -0
  258. package/dist/esm/api/resources/newSections/client/requests/index.mjs +1 -0
  259. package/dist/esm/api/resources/newSections/index.d.mts +1 -0
  260. package/dist/esm/api/resources/newSections/index.mjs +1 -0
  261. package/dist/esm/api/resources/newTemplates/client/Client.d.mts +26 -0
  262. package/dist/esm/api/resources/newTemplates/client/Client.mjs +87 -0
  263. package/dist/esm/api/resources/newTemplates/client/index.d.mts +1 -0
  264. package/dist/esm/api/resources/newTemplates/client/index.mjs +1 -0
  265. package/dist/esm/api/resources/newTemplates/client/requests/UpdateTemplateRequest.d.mts +10 -0
  266. package/dist/esm/api/resources/newTemplates/client/requests/UpdateTemplateRequest.mjs +2 -0
  267. package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +1 -0
  268. package/dist/esm/api/resources/newTemplates/client/requests/index.mjs +1 -0
  269. package/dist/esm/api/resources/newTemplates/index.d.mts +1 -0
  270. package/dist/esm/api/resources/newTemplates/index.mjs +1 -0
  271. package/dist/esm/api/resources/sectionVersions/client/Client.d.mts +81 -0
  272. package/dist/esm/api/resources/sectionVersions/client/Client.mjs +309 -0
  273. package/dist/esm/api/resources/sectionVersions/client/index.d.mts +1 -0
  274. package/dist/esm/api/resources/sectionVersions/client/index.mjs +1 -0
  275. package/dist/esm/api/resources/sectionVersions/index.d.mts +1 -0
  276. package/dist/esm/api/resources/sectionVersions/index.mjs +1 -0
  277. package/dist/esm/api/resources/sections/client/Client.d.mts +35 -0
  278. package/dist/esm/api/resources/sections/client/Client.mjs +123 -0
  279. package/dist/esm/api/resources/sections/client/index.d.mts +1 -0
  280. package/dist/esm/api/resources/sections/client/index.mjs +1 -0
  281. package/dist/esm/api/resources/sections/index.d.mts +1 -0
  282. package/dist/esm/api/resources/sections/index.mjs +1 -0
  283. package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
  284. package/dist/esm/api/resources/templateVersions/client/Client.d.mts +75 -0
  285. package/dist/esm/api/resources/templateVersions/client/Client.mjs +303 -0
  286. package/dist/esm/api/resources/templateVersions/client/index.d.mts +1 -0
  287. package/dist/esm/api/resources/templateVersions/client/index.mjs +1 -0
  288. package/dist/esm/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.mts +9 -0
  289. package/dist/esm/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.mjs +2 -0
  290. package/dist/esm/api/resources/templateVersions/client/requests/index.d.mts +1 -0
  291. package/dist/esm/api/resources/templateVersions/client/requests/index.mjs +1 -0
  292. package/dist/esm/api/resources/templateVersions/index.d.mts +1 -0
  293. package/dist/esm/api/resources/templateVersions/index.mjs +1 -0
  294. package/dist/esm/api/resources/templates/client/Client.d.mts +22 -0
  295. package/dist/esm/api/resources/templates/client/Client.mjs +101 -0
  296. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
  297. package/dist/esm/api/types/AgentsAgent.d.mts +2 -0
  298. package/dist/esm/api/types/AgentsMcpServerTransportType.d.mts +1 -0
  299. package/dist/esm/api/types/AgentsMcpServerTransportType.mjs +1 -0
  300. package/dist/esm/api/types/AgentsRegistryExpert.d.mts +4 -0
  301. package/dist/esm/api/types/AgentsUpdateExpertReference.d.mts +5 -0
  302. package/dist/esm/api/types/AgentsUpdateExpertReference.mjs +2 -0
  303. package/dist/esm/api/types/BoolNode.d.mts +7 -0
  304. package/dist/esm/api/types/BoolNode.mjs +2 -0
  305. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +7 -0
  306. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +7 -0
  307. package/dist/esm/api/types/CreateSectionVersionRequest.d.mts +7 -0
  308. package/dist/esm/api/types/CreateSectionVersionRequest.mjs +2 -0
  309. package/dist/esm/api/types/DictNode.d.mts +12 -0
  310. package/dist/esm/api/types/DictNode.mjs +2 -0
  311. package/dist/esm/api/types/FieldDefinition.d.mts +8 -0
  312. package/dist/esm/api/types/FieldDefinition.mjs +2 -0
  313. package/dist/esm/api/types/FloatNode.d.mts +13 -0
  314. package/dist/esm/api/types/FloatNode.mjs +2 -0
  315. package/dist/esm/api/types/IntegerNode.d.mts +13 -0
  316. package/dist/esm/api/types/IntegerNode.mjs +2 -0
  317. package/dist/esm/api/types/ListNode.d.mts +13 -0
  318. package/dist/esm/api/types/ListNode.mjs +2 -0
  319. package/dist/esm/api/types/OutputSchema.d.mts +2 -0
  320. package/dist/esm/api/types/OutputSchema.mjs +2 -0
  321. package/dist/esm/api/types/Section.d.mts +13 -0
  322. package/dist/esm/api/types/Section.mjs +2 -0
  323. package/dist/esm/api/types/SectionInstructions.d.mts +6 -0
  324. package/dist/esm/api/types/SectionInstructions.mjs +2 -0
  325. package/dist/esm/api/types/SectionVersion.d.mts +11 -0
  326. package/dist/esm/api/types/SectionVersion.mjs +2 -0
  327. package/dist/esm/api/types/StatusResponse.d.mts +3 -0
  328. package/dist/esm/api/types/StatusResponse.mjs +2 -0
  329. package/dist/esm/api/types/StreamConfig.d.mts +3 -1
  330. package/dist/esm/api/types/{StreamConfigXCortiRetentionPolicy.d.mts → StreamConfigRetentionPolicy.d.mts} +2 -2
  331. package/dist/esm/api/types/{StreamConfigXCortiRetentionPolicy.mjs → StreamConfigRetentionPolicy.mjs} +1 -1
  332. package/dist/esm/api/types/StreamConfigStatusMessage.d.mts +2 -0
  333. package/dist/esm/api/types/StreamConfigStatusMessageType.d.mts +0 -1
  334. package/dist/esm/api/types/StreamConfigStatusMessageType.mjs +0 -1
  335. package/dist/esm/api/types/StreamDeltaUsageMessage.d.mts +5 -0
  336. package/dist/esm/api/types/StreamDeltaUsageMessage.mjs +2 -0
  337. package/dist/esm/api/types/StringNode.d.mts +11 -0
  338. package/dist/esm/api/types/StringNode.mjs +2 -0
  339. package/dist/esm/api/types/Template.d.mts +13 -0
  340. package/dist/esm/api/types/Template.mjs +2 -0
  341. package/dist/esm/api/types/TemplateInstructions.d.mts +4 -0
  342. package/dist/esm/api/types/TemplateInstructions.mjs +2 -0
  343. package/dist/esm/api/types/TemplateVersion.d.mts +8 -0
  344. package/dist/esm/api/types/TemplateVersion.mjs +2 -0
  345. package/dist/esm/api/types/TemplateVersionSectionRequest.d.mts +7 -0
  346. package/dist/esm/api/types/TemplateVersionSectionRequest.mjs +2 -0
  347. package/dist/esm/api/types/TranscribeConfig.d.mts +2 -0
  348. package/dist/esm/api/types/TranscribeConfigStatusMessage.d.mts +4 -2
  349. package/dist/esm/api/types/TranscribeConfigStatusMessageType.d.mts +2 -0
  350. package/dist/esm/api/types/TranscribeConfigStatusMessageType.mjs +2 -0
  351. package/dist/esm/api/types/TranscribeDeltaUsageMessage.d.mts +5 -0
  352. package/dist/esm/api/types/TranscribeDeltaUsageMessage.mjs +2 -0
  353. package/dist/esm/api/types/index.d.mts +21 -1
  354. package/dist/esm/api/types/index.mjs +21 -1
  355. package/dist/esm/custom/CortiClient.d.mts +25 -69
  356. package/dist/esm/custom/CortiClient.mjs +36 -0
  357. package/dist/esm/custom/agents/CustomAgents.d.mts +20 -0
  358. package/dist/esm/custom/agents/CustomAgents.mjs +36 -0
  359. package/dist/esm/custom/auth/CortiAuth.d.mts +27 -0
  360. package/dist/esm/custom/auth/CortiAuth.mjs +12 -6
  361. package/dist/esm/custom/stream/CustomStream.mjs +7 -5
  362. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +9 -5
  363. package/dist/esm/custom/utils/encodeHeadersAsWsProtocols.mjs +1 -10
  364. package/dist/esm/custom/utils/sdkHeaderNames.d.mts +1 -0
  365. package/dist/esm/custom/utils/sdkHeaderNames.mjs +9 -0
  366. package/dist/esm/custom/utils/stripFernNormalizedHeaders.d.mts +5 -0
  367. package/dist/esm/custom/utils/stripFernNormalizedHeaders.mjs +24 -0
  368. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
  369. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.mjs +2 -0
  370. package/dist/esm/serialization/resources/agents/client/requests/AgentsUpdateAgent.d.mts +2 -0
  371. package/dist/esm/serialization/resources/agents/client/requests/AgentsUpdateAgent.mjs +2 -0
  372. package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +2 -2
  373. package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.mjs +2 -2
  374. package/dist/esm/serialization/resources/index.d.mts +7 -0
  375. package/dist/esm/serialization/resources/index.mjs +7 -0
  376. package/dist/esm/serialization/resources/newSections/client/index.d.mts +1 -0
  377. package/dist/esm/serialization/resources/newSections/client/index.mjs +1 -0
  378. package/dist/esm/serialization/resources/newSections/client/requests/UpdateSectionRequest.d.mts +12 -0
  379. package/dist/esm/serialization/resources/newSections/client/requests/UpdateSectionRequest.mjs +8 -0
  380. package/dist/esm/serialization/resources/newSections/client/requests/index.d.mts +1 -0
  381. package/dist/esm/serialization/resources/newSections/client/requests/index.mjs +1 -0
  382. package/dist/esm/serialization/resources/newSections/index.d.mts +1 -0
  383. package/dist/esm/serialization/resources/newSections/index.mjs +1 -0
  384. package/dist/esm/serialization/resources/newTemplates/client/index.d.mts +1 -0
  385. package/dist/esm/serialization/resources/newTemplates/client/index.mjs +1 -0
  386. package/dist/esm/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.d.mts +12 -0
  387. package/dist/esm/serialization/resources/newTemplates/client/requests/UpdateTemplateRequest.mjs +8 -0
  388. package/dist/esm/serialization/resources/newTemplates/client/requests/index.d.mts +1 -0
  389. package/dist/esm/serialization/resources/newTemplates/client/requests/index.mjs +1 -0
  390. package/dist/esm/serialization/resources/newTemplates/index.d.mts +1 -0
  391. package/dist/esm/serialization/resources/newTemplates/index.mjs +1 -0
  392. package/dist/esm/serialization/resources/sectionVersions/client/index.d.mts +1 -0
  393. package/dist/esm/serialization/resources/sectionVersions/client/index.mjs +1 -0
  394. package/dist/esm/serialization/resources/sectionVersions/client/list.d.mts +8 -0
  395. package/dist/esm/serialization/resources/sectionVersions/client/list.mjs +4 -0
  396. package/dist/esm/serialization/resources/sectionVersions/index.d.mts +1 -0
  397. package/dist/esm/serialization/resources/sectionVersions/index.mjs +1 -0
  398. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +3 -2
  399. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +2 -0
  400. package/dist/esm/serialization/resources/templateVersions/client/index.d.mts +2 -0
  401. package/dist/esm/serialization/resources/templateVersions/client/index.mjs +2 -0
  402. package/dist/esm/serialization/resources/templateVersions/client/list.d.mts +8 -0
  403. package/dist/esm/serialization/resources/templateVersions/client/list.mjs +4 -0
  404. package/dist/esm/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.mts +12 -0
  405. package/dist/esm/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.mjs +8 -0
  406. package/dist/esm/serialization/resources/templateVersions/client/requests/index.d.mts +1 -0
  407. package/dist/esm/serialization/resources/templateVersions/client/requests/index.mjs +1 -0
  408. package/dist/esm/serialization/resources/templateVersions/index.d.mts +1 -0
  409. package/dist/esm/serialization/resources/templateVersions/index.mjs +1 -0
  410. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +3 -2
  411. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +2 -0
  412. package/dist/esm/serialization/types/AgentsAgent.d.mts +2 -0
  413. package/dist/esm/serialization/types/AgentsAgent.mjs +2 -0
  414. package/dist/esm/serialization/types/AgentsMcpServerTransportType.d.mts +1 -1
  415. package/dist/esm/serialization/types/AgentsMcpServerTransportType.mjs +1 -1
  416. package/dist/esm/serialization/types/AgentsRegistryExpert.d.mts +2 -0
  417. package/dist/esm/serialization/types/AgentsRegistryExpert.mjs +2 -0
  418. package/dist/esm/serialization/types/AgentsUpdateExpertReference.d.mts +8 -0
  419. package/dist/esm/serialization/types/AgentsUpdateExpertReference.mjs +3 -0
  420. package/dist/esm/serialization/types/BoolNode.d.mts +11 -0
  421. package/dist/esm/serialization/types/BoolNode.mjs +7 -0
  422. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
  423. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +7 -0
  424. package/dist/esm/serialization/types/CreateSectionVersionRequest.d.mts +12 -0
  425. package/dist/esm/serialization/types/CreateSectionVersionRequest.mjs +9 -0
  426. package/dist/esm/serialization/types/DictNode.d.mts +13 -0
  427. package/dist/esm/serialization/types/DictNode.mjs +10 -0
  428. package/dist/esm/serialization/types/FieldDefinition.d.mts +11 -0
  429. package/dist/esm/serialization/types/FieldDefinition.mjs +8 -0
  430. package/dist/esm/serialization/types/FloatNode.d.mts +14 -0
  431. package/dist/esm/serialization/types/FloatNode.mjs +10 -0
  432. package/dist/esm/serialization/types/IntegerNode.d.mts +14 -0
  433. package/dist/esm/serialization/types/IntegerNode.mjs +10 -0
  434. package/dist/esm/serialization/types/ListNode.d.mts +14 -0
  435. package/dist/esm/serialization/types/ListNode.mjs +11 -0
  436. package/dist/esm/serialization/types/OutputSchema.d.mts +11 -0
  437. package/dist/esm/serialization/types/OutputSchema.mjs +15 -0
  438. package/dist/esm/serialization/types/Section.d.mts +18 -0
  439. package/dist/esm/serialization/types/Section.mjs +14 -0
  440. package/dist/esm/serialization/types/SectionInstructions.d.mts +10 -0
  441. package/dist/esm/serialization/types/SectionInstructions.mjs +6 -0
  442. package/dist/esm/serialization/types/SectionVersion.d.mts +14 -0
  443. package/dist/esm/serialization/types/SectionVersion.mjs +11 -0
  444. package/dist/esm/serialization/types/StatusResponse.d.mts +9 -0
  445. package/dist/esm/serialization/types/StatusResponse.mjs +5 -0
  446. package/dist/esm/serialization/types/StreamConfig.d.mts +3 -2
  447. package/dist/esm/serialization/types/StreamConfig.mjs +3 -2
  448. package/dist/esm/serialization/types/StreamConfigRetentionPolicy.d.mts +7 -0
  449. package/dist/esm/serialization/types/{StreamConfigXCortiRetentionPolicy.mjs → StreamConfigRetentionPolicy.mjs} +1 -1
  450. package/dist/esm/serialization/types/StreamConfigStatusMessage.d.mts +2 -0
  451. package/dist/esm/serialization/types/StreamConfigStatusMessage.mjs +2 -0
  452. package/dist/esm/serialization/types/StreamConfigStatusMessageType.d.mts +1 -1
  453. package/dist/esm/serialization/types/StreamConfigStatusMessageType.mjs +0 -1
  454. package/dist/esm/serialization/types/StreamDeltaUsageMessage.d.mts +10 -0
  455. package/dist/esm/serialization/types/StreamDeltaUsageMessage.mjs +6 -0
  456. package/dist/esm/serialization/types/StringNode.d.mts +13 -0
  457. package/dist/esm/serialization/types/StringNode.mjs +9 -0
  458. package/dist/esm/serialization/types/Template.d.mts +19 -0
  459. package/dist/esm/serialization/types/Template.mjs +15 -0
  460. package/dist/esm/serialization/types/TemplateInstructions.d.mts +9 -0
  461. package/dist/esm/serialization/types/TemplateInstructions.mjs +5 -0
  462. package/dist/esm/serialization/types/TemplateVersion.d.mts +14 -0
  463. package/dist/esm/serialization/types/TemplateVersion.mjs +10 -0
  464. package/dist/esm/serialization/types/TemplateVersionSectionRequest.d.mts +11 -0
  465. package/dist/esm/serialization/types/TemplateVersionSectionRequest.mjs +7 -0
  466. package/dist/esm/serialization/types/TranscribeConfig.d.mts +1 -0
  467. package/dist/esm/serialization/types/TranscribeConfig.mjs +1 -0
  468. package/dist/esm/serialization/types/TranscribeConfigStatusMessage.d.mts +3 -1
  469. package/dist/esm/serialization/types/TranscribeConfigStatusMessage.mjs +3 -1
  470. package/dist/esm/serialization/types/TranscribeConfigStatusMessageType.d.mts +1 -1
  471. package/dist/esm/serialization/types/TranscribeConfigStatusMessageType.mjs +7 -1
  472. package/dist/esm/serialization/types/TranscribeDeltaUsageMessage.d.mts +10 -0
  473. package/dist/esm/serialization/types/TranscribeDeltaUsageMessage.mjs +6 -0
  474. package/dist/esm/serialization/types/index.d.mts +21 -1
  475. package/dist/esm/serialization/types/index.mjs +21 -1
  476. package/dist/esm/version.d.mts +1 -1
  477. package/dist/esm/version.mjs +1 -1
  478. package/package.json +1 -1
  479. package/dist/cjs/serialization/types/StreamConfigXCortiRetentionPolicy.d.ts +0 -7
  480. package/dist/esm/serialization/types/StreamConfigXCortiRetentionPolicy.d.mts +0 -7
package/README.md CHANGED
@@ -29,7 +29,7 @@ The Corti JavaScript library provides convenient access to the Corti APIs from J
29
29
 
30
30
  ## Documentation
31
31
 
32
- - [Documentation](https://docs.corti.ai/)
32
+ - [Documentation](https://docs.corti.ai/sdk/js)
33
33
  - [API Reference](https://docs.corti.ai/api-reference)
34
34
  - [Console](https://console.corti.app/) — get your credentials here
35
35
  - [Examples](https://github.com/corticph/corti-examples)
@@ -6,7 +6,7 @@ export type BaseClientOptions = {
6
6
  /** Specify a custom URL to connect the client to. */
7
7
  baseUrl?: core.Supplier<string>;
8
8
  /** Override the Tenant-Name header */
9
- tenantName: core.Supplier<string>;
9
+ tenantName?: core.Supplier<string | undefined>;
10
10
  /** Additional headers to include in requests. */
11
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
12
12
  /** The default maximum time to wait for a response in seconds. */
@@ -26,7 +26,7 @@ export interface BaseRequestOptions {
26
26
  /** A hook to abort the request. */
27
27
  abortSignal?: AbortSignal;
28
28
  /** Override the Tenant-Name header */
29
- tenantName?: string;
29
+ tenantName?: string | undefined;
30
30
  /** Additional query string parameters to include in the request. */
31
31
  queryParams?: Record<string, unknown>;
32
32
  /** Additional headers to include in the request. */
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "1.2.0-templates-beta",
47
- "User-Agent": "@corti/sdk/1.2.0-templates-beta",
46
+ "X-Fern-SDK-Version": "1.2.0-templates-beta.2",
47
+ "User-Agent": "@corti/sdk/1.2.0-templates-beta.2",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -4,13 +4,19 @@ import { CodesClient } from "./api/resources/codes/client/Client.js";
4
4
  import { DocumentsClient } from "./api/resources/documents/client/Client.js";
5
5
  import { FactsClient } from "./api/resources/facts/client/Client.js";
6
6
  import { InteractionsClient } from "./api/resources/interactions/client/Client.js";
7
+ import { NewSectionsClient } from "./api/resources/newSections/client/Client.js";
8
+ import { NewTemplatesClient } from "./api/resources/newTemplates/client/Client.js";
7
9
  import { RecordingsClient } from "./api/resources/recordings/client/Client.js";
10
+ import { SectionsClient } from "./api/resources/sections/client/Client.js";
11
+ import { SectionVersionsClient } from "./api/resources/sectionVersions/client/Client.js";
8
12
  import { StreamClient } from "./api/resources/stream/client/Client.js";
9
13
  import { TemplatesClient } from "./api/resources/templates/client/Client.js";
14
+ import { TemplateVersionsClient } from "./api/resources/templateVersions/client/Client.js";
10
15
  import { TranscribeClient } from "./api/resources/transcribe/client/Client.js";
11
16
  import { TranscriptsClient } from "./api/resources/transcripts/client/Client.js";
12
17
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
13
18
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
19
+ import * as core from "./core/index.js";
14
20
  export declare namespace CortiClient {
15
21
  type Options = BaseClientOptions;
16
22
  interface RequestOptions extends BaseRequestOptions {
@@ -26,6 +32,11 @@ export declare class CortiClient {
26
32
  protected _documents: DocumentsClient | undefined;
27
33
  protected _templates: TemplatesClient | undefined;
28
34
  protected _codes: CodesClient | undefined;
35
+ protected _newTemplates: NewTemplatesClient | undefined;
36
+ protected _templateVersions: TemplateVersionsClient | undefined;
37
+ protected _sections: SectionsClient | undefined;
38
+ protected _newSections: NewSectionsClient | undefined;
39
+ protected _sectionVersions: SectionVersionsClient | undefined;
29
40
  protected _agents: AgentsClient | undefined;
30
41
  protected _stream: StreamClient | undefined;
31
42
  protected _transcribe: TranscribeClient | undefined;
@@ -38,7 +49,44 @@ export declare class CortiClient {
38
49
  get documents(): DocumentsClient;
39
50
  get templates(): TemplatesClient;
40
51
  get codes(): CodesClient;
52
+ get newTemplates(): NewTemplatesClient;
53
+ get templateVersions(): TemplateVersionsClient;
54
+ get sections(): SectionsClient;
55
+ get newSections(): NewSectionsClient;
56
+ get sectionVersions(): SectionVersionsClient;
41
57
  get agents(): AgentsClient;
42
58
  get stream(): StreamClient;
43
59
  get transcribe(): TranscribeClient;
60
+ /**
61
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @example
64
+ * await client.getNewTemplates()
65
+ */
66
+ getNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
67
+ private __getNewTemplates;
68
+ /**
69
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @example
72
+ * await client.postNewTemplates()
73
+ */
74
+ postNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
75
+ private __postNewTemplates;
76
+ /**
77
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
78
+ *
79
+ * @example
80
+ * await client.getNewSections()
81
+ */
82
+ getNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
83
+ private __getNewSections;
84
+ /**
85
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @example
88
+ * await client.postNewSections()
89
+ */
90
+ postNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
91
+ private __postNewSections;
44
92
  }
@@ -1,5 +1,47 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
3
45
  Object.defineProperty(exports, "__esModule", { value: true });
4
46
  exports.CortiClient = void 0;
5
47
  const Client_js_1 = require("./api/resources/agents/client/Client.js");
@@ -8,12 +50,21 @@ const Client_js_3 = require("./api/resources/codes/client/Client.js");
8
50
  const Client_js_4 = require("./api/resources/documents/client/Client.js");
9
51
  const Client_js_5 = require("./api/resources/facts/client/Client.js");
10
52
  const Client_js_6 = require("./api/resources/interactions/client/Client.js");
11
- const Client_js_7 = require("./api/resources/recordings/client/Client.js");
12
- const Client_js_8 = require("./api/resources/stream/client/Client.js");
13
- const Client_js_9 = require("./api/resources/templates/client/Client.js");
14
- const Client_js_10 = require("./api/resources/transcribe/client/Client.js");
15
- const Client_js_11 = require("./api/resources/transcripts/client/Client.js");
53
+ const Client_js_7 = require("./api/resources/newSections/client/Client.js");
54
+ const Client_js_8 = require("./api/resources/newTemplates/client/Client.js");
55
+ const Client_js_9 = require("./api/resources/recordings/client/Client.js");
56
+ const Client_js_10 = require("./api/resources/sections/client/Client.js");
57
+ const Client_js_11 = require("./api/resources/sectionVersions/client/Client.js");
58
+ const Client_js_12 = require("./api/resources/stream/client/Client.js");
59
+ const Client_js_13 = require("./api/resources/templates/client/Client.js");
60
+ const Client_js_14 = require("./api/resources/templateVersions/client/Client.js");
61
+ const Client_js_15 = require("./api/resources/transcribe/client/Client.js");
62
+ const Client_js_16 = require("./api/resources/transcripts/client/Client.js");
16
63
  const BaseClient_js_1 = require("./BaseClient.js");
64
+ const headers_js_1 = require("./core/headers.js");
65
+ const core = __importStar(require("./core/index.js"));
66
+ const handleNonStatusCodeError_js_1 = require("./errors/handleNonStatusCodeError.js");
67
+ const errors = __importStar(require("./errors/index.js"));
17
68
  class CortiClient {
18
69
  constructor(options) {
19
70
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
@@ -28,11 +79,11 @@ class CortiClient {
28
79
  }
29
80
  get recordings() {
30
81
  var _a;
31
- return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_7.RecordingsClient(this._options)));
82
+ return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_9.RecordingsClient(this._options)));
32
83
  }
33
84
  get transcripts() {
34
85
  var _a;
35
- return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_11.TranscriptsClient(this._options)));
86
+ return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_16.TranscriptsClient(this._options)));
36
87
  }
37
88
  get facts() {
38
89
  var _a;
@@ -44,23 +95,195 @@ class CortiClient {
44
95
  }
45
96
  get templates() {
46
97
  var _a;
47
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_9.TemplatesClient(this._options)));
98
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_13.TemplatesClient(this._options)));
48
99
  }
49
100
  get codes() {
50
101
  var _a;
51
102
  return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_3.CodesClient(this._options)));
52
103
  }
104
+ get newTemplates() {
105
+ var _a;
106
+ return ((_a = this._newTemplates) !== null && _a !== void 0 ? _a : (this._newTemplates = new Client_js_8.NewTemplatesClient(this._options)));
107
+ }
108
+ get templateVersions() {
109
+ var _a;
110
+ return ((_a = this._templateVersions) !== null && _a !== void 0 ? _a : (this._templateVersions = new Client_js_14.TemplateVersionsClient(this._options)));
111
+ }
112
+ get sections() {
113
+ var _a;
114
+ return ((_a = this._sections) !== null && _a !== void 0 ? _a : (this._sections = new Client_js_10.SectionsClient(this._options)));
115
+ }
116
+ get newSections() {
117
+ var _a;
118
+ return ((_a = this._newSections) !== null && _a !== void 0 ? _a : (this._newSections = new Client_js_7.NewSectionsClient(this._options)));
119
+ }
120
+ get sectionVersions() {
121
+ var _a;
122
+ return ((_a = this._sectionVersions) !== null && _a !== void 0 ? _a : (this._sectionVersions = new Client_js_11.SectionVersionsClient(this._options)));
123
+ }
53
124
  get agents() {
54
125
  var _a;
55
126
  return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
56
127
  }
57
128
  get stream() {
58
129
  var _a;
59
- return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_8.StreamClient(this._options)));
130
+ return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_12.StreamClient(this._options)));
60
131
  }
61
132
  get transcribe() {
62
133
  var _a;
63
- return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_10.TranscribeClient(this._options)));
134
+ return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_15.TranscribeClient(this._options)));
135
+ }
136
+ /**
137
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
138
+ *
139
+ * @example
140
+ * await client.getNewTemplates()
141
+ */
142
+ getNewTemplates(requestOptions) {
143
+ return core.HttpResponsePromise.fromPromise(this.__getNewTemplates(requestOptions));
144
+ }
145
+ __getNewTemplates(requestOptions) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
148
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
149
+ 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);
150
+ const _response = yield core.fetcher({
151
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/templates/"),
152
+ method: "GET",
153
+ headers: _headers,
154
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
155
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
156
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
157
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
158
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
159
+ logging: this._options.logging,
160
+ });
161
+ if (_response.ok) {
162
+ return { data: undefined, rawResponse: _response.rawResponse };
163
+ }
164
+ if (_response.error.reason === "status-code") {
165
+ throw new errors.CortiError({
166
+ statusCode: _response.error.statusCode,
167
+ body: _response.error.body,
168
+ rawResponse: _response.rawResponse,
169
+ });
170
+ }
171
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/templates/");
172
+ });
173
+ }
174
+ /**
175
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
176
+ *
177
+ * @example
178
+ * await client.postNewTemplates()
179
+ */
180
+ postNewTemplates(requestOptions) {
181
+ return core.HttpResponsePromise.fromPromise(this.__postNewTemplates(requestOptions));
182
+ }
183
+ __postNewTemplates(requestOptions) {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
186
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
187
+ 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);
188
+ const _response = yield core.fetcher({
189
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/templates/"),
190
+ method: "POST",
191
+ headers: _headers,
192
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
193
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
194
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
195
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
196
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
197
+ logging: this._options.logging,
198
+ });
199
+ if (_response.ok) {
200
+ return { data: undefined, rawResponse: _response.rawResponse };
201
+ }
202
+ if (_response.error.reason === "status-code") {
203
+ throw new errors.CortiError({
204
+ statusCode: _response.error.statusCode,
205
+ body: _response.error.body,
206
+ rawResponse: _response.rawResponse,
207
+ });
208
+ }
209
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/templates/");
210
+ });
211
+ }
212
+ /**
213
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
214
+ *
215
+ * @example
216
+ * await client.getNewSections()
217
+ */
218
+ getNewSections(requestOptions) {
219
+ return core.HttpResponsePromise.fromPromise(this.__getNewSections(requestOptions));
220
+ }
221
+ __getNewSections(requestOptions) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
224
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
225
+ 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);
226
+ const _response = yield core.fetcher({
227
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/sections/"),
228
+ method: "GET",
229
+ headers: _headers,
230
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
231
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
232
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
233
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
234
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
235
+ logging: this._options.logging,
236
+ });
237
+ if (_response.ok) {
238
+ return { data: undefined, rawResponse: _response.rawResponse };
239
+ }
240
+ if (_response.error.reason === "status-code") {
241
+ throw new errors.CortiError({
242
+ statusCode: _response.error.statusCode,
243
+ body: _response.error.body,
244
+ rawResponse: _response.rawResponse,
245
+ });
246
+ }
247
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/sections/");
248
+ });
249
+ }
250
+ /**
251
+ * @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
252
+ *
253
+ * @example
254
+ * await client.postNewSections()
255
+ */
256
+ postNewSections(requestOptions) {
257
+ return core.HttpResponsePromise.fromPromise(this.__postNewSections(requestOptions));
258
+ }
259
+ __postNewSections(requestOptions) {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
262
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
263
+ 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);
264
+ const _response = yield core.fetcher({
265
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "new/sections/"),
266
+ method: "POST",
267
+ headers: _headers,
268
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
269
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
270
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
271
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
272
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
273
+ logging: this._options.logging,
274
+ });
275
+ if (_response.ok) {
276
+ return { data: undefined, rawResponse: _response.rawResponse };
277
+ }
278
+ if (_response.error.reason === "status-code") {
279
+ throw new errors.CortiError({
280
+ statusCode: _response.error.statusCode,
281
+ body: _response.error.body,
282
+ rawResponse: _response.rawResponse,
283
+ });
284
+ }
285
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/sections/");
286
+ });
64
287
  }
65
288
  }
66
289
  exports.CortiClient = CortiClient;
@@ -18,4 +18,6 @@ export interface AgentsCreateAgent {
18
18
  /** A brief description of the agent's capabilities. */
19
19
  description: string;
20
20
  experts?: Corti.AgentsCreateAgentExpertsItem[];
21
+ /** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
22
+ mcpServers?: Corti.AgentsCreateMcpServer[];
21
23
  }
@@ -11,4 +11,6 @@ export interface AgentsUpdateAgent {
11
11
  /** A brief description of the agent's capabilities. */
12
12
  description?: string;
13
13
  experts?: Corti.AgentsUpdateAgentExpertsItem[];
14
+ /** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
15
+ mcpServers?: Corti.AgentsCreateMcpServer[];
14
16
  }
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../../../index.js";
2
- export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsCreateExpertReference;
2
+ export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsUpdateExpertReference;
@@ -11,7 +11,7 @@ export declare class CodesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
12
12
  constructor(options: CodesClient.Options);
13
13
  /**
14
- * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10-UK and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
14
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
15
15
  *
16
16
  * @param {Corti.CodesGeneralPredictRequest} request
17
17
  * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class CodesClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10-UK and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
59
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
60
60
  *
61
61
  * @param {Corti.CodesGeneralPredictRequest} request
62
62
  * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -12,10 +12,18 @@ export * as facts from "./facts/index.js";
12
12
  export * from "./interactions/client/requests/index.js";
13
13
  export * as interactions from "./interactions/index.js";
14
14
  export * from "./interactions/types/index.js";
15
+ export * from "./newSections/client/requests/index.js";
16
+ export * as newSections from "./newSections/index.js";
17
+ export * from "./newTemplates/client/requests/index.js";
18
+ export * as newTemplates from "./newTemplates/index.js";
15
19
  export * as recordings from "./recordings/index.js";
20
+ export * as sections from "./sections/index.js";
21
+ export * as sectionVersions from "./sectionVersions/index.js";
16
22
  export * as stream from "./stream/index.js";
17
23
  export * from "./templates/client/requests/index.js";
18
24
  export * as templates from "./templates/index.js";
25
+ export * from "./templateVersions/client/requests/index.js";
26
+ export * as templateVersions from "./templateVersions/index.js";
19
27
  export * as transcribe from "./transcribe/index.js";
20
28
  export * from "./transcripts/client/requests/index.js";
21
29
  export * as transcripts from "./transcripts/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
39
+ exports.transcripts = exports.transcribe = exports.templateVersions = exports.templates = exports.stream = exports.sectionVersions = exports.sections = exports.recordings = exports.newTemplates = exports.newSections = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
40
40
  __exportStar(require("./agents/client/requests/index.js"), exports);
41
41
  exports.agents = __importStar(require("./agents/index.js"));
42
42
  __exportStar(require("./agents/types/index.js"), exports);
@@ -51,10 +51,18 @@ exports.facts = __importStar(require("./facts/index.js"));
51
51
  __exportStar(require("./interactions/client/requests/index.js"), exports);
52
52
  exports.interactions = __importStar(require("./interactions/index.js"));
53
53
  __exportStar(require("./interactions/types/index.js"), exports);
54
+ __exportStar(require("./newSections/client/requests/index.js"), exports);
55
+ exports.newSections = __importStar(require("./newSections/index.js"));
56
+ __exportStar(require("./newTemplates/client/requests/index.js"), exports);
57
+ exports.newTemplates = __importStar(require("./newTemplates/index.js"));
54
58
  exports.recordings = __importStar(require("./recordings/index.js"));
59
+ exports.sections = __importStar(require("./sections/index.js"));
60
+ exports.sectionVersions = __importStar(require("./sectionVersions/index.js"));
55
61
  exports.stream = __importStar(require("./stream/index.js"));
56
62
  __exportStar(require("./templates/client/requests/index.js"), exports);
57
63
  exports.templates = __importStar(require("./templates/index.js"));
64
+ __exportStar(require("./templateVersions/client/requests/index.js"), exports);
65
+ exports.templateVersions = __importStar(require("./templateVersions/index.js"));
58
66
  exports.transcribe = __importStar(require("./transcribe/index.js"));
59
67
  __exportStar(require("./transcripts/client/requests/index.js"), exports);
60
68
  exports.transcripts = __importStar(require("./transcripts/index.js"));
@@ -0,0 +1,26 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Corti from "../../../index.js";
5
+ export declare namespace NewSectionsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class NewSectionsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<NewSectionsClient.Options>;
12
+ constructor(options: NewSectionsClient.Options);
13
+ /**
14
+ * @param {string} sectionID
15
+ * @param {Corti.UpdateSectionRequest} request
16
+ * @param {NewSectionsClient.RequestOptions} requestOptions - Request-specific configuration.
17
+ *
18
+ * @throws {@link Corti.BadRequestError}
19
+ * @throws {@link Corti.NotFoundError}
20
+ *
21
+ * @example
22
+ * await client.newSections.update("sectionID")
23
+ */
24
+ update(sectionID: string, request?: Corti.UpdateSectionRequest, requestOptions?: NewSectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
25
+ private __update;
26
+ }