blanche-client-sdk 0.5.0 → 0.6.1

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 (234) hide show
  1. package/.openapi-generator/FILES +100 -10
  2. package/README.md +86 -16
  3. package/dist/apis/ChatsApi.d.ts +298 -0
  4. package/dist/apis/ChatsApi.js +1180 -0
  5. package/dist/apis/RecordsApi.d.ts +22 -6
  6. package/dist/apis/RecordsApi.js +63 -2
  7. package/dist/apis/TemplateSchemasApi.d.ts +115 -0
  8. package/dist/apis/TemplateSchemasApi.js +456 -0
  9. package/dist/apis/TemplatesApi.d.ts +22 -6
  10. package/dist/apis/TemplatesApi.js +62 -1
  11. package/dist/apis/UsersApi.d.ts +17 -1
  12. package/dist/apis/UsersApi.js +59 -0
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/models/ApiV1ChatsChatIdMessagesGet200Response.d.ts +51 -0
  16. package/dist/models/ApiV1ChatsChatIdMessagesGet200Response.js +64 -0
  17. package/dist/models/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.d.ts +74 -0
  18. package/dist/models/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.js +79 -0
  19. package/dist/models/ApiV1ChatsChatIdMessagesPost201Response.d.ts +62 -0
  20. package/dist/models/ApiV1ChatsChatIdMessagesPost201Response.js +71 -0
  21. package/dist/models/ApiV1ChatsChatIdMessagesPostRequest.d.ts +44 -0
  22. package/dist/models/ApiV1ChatsChatIdMessagesPostRequest.js +55 -0
  23. package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.d.ts +51 -0
  24. package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.js +62 -0
  25. package/dist/models/ApiV1ChatsGet200Response.d.ts +51 -0
  26. package/dist/models/ApiV1ChatsGet200Response.js +64 -0
  27. package/dist/models/ApiV1ChatsGet200ResponseChatsInner.d.ts +68 -0
  28. package/dist/models/ApiV1ChatsGet200ResponseChatsInner.js +69 -0
  29. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.d.ts +33 -0
  30. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.js +52 -0
  31. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.d.ts +74 -0
  32. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.js +75 -0
  33. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.d.ts +50 -0
  34. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.js +63 -0
  35. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.d.ts +65 -0
  36. package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.js +68 -0
  37. package/dist/models/ApiV1ChatsIdReadPost200Response.d.ts +50 -0
  38. package/dist/models/ApiV1ChatsIdReadPost200Response.js +61 -0
  39. package/dist/models/ApiV1ChatsIdReadPostRequest.d.ts +32 -0
  40. package/dist/models/ApiV1ChatsIdReadPostRequest.js +49 -0
  41. package/dist/models/ApiV1ChatsIdReportsPost200Response.d.ts +58 -0
  42. package/dist/models/ApiV1ChatsIdReportsPost200Response.js +69 -0
  43. package/dist/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.d.ts +38 -0
  44. package/dist/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.js +53 -0
  45. package/dist/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.d.ts +56 -0
  46. package/dist/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.js +67 -0
  47. package/dist/models/ApiV1ChatsIdReportsPost422Response.d.ts +32 -0
  48. package/dist/models/ApiV1ChatsIdReportsPost422Response.js +51 -0
  49. package/dist/models/ApiV1ChatsIdReportsPostRequest.d.ts +33 -0
  50. package/dist/models/ApiV1ChatsIdReportsPostRequest.js +52 -0
  51. package/dist/models/ApiV1ChatsIdReportsPostRequestPlanner.d.ts +61 -0
  52. package/dist/models/ApiV1ChatsIdReportsPostRequestPlanner.js +74 -0
  53. package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParams.d.ts +100 -0
  54. package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParams.js +84 -0
  55. package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.d.ts +56 -0
  56. package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.js +71 -0
  57. package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.d.ts +39 -0
  58. package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.js +56 -0
  59. package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.d.ts +50 -0
  60. package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.js +59 -0
  61. package/dist/models/ApiV1ChatsIdRunsRunIdGet200Response.d.ts +56 -0
  62. package/dist/models/ApiV1ChatsIdRunsRunIdGet200Response.js +65 -0
  63. package/dist/models/ApiV1ChatsIdRunsRunIdRetryPost201Response.d.ts +50 -0
  64. package/dist/models/ApiV1ChatsIdRunsRunIdRetryPost201Response.js +61 -0
  65. package/dist/models/ApiV1ChatsIdSavedReportsGet200Response.d.ts +33 -0
  66. package/dist/models/ApiV1ChatsIdSavedReportsGet200Response.js +52 -0
  67. package/dist/models/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.d.ts +56 -0
  68. package/dist/models/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.js +65 -0
  69. package/dist/models/ApiV1ChatsIdSavedReportsPostRequest.d.ts +38 -0
  70. package/dist/models/ApiV1ChatsIdSavedReportsPostRequest.js +53 -0
  71. package/dist/models/ApiV1ChatsPlannerContractGet200Response.d.ts +38 -0
  72. package/dist/models/ApiV1ChatsPlannerContractGet200Response.js +55 -0
  73. package/dist/models/ApiV1ChatsPlannerPost200Response.d.ts +62 -0
  74. package/dist/models/ApiV1ChatsPlannerPost200Response.js +71 -0
  75. package/dist/models/ApiV1ChatsPlannerPostRequest.d.ts +50 -0
  76. package/dist/models/ApiV1ChatsPlannerPostRequest.js +59 -0
  77. package/dist/models/ApiV1ChatsPost201Response.d.ts +56 -0
  78. package/dist/models/ApiV1ChatsPost201Response.js +65 -0
  79. package/dist/models/ApiV1ChatsPostRequest.d.ts +32 -0
  80. package/dist/models/ApiV1ChatsPostRequest.js +49 -0
  81. package/dist/models/ApiV1ChatsRealtimeContractGet200Response.d.ts +57 -0
  82. package/dist/models/ApiV1ChatsRealtimeContractGet200Response.js +68 -0
  83. package/dist/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.d.ts +38 -0
  84. package/dist/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.js +55 -0
  85. package/dist/models/ApiV1ChatsSyncGet200Response.d.ts +51 -0
  86. package/dist/models/ApiV1ChatsSyncGet200Response.js +62 -0
  87. package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.d.ts +38 -0
  88. package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.js +55 -0
  89. package/dist/models/ApiV1RecordsIdPut200Response.d.ts +50 -0
  90. package/dist/models/{ApiV1RecordsIdPatch200Response.js → ApiV1RecordsIdPut200Response.js} +13 -13
  91. package/dist/models/ApiV1RecordsIdPutRequest.d.ts +32 -0
  92. package/dist/models/ApiV1RecordsIdPutRequest.js +51 -0
  93. package/dist/models/ApiV1TemplatesIdPutRequest.d.ts +33 -0
  94. package/dist/models/ApiV1TemplatesIdPutRequest.js +52 -0
  95. package/dist/models/ApiV1TemplatesIdPutRequestTemplate.d.ts +38 -0
  96. package/dist/models/ApiV1TemplatesIdPutRequestTemplate.js +51 -0
  97. package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200Response.d.ts +33 -0
  98. package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200Response.js +52 -0
  99. package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.d.ts +62 -0
  100. package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.js +69 -0
  101. package/dist/models/ApiV1TemplatesTemplateIdSchemasIdPutRequest.d.ts +50 -0
  102. package/dist/models/ApiV1TemplatesTemplateIdSchemasIdPutRequest.js +55 -0
  103. package/dist/models/ApiV1TemplatesTemplateIdSchemasPost201Response.d.ts +44 -0
  104. package/dist/models/ApiV1TemplatesTemplateIdSchemasPost201Response.js +59 -0
  105. package/dist/models/ApiV1TemplatesTemplateIdSchemasPostRequest.d.ts +50 -0
  106. package/dist/models/ApiV1TemplatesTemplateIdSchemasPostRequest.js +59 -0
  107. package/dist/models/ApiV1UsersIdPutRequest.d.ts +33 -0
  108. package/dist/models/ApiV1UsersIdPutRequest.js +52 -0
  109. package/dist/models/ApiV1UsersIdPutRequestUser.d.ts +56 -0
  110. package/dist/models/ApiV1UsersIdPutRequestUser.js +57 -0
  111. package/dist/models/index.d.ts +48 -5
  112. package/dist/models/index.js +48 -5
  113. package/docs/ApiV1ChatsChatIdMessagesGet200Response.md +40 -0
  114. package/docs/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.md +48 -0
  115. package/docs/ApiV1ChatsChatIdMessagesPost201Response.md +44 -0
  116. package/docs/ApiV1ChatsChatIdMessagesPostRequest.md +38 -0
  117. package/docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md +40 -0
  118. package/docs/ApiV1ChatsGet200Response.md +40 -0
  119. package/docs/ApiV1ChatsGet200ResponseChatsInner.md +46 -0
  120. package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.md +34 -0
  121. package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.md +48 -0
  122. package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.md +40 -0
  123. package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.md +42 -0
  124. package/docs/ApiV1ChatsIdReadPost200Response.md +40 -0
  125. package/docs/ApiV1ChatsIdReadPostRequest.md +34 -0
  126. package/docs/ApiV1ChatsIdReportsPost200Response.md +42 -0
  127. package/docs/ApiV1ChatsIdReportsPost200ResponseRowsInner.md +36 -0
  128. package/docs/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md +42 -0
  129. package/docs/{ApiV1RecordsIdPatch422Response.md → ApiV1ChatsIdReportsPost422Response.md} +4 -4
  130. package/docs/ApiV1ChatsIdReportsPostRequest.md +34 -0
  131. package/docs/ApiV1ChatsIdReportsPostRequestPlanner.md +40 -0
  132. package/docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md +50 -0
  133. package/docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md +38 -0
  134. package/docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md +36 -0
  135. package/docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md +40 -0
  136. package/docs/ApiV1ChatsIdRunsRunIdGet200Response.md +42 -0
  137. package/docs/ApiV1ChatsIdRunsRunIdRetryPost201Response.md +40 -0
  138. package/docs/ApiV1ChatsIdSavedReportsGet200Response.md +34 -0
  139. package/docs/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.md +42 -0
  140. package/docs/ApiV1ChatsIdSavedReportsPostRequest.md +36 -0
  141. package/docs/ApiV1ChatsPlannerContractGet200Response.md +36 -0
  142. package/docs/ApiV1ChatsPlannerPost200Response.md +44 -0
  143. package/docs/ApiV1ChatsPlannerPostRequest.md +40 -0
  144. package/docs/ApiV1ChatsPost201Response.md +42 -0
  145. package/docs/ApiV1ChatsPostRequest.md +34 -0
  146. package/docs/ApiV1ChatsRealtimeContractGet200Response.md +42 -0
  147. package/docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md +36 -0
  148. package/docs/ApiV1ChatsSyncGet200Response.md +40 -0
  149. package/docs/ApiV1ChatsSyncGet200ResponseCursorContract.md +36 -0
  150. package/docs/{ApiV1RecordsIdPatch200Response.md → ApiV1RecordsIdPut200Response.md} +4 -4
  151. package/docs/{ApiV1RecordsIdPatchRequest.md → ApiV1RecordsIdPutRequest.md} +4 -4
  152. package/docs/{ApiV1TemplatesIdPatchRequest.md → ApiV1TemplatesIdPutRequest.md} +5 -5
  153. package/docs/{ApiV1TemplatesIdPatchRequestTemplate.md → ApiV1TemplatesIdPutRequestTemplate.md} +4 -4
  154. package/docs/ApiV1TemplatesTemplateIdSchemasGet200Response.md +34 -0
  155. package/docs/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.md +44 -0
  156. package/docs/ApiV1TemplatesTemplateIdSchemasIdPutRequest.md +40 -0
  157. package/docs/ApiV1TemplatesTemplateIdSchemasPost201Response.md +38 -0
  158. package/docs/ApiV1TemplatesTemplateIdSchemasPostRequest.md +40 -0
  159. package/docs/ApiV1UsersIdPutRequest.md +34 -0
  160. package/docs/ApiV1UsersIdPutRequestUser.md +42 -0
  161. package/docs/ChatsApi.md +1230 -0
  162. package/docs/RecordsApi.md +77 -8
  163. package/docs/TemplateSchemasApi.md +425 -0
  164. package/docs/TemplatesApi.md +76 -7
  165. package/docs/UsersApi.md +69 -0
  166. package/package.json +1 -1
  167. package/src/apis/ChatsApi.ts +1040 -0
  168. package/src/apis/RecordsApi.ts +69 -16
  169. package/src/apis/TemplateSchemasApi.ts +381 -0
  170. package/src/apis/TemplatesApi.ts +65 -12
  171. package/src/apis/UsersApi.ts +55 -0
  172. package/src/apis/index.ts +2 -0
  173. package/src/models/ApiV1ChatsChatIdMessagesGet200Response.ts +101 -0
  174. package/src/models/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.ts +129 -0
  175. package/src/models/ApiV1ChatsChatIdMessagesPost201Response.ts +111 -0
  176. package/src/models/ApiV1ChatsChatIdMessagesPostRequest.ts +82 -0
  177. package/src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts +100 -0
  178. package/src/models/ApiV1ChatsGet200Response.ts +101 -0
  179. package/src/models/ApiV1ChatsGet200ResponseChatsInner.ts +117 -0
  180. package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.ts +74 -0
  181. package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.ts +127 -0
  182. package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.ts +93 -0
  183. package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.ts +110 -0
  184. package/src/models/ApiV1ChatsIdReadPost200Response.ts +92 -0
  185. package/src/models/ApiV1ChatsIdReadPostRequest.ts +65 -0
  186. package/src/models/ApiV1ChatsIdReportsPost200Response.ts +117 -0
  187. package/src/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.ts +74 -0
  188. package/src/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.ts +102 -0
  189. package/src/models/ApiV1ChatsIdReportsPost422Response.ts +66 -0
  190. package/src/models/ApiV1ChatsIdReportsPostRequest.ts +74 -0
  191. package/src/models/ApiV1ChatsIdReportsPostRequestPlanner.ts +114 -0
  192. package/src/models/ApiV1ChatsIdReportsPostRequestPlannerParams.ts +160 -0
  193. package/src/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.ts +99 -0
  194. package/src/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.ts +83 -0
  195. package/src/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.ts +91 -0
  196. package/src/models/ApiV1ChatsIdRunsRunIdGet200Response.ts +101 -0
  197. package/src/models/ApiV1ChatsIdRunsRunIdRetryPost201Response.ts +92 -0
  198. package/src/models/ApiV1ChatsIdSavedReportsGet200Response.ts +74 -0
  199. package/src/models/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.ts +101 -0
  200. package/src/models/ApiV1ChatsIdSavedReportsPostRequest.ts +74 -0
  201. package/src/models/ApiV1ChatsPlannerContractGet200Response.ts +75 -0
  202. package/src/models/ApiV1ChatsPlannerPost200Response.ts +111 -0
  203. package/src/models/ApiV1ChatsPlannerPostRequest.ts +91 -0
  204. package/src/models/ApiV1ChatsPost201Response.ts +101 -0
  205. package/src/models/ApiV1ChatsPostRequest.ts +65 -0
  206. package/src/models/ApiV1ChatsRealtimeContractGet200Response.ts +110 -0
  207. package/src/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.ts +75 -0
  208. package/src/models/ApiV1ChatsSyncGet200Response.ts +100 -0
  209. package/src/models/ApiV1ChatsSyncGet200ResponseCursorContract.ts +75 -0
  210. package/src/models/{ApiV1RecordsIdPatch200Response.ts → ApiV1RecordsIdPut200Response.ts} +14 -14
  211. package/src/models/ApiV1RecordsIdPutRequest.ts +66 -0
  212. package/src/models/ApiV1TemplatesIdPutRequest.ts +74 -0
  213. package/src/models/ApiV1TemplatesIdPutRequestTemplate.ts +73 -0
  214. package/src/models/ApiV1TemplatesTemplateIdSchemasGet200Response.ts +74 -0
  215. package/src/models/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.ts +110 -0
  216. package/src/models/ApiV1TemplatesTemplateIdSchemasIdPutRequest.ts +89 -0
  217. package/src/models/ApiV1TemplatesTemplateIdSchemasPost201Response.ts +84 -0
  218. package/src/models/ApiV1TemplatesTemplateIdSchemasPostRequest.ts +91 -0
  219. package/src/models/ApiV1UsersIdPutRequest.ts +74 -0
  220. package/src/models/ApiV1UsersIdPutRequestUser.ts +97 -0
  221. package/src/models/index.ts +48 -5
  222. package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +0 -50
  223. package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +0 -32
  224. package/dist/models/ApiV1RecordsIdPatch422Response.js +0 -51
  225. package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +0 -32
  226. package/dist/models/ApiV1RecordsIdPatchRequest.js +0 -51
  227. package/dist/models/ApiV1TemplatesIdPatchRequest.d.ts +0 -33
  228. package/dist/models/ApiV1TemplatesIdPatchRequest.js +0 -52
  229. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.d.ts +0 -38
  230. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.js +0 -51
  231. package/src/models/ApiV1RecordsIdPatch422Response.ts +0 -66
  232. package/src/models/ApiV1RecordsIdPatchRequest.ts +0 -66
  233. package/src/models/ApiV1TemplatesIdPatchRequest.ts +0 -74
  234. package/src/models/ApiV1TemplatesIdPatchRequestTemplate.ts +0 -73
@@ -0,0 +1,1230 @@
1
+ # ChatsApi
2
+
3
+ All URIs are relative to *http://localhost:3000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**apiV1ChatsChatIdMessagesGet**](ChatsApi.md#apiv1chatschatidmessagesget) | **GET** /api/v1/chats/{chat_id}/messages | List chat messages |
8
+ | [**apiV1ChatsChatIdMessagesPost**](ChatsApi.md#apiv1chatschatidmessagespostoperation) | **POST** /api/v1/chats/{chat_id}/messages | Create chat message |
9
+ | [**apiV1ChatsChatIdMessagesSyncGet**](ChatsApi.md#apiv1chatschatidmessagessyncget) | **GET** /api/v1/chats/{chat_id}/messages/sync | Sync chat messages by cursor |
10
+ | [**apiV1ChatsGet**](ChatsApi.md#apiv1chatsget) | **GET** /api/v1/chats | List chats |
11
+ | [**apiV1ChatsIdMessagesMessageIdAttachmentsGet**](ChatsApi.md#apiv1chatsidmessagesmessageidattachmentsget) | **GET** /api/v1/chats/{id}/messages/{message_id}/attachments | List chat message attachments |
12
+ | [**apiV1ChatsIdMessagesMessageIdAttachmentsPost**](ChatsApi.md#apiv1chatsidmessagesmessageidattachmentspostoperation) | **POST** /api/v1/chats/{id}/messages/{message_id}/attachments | Create chat message attachment |
13
+ | [**apiV1ChatsIdReadPost**](ChatsApi.md#apiv1chatsidreadpostoperation) | **POST** /api/v1/chats/{id}/read | Mark chat as read |
14
+ | [**apiV1ChatsIdReportsPost**](ChatsApi.md#apiv1chatsidreportspostoperation) | **POST** /api/v1/chats/{id}/reports | Run deterministic SQL report tool |
15
+ | [**apiV1ChatsIdRunsRunIdCitationsGet**](ChatsApi.md#apiv1chatsidrunsrunidcitationsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/citations | Get run citations |
16
+ | [**apiV1ChatsIdRunsRunIdGet**](ChatsApi.md#apiv1chatsidrunsrunidget) | **GET** /api/v1/chats/{id}/runs/{run_id} | Get chat run status |
17
+ | [**apiV1ChatsIdRunsRunIdRetryPost**](ChatsApi.md#apiv1chatsidrunsrunidretrypost) | **POST** /api/v1/chats/{id}/runs/{run_id}/retry | Retry chat run |
18
+ | [**apiV1ChatsIdSavedReportsGet**](ChatsApi.md#apiv1chatsidsavedreportsget) | **GET** /api/v1/chats/{id}/saved_reports | List saved reports for chat |
19
+ | [**apiV1ChatsIdSavedReportsPost**](ChatsApi.md#apiv1chatsidsavedreportspostoperation) | **POST** /api/v1/chats/{id}/saved_reports | Save report snapshot for chat run |
20
+ | [**apiV1ChatsPlannerContractGet**](ChatsApi.md#apiv1chatsplannercontractget) | **GET** /api/v1/chats/planner_contract | Get planner contract schema |
21
+ | [**apiV1ChatsPlannerPost**](ChatsApi.md#apiv1chatsplannerpostoperation) | **POST** /api/v1/chats/planner | Build deterministic planner decision |
22
+ | [**apiV1ChatsPost**](ChatsApi.md#apiv1chatspostoperation) | **POST** /api/v1/chats | Create chat |
23
+ | [**apiV1ChatsRealtimeContractGet**](ChatsApi.md#apiv1chatsrealtimecontractget) | **GET** /api/v1/chats/realtime_contract | Get AnyCable realtime event contract |
24
+ | [**apiV1ChatsSyncGet**](ChatsApi.md#apiv1chatssyncget) | **GET** /api/v1/chats/sync | Sync chats by cursor |
25
+
26
+
27
+
28
+ ## apiV1ChatsChatIdMessagesGet
29
+
30
+ > ApiV1ChatsChatIdMessagesGet200Response apiV1ChatsChatIdMessagesGet(chatId, limit, offset)
31
+
32
+ List chat messages
33
+
34
+ ### Example
35
+
36
+ ```ts
37
+ import {
38
+ Configuration,
39
+ ChatsApi,
40
+ } from 'blanche-client-sdk';
41
+ import type { ApiV1ChatsChatIdMessagesGetRequest } from 'blanche-client-sdk';
42
+
43
+ async function example() {
44
+ console.log("🚀 Testing blanche-client-sdk SDK...");
45
+ const api = new ChatsApi();
46
+
47
+ const body = {
48
+ // string
49
+ chatId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
50
+ // number (optional)
51
+ limit: 56,
52
+ // number (optional)
53
+ offset: 56,
54
+ } satisfies ApiV1ChatsChatIdMessagesGetRequest;
55
+
56
+ try {
57
+ const data = await api.apiV1ChatsChatIdMessagesGet(body);
58
+ console.log(data);
59
+ } catch (error) {
60
+ console.error(error);
61
+ }
62
+ }
63
+
64
+ // Run the test
65
+ example().catch(console.error);
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+
71
+ | Name | Type | Description | Notes |
72
+ |------------- | ------------- | ------------- | -------------|
73
+ | **chatId** | `string` | | [Defaults to `undefined`] |
74
+ | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
75
+ | **offset** | `number` | | [Optional] [Defaults to `undefined`] |
76
+
77
+ ### Return type
78
+
79
+ [**ApiV1ChatsChatIdMessagesGet200Response**](ApiV1ChatsChatIdMessagesGet200Response.md)
80
+
81
+ ### Authorization
82
+
83
+ No authorization required
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: Not defined
88
+ - **Accept**: `application/json`
89
+
90
+
91
+ ### HTTP response details
92
+ | Status code | Description | Response headers |
93
+ |-------------|-------------|------------------|
94
+ | **200** | messages returned | - |
95
+
96
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
97
+
98
+
99
+ ## apiV1ChatsChatIdMessagesPost
100
+
101
+ > ApiV1ChatsChatIdMessagesPost201Response apiV1ChatsChatIdMessagesPost(chatId, apiV1ChatsChatIdMessagesPostRequest)
102
+
103
+ Create chat message
104
+
105
+ ### Example
106
+
107
+ ```ts
108
+ import {
109
+ Configuration,
110
+ ChatsApi,
111
+ } from 'blanche-client-sdk';
112
+ import type { ApiV1ChatsChatIdMessagesPostOperationRequest } from 'blanche-client-sdk';
113
+
114
+ async function example() {
115
+ console.log("🚀 Testing blanche-client-sdk SDK...");
116
+ const api = new ChatsApi();
117
+
118
+ const body = {
119
+ // string
120
+ chatId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
121
+ // ApiV1ChatsChatIdMessagesPostRequest (optional)
122
+ apiV1ChatsChatIdMessagesPostRequest: ...,
123
+ } satisfies ApiV1ChatsChatIdMessagesPostOperationRequest;
124
+
125
+ try {
126
+ const data = await api.apiV1ChatsChatIdMessagesPost(body);
127
+ console.log(data);
128
+ } catch (error) {
129
+ console.error(error);
130
+ }
131
+ }
132
+
133
+ // Run the test
134
+ example().catch(console.error);
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+
140
+ | Name | Type | Description | Notes |
141
+ |------------- | ------------- | ------------- | -------------|
142
+ | **chatId** | `string` | | [Defaults to `undefined`] |
143
+ | **apiV1ChatsChatIdMessagesPostRequest** | [ApiV1ChatsChatIdMessagesPostRequest](ApiV1ChatsChatIdMessagesPostRequest.md) | | [Optional] |
144
+
145
+ ### Return type
146
+
147
+ [**ApiV1ChatsChatIdMessagesPost201Response**](ApiV1ChatsChatIdMessagesPost201Response.md)
148
+
149
+ ### Authorization
150
+
151
+ No authorization required
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: `application/json`
156
+ - **Accept**: `application/json`
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ | **201** | message created | - |
163
+
164
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
165
+
166
+
167
+ ## apiV1ChatsChatIdMessagesSyncGet
168
+
169
+ > ApiV1ChatsChatIdMessagesSyncGet200Response apiV1ChatsChatIdMessagesSyncGet(chatId, cursor, limit)
170
+
171
+ Sync chat messages by cursor
172
+
173
+ ### Example
174
+
175
+ ```ts
176
+ import {
177
+ Configuration,
178
+ ChatsApi,
179
+ } from 'blanche-client-sdk';
180
+ import type { ApiV1ChatsChatIdMessagesSyncGetRequest } from 'blanche-client-sdk';
181
+
182
+ async function example() {
183
+ console.log("🚀 Testing blanche-client-sdk SDK...");
184
+ const api = new ChatsApi();
185
+
186
+ const body = {
187
+ // string
188
+ chatId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
189
+ // string (optional)
190
+ cursor: cursor_example,
191
+ // number (optional)
192
+ limit: 56,
193
+ } satisfies ApiV1ChatsChatIdMessagesSyncGetRequest;
194
+
195
+ try {
196
+ const data = await api.apiV1ChatsChatIdMessagesSyncGet(body);
197
+ console.log(data);
198
+ } catch (error) {
199
+ console.error(error);
200
+ }
201
+ }
202
+
203
+ // Run the test
204
+ example().catch(console.error);
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+
210
+ | Name | Type | Description | Notes |
211
+ |------------- | ------------- | ------------- | -------------|
212
+ | **chatId** | `string` | | [Defaults to `undefined`] |
213
+ | **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
214
+ | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
215
+
216
+ ### Return type
217
+
218
+ [**ApiV1ChatsChatIdMessagesSyncGet200Response**](ApiV1ChatsChatIdMessagesSyncGet200Response.md)
219
+
220
+ ### Authorization
221
+
222
+ No authorization required
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: Not defined
227
+ - **Accept**: `application/json`
228
+
229
+
230
+ ### HTTP response details
231
+ | Status code | Description | Response headers |
232
+ |-------------|-------------|------------------|
233
+ | **200** | sync messages returned | - |
234
+
235
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
236
+
237
+
238
+ ## apiV1ChatsGet
239
+
240
+ > ApiV1ChatsGet200Response apiV1ChatsGet(limit, offset)
241
+
242
+ List chats
243
+
244
+ ### Example
245
+
246
+ ```ts
247
+ import {
248
+ Configuration,
249
+ ChatsApi,
250
+ } from 'blanche-client-sdk';
251
+ import type { ApiV1ChatsGetRequest } from 'blanche-client-sdk';
252
+
253
+ async function example() {
254
+ console.log("🚀 Testing blanche-client-sdk SDK...");
255
+ const api = new ChatsApi();
256
+
257
+ const body = {
258
+ // number (optional)
259
+ limit: 56,
260
+ // number (optional)
261
+ offset: 56,
262
+ } satisfies ApiV1ChatsGetRequest;
263
+
264
+ try {
265
+ const data = await api.apiV1ChatsGet(body);
266
+ console.log(data);
267
+ } catch (error) {
268
+ console.error(error);
269
+ }
270
+ }
271
+
272
+ // Run the test
273
+ example().catch(console.error);
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+
279
+ | Name | Type | Description | Notes |
280
+ |------------- | ------------- | ------------- | -------------|
281
+ | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
282
+ | **offset** | `number` | | [Optional] [Defaults to `undefined`] |
283
+
284
+ ### Return type
285
+
286
+ [**ApiV1ChatsGet200Response**](ApiV1ChatsGet200Response.md)
287
+
288
+ ### Authorization
289
+
290
+ No authorization required
291
+
292
+ ### HTTP request headers
293
+
294
+ - **Content-Type**: Not defined
295
+ - **Accept**: `application/json`
296
+
297
+
298
+ ### HTTP response details
299
+ | Status code | Description | Response headers |
300
+ |-------------|-------------|------------------|
301
+ | **200** | chats returned | - |
302
+
303
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
304
+
305
+
306
+ ## apiV1ChatsIdMessagesMessageIdAttachmentsGet
307
+
308
+ > ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response apiV1ChatsIdMessagesMessageIdAttachmentsGet(id, messageId)
309
+
310
+ List chat message attachments
311
+
312
+ ### Example
313
+
314
+ ```ts
315
+ import {
316
+ Configuration,
317
+ ChatsApi,
318
+ } from 'blanche-client-sdk';
319
+ import type { ApiV1ChatsIdMessagesMessageIdAttachmentsGetRequest } from 'blanche-client-sdk';
320
+
321
+ async function example() {
322
+ console.log("🚀 Testing blanche-client-sdk SDK...");
323
+ const api = new ChatsApi();
324
+
325
+ const body = {
326
+ // string
327
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
328
+ // string
329
+ messageId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
330
+ } satisfies ApiV1ChatsIdMessagesMessageIdAttachmentsGetRequest;
331
+
332
+ try {
333
+ const data = await api.apiV1ChatsIdMessagesMessageIdAttachmentsGet(body);
334
+ console.log(data);
335
+ } catch (error) {
336
+ console.error(error);
337
+ }
338
+ }
339
+
340
+ // Run the test
341
+ example().catch(console.error);
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+
347
+ | Name | Type | Description | Notes |
348
+ |------------- | ------------- | ------------- | -------------|
349
+ | **id** | `string` | | [Defaults to `undefined`] |
350
+ | **messageId** | `string` | | [Defaults to `undefined`] |
351
+
352
+ ### Return type
353
+
354
+ [**ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response**](ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.md)
355
+
356
+ ### Authorization
357
+
358
+ No authorization required
359
+
360
+ ### HTTP request headers
361
+
362
+ - **Content-Type**: Not defined
363
+ - **Accept**: `application/json`
364
+
365
+
366
+ ### HTTP response details
367
+ | Status code | Description | Response headers |
368
+ |-------------|-------------|------------------|
369
+ | **200** | attachments returned | - |
370
+
371
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
372
+
373
+
374
+ ## apiV1ChatsIdMessagesMessageIdAttachmentsPost
375
+
376
+ > ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response apiV1ChatsIdMessagesMessageIdAttachmentsPost(id, messageId, apiV1ChatsIdMessagesMessageIdAttachmentsPostRequest)
377
+
378
+ Create chat message attachment
379
+
380
+ ### Example
381
+
382
+ ```ts
383
+ import {
384
+ Configuration,
385
+ ChatsApi,
386
+ } from 'blanche-client-sdk';
387
+ import type { ApiV1ChatsIdMessagesMessageIdAttachmentsPostOperationRequest } from 'blanche-client-sdk';
388
+
389
+ async function example() {
390
+ console.log("🚀 Testing blanche-client-sdk SDK...");
391
+ const api = new ChatsApi();
392
+
393
+ const body = {
394
+ // string
395
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
396
+ // string
397
+ messageId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
398
+ // ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest (optional)
399
+ apiV1ChatsIdMessagesMessageIdAttachmentsPostRequest: ...,
400
+ } satisfies ApiV1ChatsIdMessagesMessageIdAttachmentsPostOperationRequest;
401
+
402
+ try {
403
+ const data = await api.apiV1ChatsIdMessagesMessageIdAttachmentsPost(body);
404
+ console.log(data);
405
+ } catch (error) {
406
+ console.error(error);
407
+ }
408
+ }
409
+
410
+ // Run the test
411
+ example().catch(console.error);
412
+ ```
413
+
414
+ ### Parameters
415
+
416
+
417
+ | Name | Type | Description | Notes |
418
+ |------------- | ------------- | ------------- | -------------|
419
+ | **id** | `string` | | [Defaults to `undefined`] |
420
+ | **messageId** | `string` | | [Defaults to `undefined`] |
421
+ | **apiV1ChatsIdMessagesMessageIdAttachmentsPostRequest** | [ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest](ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.md) | | [Optional] |
422
+
423
+ ### Return type
424
+
425
+ [**ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response**](ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.md)
426
+
427
+ ### Authorization
428
+
429
+ No authorization required
430
+
431
+ ### HTTP request headers
432
+
433
+ - **Content-Type**: `application/json`
434
+ - **Accept**: `application/json`
435
+
436
+
437
+ ### HTTP response details
438
+ | Status code | Description | Response headers |
439
+ |-------------|-------------|------------------|
440
+ | **201** | attachment created | - |
441
+
442
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
443
+
444
+
445
+ ## apiV1ChatsIdReadPost
446
+
447
+ > ApiV1ChatsIdReadPost200Response apiV1ChatsIdReadPost(id, apiV1ChatsIdReadPostRequest)
448
+
449
+ Mark chat as read
450
+
451
+ ### Example
452
+
453
+ ```ts
454
+ import {
455
+ Configuration,
456
+ ChatsApi,
457
+ } from 'blanche-client-sdk';
458
+ import type { ApiV1ChatsIdReadPostOperationRequest } from 'blanche-client-sdk';
459
+
460
+ async function example() {
461
+ console.log("🚀 Testing blanche-client-sdk SDK...");
462
+ const api = new ChatsApi();
463
+
464
+ const body = {
465
+ // string
466
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
467
+ // ApiV1ChatsIdReadPostRequest (optional)
468
+ apiV1ChatsIdReadPostRequest: ...,
469
+ } satisfies ApiV1ChatsIdReadPostOperationRequest;
470
+
471
+ try {
472
+ const data = await api.apiV1ChatsIdReadPost(body);
473
+ console.log(data);
474
+ } catch (error) {
475
+ console.error(error);
476
+ }
477
+ }
478
+
479
+ // Run the test
480
+ example().catch(console.error);
481
+ ```
482
+
483
+ ### Parameters
484
+
485
+
486
+ | Name | Type | Description | Notes |
487
+ |------------- | ------------- | ------------- | -------------|
488
+ | **id** | `string` | | [Defaults to `undefined`] |
489
+ | **apiV1ChatsIdReadPostRequest** | [ApiV1ChatsIdReadPostRequest](ApiV1ChatsIdReadPostRequest.md) | | [Optional] |
490
+
491
+ ### Return type
492
+
493
+ [**ApiV1ChatsIdReadPost200Response**](ApiV1ChatsIdReadPost200Response.md)
494
+
495
+ ### Authorization
496
+
497
+ No authorization required
498
+
499
+ ### HTTP request headers
500
+
501
+ - **Content-Type**: `application/json`
502
+ - **Accept**: `application/json`
503
+
504
+
505
+ ### HTTP response details
506
+ | Status code | Description | Response headers |
507
+ |-------------|-------------|------------------|
508
+ | **200** | chat read state updated | - |
509
+
510
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
511
+
512
+
513
+ ## apiV1ChatsIdReportsPost
514
+
515
+ > ApiV1ChatsIdReportsPost200Response apiV1ChatsIdReportsPost(id, apiV1ChatsIdReportsPostRequest)
516
+
517
+ Run deterministic SQL report tool
518
+
519
+ ### Example
520
+
521
+ ```ts
522
+ import {
523
+ Configuration,
524
+ ChatsApi,
525
+ } from 'blanche-client-sdk';
526
+ import type { ApiV1ChatsIdReportsPostOperationRequest } from 'blanche-client-sdk';
527
+
528
+ async function example() {
529
+ console.log("🚀 Testing blanche-client-sdk SDK...");
530
+ const api = new ChatsApi();
531
+
532
+ const body = {
533
+ // string
534
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
535
+ // ApiV1ChatsIdReportsPostRequest (optional)
536
+ apiV1ChatsIdReportsPostRequest: ...,
537
+ } satisfies ApiV1ChatsIdReportsPostOperationRequest;
538
+
539
+ try {
540
+ const data = await api.apiV1ChatsIdReportsPost(body);
541
+ console.log(data);
542
+ } catch (error) {
543
+ console.error(error);
544
+ }
545
+ }
546
+
547
+ // Run the test
548
+ example().catch(console.error);
549
+ ```
550
+
551
+ ### Parameters
552
+
553
+
554
+ | Name | Type | Description | Notes |
555
+ |------------- | ------------- | ------------- | -------------|
556
+ | **id** | `string` | | [Defaults to `undefined`] |
557
+ | **apiV1ChatsIdReportsPostRequest** | [ApiV1ChatsIdReportsPostRequest](ApiV1ChatsIdReportsPostRequest.md) | | [Optional] |
558
+
559
+ ### Return type
560
+
561
+ [**ApiV1ChatsIdReportsPost200Response**](ApiV1ChatsIdReportsPost200Response.md)
562
+
563
+ ### Authorization
564
+
565
+ No authorization required
566
+
567
+ ### HTTP request headers
568
+
569
+ - **Content-Type**: `application/json`
570
+ - **Accept**: `application/json`
571
+
572
+
573
+ ### HTTP response details
574
+ | Status code | Description | Response headers |
575
+ |-------------|-------------|------------------|
576
+ | **200** | report returned | - |
577
+ | **422** | invalid request | - |
578
+
579
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
580
+
581
+
582
+ ## apiV1ChatsIdRunsRunIdCitationsGet
583
+
584
+ > ApiV1ChatsIdRunsRunIdCitationsGet200Response apiV1ChatsIdRunsRunIdCitationsGet(id, runId)
585
+
586
+ Get run citations
587
+
588
+ ### Example
589
+
590
+ ```ts
591
+ import {
592
+ Configuration,
593
+ ChatsApi,
594
+ } from 'blanche-client-sdk';
595
+ import type { ApiV1ChatsIdRunsRunIdCitationsGetRequest } from 'blanche-client-sdk';
596
+
597
+ async function example() {
598
+ console.log("🚀 Testing blanche-client-sdk SDK...");
599
+ const api = new ChatsApi();
600
+
601
+ const body = {
602
+ // string
603
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
604
+ // string
605
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
606
+ } satisfies ApiV1ChatsIdRunsRunIdCitationsGetRequest;
607
+
608
+ try {
609
+ const data = await api.apiV1ChatsIdRunsRunIdCitationsGet(body);
610
+ console.log(data);
611
+ } catch (error) {
612
+ console.error(error);
613
+ }
614
+ }
615
+
616
+ // Run the test
617
+ example().catch(console.error);
618
+ ```
619
+
620
+ ### Parameters
621
+
622
+
623
+ | Name | Type | Description | Notes |
624
+ |------------- | ------------- | ------------- | -------------|
625
+ | **id** | `string` | | [Defaults to `undefined`] |
626
+ | **runId** | `string` | | [Defaults to `undefined`] |
627
+
628
+ ### Return type
629
+
630
+ [**ApiV1ChatsIdRunsRunIdCitationsGet200Response**](ApiV1ChatsIdRunsRunIdCitationsGet200Response.md)
631
+
632
+ ### Authorization
633
+
634
+ No authorization required
635
+
636
+ ### HTTP request headers
637
+
638
+ - **Content-Type**: Not defined
639
+ - **Accept**: `application/json`
640
+
641
+
642
+ ### HTTP response details
643
+ | Status code | Description | Response headers |
644
+ |-------------|-------------|------------------|
645
+ | **200** | citations returned | - |
646
+
647
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
648
+
649
+
650
+ ## apiV1ChatsIdRunsRunIdGet
651
+
652
+ > ApiV1ChatsIdRunsRunIdGet200Response apiV1ChatsIdRunsRunIdGet(id, runId)
653
+
654
+ Get chat run status
655
+
656
+ ### Example
657
+
658
+ ```ts
659
+ import {
660
+ Configuration,
661
+ ChatsApi,
662
+ } from 'blanche-client-sdk';
663
+ import type { ApiV1ChatsIdRunsRunIdGetRequest } from 'blanche-client-sdk';
664
+
665
+ async function example() {
666
+ console.log("🚀 Testing blanche-client-sdk SDK...");
667
+ const api = new ChatsApi();
668
+
669
+ const body = {
670
+ // string
671
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
672
+ // string
673
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
674
+ } satisfies ApiV1ChatsIdRunsRunIdGetRequest;
675
+
676
+ try {
677
+ const data = await api.apiV1ChatsIdRunsRunIdGet(body);
678
+ console.log(data);
679
+ } catch (error) {
680
+ console.error(error);
681
+ }
682
+ }
683
+
684
+ // Run the test
685
+ example().catch(console.error);
686
+ ```
687
+
688
+ ### Parameters
689
+
690
+
691
+ | Name | Type | Description | Notes |
692
+ |------------- | ------------- | ------------- | -------------|
693
+ | **id** | `string` | | [Defaults to `undefined`] |
694
+ | **runId** | `string` | | [Defaults to `undefined`] |
695
+
696
+ ### Return type
697
+
698
+ [**ApiV1ChatsIdRunsRunIdGet200Response**](ApiV1ChatsIdRunsRunIdGet200Response.md)
699
+
700
+ ### Authorization
701
+
702
+ No authorization required
703
+
704
+ ### HTTP request headers
705
+
706
+ - **Content-Type**: Not defined
707
+ - **Accept**: `application/json`
708
+
709
+
710
+ ### HTTP response details
711
+ | Status code | Description | Response headers |
712
+ |-------------|-------------|------------------|
713
+ | **200** | run returned | - |
714
+
715
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
716
+
717
+
718
+ ## apiV1ChatsIdRunsRunIdRetryPost
719
+
720
+ > ApiV1ChatsIdRunsRunIdRetryPost201Response apiV1ChatsIdRunsRunIdRetryPost(id, runId)
721
+
722
+ Retry chat run
723
+
724
+ ### Example
725
+
726
+ ```ts
727
+ import {
728
+ Configuration,
729
+ ChatsApi,
730
+ } from 'blanche-client-sdk';
731
+ import type { ApiV1ChatsIdRunsRunIdRetryPostRequest } from 'blanche-client-sdk';
732
+
733
+ async function example() {
734
+ console.log("🚀 Testing blanche-client-sdk SDK...");
735
+ const api = new ChatsApi();
736
+
737
+ const body = {
738
+ // string
739
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
740
+ // string
741
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
742
+ } satisfies ApiV1ChatsIdRunsRunIdRetryPostRequest;
743
+
744
+ try {
745
+ const data = await api.apiV1ChatsIdRunsRunIdRetryPost(body);
746
+ console.log(data);
747
+ } catch (error) {
748
+ console.error(error);
749
+ }
750
+ }
751
+
752
+ // Run the test
753
+ example().catch(console.error);
754
+ ```
755
+
756
+ ### Parameters
757
+
758
+
759
+ | Name | Type | Description | Notes |
760
+ |------------- | ------------- | ------------- | -------------|
761
+ | **id** | `string` | | [Defaults to `undefined`] |
762
+ | **runId** | `string` | | [Defaults to `undefined`] |
763
+
764
+ ### Return type
765
+
766
+ [**ApiV1ChatsIdRunsRunIdRetryPost201Response**](ApiV1ChatsIdRunsRunIdRetryPost201Response.md)
767
+
768
+ ### Authorization
769
+
770
+ No authorization required
771
+
772
+ ### HTTP request headers
773
+
774
+ - **Content-Type**: Not defined
775
+ - **Accept**: `application/json`
776
+
777
+
778
+ ### HTTP response details
779
+ | Status code | Description | Response headers |
780
+ |-------------|-------------|------------------|
781
+ | **201** | retry run created | - |
782
+
783
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
784
+
785
+
786
+ ## apiV1ChatsIdSavedReportsGet
787
+
788
+ > ApiV1ChatsIdSavedReportsGet200Response apiV1ChatsIdSavedReportsGet(id)
789
+
790
+ List saved reports for chat
791
+
792
+ ### Example
793
+
794
+ ```ts
795
+ import {
796
+ Configuration,
797
+ ChatsApi,
798
+ } from 'blanche-client-sdk';
799
+ import type { ApiV1ChatsIdSavedReportsGetRequest } from 'blanche-client-sdk';
800
+
801
+ async function example() {
802
+ console.log("🚀 Testing blanche-client-sdk SDK...");
803
+ const api = new ChatsApi();
804
+
805
+ const body = {
806
+ // string
807
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
808
+ } satisfies ApiV1ChatsIdSavedReportsGetRequest;
809
+
810
+ try {
811
+ const data = await api.apiV1ChatsIdSavedReportsGet(body);
812
+ console.log(data);
813
+ } catch (error) {
814
+ console.error(error);
815
+ }
816
+ }
817
+
818
+ // Run the test
819
+ example().catch(console.error);
820
+ ```
821
+
822
+ ### Parameters
823
+
824
+
825
+ | Name | Type | Description | Notes |
826
+ |------------- | ------------- | ------------- | -------------|
827
+ | **id** | `string` | | [Defaults to `undefined`] |
828
+
829
+ ### Return type
830
+
831
+ [**ApiV1ChatsIdSavedReportsGet200Response**](ApiV1ChatsIdSavedReportsGet200Response.md)
832
+
833
+ ### Authorization
834
+
835
+ No authorization required
836
+
837
+ ### HTTP request headers
838
+
839
+ - **Content-Type**: Not defined
840
+ - **Accept**: `application/json`
841
+
842
+
843
+ ### HTTP response details
844
+ | Status code | Description | Response headers |
845
+ |-------------|-------------|------------------|
846
+ | **200** | saved reports returned | - |
847
+
848
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
849
+
850
+
851
+ ## apiV1ChatsIdSavedReportsPost
852
+
853
+ > ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner apiV1ChatsIdSavedReportsPost(id, apiV1ChatsIdSavedReportsPostRequest)
854
+
855
+ Save report snapshot for chat run
856
+
857
+ ### Example
858
+
859
+ ```ts
860
+ import {
861
+ Configuration,
862
+ ChatsApi,
863
+ } from 'blanche-client-sdk';
864
+ import type { ApiV1ChatsIdSavedReportsPostOperationRequest } from 'blanche-client-sdk';
865
+
866
+ async function example() {
867
+ console.log("🚀 Testing blanche-client-sdk SDK...");
868
+ const api = new ChatsApi();
869
+
870
+ const body = {
871
+ // string
872
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
873
+ // ApiV1ChatsIdSavedReportsPostRequest (optional)
874
+ apiV1ChatsIdSavedReportsPostRequest: ...,
875
+ } satisfies ApiV1ChatsIdSavedReportsPostOperationRequest;
876
+
877
+ try {
878
+ const data = await api.apiV1ChatsIdSavedReportsPost(body);
879
+ console.log(data);
880
+ } catch (error) {
881
+ console.error(error);
882
+ }
883
+ }
884
+
885
+ // Run the test
886
+ example().catch(console.error);
887
+ ```
888
+
889
+ ### Parameters
890
+
891
+
892
+ | Name | Type | Description | Notes |
893
+ |------------- | ------------- | ------------- | -------------|
894
+ | **id** | `string` | | [Defaults to `undefined`] |
895
+ | **apiV1ChatsIdSavedReportsPostRequest** | [ApiV1ChatsIdSavedReportsPostRequest](ApiV1ChatsIdSavedReportsPostRequest.md) | | [Optional] |
896
+
897
+ ### Return type
898
+
899
+ [**ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner**](ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.md)
900
+
901
+ ### Authorization
902
+
903
+ No authorization required
904
+
905
+ ### HTTP request headers
906
+
907
+ - **Content-Type**: `application/json`
908
+ - **Accept**: `application/json`
909
+
910
+
911
+ ### HTTP response details
912
+ | Status code | Description | Response headers |
913
+ |-------------|-------------|------------------|
914
+ | **201** | saved report created | - |
915
+
916
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
917
+
918
+
919
+ ## apiV1ChatsPlannerContractGet
920
+
921
+ > ApiV1ChatsPlannerContractGet200Response apiV1ChatsPlannerContractGet()
922
+
923
+ Get planner contract schema
924
+
925
+ ### Example
926
+
927
+ ```ts
928
+ import {
929
+ Configuration,
930
+ ChatsApi,
931
+ } from 'blanche-client-sdk';
932
+ import type { ApiV1ChatsPlannerContractGetRequest } from 'blanche-client-sdk';
933
+
934
+ async function example() {
935
+ console.log("🚀 Testing blanche-client-sdk SDK...");
936
+ const api = new ChatsApi();
937
+
938
+ try {
939
+ const data = await api.apiV1ChatsPlannerContractGet();
940
+ console.log(data);
941
+ } catch (error) {
942
+ console.error(error);
943
+ }
944
+ }
945
+
946
+ // Run the test
947
+ example().catch(console.error);
948
+ ```
949
+
950
+ ### Parameters
951
+
952
+ This endpoint does not need any parameter.
953
+
954
+ ### Return type
955
+
956
+ [**ApiV1ChatsPlannerContractGet200Response**](ApiV1ChatsPlannerContractGet200Response.md)
957
+
958
+ ### Authorization
959
+
960
+ No authorization required
961
+
962
+ ### HTTP request headers
963
+
964
+ - **Content-Type**: Not defined
965
+ - **Accept**: `application/json`
966
+
967
+
968
+ ### HTTP response details
969
+ | Status code | Description | Response headers |
970
+ |-------------|-------------|------------------|
971
+ | **200** | planner contract returned | - |
972
+
973
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
974
+
975
+
976
+ ## apiV1ChatsPlannerPost
977
+
978
+ > ApiV1ChatsPlannerPost200Response apiV1ChatsPlannerPost(apiV1ChatsPlannerPostRequest)
979
+
980
+ Build deterministic planner decision
981
+
982
+ ### Example
983
+
984
+ ```ts
985
+ import {
986
+ Configuration,
987
+ ChatsApi,
988
+ } from 'blanche-client-sdk';
989
+ import type { ApiV1ChatsPlannerPostOperationRequest } from 'blanche-client-sdk';
990
+
991
+ async function example() {
992
+ console.log("🚀 Testing blanche-client-sdk SDK...");
993
+ const api = new ChatsApi();
994
+
995
+ const body = {
996
+ // ApiV1ChatsPlannerPostRequest (optional)
997
+ apiV1ChatsPlannerPostRequest: ...,
998
+ } satisfies ApiV1ChatsPlannerPostOperationRequest;
999
+
1000
+ try {
1001
+ const data = await api.apiV1ChatsPlannerPost(body);
1002
+ console.log(data);
1003
+ } catch (error) {
1004
+ console.error(error);
1005
+ }
1006
+ }
1007
+
1008
+ // Run the test
1009
+ example().catch(console.error);
1010
+ ```
1011
+
1012
+ ### Parameters
1013
+
1014
+
1015
+ | Name | Type | Description | Notes |
1016
+ |------------- | ------------- | ------------- | -------------|
1017
+ | **apiV1ChatsPlannerPostRequest** | [ApiV1ChatsPlannerPostRequest](ApiV1ChatsPlannerPostRequest.md) | | [Optional] |
1018
+
1019
+ ### Return type
1020
+
1021
+ [**ApiV1ChatsPlannerPost200Response**](ApiV1ChatsPlannerPost200Response.md)
1022
+
1023
+ ### Authorization
1024
+
1025
+ No authorization required
1026
+
1027
+ ### HTTP request headers
1028
+
1029
+ - **Content-Type**: `application/json`
1030
+ - **Accept**: `application/json`
1031
+
1032
+
1033
+ ### HTTP response details
1034
+ | Status code | Description | Response headers |
1035
+ |-------------|-------------|------------------|
1036
+ | **200** | planner returned | - |
1037
+ | **422** | invalid request | - |
1038
+
1039
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1040
+
1041
+
1042
+ ## apiV1ChatsPost
1043
+
1044
+ > ApiV1ChatsPost201Response apiV1ChatsPost(apiV1ChatsPostRequest)
1045
+
1046
+ Create chat
1047
+
1048
+ ### Example
1049
+
1050
+ ```ts
1051
+ import {
1052
+ Configuration,
1053
+ ChatsApi,
1054
+ } from 'blanche-client-sdk';
1055
+ import type { ApiV1ChatsPostOperationRequest } from 'blanche-client-sdk';
1056
+
1057
+ async function example() {
1058
+ console.log("🚀 Testing blanche-client-sdk SDK...");
1059
+ const api = new ChatsApi();
1060
+
1061
+ const body = {
1062
+ // ApiV1ChatsPostRequest (optional)
1063
+ apiV1ChatsPostRequest: ...,
1064
+ } satisfies ApiV1ChatsPostOperationRequest;
1065
+
1066
+ try {
1067
+ const data = await api.apiV1ChatsPost(body);
1068
+ console.log(data);
1069
+ } catch (error) {
1070
+ console.error(error);
1071
+ }
1072
+ }
1073
+
1074
+ // Run the test
1075
+ example().catch(console.error);
1076
+ ```
1077
+
1078
+ ### Parameters
1079
+
1080
+
1081
+ | Name | Type | Description | Notes |
1082
+ |------------- | ------------- | ------------- | -------------|
1083
+ | **apiV1ChatsPostRequest** | [ApiV1ChatsPostRequest](ApiV1ChatsPostRequest.md) | | [Optional] |
1084
+
1085
+ ### Return type
1086
+
1087
+ [**ApiV1ChatsPost201Response**](ApiV1ChatsPost201Response.md)
1088
+
1089
+ ### Authorization
1090
+
1091
+ No authorization required
1092
+
1093
+ ### HTTP request headers
1094
+
1095
+ - **Content-Type**: `application/json`
1096
+ - **Accept**: `application/json`
1097
+
1098
+
1099
+ ### HTTP response details
1100
+ | Status code | Description | Response headers |
1101
+ |-------------|-------------|------------------|
1102
+ | **201** | chat created | - |
1103
+
1104
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1105
+
1106
+
1107
+ ## apiV1ChatsRealtimeContractGet
1108
+
1109
+ > ApiV1ChatsRealtimeContractGet200Response apiV1ChatsRealtimeContractGet()
1110
+
1111
+ Get AnyCable realtime event contract
1112
+
1113
+ ### Example
1114
+
1115
+ ```ts
1116
+ import {
1117
+ Configuration,
1118
+ ChatsApi,
1119
+ } from 'blanche-client-sdk';
1120
+ import type { ApiV1ChatsRealtimeContractGetRequest } from 'blanche-client-sdk';
1121
+
1122
+ async function example() {
1123
+ console.log("🚀 Testing blanche-client-sdk SDK...");
1124
+ const api = new ChatsApi();
1125
+
1126
+ try {
1127
+ const data = await api.apiV1ChatsRealtimeContractGet();
1128
+ console.log(data);
1129
+ } catch (error) {
1130
+ console.error(error);
1131
+ }
1132
+ }
1133
+
1134
+ // Run the test
1135
+ example().catch(console.error);
1136
+ ```
1137
+
1138
+ ### Parameters
1139
+
1140
+ This endpoint does not need any parameter.
1141
+
1142
+ ### Return type
1143
+
1144
+ [**ApiV1ChatsRealtimeContractGet200Response**](ApiV1ChatsRealtimeContractGet200Response.md)
1145
+
1146
+ ### Authorization
1147
+
1148
+ No authorization required
1149
+
1150
+ ### HTTP request headers
1151
+
1152
+ - **Content-Type**: Not defined
1153
+ - **Accept**: `application/json`
1154
+
1155
+
1156
+ ### HTTP response details
1157
+ | Status code | Description | Response headers |
1158
+ |-------------|-------------|------------------|
1159
+ | **200** | realtime contract returned | - |
1160
+
1161
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1162
+
1163
+
1164
+ ## apiV1ChatsSyncGet
1165
+
1166
+ > ApiV1ChatsSyncGet200Response apiV1ChatsSyncGet(cursor, limit)
1167
+
1168
+ Sync chats by cursor
1169
+
1170
+ ### Example
1171
+
1172
+ ```ts
1173
+ import {
1174
+ Configuration,
1175
+ ChatsApi,
1176
+ } from 'blanche-client-sdk';
1177
+ import type { ApiV1ChatsSyncGetRequest } from 'blanche-client-sdk';
1178
+
1179
+ async function example() {
1180
+ console.log("🚀 Testing blanche-client-sdk SDK...");
1181
+ const api = new ChatsApi();
1182
+
1183
+ const body = {
1184
+ // string (optional)
1185
+ cursor: cursor_example,
1186
+ // number (optional)
1187
+ limit: 56,
1188
+ } satisfies ApiV1ChatsSyncGetRequest;
1189
+
1190
+ try {
1191
+ const data = await api.apiV1ChatsSyncGet(body);
1192
+ console.log(data);
1193
+ } catch (error) {
1194
+ console.error(error);
1195
+ }
1196
+ }
1197
+
1198
+ // Run the test
1199
+ example().catch(console.error);
1200
+ ```
1201
+
1202
+ ### Parameters
1203
+
1204
+
1205
+ | Name | Type | Description | Notes |
1206
+ |------------- | ------------- | ------------- | -------------|
1207
+ | **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
1208
+ | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
1209
+
1210
+ ### Return type
1211
+
1212
+ [**ApiV1ChatsSyncGet200Response**](ApiV1ChatsSyncGet200Response.md)
1213
+
1214
+ ### Authorization
1215
+
1216
+ No authorization required
1217
+
1218
+ ### HTTP request headers
1219
+
1220
+ - **Content-Type**: Not defined
1221
+ - **Accept**: `application/json`
1222
+
1223
+
1224
+ ### HTTP response details
1225
+ | Status code | Description | Response headers |
1226
+ |-------------|-------------|------------------|
1227
+ | **200** | sync slice returned | - |
1228
+
1229
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1230
+