@leaflow/sdk 0.0.0-dev.437.gc278ab8 → 0.0.0-dev.441.gdbb8c45
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/dist/assistant/v1/generated/functions.d.ts +25 -58
- package/dist/assistant/v1/generated/functions.js +16 -54
- package/dist/assistant/v1/generated/models.d.ts +3 -105
- package/dist/assistant/v1/generated/models.js +0 -25
- package/dist/assistant/v1/generated/schemas.zod.d.ts +11 -12
- package/dist/assistant/v1/generated/schemas.zod.js +14 -12
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/error.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/partResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/turnType.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/usage.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +3 -2
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +3 -2
- package/dist/eventbus/v1/generated/functions.d.ts +316 -41
- package/dist/eventbus/v1/generated/functions.js +202 -16
- package/dist/eventbus/v1/generated/models.d.ts +230 -26
- package/dist/eventbus/v1/generated/models.js +4 -0
- package/dist/eventbus/v1/generated/schemas.zod.d.ts +163 -30
- package/dist/eventbus/v1/generated/schemas.zod.js +173 -32
- package/dist/eventbus/v1/generated/validators/createEventRequest.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/createEventRequest.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/createNamespaceRequest.zod.d.ts +93 -0
- package/dist/eventbus/v1/generated/validators/createNamespaceRequest.zod.js +98 -0
- package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/cursorPagination.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/cursorPagination.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/error.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/error.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/errorStatus.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/errorStatus.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/eventDetail.zod.d.ts +60 -14
- package/dist/eventbus/v1/generated/validators/eventDetail.zod.js +67 -15
- package/dist/eventbus/v1/generated/validators/eventList.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/eventList.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/eventMessage.zod.d.ts +103 -0
- package/dist/eventbus/v1/generated/validators/eventMessage.zod.js +105 -0
- package/dist/eventbus/v1/generated/validators/eventResource.zod.d.ts +60 -14
- package/dist/eventbus/v1/generated/validators/eventResource.zod.js +67 -15
- package/dist/eventbus/v1/generated/validators/eventStatus.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/eventStatus.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/eventVersion.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/eventVersion.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/fieldViolation.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/fieldViolation.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/listEventsParams.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/listEventsParams.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/listNamespacesParams.zod.d.ts +97 -0
- package/dist/eventbus/v1/generated/validators/listNamespacesParams.zod.js +99 -0
- package/dist/eventbus/v1/generated/validators/namespaceList.zod.d.ts +102 -0
- package/dist/eventbus/v1/generated/validators/namespaceList.zod.js +94 -0
- package/dist/eventbus/v1/generated/validators/namespaceResource.zod.d.ts +98 -0
- package/dist/eventbus/v1/generated/validators/namespaceResource.zod.js +100 -0
- package/dist/eventbus/v1/generated/validators/namespaceStatus.zod.d.ts +89 -0
- package/dist/eventbus/v1/generated/validators/namespaceStatus.zod.js +86 -0
- package/dist/eventbus/v1/generated/validators/offsetPagination.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/offsetPagination.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/publication.zod.d.ts +98 -0
- package/dist/eventbus/v1/generated/validators/publication.zod.js +106 -0
- package/dist/eventbus/v1/generated/validators/publicationRecipient.zod.d.ts +89 -0
- package/dist/eventbus/v1/generated/validators/publicationRecipient.zod.js +89 -0
- package/dist/eventbus/v1/generated/validators/publishRequest.zod.d.ts +70 -20
- package/dist/eventbus/v1/generated/validators/publishRequest.zod.js +65 -26
- package/dist/eventbus/v1/generated/validators/publishResponse.zod.d.ts +64 -18
- package/dist/eventbus/v1/generated/validators/publishResponse.zod.js +62 -20
- package/dist/eventbus/v1/generated/validators/publishedMessage.zod.d.ts +91 -0
- package/dist/eventbus/v1/generated/validators/publishedMessage.zod.js +91 -0
- package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.d.ts +59 -15
- package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.js +65 -17
- package/dist/eventbus/v1/generated/validators/realtimeTicketRequest.zod.d.ts +90 -0
- package/dist/eventbus/v1/generated/validators/realtimeTicketRequest.zod.js +92 -0
- package/dist/eventbus/v1/generated/validators/recipient.zod.d.ts +89 -0
- package/dist/eventbus/v1/generated/validators/recipient.zod.js +89 -0
- package/dist/eventbus/v1/generated/validators/sender.zod.d.ts +89 -0
- package/dist/eventbus/v1/generated/validators/sender.zod.js +92 -0
- package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.d.ts +58 -14
- package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.js +58 -14
- package/dist/eventbus/v1/generated/validators/updateNamespaceRequest.zod.d.ts +93 -0
- package/dist/eventbus/v1/generated/validators/updateNamespaceRequest.zod.js +89 -0
- package/dist/notification/v1/generated/functions.d.ts +3 -58
- package/dist/notification/v1/generated/functions.js +2 -64
- package/dist/notification/v1/generated/models.d.ts +0 -47
- package/dist/notification/v1/generated/schemas.zod.d.ts +2 -17
- package/dist/notification/v1/generated/schemas.zod.js +2 -15
- package/dist/routes.d.ts +58 -34
- package/dist/routes.js +65 -38
- package/package.json +1 -1
- package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +0 -36
- package/dist/assistant/v1/generated/validators/itemFrame.zod.js +0 -32
- package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +0 -31
- package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +0 -29
- package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +0 -38
- package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +0 -42
- package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +0 -285
- package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +0 -33
- package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +0 -274
- package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +0 -64
- package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +0 -32
- package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +0 -30
- package/dist/notification/v1/generated/validators/authorizeRealtimeChannelRequestBody.zod.d.ts +0 -70
- package/dist/notification/v1/generated/validators/authorizeRealtimeChannelRequestBody.zod.js +0 -76
- package/dist/notification/v1/generated/validators/realtimeAuthResource.zod.d.ts +0 -67
- package/dist/notification/v1/generated/validators/realtimeAuthResource.zod.js +0 -67
- package/dist/notification/v1/generated/validators/realtimeConnectionResource.zod.d.ts +0 -76
- package/dist/notification/v1/generated/validators/realtimeConnectionResource.zod.js +0 -88
|
@@ -15,14 +15,15 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
23
24
|
* OpenAPI spec version: 2.0.0
|
|
24
25
|
*/
|
|
25
|
-
import type { AnswerQuestionRequestBody, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams, CompleteUploadRequestBody, CreateChannelRequestBody, CreateFolderRequestBody, CreateTaskRequestBody, CreateThreadRequestBody, CreateThreadResponseBody, CreateUploadRequestBody, DecideToolCallsRequestBody, ErrorResponse, FolderListResponseBody, FolderResource, LengthAwarePageBindingResource, LengthAwarePageChannelResource, ListBindingsParams, ListChannelRejectionsParams, ListChannelsParams, ListTaskRunsParams, ListThreadItemsParams, ListThreadMessagesParams, ListThreadTurnsParams, LoginResource, MemoryListResponseBody, MoveFolderRequestBody,
|
|
26
|
+
import type { AnswerQuestionRequestBody, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams, CompleteUploadRequestBody, CreateChannelRequestBody, CreateFolderRequestBody, CreateTaskRequestBody, CreateThreadRequestBody, CreateThreadResponseBody, CreateUploadRequestBody, DecideToolCallsRequestBody, ErrorResponse, FolderListResponseBody, FolderResource, LengthAwarePageBindingResource, LengthAwarePageChannelResource, ListBindingsParams, ListChannelRejectionsParams, ListChannelsParams, ListTaskRunsParams, ListThreadItemsParams, ListThreadMessagesParams, ListThreadTurnsParams, LoginResource, MemoryListResponseBody, MoveFolderRequestBody, PlaceThreadRequestBody, PlatformListResponseBody, PutUploadPartHeaders, PutUploadPartParams, RejectionListResponseBody, ResumeThreadRequestBody, RevertRequestBody, RevertedCountResponseBody, RotateSecretRequestBody, SearchTasksRequestBody, SearchThreadsRequestBody, SendMessageRequestBody, SendMessageResponseBody, SenderCheckResource, SettingsResource, SkillEnabledRequestBody, SkillListResponseBody, SkillRequestBody, SkillResource, TaskListResponseBody, TaskResource, TaskRunListResponseBody, TaskRunResource, ThreadItemListResponseBody, ThreadItemResource, ThreadListResponseBody, ThreadMessageListResponseBody, ThreadResource, ThreadTurnListResponseBody, ToolResultRequestBody, TurnStartedResponseBody, UpdateChannelRequestBody, UpdateFolderRequestBody, UpdateSettingsRequestBody, UpdateTaskRequestBody, UpdateThreadRequestBody, UpdateUploadRequestBody, UploadAttachmentParams, UploadConfigurationResource, UploadListResponseBody, UploadPartResource, UploadResource, UploadedResource, VerifyCodeRequestBody, WebhookSecretResponseBody } from "./models.js";
|
|
26
27
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
27
28
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
28
29
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -944,61 +945,6 @@ export declare const getUpdateSettingsUrl: () => string;
|
|
|
944
945
|
* @summary Update settings
|
|
945
946
|
*/
|
|
946
947
|
export declare const updateSettings: (updateSettingsRequestBody: UpdateSettingsRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateSettingsResponse>;
|
|
947
|
-
export type createRealtimeTicketResponse201 = {
|
|
948
|
-
data: RealtimeTicketResource;
|
|
949
|
-
status: 201;
|
|
950
|
-
};
|
|
951
|
-
export type createRealtimeTicketResponseDefault = {
|
|
952
|
-
data: ErrorResponse;
|
|
953
|
-
status: Exclude<HTTPStatusCodes, 201>;
|
|
954
|
-
};
|
|
955
|
-
export type createRealtimeTicketResponseSuccess = createRealtimeTicketResponse201 & {
|
|
956
|
-
headers: Headers;
|
|
957
|
-
};
|
|
958
|
-
export type createRealtimeTicketResponseError = createRealtimeTicketResponseDefault & {
|
|
959
|
-
headers: Headers;
|
|
960
|
-
};
|
|
961
|
-
export type createRealtimeTicketResponse = createRealtimeTicketResponseSuccess | createRealtimeTicketResponseError;
|
|
962
|
-
export declare const getCreateRealtimeTicketUrl: () => string;
|
|
963
|
-
/**
|
|
964
|
-
* Returns the address and a short-lived ticket for the realtime WebSocket. Open
|
|
965
|
-
* `{url}?ticket={ticket}`; the ticket stands in for the bearer token, which a browser cannot set
|
|
966
|
-
* on a WebSocket. One connection carries every subscription of a client.
|
|
967
|
-
*
|
|
968
|
-
* Messages are JSON text frames. The client sends `RealtimeClientMessage` and receives
|
|
969
|
-
* `RealtimeServerMessage`. Subscribe to `workspace` for every conversation, folder and task of the
|
|
970
|
-
* caller in this project, and to `thread:{id}` for the transcript of one conversation. A
|
|
971
|
-
* transcript subscription takes the `streamCursor` from list-thread-items and replays what was
|
|
972
|
-
* written after it; when the cursor is too old the server sends `resync` and the client reads the
|
|
973
|
-
* items again.
|
|
974
|
-
*
|
|
975
|
-
* Reconnect with a new ticket after the connection closes. Ping at least every 30 seconds.
|
|
976
|
-
* @summary Issue a realtime ticket
|
|
977
|
-
*/
|
|
978
|
-
export declare const createRealtimeTicket: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createRealtimeTicketResponse>;
|
|
979
|
-
export type openRealtimeResponse200 = {
|
|
980
|
-
data: RealtimeExchange;
|
|
981
|
-
status: 200;
|
|
982
|
-
};
|
|
983
|
-
export type openRealtimeResponseDefault = {
|
|
984
|
-
data: ErrorResponse;
|
|
985
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
986
|
-
};
|
|
987
|
-
export type openRealtimeResponseSuccess = openRealtimeResponse200 & {
|
|
988
|
-
headers: Headers;
|
|
989
|
-
};
|
|
990
|
-
export type openRealtimeResponseError = openRealtimeResponseDefault & {
|
|
991
|
-
headers: Headers;
|
|
992
|
-
};
|
|
993
|
-
export type openRealtimeResponse = openRealtimeResponseSuccess | openRealtimeResponseError;
|
|
994
|
-
export declare const getOpenRealtimeUrl: (params: OpenRealtimeParams) => string;
|
|
995
|
-
/**
|
|
996
|
-
* Upgrades to a WebSocket. The ticket from create-realtime-ticket authenticates the connection;
|
|
997
|
-
* a missing, expired or foreign ticket closes it with code 4401. The 200 response documents the
|
|
998
|
-
* message a client receives on the socket; the endpoint never answers with a plain HTTP body.
|
|
999
|
-
* @summary Open the realtime WebSocket
|
|
1000
|
-
*/
|
|
1001
|
-
export declare const openRealtime: (params: OpenRealtimeParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<openRealtimeResponse>;
|
|
1002
948
|
export type uploadAttachmentResponse201 = {
|
|
1003
949
|
data: UploadedResource;
|
|
1004
950
|
status: 201;
|
|
@@ -1719,3 +1665,24 @@ export declare const getSubmitWeixinVerifyCodeUrl: (login: string) => string;
|
|
|
1719
1665
|
* @summary Submit a login verification code
|
|
1720
1666
|
*/
|
|
1721
1667
|
export declare const submitWeixinVerifyCode: (login: string, verifyCodeRequestBody: VerifyCodeRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<submitWeixinVerifyCodeResponse>;
|
|
1668
|
+
export type renewThreadPresenceResponse204 = {
|
|
1669
|
+
data: void;
|
|
1670
|
+
status: 204;
|
|
1671
|
+
};
|
|
1672
|
+
export type renewThreadPresenceResponseDefault = {
|
|
1673
|
+
data: ErrorResponse;
|
|
1674
|
+
status: Exclude<HTTPStatusCodes, 204>;
|
|
1675
|
+
};
|
|
1676
|
+
export type renewThreadPresenceResponseSuccess = renewThreadPresenceResponse204 & {
|
|
1677
|
+
headers: Headers;
|
|
1678
|
+
};
|
|
1679
|
+
export type renewThreadPresenceResponseError = renewThreadPresenceResponseDefault & {
|
|
1680
|
+
headers: Headers;
|
|
1681
|
+
};
|
|
1682
|
+
export type renewThreadPresenceResponse = renewThreadPresenceResponseSuccess | renewThreadPresenceResponseError;
|
|
1683
|
+
export declare const getRenewThreadPresenceUrl: (thread: string) => string;
|
|
1684
|
+
/**
|
|
1685
|
+
* Renews an already announced browser client while the thread is open. It does not create or replace the client catalogue.
|
|
1686
|
+
* @summary Renew client presence
|
|
1687
|
+
*/
|
|
1688
|
+
export declare const renewThreadPresence: (thread: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<renewThreadPresenceResponse>;
|
|
@@ -1048,60 +1048,6 @@ export const updateSettings = async (updateSettingsRequestBody, options, fetchFn
|
|
|
1048
1048
|
const data = body ? JSON.parse(body) : {};
|
|
1049
1049
|
return { data, status: res.status, headers: res.headers };
|
|
1050
1050
|
};
|
|
1051
|
-
export const getCreateRealtimeTicketUrl = () => {
|
|
1052
|
-
return `https://assistant.leaflow.cloud/api/v1/realtime/tickets`;
|
|
1053
|
-
};
|
|
1054
|
-
/**
|
|
1055
|
-
* Returns the address and a short-lived ticket for the realtime WebSocket. Open
|
|
1056
|
-
* `{url}?ticket={ticket}`; the ticket stands in for the bearer token, which a browser cannot set
|
|
1057
|
-
* on a WebSocket. One connection carries every subscription of a client.
|
|
1058
|
-
*
|
|
1059
|
-
* Messages are JSON text frames. The client sends `RealtimeClientMessage` and receives
|
|
1060
|
-
* `RealtimeServerMessage`. Subscribe to `workspace` for every conversation, folder and task of the
|
|
1061
|
-
* caller in this project, and to `thread:{id}` for the transcript of one conversation. A
|
|
1062
|
-
* transcript subscription takes the `streamCursor` from list-thread-items and replays what was
|
|
1063
|
-
* written after it; when the cursor is too old the server sends `resync` and the client reads the
|
|
1064
|
-
* items again.
|
|
1065
|
-
*
|
|
1066
|
-
* Reconnect with a new ticket after the connection closes. Ping at least every 30 seconds.
|
|
1067
|
-
* @summary Issue a realtime ticket
|
|
1068
|
-
*/
|
|
1069
|
-
export const createRealtimeTicket = async (options, fetchFn) => {
|
|
1070
|
-
const res = await (fetchFn ?? fetch)(getCreateRealtimeTicketUrl(), {
|
|
1071
|
-
...options,
|
|
1072
|
-
method: "POST",
|
|
1073
|
-
});
|
|
1074
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1075
|
-
const data = body ? JSON.parse(body) : {};
|
|
1076
|
-
return { data, status: res.status, headers: res.headers };
|
|
1077
|
-
};
|
|
1078
|
-
export const getOpenRealtimeUrl = (params) => {
|
|
1079
|
-
const normalizedParams = new URLSearchParams();
|
|
1080
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1081
|
-
if (value !== undefined) {
|
|
1082
|
-
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1083
|
-
}
|
|
1084
|
-
});
|
|
1085
|
-
const stringifiedParams = normalizedParams.toString();
|
|
1086
|
-
return stringifiedParams.length > 0
|
|
1087
|
-
? `https://assistant.leaflow.cloud/api/v1/realtime?${stringifiedParams}`
|
|
1088
|
-
: `https://assistant.leaflow.cloud/api/v1/realtime`;
|
|
1089
|
-
};
|
|
1090
|
-
/**
|
|
1091
|
-
* Upgrades to a WebSocket. The ticket from create-realtime-ticket authenticates the connection;
|
|
1092
|
-
* a missing, expired or foreign ticket closes it with code 4401. The 200 response documents the
|
|
1093
|
-
* message a client receives on the socket; the endpoint never answers with a plain HTTP body.
|
|
1094
|
-
* @summary Open the realtime WebSocket
|
|
1095
|
-
*/
|
|
1096
|
-
export const openRealtime = async (params, options, fetchFn) => {
|
|
1097
|
-
const res = await (fetchFn ?? fetch)(getOpenRealtimeUrl(params), {
|
|
1098
|
-
...options,
|
|
1099
|
-
method: "GET",
|
|
1100
|
-
});
|
|
1101
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1102
|
-
const data = body ? JSON.parse(body) : {};
|
|
1103
|
-
return { data, status: res.status, headers: res.headers };
|
|
1104
|
-
};
|
|
1105
1051
|
export const getUploadAttachmentUrl = (params) => {
|
|
1106
1052
|
const normalizedParams = new URLSearchParams();
|
|
1107
1053
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1897,3 +1843,19 @@ export const submitWeixinVerifyCode = async (login, verifyCodeRequestBody, optio
|
|
|
1897
1843
|
const data = body ? JSON.parse(body) : {};
|
|
1898
1844
|
return { data, status: res.status, headers: res.headers };
|
|
1899
1845
|
};
|
|
1846
|
+
export const getRenewThreadPresenceUrl = (thread) => {
|
|
1847
|
+
return `https://assistant.leaflow.cloud/api/v1/threads/${encodeURIComponent(String(thread))}/presence`;
|
|
1848
|
+
};
|
|
1849
|
+
/**
|
|
1850
|
+
* Renews an already announced browser client while the thread is open. It does not create or replace the client catalogue.
|
|
1851
|
+
* @summary Renew client presence
|
|
1852
|
+
*/
|
|
1853
|
+
export const renewThreadPresence = async (thread, options, fetchFn) => {
|
|
1854
|
+
const res = await (fetchFn ?? fetch)(getRenewThreadPresenceUrl(thread), {
|
|
1855
|
+
...options,
|
|
1856
|
+
method: "POST",
|
|
1857
|
+
});
|
|
1858
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1859
|
+
const data = body ? JSON.parse(body) : undefined;
|
|
1860
|
+
return { data, status: res.status, headers: res.headers };
|
|
1861
|
+
};
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -1431,103 +1432,6 @@ export interface UpdateSettingsRequestBody {
|
|
|
1431
1432
|
defaultModelId?: string | null;
|
|
1432
1433
|
defaultReasoningEffort?: ReasoningEffort | null;
|
|
1433
1434
|
}
|
|
1434
|
-
export interface RealtimeTicketResource {
|
|
1435
|
-
/** The WebSocket address, absolute or relative to the API origin. */
|
|
1436
|
-
url: string;
|
|
1437
|
-
ticket: string;
|
|
1438
|
-
expiresAt: string;
|
|
1439
|
-
}
|
|
1440
|
-
export type RealtimeClientMessageType = (typeof RealtimeClientMessageType)[keyof typeof RealtimeClientMessageType];
|
|
1441
|
-
export declare const RealtimeClientMessageType: {
|
|
1442
|
-
readonly subscribe: "subscribe";
|
|
1443
|
-
readonly unsubscribe: "unsubscribe";
|
|
1444
|
-
readonly ping: "ping";
|
|
1445
|
-
};
|
|
1446
|
-
/**
|
|
1447
|
-
* A message from the client. `type` determines which fields apply.
|
|
1448
|
-
*/
|
|
1449
|
-
export interface RealtimeClientMessage {
|
|
1450
|
-
type: RealtimeClientMessageType;
|
|
1451
|
-
/**
|
|
1452
|
-
* `workspace` or `thread:{id}`. For subscribe and unsubscribe.
|
|
1453
|
-
* @maxLength 128
|
|
1454
|
-
*/
|
|
1455
|
-
topic?: string;
|
|
1456
|
-
/**
|
|
1457
|
-
* For a `thread:{id}` subscription, the `streamCursor` to replay from.
|
|
1458
|
-
* @maxLength 128
|
|
1459
|
-
*/
|
|
1460
|
-
cursor?: string;
|
|
1461
|
-
}
|
|
1462
|
-
export type RealtimeServerMessageType = (typeof RealtimeServerMessageType)[keyof typeof RealtimeServerMessageType];
|
|
1463
|
-
export declare const RealtimeServerMessageType: {
|
|
1464
|
-
readonly subscribed: "subscribed";
|
|
1465
|
-
readonly unsubscribed: "unsubscribed";
|
|
1466
|
-
readonly threadupdated: "thread.updated";
|
|
1467
|
-
readonly threaddeleted: "thread.deleted";
|
|
1468
|
-
readonly turnupdated: "turn.updated";
|
|
1469
|
-
readonly folderupdated: "folder.updated";
|
|
1470
|
-
readonly folderdeleted: "folder.deleted";
|
|
1471
|
-
readonly taskupdated: "task.updated";
|
|
1472
|
-
readonly taskdeleted: "task.deleted";
|
|
1473
|
-
readonly itemframe: "item.frame";
|
|
1474
|
-
readonly resync: "resync";
|
|
1475
|
-
readonly error: "error";
|
|
1476
|
-
readonly pong: "pong";
|
|
1477
|
-
};
|
|
1478
|
-
export type ItemFrameOp = (typeof ItemFrameOp)[keyof typeof ItemFrameOp];
|
|
1479
|
-
export declare const ItemFrameOp: {
|
|
1480
|
-
readonly add: "add";
|
|
1481
|
-
readonly set: "set";
|
|
1482
|
-
readonly append: "append";
|
|
1483
|
-
};
|
|
1484
|
-
/**
|
|
1485
|
-
* An edit to the transcript as returned by list-thread-items. `path` is a JSON Pointer under
|
|
1486
|
-
* `/items`: `add` appends `value` to `/items` or replaces the item with the same id, `set`
|
|
1487
|
-
* replaces the value at `path`, and `append` concatenates the string `value` to the string at
|
|
1488
|
-
* `path`, which is how answer text streams in.
|
|
1489
|
-
*/
|
|
1490
|
-
export interface ItemFrame {
|
|
1491
|
-
path: string;
|
|
1492
|
-
op: ItemFrameOp;
|
|
1493
|
-
value: unknown;
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* A message from the server. `type` determines which fields apply:
|
|
1497
|
-
*
|
|
1498
|
-
* - `subscribed` / `unsubscribed` — `topic`
|
|
1499
|
-
* - `thread.updated` — `thread`; `thread.deleted` — `threadId`
|
|
1500
|
-
* - `turn.updated` — `turn`, sent while a turn runs so its usage can be shown live
|
|
1501
|
-
* - `folder.updated` — `folder`; `folder.deleted` — `folderId`
|
|
1502
|
-
* - `task.updated` — `task`; `task.deleted` — `taskId`
|
|
1503
|
-
* - `item.frame` — `threadId`, `cursor` and `frame`, an edit to the transcript
|
|
1504
|
-
* - `resync` — `topic`; the client lost events and reads the current state again
|
|
1505
|
-
* - `error` — `code` and `message`
|
|
1506
|
-
* - `pong`
|
|
1507
|
-
*/
|
|
1508
|
-
export interface RealtimeServerMessage {
|
|
1509
|
-
type: RealtimeServerMessageType;
|
|
1510
|
-
topic?: string;
|
|
1511
|
-
thread?: ThreadResource;
|
|
1512
|
-
threadId?: string;
|
|
1513
|
-
turn?: ThreadTurnResource;
|
|
1514
|
-
folder?: FolderResource;
|
|
1515
|
-
folderId?: string;
|
|
1516
|
-
task?: TaskResource;
|
|
1517
|
-
taskId?: string;
|
|
1518
|
-
/** For `item.frame`. Resubscribe from this cursor to continue after a reconnect. */
|
|
1519
|
-
cursor?: string;
|
|
1520
|
-
frame?: ItemFrame;
|
|
1521
|
-
code?: string;
|
|
1522
|
-
message?: string;
|
|
1523
|
-
}
|
|
1524
|
-
/**
|
|
1525
|
-
* Both directions of the WebSocket protocol, for code generation.
|
|
1526
|
-
*/
|
|
1527
|
-
export interface RealtimeExchange {
|
|
1528
|
-
client: RealtimeClientMessage;
|
|
1529
|
-
server: RealtimeServerMessage;
|
|
1530
|
-
}
|
|
1531
1435
|
/**
|
|
1532
1436
|
* How the assistant will see this file.
|
|
1533
1437
|
*
|
|
@@ -2113,12 +2017,6 @@ export type ListTaskRunsParams = {
|
|
|
2113
2017
|
*/
|
|
2114
2018
|
limit?: number;
|
|
2115
2019
|
};
|
|
2116
|
-
export type OpenRealtimeParams = {
|
|
2117
|
-
/**
|
|
2118
|
-
* @maxLength 4096
|
|
2119
|
-
*/
|
|
2120
|
-
ticket: string;
|
|
2121
|
-
};
|
|
2122
2020
|
export type UploadAttachmentParams = {
|
|
2123
2021
|
/**
|
|
2124
2022
|
* The name to show and to give the assistant. Images do not need one; anything else does, because the name is most of what says what the file is. Falls back to a generated name.
|
|
@@ -172,31 +172,6 @@ export const DefaultModelResourceSource = {
|
|
|
172
172
|
user: "user",
|
|
173
173
|
catalog: "catalog",
|
|
174
174
|
};
|
|
175
|
-
export const RealtimeClientMessageType = {
|
|
176
|
-
subscribe: "subscribe",
|
|
177
|
-
unsubscribe: "unsubscribe",
|
|
178
|
-
ping: "ping",
|
|
179
|
-
};
|
|
180
|
-
export const RealtimeServerMessageType = {
|
|
181
|
-
subscribed: "subscribed",
|
|
182
|
-
unsubscribed: "unsubscribed",
|
|
183
|
-
threadupdated: "thread.updated",
|
|
184
|
-
threaddeleted: "thread.deleted",
|
|
185
|
-
turnupdated: "turn.updated",
|
|
186
|
-
folderupdated: "folder.updated",
|
|
187
|
-
folderdeleted: "folder.deleted",
|
|
188
|
-
taskupdated: "task.updated",
|
|
189
|
-
taskdeleted: "task.deleted",
|
|
190
|
-
itemframe: "item.frame",
|
|
191
|
-
resync: "resync",
|
|
192
|
-
error: "error",
|
|
193
|
-
pong: "pong",
|
|
194
|
-
};
|
|
195
|
-
export const ItemFrameOp = {
|
|
196
|
-
add: "add",
|
|
197
|
-
set: "set",
|
|
198
|
-
append: "append",
|
|
199
|
-
};
|
|
200
175
|
export const UploadedResourceType = {
|
|
201
176
|
image: "image",
|
|
202
177
|
text: "text",
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -617,16 +618,6 @@ export declare const UpdateSettingsBody: zod.ZodObject<{
|
|
|
617
618
|
medium: "medium";
|
|
618
619
|
}>, zod.ZodNull]>>;
|
|
619
620
|
}, zod.z.core.$strict>;
|
|
620
|
-
/**
|
|
621
|
-
* Upgrades to a WebSocket. The ticket from create-realtime-ticket authenticates the connection;
|
|
622
|
-
* a missing, expired or foreign ticket closes it with code 4401. The 200 response documents the
|
|
623
|
-
* message a client receives on the socket; the endpoint never answers with a plain HTTP body.
|
|
624
|
-
* @summary Open the realtime WebSocket
|
|
625
|
-
*/
|
|
626
|
-
export declare const openRealtimeQueryTicketMax = 4096;
|
|
627
|
-
export declare const OpenRealtimeQueryParams: zod.ZodObject<{
|
|
628
|
-
ticket: zod.ZodString;
|
|
629
|
-
}, zod.z.core.$strict>;
|
|
630
621
|
/**
|
|
631
622
|
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in attachmentIds when sending a message.
|
|
632
623
|
*
|
|
@@ -912,3 +903,11 @@ export declare const SubmitWeixinVerifyCodeParams: zod.ZodObject<{
|
|
|
912
903
|
export declare const SubmitWeixinVerifyCodeBody: zod.ZodObject<{
|
|
913
904
|
code: zod.ZodString;
|
|
914
905
|
}, zod.z.core.$strict>;
|
|
906
|
+
/**
|
|
907
|
+
* Renews an already announced browser client while the thread is open. It does not create or replace the client catalogue.
|
|
908
|
+
* @summary Renew client presence
|
|
909
|
+
*/
|
|
910
|
+
export declare const renewThreadPresencePathThreadMax = 64;
|
|
911
|
+
export declare const RenewThreadPresenceParams: zod.ZodObject<{
|
|
912
|
+
thread: zod.ZodString;
|
|
913
|
+
}, zod.z.core.$strict>;
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -567,16 +568,6 @@ export const GetTaskRunParams = zod.strictObject({
|
|
|
567
568
|
* @summary Update settings
|
|
568
569
|
*/
|
|
569
570
|
export const UpdateSettingsBody = UpdateSettingsRequestBody;
|
|
570
|
-
/**
|
|
571
|
-
* Upgrades to a WebSocket. The ticket from create-realtime-ticket authenticates the connection;
|
|
572
|
-
* a missing, expired or foreign ticket closes it with code 4401. The 200 response documents the
|
|
573
|
-
* message a client receives on the socket; the endpoint never answers with a plain HTTP body.
|
|
574
|
-
* @summary Open the realtime WebSocket
|
|
575
|
-
*/
|
|
576
|
-
export const openRealtimeQueryTicketMax = 4096;
|
|
577
|
-
export const OpenRealtimeQueryParams = zod.strictObject({
|
|
578
|
-
ticket: zod.string().max(openRealtimeQueryTicketMax),
|
|
579
|
-
});
|
|
580
571
|
/**
|
|
581
572
|
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in attachmentIds when sending a message.
|
|
582
573
|
*
|
|
@@ -853,3 +844,14 @@ export const SubmitWeixinVerifyCodeParams = zod.strictObject({
|
|
|
853
844
|
login: zod.uuid(),
|
|
854
845
|
});
|
|
855
846
|
export const SubmitWeixinVerifyCodeBody = VerifyCodeRequestBody;
|
|
847
|
+
/**
|
|
848
|
+
* Renews an already announced browser client while the thread is open. It does not create or replace the client catalogue.
|
|
849
|
+
* @summary Renew client presence
|
|
850
|
+
*/
|
|
851
|
+
export const renewThreadPresencePathThreadMax = 64;
|
|
852
|
+
export const RenewThreadPresenceParams = zod.strictObject({
|
|
853
|
+
thread: zod
|
|
854
|
+
.string()
|
|
855
|
+
.max(renewThreadPresencePathThreadMax)
|
|
856
|
+
.describe("A thread id. Subagents are threads as well."),
|
|
857
|
+
});
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|