@corti/sdk 2.0.0-templates.2 → 2.0.0-templates.3

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 (428) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +33 -28
  4. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -2
  5. package/dist/cjs/api/resources/agents/client/Client.js +4 -28
  6. package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +41 -0
  7. package/dist/cjs/api/resources/alphaDocuments/client/Client.js +149 -0
  8. package/dist/cjs/api/resources/alphaDocuments/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/alphaDocuments/client/index.js +2 -0
  10. package/dist/cjs/api/resources/alphaDocuments/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/{alphaTemplates/types → alphaDocuments}/index.js +1 -1
  12. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.d.ts +1 -2
  13. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.js +5 -6
  14. package/dist/cjs/api/resources/alphaSections/client/Client.d.ts +1 -2
  15. package/dist/cjs/api/resources/alphaSections/client/Client.js +5 -6
  16. package/dist/cjs/api/resources/alphaSections/client/requests/ListAlphaSectionsRequest.d.ts +1 -1
  17. package/dist/cjs/api/resources/alphaSections/client/requests/index.d.ts +0 -1
  18. package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.js +4 -4
  19. package/dist/cjs/api/resources/alphaTemplates/client/Client.js +4 -4
  20. package/dist/cjs/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.ts +1 -1
  21. package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +0 -1
  22. package/dist/cjs/api/resources/alphaTemplates/index.d.ts +0 -1
  23. package/dist/cjs/api/resources/alphaTemplates/index.js +0 -1
  24. package/dist/cjs/api/resources/index.d.ts +1 -1
  25. package/dist/cjs/api/resources/index.js +2 -2
  26. package/dist/cjs/api/types/AgentsCreateExpertReference.d.ts +2 -0
  27. package/dist/cjs/api/types/AgentsExpertReference.d.ts +2 -0
  28. package/dist/cjs/api/types/AgentsRegistryExpert.d.ts +2 -0
  29. package/dist/cjs/api/types/ArrayNode.d.ts +13 -0
  30. package/dist/cjs/api/types/CreateSectionBase.d.ts +12 -0
  31. package/dist/cjs/api/types/CreateSectionFromInheritanceRequest.d.ts +9 -0
  32. package/dist/cjs/api/types/CreateSectionFromScratchRequest.d.ts +7 -0
  33. package/dist/cjs/api/types/CreateSectionRequest.d.ts +2 -0
  34. package/dist/cjs/api/types/CreateTemplateBase.d.ts +12 -0
  35. package/dist/cjs/api/types/CreateTemplateFromInheritanceRequest.d.ts +10 -0
  36. package/dist/cjs/api/types/CreateTemplateFromInheritanceRequestGeneration.d.ts +8 -0
  37. package/dist/cjs/api/types/CreateTemplateFromScratchRequest.d.ts +7 -0
  38. package/dist/cjs/api/types/CreateTemplateFromScratchRequestGeneration.d.ts +5 -0
  39. package/dist/cjs/api/types/CreateTemplateRequest.d.ts +2 -0
  40. package/dist/cjs/api/types/GuidedAssemblyRequest.d.ts +13 -0
  41. package/dist/cjs/api/types/GuidedAssemblyRequest.js +3 -0
  42. package/dist/cjs/api/types/GuidedAssemblySectionRef.d.ts +10 -0
  43. package/dist/cjs/api/types/GuidedAssemblySectionRef.js +3 -0
  44. package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +10 -0
  45. package/dist/cjs/api/types/GuidedDocumentByAssembly.js +3 -0
  46. package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +10 -0
  47. package/dist/cjs/api/types/GuidedDocumentByDynamic.js +3 -0
  48. package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +10 -0
  49. package/dist/cjs/api/types/GuidedDocumentByTemplateRef.js +3 -0
  50. package/dist/cjs/api/types/GuidedDocumentRequest.d.ts +2 -0
  51. package/dist/cjs/api/types/GuidedDocumentRequest.js +3 -0
  52. package/dist/cjs/api/types/GuidedDocumentResponse.d.ts +8 -0
  53. package/dist/cjs/api/types/GuidedDocumentResponse.js +3 -0
  54. package/dist/cjs/api/types/GuidedDynamicInline.d.ts +5 -0
  55. package/dist/cjs/api/types/GuidedDynamicInline.js +3 -0
  56. package/dist/cjs/api/types/GuidedDynamicRequest.d.ts +10 -0
  57. package/dist/cjs/api/types/GuidedDynamicRequest.js +3 -0
  58. package/dist/cjs/api/types/GuidedGenerationResult.d.ts +11 -0
  59. package/dist/cjs/api/types/GuidedGenerationResult.js +3 -0
  60. package/dist/cjs/api/types/GuidedGenerationResultUsage.d.ts +4 -0
  61. package/dist/cjs/api/types/GuidedGenerationResultUsage.js +3 -0
  62. package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.d.ts +4 -0
  63. package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.js +3 -0
  64. package/dist/cjs/api/types/GuidedSectionOverride.d.ts +13 -0
  65. package/dist/cjs/api/types/GuidedSectionOverride.js +3 -0
  66. package/dist/cjs/api/types/GuidedTemplateOverrides.d.ts +7 -0
  67. package/dist/cjs/api/types/GuidedTemplateOverrides.js +3 -0
  68. package/dist/cjs/api/types/GuidedTemplateRef.d.ts +9 -0
  69. package/dist/cjs/api/types/GuidedTemplateRef.js +3 -0
  70. package/dist/{esm/api/types/FloatNode.d.mts → cjs/api/types/NumberNode.d.ts} +3 -3
  71. package/dist/cjs/api/types/NumberNode.js +3 -0
  72. package/dist/cjs/api/types/{DictNode.d.ts → ObjectNode.d.ts} +3 -3
  73. package/dist/cjs/api/types/ObjectNode.js +3 -0
  74. package/dist/cjs/api/types/OutputSchema.d.ts +1 -1
  75. package/dist/cjs/api/types/SectionGenerationPartial.d.ts +12 -0
  76. package/dist/cjs/api/types/SectionGenerationPartial.js +3 -0
  77. package/dist/cjs/api/types/SectionInstructions.d.ts +3 -1
  78. package/dist/cjs/api/types/SectionInstructionsOverride.d.ts +9 -0
  79. package/dist/cjs/api/types/SectionInstructionsOverride.js +3 -0
  80. package/dist/cjs/api/types/SectionInstructionsPartial.d.ts +11 -0
  81. package/dist/cjs/api/types/SectionInstructionsPartial.js +3 -0
  82. package/dist/cjs/api/types/SectionOverrides.d.ts +11 -0
  83. package/dist/cjs/api/types/SectionOverrides.js +3 -0
  84. package/dist/cjs/api/types/TemplateInstructionsPartial.d.ts +7 -0
  85. package/dist/cjs/api/types/TemplateInstructionsPartial.js +3 -0
  86. package/dist/cjs/api/types/index.d.ts +33 -8
  87. package/dist/cjs/api/types/index.js +33 -8
  88. package/dist/cjs/custom/CortiClient.js +2 -2
  89. package/dist/cjs/custom/auth/CortiAuth.js +2 -2
  90. package/dist/cjs/custom/stream/CustomStream.js +2 -2
  91. package/dist/cjs/custom/transcribe/CustomTranscribe.js +3 -3
  92. package/dist/cjs/serialization/resources/alphaSections/client/requests/index.d.ts +0 -1
  93. package/dist/cjs/serialization/resources/alphaSections/client/requests/index.js +1 -3
  94. package/dist/cjs/serialization/resources/alphaTemplates/client/requests/index.d.ts +0 -1
  95. package/dist/cjs/serialization/resources/alphaTemplates/client/requests/index.js +1 -3
  96. package/dist/cjs/serialization/resources/alphaTemplates/index.d.ts +0 -1
  97. package/dist/cjs/serialization/resources/alphaTemplates/index.js +0 -1
  98. package/dist/cjs/serialization/resources/index.d.ts +0 -1
  99. package/dist/cjs/serialization/resources/index.js +0 -1
  100. package/dist/cjs/serialization/types/AgentsCreateExpertReference.d.ts +1 -0
  101. package/dist/cjs/serialization/types/AgentsCreateExpertReference.js +1 -0
  102. package/dist/cjs/serialization/types/AgentsExpertReference.d.ts +1 -0
  103. package/dist/cjs/serialization/types/AgentsExpertReference.js +1 -0
  104. package/dist/cjs/serialization/types/AgentsRegistryExpert.d.ts +1 -0
  105. package/dist/cjs/serialization/types/AgentsRegistryExpert.js +1 -0
  106. package/dist/cjs/serialization/types/{ListNode.d.ts → ArrayNode.d.ts} +3 -3
  107. package/dist/cjs/serialization/types/{ListNode.js → ArrayNode.js} +3 -3
  108. package/dist/cjs/serialization/types/CreateSectionBase.d.ts +13 -0
  109. package/dist/cjs/serialization/{resources/alphaSections/client/requests/CreateSectionRequest.js → types/CreateSectionBase.js} +3 -6
  110. package/dist/cjs/serialization/types/CreateSectionFromInheritanceRequest.d.ts +12 -0
  111. package/dist/cjs/serialization/types/{AgentsErrorResponse.js → CreateSectionFromInheritanceRequest.js} +9 -8
  112. package/dist/cjs/serialization/types/CreateSectionFromScratchRequest.d.ts +11 -0
  113. package/dist/cjs/serialization/types/{AgentsValidationErrorResponse.js → CreateSectionFromScratchRequest.js} +6 -6
  114. package/dist/cjs/serialization/types/CreateSectionRequest.d.ts +9 -0
  115. package/dist/cjs/serialization/types/CreateSectionRequest.js +41 -0
  116. package/dist/cjs/serialization/types/CreateTemplateBase.d.ts +13 -0
  117. package/dist/cjs/serialization/{resources/alphaTemplates/client/requests/CreateTemplateRequest.js → types/CreateTemplateBase.js} +3 -6
  118. package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequest.d.ts +12 -0
  119. package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequest.js +46 -0
  120. package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequestGeneration.d.ts +12 -0
  121. package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequestGeneration.js +44 -0
  122. package/dist/cjs/serialization/types/CreateTemplateFromScratchRequest.d.ts +11 -0
  123. package/dist/cjs/serialization/types/CreateTemplateFromScratchRequest.js +45 -0
  124. package/dist/cjs/serialization/types/CreateTemplateFromScratchRequestGeneration.d.ts +12 -0
  125. package/dist/cjs/serialization/{resources/alphaTemplates/types/CreateTemplateRequestGeneration.js → types/CreateTemplateFromScratchRequestGeneration.js} +5 -5
  126. package/dist/cjs/serialization/types/CreateTemplateRequest.d.ts +9 -0
  127. package/dist/cjs/serialization/types/CreateTemplateRequest.js +41 -0
  128. package/dist/cjs/serialization/types/GuidedAssemblyRequest.d.ts +14 -0
  129. package/dist/cjs/serialization/types/GuidedAssemblyRequest.js +46 -0
  130. package/dist/cjs/serialization/types/GuidedAssemblySectionRef.d.ts +12 -0
  131. package/dist/cjs/serialization/types/{IntegerNode.js → GuidedAssemblySectionRef.js} +6 -8
  132. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +12 -0
  133. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +44 -0
  134. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +12 -0
  135. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.js +44 -0
  136. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +12 -0
  137. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.js +44 -0
  138. package/dist/cjs/serialization/types/GuidedDocumentRequest.d.ts +10 -0
  139. package/dist/cjs/serialization/types/GuidedDocumentRequest.js +46 -0
  140. package/dist/cjs/serialization/types/GuidedDocumentResponse.d.ts +12 -0
  141. package/dist/cjs/serialization/types/GuidedDocumentResponse.js +44 -0
  142. package/dist/cjs/serialization/types/GuidedDynamicInline.d.ts +12 -0
  143. package/dist/cjs/serialization/types/GuidedDynamicInline.js +44 -0
  144. package/dist/cjs/serialization/types/GuidedDynamicRequest.d.ts +12 -0
  145. package/dist/cjs/serialization/types/GuidedDynamicRequest.js +44 -0
  146. package/dist/cjs/serialization/types/GuidedGenerationResult.d.ts +12 -0
  147. package/dist/cjs/serialization/types/GuidedGenerationResult.js +46 -0
  148. package/dist/cjs/serialization/types/GuidedGenerationResultUsage.d.ts +10 -0
  149. package/dist/cjs/serialization/types/GuidedGenerationResultUsage.js +42 -0
  150. package/dist/cjs/serialization/types/GuidedGenerationResultUsageTokenCount.d.ts +10 -0
  151. package/dist/cjs/serialization/types/GuidedGenerationResultUsageTokenCount.js +42 -0
  152. package/dist/cjs/serialization/types/GuidedSectionOverride.d.ts +13 -0
  153. package/dist/cjs/serialization/types/GuidedSectionOverride.js +46 -0
  154. package/dist/cjs/serialization/types/GuidedTemplateOverrides.d.ts +12 -0
  155. package/dist/cjs/serialization/types/GuidedTemplateOverrides.js +44 -0
  156. package/dist/cjs/serialization/types/GuidedTemplateRef.d.ts +12 -0
  157. package/dist/cjs/serialization/types/GuidedTemplateRef.js +44 -0
  158. package/dist/cjs/serialization/types/{FloatNode.d.ts → NumberNode.d.ts} +3 -3
  159. package/dist/cjs/serialization/types/{FloatNode.js → NumberNode.js} +3 -3
  160. package/dist/cjs/serialization/types/{DictNode.d.ts → ObjectNode.d.ts} +3 -3
  161. package/dist/cjs/serialization/types/{DictNode.js → ObjectNode.js} +3 -3
  162. package/dist/cjs/serialization/types/OutputSchema.d.ts +2 -3
  163. package/dist/cjs/serialization/types/OutputSchema.js +4 -6
  164. package/dist/cjs/serialization/types/SectionGenerationPartial.d.ts +12 -0
  165. package/dist/cjs/serialization/types/{AgentsValidationError.js → SectionGenerationPartial.js} +7 -8
  166. package/dist/cjs/serialization/types/SectionInstructions.d.ts +2 -1
  167. package/dist/cjs/serialization/types/SectionInstructions.js +2 -1
  168. package/dist/cjs/serialization/types/SectionInstructionsOverride.d.ts +10 -0
  169. package/dist/cjs/serialization/types/SectionInstructionsOverride.js +42 -0
  170. package/dist/cjs/serialization/types/SectionInstructionsPartial.d.ts +11 -0
  171. package/dist/cjs/serialization/types/SectionInstructionsPartial.js +43 -0
  172. package/dist/cjs/serialization/types/SectionOverrides.d.ts +12 -0
  173. package/dist/cjs/serialization/types/SectionOverrides.js +45 -0
  174. package/dist/cjs/serialization/types/TemplateInstructionsPartial.d.ts +9 -0
  175. package/dist/cjs/serialization/types/{AgentsValidationErrorErrorsItem.js → TemplateInstructionsPartial.js} +3 -4
  176. package/dist/cjs/serialization/types/index.d.ts +33 -8
  177. package/dist/cjs/serialization/types/index.js +33 -8
  178. package/dist/cjs/version.d.ts +1 -1
  179. package/dist/cjs/version.js +1 -1
  180. package/dist/esm/BaseClient.mjs +2 -2
  181. package/dist/esm/Client.d.mts +3 -0
  182. package/dist/esm/Client.mjs +5 -0
  183. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
  184. package/dist/esm/api/resources/agents/client/Client.mjs +4 -28
  185. package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +41 -0
  186. package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +112 -0
  187. package/dist/esm/api/resources/alphaDocuments/client/index.d.mts +1 -0
  188. package/dist/esm/api/resources/alphaDocuments/client/index.mjs +1 -0
  189. package/dist/esm/api/resources/alphaDocuments/index.d.mts +1 -0
  190. package/dist/esm/api/resources/alphaDocuments/index.mjs +1 -0
  191. package/dist/esm/api/resources/alphaSectionVersions/client/Client.d.mts +1 -2
  192. package/dist/esm/api/resources/alphaSectionVersions/client/Client.mjs +5 -6
  193. package/dist/esm/api/resources/alphaSections/client/Client.d.mts +1 -2
  194. package/dist/esm/api/resources/alphaSections/client/Client.mjs +5 -6
  195. package/dist/esm/api/resources/alphaSections/client/requests/ListAlphaSectionsRequest.d.mts +1 -1
  196. package/dist/esm/api/resources/alphaSections/client/requests/index.d.mts +0 -1
  197. package/dist/esm/api/resources/alphaTemplateVersions/client/Client.mjs +4 -4
  198. package/dist/esm/api/resources/alphaTemplates/client/Client.mjs +4 -4
  199. package/dist/esm/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.mts +1 -1
  200. package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +0 -1
  201. package/dist/esm/api/resources/alphaTemplates/index.d.mts +0 -1
  202. package/dist/esm/api/resources/alphaTemplates/index.mjs +0 -1
  203. package/dist/esm/api/resources/index.d.mts +1 -1
  204. package/dist/esm/api/resources/index.mjs +1 -1
  205. package/dist/esm/api/types/AgentsCreateExpertReference.d.mts +2 -0
  206. package/dist/esm/api/types/AgentsExpertReference.d.mts +2 -0
  207. package/dist/esm/api/types/AgentsRegistryExpert.d.mts +2 -0
  208. package/dist/esm/api/types/ArrayNode.d.mts +13 -0
  209. package/dist/esm/api/types/CreateSectionBase.d.mts +12 -0
  210. package/dist/esm/api/types/CreateSectionFromInheritanceRequest.d.mts +9 -0
  211. package/dist/esm/api/types/CreateSectionFromScratchRequest.d.mts +7 -0
  212. package/dist/esm/api/types/CreateSectionRequest.d.mts +2 -0
  213. package/dist/esm/api/types/CreateTemplateBase.d.mts +12 -0
  214. package/dist/esm/api/types/CreateTemplateFromInheritanceRequest.d.mts +10 -0
  215. package/dist/esm/api/types/CreateTemplateFromInheritanceRequestGeneration.d.mts +8 -0
  216. package/dist/esm/api/types/CreateTemplateFromScratchRequest.d.mts +7 -0
  217. package/dist/esm/api/types/CreateTemplateFromScratchRequestGeneration.d.mts +5 -0
  218. package/dist/esm/api/types/CreateTemplateRequest.d.mts +2 -0
  219. package/dist/esm/api/types/GuidedAssemblyRequest.d.mts +13 -0
  220. package/dist/esm/api/types/GuidedAssemblyRequest.mjs +2 -0
  221. package/dist/esm/api/types/GuidedAssemblySectionRef.d.mts +10 -0
  222. package/dist/esm/api/types/GuidedAssemblySectionRef.mjs +2 -0
  223. package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +10 -0
  224. package/dist/esm/api/types/GuidedDocumentByAssembly.mjs +2 -0
  225. package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +10 -0
  226. package/dist/esm/api/types/GuidedDocumentByDynamic.mjs +2 -0
  227. package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +10 -0
  228. package/dist/esm/api/types/GuidedDocumentByTemplateRef.mjs +2 -0
  229. package/dist/esm/api/types/GuidedDocumentRequest.d.mts +2 -0
  230. package/dist/esm/api/types/GuidedDocumentRequest.mjs +2 -0
  231. package/dist/esm/api/types/GuidedDocumentResponse.d.mts +8 -0
  232. package/dist/esm/api/types/GuidedDocumentResponse.mjs +2 -0
  233. package/dist/esm/api/types/GuidedDynamicInline.d.mts +5 -0
  234. package/dist/esm/api/types/GuidedDynamicInline.mjs +2 -0
  235. package/dist/esm/api/types/GuidedDynamicRequest.d.mts +10 -0
  236. package/dist/esm/api/types/GuidedDynamicRequest.mjs +2 -0
  237. package/dist/esm/api/types/GuidedGenerationResult.d.mts +11 -0
  238. package/dist/esm/api/types/GuidedGenerationResult.mjs +2 -0
  239. package/dist/esm/api/types/GuidedGenerationResultUsage.d.mts +4 -0
  240. package/dist/esm/api/types/GuidedGenerationResultUsage.mjs +2 -0
  241. package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.d.mts +4 -0
  242. package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.mjs +2 -0
  243. package/dist/esm/api/types/GuidedSectionOverride.d.mts +13 -0
  244. package/dist/esm/api/types/GuidedSectionOverride.mjs +2 -0
  245. package/dist/esm/api/types/GuidedTemplateOverrides.d.mts +7 -0
  246. package/dist/esm/api/types/GuidedTemplateOverrides.mjs +2 -0
  247. package/dist/esm/api/types/GuidedTemplateRef.d.mts +9 -0
  248. package/dist/esm/api/types/GuidedTemplateRef.mjs +2 -0
  249. package/dist/{cjs/api/types/FloatNode.d.ts → esm/api/types/NumberNode.d.mts} +3 -3
  250. package/dist/esm/api/types/NumberNode.mjs +2 -0
  251. package/dist/esm/api/types/{DictNode.d.mts → ObjectNode.d.mts} +3 -3
  252. package/dist/esm/api/types/ObjectNode.mjs +2 -0
  253. package/dist/esm/api/types/OutputSchema.d.mts +1 -1
  254. package/dist/esm/api/types/SectionGenerationPartial.d.mts +12 -0
  255. package/dist/esm/api/types/SectionGenerationPartial.mjs +2 -0
  256. package/dist/esm/api/types/SectionInstructions.d.mts +3 -1
  257. package/dist/esm/api/types/SectionInstructionsOverride.d.mts +9 -0
  258. package/dist/esm/api/types/SectionInstructionsOverride.mjs +2 -0
  259. package/dist/esm/api/types/SectionInstructionsPartial.d.mts +11 -0
  260. package/dist/esm/api/types/SectionInstructionsPartial.mjs +2 -0
  261. package/dist/esm/api/types/SectionOverrides.d.mts +11 -0
  262. package/dist/esm/api/types/SectionOverrides.mjs +2 -0
  263. package/dist/esm/api/types/TemplateInstructionsPartial.d.mts +7 -0
  264. package/dist/esm/api/types/TemplateInstructionsPartial.mjs +2 -0
  265. package/dist/esm/api/types/index.d.mts +33 -8
  266. package/dist/esm/api/types/index.mjs +33 -8
  267. package/dist/esm/custom/CortiClient.mjs +2 -2
  268. package/dist/esm/custom/auth/CortiAuth.mjs +2 -2
  269. package/dist/esm/custom/stream/CustomStream.mjs +2 -2
  270. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +3 -3
  271. package/dist/esm/serialization/resources/alphaSections/client/requests/index.d.mts +0 -1
  272. package/dist/esm/serialization/resources/alphaSections/client/requests/index.mjs +0 -1
  273. package/dist/esm/serialization/resources/alphaTemplates/client/requests/index.d.mts +0 -1
  274. package/dist/esm/serialization/resources/alphaTemplates/client/requests/index.mjs +0 -1
  275. package/dist/esm/serialization/resources/alphaTemplates/index.d.mts +0 -1
  276. package/dist/esm/serialization/resources/alphaTemplates/index.mjs +0 -1
  277. package/dist/esm/serialization/resources/index.d.mts +0 -1
  278. package/dist/esm/serialization/resources/index.mjs +0 -1
  279. package/dist/esm/serialization/types/AgentsCreateExpertReference.d.mts +1 -0
  280. package/dist/esm/serialization/types/AgentsCreateExpertReference.mjs +1 -0
  281. package/dist/esm/serialization/types/AgentsExpertReference.d.mts +1 -0
  282. package/dist/esm/serialization/types/AgentsExpertReference.mjs +1 -0
  283. package/dist/esm/serialization/types/AgentsRegistryExpert.d.mts +1 -0
  284. package/dist/esm/serialization/types/AgentsRegistryExpert.mjs +1 -0
  285. package/dist/esm/serialization/types/{ListNode.d.mts → ArrayNode.d.mts} +3 -3
  286. package/dist/esm/serialization/types/{ListNode.mjs → ArrayNode.mjs} +2 -2
  287. package/dist/esm/serialization/types/CreateSectionBase.d.mts +13 -0
  288. package/dist/esm/serialization/{resources/alphaSections/client/requests/CreateSectionRequest.mjs → types/CreateSectionBase.mjs} +2 -5
  289. package/dist/esm/serialization/types/CreateSectionFromInheritanceRequest.d.mts +12 -0
  290. package/dist/esm/serialization/types/CreateSectionFromInheritanceRequest.mjs +10 -0
  291. package/dist/esm/serialization/types/CreateSectionFromScratchRequest.d.mts +11 -0
  292. package/dist/esm/serialization/types/CreateSectionFromScratchRequest.mjs +9 -0
  293. package/dist/esm/serialization/types/CreateSectionRequest.d.mts +9 -0
  294. package/dist/esm/serialization/types/CreateSectionRequest.mjs +5 -0
  295. package/dist/esm/serialization/types/CreateTemplateBase.d.mts +13 -0
  296. package/dist/esm/serialization/{resources/alphaTemplates/client/requests/CreateTemplateRequest.mjs → types/CreateTemplateBase.mjs} +2 -5
  297. package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequest.d.mts +12 -0
  298. package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequest.mjs +10 -0
  299. package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequestGeneration.d.mts +12 -0
  300. package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequestGeneration.mjs +8 -0
  301. package/dist/esm/serialization/types/CreateTemplateFromScratchRequest.d.mts +11 -0
  302. package/dist/esm/serialization/types/CreateTemplateFromScratchRequest.mjs +9 -0
  303. package/dist/esm/serialization/types/CreateTemplateFromScratchRequestGeneration.d.mts +12 -0
  304. package/dist/esm/serialization/types/CreateTemplateFromScratchRequestGeneration.mjs +8 -0
  305. package/dist/esm/serialization/types/CreateTemplateRequest.d.mts +9 -0
  306. package/dist/esm/serialization/types/CreateTemplateRequest.mjs +5 -0
  307. package/dist/esm/serialization/types/GuidedAssemblyRequest.d.mts +14 -0
  308. package/dist/esm/serialization/types/GuidedAssemblyRequest.mjs +10 -0
  309. package/dist/esm/serialization/types/GuidedAssemblySectionRef.d.mts +12 -0
  310. package/dist/esm/serialization/types/GuidedAssemblySectionRef.mjs +8 -0
  311. package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +12 -0
  312. package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +8 -0
  313. package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +12 -0
  314. package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +8 -0
  315. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +12 -0
  316. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +8 -0
  317. package/dist/esm/serialization/types/GuidedDocumentRequest.d.mts +10 -0
  318. package/dist/esm/serialization/types/GuidedDocumentRequest.mjs +10 -0
  319. package/dist/esm/serialization/types/GuidedDocumentResponse.d.mts +12 -0
  320. package/dist/esm/serialization/types/GuidedDocumentResponse.mjs +8 -0
  321. package/dist/esm/serialization/types/GuidedDynamicInline.d.mts +12 -0
  322. package/dist/esm/serialization/types/GuidedDynamicInline.mjs +8 -0
  323. package/dist/esm/serialization/types/GuidedDynamicRequest.d.mts +12 -0
  324. package/dist/esm/serialization/types/GuidedDynamicRequest.mjs +8 -0
  325. package/dist/esm/serialization/types/GuidedGenerationResult.d.mts +12 -0
  326. package/dist/esm/serialization/types/GuidedGenerationResult.mjs +10 -0
  327. package/dist/esm/serialization/types/GuidedGenerationResultUsage.d.mts +10 -0
  328. package/dist/esm/serialization/types/GuidedGenerationResultUsage.mjs +6 -0
  329. package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.d.mts +10 -0
  330. package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.mjs +6 -0
  331. package/dist/esm/serialization/types/GuidedSectionOverride.d.mts +13 -0
  332. package/dist/esm/serialization/types/GuidedSectionOverride.mjs +10 -0
  333. package/dist/esm/serialization/types/GuidedTemplateOverrides.d.mts +12 -0
  334. package/dist/esm/serialization/types/GuidedTemplateOverrides.mjs +8 -0
  335. package/dist/esm/serialization/types/GuidedTemplateRef.d.mts +12 -0
  336. package/dist/esm/serialization/types/GuidedTemplateRef.mjs +8 -0
  337. package/dist/esm/serialization/types/{FloatNode.d.mts → NumberNode.d.mts} +3 -3
  338. package/dist/esm/serialization/types/{FloatNode.mjs → NumberNode.mjs} +2 -2
  339. package/dist/esm/serialization/types/{DictNode.d.mts → ObjectNode.d.mts} +3 -3
  340. package/dist/esm/serialization/types/{DictNode.mjs → ObjectNode.mjs} +2 -2
  341. package/dist/esm/serialization/types/OutputSchema.d.mts +2 -3
  342. package/dist/esm/serialization/types/OutputSchema.mjs +4 -6
  343. package/dist/esm/serialization/types/SectionGenerationPartial.d.mts +12 -0
  344. package/dist/esm/serialization/types/SectionGenerationPartial.mjs +9 -0
  345. package/dist/esm/serialization/types/SectionInstructions.d.mts +2 -1
  346. package/dist/esm/serialization/types/SectionInstructions.mjs +2 -1
  347. package/dist/esm/serialization/types/SectionInstructionsOverride.d.mts +10 -0
  348. package/dist/esm/serialization/types/SectionInstructionsOverride.mjs +6 -0
  349. package/dist/esm/serialization/types/SectionInstructionsPartial.d.mts +11 -0
  350. package/dist/esm/serialization/types/SectionInstructionsPartial.mjs +7 -0
  351. package/dist/esm/serialization/types/SectionOverrides.d.mts +12 -0
  352. package/dist/esm/serialization/types/SectionOverrides.mjs +9 -0
  353. package/dist/esm/serialization/types/TemplateInstructionsPartial.d.mts +9 -0
  354. package/dist/esm/serialization/types/TemplateInstructionsPartial.mjs +5 -0
  355. package/dist/esm/serialization/types/index.d.mts +33 -8
  356. package/dist/esm/serialization/types/index.mjs +33 -8
  357. package/dist/esm/version.d.mts +1 -1
  358. package/dist/esm/version.mjs +1 -1
  359. package/package.json +4 -2
  360. package/dist/cjs/api/resources/alphaSections/client/requests/CreateSectionRequest.d.ts +0 -33
  361. package/dist/cjs/api/resources/alphaTemplates/client/requests/CreateTemplateRequest.d.ts +0 -28
  362. package/dist/cjs/api/resources/alphaTemplates/types/CreateTemplateRequestGeneration.d.ts +0 -5
  363. package/dist/cjs/api/resources/alphaTemplates/types/index.d.ts +0 -1
  364. package/dist/cjs/api/types/AgentsErrorResponse.d.ts +0 -12
  365. package/dist/cjs/api/types/AgentsValidationError.d.ts +0 -8
  366. package/dist/cjs/api/types/AgentsValidationErrorErrorsItem.d.ts +0 -4
  367. package/dist/cjs/api/types/AgentsValidationErrorResponse.d.ts +0 -4
  368. package/dist/cjs/api/types/IntegerNode.d.ts +0 -13
  369. package/dist/cjs/api/types/ListNode.d.ts +0 -13
  370. package/dist/cjs/serialization/resources/alphaSections/client/requests/CreateSectionRequest.d.ts +0 -16
  371. package/dist/cjs/serialization/resources/alphaTemplates/client/requests/CreateTemplateRequest.d.ts +0 -16
  372. package/dist/cjs/serialization/resources/alphaTemplates/types/CreateTemplateRequestGeneration.d.ts +0 -12
  373. package/dist/cjs/serialization/resources/alphaTemplates/types/index.d.ts +0 -1
  374. package/dist/cjs/serialization/resources/alphaTemplates/types/index.js +0 -17
  375. package/dist/cjs/serialization/types/AgentsErrorResponse.d.ts +0 -13
  376. package/dist/cjs/serialization/types/AgentsValidationError.d.ts +0 -14
  377. package/dist/cjs/serialization/types/AgentsValidationErrorErrorsItem.d.ts +0 -10
  378. package/dist/cjs/serialization/types/AgentsValidationErrorResponse.d.ts +0 -11
  379. package/dist/cjs/serialization/types/IntegerNode.d.ts +0 -14
  380. package/dist/esm/api/resources/alphaSections/client/requests/CreateSectionRequest.d.mts +0 -33
  381. package/dist/esm/api/resources/alphaTemplates/client/requests/CreateTemplateRequest.d.mts +0 -28
  382. package/dist/esm/api/resources/alphaTemplates/types/CreateTemplateRequestGeneration.d.mts +0 -5
  383. package/dist/esm/api/resources/alphaTemplates/types/index.d.mts +0 -1
  384. package/dist/esm/api/resources/alphaTemplates/types/index.mjs +0 -1
  385. package/dist/esm/api/types/AgentsErrorResponse.d.mts +0 -12
  386. package/dist/esm/api/types/AgentsValidationError.d.mts +0 -8
  387. package/dist/esm/api/types/AgentsValidationErrorErrorsItem.d.mts +0 -4
  388. package/dist/esm/api/types/AgentsValidationErrorResponse.d.mts +0 -4
  389. package/dist/esm/api/types/IntegerNode.d.mts +0 -13
  390. package/dist/esm/api/types/ListNode.d.mts +0 -13
  391. package/dist/esm/serialization/resources/alphaSections/client/requests/CreateSectionRequest.d.mts +0 -16
  392. package/dist/esm/serialization/resources/alphaTemplates/client/requests/CreateTemplateRequest.d.mts +0 -16
  393. package/dist/esm/serialization/resources/alphaTemplates/types/CreateTemplateRequestGeneration.d.mts +0 -12
  394. package/dist/esm/serialization/resources/alphaTemplates/types/CreateTemplateRequestGeneration.mjs +0 -8
  395. package/dist/esm/serialization/resources/alphaTemplates/types/index.d.mts +0 -1
  396. package/dist/esm/serialization/resources/alphaTemplates/types/index.mjs +0 -1
  397. package/dist/esm/serialization/types/AgentsErrorResponse.d.mts +0 -13
  398. package/dist/esm/serialization/types/AgentsErrorResponse.mjs +0 -9
  399. package/dist/esm/serialization/types/AgentsValidationError.d.mts +0 -14
  400. package/dist/esm/serialization/types/AgentsValidationError.mjs +0 -10
  401. package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.d.mts +0 -10
  402. package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.mjs +0 -6
  403. package/dist/esm/serialization/types/AgentsValidationErrorResponse.d.mts +0 -11
  404. package/dist/esm/serialization/types/AgentsValidationErrorResponse.mjs +0 -9
  405. package/dist/esm/serialization/types/IntegerNode.d.mts +0 -14
  406. package/dist/esm/serialization/types/IntegerNode.mjs +0 -10
  407. /package/dist/cjs/api/{resources/alphaSections/client/requests/CreateSectionRequest.js → types/ArrayNode.js} +0 -0
  408. /package/dist/cjs/api/{resources/alphaTemplates/client/requests/CreateTemplateRequest.js → types/CreateSectionBase.js} +0 -0
  409. /package/dist/cjs/api/{resources/alphaTemplates/types/CreateTemplateRequestGeneration.js → types/CreateSectionFromInheritanceRequest.js} +0 -0
  410. /package/dist/cjs/api/types/{AgentsErrorResponse.js → CreateSectionFromScratchRequest.js} +0 -0
  411. /package/dist/cjs/api/types/{AgentsValidationError.js → CreateSectionRequest.js} +0 -0
  412. /package/dist/cjs/api/types/{AgentsValidationErrorErrorsItem.js → CreateTemplateBase.js} +0 -0
  413. /package/dist/cjs/api/types/{AgentsValidationErrorResponse.js → CreateTemplateFromInheritanceRequest.js} +0 -0
  414. /package/dist/cjs/api/types/{DictNode.js → CreateTemplateFromInheritanceRequestGeneration.js} +0 -0
  415. /package/dist/cjs/api/types/{FloatNode.js → CreateTemplateFromScratchRequest.js} +0 -0
  416. /package/dist/cjs/api/types/{IntegerNode.js → CreateTemplateFromScratchRequestGeneration.js} +0 -0
  417. /package/dist/cjs/api/types/{ListNode.js → CreateTemplateRequest.js} +0 -0
  418. /package/dist/esm/api/{resources/alphaSections/client/requests/CreateSectionRequest.mjs → types/ArrayNode.mjs} +0 -0
  419. /package/dist/esm/api/{resources/alphaTemplates/client/requests/CreateTemplateRequest.mjs → types/CreateSectionBase.mjs} +0 -0
  420. /package/dist/esm/api/{resources/alphaTemplates/types/CreateTemplateRequestGeneration.mjs → types/CreateSectionFromInheritanceRequest.mjs} +0 -0
  421. /package/dist/esm/api/types/{AgentsErrorResponse.mjs → CreateSectionFromScratchRequest.mjs} +0 -0
  422. /package/dist/esm/api/types/{AgentsValidationError.mjs → CreateSectionRequest.mjs} +0 -0
  423. /package/dist/esm/api/types/{AgentsValidationErrorErrorsItem.mjs → CreateTemplateBase.mjs} +0 -0
  424. /package/dist/esm/api/types/{AgentsValidationErrorResponse.mjs → CreateTemplateFromInheritanceRequest.mjs} +0 -0
  425. /package/dist/esm/api/types/{DictNode.mjs → CreateTemplateFromInheritanceRequestGeneration.mjs} +0 -0
  426. /package/dist/esm/api/types/{FloatNode.mjs → CreateTemplateFromScratchRequest.mjs} +0 -0
  427. /package/dist/esm/api/types/{IntegerNode.mjs → CreateTemplateFromScratchRequestGeneration.mjs} +0 -0
  428. /package/dist/esm/api/types/{ListNode.mjs → CreateTemplateRequest.mjs} +0 -0
@@ -77,7 +77,7 @@ class AlphaTemplatesClient {
77
77
  const _authRequest = yield this._options.authProvider.getAuthRequest();
78
78
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
79
79
  const _response = yield core.fetcher({
80
- url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "alpha/templates"),
80
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "alpha/templates/"),
81
81
  method: "GET",
82
82
  headers: _headers,
83
83
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -106,7 +106,7 @@ class AlphaTemplatesClient {
106
106
  rawResponse: _response.rawResponse,
107
107
  });
108
108
  }
109
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates");
109
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/alpha/templates/");
110
110
  });
111
111
  }
112
112
  /**
@@ -135,7 +135,7 @@ class AlphaTemplatesClient {
135
135
  const _authRequest = yield this._options.authProvider.getAuthRequest();
136
136
  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);
137
137
  const _response = yield core.fetcher({
138
- 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"),
138
+ 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/"),
139
139
  method: "POST",
140
140
  headers: _headers,
141
141
  contentType: "application/json",
@@ -175,7 +175,7 @@ class AlphaTemplatesClient {
175
175
  });
176
176
  }
177
177
  }
178
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates");
178
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/templates/");
179
179
  });
180
180
  }
181
181
  /**
@@ -7,6 +7,6 @@ export interface ListAlphaTemplatesRequest {
7
7
  lang?: string | string[];
8
8
  /** Filter templates by label. Repeatable; matches templates that have any of the given labels. */
9
9
  label?: string | string[];
10
- /** Filter by publish status. Defaults to true when omitted. */
10
+ /** Filter by publish status. Omit to return both published and unpublished items; set to `true` for published only, `false` for unpublished only. */
11
11
  published?: boolean;
12
12
  }
@@ -1,3 +1,2 @@
1
- export type { CreateTemplateRequest } from "./CreateTemplateRequest.js";
2
1
  export type { ListAlphaTemplatesRequest } from "./ListAlphaTemplatesRequest.js";
3
2
  export type { UpdateTemplateRequest } from "./UpdateTemplateRequest.js";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.js";
2
- export * from "./types/index.js";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
- __exportStar(require("./types/index.js"), exports);
@@ -1,12 +1,12 @@
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";
4
5
  export * from "./alphaSections/client/requests/index.js";
5
6
  export * as alphaSections from "./alphaSections/index.js";
6
7
  export * as alphaSectionVersions from "./alphaSectionVersions/index.js";
7
8
  export * from "./alphaTemplates/client/requests/index.js";
8
9
  export * as alphaTemplates from "./alphaTemplates/index.js";
9
- export * from "./alphaTemplates/types/index.js";
10
10
  export * from "./alphaTemplateVersions/client/requests/index.js";
11
11
  export * as alphaTemplateVersions from "./alphaTemplateVersions/index.js";
12
12
  export * from "./alphaTemplateVersions/types/index.js";
@@ -36,16 +36,16 @@ 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.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.alphaTemplateVersions = exports.alphaTemplates = exports.alphaSectionVersions = exports.alphaSections = exports.alphaDocuments = 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"));
43
44
  __exportStar(require("./alphaSections/client/requests/index.js"), exports);
44
45
  exports.alphaSections = __importStar(require("./alphaSections/index.js"));
45
46
  exports.alphaSectionVersions = __importStar(require("./alphaSectionVersions/index.js"));
46
47
  __exportStar(require("./alphaTemplates/client/requests/index.js"), exports);
47
48
  exports.alphaTemplates = __importStar(require("./alphaTemplates/index.js"));
48
- __exportStar(require("./alphaTemplates/types/index.js"), exports);
49
49
  __exportStar(require("./alphaTemplateVersions/client/requests/index.js"), exports);
50
50
  exports.alphaTemplateVersions = __importStar(require("./alphaTemplateVersions/index.js"));
51
51
  __exportStar(require("./alphaTemplateVersions/types/index.js"), exports);
@@ -10,4 +10,6 @@ export interface AgentsCreateExpertReference {
10
10
  name?: string;
11
11
  /** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
12
12
  systemPrompt?: string;
13
+ /** Optional configuration override for the registry expert. Values provided here are deep-merged with the schema defaults declared on the registry expert and validated against its `configSchema`. Ignored when the registry expert has no schema. */
14
+ config?: Record<string, unknown>;
13
15
  }
@@ -10,4 +10,6 @@ export interface AgentsExpertReference {
10
10
  name: string;
11
11
  /** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
12
12
  systemPrompt?: string;
13
+ /** The fully resolved configuration for this expert: schema defaults from the registry expert deep-merged with any `config` override supplied at creation. Present only when the source registry expert defined a `configSchema`. */
14
+ resolvedConfig?: Record<string, unknown>;
13
15
  }
@@ -10,4 +10,6 @@ export interface AgentsRegistryExpert {
10
10
  description: string;
11
11
  /** A list of MCP servers the expert can call, including their authorization types. */
12
12
  mcpServers?: Corti.AgentsRegistryMcpServer[];
13
+ /** Optional JSON Schema describing the configuration this expert accepts. When present, callers may supply a matching `config` object on `AgentsCreateExpertReference`; values are deep-merged with schema defaults and validated against this schema. */
14
+ configSchema?: Record<string, unknown>;
13
15
  }
@@ -0,0 +1,13 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface ArrayNode {
3
+ type: "array";
4
+ /** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
5
+ description?: string;
6
+ items: Corti.OutputSchema;
7
+ /** Controls how each array item is rendered in the generated output. Use `bullet` (default), `numbered`, or `plain`, or provide a custom format string containing the `{item}` placeholder. */
8
+ itemFormat?: string;
9
+ /** Minimum number of array items to generate. */
10
+ minItems?: number | null;
11
+ /** Maximum number of array items to generate. */
12
+ maxItems?: number | null;
13
+ }
@@ -0,0 +1,12 @@
1
+ export interface CreateSectionBase {
2
+ /** A human-readable identifier for this section. Not passed to the LLM. */
3
+ 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
+ /** A description for this section. Not passed to the LLM. */
7
+ description?: string;
8
+ /** Labels work as query param filter in the LIST /sections endpoint. */
9
+ labels?: string[];
10
+ /** Defaults to true when omitted. Set this to false if you do not want the section to automatically show up in LIST /sections. */
11
+ publish?: boolean;
12
+ }
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Creates a section that inherits from another section. Any fields omitted in `generation` are inherited from the referenced section's published version; any fields provided override the inherited values.
4
+ */
5
+ export interface CreateSectionFromInheritanceRequest extends Corti.CreateSectionBase {
6
+ /** Reference to the section to inherit generation configuration from. Inherits from the published version of the referenced section. */
7
+ inheritFromId: string;
8
+ generation: Corti.SectionGenerationPartial;
9
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Creates a section from scratch with an explicit generation configuration. All required fields on `generation` apply.
4
+ */
5
+ export interface CreateSectionFromScratchRequest extends Corti.CreateSectionBase {
6
+ generation: Corti.SectionGeneration;
7
+ }
@@ -0,0 +1,2 @@
1
+ import type * as Corti from "../index.js";
2
+ export type CreateSectionRequest = Corti.CreateSectionFromScratchRequest | Corti.CreateSectionFromInheritanceRequest;
@@ -0,0 +1,12 @@
1
+ export interface CreateTemplateBase {
2
+ /** The name of this template. Not passed to the LLM. */
3
+ name: string;
4
+ /** A description for this template. Not passed to the LLM. */
5
+ 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;
8
+ /** Labels work as query param filter in the LIST /templates endpoint. */
9
+ labels?: string[];
10
+ /** Defaults to true when omitted. Set this to false if you do not want the template to automatically show up in LIST templates. */
11
+ publish?: boolean;
12
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
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
+ */
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. */
7
+ inheritFromId: string;
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;
10
+ }
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Partial overrides applied on top of the inherited template. All inner fields are optional. Any field omitted is inherited from the referenced template.
4
+ */
5
+ export interface CreateTemplateFromInheritanceRequestGeneration {
6
+ instructions?: Corti.TemplateInstructionsPartial;
7
+ sections?: Corti.TemplateVersionSectionRequest[];
8
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Creates a template from scratch. `generation.instructions` is required and the template fully specifies its own instructions and sections.
4
+ */
5
+ export interface CreateTemplateFromScratchRequest extends Corti.CreateTemplateBase {
6
+ generation: Corti.CreateTemplateFromScratchRequestGeneration;
7
+ }
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface CreateTemplateFromScratchRequestGeneration {
3
+ instructions: Corti.TemplateInstructions;
4
+ sections?: Corti.TemplateVersionSectionRequest[];
5
+ }
@@ -0,0 +1,2 @@
1
+ import type * as Corti from "../index.js";
2
+ export type CreateTemplateRequest = Corti.CreateTemplateFromScratchRequest | Corti.CreateTemplateFromInheritanceRequest;
@@ -0,0 +1,13 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Compose a template by referencing existing stored sections in declaration order.
4
+ */
5
+ export interface GuidedAssemblyRequest {
6
+ /** Name for the auto-generated template aggregate that will be persisted. */
7
+ name: string;
8
+ /** BCP 47 language tag. */
9
+ language: string;
10
+ /** Template-level instructions for the assembled template. */
11
+ instructions?: Corti.TemplateInstructions;
12
+ sectionRefs: Corti.GuidedAssemblySectionRef[];
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Per-section reference for the assembly path.
4
+ */
5
+ export interface GuidedAssemblySectionRef {
6
+ sectionId: string;
7
+ /** Optional explicit section version. Defaults to the section's published version when omitted. */
8
+ sectionVersionId?: string | null;
9
+ overrides?: Corti.SectionOverrides;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Generate a document by assembling a template from existing stored sections. The resulting template aggregate is auto-saved and can be referenced in future calls.
4
+ */
5
+ export interface GuidedDocumentByAssembly {
6
+ /** Single context object the model reasons over. Same shape as the `DocumentsContext` used by `POST /interactions/{id}/documents/`, but supplied as a single object — not an array. */
7
+ context: Corti.DocumentsContext;
8
+ /** Assemble a template from existing stored sections. */
9
+ assemblyTemplate: Corti.GuidedAssemblyRequest;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Generate a document from a fully inline template definition supplied in the request body. Sections and the wrapping template are created and immediately published as auto-generated resources.
4
+ */
5
+ export interface GuidedDocumentByDynamic {
6
+ /** Single context object the model reasons over. Same shape as the `DocumentsContext` used by `POST /interactions/{id}/documents/`, but supplied as a single object — not an array. */
7
+ context: Corti.DocumentsContext;
8
+ /** Fully inline template defined in the request body. */
9
+ dynamicTemplate: Corti.GuidedDynamicRequest;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Generate a document using a stored template. Optionally supply runtime overrides to patch instructions or sections without mutating the base template.
4
+ */
5
+ export interface GuidedDocumentByTemplateRef {
6
+ /** Single context object the model reasons over. Same shape as the `DocumentsContext` used by `POST /interactions/{id}/documents/`, but supplied as a single object — not an array. */
7
+ context: Corti.DocumentsContext;
8
+ /** Reference an existing stored template, optionally with overrides. */
9
+ templateRef: Corti.GuidedTemplateRef;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import type * as Corti from "../index.js";
2
+ export type GuidedDocumentRequest = Corti.GuidedDocumentByTemplateRef | Corti.GuidedDocumentByAssembly | Corti.GuidedDocumentByDynamic;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface GuidedDocumentResponse {
3
+ /** The template ID used for generation. For Path 1 (plain `templateRef` with no overrides), this is the referenced template. For other paths, it is the newly saved, auto-generated template aggregate. */
4
+ templateId: string;
5
+ /** The specific template version that was used for generation. */
6
+ templateVersionId: string;
7
+ result: Corti.GuidedGenerationResult;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface GuidedDynamicInline {
3
+ instructions: Corti.TemplateInstructions;
4
+ sections: Corti.SectionGeneration[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Fully inline template definition. Sections and the wrapping template are created and immediately published as auto-generated resources.
4
+ */
5
+ export interface GuidedDynamicRequest {
6
+ name: string;
7
+ /** BCP 47 language tag. */
8
+ language: string;
9
+ generation: Corti.GuidedDynamicInline;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * ML-service result. The shape mirrors the resolved template's section output schemas.
4
+ */
5
+ export interface GuidedGenerationResult {
6
+ /** The generated document as a map of section key to rendered string output. */
7
+ stringDocument?: Record<string, string>;
8
+ /** The generated document as a structured object keyed by section. */
9
+ structuredDocument?: Record<string, unknown> | null;
10
+ usage?: Corti.GuidedGenerationResultUsage;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface GuidedGenerationResultUsage {
3
+ tokenCount?: Corti.GuidedGenerationResultUsageTokenCount;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface GuidedGenerationResultUsageTokenCount {
2
+ input?: number;
3
+ output?: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Override patch applied to a section linked to the base template version. Override semantics are per-field for `instructions` (any field you omit is inherited from the parent's published version) and wholesale for `outputSchema` (whatever you submit fully replaces the parent schema — partial schemas are not merged). The same rule applies when a section is forked via `inheritFromId`.
4
+ */
5
+ export interface GuidedSectionOverride {
6
+ /** The UUID of a section linked to the base template version. */
7
+ sectionId: string;
8
+ /** When provided, replaces the section's title for this call. */
9
+ title?: string | null;
10
+ instructions?: Corti.SectionInstructionsOverride;
11
+ /** When provided, fully replaces the parent's output schema. Not a partial merge — any submitted value replaces the parent's schema in its entirety. */
12
+ outputSchema?: Corti.OutputSchema;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface GuidedTemplateOverrides {
3
+ /** Replaces the template-level instructions for this call. */
4
+ instructions?: Corti.TemplateInstructions;
5
+ /** Per-section override patches. Each entry must reference a section already linked to the base template version. */
6
+ sections?: Corti.GuidedSectionOverride[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface GuidedTemplateRef {
3
+ /** The UUID of a stored template. */
4
+ templateId: string;
5
+ /** Optional explicit template version. Defaults to the template's published version when omitted. */
6
+ templateVersionId?: string | null;
7
+ /** Runtime overrides applied on top of the resolved template. When present, a new auto-generated template is persisted with `inheritedFromId` pointing at the base template. */
8
+ overrides?: Corti.GuidedTemplateOverrides;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,10 @@
1
- export interface FloatNode {
2
- type: "float";
1
+ export interface NumberNode {
2
+ type: "number";
3
3
  /** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
4
4
  description?: string;
5
5
  /** The default to output if nothing to output. */
6
6
  default?: number | null;
7
- /** Can be used to prompt the LLM for specifically allowed float values to output. */
7
+ /** Can be used to prompt the LLM for specifically allowed numeric values to output. */
8
8
  enum?: number[];
9
9
  /** Use if a minimum value applies. */
10
10
  minimum?: number | null;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,12 @@
1
1
  import type * as Corti from "../index.js";
2
- export interface DictNode {
3
- type: "dict";
2
+ export interface ObjectNode {
3
+ type: "object";
4
4
  /** Can be used to prompt the LLM with more guidance in addition to the section.instructions */
5
5
  description?: string;
6
6
  /** Controls how subheadings are rendered in the generated output. Use `inline` (default) for `{key}: {value}\n` or `block` for `{key}\n{value}\n`, or provide a custom format string containing both `{key}` and `{value}` placeholders. Mutually exclusive with `objectFormat`. */
7
7
  subheadingFormat?: string;
8
8
  /** A format string referencing field keys as placeholders (e.g. `{fieldKey}`). All placeholders must correspond to defined field keys. Mutually exclusive with `subheadingFormat`. */
9
9
  objectFormat?: string;
10
- /** Define what fields are possible to return in the dict. */
10
+ /** Define what fields are possible to return in the object. */
11
11
  fields?: Corti.FieldDefinition[];
12
12
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../index.js";
2
- export type OutputSchema = Corti.StringNode | Corti.IntegerNode | Corti.FloatNode | Corti.BoolNode | Corti.DictNode | Corti.ListNode;
2
+ export type OutputSchema = Corti.StringNode | Corti.NumberNode | Corti.BoolNode | Corti.ObjectNode | Corti.ArrayNode;
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Partial form of SectionGeneration used when inheriting from another section. Any field omitted is inherited from the referenced section.
4
+ */
5
+ export interface SectionGenerationPartial {
6
+ /** Override the inherited section title. Passed to the LLM. */
7
+ title?: string;
8
+ /** Override the inherited prompt instructions for this section. Any field omitted is inherited. */
9
+ instructions?: Corti.SectionInstructionsPartial;
10
+ /** Override the inherited output schema. */
11
+ outputSchema?: Corti.OutputSchema;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,7 @@ export interface SectionInstructions {
2
2
  /** The content prompt instructs the model what to include for synthesis. For `documentationMode: routed_parallel` this impacts what facts to route to this section. */
3
3
  contentPrompt: string;
4
4
  /** The writingStyle prompt instructs the model in what tone and style to output. */
5
- writingStylePrompt: string;
5
+ writingStylePrompt?: string;
6
+ /** Optional free-form prompt for any instructions that don't fit contentPrompt or writingStylePrompt. */
7
+ miscPrompt?: string;
6
8
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Partial section-instructions patch used in override and fork contexts. Each field is independent: provide only the fields you want to replace, and any field you omit is inherited from the parent's published version.
3
+ */
4
+ export interface SectionInstructionsOverride {
5
+ /** When provided, replaces the section's content prompt. Omit to inherit from the parent. */
6
+ contentPrompt?: string;
7
+ /** When provided, replaces the section's writing style prompt. Omit to inherit from the parent. */
8
+ writingStylePrompt?: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Partial form of SectionInstructions used when inheriting from another section. Any field omitted is inherited.
3
+ */
4
+ export interface SectionInstructionsPartial {
5
+ /** Override the inherited content prompt. */
6
+ contentPrompt?: string;
7
+ /** Override the inherited writing style prompt. */
8
+ writingStylePrompt?: string;
9
+ /** Override the inherited misc prompt. */
10
+ miscPrompt?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Patches a section's content at link time without mutating the underlying section. Override semantics are per-field for instructions (any field you omit is inherited from the parent's published version) and wholesale for `outputSchema` (whatever you submit fully replaces the parent schema). The same applies when a section is forked via `inheritFromId`.
4
+ */
5
+ export interface SectionOverrides {
6
+ /** When provided, replaces the section's title for this call. */
7
+ title?: string | null;
8
+ instructions?: Corti.SectionInstructionsOverride;
9
+ /** When provided, fully replaces the parent's output schema. */
10
+ outputSchema?: Corti.OutputSchema;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Partial form of TemplateInstructions used when inheriting from another template. Any field omitted is inherited.
3
+ */
4
+ export interface TemplateInstructionsPartial {
5
+ /** Override the inherited template-level prompt instructions. */
6
+ prompt?: string;
7
+ }