@leaflow/sdk 0.0.0-dev.437.gc278ab8 → 0.0.0-dev.439.g15ccd50
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 +318 -41
- package/dist/eventbus/v1/generated/functions.js +203 -16
- package/dist/eventbus/v1/generated/models.d.ts +217 -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 +175 -32
- package/dist/eventbus/v1/generated/validators/createEventRequest.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/createEventRequest.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/createNamespaceRequest.zod.d.ts +94 -0
- package/dist/eventbus/v1/generated/validators/createNamespaceRequest.zod.js +99 -0
- package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/cursorPagination.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/cursorPagination.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/error.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/error.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/errorStatus.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/errorStatus.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/eventDetail.zod.d.ts +61 -14
- package/dist/eventbus/v1/generated/validators/eventDetail.zod.js +68 -15
- package/dist/eventbus/v1/generated/validators/eventList.zod.d.ts +60 -14
- package/dist/eventbus/v1/generated/validators/eventList.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/eventMessage.zod.d.ts +99 -0
- package/dist/eventbus/v1/generated/validators/eventMessage.zod.js +104 -0
- package/dist/eventbus/v1/generated/validators/eventResource.zod.d.ts +61 -14
- package/dist/eventbus/v1/generated/validators/eventResource.zod.js +68 -15
- package/dist/eventbus/v1/generated/validators/eventStatus.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/eventStatus.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/eventVersion.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/eventVersion.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/fieldViolation.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/fieldViolation.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/listEventsParams.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/listEventsParams.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/listNamespacesParams.zod.d.ts +98 -0
- package/dist/eventbus/v1/generated/validators/listNamespacesParams.zod.js +100 -0
- package/dist/eventbus/v1/generated/validators/namespaceList.zod.d.ts +103 -0
- package/dist/eventbus/v1/generated/validators/namespaceList.zod.js +95 -0
- package/dist/eventbus/v1/generated/validators/namespaceResource.zod.d.ts +99 -0
- package/dist/eventbus/v1/generated/validators/namespaceResource.zod.js +101 -0
- package/dist/eventbus/v1/generated/validators/namespaceStatus.zod.d.ts +90 -0
- package/dist/eventbus/v1/generated/validators/namespaceStatus.zod.js +87 -0
- package/dist/eventbus/v1/generated/validators/offsetPagination.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/offsetPagination.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/publication.zod.d.ts +98 -0
- package/dist/eventbus/v1/generated/validators/publication.zod.js +111 -0
- package/dist/eventbus/v1/generated/validators/publishRequest.zod.d.ts +69 -20
- package/dist/eventbus/v1/generated/validators/publishRequest.zod.js +66 -27
- package/dist/eventbus/v1/generated/validators/publishResponse.zod.d.ts +65 -18
- package/dist/eventbus/v1/generated/validators/publishResponse.zod.js +63 -20
- package/dist/eventbus/v1/generated/validators/publishedMessage.zod.d.ts +92 -0
- package/dist/eventbus/v1/generated/validators/publishedMessage.zod.js +92 -0
- package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.d.ts +61 -15
- package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.js +69 -17
- package/dist/eventbus/v1/generated/validators/realtimeTicketRequest.zod.d.ts +91 -0
- package/dist/eventbus/v1/generated/validators/realtimeTicketRequest.zod.js +93 -0
- package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.d.ts +59 -14
- package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.js +59 -14
- package/dist/eventbus/v1/generated/validators/updateNamespaceRequest.zod.d.ts +94 -0
- package/dist/eventbus/v1/generated/validators/updateNamespaceRequest.zod.js +90 -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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Definitions and messages
|
|
8
|
+
*
|
|
9
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
10
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
11
|
+
* not part of the event definition.
|
|
12
|
+
*
|
|
13
|
+
* Every event belongs to a namespace, and its name is the namespace's name, a dot, and at least a
|
|
14
|
+
* resource and an action, such as `acme.order.created`. A project creates its own namespaces and
|
|
15
|
+
* defines events in them. Platform namespaces, such as `leaflow.notification`, are maintained by
|
|
16
|
+
* platform services: their events are listed alongside the project's own and can be subscribed
|
|
17
|
+
* to, but cannot be changed or published here, and the namespaces cannot be changed or deleted.
|
|
18
|
+
* Events in a platform namespace are called platform events below.
|
|
19
|
+
*
|
|
20
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
21
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
22
|
+
* version.
|
|
23
|
+
*
|
|
24
|
+
* ## Publishing
|
|
25
|
+
*
|
|
26
|
+
* Messages are published in batches of up to 64. A batch is validated as a whole: if any message
|
|
27
|
+
* is rejected, none is published. Publishing returns the identity of each message and does not
|
|
28
|
+
* wait for consumers. Messages are not stored and are not replayed: a consumer that connects
|
|
29
|
+
* later does not receive earlier messages.
|
|
30
|
+
*
|
|
31
|
+
* Messages published through this API are sent to the current project. A message may name one
|
|
32
|
+
* `subject`, a member of the project; it is then sent to that member only. Without a subject it is
|
|
33
|
+
* sent to every member of the project.
|
|
34
|
+
*
|
|
35
|
+
* Every publication names a `client_id`. It starts with the prefix returned with a realtime
|
|
36
|
+
* ticket, `user.{user_id}.project.{project_id}.`, followed by one segment chosen by the
|
|
37
|
+
* client, such as a random identifier per browser tab. Receivers get it unchanged, so a client
|
|
38
|
+
* can recognise its own messages. A client ID does not need to be unique: several connections
|
|
39
|
+
* may share one.
|
|
40
|
+
*
|
|
41
|
+
* ## Realtime
|
|
42
|
+
*
|
|
43
|
+
* Every message has a topic `{event}/{project_id|-}/{subject|-}/{key levels}`, where `-` stands
|
|
44
|
+
* for a missing recipient and the key, split at `/`, supplies the remaining levels. A topic filter
|
|
45
|
+
* uses `+` to match exactly one level and `#`, only as the last level, to match that level and
|
|
46
|
+
* every level below it, including none. For example, `{event}/{project_id}/-/#` matches every
|
|
47
|
+
* message sent to the members of a project, and `{event}/-/{user_id}/#` every message sent to one
|
|
48
|
+
* person outside any project.
|
|
49
|
+
*
|
|
50
|
+
* 1. Create a ticket with `POST /api/v1/realtime/tickets`, naming the events to receive. The
|
|
51
|
+
* response lists the topic filters the ticket covers and the `client_id_prefix` to use. For a
|
|
52
|
+
* platform event they cover messages sent to the caller, messages sent to no recipient and,
|
|
53
|
+
* where the caller's permissions allow, messages sent within the project; for a project event
|
|
54
|
+
* they cover messages sent within the project. Without a selected project, use
|
|
55
|
+
* `POST /api/v1/account/realtime/tickets`; such a ticket covers only messages sent to the
|
|
56
|
+
* caller or to no recipient, and cannot publish.
|
|
57
|
+
* 2. Open a WebSocket to `wss://eventbus.leaflow.cloud/realtime` and send, within 15 seconds:
|
|
58
|
+
* `{"type":"authenticate","ticket":"…","client_id":"…"}`. The reply is
|
|
59
|
+
* `{"type":"authenticated","client_id":"…","connection_id":"…","expires_at":"…"}`.
|
|
60
|
+
* `connection_id` identifies this connection; it is assigned by EventBus and changes on
|
|
61
|
+
* every reconnection.
|
|
62
|
+
* 3. Send `{"type":"subscribe","id":"…","topics":[…]}`. Each topic must be one of the returned
|
|
63
|
+
* `topics` or lie within one of them, for example by naming a key level where the ticket has
|
|
64
|
+
* `#`; a batch with any other topic is rejected as a whole. The reply is `subscribed`.
|
|
65
|
+
* `unsubscribe` takes the same form and replies `unsubscribed`. Both may be sent at any time
|
|
66
|
+
* while the connection is open.
|
|
67
|
+
* 4. Messages arrive as `{"type":"messages","messages":[…]}`, each element an `EventMessage`. A
|
|
68
|
+
* message matching several subscriptions on one connection arrives once for each of them.
|
|
69
|
+
* 5. A connection may switch to another ticket of the same user at any time by sending
|
|
70
|
+
* `authenticate` again: to renew before `expires_at`, to move from an account ticket to a
|
|
71
|
+
* project ticket, or to move to another project. `client_id` may be omitted while the
|
|
72
|
+
* `client_id_prefix` stays the same; when it changes, a client ID under the new prefix is
|
|
73
|
+
* required. Subscriptions the new ticket does not cover are removed at once and reported in a
|
|
74
|
+
* `{"type":"revoked","topics":[…]}` frame. A ticket for another user closes the connection
|
|
75
|
+
* with code 4401, as does letting the ticket expire.
|
|
76
|
+
*
|
|
77
|
+
* A connection holding a project ticket may publish the project's own events with
|
|
78
|
+
* `{"type":"publish","id":"…","messages":[{"event":"…","key":"…","subject":"…","data":{…}}]}`;
|
|
79
|
+
* the reply is `published` with the identity of each message. `ping` is answered with `pong`.
|
|
80
|
+
* A rejected request is answered with `{"type":"error","id":"…","code":"…","message":"…"}`.
|
|
81
|
+
* Every reply carries the `id` of the request it answers.
|
|
82
|
+
* OpenAPI spec version: 1.0.0
|
|
83
|
+
*/
|
|
84
|
+
import * as zod from "zod";
|
|
85
|
+
export declare const updateNamespaceRequestDescriptionMax = 1024;
|
|
86
|
+
export declare const UpdateNamespaceRequest: zod.ZodObject<{
|
|
87
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
88
|
+
status: zod.ZodOptional<zod.ZodEnum<{
|
|
89
|
+
active: "active";
|
|
90
|
+
archived: "archived";
|
|
91
|
+
}>>;
|
|
92
|
+
}, zod.z.core.$strict>;
|
|
93
|
+
export type UpdateNamespaceRequest = zod.input<typeof UpdateNamespaceRequest>;
|
|
94
|
+
export type UpdateNamespaceRequestOutput = zod.output<typeof UpdateNamespaceRequest>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Event Bus API
|
|
5
|
+
* Event definitions, versions, publishing, and realtime access.
|
|
6
|
+
*
|
|
7
|
+
* ## Definitions and messages
|
|
8
|
+
*
|
|
9
|
+
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
10
|
+
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
11
|
+
* not part of the event definition.
|
|
12
|
+
*
|
|
13
|
+
* Every event belongs to a namespace, and its name is the namespace's name, a dot, and at least a
|
|
14
|
+
* resource and an action, such as `acme.order.created`. A project creates its own namespaces and
|
|
15
|
+
* defines events in them. Platform namespaces, such as `leaflow.notification`, are maintained by
|
|
16
|
+
* platform services: their events are listed alongside the project's own and can be subscribed
|
|
17
|
+
* to, but cannot be changed or published here, and the namespaces cannot be changed or deleted.
|
|
18
|
+
* Events in a platform namespace are called platform events below.
|
|
19
|
+
*
|
|
20
|
+
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
21
|
+
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
22
|
+
* version.
|
|
23
|
+
*
|
|
24
|
+
* ## Publishing
|
|
25
|
+
*
|
|
26
|
+
* Messages are published in batches of up to 64. A batch is validated as a whole: if any message
|
|
27
|
+
* is rejected, none is published. Publishing returns the identity of each message and does not
|
|
28
|
+
* wait for consumers. Messages are not stored and are not replayed: a consumer that connects
|
|
29
|
+
* later does not receive earlier messages.
|
|
30
|
+
*
|
|
31
|
+
* Messages published through this API are sent to the current project. A message may name one
|
|
32
|
+
* `subject`, a member of the project; it is then sent to that member only. Without a subject it is
|
|
33
|
+
* sent to every member of the project.
|
|
34
|
+
*
|
|
35
|
+
* Every publication names a `client_id`. It starts with the prefix returned with a realtime
|
|
36
|
+
* ticket, `user.{user_id}.project.{project_id}.`, followed by one segment chosen by the
|
|
37
|
+
* client, such as a random identifier per browser tab. Receivers get it unchanged, so a client
|
|
38
|
+
* can recognise its own messages. A client ID does not need to be unique: several connections
|
|
39
|
+
* may share one.
|
|
40
|
+
*
|
|
41
|
+
* ## Realtime
|
|
42
|
+
*
|
|
43
|
+
* Every message has a topic `{event}/{project_id|-}/{subject|-}/{key levels}`, where `-` stands
|
|
44
|
+
* for a missing recipient and the key, split at `/`, supplies the remaining levels. A topic filter
|
|
45
|
+
* uses `+` to match exactly one level and `#`, only as the last level, to match that level and
|
|
46
|
+
* every level below it, including none. For example, `{event}/{project_id}/-/#` matches every
|
|
47
|
+
* message sent to the members of a project, and `{event}/-/{user_id}/#` every message sent to one
|
|
48
|
+
* person outside any project.
|
|
49
|
+
*
|
|
50
|
+
* 1. Create a ticket with `POST /api/v1/realtime/tickets`, naming the events to receive. The
|
|
51
|
+
* response lists the topic filters the ticket covers and the `client_id_prefix` to use. For a
|
|
52
|
+
* platform event they cover messages sent to the caller, messages sent to no recipient and,
|
|
53
|
+
* where the caller's permissions allow, messages sent within the project; for a project event
|
|
54
|
+
* they cover messages sent within the project. Without a selected project, use
|
|
55
|
+
* `POST /api/v1/account/realtime/tickets`; such a ticket covers only messages sent to the
|
|
56
|
+
* caller or to no recipient, and cannot publish.
|
|
57
|
+
* 2. Open a WebSocket to `wss://eventbus.leaflow.cloud/realtime` and send, within 15 seconds:
|
|
58
|
+
* `{"type":"authenticate","ticket":"…","client_id":"…"}`. The reply is
|
|
59
|
+
* `{"type":"authenticated","client_id":"…","connection_id":"…","expires_at":"…"}`.
|
|
60
|
+
* `connection_id` identifies this connection; it is assigned by EventBus and changes on
|
|
61
|
+
* every reconnection.
|
|
62
|
+
* 3. Send `{"type":"subscribe","id":"…","topics":[…]}`. Each topic must be one of the returned
|
|
63
|
+
* `topics` or lie within one of them, for example by naming a key level where the ticket has
|
|
64
|
+
* `#`; a batch with any other topic is rejected as a whole. The reply is `subscribed`.
|
|
65
|
+
* `unsubscribe` takes the same form and replies `unsubscribed`. Both may be sent at any time
|
|
66
|
+
* while the connection is open.
|
|
67
|
+
* 4. Messages arrive as `{"type":"messages","messages":[…]}`, each element an `EventMessage`. A
|
|
68
|
+
* message matching several subscriptions on one connection arrives once for each of them.
|
|
69
|
+
* 5. A connection may switch to another ticket of the same user at any time by sending
|
|
70
|
+
* `authenticate` again: to renew before `expires_at`, to move from an account ticket to a
|
|
71
|
+
* project ticket, or to move to another project. `client_id` may be omitted while the
|
|
72
|
+
* `client_id_prefix` stays the same; when it changes, a client ID under the new prefix is
|
|
73
|
+
* required. Subscriptions the new ticket does not cover are removed at once and reported in a
|
|
74
|
+
* `{"type":"revoked","topics":[…]}` frame. A ticket for another user closes the connection
|
|
75
|
+
* with code 4401, as does letting the ticket expire.
|
|
76
|
+
*
|
|
77
|
+
* A connection holding a project ticket may publish the project's own events with
|
|
78
|
+
* `{"type":"publish","id":"…","messages":[{"event":"…","key":"…","subject":"…","data":{…}}]}`;
|
|
79
|
+
* the reply is `published` with the identity of each message. `ping` is answered with `pong`.
|
|
80
|
+
* A rejected request is answered with `{"type":"error","id":"…","code":"…","message":"…"}`.
|
|
81
|
+
* Every reply carries the `id` of the request it answers.
|
|
82
|
+
* OpenAPI spec version: 1.0.0
|
|
83
|
+
*/
|
|
84
|
+
import * as zod from "zod";
|
|
85
|
+
import { NamespaceStatus } from "./namespaceStatus.zod.js";
|
|
86
|
+
export const updateNamespaceRequestDescriptionMax = 1024;
|
|
87
|
+
export const UpdateNamespaceRequest = zod.strictObject({
|
|
88
|
+
description: zod.string().max(updateNamespaceRequestDescriptionMax).optional(),
|
|
89
|
+
status: NamespaceStatus.optional(),
|
|
90
|
+
});
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
* time returns `CREDENTIAL_TICKET_CONSUMED`.
|
|
60
60
|
* OpenAPI spec version: 1.0.0
|
|
61
61
|
*/
|
|
62
|
-
import type { AnnouncementListResource, AnnouncementReadResultResource,
|
|
62
|
+
import type { AnnouncementListResource, AnnouncementReadResultResource, ChannelListResponseBody, ChannelResource, ConfirmEmailOverrideRequestBody, CountUnreadNotificationsParams, CreateChannelRequestBody, CredentialTicketResource, DeleteTypePreferenceParams, EmailOverrideCodeResource, Error, LengthAwarePageNotificationResource, ListNotificationsParams, ListTypePreferencesParams, ListUserChannelsParams, MarkNotificationsReadRequestBody, NotificationResource, NotificationTypeListResponseBody, PreferencesResource, RevealedCredentialResource, TypePreferenceListResponseBody, TypePreferenceResource, UnreadCountResource, UpdateChannelRequestBody, UpdatePreferencesRequestBody, UpdateTypePreferenceParams, UpdateTypePreferenceRequestBody } from "./models.js";
|
|
63
63
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
64
64
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
65
65
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -134,7 +134,8 @@ export type countUnreadNotificationsResponse = countUnreadNotificationsResponseS
|
|
|
134
134
|
export declare const getCountUnreadNotificationsUrl: (params?: CountUnreadNotificationsParams) => string;
|
|
135
135
|
/**
|
|
136
136
|
* Returns the number of unread notifications. This is the value behind the badge in the
|
|
137
|
-
* console, and it is also carried on every
|
|
137
|
+
* console, and it is also carried on every `notification.inbox.created` and
|
|
138
|
+
* `notification.inbox.read` message delivered by EventBus, so it does not normally need to be
|
|
138
139
|
* requested on its own.
|
|
139
140
|
* @summary Count unread notifications
|
|
140
141
|
*/
|
|
@@ -765,59 +766,3 @@ export declare const getRevealCredentialUrl: (ticketId: string) => string;
|
|
|
765
766
|
* @summary Reveal a one-time credential
|
|
766
767
|
*/
|
|
767
768
|
export declare const revealCredential: (ticketId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<revealCredentialResponse>;
|
|
768
|
-
export type describeRealtimeConnectionResponse200 = {
|
|
769
|
-
data: RealtimeConnectionResource;
|
|
770
|
-
status: 200;
|
|
771
|
-
};
|
|
772
|
-
export type describeRealtimeConnectionResponseDefault = {
|
|
773
|
-
data: Error;
|
|
774
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
775
|
-
};
|
|
776
|
-
export type describeRealtimeConnectionResponseSuccess = describeRealtimeConnectionResponse200 & {
|
|
777
|
-
headers: Headers;
|
|
778
|
-
};
|
|
779
|
-
export type describeRealtimeConnectionResponseError = describeRealtimeConnectionResponseDefault & {
|
|
780
|
-
headers: Headers;
|
|
781
|
-
};
|
|
782
|
-
export type describeRealtimeConnectionResponse = describeRealtimeConnectionResponseSuccess | describeRealtimeConnectionResponseError;
|
|
783
|
-
export declare const getDescribeRealtimeConnectionUrl: () => string;
|
|
784
|
-
/**
|
|
785
|
-
* Returns everything needed to open a realtime connection, and the names of the channels to
|
|
786
|
-
* subscribe to. The parameters are not constants: they differ between environments, so they
|
|
787
|
-
* must be requested rather than compiled in.
|
|
788
|
-
*
|
|
789
|
-
* Realtime delivery is an optimisation. Everything it announces is also readable through the
|
|
790
|
-
* listing operations, so a client that cannot connect stays correct by polling or by
|
|
791
|
-
* refreshing.
|
|
792
|
-
* @summary Describe the realtime connection
|
|
793
|
-
*/
|
|
794
|
-
export declare const describeRealtimeConnection: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<describeRealtimeConnectionResponse>;
|
|
795
|
-
export type authorizeRealtimeChannelResponse200 = {
|
|
796
|
-
data: RealtimeAuthResource;
|
|
797
|
-
status: 200;
|
|
798
|
-
};
|
|
799
|
-
export type authorizeRealtimeChannelResponseDefault = {
|
|
800
|
-
data: Error;
|
|
801
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
802
|
-
};
|
|
803
|
-
export type authorizeRealtimeChannelResponseSuccess = authorizeRealtimeChannelResponse200 & {
|
|
804
|
-
headers: Headers;
|
|
805
|
-
};
|
|
806
|
-
export type authorizeRealtimeChannelResponseError = authorizeRealtimeChannelResponseDefault & {
|
|
807
|
-
headers: Headers;
|
|
808
|
-
};
|
|
809
|
-
export type authorizeRealtimeChannelResponse = authorizeRealtimeChannelResponseSuccess | authorizeRealtimeChannelResponseError;
|
|
810
|
-
export declare const getAuthorizeRealtimeChannelUrl: () => string;
|
|
811
|
-
/**
|
|
812
|
-
* Authorizes one subscription. Realtime clients call this on their own while subscribing; it
|
|
813
|
-
* is not normally called directly.
|
|
814
|
-
*
|
|
815
|
-
* Only two channels are authorized: the one naming you, and the one naming the project in
|
|
816
|
-
* the token. Any other channel returns `REALTIME_CHANNEL_FORBIDDEN`.
|
|
817
|
-
*
|
|
818
|
-
* **Authorization is evaluated once, when the subscription is established.** A subscription
|
|
819
|
-
* already open is not revoked when project membership changes, so realtime events carry
|
|
820
|
-
* identifiers and counts only, never the contents of a notification.
|
|
821
|
-
* @summary Authorize a realtime channel subscription
|
|
822
|
-
*/
|
|
823
|
-
export declare const authorizeRealtimeChannel: (authorizeRealtimeChannelRequestBody: AuthorizeRealtimeChannelRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<authorizeRealtimeChannelResponse>;
|
|
@@ -78,7 +78,8 @@ export const getCountUnreadNotificationsUrl = (params) => {
|
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* Returns the number of unread notifications. This is the value behind the badge in the
|
|
81
|
-
* console, and it is also carried on every
|
|
81
|
+
* console, and it is also carried on every `notification.inbox.created` and
|
|
82
|
+
* `notification.inbox.read` message delivered by EventBus, so it does not normally need to be
|
|
82
83
|
* requested on its own.
|
|
83
84
|
* @summary Count unread notifications
|
|
84
85
|
*/
|
|
@@ -722,66 +723,3 @@ export const revealCredential = async (ticketId, options, fetchFn) => {
|
|
|
722
723
|
const data = body ? JSON.parse(body) : {};
|
|
723
724
|
return { data, status: res.status, headers: res.headers };
|
|
724
725
|
};
|
|
725
|
-
export const getDescribeRealtimeConnectionUrl = () => {
|
|
726
|
-
return `https://notification.leaflow.cloud/api/v1/realtime`;
|
|
727
|
-
};
|
|
728
|
-
/**
|
|
729
|
-
* Returns everything needed to open a realtime connection, and the names of the channels to
|
|
730
|
-
* subscribe to. The parameters are not constants: they differ between environments, so they
|
|
731
|
-
* must be requested rather than compiled in.
|
|
732
|
-
*
|
|
733
|
-
* Realtime delivery is an optimisation. Everything it announces is also readable through the
|
|
734
|
-
* listing operations, so a client that cannot connect stays correct by polling or by
|
|
735
|
-
* refreshing.
|
|
736
|
-
* @summary Describe the realtime connection
|
|
737
|
-
*/
|
|
738
|
-
export const describeRealtimeConnection = async (options, fetchFn) => {
|
|
739
|
-
const res = await (fetchFn ?? fetch)(getDescribeRealtimeConnectionUrl(), {
|
|
740
|
-
...options,
|
|
741
|
-
method: "GET",
|
|
742
|
-
});
|
|
743
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
744
|
-
const data = body ? JSON.parse(body) : {};
|
|
745
|
-
return { data, status: res.status, headers: res.headers };
|
|
746
|
-
};
|
|
747
|
-
export const getAuthorizeRealtimeChannelUrl = () => {
|
|
748
|
-
return `https://notification.leaflow.cloud/api/v1/realtime/auth`;
|
|
749
|
-
};
|
|
750
|
-
/**
|
|
751
|
-
* Authorizes one subscription. Realtime clients call this on their own while subscribing; it
|
|
752
|
-
* is not normally called directly.
|
|
753
|
-
*
|
|
754
|
-
* Only two channels are authorized: the one naming you, and the one naming the project in
|
|
755
|
-
* the token. Any other channel returns `REALTIME_CHANNEL_FORBIDDEN`.
|
|
756
|
-
*
|
|
757
|
-
* **Authorization is evaluated once, when the subscription is established.** A subscription
|
|
758
|
-
* already open is not revoked when project membership changes, so realtime events carry
|
|
759
|
-
* identifiers and counts only, never the contents of a notification.
|
|
760
|
-
* @summary Authorize a realtime channel subscription
|
|
761
|
-
*/
|
|
762
|
-
export const authorizeRealtimeChannel = async (authorizeRealtimeChannelRequestBody, options, fetchFn) => {
|
|
763
|
-
const getHeaders = (h) => {
|
|
764
|
-
if (!h)
|
|
765
|
-
return {};
|
|
766
|
-
if (h instanceof Headers)
|
|
767
|
-
return Object.fromEntries(h.entries());
|
|
768
|
-
if (Symbol.iterator in h) {
|
|
769
|
-
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
770
|
-
}
|
|
771
|
-
const headers = {};
|
|
772
|
-
for (const [name, value] of Object.entries(h)) {
|
|
773
|
-
if (value !== undefined)
|
|
774
|
-
headers[name] = value;
|
|
775
|
-
}
|
|
776
|
-
return headers;
|
|
777
|
-
};
|
|
778
|
-
const res = await (fetchFn ?? fetch)(getAuthorizeRealtimeChannelUrl(), {
|
|
779
|
-
...options,
|
|
780
|
-
method: "POST",
|
|
781
|
-
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
782
|
-
body: JSON.stringify(authorizeRealtimeChannelRequestBody),
|
|
783
|
-
});
|
|
784
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
785
|
-
const data = body ? JSON.parse(body) : {};
|
|
786
|
-
return { data, status: res.status, headers: res.headers };
|
|
787
|
-
};
|
|
@@ -588,53 +588,6 @@ export interface RevealedCredentialResource {
|
|
|
588
588
|
*/
|
|
589
589
|
username: string | null;
|
|
590
590
|
}
|
|
591
|
-
/**
|
|
592
|
-
* Everything needed to open a realtime connection. The connection speaks the Pusher channels
|
|
593
|
-
* protocol, so any client library for it works.
|
|
594
|
-
*/
|
|
595
|
-
export interface RealtimeConnectionResource {
|
|
596
|
-
/** The path a client posts to while subscribing, relative to this API */
|
|
597
|
-
auth_path: string;
|
|
598
|
-
/** The cluster name some client libraries require; empty when the deployment does not use one */
|
|
599
|
-
cluster: string;
|
|
600
|
-
/** False when realtime delivery is not configured in this deployment. Every other field is empty and clients should not attempt to connect */
|
|
601
|
-
enabled: boolean;
|
|
602
|
-
host: string;
|
|
603
|
-
/** The application key, which is public and identifies the deployment rather than the caller */
|
|
604
|
-
key: string;
|
|
605
|
-
port: number;
|
|
606
|
-
/**
|
|
607
|
-
* The channel carrying announcements. It is public: subscribing to it needs no
|
|
608
|
-
* authorization, because an announcement is addressed to everybody. The events on it
|
|
609
|
-
* carry an identifier and nothing else, so a client fetches the list and sees the
|
|
610
|
-
* announcements it is entitled to
|
|
611
|
-
*/
|
|
612
|
-
announcements_channel: string;
|
|
613
|
-
/** The channel carrying events about the project in the token; empty when the token names no project */
|
|
614
|
-
project_channel: string;
|
|
615
|
-
/** Whether to connect over TLS */
|
|
616
|
-
secure: boolean;
|
|
617
|
-
/** The channel carrying events addressed to you */
|
|
618
|
-
user_channel: string;
|
|
619
|
-
}
|
|
620
|
-
export interface AuthorizeRealtimeChannelRequestBody {
|
|
621
|
-
/**
|
|
622
|
-
* The channel being subscribed to
|
|
623
|
-
* @minLength 1
|
|
624
|
-
* @maxLength 255
|
|
625
|
-
*/
|
|
626
|
-
channel_name: string;
|
|
627
|
-
/**
|
|
628
|
-
* The connection identifier the realtime server assigned to this client
|
|
629
|
-
* @minLength 1
|
|
630
|
-
* @maxLength 128
|
|
631
|
-
*/
|
|
632
|
-
socket_id: string;
|
|
633
|
-
}
|
|
634
|
-
export interface RealtimeAuthResource {
|
|
635
|
-
/** The authorization token for this subscription, passed back to the realtime server by the client library */
|
|
636
|
-
auth: string;
|
|
637
|
-
}
|
|
638
591
|
/**
|
|
639
592
|
* Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.
|
|
640
593
|
*/
|
|
@@ -105,7 +105,8 @@ export declare const MarkNotificationsReadBody: zod.ZodObject<{
|
|
|
105
105
|
}, zod.z.core.$strict>;
|
|
106
106
|
/**
|
|
107
107
|
* Returns the number of unread notifications. This is the value behind the badge in the
|
|
108
|
-
* console, and it is also carried on every
|
|
108
|
+
* console, and it is also carried on every `notification.inbox.created` and
|
|
109
|
+
* `notification.inbox.read` message delivered by EventBus, so it does not normally need to be
|
|
109
110
|
* requested on its own.
|
|
110
111
|
* @summary Count unread notifications
|
|
111
112
|
*/
|
|
@@ -382,19 +383,3 @@ export declare const DescribeCredentialTicketParams: zod.ZodObject<{
|
|
|
382
383
|
export declare const RevealCredentialParams: zod.ZodObject<{
|
|
383
384
|
ticketId: zod.ZodUUID;
|
|
384
385
|
}, zod.z.core.$strict>;
|
|
385
|
-
/**
|
|
386
|
-
* Authorizes one subscription. Realtime clients call this on their own while subscribing; it
|
|
387
|
-
* is not normally called directly.
|
|
388
|
-
*
|
|
389
|
-
* Only two channels are authorized: the one naming you, and the one naming the project in
|
|
390
|
-
* the token. Any other channel returns `REALTIME_CHANNEL_FORBIDDEN`.
|
|
391
|
-
*
|
|
392
|
-
* **Authorization is evaluated once, when the subscription is established.** A subscription
|
|
393
|
-
* already open is not revoked when project membership changes, so realtime events carry
|
|
394
|
-
* identifiers and counts only, never the contents of a notification.
|
|
395
|
-
* @summary Authorize a realtime channel subscription
|
|
396
|
-
*/
|
|
397
|
-
export declare const AuthorizeRealtimeChannelBody: zod.ZodObject<{
|
|
398
|
-
channel_name: zod.ZodString;
|
|
399
|
-
socket_id: zod.ZodString;
|
|
400
|
-
}, zod.z.core.$strict>;
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
* OpenAPI spec version: 1.0.0
|
|
61
61
|
*/
|
|
62
62
|
import * as zod from "zod";
|
|
63
|
-
import { AuthorizeRealtimeChannelRequestBody } from "./validators/authorizeRealtimeChannelRequestBody.zod.js";
|
|
64
63
|
import { ConfirmEmailOverrideRequestBody } from "./validators/confirmEmailOverrideRequestBody.zod.js";
|
|
65
64
|
import { CreateChannelRequestBody } from "./validators/createChannelRequestBody.zod.js";
|
|
66
65
|
import { MarkNotificationsReadRequestBody } from "./validators/markNotificationsReadRequestBody.zod.js";
|
|
@@ -128,7 +127,8 @@ export const ListNotificationsQueryParams = zod.strictObject({
|
|
|
128
127
|
export const MarkNotificationsReadBody = MarkNotificationsReadRequestBody;
|
|
129
128
|
/**
|
|
130
129
|
* Returns the number of unread notifications. This is the value behind the badge in the
|
|
131
|
-
* console, and it is also carried on every
|
|
130
|
+
* console, and it is also carried on every `notification.inbox.created` and
|
|
131
|
+
* `notification.inbox.read` message delivered by EventBus, so it does not normally need to be
|
|
132
132
|
* requested on its own.
|
|
133
133
|
* @summary Count unread notifications
|
|
134
134
|
*/
|
|
@@ -397,16 +397,3 @@ export const DescribeCredentialTicketParams = zod.strictObject({
|
|
|
397
397
|
export const RevealCredentialParams = zod.strictObject({
|
|
398
398
|
ticketId: zod.uuid().describe("The one-time credential"),
|
|
399
399
|
});
|
|
400
|
-
/**
|
|
401
|
-
* Authorizes one subscription. Realtime clients call this on their own while subscribing; it
|
|
402
|
-
* is not normally called directly.
|
|
403
|
-
*
|
|
404
|
-
* Only two channels are authorized: the one naming you, and the one naming the project in
|
|
405
|
-
* the token. Any other channel returns `REALTIME_CHANNEL_FORBIDDEN`.
|
|
406
|
-
*
|
|
407
|
-
* **Authorization is evaluated once, when the subscription is established.** A subscription
|
|
408
|
-
* already open is not revoked when project membership changes, so realtime events carry
|
|
409
|
-
* identifiers and counts only, never the contents of a notification.
|
|
410
|
-
* @summary Authorize a realtime channel subscription
|
|
411
|
-
*/
|
|
412
|
-
export const AuthorizeRealtimeChannelBody = AuthorizeRealtimeChannelRequestBody;
|
package/dist/routes.d.ts
CHANGED
|
@@ -494,22 +494,6 @@ export declare const routes: readonly [{
|
|
|
494
494
|
readonly operationId: "update-settings";
|
|
495
495
|
readonly securityScheme: "ScopedToken";
|
|
496
496
|
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
497
|
-
}, {
|
|
498
|
-
readonly service: "assistant";
|
|
499
|
-
readonly contract: "assistant";
|
|
500
|
-
readonly method: "POST";
|
|
501
|
-
readonly path: "/api/v1/realtime/tickets";
|
|
502
|
-
readonly operationId: "create-realtime-ticket";
|
|
503
|
-
readonly securityScheme: "ScopedToken";
|
|
504
|
-
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
505
|
-
}, {
|
|
506
|
-
readonly service: "assistant";
|
|
507
|
-
readonly contract: "assistant";
|
|
508
|
-
readonly method: "GET";
|
|
509
|
-
readonly path: "/api/v1/realtime";
|
|
510
|
-
readonly operationId: "open-realtime";
|
|
511
|
-
readonly securityScheme: null;
|
|
512
|
-
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
513
497
|
}, {
|
|
514
498
|
readonly service: "assistant";
|
|
515
499
|
readonly contract: "assistant";
|
|
@@ -782,6 +766,14 @@ export declare const routes: readonly [{
|
|
|
782
766
|
readonly operationId: "submit-weixin-verify-code";
|
|
783
767
|
readonly securityScheme: "ScopedToken";
|
|
784
768
|
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
769
|
+
}, {
|
|
770
|
+
readonly service: "assistant";
|
|
771
|
+
readonly contract: "assistant";
|
|
772
|
+
readonly method: "POST";
|
|
773
|
+
readonly path: "/api/v1/threads/{thread}/presence";
|
|
774
|
+
readonly operationId: "renew-thread-presence";
|
|
775
|
+
readonly securityScheme: "ScopedToken";
|
|
776
|
+
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
785
777
|
}, {
|
|
786
778
|
readonly service: "billing";
|
|
787
779
|
readonly contract: "billing";
|
|
@@ -2757,6 +2749,46 @@ export declare const routes: readonly [{
|
|
|
2757
2749
|
readonly operationId: "delete-record-set";
|
|
2758
2750
|
readonly securityScheme: "ScopedToken";
|
|
2759
2751
|
readonly upstreamUrl: "https://dns.leaflow.cloud";
|
|
2752
|
+
}, {
|
|
2753
|
+
readonly service: "eventbus";
|
|
2754
|
+
readonly contract: "eventbus";
|
|
2755
|
+
readonly method: "GET";
|
|
2756
|
+
readonly path: "/api/v1/namespaces";
|
|
2757
|
+
readonly operationId: "list-namespaces";
|
|
2758
|
+
readonly securityScheme: "ScopedToken";
|
|
2759
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2760
|
+
}, {
|
|
2761
|
+
readonly service: "eventbus";
|
|
2762
|
+
readonly contract: "eventbus";
|
|
2763
|
+
readonly method: "POST";
|
|
2764
|
+
readonly path: "/api/v1/namespaces";
|
|
2765
|
+
readonly operationId: "create-namespace";
|
|
2766
|
+
readonly securityScheme: "ScopedToken";
|
|
2767
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2768
|
+
}, {
|
|
2769
|
+
readonly service: "eventbus";
|
|
2770
|
+
readonly contract: "eventbus";
|
|
2771
|
+
readonly method: "GET";
|
|
2772
|
+
readonly path: "/api/v1/namespaces/{namespaceName}";
|
|
2773
|
+
readonly operationId: "get-namespace";
|
|
2774
|
+
readonly securityScheme: "ScopedToken";
|
|
2775
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2776
|
+
}, {
|
|
2777
|
+
readonly service: "eventbus";
|
|
2778
|
+
readonly contract: "eventbus";
|
|
2779
|
+
readonly method: "PATCH";
|
|
2780
|
+
readonly path: "/api/v1/namespaces/{namespaceName}";
|
|
2781
|
+
readonly operationId: "update-namespace";
|
|
2782
|
+
readonly securityScheme: "ScopedToken";
|
|
2783
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2784
|
+
}, {
|
|
2785
|
+
readonly service: "eventbus";
|
|
2786
|
+
readonly contract: "eventbus";
|
|
2787
|
+
readonly method: "DELETE";
|
|
2788
|
+
readonly path: "/api/v1/namespaces/{namespaceName}";
|
|
2789
|
+
readonly operationId: "delete-namespace";
|
|
2790
|
+
readonly securityScheme: "ScopedToken";
|
|
2791
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2760
2792
|
}, {
|
|
2761
2793
|
readonly service: "eventbus";
|
|
2762
2794
|
readonly contract: "eventbus";
|
|
@@ -2809,8 +2841,8 @@ export declare const routes: readonly [{
|
|
|
2809
2841
|
readonly service: "eventbus";
|
|
2810
2842
|
readonly contract: "eventbus";
|
|
2811
2843
|
readonly method: "POST";
|
|
2812
|
-
readonly path: "/api/v1/events
|
|
2813
|
-
readonly operationId: "publish-
|
|
2844
|
+
readonly path: "/api/v1/events:publish";
|
|
2845
|
+
readonly operationId: "publish-events";
|
|
2814
2846
|
readonly securityScheme: "ScopedToken";
|
|
2815
2847
|
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2816
2848
|
}, {
|
|
@@ -2821,6 +2853,14 @@ export declare const routes: readonly [{
|
|
|
2821
2853
|
readonly operationId: "create-realtime-ticket";
|
|
2822
2854
|
readonly securityScheme: "ScopedToken";
|
|
2823
2855
|
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2856
|
+
}, {
|
|
2857
|
+
readonly service: "eventbus";
|
|
2858
|
+
readonly contract: "eventbus";
|
|
2859
|
+
readonly method: "POST";
|
|
2860
|
+
readonly path: "/api/v1/account/realtime/tickets";
|
|
2861
|
+
readonly operationId: "create-account-realtime-ticket";
|
|
2862
|
+
readonly securityScheme: "AccessToken";
|
|
2863
|
+
readonly upstreamUrl: "https://eventbus.leaflow.cloud";
|
|
2824
2864
|
}, {
|
|
2825
2865
|
readonly service: "iam";
|
|
2826
2866
|
readonly contract: "iam";
|
|
@@ -3941,22 +3981,6 @@ export declare const routes: readonly [{
|
|
|
3941
3981
|
readonly operationId: "reveal-credential";
|
|
3942
3982
|
readonly securityScheme: "ScopedToken";
|
|
3943
3983
|
readonly upstreamUrl: "https://notification.leaflow.cloud";
|
|
3944
|
-
}, {
|
|
3945
|
-
readonly service: "notification";
|
|
3946
|
-
readonly contract: "notification";
|
|
3947
|
-
readonly method: "GET";
|
|
3948
|
-
readonly path: "/api/v1/realtime";
|
|
3949
|
-
readonly operationId: "describe-realtime-connection";
|
|
3950
|
-
readonly securityScheme: "ScopedToken";
|
|
3951
|
-
readonly upstreamUrl: "https://notification.leaflow.cloud";
|
|
3952
|
-
}, {
|
|
3953
|
-
readonly service: "notification";
|
|
3954
|
-
readonly contract: "notification";
|
|
3955
|
-
readonly method: "POST";
|
|
3956
|
-
readonly path: "/api/v1/realtime/auth";
|
|
3957
|
-
readonly operationId: "authorize-realtime-channel";
|
|
3958
|
-
readonly securityScheme: "ScopedToken";
|
|
3959
|
-
readonly upstreamUrl: "https://notification.leaflow.cloud";
|
|
3960
3984
|
}, {
|
|
3961
3985
|
readonly service: "support";
|
|
3962
3986
|
readonly contract: "support";
|