@smoothbuilder/smoothagent-agent-client 0.0.0-stage → 0.4.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 (367) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +55 -2
  3. package/dist/chunk-PZ5AY32C.js +10 -0
  4. package/dist/chunk-PZ5AY32C.js.map +7 -0
  5. package/dist/index.js +24 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/testing.js +139 -0
  8. package/dist/testing.js.map +7 -0
  9. package/dist/types/contract/events/ts/src/gen/events.d.ts +5990 -0
  10. package/dist/types/contract/events/ts/src/gen/known.d.ts +117 -0
  11. package/dist/types/contract/events/ts/src/reducer.d.ts +21 -0
  12. package/dist/types/sdk/generated/ts-client/BaseClient.d.ts +54 -0
  13. package/dist/types/sdk/generated/ts-client/Client.d.ts +41 -0
  14. package/dist/types/sdk/generated/ts-client/api/errors/BadGatewayError.d.ts +7 -0
  15. package/dist/types/sdk/generated/ts-client/api/errors/BadRequestError.d.ts +7 -0
  16. package/dist/types/sdk/generated/ts-client/api/errors/ConflictError.d.ts +7 -0
  17. package/dist/types/sdk/generated/ts-client/api/errors/FailedDependencyError.d.ts +7 -0
  18. package/dist/types/sdk/generated/ts-client/api/errors/ForbiddenError.d.ts +7 -0
  19. package/dist/types/sdk/generated/ts-client/api/errors/GoneError.d.ts +7 -0
  20. package/dist/types/sdk/generated/ts-client/api/errors/InternalServerError.d.ts +7 -0
  21. package/dist/types/sdk/generated/ts-client/api/errors/NotFoundError.d.ts +7 -0
  22. package/dist/types/sdk/generated/ts-client/api/errors/PaymentRequiredError.d.ts +7 -0
  23. package/dist/types/sdk/generated/ts-client/api/errors/ServiceUnavailableError.d.ts +7 -0
  24. package/dist/types/sdk/generated/ts-client/api/errors/TooManyRequestsError.d.ts +7 -0
  25. package/dist/types/sdk/generated/ts-client/api/errors/UnauthorizedError.d.ts +7 -0
  26. package/dist/types/sdk/generated/ts-client/api/errors/UnprocessableEntityError.d.ts +7 -0
  27. package/dist/types/sdk/generated/ts-client/api/errors/index.d.ts +13 -0
  28. package/dist/types/sdk/generated/ts-client/api/index.d.ts +3 -0
  29. package/dist/types/sdk/generated/ts-client/api/resources/agents/client/Client.d.ts +66 -0
  30. package/dist/types/sdk/generated/ts-client/api/resources/agents/client/index.d.ts +1 -0
  31. package/dist/types/sdk/generated/ts-client/api/resources/agents/client/requests/AgentsGetRequest.d.ts +9 -0
  32. package/dist/types/sdk/generated/ts-client/api/resources/agents/client/requests/AgentsListRequest.d.ts +10 -0
  33. package/dist/types/sdk/generated/ts-client/api/resources/agents/client/requests/index.d.ts +2 -0
  34. package/dist/types/sdk/generated/ts-client/api/resources/agents/index.d.ts +2 -0
  35. package/dist/types/sdk/generated/ts-client/api/resources/agents/types/AgentsGetResponse.d.ts +2 -0
  36. package/dist/types/sdk/generated/ts-client/api/resources/agents/types/AgentsListResponse.d.ts +12 -0
  37. package/dist/types/sdk/generated/ts-client/api/resources/agents/types/index.d.ts +2 -0
  38. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/Client.d.ts +970 -0
  39. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/index.d.ts +1 -0
  40. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/CancelSwitchChatsRequest.d.ts +11 -0
  41. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatBoxListFilesRequest.d.ts +11 -0
  42. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatBoxListTasksRequest.d.ts +10 -0
  43. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatBoxReadFileRequest.d.ts +12 -0
  44. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatBoxStopTaskRequest.d.ts +13 -0
  45. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatBoxTaskOutputRequest.d.ts +13 -0
  46. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsDeleteRequest.d.ts +10 -0
  47. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsEventsRequest.d.ts +14 -0
  48. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsGetRequest.d.ts +10 -0
  49. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsHistoryRequest.d.ts +16 -0
  50. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsLimitsRequest.d.ts +10 -0
  51. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsListRequest.d.ts +14 -0
  52. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsMessageRequest.d.ts +12 -0
  53. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsQueueRequest.d.ts +10 -0
  54. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsResendRequest.d.ts +13 -0
  55. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsResetRequest.d.ts +12 -0
  56. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsRespondRequest.d.ts +17 -0
  57. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsRunRequest.d.ts +12 -0
  58. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsRunsRequest.d.ts +13 -0
  59. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsSelectionRequest.d.ts +10 -0
  60. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsSnapshotRequest.d.ts +10 -0
  61. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsStopRequest.d.ts +11 -0
  62. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsUpdateRequest.d.ts +13 -0
  63. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ChatsUsageRequest.d.ts +10 -0
  64. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/CreateChat.d.ts +33 -0
  65. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/EditQueuedChatsRequest.d.ts +20 -0
  66. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/EventsRangeChatsRequest.d.ts +14 -0
  67. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/GetContextChatsRequest.d.ts +10 -0
  68. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/MarkReadChatsRequest.d.ts +13 -0
  69. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/RemoveQueuedChatsRequest.d.ts +14 -0
  70. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/ReorderQueueChatsRequest.d.ts +15 -0
  71. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/SendMessage.d.ts +39 -0
  72. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/SendNowChatsRequest.d.ts +15 -0
  73. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/SwitchAgent.d.ts +35 -0
  74. package/dist/types/sdk/generated/ts-client/api/resources/chats/client/requests/index.d.ts +34 -0
  75. package/dist/types/sdk/generated/ts-client/api/resources/chats/index.d.ts +2 -0
  76. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatBoxListTasksResponse.d.ts +4 -0
  77. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatBoxStopTaskResponse.d.ts +3 -0
  78. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsEventsRequestAccept.d.ts +4 -0
  79. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsHistoryRequestAnchor.d.ts +4 -0
  80. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsListResponse.d.ts +6 -0
  81. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsResendResponse.d.ts +3 -0
  82. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsRespondResponse.d.ts +3 -0
  83. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsRunsResponse.d.ts +6 -0
  84. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsSendResponse.d.ts +15 -0
  85. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/ChatsStopResponse.d.ts +3 -0
  86. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/MarkReadChatsResponse.d.ts +6 -0
  87. package/dist/types/sdk/generated/ts-client/api/resources/chats/types/index.d.ts +11 -0
  88. package/dist/types/sdk/generated/ts-client/api/resources/files/client/Client.d.ts +180 -0
  89. package/dist/types/sdk/generated/ts-client/api/resources/files/client/index.d.ts +1 -0
  90. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/CreateUploadFilesRequest.d.ts +17 -0
  91. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/FilesCompleteRequest.d.ts +11 -0
  92. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/FilesContentRequest.d.ts +9 -0
  93. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/FilesDeleteRequest.d.ts +9 -0
  94. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/FilesGetRequest.d.ts +9 -0
  95. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/FilesUploadRequest.d.ts +14 -0
  96. package/dist/types/sdk/generated/ts-client/api/resources/files/client/requests/index.d.ts +6 -0
  97. package/dist/types/sdk/generated/ts-client/api/resources/files/index.d.ts +2 -0
  98. package/dist/types/sdk/generated/ts-client/api/resources/files/types/CreateUploadFilesResponse.d.ts +6 -0
  99. package/dist/types/sdk/generated/ts-client/api/resources/files/types/index.d.ts +1 -0
  100. package/dist/types/sdk/generated/ts-client/api/resources/identity/client/Client.d.ts +42 -0
  101. package/dist/types/sdk/generated/ts-client/api/resources/identity/client/index.d.ts +1 -0
  102. package/dist/types/sdk/generated/ts-client/api/resources/identity/client/requests/MeFeedRequest.d.ts +10 -0
  103. package/dist/types/sdk/generated/ts-client/api/resources/identity/client/requests/index.d.ts +1 -0
  104. package/dist/types/sdk/generated/ts-client/api/resources/identity/index.d.ts +2 -0
  105. package/dist/types/sdk/generated/ts-client/api/resources/identity/types/MeFeedRequestAccept.d.ts +4 -0
  106. package/dist/types/sdk/generated/ts-client/api/resources/identity/types/MeWhoamiResponse.d.ts +2 -0
  107. package/dist/types/sdk/generated/ts-client/api/resources/identity/types/index.d.ts +2 -0
  108. package/dist/types/sdk/generated/ts-client/api/resources/index.d.ts +18 -0
  109. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/Client.d.ts +152 -0
  110. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/index.d.ts +1 -0
  111. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/requests/MachinesDeleteRequest.d.ts +9 -0
  112. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/requests/MachinesGetRequest.d.ts +9 -0
  113. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/requests/MachinesListRequest.d.ts +13 -0
  114. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/requests/MachinesPairRequest.d.ts +10 -0
  115. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/requests/PairingStatusMachinesRequest.d.ts +9 -0
  116. package/dist/types/sdk/generated/ts-client/api/resources/machines/client/requests/index.d.ts +5 -0
  117. package/dist/types/sdk/generated/ts-client/api/resources/machines/index.d.ts +2 -0
  118. package/dist/types/sdk/generated/ts-client/api/resources/machines/types/MachinesListResponse.d.ts +6 -0
  119. package/dist/types/sdk/generated/ts-client/api/resources/machines/types/index.d.ts +1 -0
  120. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/Client.d.ts +212 -0
  121. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/index.d.ts +1 -0
  122. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersCompleteRequest.d.ts +14 -0
  123. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersConnectRequest.d.ts +12 -0
  124. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersDisconnectRequest.d.ts +12 -0
  125. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersLimitsRequest.d.ts +11 -0
  126. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersListRequest.d.ts +7 -0
  127. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersLoginStatusRequest.d.ts +10 -0
  128. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/MyProvidersSetKeyRequest.d.ts +13 -0
  129. package/dist/types/sdk/generated/ts-client/api/resources/providers/client/requests/index.d.ts +7 -0
  130. package/dist/types/sdk/generated/ts-client/api/resources/providers/index.d.ts +2 -0
  131. package/dist/types/sdk/generated/ts-client/api/resources/providers/types/MyProvidersConnectResponse.d.ts +10 -0
  132. package/dist/types/sdk/generated/ts-client/api/resources/providers/types/MyProvidersDisconnectRequestVia.d.ts +5 -0
  133. package/dist/types/sdk/generated/ts-client/api/resources/providers/types/MyProvidersListResponse.d.ts +4 -0
  134. package/dist/types/sdk/generated/ts-client/api/resources/providers/types/index.d.ts +3 -0
  135. package/dist/types/sdk/generated/ts-client/api/types/Agent.d.ts +84 -0
  136. package/dist/types/sdk/generated/ts-client/api/types/AgentCredential.d.ts +7 -0
  137. package/dist/types/sdk/generated/ts-client/api/types/AgentHooks.d.ts +11 -0
  138. package/dist/types/sdk/generated/ts-client/api/types/AgentLimits.d.ts +11 -0
  139. package/dist/types/sdk/generated/ts-client/api/types/AgentMessageOrigin.d.ts +12 -0
  140. package/dist/types/sdk/generated/ts-client/api/types/AgentProviderOption.d.ts +11 -0
  141. package/dist/types/sdk/generated/ts-client/api/types/AgentPublic.d.ts +18 -0
  142. package/dist/types/sdk/generated/ts-client/api/types/AgentTheme.d.ts +14 -0
  143. package/dist/types/sdk/generated/ts-client/api/types/BoxFileContent.d.ts +17 -0
  144. package/dist/types/sdk/generated/ts-client/api/types/BoxFileEntry.d.ts +15 -0
  145. package/dist/types/sdk/generated/ts-client/api/types/BoxFileList.d.ts +5 -0
  146. package/dist/types/sdk/generated/ts-client/api/types/BoxProfile.d.ts +9 -0
  147. package/dist/types/sdk/generated/ts-client/api/types/Chat.d.ts +39 -0
  148. package/dist/types/sdk/generated/ts-client/api/types/ChatContext.d.ts +18 -0
  149. package/dist/types/sdk/generated/ts-client/api/types/ChatDeleted.d.ts +15 -0
  150. package/dist/types/sdk/generated/ts-client/api/types/ChatSelection.d.ts +40 -0
  151. package/dist/types/sdk/generated/ts-client/api/types/ChatTask.d.ts +32 -0
  152. package/dist/types/sdk/generated/ts-client/api/types/ChatTaskOutput.d.ts +9 -0
  153. package/dist/types/sdk/generated/ts-client/api/types/ChatUsage.d.ts +19 -0
  154. package/dist/types/sdk/generated/ts-client/api/types/Deleted.d.ts +4 -0
  155. package/dist/types/sdk/generated/ts-client/api/types/DeviceFlow.d.ts +11 -0
  156. package/dist/types/sdk/generated/ts-client/api/types/ErrorBody.d.ts +12 -0
  157. package/dist/types/sdk/generated/ts-client/api/types/Error_.d.ts +4 -0
  158. package/dist/types/sdk/generated/ts-client/api/types/EventRange.d.ts +15 -0
  159. package/dist/types/sdk/generated/ts-client/api/types/EventsAgentId.d.ts +4 -0
  160. package/dist/types/sdk/generated/ts-client/api/types/EventsAgentSelection.d.ts +14 -0
  161. package/dist/types/sdk/generated/ts-client/api/types/EventsApprovalOption.d.ts +24 -0
  162. package/dist/types/sdk/generated/ts-client/api/types/EventsCapabilities.d.ts +146 -0
  163. package/dist/types/sdk/generated/ts-client/api/types/EventsChatId.d.ts +4 -0
  164. package/dist/types/sdk/generated/ts-client/api/types/EventsContentFile.d.ts +15 -0
  165. package/dist/types/sdk/generated/ts-client/api/types/EventsContentImage.d.ts +11 -0
  166. package/dist/types/sdk/generated/ts-client/api/types/EventsContentPart.d.ts +19 -0
  167. package/dist/types/sdk/generated/ts-client/api/types/EventsContentResource.d.ts +13 -0
  168. package/dist/types/sdk/generated/ts-client/api/types/EventsContentText.d.ts +7 -0
  169. package/dist/types/sdk/generated/ts-client/api/types/EventsDelta.d.ts +21 -0
  170. package/dist/types/sdk/generated/ts-client/api/types/EventsEAgentSwitchFailed.d.ts +21 -0
  171. package/dist/types/sdk/generated/ts-client/api/types/EventsEAgentSwitchFailedData.d.ts +9 -0
  172. package/dist/types/sdk/generated/ts-client/api/types/EventsEAgentSwitched.d.ts +21 -0
  173. package/dist/types/sdk/generated/ts-client/api/types/EventsEAgentSwitchedData.d.ts +12 -0
  174. package/dist/types/sdk/generated/ts-client/api/types/EventsEChatState.d.ts +21 -0
  175. package/dist/types/sdk/generated/ts-client/api/types/EventsEChatStateData.d.ts +17 -0
  176. package/dist/types/sdk/generated/ts-client/api/types/EventsEContextUpdated.d.ts +21 -0
  177. package/dist/types/sdk/generated/ts-client/api/types/EventsEContextUpdatedData.d.ts +20 -0
  178. package/dist/types/sdk/generated/ts-client/api/types/EventsEError.d.ts +21 -0
  179. package/dist/types/sdk/generated/ts-client/api/types/EventsEErrorData.d.ts +13 -0
  180. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemCompleted.d.ts +21 -0
  181. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemCompletedData.d.ts +8 -0
  182. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemDelta.d.ts +21 -0
  183. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemDeltaData.d.ts +7 -0
  184. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemRetracted.d.ts +21 -0
  185. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemRetractedData.d.ts +18 -0
  186. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemStarted.d.ts +21 -0
  187. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemStartedData.d.ts +8 -0
  188. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemUpdated.d.ts +21 -0
  189. package/dist/types/sdk/generated/ts-client/api/types/EventsEItemUpdatedData.d.ts +7 -0
  190. package/dist/types/sdk/generated/ts-client/api/types/EventsELimitsUpdated.d.ts +21 -0
  191. package/dist/types/sdk/generated/ts-client/api/types/EventsENotice.d.ts +21 -0
  192. package/dist/types/sdk/generated/ts-client/api/types/EventsENoticeData.d.ts +19 -0
  193. package/dist/types/sdk/generated/ts-client/api/types/EventsERunCompleted.d.ts +21 -0
  194. package/dist/types/sdk/generated/ts-client/api/types/EventsERunCompletedData.d.ts +35 -0
  195. package/dist/types/sdk/generated/ts-client/api/types/EventsERunStarted.d.ts +21 -0
  196. package/dist/types/sdk/generated/ts-client/api/types/EventsERunStartedData.d.ts +23 -0
  197. package/dist/types/sdk/generated/ts-client/api/types/EventsERunWaiting.d.ts +21 -0
  198. package/dist/types/sdk/generated/ts-client/api/types/EventsERunWaitingData.d.ts +22 -0
  199. package/dist/types/sdk/generated/ts-client/api/types/EventsESessionStarted.d.ts +21 -0
  200. package/dist/types/sdk/generated/ts-client/api/types/EventsESessionStartedData.d.ts +46 -0
  201. package/dist/types/sdk/generated/ts-client/api/types/EventsETaskUpdated.d.ts +21 -0
  202. package/dist/types/sdk/generated/ts-client/api/types/EventsETaskUpdatedData.d.ts +7 -0
  203. package/dist/types/sdk/generated/ts-client/api/types/EventsEUsageUpdated.d.ts +21 -0
  204. package/dist/types/sdk/generated/ts-client/api/types/EventsEUsageUpdatedData.d.ts +9 -0
  205. package/dist/types/sdk/generated/ts-client/api/types/EventsErrorCode.d.ts +21 -0
  206. package/dist/types/sdk/generated/ts-client/api/types/EventsEvent.d.ts +61 -0
  207. package/dist/types/sdk/generated/ts-client/api/types/EventsFailure.d.ts +17 -0
  208. package/dist/types/sdk/generated/ts-client/api/types/EventsFailureReason.d.ts +16 -0
  209. package/dist/types/sdk/generated/ts-client/api/types/EventsFileId.d.ts +4 -0
  210. package/dist/types/sdk/generated/ts-client/api/types/EventsHandoffInjected.d.ts +29 -0
  211. package/dist/types/sdk/generated/ts-client/api/types/EventsHandoffLost.d.ts +24 -0
  212. package/dist/types/sdk/generated/ts-client/api/types/EventsInboxEntry.d.ts +52 -0
  213. package/dist/types/sdk/generated/ts-client/api/types/EventsInboxState.d.ts +50 -0
  214. package/dist/types/sdk/generated/ts-client/api/types/EventsItem.d.ts +64 -0
  215. package/dist/types/sdk/generated/ts-client/api/types/EventsItemApproval.d.ts +93 -0
  216. package/dist/types/sdk/generated/ts-client/api/types/EventsItemCommand.d.ts +74 -0
  217. package/dist/types/sdk/generated/ts-client/api/types/EventsItemCompaction.d.ts +55 -0
  218. package/dist/types/sdk/generated/ts-client/api/types/EventsItemError.d.ts +40 -0
  219. package/dist/types/sdk/generated/ts-client/api/types/EventsItemFileChange.d.ts +73 -0
  220. package/dist/types/sdk/generated/ts-client/api/types/EventsItemFileSearch.d.ts +61 -0
  221. package/dist/types/sdk/generated/ts-client/api/types/EventsItemHandoff.d.ts +66 -0
  222. package/dist/types/sdk/generated/ts-client/api/types/EventsItemHook.d.ts +49 -0
  223. package/dist/types/sdk/generated/ts-client/api/types/EventsItemId.d.ts +4 -0
  224. package/dist/types/sdk/generated/ts-client/api/types/EventsItemNotification.d.ts +65 -0
  225. package/dist/types/sdk/generated/ts-client/api/types/EventsItemPlan.d.ts +65 -0
  226. package/dist/types/sdk/generated/ts-client/api/types/EventsItemProposedPlan.d.ts +43 -0
  227. package/dist/types/sdk/generated/ts-client/api/types/EventsItemQuestion.d.ts +81 -0
  228. package/dist/types/sdk/generated/ts-client/api/types/EventsItemReasoning.d.ts +47 -0
  229. package/dist/types/sdk/generated/ts-client/api/types/EventsItemSubagent.d.ts +56 -0
  230. package/dist/types/sdk/generated/ts-client/api/types/EventsItemText.d.ts +49 -0
  231. package/dist/types/sdk/generated/ts-client/api/types/EventsItemTimer.d.ts +46 -0
  232. package/dist/types/sdk/generated/ts-client/api/types/EventsItemToolCall.d.ts +76 -0
  233. package/dist/types/sdk/generated/ts-client/api/types/EventsItemUserMessage.d.ts +67 -0
  234. package/dist/types/sdk/generated/ts-client/api/types/EventsItemWebSearch.d.ts +74 -0
  235. package/dist/types/sdk/generated/ts-client/api/types/EventsLimitWindow.d.ts +26 -0
  236. package/dist/types/sdk/generated/ts-client/api/types/EventsLimits.d.ts +46 -0
  237. package/dist/types/sdk/generated/ts-client/api/types/EventsMessageId.d.ts +4 -0
  238. package/dist/types/sdk/generated/ts-client/api/types/EventsModelUsage.d.ts +19 -0
  239. package/dist/types/sdk/generated/ts-client/api/types/EventsNativeRef.d.ts +17 -0
  240. package/dist/types/sdk/generated/ts-client/api/types/EventsOrigin.d.ts +37 -0
  241. package/dist/types/sdk/generated/ts-client/api/types/EventsProvider.d.ts +4 -0
  242. package/dist/types/sdk/generated/ts-client/api/types/EventsRawFrame.d.ts +18 -0
  243. package/dist/types/sdk/generated/ts-client/api/types/EventsRequestId.d.ts +4 -0
  244. package/dist/types/sdk/generated/ts-client/api/types/EventsRunAgent.d.ts +27 -0
  245. package/dist/types/sdk/generated/ts-client/api/types/EventsRunId.d.ts +4 -0
  246. package/dist/types/sdk/generated/ts-client/api/types/EventsRunTrigger.d.ts +29 -0
  247. package/dist/types/sdk/generated/ts-client/api/types/EventsScheduledSwitch.d.ts +11 -0
  248. package/dist/types/sdk/generated/ts-client/api/types/EventsStopId.d.ts +4 -0
  249. package/dist/types/sdk/generated/ts-client/api/types/EventsSwitchId.d.ts +4 -0
  250. package/dist/types/sdk/generated/ts-client/api/types/EventsTask.d.ts +45 -0
  251. package/dist/types/sdk/generated/ts-client/api/types/EventsTaskId.d.ts +4 -0
  252. package/dist/types/sdk/generated/ts-client/api/types/EventsTaskProgress.d.ts +15 -0
  253. package/dist/types/sdk/generated/ts-client/api/types/EventsTimestamp.d.ts +4 -0
  254. package/dist/types/sdk/generated/ts-client/api/types/EventsToolOutput.d.ts +16 -0
  255. package/dist/types/sdk/generated/ts-client/api/types/EventsUsage.d.ts +34 -0
  256. package/dist/types/sdk/generated/ts-client/api/types/FileObject.d.ts +24 -0
  257. package/dist/types/sdk/generated/ts-client/api/types/HistoryEntry.d.ts +10 -0
  258. package/dist/types/sdk/generated/ts-client/api/types/HistoryPage.d.ts +24 -0
  259. package/dist/types/sdk/generated/ts-client/api/types/LoginStatus.d.ts +15 -0
  260. package/dist/types/sdk/generated/ts-client/api/types/Machine.d.ts +43 -0
  261. package/dist/types/sdk/generated/ts-client/api/types/McpServer.d.ts +13 -0
  262. package/dist/types/sdk/generated/ts-client/api/types/MessageReceipt.d.ts +21 -0
  263. package/dist/types/sdk/generated/ts-client/api/types/Metadata.d.ts +4 -0
  264. package/dist/types/sdk/generated/ts-client/api/types/ModelInfo.d.ts +12 -0
  265. package/dist/types/sdk/generated/ts-client/api/types/MyProviderStatus.d.ts +61 -0
  266. package/dist/types/sdk/generated/ts-client/api/types/OAuthFlow.d.ts +9 -0
  267. package/dist/types/sdk/generated/ts-client/api/types/Pairing.d.ts +18 -0
  268. package/dist/types/sdk/generated/ts-client/api/types/Placement.d.ts +38 -0
  269. package/dist/types/sdk/generated/ts-client/api/types/PreTurnHook.d.ts +21 -0
  270. package/dist/types/sdk/generated/ts-client/api/types/Principal.d.ts +30 -0
  271. package/dist/types/sdk/generated/ts-client/api/types/ProviderKind.d.ts +5 -0
  272. package/dist/types/sdk/generated/ts-client/api/types/ProviderLimits.d.ts +44 -0
  273. package/dist/types/sdk/generated/ts-client/api/types/ProviderStatus.d.ts +53 -0
  274. package/dist/types/sdk/generated/ts-client/api/types/QueueResult.d.ts +5 -0
  275. package/dist/types/sdk/generated/ts-client/api/types/RunSummary.d.ts +30 -0
  276. package/dist/types/sdk/generated/ts-client/api/types/Scope.d.ts +35 -0
  277. package/dist/types/sdk/generated/ts-client/api/types/SwitchResult.d.ts +19 -0
  278. package/dist/types/sdk/generated/ts-client/api/types/Timestamp.d.ts +4 -0
  279. package/dist/types/sdk/generated/ts-client/api/types/ToolPrincipal.d.ts +29 -0
  280. package/dist/types/sdk/generated/ts-client/api/types/index.d.ts +145 -0
  281. package/dist/types/sdk/generated/ts-client/auth/BearerAuthProvider.d.ts +20 -0
  282. package/dist/types/sdk/generated/ts-client/core/auth/AuthProvider.d.ts +8 -0
  283. package/dist/types/sdk/generated/ts-client/core/auth/AuthRequest.d.ts +9 -0
  284. package/dist/types/sdk/generated/ts-client/core/auth/BasicAuth.d.ts +8 -0
  285. package/dist/types/sdk/generated/ts-client/core/auth/BearerToken.d.ts +7 -0
  286. package/dist/types/sdk/generated/ts-client/core/auth/NoOpAuthProvider.d.ts +5 -0
  287. package/dist/types/sdk/generated/ts-client/core/auth/index.d.ts +5 -0
  288. package/dist/types/sdk/generated/ts-client/core/base64.d.ts +2 -0
  289. package/dist/types/sdk/generated/ts-client/core/exports.d.ts +3 -0
  290. package/dist/types/sdk/generated/ts-client/core/fetcher/APIResponse.d.ts +20 -0
  291. package/dist/types/sdk/generated/ts-client/core/fetcher/BinaryResponse.d.ts +19 -0
  292. package/dist/types/sdk/generated/ts-client/core/fetcher/EndpointMetadata.d.ts +13 -0
  293. package/dist/types/sdk/generated/ts-client/core/fetcher/EndpointSupplier.d.ts +12 -0
  294. package/dist/types/sdk/generated/ts-client/core/fetcher/Fetcher.d.ts +56 -0
  295. package/dist/types/sdk/generated/ts-client/core/fetcher/Headers.d.ts +2 -0
  296. package/dist/types/sdk/generated/ts-client/core/fetcher/HttpResponsePromise.d.ts +58 -0
  297. package/dist/types/sdk/generated/ts-client/core/fetcher/RawResponse.d.ts +29 -0
  298. package/dist/types/sdk/generated/ts-client/core/fetcher/Supplier.d.ts +4 -0
  299. package/dist/types/sdk/generated/ts-client/core/fetcher/createRequestUrl.d.ts +1 -0
  300. package/dist/types/sdk/generated/ts-client/core/fetcher/getErrorResponseBody.d.ts +1 -0
  301. package/dist/types/sdk/generated/ts-client/core/fetcher/getFetchFn.d.ts +1 -0
  302. package/dist/types/sdk/generated/ts-client/core/fetcher/getHeader.d.ts +1 -0
  303. package/dist/types/sdk/generated/ts-client/core/fetcher/getRequestBody.d.ts +7 -0
  304. package/dist/types/sdk/generated/ts-client/core/fetcher/getResponseBody.d.ts +17 -0
  305. package/dist/types/sdk/generated/ts-client/core/fetcher/index.d.ts +13 -0
  306. package/dist/types/sdk/generated/ts-client/core/fetcher/makePassthroughRequest.d.ts +49 -0
  307. package/dist/types/sdk/generated/ts-client/core/fetcher/makeRequest.d.ts +11 -0
  308. package/dist/types/sdk/generated/ts-client/core/fetcher/redactUrl.d.ts +2 -0
  309. package/dist/types/sdk/generated/ts-client/core/fetcher/requestWithRetries.d.ts +1 -0
  310. package/dist/types/sdk/generated/ts-client/core/fetcher/signals.d.ts +6 -0
  311. package/dist/types/sdk/generated/ts-client/core/file/exports.d.ts +1 -0
  312. package/dist/types/sdk/generated/ts-client/core/file/file.d.ts +10 -0
  313. package/dist/types/sdk/generated/ts-client/core/file/index.d.ts +2 -0
  314. package/dist/types/sdk/generated/ts-client/core/file/types.d.ts +66 -0
  315. package/dist/types/sdk/generated/ts-client/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  316. package/dist/types/sdk/generated/ts-client/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  317. package/dist/types/sdk/generated/ts-client/core/form-data-utils/index.d.ts +2 -0
  318. package/dist/types/sdk/generated/ts-client/core/headers.d.ts +2 -0
  319. package/dist/types/sdk/generated/ts-client/core/index.d.ts +11 -0
  320. package/dist/types/sdk/generated/ts-client/core/json.d.ts +15 -0
  321. package/dist/types/sdk/generated/ts-client/core/logging/exports.d.ts +18 -0
  322. package/dist/types/sdk/generated/ts-client/core/logging/index.d.ts +1 -0
  323. package/dist/types/sdk/generated/ts-client/core/logging/logger.d.ts +126 -0
  324. package/dist/types/sdk/generated/ts-client/core/pagination/Page.d.ts +33 -0
  325. package/dist/types/sdk/generated/ts-client/core/pagination/exports.d.ts +1 -0
  326. package/dist/types/sdk/generated/ts-client/core/pagination/index.d.ts +1 -0
  327. package/dist/types/sdk/generated/ts-client/core/requestBody.d.ts +12 -0
  328. package/dist/types/sdk/generated/ts-client/core/runtime/index.d.ts +1 -0
  329. package/dist/types/sdk/generated/ts-client/core/runtime/runtime.d.ts +28 -0
  330. package/dist/types/sdk/generated/ts-client/core/stream/Stream.d.ts +103 -0
  331. package/dist/types/sdk/generated/ts-client/core/stream/index.d.ts +2 -0
  332. package/dist/types/sdk/generated/ts-client/core/url/QueryStringBuilder.d.ts +47 -0
  333. package/dist/types/sdk/generated/ts-client/core/url/encodePathParam.d.ts +3 -0
  334. package/dist/types/sdk/generated/ts-client/core/url/index.d.ts +4 -0
  335. package/dist/types/sdk/generated/ts-client/core/url/join.d.ts +1 -0
  336. package/dist/types/sdk/generated/ts-client/core/url/qs.d.ts +7 -0
  337. package/dist/types/sdk/generated/ts-client/core/utils/index.d.ts +1 -0
  338. package/dist/types/sdk/generated/ts-client/core/utils/setObjectProperty.d.ts +12 -0
  339. package/dist/types/sdk/generated/ts-client/environments.d.ts +4 -0
  340. package/dist/types/sdk/generated/ts-client/errors/SmoothAgentApiError.d.ts +15 -0
  341. package/dist/types/sdk/generated/ts-client/errors/SmoothAgentApiTimeoutError.d.ts +6 -0
  342. package/dist/types/sdk/generated/ts-client/errors/handleNonStatusCodeError.d.ts +2 -0
  343. package/dist/types/sdk/generated/ts-client/errors/index.d.ts +2 -0
  344. package/dist/types/sdk/generated/ts-client/exports.d.ts +1 -0
  345. package/dist/types/sdk/generated/ts-client/index.d.ts +6 -0
  346. package/dist/types/sdk/ts/client/src/index.d.ts +85 -0
  347. package/dist/types/sdk/ts/client/src/testing.d.ts +71 -0
  348. package/dist/types/sdk/ts/core-live/src/auth.d.ts +40 -0
  349. package/dist/types/sdk/ts/core-live/src/backoff.d.ts +9 -0
  350. package/dist/types/sdk/ts/core-live/src/client.d.ts +89 -0
  351. package/dist/types/sdk/ts/core-live/src/deps.d.ts +63 -0
  352. package/dist/types/sdk/ts/core-live/src/edge.d.ts +73 -0
  353. package/dist/types/sdk/ts/core-live/src/feed.d.ts +66 -0
  354. package/dist/types/sdk/ts/core-live/src/ids.d.ts +7 -0
  355. package/dist/types/sdk/ts/core-live/src/index.d.ts +11 -0
  356. package/dist/types/sdk/ts/core-live/src/native.d.ts +7 -0
  357. package/dist/types/sdk/ts/core-live/src/prompt.d.ts +81 -0
  358. package/dist/types/sdk/ts/core-live/src/providers.d.ts +187 -0
  359. package/dist/types/sdk/ts/core-live/src/reducers/contract.d.ts +18 -0
  360. package/dist/types/sdk/ts/core-live/src/rest.d.ts +48 -0
  361. package/dist/types/sdk/ts/core-live/src/stream.d.ts +145 -0
  362. package/dist/types/sdk/ts/core-live/src/types.d.ts +55 -0
  363. package/dist/types/sdk/ts/core-live/src/wasm/bytes.d.ts +1 -0
  364. package/dist/types/sdk/ts/core-live/src/wasm/empty.d.ts +1 -0
  365. package/dist/types/sdk/ts/core-live/src/wasm/live.d.ts +278 -0
  366. package/dist/types/sdk/ts/core-live/src/watch.d.ts +299 -0
  367. package/package.json +39 -4
@@ -0,0 +1,970 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as SmoothAgentApi from "../../../index.js";
5
+ export declare namespace ChatsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ChatsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ChatsClient.Options>;
12
+ constructor(options: ChatsClient.Options);
13
+ /**
14
+ * Ordenada por `updatedAt` desc (a lateral). Usuário: só os dele em agentes que ainda pode usar.
15
+ *
16
+ * @param {SmoothAgentApi.ChatsListRequest} request
17
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link SmoothAgentApi.BadRequestError}
20
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
21
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
22
+ * @throws {@link SmoothAgentApi.ForbiddenError}
23
+ * @throws {@link SmoothAgentApi.NotFoundError}
24
+ * @throws {@link SmoothAgentApi.ConflictError}
25
+ * @throws {@link SmoothAgentApi.GoneError}
26
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
27
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
28
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
29
+ * @throws {@link SmoothAgentApi.InternalServerError}
30
+ * @throws {@link SmoothAgentApi.BadGatewayError}
31
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
32
+ * @throws {@link errors.SmoothAgentApiError}
33
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
34
+ *
35
+ * @example
36
+ * await client.chats.list()
37
+ */
38
+ list(request?: SmoothAgentApi.ChatsListRequest, requestOptions?: ChatsClient.RequestOptions): Promise<core.Page<SmoothAgentApi.Chat, SmoothAgentApi.ChatsListResponse>>;
39
+ /**
40
+ * @param {SmoothAgentApi.CreateChat} request
41
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link SmoothAgentApi.BadRequestError}
44
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
45
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
46
+ * @throws {@link SmoothAgentApi.ForbiddenError}
47
+ * @throws {@link SmoothAgentApi.NotFoundError}
48
+ * @throws {@link SmoothAgentApi.ConflictError}
49
+ * @throws {@link SmoothAgentApi.GoneError}
50
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
51
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
52
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
53
+ * @throws {@link SmoothAgentApi.InternalServerError}
54
+ * @throws {@link SmoothAgentApi.BadGatewayError}
55
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
56
+ * @throws {@link errors.SmoothAgentApiError}
57
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
58
+ *
59
+ * @example
60
+ * await client.chats.create({
61
+ * agentId: "agentId"
62
+ * })
63
+ */
64
+ create(request: SmoothAgentApi.CreateChat, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.Chat>;
65
+ private __create;
66
+ /**
67
+ * @param {SmoothAgentApi.ChatsGetRequest} request
68
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @throws {@link SmoothAgentApi.BadRequestError}
71
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
72
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
73
+ * @throws {@link SmoothAgentApi.ForbiddenError}
74
+ * @throws {@link SmoothAgentApi.NotFoundError}
75
+ * @throws {@link SmoothAgentApi.ConflictError}
76
+ * @throws {@link SmoothAgentApi.GoneError}
77
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
78
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
79
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
80
+ * @throws {@link SmoothAgentApi.InternalServerError}
81
+ * @throws {@link SmoothAgentApi.BadGatewayError}
82
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
83
+ * @throws {@link errors.SmoothAgentApiError}
84
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
85
+ *
86
+ * @example
87
+ * await client.chats.get({
88
+ * id: "id"
89
+ * })
90
+ */
91
+ get(request: SmoothAgentApi.ChatsGetRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.Chat>;
92
+ private __get;
93
+ /**
94
+ * Apaga o chat, o log e a box própria (a instância só é destruída aqui).O chat some NA HORA (404 em toda rota, inclusive o `/live`; o socket aberto recebe `bye`). A limpeza da box própria
95
+ * (Detona) segue em segundo plano — `cleanup: pending` — e um cron repete até destruir (com teto e alerta).
96
+ *
97
+ * @param {SmoothAgentApi.ChatsDeleteRequest} request
98
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
99
+ *
100
+ * @throws {@link SmoothAgentApi.BadRequestError}
101
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
102
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
103
+ * @throws {@link SmoothAgentApi.ForbiddenError}
104
+ * @throws {@link SmoothAgentApi.NotFoundError}
105
+ * @throws {@link SmoothAgentApi.ConflictError}
106
+ * @throws {@link SmoothAgentApi.GoneError}
107
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
108
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
109
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
110
+ * @throws {@link SmoothAgentApi.InternalServerError}
111
+ * @throws {@link SmoothAgentApi.BadGatewayError}
112
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
113
+ * @throws {@link errors.SmoothAgentApiError}
114
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
115
+ *
116
+ * @example
117
+ * await client.chats.delete({
118
+ * id: "id"
119
+ * })
120
+ */
121
+ delete(request: SmoothAgentApi.ChatsDeleteRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatDeleted>;
122
+ private __delete;
123
+ /**
124
+ * @param {SmoothAgentApi.ChatsUpdateRequest} request
125
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
126
+ *
127
+ * @throws {@link SmoothAgentApi.BadRequestError}
128
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
129
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
130
+ * @throws {@link SmoothAgentApi.ForbiddenError}
131
+ * @throws {@link SmoothAgentApi.NotFoundError}
132
+ * @throws {@link SmoothAgentApi.ConflictError}
133
+ * @throws {@link SmoothAgentApi.GoneError}
134
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
135
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
136
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
137
+ * @throws {@link SmoothAgentApi.InternalServerError}
138
+ * @throws {@link SmoothAgentApi.BadGatewayError}
139
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
140
+ * @throws {@link errors.SmoothAgentApiError}
141
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
142
+ *
143
+ * @example
144
+ * await client.chats.update({
145
+ * id: "id"
146
+ * })
147
+ */
148
+ update(request: SmoothAgentApi.ChatsUpdateRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.Chat>;
149
+ private __update;
150
+ /**
151
+ * `forbidden {reason:'grant'}` sem acesso ao agente novo; `provider_not_connected` se o
152
+ * modelo/provedor novo não tem credencial; `invalid_request {param:'model'|'effort'}` fora das
153
+ * opções. O grant é rechecado na hora de efetivar (troca agendada + grant revogado =
154
+ * `agent.switch_failed`).
155
+ *
156
+ * @param {SmoothAgentApi.SwitchAgent} request
157
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
158
+ *
159
+ * @throws {@link SmoothAgentApi.BadRequestError}
160
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
161
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
162
+ * @throws {@link SmoothAgentApi.ForbiddenError}
163
+ * @throws {@link SmoothAgentApi.NotFoundError}
164
+ * @throws {@link SmoothAgentApi.ConflictError}
165
+ * @throws {@link SmoothAgentApi.GoneError}
166
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
167
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
168
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
169
+ * @throws {@link SmoothAgentApi.InternalServerError}
170
+ * @throws {@link SmoothAgentApi.BadGatewayError}
171
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
172
+ * @throws {@link errors.SmoothAgentApiError}
173
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
174
+ *
175
+ * @example
176
+ * await client.chats.switchAgent({
177
+ * id: "id",
178
+ * agentId: "agentId"
179
+ * })
180
+ */
181
+ switchAgent(request: SmoothAgentApi.SwitchAgent, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.SwitchResult>;
182
+ private __switchAgent;
183
+ /**
184
+ * Cancela a troca pendente: vira uma troca pro agente ATUAL, que a fila trata como "limpa a pendente, não
185
+ * aplica nada" (sem `agent.switched`, sem handoff). Sem pendente = nada muda. `ref` opcional =
186
+ * idempotência (vira o `switchId`).
187
+ *
188
+ * @param {SmoothAgentApi.CancelSwitchChatsRequest} request
189
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
190
+ *
191
+ * @throws {@link SmoothAgentApi.BadRequestError}
192
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
193
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
194
+ * @throws {@link SmoothAgentApi.ForbiddenError}
195
+ * @throws {@link SmoothAgentApi.NotFoundError}
196
+ * @throws {@link SmoothAgentApi.ConflictError}
197
+ * @throws {@link SmoothAgentApi.GoneError}
198
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
199
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
200
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
201
+ * @throws {@link SmoothAgentApi.InternalServerError}
202
+ * @throws {@link SmoothAgentApi.BadGatewayError}
203
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
204
+ * @throws {@link errors.SmoothAgentApiError}
205
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
206
+ *
207
+ * @example
208
+ * await client.chats.cancelSwitch({
209
+ * id: "id"
210
+ * })
211
+ */
212
+ cancelSwitch(request: SmoothAgentApi.CancelSwitchChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.Chat>;
213
+ private __cancelSwitch;
214
+ /**
215
+ * @param {SmoothAgentApi.GetContextChatsRequest} request
216
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
217
+ *
218
+ * @throws {@link SmoothAgentApi.BadRequestError}
219
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
220
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
221
+ * @throws {@link SmoothAgentApi.ForbiddenError}
222
+ * @throws {@link SmoothAgentApi.NotFoundError}
223
+ * @throws {@link SmoothAgentApi.ConflictError}
224
+ * @throws {@link SmoothAgentApi.GoneError}
225
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
226
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
227
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
228
+ * @throws {@link SmoothAgentApi.InternalServerError}
229
+ * @throws {@link SmoothAgentApi.BadGatewayError}
230
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
231
+ * @throws {@link errors.SmoothAgentApiError}
232
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
233
+ *
234
+ * @example
235
+ * await client.chats.getContext({
236
+ * id: "id"
237
+ * })
238
+ */
239
+ getContext(request: SmoothAgentApi.GetContextChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatContext>;
240
+ private __getContext;
241
+ /**
242
+ * SSE só-leitura (`after` = cursor). O WebSocket (com comandos) é `/live`, do `realtime`.
243
+ */
244
+ events(request: SmoothAgentApi.ChatsEventsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<core.Stream<SmoothAgentApi.EventsEvent>>;
245
+ private __events;
246
+ /**
247
+ * O buraco em JSON: eventos `(after, until]`.
248
+ *
249
+ * @param {SmoothAgentApi.EventsRangeChatsRequest} request
250
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
251
+ *
252
+ * @throws {@link SmoothAgentApi.BadRequestError}
253
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
254
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
255
+ * @throws {@link SmoothAgentApi.ForbiddenError}
256
+ * @throws {@link SmoothAgentApi.NotFoundError}
257
+ * @throws {@link SmoothAgentApi.ConflictError}
258
+ * @throws {@link SmoothAgentApi.GoneError}
259
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
260
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
261
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
262
+ * @throws {@link SmoothAgentApi.InternalServerError}
263
+ * @throws {@link SmoothAgentApi.BadGatewayError}
264
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
265
+ * @throws {@link errors.SmoothAgentApiError}
266
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
267
+ *
268
+ * @example
269
+ * await client.chats.eventsRange({
270
+ * id: "id",
271
+ * after: 1000000
272
+ * })
273
+ */
274
+ eventsRange(request: SmoothAgentApi.EventsRangeChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.EventRange>;
275
+ private __eventsRange;
276
+ /**
277
+ * `path` relativo ao diretório de trabalho do chat (sem `..`); ausente = a raiz.
278
+ *
279
+ * @param {SmoothAgentApi.ChatBoxListFilesRequest} request
280
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
281
+ *
282
+ * @throws {@link SmoothAgentApi.BadRequestError}
283
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
284
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
285
+ * @throws {@link SmoothAgentApi.ForbiddenError}
286
+ * @throws {@link SmoothAgentApi.NotFoundError}
287
+ * @throws {@link SmoothAgentApi.ConflictError}
288
+ * @throws {@link SmoothAgentApi.GoneError}
289
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
290
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
291
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
292
+ * @throws {@link SmoothAgentApi.InternalServerError}
293
+ * @throws {@link SmoothAgentApi.BadGatewayError}
294
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
295
+ * @throws {@link errors.SmoothAgentApiError}
296
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
297
+ *
298
+ * @example
299
+ * await client.chats.chatBoxListFiles({
300
+ * id: "id"
301
+ * })
302
+ */
303
+ chatBoxListFiles(request: SmoothAgentApi.ChatBoxListFilesRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.BoxFileList>;
304
+ private __chatBoxListFiles;
305
+ /**
306
+ * @param {SmoothAgentApi.ChatBoxReadFileRequest} request
307
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
308
+ *
309
+ * @throws {@link SmoothAgentApi.BadRequestError}
310
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
311
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
312
+ * @throws {@link SmoothAgentApi.ForbiddenError}
313
+ * @throws {@link SmoothAgentApi.NotFoundError}
314
+ * @throws {@link SmoothAgentApi.ConflictError}
315
+ * @throws {@link SmoothAgentApi.GoneError}
316
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
317
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
318
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
319
+ * @throws {@link SmoothAgentApi.InternalServerError}
320
+ * @throws {@link SmoothAgentApi.BadGatewayError}
321
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
322
+ * @throws {@link errors.SmoothAgentApiError}
323
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
324
+ *
325
+ * @example
326
+ * await client.chats.chatBoxReadFile({
327
+ * id: "id",
328
+ * path: "path"
329
+ * })
330
+ */
331
+ chatBoxReadFile(request: SmoothAgentApi.ChatBoxReadFileRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.BoxFileContent>;
332
+ private __chatBoxReadFile;
333
+ /**
334
+ * Histórico paginado por itens fechados. Cursores = número do evento:
335
+ * `before=N` (rolar pra cima), `after=N` (pra baixo / tapar buraco), `around=<msg_…|N>`
336
+ * (abrir numa mensagem, metade pra cada lado), `anchor=end` (pular pro fim). `limit` 1–200,
337
+ * padrão 50. Mais de um âncora = `invalid_request`.
338
+ *
339
+ * @param {SmoothAgentApi.ChatsHistoryRequest} request
340
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
341
+ *
342
+ * @throws {@link SmoothAgentApi.BadRequestError}
343
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
344
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
345
+ * @throws {@link SmoothAgentApi.ForbiddenError}
346
+ * @throws {@link SmoothAgentApi.NotFoundError}
347
+ * @throws {@link SmoothAgentApi.ConflictError}
348
+ * @throws {@link SmoothAgentApi.GoneError}
349
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
350
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
351
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
352
+ * @throws {@link SmoothAgentApi.InternalServerError}
353
+ * @throws {@link SmoothAgentApi.BadGatewayError}
354
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
355
+ * @throws {@link errors.SmoothAgentApiError}
356
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
357
+ *
358
+ * @example
359
+ * await client.chats.history({
360
+ * id: "id"
361
+ * })
362
+ */
363
+ history(request: SmoothAgentApi.ChatsHistoryRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.HistoryPage>;
364
+ private __history;
365
+ /**
366
+ * Janelas de uso da CREDENCIAL QUE RODA ESTE CHAT (a do agente ou a do usuário — a tela não
367
+ * precisa saber qual). Mesmo formato de `/me/providers/{p}/limits`.
368
+ *
369
+ * @param {SmoothAgentApi.ChatsLimitsRequest} request
370
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
371
+ *
372
+ * @throws {@link SmoothAgentApi.BadRequestError}
373
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
374
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
375
+ * @throws {@link SmoothAgentApi.ForbiddenError}
376
+ * @throws {@link SmoothAgentApi.NotFoundError}
377
+ * @throws {@link SmoothAgentApi.ConflictError}
378
+ * @throws {@link SmoothAgentApi.GoneError}
379
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
380
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
381
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
382
+ * @throws {@link SmoothAgentApi.InternalServerError}
383
+ * @throws {@link SmoothAgentApi.BadGatewayError}
384
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
385
+ * @throws {@link errors.SmoothAgentApiError}
386
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
387
+ *
388
+ * @example
389
+ * await client.chats.limits({
390
+ * id: "id"
391
+ * })
392
+ */
393
+ limits(request: SmoothAgentApi.ChatsLimitsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ProviderLimits>;
394
+ private __limits;
395
+ /**
396
+ * @param {SmoothAgentApi.SendMessage} request
397
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
398
+ *
399
+ * @throws {@link SmoothAgentApi.BadRequestError}
400
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
401
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
402
+ * @throws {@link SmoothAgentApi.ForbiddenError}
403
+ * @throws {@link SmoothAgentApi.NotFoundError}
404
+ * @throws {@link SmoothAgentApi.ConflictError}
405
+ * @throws {@link SmoothAgentApi.GoneError}
406
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
407
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
408
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
409
+ * @throws {@link SmoothAgentApi.InternalServerError}
410
+ * @throws {@link SmoothAgentApi.BadGatewayError}
411
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
412
+ * @throws {@link errors.SmoothAgentApiError}
413
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
414
+ *
415
+ * @example
416
+ * await client.chats.send({
417
+ * id: "id",
418
+ * content: "content"
419
+ * })
420
+ */
421
+ send(request: SmoothAgentApi.SendMessage, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatsSendResponse>;
422
+ private __send;
423
+ /**
424
+ * Chat num computador (máquina `local`) desligado = 409 `machine_offline`, qualquer `whenOffline`: nada fica pendente em silêncio.
425
+ *
426
+ * @param {SmoothAgentApi.ChatsMessageRequest} request
427
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
428
+ *
429
+ * @throws {@link SmoothAgentApi.BadRequestError}
430
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
431
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
432
+ * @throws {@link SmoothAgentApi.ForbiddenError}
433
+ * @throws {@link SmoothAgentApi.NotFoundError}
434
+ * @throws {@link SmoothAgentApi.ConflictError}
435
+ * @throws {@link SmoothAgentApi.GoneError}
436
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
437
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
438
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
439
+ * @throws {@link SmoothAgentApi.InternalServerError}
440
+ * @throws {@link SmoothAgentApi.BadGatewayError}
441
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
442
+ * @throws {@link errors.SmoothAgentApiError}
443
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
444
+ *
445
+ * @example
446
+ * await client.chats.message({
447
+ * id: "id",
448
+ * messageId: "messageId"
449
+ * })
450
+ */
451
+ message(request: SmoothAgentApi.ChatsMessageRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.MessageReceipt>;
452
+ private __message;
453
+ /**
454
+ * Reenvia uma mensagem que voltou `notDelivered` (mesmo `messageId`; repetir é inofensivo).
455
+ *
456
+ * @param {SmoothAgentApi.ChatsResendRequest} request
457
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
458
+ *
459
+ * @throws {@link SmoothAgentApi.BadRequestError}
460
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
461
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
462
+ * @throws {@link SmoothAgentApi.ForbiddenError}
463
+ * @throws {@link SmoothAgentApi.NotFoundError}
464
+ * @throws {@link SmoothAgentApi.ConflictError}
465
+ * @throws {@link SmoothAgentApi.GoneError}
466
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
467
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
468
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
469
+ * @throws {@link SmoothAgentApi.InternalServerError}
470
+ * @throws {@link SmoothAgentApi.BadGatewayError}
471
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
472
+ * @throws {@link errors.SmoothAgentApiError}
473
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
474
+ *
475
+ * @example
476
+ * await client.chats.resend({
477
+ * id: "id",
478
+ * messageId: "messageId"
479
+ * })
480
+ */
481
+ resend(request: SmoothAgentApi.ChatsResendRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatsResendResponse>;
482
+ private __resend;
483
+ /**
484
+ * Pendentes, fila, notDelivered, STOP pendente, troca agendada — e a `version`.
485
+ *
486
+ * @param {SmoothAgentApi.ChatsQueueRequest} request
487
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
488
+ *
489
+ * @throws {@link SmoothAgentApi.BadRequestError}
490
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
491
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
492
+ * @throws {@link SmoothAgentApi.ForbiddenError}
493
+ * @throws {@link SmoothAgentApi.NotFoundError}
494
+ * @throws {@link SmoothAgentApi.ConflictError}
495
+ * @throws {@link SmoothAgentApi.GoneError}
496
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
497
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
498
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
499
+ * @throws {@link SmoothAgentApi.InternalServerError}
500
+ * @throws {@link SmoothAgentApi.BadGatewayError}
501
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
502
+ * @throws {@link errors.SmoothAgentApiError}
503
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
504
+ *
505
+ * @example
506
+ * await client.chats.queue({
507
+ * id: "id"
508
+ * })
509
+ */
510
+ queue(request: SmoothAgentApi.ChatsQueueRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.EventsInboxState>;
511
+ private __queue;
512
+ /**
513
+ * @param {SmoothAgentApi.ReorderQueueChatsRequest} request
514
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
515
+ *
516
+ * @throws {@link SmoothAgentApi.BadRequestError}
517
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
518
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
519
+ * @throws {@link SmoothAgentApi.ForbiddenError}
520
+ * @throws {@link SmoothAgentApi.NotFoundError}
521
+ * @throws {@link SmoothAgentApi.ConflictError}
522
+ * @throws {@link SmoothAgentApi.GoneError}
523
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
524
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
525
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
526
+ * @throws {@link SmoothAgentApi.InternalServerError}
527
+ * @throws {@link SmoothAgentApi.BadGatewayError}
528
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
529
+ * @throws {@link errors.SmoothAgentApiError}
530
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
531
+ *
532
+ * @example
533
+ * await client.chats.reorderQueue({
534
+ * id: "id",
535
+ * baseVersion: 1,
536
+ * order: ["order"]
537
+ * })
538
+ */
539
+ reorderQueue(request: SmoothAgentApi.ReorderQueueChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.QueueResult>;
540
+ private __reorderQueue;
541
+ /**
542
+ * @param {SmoothAgentApi.RemoveQueuedChatsRequest} request
543
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
544
+ *
545
+ * @throws {@link SmoothAgentApi.BadRequestError}
546
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
547
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
548
+ * @throws {@link SmoothAgentApi.ForbiddenError}
549
+ * @throws {@link SmoothAgentApi.NotFoundError}
550
+ * @throws {@link SmoothAgentApi.ConflictError}
551
+ * @throws {@link SmoothAgentApi.GoneError}
552
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
553
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
554
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
555
+ * @throws {@link SmoothAgentApi.InternalServerError}
556
+ * @throws {@link SmoothAgentApi.BadGatewayError}
557
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
558
+ * @throws {@link errors.SmoothAgentApiError}
559
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
560
+ *
561
+ * @example
562
+ * await client.chats.removeQueued({
563
+ * id: "id",
564
+ * messageId: "messageId",
565
+ * baseVersion: 1
566
+ * })
567
+ */
568
+ removeQueued(request: SmoothAgentApi.RemoveQueuedChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.QueueResult>;
569
+ private __removeQueued;
570
+ /**
571
+ * @param {SmoothAgentApi.EditQueuedChatsRequest} request
572
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
573
+ *
574
+ * @throws {@link SmoothAgentApi.BadRequestError}
575
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
576
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
577
+ * @throws {@link SmoothAgentApi.ForbiddenError}
578
+ * @throws {@link SmoothAgentApi.NotFoundError}
579
+ * @throws {@link SmoothAgentApi.ConflictError}
580
+ * @throws {@link SmoothAgentApi.GoneError}
581
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
582
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
583
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
584
+ * @throws {@link SmoothAgentApi.InternalServerError}
585
+ * @throws {@link SmoothAgentApi.BadGatewayError}
586
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
587
+ * @throws {@link errors.SmoothAgentApiError}
588
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
589
+ *
590
+ * @example
591
+ * await client.chats.editQueued({
592
+ * id: "id",
593
+ * messageId: "messageId",
594
+ * baseVersion: 1,
595
+ * content: "content"
596
+ * })
597
+ */
598
+ editQueued(request: SmoothAgentApi.EditQueuedChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.QueueResult>;
599
+ private __editQueued;
600
+ /**
601
+ * Promove a steer (ou começa, se o agente parou).
602
+ *
603
+ * @param {SmoothAgentApi.SendNowChatsRequest} request
604
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
605
+ *
606
+ * @throws {@link SmoothAgentApi.BadRequestError}
607
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
608
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
609
+ * @throws {@link SmoothAgentApi.ForbiddenError}
610
+ * @throws {@link SmoothAgentApi.NotFoundError}
611
+ * @throws {@link SmoothAgentApi.ConflictError}
612
+ * @throws {@link SmoothAgentApi.GoneError}
613
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
614
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
615
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
616
+ * @throws {@link SmoothAgentApi.InternalServerError}
617
+ * @throws {@link SmoothAgentApi.BadGatewayError}
618
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
619
+ * @throws {@link errors.SmoothAgentApiError}
620
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
621
+ *
622
+ * @example
623
+ * await client.chats.sendNow({
624
+ * id: "id",
625
+ * messageId: "messageId",
626
+ * baseVersion: 1
627
+ * })
628
+ */
629
+ sendNow(request: SmoothAgentApi.SendNowChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.QueueResult>;
630
+ private __sendNow;
631
+ /**
632
+ * Marca como lido até `seq` (padrão = o último); monotônico. Só principal de usuário (P8).
633
+ *
634
+ * @param {SmoothAgentApi.MarkReadChatsRequest} request
635
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
636
+ *
637
+ * @throws {@link SmoothAgentApi.BadRequestError}
638
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
639
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
640
+ * @throws {@link SmoothAgentApi.ForbiddenError}
641
+ * @throws {@link SmoothAgentApi.NotFoundError}
642
+ * @throws {@link SmoothAgentApi.ConflictError}
643
+ * @throws {@link SmoothAgentApi.GoneError}
644
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
645
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
646
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
647
+ * @throws {@link SmoothAgentApi.InternalServerError}
648
+ * @throws {@link SmoothAgentApi.BadGatewayError}
649
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
650
+ * @throws {@link errors.SmoothAgentApiError}
651
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
652
+ *
653
+ * @example
654
+ * await client.chats.markRead({
655
+ * id: "id"
656
+ * })
657
+ */
658
+ markRead(request: SmoothAgentApi.MarkReadChatsRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.MarkReadChatsResponse>;
659
+ private __markRead;
660
+ /**
661
+ * Sessão nova do provedor (o recycle do chat); `clearHistory` também esconde o histórico até aqui.
662
+ *
663
+ * @param {SmoothAgentApi.ChatsResetRequest} request
664
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
665
+ *
666
+ * @throws {@link SmoothAgentApi.BadRequestError}
667
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
668
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
669
+ * @throws {@link SmoothAgentApi.ForbiddenError}
670
+ * @throws {@link SmoothAgentApi.NotFoundError}
671
+ * @throws {@link SmoothAgentApi.ConflictError}
672
+ * @throws {@link SmoothAgentApi.GoneError}
673
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
674
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
675
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
676
+ * @throws {@link SmoothAgentApi.InternalServerError}
677
+ * @throws {@link SmoothAgentApi.BadGatewayError}
678
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
679
+ * @throws {@link errors.SmoothAgentApiError}
680
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
681
+ *
682
+ * @example
683
+ * await client.chats.reset({
684
+ * id: "id"
685
+ * })
686
+ */
687
+ reset(request: SmoothAgentApi.ChatsResetRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.Chat>;
688
+ private __reset;
689
+ /**
690
+ * @param {SmoothAgentApi.ChatsRespondRequest} request
691
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
692
+ *
693
+ * @throws {@link SmoothAgentApi.BadRequestError}
694
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
695
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
696
+ * @throws {@link SmoothAgentApi.ForbiddenError}
697
+ * @throws {@link SmoothAgentApi.NotFoundError}
698
+ * @throws {@link SmoothAgentApi.ConflictError}
699
+ * @throws {@link SmoothAgentApi.GoneError}
700
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
701
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
702
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
703
+ * @throws {@link SmoothAgentApi.InternalServerError}
704
+ * @throws {@link SmoothAgentApi.BadGatewayError}
705
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
706
+ * @throws {@link errors.SmoothAgentApiError}
707
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
708
+ *
709
+ * @example
710
+ * await client.chats.respond({
711
+ * id: "id",
712
+ * requestId: "requestId",
713
+ * answer: {
714
+ * "key": "value"
715
+ * }
716
+ * })
717
+ */
718
+ respond(request: SmoothAgentApi.ChatsRespondRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatsRespondResponse>;
719
+ private __respond;
720
+ /**
721
+ * @param {SmoothAgentApi.ChatsRunsRequest} request
722
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
723
+ *
724
+ * @throws {@link SmoothAgentApi.BadRequestError}
725
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
726
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
727
+ * @throws {@link SmoothAgentApi.ForbiddenError}
728
+ * @throws {@link SmoothAgentApi.NotFoundError}
729
+ * @throws {@link SmoothAgentApi.ConflictError}
730
+ * @throws {@link SmoothAgentApi.GoneError}
731
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
732
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
733
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
734
+ * @throws {@link SmoothAgentApi.InternalServerError}
735
+ * @throws {@link SmoothAgentApi.BadGatewayError}
736
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
737
+ * @throws {@link errors.SmoothAgentApiError}
738
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
739
+ *
740
+ * @example
741
+ * await client.chats.runs({
742
+ * id: "id"
743
+ * })
744
+ */
745
+ runs(request: SmoothAgentApi.ChatsRunsRequest, requestOptions?: ChatsClient.RequestOptions): Promise<core.Page<SmoothAgentApi.RunSummary, SmoothAgentApi.ChatsRunsResponse>>;
746
+ /**
747
+ * @param {SmoothAgentApi.ChatsRunRequest} request
748
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
749
+ *
750
+ * @throws {@link SmoothAgentApi.BadRequestError}
751
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
752
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
753
+ * @throws {@link SmoothAgentApi.ForbiddenError}
754
+ * @throws {@link SmoothAgentApi.NotFoundError}
755
+ * @throws {@link SmoothAgentApi.ConflictError}
756
+ * @throws {@link SmoothAgentApi.GoneError}
757
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
758
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
759
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
760
+ * @throws {@link SmoothAgentApi.InternalServerError}
761
+ * @throws {@link SmoothAgentApi.BadGatewayError}
762
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
763
+ * @throws {@link errors.SmoothAgentApiError}
764
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
765
+ *
766
+ * @example
767
+ * await client.chats.run({
768
+ * id: "id",
769
+ * runId: "runId"
770
+ * })
771
+ */
772
+ run(request: SmoothAgentApi.ChatsRunRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.RunSummary>;
773
+ private __run;
774
+ /**
775
+ * @param {SmoothAgentApi.ChatsSelectionRequest} request
776
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
777
+ *
778
+ * @throws {@link SmoothAgentApi.BadRequestError}
779
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
780
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
781
+ * @throws {@link SmoothAgentApi.ForbiddenError}
782
+ * @throws {@link SmoothAgentApi.NotFoundError}
783
+ * @throws {@link SmoothAgentApi.ConflictError}
784
+ * @throws {@link SmoothAgentApi.GoneError}
785
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
786
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
787
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
788
+ * @throws {@link SmoothAgentApi.InternalServerError}
789
+ * @throws {@link SmoothAgentApi.BadGatewayError}
790
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
791
+ * @throws {@link errors.SmoothAgentApiError}
792
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
793
+ *
794
+ * @example
795
+ * await client.chats.selection({
796
+ * id: "id"
797
+ * })
798
+ */
799
+ selection(request: SmoothAgentApi.ChatsSelectionRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatSelection>;
800
+ private __selection;
801
+ /**
802
+ * O mesmo SnapshotPayload do frame `snapshot` do realtime (`seq, inbox, box?, recentItems?, hasBefore?, state?`):
803
+ * resync sem socket. O formato é do protocolo do realtime.
804
+ *
805
+ * @param {SmoothAgentApi.ChatsSnapshotRequest} request
806
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
807
+ *
808
+ * @throws {@link SmoothAgentApi.BadRequestError}
809
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
810
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
811
+ * @throws {@link SmoothAgentApi.ForbiddenError}
812
+ * @throws {@link SmoothAgentApi.NotFoundError}
813
+ * @throws {@link SmoothAgentApi.ConflictError}
814
+ * @throws {@link SmoothAgentApi.GoneError}
815
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
816
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
817
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
818
+ * @throws {@link SmoothAgentApi.InternalServerError}
819
+ * @throws {@link SmoothAgentApi.BadGatewayError}
820
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
821
+ * @throws {@link errors.SmoothAgentApiError}
822
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
823
+ *
824
+ * @example
825
+ * await client.chats.snapshot({
826
+ * id: "id"
827
+ * })
828
+ */
829
+ snapshot(request: SmoothAgentApi.ChatsSnapshotRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
830
+ private __snapshot;
831
+ /**
832
+ * @param {SmoothAgentApi.ChatsStopRequest} request
833
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
834
+ *
835
+ * @throws {@link SmoothAgentApi.BadRequestError}
836
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
837
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
838
+ * @throws {@link SmoothAgentApi.ForbiddenError}
839
+ * @throws {@link SmoothAgentApi.NotFoundError}
840
+ * @throws {@link SmoothAgentApi.ConflictError}
841
+ * @throws {@link SmoothAgentApi.GoneError}
842
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
843
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
844
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
845
+ * @throws {@link SmoothAgentApi.InternalServerError}
846
+ * @throws {@link SmoothAgentApi.BadGatewayError}
847
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
848
+ * @throws {@link errors.SmoothAgentApiError}
849
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
850
+ *
851
+ * @example
852
+ * await client.chats.stop({
853
+ * id: "id"
854
+ * })
855
+ */
856
+ stop(request: SmoothAgentApi.ChatsStopRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatsStopResponse>;
857
+ private __stop;
858
+ /**
859
+ * @param {SmoothAgentApi.ChatBoxListTasksRequest} request
860
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
861
+ *
862
+ * @throws {@link SmoothAgentApi.BadRequestError}
863
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
864
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
865
+ * @throws {@link SmoothAgentApi.ForbiddenError}
866
+ * @throws {@link SmoothAgentApi.NotFoundError}
867
+ * @throws {@link SmoothAgentApi.ConflictError}
868
+ * @throws {@link SmoothAgentApi.GoneError}
869
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
870
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
871
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
872
+ * @throws {@link SmoothAgentApi.InternalServerError}
873
+ * @throws {@link SmoothAgentApi.BadGatewayError}
874
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
875
+ * @throws {@link errors.SmoothAgentApiError}
876
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
877
+ *
878
+ * @example
879
+ * await client.chats.chatBoxListTasks({
880
+ * id: "id"
881
+ * })
882
+ */
883
+ chatBoxListTasks(request: SmoothAgentApi.ChatBoxListTasksRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatBoxListTasksResponse>;
884
+ private __chatBoxListTasks;
885
+ /**
886
+ * @param {SmoothAgentApi.ChatBoxTaskOutputRequest} request
887
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
888
+ *
889
+ * @throws {@link SmoothAgentApi.BadRequestError}
890
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
891
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
892
+ * @throws {@link SmoothAgentApi.ForbiddenError}
893
+ * @throws {@link SmoothAgentApi.NotFoundError}
894
+ * @throws {@link SmoothAgentApi.ConflictError}
895
+ * @throws {@link SmoothAgentApi.GoneError}
896
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
897
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
898
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
899
+ * @throws {@link SmoothAgentApi.InternalServerError}
900
+ * @throws {@link SmoothAgentApi.BadGatewayError}
901
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
902
+ * @throws {@link errors.SmoothAgentApiError}
903
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
904
+ *
905
+ * @example
906
+ * await client.chats.chatBoxTaskOutput({
907
+ * id: "id",
908
+ * taskId: "taskId"
909
+ * })
910
+ */
911
+ chatBoxTaskOutput(request: SmoothAgentApi.ChatBoxTaskOutputRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatTaskOutput>;
912
+ private __chatBoxTaskOutput;
913
+ /**
914
+ * Para UMA tarefa (subagente ou processo de fundo) sem matar o turno.
915
+ *
916
+ * @param {SmoothAgentApi.ChatBoxStopTaskRequest} request
917
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
918
+ *
919
+ * @throws {@link SmoothAgentApi.BadRequestError}
920
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
921
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
922
+ * @throws {@link SmoothAgentApi.ForbiddenError}
923
+ * @throws {@link SmoothAgentApi.NotFoundError}
924
+ * @throws {@link SmoothAgentApi.ConflictError}
925
+ * @throws {@link SmoothAgentApi.GoneError}
926
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
927
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
928
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
929
+ * @throws {@link SmoothAgentApi.InternalServerError}
930
+ * @throws {@link SmoothAgentApi.BadGatewayError}
931
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
932
+ * @throws {@link errors.SmoothAgentApiError}
933
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
934
+ *
935
+ * @example
936
+ * await client.chats.chatBoxStopTask({
937
+ * id: "id",
938
+ * taskId: "taskId"
939
+ * })
940
+ */
941
+ chatBoxStopTask(request: SmoothAgentApi.ChatBoxStopTaskRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatBoxStopTaskResponse>;
942
+ private __chatBoxStopTask;
943
+ /**
944
+ * @param {SmoothAgentApi.ChatsUsageRequest} request
945
+ * @param {ChatsClient.RequestOptions} requestOptions - Request-specific configuration.
946
+ *
947
+ * @throws {@link SmoothAgentApi.BadRequestError}
948
+ * @throws {@link SmoothAgentApi.UnauthorizedError}
949
+ * @throws {@link SmoothAgentApi.PaymentRequiredError}
950
+ * @throws {@link SmoothAgentApi.ForbiddenError}
951
+ * @throws {@link SmoothAgentApi.NotFoundError}
952
+ * @throws {@link SmoothAgentApi.ConflictError}
953
+ * @throws {@link SmoothAgentApi.GoneError}
954
+ * @throws {@link SmoothAgentApi.UnprocessableEntityError}
955
+ * @throws {@link SmoothAgentApi.FailedDependencyError}
956
+ * @throws {@link SmoothAgentApi.TooManyRequestsError}
957
+ * @throws {@link SmoothAgentApi.InternalServerError}
958
+ * @throws {@link SmoothAgentApi.BadGatewayError}
959
+ * @throws {@link SmoothAgentApi.ServiceUnavailableError}
960
+ * @throws {@link errors.SmoothAgentApiError}
961
+ * @throws {@link errors.SmoothAgentApiTimeoutError}
962
+ *
963
+ * @example
964
+ * await client.chats.usage({
965
+ * id: "id"
966
+ * })
967
+ */
968
+ usage(request: SmoothAgentApi.ChatsUsageRequest, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<SmoothAgentApi.ChatUsage>;
969
+ private __usage;
970
+ }