@leaflow/sdk 0.188.0 → 0.190.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/account/v1/generated/functions.d.ts +113 -1
- package/dist/account/v1/generated/functions.js +126 -0
- package/dist/account/v1/generated/models.d.ts +74 -0
- package/dist/account/v1/generated/models.js +8 -0
- package/dist/account/v1/generated/schemas.zod.d.ts +56 -0
- package/dist/account/v1/generated/schemas.zod.js +63 -0
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/accountDeletionResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/accountDeletionResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/accountDeletionState.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/accountDeletionState.zod.js +4 -0
- package/dist/account/v1/generated/validators/accountResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/accountResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/consentBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/consentBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/consentResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/consentResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/countryOption.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/countryOption.zod.js +4 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/createSSHKeyRequestBody.zod.d.ts +38 -0
- package/dist/account/v1/generated/validators/createSSHKeyRequestBody.zod.js +40 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.js +4 -0
- package/dist/account/v1/generated/validators/error.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/error.zod.js +4 -0
- package/dist/account/v1/generated/validators/errorStatus.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/errorStatus.zod.js +4 -0
- package/dist/account/v1/generated/validators/fieldViolation.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/fieldViolation.zod.js +4 -0
- package/dist/account/v1/generated/validators/grantResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/grantResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/languageOption.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/languageOption.zod.js +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.d.ts +49 -0
- package/dist/account/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.js +37 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +4 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.js +4 -0
- package/dist/account/v1/generated/validators/listSshKeysParams.zod.d.ts +45 -0
- package/dist/account/v1/generated/validators/listSshKeysParams.zod.js +47 -0
- package/dist/account/v1/generated/validators/locale.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/locale.zod.js +4 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.js +4 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectAccessList.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectAccessList.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectStatus.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectStatus.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/renameSSHKeyRequestBody.zod.d.ts +36 -0
- package/dist/account/v1/generated/validators/renameSSHKeyRequestBody.zod.js +34 -0
- package/dist/account/v1/generated/validators/requestAccountDeletionParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/requestAccountDeletionParams.zod.js +4 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/sSHKeyResource.zod.d.ts +44 -0
- package/dist/account/v1/generated/validators/sSHKeyResource.zod.js +41 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +4 -0
- package/dist/fleet/v1/generated/functions.d.ts +31 -16
- package/dist/fleet/v1/generated/functions.js +27 -8
- package/dist/fleet/v1/generated/models.d.ts +58 -10
- package/dist/fleet/v1/generated/models.js +6 -1
- package/dist/fleet/v1/generated/schemas.zod.d.ts +36 -14
- package/dist/fleet/v1/generated/schemas.zod.js +31 -14
- package/dist/fleet/v1/generated/validators/accountList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/accountList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/accountResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/accountResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/approveEnrollmentRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/approveEnrollmentRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/callMcpToolRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/callMcpToolRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/callMcpToolResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/callMcpToolResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createGroupMemberRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createGroupMemberRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createGroupRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createGroupRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createMachineRegistrationRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createMachineRegistrationRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createMachineRegistrationResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createMachineRegistrationResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createParticipantRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createParticipantRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createParticipantResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createParticipantResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createPeerConnectionCandidatesRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createPeerConnectionCandidatesRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createPeerConnectionRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createPeerConnectionRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/createSessionRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/createSessionRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/cursorPagination.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/cursorPagination.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/deleteMcpServerParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/deleteMcpServerParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/denyPrivilegeRequestRequest.zod.d.ts +245 -0
- package/dist/fleet/v1/generated/validators/denyPrivilegeRequestRequest.zod.js +247 -0
- package/dist/fleet/v1/generated/validators/desktopOptions.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/desktopOptions.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/desktopState.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/desktopState.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/directoryName.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/directoryName.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/enrollmentResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/enrollmentResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/enrollmentState.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/enrollmentState.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/error.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/error.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/errorStatus.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/errorStatus.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/featureState.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/featureState.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/fieldViolation.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/fieldViolation.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/findEnrollmentByPairingCodeParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/findEnrollmentByPairingCodeParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/findEnrollmentResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/findEnrollmentResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/groupList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/groupList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/groupResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/groupResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/iceCandidate.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/iceCandidate.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/iceServer.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/iceServer.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listAccountsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listAccountsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listGroupMembersParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listGroupMembersParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listGroupsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listGroupsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listMachineEventsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listMachineEventsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listMachineRegistrationsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listMachineRegistrationsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listMachinesParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listMachinesParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listMcpToolsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listMcpToolsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listPrivilegeAutoApprovalsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listPrivilegeAutoApprovalsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listPrivilegeRequestsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listPrivilegeRequestsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/listSessionsParams.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/listSessionsParams.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineEventList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineEventList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineEventResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineEventResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineEventType.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineEventType.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineFeature.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineFeature.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineRegistrationList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineRegistrationList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineRegistrationResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineRegistrationResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineRegistrationState.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineRegistrationState.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/machineResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/machineResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpConfigurationFile.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpConfigurationFile.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpConfigurationResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpConfigurationResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpImplementation.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpImplementation.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpServerFailure.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpServerFailure.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpServerResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpServerResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpToolList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpToolList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpToolResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpToolResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpTransport.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpTransport.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/mcpUnavailableServer.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/mcpUnavailableServer.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/migrationStep.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/migrationStep.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/namedIdentity.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/namedIdentity.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/offsetPagination.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/offsetPagination.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/operatingSystem.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/operatingSystem.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/participantList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/participantList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/participantResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/participantResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/peerConnection.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/peerConnection.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalList.zod.d.ts +24 -7
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalMode.zod.d.ts +245 -0
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalMode.zod.js +242 -0
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalResource.zod.d.ts +24 -7
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalResource.zod.js +22 -7
- package/dist/fleet/v1/generated/validators/privilegeDecider.zod.d.ts +22 -8
- package/dist/fleet/v1/generated/validators/privilegeDecider.zod.js +22 -9
- package/dist/fleet/v1/generated/validators/privilegeRequestList.zod.d.ts +23 -8
- package/dist/fleet/v1/generated/validators/privilegeRequestList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/privilegeRequestResource.zod.d.ts +24 -8
- package/dist/fleet/v1/generated/validators/privilegeRequestResource.zod.js +26 -7
- package/dist/fleet/v1/generated/validators/privilegeRequestState.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/privilegeRequestState.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/publicKey.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/publicKey.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/renewParticipantRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/renewParticipantRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/renewParticipantResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/renewParticipantResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/replaceMcpConfigurationRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/replaceMcpConfigurationRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/rtcConfiguration.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/rtcConfiguration.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/runCommandRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/runCommandRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/runCommandResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/runCommandResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sendMcpRequestRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sendMcpRequestRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sendMcpRequestResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sendMcpRequestResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sessionCloseReason.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sessionCloseReason.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sessionList.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sessionList.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sessionMode.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sessionMode.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sessionResource.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sessionResource.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/sessionState.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/sessionState.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/signedMessage.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/signedMessage.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/signingKey.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/signingKey.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/updateAccountRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/updateAccountRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/updateGroupRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/updateGroupRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/updateMachineRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/updateMachineRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/updateMcpServerRequest.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/updateMcpServerRequest.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/updateMcpServerResponse.zod.d.ts +20 -7
- package/dist/fleet/v1/generated/validators/updateMcpServerResponse.zod.js +20 -7
- package/dist/fleet/v1/generated/validators/updatePrivilegeAutoApprovalRequest.zod.d.ts +24 -7
- package/dist/fleet/v1/generated/validators/updatePrivilegeAutoApprovalRequest.zod.js +22 -7
- package/dist/iam/v1/generated/functions.d.ts +8 -6
- package/dist/iam/v1/generated/functions.js +7 -5
- package/dist/iam/v1/generated/models.d.ts +1 -13
- package/dist/iam/v1/generated/models.js +0 -4
- package/dist/iam/v1/generated/schemas.zod.d.ts +8 -10
- package/dist/iam/v1/generated/schemas.zod.js +8 -6
- package/dist/iam/v1/generated/validators/applicationResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/applicationResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/batchGetMembersRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/batchGetMembersRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/batchGetMembersResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/batchGetMembersResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/catalogListResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/catalogListResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/catalogResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/catalogResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/createApplicationResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/createApplicationResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/createRoleRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/createRoleRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/createSSHKeyRequestBody.zod.d.ts +1 -6
- package/dist/iam/v1/generated/validators/createSSHKeyRequestBody.zod.js +1 -6
- package/dist/iam/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/iam/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/error.zod.js +1 -1
- package/dist/iam/v1/generated/validators/errorStatus.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/errorStatus.zod.js +1 -1
- package/dist/iam/v1/generated/validators/fieldViolation.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/fieldViolation.zod.js +1 -1
- package/dist/iam/v1/generated/validators/grantResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/grantResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/invitationResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/invitationResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/issueInvitationRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/issueInvitationRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/issuedInvitationResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/issuedInvitationResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageApplicationResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageApplicationResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageMemberResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageMemberResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.d.ts +1 -2
- package/dist/iam/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/listApplicationsParams.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/listApplicationsParams.zod.js +1 -1
- package/dist/iam/v1/generated/validators/listMembersParams.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/listMembersParams.zod.js +1 -1
- package/dist/iam/v1/generated/validators/listPoliciesParams.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/listPoliciesParams.zod.js +1 -1
- package/dist/iam/v1/generated/validators/listProjectInvitationsParams.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/listProjectInvitationsParams.zod.js +1 -1
- package/dist/iam/v1/generated/validators/listSshKeysParams.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/listSshKeysParams.zod.js +1 -1
- package/dist/iam/v1/generated/validators/memberResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/memberResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/membershipResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/membershipResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/iam/v1/generated/validators/ownershipTransferResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/ownershipTransferResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/permissionResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/permissionResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/policyListResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/policyListResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/policyResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/policyResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/projectAccessResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/projectAccessResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/projectResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/projectResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/projectTraitResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/projectTraitResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/quotaListResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/quotaListResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/quotaResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/quotaResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/renameSSHKeyRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/renameSSHKeyRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/resolvedMemberResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/resolvedMemberResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/resourceRefResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/resourceRefResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/resourceTypeResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/resourceTypeResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/roleListResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/roleListResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/roleResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/roleResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/rotateApplicationSecretResponseBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/rotateApplicationSecretResponseBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/ruleResource.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/ruleResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/sSHKeyResource.zod.d.ts +1 -2
- package/dist/iam/v1/generated/validators/sSHKeyResource.zod.js +1 -5
- package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/setMemberRolesRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/setMemberRolesRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/transferOwnershipRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/transferOwnershipRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/updatePolicyRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/updatePolicyRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/updateProjectRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/updateProjectRequestBody.zod.js +1 -1
- package/dist/iam/v1/generated/validators/updateRoleRequestBody.zod.d.ts +1 -1
- package/dist/iam/v1/generated/validators/updateRoleRequestBody.zod.js +1 -1
- package/dist/proto/leaflow/fleet/privilege/v1/privilege_pb.d.ts +20 -5
- package/dist/proto/leaflow/fleet/privilege/v1/privilege_pb.js +1 -1
- package/dist/routes.d.ts +40 -0
- package/dist/routes.js +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Account API
|
|
5
|
+
* Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
|
|
10
|
+
*
|
|
11
|
+
* ## Entering a project
|
|
12
|
+
*
|
|
13
|
+
* 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
|
|
14
|
+
* 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
|
|
15
|
+
* 3. Every other service is called with that scoped token.
|
|
16
|
+
*
|
|
17
|
+
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
|
+
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
23
|
+
* ## Project slugs
|
|
24
|
+
*
|
|
25
|
+
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
26
|
+
*
|
|
27
|
+
* Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
|
|
28
|
+
* OpenAPI spec version: 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
export declare const LengthAwarePageSSHKeyResource: zod.ZodObject<{
|
|
32
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
33
|
+
created_at: zod.z.ZodISODateTime;
|
|
34
|
+
fingerprint: zod.ZodString;
|
|
35
|
+
id: zod.ZodUUID;
|
|
36
|
+
key_type: zod.ZodString;
|
|
37
|
+
name: zod.ZodString;
|
|
38
|
+
public_key: zod.ZodString;
|
|
39
|
+
status: zod.ZodEnum<{
|
|
40
|
+
ACTIVE: "ACTIVE";
|
|
41
|
+
REVOKED: "REVOKED";
|
|
42
|
+
}>;
|
|
43
|
+
}, zod.z.core.$strict>>;
|
|
44
|
+
limit: zod.ZodInt;
|
|
45
|
+
offset: zod.ZodInt;
|
|
46
|
+
total: zod.ZodInt;
|
|
47
|
+
}, zod.z.core.$strict>;
|
|
48
|
+
export type LengthAwarePageSSHKeyResource = zod.input<typeof LengthAwarePageSSHKeyResource>;
|
|
49
|
+
export type LengthAwarePageSSHKeyResourceOutput = zod.output<typeof LengthAwarePageSSHKeyResource>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Account API
|
|
5
|
+
* Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
|
|
10
|
+
*
|
|
11
|
+
* ## Entering a project
|
|
12
|
+
*
|
|
13
|
+
* 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
|
|
14
|
+
* 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
|
|
15
|
+
* 3. Every other service is called with that scoped token.
|
|
16
|
+
*
|
|
17
|
+
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
|
+
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
23
|
+
* ## Project slugs
|
|
24
|
+
*
|
|
25
|
+
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
26
|
+
*
|
|
27
|
+
* Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
|
|
28
|
+
* OpenAPI spec version: 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
import { SSHKeyResource } from "./sSHKeyResource.zod.js";
|
|
32
|
+
export const LengthAwarePageSSHKeyResource = zod.strictObject({
|
|
33
|
+
items: zod.array(SSHKeyResource).describe("The items in this page"),
|
|
34
|
+
limit: zod.int().describe("Maximum number of items in this page, echoing the request"),
|
|
35
|
+
offset: zod.int().describe("Number of items skipped, echoing the request"),
|
|
36
|
+
total: zod.int().describe("Total number of matches, not only this page"),
|
|
37
|
+
});
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Account API
|
|
5
|
+
* Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
|
|
10
|
+
*
|
|
11
|
+
* ## Entering a project
|
|
12
|
+
*
|
|
13
|
+
* 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
|
|
14
|
+
* 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
|
|
15
|
+
* 3. Every other service is called with that scoped token.
|
|
16
|
+
*
|
|
17
|
+
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
|
+
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
23
|
+
* ## Project slugs
|
|
24
|
+
*
|
|
25
|
+
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
26
|
+
*
|
|
27
|
+
* Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
|
|
28
|
+
* OpenAPI spec version: 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
export declare const listSshKeysParamsLimitDefault = 50;
|
|
32
|
+
export declare const listSshKeysParamsLimitMax = 200;
|
|
33
|
+
export declare const listSshKeysParamsOffsetDefault = 0;
|
|
34
|
+
export declare const listSshKeysParamsOffsetMin = 0;
|
|
35
|
+
export declare const listSshKeysParamsOffsetMax = 10000;
|
|
36
|
+
export declare const ListSshKeysParams: zod.ZodObject<{
|
|
37
|
+
limit: zod.ZodDefault<zod.ZodInt>;
|
|
38
|
+
offset: zod.ZodDefault<zod.ZodInt>;
|
|
39
|
+
status: zod.ZodOptional<zod.ZodEnum<{
|
|
40
|
+
ACTIVE: "ACTIVE";
|
|
41
|
+
REVOKED: "REVOKED";
|
|
42
|
+
}>>;
|
|
43
|
+
}, zod.z.core.$strict>;
|
|
44
|
+
export type ListSshKeysParams = zod.input<typeof ListSshKeysParams>;
|
|
45
|
+
export type ListSshKeysParamsOutput = zod.output<typeof ListSshKeysParams>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Account API
|
|
5
|
+
* Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
|
|
10
|
+
*
|
|
11
|
+
* ## Entering a project
|
|
12
|
+
*
|
|
13
|
+
* 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
|
|
14
|
+
* 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
|
|
15
|
+
* 3. Every other service is called with that scoped token.
|
|
16
|
+
*
|
|
17
|
+
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
|
+
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
23
|
+
* ## Project slugs
|
|
24
|
+
*
|
|
25
|
+
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
26
|
+
*
|
|
27
|
+
* Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
|
|
28
|
+
* OpenAPI spec version: 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
export const listSshKeysParamsLimitDefault = 50;
|
|
32
|
+
export const listSshKeysParamsLimitMax = 200;
|
|
33
|
+
export const listSshKeysParamsOffsetDefault = 0;
|
|
34
|
+
export const listSshKeysParamsOffsetMin = 0;
|
|
35
|
+
export const listSshKeysParamsOffsetMax = 10000;
|
|
36
|
+
export const ListSshKeysParams = zod.strictObject({
|
|
37
|
+
limit: zod.int().min(1).max(listSshKeysParamsLimitMax).default(listSshKeysParamsLimitDefault),
|
|
38
|
+
offset: zod
|
|
39
|
+
.int()
|
|
40
|
+
.min(listSshKeysParamsOffsetMin)
|
|
41
|
+
.max(listSshKeysParamsOffsetMax)
|
|
42
|
+
.default(listSshKeysParamsOffsetDefault),
|
|
43
|
+
status: zod
|
|
44
|
+
.enum(["ACTIVE", "REVOKED"])
|
|
45
|
+
.optional()
|
|
46
|
+
.describe("Both kinds are returned while this is absent"),
|
|
47
|
+
});
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Account API
|
|
5
|
+
* Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
|
|
10
|
+
*
|
|
11
|
+
* ## Entering a project
|
|
12
|
+
*
|
|
13
|
+
* 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
|
|
14
|
+
* 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
|
|
15
|
+
* 3. Every other service is called with that scoped token.
|
|
16
|
+
*
|
|
17
|
+
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
|
+
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
23
|
+
* ## Project slugs
|
|
24
|
+
*
|
|
25
|
+
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
26
|
+
*
|
|
27
|
+
* Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
|
|
28
|
+
* OpenAPI spec version: 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
export declare const renameSSHKeyRequestBodyNameMax = 128;
|
|
32
|
+
export declare const RenameSSHKeyRequestBody: zod.ZodObject<{
|
|
33
|
+
name: zod.ZodString;
|
|
34
|
+
}, zod.z.core.$strict>;
|
|
35
|
+
export type RenameSSHKeyRequestBody = zod.input<typeof RenameSSHKeyRequestBody>;
|
|
36
|
+
export type RenameSSHKeyRequestBodyOutput = zod.output<typeof RenameSSHKeyRequestBody>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Account API
|
|
5
|
+
* Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
|
|
10
|
+
*
|
|
11
|
+
* ## Entering a project
|
|
12
|
+
*
|
|
13
|
+
* 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
|
|
14
|
+
* 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
|
|
15
|
+
* 3. Every other service is called with that scoped token.
|
|
16
|
+
*
|
|
17
|
+
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
|
+
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
23
|
+
* ## Project slugs
|
|
24
|
+
*
|
|
25
|
+
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
26
|
+
*
|
|
27
|
+
* Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
|
|
28
|
+
* OpenAPI spec version: 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
export const renameSSHKeyRequestBodyNameMax = 128;
|
|
32
|
+
export const RenameSSHKeyRequestBody = zod.strictObject({
|
|
33
|
+
name: zod.string().min(1).max(renameSSHKeyRequestBodyNameMax),
|
|
34
|
+
});
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
|
|
18
18
|
*
|
|
19
|
+
* ## SSH keys
|
|
20
|
+
*
|
|
21
|
+
* The SSH keys of an account sign its holder in as themselves, in every project they belong to: Fleet machines accept them for the holder's directory account wherever `fleet:machines.login` allows it, and Compute installs them on the servers the holder creates or reinstalls. A key is active on one account at most. Keys shared by a project, such as one used by CI, belong to the project instead and are managed through the IAM API.
|
|
22
|
+
*
|
|
19
23
|
* ## Project slugs
|
|
20
24
|
*
|
|
21
25
|
* Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
|