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