@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
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Assistant API
|
|
5
|
-
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
-
* chat-app channels.
|
|
7
|
-
*
|
|
8
|
-
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
-
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
-
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
-
* reasoning effort it used and its token usage.
|
|
12
|
-
*
|
|
13
|
-
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
-
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
-
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
-
*
|
|
17
|
-
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
* over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
|
|
19
|
-
* person's messages for navigating a long conversation.
|
|
20
|
-
*
|
|
21
|
-
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
-
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
-
* OpenAPI spec version: 2.0.0
|
|
24
|
-
*/
|
|
25
|
-
import * as zod from "zod";
|
|
26
|
-
export declare const RealtimeServerMessage: zod.ZodObject<{
|
|
27
|
-
type: zod.ZodEnum<{
|
|
28
|
-
error: "error";
|
|
29
|
-
subscribed: "subscribed";
|
|
30
|
-
unsubscribed: "unsubscribed";
|
|
31
|
-
"thread.updated": "thread.updated";
|
|
32
|
-
"thread.deleted": "thread.deleted";
|
|
33
|
-
"turn.updated": "turn.updated";
|
|
34
|
-
"folder.updated": "folder.updated";
|
|
35
|
-
"folder.deleted": "folder.deleted";
|
|
36
|
-
"task.updated": "task.updated";
|
|
37
|
-
"task.deleted": "task.deleted";
|
|
38
|
-
"item.frame": "item.frame";
|
|
39
|
-
resync: "resync";
|
|
40
|
-
pong: "pong";
|
|
41
|
-
}>;
|
|
42
|
-
topic: zod.ZodOptional<zod.ZodString>;
|
|
43
|
-
thread: zod.ZodOptional<zod.ZodObject<{
|
|
44
|
-
id: zod.ZodString;
|
|
45
|
-
role: zod.ZodEnum<{
|
|
46
|
-
main: "main";
|
|
47
|
-
subagent: "subagent";
|
|
48
|
-
}>;
|
|
49
|
-
parentId: zod.ZodNullable<zod.ZodString>;
|
|
50
|
-
agentName: zod.ZodNullable<zod.ZodString>;
|
|
51
|
-
title: zod.ZodNullable<zod.ZodString>;
|
|
52
|
-
folderId: zod.ZodNullable<zod.ZodString>;
|
|
53
|
-
orderVersion: zod.ZodInt;
|
|
54
|
-
modelId: zod.ZodString;
|
|
55
|
-
reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
56
|
-
high: "high";
|
|
57
|
-
low: "low";
|
|
58
|
-
medium: "medium";
|
|
59
|
-
}>, zod.ZodNull]>;
|
|
60
|
-
approvalMode: zod.ZodEnum<{
|
|
61
|
-
manual: "manual";
|
|
62
|
-
guardian: "guardian";
|
|
63
|
-
yolo: "yolo";
|
|
64
|
-
}>;
|
|
65
|
-
status: zod.ZodEnum<{
|
|
66
|
-
idle: "idle";
|
|
67
|
-
starting: "starting";
|
|
68
|
-
running: "running";
|
|
69
|
-
waiting: "waiting";
|
|
70
|
-
awaiting_approval: "awaiting_approval";
|
|
71
|
-
awaiting_input: "awaiting_input";
|
|
72
|
-
}>;
|
|
73
|
-
activity: zod.ZodNullable<zod.ZodString>;
|
|
74
|
-
recentMessage: zod.ZodNullable<zod.ZodString>;
|
|
75
|
-
todos: zod.ZodArray<zod.ZodObject<{
|
|
76
|
-
content: zod.ZodString;
|
|
77
|
-
activeForm: zod.ZodString;
|
|
78
|
-
status: zod.ZodEnum<{
|
|
79
|
-
completed: "completed";
|
|
80
|
-
pending: "pending";
|
|
81
|
-
in_progress: "in_progress";
|
|
82
|
-
}>;
|
|
83
|
-
}, zod.z.core.$strict>>;
|
|
84
|
-
pendingAction: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
85
|
-
threadId: zod.ZodString;
|
|
86
|
-
itemIds: zod.ZodArray<zod.ZodString>;
|
|
87
|
-
type: zod.ZodEnum<{
|
|
88
|
-
approval: "approval";
|
|
89
|
-
question: "question";
|
|
90
|
-
}>;
|
|
91
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
92
|
-
subagents: zod.ZodObject<{
|
|
93
|
-
total: zod.ZodInt;
|
|
94
|
-
running: zod.ZodInt;
|
|
95
|
-
}, zod.z.core.$strict>;
|
|
96
|
-
lastTurn: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
97
|
-
id: zod.ZodString;
|
|
98
|
-
type: zod.ZodEnum<{
|
|
99
|
-
message: "message";
|
|
100
|
-
compaction: "compaction";
|
|
101
|
-
}>;
|
|
102
|
-
status: zod.ZodEnum<{
|
|
103
|
-
running: "running";
|
|
104
|
-
completed: "completed";
|
|
105
|
-
failed: "failed";
|
|
106
|
-
declined: "declined";
|
|
107
|
-
cancelled: "cancelled";
|
|
108
|
-
}>;
|
|
109
|
-
failureCode: zod.ZodNullable<zod.ZodString>;
|
|
110
|
-
completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
111
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
112
|
-
context: zod.ZodObject<{
|
|
113
|
-
usedTokens: zod.ZodNullable<zod.ZodInt>;
|
|
114
|
-
windowTokens: zod.ZodNullable<zod.ZodInt>;
|
|
115
|
-
}, zod.z.core.$strict>;
|
|
116
|
-
usage: zod.ZodObject<{
|
|
117
|
-
inputTokens: zod.ZodInt;
|
|
118
|
-
cachedInputTokens: zod.ZodInt;
|
|
119
|
-
cacheWriteTokens: zod.ZodInt;
|
|
120
|
-
outputTokens: zod.ZodInt;
|
|
121
|
-
reasoningTokens: zod.ZodInt;
|
|
122
|
-
totalTokens: zod.ZodInt;
|
|
123
|
-
requests: zod.ZodInt;
|
|
124
|
-
complete: zod.ZodBoolean;
|
|
125
|
-
}, zod.z.core.$strict>;
|
|
126
|
-
unread: zod.ZodBoolean;
|
|
127
|
-
archived: zod.ZodBoolean;
|
|
128
|
-
messageCount: zod.ZodInt;
|
|
129
|
-
createdAt: zod.z.ZodISODateTime;
|
|
130
|
-
updatedAt: zod.z.ZodISODateTime;
|
|
131
|
-
}, zod.z.core.$strict>>;
|
|
132
|
-
threadId: zod.ZodOptional<zod.ZodString>;
|
|
133
|
-
turn: zod.ZodOptional<zod.ZodObject<{
|
|
134
|
-
id: zod.ZodString;
|
|
135
|
-
threadId: zod.ZodString;
|
|
136
|
-
type: zod.ZodEnum<{
|
|
137
|
-
message: "message";
|
|
138
|
-
compaction: "compaction";
|
|
139
|
-
}>;
|
|
140
|
-
status: zod.ZodEnum<{
|
|
141
|
-
running: "running";
|
|
142
|
-
completed: "completed";
|
|
143
|
-
failed: "failed";
|
|
144
|
-
declined: "declined";
|
|
145
|
-
cancelled: "cancelled";
|
|
146
|
-
}>;
|
|
147
|
-
firstOrdinal: zod.ZodNullable<zod.ZodInt>;
|
|
148
|
-
lastOrdinal: zod.ZodNullable<zod.ZodInt>;
|
|
149
|
-
preview: zod.ZodNullable<zod.ZodString>;
|
|
150
|
-
modelId: zod.ZodString;
|
|
151
|
-
reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
152
|
-
high: "high";
|
|
153
|
-
low: "low";
|
|
154
|
-
medium: "medium";
|
|
155
|
-
}>, zod.ZodNull]>;
|
|
156
|
-
approvalMode: zod.ZodEnum<{
|
|
157
|
-
manual: "manual";
|
|
158
|
-
guardian: "guardian";
|
|
159
|
-
yolo: "yolo";
|
|
160
|
-
}>;
|
|
161
|
-
failureCode: zod.ZodNullable<zod.ZodString>;
|
|
162
|
-
toolCalls: zod.ZodInt;
|
|
163
|
-
usage: zod.ZodObject<{
|
|
164
|
-
inputTokens: zod.ZodInt;
|
|
165
|
-
cachedInputTokens: zod.ZodInt;
|
|
166
|
-
cacheWriteTokens: zod.ZodInt;
|
|
167
|
-
outputTokens: zod.ZodInt;
|
|
168
|
-
reasoningTokens: zod.ZodInt;
|
|
169
|
-
totalTokens: zod.ZodInt;
|
|
170
|
-
requests: zod.ZodInt;
|
|
171
|
-
complete: zod.ZodBoolean;
|
|
172
|
-
}, zod.z.core.$strict>;
|
|
173
|
-
streamingOutputTokens: zod.ZodInt;
|
|
174
|
-
startedAt: zod.z.ZodISODateTime;
|
|
175
|
-
firstTokenAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
176
|
-
completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
177
|
-
}, zod.z.core.$strict>>;
|
|
178
|
-
folder: zod.ZodOptional<zod.ZodObject<{
|
|
179
|
-
id: zod.ZodString;
|
|
180
|
-
type: zod.ZodEnum<{
|
|
181
|
-
custom: "custom";
|
|
182
|
-
inbox: "inbox";
|
|
183
|
-
}>;
|
|
184
|
-
name: zod.ZodString;
|
|
185
|
-
counts: zod.ZodObject<{
|
|
186
|
-
total: zod.ZodInt;
|
|
187
|
-
needsAction: zod.ZodInt;
|
|
188
|
-
running: zod.ZodInt;
|
|
189
|
-
}, zod.z.core.$strict>;
|
|
190
|
-
orderVersion: zod.ZodInt;
|
|
191
|
-
createdAt: zod.z.ZodISODateTime;
|
|
192
|
-
updatedAt: zod.z.ZodISODateTime;
|
|
193
|
-
}, zod.z.core.$strict>>;
|
|
194
|
-
folderId: zod.ZodOptional<zod.ZodString>;
|
|
195
|
-
task: zod.ZodOptional<zod.ZodObject<{
|
|
196
|
-
id: zod.ZodString;
|
|
197
|
-
threadId: zod.ZodString;
|
|
198
|
-
name: zod.ZodString;
|
|
199
|
-
status: zod.ZodEnum<{
|
|
200
|
-
active: "active";
|
|
201
|
-
completed: "completed";
|
|
202
|
-
cancelled: "cancelled";
|
|
203
|
-
paused: "paused";
|
|
204
|
-
}>;
|
|
205
|
-
trigger: zod.ZodObject<{
|
|
206
|
-
type: zod.ZodEnum<{
|
|
207
|
-
at: "at";
|
|
208
|
-
now: "now";
|
|
209
|
-
interval: "interval";
|
|
210
|
-
cron: "cron";
|
|
211
|
-
}>;
|
|
212
|
-
runAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
213
|
-
intervalSeconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
|
|
214
|
-
anchorAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
215
|
-
cron: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
216
|
-
timezone: zod.ZodDefault<zod.ZodString>;
|
|
217
|
-
overlapPolicy: zod.ZodDefault<zod.ZodEnum<{
|
|
218
|
-
skip: "skip";
|
|
219
|
-
buffer_one: "buffer_one";
|
|
220
|
-
}>>;
|
|
221
|
-
catchupSeconds: zod.ZodDefault<zod.ZodInt>;
|
|
222
|
-
}, zod.z.core.$strict>;
|
|
223
|
-
action: zod.ZodObject<{
|
|
224
|
-
type: zod.ZodEnum<{
|
|
225
|
-
prompt: "prompt";
|
|
226
|
-
command: "command";
|
|
227
|
-
}>;
|
|
228
|
-
prompt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
229
|
-
instanceId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
230
|
-
command: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
231
|
-
timeoutSeconds: zod.ZodDefault<zod.ZodInt>;
|
|
232
|
-
}, zod.z.core.$strict>;
|
|
233
|
-
nextRunAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
234
|
-
lastRun: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
235
|
-
id: zod.ZodString;
|
|
236
|
-
taskId: zod.ZodString;
|
|
237
|
-
status: zod.ZodEnum<{
|
|
238
|
-
running: "running";
|
|
239
|
-
completed: "completed";
|
|
240
|
-
failed: "failed";
|
|
241
|
-
cancelled: "cancelled";
|
|
242
|
-
queued: "queued";
|
|
243
|
-
timed_out: "timed_out";
|
|
244
|
-
}>;
|
|
245
|
-
startedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
246
|
-
finishedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
247
|
-
exitCode: zod.ZodNullable<zod.ZodInt>;
|
|
248
|
-
output: zod.ZodNullable<zod.ZodString>;
|
|
249
|
-
errorCode: zod.ZodNullable<zod.ZodString>;
|
|
250
|
-
trigger: zod.ZodEnum<{
|
|
251
|
-
manual: "manual";
|
|
252
|
-
schedule: "schedule";
|
|
253
|
-
assistant: "assistant";
|
|
254
|
-
}>;
|
|
255
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
256
|
-
createdAt: zod.z.ZodISODateTime;
|
|
257
|
-
updatedAt: zod.z.ZodISODateTime;
|
|
258
|
-
}, zod.z.core.$strict>>;
|
|
259
|
-
taskId: zod.ZodOptional<zod.ZodString>;
|
|
260
|
-
cursor: zod.ZodOptional<zod.ZodString>;
|
|
261
|
-
frame: zod.ZodOptional<zod.ZodObject<{
|
|
262
|
-
path: zod.ZodString;
|
|
263
|
-
op: zod.ZodEnum<{
|
|
264
|
-
set: "set";
|
|
265
|
-
add: "add";
|
|
266
|
-
append: "append";
|
|
267
|
-
}>;
|
|
268
|
-
value: zod.ZodUnknown;
|
|
269
|
-
}, zod.z.core.$strict>>;
|
|
270
|
-
code: zod.ZodOptional<zod.ZodString>;
|
|
271
|
-
message: zod.ZodOptional<zod.ZodString>;
|
|
272
|
-
}, zod.z.core.$strict>;
|
|
273
|
-
export type RealtimeServerMessage = zod.input<typeof RealtimeServerMessage>;
|
|
274
|
-
export type RealtimeServerMessageOutput = zod.output<typeof RealtimeServerMessage>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Assistant API
|
|
5
|
-
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
-
* chat-app channels.
|
|
7
|
-
*
|
|
8
|
-
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
-
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
-
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
-
* reasoning effort it used and its token usage.
|
|
12
|
-
*
|
|
13
|
-
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
-
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
-
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
-
*
|
|
17
|
-
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
* over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
|
|
19
|
-
* person's messages for navigating a long conversation.
|
|
20
|
-
*
|
|
21
|
-
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
-
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
-
* OpenAPI spec version: 2.0.0
|
|
24
|
-
*/
|
|
25
|
-
import * as zod from "zod";
|
|
26
|
-
import { FolderResource } from "./folderResource.zod.js";
|
|
27
|
-
import { ItemFrame } from "./itemFrame.zod.js";
|
|
28
|
-
import { TaskResource } from "./taskResource.zod.js";
|
|
29
|
-
import { ThreadResource } from "./threadResource.zod.js";
|
|
30
|
-
import { ThreadTurnResource } from "./threadTurnResource.zod.js";
|
|
31
|
-
export const RealtimeServerMessage = zod
|
|
32
|
-
.strictObject({
|
|
33
|
-
type: zod.enum([
|
|
34
|
-
"subscribed",
|
|
35
|
-
"unsubscribed",
|
|
36
|
-
"thread.updated",
|
|
37
|
-
"thread.deleted",
|
|
38
|
-
"turn.updated",
|
|
39
|
-
"folder.updated",
|
|
40
|
-
"folder.deleted",
|
|
41
|
-
"task.updated",
|
|
42
|
-
"task.deleted",
|
|
43
|
-
"item.frame",
|
|
44
|
-
"resync",
|
|
45
|
-
"error",
|
|
46
|
-
"pong",
|
|
47
|
-
]),
|
|
48
|
-
topic: zod.string().optional(),
|
|
49
|
-
thread: ThreadResource.optional(),
|
|
50
|
-
threadId: zod.string().optional(),
|
|
51
|
-
turn: ThreadTurnResource.optional(),
|
|
52
|
-
folder: FolderResource.optional(),
|
|
53
|
-
folderId: zod.string().optional(),
|
|
54
|
-
task: TaskResource.optional(),
|
|
55
|
-
taskId: zod.string().optional(),
|
|
56
|
-
cursor: zod
|
|
57
|
-
.string()
|
|
58
|
-
.optional()
|
|
59
|
-
.describe("For `item.frame`. Resubscribe from this cursor to continue after a reconnect."),
|
|
60
|
-
frame: ItemFrame.optional(),
|
|
61
|
-
code: zod.string().optional(),
|
|
62
|
-
message: zod.string().optional(),
|
|
63
|
-
})
|
|
64
|
-
.describe("A message from the server. `type` determines which fields apply:\n\n- `subscribed` / `unsubscribed` — `topic`\n- `thread.updated` — `thread`; `thread.deleted` — `threadId`\n- `turn.updated` — `turn`, sent while a turn runs so its usage can be shown live\n- `folder.updated` — `folder`; `folder.deleted` — `folderId`\n- `task.updated` — `task`; `task.deleted` — `taskId`\n- `item.frame` — `threadId`, `cursor` and `frame`, an edit to the transcript\n- `resync` — `topic`; the client lost events and reads the current state again\n- `error` — `code` and `message`\n- `pong`");
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Assistant API
|
|
5
|
-
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
-
* chat-app channels.
|
|
7
|
-
*
|
|
8
|
-
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
-
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
-
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
-
* reasoning effort it used and its token usage.
|
|
12
|
-
*
|
|
13
|
-
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
-
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
-
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
-
*
|
|
17
|
-
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
* over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
|
|
19
|
-
* person's messages for navigating a long conversation.
|
|
20
|
-
*
|
|
21
|
-
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
-
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
-
* OpenAPI spec version: 2.0.0
|
|
24
|
-
*/
|
|
25
|
-
import * as zod from "zod";
|
|
26
|
-
export declare const RealtimeTicketResource: zod.ZodObject<{
|
|
27
|
-
url: zod.ZodString;
|
|
28
|
-
ticket: zod.ZodString;
|
|
29
|
-
expiresAt: zod.z.ZodISODateTime;
|
|
30
|
-
}, zod.z.core.$strict>;
|
|
31
|
-
export type RealtimeTicketResource = zod.input<typeof RealtimeTicketResource>;
|
|
32
|
-
export type RealtimeTicketResourceOutput = zod.output<typeof RealtimeTicketResource>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Assistant API
|
|
5
|
-
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
-
* chat-app channels.
|
|
7
|
-
*
|
|
8
|
-
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
-
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
-
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
-
* reasoning effort it used and its token usage.
|
|
12
|
-
*
|
|
13
|
-
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
-
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
-
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
-
*
|
|
17
|
-
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
* over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
|
|
19
|
-
* person's messages for navigating a long conversation.
|
|
20
|
-
*
|
|
21
|
-
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
-
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
-
* OpenAPI spec version: 2.0.0
|
|
24
|
-
*/
|
|
25
|
-
import * as zod from "zod";
|
|
26
|
-
export const RealtimeTicketResource = zod.strictObject({
|
|
27
|
-
url: zod.string().describe("The WebSocket address, absolute or relative to the API origin."),
|
|
28
|
-
ticket: zod.string(),
|
|
29
|
-
expiresAt: zod.iso.datetime({ offset: true }),
|
|
30
|
-
});
|
package/dist/notification/v1/generated/validators/authorizeRealtimeChannelRequestBody.zod.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Notification API
|
|
5
|
-
* Read the notifications this platform has sent you, and choose where each kind of notification
|
|
6
|
-
* is delivered.
|
|
7
|
-
*
|
|
8
|
-
* Every service on the platform reports events here rather than contacting you directly. This
|
|
9
|
-
* API is the single place where those events are read, and the single place where delivery is
|
|
10
|
-
* configured.
|
|
11
|
-
*
|
|
12
|
-
* ## Authentication
|
|
13
|
-
*
|
|
14
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
15
|
-
*
|
|
16
|
-
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
17
|
-
* the token. Listing operations return everything addressed to you across every project by
|
|
18
|
-
* default, because a notification is addressed to a person rather than to a project; pass
|
|
19
|
-
* `scope=current_project` to narrow the result to the project in the token.
|
|
20
|
-
*
|
|
21
|
-
* ## Conventions
|
|
22
|
-
*
|
|
23
|
-
* - **Notifications are typed, and the type determines who receives it.** A type such as
|
|
24
|
-
* `compute.instance.provisioned` is addressed to whoever created the instance, while
|
|
25
|
-
* `monitoring.alert.raised` is addressed to every member of the project. The full catalogue is
|
|
26
|
-
* available from `GET /api/v1/notification-types` and is stable: a type identifier is never
|
|
27
|
-
* reused for a different event.
|
|
28
|
-
* - **Text is rendered at read time from the language on your preferences.** Changing the
|
|
29
|
-
* language changes the text of everything already in the inbox. Messages already delivered by
|
|
30
|
-
* email or to an outbound channel are not rewritten, because they have already been sent.
|
|
31
|
-
* - **Times inside rendered text are stated in UTC and say so.** There is no time zone setting.
|
|
32
|
-
* Clients that can determine the reader's time zone should present `created_at`, `occurred_at`
|
|
33
|
-
* and the timestamps in `params` — all of which are RFC 3339 — in local time instead. Email
|
|
34
|
-
* cannot do this, which is why the text it carries is explicit about being UTC.
|
|
35
|
-
* - **Some types must reach you, and those cannot be muted or removed from email.** They are
|
|
36
|
-
* marked `mandatory` in the catalogue: types you would only find out about by signing in, when
|
|
37
|
-
* not finding out costs you something — a suspension, a deletion, a credential that expires.
|
|
38
|
-
* Everything else about them is still configurable, including adding channels of your own.
|
|
39
|
-
* - **Deleting a preference restores the default; it does not turn the type off.** To stop
|
|
40
|
-
* receiving a type, set `muted` on it.
|
|
41
|
-
* - **Outbound channels deliver nothing until they are verified.** Registering a channel does not
|
|
42
|
-
* contact it. Verification is a separate operation that sends one message, and only a channel
|
|
43
|
-
* that has acknowledged it receives anything afterwards.
|
|
44
|
-
* - **Channel endpoints are never returned.** No operation, including the one that registers
|
|
45
|
-
* them, returns the address that was submitted. A channel entered incorrectly must be deleted
|
|
46
|
-
* and registered again.
|
|
47
|
-
*
|
|
48
|
-
* ## Rate and volume
|
|
49
|
-
*
|
|
50
|
-
* Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
|
|
51
|
-
* summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
|
|
52
|
-
* every notification. A notification that was summarised or suppressed is still readable here.
|
|
53
|
-
*
|
|
54
|
-
* ## One-time credentials
|
|
55
|
-
*
|
|
56
|
-
* Some notifications carry a reference to a credential rather than the credential itself — the
|
|
57
|
-
* initial password of a newly created instance, for example. That credential is readable exactly
|
|
58
|
-
* once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
|
|
59
|
-
* time returns `CREDENTIAL_TICKET_CONSUMED`.
|
|
60
|
-
* OpenAPI spec version: 1.0.0
|
|
61
|
-
*/
|
|
62
|
-
import * as zod from "zod";
|
|
63
|
-
export declare const authorizeRealtimeChannelRequestBodyChannelNameMax = 255;
|
|
64
|
-
export declare const authorizeRealtimeChannelRequestBodySocketIdMax = 128;
|
|
65
|
-
export declare const AuthorizeRealtimeChannelRequestBody: zod.ZodObject<{
|
|
66
|
-
channel_name: zod.ZodString;
|
|
67
|
-
socket_id: zod.ZodString;
|
|
68
|
-
}, zod.z.core.$strict>;
|
|
69
|
-
export type AuthorizeRealtimeChannelRequestBody = zod.input<typeof AuthorizeRealtimeChannelRequestBody>;
|
|
70
|
-
export type AuthorizeRealtimeChannelRequestBodyOutput = zod.output<typeof AuthorizeRealtimeChannelRequestBody>;
|
package/dist/notification/v1/generated/validators/authorizeRealtimeChannelRequestBody.zod.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Notification API
|
|
5
|
-
* Read the notifications this platform has sent you, and choose where each kind of notification
|
|
6
|
-
* is delivered.
|
|
7
|
-
*
|
|
8
|
-
* Every service on the platform reports events here rather than contacting you directly. This
|
|
9
|
-
* API is the single place where those events are read, and the single place where delivery is
|
|
10
|
-
* configured.
|
|
11
|
-
*
|
|
12
|
-
* ## Authentication
|
|
13
|
-
*
|
|
14
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
15
|
-
*
|
|
16
|
-
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
17
|
-
* the token. Listing operations return everything addressed to you across every project by
|
|
18
|
-
* default, because a notification is addressed to a person rather than to a project; pass
|
|
19
|
-
* `scope=current_project` to narrow the result to the project in the token.
|
|
20
|
-
*
|
|
21
|
-
* ## Conventions
|
|
22
|
-
*
|
|
23
|
-
* - **Notifications are typed, and the type determines who receives it.** A type such as
|
|
24
|
-
* `compute.instance.provisioned` is addressed to whoever created the instance, while
|
|
25
|
-
* `monitoring.alert.raised` is addressed to every member of the project. The full catalogue is
|
|
26
|
-
* available from `GET /api/v1/notification-types` and is stable: a type identifier is never
|
|
27
|
-
* reused for a different event.
|
|
28
|
-
* - **Text is rendered at read time from the language on your preferences.** Changing the
|
|
29
|
-
* language changes the text of everything already in the inbox. Messages already delivered by
|
|
30
|
-
* email or to an outbound channel are not rewritten, because they have already been sent.
|
|
31
|
-
* - **Times inside rendered text are stated in UTC and say so.** There is no time zone setting.
|
|
32
|
-
* Clients that can determine the reader's time zone should present `created_at`, `occurred_at`
|
|
33
|
-
* and the timestamps in `params` — all of which are RFC 3339 — in local time instead. Email
|
|
34
|
-
* cannot do this, which is why the text it carries is explicit about being UTC.
|
|
35
|
-
* - **Some types must reach you, and those cannot be muted or removed from email.** They are
|
|
36
|
-
* marked `mandatory` in the catalogue: types you would only find out about by signing in, when
|
|
37
|
-
* not finding out costs you something — a suspension, a deletion, a credential that expires.
|
|
38
|
-
* Everything else about them is still configurable, including adding channels of your own.
|
|
39
|
-
* - **Deleting a preference restores the default; it does not turn the type off.** To stop
|
|
40
|
-
* receiving a type, set `muted` on it.
|
|
41
|
-
* - **Outbound channels deliver nothing until they are verified.** Registering a channel does not
|
|
42
|
-
* contact it. Verification is a separate operation that sends one message, and only a channel
|
|
43
|
-
* that has acknowledged it receives anything afterwards.
|
|
44
|
-
* - **Channel endpoints are never returned.** No operation, including the one that registers
|
|
45
|
-
* them, returns the address that was submitted. A channel entered incorrectly must be deleted
|
|
46
|
-
* and registered again.
|
|
47
|
-
*
|
|
48
|
-
* ## Rate and volume
|
|
49
|
-
*
|
|
50
|
-
* Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
|
|
51
|
-
* summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
|
|
52
|
-
* every notification. A notification that was summarised or suppressed is still readable here.
|
|
53
|
-
*
|
|
54
|
-
* ## One-time credentials
|
|
55
|
-
*
|
|
56
|
-
* Some notifications carry a reference to a credential rather than the credential itself — the
|
|
57
|
-
* initial password of a newly created instance, for example. That credential is readable exactly
|
|
58
|
-
* once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
|
|
59
|
-
* time returns `CREDENTIAL_TICKET_CONSUMED`.
|
|
60
|
-
* OpenAPI spec version: 1.0.0
|
|
61
|
-
*/
|
|
62
|
-
import * as zod from "zod";
|
|
63
|
-
export const authorizeRealtimeChannelRequestBodyChannelNameMax = 255;
|
|
64
|
-
export const authorizeRealtimeChannelRequestBodySocketIdMax = 128;
|
|
65
|
-
export const AuthorizeRealtimeChannelRequestBody = zod.strictObject({
|
|
66
|
-
channel_name: zod
|
|
67
|
-
.string()
|
|
68
|
-
.min(1)
|
|
69
|
-
.max(authorizeRealtimeChannelRequestBodyChannelNameMax)
|
|
70
|
-
.describe("The channel being subscribed to"),
|
|
71
|
-
socket_id: zod
|
|
72
|
-
.string()
|
|
73
|
-
.min(1)
|
|
74
|
-
.max(authorizeRealtimeChannelRequestBodySocketIdMax)
|
|
75
|
-
.describe("The connection identifier the realtime server assigned to this client"),
|
|
76
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Notification API
|
|
5
|
-
* Read the notifications this platform has sent you, and choose where each kind of notification
|
|
6
|
-
* is delivered.
|
|
7
|
-
*
|
|
8
|
-
* Every service on the platform reports events here rather than contacting you directly. This
|
|
9
|
-
* API is the single place where those events are read, and the single place where delivery is
|
|
10
|
-
* configured.
|
|
11
|
-
*
|
|
12
|
-
* ## Authentication
|
|
13
|
-
*
|
|
14
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
15
|
-
*
|
|
16
|
-
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
17
|
-
* the token. Listing operations return everything addressed to you across every project by
|
|
18
|
-
* default, because a notification is addressed to a person rather than to a project; pass
|
|
19
|
-
* `scope=current_project` to narrow the result to the project in the token.
|
|
20
|
-
*
|
|
21
|
-
* ## Conventions
|
|
22
|
-
*
|
|
23
|
-
* - **Notifications are typed, and the type determines who receives it.** A type such as
|
|
24
|
-
* `compute.instance.provisioned` is addressed to whoever created the instance, while
|
|
25
|
-
* `monitoring.alert.raised` is addressed to every member of the project. The full catalogue is
|
|
26
|
-
* available from `GET /api/v1/notification-types` and is stable: a type identifier is never
|
|
27
|
-
* reused for a different event.
|
|
28
|
-
* - **Text is rendered at read time from the language on your preferences.** Changing the
|
|
29
|
-
* language changes the text of everything already in the inbox. Messages already delivered by
|
|
30
|
-
* email or to an outbound channel are not rewritten, because they have already been sent.
|
|
31
|
-
* - **Times inside rendered text are stated in UTC and say so.** There is no time zone setting.
|
|
32
|
-
* Clients that can determine the reader's time zone should present `created_at`, `occurred_at`
|
|
33
|
-
* and the timestamps in `params` — all of which are RFC 3339 — in local time instead. Email
|
|
34
|
-
* cannot do this, which is why the text it carries is explicit about being UTC.
|
|
35
|
-
* - **Some types must reach you, and those cannot be muted or removed from email.** They are
|
|
36
|
-
* marked `mandatory` in the catalogue: types you would only find out about by signing in, when
|
|
37
|
-
* not finding out costs you something — a suspension, a deletion, a credential that expires.
|
|
38
|
-
* Everything else about them is still configurable, including adding channels of your own.
|
|
39
|
-
* - **Deleting a preference restores the default; it does not turn the type off.** To stop
|
|
40
|
-
* receiving a type, set `muted` on it.
|
|
41
|
-
* - **Outbound channels deliver nothing until they are verified.** Registering a channel does not
|
|
42
|
-
* contact it. Verification is a separate operation that sends one message, and only a channel
|
|
43
|
-
* that has acknowledged it receives anything afterwards.
|
|
44
|
-
* - **Channel endpoints are never returned.** No operation, including the one that registers
|
|
45
|
-
* them, returns the address that was submitted. A channel entered incorrectly must be deleted
|
|
46
|
-
* and registered again.
|
|
47
|
-
*
|
|
48
|
-
* ## Rate and volume
|
|
49
|
-
*
|
|
50
|
-
* Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
|
|
51
|
-
* summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
|
|
52
|
-
* every notification. A notification that was summarised or suppressed is still readable here.
|
|
53
|
-
*
|
|
54
|
-
* ## One-time credentials
|
|
55
|
-
*
|
|
56
|
-
* Some notifications carry a reference to a credential rather than the credential itself — the
|
|
57
|
-
* initial password of a newly created instance, for example. That credential is readable exactly
|
|
58
|
-
* once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
|
|
59
|
-
* time returns `CREDENTIAL_TICKET_CONSUMED`.
|
|
60
|
-
* OpenAPI spec version: 1.0.0
|
|
61
|
-
*/
|
|
62
|
-
import * as zod from "zod";
|
|
63
|
-
export declare const RealtimeAuthResource: zod.ZodObject<{
|
|
64
|
-
auth: zod.ZodString;
|
|
65
|
-
}, zod.z.core.$strict>;
|
|
66
|
-
export type RealtimeAuthResource = zod.input<typeof RealtimeAuthResource>;
|
|
67
|
-
export type RealtimeAuthResourceOutput = zod.output<typeof RealtimeAuthResource>;
|