@corti/sdk 4.3.0-beta → 5.0.0

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 (327) hide show
  1. package/README.md +52 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +2 -2
  4. package/dist/cjs/Client.js +4 -4
  5. package/dist/cjs/api/errors/index.d.ts +0 -1
  6. package/dist/cjs/api/errors/index.js +0 -1
  7. package/dist/cjs/api/resources/agentic/client/Client.d.ts +0 -3
  8. package/dist/cjs/api/resources/agentic/client/Client.js +2 -7
  9. package/dist/cjs/api/resources/agentic/resources/agents/client/Client.d.ts +7 -7
  10. package/dist/cjs/api/resources/agentic/resources/agents/client/Client.js +10 -10
  11. package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.d.ts +1 -1
  12. package/dist/cjs/api/resources/agentic/resources/agents/client/requests/{A2AjsonrpcRequest.d.ts → AgenticAgentsJsonRpcRequest.d.ts} +3 -3
  13. package/dist/cjs/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.d.ts +1 -1
  14. package/dist/cjs/api/resources/agentic/resources/agents/client/requests/index.d.ts +1 -1
  15. package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/Client.d.ts +1 -1
  16. package/dist/cjs/api/resources/agentic/resources/agents/resources/connectors/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/Client.d.ts +5 -5
  18. package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/Client.js +3 -3
  19. package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/{AgenticAgentsA2ATasksGetRequest.d.ts → AgenticAgentsTasksGetRequest.d.ts} +1 -1
  20. package/dist/{esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksListRequest.d.mts → cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsTasksListRequest.d.ts} +1 -1
  21. package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/index.d.ts +2 -2
  22. package/dist/cjs/api/resources/agentic/resources/agents/types/AgenticAgentsJsonRpcRequestId.d.ts +1 -0
  23. package/dist/cjs/api/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.d.ts → AgenticAgentsJsonRpcRequestMethod.d.ts} +2 -2
  24. package/dist/cjs/api/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.js → AgenticAgentsJsonRpcRequestMethod.js} +2 -2
  25. package/dist/cjs/api/resources/agentic/resources/agents/types/index.d.ts +2 -2
  26. package/dist/cjs/api/resources/agentic/resources/agents/types/index.js +2 -2
  27. package/dist/cjs/api/resources/agentic/resources/index.d.ts +0 -1
  28. package/dist/cjs/api/resources/agentic/resources/index.js +1 -2
  29. package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/Client.d.ts +1 -1
  30. package/dist/cjs/api/resources/agentic/resources/registry/resources/connectors/client/Client.js +1 -1
  31. package/dist/cjs/api/resources/documents/client/Client.d.ts +43 -75
  32. package/dist/cjs/api/resources/documents/client/Client.js +89 -251
  33. package/dist/cjs/api/resources/documents/client/requests/GuidedDocumentsListRequest.d.ts +12 -0
  34. package/dist/cjs/api/resources/documents/client/requests/GuidedDocumentsUpdateRequest.d.ts +12 -0
  35. package/dist/cjs/api/resources/documents/client/requests/index.d.ts +2 -1
  36. package/dist/cjs/api/resources/documents/resources/classic/client/Client.d.ts +113 -0
  37. package/dist/cjs/api/resources/documents/resources/classic/client/Client.js +472 -0
  38. package/dist/cjs/api/resources/documents/resources/classic/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/documents/resources/classic/client/index.js +17 -0
  40. package/dist/cjs/api/resources/documents/{client → resources/classic/client}/requests/DocumentsUpdateRequest.d.ts +1 -1
  41. package/dist/cjs/api/resources/documents/resources/classic/client/requests/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/documents/resources/index.d.ts +2 -0
  43. package/dist/cjs/api/resources/documents/resources/index.js +3 -1
  44. package/dist/cjs/api/types/{A2AjsonrpcResponse.d.ts → AgenticAgentsJsonRpcResponse.d.ts} +3 -3
  45. package/dist/cjs/api/types/{A2AjsonrpcResponseError.d.ts → AgenticAgentsJsonRpcResponseError.d.ts} +1 -1
  46. package/dist/cjs/api/types/AgenticAgentsJsonRpcResponseId.d.ts +1 -0
  47. package/dist/{esm/api/types/A2ASendMessageConfiguration.d.mts → cjs/api/types/AgenticAgentsSendMessageConfiguration.d.ts} +1 -1
  48. package/dist/cjs/api/types/{A2ASendMessageRequest.d.ts → AgenticAgentsSendMessageRequest.d.ts} +2 -2
  49. package/dist/cjs/api/types/{A2ASendMessageResponse.d.ts → AgenticAgentsSendMessageResponse.d.ts} +1 -1
  50. package/dist/{esm/api/types/A2AStreamEventResponse.d.mts → cjs/api/types/AgenticAgentsStreamEventResponse.d.ts} +1 -1
  51. package/dist/cjs/api/types/AgenticRegistryConnector.d.ts +1 -1
  52. package/dist/cjs/api/types/GuidedDocument.d.ts +26 -0
  53. package/dist/cjs/api/types/GuidedDocument.js +3 -0
  54. package/dist/cjs/api/types/GuidedDocumentSection.d.ts +12 -0
  55. package/dist/cjs/api/types/GuidedDocumentSection.js +3 -0
  56. package/dist/cjs/api/types/GuidedEphemeralDocument.d.ts +4 -0
  57. package/dist/cjs/api/types/index.d.ts +9 -9
  58. package/dist/cjs/api/types/index.js +9 -9
  59. package/dist/cjs/core/headers.d.ts +4 -1
  60. package/dist/cjs/core/headers.js +7 -2
  61. package/dist/cjs/custom/CortiClient.d.ts +6 -0
  62. package/dist/cjs/custom/CortiClient.js +8 -3
  63. package/dist/cjs/custom/overrides/headers.d.ts +1 -0
  64. package/dist/cjs/custom/overrides/headers.js +27 -0
  65. package/dist/cjs/custom/stream/CustomStream.d.ts +2 -0
  66. package/dist/cjs/custom/stream/CustomStream.js +7 -5
  67. package/dist/cjs/custom/transcribe/CustomTranscribe.d.ts +2 -0
  68. package/dist/cjs/custom/transcribe/CustomTranscribe.js +8 -6
  69. package/dist/cjs/custom/utils/analytics.d.ts +3 -0
  70. package/dist/cjs/custom/utils/analytics.js +33 -0
  71. package/dist/cjs/custom/utils/encodeHeadersAsWsProtocols.js +1 -1
  72. package/dist/cjs/custom/utils/sdkHeaderNames.js +8 -7
  73. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.js +1 -1
  74. package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsJsonRpcRequest.d.ts +13 -0
  75. package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/{A2AjsonrpcRequest.js → AgenticAgentsJsonRpcRequest.js} +6 -6
  76. package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/index.d.ts +1 -1
  77. package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/index.js +3 -3
  78. package/dist/cjs/serialization/resources/agentic/resources/agents/types/AgenticAgentsJsonRpcRequestId.d.ts +7 -0
  79. package/dist/cjs/serialization/resources/agentic/resources/agents/types/{A2AjsonrpcRequestId.js → AgenticAgentsJsonRpcRequestId.js} +2 -2
  80. package/dist/cjs/serialization/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.d.ts → AgenticAgentsJsonRpcRequestMethod.d.ts} +2 -2
  81. package/dist/cjs/serialization/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.js → AgenticAgentsJsonRpcRequestMethod.js} +2 -2
  82. package/dist/cjs/serialization/resources/agentic/resources/agents/types/index.d.ts +2 -2
  83. package/dist/cjs/serialization/resources/agentic/resources/agents/types/index.js +2 -2
  84. package/dist/cjs/serialization/resources/documents/client/index.d.ts +1 -0
  85. package/dist/cjs/serialization/resources/documents/client/index.js +24 -0
  86. package/dist/cjs/serialization/resources/documents/client/list.d.ts +8 -0
  87. package/dist/cjs/serialization/{types/AgenticModel.js → resources/documents/client/list.js} +4 -7
  88. package/dist/cjs/serialization/resources/documents/client/requests/GuidedDocumentsUpdateRequest.d.ts +13 -0
  89. package/dist/cjs/serialization/resources/documents/client/requests/GuidedDocumentsUpdateRequest.js +45 -0
  90. package/dist/cjs/serialization/resources/documents/client/requests/index.d.ts +1 -1
  91. package/dist/cjs/serialization/resources/documents/client/requests/index.js +3 -3
  92. package/dist/cjs/serialization/resources/documents/resources/classic/client/index.d.ts +1 -0
  93. package/dist/cjs/serialization/resources/documents/resources/classic/client/index.js +17 -0
  94. package/dist/cjs/serialization/resources/documents/resources/classic/client/requests/DocumentsUpdateRequest.d.ts +11 -0
  95. package/dist/cjs/serialization/resources/documents/{client → resources/classic/client}/requests/DocumentsUpdateRequest.js +2 -2
  96. package/dist/cjs/serialization/resources/documents/resources/classic/client/requests/index.d.ts +1 -0
  97. package/dist/cjs/serialization/resources/documents/resources/classic/client/requests/index.js +5 -0
  98. package/dist/cjs/serialization/resources/documents/resources/classic/index.d.ts +1 -0
  99. package/dist/cjs/serialization/resources/documents/resources/classic/index.js +17 -0
  100. package/dist/cjs/serialization/resources/documents/resources/index.d.ts +2 -0
  101. package/dist/cjs/serialization/resources/documents/resources/index.js +3 -1
  102. package/dist/cjs/serialization/types/AgenticAgentsJsonRpcResponse.d.ts +14 -0
  103. package/dist/cjs/serialization/types/{A2AjsonrpcResponse.js → AgenticAgentsJsonRpcResponse.js} +6 -6
  104. package/dist/cjs/serialization/types/{A2AjsonrpcResponseError.d.ts → AgenticAgentsJsonRpcResponseError.d.ts} +2 -2
  105. package/dist/cjs/serialization/types/{A2AjsonrpcResponseError.js → AgenticAgentsJsonRpcResponseError.js} +2 -2
  106. package/dist/cjs/serialization/types/AgenticAgentsJsonRpcResponseId.d.ts +7 -0
  107. package/dist/cjs/serialization/types/{A2AjsonrpcResponseId.js → AgenticAgentsJsonRpcResponseId.js} +2 -2
  108. package/dist/cjs/serialization/types/{A2ASendMessageConfiguration.d.ts → AgenticAgentsSendMessageConfiguration.d.ts} +2 -2
  109. package/dist/cjs/serialization/types/{A2ASendMessageConfiguration.js → AgenticAgentsSendMessageConfiguration.js} +2 -2
  110. package/dist/cjs/serialization/types/AgenticAgentsSendMessageRequest.d.ts +14 -0
  111. package/dist/cjs/serialization/types/{A2ASendMessageRequest.js → AgenticAgentsSendMessageRequest.js} +4 -4
  112. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.d.ts +7 -0
  113. package/dist/cjs/serialization/types/{A2ASendMessageResponse.js → AgenticAgentsSendMessageResponse.js} +2 -2
  114. package/dist/cjs/serialization/types/{A2AStreamEventResponse.d.ts → AgenticAgentsStreamEventResponse.d.ts} +2 -2
  115. package/dist/cjs/serialization/types/{A2AStreamEventResponse.js → AgenticAgentsStreamEventResponse.js} +2 -2
  116. package/dist/cjs/serialization/types/GuidedDocument.d.ts +22 -0
  117. package/dist/cjs/serialization/types/GuidedDocument.js +56 -0
  118. package/dist/cjs/serialization/types/GuidedDocumentSection.d.ts +12 -0
  119. package/dist/cjs/serialization/types/{AgenticModelsListResponse.js → GuidedDocumentSection.js} +6 -4
  120. package/dist/cjs/serialization/types/GuidedEphemeralDocument.d.ts +2 -0
  121. package/dist/cjs/serialization/types/GuidedEphemeralDocument.js +2 -0
  122. package/dist/cjs/serialization/types/index.d.ts +9 -9
  123. package/dist/cjs/serialization/types/index.js +9 -9
  124. package/dist/cjs/version.d.ts +1 -1
  125. package/dist/cjs/version.js +1 -1
  126. package/dist/esm/BaseClient.mjs +2 -2
  127. package/dist/esm/Client.d.mts +2 -2
  128. package/dist/esm/Client.mjs +4 -4
  129. package/dist/esm/api/errors/index.d.mts +0 -1
  130. package/dist/esm/api/errors/index.mjs +0 -1
  131. package/dist/esm/api/resources/agentic/client/Client.d.mts +0 -3
  132. package/dist/esm/api/resources/agentic/client/Client.mjs +0 -5
  133. package/dist/esm/api/resources/agentic/resources/agents/client/Client.d.mts +7 -7
  134. package/dist/esm/api/resources/agentic/resources/agents/client/Client.mjs +10 -10
  135. package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsCreateRequest.d.mts +1 -1
  136. package/dist/esm/api/resources/agentic/resources/agents/client/requests/{A2AjsonrpcRequest.d.mts → AgenticAgentsJsonRpcRequest.d.mts} +3 -3
  137. package/dist/esm/api/resources/agentic/resources/agents/client/requests/AgenticAgentsPatchRequest.d.mts +1 -1
  138. package/dist/esm/api/resources/agentic/resources/agents/client/requests/index.d.mts +1 -1
  139. package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/Client.d.mts +1 -1
  140. package/dist/esm/api/resources/agentic/resources/agents/resources/connectors/client/Client.mjs +1 -1
  141. package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/Client.d.mts +5 -5
  142. package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/Client.mjs +3 -3
  143. package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/{AgenticAgentsA2ATasksGetRequest.d.mts → AgenticAgentsTasksGetRequest.d.mts} +1 -1
  144. package/dist/{cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsA2ATasksListRequest.d.ts → esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/AgenticAgentsTasksListRequest.d.mts} +1 -1
  145. package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/index.d.mts +2 -2
  146. package/dist/esm/api/resources/agentic/resources/agents/types/AgenticAgentsJsonRpcRequestId.d.mts +1 -0
  147. package/dist/esm/api/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.d.mts → AgenticAgentsJsonRpcRequestMethod.d.mts} +2 -2
  148. package/dist/esm/api/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.mjs → AgenticAgentsJsonRpcRequestMethod.mjs} +1 -1
  149. package/dist/esm/api/resources/agentic/resources/agents/types/index.d.mts +2 -2
  150. package/dist/esm/api/resources/agentic/resources/agents/types/index.mjs +2 -2
  151. package/dist/esm/api/resources/agentic/resources/index.d.mts +0 -1
  152. package/dist/esm/api/resources/agentic/resources/index.mjs +0 -1
  153. package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/Client.d.mts +1 -1
  154. package/dist/esm/api/resources/agentic/resources/registry/resources/connectors/client/Client.mjs +1 -1
  155. package/dist/esm/api/resources/documents/client/Client.d.mts +43 -75
  156. package/dist/esm/api/resources/documents/client/Client.mjs +85 -247
  157. package/dist/esm/api/resources/documents/client/requests/GuidedDocumentsListRequest.d.mts +12 -0
  158. package/dist/esm/api/resources/documents/client/requests/GuidedDocumentsUpdateRequest.d.mts +12 -0
  159. package/dist/esm/api/resources/documents/client/requests/index.d.mts +2 -1
  160. package/dist/esm/api/resources/documents/resources/classic/client/Client.d.mts +113 -0
  161. package/dist/esm/api/resources/documents/resources/classic/client/Client.mjs +435 -0
  162. package/dist/esm/api/resources/documents/resources/classic/client/index.d.mts +1 -0
  163. package/dist/esm/api/resources/documents/resources/classic/client/index.mjs +1 -0
  164. package/dist/esm/api/resources/documents/{client → resources/classic/client}/requests/DocumentsUpdateRequest.d.mts +1 -1
  165. package/dist/esm/api/resources/documents/resources/classic/client/requests/index.d.mts +1 -0
  166. package/dist/esm/api/resources/documents/resources/index.d.mts +2 -0
  167. package/dist/esm/api/resources/documents/resources/index.mjs +2 -0
  168. package/dist/esm/api/types/{A2AjsonrpcResponse.d.mts → AgenticAgentsJsonRpcResponse.d.mts} +3 -3
  169. package/dist/esm/api/types/{A2AjsonrpcResponseError.d.mts → AgenticAgentsJsonRpcResponseError.d.mts} +1 -1
  170. package/dist/esm/api/types/AgenticAgentsJsonRpcResponseId.d.mts +1 -0
  171. package/dist/{cjs/api/types/A2ASendMessageConfiguration.d.ts → esm/api/types/AgenticAgentsSendMessageConfiguration.d.mts} +1 -1
  172. package/dist/esm/api/types/{A2ASendMessageRequest.d.mts → AgenticAgentsSendMessageRequest.d.mts} +2 -2
  173. package/dist/esm/api/types/{A2ASendMessageResponse.d.mts → AgenticAgentsSendMessageResponse.d.mts} +1 -1
  174. package/dist/{cjs/api/types/A2AStreamEventResponse.d.ts → esm/api/types/AgenticAgentsStreamEventResponse.d.mts} +1 -1
  175. package/dist/esm/api/types/AgenticRegistryConnector.d.mts +1 -1
  176. package/dist/esm/api/types/GuidedDocument.d.mts +26 -0
  177. package/dist/esm/api/types/GuidedDocument.mjs +2 -0
  178. package/dist/esm/api/types/GuidedDocumentSection.d.mts +12 -0
  179. package/dist/esm/api/types/GuidedDocumentSection.mjs +2 -0
  180. package/dist/esm/api/types/GuidedEphemeralDocument.d.mts +4 -0
  181. package/dist/esm/api/types/index.d.mts +9 -9
  182. package/dist/esm/api/types/index.mjs +9 -9
  183. package/dist/esm/core/headers.d.mts +4 -1
  184. package/dist/esm/core/headers.mjs +4 -1
  185. package/dist/esm/custom/CortiClient.d.mts +6 -0
  186. package/dist/esm/custom/CortiClient.mjs +8 -3
  187. package/dist/esm/custom/overrides/headers.d.mts +1 -0
  188. package/dist/esm/custom/overrides/headers.mjs +24 -0
  189. package/dist/esm/custom/stream/CustomStream.d.mts +2 -0
  190. package/dist/esm/custom/stream/CustomStream.mjs +7 -5
  191. package/dist/esm/custom/transcribe/CustomTranscribe.d.mts +2 -0
  192. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +8 -6
  193. package/dist/esm/custom/utils/analytics.d.mts +3 -0
  194. package/dist/esm/custom/utils/analytics.mjs +28 -0
  195. package/dist/esm/custom/utils/encodeHeadersAsWsProtocols.mjs +1 -1
  196. package/dist/esm/custom/utils/sdkHeaderNames.mjs +8 -7
  197. package/dist/esm/custom/utils/stripFernNormalizedHeaders.mjs +1 -1
  198. package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsJsonRpcRequest.d.mts +13 -0
  199. package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/AgenticAgentsJsonRpcRequest.mjs +9 -0
  200. package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/index.d.mts +1 -1
  201. package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/index.mjs +1 -1
  202. package/dist/esm/serialization/resources/agentic/resources/agents/types/AgenticAgentsJsonRpcRequestId.d.mts +7 -0
  203. package/dist/esm/serialization/resources/agentic/resources/agents/types/AgenticAgentsJsonRpcRequestId.mjs +3 -0
  204. package/dist/esm/serialization/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.d.mts → AgenticAgentsJsonRpcRequestMethod.d.mts} +2 -2
  205. package/dist/esm/serialization/resources/agentic/resources/agents/types/{A2AjsonrpcRequestMethod.mjs → AgenticAgentsJsonRpcRequestMethod.mjs} +1 -1
  206. package/dist/esm/serialization/resources/agentic/resources/agents/types/index.d.mts +2 -2
  207. package/dist/esm/serialization/resources/agentic/resources/agents/types/index.mjs +2 -2
  208. package/dist/esm/serialization/resources/documents/client/index.d.mts +1 -0
  209. package/dist/esm/serialization/resources/documents/client/index.mjs +1 -0
  210. package/dist/esm/serialization/resources/documents/client/list.d.mts +8 -0
  211. package/dist/esm/serialization/resources/documents/client/list.mjs +4 -0
  212. package/dist/esm/serialization/resources/documents/client/requests/GuidedDocumentsUpdateRequest.d.mts +13 -0
  213. package/dist/esm/serialization/resources/documents/client/requests/GuidedDocumentsUpdateRequest.mjs +9 -0
  214. package/dist/esm/serialization/resources/documents/client/requests/index.d.mts +1 -1
  215. package/dist/esm/serialization/resources/documents/client/requests/index.mjs +1 -1
  216. package/dist/esm/serialization/resources/documents/resources/classic/client/index.d.mts +1 -0
  217. package/dist/esm/serialization/resources/documents/resources/classic/client/index.mjs +1 -0
  218. package/dist/esm/serialization/resources/documents/resources/classic/client/requests/DocumentsUpdateRequest.d.mts +11 -0
  219. package/dist/esm/serialization/resources/documents/{client → resources/classic/client}/requests/DocumentsUpdateRequest.mjs +2 -2
  220. package/dist/esm/serialization/resources/documents/resources/classic/client/requests/index.d.mts +1 -0
  221. package/dist/esm/serialization/resources/documents/resources/classic/client/requests/index.mjs +1 -0
  222. package/dist/esm/serialization/resources/documents/resources/classic/index.d.mts +1 -0
  223. package/dist/esm/serialization/resources/documents/resources/classic/index.mjs +1 -0
  224. package/dist/esm/serialization/resources/documents/resources/index.d.mts +2 -0
  225. package/dist/esm/serialization/resources/documents/resources/index.mjs +2 -0
  226. package/dist/esm/serialization/types/AgenticAgentsJsonRpcResponse.d.mts +14 -0
  227. package/dist/esm/serialization/types/AgenticAgentsJsonRpcResponse.mjs +10 -0
  228. package/dist/esm/serialization/types/{A2AjsonrpcResponseError.d.mts → AgenticAgentsJsonRpcResponseError.d.mts} +2 -2
  229. package/dist/esm/serialization/types/{A2AjsonrpcResponseError.mjs → AgenticAgentsJsonRpcResponseError.mjs} +1 -1
  230. package/dist/esm/serialization/types/AgenticAgentsJsonRpcResponseId.d.mts +7 -0
  231. package/dist/esm/serialization/types/AgenticAgentsJsonRpcResponseId.mjs +3 -0
  232. package/dist/esm/serialization/types/{A2ASendMessageConfiguration.d.mts → AgenticAgentsSendMessageConfiguration.d.mts} +2 -2
  233. package/dist/esm/serialization/types/{A2ASendMessageConfiguration.mjs → AgenticAgentsSendMessageConfiguration.mjs} +1 -1
  234. package/dist/esm/serialization/types/AgenticAgentsSendMessageRequest.d.mts +14 -0
  235. package/dist/esm/serialization/types/{A2ASendMessageRequest.mjs → AgenticAgentsSendMessageRequest.mjs} +3 -3
  236. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.d.mts +7 -0
  237. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.mjs +3 -0
  238. package/dist/esm/serialization/types/{A2AStreamEventResponse.d.mts → AgenticAgentsStreamEventResponse.d.mts} +2 -2
  239. package/dist/esm/serialization/types/{A2AStreamEventResponse.mjs → AgenticAgentsStreamEventResponse.mjs} +1 -1
  240. package/dist/esm/serialization/types/GuidedDocument.d.mts +22 -0
  241. package/dist/esm/serialization/types/GuidedDocument.mjs +20 -0
  242. package/dist/esm/serialization/types/GuidedDocumentSection.d.mts +12 -0
  243. package/dist/esm/serialization/types/GuidedDocumentSection.mjs +8 -0
  244. package/dist/esm/serialization/types/GuidedEphemeralDocument.d.mts +2 -0
  245. package/dist/esm/serialization/types/GuidedEphemeralDocument.mjs +2 -0
  246. package/dist/esm/serialization/types/index.d.mts +9 -9
  247. package/dist/esm/serialization/types/index.mjs +9 -9
  248. package/dist/esm/version.d.mts +1 -1
  249. package/dist/esm/version.mjs +1 -1
  250. package/package.json +1 -1
  251. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +0 -6
  252. package/dist/cjs/api/errors/ServiceUnavailableError.js +0 -54
  253. package/dist/cjs/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.ts +0 -1
  254. package/dist/cjs/api/resources/agentic/resources/models/client/Client.d.ts +0 -30
  255. package/dist/cjs/api/resources/agentic/resources/models/client/Client.js +0 -128
  256. package/dist/cjs/api/resources/agentic/resources/models/client/index.d.ts +0 -1
  257. package/dist/cjs/api/types/A2AjsonrpcResponseId.d.ts +0 -1
  258. package/dist/cjs/api/types/AgenticModel.d.ts +0 -11
  259. package/dist/cjs/api/types/AgenticModelsListResponse.d.ts +0 -8
  260. package/dist/cjs/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.d.ts +0 -13
  261. package/dist/cjs/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.ts +0 -7
  262. package/dist/cjs/serialization/resources/documents/client/requests/DocumentsUpdateRequest.d.ts +0 -11
  263. package/dist/cjs/serialization/types/A2ASendMessageRequest.d.ts +0 -14
  264. package/dist/cjs/serialization/types/A2ASendMessageResponse.d.ts +0 -7
  265. package/dist/cjs/serialization/types/A2AjsonrpcResponse.d.ts +0 -14
  266. package/dist/cjs/serialization/types/A2AjsonrpcResponseId.d.ts +0 -7
  267. package/dist/cjs/serialization/types/AgenticModel.d.ts +0 -11
  268. package/dist/cjs/serialization/types/AgenticModelsListResponse.d.ts +0 -10
  269. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +0 -6
  270. package/dist/esm/api/errors/ServiceUnavailableError.mjs +0 -17
  271. package/dist/esm/api/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.mts +0 -1
  272. package/dist/esm/api/resources/agentic/resources/models/client/Client.d.mts +0 -30
  273. package/dist/esm/api/resources/agentic/resources/models/client/Client.mjs +0 -91
  274. package/dist/esm/api/resources/agentic/resources/models/client/index.d.mts +0 -1
  275. package/dist/esm/api/types/A2AjsonrpcResponseId.d.mts +0 -1
  276. package/dist/esm/api/types/AgenticModel.d.mts +0 -11
  277. package/dist/esm/api/types/AgenticModelsListResponse.d.mts +0 -8
  278. package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.d.mts +0 -13
  279. package/dist/esm/serialization/resources/agentic/resources/agents/client/requests/A2AjsonrpcRequest.mjs +0 -9
  280. package/dist/esm/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.d.mts +0 -7
  281. package/dist/esm/serialization/resources/agentic/resources/agents/types/A2AjsonrpcRequestId.mjs +0 -3
  282. package/dist/esm/serialization/resources/documents/client/requests/DocumentsUpdateRequest.d.mts +0 -11
  283. package/dist/esm/serialization/types/A2ASendMessageRequest.d.mts +0 -14
  284. package/dist/esm/serialization/types/A2ASendMessageResponse.d.mts +0 -7
  285. package/dist/esm/serialization/types/A2ASendMessageResponse.mjs +0 -3
  286. package/dist/esm/serialization/types/A2AjsonrpcResponse.d.mts +0 -14
  287. package/dist/esm/serialization/types/A2AjsonrpcResponse.mjs +0 -10
  288. package/dist/esm/serialization/types/A2AjsonrpcResponseId.d.mts +0 -7
  289. package/dist/esm/serialization/types/A2AjsonrpcResponseId.mjs +0 -3
  290. package/dist/esm/serialization/types/AgenticModel.d.mts +0 -11
  291. package/dist/esm/serialization/types/AgenticModel.mjs +0 -7
  292. package/dist/esm/serialization/types/AgenticModelsListResponse.d.mts +0 -10
  293. package/dist/esm/serialization/types/AgenticModelsListResponse.mjs +0 -6
  294. /package/dist/cjs/api/resources/agentic/resources/agents/client/requests/{A2AjsonrpcRequest.js → AgenticAgentsJsonRpcRequest.js} +0 -0
  295. /package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/{AgenticAgentsA2ATasksGetRequest.js → AgenticAgentsTasksGetRequest.js} +0 -0
  296. /package/dist/cjs/api/resources/agentic/resources/agents/resources/tasks/client/requests/{AgenticAgentsA2ATasksListRequest.js → AgenticAgentsTasksListRequest.js} +0 -0
  297. /package/dist/cjs/api/resources/agentic/resources/agents/types/{A2AjsonrpcRequestId.js → AgenticAgentsJsonRpcRequestId.js} +0 -0
  298. /package/dist/cjs/api/resources/documents/client/requests/{DocumentsUpdateRequest.js → GuidedDocumentsListRequest.js} +0 -0
  299. /package/dist/cjs/api/{types/A2ASendMessageConfiguration.js → resources/documents/client/requests/GuidedDocumentsUpdateRequest.js} +0 -0
  300. /package/dist/cjs/api/{types/A2ASendMessageRequest.js → resources/documents/resources/classic/client/requests/DocumentsUpdateRequest.js} +0 -0
  301. /package/dist/cjs/api/resources/{agentic/resources/models/client → documents/resources/classic/client/requests}/index.js +0 -0
  302. /package/dist/cjs/api/resources/{agentic/resources/models → documents/resources/classic}/index.d.ts +0 -0
  303. /package/dist/cjs/api/resources/{agentic/resources/models → documents/resources/classic}/index.js +0 -0
  304. /package/dist/cjs/api/types/{A2ASendMessageResponse.js → AgenticAgentsJsonRpcResponse.js} +0 -0
  305. /package/dist/cjs/api/types/{A2AStreamEventResponse.js → AgenticAgentsJsonRpcResponseError.js} +0 -0
  306. /package/dist/cjs/api/types/{A2AjsonrpcResponse.js → AgenticAgentsJsonRpcResponseId.js} +0 -0
  307. /package/dist/cjs/api/types/{A2AjsonrpcResponseError.js → AgenticAgentsSendMessageConfiguration.js} +0 -0
  308. /package/dist/cjs/api/types/{A2AjsonrpcResponseId.js → AgenticAgentsSendMessageRequest.js} +0 -0
  309. /package/dist/cjs/api/types/{AgenticModel.js → AgenticAgentsSendMessageResponse.js} +0 -0
  310. /package/dist/cjs/api/types/{AgenticModelsListResponse.js → AgenticAgentsStreamEventResponse.js} +0 -0
  311. /package/dist/esm/api/resources/agentic/resources/agents/client/requests/{A2AjsonrpcRequest.mjs → AgenticAgentsJsonRpcRequest.mjs} +0 -0
  312. /package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/{AgenticAgentsA2ATasksGetRequest.mjs → AgenticAgentsTasksGetRequest.mjs} +0 -0
  313. /package/dist/esm/api/resources/agentic/resources/agents/resources/tasks/client/requests/{AgenticAgentsA2ATasksListRequest.mjs → AgenticAgentsTasksListRequest.mjs} +0 -0
  314. /package/dist/esm/api/resources/agentic/resources/agents/types/{A2AjsonrpcRequestId.mjs → AgenticAgentsJsonRpcRequestId.mjs} +0 -0
  315. /package/dist/esm/api/resources/documents/client/requests/{DocumentsUpdateRequest.mjs → GuidedDocumentsListRequest.mjs} +0 -0
  316. /package/dist/esm/api/{types/A2ASendMessageConfiguration.mjs → resources/documents/client/requests/GuidedDocumentsUpdateRequest.mjs} +0 -0
  317. /package/dist/esm/api/{types/A2ASendMessageRequest.mjs → resources/documents/resources/classic/client/requests/DocumentsUpdateRequest.mjs} +0 -0
  318. /package/dist/esm/api/resources/{agentic/resources/models/client → documents/resources/classic/client/requests}/index.mjs +0 -0
  319. /package/dist/esm/api/resources/{agentic/resources/models → documents/resources/classic}/index.d.mts +0 -0
  320. /package/dist/esm/api/resources/{agentic/resources/models → documents/resources/classic}/index.mjs +0 -0
  321. /package/dist/esm/api/types/{A2ASendMessageResponse.mjs → AgenticAgentsJsonRpcResponse.mjs} +0 -0
  322. /package/dist/esm/api/types/{A2AStreamEventResponse.mjs → AgenticAgentsJsonRpcResponseError.mjs} +0 -0
  323. /package/dist/esm/api/types/{A2AjsonrpcResponse.mjs → AgenticAgentsJsonRpcResponseId.mjs} +0 -0
  324. /package/dist/esm/api/types/{A2AjsonrpcResponseError.mjs → AgenticAgentsSendMessageConfiguration.mjs} +0 -0
  325. /package/dist/esm/api/types/{A2AjsonrpcResponseId.mjs → AgenticAgentsSendMessageRequest.mjs} +0 -0
  326. /package/dist/esm/api/types/{AgenticModel.mjs → AgenticAgentsSendMessageResponse.mjs} +0 -0
  327. /package/dist/esm/api/types/{AgenticModelsListResponse.mjs → AgenticAgentsStreamEventResponse.mjs} +0 -0
@@ -0,0 +1,113 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as Corti from "../../../../../index.mjs";
5
+ export declare namespace ClassicClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ClassicClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ClassicClient.Options>;
12
+ constructor(options: ClassicClient.Options);
13
+ /**
14
+ * @deprecated
15
+ *
16
+ * List Documents
17
+ *
18
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
19
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
20
+ *
21
+ * @throws {@link Corti.BadRequestError}
22
+ * @throws {@link Corti.ForbiddenError}
23
+ * @throws {@link Corti.InternalServerError}
24
+ * @throws {@link Corti.GatewayTimeoutError}
25
+ *
26
+ * @example
27
+ * await client.documents.classic.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
28
+ */
29
+ list(id: Corti.Uuid, requestOptions?: ClassicClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsListResponse>;
30
+ private __list;
31
+ /**
32
+ * @deprecated
33
+ *
34
+ * This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
35
+ *
36
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
37
+ * @param {Corti.DocumentsCreateRequest} request
38
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Corti.BadRequestError}
41
+ * @throws {@link Corti.ForbiddenError}
42
+ * @throws {@link Corti.InternalServerError}
43
+ * @throws {@link Corti.GatewayTimeoutError}
44
+ *
45
+ * @example
46
+ * await client.documents.classic.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
47
+ * context: [{
48
+ * type: "facts",
49
+ * data: [{
50
+ * text: "text"
51
+ * }]
52
+ * }],
53
+ * templateKey: "templateKey",
54
+ * outputLanguage: "outputLanguage"
55
+ * })
56
+ */
57
+ create(id: Corti.Uuid, request: Corti.DocumentsCreateRequest, requestOptions?: ClassicClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
58
+ private __create;
59
+ /**
60
+ * @deprecated
61
+ *
62
+ * Get Document.
63
+ *
64
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
65
+ * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
66
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Corti.BadRequestError}
69
+ * @throws {@link Corti.ForbiddenError}
70
+ * @throws {@link Corti.InternalServerError}
71
+ * @throws {@link Corti.GatewayTimeoutError}
72
+ *
73
+ * @example
74
+ * await client.documents.classic.get("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
75
+ */
76
+ get(id: Corti.Uuid, documentId: Corti.Uuid, requestOptions?: ClassicClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
77
+ private __get;
78
+ /**
79
+ * @deprecated
80
+ *
81
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
82
+ * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
83
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
84
+ *
85
+ * @throws {@link Corti.ForbiddenError}
86
+ * @throws {@link Corti.NotFoundError}
87
+ * @throws {@link Corti.InternalServerError}
88
+ * @throws {@link Corti.GatewayTimeoutError}
89
+ *
90
+ * @example
91
+ * await client.documents.classic.delete("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
92
+ */
93
+ delete(id: Corti.Uuid, documentId: Corti.Uuid, requestOptions?: ClassicClient.RequestOptions): core.HttpResponsePromise<void>;
94
+ private __delete;
95
+ /**
96
+ * @deprecated
97
+ *
98
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
99
+ * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
100
+ * @param {Corti.documents.DocumentsUpdateRequest} request
101
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
102
+ *
103
+ * @throws {@link Corti.BadRequestError}
104
+ * @throws {@link Corti.ForbiddenError}
105
+ * @throws {@link Corti.InternalServerError}
106
+ * @throws {@link Corti.GatewayTimeoutError}
107
+ *
108
+ * @example
109
+ * await client.documents.classic.update("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
110
+ */
111
+ update(id: Corti.Uuid, documentId: Corti.Uuid, request?: Corti.documents.DocumentsUpdateRequest, requestOptions?: ClassicClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
112
+ private __update;
113
+ }
@@ -0,0 +1,435 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
15
+ import * as errors from "../../../../../../errors/index.mjs";
16
+ import * as serializers from "../../../../../../serialization/index.mjs";
17
+ import * as Corti from "../../../../../index.mjs";
18
+ export class ClassicClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * @deprecated
24
+ *
25
+ * List Documents
26
+ *
27
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
28
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @throws {@link Corti.BadRequestError}
31
+ * @throws {@link Corti.ForbiddenError}
32
+ * @throws {@link Corti.InternalServerError}
33
+ * @throws {@link Corti.GatewayTimeoutError}
34
+ *
35
+ * @example
36
+ * await client.documents.classic.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
37
+ */
38
+ list(id, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__list(id, requestOptions));
40
+ }
41
+ __list(id, requestOptions) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
44
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
45
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
46
+ const _response = yield core.fetcher({
47
+ 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, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/documents/`),
48
+ method: "GET",
49
+ headers: _headers,
50
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
51
+ 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,
52
+ 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,
53
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
54
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
55
+ logging: this._options.logging,
56
+ });
57
+ if (_response.ok) {
58
+ return {
59
+ data: serializers.DocumentsListResponse.parseOrThrow(_response.body, {
60
+ unrecognizedObjectKeys: "passthrough",
61
+ allowUnrecognizedUnionMembers: true,
62
+ allowUnrecognizedEnumValues: true,
63
+ skipValidation: true,
64
+ breadcrumbsPrefix: ["response"],
65
+ }),
66
+ rawResponse: _response.rawResponse,
67
+ };
68
+ }
69
+ if (_response.error.reason === "status-code") {
70
+ switch (_response.error.statusCode) {
71
+ case 400:
72
+ throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
73
+ case 403:
74
+ throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
75
+ case 500:
76
+ throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
77
+ unrecognizedObjectKeys: "passthrough",
78
+ allowUnrecognizedUnionMembers: true,
79
+ allowUnrecognizedEnumValues: true,
80
+ skipValidation: true,
81
+ breadcrumbsPrefix: ["response"],
82
+ }), _response.rawResponse);
83
+ case 504:
84
+ throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
85
+ unrecognizedObjectKeys: "passthrough",
86
+ allowUnrecognizedUnionMembers: true,
87
+ allowUnrecognizedEnumValues: true,
88
+ skipValidation: true,
89
+ breadcrumbsPrefix: ["response"],
90
+ }), _response.rawResponse);
91
+ default:
92
+ throw new errors.CortiError({
93
+ statusCode: _response.error.statusCode,
94
+ body: _response.error.body,
95
+ rawResponse: _response.rawResponse,
96
+ });
97
+ }
98
+ }
99
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/interactions/{id}/documents/");
100
+ });
101
+ }
102
+ /**
103
+ * @deprecated
104
+ *
105
+ * This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
106
+ *
107
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
108
+ * @param {Corti.DocumentsCreateRequest} request
109
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link Corti.BadRequestError}
112
+ * @throws {@link Corti.ForbiddenError}
113
+ * @throws {@link Corti.InternalServerError}
114
+ * @throws {@link Corti.GatewayTimeoutError}
115
+ *
116
+ * @example
117
+ * await client.documents.classic.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
118
+ * context: [{
119
+ * type: "facts",
120
+ * data: [{
121
+ * text: "text"
122
+ * }]
123
+ * }],
124
+ * templateKey: "templateKey",
125
+ * outputLanguage: "outputLanguage"
126
+ * })
127
+ */
128
+ create(id, request, requestOptions) {
129
+ return core.HttpResponsePromise.fromPromise(this.__create(id, request, requestOptions));
130
+ }
131
+ __create(id, request, requestOptions) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
134
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
135
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
136
+ const _response = yield core.fetcher({
137
+ 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, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/documents/`),
138
+ method: "POST",
139
+ headers: _headers,
140
+ contentType: "application/json",
141
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
142
+ requestType: "json",
143
+ body: serializers.DocumentsCreateRequest.jsonOrThrow(request, {
144
+ unrecognizedObjectKeys: "strip",
145
+ omitUndefined: true,
146
+ }),
147
+ 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,
148
+ 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,
149
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
150
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
151
+ logging: this._options.logging,
152
+ });
153
+ if (_response.ok) {
154
+ return {
155
+ data: serializers.DocumentsGetResponse.parseOrThrow(_response.body, {
156
+ unrecognizedObjectKeys: "passthrough",
157
+ allowUnrecognizedUnionMembers: true,
158
+ allowUnrecognizedEnumValues: true,
159
+ skipValidation: true,
160
+ breadcrumbsPrefix: ["response"],
161
+ }),
162
+ rawResponse: _response.rawResponse,
163
+ };
164
+ }
165
+ if (_response.error.reason === "status-code") {
166
+ switch (_response.error.statusCode) {
167
+ case 400:
168
+ throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
169
+ case 403:
170
+ throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
171
+ case 500:
172
+ throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
173
+ unrecognizedObjectKeys: "passthrough",
174
+ allowUnrecognizedUnionMembers: true,
175
+ allowUnrecognizedEnumValues: true,
176
+ skipValidation: true,
177
+ breadcrumbsPrefix: ["response"],
178
+ }), _response.rawResponse);
179
+ case 504:
180
+ throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
181
+ unrecognizedObjectKeys: "passthrough",
182
+ allowUnrecognizedUnionMembers: true,
183
+ allowUnrecognizedEnumValues: true,
184
+ skipValidation: true,
185
+ breadcrumbsPrefix: ["response"],
186
+ }), _response.rawResponse);
187
+ default:
188
+ throw new errors.CortiError({
189
+ statusCode: _response.error.statusCode,
190
+ body: _response.error.body,
191
+ rawResponse: _response.rawResponse,
192
+ });
193
+ }
194
+ }
195
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/interactions/{id}/documents/");
196
+ });
197
+ }
198
+ /**
199
+ * @deprecated
200
+ *
201
+ * Get Document.
202
+ *
203
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
204
+ * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
205
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
206
+ *
207
+ * @throws {@link Corti.BadRequestError}
208
+ * @throws {@link Corti.ForbiddenError}
209
+ * @throws {@link Corti.InternalServerError}
210
+ * @throws {@link Corti.GatewayTimeoutError}
211
+ *
212
+ * @example
213
+ * await client.documents.classic.get("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
214
+ */
215
+ get(id, documentId, requestOptions) {
216
+ return core.HttpResponsePromise.fromPromise(this.__get(id, documentId, requestOptions));
217
+ }
218
+ __get(id, documentId, requestOptions) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
221
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
222
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
223
+ const _response = yield core.fetcher({
224
+ 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, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/documents/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(documentId, { omitUndefined: true }))}`),
225
+ method: "GET",
226
+ headers: _headers,
227
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
228
+ 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,
229
+ 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,
230
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
231
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
232
+ logging: this._options.logging,
233
+ });
234
+ if (_response.ok) {
235
+ return {
236
+ data: serializers.DocumentsGetResponse.parseOrThrow(_response.body, {
237
+ unrecognizedObjectKeys: "passthrough",
238
+ allowUnrecognizedUnionMembers: true,
239
+ allowUnrecognizedEnumValues: true,
240
+ skipValidation: true,
241
+ breadcrumbsPrefix: ["response"],
242
+ }),
243
+ rawResponse: _response.rawResponse,
244
+ };
245
+ }
246
+ if (_response.error.reason === "status-code") {
247
+ switch (_response.error.statusCode) {
248
+ case 400:
249
+ throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
250
+ case 403:
251
+ throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
252
+ case 500:
253
+ throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
254
+ unrecognizedObjectKeys: "passthrough",
255
+ allowUnrecognizedUnionMembers: true,
256
+ allowUnrecognizedEnumValues: true,
257
+ skipValidation: true,
258
+ breadcrumbsPrefix: ["response"],
259
+ }), _response.rawResponse);
260
+ case 504:
261
+ throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
262
+ unrecognizedObjectKeys: "passthrough",
263
+ allowUnrecognizedUnionMembers: true,
264
+ allowUnrecognizedEnumValues: true,
265
+ skipValidation: true,
266
+ breadcrumbsPrefix: ["response"],
267
+ }), _response.rawResponse);
268
+ default:
269
+ throw new errors.CortiError({
270
+ statusCode: _response.error.statusCode,
271
+ body: _response.error.body,
272
+ rawResponse: _response.rawResponse,
273
+ });
274
+ }
275
+ }
276
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/interactions/{id}/documents/{documentId}");
277
+ });
278
+ }
279
+ /**
280
+ * @deprecated
281
+ *
282
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
283
+ * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
284
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
285
+ *
286
+ * @throws {@link Corti.ForbiddenError}
287
+ * @throws {@link Corti.NotFoundError}
288
+ * @throws {@link Corti.InternalServerError}
289
+ * @throws {@link Corti.GatewayTimeoutError}
290
+ *
291
+ * @example
292
+ * await client.documents.classic.delete("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
293
+ */
294
+ delete(id, documentId, requestOptions) {
295
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, documentId, requestOptions));
296
+ }
297
+ __delete(id, documentId, requestOptions) {
298
+ return __awaiter(this, void 0, void 0, function* () {
299
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
300
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
301
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
302
+ const _response = yield core.fetcher({
303
+ 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, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/documents/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(documentId, { omitUndefined: true }))}`),
304
+ method: "DELETE",
305
+ headers: _headers,
306
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
307
+ 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,
308
+ 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,
309
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
310
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
311
+ logging: this._options.logging,
312
+ });
313
+ if (_response.ok) {
314
+ return { data: undefined, rawResponse: _response.rawResponse };
315
+ }
316
+ if (_response.error.reason === "status-code") {
317
+ switch (_response.error.statusCode) {
318
+ case 403:
319
+ throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
320
+ case 404:
321
+ throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
322
+ case 500:
323
+ throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
324
+ unrecognizedObjectKeys: "passthrough",
325
+ allowUnrecognizedUnionMembers: true,
326
+ allowUnrecognizedEnumValues: true,
327
+ skipValidation: true,
328
+ breadcrumbsPrefix: ["response"],
329
+ }), _response.rawResponse);
330
+ case 504:
331
+ throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
332
+ unrecognizedObjectKeys: "passthrough",
333
+ allowUnrecognizedUnionMembers: true,
334
+ allowUnrecognizedEnumValues: true,
335
+ skipValidation: true,
336
+ breadcrumbsPrefix: ["response"],
337
+ }), _response.rawResponse);
338
+ default:
339
+ throw new errors.CortiError({
340
+ statusCode: _response.error.statusCode,
341
+ body: _response.error.body,
342
+ rawResponse: _response.rawResponse,
343
+ });
344
+ }
345
+ }
346
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/interactions/{id}/documents/{documentId}");
347
+ });
348
+ }
349
+ /**
350
+ * @deprecated
351
+ *
352
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
353
+ * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
354
+ * @param {Corti.documents.DocumentsUpdateRequest} request
355
+ * @param {ClassicClient.RequestOptions} requestOptions - Request-specific configuration.
356
+ *
357
+ * @throws {@link Corti.BadRequestError}
358
+ * @throws {@link Corti.ForbiddenError}
359
+ * @throws {@link Corti.InternalServerError}
360
+ * @throws {@link Corti.GatewayTimeoutError}
361
+ *
362
+ * @example
363
+ * await client.documents.classic.update("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
364
+ */
365
+ update(id, documentId, request = {}, requestOptions) {
366
+ return core.HttpResponsePromise.fromPromise(this.__update(id, documentId, request, requestOptions));
367
+ }
368
+ __update(id_1, documentId_1) {
369
+ return __awaiter(this, arguments, void 0, function* (id, documentId, request = {}, requestOptions) {
370
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
371
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
372
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
373
+ const _response = yield core.fetcher({
374
+ 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, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/documents/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(documentId, { omitUndefined: true }))}`),
375
+ method: "PATCH",
376
+ headers: _headers,
377
+ contentType: "application/json",
378
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
379
+ requestType: "json",
380
+ body: serializers.documents.DocumentsUpdateRequest.jsonOrThrow(request, {
381
+ unrecognizedObjectKeys: "strip",
382
+ omitUndefined: true,
383
+ }),
384
+ 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,
385
+ 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,
386
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
387
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
388
+ logging: this._options.logging,
389
+ });
390
+ if (_response.ok) {
391
+ return {
392
+ data: serializers.DocumentsGetResponse.parseOrThrow(_response.body, {
393
+ unrecognizedObjectKeys: "passthrough",
394
+ allowUnrecognizedUnionMembers: true,
395
+ allowUnrecognizedEnumValues: true,
396
+ skipValidation: true,
397
+ breadcrumbsPrefix: ["response"],
398
+ }),
399
+ rawResponse: _response.rawResponse,
400
+ };
401
+ }
402
+ if (_response.error.reason === "status-code") {
403
+ switch (_response.error.statusCode) {
404
+ case 400:
405
+ throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
406
+ case 403:
407
+ throw new Corti.ForbiddenError(_response.error.body, _response.rawResponse);
408
+ case 500:
409
+ throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
410
+ unrecognizedObjectKeys: "passthrough",
411
+ allowUnrecognizedUnionMembers: true,
412
+ allowUnrecognizedEnumValues: true,
413
+ skipValidation: true,
414
+ breadcrumbsPrefix: ["response"],
415
+ }), _response.rawResponse);
416
+ case 504:
417
+ throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
418
+ unrecognizedObjectKeys: "passthrough",
419
+ allowUnrecognizedUnionMembers: true,
420
+ allowUnrecognizedEnumValues: true,
421
+ skipValidation: true,
422
+ breadcrumbsPrefix: ["response"],
423
+ }), _response.rawResponse);
424
+ default:
425
+ throw new errors.CortiError({
426
+ statusCode: _response.error.statusCode,
427
+ body: _response.error.body,
428
+ rawResponse: _response.rawResponse,
429
+ });
430
+ }
431
+ }
432
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/interactions/{id}/documents/{documentId}");
433
+ });
434
+ }
435
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -1,4 +1,4 @@
1
- import type * as Corti from "../../../../index.mjs";
1
+ import type * as Corti from "../../../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
4
  * {}
@@ -0,0 +1 @@
1
+ export type { DocumentsUpdateRequest } from "./DocumentsUpdateRequest.mjs";
@@ -1,3 +1,5 @@
1
+ export * from "./classic/client/requests/index.mjs";
2
+ export * as classic from "./classic/index.mjs";
1
3
  export * from "./sections/client/requests/index.mjs";
2
4
  export * as sections from "./sections/index.mjs";
3
5
  export * from "./templates/client/requests/index.mjs";
@@ -1,3 +1,5 @@
1
+ export * from "./classic/client/requests/index.mjs";
2
+ export * as classic from "./classic/index.mjs";
1
3
  export * from "./sections/client/requests/index.mjs";
2
4
  export * as sections from "./sections/index.mjs";
3
5
  export * from "./templates/client/requests/index.mjs";
@@ -2,12 +2,12 @@ import type * as Corti from "../index.mjs";
2
2
  /**
3
3
  * A JSON-RPC 2.0 response envelope.
4
4
  */
5
- export interface A2AjsonrpcResponse {
5
+ export interface AgenticAgentsJsonRpcResponse {
6
6
  /** JSON-RPC protocol version; always `2.0`. */
7
7
  jsonrpc: "2.0";
8
- id: Corti.A2AjsonrpcResponseId | null;
8
+ id: Corti.AgenticAgentsJsonRpcResponseId | null;
9
9
  /** JSON-RPC result object (present on success). */
10
10
  result?: Record<string, unknown>;
11
11
  /** JSON-RPC error object (present on failure). */
12
- error?: Corti.A2AjsonrpcResponseError;
12
+ error?: Corti.AgenticAgentsJsonRpcResponseError;
13
13
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * JSON-RPC error object (present on failure).
3
3
  */
4
- export interface A2AjsonrpcResponseError {
4
+ export interface AgenticAgentsJsonRpcResponseError {
5
5
  /** JSON-RPC error code. */
6
6
  code: number;
7
7
  /** Human-readable error message. */
@@ -0,0 +1 @@
1
+ export type AgenticAgentsJsonRpcResponseId = string | number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Per-request options controlling how a message is processed.
3
3
  */
4
- export interface A2ASendMessageConfiguration {
4
+ export interface AgenticAgentsSendMessageConfiguration {
5
5
  /** If `true`, return as soon as the task is submitted, even if processing is still in progress. If `false` (default), wait until the task reaches a terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state. */
6
6
  returnImmediately?: boolean;
7
7
  /** Maximum number of prior messages to include as context. */
@@ -2,9 +2,9 @@ import type * as Corti from "../index.mjs";
2
2
  /**
3
3
  * Request body for sending a message to an agent.
4
4
  */
5
- export interface A2ASendMessageRequest {
5
+ export interface AgenticAgentsSendMessageRequest {
6
6
  message: Corti.CommonMessage;
7
- configuration?: Corti.A2ASendMessageConfiguration;
7
+ configuration?: Corti.AgenticAgentsSendMessageConfiguration;
8
8
  /** Free-form request metadata. */
9
9
  metadata?: Record<string, unknown>;
10
10
  /** Optional. Opaque routing identifier. Must match the `tenant` value from the selected `AgentInterface` in the Agent Card when that field is set. */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Exactly one of `task` or `message` is present.
3
3
  */
4
- export type A2ASendMessageResponse = unknown;
4
+ export type AgenticAgentsSendMessageResponse = unknown;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * An SSE event carrying an A2A `HTTP+JSON` streaming response.
3
3
  */
4
- export interface A2AStreamEventResponse {
4
+ export interface AgenticAgentsStreamEventResponse {
5
5
  /** SSE payload: an A2A HTTP+JSON streaming response. */
6
6
  data?: string;
7
7
  /** Event type. Absent for the default `message` event. */