@zitadel/api 0.6.0 → 0.8.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/api-factory-B2kd991F.mjs +384 -0
- package/dist/api-factory-B2kd991F.mjs.map +1 -0
- package/dist/api-factory-DW48-EMM.d.mts +228 -0
- package/dist/api-factory-DW48-EMM.d.mts.map +1 -0
- package/dist/fetch-BLgYBrzi.d.mts +134 -0
- package/dist/fetch-BLgYBrzi.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +1 -3868
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +257 -143
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +2980 -795
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +2588 -1366
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +3134 -1943
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +530 -890
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.d.mts +1 -3
- package/dist/generated/operations.d.mts.map +1 -1
- package/dist/generated/operations.mjs +200 -112
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/index-REGtKmAu.d.mts +60693 -0
- package/dist/index-REGtKmAu.d.mts.map +1 -0
- package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/api-factory.mjs +1 -2
- package/dist/runtime/auth.d.mts +0 -2
- package/dist/runtime/auth.d.mts.map +1 -1
- package/dist/runtime/auth.mjs +1 -2
- package/dist/runtime/base-url.d.mts +0 -2
- package/dist/runtime/base-url.d.mts.map +1 -1
- package/dist/runtime/base-url.mjs +1 -2
- package/dist/runtime/config.d.mts +1 -3
- package/dist/runtime/config.d.mts.map +1 -1
- package/dist/runtime/config.mjs +2 -3
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +2 -3
- package/dist/runtime/paging.d.mts +0 -2
- package/dist/runtime/paging.d.mts.map +1 -1
- package/dist/runtime/paging.mjs +1 -2
- package/dist/zitadelNextGen-C2Qcm9jl.d.mts +2034 -0
- package/dist/zitadelNextGen-C2Qcm9jl.d.mts.map +1 -0
- package/dist/zitadelNextGen-CDqt2m_4.mjs +3509 -0
- package/dist/zitadelNextGen-CDqt2m_4.mjs.map +1 -0
- package/package.json +8 -10
- package/src/generated/endpoints/zitadelNextGen.faker.ts +102 -93
- package/src/generated/endpoints/zitadelNextGen.msw.ts +417 -340
- package/src/generated/endpoints/zitadelNextGen.ts +630 -1087
- package/src/generated/endpoints/zitadelNextGen.zod.ts +2676 -1663
- package/src/generated/model/acceptInvitation200.ts +88 -16
- package/src/generated/model/acceptInvitationDefault.ts +18 -0
- package/src/generated/model/addProjectOrigin201.ts +18 -0
- package/src/generated/model/addProjectOrigin201Kind.ts +18 -0
- package/src/generated/model/addProjectOriginBody.ts +35 -0
- package/src/generated/model/addProjectOriginBodyKind.ts +19 -0
- package/src/generated/model/addProjectOriginDefault.ts +135 -0
- package/src/generated/model/buildRelease200.ts +4 -4
- package/src/generated/model/buildRelease200PointersItem.ts +3 -1
- package/src/generated/model/buildRelease200PointersItemKind.ts +2 -1
- package/src/generated/model/buildRelease201.ts +4 -4
- package/src/generated/model/buildRelease201PointersItem.ts +3 -1
- package/src/generated/model/buildRelease201PointersItemKind.ts +2 -1
- package/src/generated/model/buildRelease400DetailsResourcesItem.ts +2 -2
- package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +2 -1
- package/src/generated/model/buildReleaseBody.ts +7 -5
- package/src/generated/model/buildReleaseBodyBundle.ts +22 -6
- package/src/generated/model/buildReleaseBodyBundleBranding.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +2 -12
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +2 -9
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -2
- package/src/generated/model/buildReleaseBodyBundleOauth.ts +29 -0
- package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +20 -0
- package/src/generated/model/buildReleaseParams.ts +7 -7
- package/src/generated/model/cancelInvitationDefault.ts +9 -0
- package/src/generated/model/cancelInvitationParams.ts +7 -7
- package/src/generated/model/completeProjectClaim200.ts +19 -0
- package/src/generated/model/completeProjectClaim400.ts +20 -0
- package/src/generated/model/completeProjectClaim400Details.ts +12 -0
- package/src/generated/model/completeProjectClaim401.ts +23 -0
- package/src/generated/model/completeProjectClaim403.ts +36 -0
- package/src/generated/model/completeProjectClaim404.ts +20 -0
- package/src/generated/model/completeProjectClaim404Details.ts +12 -0
- package/src/generated/model/completeProjectClaim409.ts +25 -0
- package/src/generated/model/completeProjectClaim409Details.ts +14 -0
- package/src/generated/model/completeProjectClaim410.ts +27 -0
- package/src/generated/model/completeProjectClaim429.ts +20 -0
- package/src/generated/model/completeProjectClaim429Details.ts +12 -0
- package/src/generated/model/completeProjectClaimBody.ts +18 -0
- package/src/generated/model/completeProjectClaimDefault.ts +144 -0
- package/src/generated/model/completeUserPasskeyRegistration201.ts +19 -0
- package/src/generated/model/completeUserPasskeyRegistration400.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration400Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration401.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration401Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration403.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration403Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration404.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration404Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration429.ts +23 -0
- package/src/generated/model/completeUserPasskeyRegistration500.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration500Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistrationBody.ts +21 -0
- package/src/generated/model/completeUserPasskeyRegistrationBodyAttestation.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistrationDefault.ts +189 -0
- package/src/generated/model/createAuthAttempt201ChallengesItem.ts +1 -1
- package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +1 -1
- package/src/generated/model/createAuthAttemptChallenge201.ts +49 -0
- package/src/generated/model/createAuthAttemptChallenge201Method.ts +20 -0
- package/src/generated/model/createAuthAttemptChallenge201Payload.ts +34 -0
- package/src/generated/model/createAuthAttemptChallenge201State.ts +22 -0
- package/src/generated/model/createAuthAttemptChallengeBody.ts +28 -0
- package/src/generated/model/createAuthAttemptChallengeBodyMethod.ts +20 -0
- package/src/generated/model/createAuthAttemptChallengeBodyPasskeyOptions.ts +19 -0
- package/src/generated/model/createAuthAttemptChallengeBodyPasskeyOptionsUserVerification.ts +16 -0
- package/src/generated/model/createAuthAttemptChallengeDefault.ts +90 -0
- package/src/generated/model/createAuthAttemptHandoff200.ts +30 -0
- package/src/generated/model/createAuthAttemptHandoff409.ts +20 -0
- package/src/generated/model/createAuthAttemptHandoff409Details.ts +12 -0
- package/src/generated/model/createAuthAttemptHandoffDefault.ts +99 -0
- package/src/generated/model/createDeployment200.ts +2 -2
- package/src/generated/model/createDeployment200Release.ts +4 -4
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +3 -1
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/createDeployment200TargetsItem.ts +0 -5
- package/src/generated/model/createDeployment201.ts +2 -2
- package/src/generated/model/createDeployment201Release.ts +4 -4
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +3 -1
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/createDeployment201TargetsItem.ts +0 -5
- package/src/generated/model/createDeployment409.ts +8 -11
- package/src/generated/model/createDeploymentBody.ts +2 -2
- package/src/generated/model/createDeploymentParams.ts +7 -7
- package/src/generated/model/createFlow201.ts +1 -1
- package/src/generated/model/createFlow201Branding.ts +1 -1
- package/src/generated/model/createFlow201StepGates.ts +22 -9
- package/src/generated/model/createFlow201StepGatesChallenge.ts +30 -0
- package/src/generated/model/createFlow201StepGatesConfig.ts +2 -2
- package/src/generated/model/createFlow201StepGatesKind.ts +3 -4
- package/src/generated/model/createGrantParams.ts +7 -7
- package/src/generated/model/createInvitation201.ts +88 -16
- package/src/generated/model/createInvitationBody.ts +4 -4
- package/src/generated/model/createInvitationDefault.ts +54 -0
- package/src/generated/model/createInvitationParams.ts +7 -7
- package/src/generated/model/createProjectClaim201.ts +25 -0
- package/src/generated/model/createProjectClaim401.ts +20 -0
- package/src/generated/model/createProjectClaim401Details.ts +12 -0
- package/src/generated/model/createProjectClaim404.ts +23 -0
- package/src/generated/model/createProjectClaim409.ts +25 -0
- package/src/generated/model/createProjectClaim409Details.ts +14 -0
- package/src/generated/model/createProjectClaim410.ts +23 -0
- package/src/generated/model/createProjectClaimDefault.ts +99 -0
- package/src/generated/model/createRelease200.ts +4 -4
- package/src/generated/model/createRelease200PointersItem.ts +3 -1
- package/src/generated/model/createRelease200PointersItemKind.ts +2 -1
- package/src/generated/model/createRelease201.ts +4 -4
- package/src/generated/model/createRelease201PointersItem.ts +3 -1
- package/src/generated/model/createRelease201PointersItemKind.ts +2 -1
- package/src/generated/model/createReleaseBodyPointersItem.ts +1 -1
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +2 -1
- package/src/generated/model/createReleaseParams.ts +7 -7
- package/src/generated/model/createTeamParams.ts +7 -7
- package/src/generated/model/createUser201.ts +1 -1
- package/src/generated/model/createUserBody.ts +1 -1
- package/src/generated/model/createUserParams.ts +23 -23
- package/src/generated/model/createUserPasskeyRegistration201.ts +25 -0
- package/src/generated/model/createUserPasskeyRegistration201Options.ts +13 -0
- package/src/generated/model/createUserPasskeyRegistration400.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration400Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration401.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration401Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration403.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration403Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration404.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration404Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration500.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration500Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistrationBody.ts +33 -0
- package/src/generated/model/createUserPasskeyRegistrationDefault.ts +126 -0
- package/src/generated/model/deactivateTeam400.ts +20 -0
- package/src/generated/model/deactivateTeam400Details.ts +12 -0
- package/src/generated/model/deactivateTeam401.ts +20 -0
- package/src/generated/model/deactivateTeam401Details.ts +12 -0
- package/src/generated/model/deactivateTeam403.ts +20 -0
- package/src/generated/model/deactivateTeam403Details.ts +12 -0
- package/src/generated/model/deactivateTeam409.ts +20 -0
- package/src/generated/model/deactivateTeam409Details.ts +12 -0
- package/src/generated/model/deactivateTeamDefault.ts +90 -0
- package/src/generated/model/deleteGrantParams.ts +7 -7
- package/src/generated/model/deleteUser401.ts +20 -0
- package/src/generated/model/deleteUser401Details.ts +12 -0
- package/src/generated/model/deleteUser404.ts +20 -0
- package/src/generated/model/deleteUser404Details.ts +12 -0
- package/src/generated/model/deleteUser409.ts +20 -0
- package/src/generated/model/deleteUser409Details.ts +12 -0
- package/src/generated/model/deleteUserDefault.ts +99 -0
- package/src/generated/model/deleteVariableParams.ts +12 -12
- package/src/generated/model/evaluatePolicy200.ts +2 -2
- package/src/generated/model/evaluatePolicyBody.ts +31 -0
- package/src/generated/model/evaluatePolicyParams.ts +7 -7
- package/src/generated/model/exchangeHandoffBody.ts +2 -2
- package/src/generated/model/exchangeHandoffParams.ts +7 -7
- package/src/generated/model/getApplication200.ts +43 -0
- package/src/generated/model/getApplication200Definition.ts +35 -0
- package/src/generated/model/getApplication200DefinitionClientsItem.ts +84 -0
- package/src/generated/model/getApplication200DefinitionClientsItemGrantTypesItem.ts +15 -0
- package/src/generated/model/getApplication200DefinitionClientsItemType.ts +19 -0
- package/src/generated/model/getApplication401.ts +20 -0
- package/src/generated/model/getApplication401Details.ts +12 -0
- package/src/generated/model/getApplication403.ts +20 -0
- package/src/generated/model/getApplication403Details.ts +12 -0
- package/src/generated/model/getApplication404.ts +20 -0
- package/src/generated/model/getApplication404Details.ts +12 -0
- package/src/generated/model/getApplicationDefault.ts +72 -0
- package/src/generated/model/getApplicationParams.ts +17 -0
- package/src/generated/model/getAuthAttempt200ChallengesItem.ts +1 -1
- package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +1 -1
- package/src/generated/model/getBranding200.ts +32 -0
- package/src/generated/model/getBranding200Branding.ts +80 -0
- package/src/generated/model/getBranding200BrandingLayout.ts +27 -0
- package/src/generated/model/getBranding200BrandingShape.ts +30 -0
- package/src/generated/model/getBranding200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getBranding200BrandingTheme.ts +41 -0
- package/src/generated/model/getBranding200BrandingThemeDark.ts +34 -0
- package/src/generated/model/getBranding200BrandingThemeDarkPalette.ts +210 -0
- package/src/generated/model/getBranding200BrandingThemeLight.ts +34 -0
- package/src/generated/model/getBranding200BrandingThemeLightPalette.ts +210 -0
- package/src/generated/model/getBranding200BrandingThemeMode.ts +19 -0
- package/src/generated/model/getBranding200BrandingTypography.ts +47 -0
- package/src/generated/model/getBranding404.ts +20 -0
- package/src/generated/model/getBranding404Details.ts +12 -0
- package/src/generated/model/getBrandingDefault.ts +72 -0
- package/src/generated/model/getDeployment200.ts +78 -0
- package/src/generated/model/getDeployment200Kind.ts +18 -0
- package/src/generated/model/getDeployment200Metadata.ts +35 -0
- package/src/generated/model/getDeployment200MetadataDeployedByType.ts +20 -0
- package/src/generated/model/getDeployment200MetadataReason.ts +20 -0
- package/src/generated/model/getDeployment200Release.ts +96 -0
- package/src/generated/model/getDeployment200ReleaseMetadata.ts +43 -0
- package/src/generated/model/getDeployment200ReleaseMetadataCreatedByType.ts +20 -0
- package/src/generated/model/getDeployment200ReleasePointersItem.ts +63 -0
- package/src/generated/model/getDeployment200ReleasePointersItemKind.ts +29 -0
- package/src/generated/model/getDeployment200Status.ts +23 -0
- package/src/generated/model/getDeployment200TargetsItem.ts +23 -0
- package/src/generated/model/getDeploymentDefault.ts +72 -0
- package/src/generated/model/getDeploymentParams.ts +17 -0
- package/src/generated/model/getEvent200.ts +1014 -160
- package/src/generated/model/getEventParams.ts +7 -7
- package/src/generated/model/getFlowDefinition200.ts +2 -2
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +2 -12
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +2 -9
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -2
- package/src/generated/model/getFlowDefinition200UserSchema.ts +1 -1
- package/src/generated/model/getFlowStep200.ts +1 -1
- package/src/generated/model/getFlowStep200Branding.ts +1 -1
- package/src/generated/model/getFlowStep200StepGates.ts +22 -9
- package/src/generated/model/getFlowStep200StepGatesChallenge.ts +30 -0
- package/src/generated/model/getFlowStep200StepGatesConfig.ts +2 -2
- package/src/generated/model/getFlowStep200StepGatesKind.ts +3 -4
- package/src/generated/model/getFlowStep429.ts +23 -0
- package/src/generated/model/getFlowStepDefault.ts +18 -0
- package/src/generated/model/getGrantParams.ts +13 -13
- package/src/generated/model/getIdp200.ts +39 -0
- package/src/generated/model/getIdp200Definition.ts +44 -0
- package/src/generated/model/getIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdp200DefinitionOidc.ts +65 -0
- package/src/generated/model/getIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdp200DefinitionProtocol.ts +17 -0
- package/src/generated/model/getIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdp401.ts +20 -0
- package/src/generated/model/getIdp401Details.ts +12 -0
- package/src/generated/model/getIdp403.ts +20 -0
- package/src/generated/model/getIdp403Details.ts +12 -0
- package/src/generated/model/getIdp404.ts +20 -0
- package/src/generated/model/getIdp404Details.ts +12 -0
- package/src/generated/model/getIdpDefault.ts +72 -0
- package/src/generated/model/getIdpParams.ts +17 -0
- package/src/generated/model/getIdpRevision200.ts +39 -0
- package/src/generated/model/getIdpRevision200Definition.ts +44 -0
- package/src/generated/model/getIdpRevision200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpRevision200DefinitionOidc.ts +65 -0
- package/src/generated/model/getIdpRevision200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpRevision200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevision200DefinitionProtocol.ts +17 -0
- package/src/generated/model/getIdpRevision200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpRevision200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpRevision200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpRevision401.ts +20 -0
- package/src/generated/model/getIdpRevision401Details.ts +12 -0
- package/src/generated/model/getIdpRevision403.ts +20 -0
- package/src/generated/model/getIdpRevision403Details.ts +12 -0
- package/src/generated/model/getIdpRevision404.ts +20 -0
- package/src/generated/model/getIdpRevision404Details.ts +12 -0
- package/src/generated/model/getIdpRevisionDefault.ts +72 -0
- package/src/generated/model/getIdpRevisionParams.ts +17 -0
- package/src/generated/model/getInvitation200.ts +88 -16
- package/src/generated/model/getInvitationParams.ts +7 -7
- package/src/generated/model/getMyPasswordStateParams.ts +16 -16
- package/src/generated/model/getMySessionCsrfTokenParams.ts +16 -16
- package/src/generated/model/getMySessionParams.ts +16 -16
- package/src/generated/model/getMyUser200.ts +1 -1
- package/src/generated/model/getMyUserParams.ts +16 -16
- package/src/generated/model/getMyUserSchemaParams.ts +16 -16
- package/src/generated/model/getOAuthSettings200.ts +33 -0
- package/src/generated/model/getOAuthSettings200Oauth.ts +29 -0
- package/src/generated/model/getOAuthSettings404.ts +20 -0
- package/src/generated/model/getOAuthSettings404Details.ts +12 -0
- package/src/generated/model/getOAuthSettingsDefault.ts +72 -0
- package/src/generated/model/getPolicy200.ts +36 -0
- package/src/generated/model/getPolicyParams.ts +7 -7
- package/src/generated/model/getPolicyRevision200.ts +36 -0
- package/src/generated/model/getPolicyRevisionParams.ts +7 -7
- package/src/generated/model/getProjectClaimStatus200.ts +27 -0
- package/src/generated/model/getProjectClaimStatus401.ts +20 -0
- package/src/generated/model/getProjectClaimStatus401Details.ts +12 -0
- package/src/generated/model/getProjectClaimStatus403.ts +23 -0
- package/src/generated/model/getProjectClaimStatus404.ts +20 -0
- package/src/generated/model/getProjectClaimStatus404Details.ts +12 -0
- package/src/generated/model/getProjectClaimStatus410.ts +27 -0
- package/src/generated/model/getProjectClaimStatus429.ts +20 -0
- package/src/generated/model/getProjectClaimStatus429Details.ts +12 -0
- package/src/generated/model/getProjectClaimStatusDefault.ts +99 -0
- package/src/generated/model/getProjectClaimStatusParams.ts +15 -0
- package/src/generated/model/getProjectClaimWindow200.ts +23 -0
- package/src/generated/model/getProjectClaimWindow404.ts +20 -0
- package/src/generated/model/getProjectClaimWindow404Details.ts +12 -0
- package/src/generated/model/getProjectClaimWindow429.ts +20 -0
- package/src/generated/model/getProjectClaimWindow429Details.ts +12 -0
- package/src/generated/model/getProjectClaimWindowDefault.ts +36 -0
- package/src/generated/model/getProjectClaimWindowParams.ts +15 -0
- package/src/generated/model/getRelease200.ts +96 -0
- package/src/generated/model/getRelease200Metadata.ts +43 -0
- package/src/generated/model/getRelease200MetadataCreatedByType.ts +20 -0
- package/src/generated/model/getRelease200PointersItem.ts +63 -0
- package/src/generated/model/getRelease200PointersItemKind.ts +29 -0
- package/src/generated/model/getReleaseDefault.ts +72 -0
- package/src/generated/model/getReleaseParams.ts +17 -0
- package/src/generated/model/getSchema200.ts +31 -0
- package/src/generated/model/getSchema200Metadata.ts +18 -0
- package/src/generated/model/getSchema200Schema.ts +84 -0
- package/src/generated/model/getSchemaDefault.ts +72 -0
- package/src/generated/model/getSchemaParams.ts +21 -0
- package/src/generated/model/getUser200.ts +76 -0
- package/src/generated/model/getUser200Attributes.ts +13 -0
- package/src/generated/model/getUser200Metadata.ts +44 -0
- package/src/generated/model/getUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/getUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/getUser200MetadataStatus.ts +20 -0
- package/src/generated/model/getUser200TeamsItem.ts +33 -0
- package/src/generated/model/getUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/getUser401.ts +20 -0
- package/src/generated/model/getUser401Details.ts +12 -0
- package/src/generated/model/getUser404.ts +20 -0
- package/src/generated/model/getUser404Details.ts +12 -0
- package/src/generated/model/getUserDefault.ts +72 -0
- package/src/generated/model/getUserParams.ts +31 -0
- package/src/generated/model/getVariableParams.ts +12 -12
- package/src/generated/model/index.ts +462 -468
- package/src/generated/model/listBranding200.ts +20 -0
- package/src/generated/model/listBranding200BrandingItem.ts +18 -0
- package/src/generated/model/listBrandingParams.ts +20 -7
- package/src/generated/model/listDeploymentVariables200.ts +17 -0
- package/src/generated/model/listDeploymentVariablesDefault.ts +90 -0
- package/src/generated/model/listDeploymentVariablesParams.ts +17 -0
- package/src/generated/model/listDeployments200DeploymentsItem.ts +2 -2
- package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +4 -4
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +3 -1
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +2 -1
- package/src/generated/model/listDeployments200DeploymentsItemTargetsItem.ts +0 -5
- package/src/generated/model/listDeploymentsParams.ts +42 -39
- package/src/generated/model/listEvents200.ts +2 -2
- package/src/generated/model/listEvents200EventsItem.ts +5220 -0
- package/src/generated/model/listEventsParams.ts +83 -97
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +2 -12
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +2 -9
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +1 -1
- package/src/generated/model/listFlowDefinitionsExpandItem.ts +1 -1
- package/src/generated/model/listFlowDefinitionsParams.ts +44 -48
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +2 -2
- package/src/generated/model/listIdpRevisionsParams.ts +20 -20
- package/src/generated/model/listInvitations200InvitationsItem.ts +88 -16
- package/src/generated/model/listInvitationsExpandItem.ts +25 -0
- package/src/generated/model/listInvitationsParams.ts +31 -31
- package/src/generated/model/listInvitationsStatusItem.ts +22 -0
- package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +1 -1
- package/src/generated/model/listMyIdentityLinksParams.ts +29 -29
- package/src/generated/model/listMyPasskeysParams.ts +29 -29
- package/src/generated/model/listMyProjectsParams.ts +52 -46
- package/src/generated/model/listMyTeamsParams.ts +29 -29
- package/src/generated/model/listPolicies200PoliciesItem.ts +36 -0
- package/src/generated/model/listPoliciesOperation.ts +1 -0
- package/src/generated/model/listPoliciesParams.ts +22 -24
- package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +36 -0
- package/src/generated/model/listPolicyRevisionsParams.ts +20 -20
- package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +1 -1
- package/src/generated/model/listProjectAdminsParams.ts +13 -13
- package/src/generated/model/listProjectMembers200.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItem.ts +38 -0
- package/src/generated/model/listProjectMembers200MembersItemRelation.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItemSourcesItem.ts +55 -0
- package/src/generated/model/listProjectMembers200MembersItemUser.ts +40 -0
- package/src/generated/model/listProjectMembers400.ts +20 -0
- package/src/generated/model/listProjectMembers400Details.ts +12 -0
- package/src/generated/model/listProjectMembers401.ts +20 -0
- package/src/generated/model/listProjectMembers401Details.ts +12 -0
- package/src/generated/model/listProjectMembers403.ts +20 -0
- package/src/generated/model/listProjectMembers403Details.ts +12 -0
- package/src/generated/model/listProjectMembers404.ts +20 -0
- package/src/generated/model/listProjectMembers404Details.ts +12 -0
- package/src/generated/model/listProjectMembersDefault.ts +81 -0
- package/src/generated/model/listProjectMembersParams.ts +29 -0
- package/src/generated/model/listProjectMembersRelation.ts +16 -0
- package/src/generated/model/listProjectPreviews200.ts +20 -0
- package/src/generated/model/listProjectPreviews200PreviewsItem.ts +37 -0
- package/src/generated/model/listProjectPreviewsDefault.ts +72 -0
- package/src/generated/model/listProjectPreviewsParams.ts +23 -0
- package/src/generated/model/listReleases200ReleasesItem.ts +2 -2
- package/src/generated/model/listReleasesParams.ts +60 -60
- package/src/generated/model/listSchemasParams.ts +54 -56
- package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +1 -1
- package/src/generated/model/listUserIdentityLinksParams.ts +13 -13
- package/src/generated/model/listUserPasskeysParams.ts +13 -13
- package/src/generated/model/listUserTeamsParams.ts +13 -13
- package/src/generated/model/listVariables200.ts +35 -0
- package/src/generated/model/listVariables200Preview.ts +20 -0
- package/src/generated/model/listVariables200Primary.ts +20 -0
- package/src/generated/model/listVariablesDefault.ts +72 -0
- package/src/generated/model/listVariablesKind.ts +15 -0
- package/src/generated/model/listVariablesParams.ts +23 -0
- package/src/generated/model/lookupInvitation200.ts +62 -4
- package/src/generated/model/publishApplication200.ts +137 -0
- package/src/generated/model/publishApplication200ClientSecretsItem.ts +19 -0
- package/src/generated/model/publishApplication201.ts +137 -0
- package/src/generated/model/publishApplication201ClientSecretsItem.ts +19 -0
- package/src/generated/model/publishApplication400.ts +20 -0
- package/src/generated/model/publishApplication400Details.ts +12 -0
- package/src/generated/model/publishApplication401.ts +20 -0
- package/src/generated/model/publishApplication401Details.ts +12 -0
- package/src/generated/model/publishApplication403.ts +20 -0
- package/src/generated/model/publishApplication403Details.ts +12 -0
- package/src/generated/model/publishApplication404.ts +20 -0
- package/src/generated/model/publishApplication404Details.ts +12 -0
- package/src/generated/model/publishApplication409.ts +20 -0
- package/src/generated/model/publishApplication409Details.ts +12 -0
- package/src/generated/model/publishApplicationBody.ts +20 -0
- package/src/generated/model/publishApplicationBodyApplication.ts +35 -0
- package/src/generated/model/publishApplicationBodyApplicationClientsItem.ts +84 -0
- package/src/generated/model/publishApplicationBodyApplicationClientsItemGrantTypesItem.ts +15 -0
- package/src/generated/model/publishApplicationBodyApplicationClientsItemType.ts +19 -0
- package/src/generated/model/publishApplicationDefault.ts +117 -0
- package/src/generated/model/publishApplicationParams.ts +17 -0
- package/src/generated/model/publishBranding201.ts +32 -0
- package/src/generated/model/publishBranding201Branding.ts +80 -0
- package/src/generated/model/publishBranding201BrandingLayout.ts +27 -0
- package/src/generated/model/publishBranding201BrandingShape.ts +30 -0
- package/src/generated/model/publishBranding201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/publishBranding201BrandingTheme.ts +41 -0
- package/src/generated/model/publishBranding201BrandingThemeDark.ts +34 -0
- package/src/generated/model/publishBranding201BrandingThemeDarkPalette.ts +210 -0
- package/src/generated/model/publishBranding201BrandingThemeLight.ts +34 -0
- package/src/generated/model/publishBranding201BrandingThemeLightPalette.ts +210 -0
- package/src/generated/model/publishBranding201BrandingThemeMode.ts +19 -0
- package/src/generated/model/publishBranding201BrandingTypography.ts +47 -0
- package/src/generated/model/publishBranding400.ts +20 -0
- package/src/generated/model/publishBranding400Details.ts +12 -0
- package/src/generated/model/publishBrandingBody.ts +80 -0
- package/src/generated/model/publishBrandingBodyLayout.ts +27 -0
- package/src/generated/model/publishBrandingBodyShape.ts +30 -0
- package/src/generated/model/publishBrandingBodyShapeDensity.ts +19 -0
- package/src/generated/model/publishBrandingBodyTheme.ts +41 -0
- package/src/generated/model/publishBrandingBodyThemeDark.ts +34 -0
- package/src/generated/model/publishBrandingBodyThemeDarkPalette.ts +210 -0
- package/src/generated/model/publishBrandingBodyThemeLight.ts +34 -0
- package/src/generated/model/publishBrandingBodyThemeLightPalette.ts +210 -0
- package/src/generated/model/publishBrandingBodyThemeMode.ts +19 -0
- package/src/generated/model/publishBrandingBodyTypography.ts +47 -0
- package/src/generated/model/publishBrandingDefault.ts +99 -0
- package/src/generated/model/publishBrandingParams.ts +17 -0
- package/src/generated/model/publishFlowDefinition201.ts +48 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinition.ts +85 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionAudience.ts +20 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItem.ts +109 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +49 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +29 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemComplete.ts +20 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGates.ts +29 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +12 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +20 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +25 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitions.ts +68 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +28 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +29 -0
- package/src/generated/model/publishFlowDefinition201UserSchema.ts +26 -0
- package/src/generated/model/publishFlowDefinition201UserSchemaMetadata.ts +18 -0
- package/src/generated/model/publishFlowDefinition201UserSchemaSchema.ts +84 -0
- package/src/generated/model/publishFlowDefinition400.ts +20 -0
- package/src/generated/model/publishFlowDefinition400Details.ts +12 -0
- package/src/generated/model/publishFlowDefinitionBody.ts +43 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinition.ts +85 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionAudience.ts +20 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItem.ts +109 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +49 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +29 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +20 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +29 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +12 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +20 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +25 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +68 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +28 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +29 -0
- package/src/generated/model/publishFlowDefinitionDefault.ts +117 -0
- package/src/generated/model/publishIdp200.ts +39 -0
- package/src/generated/model/publishIdp200Definition.ts +44 -0
- package/src/generated/model/publishIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/publishIdp200DefinitionOidc.ts +65 -0
- package/src/generated/model/publishIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/publishIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/publishIdp200DefinitionProtocol.ts +17 -0
- package/src/generated/model/publishIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/publishIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/publishIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/publishIdp201.ts +39 -0
- package/src/generated/model/publishIdp201Definition.ts +44 -0
- package/src/generated/model/publishIdp201DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/publishIdp201DefinitionOidc.ts +65 -0
- package/src/generated/model/publishIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/publishIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/publishIdp201DefinitionProtocol.ts +17 -0
- package/src/generated/model/publishIdp201DefinitionProvisioning.ts +15 -0
- package/src/generated/model/publishIdp201DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/publishIdp201DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/publishIdp400.ts +20 -0
- package/src/generated/model/publishIdp400Details.ts +12 -0
- package/src/generated/model/publishIdp401.ts +20 -0
- package/src/generated/model/publishIdp401Details.ts +12 -0
- package/src/generated/model/publishIdp403.ts +20 -0
- package/src/generated/model/publishIdp403Details.ts +12 -0
- package/src/generated/model/publishIdp404.ts +20 -0
- package/src/generated/model/publishIdp404Details.ts +12 -0
- package/src/generated/model/publishIdpBody.ts +15 -0
- package/src/generated/model/publishIdpBodyIdp.ts +44 -0
- package/src/generated/model/publishIdpBodyIdpClaimMapping.ts +12 -0
- package/src/generated/model/publishIdpBodyIdpOidc.ts +65 -0
- package/src/generated/model/publishIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/publishIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/publishIdpBodyIdpProtocol.ts +17 -0
- package/src/generated/model/publishIdpBodyIdpProvisioning.ts +15 -0
- package/src/generated/model/publishIdpBodyIdpProvisioningCreation.ts +15 -0
- package/src/generated/model/publishIdpBodyIdpVerifiedClaims.ts +12 -0
- package/src/generated/model/publishIdpDefault.ts +108 -0
- package/src/generated/model/publishIdpParams.ts +17 -0
- package/src/generated/model/publishPolicy201.ts +36 -0
- package/src/generated/model/publishPolicyBody.ts +20 -0
- package/src/generated/model/publishPolicyParams.ts +7 -7
- package/src/generated/model/publishSchema201.ts +31 -0
- package/src/generated/model/publishSchema201Metadata.ts +18 -0
- package/src/generated/model/publishSchema201Schema.ts +84 -0
- package/src/generated/model/publishSchemaBody.ts +86 -0
- package/src/generated/model/publishSchemaDefault.ts +153 -0
- package/src/generated/model/publishSchemaParams.ts +22 -0
- package/src/generated/model/queryGrantsParams.ts +7 -7
- package/src/generated/model/queryIdps200IdpsItem.ts +2 -2
- package/src/generated/model/queryIdpsParams.ts +7 -7
- package/src/generated/model/querySessionsParams.ts +7 -7
- package/src/generated/model/queryTeamsParams.ts +6 -6
- package/src/generated/model/queryUsers200UsersItem.ts +1 -1
- package/src/generated/model/queryUsersParams.ts +6 -6
- package/src/generated/model/rejectInvitation200.ts +88 -16
- package/src/generated/model/rejectInvitationDefault.ts +18 -0
- package/src/generated/model/removeProjectOriginBody.ts +15 -0
- package/src/generated/model/removeProjectOriginDefault.ts +108 -0
- package/src/generated/model/removeProjectPreviewBody.ts +23 -0
- package/src/generated/model/removeProjectPreviewDefault.ts +90 -0
- package/src/generated/model/revokeMySessionParams.ts +16 -16
- package/src/generated/model/revokeRelease200.ts +4 -4
- package/src/generated/model/revokeRelease200PointersItem.ts +3 -1
- package/src/generated/model/revokeRelease200PointersItemKind.ts +2 -1
- package/src/generated/model/revokeReleaseParams.ts +7 -7
- package/src/generated/model/rollbackDeployment200.ts +2 -2
- package/src/generated/model/rollbackDeployment200Release.ts +4 -4
- package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +3 -1
- package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/rollbackDeployment200TargetsItem.ts +0 -5
- package/src/generated/model/rollbackDeployment201.ts +2 -2
- package/src/generated/model/rollbackDeployment201Release.ts +4 -4
- package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +3 -1
- package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/rollbackDeployment201TargetsItem.ts +0 -5
- package/src/generated/model/rollbackDeployment409.ts +8 -11
- package/src/generated/model/rollbackDeploymentParams.ts +7 -7
- package/src/generated/model/search200.ts +9 -2
- package/src/generated/model/searchDefault.ts +2 -74
- package/src/generated/model/searchParams.ts +7 -6
- package/src/generated/model/setUserPassword429.ts +23 -0
- package/src/generated/model/setUserPasswordDefault.ts +9 -0
- package/src/generated/model/setVariables200.ts +35 -0
- package/src/generated/model/setVariables200Preview.ts +20 -0
- package/src/generated/model/setVariables200Primary.ts +20 -0
- package/src/generated/model/setVariablesBody.ts +48 -0
- package/src/generated/model/setVariablesDefault.ts +162 -0
- package/src/generated/model/setVariablesKind.ts +15 -0
- package/src/generated/model/setVariablesParams.ts +23 -0
- package/src/generated/model/submitFlowStep200.ts +1 -1
- package/src/generated/model/submitFlowStep200Branding.ts +1 -1
- package/src/generated/model/submitFlowStep200StepGates.ts +22 -9
- package/src/generated/model/submitFlowStep200StepGatesChallenge.ts +30 -0
- package/src/generated/model/submitFlowStep200StepGatesConfig.ts +2 -2
- package/src/generated/model/submitFlowStep200StepGatesKind.ts +3 -4
- package/src/generated/model/submitFlowStep400.ts +885 -8
- package/src/generated/model/submitFlowStep429.ts +23 -0
- package/src/generated/model/submitFlowStepBody.ts +5 -2
- package/src/generated/model/submitFlowStepBodyGateProofs.ts +4 -1
- package/src/generated/model/submitFlowStepDefault.ts +27 -0
- package/src/generated/model/updateMyUser200.ts +76 -0
- package/src/generated/model/updateMyUser200Attributes.ts +13 -0
- package/src/generated/model/updateMyUser200Metadata.ts +44 -0
- package/src/generated/model/updateMyUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/updateMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/updateMyUser200MetadataStatus.ts +20 -0
- package/src/generated/model/updateMyUser200TeamsItem.ts +33 -0
- package/src/generated/model/updateMyUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/updateMyUser400.ts +20 -0
- package/src/generated/model/updateMyUser400Details.ts +12 -0
- package/src/generated/model/updateMyUser401.ts +20 -0
- package/src/generated/model/updateMyUser401Details.ts +12 -0
- package/src/generated/model/updateMyUser403.ts +20 -0
- package/src/generated/model/updateMyUser403Details.ts +12 -0
- package/src/generated/model/updateMyUser404.ts +23 -0
- package/src/generated/model/updateMyUser409.ts +20 -0
- package/src/generated/model/updateMyUser409Details.ts +12 -0
- package/src/generated/model/updateMyUserBody.ts +25 -0
- package/src/generated/model/updateMyUserBodyAttributes.ts +13 -0
- package/src/generated/model/updateMyUserDefault.ts +117 -0
- package/src/generated/model/updateMyUserParams.ts +26 -0
- package/src/generated/model/updateProject200.ts +96 -0
- package/src/generated/model/updateProject400.ts +20 -0
- package/src/generated/model/updateProject400Details.ts +12 -0
- package/src/generated/model/updateProject401.ts +20 -0
- package/src/generated/model/updateProject401Details.ts +12 -0
- package/src/generated/model/updateProject404.ts +20 -0
- package/src/generated/model/updateProject404Details.ts +12 -0
- package/src/generated/model/updateProjectBody.ts +19 -0
- package/src/generated/model/updateProjectBodyPasswordHash.ts +40 -0
- package/src/generated/model/updateProjectBodyPasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/updateProjectBodyPasswordHashParams.ts +44 -0
- package/src/generated/model/updateProjectBodyPasswordHashParamsHash.ts +24 -0
- package/src/generated/model/updateProjectDefault.ts +117 -0
- package/src/generated/model/updateUser200.ts +76 -0
- package/src/generated/model/updateUser200Attributes.ts +13 -0
- package/src/generated/model/updateUser200Metadata.ts +44 -0
- package/src/generated/model/updateUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/updateUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/updateUser200MetadataStatus.ts +20 -0
- package/src/generated/model/updateUser200TeamsItem.ts +33 -0
- package/src/generated/model/updateUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/updateUser400.ts +20 -0
- package/src/generated/model/updateUser400Details.ts +12 -0
- package/src/generated/model/updateUser401.ts +20 -0
- package/src/generated/model/updateUser401Details.ts +12 -0
- package/src/generated/model/updateUser403.ts +20 -0
- package/src/generated/model/updateUser403Details.ts +12 -0
- package/src/generated/model/updateUser404.ts +20 -0
- package/src/generated/model/updateUser404Details.ts +12 -0
- package/src/generated/model/updateUser409.ts +20 -0
- package/src/generated/model/updateUser409Details.ts +12 -0
- package/src/generated/model/updateUserBody.ts +53 -0
- package/src/generated/model/updateUserBodyAttributes.ts +13 -0
- package/src/generated/model/updateUserDefault.ts +117 -0
- package/src/generated/model/verifyAuthAttemptChallenge200.ts +76 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItem.ts +49 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemMethod.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +34 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemState.ts +22 -0
- package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItem.ts +28 -0
- package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItemMethod.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItemPayload.ts +37 -0
- package/src/generated/model/verifyAuthAttemptChallenge200RequiredFactorsItem.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge200State.ts +24 -0
- package/src/generated/model/verifyAuthAttemptChallenge409.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge409Details.ts +12 -0
- package/src/generated/model/verifyAuthAttemptChallenge429.ts +23 -0
- package/src/generated/model/verifyAuthAttemptChallengeBody.ts +27 -0
- package/src/generated/model/verifyAuthAttemptChallengeDefault.ts +189 -0
- package/src/generated/operations.ts +195 -106
- package/src/generated/paging.ts +17 -7
- package/src/runtime/api-factory.spec.ts +3 -3
- package/src/runtime/api-factory.ts +1 -1
- package/src/runtime/base-url.spec.ts +5 -5
- package/dist/api-factory-Durul-IL.d.mts +0 -222
- package/dist/api-factory-Durul-IL.d.mts.map +0 -1
- package/dist/api-factory-DwzqkuTV.mjs +0 -367
- package/dist/api-factory-DwzqkuTV.mjs.map +0 -1
- package/dist/fetch-BzLvdm6C.d.mts +0 -136
- package/dist/fetch-BzLvdm6C.d.mts.map +0 -1
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +0 -1
- package/dist/index-D0r_rLRr.d.mts +0 -60777
- package/dist/index-D0r_rLRr.d.mts.map +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
- package/dist/zitadelNextGen-DgKtevtj.d.mts +0 -1940
- package/dist/zitadelNextGen-DgKtevtj.d.mts.map +0 -1
- package/src/generated/model/acceptInvitation429.ts +0 -20
- package/src/generated/model/acceptInvitation429Details.ts +0 -12
- package/src/generated/model/addOrigin201.ts +0 -18
- package/src/generated/model/addOrigin201Kind.ts +0 -18
- package/src/generated/model/addOriginBody.ts +0 -35
- package/src/generated/model/addOriginBodyKind.ts +0 -19
- package/src/generated/model/addOriginDefault.ts +0 -135
- package/src/generated/model/beginUserPasskeyRegistration201.ts +0 -25
- package/src/generated/model/beginUserPasskeyRegistration201Options.ts +0 -13
- package/src/generated/model/beginUserPasskeyRegistration400.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration400Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration401.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration401Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration403.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration403Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration404.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration404Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration500.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration500Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistrationBody.ts +0 -33
- package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +0 -126
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +0 -23
- package/src/generated/model/completeClaim200.ts +0 -19
- package/src/generated/model/completeClaim400.ts +0 -20
- package/src/generated/model/completeClaim400Details.ts +0 -12
- package/src/generated/model/completeClaim401.ts +0 -23
- package/src/generated/model/completeClaim403.ts +0 -36
- package/src/generated/model/completeClaim404.ts +0 -20
- package/src/generated/model/completeClaim404Details.ts +0 -12
- package/src/generated/model/completeClaim409.ts +0 -25
- package/src/generated/model/completeClaim409Details.ts +0 -14
- package/src/generated/model/completeClaim410.ts +0 -27
- package/src/generated/model/completeClaim429.ts +0 -20
- package/src/generated/model/completeClaim429Details.ts +0 -12
- package/src/generated/model/completeClaimBody.ts +0 -18
- package/src/generated/model/completeClaimDefault.ts +0 -144
- package/src/generated/model/createApplication200.ts +0 -137
- package/src/generated/model/createApplication200ClientSecretsItem.ts +0 -19
- package/src/generated/model/createApplication201.ts +0 -137
- package/src/generated/model/createApplication201ClientSecretsItem.ts +0 -19
- package/src/generated/model/createApplication400.ts +0 -20
- package/src/generated/model/createApplication400Details.ts +0 -12
- package/src/generated/model/createApplication401.ts +0 -20
- package/src/generated/model/createApplication401Details.ts +0 -12
- package/src/generated/model/createApplication403.ts +0 -20
- package/src/generated/model/createApplication403Details.ts +0 -12
- package/src/generated/model/createApplication404.ts +0 -20
- package/src/generated/model/createApplication404Details.ts +0 -12
- package/src/generated/model/createApplication409.ts +0 -20
- package/src/generated/model/createApplication409Details.ts +0 -12
- package/src/generated/model/createApplicationBody.ts +0 -20
- package/src/generated/model/createApplicationBodyApplication.ts +0 -35
- package/src/generated/model/createApplicationBodyApplicationClientsItem.ts +0 -84
- package/src/generated/model/createApplicationBodyApplicationClientsItemGrantTypesItem.ts +0 -15
- package/src/generated/model/createApplicationBodyApplicationClientsItemType.ts +0 -19
- package/src/generated/model/createApplicationDefault.ts +0 -54
- package/src/generated/model/createApplicationParams.ts +0 -17
- package/src/generated/model/createBranding201.ts +0 -32
- package/src/generated/model/createBranding201Branding.ts +0 -80
- package/src/generated/model/createBranding201BrandingLayout.ts +0 -27
- package/src/generated/model/createBranding201BrandingShape.ts +0 -30
- package/src/generated/model/createBranding201BrandingShapeDensity.ts +0 -19
- package/src/generated/model/createBranding201BrandingTheme.ts +0 -41
- package/src/generated/model/createBranding201BrandingThemeDark.ts +0 -34
- package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +0 -210
- package/src/generated/model/createBranding201BrandingThemeLight.ts +0 -34
- package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +0 -210
- package/src/generated/model/createBranding201BrandingThemeMode.ts +0 -19
- package/src/generated/model/createBranding201BrandingTypography.ts +0 -47
- package/src/generated/model/createBranding400.ts +0 -20
- package/src/generated/model/createBranding400Details.ts +0 -12
- package/src/generated/model/createBrandingBody.ts +0 -80
- package/src/generated/model/createBrandingBodyLayout.ts +0 -27
- package/src/generated/model/createBrandingBodyShape.ts +0 -30
- package/src/generated/model/createBrandingBodyShapeDensity.ts +0 -19
- package/src/generated/model/createBrandingBodyTheme.ts +0 -41
- package/src/generated/model/createBrandingBodyThemeDark.ts +0 -34
- package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +0 -210
- package/src/generated/model/createBrandingBodyThemeLight.ts +0 -34
- package/src/generated/model/createBrandingBodyThemeLightPalette.ts +0 -210
- package/src/generated/model/createBrandingBodyThemeMode.ts +0 -19
- package/src/generated/model/createBrandingBodyTypography.ts +0 -47
- package/src/generated/model/createBrandingDefault.ts +0 -99
- package/src/generated/model/createBrandingParams.ts +0 -17
- package/src/generated/model/createFlowDefinition201.ts +0 -48
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +0 -95
- package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +0 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +0 -23
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +0 -109
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +0 -49
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +0 -29
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemComplete.ts +0 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +0 -36
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +0 -13
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +0 -25
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +0 -68
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +0 -28
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +0 -29
- package/src/generated/model/createFlowDefinition201UserSchema.ts +0 -26
- package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +0 -18
- package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +0 -84
- package/src/generated/model/createFlowDefinition400.ts +0 -20
- package/src/generated/model/createFlowDefinition400Details.ts +0 -12
- package/src/generated/model/createFlowDefinitionBody.ts +0 -45
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +0 -95
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +0 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +0 -23
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -109
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -49
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -29
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -36
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -13
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -25
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -68
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +0 -28
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +0 -29
- package/src/generated/model/createFlowDefinitionDefault.ts +0 -117
- package/src/generated/model/createHandoff200.ts +0 -30
- package/src/generated/model/createHandoff409.ts +0 -20
- package/src/generated/model/createHandoff409Details.ts +0 -12
- package/src/generated/model/createHandoffDefault.ts +0 -99
- package/src/generated/model/createIdp200.ts +0 -39
- package/src/generated/model/createIdp200Definition.ts +0 -44
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/createIdp200DefinitionOidc.ts +0 -65
- package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdp200DefinitionProtocol.ts +0 -17
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +0 -15
- package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/createIdp201.ts +0 -39
- package/src/generated/model/createIdp201Definition.ts +0 -44
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/createIdp201DefinitionOidc.ts +0 -65
- package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdp201DefinitionProtocol.ts +0 -17
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +0 -15
- package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/createIdp400.ts +0 -20
- package/src/generated/model/createIdp400Details.ts +0 -12
- package/src/generated/model/createIdp401.ts +0 -20
- package/src/generated/model/createIdp401Details.ts +0 -12
- package/src/generated/model/createIdp403.ts +0 -20
- package/src/generated/model/createIdp403Details.ts +0 -12
- package/src/generated/model/createIdp404.ts +0 -20
- package/src/generated/model/createIdp404Details.ts +0 -12
- package/src/generated/model/createIdpBody.ts +0 -15
- package/src/generated/model/createIdpBodyIdp.ts +0 -44
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +0 -12
- package/src/generated/model/createIdpBodyIdpOidc.ts +0 -65
- package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdpBodyIdpProtocol.ts +0 -17
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +0 -15
- package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +0 -15
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +0 -12
- package/src/generated/model/createIdpDefault.ts +0 -108
- package/src/generated/model/createIdpParams.ts +0 -17
- package/src/generated/model/createSchema201.ts +0 -12
- package/src/generated/model/createSchemaBody.ts +0 -86
- package/src/generated/model/createSchemaDefault.ts +0 -153
- package/src/generated/model/createSchemaParams.ts +0 -22
- package/src/generated/model/deleteTeam400.ts +0 -20
- package/src/generated/model/deleteTeam400Details.ts +0 -12
- package/src/generated/model/deleteTeam401.ts +0 -20
- package/src/generated/model/deleteTeam401Details.ts +0 -12
- package/src/generated/model/deleteTeam403.ts +0 -20
- package/src/generated/model/deleteTeam403Details.ts +0 -12
- package/src/generated/model/deleteTeam409.ts +0 -20
- package/src/generated/model/deleteTeam409Details.ts +0 -12
- package/src/generated/model/deleteTeamDefault.ts +0 -90
- package/src/generated/model/deleteUserByID401.ts +0 -20
- package/src/generated/model/deleteUserByID401Details.ts +0 -12
- package/src/generated/model/deleteUserByID404.ts +0 -20
- package/src/generated/model/deleteUserByID404Details.ts +0 -12
- package/src/generated/model/deleteUserByID409.ts +0 -20
- package/src/generated/model/deleteUserByID409Details.ts +0 -12
- package/src/generated/model/deleteUserByIDDefault.ts +0 -99
- package/src/generated/model/finishUserPasskeyRegistration201.ts +0 -19
- package/src/generated/model/finishUserPasskeyRegistration400.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration400Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration401.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration401Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration403.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration403Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration404.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration404Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration500.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration500Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistrationBody.ts +0 -21
- package/src/generated/model/finishUserPasskeyRegistrationBodyAttestation.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +0 -180
- package/src/generated/model/getApplicationById200.ts +0 -43
- package/src/generated/model/getApplicationById200Definition.ts +0 -35
- package/src/generated/model/getApplicationById200DefinitionClientsItem.ts +0 -84
- package/src/generated/model/getApplicationById200DefinitionClientsItemGrantTypesItem.ts +0 -15
- package/src/generated/model/getApplicationById200DefinitionClientsItemType.ts +0 -19
- package/src/generated/model/getApplicationById401.ts +0 -20
- package/src/generated/model/getApplicationById401Details.ts +0 -12
- package/src/generated/model/getApplicationById403.ts +0 -20
- package/src/generated/model/getApplicationById403Details.ts +0 -12
- package/src/generated/model/getApplicationById404.ts +0 -20
- package/src/generated/model/getApplicationById404Details.ts +0 -12
- package/src/generated/model/getApplicationByIdDefault.ts +0 -54
- package/src/generated/model/getApplicationByIdParams.ts +0 -17
- package/src/generated/model/getBrandingById200.ts +0 -32
- package/src/generated/model/getBrandingById200Branding.ts +0 -80
- package/src/generated/model/getBrandingById200BrandingLayout.ts +0 -27
- package/src/generated/model/getBrandingById200BrandingShape.ts +0 -30
- package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +0 -19
- package/src/generated/model/getBrandingById200BrandingTheme.ts +0 -41
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +0 -34
- package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +0 -210
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +0 -34
- package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +0 -210
- package/src/generated/model/getBrandingById200BrandingThemeMode.ts +0 -19
- package/src/generated/model/getBrandingById200BrandingTypography.ts +0 -47
- package/src/generated/model/getBrandingById404.ts +0 -20
- package/src/generated/model/getBrandingById404Details.ts +0 -12
- package/src/generated/model/getBrandingByIdDefault.ts +0 -72
- package/src/generated/model/getClaimStatus200.ts +0 -27
- package/src/generated/model/getClaimStatus401.ts +0 -20
- package/src/generated/model/getClaimStatus401Details.ts +0 -12
- package/src/generated/model/getClaimStatus403.ts +0 -23
- package/src/generated/model/getClaimStatus404.ts +0 -20
- package/src/generated/model/getClaimStatus404Details.ts +0 -12
- package/src/generated/model/getClaimStatus410.ts +0 -27
- package/src/generated/model/getClaimStatus429.ts +0 -20
- package/src/generated/model/getClaimStatus429Details.ts +0 -12
- package/src/generated/model/getClaimStatusDefault.ts +0 -99
- package/src/generated/model/getClaimStatusParams.ts +0 -15
- package/src/generated/model/getClaimWindow200.ts +0 -23
- package/src/generated/model/getClaimWindow404.ts +0 -20
- package/src/generated/model/getClaimWindow404Details.ts +0 -12
- package/src/generated/model/getClaimWindow429.ts +0 -20
- package/src/generated/model/getClaimWindow429Details.ts +0 -12
- package/src/generated/model/getClaimWindowDefault.ts +0 -36
- package/src/generated/model/getClaimWindowParams.ts +0 -15
- package/src/generated/model/getDeploymentById200.ts +0 -78
- package/src/generated/model/getDeploymentById200Kind.ts +0 -18
- package/src/generated/model/getDeploymentById200Metadata.ts +0 -35
- package/src/generated/model/getDeploymentById200MetadataDeployedByType.ts +0 -20
- package/src/generated/model/getDeploymentById200MetadataReason.ts +0 -20
- package/src/generated/model/getDeploymentById200Release.ts +0 -96
- package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +0 -43
- package/src/generated/model/getDeploymentById200ReleaseMetadataCreatedByType.ts +0 -20
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +0 -61
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +0 -28
- package/src/generated/model/getDeploymentById200Status.ts +0 -23
- package/src/generated/model/getDeploymentById200TargetsItem.ts +0 -28
- package/src/generated/model/getDeploymentByIdDefault.ts +0 -72
- package/src/generated/model/getDeploymentByIdParams.ts +0 -17
- package/src/generated/model/getDeploymentVariables200.ts +0 -17
- package/src/generated/model/getDeploymentVariablesDefault.ts +0 -90
- package/src/generated/model/getDeploymentVariablesParams.ts +0 -17
- package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +0 -23
- package/src/generated/model/getIdpById200.ts +0 -39
- package/src/generated/model/getIdpById200Definition.ts +0 -44
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/getIdpById200DefinitionOidc.ts +0 -65
- package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/getIdpById200DefinitionProtocol.ts +0 -17
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +0 -15
- package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/getIdpById401.ts +0 -20
- package/src/generated/model/getIdpById401Details.ts +0 -12
- package/src/generated/model/getIdpById403.ts +0 -20
- package/src/generated/model/getIdpById403Details.ts +0 -12
- package/src/generated/model/getIdpById404.ts +0 -20
- package/src/generated/model/getIdpById404Details.ts +0 -12
- package/src/generated/model/getIdpByIdDefault.ts +0 -72
- package/src/generated/model/getIdpByIdParams.ts +0 -17
- package/src/generated/model/getIdpRevisionById200.ts +0 -39
- package/src/generated/model/getIdpRevisionById200Definition.ts +0 -44
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +0 -65
- package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +0 -17
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +0 -15
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/getIdpRevisionById401.ts +0 -20
- package/src/generated/model/getIdpRevisionById401Details.ts +0 -12
- package/src/generated/model/getIdpRevisionById403.ts +0 -20
- package/src/generated/model/getIdpRevisionById403Details.ts +0 -12
- package/src/generated/model/getIdpRevisionById404.ts +0 -20
- package/src/generated/model/getIdpRevisionById404Details.ts +0 -12
- package/src/generated/model/getIdpRevisionByIdDefault.ts +0 -72
- package/src/generated/model/getIdpRevisionByIdParams.ts +0 -17
- package/src/generated/model/getReleaseById200.ts +0 -96
- package/src/generated/model/getReleaseById200Metadata.ts +0 -43
- package/src/generated/model/getReleaseById200MetadataCreatedByType.ts +0 -20
- package/src/generated/model/getReleaseById200PointersItem.ts +0 -61
- package/src/generated/model/getReleaseById200PointersItemKind.ts +0 -28
- package/src/generated/model/getReleaseByIdDefault.ts +0 -72
- package/src/generated/model/getReleaseByIdParams.ts +0 -17
- package/src/generated/model/getSchemaById200.ts +0 -31
- package/src/generated/model/getSchemaById200Metadata.ts +0 -18
- package/src/generated/model/getSchemaById200Schema.ts +0 -84
- package/src/generated/model/getSchemaByIdDefault.ts +0 -72
- package/src/generated/model/getSchemaByIdParams.ts +0 -21
- package/src/generated/model/getUserByID200.ts +0 -76
- package/src/generated/model/getUserByID200Attributes.ts +0 -13
- package/src/generated/model/getUserByID200Metadata.ts +0 -44
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +0 -43
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +0 -21
- package/src/generated/model/getUserByID200MetadataStatus.ts +0 -20
- package/src/generated/model/getUserByID200TeamsItem.ts +0 -33
- package/src/generated/model/getUserByID200TeamsItemMembershipStatus.ts +0 -20
- package/src/generated/model/getUserByID401.ts +0 -20
- package/src/generated/model/getUserByID401Details.ts +0 -12
- package/src/generated/model/getUserByID404.ts +0 -20
- package/src/generated/model/getUserByID404Details.ts +0 -12
- package/src/generated/model/getUserByIDDefault.ts +0 -72
- package/src/generated/model/getUserByIDParams.ts +0 -31
- package/src/generated/model/getVariables200.ts +0 -35
- package/src/generated/model/getVariables200Preview.ts +0 -20
- package/src/generated/model/getVariables200Primary.ts +0 -20
- package/src/generated/model/getVariablesDefault.ts +0 -72
- package/src/generated/model/getVariablesKind.ts +0 -15
- package/src/generated/model/getVariablesParams.ts +0 -23
- package/src/generated/model/initClaim201.ts +0 -25
- package/src/generated/model/initClaim401.ts +0 -20
- package/src/generated/model/initClaim401Details.ts +0 -12
- package/src/generated/model/initClaim404.ts +0 -23
- package/src/generated/model/initClaim409.ts +0 -25
- package/src/generated/model/initClaim409Details.ts +0 -14
- package/src/generated/model/initClaim410.ts +0 -23
- package/src/generated/model/initClaimDefault.ts +0 -99
- package/src/generated/model/issueChallenge201.ts +0 -49
- package/src/generated/model/issueChallenge201Method.ts +0 -20
- package/src/generated/model/issueChallenge201Payload.ts +0 -34
- package/src/generated/model/issueChallenge201State.ts +0 -22
- package/src/generated/model/issueChallengeBody.ts +0 -28
- package/src/generated/model/issueChallengeBodyMethod.ts +0 -20
- package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +0 -19
- package/src/generated/model/issueChallengeBodyPasskeyOptionsUserVerification.ts +0 -16
- package/src/generated/model/issueChallengeDefault.ts +0 -90
- package/src/generated/model/listBranding200Item.ts +0 -14
- package/src/generated/model/listEvents200DataItem.ts +0 -4366
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +0 -23
- package/src/generated/model/listInvitationsStatus.ts +0 -17
- package/src/generated/model/listPreviews200.ts +0 -20
- package/src/generated/model/listPreviews200PreviewsItem.ts +0 -37
- package/src/generated/model/listPreviewsDefault.ts +0 -72
- package/src/generated/model/listPreviewsParams.ts +0 -23
- package/src/generated/model/lookupInvitation429.ts +0 -20
- package/src/generated/model/lookupInvitation429Details.ts +0 -12
- package/src/generated/model/patchMyUser200.ts +0 -76
- package/src/generated/model/patchMyUser200Attributes.ts +0 -13
- package/src/generated/model/patchMyUser200Metadata.ts +0 -44
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +0 -43
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +0 -21
- package/src/generated/model/patchMyUser200MetadataStatus.ts +0 -20
- package/src/generated/model/patchMyUser200TeamsItem.ts +0 -33
- package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +0 -20
- package/src/generated/model/patchMyUser400.ts +0 -20
- package/src/generated/model/patchMyUser400Details.ts +0 -12
- package/src/generated/model/patchMyUser401.ts +0 -20
- package/src/generated/model/patchMyUser401Details.ts +0 -12
- package/src/generated/model/patchMyUser403.ts +0 -20
- package/src/generated/model/patchMyUser403Details.ts +0 -12
- package/src/generated/model/patchMyUser404.ts +0 -23
- package/src/generated/model/patchMyUser409.ts +0 -20
- package/src/generated/model/patchMyUser409Details.ts +0 -12
- package/src/generated/model/patchMyUserBody.ts +0 -25
- package/src/generated/model/patchMyUserBodyAttributes.ts +0 -13
- package/src/generated/model/patchMyUserDefault.ts +0 -117
- package/src/generated/model/patchMyUserParams.ts +0 -26
- package/src/generated/model/patchProject200.ts +0 -96
- package/src/generated/model/patchProject400.ts +0 -20
- package/src/generated/model/patchProject400Details.ts +0 -12
- package/src/generated/model/patchProject401.ts +0 -20
- package/src/generated/model/patchProject401Details.ts +0 -12
- package/src/generated/model/patchProject404.ts +0 -20
- package/src/generated/model/patchProject404Details.ts +0 -12
- package/src/generated/model/patchProjectBody.ts +0 -19
- package/src/generated/model/patchProjectBodyPasswordHash.ts +0 -40
- package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +0 -24
- package/src/generated/model/patchProjectBodyPasswordHashParams.ts +0 -44
- package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +0 -24
- package/src/generated/model/patchProjectDefault.ts +0 -117
- package/src/generated/model/patchUserByID200.ts +0 -76
- package/src/generated/model/patchUserByID200Attributes.ts +0 -13
- package/src/generated/model/patchUserByID200Metadata.ts +0 -44
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +0 -43
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +0 -21
- package/src/generated/model/patchUserByID200MetadataStatus.ts +0 -20
- package/src/generated/model/patchUserByID200TeamsItem.ts +0 -33
- package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +0 -20
- package/src/generated/model/patchUserByID400.ts +0 -20
- package/src/generated/model/patchUserByID400Details.ts +0 -12
- package/src/generated/model/patchUserByID401.ts +0 -20
- package/src/generated/model/patchUserByID401Details.ts +0 -12
- package/src/generated/model/patchUserByID403.ts +0 -20
- package/src/generated/model/patchUserByID403Details.ts +0 -12
- package/src/generated/model/patchUserByID404.ts +0 -20
- package/src/generated/model/patchUserByID404Details.ts +0 -12
- package/src/generated/model/patchUserByID409.ts +0 -20
- package/src/generated/model/patchUserByID409Details.ts +0 -12
- package/src/generated/model/patchUserByIDBody.ts +0 -53
- package/src/generated/model/patchUserByIDBodyAttributes.ts +0 -13
- package/src/generated/model/patchUserByIDDefault.ts +0 -117
- package/src/generated/model/rejectInvitation429.ts +0 -20
- package/src/generated/model/rejectInvitation429Details.ts +0 -12
- package/src/generated/model/removeOriginBody.ts +0 -15
- package/src/generated/model/removeOriginDefault.ts +0 -108
- package/src/generated/model/removePreviewBody.ts +0 -23
- package/src/generated/model/removePreviewDefault.ts +0 -90
- package/src/generated/model/submitFlowStep400Branding.ts +0 -80
- package/src/generated/model/submitFlowStep400BrandingLayout.ts +0 -27
- package/src/generated/model/submitFlowStep400BrandingShape.ts +0 -30
- package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +0 -19
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +0 -41
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +0 -34
- package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +0 -210
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +0 -34
- package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +0 -210
- package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +0 -19
- package/src/generated/model/submitFlowStep400BrandingTypography.ts +0 -47
- package/src/generated/model/submitFlowStep400Step.ts +0 -142
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +0 -41
- package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +0 -27
- package/src/generated/model/submitFlowStep400StepChallenge.ts +0 -36
- package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +0 -18
- package/src/generated/model/submitFlowStep400StepChallengeOptions.ts +0 -15
- package/src/generated/model/submitFlowStep400StepComplete.ts +0 -20
- package/src/generated/model/submitFlowStep400StepFieldsItem.ts +0 -87
- package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +0 -34
- package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +0 -46
- package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +0 -24
- package/src/generated/model/submitFlowStep400StepGates.ts +0 -36
- package/src/generated/model/submitFlowStep400StepGatesConfig.ts +0 -13
- package/src/generated/model/submitFlowStep400StepGatesKind.ts +0 -20
- package/src/generated/model/submitFlowStep400StepIdentifier.ts +0 -58
- package/src/generated/model/submitFlowStep400StepPurpose.ts +0 -26
- package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +0 -19
- package/src/generated/model/submitFlowStep400StepTexts.ts +0 -23
- package/src/generated/model/updateVariables200.ts +0 -35
- package/src/generated/model/updateVariables200Preview.ts +0 -20
- package/src/generated/model/updateVariables200Primary.ts +0 -20
- package/src/generated/model/updateVariablesBody.ts +0 -48
- package/src/generated/model/updateVariablesDefault.ts +0 -162
- package/src/generated/model/updateVariablesKind.ts +0 -15
- package/src/generated/model/updateVariablesParams.ts +0 -23
- package/src/generated/model/verifyChallengeProof200.ts +0 -76
- package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +0 -49
- package/src/generated/model/verifyChallengeProof200ChallengesItemMethod.ts +0 -20
- package/src/generated/model/verifyChallengeProof200ChallengesItemPayload.ts +0 -34
- package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +0 -22
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +0 -28
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemMethod.ts +0 -20
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +0 -37
- package/src/generated/model/verifyChallengeProof200RequiredFactorsItem.ts +0 -20
- package/src/generated/model/verifyChallengeProof200State.ts +0 -24
- package/src/generated/model/verifyChallengeProof409.ts +0 -20
- package/src/generated/model/verifyChallengeProof409Details.ts +0 -12
- package/src/generated/model/verifyChallengeProofBody.ts +0 -27
- package/src/generated/model/verifyChallengeProofDefault.ts +0 -180
|
@@ -12,54 +12,41 @@ import {
|
|
|
12
12
|
import type {
|
|
13
13
|
AcceptInvitation200,
|
|
14
14
|
AcceptInvitationBody,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
BeginUserPasskeyRegistration201,
|
|
18
|
-
BeginUserPasskeyRegistrationBody,
|
|
15
|
+
AddProjectOrigin201,
|
|
16
|
+
AddProjectOriginBody,
|
|
19
17
|
BuildRelease200,
|
|
20
18
|
BuildRelease201,
|
|
21
19
|
BuildReleaseBody,
|
|
22
20
|
BuildReleaseParams,
|
|
23
21
|
CancelInvitationParams,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
CreateApplicationBody,
|
|
29
|
-
CreateApplicationParams,
|
|
22
|
+
CompleteProjectClaim200,
|
|
23
|
+
CompleteProjectClaimBody,
|
|
24
|
+
CompleteUserPasskeyRegistration201,
|
|
25
|
+
CompleteUserPasskeyRegistrationBody,
|
|
30
26
|
CreateAuthAttempt201,
|
|
31
27
|
CreateAuthAttemptBody,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
CreateAuthAttemptChallenge201,
|
|
29
|
+
CreateAuthAttemptChallengeBody,
|
|
30
|
+
CreateAuthAttemptHandoff200,
|
|
35
31
|
CreateDeployment200,
|
|
36
32
|
CreateDeployment201,
|
|
37
33
|
CreateDeploymentBody,
|
|
38
34
|
CreateDeploymentParams,
|
|
39
35
|
CreateFlow201,
|
|
40
36
|
CreateFlowBody,
|
|
41
|
-
CreateFlowDefinition201,
|
|
42
|
-
CreateFlowDefinitionBody,
|
|
43
37
|
CreateGrant201,
|
|
44
38
|
CreateGrantBody,
|
|
45
39
|
CreateGrantParams,
|
|
46
|
-
CreateHandoff200,
|
|
47
|
-
CreateIdp200,
|
|
48
|
-
CreateIdp201,
|
|
49
|
-
CreateIdpBody,
|
|
50
|
-
CreateIdpParams,
|
|
51
40
|
CreateInvitation201,
|
|
52
41
|
CreateInvitationBody,
|
|
53
42
|
CreateInvitationParams,
|
|
54
43
|
CreateProject201,
|
|
55
44
|
CreateProjectBody,
|
|
45
|
+
CreateProjectClaim201,
|
|
56
46
|
CreateRelease200,
|
|
57
47
|
CreateRelease201,
|
|
58
48
|
CreateReleaseBody,
|
|
59
49
|
CreateReleaseParams,
|
|
60
|
-
CreateSchema201,
|
|
61
|
-
CreateSchemaBody,
|
|
62
|
-
CreateSchemaParams,
|
|
63
50
|
CreateSession201,
|
|
64
51
|
CreateSessionBody,
|
|
65
52
|
CreateTeam201,
|
|
@@ -68,6 +55,8 @@ import type {
|
|
|
68
55
|
CreateUser201,
|
|
69
56
|
CreateUserBody,
|
|
70
57
|
CreateUserParams,
|
|
58
|
+
CreateUserPasskeyRegistration201,
|
|
59
|
+
CreateUserPasskeyRegistrationBody,
|
|
71
60
|
DeleteGrantParams,
|
|
72
61
|
DeleteVariableParams,
|
|
73
62
|
EvaluatePolicy200,
|
|
@@ -76,30 +65,22 @@ import type {
|
|
|
76
65
|
ExchangeHandoff200,
|
|
77
66
|
ExchangeHandoffBody,
|
|
78
67
|
ExchangeHandoffParams,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
GetApplicationById200,
|
|
82
|
-
GetApplicationByIdParams,
|
|
68
|
+
GetApplication200,
|
|
69
|
+
GetApplicationParams,
|
|
83
70
|
GetAuthAttempt200,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
GetClaimWindow200,
|
|
88
|
-
GetClaimWindowParams,
|
|
89
|
-
GetDeploymentById200,
|
|
90
|
-
GetDeploymentByIdParams,
|
|
91
|
-
GetDeploymentVariables200,
|
|
92
|
-
GetDeploymentVariablesParams,
|
|
71
|
+
GetBranding200,
|
|
72
|
+
GetDeployment200,
|
|
73
|
+
GetDeploymentParams,
|
|
93
74
|
GetEvent200,
|
|
94
75
|
GetEventParams,
|
|
95
76
|
GetFlowDefinition200,
|
|
96
77
|
GetFlowStep200,
|
|
97
78
|
GetGrant200,
|
|
98
79
|
GetGrantParams,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
GetIdp200,
|
|
81
|
+
GetIdpParams,
|
|
82
|
+
GetIdpRevision200,
|
|
83
|
+
GetIdpRevisionParams,
|
|
103
84
|
GetInvitation200,
|
|
104
85
|
GetInvitationParams,
|
|
105
86
|
GetLiveDefault,
|
|
@@ -113,30 +94,32 @@ import type {
|
|
|
113
94
|
GetMyUserParams,
|
|
114
95
|
GetMyUserSchema200,
|
|
115
96
|
GetMyUserSchemaParams,
|
|
97
|
+
GetOAuthSettings200,
|
|
116
98
|
GetPolicy200,
|
|
117
99
|
GetPolicyParams,
|
|
118
100
|
GetPolicyRevision200,
|
|
119
101
|
GetPolicyRevisionParams,
|
|
120
102
|
GetProject200,
|
|
103
|
+
GetProjectClaimStatus200,
|
|
104
|
+
GetProjectClaimStatusParams,
|
|
105
|
+
GetProjectClaimWindow200,
|
|
106
|
+
GetProjectClaimWindowParams,
|
|
121
107
|
GetReadyDefault,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
108
|
+
GetRelease200,
|
|
109
|
+
GetReleaseParams,
|
|
110
|
+
GetSchema200,
|
|
111
|
+
GetSchemaParams,
|
|
126
112
|
GetSession200,
|
|
127
113
|
GetTeam200,
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
GetUser200,
|
|
115
|
+
GetUserParams,
|
|
130
116
|
GetUserPasswordState200,
|
|
131
117
|
GetVariable200,
|
|
132
118
|
GetVariableParams,
|
|
133
|
-
|
|
134
|
-
GetVariablesParams,
|
|
135
|
-
InitClaim201,
|
|
136
|
-
IssueChallenge201,
|
|
137
|
-
IssueChallengeBody,
|
|
138
|
-
ListBranding200Item,
|
|
119
|
+
ListBranding200,
|
|
139
120
|
ListBrandingParams,
|
|
121
|
+
ListDeploymentVariables200,
|
|
122
|
+
ListDeploymentVariablesParams,
|
|
140
123
|
ListDeployments200,
|
|
141
124
|
ListDeploymentsParams,
|
|
142
125
|
ListEvents200,
|
|
@@ -159,10 +142,12 @@ import type {
|
|
|
159
142
|
ListPoliciesParams,
|
|
160
143
|
ListPolicyRevisions200,
|
|
161
144
|
ListPolicyRevisionsParams,
|
|
162
|
-
ListPreviews200,
|
|
163
|
-
ListPreviewsParams,
|
|
164
145
|
ListProjectAdmins200,
|
|
165
146
|
ListProjectAdminsParams,
|
|
147
|
+
ListProjectMembers200,
|
|
148
|
+
ListProjectMembersParams,
|
|
149
|
+
ListProjectPreviews200,
|
|
150
|
+
ListProjectPreviewsParams,
|
|
166
151
|
ListReleases200,
|
|
167
152
|
ListReleasesParams,
|
|
168
153
|
ListSchemas200,
|
|
@@ -173,18 +158,29 @@ import type {
|
|
|
173
158
|
ListUserPasskeysParams,
|
|
174
159
|
ListUserTeams200,
|
|
175
160
|
ListUserTeamsParams,
|
|
161
|
+
ListVariables200,
|
|
162
|
+
ListVariablesParams,
|
|
176
163
|
LookupInvitation200,
|
|
177
164
|
LookupInvitationBody,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
165
|
+
PublishApplication200,
|
|
166
|
+
PublishApplication201,
|
|
167
|
+
PublishApplicationBody,
|
|
168
|
+
PublishApplicationParams,
|
|
169
|
+
PublishBranding201,
|
|
170
|
+
PublishBrandingBody,
|
|
171
|
+
PublishBrandingParams,
|
|
172
|
+
PublishFlowDefinition201,
|
|
173
|
+
PublishFlowDefinitionBody,
|
|
174
|
+
PublishIdp200,
|
|
175
|
+
PublishIdp201,
|
|
176
|
+
PublishIdpBody,
|
|
177
|
+
PublishIdpParams,
|
|
185
178
|
PublishPolicy201,
|
|
186
179
|
PublishPolicyBody,
|
|
187
180
|
PublishPolicyParams,
|
|
181
|
+
PublishSchema201,
|
|
182
|
+
PublishSchemaBody,
|
|
183
|
+
PublishSchemaParams,
|
|
188
184
|
QueryGrants200,
|
|
189
185
|
QueryGrantsBody,
|
|
190
186
|
QueryGrantsParams,
|
|
@@ -204,8 +200,8 @@ import type {
|
|
|
204
200
|
QueryUsersParams,
|
|
205
201
|
RejectInvitation200,
|
|
206
202
|
RejectInvitationBody,
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
RemoveProjectOriginBody,
|
|
204
|
+
RemoveProjectPreviewBody,
|
|
209
205
|
RevokeMySessionParams,
|
|
210
206
|
RevokeRelease200,
|
|
211
207
|
RevokeReleaseParams,
|
|
@@ -217,19 +213,46 @@ import type {
|
|
|
217
213
|
SearchBody,
|
|
218
214
|
SearchParams,
|
|
219
215
|
SetUserPasswordBody,
|
|
216
|
+
SetVariables200,
|
|
217
|
+
SetVariablesBody,
|
|
218
|
+
SetVariablesParams,
|
|
220
219
|
SubmitFlowStep200,
|
|
221
220
|
SubmitFlowStepBody,
|
|
221
|
+
UpdateMyUser200,
|
|
222
|
+
UpdateMyUserBody,
|
|
223
|
+
UpdateMyUserParams,
|
|
224
|
+
UpdateProject200,
|
|
225
|
+
UpdateProjectBody,
|
|
222
226
|
UpdateTeam200,
|
|
223
227
|
UpdateTeamBody,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
VerifyChallengeProofBody
|
|
228
|
+
UpdateUser200,
|
|
229
|
+
UpdateUserBody,
|
|
230
|
+
VerifyAuthAttemptChallenge200,
|
|
231
|
+
VerifyAuthAttemptChallengeBody
|
|
229
232
|
} from '../model';
|
|
230
233
|
|
|
231
234
|
import { customFetch } from '../../runtime/fetch.ts';
|
|
232
235
|
|
|
236
|
+
const getHeaders = (...sources: (RequestInit['headers'] | Record<string, string | undefined>)[]) => {
|
|
237
|
+
const seen = new Set<string>();
|
|
238
|
+
const layers: [string, string | readonly string[]][][] = [];
|
|
239
|
+
for (const source of sources.reverse()) {
|
|
240
|
+
if (!source) continue;
|
|
241
|
+
const entries = source instanceof Headers
|
|
242
|
+
? source.entries()
|
|
243
|
+
: Symbol.iterator in source
|
|
244
|
+
? Array.from(source as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string])
|
|
245
|
+
: Object.entries<string | readonly string[] | undefined>(source);
|
|
246
|
+
const layer: [string, string | readonly string[]][] = [];
|
|
247
|
+
for (const [name, value] of entries) {
|
|
248
|
+
if (value !== undefined && !seen.has(name.toLowerCase())) layer.push([name, value]);
|
|
249
|
+
}
|
|
250
|
+
for (const [name] of layer) seen.add(name.toLowerCase());
|
|
251
|
+
layers.push(layer);
|
|
252
|
+
}
|
|
253
|
+
return Object.fromEntries(layers.reverse().flat()) as Extract<RequestInit['headers'], Record<string, unknown>>;
|
|
254
|
+
};
|
|
255
|
+
|
|
233
256
|
export const getGetLiveUrl = () => {
|
|
234
257
|
|
|
235
258
|
|
|
@@ -313,7 +336,7 @@ export const getCreateUserUrl = (params: CreateUserParams,) => {
|
|
|
313
336
|
* Creates a user whose attributes satisfy the user schema named in the request.
|
|
314
337
|
*
|
|
315
338
|
* The server assigns the user's ID and returns it. `schema` is the `id` of a
|
|
316
|
-
* schema, as `
|
|
339
|
+
* schema, as `publishSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
|
|
317
340
|
* `team_id`, the user also becomes an active member of that team. A value the
|
|
318
341
|
* schema marks unique that another user already holds is refused with `409`;
|
|
319
342
|
* send a different value.
|
|
@@ -322,25 +345,11 @@ export const getCreateUserUrl = (params: CreateUserParams,) => {
|
|
|
322
345
|
export const createUser = async (createUserBody: CreateUserBody,
|
|
323
346
|
params: CreateUserParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateUser201> => {
|
|
324
347
|
|
|
325
|
-
|
|
326
|
-
if (!h) return {};
|
|
327
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
328
|
-
if (Symbol.iterator in h) {
|
|
329
|
-
return Object.fromEntries(
|
|
330
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
334
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
335
|
-
if (value !== undefined) headers[name] = value;
|
|
336
|
-
}
|
|
337
|
-
return headers;
|
|
338
|
-
};
|
|
339
|
-
return customFetch<CreateUser201>(getCreateUserUrl(params),
|
|
348
|
+
return customFetch<CreateUser201>(getCreateUserUrl(params),
|
|
340
349
|
{
|
|
341
350
|
...options,
|
|
342
351
|
method: 'POST',
|
|
343
|
-
headers: { 'Content-Type': 'application/json',
|
|
352
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
344
353
|
body: JSON.stringify(createUserBody)
|
|
345
354
|
}
|
|
346
355
|
);}
|
|
@@ -382,33 +391,19 @@ export const getQueryUsersUrl = (params?: QueryUsersParams,) => {
|
|
|
382
391
|
export const queryUsers = async (queryUsersBody: QueryUsersBody,
|
|
383
392
|
params?: QueryUsersParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryUsers200> => {
|
|
384
393
|
|
|
385
|
-
|
|
386
|
-
if (!h) return {};
|
|
387
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
388
|
-
if (Symbol.iterator in h) {
|
|
389
|
-
return Object.fromEntries(
|
|
390
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
391
|
-
);
|
|
392
|
-
}
|
|
393
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
394
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
395
|
-
if (value !== undefined) headers[name] = value;
|
|
396
|
-
}
|
|
397
|
-
return headers;
|
|
398
|
-
};
|
|
399
|
-
return customFetch<QueryUsers200>(getQueryUsersUrl(params),
|
|
394
|
+
return customFetch<QueryUsers200>(getQueryUsersUrl(params),
|
|
400
395
|
{
|
|
401
396
|
...options,
|
|
402
397
|
method: 'POST',
|
|
403
|
-
headers: { 'Content-Type': 'application/json',
|
|
398
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
404
399
|
body: JSON.stringify(queryUsersBody)
|
|
405
400
|
}
|
|
406
401
|
);}
|
|
407
402
|
|
|
408
403
|
|
|
409
404
|
|
|
410
|
-
export const
|
|
411
|
-
params?:
|
|
405
|
+
export const getGetUserUrl = (userId: string,
|
|
406
|
+
params?: GetUserParams,) => {
|
|
412
407
|
const normalizedParams = new URLSearchParams();
|
|
413
408
|
|
|
414
409
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -430,10 +425,10 @@ export const getGetUserByIDUrl = (userId: string,
|
|
|
430
425
|
* of that team.
|
|
431
426
|
* @summary Get a user by ID
|
|
432
427
|
*/
|
|
433
|
-
export const
|
|
434
|
-
params?:
|
|
428
|
+
export const getUser = async (userId: string,
|
|
429
|
+
params?: GetUserParams, options?: Parameters<typeof customFetch>[1]): Promise<GetUser200> => {
|
|
435
430
|
|
|
436
|
-
return customFetch<
|
|
431
|
+
return customFetch<GetUser200>(getGetUserUrl(userId,params),
|
|
437
432
|
{
|
|
438
433
|
...options,
|
|
439
434
|
method: 'GET'
|
|
@@ -444,7 +439,7 @@ export const getUserByID = async (userId: string,
|
|
|
444
439
|
|
|
445
440
|
|
|
446
441
|
|
|
447
|
-
export const
|
|
442
|
+
export const getUpdateUserUrl = (userId: string,) => {
|
|
448
443
|
|
|
449
444
|
|
|
450
445
|
|
|
@@ -459,7 +454,7 @@ export const getPatchUserByIDUrl = (userId: string,) => {
|
|
|
459
454
|
* last-write-wins.
|
|
460
455
|
*
|
|
461
456
|
* To move the user, send `schema` with the `id` of a registered schema, as
|
|
462
|
-
* `
|
|
457
|
+
* `publishSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
|
|
463
458
|
*
|
|
464
459
|
* To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
|
|
465
460
|
* the same permission and answers the same status and `details` as the real
|
|
@@ -472,35 +467,21 @@ export const getPatchUserByIDUrl = (userId: string,) => {
|
|
|
472
467
|
* request as malformed (`400 req.invalid`) instead of applying the patch.
|
|
473
468
|
* @summary Update a user by ID
|
|
474
469
|
*/
|
|
475
|
-
export const
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
if (!h) return {};
|
|
480
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
481
|
-
if (Symbol.iterator in h) {
|
|
482
|
-
return Object.fromEntries(
|
|
483
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
484
|
-
);
|
|
485
|
-
}
|
|
486
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
487
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
488
|
-
if (value !== undefined) headers[name] = value;
|
|
489
|
-
}
|
|
490
|
-
return headers;
|
|
491
|
-
};
|
|
492
|
-
return customFetch<PatchUserByID200>(getPatchUserByIDUrl(userId),
|
|
470
|
+
export const updateUser = async (userId: string,
|
|
471
|
+
updateUserBody: UpdateUserBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateUser200> => {
|
|
472
|
+
|
|
473
|
+
return customFetch<UpdateUser200>(getUpdateUserUrl(userId),
|
|
493
474
|
{
|
|
494
475
|
...options,
|
|
495
476
|
method: 'PATCH',
|
|
496
|
-
headers: { 'Content-Type': 'application/json',
|
|
497
|
-
body: JSON.stringify(
|
|
477
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
478
|
+
body: JSON.stringify(updateUserBody)
|
|
498
479
|
}
|
|
499
480
|
);}
|
|
500
481
|
|
|
501
482
|
|
|
502
483
|
|
|
503
|
-
export const
|
|
484
|
+
export const getDeleteUserUrl = (userId: string,) => {
|
|
504
485
|
|
|
505
486
|
|
|
506
487
|
|
|
@@ -520,9 +501,9 @@ export const getDeleteUserByIDUrl = (userId: string,) => {
|
|
|
520
501
|
* nothing.
|
|
521
502
|
* @summary Delete a user by ID
|
|
522
503
|
*/
|
|
523
|
-
export const
|
|
504
|
+
export const deleteUser = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
524
505
|
|
|
525
|
-
return customFetch<void>(
|
|
506
|
+
return customFetch<void>(getDeleteUserUrl(userId),
|
|
526
507
|
{
|
|
527
508
|
...options,
|
|
528
509
|
method: 'DELETE'
|
|
@@ -608,7 +589,7 @@ export const listUserPasskeys = async (userId: string,
|
|
|
608
589
|
|
|
609
590
|
|
|
610
591
|
|
|
611
|
-
export const
|
|
592
|
+
export const getCreateUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
612
593
|
|
|
613
594
|
|
|
614
595
|
|
|
@@ -620,7 +601,7 @@ export const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
|
620
601
|
* Starts a WebAuthn registration ceremony for the user and returns the
|
|
621
602
|
* creation options for `navigator.credentials.create()`. A passkey is
|
|
622
603
|
* registered in two steps: this one returns options for the browser, and
|
|
623
|
-
* `
|
|
604
|
+
* `completeUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
|
|
624
605
|
*
|
|
625
606
|
* Complete the ceremony with
|
|
626
607
|
* `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
|
|
@@ -628,35 +609,21 @@ export const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
|
628
609
|
* already registered for the user are excluded automatically.
|
|
629
610
|
* @summary Begin a passkey registration
|
|
630
611
|
*/
|
|
631
|
-
export const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
if (!h) return {};
|
|
636
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
637
|
-
if (Symbol.iterator in h) {
|
|
638
|
-
return Object.fromEntries(
|
|
639
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
643
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
644
|
-
if (value !== undefined) headers[name] = value;
|
|
645
|
-
}
|
|
646
|
-
return headers;
|
|
647
|
-
};
|
|
648
|
-
return customFetch<BeginUserPasskeyRegistration201>(getBeginUserPasskeyRegistrationUrl(userId),
|
|
612
|
+
export const createUserPasskeyRegistration = async (userId: string,
|
|
613
|
+
createUserPasskeyRegistrationBody: CreateUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateUserPasskeyRegistration201> => {
|
|
614
|
+
|
|
615
|
+
return customFetch<CreateUserPasskeyRegistration201>(getCreateUserPasskeyRegistrationUrl(userId),
|
|
649
616
|
{
|
|
650
617
|
...options,
|
|
651
618
|
method: 'POST',
|
|
652
|
-
headers: { 'Content-Type': 'application/json',
|
|
653
|
-
body: JSON.stringify(
|
|
619
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
620
|
+
body: JSON.stringify(createUserPasskeyRegistrationBody)
|
|
654
621
|
}
|
|
655
622
|
);}
|
|
656
623
|
|
|
657
624
|
|
|
658
625
|
|
|
659
|
-
export const
|
|
626
|
+
export const getCompleteUserPasskeyRegistrationUrl = (userId: string,
|
|
660
627
|
registrationId: string,) => {
|
|
661
628
|
|
|
662
629
|
|
|
@@ -668,7 +635,7 @@ export const getFinishUserPasskeyRegistrationUrl = (userId: string,
|
|
|
668
635
|
/**
|
|
669
636
|
* Verifies the attestation against the registration ceremony and stores
|
|
670
637
|
* the new passkey for the user. `registration_id` is the one that
|
|
671
|
-
* `
|
|
638
|
+
* `createUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
|
|
672
639
|
* returned when it started the ceremony. The attestation is
|
|
673
640
|
* the browser's answer from `navigator.credentials.create()`.
|
|
674
641
|
*
|
|
@@ -677,30 +644,16 @@ export const getFinishUserPasskeyRegistrationUrl = (userId: string,
|
|
|
677
644
|
* already-consumed registration ID answers `att.not_found`.
|
|
678
645
|
* @summary Finish a passkey registration
|
|
679
646
|
*/
|
|
680
|
-
export const
|
|
647
|
+
export const completeUserPasskeyRegistration = async (userId: string,
|
|
681
648
|
registrationId: string,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
if (!h) return {};
|
|
686
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
687
|
-
if (Symbol.iterator in h) {
|
|
688
|
-
return Object.fromEntries(
|
|
689
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
693
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
694
|
-
if (value !== undefined) headers[name] = value;
|
|
695
|
-
}
|
|
696
|
-
return headers;
|
|
697
|
-
};
|
|
698
|
-
return customFetch<FinishUserPasskeyRegistration201>(getFinishUserPasskeyRegistrationUrl(userId,registrationId),
|
|
649
|
+
completeUserPasskeyRegistrationBody: CompleteUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<CompleteUserPasskeyRegistration201> => {
|
|
650
|
+
|
|
651
|
+
return customFetch<CompleteUserPasskeyRegistration201>(getCompleteUserPasskeyRegistrationUrl(userId,registrationId),
|
|
699
652
|
{
|
|
700
653
|
...options,
|
|
701
654
|
method: 'POST',
|
|
702
|
-
headers: { 'Content-Type': 'application/json',
|
|
703
|
-
body: JSON.stringify(
|
|
655
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
656
|
+
body: JSON.stringify(completeUserPasskeyRegistrationBody)
|
|
704
657
|
}
|
|
705
658
|
);}
|
|
706
659
|
|
|
@@ -751,7 +704,7 @@ export const getSetUserPasswordUrl = (userId: string,) => {
|
|
|
751
704
|
* policy.
|
|
752
705
|
*
|
|
753
706
|
* The password policy is the one in the release that serves the caller's
|
|
754
|
-
* `Origin`, chosen as `createFlow` (`POST /
|
|
707
|
+
* `Origin`, chosen as `createFlow` (`POST /flows`) chooses it. A frontend on a
|
|
755
708
|
* preview URL gets that preview's policy, and one on a primary origin the
|
|
756
709
|
* newest primary deployment's. A request with no `Origin`, or from the
|
|
757
710
|
* console when the project does not list the console's origin, gets the
|
|
@@ -772,25 +725,11 @@ export const getSetUserPasswordUrl = (userId: string,) => {
|
|
|
772
725
|
export const setUserPassword = async (userId: string,
|
|
773
726
|
setUserPasswordBody: SetUserPasswordBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
774
727
|
|
|
775
|
-
|
|
776
|
-
if (!h) return {};
|
|
777
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
778
|
-
if (Symbol.iterator in h) {
|
|
779
|
-
return Object.fromEntries(
|
|
780
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
781
|
-
);
|
|
782
|
-
}
|
|
783
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
784
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
785
|
-
if (value !== undefined) headers[name] = value;
|
|
786
|
-
}
|
|
787
|
-
return headers;
|
|
788
|
-
};
|
|
789
|
-
return customFetch<void>(getSetUserPasswordUrl(userId),
|
|
728
|
+
return customFetch<void>(getSetUserPasswordUrl(userId),
|
|
790
729
|
{
|
|
791
730
|
...options,
|
|
792
731
|
method: 'PUT',
|
|
793
|
-
headers: { 'Content-Type': 'application/json',
|
|
732
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
794
733
|
body: JSON.stringify(setUserPasswordBody)
|
|
795
734
|
}
|
|
796
735
|
);}
|
|
@@ -876,7 +815,7 @@ export const getMyUser = async (params?: GetMyUserParams, options?: Parameters<t
|
|
|
876
815
|
|
|
877
816
|
|
|
878
817
|
|
|
879
|
-
export const
|
|
818
|
+
export const getUpdateMyUserUrl = (params?: UpdateMyUserParams,) => {
|
|
880
819
|
const normalizedParams = new URLSearchParams();
|
|
881
820
|
|
|
882
821
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -900,29 +839,15 @@ export const getPatchMyUserUrl = (params?: PatchMyUserParams,) => {
|
|
|
900
839
|
* that project.
|
|
901
840
|
* @summary Update my user information
|
|
902
841
|
*/
|
|
903
|
-
export const
|
|
904
|
-
params?:
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
if (!h) return {};
|
|
908
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
909
|
-
if (Symbol.iterator in h) {
|
|
910
|
-
return Object.fromEntries(
|
|
911
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
912
|
-
);
|
|
913
|
-
}
|
|
914
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
915
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
916
|
-
if (value !== undefined) headers[name] = value;
|
|
917
|
-
}
|
|
918
|
-
return headers;
|
|
919
|
-
};
|
|
920
|
-
return customFetch<PatchMyUser200>(getPatchMyUserUrl(params),
|
|
842
|
+
export const updateMyUser = async (updateMyUserBody: UpdateMyUserBody,
|
|
843
|
+
params?: UpdateMyUserParams, options?: Parameters<typeof customFetch>[1]): Promise<UpdateMyUser200> => {
|
|
844
|
+
|
|
845
|
+
return customFetch<UpdateMyUser200>(getUpdateMyUserUrl(params),
|
|
921
846
|
{
|
|
922
847
|
...options,
|
|
923
848
|
method: 'PATCH',
|
|
924
|
-
headers: { 'Content-Type': 'application/json',
|
|
925
|
-
body: JSON.stringify(
|
|
849
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
850
|
+
body: JSON.stringify(updateMyUserBody)
|
|
926
851
|
}
|
|
927
852
|
);}
|
|
928
853
|
|
|
@@ -1074,6 +999,11 @@ export const getListMyProjectsUrl = (params?: ListMyProjectsParams,) => {
|
|
|
1074
999
|
* With `project_id`, the projects are listed only when the session belongs to
|
|
1075
1000
|
* that project. It names the project the session was signed in to, not one to
|
|
1076
1001
|
* list.
|
|
1002
|
+
*
|
|
1003
|
+
* With `exclude_platform`, the deployment's reserved platform project is left
|
|
1004
|
+
* out: the project the console signs in to, which holds the console's
|
|
1005
|
+
* accounts rather than an application's users. A deployment without one lists
|
|
1006
|
+
* the same projects either way.
|
|
1077
1007
|
* @summary List the projects I can act on
|
|
1078
1008
|
*/
|
|
1079
1009
|
export const listMyProjects = async (params?: ListMyProjectsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyProjects200> => {
|
|
@@ -1164,7 +1094,7 @@ export const getCreateFlowUrl = () => {
|
|
|
1164
1094
|
|
|
1165
1095
|
|
|
1166
1096
|
|
|
1167
|
-
return `${getApiBaseUrl()}/
|
|
1097
|
+
return `${getApiBaseUrl()}/flows`
|
|
1168
1098
|
}
|
|
1169
1099
|
|
|
1170
1100
|
/**
|
|
@@ -1173,7 +1103,7 @@ export const getCreateFlowUrl = () => {
|
|
|
1173
1103
|
*
|
|
1174
1104
|
* The flow endpoints are the runtime calls the login component
|
|
1175
1105
|
* (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
|
|
1176
|
-
* step it gets back, and submits the user's input with `submitFlowStep` (`POST /
|
|
1106
|
+
* step it gets back, and submits the user's input with `submitFlowStep` (`POST /flows/{flow_id}/submit`) to
|
|
1177
1107
|
* get the next step. This call creates a new session implicitly, unless
|
|
1178
1108
|
* `session_id` is provided together with that session's `session_token`
|
|
1179
1109
|
* (for step-up or reauthentication on an existing session).
|
|
@@ -1211,7 +1141,7 @@ export const getCreateFlowUrl = () => {
|
|
|
1211
1141
|
* unless the project lists it.
|
|
1212
1142
|
*
|
|
1213
1143
|
* The response contains an `id` field, the flow handle. Use it as the path
|
|
1214
|
-
* parameter for all subsequent `/
|
|
1144
|
+
* parameter for all subsequent `/flows/{flow_id}/submit` calls.
|
|
1215
1145
|
*
|
|
1216
1146
|
* The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
|
|
1217
1147
|
* the flow's orchestration state (current step, collected data, history).
|
|
@@ -1221,37 +1151,23 @@ export const getCreateFlowUrl = () => {
|
|
|
1221
1151
|
*/
|
|
1222
1152
|
export const createFlow = async (createFlowBody: CreateFlowBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlow201> => {
|
|
1223
1153
|
|
|
1224
|
-
|
|
1225
|
-
if (!h) return {};
|
|
1226
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1227
|
-
if (Symbol.iterator in h) {
|
|
1228
|
-
return Object.fromEntries(
|
|
1229
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1230
|
-
);
|
|
1231
|
-
}
|
|
1232
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1233
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1234
|
-
if (value !== undefined) headers[name] = value;
|
|
1235
|
-
}
|
|
1236
|
-
return headers;
|
|
1237
|
-
};
|
|
1238
|
-
return customFetch<CreateFlow201>(getCreateFlowUrl(),
|
|
1154
|
+
return customFetch<CreateFlow201>(getCreateFlowUrl(),
|
|
1239
1155
|
{
|
|
1240
1156
|
...options,
|
|
1241
1157
|
method: 'POST',
|
|
1242
|
-
headers: { 'Content-Type': 'application/json',
|
|
1158
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1243
1159
|
body: JSON.stringify(createFlowBody)
|
|
1244
1160
|
}
|
|
1245
1161
|
);}
|
|
1246
1162
|
|
|
1247
1163
|
|
|
1248
1164
|
|
|
1249
|
-
export const getGetFlowStepUrl = (
|
|
1165
|
+
export const getGetFlowStepUrl = (flowId: string,) => {
|
|
1250
1166
|
|
|
1251
1167
|
|
|
1252
1168
|
|
|
1253
1169
|
|
|
1254
|
-
return `${getApiBaseUrl()}/
|
|
1170
|
+
return `${getApiBaseUrl()}/flows/${encodeURIComponent(String(flowId))}`
|
|
1255
1171
|
}
|
|
1256
1172
|
|
|
1257
1173
|
/**
|
|
@@ -1259,17 +1175,24 @@ export const getGetFlowStepUrl = (id: string,) => {
|
|
|
1259
1175
|
* the step again after a page reload or a network error.
|
|
1260
1176
|
*
|
|
1261
1177
|
* The flow endpoints are the runtime calls the login component
|
|
1262
|
-
* (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /
|
|
1263
|
-
* `submitFlowStep` (`POST /
|
|
1178
|
+
* (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flows`) starts a flow, and
|
|
1179
|
+
* `submitFlowStep` (`POST /flows/{flow_id}/submit`) advances it.
|
|
1180
|
+
*
|
|
1181
|
+
* For a sign-up step, prepares `step.gates.signup_pow.challenge`: one that
|
|
1182
|
+
* creates its user on submit, or one carrying a passkey registration that
|
|
1183
|
+
* creates its user.
|
|
1184
|
+
* Reuses challenges with more than a minute remaining; otherwise issues a
|
|
1185
|
+
* new one. If this render resolves parked SSO state, it first returns the
|
|
1186
|
+
* updated cookie; fetch the step again to obtain its puzzle.
|
|
1264
1187
|
*
|
|
1265
1188
|
* Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
|
|
1266
1189
|
* re-resolve from `Origin`. If that release was revoked since the attempt
|
|
1267
1190
|
* started, the response is `409` with `rel.revoked`.
|
|
1268
1191
|
* @summary Get the current step of a flow
|
|
1269
1192
|
*/
|
|
1270
|
-
export const getFlowStep = async (
|
|
1193
|
+
export const getFlowStep = async (flowId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowStep200> => {
|
|
1271
1194
|
|
|
1272
|
-
return customFetch<GetFlowStep200>(getGetFlowStepUrl(
|
|
1195
|
+
return customFetch<GetFlowStep200>(getGetFlowStepUrl(flowId),
|
|
1273
1196
|
{
|
|
1274
1197
|
...options,
|
|
1275
1198
|
method: 'GET'
|
|
@@ -1280,12 +1203,12 @@ export const getFlowStep = async (id: string, options?: Parameters<typeof custom
|
|
|
1280
1203
|
|
|
1281
1204
|
|
|
1282
1205
|
|
|
1283
|
-
export const getSubmitFlowStepUrl = (
|
|
1206
|
+
export const getSubmitFlowStepUrl = (flowId: string,) => {
|
|
1284
1207
|
|
|
1285
1208
|
|
|
1286
1209
|
|
|
1287
1210
|
|
|
1288
|
-
return `${getApiBaseUrl()}/
|
|
1211
|
+
return `${getApiBaseUrl()}/flows/${encodeURIComponent(String(flowId))}/submit`
|
|
1289
1212
|
}
|
|
1290
1213
|
|
|
1291
1214
|
/**
|
|
@@ -1293,12 +1216,21 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1293
1216
|
* validates it, processes it (for example, verifies a credential), advances
|
|
1294
1217
|
* the flow through any invisible steps, and returns the next visible step.
|
|
1295
1218
|
* The flow endpoints are the runtime calls the login component
|
|
1296
|
-
* (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /
|
|
1219
|
+
* (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flows`) starts a flow.
|
|
1297
1220
|
*
|
|
1298
1221
|
* The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
|
|
1299
1222
|
* with the new flow state. The server is stateless: all orchestration
|
|
1300
1223
|
* state is carried in this cookie between requests.
|
|
1301
1224
|
*
|
|
1225
|
+
* Sign-up additionally requires a single-use `gate_proofs.signup_pow`
|
|
1226
|
+
* solution for `step.gates.signup_pow`: a password sign-up (`create_user`)
|
|
1227
|
+
* sends it with the submit, and a passkey registration that creates its user
|
|
1228
|
+
* sends it with the attestation in `challenge_response`. Pending
|
|
1229
|
+
* challenges and rate counters are stored on the server. Invalid or spent
|
|
1230
|
+
* proofs return `403 flow.proof_invalid`; exhausted per-flow budgets return
|
|
1231
|
+
* `429 flow.rate_limited`. GET the current step to obtain or refresh its
|
|
1232
|
+
* challenge before solving. Start and Submit announce the gate without a puzzle.
|
|
1233
|
+
*
|
|
1302
1234
|
* **Important:** The `id` in the response may differ from the `id` used in
|
|
1303
1235
|
* the request. This happens when a flow pivots (pushes a new flow onto the
|
|
1304
1236
|
* stack) or when a stacked flow completes (auto-pops to the parent flow).
|
|
@@ -1346,28 +1278,14 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1346
1278
|
* started, the response is `409` with `rel.revoked`.
|
|
1347
1279
|
* @summary Submit a flow step
|
|
1348
1280
|
*/
|
|
1349
|
-
export const submitFlowStep = async (
|
|
1281
|
+
export const submitFlowStep = async (flowId: string,
|
|
1350
1282
|
submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]): Promise<SubmitFlowStep200> => {
|
|
1351
1283
|
|
|
1352
|
-
|
|
1353
|
-
if (!h) return {};
|
|
1354
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1355
|
-
if (Symbol.iterator in h) {
|
|
1356
|
-
return Object.fromEntries(
|
|
1357
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1358
|
-
);
|
|
1359
|
-
}
|
|
1360
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1361
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1362
|
-
if (value !== undefined) headers[name] = value;
|
|
1363
|
-
}
|
|
1364
|
-
return headers;
|
|
1365
|
-
};
|
|
1366
|
-
return customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(id),
|
|
1284
|
+
return customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(flowId),
|
|
1367
1285
|
{
|
|
1368
1286
|
...options,
|
|
1369
1287
|
method: 'POST',
|
|
1370
|
-
headers: { 'Content-Type': 'application/json',
|
|
1288
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1371
1289
|
body: JSON.stringify(submitFlowStepBody)
|
|
1372
1290
|
}
|
|
1373
1291
|
);}
|
|
@@ -1391,13 +1309,13 @@ export const getCreateAuthAttemptUrl = () => {
|
|
|
1391
1309
|
* in order:
|
|
1392
1310
|
*
|
|
1393
1311
|
* 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
|
|
1394
|
-
* 2. `
|
|
1312
|
+
* 2. `createAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
|
|
1395
1313
|
* `identifier`, `password` or `passkey`.
|
|
1396
|
-
* 3. `
|
|
1314
|
+
* 3. `verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
|
|
1397
1315
|
* credential, code or assertion. Repeat steps 2 and 3 until
|
|
1398
1316
|
* `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
|
|
1399
1317
|
* `required_factors` is verified.
|
|
1400
|
-
* 4. `
|
|
1318
|
+
* 4. `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
|
|
1401
1319
|
* 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
|
|
1402
1320
|
* for the session and its `session_token`.
|
|
1403
1321
|
*
|
|
@@ -1416,25 +1334,11 @@ export const getCreateAuthAttemptUrl = () => {
|
|
|
1416
1334
|
*/
|
|
1417
1335
|
export const createAuthAttempt = async (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttempt201> => {
|
|
1418
1336
|
|
|
1419
|
-
|
|
1420
|
-
if (!h) return {};
|
|
1421
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1422
|
-
if (Symbol.iterator in h) {
|
|
1423
|
-
return Object.fromEntries(
|
|
1424
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1425
|
-
);
|
|
1426
|
-
}
|
|
1427
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1428
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1429
|
-
if (value !== undefined) headers[name] = value;
|
|
1430
|
-
}
|
|
1431
|
-
return headers;
|
|
1432
|
-
};
|
|
1433
|
-
return customFetch<CreateAuthAttempt201>(getCreateAuthAttemptUrl(),
|
|
1337
|
+
return customFetch<CreateAuthAttempt201>(getCreateAuthAttemptUrl(),
|
|
1434
1338
|
{
|
|
1435
1339
|
...options,
|
|
1436
1340
|
method: 'POST',
|
|
1437
|
-
headers: { 'Content-Type': 'application/json',
|
|
1341
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1438
1342
|
body: JSON.stringify(createAuthAttemptBody)
|
|
1439
1343
|
}
|
|
1440
1344
|
);}
|
|
@@ -1472,7 +1376,7 @@ export const getAuthAttempt = async (attemptId: string, options?: Parameters<typ
|
|
|
1472
1376
|
|
|
1473
1377
|
|
|
1474
1378
|
|
|
1475
|
-
export const
|
|
1379
|
+
export const getCreateAuthAttemptChallengeUrl = (attemptId: string,) => {
|
|
1476
1380
|
|
|
1477
1381
|
|
|
1478
1382
|
|
|
@@ -1486,38 +1390,24 @@ export const getIssueChallengeUrl = (attemptId: string,) => {
|
|
|
1486
1390
|
* A challenge names one factor method, such as password, passkey, TOTP or OTP
|
|
1487
1391
|
* via SMS. The response carries the challenge's `challenge_id`, method,
|
|
1488
1392
|
* metadata and any UI hints. The client then submits the proof with
|
|
1489
|
-
* `
|
|
1393
|
+
* `verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
|
|
1490
1394
|
* @summary Issue a factor challenge
|
|
1491
1395
|
*/
|
|
1492
|
-
export const
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
if (!h) return {};
|
|
1497
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1498
|
-
if (Symbol.iterator in h) {
|
|
1499
|
-
return Object.fromEntries(
|
|
1500
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1501
|
-
);
|
|
1502
|
-
}
|
|
1503
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1504
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1505
|
-
if (value !== undefined) headers[name] = value;
|
|
1506
|
-
}
|
|
1507
|
-
return headers;
|
|
1508
|
-
};
|
|
1509
|
-
return customFetch<IssueChallenge201>(getIssueChallengeUrl(attemptId),
|
|
1396
|
+
export const createAuthAttemptChallenge = async (attemptId: string,
|
|
1397
|
+
createAuthAttemptChallengeBody: CreateAuthAttemptChallengeBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttemptChallenge201> => {
|
|
1398
|
+
|
|
1399
|
+
return customFetch<CreateAuthAttemptChallenge201>(getCreateAuthAttemptChallengeUrl(attemptId),
|
|
1510
1400
|
{
|
|
1511
1401
|
...options,
|
|
1512
1402
|
method: 'POST',
|
|
1513
|
-
headers: { 'Content-Type': 'application/json',
|
|
1514
|
-
body: JSON.stringify(
|
|
1403
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1404
|
+
body: JSON.stringify(createAuthAttemptChallengeBody)
|
|
1515
1405
|
}
|
|
1516
1406
|
);}
|
|
1517
1407
|
|
|
1518
1408
|
|
|
1519
1409
|
|
|
1520
|
-
export const
|
|
1410
|
+
export const getVerifyAuthAttemptChallengeUrl = (attemptId: string,
|
|
1521
1411
|
challengeId: string,) => {
|
|
1522
1412
|
|
|
1523
1413
|
|
|
@@ -1538,42 +1428,28 @@ export const getVerifyChallengeProofUrl = (attemptId: string,
|
|
|
1538
1428
|
*
|
|
1539
1429
|
* On success, the factor is recorded on the authentication attempt. The
|
|
1540
1430
|
* attempt moves to the next pending challenge, or completes when every required
|
|
1541
|
-
* factor is verified. Then call `
|
|
1431
|
+
* factor is verified. Then call `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
|
|
1542
1432
|
*
|
|
1543
1433
|
* A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
|
|
1544
1434
|
* again. There is no retry limit: you can retry until the attempt expires.
|
|
1545
1435
|
* @summary Verify a challenge proof
|
|
1546
1436
|
*/
|
|
1547
|
-
export const
|
|
1437
|
+
export const verifyAuthAttemptChallenge = async (attemptId: string,
|
|
1548
1438
|
challengeId: string,
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
if (!h) return {};
|
|
1553
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1554
|
-
if (Symbol.iterator in h) {
|
|
1555
|
-
return Object.fromEntries(
|
|
1556
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1557
|
-
);
|
|
1558
|
-
}
|
|
1559
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1560
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1561
|
-
if (value !== undefined) headers[name] = value;
|
|
1562
|
-
}
|
|
1563
|
-
return headers;
|
|
1564
|
-
};
|
|
1565
|
-
return customFetch<VerifyChallengeProof200>(getVerifyChallengeProofUrl(attemptId,challengeId),
|
|
1439
|
+
verifyAuthAttemptChallengeBody: VerifyAuthAttemptChallengeBody, options?: Parameters<typeof customFetch>[1]): Promise<VerifyAuthAttemptChallenge200> => {
|
|
1440
|
+
|
|
1441
|
+
return customFetch<VerifyAuthAttemptChallenge200>(getVerifyAuthAttemptChallengeUrl(attemptId,challengeId),
|
|
1566
1442
|
{
|
|
1567
1443
|
...options,
|
|
1568
1444
|
method: 'POST',
|
|
1569
|
-
headers: { 'Content-Type': 'application/json',
|
|
1570
|
-
body: JSON.stringify(
|
|
1445
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1446
|
+
body: JSON.stringify(verifyAuthAttemptChallengeBody)
|
|
1571
1447
|
}
|
|
1572
1448
|
);}
|
|
1573
1449
|
|
|
1574
1450
|
|
|
1575
1451
|
|
|
1576
|
-
export const
|
|
1452
|
+
export const getCreateAuthAttemptHandoffUrl = (attemptId: string,) => {
|
|
1577
1453
|
|
|
1578
1454
|
|
|
1579
1455
|
|
|
@@ -1601,9 +1477,9 @@ export const getCreateHandoffUrl = (attemptId: string,) => {
|
|
|
1601
1477
|
* release is the configuration that `zitadel deploy` publishes.
|
|
1602
1478
|
* @summary Complete an authentication attempt and create a handoff token
|
|
1603
1479
|
*/
|
|
1604
|
-
export const
|
|
1480
|
+
export const createAuthAttemptHandoff = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttemptHandoff200> => {
|
|
1605
1481
|
|
|
1606
|
-
return customFetch<
|
|
1482
|
+
return customFetch<CreateAuthAttemptHandoff200>(getCreateAuthAttemptHandoffUrl(attemptId),
|
|
1607
1483
|
{
|
|
1608
1484
|
...options,
|
|
1609
1485
|
method: 'POST'
|
|
@@ -1627,7 +1503,7 @@ export const getCreateProjectUrl = () => {
|
|
|
1627
1503
|
* other endpoint returns.
|
|
1628
1504
|
*
|
|
1629
1505
|
* A project is the top-level boundary that holds users, sessions and
|
|
1630
|
-
* configuration. It has no owning team until someone claims it; see `
|
|
1506
|
+
* configuration. It has no owning team until someone claims it; see `createProjectClaim` (`POST /projects/{project_id}/claim/init`).
|
|
1631
1507
|
*
|
|
1632
1508
|
* The request needs no credential and is rate-limited. On `429`, wait and retry.
|
|
1633
1509
|
* Unless `seed_defaults` is `false`, the project starts with a default user schema
|
|
@@ -1636,25 +1512,11 @@ export const getCreateProjectUrl = () => {
|
|
|
1636
1512
|
*/
|
|
1637
1513
|
export const createProject = async (createProjectBody: CreateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateProject201> => {
|
|
1638
1514
|
|
|
1639
|
-
|
|
1640
|
-
if (!h) return {};
|
|
1641
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1642
|
-
if (Symbol.iterator in h) {
|
|
1643
|
-
return Object.fromEntries(
|
|
1644
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1645
|
-
);
|
|
1646
|
-
}
|
|
1647
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1648
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1649
|
-
if (value !== undefined) headers[name] = value;
|
|
1650
|
-
}
|
|
1651
|
-
return headers;
|
|
1652
|
-
};
|
|
1653
|
-
return customFetch<CreateProject201>(getCreateProjectUrl(),
|
|
1515
|
+
return customFetch<CreateProject201>(getCreateProjectUrl(),
|
|
1654
1516
|
{
|
|
1655
1517
|
...options,
|
|
1656
1518
|
method: 'POST',
|
|
1657
|
-
headers: { 'Content-Type': 'application/json',
|
|
1519
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1658
1520
|
body: JSON.stringify(createProjectBody)
|
|
1659
1521
|
}
|
|
1660
1522
|
);}
|
|
@@ -1680,25 +1542,11 @@ export const getQueryProjectsUrl = () => {
|
|
|
1680
1542
|
*/
|
|
1681
1543
|
export const queryProjects = async (queryProjectsBody: QueryProjectsBody, options?: Parameters<typeof customFetch>[1]): Promise<QueryProjects200> => {
|
|
1682
1544
|
|
|
1683
|
-
|
|
1684
|
-
if (!h) return {};
|
|
1685
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1686
|
-
if (Symbol.iterator in h) {
|
|
1687
|
-
return Object.fromEntries(
|
|
1688
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1689
|
-
);
|
|
1690
|
-
}
|
|
1691
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1692
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1693
|
-
if (value !== undefined) headers[name] = value;
|
|
1694
|
-
}
|
|
1695
|
-
return headers;
|
|
1696
|
-
};
|
|
1697
|
-
return customFetch<QueryProjects200>(getQueryProjectsUrl(),
|
|
1545
|
+
return customFetch<QueryProjects200>(getQueryProjectsUrl(),
|
|
1698
1546
|
{
|
|
1699
1547
|
...options,
|
|
1700
1548
|
method: 'POST',
|
|
1701
|
-
headers: { 'Content-Type': 'application/json',
|
|
1549
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1702
1550
|
body: JSON.stringify(queryProjectsBody)
|
|
1703
1551
|
}
|
|
1704
1552
|
);}
|
|
@@ -1734,7 +1582,7 @@ export const getProject = async (projectId: string, options?: Parameters<typeof
|
|
|
1734
1582
|
|
|
1735
1583
|
|
|
1736
1584
|
|
|
1737
|
-
export const
|
|
1585
|
+
export const getUpdateProjectUrl = (projectId: string,) => {
|
|
1738
1586
|
|
|
1739
1587
|
|
|
1740
1588
|
|
|
@@ -1754,29 +1602,15 @@ export const getPatchProjectUrl = (projectId: string,) => {
|
|
|
1754
1602
|
* person who can act on the project.
|
|
1755
1603
|
* @summary Update a project
|
|
1756
1604
|
*/
|
|
1757
|
-
export const
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
if (!h) return {};
|
|
1762
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1763
|
-
if (Symbol.iterator in h) {
|
|
1764
|
-
return Object.fromEntries(
|
|
1765
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1766
|
-
);
|
|
1767
|
-
}
|
|
1768
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1769
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1770
|
-
if (value !== undefined) headers[name] = value;
|
|
1771
|
-
}
|
|
1772
|
-
return headers;
|
|
1773
|
-
};
|
|
1774
|
-
return customFetch<PatchProject200>(getPatchProjectUrl(projectId),
|
|
1605
|
+
export const updateProject = async (projectId: string,
|
|
1606
|
+
updateProjectBody: UpdateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateProject200> => {
|
|
1607
|
+
|
|
1608
|
+
return customFetch<UpdateProject200>(getUpdateProjectUrl(projectId),
|
|
1775
1609
|
{
|
|
1776
1610
|
...options,
|
|
1777
1611
|
method: 'PATCH',
|
|
1778
|
-
headers: { 'Content-Type': 'application/json',
|
|
1779
|
-
body: JSON.stringify(
|
|
1612
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1613
|
+
body: JSON.stringify(updateProjectBody)
|
|
1780
1614
|
}
|
|
1781
1615
|
);}
|
|
1782
1616
|
|
|
@@ -1817,12 +1651,12 @@ export const getListProjectAdminsUrl = (projectId: string,
|
|
|
1817
1651
|
* whose team or user was deactivated, is not listed through it. Grants that
|
|
1818
1652
|
* expired or carry a lower role are left out. A person whose only access is a
|
|
1819
1653
|
* `viewer` or `editor` grant is not an admin and is not listed. Like the
|
|
1820
|
-
* check,
|
|
1821
|
-
* direct grant
|
|
1654
|
+
* check, a direct user grant requires an active user, so a suspended
|
|
1655
|
+
* person's direct grant is not listed.
|
|
1822
1656
|
*
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1657
|
+
* Every caller who passes the project read check sees every listed admin
|
|
1658
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
1659
|
+
* roster.
|
|
1826
1660
|
*
|
|
1827
1661
|
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
1828
1662
|
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
@@ -1843,7 +1677,75 @@ export const listProjectAdmins = async (projectId: string,
|
|
|
1843
1677
|
|
|
1844
1678
|
|
|
1845
1679
|
|
|
1846
|
-
export const
|
|
1680
|
+
export const getListProjectMembersUrl = (projectId: string,
|
|
1681
|
+
params?: ListProjectMembersParams,) => {
|
|
1682
|
+
const normalizedParams = new URLSearchParams();
|
|
1683
|
+
|
|
1684
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1685
|
+
|
|
1686
|
+
if (value !== undefined) {
|
|
1687
|
+
normalizedParams.append(key, value === null ? 'null' : String(value))
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
|
|
1691
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1692
|
+
|
|
1693
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/members?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/members`
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Lists the people who have a role on a project, with each person's strongest
|
|
1698
|
+
* role and how they hold it.
|
|
1699
|
+
*
|
|
1700
|
+
* A person appears once, with their strongest `relation` (`viewer`, `editor`
|
|
1701
|
+
* or `admin`; a stronger role includes the weaker ones) and one entry in
|
|
1702
|
+
* `sources` per way they hold that role:
|
|
1703
|
+
*
|
|
1704
|
+
* - `owning_team`: an active member of the team that owns the project, the
|
|
1705
|
+
* team a claim attaches the project to. It holds `admin`. Removing a grant
|
|
1706
|
+
* does not remove this access. It ends only when the person leaves the
|
|
1707
|
+
* team or the project changes owner.
|
|
1708
|
+
* - `grant`: an unexpired grant on the project, which is a role given to the
|
|
1709
|
+
* person (`grant_id` only) or to a team they are an active member of
|
|
1710
|
+
* (`grant_id` and `team`). Revoking that grant removes this source.
|
|
1711
|
+
*
|
|
1712
|
+
* Grants of a weaker role than the person's strongest are not in `sources`;
|
|
1713
|
+
* they still show in the project's grants (`queryGrants`,
|
|
1714
|
+
* `POST /grants/query`).
|
|
1715
|
+
*
|
|
1716
|
+
* Pass `relation` to list only the people whose strongest role is at least
|
|
1717
|
+
* that strong: `relation=admin` lists the people who can administer the
|
|
1718
|
+
* project.
|
|
1719
|
+
*
|
|
1720
|
+
* The list follows the authorization check. A person who left a team, or
|
|
1721
|
+
* whose team or user was deactivated, is not listed through it. Expired
|
|
1722
|
+
* grants are left out. Like the check, a direct user grant requires an
|
|
1723
|
+
* active user, so a suspended person's direct grant is not listed.
|
|
1724
|
+
*
|
|
1725
|
+
* Every caller who passes the project read check sees every listed person
|
|
1726
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
1727
|
+
* roster.
|
|
1728
|
+
*
|
|
1729
|
+
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
1730
|
+
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
1731
|
+
* (`sessionCookie`) of a signed-in person who can read the project.
|
|
1732
|
+
* @summary List the members of a project
|
|
1733
|
+
*/
|
|
1734
|
+
export const listProjectMembers = async (projectId: string,
|
|
1735
|
+
params?: ListProjectMembersParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectMembers200> => {
|
|
1736
|
+
|
|
1737
|
+
return customFetch<ListProjectMembers200>(getListProjectMembersUrl(projectId,params),
|
|
1738
|
+
{
|
|
1739
|
+
...options,
|
|
1740
|
+
method: 'GET'
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
}
|
|
1744
|
+
);}
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
export const getCreateProjectClaimUrl = (projectId: string,) => {
|
|
1847
1749
|
|
|
1848
1750
|
|
|
1849
1751
|
|
|
@@ -1859,7 +1761,7 @@ export const getInitClaimUrl = (projectId: string,) => {
|
|
|
1859
1761
|
* so that the team's members administer it. This operation mints a
|
|
1860
1762
|
* single-use, short-lived challenge for an unclaimed project. The developer
|
|
1861
1763
|
* opens `claim_url`, signs in and completes the claim in the browser; see
|
|
1862
|
-
* `
|
|
1764
|
+
* `completeProjectClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getProjectClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
|
|
1863
1765
|
* as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
|
|
1864
1766
|
*
|
|
1865
1767
|
* Authenticate with the project secret that `createProject` (`POST /projects`) returns as
|
|
@@ -1870,9 +1772,9 @@ export const getInitClaimUrl = (projectId: string,) => {
|
|
|
1870
1772
|
* which is final.
|
|
1871
1773
|
* @summary Initialize a project claim
|
|
1872
1774
|
*/
|
|
1873
|
-
export const
|
|
1775
|
+
export const createProjectClaim = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateProjectClaim201> => {
|
|
1874
1776
|
|
|
1875
|
-
return customFetch<
|
|
1777
|
+
return customFetch<CreateProjectClaim201>(getCreateProjectClaimUrl(projectId),
|
|
1876
1778
|
{
|
|
1877
1779
|
...options,
|
|
1878
1780
|
method: 'POST'
|
|
@@ -1883,8 +1785,8 @@ export const initClaim = async (projectId: string, options?: Parameters<typeof c
|
|
|
1883
1785
|
|
|
1884
1786
|
|
|
1885
1787
|
|
|
1886
|
-
export const
|
|
1887
|
-
params:
|
|
1788
|
+
export const getGetProjectClaimStatusUrl = (projectId: string,
|
|
1789
|
+
params: GetProjectClaimStatusParams,) => {
|
|
1888
1790
|
const normalizedParams = new URLSearchParams();
|
|
1889
1791
|
|
|
1890
1792
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1904,7 +1806,7 @@ export const getGetClaimStatusUrl = (projectId: string,
|
|
|
1904
1806
|
* browser completes the claim.
|
|
1905
1807
|
*
|
|
1906
1808
|
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
|
|
1907
|
-
* `zitadel claim` polls this operation after `
|
|
1809
|
+
* `zitadel claim` polls this operation after `createProjectClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
|
|
1908
1810
|
* Once the project is claimed, the response is `completed` with the owning
|
|
1909
1811
|
* team, the claim timestamp and the dashboard URL.
|
|
1910
1812
|
*
|
|
@@ -1913,15 +1815,15 @@ export const getGetClaimStatusUrl = (projectId: string,
|
|
|
1913
1815
|
* completed claim keeps reporting `completed` past this challenge's expiry
|
|
1914
1816
|
* and past the project's claim window.
|
|
1915
1817
|
*
|
|
1916
|
-
* Pass the `challenge_id` that `
|
|
1818
|
+
* Pass the `challenge_id` that `createProjectClaim` returns. Authenticate with the
|
|
1917
1819
|
* project secret that started the challenge. On `410` with `proj.claim_expired`, call
|
|
1918
|
-
* `
|
|
1820
|
+
* `createProjectClaim` again for a fresh challenge.
|
|
1919
1821
|
* @summary Get the status of a project claim
|
|
1920
1822
|
*/
|
|
1921
|
-
export const
|
|
1922
|
-
params:
|
|
1823
|
+
export const getProjectClaimStatus = async (projectId: string,
|
|
1824
|
+
params: GetProjectClaimStatusParams, options?: Parameters<typeof customFetch>[1]): Promise<GetProjectClaimStatus200> => {
|
|
1923
1825
|
|
|
1924
|
-
return customFetch<
|
|
1826
|
+
return customFetch<GetProjectClaimStatus200>(getGetProjectClaimStatusUrl(projectId,params),
|
|
1925
1827
|
{
|
|
1926
1828
|
...options,
|
|
1927
1829
|
method: 'GET'
|
|
@@ -1932,7 +1834,7 @@ export const getClaimStatus = async (projectId: string,
|
|
|
1932
1834
|
|
|
1933
1835
|
|
|
1934
1836
|
|
|
1935
|
-
export const
|
|
1837
|
+
export const getCompleteProjectClaimUrl = (projectId: string,) => {
|
|
1936
1838
|
|
|
1937
1839
|
|
|
1938
1840
|
|
|
@@ -1947,44 +1849,30 @@ export const getCompleteClaimUrl = (projectId: string,) => {
|
|
|
1947
1849
|
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
|
|
1948
1850
|
* so that the team's members administer it. The claim page in the browser
|
|
1949
1851
|
* calls this operation after the developer signs in, with the session cookie.
|
|
1950
|
-
* The `challenge_id` from the claim URL that `
|
|
1852
|
+
* The `challenge_id` from the claim URL that `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns is the
|
|
1951
1853
|
* request's single-use, browser-safe authorization.
|
|
1952
1854
|
*
|
|
1953
1855
|
* Claims are first-claim-wins and spend the challenge. If a team already
|
|
1954
1856
|
* claimed the project, the request answers `409`. If the challenge lapsed
|
|
1955
|
-
* (`410` with `proj.claim_expired`), call `
|
|
1857
|
+
* (`410` with `proj.claim_expired`), call `createProjectClaim` again for a fresh one.
|
|
1956
1858
|
* @summary Complete a project claim
|
|
1957
1859
|
*/
|
|
1958
|
-
export const
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
if (!h) return {};
|
|
1963
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1964
|
-
if (Symbol.iterator in h) {
|
|
1965
|
-
return Object.fromEntries(
|
|
1966
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
1967
|
-
);
|
|
1968
|
-
}
|
|
1969
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
1970
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
1971
|
-
if (value !== undefined) headers[name] = value;
|
|
1972
|
-
}
|
|
1973
|
-
return headers;
|
|
1974
|
-
};
|
|
1975
|
-
return customFetch<CompleteClaim200>(getCompleteClaimUrl(projectId),
|
|
1860
|
+
export const completeProjectClaim = async (projectId: string,
|
|
1861
|
+
completeProjectClaimBody: CompleteProjectClaimBody, options?: Parameters<typeof customFetch>[1]): Promise<CompleteProjectClaim200> => {
|
|
1862
|
+
|
|
1863
|
+
return customFetch<CompleteProjectClaim200>(getCompleteProjectClaimUrl(projectId),
|
|
1976
1864
|
{
|
|
1977
1865
|
...options,
|
|
1978
1866
|
method: 'POST',
|
|
1979
|
-
headers: { 'Content-Type': 'application/json',
|
|
1980
|
-
body: JSON.stringify(
|
|
1867
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1868
|
+
body: JSON.stringify(completeProjectClaimBody)
|
|
1981
1869
|
}
|
|
1982
1870
|
);}
|
|
1983
1871
|
|
|
1984
1872
|
|
|
1985
1873
|
|
|
1986
|
-
export const
|
|
1987
|
-
params:
|
|
1874
|
+
export const getGetProjectClaimWindowUrl = (projectId: string,
|
|
1875
|
+
params: GetProjectClaimWindowParams,) => {
|
|
1988
1876
|
const normalizedParams = new URLSearchParams();
|
|
1989
1877
|
|
|
1990
1878
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2009,15 +1897,15 @@ export const getGetClaimWindowUrl = (projectId: string,
|
|
|
2009
1897
|
*
|
|
2010
1898
|
* The request needs no credential, because the claim page calls it before the
|
|
2011
1899
|
* developer has signed in. Holding the `challenge_id` from the claim URL that
|
|
2012
|
-
* `
|
|
1900
|
+
* `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeProjectClaim` (`POST /projects/{project_id}/claim/complete`)
|
|
2013
1901
|
* accepts. The response reveals only the window, never the project itself.
|
|
2014
|
-
* Unlike `
|
|
1902
|
+
* Unlike `completeProjectClaim` it spends nothing, so reloading the page is safe.
|
|
2015
1903
|
* @summary Get the claim window for a project
|
|
2016
1904
|
*/
|
|
2017
|
-
export const
|
|
2018
|
-
params:
|
|
1905
|
+
export const getProjectClaimWindow = async (projectId: string,
|
|
1906
|
+
params: GetProjectClaimWindowParams, options?: Parameters<typeof customFetch>[1]): Promise<GetProjectClaimWindow200> => {
|
|
2019
1907
|
|
|
2020
|
-
return customFetch<
|
|
1908
|
+
return customFetch<GetProjectClaimWindow200>(getGetProjectClaimWindowUrl(projectId,params),
|
|
2021
1909
|
{
|
|
2022
1910
|
...options,
|
|
2023
1911
|
method: 'GET'
|
|
@@ -2028,7 +1916,7 @@ export const getClaimWindow = async (projectId: string,
|
|
|
2028
1916
|
|
|
2029
1917
|
|
|
2030
1918
|
|
|
2031
|
-
export const
|
|
1919
|
+
export const getAddProjectOriginUrl = (projectId: string,) => {
|
|
2032
1920
|
|
|
2033
1921
|
|
|
2034
1922
|
|
|
@@ -2052,38 +1940,24 @@ export const getAddOriginUrl = (projectId: string,) => {
|
|
|
2052
1940
|
* Adding a pattern that already exists with the same kind is idempotent and
|
|
2053
1941
|
* answers `201` with the stored origin. If the pattern exists with the other
|
|
2054
1942
|
* kind, the request is refused with `origin.kind_conflict`: remove it with
|
|
2055
|
-
* `
|
|
1943
|
+
* `removeProjectOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
|
|
2056
1944
|
* @summary Add an origin pattern
|
|
2057
1945
|
*/
|
|
2058
|
-
export const
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
if (!h) return {};
|
|
2063
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2064
|
-
if (Symbol.iterator in h) {
|
|
2065
|
-
return Object.fromEntries(
|
|
2066
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2067
|
-
);
|
|
2068
|
-
}
|
|
2069
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2070
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2071
|
-
if (value !== undefined) headers[name] = value;
|
|
2072
|
-
}
|
|
2073
|
-
return headers;
|
|
2074
|
-
};
|
|
2075
|
-
return customFetch<AddOrigin201>(getAddOriginUrl(projectId),
|
|
1946
|
+
export const addProjectOrigin = async (projectId: string,
|
|
1947
|
+
addProjectOriginBody: AddProjectOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<AddProjectOrigin201> => {
|
|
1948
|
+
|
|
1949
|
+
return customFetch<AddProjectOrigin201>(getAddProjectOriginUrl(projectId),
|
|
2076
1950
|
{
|
|
2077
1951
|
...options,
|
|
2078
1952
|
method: 'POST',
|
|
2079
|
-
headers: { 'Content-Type': 'application/json',
|
|
2080
|
-
body: JSON.stringify(
|
|
1953
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1954
|
+
body: JSON.stringify(addProjectOriginBody)
|
|
2081
1955
|
}
|
|
2082
1956
|
);}
|
|
2083
1957
|
|
|
2084
1958
|
|
|
2085
1959
|
|
|
2086
|
-
export const
|
|
1960
|
+
export const getRemoveProjectOriginUrl = (projectId: string,) => {
|
|
2087
1961
|
|
|
2088
1962
|
|
|
2089
1963
|
|
|
@@ -2100,39 +1974,25 @@ export const getRemoveOriginUrl = (projectId: string,) => {
|
|
|
2100
1974
|
* origin.
|
|
2101
1975
|
* Removing a pattern that is already absent is idempotent and answers `204`.
|
|
2102
1976
|
*
|
|
2103
|
-
* The body's `pattern` is a pattern `
|
|
1977
|
+
* The body's `pattern` is a pattern `addProjectOrigin` (`POST /projects/{project_id}/origins`) stored.
|
|
2104
1978
|
* @summary Remove an origin pattern
|
|
2105
1979
|
*/
|
|
2106
|
-
export const
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
if (!h) return {};
|
|
2111
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2112
|
-
if (Symbol.iterator in h) {
|
|
2113
|
-
return Object.fromEntries(
|
|
2114
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2115
|
-
);
|
|
2116
|
-
}
|
|
2117
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2118
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2119
|
-
if (value !== undefined) headers[name] = value;
|
|
2120
|
-
}
|
|
2121
|
-
return headers;
|
|
2122
|
-
};
|
|
2123
|
-
return customFetch<void>(getRemoveOriginUrl(projectId),
|
|
1980
|
+
export const removeProjectOrigin = async (projectId: string,
|
|
1981
|
+
removeProjectOriginBody: RemoveProjectOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
1982
|
+
|
|
1983
|
+
return customFetch<void>(getRemoveProjectOriginUrl(projectId),
|
|
2124
1984
|
{
|
|
2125
1985
|
...options,
|
|
2126
1986
|
method: 'POST',
|
|
2127
|
-
headers: { 'Content-Type': 'application/json',
|
|
2128
|
-
body: JSON.stringify(
|
|
1987
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
1988
|
+
body: JSON.stringify(removeProjectOriginBody)
|
|
2129
1989
|
}
|
|
2130
1990
|
);}
|
|
2131
1991
|
|
|
2132
1992
|
|
|
2133
1993
|
|
|
2134
|
-
export const
|
|
2135
|
-
params?:
|
|
1994
|
+
export const getListProjectPreviewsUrl = (projectId: string,
|
|
1995
|
+
params?: ListProjectPreviewsParams,) => {
|
|
2136
1996
|
const normalizedParams = new URLSearchParams();
|
|
2137
1997
|
|
|
2138
1998
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2155,10 +2015,10 @@ export const getListPreviewsUrl = (projectId: string,
|
|
|
2155
2015
|
* in `GET /deployments`.
|
|
2156
2016
|
* @summary List a project's previews
|
|
2157
2017
|
*/
|
|
2158
|
-
export const
|
|
2159
|
-
params?:
|
|
2018
|
+
export const listProjectPreviews = async (projectId: string,
|
|
2019
|
+
params?: ListProjectPreviewsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectPreviews200> => {
|
|
2160
2020
|
|
|
2161
|
-
return customFetch<
|
|
2021
|
+
return customFetch<ListProjectPreviews200>(getListProjectPreviewsUrl(projectId,params),
|
|
2162
2022
|
{
|
|
2163
2023
|
...options,
|
|
2164
2024
|
method: 'GET'
|
|
@@ -2169,7 +2029,7 @@ export const listPreviews = async (projectId: string,
|
|
|
2169
2029
|
|
|
2170
2030
|
|
|
2171
2031
|
|
|
2172
|
-
export const
|
|
2032
|
+
export const getRemoveProjectPreviewUrl = (projectId: string,) => {
|
|
2173
2033
|
|
|
2174
2034
|
|
|
2175
2035
|
|
|
@@ -2186,32 +2046,18 @@ export const getRemovePreviewUrl = (projectId: string,) => {
|
|
|
2186
2046
|
* succeeds.
|
|
2187
2047
|
*
|
|
2188
2048
|
* The URL travels in the body rather than the path because an origin
|
|
2189
|
-
* contains `/`. Take it from `
|
|
2049
|
+
* contains `/`. Take it from `listProjectPreviews` (`GET /projects/{project_id}/previews`).
|
|
2190
2050
|
* @summary Remove a preview
|
|
2191
2051
|
*/
|
|
2192
|
-
export const
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
if (!h) return {};
|
|
2197
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2198
|
-
if (Symbol.iterator in h) {
|
|
2199
|
-
return Object.fromEntries(
|
|
2200
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2201
|
-
);
|
|
2202
|
-
}
|
|
2203
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2204
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2205
|
-
if (value !== undefined) headers[name] = value;
|
|
2206
|
-
}
|
|
2207
|
-
return headers;
|
|
2208
|
-
};
|
|
2209
|
-
return customFetch<void>(getRemovePreviewUrl(projectId),
|
|
2052
|
+
export const removeProjectPreview = async (projectId: string,
|
|
2053
|
+
removeProjectPreviewBody: RemoveProjectPreviewBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
2054
|
+
|
|
2055
|
+
return customFetch<void>(getRemoveProjectPreviewUrl(projectId),
|
|
2210
2056
|
{
|
|
2211
2057
|
...options,
|
|
2212
2058
|
method: 'POST',
|
|
2213
|
-
headers: { 'Content-Type': 'application/json',
|
|
2214
|
-
body: JSON.stringify(
|
|
2059
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2060
|
+
body: JSON.stringify(removeProjectPreviewBody)
|
|
2215
2061
|
}
|
|
2216
2062
|
);}
|
|
2217
2063
|
|
|
@@ -2259,25 +2105,11 @@ export const getCreateSessionUrl = () => {
|
|
|
2259
2105
|
*/
|
|
2260
2106
|
export const createSession = async (createSessionBody: CreateSessionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateSession201> => {
|
|
2261
2107
|
|
|
2262
|
-
|
|
2263
|
-
if (!h) return {};
|
|
2264
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2265
|
-
if (Symbol.iterator in h) {
|
|
2266
|
-
return Object.fromEntries(
|
|
2267
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2268
|
-
);
|
|
2269
|
-
}
|
|
2270
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2271
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2272
|
-
if (value !== undefined) headers[name] = value;
|
|
2273
|
-
}
|
|
2274
|
-
return headers;
|
|
2275
|
-
};
|
|
2276
|
-
return customFetch<CreateSession201>(getCreateSessionUrl(),
|
|
2108
|
+
return customFetch<CreateSession201>(getCreateSessionUrl(),
|
|
2277
2109
|
{
|
|
2278
2110
|
...options,
|
|
2279
2111
|
method: 'POST',
|
|
2280
|
-
headers: { 'Content-Type': 'application/json',
|
|
2112
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2281
2113
|
body: JSON.stringify(createSessionBody)
|
|
2282
2114
|
}
|
|
2283
2115
|
);}
|
|
@@ -2309,25 +2141,11 @@ export const getQuerySessionsUrl = (params: QuerySessionsParams,) => {
|
|
|
2309
2141
|
export const querySessions = async (querySessionsBody: QuerySessionsBody,
|
|
2310
2142
|
params: QuerySessionsParams, options?: Parameters<typeof customFetch>[1]): Promise<QuerySessions200> => {
|
|
2311
2143
|
|
|
2312
|
-
|
|
2313
|
-
if (!h) return {};
|
|
2314
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2315
|
-
if (Symbol.iterator in h) {
|
|
2316
|
-
return Object.fromEntries(
|
|
2317
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2318
|
-
);
|
|
2319
|
-
}
|
|
2320
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2321
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2322
|
-
if (value !== undefined) headers[name] = value;
|
|
2323
|
-
}
|
|
2324
|
-
return headers;
|
|
2325
|
-
};
|
|
2326
|
-
return customFetch<QuerySessions200>(getQuerySessionsUrl(params),
|
|
2144
|
+
return customFetch<QuerySessions200>(getQuerySessionsUrl(params),
|
|
2327
2145
|
{
|
|
2328
2146
|
...options,
|
|
2329
2147
|
method: 'POST',
|
|
2330
|
-
headers: { 'Content-Type': 'application/json',
|
|
2148
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2331
2149
|
body: JSON.stringify(querySessionsBody)
|
|
2332
2150
|
}
|
|
2333
2151
|
);}
|
|
@@ -2353,7 +2171,7 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {
|
|
|
2353
2171
|
* Exchanges a handoff token for a session and a `session_token`.
|
|
2354
2172
|
*
|
|
2355
2173
|
* A handoff token is the short-lived, single-use credential that
|
|
2356
|
-
* `
|
|
2174
|
+
* `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
|
|
2357
2175
|
* complete. This call consumes it. It is the last step of the sign-in sequence:
|
|
2358
2176
|
* create the attempt, issue a challenge, verify the proof, create the handoff,
|
|
2359
2177
|
* exchange it.
|
|
@@ -2386,25 +2204,11 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {
|
|
|
2386
2204
|
export const exchangeHandoff = async (exchangeHandoffBody: ExchangeHandoffBody,
|
|
2387
2205
|
params: ExchangeHandoffParams, options?: Parameters<typeof customFetch>[1]): Promise<ExchangeHandoff200> => {
|
|
2388
2206
|
|
|
2389
|
-
|
|
2390
|
-
if (!h) return {};
|
|
2391
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2392
|
-
if (Symbol.iterator in h) {
|
|
2393
|
-
return Object.fromEntries(
|
|
2394
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2395
|
-
);
|
|
2396
|
-
}
|
|
2397
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2398
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2399
|
-
if (value !== undefined) headers[name] = value;
|
|
2400
|
-
}
|
|
2401
|
-
return headers;
|
|
2402
|
-
};
|
|
2403
|
-
return customFetch<ExchangeHandoff200>(getExchangeHandoffUrl(params),
|
|
2207
|
+
return customFetch<ExchangeHandoff200>(getExchangeHandoffUrl(params),
|
|
2404
2208
|
{
|
|
2405
2209
|
...options,
|
|
2406
2210
|
method: 'POST',
|
|
2407
|
-
headers: { 'Content-Type': 'application/json',
|
|
2211
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2408
2212
|
body: JSON.stringify(exchangeHandoffBody)
|
|
2409
2213
|
}
|
|
2410
2214
|
);}
|
|
@@ -2598,7 +2402,7 @@ export const getMySessionCsrfToken = async (params?: GetMySessionCsrfTokenParams
|
|
|
2598
2402
|
|
|
2599
2403
|
|
|
2600
2404
|
|
|
2601
|
-
export const
|
|
2405
|
+
export const getPublishSchemaUrl = (params: PublishSchemaParams,) => {
|
|
2602
2406
|
const normalizedParams = new URLSearchParams();
|
|
2603
2407
|
|
|
2604
2408
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2614,12 +2418,13 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams,) => {
|
|
|
2614
2418
|
}
|
|
2615
2419
|
|
|
2616
2420
|
/**
|
|
2617
|
-
*
|
|
2421
|
+
* Publishes a user schema, the JSON Schema that says which attributes a user
|
|
2618
2422
|
* has and which attribute identifies the user.
|
|
2619
2423
|
*
|
|
2620
2424
|
* The request is either a user schema (`kind: user-schema`) or a schema URL
|
|
2621
|
-
* (`kind: schema-url`) that the server resolves. The response
|
|
2622
|
-
* `
|
|
2425
|
+
* (`kind: schema-url`) that the server resolves. The response is the stored
|
|
2426
|
+
* schema, as `getSchema` (`GET /schemas/{schema_id}`) returns it; its `id` is
|
|
2427
|
+
* what `createUser` (`POST /users`) takes as `schema`.
|
|
2623
2428
|
*
|
|
2624
2429
|
* The optional `$id` is the JSON Schema document URI that identifies the
|
|
2625
2430
|
* schema in later requests. It is a stable identity for GitOps, not a
|
|
@@ -2628,31 +2433,17 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams,) => {
|
|
|
2628
2433
|
* should ideally be a valid URI pointing at where the schema can be accessed.
|
|
2629
2434
|
* A `$id` that already exists in the project is refused; pick another or
|
|
2630
2435
|
* omit it.
|
|
2631
|
-
* @summary
|
|
2436
|
+
* @summary Publish a schema
|
|
2632
2437
|
*/
|
|
2633
|
-
export const
|
|
2634
|
-
params:
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
if (!h) return {};
|
|
2638
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2639
|
-
if (Symbol.iterator in h) {
|
|
2640
|
-
return Object.fromEntries(
|
|
2641
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2642
|
-
);
|
|
2643
|
-
}
|
|
2644
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2645
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2646
|
-
if (value !== undefined) headers[name] = value;
|
|
2647
|
-
}
|
|
2648
|
-
return headers;
|
|
2649
|
-
};
|
|
2650
|
-
return customFetch<CreateSchema201>(getCreateSchemaUrl(params),
|
|
2438
|
+
export const publishSchema = async (publishSchemaBody: PublishSchemaBody,
|
|
2439
|
+
params: PublishSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishSchema201> => {
|
|
2440
|
+
|
|
2441
|
+
return customFetch<PublishSchema201>(getPublishSchemaUrl(params),
|
|
2651
2442
|
{
|
|
2652
2443
|
...options,
|
|
2653
2444
|
method: 'POST',
|
|
2654
|
-
headers: { 'Content-Type': 'application/json',
|
|
2655
|
-
body: JSON.stringify(
|
|
2445
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2446
|
+
body: JSON.stringify(publishSchemaBody)
|
|
2656
2447
|
}
|
|
2657
2448
|
);}
|
|
2658
2449
|
|
|
@@ -2702,8 +2493,8 @@ export const listSchemas = async (params: ListSchemasParams, options?: Parameter
|
|
|
2702
2493
|
|
|
2703
2494
|
|
|
2704
2495
|
|
|
2705
|
-
export const
|
|
2706
|
-
params?:
|
|
2496
|
+
export const getGetSchemaUrl = (schemaId: string,
|
|
2497
|
+
params?: GetSchemaParams,) => {
|
|
2707
2498
|
const normalizedParams = new URLSearchParams();
|
|
2708
2499
|
|
|
2709
2500
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2715,7 +2506,7 @@ export const getGetSchemaByIdUrl = (id: string,
|
|
|
2715
2506
|
|
|
2716
2507
|
const stringifiedParams = normalizedParams.toString();
|
|
2717
2508
|
|
|
2718
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(
|
|
2509
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(schemaId))}?${stringifiedParams}` : `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(schemaId))}`
|
|
2719
2510
|
}
|
|
2720
2511
|
|
|
2721
2512
|
/**
|
|
@@ -2731,10 +2522,10 @@ export const getGetSchemaByIdUrl = (id: string,
|
|
|
2731
2522
|
* own project and ignores `project_id`.
|
|
2732
2523
|
* @summary Get a schema by ID
|
|
2733
2524
|
*/
|
|
2734
|
-
export const
|
|
2735
|
-
params?:
|
|
2525
|
+
export const getSchema = async (schemaId: string,
|
|
2526
|
+
params?: GetSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<GetSchema200> => {
|
|
2736
2527
|
|
|
2737
|
-
return customFetch<
|
|
2528
|
+
return customFetch<GetSchema200>(getGetSchemaUrl(schemaId,params),
|
|
2738
2529
|
{
|
|
2739
2530
|
...options,
|
|
2740
2531
|
method: 'GET'
|
|
@@ -2745,7 +2536,7 @@ export const getSchemaById = async (id: string,
|
|
|
2745
2536
|
|
|
2746
2537
|
|
|
2747
2538
|
|
|
2748
|
-
export const
|
|
2539
|
+
export const getPublishFlowDefinitionUrl = () => {
|
|
2749
2540
|
|
|
2750
2541
|
|
|
2751
2542
|
|
|
@@ -2754,8 +2545,8 @@ export const getCreateFlowDefinitionUrl = () => {
|
|
|
2754
2545
|
}
|
|
2755
2546
|
|
|
2756
2547
|
/**
|
|
2757
|
-
*
|
|
2758
|
-
* `flowdef.created` event.
|
|
2548
|
+
* Publishes a new revision of a flow definition, creating the flow definition
|
|
2549
|
+
* on its first publish. It records a `flowdef.created` event.
|
|
2759
2550
|
*
|
|
2760
2551
|
* A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
|
|
2761
2552
|
* defines the sequence of steps (capabilities) for one user journey, such as
|
|
@@ -2769,30 +2560,16 @@ export const getCreateFlowDefinitionUrl = () => {
|
|
|
2769
2560
|
* existing `name` publishes a new revision of that flow, which is not a
|
|
2770
2561
|
* conflict. List with `name` to see a flow's revisions, newest by creation
|
|
2771
2562
|
* time first.
|
|
2772
|
-
* @summary
|
|
2563
|
+
* @summary Publish a flow definition
|
|
2773
2564
|
*/
|
|
2774
|
-
export const
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
if (!h) return {};
|
|
2778
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2779
|
-
if (Symbol.iterator in h) {
|
|
2780
|
-
return Object.fromEntries(
|
|
2781
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2782
|
-
);
|
|
2783
|
-
}
|
|
2784
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2785
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2786
|
-
if (value !== undefined) headers[name] = value;
|
|
2787
|
-
}
|
|
2788
|
-
return headers;
|
|
2789
|
-
};
|
|
2790
|
-
return customFetch<CreateFlowDefinition201>(getCreateFlowDefinitionUrl(),
|
|
2565
|
+
export const publishFlowDefinition = async (publishFlowDefinitionBody: PublishFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]): Promise<PublishFlowDefinition201> => {
|
|
2566
|
+
|
|
2567
|
+
return customFetch<PublishFlowDefinition201>(getPublishFlowDefinitionUrl(),
|
|
2791
2568
|
{
|
|
2792
2569
|
...options,
|
|
2793
2570
|
method: 'POST',
|
|
2794
|
-
headers: { 'Content-Type': 'application/json',
|
|
2795
|
-
body: JSON.stringify(
|
|
2571
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2572
|
+
body: JSON.stringify(publishFlowDefinitionBody)
|
|
2796
2573
|
}
|
|
2797
2574
|
);}
|
|
2798
2575
|
|
|
@@ -2826,7 +2603,7 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams,) =>
|
|
|
2826
2603
|
* creation time first. A flow definition sets which step of a sign-in
|
|
2827
2604
|
* renders when, and which fields each step collects.
|
|
2828
2605
|
*
|
|
2829
|
-
* The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{
|
|
2606
|
+
* The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{flow_definition_id}`)
|
|
2830
2607
|
* takes. Filter by `name` to list the revisions of one flow.
|
|
2831
2608
|
* @summary List flow definitions
|
|
2832
2609
|
*/
|
|
@@ -2843,22 +2620,22 @@ export const listFlowDefinitions = async (params: ListFlowDefinitionsParams, opt
|
|
|
2843
2620
|
|
|
2844
2621
|
|
|
2845
2622
|
|
|
2846
|
-
export const getGetFlowDefinitionUrl = (
|
|
2623
|
+
export const getGetFlowDefinitionUrl = (flowDefinitionId: string,) => {
|
|
2847
2624
|
|
|
2848
2625
|
|
|
2849
2626
|
|
|
2850
2627
|
|
|
2851
|
-
return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(
|
|
2628
|
+
return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(flowDefinitionId))}`
|
|
2852
2629
|
}
|
|
2853
2630
|
|
|
2854
2631
|
/**
|
|
2855
2632
|
* Returns one flow definition revision. Pass the `id` that
|
|
2856
|
-
* `
|
|
2633
|
+
* `publishFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
|
|
2857
2634
|
* @summary Get a flow definition by ID
|
|
2858
2635
|
*/
|
|
2859
|
-
export const getFlowDefinition = async (
|
|
2636
|
+
export const getFlowDefinition = async (flowDefinitionId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowDefinition200> => {
|
|
2860
2637
|
|
|
2861
|
-
return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(
|
|
2638
|
+
return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(flowDefinitionId),
|
|
2862
2639
|
{
|
|
2863
2640
|
...options,
|
|
2864
2641
|
method: 'GET'
|
|
@@ -2895,25 +2672,11 @@ export const getCreateTeamUrl = (params: CreateTeamParams,) => {
|
|
|
2895
2672
|
export const createTeam = async (createTeamBody: CreateTeamBody,
|
|
2896
2673
|
params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateTeam201> => {
|
|
2897
2674
|
|
|
2898
|
-
|
|
2899
|
-
if (!h) return {};
|
|
2900
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2901
|
-
if (Symbol.iterator in h) {
|
|
2902
|
-
return Object.fromEntries(
|
|
2903
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2904
|
-
);
|
|
2905
|
-
}
|
|
2906
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2907
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2908
|
-
if (value !== undefined) headers[name] = value;
|
|
2909
|
-
}
|
|
2910
|
-
return headers;
|
|
2911
|
-
};
|
|
2912
|
-
return customFetch<CreateTeam201>(getCreateTeamUrl(params),
|
|
2675
|
+
return customFetch<CreateTeam201>(getCreateTeamUrl(params),
|
|
2913
2676
|
{
|
|
2914
2677
|
...options,
|
|
2915
2678
|
method: 'POST',
|
|
2916
|
-
headers: { 'Content-Type': 'application/json',
|
|
2679
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2917
2680
|
body: JSON.stringify(createTeamBody)
|
|
2918
2681
|
}
|
|
2919
2682
|
);}
|
|
@@ -2946,25 +2709,11 @@ export const getQueryTeamsUrl = (params?: QueryTeamsParams,) => {
|
|
|
2946
2709
|
export const queryTeams = async (queryTeamsBody: QueryTeamsBody,
|
|
2947
2710
|
params?: QueryTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryTeams200> => {
|
|
2948
2711
|
|
|
2949
|
-
|
|
2950
|
-
if (!h) return {};
|
|
2951
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2952
|
-
if (Symbol.iterator in h) {
|
|
2953
|
-
return Object.fromEntries(
|
|
2954
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
2955
|
-
);
|
|
2956
|
-
}
|
|
2957
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
2958
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
2959
|
-
if (value !== undefined) headers[name] = value;
|
|
2960
|
-
}
|
|
2961
|
-
return headers;
|
|
2962
|
-
};
|
|
2963
|
-
return customFetch<QueryTeams200>(getQueryTeamsUrl(params),
|
|
2712
|
+
return customFetch<QueryTeams200>(getQueryTeamsUrl(params),
|
|
2964
2713
|
{
|
|
2965
2714
|
...options,
|
|
2966
2715
|
method: 'POST',
|
|
2967
|
-
headers: { 'Content-Type': 'application/json',
|
|
2716
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2968
2717
|
body: JSON.stringify(queryTeamsBody)
|
|
2969
2718
|
}
|
|
2970
2719
|
);}
|
|
@@ -2998,7 +2747,7 @@ export const getTeam = async (teamId: string, options?: Parameters<typeof custom
|
|
|
2998
2747
|
|
|
2999
2748
|
|
|
3000
2749
|
|
|
3001
|
-
export const
|
|
2750
|
+
export const getDeactivateTeamUrl = (teamId: string,) => {
|
|
3002
2751
|
|
|
3003
2752
|
|
|
3004
2753
|
|
|
@@ -3022,9 +2771,9 @@ export const getDeleteTeamUrl = (teamId: string,) => {
|
|
|
3022
2771
|
* now such a team cannot be deactivated through the API.
|
|
3023
2772
|
* @summary Deactivate a team
|
|
3024
2773
|
*/
|
|
3025
|
-
export const
|
|
2774
|
+
export const deactivateTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
3026
2775
|
|
|
3027
|
-
return customFetch<void>(
|
|
2776
|
+
return customFetch<void>(getDeactivateTeamUrl(teamId),
|
|
3028
2777
|
{
|
|
3029
2778
|
...options,
|
|
3030
2779
|
method: 'DELETE'
|
|
@@ -3054,25 +2803,11 @@ export const getUpdateTeamUrl = (teamId: string,) => {
|
|
|
3054
2803
|
export const updateTeam = async (teamId: string,
|
|
3055
2804
|
updateTeamBody: UpdateTeamBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateTeam200> => {
|
|
3056
2805
|
|
|
3057
|
-
|
|
3058
|
-
if (!h) return {};
|
|
3059
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3060
|
-
if (Symbol.iterator in h) {
|
|
3061
|
-
return Object.fromEntries(
|
|
3062
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3063
|
-
);
|
|
3064
|
-
}
|
|
3065
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3066
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3067
|
-
if (value !== undefined) headers[name] = value;
|
|
3068
|
-
}
|
|
3069
|
-
return headers;
|
|
3070
|
-
};
|
|
3071
|
-
return customFetch<UpdateTeam200>(getUpdateTeamUrl(teamId),
|
|
2806
|
+
return customFetch<UpdateTeam200>(getUpdateTeamUrl(teamId),
|
|
3072
2807
|
{
|
|
3073
2808
|
...options,
|
|
3074
2809
|
method: 'PATCH',
|
|
3075
|
-
headers: { 'Content-Type': 'application/json',
|
|
2810
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3076
2811
|
body: JSON.stringify(updateTeamBody)
|
|
3077
2812
|
}
|
|
3078
2813
|
);}
|
|
@@ -3095,13 +2830,14 @@ export const getSearchUrl = (params?: SearchParams,) => {
|
|
|
3095
2830
|
}
|
|
3096
2831
|
|
|
3097
2832
|
/**
|
|
3098
|
-
* Finds the resources of
|
|
2833
|
+
* Finds the resources of one project, or of the projects a person can act on, that match a text, across resource types.
|
|
3099
2834
|
*
|
|
3100
2835
|
* `query` is what the person typed and `types` names the kinds of result to
|
|
3101
2836
|
* look for; only those are searched. Each result is a reference: its `type`,
|
|
3102
|
-
* its `id`, a `title` and sometimes a `subtitle`. Read the
|
|
3103
|
-
* with the type's own operation, for example `
|
|
3104
|
-
* (`GET /users/{user_id}`) or `getTeam` (`GET /teams/{team_id}`)
|
|
2837
|
+
* its `id`, its `project_id`, a `title` and sometimes a `subtitle`. Read the
|
|
2838
|
+
* resource itself with the type's own operation, for example `getUser`
|
|
2839
|
+
* (`GET /users/{user_id}`) or `getTeam` (`GET /teams/{team_id}`), in the
|
|
2840
|
+
* result's project.
|
|
3105
2841
|
*
|
|
3106
2842
|
* What a type matches on:
|
|
3107
2843
|
* - `user`: the start of the value they carry as `identifier` or of a part
|
|
@@ -3112,57 +2848,50 @@ export const getSearchUrl = (params?: SearchParams,) => {
|
|
|
3112
2848
|
* - `idp`: the `slug` and the `display_name` of an identity provider
|
|
3113
2849
|
* connection
|
|
3114
2850
|
*
|
|
3115
|
-
* A user matches from the start of
|
|
3116
|
-
*
|
|
3117
|
-
*
|
|
3118
|
-
*
|
|
3119
|
-
*
|
|
3120
|
-
*
|
|
3121
|
-
*
|
|
2851
|
+
* A user matches from the start of a value. Every other type matches from
|
|
2852
|
+
* the start of a name or of a word in it, so `staff` finds "Partner Staff"
|
|
2853
|
+
* and `sso` finds `partner-sso`. Matching ignores case. A `query` that is the
|
|
2854
|
+
* `id` of a resource of a requested type finds that one. A schema and a flow
|
|
2855
|
+
* definition are found at their newest revision.
|
|
2856
|
+
*
|
|
2857
|
+
* `project_id` names the project to search. Without it, a project secret
|
|
2858
|
+
* searches its own project, and a console session searches the projects the
|
|
2859
|
+
* person can act on: the ones `listMyProjects` (`GET /users/me/projects`)
|
|
2860
|
+
* lists, at most the newest 10 by when each was created (`order=desc`).
|
|
2861
|
+
* `more_projects` says the person can act on more than that; search one of
|
|
2862
|
+
* the others by naming it. A caller with access to part of a project finds
|
|
2863
|
+
* only what that access covers.
|
|
3122
2864
|
*
|
|
3123
2865
|
* Authenticate with the project secret (`oauth2`) or a console session cookie
|
|
3124
2866
|
* (`sessionCookie`). A preview secret is refused, as on every management
|
|
3125
2867
|
* operation.
|
|
3126
2868
|
*
|
|
3127
|
-
* Results come best match first, at most `limit_per_type` of each type
|
|
3128
|
-
* types can be mixed in the order.
|
|
3129
|
-
* have more to show: page those with
|
|
3130
|
-
* `queryUsers` (`POST /users/query`) or
|
|
2869
|
+
* Results come best match first, at most `limit_per_type` of each type
|
|
2870
|
+
* across every searched project, and types can be mixed in the order.
|
|
2871
|
+
* `incomplete_types` lists the types that have more to show: page those with
|
|
2872
|
+
* the type's own list, such as `queryUsers` (`POST /users/query`) or
|
|
2873
|
+
* `queryTeams` (`POST /teams/query`).
|
|
3131
2874
|
*
|
|
3132
2875
|
* How text is matched and ranked can change, and later versions can match
|
|
3133
2876
|
* more of a resource. Treat the results as suggestions; to filter by an exact
|
|
3134
2877
|
* rule, use the type's own list.
|
|
3135
|
-
* @summary Search
|
|
2878
|
+
* @summary Search projects
|
|
3136
2879
|
*/
|
|
3137
2880
|
export const search = async (searchBody: SearchBody,
|
|
3138
2881
|
params?: SearchParams, options?: Parameters<typeof customFetch>[1]): Promise<Search200> => {
|
|
3139
2882
|
|
|
3140
|
-
|
|
3141
|
-
if (!h) return {};
|
|
3142
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3143
|
-
if (Symbol.iterator in h) {
|
|
3144
|
-
return Object.fromEntries(
|
|
3145
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3146
|
-
);
|
|
3147
|
-
}
|
|
3148
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3149
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3150
|
-
if (value !== undefined) headers[name] = value;
|
|
3151
|
-
}
|
|
3152
|
-
return headers;
|
|
3153
|
-
};
|
|
3154
|
-
return customFetch<Search200>(getSearchUrl(params),
|
|
2883
|
+
return customFetch<Search200>(getSearchUrl(params),
|
|
3155
2884
|
{
|
|
3156
2885
|
...options,
|
|
3157
2886
|
method: 'POST',
|
|
3158
|
-
headers: { 'Content-Type': 'application/json',
|
|
2887
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3159
2888
|
body: JSON.stringify(searchBody)
|
|
3160
2889
|
}
|
|
3161
2890
|
);}
|
|
3162
2891
|
|
|
3163
2892
|
|
|
3164
2893
|
|
|
3165
|
-
export const
|
|
2894
|
+
export const getPublishBrandingUrl = (params: PublishBrandingParams,) => {
|
|
3166
2895
|
const normalizedParams = new URLSearchParams();
|
|
3167
2896
|
|
|
3168
2897
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3192,29 +2921,15 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams,) => {
|
|
|
3192
2921
|
* time, in `zitadel deploy` and `zitadel deploy --dry-run`.
|
|
3193
2922
|
* @summary Publish a branding revision
|
|
3194
2923
|
*/
|
|
3195
|
-
export const
|
|
3196
|
-
params:
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
if (!h) return {};
|
|
3200
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3201
|
-
if (Symbol.iterator in h) {
|
|
3202
|
-
return Object.fromEntries(
|
|
3203
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3204
|
-
);
|
|
3205
|
-
}
|
|
3206
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3207
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3208
|
-
if (value !== undefined) headers[name] = value;
|
|
3209
|
-
}
|
|
3210
|
-
return headers;
|
|
3211
|
-
};
|
|
3212
|
-
return customFetch<CreateBranding201>(getCreateBrandingUrl(params),
|
|
2924
|
+
export const publishBranding = async (publishBrandingBody: PublishBrandingBody,
|
|
2925
|
+
params: PublishBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishBranding201> => {
|
|
2926
|
+
|
|
2927
|
+
return customFetch<PublishBranding201>(getPublishBrandingUrl(params),
|
|
3213
2928
|
{
|
|
3214
2929
|
...options,
|
|
3215
2930
|
method: 'POST',
|
|
3216
|
-
headers: { 'Content-Type': 'application/json',
|
|
3217
|
-
body: JSON.stringify(
|
|
2931
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
2932
|
+
body: JSON.stringify(publishBrandingBody)
|
|
3218
2933
|
}
|
|
3219
2934
|
);}
|
|
3220
2935
|
|
|
@@ -3236,16 +2951,19 @@ export const getListBrandingUrl = (params: ListBrandingParams,) => {
|
|
|
3236
2951
|
}
|
|
3237
2952
|
|
|
3238
2953
|
/**
|
|
3239
|
-
* Lists a project's branding revisions, newest first,
|
|
3240
|
-
*
|
|
2954
|
+
* Lists a project's branding revisions, newest first, paginated with a cursor.
|
|
2955
|
+
* The first entry of the first page is the newest revision.
|
|
2956
|
+
*
|
|
2957
|
+
* Every publish adds a revision, so the list grows without bound. Pass
|
|
2958
|
+
* `next_page_token` back as `page_token` to read the next page.
|
|
3241
2959
|
*
|
|
3242
|
-
* The `id` of an entry is the revision ID that `
|
|
2960
|
+
* The `id` of an entry is the revision ID that `getBranding` (`GET /branding/{branding_id}`) takes and
|
|
3243
2961
|
* that a release pins for `kind: branding`.
|
|
3244
2962
|
* @summary List branding revisions
|
|
3245
2963
|
*/
|
|
3246
|
-
export const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<
|
|
2964
|
+
export const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<ListBranding200> => {
|
|
3247
2965
|
|
|
3248
|
-
return customFetch<
|
|
2966
|
+
return customFetch<ListBranding200>(getListBrandingUrl(params),
|
|
3249
2967
|
{
|
|
3250
2968
|
...options,
|
|
3251
2969
|
method: 'GET'
|
|
@@ -3256,22 +2974,54 @@ export const listBranding = async (params: ListBrandingParams, options?: Paramet
|
|
|
3256
2974
|
|
|
3257
2975
|
|
|
3258
2976
|
|
|
3259
|
-
export const
|
|
2977
|
+
export const getGetBrandingUrl = (brandingId: string,) => {
|
|
3260
2978
|
|
|
3261
2979
|
|
|
3262
2980
|
|
|
3263
2981
|
|
|
3264
|
-
return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(
|
|
2982
|
+
return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(brandingId))}`
|
|
3265
2983
|
}
|
|
3266
2984
|
|
|
3267
2985
|
/**
|
|
3268
2986
|
* Returns one branding revision, including its stored configuration. Pass the
|
|
3269
|
-
* `id` that `
|
|
2987
|
+
* `id` that `publishBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
|
|
3270
2988
|
* @summary Get a branding revision by ID
|
|
3271
2989
|
*/
|
|
3272
|
-
export const
|
|
2990
|
+
export const getBranding = async (brandingId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetBranding200> => {
|
|
2991
|
+
|
|
2992
|
+
return customFetch<GetBranding200>(getGetBrandingUrl(brandingId),
|
|
2993
|
+
{
|
|
2994
|
+
...options,
|
|
2995
|
+
method: 'GET'
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
}
|
|
2999
|
+
);}
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
export const getGetOAuthSettingsUrl = (oauthSettingsId: string,) => {
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
return `${getApiBaseUrl()}/oauth_settings/${encodeURIComponent(String(oauthSettingsId))}`
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* Returns one OAuth settings revision, including its stored settings. Pass
|
|
3013
|
+
* the `revision_id` of the `kind: oauth` pointer on a release, which
|
|
3014
|
+
* `buildRelease` (`POST /releases/build`) and `getRelease`
|
|
3015
|
+
* (`GET /releases/{release_id}`) return.
|
|
3016
|
+
*
|
|
3017
|
+
* A release is the only writer of OAuth settings, so there is no operation
|
|
3018
|
+
* that publishes a revision on its own: put `oauth` in the bundle that
|
|
3019
|
+
* `buildRelease` takes.
|
|
3020
|
+
* @summary Get an OAuth settings revision by ID
|
|
3021
|
+
*/
|
|
3022
|
+
export const getOAuthSettings = async (oauthSettingsId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetOAuthSettings200> => {
|
|
3273
3023
|
|
|
3274
|
-
return customFetch<
|
|
3024
|
+
return customFetch<GetOAuthSettings200>(getGetOAuthSettingsUrl(oauthSettingsId),
|
|
3275
3025
|
{
|
|
3276
3026
|
...options,
|
|
3277
3027
|
method: 'GET'
|
|
@@ -3282,7 +3032,7 @@ export const getBrandingById = async (id: string, options?: Parameters<typeof cu
|
|
|
3282
3032
|
|
|
3283
3033
|
|
|
3284
3034
|
|
|
3285
|
-
export const
|
|
3035
|
+
export const getPublishIdpUrl = (params: PublishIdpParams,) => {
|
|
3286
3036
|
const normalizedParams = new URLSearchParams();
|
|
3287
3037
|
|
|
3288
3038
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3334,29 +3084,15 @@ export const getCreateIdpUrl = (params: CreateIdpParams,) => {
|
|
|
3334
3084
|
* stays unchanged.
|
|
3335
3085
|
* @summary Create or revise an identity provider
|
|
3336
3086
|
*/
|
|
3337
|
-
export const
|
|
3338
|
-
params:
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
if (!h) return {};
|
|
3342
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3343
|
-
if (Symbol.iterator in h) {
|
|
3344
|
-
return Object.fromEntries(
|
|
3345
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3346
|
-
);
|
|
3347
|
-
}
|
|
3348
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3349
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3350
|
-
if (value !== undefined) headers[name] = value;
|
|
3351
|
-
}
|
|
3352
|
-
return headers;
|
|
3353
|
-
};
|
|
3354
|
-
return customFetch<CreateIdp200 | CreateIdp201>(getCreateIdpUrl(params),
|
|
3087
|
+
export const publishIdp = async (publishIdpBody: PublishIdpBody,
|
|
3088
|
+
params: PublishIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishIdp200 | PublishIdp201> => {
|
|
3089
|
+
|
|
3090
|
+
return customFetch<PublishIdp200 | PublishIdp201>(getPublishIdpUrl(params),
|
|
3355
3091
|
{
|
|
3356
3092
|
...options,
|
|
3357
3093
|
method: 'POST',
|
|
3358
|
-
headers: { 'Content-Type': 'application/json',
|
|
3359
|
-
body: JSON.stringify(
|
|
3094
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3095
|
+
body: JSON.stringify(publishIdpBody)
|
|
3360
3096
|
}
|
|
3361
3097
|
);}
|
|
3362
3098
|
|
|
@@ -3386,33 +3122,19 @@ export const getQueryIdpsUrl = (params: QueryIdpsParams,) => {
|
|
|
3386
3122
|
export const queryIdps = async (queryIdpsBody: QueryIdpsBody,
|
|
3387
3123
|
params: QueryIdpsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryIdps200> => {
|
|
3388
3124
|
|
|
3389
|
-
|
|
3390
|
-
if (!h) return {};
|
|
3391
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3392
|
-
if (Symbol.iterator in h) {
|
|
3393
|
-
return Object.fromEntries(
|
|
3394
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3395
|
-
);
|
|
3396
|
-
}
|
|
3397
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3398
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3399
|
-
if (value !== undefined) headers[name] = value;
|
|
3400
|
-
}
|
|
3401
|
-
return headers;
|
|
3402
|
-
};
|
|
3403
|
-
return customFetch<QueryIdps200>(getQueryIdpsUrl(params),
|
|
3125
|
+
return customFetch<QueryIdps200>(getQueryIdpsUrl(params),
|
|
3404
3126
|
{
|
|
3405
3127
|
...options,
|
|
3406
3128
|
method: 'POST',
|
|
3407
|
-
headers: { 'Content-Type': 'application/json',
|
|
3129
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3408
3130
|
body: JSON.stringify(queryIdpsBody)
|
|
3409
3131
|
}
|
|
3410
3132
|
);}
|
|
3411
3133
|
|
|
3412
3134
|
|
|
3413
3135
|
|
|
3414
|
-
export const
|
|
3415
|
-
params:
|
|
3136
|
+
export const getGetIdpUrl = (idpId: string,
|
|
3137
|
+
params: GetIdpParams,) => {
|
|
3416
3138
|
const normalizedParams = new URLSearchParams();
|
|
3417
3139
|
|
|
3418
3140
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3424,21 +3146,21 @@ export const getGetIdpByIdUrl = (id: string,
|
|
|
3424
3146
|
|
|
3425
3147
|
const stringifiedParams = normalizedParams.toString();
|
|
3426
3148
|
|
|
3427
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(
|
|
3149
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}`
|
|
3428
3150
|
}
|
|
3429
3151
|
|
|
3430
3152
|
/**
|
|
3431
3153
|
* Returns an identity provider, an external sign-in such as Google, by ID at
|
|
3432
|
-
* its newest revision. `listIdpRevisions` (`GET /idps/{
|
|
3154
|
+
* its newest revision. `listIdpRevisions` (`GET /idps/{idp_id}/revisions`) lists
|
|
3433
3155
|
* every revision of it.
|
|
3434
3156
|
*
|
|
3435
3157
|
* The lookup is scoped to the project in `project_id`.
|
|
3436
3158
|
* @summary Get an identity provider by ID
|
|
3437
3159
|
*/
|
|
3438
|
-
export const
|
|
3439
|
-
params:
|
|
3160
|
+
export const getIdp = async (idpId: string,
|
|
3161
|
+
params: GetIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdp200> => {
|
|
3440
3162
|
|
|
3441
|
-
return customFetch<
|
|
3163
|
+
return customFetch<GetIdp200>(getGetIdpUrl(idpId,params),
|
|
3442
3164
|
{
|
|
3443
3165
|
...options,
|
|
3444
3166
|
method: 'GET'
|
|
@@ -3449,7 +3171,7 @@ export const getIdpById = async (id: string,
|
|
|
3449
3171
|
|
|
3450
3172
|
|
|
3451
3173
|
|
|
3452
|
-
export const getListIdpRevisionsUrl = (
|
|
3174
|
+
export const getListIdpRevisionsUrl = (idpId: string,
|
|
3453
3175
|
params: ListIdpRevisionsParams,) => {
|
|
3454
3176
|
const normalizedParams = new URLSearchParams();
|
|
3455
3177
|
|
|
@@ -3462,7 +3184,7 @@ export const getListIdpRevisionsUrl = (id: string,
|
|
|
3462
3184
|
|
|
3463
3185
|
const stringifiedParams = normalizedParams.toString();
|
|
3464
3186
|
|
|
3465
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(
|
|
3187
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}/revisions`
|
|
3466
3188
|
}
|
|
3467
3189
|
|
|
3468
3190
|
/**
|
|
@@ -3473,10 +3195,10 @@ export const getListIdpRevisionsUrl = (id: string,
|
|
|
3473
3195
|
* The lookup is scoped to the project in `project_id`.
|
|
3474
3196
|
* @summary List the revisions of an identity provider
|
|
3475
3197
|
*/
|
|
3476
|
-
export const listIdpRevisions = async (
|
|
3198
|
+
export const listIdpRevisions = async (idpId: string,
|
|
3477
3199
|
params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListIdpRevisions200> => {
|
|
3478
3200
|
|
|
3479
|
-
return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(
|
|
3201
|
+
return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(idpId,params),
|
|
3480
3202
|
{
|
|
3481
3203
|
...options,
|
|
3482
3204
|
method: 'GET'
|
|
@@ -3487,8 +3209,8 @@ export const listIdpRevisions = async (id: string,
|
|
|
3487
3209
|
|
|
3488
3210
|
|
|
3489
3211
|
|
|
3490
|
-
export const
|
|
3491
|
-
params:
|
|
3212
|
+
export const getGetIdpRevisionUrl = (revisionId: string,
|
|
3213
|
+
params: GetIdpRevisionParams,) => {
|
|
3492
3214
|
const normalizedParams = new URLSearchParams();
|
|
3493
3215
|
|
|
3494
3216
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3511,10 +3233,10 @@ export const getGetIdpRevisionByIdUrl = (revisionId: string,
|
|
|
3511
3233
|
* The lookup is scoped to the project in `project_id`.
|
|
3512
3234
|
* @summary Get a revision of an identity provider
|
|
3513
3235
|
*/
|
|
3514
|
-
export const
|
|
3515
|
-
params:
|
|
3236
|
+
export const getIdpRevision = async (revisionId: string,
|
|
3237
|
+
params: GetIdpRevisionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpRevision200> => {
|
|
3516
3238
|
|
|
3517
|
-
return customFetch<
|
|
3239
|
+
return customFetch<GetIdpRevision200>(getGetIdpRevisionUrl(revisionId,params),
|
|
3518
3240
|
{
|
|
3519
3241
|
...options,
|
|
3520
3242
|
method: 'GET'
|
|
@@ -3525,7 +3247,7 @@ export const getIdpRevisionById = async (revisionId: string,
|
|
|
3525
3247
|
|
|
3526
3248
|
|
|
3527
3249
|
|
|
3528
|
-
export const
|
|
3250
|
+
export const getPublishApplicationUrl = (params: PublishApplicationParams,) => {
|
|
3529
3251
|
const normalizedParams = new URLSearchParams();
|
|
3530
3252
|
|
|
3531
3253
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3550,13 +3272,13 @@ export const getCreateApplicationUrl = (params: CreateApplicationParams,) => {
|
|
|
3550
3272
|
* `id`. Sending an unchanged document also creates a revision. Each client
|
|
3551
3273
|
* is matched to the stored one by its slug and keeps its `client_id`: a
|
|
3552
3274
|
* revision that changes a client's `client_id` is rejected with
|
|
3553
|
-
* `
|
|
3275
|
+
* `app.field_immutable`. A revision keeps every client of the
|
|
3554
3276
|
* stored document: one that omits a client is also rejected with
|
|
3555
|
-
* `
|
|
3277
|
+
* `app.field_immutable`, since removing a client is not available
|
|
3556
3278
|
* yet. A client with a new slug is a new client. It takes the `client_id`
|
|
3557
3279
|
* the document supplies, or the server generates one, and every response
|
|
3558
3280
|
* carries it in `definition`. A `client_id` another client of the project
|
|
3559
|
-
* holds, or ever held, is rejected with `
|
|
3281
|
+
* holds, or ever held, is rejected with `app.client_id_taken`.
|
|
3560
3282
|
*
|
|
3561
3283
|
* Every new client gets a secret, generated by the server and returned once
|
|
3562
3284
|
* in `client_secrets`. The server stores only its hash, so no later read
|
|
@@ -3567,43 +3289,29 @@ export const getCreateApplicationUrl = (params: CreateApplicationParams,) => {
|
|
|
3567
3289
|
* applies: `refresh_token` comes with `authorization_code`, a client with
|
|
3568
3290
|
* `authorization_code` has at least one redirect URI, and each redirect
|
|
3569
3291
|
* URI meets the rules `redirect_uris` states. A document that breaks one
|
|
3570
|
-
* is refused with `
|
|
3292
|
+
* is refused with `app.invalid`, whose details identify the
|
|
3571
3293
|
* setting.
|
|
3572
3294
|
*
|
|
3573
3295
|
* If the document is refused, no change is stored and an existing
|
|
3574
3296
|
* application keeps its current revision.
|
|
3575
3297
|
* @summary Create or revise a registered application
|
|
3576
3298
|
*/
|
|
3577
|
-
export const
|
|
3578
|
-
params:
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
if (!h) return {};
|
|
3582
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3583
|
-
if (Symbol.iterator in h) {
|
|
3584
|
-
return Object.fromEntries(
|
|
3585
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3586
|
-
);
|
|
3587
|
-
}
|
|
3588
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3589
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3590
|
-
if (value !== undefined) headers[name] = value;
|
|
3591
|
-
}
|
|
3592
|
-
return headers;
|
|
3593
|
-
};
|
|
3594
|
-
return customFetch<CreateApplication200 | CreateApplication201>(getCreateApplicationUrl(params),
|
|
3299
|
+
export const publishApplication = async (publishApplicationBody: PublishApplicationBody,
|
|
3300
|
+
params: PublishApplicationParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishApplication200 | PublishApplication201> => {
|
|
3301
|
+
|
|
3302
|
+
return customFetch<PublishApplication200 | PublishApplication201>(getPublishApplicationUrl(params),
|
|
3595
3303
|
{
|
|
3596
3304
|
...options,
|
|
3597
3305
|
method: 'POST',
|
|
3598
|
-
headers: { 'Content-Type': 'application/json',
|
|
3599
|
-
body: JSON.stringify(
|
|
3306
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3307
|
+
body: JSON.stringify(publishApplicationBody)
|
|
3600
3308
|
}
|
|
3601
3309
|
);}
|
|
3602
3310
|
|
|
3603
3311
|
|
|
3604
3312
|
|
|
3605
|
-
export const
|
|
3606
|
-
params:
|
|
3313
|
+
export const getGetApplicationUrl = (applicationId: string,
|
|
3314
|
+
params: GetApplicationParams,) => {
|
|
3607
3315
|
const normalizedParams = new URLSearchParams();
|
|
3608
3316
|
|
|
3609
3317
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3615,22 +3323,22 @@ export const getGetApplicationByIdUrl = (id: string,
|
|
|
3615
3323
|
|
|
3616
3324
|
const stringifiedParams = normalizedParams.toString();
|
|
3617
3325
|
|
|
3618
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/applications/${encodeURIComponent(String(
|
|
3326
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/applications/${encodeURIComponent(String(applicationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/applications/${encodeURIComponent(String(applicationId))}`
|
|
3619
3327
|
}
|
|
3620
3328
|
|
|
3621
3329
|
/**
|
|
3622
3330
|
* Returns an application that authenticates its users via Zitadel, by ID
|
|
3623
3331
|
* at its newest revision, with each client's `client_id` in `definition`. It
|
|
3624
|
-
* never returns a client secret: `
|
|
3332
|
+
* never returns a client secret: `publishApplication` (`POST /applications`)
|
|
3625
3333
|
* shows one once, when it creates the client.
|
|
3626
3334
|
*
|
|
3627
3335
|
* The lookup is scoped to the project in `project_id`.
|
|
3628
3336
|
* @summary Get an application by ID
|
|
3629
3337
|
*/
|
|
3630
|
-
export const
|
|
3631
|
-
params:
|
|
3338
|
+
export const getApplication = async (applicationId: string,
|
|
3339
|
+
params: GetApplicationParams, options?: Parameters<typeof customFetch>[1]): Promise<GetApplication200> => {
|
|
3632
3340
|
|
|
3633
|
-
return customFetch<
|
|
3341
|
+
return customFetch<GetApplication200>(getGetApplicationUrl(applicationId,params),
|
|
3634
3342
|
{
|
|
3635
3343
|
...options,
|
|
3636
3344
|
method: 'GET'
|
|
@@ -3728,25 +3436,11 @@ export const getPublishPolicyUrl = (params: PublishPolicyParams,) => {
|
|
|
3728
3436
|
export const publishPolicy = async (publishPolicyBody: PublishPolicyBody,
|
|
3729
3437
|
params: PublishPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishPolicy201> => {
|
|
3730
3438
|
|
|
3731
|
-
|
|
3732
|
-
if (!h) return {};
|
|
3733
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3734
|
-
if (Symbol.iterator in h) {
|
|
3735
|
-
return Object.fromEntries(
|
|
3736
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3737
|
-
);
|
|
3738
|
-
}
|
|
3739
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3740
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3741
|
-
if (value !== undefined) headers[name] = value;
|
|
3742
|
-
}
|
|
3743
|
-
return headers;
|
|
3744
|
-
};
|
|
3745
|
-
return customFetch<PublishPolicy201>(getPublishPolicyUrl(params),
|
|
3439
|
+
return customFetch<PublishPolicy201>(getPublishPolicyUrl(params),
|
|
3746
3440
|
{
|
|
3747
3441
|
...options,
|
|
3748
3442
|
method: 'POST',
|
|
3749
|
-
headers: { 'Content-Type': 'application/json',
|
|
3443
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3750
3444
|
body: JSON.stringify(publishPolicyBody)
|
|
3751
3445
|
}
|
|
3752
3446
|
);}
|
|
@@ -3798,25 +3492,11 @@ export const getEvaluatePolicyUrl = (params: EvaluatePolicyParams,) => {
|
|
|
3798
3492
|
export const evaluatePolicy = async (evaluatePolicyBody: EvaluatePolicyBody,
|
|
3799
3493
|
params: EvaluatePolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<EvaluatePolicy200> => {
|
|
3800
3494
|
|
|
3801
|
-
|
|
3802
|
-
if (!h) return {};
|
|
3803
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3804
|
-
if (Symbol.iterator in h) {
|
|
3805
|
-
return Object.fromEntries(
|
|
3806
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
3807
|
-
);
|
|
3808
|
-
}
|
|
3809
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
3810
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
3811
|
-
if (value !== undefined) headers[name] = value;
|
|
3812
|
-
}
|
|
3813
|
-
return headers;
|
|
3814
|
-
};
|
|
3815
|
-
return customFetch<EvaluatePolicy200>(getEvaluatePolicyUrl(params),
|
|
3495
|
+
return customFetch<EvaluatePolicy200>(getEvaluatePolicyUrl(params),
|
|
3816
3496
|
{
|
|
3817
3497
|
...options,
|
|
3818
3498
|
method: 'POST',
|
|
3819
|
-
headers: { 'Content-Type': 'application/json',
|
|
3499
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
3820
3500
|
body: JSON.stringify(evaluatePolicyBody)
|
|
3821
3501
|
}
|
|
3822
3502
|
);}
|
|
@@ -3968,7 +3648,7 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams,) => {
|
|
|
3968
3648
|
* A release is a snapshot of the project's configuration: it pins one
|
|
3969
3649
|
* revision of each resource it includes, and it is not tied to an origin.
|
|
3970
3650
|
* Take each `revision_id` from the operation that created the revision, for
|
|
3971
|
-
* example the `id` that `
|
|
3651
|
+
* example the `id` that `publishBranding` (`POST /branding`) or `publishFlowDefinition` (`POST /flow_definitions`) returns.
|
|
3972
3652
|
*
|
|
3973
3653
|
* Each revision must exist in the project and is recorded under the handle
|
|
3974
3654
|
* it declares. The release must be complete and consistent:
|
|
@@ -3994,25 +3674,11 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams,) => {
|
|
|
3994
3674
|
export const createRelease = async (createReleaseBody: CreateReleaseBody,
|
|
3995
3675
|
params: CreateReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateRelease200 | CreateRelease201> => {
|
|
3996
3676
|
|
|
3997
|
-
|
|
3998
|
-
if (!h) return {};
|
|
3999
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4000
|
-
if (Symbol.iterator in h) {
|
|
4001
|
-
return Object.fromEntries(
|
|
4002
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4003
|
-
);
|
|
4004
|
-
}
|
|
4005
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4006
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4007
|
-
if (value !== undefined) headers[name] = value;
|
|
4008
|
-
}
|
|
4009
|
-
return headers;
|
|
4010
|
-
};
|
|
4011
|
-
return customFetch<CreateRelease200 | CreateRelease201>(getCreateReleaseUrl(params),
|
|
3677
|
+
return customFetch<CreateRelease200 | CreateRelease201>(getCreateReleaseUrl(params),
|
|
4012
3678
|
{
|
|
4013
3679
|
...options,
|
|
4014
3680
|
method: 'POST',
|
|
4015
|
-
headers: { 'Content-Type': 'application/json',
|
|
3681
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4016
3682
|
body: JSON.stringify(createReleaseBody)
|
|
4017
3683
|
}
|
|
4018
3684
|
);}
|
|
@@ -4039,9 +3705,9 @@ export const getListReleasesUrl = (params: ListReleasesParams,) => {
|
|
|
4039
3705
|
* project's configuration.
|
|
4040
3706
|
*
|
|
4041
3707
|
* Entries carry the digest, the metadata and `revoked_at`. The pinned set is
|
|
4042
|
-
* omitted: read one release with `
|
|
3708
|
+
* omitted: read one release with `getRelease` (`GET /releases/{release_id}`) to get its pointers.
|
|
4043
3709
|
*
|
|
4044
|
-
* The `id` of an entry is the release ID that `
|
|
3710
|
+
* The `id` of an entry is the release ID that `getRelease`,
|
|
4045
3711
|
* `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
|
|
4046
3712
|
*
|
|
4047
3713
|
* `content_hash` looks a release up by its content, as the CLI does when a
|
|
@@ -4110,8 +3776,8 @@ export const getBuildReleaseUrl = (params: BuildReleaseParams,) => {
|
|
|
4110
3776
|
*
|
|
4111
3777
|
* Building writes revisions, so besides `release.write` it needs the write
|
|
4112
3778
|
* scope of every kind the bundle carries a resource of: `schema.write`,
|
|
4113
|
-
* `flow_definition.write`, `branding.write`, `idp.write
|
|
4114
|
-
* as the per-kind create endpoints do. A missing scope answers `403` with
|
|
3779
|
+
* `flow_definition.write`, `branding.write`, `idp.write`, `policy.write`
|
|
3780
|
+
* and `oauth_settings.write`, as the per-kind create endpoints do. A missing scope answers `403` with
|
|
4115
3781
|
* `rel.permission_denied`, naming the kind. Request a token with that scope.
|
|
4116
3782
|
* An empty kind needs no scope.
|
|
4117
3783
|
*
|
|
@@ -4123,33 +3789,19 @@ export const getBuildReleaseUrl = (params: BuildReleaseParams,) => {
|
|
|
4123
3789
|
export const buildRelease = async (buildReleaseBody: BuildReleaseBody,
|
|
4124
3790
|
params: BuildReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<BuildRelease200 | BuildRelease201> => {
|
|
4125
3791
|
|
|
4126
|
-
|
|
4127
|
-
if (!h) return {};
|
|
4128
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4129
|
-
if (Symbol.iterator in h) {
|
|
4130
|
-
return Object.fromEntries(
|
|
4131
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4132
|
-
);
|
|
4133
|
-
}
|
|
4134
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4135
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4136
|
-
if (value !== undefined) headers[name] = value;
|
|
4137
|
-
}
|
|
4138
|
-
return headers;
|
|
4139
|
-
};
|
|
4140
|
-
return customFetch<BuildRelease200 | BuildRelease201>(getBuildReleaseUrl(params),
|
|
3792
|
+
return customFetch<BuildRelease200 | BuildRelease201>(getBuildReleaseUrl(params),
|
|
4141
3793
|
{
|
|
4142
3794
|
...options,
|
|
4143
3795
|
method: 'POST',
|
|
4144
|
-
headers: { 'Content-Type': 'application/json',
|
|
3796
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4145
3797
|
body: JSON.stringify(buildReleaseBody)
|
|
4146
3798
|
}
|
|
4147
3799
|
);}
|
|
4148
3800
|
|
|
4149
3801
|
|
|
4150
3802
|
|
|
4151
|
-
export const
|
|
4152
|
-
params:
|
|
3803
|
+
export const getGetReleaseUrl = (releaseId: string,
|
|
3804
|
+
params: GetReleaseParams,) => {
|
|
4153
3805
|
const normalizedParams = new URLSearchParams();
|
|
4154
3806
|
|
|
4155
3807
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -4183,10 +3835,10 @@ export const getGetReleaseByIdUrl = (releaseId: string,
|
|
|
4183
3835
|
* caller cannot read.
|
|
4184
3836
|
* @summary Get a release by ID
|
|
4185
3837
|
*/
|
|
4186
|
-
export const
|
|
4187
|
-
params:
|
|
3838
|
+
export const getRelease = async (releaseId: string,
|
|
3839
|
+
params: GetReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<GetRelease200> => {
|
|
4188
3840
|
|
|
4189
|
-
return customFetch<
|
|
3841
|
+
return customFetch<GetRelease200>(getGetReleaseUrl(releaseId,params),
|
|
4190
3842
|
{
|
|
4191
3843
|
...options,
|
|
4192
3844
|
method: 'GET'
|
|
@@ -4275,7 +3927,7 @@ export const getCreateGrantUrl = (params: CreateGrantParams,) => {
|
|
|
4275
3927
|
* The project is the one named by the `project_id` query parameter. Name the
|
|
4276
3928
|
* principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
|
|
4277
3929
|
* `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
|
|
4278
|
-
* `getGrant` (`GET /grants/{
|
|
3930
|
+
* `getGrant` (`GET /grants/{grant_id}`) and `deleteGrant` (`DELETE /grants/{grant_id}`) take. Owning-team (`project.team`) grants are not
|
|
4279
3931
|
* created here: a claim, which attaches a project to a team, creates them.
|
|
4280
3932
|
*
|
|
4281
3933
|
* An unrevoked grant with the same principal and relation holds that binding
|
|
@@ -4300,25 +3952,11 @@ export const getCreateGrantUrl = (params: CreateGrantParams,) => {
|
|
|
4300
3952
|
export const createGrant = async (createGrantBody: CreateGrantBody,
|
|
4301
3953
|
params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateGrant201 | void> => {
|
|
4302
3954
|
|
|
4303
|
-
|
|
4304
|
-
if (!h) return {};
|
|
4305
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4306
|
-
if (Symbol.iterator in h) {
|
|
4307
|
-
return Object.fromEntries(
|
|
4308
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4309
|
-
);
|
|
4310
|
-
}
|
|
4311
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4312
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4313
|
-
if (value !== undefined) headers[name] = value;
|
|
4314
|
-
}
|
|
4315
|
-
return headers;
|
|
4316
|
-
};
|
|
4317
|
-
return customFetch<CreateGrant201 | void>(getCreateGrantUrl(params),
|
|
3955
|
+
return customFetch<CreateGrant201 | void>(getCreateGrantUrl(params),
|
|
4318
3956
|
{
|
|
4319
3957
|
...options,
|
|
4320
3958
|
method: 'POST',
|
|
4321
|
-
headers: { 'Content-Type': 'application/json',
|
|
3959
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4322
3960
|
body: JSON.stringify(createGrantBody)
|
|
4323
3961
|
}
|
|
4324
3962
|
);}
|
|
@@ -4345,7 +3983,7 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams,) => {
|
|
|
4345
3983
|
*
|
|
4346
3984
|
* Only unrevoked grants this API manages are listed, which bind a user or team
|
|
4347
3985
|
* to the viewer, editor or admin role. Expired grants are included, so a client
|
|
4348
|
-
* can revoke them with `deleteGrant` (`DELETE /grants/{
|
|
3986
|
+
* can revoke them with `deleteGrant` (`DELETE /grants/{grant_id}`) before it grants the same binding again.
|
|
4349
3987
|
* Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
|
|
4350
3988
|
* not returned. Requires `project.read`.
|
|
4351
3989
|
*
|
|
@@ -4360,32 +3998,18 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams,) => {
|
|
|
4360
3998
|
export const queryGrants = async (queryGrantsBody: QueryGrantsBody,
|
|
4361
3999
|
params: QueryGrantsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryGrants200> => {
|
|
4362
4000
|
|
|
4363
|
-
|
|
4364
|
-
if (!h) return {};
|
|
4365
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4366
|
-
if (Symbol.iterator in h) {
|
|
4367
|
-
return Object.fromEntries(
|
|
4368
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4369
|
-
);
|
|
4370
|
-
}
|
|
4371
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4372
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4373
|
-
if (value !== undefined) headers[name] = value;
|
|
4374
|
-
}
|
|
4375
|
-
return headers;
|
|
4376
|
-
};
|
|
4377
|
-
return customFetch<QueryGrants200>(getQueryGrantsUrl(params),
|
|
4001
|
+
return customFetch<QueryGrants200>(getQueryGrantsUrl(params),
|
|
4378
4002
|
{
|
|
4379
4003
|
...options,
|
|
4380
4004
|
method: 'POST',
|
|
4381
|
-
headers: { 'Content-Type': 'application/json',
|
|
4005
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4382
4006
|
body: JSON.stringify(queryGrantsBody)
|
|
4383
4007
|
}
|
|
4384
4008
|
);}
|
|
4385
4009
|
|
|
4386
4010
|
|
|
4387
4011
|
|
|
4388
|
-
export const getGetGrantUrl = (
|
|
4012
|
+
export const getGetGrantUrl = (grantId: string,
|
|
4389
4013
|
params: GetGrantParams,) => {
|
|
4390
4014
|
const normalizedParams = new URLSearchParams();
|
|
4391
4015
|
|
|
@@ -4406,7 +4030,7 @@ export const getGetGrantUrl = (id: string,
|
|
|
4406
4030
|
|
|
4407
4031
|
const stringifiedParams = normalizedParams.toString();
|
|
4408
4032
|
|
|
4409
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(
|
|
4033
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}`
|
|
4410
4034
|
}
|
|
4411
4035
|
|
|
4412
4036
|
/**
|
|
@@ -4414,7 +4038,7 @@ export const getGetGrantUrl = (id: string,
|
|
|
4414
4038
|
*
|
|
4415
4039
|
* This API manages grants that bind a user or team to the viewer, editor or
|
|
4416
4040
|
* admin role. An expired grant is still returned, so you can revoke it with
|
|
4417
|
-
* `deleteGrant` (`DELETE /grants/{
|
|
4041
|
+
* `deleteGrant` (`DELETE /grants/{grant_id}`) before you grant the same binding again. Authorization still
|
|
4418
4042
|
* ignores expired grants. Send `project_id` as well as the grant ID.
|
|
4419
4043
|
* Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
|
|
4420
4044
|
* (`relation=team`) rows and grants of another project all return `404`.
|
|
@@ -4428,10 +4052,10 @@ export const getGetGrantUrl = (id: string,
|
|
|
4428
4052
|
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
4429
4053
|
* @summary Get a grant by ID
|
|
4430
4054
|
*/
|
|
4431
|
-
export const getGrant = async (
|
|
4055
|
+
export const getGrant = async (grantId: string,
|
|
4432
4056
|
params: GetGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<GetGrant200> => {
|
|
4433
4057
|
|
|
4434
|
-
return customFetch<GetGrant200>(getGetGrantUrl(
|
|
4058
|
+
return customFetch<GetGrant200>(getGetGrantUrl(grantId,params),
|
|
4435
4059
|
{
|
|
4436
4060
|
...options,
|
|
4437
4061
|
method: 'GET'
|
|
@@ -4442,7 +4066,7 @@ export const getGrant = async (id: string,
|
|
|
4442
4066
|
|
|
4443
4067
|
|
|
4444
4068
|
|
|
4445
|
-
export const getDeleteGrantUrl = (
|
|
4069
|
+
export const getDeleteGrantUrl = (grantId: string,
|
|
4446
4070
|
params: DeleteGrantParams,) => {
|
|
4447
4071
|
const normalizedParams = new URLSearchParams();
|
|
4448
4072
|
|
|
@@ -4455,7 +4079,7 @@ export const getDeleteGrantUrl = (id: string,
|
|
|
4455
4079
|
|
|
4456
4080
|
const stringifiedParams = normalizedParams.toString();
|
|
4457
4081
|
|
|
4458
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(
|
|
4082
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}`
|
|
4459
4083
|
}
|
|
4460
4084
|
|
|
4461
4085
|
/**
|
|
@@ -4469,10 +4093,10 @@ export const getDeleteGrantUrl = (id: string,
|
|
|
4469
4093
|
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
4470
4094
|
* @summary Revoke a grant
|
|
4471
4095
|
*/
|
|
4472
|
-
export const deleteGrant = async (
|
|
4096
|
+
export const deleteGrant = async (grantId: string,
|
|
4473
4097
|
params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
4474
4098
|
|
|
4475
|
-
return customFetch<void>(getDeleteGrantUrl(
|
|
4099
|
+
return customFetch<void>(getDeleteGrantUrl(grantId,params),
|
|
4476
4100
|
{
|
|
4477
4101
|
...options,
|
|
4478
4102
|
method: 'DELETE'
|
|
@@ -4507,8 +4131,8 @@ export const getCreateInvitationUrl = (params: CreateInvitationParams,) => {
|
|
|
4507
4131
|
* and `role`, and answers `501` `not_implemented` until team invitations
|
|
4508
4132
|
* ship. Optional `metadata.name` labels who the link is for. Optional
|
|
4509
4133
|
* `replaces_invitation_id` replaces that invitation: the new row keeps the
|
|
4510
|
-
* original's `journey_id`, and
|
|
4511
|
-
* transaction.
|
|
4134
|
+
* original's `journey_id`, and the original is deleted in the same
|
|
4135
|
+
* transaction unless it was accepted.
|
|
4512
4136
|
*
|
|
4513
4137
|
* The `link` appears only in this response. Share it out of band; whoever
|
|
4514
4138
|
* opens it and is signed in can redeem the role. It expires in 72 hours.
|
|
@@ -4524,25 +4148,11 @@ export const getCreateInvitationUrl = (params: CreateInvitationParams,) => {
|
|
|
4524
4148
|
export const createInvitation = async (createInvitationBody: CreateInvitationBody,
|
|
4525
4149
|
params: CreateInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateInvitation201> => {
|
|
4526
4150
|
|
|
4527
|
-
|
|
4528
|
-
if (!h) return {};
|
|
4529
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4530
|
-
if (Symbol.iterator in h) {
|
|
4531
|
-
return Object.fromEntries(
|
|
4532
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4533
|
-
);
|
|
4534
|
-
}
|
|
4535
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4536
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4537
|
-
if (value !== undefined) headers[name] = value;
|
|
4538
|
-
}
|
|
4539
|
-
return headers;
|
|
4540
|
-
};
|
|
4541
|
-
return customFetch<CreateInvitation201>(getCreateInvitationUrl(params),
|
|
4151
|
+
return customFetch<CreateInvitation201>(getCreateInvitationUrl(params),
|
|
4542
4152
|
{
|
|
4543
4153
|
...options,
|
|
4544
4154
|
method: 'POST',
|
|
4545
|
-
headers: { 'Content-Type': 'application/json',
|
|
4155
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4546
4156
|
body: JSON.stringify(createInvitationBody)
|
|
4547
4157
|
}
|
|
4548
4158
|
);}
|
|
@@ -4553,6 +4163,14 @@ export const getListInvitationsUrl = (params: ListInvitationsParams,) => {
|
|
|
4553
4163
|
const normalizedParams = new URLSearchParams();
|
|
4554
4164
|
|
|
4555
4165
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4166
|
+
const explodeParameters = ["status","expand"];
|
|
4167
|
+
|
|
4168
|
+
if (Array.isArray(value) && explodeParameters.includes(key)) {
|
|
4169
|
+
value.forEach((v) => {
|
|
4170
|
+
normalizedParams.append(key, v === null ? 'null' : String(v));
|
|
4171
|
+
});
|
|
4172
|
+
return;
|
|
4173
|
+
}
|
|
4556
4174
|
|
|
4557
4175
|
if (value !== undefined) {
|
|
4558
4176
|
normalizedParams.append(key, value === null ? 'null' : String(value))
|
|
@@ -4568,8 +4186,11 @@ export const getListInvitationsUrl = (params: ListInvitationsParams,) => {
|
|
|
4568
4186
|
* Lists a project's invitations, newest first, in any status, paginated with
|
|
4569
4187
|
* `limit` and `page_token`.
|
|
4570
4188
|
*
|
|
4571
|
-
* Optional `status` and `type` filters narrow the page. `
|
|
4572
|
-
*
|
|
4189
|
+
* Optional `status` and `type` filters narrow the page. Repeat `status` to
|
|
4190
|
+
* match any of several statuses, for example
|
|
4191
|
+
* `status=pending&status=expired&status=rejected`. `expired` is derived on
|
|
4192
|
+
* read from `expires_at`. `expand=inviter` adds `inviter` to each
|
|
4193
|
+
* invitation. Authenticate with a project secret (`oauth2`) or
|
|
4573
4194
|
* a console session cookie (`sessionCookie`). Listing needs the same project
|
|
4574
4195
|
* `admin` check as `createGrant` (`POST /grants`).
|
|
4575
4196
|
* @summary List invitations
|
|
@@ -4603,30 +4224,16 @@ export const getLookupInvitationUrl = () => {
|
|
|
4603
4224
|
* or finished token answers the same opaque `404`. Authenticate with a
|
|
4604
4225
|
* platform-project user session cookie (`sessionCookie`). Lookup is a read:
|
|
4605
4226
|
* same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
|
|
4606
|
-
* reject still do).
|
|
4227
|
+
* reject still do).
|
|
4607
4228
|
* @summary Look up an invitation by token
|
|
4608
4229
|
*/
|
|
4609
4230
|
export const lookupInvitation = async (lookupInvitationBody: LookupInvitationBody, options?: Parameters<typeof customFetch>[1]): Promise<LookupInvitation200> => {
|
|
4610
4231
|
|
|
4611
|
-
|
|
4612
|
-
if (!h) return {};
|
|
4613
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4614
|
-
if (Symbol.iterator in h) {
|
|
4615
|
-
return Object.fromEntries(
|
|
4616
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4617
|
-
);
|
|
4618
|
-
}
|
|
4619
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4620
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4621
|
-
if (value !== undefined) headers[name] = value;
|
|
4622
|
-
}
|
|
4623
|
-
return headers;
|
|
4624
|
-
};
|
|
4625
|
-
return customFetch<LookupInvitation200>(getLookupInvitationUrl(),
|
|
4232
|
+
return customFetch<LookupInvitation200>(getLookupInvitationUrl(),
|
|
4626
4233
|
{
|
|
4627
4234
|
...options,
|
|
4628
4235
|
method: 'POST',
|
|
4629
|
-
headers: { 'Content-Type': 'application/json',
|
|
4236
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4630
4237
|
body: JSON.stringify(lookupInvitationBody)
|
|
4631
4238
|
}
|
|
4632
4239
|
);}
|
|
@@ -4653,30 +4260,16 @@ export const getAcceptInvitationUrl = () => {
|
|
|
4653
4260
|
* answers the same opaque `404`.
|
|
4654
4261
|
*
|
|
4655
4262
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
4656
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
4263
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
4657
4264
|
* @summary Accept an invitation
|
|
4658
4265
|
*/
|
|
4659
4266
|
export const acceptInvitation = async (acceptInvitationBody: AcceptInvitationBody, options?: Parameters<typeof customFetch>[1]): Promise<AcceptInvitation200> => {
|
|
4660
4267
|
|
|
4661
|
-
|
|
4662
|
-
if (!h) return {};
|
|
4663
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4664
|
-
if (Symbol.iterator in h) {
|
|
4665
|
-
return Object.fromEntries(
|
|
4666
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4667
|
-
);
|
|
4668
|
-
}
|
|
4669
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4670
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4671
|
-
if (value !== undefined) headers[name] = value;
|
|
4672
|
-
}
|
|
4673
|
-
return headers;
|
|
4674
|
-
};
|
|
4675
|
-
return customFetch<AcceptInvitation200>(getAcceptInvitationUrl(),
|
|
4268
|
+
return customFetch<AcceptInvitation200>(getAcceptInvitationUrl(),
|
|
4676
4269
|
{
|
|
4677
4270
|
...options,
|
|
4678
4271
|
method: 'POST',
|
|
4679
|
-
headers: { 'Content-Type': 'application/json',
|
|
4272
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4680
4273
|
body: JSON.stringify(acceptInvitationBody)
|
|
4681
4274
|
}
|
|
4682
4275
|
);}
|
|
@@ -4695,40 +4288,29 @@ export const getRejectInvitationUrl = () => {
|
|
|
4695
4288
|
* Declines a pending invitation for the signed-in user and returns the
|
|
4696
4289
|
* updated invitation with status `rejected`.
|
|
4697
4290
|
*
|
|
4698
|
-
* Send the plaintext token from the invitation link fragment.
|
|
4699
|
-
*
|
|
4291
|
+
* Send the plaintext token from the invitation link fragment. The
|
|
4292
|
+
* invitation keeps its metadata for administrators, but this response
|
|
4293
|
+
* returns `metadata` as null. The inviter cannot decline their own invitation; an administrator
|
|
4294
|
+
* cancels it instead. Every unknown or finished token answers the same
|
|
4295
|
+
* opaque `404`.
|
|
4700
4296
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
4701
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
4297
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
4702
4298
|
* @summary Decline an invitation
|
|
4703
4299
|
*/
|
|
4704
4300
|
export const rejectInvitation = async (rejectInvitationBody: RejectInvitationBody, options?: Parameters<typeof customFetch>[1]): Promise<RejectInvitation200> => {
|
|
4705
4301
|
|
|
4706
|
-
|
|
4707
|
-
if (!h) return {};
|
|
4708
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4709
|
-
if (Symbol.iterator in h) {
|
|
4710
|
-
return Object.fromEntries(
|
|
4711
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
4712
|
-
);
|
|
4713
|
-
}
|
|
4714
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
4715
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
4716
|
-
if (value !== undefined) headers[name] = value;
|
|
4717
|
-
}
|
|
4718
|
-
return headers;
|
|
4719
|
-
};
|
|
4720
|
-
return customFetch<RejectInvitation200>(getRejectInvitationUrl(),
|
|
4302
|
+
return customFetch<RejectInvitation200>(getRejectInvitationUrl(),
|
|
4721
4303
|
{
|
|
4722
4304
|
...options,
|
|
4723
4305
|
method: 'POST',
|
|
4724
|
-
headers: { 'Content-Type': 'application/json',
|
|
4306
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4725
4307
|
body: JSON.stringify(rejectInvitationBody)
|
|
4726
4308
|
}
|
|
4727
4309
|
);}
|
|
4728
4310
|
|
|
4729
4311
|
|
|
4730
4312
|
|
|
4731
|
-
export const getGetInvitationUrl = (
|
|
4313
|
+
export const getGetInvitationUrl = (invitationId: string,
|
|
4732
4314
|
params: GetInvitationParams,) => {
|
|
4733
4315
|
const normalizedParams = new URLSearchParams();
|
|
4734
4316
|
|
|
@@ -4741,7 +4323,7 @@ export const getGetInvitationUrl = (id: string,
|
|
|
4741
4323
|
|
|
4742
4324
|
const stringifiedParams = normalizedParams.toString();
|
|
4743
4325
|
|
|
4744
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(
|
|
4326
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`
|
|
4745
4327
|
}
|
|
4746
4328
|
|
|
4747
4329
|
/**
|
|
@@ -4753,10 +4335,10 @@ export const getGetInvitationUrl = (id: string,
|
|
|
4753
4335
|
* `createGrant` (`POST /grants`).
|
|
4754
4336
|
* @summary Get an invitation
|
|
4755
4337
|
*/
|
|
4756
|
-
export const getInvitation = async (
|
|
4338
|
+
export const getInvitation = async (invitationId: string,
|
|
4757
4339
|
params: GetInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<GetInvitation200> => {
|
|
4758
4340
|
|
|
4759
|
-
return customFetch<GetInvitation200>(getGetInvitationUrl(
|
|
4341
|
+
return customFetch<GetInvitation200>(getGetInvitationUrl(invitationId,params),
|
|
4760
4342
|
{
|
|
4761
4343
|
...options,
|
|
4762
4344
|
method: 'GET'
|
|
@@ -4767,7 +4349,7 @@ export const getInvitation = async (id: string,
|
|
|
4767
4349
|
|
|
4768
4350
|
|
|
4769
4351
|
|
|
4770
|
-
export const getCancelInvitationUrl = (
|
|
4352
|
+
export const getCancelInvitationUrl = (invitationId: string,
|
|
4771
4353
|
params: CancelInvitationParams,) => {
|
|
4772
4354
|
const normalizedParams = new URLSearchParams();
|
|
4773
4355
|
|
|
@@ -4780,14 +4362,13 @@ export const getCancelInvitationUrl = (id: string,
|
|
|
4780
4362
|
|
|
4781
4363
|
const stringifiedParams = normalizedParams.toString();
|
|
4782
4364
|
|
|
4783
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(
|
|
4365
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`
|
|
4784
4366
|
}
|
|
4785
4367
|
|
|
4786
4368
|
/**
|
|
4787
|
-
* Deletes a pending
|
|
4788
|
-
*
|
|
4789
|
-
* same opaque `404` as a miss.
|
|
4790
|
-
* later cleanup job removes them.
|
|
4369
|
+
* Deletes a pending, expired or rejected invitation, with its metadata. A
|
|
4370
|
+
* pending invitation's link can no longer be redeemed. An accepted
|
|
4371
|
+
* invitation answers the same opaque `404` as a miss.
|
|
4791
4372
|
*
|
|
4792
4373
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
4793
4374
|
* (`sessionCookie`). Cancelling needs the same project `admin` check as
|
|
@@ -4795,10 +4376,10 @@ export const getCancelInvitationUrl = (id: string,
|
|
|
4795
4376
|
* rules.
|
|
4796
4377
|
* @summary Cancel an invitation
|
|
4797
4378
|
*/
|
|
4798
|
-
export const cancelInvitation = async (
|
|
4379
|
+
export const cancelInvitation = async (invitationId: string,
|
|
4799
4380
|
params: CancelInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
4800
4381
|
|
|
4801
|
-
return customFetch<void>(getCancelInvitationUrl(
|
|
4382
|
+
return customFetch<void>(getCancelInvitationUrl(invitationId,params),
|
|
4802
4383
|
{
|
|
4803
4384
|
...options,
|
|
4804
4385
|
method: 'DELETE'
|
|
@@ -4845,13 +4426,13 @@ export const getListEventsUrl = (params: ListEventsParams,) => {
|
|
|
4845
4426
|
* credential's team. Team-scoped credentials are not issued today.
|
|
4846
4427
|
*
|
|
4847
4428
|
* Each item carries an `event_type` that says which type of event it is, and
|
|
4848
|
-
* the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{
|
|
4429
|
+
* the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{event_id}`).
|
|
4849
4430
|
*
|
|
4850
4431
|
* Filters combine. These are answered from an index and fill their pages: no
|
|
4851
4432
|
* filter, `category`, `event_type`, `status_class`, `operation_id` with or
|
|
4852
4433
|
* without `status_class`, `request_id`, `flow_id`, and `session_id`,
|
|
4853
|
-
* `entity_id`, `actor_id` or `entity_type` with or without
|
|
4854
|
-
* with or without the time bounds. Any other filter or combination is
|
|
4434
|
+
* `entity_id`, `user_id`, `actor_id` or `entity_type` with or without
|
|
4435
|
+
* `category`, each with or without the time bounds. Any other filter or combination is
|
|
4855
4436
|
* matched event by event, over at most a few thousand events per request.
|
|
4856
4437
|
* Such a page can hold fewer events than `limit`, or none, and still carry
|
|
4857
4438
|
* `next_page_token`: keep passing the token until a response has none.
|
|
@@ -4870,7 +4451,7 @@ export const listEvents = async (params: ListEventsParams, options?: Parameters<
|
|
|
4870
4451
|
|
|
4871
4452
|
|
|
4872
4453
|
|
|
4873
|
-
export const getGetEventUrl = (
|
|
4454
|
+
export const getGetEventUrl = (eventId: string,
|
|
4874
4455
|
params: GetEventParams,) => {
|
|
4875
4456
|
const normalizedParams = new URLSearchParams();
|
|
4876
4457
|
|
|
@@ -4883,7 +4464,7 @@ export const getGetEventUrl = (id: string,
|
|
|
4883
4464
|
|
|
4884
4465
|
const stringifiedParams = normalizedParams.toString();
|
|
4885
4466
|
|
|
4886
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(
|
|
4467
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(eventId))}?${stringifiedParams}` : `${getApiBaseUrl()}/events/${encodeURIComponent(String(eventId))}`
|
|
4887
4468
|
}
|
|
4888
4469
|
|
|
4889
4470
|
/**
|
|
@@ -4899,10 +4480,10 @@ export const getGetEventUrl = (id: string,
|
|
|
4899
4480
|
* platform operators read them from the start.
|
|
4900
4481
|
* @summary Get an event by ID
|
|
4901
4482
|
*/
|
|
4902
|
-
export const getEvent = async (
|
|
4483
|
+
export const getEvent = async (eventId: string,
|
|
4903
4484
|
params: GetEventParams, options?: Parameters<typeof customFetch>[1]): Promise<GetEvent200> => {
|
|
4904
4485
|
|
|
4905
|
-
return customFetch<GetEvent200>(getGetEventUrl(
|
|
4486
|
+
return customFetch<GetEvent200>(getGetEventUrl(eventId,params),
|
|
4906
4487
|
{
|
|
4907
4488
|
...options,
|
|
4908
4489
|
method: 'GET'
|
|
@@ -4913,7 +4494,7 @@ export const getEvent = async (id: string,
|
|
|
4913
4494
|
|
|
4914
4495
|
|
|
4915
4496
|
|
|
4916
|
-
export const
|
|
4497
|
+
export const getListVariablesUrl = (params: ListVariablesParams,) => {
|
|
4917
4498
|
const normalizedParams = new URLSearchParams();
|
|
4918
4499
|
|
|
4919
4500
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -4937,9 +4518,9 @@ export const getGetVariablesUrl = (params: GetVariablesParams,) => {
|
|
|
4937
4518
|
* which says a value is held without disclosing it.
|
|
4938
4519
|
* @summary Get a project's variables
|
|
4939
4520
|
*/
|
|
4940
|
-
export const
|
|
4521
|
+
export const listVariables = async (params: ListVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListVariables200> => {
|
|
4941
4522
|
|
|
4942
|
-
return customFetch<
|
|
4523
|
+
return customFetch<ListVariables200>(getListVariablesUrl(params),
|
|
4943
4524
|
{
|
|
4944
4525
|
...options,
|
|
4945
4526
|
method: 'GET'
|
|
@@ -4950,7 +4531,7 @@ export const getVariables = async (params: GetVariablesParams, options?: Paramet
|
|
|
4950
4531
|
|
|
4951
4532
|
|
|
4952
4533
|
|
|
4953
|
-
export const
|
|
4534
|
+
export const getSetVariablesUrl = (params: SetVariablesParams,) => {
|
|
4954
4535
|
const normalizedParams = new URLSearchParams();
|
|
4955
4536
|
|
|
4956
4537
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -4990,29 +4571,15 @@ export const getUpdateVariablesUrl = (params: UpdateVariablesParams,) => {
|
|
|
4990
4571
|
* `variable.removed` event. The value never appears in either.
|
|
4991
4572
|
* @summary Update a project's variables
|
|
4992
4573
|
*/
|
|
4993
|
-
export const
|
|
4994
|
-
params:
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
if (!h) return {};
|
|
4998
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4999
|
-
if (Symbol.iterator in h) {
|
|
5000
|
-
return Object.fromEntries(
|
|
5001
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
5002
|
-
);
|
|
5003
|
-
}
|
|
5004
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
5005
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
5006
|
-
if (value !== undefined) headers[name] = value;
|
|
5007
|
-
}
|
|
5008
|
-
return headers;
|
|
5009
|
-
};
|
|
5010
|
-
return customFetch<UpdateVariables200>(getUpdateVariablesUrl(params),
|
|
4574
|
+
export const setVariables = async (setVariablesBody: SetVariablesBody,
|
|
4575
|
+
params: SetVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<SetVariables200> => {
|
|
4576
|
+
|
|
4577
|
+
return customFetch<SetVariables200>(getSetVariablesUrl(params),
|
|
5011
4578
|
{
|
|
5012
4579
|
...options,
|
|
5013
4580
|
method: 'PATCH',
|
|
5014
|
-
headers: { 'Content-Type': 'application/json',
|
|
5015
|
-
body: JSON.stringify(
|
|
4581
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
4582
|
+
body: JSON.stringify(setVariablesBody)
|
|
5016
4583
|
}
|
|
5017
4584
|
);}
|
|
5018
4585
|
|
|
@@ -5039,9 +4606,9 @@ export const getGetVariableUrl = (variableName: string,
|
|
|
5039
4606
|
* holds a value per kind: `primary` for primary origins and `preview` for
|
|
5040
4607
|
* preview URLs.
|
|
5041
4608
|
*
|
|
5042
|
-
* Pass the name of a variable the project holds, as `
|
|
4609
|
+
* Pass the name of a variable the project holds, as `listVariables` (`GET /variables`) lists
|
|
5043
4610
|
* it. A name with no value for the requested kind answers `var.not_found`;
|
|
5044
|
-
* set it with `
|
|
4611
|
+
* set it with `setVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
|
|
5045
4612
|
* @summary Get a variable by name
|
|
5046
4613
|
*/
|
|
5047
4614
|
export const getVariable = async (variableName: string,
|
|
@@ -5080,9 +4647,9 @@ export const getDeleteVariableUrl = (variableName: string,
|
|
|
5080
4647
|
* records a `variable.removed` event.
|
|
5081
4648
|
*
|
|
5082
4649
|
* A name with no value for that kind answers `var.not_found`: there is
|
|
5083
|
-
* nothing to delete. `
|
|
4650
|
+
* nothing to delete. `listVariables` (`GET /variables`) lists the names the project holds. To
|
|
5084
4651
|
* remove several names in one request, or to remove a name that may already
|
|
5085
|
-
* be absent, send `null` for each name to `
|
|
4652
|
+
* be absent, send `null` for each name to `setVariables` (`PATCH /variables`).
|
|
5086
4653
|
* @summary Delete a variable by name
|
|
5087
4654
|
*/
|
|
5088
4655
|
export const deleteVariable = async (variableName: string,
|
|
@@ -5156,7 +4723,7 @@ export const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {
|
|
|
5156
4723
|
* the request.
|
|
5157
4724
|
* - `400 dep.variables_missing`: a variable the release references has no
|
|
5158
4725
|
* value for the kind. `details` names the kind and every missing variable.
|
|
5159
|
-
* Set each one for that kind with `
|
|
4726
|
+
* Set each one for that kind with `setVariables` (`PATCH /variables`), then deploy again.
|
|
5160
4727
|
* - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
|
|
5161
4728
|
* of the project, or is a loopback URL. Use a URL that matches a pattern.
|
|
5162
4729
|
* - `404 rel.not_found`: the release ID or digest names no release in this
|
|
@@ -5172,25 +4739,11 @@ export const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {
|
|
|
5172
4739
|
export const createDeployment = async (createDeploymentBody: CreateDeploymentBody,
|
|
5173
4740
|
params: CreateDeploymentParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateDeployment200 | CreateDeployment201> => {
|
|
5174
4741
|
|
|
5175
|
-
|
|
5176
|
-
if (!h) return {};
|
|
5177
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5178
|
-
if (Symbol.iterator in h) {
|
|
5179
|
-
return Object.fromEntries(
|
|
5180
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
5181
|
-
);
|
|
5182
|
-
}
|
|
5183
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
5184
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
5185
|
-
if (value !== undefined) headers[name] = value;
|
|
5186
|
-
}
|
|
5187
|
-
return headers;
|
|
5188
|
-
};
|
|
5189
|
-
return customFetch<CreateDeployment200 | CreateDeployment201>(getCreateDeploymentUrl(params),
|
|
4742
|
+
return customFetch<CreateDeployment200 | CreateDeployment201>(getCreateDeploymentUrl(params),
|
|
5190
4743
|
{
|
|
5191
4744
|
...options,
|
|
5192
4745
|
method: 'POST',
|
|
5193
|
-
headers: { 'Content-Type': 'application/json',
|
|
4746
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
5194
4747
|
body: JSON.stringify(createDeploymentBody)
|
|
5195
4748
|
}
|
|
5196
4749
|
);}
|
|
@@ -5227,7 +4780,8 @@ export const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {
|
|
|
5227
4780
|
* A deployment makes a release live on origins. By default the list is the
|
|
5228
4781
|
* history, newest first: every deployment of the project, with every target
|
|
5229
4782
|
* it made the release live on. With `origin`, it is the history of that
|
|
5230
|
-
* origin alone.
|
|
4783
|
+
* origin alone. With `release_id`, it is every deployment of that release,
|
|
4784
|
+
* superseded ones included.
|
|
5231
4785
|
*
|
|
5232
4786
|
* With `live=true`, the list is what is served now, newest first. It holds
|
|
5233
4787
|
* the project's newest primary deployment with every origin it names, an
|
|
@@ -5236,9 +4790,12 @@ export const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {
|
|
|
5236
4790
|
* deployment to each live preview URL, narrowed to the URLs it still
|
|
5237
4791
|
* serves. Combined with `origin`, it is the one deployment that origin
|
|
5238
4792
|
* serves, or empty, as it is for an origin the project no longer lists.
|
|
4793
|
+
* Combined with `release_id`, it is the deployments of the live view that
|
|
4794
|
+
* serve that release: the primary deployment only when it is of that
|
|
4795
|
+
* release, and the previews serving it.
|
|
5239
4796
|
*
|
|
5240
|
-
* The `id` of an entry is the deployment ID that `
|
|
5241
|
-
* `
|
|
4797
|
+
* The `id` of an entry is the deployment ID that `getDeployment` (`GET /deployments/{deployment_id}`),
|
|
4798
|
+
* `listDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
|
|
5242
4799
|
*
|
|
5243
4800
|
* `expand: ["release"]` embeds the release each deployment made live. It
|
|
5244
4801
|
* requires `release.read` and does not change the ordering or the page
|
|
@@ -5258,8 +4815,8 @@ export const listDeployments = async (params: ListDeploymentsParams, options?: P
|
|
|
5258
4815
|
|
|
5259
4816
|
|
|
5260
4817
|
|
|
5261
|
-
export const
|
|
5262
|
-
params:
|
|
4818
|
+
export const getGetDeploymentUrl = (deploymentId: string,
|
|
4819
|
+
params: GetDeploymentParams,) => {
|
|
5263
4820
|
const normalizedParams = new URLSearchParams();
|
|
5264
4821
|
|
|
5265
4822
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -5287,10 +4844,10 @@ export const getGetDeploymentByIdUrl = (deploymentId: string,
|
|
|
5287
4844
|
* the caller cannot read.
|
|
5288
4845
|
* @summary Get a deployment by ID
|
|
5289
4846
|
*/
|
|
5290
|
-
export const
|
|
5291
|
-
params:
|
|
4847
|
+
export const getDeployment = async (deploymentId: string,
|
|
4848
|
+
params: GetDeploymentParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeployment200> => {
|
|
5292
4849
|
|
|
5293
|
-
return customFetch<
|
|
4850
|
+
return customFetch<GetDeployment200>(getGetDeploymentUrl(deploymentId,params),
|
|
5294
4851
|
{
|
|
5295
4852
|
...options,
|
|
5296
4853
|
method: 'GET'
|
|
@@ -5362,33 +4919,19 @@ export const rollbackDeployment = async (deploymentId: string,
|
|
|
5362
4919
|
params: RollbackDeploymentParams,
|
|
5363
4920
|
rollbackDeploymentBody?: RollbackDeploymentBody, options?: Parameters<typeof customFetch>[1]): Promise<RollbackDeployment200 | RollbackDeployment201> => {
|
|
5364
4921
|
|
|
5365
|
-
|
|
5366
|
-
if (!h) return {};
|
|
5367
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5368
|
-
if (Symbol.iterator in h) {
|
|
5369
|
-
return Object.fromEntries(
|
|
5370
|
-
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
|
5371
|
-
);
|
|
5372
|
-
}
|
|
5373
|
-
const headers: Record<string, string | readonly string[]> = {};
|
|
5374
|
-
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
|
5375
|
-
if (value !== undefined) headers[name] = value;
|
|
5376
|
-
}
|
|
5377
|
-
return headers;
|
|
5378
|
-
};
|
|
5379
|
-
return customFetch<RollbackDeployment200 | RollbackDeployment201>(getRollbackDeploymentUrl(deploymentId,params),
|
|
4922
|
+
return customFetch<RollbackDeployment200 | RollbackDeployment201>(getRollbackDeploymentUrl(deploymentId,params),
|
|
5380
4923
|
{
|
|
5381
4924
|
...options,
|
|
5382
4925
|
method: 'POST',
|
|
5383
|
-
headers: { 'Content-Type': 'application/json',
|
|
4926
|
+
headers: getHeaders({ 'Content-Type': 'application/json' }, options?.headers),
|
|
5384
4927
|
body: JSON.stringify(rollbackDeploymentBody)
|
|
5385
4928
|
}
|
|
5386
4929
|
);}
|
|
5387
4930
|
|
|
5388
4931
|
|
|
5389
4932
|
|
|
5390
|
-
export const
|
|
5391
|
-
params:
|
|
4933
|
+
export const getListDeploymentVariablesUrl = (deploymentId: string,
|
|
4934
|
+
params: ListDeploymentVariablesParams,) => {
|
|
5392
4935
|
const normalizedParams = new URLSearchParams();
|
|
5393
4936
|
|
|
5394
4937
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -5411,10 +4954,10 @@ export const getGetDeploymentVariablesUrl = (deploymentId: string,
|
|
|
5411
4954
|
* Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
|
|
5412
4955
|
* @summary Get a deployment's variables
|
|
5413
4956
|
*/
|
|
5414
|
-
export const
|
|
5415
|
-
params:
|
|
4957
|
+
export const listDeploymentVariables = async (deploymentId: string,
|
|
4958
|
+
params: ListDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListDeploymentVariables200> => {
|
|
5416
4959
|
|
|
5417
|
-
return customFetch<
|
|
4960
|
+
return customFetch<ListDeploymentVariables200>(getListDeploymentVariablesUrl(deploymentId,params),
|
|
5418
4961
|
{
|
|
5419
4962
|
...options,
|
|
5420
4963
|
method: 'GET'
|