@leaflow/sdk 0.178.0 → 0.180.0
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/iam/v1/generated/models.d.ts +6 -0
- package/dist/iam/v1/generated/schemas.zod.d.ts +2 -0
- package/dist/iam/v1/generated/validators/applicationResource.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/applicationResource.zod.js +3 -0
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.js +4 -0
- package/dist/iam/v1/generated/validators/createApplicationResponseBody.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/lengthAwarePageApplicationResource.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.js +4 -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,100 @@
|
|
|
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 const listNamespacesParamsPageDefault = 1;
|
|
86
|
+
export const listNamespacesParamsPageMax = 2147483647;
|
|
87
|
+
export const listNamespacesParamsPageSizeDefault = 50;
|
|
88
|
+
export const listNamespacesParamsPageSizeMax = 200;
|
|
89
|
+
export const listNamespacesParamsKeywordMax = 128;
|
|
90
|
+
export const listNamespacesParamsIncludeArchivedDefault = false;
|
|
91
|
+
export const ListNamespacesParams = zod.strictObject({
|
|
92
|
+
page: zod.int().min(1).max(listNamespacesParamsPageMax).default(listNamespacesParamsPageDefault),
|
|
93
|
+
page_size: zod
|
|
94
|
+
.int()
|
|
95
|
+
.min(1)
|
|
96
|
+
.max(listNamespacesParamsPageSizeMax)
|
|
97
|
+
.default(listNamespacesParamsPageSizeDefault),
|
|
98
|
+
keyword: zod.string().max(listNamespacesParamsKeywordMax).optional(),
|
|
99
|
+
include_archived: zod.boolean().default(listNamespacesParamsIncludeArchivedDefault),
|
|
100
|
+
});
|
|
@@ -0,0 +1,103 @@
|
|
|
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 namespaceListTotalCountMin = 0;
|
|
86
|
+
export declare const NamespaceList: zod.ZodObject<{
|
|
87
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
88
|
+
name: zod.ZodString;
|
|
89
|
+
project_id: zod.ZodOptional<zod.ZodUUID>;
|
|
90
|
+
description: zod.ZodString;
|
|
91
|
+
status: zod.ZodEnum<{
|
|
92
|
+
active: "active";
|
|
93
|
+
archived: "archived";
|
|
94
|
+
}>;
|
|
95
|
+
created_at: zod.z.ZodISODateTime;
|
|
96
|
+
updated_at: zod.z.ZodISODateTime;
|
|
97
|
+
}, zod.z.core.$strict>>;
|
|
98
|
+
total_count: zod.ZodInt;
|
|
99
|
+
page: zod.ZodInt;
|
|
100
|
+
page_size: zod.ZodInt;
|
|
101
|
+
}, zod.z.core.$strict>;
|
|
102
|
+
export type NamespaceList = zod.input<typeof NamespaceList>;
|
|
103
|
+
export type NamespaceListOutput = zod.output<typeof NamespaceList>;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { NamespaceResource } from "./namespaceResource.zod.js";
|
|
86
|
+
export const namespaceListTotalCountMin = 0;
|
|
87
|
+
export const NamespaceList = zod.strictObject({
|
|
88
|
+
items: zod.array(NamespaceResource),
|
|
89
|
+
total_count: zod
|
|
90
|
+
.int()
|
|
91
|
+
.min(namespaceListTotalCountMin)
|
|
92
|
+
.describe("The number of namespaces matching the filters"),
|
|
93
|
+
page: zod.int().min(1),
|
|
94
|
+
page_size: zod.int().min(1),
|
|
95
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
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 namespaceResourceNameMax = 64;
|
|
86
|
+
export declare const namespaceResourceDescriptionMax = 1024;
|
|
87
|
+
export declare const NamespaceResource: zod.ZodObject<{
|
|
88
|
+
name: zod.ZodString;
|
|
89
|
+
project_id: zod.ZodOptional<zod.ZodUUID>;
|
|
90
|
+
description: zod.ZodString;
|
|
91
|
+
status: zod.ZodEnum<{
|
|
92
|
+
active: "active";
|
|
93
|
+
archived: "archived";
|
|
94
|
+
}>;
|
|
95
|
+
created_at: zod.z.ZodISODateTime;
|
|
96
|
+
updated_at: zod.z.ZodISODateTime;
|
|
97
|
+
}, zod.z.core.$strict>;
|
|
98
|
+
export type NamespaceResource = zod.input<typeof NamespaceResource>;
|
|
99
|
+
export type NamespaceResourceOutput = zod.output<typeof NamespaceResource>;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 namespaceResourceNameMax = 64;
|
|
87
|
+
export const namespaceResourceDescriptionMax = 1024;
|
|
88
|
+
export const NamespaceResource = zod.strictObject({
|
|
89
|
+
name: zod
|
|
90
|
+
.string()
|
|
91
|
+
.max(namespaceResourceNameMax)
|
|
92
|
+
.describe("The namespace's name; every event in it is named with this prefix and a dot"),
|
|
93
|
+
project_id: zod
|
|
94
|
+
.uuid()
|
|
95
|
+
.optional()
|
|
96
|
+
.describe("The owning project; absent for a platform namespace, which is maintained by a platform service and is read-only"),
|
|
97
|
+
description: zod.string().max(namespaceResourceDescriptionMax),
|
|
98
|
+
status: NamespaceStatus,
|
|
99
|
+
created_at: zod.iso.datetime({ offset: true }),
|
|
100
|
+
updated_at: zod.iso.datetime({ offset: true }),
|
|
101
|
+
});
|
|
@@ -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
|
+
export declare const NamespaceStatus: zod.ZodEnum<{
|
|
86
|
+
active: "active";
|
|
87
|
+
archived: "archived";
|
|
88
|
+
}>;
|
|
89
|
+
export type NamespaceStatus = zod.input<typeof NamespaceStatus>;
|
|
90
|
+
export type NamespaceStatusOutput = zod.output<typeof NamespaceStatus>;
|