@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
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
16
|
*
|
|
17
17
|
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
20
21
|
*
|
|
21
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
23
|
* parts, then complete the upload and send its attachment id in a message.
|
|
@@ -4,20 +4,18 @@
|
|
|
4
4
|
* Leaflow Event Bus API
|
|
5
5
|
* Event definitions, versions, publishing, and realtime access.
|
|
6
6
|
*
|
|
7
|
-
* ## Authentication
|
|
8
|
-
*
|
|
9
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. Neither the path
|
|
10
|
-
* nor the headers carry a `project_id`: the current project is determined by the token.
|
|
11
|
-
*
|
|
12
7
|
* ## Definitions and messages
|
|
13
8
|
*
|
|
14
9
|
* An event is a definition: a name, a description, and one or more versions. A version carries a
|
|
15
10
|
* JSON Schema that every published payload must satisfy. Messages are not stored here and are
|
|
16
11
|
* not part of the event definition.
|
|
17
12
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
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.
|
|
21
19
|
*
|
|
22
20
|
* A version number never changes meaning. Adding optional properties is allowed within a version;
|
|
23
21
|
* a breaking change creates a new version. Publishing without a version uses the highest active
|
|
@@ -25,18 +23,241 @@
|
|
|
25
23
|
*
|
|
26
24
|
* ## Publishing
|
|
27
25
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
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.
|
|
31
40
|
*
|
|
32
41
|
* ## Realtime
|
|
33
42
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
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.
|
|
37
82
|
* OpenAPI spec version: 1.0.0
|
|
38
83
|
*/
|
|
39
|
-
import type { CreateEventRequest, CreateVersionRequest, Error, EventDetail, EventList, EventResource, EventVersion, ListEventsParams, PublishRequest, PublishResponse, RealtimeTicket, UpdateEventRequest } from "./models.js";
|
|
84
|
+
import type { CreateEventRequest, CreateNamespaceRequest, CreateVersionRequest, Error, EventDetail, EventList, EventResource, EventVersion, ListEventsParams, ListNamespacesParams, NamespaceList, NamespaceResource, PublishRequest, PublishResponse, RealtimeTicket, RealtimeTicketRequest, UpdateEventRequest, UpdateNamespaceRequest } from "./models.js";
|
|
85
|
+
export type listNamespacesResponse200 = {
|
|
86
|
+
data: NamespaceList;
|
|
87
|
+
status: 200;
|
|
88
|
+
};
|
|
89
|
+
export type listNamespacesResponse400 = {
|
|
90
|
+
data: Error;
|
|
91
|
+
status: 400;
|
|
92
|
+
};
|
|
93
|
+
export type listNamespacesResponse401 = {
|
|
94
|
+
data: Error;
|
|
95
|
+
status: 401;
|
|
96
|
+
};
|
|
97
|
+
export type listNamespacesResponse503 = {
|
|
98
|
+
data: Error;
|
|
99
|
+
status: 503;
|
|
100
|
+
};
|
|
101
|
+
export type listNamespacesResponseSuccess = listNamespacesResponse200 & {
|
|
102
|
+
headers: Headers;
|
|
103
|
+
};
|
|
104
|
+
export type listNamespacesResponseError = (listNamespacesResponse400 | listNamespacesResponse401 | listNamespacesResponse503) & {
|
|
105
|
+
headers: Headers;
|
|
106
|
+
};
|
|
107
|
+
export type listNamespacesResponse = listNamespacesResponseSuccess | listNamespacesResponseError;
|
|
108
|
+
export declare const getListNamespacesUrl: (params?: ListNamespacesParams) => string;
|
|
109
|
+
/**
|
|
110
|
+
* Returns the platform namespaces followed by the project's own, each group ordered by name.
|
|
111
|
+
* Archived namespaces are omitted unless `include_archived` is true.
|
|
112
|
+
* @summary List namespaces
|
|
113
|
+
*/
|
|
114
|
+
export declare const listNamespaces: (params?: ListNamespacesParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listNamespacesResponse>;
|
|
115
|
+
export type createNamespaceResponse201 = {
|
|
116
|
+
data: NamespaceResource;
|
|
117
|
+
status: 201;
|
|
118
|
+
};
|
|
119
|
+
export type createNamespaceResponse400 = {
|
|
120
|
+
data: Error;
|
|
121
|
+
status: 400;
|
|
122
|
+
};
|
|
123
|
+
export type createNamespaceResponse401 = {
|
|
124
|
+
data: Error;
|
|
125
|
+
status: 401;
|
|
126
|
+
};
|
|
127
|
+
export type createNamespaceResponse403 = {
|
|
128
|
+
data: Error;
|
|
129
|
+
status: 403;
|
|
130
|
+
};
|
|
131
|
+
export type createNamespaceResponse409 = {
|
|
132
|
+
data: Error;
|
|
133
|
+
status: 409;
|
|
134
|
+
};
|
|
135
|
+
export type createNamespaceResponse503 = {
|
|
136
|
+
data: Error;
|
|
137
|
+
status: 503;
|
|
138
|
+
};
|
|
139
|
+
export type createNamespaceResponseSuccess = createNamespaceResponse201 & {
|
|
140
|
+
headers: Headers;
|
|
141
|
+
};
|
|
142
|
+
export type createNamespaceResponseError = (createNamespaceResponse400 | createNamespaceResponse401 | createNamespaceResponse403 | createNamespaceResponse409 | createNamespaceResponse503) & {
|
|
143
|
+
headers: Headers;
|
|
144
|
+
};
|
|
145
|
+
export type createNamespaceResponse = createNamespaceResponseSuccess | createNamespaceResponseError;
|
|
146
|
+
export declare const getCreateNamespaceUrl: () => string;
|
|
147
|
+
/**
|
|
148
|
+
* Creates a namespace in the current project. Its name is a single segment, unique within the
|
|
149
|
+
* project; names reserved for the platform are rejected.
|
|
150
|
+
* @summary Create a namespace
|
|
151
|
+
*/
|
|
152
|
+
export declare const createNamespace: (createNamespaceRequest: CreateNamespaceRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createNamespaceResponse>;
|
|
153
|
+
export type getNamespaceResponse200 = {
|
|
154
|
+
data: NamespaceResource;
|
|
155
|
+
status: 200;
|
|
156
|
+
};
|
|
157
|
+
export type getNamespaceResponse401 = {
|
|
158
|
+
data: Error;
|
|
159
|
+
status: 401;
|
|
160
|
+
};
|
|
161
|
+
export type getNamespaceResponse404 = {
|
|
162
|
+
data: Error;
|
|
163
|
+
status: 404;
|
|
164
|
+
};
|
|
165
|
+
export type getNamespaceResponse503 = {
|
|
166
|
+
data: Error;
|
|
167
|
+
status: 503;
|
|
168
|
+
};
|
|
169
|
+
export type getNamespaceResponseSuccess = getNamespaceResponse200 & {
|
|
170
|
+
headers: Headers;
|
|
171
|
+
};
|
|
172
|
+
export type getNamespaceResponseError = (getNamespaceResponse401 | getNamespaceResponse404 | getNamespaceResponse503) & {
|
|
173
|
+
headers: Headers;
|
|
174
|
+
};
|
|
175
|
+
export type getNamespaceResponse = getNamespaceResponseSuccess | getNamespaceResponseError;
|
|
176
|
+
export declare const getGetNamespaceUrl: (namespaceName: string) => string;
|
|
177
|
+
/**
|
|
178
|
+
* Returns a platform namespace or one of the project's own.
|
|
179
|
+
* @summary Get a namespace
|
|
180
|
+
*/
|
|
181
|
+
export declare const getNamespace: (namespaceName: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getNamespaceResponse>;
|
|
182
|
+
export type updateNamespaceResponse200 = {
|
|
183
|
+
data: NamespaceResource;
|
|
184
|
+
status: 200;
|
|
185
|
+
};
|
|
186
|
+
export type updateNamespaceResponse400 = {
|
|
187
|
+
data: Error;
|
|
188
|
+
status: 400;
|
|
189
|
+
};
|
|
190
|
+
export type updateNamespaceResponse401 = {
|
|
191
|
+
data: Error;
|
|
192
|
+
status: 401;
|
|
193
|
+
};
|
|
194
|
+
export type updateNamespaceResponse403 = {
|
|
195
|
+
data: Error;
|
|
196
|
+
status: 403;
|
|
197
|
+
};
|
|
198
|
+
export type updateNamespaceResponse404 = {
|
|
199
|
+
data: Error;
|
|
200
|
+
status: 404;
|
|
201
|
+
};
|
|
202
|
+
export type updateNamespaceResponse503 = {
|
|
203
|
+
data: Error;
|
|
204
|
+
status: 503;
|
|
205
|
+
};
|
|
206
|
+
export type updateNamespaceResponseSuccess = updateNamespaceResponse200 & {
|
|
207
|
+
headers: Headers;
|
|
208
|
+
};
|
|
209
|
+
export type updateNamespaceResponseError = (updateNamespaceResponse400 | updateNamespaceResponse401 | updateNamespaceResponse403 | updateNamespaceResponse404 | updateNamespaceResponse503) & {
|
|
210
|
+
headers: Headers;
|
|
211
|
+
};
|
|
212
|
+
export type updateNamespaceResponse = updateNamespaceResponseSuccess | updateNamespaceResponseError;
|
|
213
|
+
export declare const getUpdateNamespaceUrl: (namespaceName: string) => string;
|
|
214
|
+
/**
|
|
215
|
+
* Changes the description or status of one of the project's namespaces. Only the fields
|
|
216
|
+
* present in the request are changed. While a namespace is archived, its events cannot be
|
|
217
|
+
* created, published or subscribed to; restoring it lifts that. Platform namespaces cannot be
|
|
218
|
+
* changed.
|
|
219
|
+
* @summary Update a namespace
|
|
220
|
+
*/
|
|
221
|
+
export declare const updateNamespace: (namespaceName: string, updateNamespaceRequest: UpdateNamespaceRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateNamespaceResponse>;
|
|
222
|
+
export type deleteNamespaceResponse204 = {
|
|
223
|
+
data: void;
|
|
224
|
+
status: 204;
|
|
225
|
+
};
|
|
226
|
+
export type deleteNamespaceResponse401 = {
|
|
227
|
+
data: Error;
|
|
228
|
+
status: 401;
|
|
229
|
+
};
|
|
230
|
+
export type deleteNamespaceResponse403 = {
|
|
231
|
+
data: Error;
|
|
232
|
+
status: 403;
|
|
233
|
+
};
|
|
234
|
+
export type deleteNamespaceResponse404 = {
|
|
235
|
+
data: Error;
|
|
236
|
+
status: 404;
|
|
237
|
+
};
|
|
238
|
+
export type deleteNamespaceResponse409 = {
|
|
239
|
+
data: Error;
|
|
240
|
+
status: 409;
|
|
241
|
+
};
|
|
242
|
+
export type deleteNamespaceResponse503 = {
|
|
243
|
+
data: Error;
|
|
244
|
+
status: 503;
|
|
245
|
+
};
|
|
246
|
+
export type deleteNamespaceResponseSuccess = deleteNamespaceResponse204 & {
|
|
247
|
+
headers: Headers;
|
|
248
|
+
};
|
|
249
|
+
export type deleteNamespaceResponseError = (deleteNamespaceResponse401 | deleteNamespaceResponse403 | deleteNamespaceResponse404 | deleteNamespaceResponse409 | deleteNamespaceResponse503) & {
|
|
250
|
+
headers: Headers;
|
|
251
|
+
};
|
|
252
|
+
export type deleteNamespaceResponse = deleteNamespaceResponseSuccess | deleteNamespaceResponseError;
|
|
253
|
+
export declare const getDeleteNamespaceUrl: (namespaceName: string) => string;
|
|
254
|
+
/**
|
|
255
|
+
* Deletes one of the project's namespaces together with every event and version in it.
|
|
256
|
+
* Publishing or subscribing to those events fails from then on. Platform namespaces cannot be
|
|
257
|
+
* deleted.
|
|
258
|
+
* @summary Delete a namespace
|
|
259
|
+
*/
|
|
260
|
+
export declare const deleteNamespace: (namespaceName: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteNamespaceResponse>;
|
|
40
261
|
export type listEventsResponse200 = {
|
|
41
262
|
data: EventList;
|
|
42
263
|
status: 200;
|
|
@@ -66,8 +287,7 @@ export type listEventsResponseError = (listEventsResponse400 | listEventsRespons
|
|
|
66
287
|
export type listEventsResponse = listEventsResponseSuccess | listEventsResponseError;
|
|
67
288
|
export declare const getListEventsUrl: (params?: ListEventsParams) => string;
|
|
68
289
|
/**
|
|
69
|
-
* Returns the
|
|
70
|
-
* name.
|
|
290
|
+
* Returns the platform events and the project's own events. Ordered by name.
|
|
71
291
|
* @summary List event definitions
|
|
72
292
|
*/
|
|
73
293
|
export declare const listEvents: (params?: ListEventsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listEventsResponse>;
|
|
@@ -87,6 +307,10 @@ export type createEventResponse403 = {
|
|
|
87
307
|
data: Error;
|
|
88
308
|
status: 403;
|
|
89
309
|
};
|
|
310
|
+
export type createEventResponse404 = {
|
|
311
|
+
data: Error;
|
|
312
|
+
status: 404;
|
|
313
|
+
};
|
|
90
314
|
export type createEventResponse409 = {
|
|
91
315
|
data: Error;
|
|
92
316
|
status: 409;
|
|
@@ -98,14 +322,14 @@ export type createEventResponse503 = {
|
|
|
98
322
|
export type createEventResponseSuccess = createEventResponse201 & {
|
|
99
323
|
headers: Headers;
|
|
100
324
|
};
|
|
101
|
-
export type createEventResponseError = (createEventResponse400 | createEventResponse401 | createEventResponse403 | createEventResponse409 | createEventResponse503) & {
|
|
325
|
+
export type createEventResponseError = (createEventResponse400 | createEventResponse401 | createEventResponse403 | createEventResponse404 | createEventResponse409 | createEventResponse503) & {
|
|
102
326
|
headers: Headers;
|
|
103
327
|
};
|
|
104
328
|
export type createEventResponse = createEventResponseSuccess | createEventResponseError;
|
|
105
329
|
export declare const getCreateEventUrl: () => string;
|
|
106
330
|
/**
|
|
107
|
-
* Creates
|
|
108
|
-
*
|
|
331
|
+
* Creates an event with its first version in one of the project's namespaces. The first
|
|
332
|
+
* segment of the name is that namespace, followed by at least a resource and an action.
|
|
109
333
|
* @summary Create an event definition
|
|
110
334
|
*/
|
|
111
335
|
export declare const createEvent: (createEventRequest: CreateEventRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createEventResponse>;
|
|
@@ -260,53 +484,58 @@ export declare const getGetEventVersionUrl: (eventName: string, version: number)
|
|
|
260
484
|
* @summary Get an event version
|
|
261
485
|
*/
|
|
262
486
|
export declare const getEventVersion: (eventName: string, version: number, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getEventVersionResponse>;
|
|
263
|
-
export type
|
|
487
|
+
export type publishEventsResponse202 = {
|
|
264
488
|
data: PublishResponse;
|
|
265
489
|
status: 202;
|
|
266
490
|
};
|
|
267
|
-
export type
|
|
491
|
+
export type publishEventsResponse400 = {
|
|
268
492
|
data: Error;
|
|
269
493
|
status: 400;
|
|
270
494
|
};
|
|
271
|
-
export type
|
|
495
|
+
export type publishEventsResponse401 = {
|
|
272
496
|
data: Error;
|
|
273
497
|
status: 401;
|
|
274
498
|
};
|
|
275
|
-
export type
|
|
499
|
+
export type publishEventsResponse403 = {
|
|
276
500
|
data: Error;
|
|
277
501
|
status: 403;
|
|
278
502
|
};
|
|
279
|
-
export type
|
|
503
|
+
export type publishEventsResponse404 = {
|
|
280
504
|
data: Error;
|
|
281
505
|
status: 404;
|
|
282
506
|
};
|
|
283
|
-
export type
|
|
507
|
+
export type publishEventsResponse409 = {
|
|
284
508
|
data: Error;
|
|
285
509
|
status: 409;
|
|
286
510
|
};
|
|
287
|
-
export type
|
|
511
|
+
export type publishEventsResponse503 = {
|
|
288
512
|
data: Error;
|
|
289
513
|
status: 503;
|
|
290
514
|
};
|
|
291
|
-
export type
|
|
515
|
+
export type publishEventsResponseSuccess = publishEventsResponse202 & {
|
|
292
516
|
headers: Headers;
|
|
293
517
|
};
|
|
294
|
-
export type
|
|
518
|
+
export type publishEventsResponseError = (publishEventsResponse400 | publishEventsResponse401 | publishEventsResponse403 | publishEventsResponse404 | publishEventsResponse409 | publishEventsResponse503) & {
|
|
295
519
|
headers: Headers;
|
|
296
520
|
};
|
|
297
|
-
export type
|
|
298
|
-
export declare const
|
|
521
|
+
export type publishEventsResponse = publishEventsResponseSuccess | publishEventsResponseError;
|
|
522
|
+
export declare const getPublishEventsUrl: () => string;
|
|
299
523
|
/**
|
|
300
|
-
* Validates
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
524
|
+
* Validates every message against its selected version and publishes the batch. If any message
|
|
525
|
+
* is rejected, none is published. The response carries the identity of each message in request
|
|
526
|
+
* order; it does not mean a consumer received it. Only events defined by the current project can
|
|
527
|
+
* be published here.
|
|
528
|
+
* @summary Publish event messages
|
|
304
529
|
*/
|
|
305
|
-
export declare const
|
|
530
|
+
export declare const publishEvents: (publishRequest: PublishRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<publishEventsResponse>;
|
|
306
531
|
export type createRealtimeTicketResponse201 = {
|
|
307
532
|
data: RealtimeTicket;
|
|
308
533
|
status: 201;
|
|
309
534
|
};
|
|
535
|
+
export type createRealtimeTicketResponse400 = {
|
|
536
|
+
data: Error;
|
|
537
|
+
status: 400;
|
|
538
|
+
};
|
|
310
539
|
export type createRealtimeTicketResponse401 = {
|
|
311
540
|
data: Error;
|
|
312
541
|
status: 401;
|
|
@@ -315,6 +544,10 @@ export type createRealtimeTicketResponse403 = {
|
|
|
315
544
|
data: Error;
|
|
316
545
|
status: 403;
|
|
317
546
|
};
|
|
547
|
+
export type createRealtimeTicketResponse404 = {
|
|
548
|
+
data: Error;
|
|
549
|
+
status: 404;
|
|
550
|
+
};
|
|
318
551
|
export type createRealtimeTicketResponse503 = {
|
|
319
552
|
data: Error;
|
|
320
553
|
status: 503;
|
|
@@ -322,15 +555,59 @@ export type createRealtimeTicketResponse503 = {
|
|
|
322
555
|
export type createRealtimeTicketResponseSuccess = createRealtimeTicketResponse201 & {
|
|
323
556
|
headers: Headers;
|
|
324
557
|
};
|
|
325
|
-
export type createRealtimeTicketResponseError = (createRealtimeTicketResponse401 | createRealtimeTicketResponse403 | createRealtimeTicketResponse503) & {
|
|
558
|
+
export type createRealtimeTicketResponseError = (createRealtimeTicketResponse400 | createRealtimeTicketResponse401 | createRealtimeTicketResponse403 | createRealtimeTicketResponse404 | createRealtimeTicketResponse503) & {
|
|
326
559
|
headers: Headers;
|
|
327
560
|
};
|
|
328
561
|
export type createRealtimeTicketResponse = createRealtimeTicketResponseSuccess | createRealtimeTicketResponseError;
|
|
329
562
|
export declare const getCreateRealtimeTicketUrl: () => string;
|
|
330
563
|
/**
|
|
331
|
-
* Issues a short-lived ticket for
|
|
332
|
-
*
|
|
333
|
-
*
|
|
564
|
+
* Issues a short-lived ticket for the named events in the current project. For an event defined
|
|
565
|
+
* by the project, the ticket covers messages sent to the members of the project and messages
|
|
566
|
+
* sent to the caller within it. For a platform event, it also covers messages sent to the caller
|
|
567
|
+
* outside any project and messages sent to no recipient; messages sent within the project are
|
|
568
|
+
* covered as far as the caller's current permissions allow, which may be limited to some
|
|
569
|
+
* resources or to none. The caller must still be a member of the project. The ticket lives no
|
|
570
|
+
* longer than the scoped token it was created with. It is not a bearer token for other APIs.
|
|
334
571
|
* @summary Create a realtime ticket
|
|
335
572
|
*/
|
|
336
|
-
export declare const createRealtimeTicket: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createRealtimeTicketResponse>;
|
|
573
|
+
export declare const createRealtimeTicket: (realtimeTicketRequest: RealtimeTicketRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createRealtimeTicketResponse>;
|
|
574
|
+
export type createAccountRealtimeTicketResponse201 = {
|
|
575
|
+
data: RealtimeTicket;
|
|
576
|
+
status: 201;
|
|
577
|
+
};
|
|
578
|
+
export type createAccountRealtimeTicketResponse400 = {
|
|
579
|
+
data: Error;
|
|
580
|
+
status: 400;
|
|
581
|
+
};
|
|
582
|
+
export type createAccountRealtimeTicketResponse401 = {
|
|
583
|
+
data: Error;
|
|
584
|
+
status: 401;
|
|
585
|
+
};
|
|
586
|
+
export type createAccountRealtimeTicketResponse403 = {
|
|
587
|
+
data: Error;
|
|
588
|
+
status: 403;
|
|
589
|
+
};
|
|
590
|
+
export type createAccountRealtimeTicketResponse404 = {
|
|
591
|
+
data: Error;
|
|
592
|
+
status: 404;
|
|
593
|
+
};
|
|
594
|
+
export type createAccountRealtimeTicketResponse503 = {
|
|
595
|
+
data: Error;
|
|
596
|
+
status: 503;
|
|
597
|
+
};
|
|
598
|
+
export type createAccountRealtimeTicketResponseSuccess = createAccountRealtimeTicketResponse201 & {
|
|
599
|
+
headers: Headers;
|
|
600
|
+
};
|
|
601
|
+
export type createAccountRealtimeTicketResponseError = (createAccountRealtimeTicketResponse400 | createAccountRealtimeTicketResponse401 | createAccountRealtimeTicketResponse403 | createAccountRealtimeTicketResponse404 | createAccountRealtimeTicketResponse503) & {
|
|
602
|
+
headers: Headers;
|
|
603
|
+
};
|
|
604
|
+
export type createAccountRealtimeTicketResponse = createAccountRealtimeTicketResponseSuccess | createAccountRealtimeTicketResponseError;
|
|
605
|
+
export declare const getCreateAccountRealtimeTicketUrl: () => string;
|
|
606
|
+
/**
|
|
607
|
+
* Issues a short-lived ticket for a caller who has not selected a project, or belongs to none. Only
|
|
608
|
+
* platform events are accepted, and the ticket covers only messages sent to the caller outside
|
|
609
|
+
* any project or to no recipient. The ticket cannot publish. Its `client_id_prefix` is `user.{user_id}.`. The
|
|
610
|
+
* ticket lives no longer than the token it was created with.
|
|
611
|
+
* @summary Create an account realtime ticket
|
|
612
|
+
*/
|
|
613
|
+
export declare const createAccountRealtimeTicket: (realtimeTicketRequest: RealtimeTicketRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createAccountRealtimeTicketResponse>;
|