@leaflow/sdk 0.197.0 → 0.199.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 +104 -2
- package/dist/assistant/v1/generated/functions.js +115 -2
- package/dist/assistant/v1/generated/models.d.ts +102 -0
- package/dist/assistant/v1/generated/models.js +13 -0
- package/dist/assistant/v1/generated/schemas.zod.d.ts +36 -1
- package/dist/assistant/v1/generated/schemas.zod.js +35 -1
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/attachmentCountsResource.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/attachmentCountsResource.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/attachmentFileResource.zod.d.ts +47 -0
- package/dist/assistant/v1/generated/validators/attachmentFileResource.zod.js +44 -0
- package/dist/assistant/v1/generated/validators/attachmentListResponseBody.zod.d.ts +54 -0
- package/dist/assistant/v1/generated/validators/attachmentListResponseBody.zod.js +38 -0
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/error.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/partResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/searchAttachmentsRequestBody.zod.d.ts +51 -0
- package/dist/assistant/v1/generated/validators/searchAttachmentsRequestBody.zod.js +65 -0
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/turnType.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/updateAttachmentRequestBody.zod.d.ts +35 -0
- package/dist/assistant/v1/generated/validators/updateAttachmentRequestBody.zod.js +33 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/usage.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +3 -0
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +3 -0
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +3 -0
- package/dist/iam/v1/generated/functions.d.ts +46 -103
- package/dist/iam/v1/generated/functions.js +29 -114
- package/dist/iam/v1/generated/models.d.ts +53 -118
- package/dist/iam/v1/generated/models.js +2 -6
- package/dist/iam/v1/generated/schemas.zod.d.ts +31 -62
- package/dist/iam/v1/generated/schemas.zod.js +35 -53
- package/dist/iam/v1/generated/validators/{updatePolicyRequestBody.zod.d.ts → createMemberPermissionRequestBody.zod.d.ts} +9 -11
- package/dist/iam/v1/generated/validators/createMemberPermissionRequestBody.zod.js +36 -0
- package/dist/iam/v1/generated/validators/grantResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageMemberResource.zod.d.ts +12 -0
- package/dist/iam/v1/generated/validators/{listProjectInvitationsParams.zod.d.ts → listInvitationsParams.zod.d.ts} +8 -8
- package/dist/iam/v1/generated/validators/{listProjectInvitationsParams.zod.js → listInvitationsParams.zod.js} +11 -11
- package/dist/iam/v1/generated/validators/{policyListResponseBody.zod.d.ts → memberPermissionListResponseBody.zod.d.ts} +8 -14
- package/dist/iam/v1/generated/validators/{catalogListResponseBody.zod.js → memberPermissionListResponseBody.zod.js} +3 -3
- package/dist/iam/v1/generated/validators/{policyResource.zod.d.ts → memberPermissionResource.zod.d.ts} +11 -14
- package/dist/iam/v1/generated/validators/memberPermissionResource.zod.js +38 -0
- package/dist/iam/v1/generated/validators/memberResource.zod.d.ts +12 -0
- package/dist/iam/v1/generated/validators/memberResource.zod.js +5 -0
- package/dist/iam/v1/generated/validators/ownershipTransferResponseBody.zod.d.ts +24 -0
- package/dist/iam/v1/generated/validators/{catalogResource.zod.d.ts → permissionListResponseBody.zod.d.ts} +4 -8
- package/dist/iam/v1/generated/validators/{policyListResponseBody.zod.js → permissionListResponseBody.zod.js} +3 -3
- package/dist/routes.d.ts +39 -31
- package/dist/routes.js +43 -34
- package/package.json +1 -1
- package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.d.ts +0 -33
- package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.js +0 -43
- package/dist/iam/v1/generated/validators/catalogListResponseBody.zod.d.ts +0 -30
- package/dist/iam/v1/generated/validators/catalogResource.zod.js +0 -25
- package/dist/iam/v1/generated/validators/listPoliciesParams.zod.d.ts +0 -21
- package/dist/iam/v1/generated/validators/listPoliciesParams.zod.js +0 -23
- package/dist/iam/v1/generated/validators/policyResource.zod.js +0 -33
- package/dist/iam/v1/generated/validators/resourceTypeResource.zod.d.ts +0 -20
- package/dist/iam/v1/generated/validators/resourceTypeResource.zod.js +0 -20
- package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.d.ts +0 -20
- package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.js +0 -21
- package/dist/iam/v1/generated/validators/updatePolicyRequestBody.zod.js +0 -39
package/dist/routes.js
CHANGED
|
@@ -612,11 +612,47 @@ export const routes = [
|
|
|
612
612
|
securityScheme: "ScopedToken",
|
|
613
613
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
614
614
|
},
|
|
615
|
+
{
|
|
616
|
+
service: "assistant",
|
|
617
|
+
contract: "assistant",
|
|
618
|
+
method: "QUERY",
|
|
619
|
+
path: "/api/v1/attachments",
|
|
620
|
+
operationId: "search-attachments",
|
|
621
|
+
securityScheme: "ScopedToken",
|
|
622
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
623
|
+
},
|
|
615
624
|
{
|
|
616
625
|
service: "assistant",
|
|
617
626
|
contract: "assistant",
|
|
618
627
|
method: "GET",
|
|
619
628
|
path: "/api/v1/attachments/{attachment}",
|
|
629
|
+
operationId: "get-attachment",
|
|
630
|
+
securityScheme: "ScopedToken",
|
|
631
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
service: "assistant",
|
|
635
|
+
contract: "assistant",
|
|
636
|
+
method: "PATCH",
|
|
637
|
+
path: "/api/v1/attachments/{attachment}",
|
|
638
|
+
operationId: "update-attachment",
|
|
639
|
+
securityScheme: "ScopedToken",
|
|
640
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
service: "assistant",
|
|
644
|
+
contract: "assistant",
|
|
645
|
+
method: "DELETE",
|
|
646
|
+
path: "/api/v1/attachments/{attachment}",
|
|
647
|
+
operationId: "delete-attachment",
|
|
648
|
+
securityScheme: "ScopedToken",
|
|
649
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
service: "assistant",
|
|
653
|
+
contract: "assistant",
|
|
654
|
+
method: "GET",
|
|
655
|
+
path: "/api/v1/attachments/{attachment}:download",
|
|
620
656
|
operationId: "download-attachment",
|
|
621
657
|
securityScheme: "ScopedToken",
|
|
622
658
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
@@ -3836,7 +3872,7 @@ export const routes = [
|
|
|
3836
3872
|
contract: "iam",
|
|
3837
3873
|
method: "GET",
|
|
3838
3874
|
path: "/api/v1/invitations",
|
|
3839
|
-
operationId: "list-
|
|
3875
|
+
operationId: "list-invitations",
|
|
3840
3876
|
securityScheme: "ScopedToken",
|
|
3841
3877
|
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3842
3878
|
},
|
|
@@ -3894,21 +3930,12 @@ export const routes = [
|
|
|
3894
3930
|
securityScheme: "ScopedToken",
|
|
3895
3931
|
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3896
3932
|
},
|
|
3897
|
-
{
|
|
3898
|
-
service: "iam",
|
|
3899
|
-
contract: "iam",
|
|
3900
|
-
method: "PUT",
|
|
3901
|
-
path: "/api/v1/members/{userId}/permissions",
|
|
3902
|
-
operationId: "set-member-permissions",
|
|
3903
|
-
securityScheme: "ScopedToken",
|
|
3904
|
-
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3905
|
-
},
|
|
3906
3933
|
{
|
|
3907
3934
|
service: "iam",
|
|
3908
3935
|
contract: "iam",
|
|
3909
3936
|
method: "GET",
|
|
3910
|
-
path: "/api/v1/
|
|
3911
|
-
operationId: "list-
|
|
3937
|
+
path: "/api/v1/members/{userId}/permissions",
|
|
3938
|
+
operationId: "list-member-permissions",
|
|
3912
3939
|
securityScheme: "ScopedToken",
|
|
3913
3940
|
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3914
3941
|
},
|
|
@@ -3916,26 +3943,8 @@ export const routes = [
|
|
|
3916
3943
|
service: "iam",
|
|
3917
3944
|
contract: "iam",
|
|
3918
3945
|
method: "POST",
|
|
3919
|
-
path: "/api/v1/
|
|
3920
|
-
operationId: "
|
|
3921
|
-
securityScheme: "ScopedToken",
|
|
3922
|
-
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3923
|
-
},
|
|
3924
|
-
{
|
|
3925
|
-
service: "iam",
|
|
3926
|
-
contract: "iam",
|
|
3927
|
-
method: "GET",
|
|
3928
|
-
path: "/api/v1/policies/{policyId}",
|
|
3929
|
-
operationId: "get-policy",
|
|
3930
|
-
securityScheme: "ScopedToken",
|
|
3931
|
-
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3932
|
-
},
|
|
3933
|
-
{
|
|
3934
|
-
service: "iam",
|
|
3935
|
-
contract: "iam",
|
|
3936
|
-
method: "PUT",
|
|
3937
|
-
path: "/api/v1/policies/{policyId}",
|
|
3938
|
-
operationId: "update-policy",
|
|
3946
|
+
path: "/api/v1/members/{userId}/permissions",
|
|
3947
|
+
operationId: "create-member-permission",
|
|
3939
3948
|
securityScheme: "ScopedToken",
|
|
3940
3949
|
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3941
3950
|
},
|
|
@@ -3943,8 +3952,8 @@ export const routes = [
|
|
|
3943
3952
|
service: "iam",
|
|
3944
3953
|
contract: "iam",
|
|
3945
3954
|
method: "DELETE",
|
|
3946
|
-
path: "/api/v1/
|
|
3947
|
-
operationId: "
|
|
3955
|
+
path: "/api/v1/members/{userId}/permissions/{permissionId}",
|
|
3956
|
+
operationId: "delete-member-permission",
|
|
3948
3957
|
securityScheme: "ScopedToken",
|
|
3949
3958
|
upstreamUrl: "https://iam.leaflow.cloud",
|
|
3950
3959
|
},
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const attachPolicyRequestBodyDescriptionMax = 255;
|
|
17
|
-
export declare const attachPolicyRequestBodyUserIdMax = 255;
|
|
18
|
-
export declare const AttachPolicyRequestBody: zod.ZodObject<{
|
|
19
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
20
|
-
effect: zod.ZodEnum<{
|
|
21
|
-
allow: "allow";
|
|
22
|
-
deny: "deny";
|
|
23
|
-
}>;
|
|
24
|
-
permissions: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
25
|
-
resources: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
26
|
-
id: zod.ZodString;
|
|
27
|
-
type: zod.ZodString;
|
|
28
|
-
}, zod.z.core.$strict>>>>;
|
|
29
|
-
roles: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
30
|
-
user_id: zod.ZodString;
|
|
31
|
-
}, zod.z.core.$strict>;
|
|
32
|
-
export type AttachPolicyRequestBody = zod.input<typeof AttachPolicyRequestBody>;
|
|
33
|
-
export type AttachPolicyRequestBodyOutput = zod.output<typeof AttachPolicyRequestBody>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
import { ResourceRefResource } from "./resourceRefResource.zod.js";
|
|
17
|
-
export const attachPolicyRequestBodyDescriptionMax = 255;
|
|
18
|
-
export const attachPolicyRequestBodyUserIdMax = 255;
|
|
19
|
-
export const AttachPolicyRequestBody = zod.strictObject({
|
|
20
|
-
description: zod
|
|
21
|
-
.string()
|
|
22
|
-
.max(attachPolicyRequestBodyDescriptionMax)
|
|
23
|
-
.optional()
|
|
24
|
-
.describe("Why it was granted, written for a reader"),
|
|
25
|
-
effect: zod.enum(["allow", "deny"]),
|
|
26
|
-
permissions: zod
|
|
27
|
-
.array(zod.string())
|
|
28
|
-
.nullish()
|
|
29
|
-
.describe("Permission names attached directly, which avoids creating a role only one person holds"),
|
|
30
|
-
resources: zod
|
|
31
|
-
.array(ResourceRefResource)
|
|
32
|
-
.nullish()
|
|
33
|
-
.describe("The policy holds only on these resources. Leaving it empty makes sense only together with `deny`, since an `allow` covering every resource is the base policy, which already exists"),
|
|
34
|
-
roles: zod
|
|
35
|
-
.array(zod.string())
|
|
36
|
-
.nullish()
|
|
37
|
-
.describe("Each must be a role already defined in this project. `OWNER` and `ADMIN` are not accepted, being rules rather than sets of permissions"),
|
|
38
|
-
user_id: zod
|
|
39
|
-
.string()
|
|
40
|
-
.min(1)
|
|
41
|
-
.max(attachPolicyRequestBodyUserIdMax)
|
|
42
|
-
.describe("Must already be a member of this project"),
|
|
43
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const CatalogListResponseBody: zod.ZodObject<{
|
|
17
|
-
items: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
18
|
-
permissions: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
19
|
-
name: zod.ZodString;
|
|
20
|
-
owner_only: zod.ZodBoolean;
|
|
21
|
-
resource_type: zod.ZodString;
|
|
22
|
-
}, zod.z.core.$strict>>>;
|
|
23
|
-
resource_types: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
24
|
-
name: zod.ZodString;
|
|
25
|
-
}, zod.z.core.$strict>>>;
|
|
26
|
-
service: zod.ZodString;
|
|
27
|
-
}, zod.z.core.$strict>>>;
|
|
28
|
-
}, zod.z.core.$strict>;
|
|
29
|
-
export type CatalogListResponseBody = zod.input<typeof CatalogListResponseBody>;
|
|
30
|
-
export type CatalogListResponseBodyOutput = zod.output<typeof CatalogListResponseBody>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
import { PermissionResource } from "./permissionResource.zod.js";
|
|
17
|
-
import { ResourceTypeResource } from "./resourceTypeResource.zod.js";
|
|
18
|
-
export const CatalogResource = zod.strictObject({
|
|
19
|
-
permissions: zod.array(PermissionResource).nullable(),
|
|
20
|
-
resource_types: zod
|
|
21
|
-
.array(ResourceTypeResource)
|
|
22
|
-
.nullable()
|
|
23
|
-
.describe("The resource types this service declares. A scoped rule can only land on one of them"),
|
|
24
|
-
service: zod.string(),
|
|
25
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const listPoliciesParamsUserIdMax = 255;
|
|
17
|
-
export declare const ListPoliciesParams: zod.ZodObject<{
|
|
18
|
-
userId: zod.ZodOptional<zod.ZodString>;
|
|
19
|
-
}, zod.z.core.$strict>;
|
|
20
|
-
export type ListPoliciesParams = zod.input<typeof ListPoliciesParams>;
|
|
21
|
-
export type ListPoliciesParamsOutput = zod.output<typeof ListPoliciesParams>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export const listPoliciesParamsUserIdMax = 255;
|
|
17
|
-
export const ListPoliciesParams = zod.strictObject({
|
|
18
|
-
userId: zod
|
|
19
|
-
.string()
|
|
20
|
-
.max(listPoliciesParamsUserIdMax)
|
|
21
|
-
.optional()
|
|
22
|
-
.describe("Restricts the result to one person. Omitting it covers the whole project"),
|
|
23
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
import { ResourceRefResource } from "./resourceRefResource.zod.js";
|
|
17
|
-
export const PolicyResource = zod.strictObject({
|
|
18
|
-
base: zod
|
|
19
|
-
.boolean()
|
|
20
|
-
.describe("The base policy is the one whose effect is `allow` and which covers every resource. Each member holds exactly one, and it carries their ordinary roles. Change it with PUT /members/{userId}/roles and PUT /members/{userId}/permissions"),
|
|
21
|
-
created_at: zod.iso.datetime({ offset: true }),
|
|
22
|
-
description: zod.string().describe("Why it was granted, written for a reader"),
|
|
23
|
-
effect: zod.enum(["allow", "deny"]),
|
|
24
|
-
id: zod.uuid(),
|
|
25
|
-
permissions: zod
|
|
26
|
-
.array(zod.string())
|
|
27
|
-
.nullable()
|
|
28
|
-
.describe("Permission names attached directly to this person, without passing through a role"),
|
|
29
|
-
resources: zod.array(ResourceRefResource).nullable().describe("Empty means the whole project"),
|
|
30
|
-
roles: zod.array(zod.string()).nullable().describe("The role codes this policy carries"),
|
|
31
|
-
updated_at: zod.iso.datetime({ offset: true }),
|
|
32
|
-
user_id: zod.string(),
|
|
33
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const ResourceTypeResource: zod.ZodObject<{
|
|
17
|
-
name: zod.ZodString;
|
|
18
|
-
}, zod.z.core.$strict>;
|
|
19
|
-
export type ResourceTypeResource = zod.input<typeof ResourceTypeResource>;
|
|
20
|
-
export type ResourceTypeResourceOutput = zod.output<typeof ResourceTypeResource>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export const ResourceTypeResource = zod.strictObject({
|
|
17
|
-
name: zod
|
|
18
|
-
.string()
|
|
19
|
-
.describe("The code of the resource type, such as dns:zone. There is no display name here either; what it reads as is decided by the layer rendering it"),
|
|
20
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const SetMemberPermissionsRequestBody: zod.ZodObject<{
|
|
17
|
-
permissions: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
18
|
-
}, zod.z.core.$strict>;
|
|
19
|
-
export type SetMemberPermissionsRequestBody = zod.input<typeof SetMemberPermissionsRequestBody>;
|
|
20
|
-
export type SetMemberPermissionsRequestBodyOutput = zod.output<typeof SetMemberPermissionsRequestBody>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export const SetMemberPermissionsRequestBody = zod.strictObject({
|
|
17
|
-
permissions: zod
|
|
18
|
-
.array(zod.string())
|
|
19
|
-
.nullable()
|
|
20
|
-
.describe("**Every** permission name to be attached directly to this person, replaced in full. The permissions a role grants are neither listed here nor touched by this write"),
|
|
21
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
import { ResourceRefResource } from "./resourceRefResource.zod.js";
|
|
17
|
-
export const updatePolicyRequestBodyDescriptionMax = 255;
|
|
18
|
-
export const UpdatePolicyRequestBody = zod.strictObject({
|
|
19
|
-
description: zod
|
|
20
|
-
.string()
|
|
21
|
-
.max(updatePolicyRequestBodyDescriptionMax)
|
|
22
|
-
.optional()
|
|
23
|
-
.describe("Why it was granted, written for a reader. It is replaced together with the change, so that what remains does not explain an earlier version"),
|
|
24
|
-
effect: zod
|
|
25
|
-
.enum(["allow", "deny"])
|
|
26
|
-
.describe("Must match the current effect of the policy. The effect itself cannot be changed; delete the policy and create another instead. It is still required in the request because the write replaces the policy in full, and omitting it would let a caller believe an effect had been changed while the field was ignored. A mismatch answers PROJECT_POLICY_EFFECT_IMMUTABLE"),
|
|
27
|
-
permissions: zod
|
|
28
|
-
.array(zod.string())
|
|
29
|
-
.nullish()
|
|
30
|
-
.describe("Permission names attached directly, replaced in full. Anything not listed is withdrawn rather than kept"),
|
|
31
|
-
resources: zod
|
|
32
|
-
.array(ResourceRefResource)
|
|
33
|
-
.nullish()
|
|
34
|
-
.describe("The resource scope of this policy, replaced in full. What the scope contains can change; whether the policy has one cannot. A base policy cannot take a scope, and a scoped policy cannot have its scope cleared"),
|
|
35
|
-
roles: zod
|
|
36
|
-
.array(zod.string())
|
|
37
|
-
.nullish()
|
|
38
|
-
.describe("Each must be a role already defined in this project, replaced in full. As when attaching, `OWNER` and `ADMIN` are not accepted"),
|
|
39
|
-
});
|