@zitadel/api 0.4.0 → 0.5.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/README.md +1 -1
- package/dist/{api-factory-C5b1Gqwv.mjs → api-factory-32Zz3s86.mjs} +8 -6
- package/dist/api-factory-32Zz3s86.mjs.map +1 -0
- package/dist/{api-factory-Dt5lUjyu.d.mts → api-factory-DbVEEqxe.d.mts} +8 -3
- package/dist/{api-factory-Dt5lUjyu.d.mts.map → api-factory-DbVEEqxe.d.mts.map} +1 -1
- package/dist/{fetch-B-lgjlrf.d.mts → fetch-BzLvdm6C.d.mts} +14 -1
- package/dist/fetch-BzLvdm6C.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +1 -1
- package/dist/generated/endpoints/zitadelNextGen.mjs +984 -625
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +9 -9
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1024 -659
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +4797 -4436
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +1 -1
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.d.mts +9 -0
- package/dist/generated/operations.d.mts.map +1 -1
- package/dist/generated/operations.mjs +266 -153
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-DGQY1rfH.d.mts → index-BX80Kl-8.d.mts} +9071 -7707
- package/dist/{index-DGQY1rfH.d.mts.map → index-BX80Kl-8.d.mts.map} +1 -1
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/api-factory.mjs +1 -1
- package/dist/runtime/config.d.mts +1 -1
- package/dist/runtime/config.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -0
- package/dist/runtime/fetch.mjs.map +1 -1
- package/dist/runtime/paging.d.mts +106 -23
- package/dist/runtime/paging.d.mts.map +1 -1
- package/dist/runtime/paging.mjs +132 -32
- package/dist/runtime/paging.mjs.map +1 -1
- package/dist/zitadelNextGen-CFrFhq_h.d.mts +1726 -0
- package/dist/zitadelNextGen-CFrFhq_h.d.mts.map +1 -0
- package/package.json +3 -3
- package/src/generated/endpoints/zitadelNextGen.faker.ts +3 -3
- package/src/generated/endpoints/zitadelNextGen.ts +1009 -650
- package/src/generated/endpoints/zitadelNextGen.zod.ts +4812 -4443
- package/src/generated/model/addOrigin201.ts +5 -0
- package/src/generated/model/addOrigin201Kind.ts +3 -0
- package/src/generated/model/addOriginBody.ts +17 -5
- package/src/generated/model/addOriginBodyKind.ts +4 -0
- package/src/generated/model/beginUserPasskeyRegistration201.ts +3 -3
- package/src/generated/model/beginUserPasskeyRegistrationBody.ts +6 -6
- package/src/generated/model/buildRelease200.ts +15 -15
- package/src/generated/model/buildRelease200Metadata.ts +8 -8
- package/src/generated/model/buildRelease200PointersItem.ts +13 -12
- package/src/generated/model/buildRelease200PointersItemKind.ts +3 -3
- package/src/generated/model/buildRelease201.ts +15 -15
- package/src/generated/model/buildRelease201Metadata.ts +8 -8
- package/src/generated/model/buildRelease201PointersItem.ts +13 -12
- package/src/generated/model/buildRelease201PointersItemKind.ts +3 -3
- package/src/generated/model/buildRelease400.ts +1 -3
- package/src/generated/model/buildRelease400DetailsResourcesItem.ts +3 -3
- package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +3 -3
- package/src/generated/model/buildReleaseBody.ts +19 -16
- package/src/generated/model/buildReleaseBodyBundle.ts +31 -28
- package/src/generated/model/buildReleaseBodyBundleBranding.ts +24 -22
- package/src/generated/model/buildReleaseBodyBundleBrandingLayout.ts +8 -7
- package/src/generated/model/buildReleaseBodyBundleBrandingShape.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleBrandingTheme.ts +5 -7
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +7 -7
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +7 -7
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +4 -4
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +47 -26
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemAudience.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +2 -2
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItem.ts +46 -28
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItem.ts +9 -7
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemKind.ts +2 -2
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +11 -10
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesKind.ts +4 -3
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitions.ts +40 -20
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsAction.ts +8 -5
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsPurpose.ts +7 -8
- package/src/generated/model/buildReleaseBodyBundleIdpsItem.ts +7 -7
- package/src/generated/model/buildReleaseBodyBundleIdpsItemClaimMapping.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleIdpsItemOidc.ts +7 -7
- package/src/generated/model/buildReleaseBodyBundleIdpsItemOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioning.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleIdpsItemVerifiedClaims.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +3 -3
- package/src/generated/model/buildReleaseBodyBundleSchemasItem.ts +23 -22
- package/src/generated/model/buildReleaseParams.ts +3 -1
- package/src/generated/model/completeClaim409.ts +2 -2
- package/src/generated/model/completeClaimBody.ts +1 -1
- package/src/generated/model/createAuthAttempt201.ts +23 -22
- package/src/generated/model/createAuthAttempt201ChallengesItem.ts +9 -7
- package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +1 -1
- package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +2 -2
- package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +5 -5
- package/src/generated/model/createAuthAttempt201State.ts +2 -2
- package/src/generated/model/createAuthAttemptBody.ts +3 -3
- package/src/generated/model/createAuthAttemptDefault.ts +63 -0
- package/src/generated/model/createBranding201.ts +10 -10
- package/src/generated/model/createBranding201Branding.ts +24 -22
- package/src/generated/model/createBranding201BrandingLayout.ts +8 -7
- package/src/generated/model/createBranding201BrandingShape.ts +1 -1
- package/src/generated/model/createBranding201BrandingTheme.ts +5 -7
- package/src/generated/model/createBranding201BrandingThemeDark.ts +7 -7
- package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/createBranding201BrandingThemeLight.ts +7 -7
- package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/createBranding201BrandingTypography.ts +4 -4
- package/src/generated/model/createBrandingBody.ts +24 -22
- package/src/generated/model/createBrandingBodyLayout.ts +8 -7
- package/src/generated/model/createBrandingBodyShape.ts +1 -1
- package/src/generated/model/createBrandingBodyTheme.ts +5 -7
- package/src/generated/model/createBrandingBodyThemeDark.ts +7 -7
- package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +63 -62
- package/src/generated/model/createBrandingBodyThemeLight.ts +7 -7
- package/src/generated/model/createBrandingBodyThemeLightPalette.ts +63 -62
- package/src/generated/model/createBrandingBodyTypography.ts +4 -4
- package/src/generated/model/createBrandingParams.ts +3 -1
- package/src/generated/model/createDeployment200.ts +16 -14
- package/src/generated/model/createDeployment200Metadata.ts +1 -1
- package/src/generated/model/createDeployment200Release.ts +15 -15
- package/src/generated/model/createDeployment200ReleaseMetadata.ts +8 -8
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +13 -12
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +3 -3
- package/src/generated/model/createDeployment200Status.ts +3 -3
- package/src/generated/model/createDeployment201.ts +16 -14
- package/src/generated/model/createDeployment201Metadata.ts +1 -1
- package/src/generated/model/createDeployment201Release.ts +15 -15
- package/src/generated/model/createDeployment201ReleaseMetadata.ts +8 -8
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +13 -12
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +3 -3
- package/src/generated/model/createDeployment201Status.ts +3 -3
- package/src/generated/model/createDeployment409.ts +41 -40
- package/src/generated/model/createDeploymentBody.ts +4 -10
- package/src/generated/model/createDeploymentParams.ts +3 -1
- package/src/generated/model/createFlow201.ts +16 -12
- package/src/generated/model/createFlow201Branding.ts +24 -22
- package/src/generated/model/createFlow201BrandingLayout.ts +8 -7
- package/src/generated/model/createFlow201BrandingShape.ts +1 -1
- package/src/generated/model/createFlow201BrandingTheme.ts +5 -7
- package/src/generated/model/createFlow201BrandingThemeDark.ts +7 -7
- package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/createFlow201BrandingThemeLight.ts +7 -7
- package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/createFlow201BrandingTypography.ts +4 -4
- package/src/generated/model/createFlow201Step.ts +36 -31
- package/src/generated/model/createFlow201StepActionsItem.ts +3 -3
- package/src/generated/model/createFlow201StepActionsItemKind.ts +1 -1
- package/src/generated/model/createFlow201StepChallenge.ts +4 -3
- package/src/generated/model/createFlow201StepComplete.ts +1 -1
- package/src/generated/model/createFlow201StepFieldsItem.ts +14 -13
- package/src/generated/model/createFlow201StepFieldsItemType.ts +1 -1
- package/src/generated/model/createFlow201StepFieldsItemValidation.ts +2 -2
- package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +1 -1
- package/src/generated/model/createFlow201StepGates.ts +10 -8
- package/src/generated/model/createFlow201StepGatesConfig.ts +1 -1
- package/src/generated/model/createFlow201StepGatesKind.ts +4 -3
- package/src/generated/model/createFlow201StepIdentifier.ts +6 -6
- package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/createFlow201StepTexts.ts +1 -1
- package/src/generated/model/createFlowBody.ts +7 -2
- package/src/generated/model/createFlowBodyHint.ts +4 -1
- package/src/generated/model/createFlowBodyPurpose.ts +3 -0
- package/src/generated/model/createFlowDefault.ts +9 -0
- package/src/generated/model/createFlowDefinition201.ts +22 -10
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +47 -26
- package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +1 -1
- package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +2 -2
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +46 -28
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +9 -7
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +2 -2
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +11 -10
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +1 -1
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +4 -3
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +40 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +8 -5
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
- package/src/generated/model/createFlowDefinition201UserSchema.ts +2 -2
- package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +2 -1
- package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +21 -20
- package/src/generated/model/createFlowDefinitionBody.ts +22 -12
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +47 -26
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +1 -1
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +2 -2
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +46 -28
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +9 -7
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +2 -2
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +11 -10
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +1 -1
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +4 -3
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +40 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +8 -5
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
- package/src/generated/model/createGrant201.ts +14 -14
- package/src/generated/model/createGrant201ObjectType.ts +1 -1
- package/src/generated/model/createGrant201Relation.ts +1 -1
- package/src/generated/model/createGrant201Team.ts +7 -7
- package/src/generated/model/createGrant201TeamStatus.ts +2 -2
- package/src/generated/model/createGrant201User.ts +5 -5
- package/src/generated/model/createGrant201UserMetadata.ts +10 -11
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/createGrantBody.ts +12 -12
- package/src/generated/model/createGrantBodyRelation.ts +1 -1
- package/src/generated/model/createGrantBodyTeam.ts +3 -3
- package/src/generated/model/createGrantBodyUser.ts +5 -5
- package/src/generated/model/createGrantDefault.ts +9 -0
- package/src/generated/model/createGrantParams.ts +3 -1
- package/src/generated/model/createHandoff200.ts +9 -10
- package/src/generated/model/createIdp200.ts +10 -9
- package/src/generated/model/createIdp200Definition.ts +7 -7
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/createIdp200DefinitionOidc.ts +7 -7
- package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/createIdp201.ts +10 -9
- package/src/generated/model/createIdp201Definition.ts +7 -7
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/createIdp201DefinitionOidc.ts +7 -7
- package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/createIdpBody.ts +1 -1
- package/src/generated/model/createIdpBodyIdp.ts +7 -7
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
- package/src/generated/model/createIdpBodyIdpOidc.ts +7 -7
- package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
- package/src/generated/model/createIdpParams.ts +3 -1
- package/src/generated/model/createProject201.ts +10 -5
- package/src/generated/model/createProject201OriginsItem.ts +17 -5
- package/src/generated/model/createProject201OriginsItemKind.ts +4 -0
- package/src/generated/model/createProjectBody.ts +5 -6
- package/src/generated/model/createProjectBodyOriginsItem.ts +17 -5
- package/src/generated/model/createProjectBodyOriginsItemKind.ts +4 -0
- package/src/generated/model/createRelease200.ts +15 -15
- package/src/generated/model/createRelease200Metadata.ts +8 -8
- package/src/generated/model/createRelease200PointersItem.ts +13 -12
- package/src/generated/model/createRelease200PointersItemKind.ts +3 -3
- package/src/generated/model/createRelease201.ts +15 -15
- package/src/generated/model/createRelease201Metadata.ts +8 -8
- package/src/generated/model/createRelease201PointersItem.ts +13 -12
- package/src/generated/model/createRelease201PointersItemKind.ts +3 -3
- package/src/generated/model/createReleaseBody.ts +7 -11
- package/src/generated/model/createReleaseBodyPointersItem.ts +8 -8
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +3 -3
- package/src/generated/model/createReleaseParams.ts +3 -1
- package/src/generated/model/createSchema201.ts +1 -1
- package/src/generated/model/createSchemaBody.ts +23 -22
- package/src/generated/model/createSchemaParams.ts +4 -2
- package/src/generated/model/createSession201.ts +8 -8
- package/src/generated/model/createSession201Session.ts +16 -16
- package/src/generated/model/createSession201SessionFactorsItem.ts +2 -2
- package/src/generated/model/createSession201SessionFactorsItemPayload.ts +5 -5
- package/src/generated/model/createSession201SessionState.ts +1 -1
- package/src/generated/model/createSession201SessionUser.ts +5 -5
- package/src/generated/model/createSessionBody.ts +1 -1
- package/src/generated/model/createTeam201.ts +2 -2
- package/src/generated/model/createTeam201Status.ts +2 -2
- package/src/generated/model/createTeamBody.ts +1 -1
- package/src/generated/model/createTeamParams.ts +3 -1
- package/src/generated/model/createUser201.ts +28 -29
- package/src/generated/model/createUser201Metadata.ts +10 -11
- package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/createUser201TeamsItem.ts +4 -4
- package/src/generated/model/createUserBody.ts +9 -8
- package/src/generated/model/createUserParams.ts +4 -2
- package/src/generated/model/deleteGrantParams.ts +3 -1
- package/src/generated/model/deleteVariableParams.ts +3 -1
- package/src/generated/model/evaluatePolicy200.ts +5 -4
- package/src/generated/model/evaluatePolicy200Violations.ts +4 -3
- package/src/generated/model/evaluatePolicyBody.ts +8 -9
- package/src/generated/model/evaluatePolicyParams.ts +3 -1
- package/src/generated/model/exchangeHandoff200.ts +8 -8
- package/src/generated/model/exchangeHandoff200Session.ts +16 -16
- package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +2 -2
- package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +5 -5
- package/src/generated/model/exchangeHandoff200SessionState.ts +1 -1
- package/src/generated/model/exchangeHandoff200SessionUser.ts +5 -5
- package/src/generated/model/exchangeHandoffBody.ts +7 -5
- package/src/generated/model/exchangeHandoffParams.ts +3 -1
- package/src/generated/model/finishUserPasskeyRegistrationBody.ts +1 -1
- package/src/generated/model/getAuthAttempt200.ts +23 -22
- package/src/generated/model/getAuthAttempt200ChallengesItem.ts +9 -7
- package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +1 -1
- package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +2 -2
- package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +5 -5
- package/src/generated/model/getAuthAttempt200State.ts +2 -2
- package/src/generated/model/getBrandingById200.ts +10 -10
- package/src/generated/model/getBrandingById200Branding.ts +24 -22
- package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -7
- package/src/generated/model/getBrandingById200BrandingShape.ts +1 -1
- package/src/generated/model/getBrandingById200BrandingTheme.ts +5 -7
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +7 -7
- package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +7 -7
- package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/getBrandingById200BrandingTypography.ts +4 -4
- package/src/generated/model/getClaimStatus200.ts +4 -5
- package/src/generated/model/getClaimStatusParams.ts +1 -1
- package/src/generated/model/getClaimWindow200.ts +6 -6
- package/src/generated/model/getClaimWindowParams.ts +1 -1
- package/src/generated/model/getDeploymentById200.ts +16 -14
- package/src/generated/model/getDeploymentById200Metadata.ts +1 -1
- package/src/generated/model/getDeploymentById200Release.ts +15 -15
- package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +8 -8
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +13 -12
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +3 -3
- package/src/generated/model/getDeploymentById200Status.ts +3 -3
- package/src/generated/model/getDeploymentByIdParams.ts +3 -1
- package/src/generated/model/getDeploymentVariablesParams.ts +3 -1
- package/src/generated/model/getEvent200.ts +1574 -1323
- package/src/generated/model/getEventParams.ts +3 -1
- package/src/generated/model/getFlowDefinition200.ts +22 -10
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +47 -26
- package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +1 -1
- package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +2 -2
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +46 -28
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +9 -7
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +2 -2
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +11 -10
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -1
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +4 -3
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +40 -20
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +8 -5
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
- package/src/generated/model/getFlowDefinition200UserSchema.ts +2 -2
- package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +2 -1
- package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +21 -20
- package/src/generated/model/getFlowStep200.ts +16 -12
- package/src/generated/model/getFlowStep200Branding.ts +24 -22
- package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -7
- package/src/generated/model/getFlowStep200BrandingShape.ts +1 -1
- package/src/generated/model/getFlowStep200BrandingTheme.ts +5 -7
- package/src/generated/model/getFlowStep200BrandingThemeDark.ts +7 -7
- package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/getFlowStep200BrandingThemeLight.ts +7 -7
- package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/getFlowStep200BrandingTypography.ts +4 -4
- package/src/generated/model/getFlowStep200Step.ts +36 -31
- package/src/generated/model/getFlowStep200StepActionsItem.ts +3 -3
- package/src/generated/model/getFlowStep200StepActionsItemKind.ts +1 -1
- package/src/generated/model/getFlowStep200StepChallenge.ts +4 -3
- package/src/generated/model/getFlowStep200StepComplete.ts +1 -1
- package/src/generated/model/getFlowStep200StepFieldsItem.ts +14 -13
- package/src/generated/model/getFlowStep200StepFieldsItemType.ts +1 -1
- package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +2 -2
- package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +1 -1
- package/src/generated/model/getFlowStep200StepGates.ts +10 -8
- package/src/generated/model/getFlowStep200StepGatesConfig.ts +1 -1
- package/src/generated/model/getFlowStep200StepGatesKind.ts +4 -3
- package/src/generated/model/getFlowStep200StepIdentifier.ts +6 -6
- package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/getFlowStep200StepTexts.ts +1 -1
- package/src/generated/model/getFlowStepDefault.ts +18 -0
- package/src/generated/model/getGrant200.ts +14 -14
- package/src/generated/model/getGrant200ObjectType.ts +1 -1
- package/src/generated/model/getGrant200Relation.ts +1 -1
- package/src/generated/model/getGrant200Team.ts +7 -7
- package/src/generated/model/getGrant200TeamStatus.ts +2 -2
- package/src/generated/model/getGrant200User.ts +5 -5
- package/src/generated/model/getGrant200UserMetadata.ts +10 -11
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/getGrantDefault.ts +0 -9
- package/src/generated/model/getGrantExpandItem.ts +8 -5
- package/src/generated/model/getGrantParams.ts +6 -3
- package/src/generated/model/getIdpById200.ts +10 -9
- package/src/generated/model/getIdpById200Definition.ts +7 -7
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/getIdpById200DefinitionOidc.ts +7 -7
- package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/getIdpByIdParams.ts +3 -1
- package/src/generated/model/getIdpRevisionById200.ts +10 -9
- package/src/generated/model/getIdpRevisionById200Definition.ts +7 -7
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +7 -7
- package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/getIdpRevisionByIdParams.ts +3 -1
- package/src/generated/model/getMyPasswordState200.ts +2 -2
- package/src/generated/model/getMySession200.ts +16 -16
- package/src/generated/model/getMySession200FactorsItem.ts +2 -2
- package/src/generated/model/getMySession200FactorsItemPayload.ts +5 -5
- package/src/generated/model/getMySession200State.ts +1 -1
- package/src/generated/model/getMySession200User.ts +5 -5
- package/src/generated/model/getMySessionCsrfToken200.ts +1 -1
- package/src/generated/model/getMyUser200.ts +28 -29
- package/src/generated/model/getMyUser200Metadata.ts +10 -11
- package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/getMyUser200TeamsItem.ts +4 -4
- package/src/generated/model/getMyUserSchema200.ts +4 -4
- package/src/generated/model/getMyUserSchema200Metadata.ts +2 -1
- package/src/generated/model/getMyUserSchema200Schema.ts +21 -20
- package/src/generated/model/getPolicy200.ts +3 -3
- package/src/generated/model/getPolicyParams.ts +3 -1
- package/src/generated/model/getPolicyRevision200.ts +3 -3
- package/src/generated/model/getPolicyRevisionParams.ts +3 -1
- package/src/generated/model/getProject200.ts +34 -30
- package/src/generated/model/getReleaseById200.ts +15 -15
- package/src/generated/model/getReleaseById200Metadata.ts +8 -8
- package/src/generated/model/getReleaseById200PointersItem.ts +13 -12
- package/src/generated/model/getReleaseById200PointersItemKind.ts +3 -3
- package/src/generated/model/getReleaseByIdParams.ts +3 -1
- package/src/generated/model/getSchemaById200.ts +4 -4
- package/src/generated/model/getSchemaById200Metadata.ts +2 -1
- package/src/generated/model/getSchemaById200Schema.ts +21 -20
- package/src/generated/model/getSchemaByIdParams.ts +3 -3
- package/src/generated/model/getSession200.ts +16 -16
- package/src/generated/model/getSession200FactorsItem.ts +2 -2
- package/src/generated/model/getSession200FactorsItemPayload.ts +5 -5
- package/src/generated/model/getSession200State.ts +1 -1
- package/src/generated/model/getSession200User.ts +5 -5
- package/src/generated/model/getTeam200.ts +2 -2
- package/src/generated/model/getTeam200Status.ts +2 -2
- package/src/generated/model/getUserByID200.ts +28 -29
- package/src/generated/model/getUserByID200Metadata.ts +10 -11
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/getUserByID200TeamsItem.ts +4 -4
- package/src/generated/model/getUserByIDParams.ts +4 -3
- package/src/generated/model/getUserPasswordState200.ts +2 -2
- package/src/generated/model/getVariable200.ts +4 -4
- package/src/generated/model/getVariable200Preview.ts +2 -2
- package/src/generated/model/getVariable200Primary.ts +2 -2
- package/src/generated/model/getVariableParams.ts +3 -1
- package/src/generated/model/getVariables200.ts +4 -4
- package/src/generated/model/getVariables200Preview.ts +2 -2
- package/src/generated/model/getVariables200Primary.ts +2 -2
- package/src/generated/model/getVariablesParams.ts +3 -1
- package/src/generated/model/initClaim201.ts +3 -3
- package/src/generated/model/initClaim409.ts +2 -2
- package/src/generated/model/issueChallenge201.ts +9 -7
- package/src/generated/model/issueChallenge201State.ts +1 -1
- package/src/generated/model/issueChallengeBody.ts +2 -2
- package/src/generated/model/listBrandingParams.ts +3 -1
- package/src/generated/model/listDeployments200DeploymentsItem.ts +16 -14
- package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +1 -1
- package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +15 -15
- package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +8 -8
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +13 -12
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +3 -3
- package/src/generated/model/listDeployments200DeploymentsItemStatus.ts +3 -3
- package/src/generated/model/listDeploymentsExpandItem.ts +4 -4
- package/src/generated/model/listDeploymentsParams.ts +3 -1
- package/src/generated/model/listEvents200.ts +1 -1
- package/src/generated/model/listEvents200DataItem.ts +1574 -1323
- package/src/generated/model/listEventsParams.ts +34 -6
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +22 -10
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +47 -26
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +1 -1
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +46 -28
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +9 -7
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +11 -10
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -1
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +4 -3
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +40 -20
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +8 -5
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +2 -1
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +21 -20
- package/src/generated/model/listFlowDefinitionsExpandItem.ts +2 -2
- package/src/generated/model/listFlowDefinitionsParams.ts +8 -6
- package/src/generated/model/listIdpRevisions200.ts +1 -2
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +10 -9
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +7 -7
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +7 -7
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/listIdpRevisionsParams.ts +3 -1
- package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +2 -2
- package/src/generated/model/listMyProjects200.ts +1 -1
- package/src/generated/model/listMyProjects200ProjectsItem.ts +2 -3
- package/src/generated/model/listMyProjects200ProjectsItemOriginsItem.ts +17 -5
- package/src/generated/model/listMyProjects200ProjectsItemOriginsItemKind.ts +4 -0
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +12 -15
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +15 -18
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
- package/src/generated/model/listMyTeams200TeamsItem.ts +4 -4
- package/src/generated/model/listPolicies200.ts +2 -2
- package/src/generated/model/listPolicies200PoliciesItem.ts +3 -3
- package/src/generated/model/listPoliciesParams.ts +3 -1
- package/src/generated/model/listPolicyRevisions200.ts +1 -1
- package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +3 -3
- package/src/generated/model/listPolicyRevisionsParams.ts +3 -1
- package/src/generated/model/listPreviews200PreviewsItem.ts +4 -5
- package/src/generated/model/listProjectAdmins200AdminsItem.ts +3 -3
- package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +13 -15
- package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +5 -5
- package/src/generated/model/listReleases200.ts +1 -1
- package/src/generated/model/listReleases200ReleasesItem.ts +4 -4
- package/src/generated/model/listReleases200ReleasesItemMetadata.ts +8 -8
- package/src/generated/model/listReleasesParams.ts +4 -2
- package/src/generated/model/listSchemas200.ts +1 -1
- package/src/generated/model/listSchemas200SchemasItem.ts +4 -4
- package/src/generated/model/listSchemas200SchemasItemMetadata.ts +2 -1
- package/src/generated/model/listSchemas200SchemasItemSchema.ts +21 -20
- package/src/generated/model/listSchemasExpandItem.ts +2 -2
- package/src/generated/model/listSchemasParams.ts +7 -5
- package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +2 -2
- package/src/generated/model/listUserTeams200TeamsItem.ts +4 -4
- package/src/generated/model/patchMyUser200.ts +28 -29
- package/src/generated/model/patchMyUser200Metadata.ts +10 -11
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/patchMyUser200TeamsItem.ts +4 -4
- package/src/generated/model/patchMyUserBody.ts +2 -2
- package/src/generated/model/patchProject200.ts +34 -30
- package/src/generated/model/patchProjectBody.ts +3 -3
- package/src/generated/model/patchProjectBodyPasswordHash.ts +15 -18
- package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +1 -1
- package/src/generated/model/patchProjectBodyPasswordHashParams.ts +15 -18
- package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +4 -4
- package/src/generated/model/patchUserByID200.ts +28 -29
- package/src/generated/model/patchUserByID200Metadata.ts +10 -11
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/patchUserByID200TeamsItem.ts +4 -4
- package/src/generated/model/patchUserByIDBody.ts +21 -13
- package/src/generated/model/publishPolicy201.ts +3 -3
- package/src/generated/model/publishPolicyBody.ts +3 -3
- package/src/generated/model/publishPolicyParams.ts +3 -1
- package/src/generated/model/queryGrants200GrantsItem.ts +14 -14
- package/src/generated/model/queryGrants200GrantsItemObjectType.ts +1 -1
- package/src/generated/model/queryGrants200GrantsItemRelation.ts +1 -1
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +7 -7
- package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +2 -2
- package/src/generated/model/queryGrants200GrantsItemUser.ts +5 -5
- package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +10 -11
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/queryGrantsBody.ts +2 -3
- package/src/generated/model/queryGrantsBodyExpandItem.ts +8 -5
- package/src/generated/model/queryGrantsBodyFilterItem.ts +3 -5
- package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +1 -2
- package/src/generated/model/queryGrantsDefault.ts +0 -9
- package/src/generated/model/queryGrantsParams.ts +3 -1
- package/src/generated/model/queryIdps200.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItem.ts +10 -9
- package/src/generated/model/queryIdps200IdpsItemDefinition.ts +7 -7
- package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +7 -7
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/queryIdpsBody.ts +2 -2
- package/src/generated/model/queryIdpsBodyFilterItem.ts +5 -7
- package/src/generated/model/queryIdpsBodyFilterItemField.ts +2 -2
- package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +1 -2
- package/src/generated/model/queryIdpsBodySorting.ts +2 -2
- package/src/generated/model/queryIdpsBodySortingField.ts +2 -2
- package/src/generated/model/queryIdpsParams.ts +3 -1
- package/src/generated/model/queryProjects200ProjectsItem.ts +2 -3
- package/src/generated/model/queryProjects200ProjectsItemOriginsItem.ts +17 -5
- package/src/generated/model/queryProjects200ProjectsItemOriginsItemKind.ts +4 -0
- package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +12 -15
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +15 -18
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
- package/src/generated/model/queryProjectsBodyFilterItem.ts +3 -5
- package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +1 -2
- package/src/generated/model/querySessions200SessionsItem.ts +16 -16
- package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +2 -2
- package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +5 -5
- package/src/generated/model/querySessions200SessionsItemState.ts +1 -1
- package/src/generated/model/querySessions200SessionsItemUser.ts +5 -5
- package/src/generated/model/querySessionsBodyFilterItem.ts +4 -6
- package/src/generated/model/querySessionsBodyFilterItemField.ts +1 -1
- package/src/generated/model/querySessionsBodyFilterItemOperation.ts +1 -2
- package/src/generated/model/querySessionsBodySorting.ts +2 -3
- package/src/generated/model/querySessionsBodySortingField.ts +2 -3
- package/src/generated/model/querySessionsParams.ts +3 -1
- package/src/generated/model/queryTeams200TeamsItem.ts +2 -2
- package/src/generated/model/queryTeams200TeamsItemStatus.ts +2 -2
- package/src/generated/model/queryTeamsBodyFilterItem.ts +3 -5
- package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +1 -2
- package/src/generated/model/queryTeamsParams.ts +2 -2
- package/src/generated/model/queryUsers200UsersItem.ts +28 -29
- package/src/generated/model/queryUsers200UsersItemMetadata.ts +10 -11
- package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +11 -12
- package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +2 -2
- package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +4 -4
- package/src/generated/model/queryUsersBody.ts +2 -2
- package/src/generated/model/queryUsersBodyExpandItem.ts +8 -8
- package/src/generated/model/queryUsersBodyFilterItem.ts +13 -16
- package/src/generated/model/queryUsersBodyFilterItemField.ts +10 -11
- package/src/generated/model/queryUsersBodyFilterItemOperation.ts +1 -2
- package/src/generated/model/queryUsersBodySorting.ts +4 -5
- package/src/generated/model/queryUsersBodySortingField.ts +4 -5
- package/src/generated/model/queryUsersParams.ts +2 -2
- package/src/generated/model/removeOriginBody.ts +2 -2
- package/src/generated/model/revokeRelease200.ts +15 -15
- package/src/generated/model/revokeRelease200Metadata.ts +8 -8
- package/src/generated/model/revokeRelease200PointersItem.ts +13 -12
- package/src/generated/model/revokeRelease200PointersItemKind.ts +3 -3
- package/src/generated/model/revokeReleaseParams.ts +3 -1
- package/src/generated/model/rollbackDeployment200.ts +16 -14
- package/src/generated/model/rollbackDeployment200Metadata.ts +1 -1
- package/src/generated/model/rollbackDeployment200Release.ts +15 -15
- package/src/generated/model/rollbackDeployment200ReleaseMetadata.ts +8 -8
- package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +13 -12
- package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +3 -3
- package/src/generated/model/rollbackDeployment200Status.ts +3 -3
- package/src/generated/model/rollbackDeployment201.ts +16 -14
- package/src/generated/model/rollbackDeployment201Metadata.ts +1 -1
- package/src/generated/model/rollbackDeployment201Release.ts +15 -15
- package/src/generated/model/rollbackDeployment201ReleaseMetadata.ts +8 -8
- package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +13 -12
- package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +3 -3
- package/src/generated/model/rollbackDeployment201Status.ts +3 -3
- package/src/generated/model/rollbackDeployment409.ts +41 -40
- package/src/generated/model/rollbackDeploymentParams.ts +3 -1
- package/src/generated/model/setUserPasswordBody.ts +1 -1
- package/src/generated/model/setUserPasswordDefault.ts +63 -0
- package/src/generated/model/submitFlowStep200.ts +16 -12
- package/src/generated/model/submitFlowStep200Branding.ts +24 -22
- package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -7
- package/src/generated/model/submitFlowStep200BrandingShape.ts +1 -1
- package/src/generated/model/submitFlowStep200BrandingTheme.ts +5 -7
- package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +7 -7
- package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +7 -7
- package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/submitFlowStep200BrandingTypography.ts +4 -4
- package/src/generated/model/submitFlowStep200Step.ts +36 -31
- package/src/generated/model/submitFlowStep200StepActionsItem.ts +3 -3
- package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +1 -1
- package/src/generated/model/submitFlowStep200StepChallenge.ts +4 -3
- package/src/generated/model/submitFlowStep200StepComplete.ts +1 -1
- package/src/generated/model/submitFlowStep200StepFieldsItem.ts +14 -13
- package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +1 -1
- package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +2 -2
- package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +1 -1
- package/src/generated/model/submitFlowStep200StepGates.ts +10 -8
- package/src/generated/model/submitFlowStep200StepGatesConfig.ts +1 -1
- package/src/generated/model/submitFlowStep200StepGatesKind.ts +4 -3
- package/src/generated/model/submitFlowStep200StepIdentifier.ts +6 -6
- package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/submitFlowStep200StepTexts.ts +1 -1
- package/src/generated/model/submitFlowStep400.ts +16 -12
- package/src/generated/model/submitFlowStep400Branding.ts +24 -22
- package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -7
- package/src/generated/model/submitFlowStep400BrandingShape.ts +1 -1
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +5 -7
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +7 -7
- package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +63 -62
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +7 -7
- package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +63 -62
- package/src/generated/model/submitFlowStep400BrandingTypography.ts +4 -4
- package/src/generated/model/submitFlowStep400Step.ts +36 -31
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +3 -3
- package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +1 -1
- package/src/generated/model/submitFlowStep400StepChallenge.ts +4 -3
- package/src/generated/model/submitFlowStep400StepComplete.ts +1 -1
- package/src/generated/model/submitFlowStep400StepFieldsItem.ts +14 -13
- package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +1 -1
- package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +2 -2
- package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +1 -1
- package/src/generated/model/submitFlowStep400StepGates.ts +10 -8
- package/src/generated/model/submitFlowStep400StepGatesConfig.ts +1 -1
- package/src/generated/model/submitFlowStep400StepGatesKind.ts +4 -3
- package/src/generated/model/submitFlowStep400StepIdentifier.ts +6 -6
- package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/submitFlowStep400StepTexts.ts +1 -1
- package/src/generated/model/submitFlowStepBody.ts +10 -7
- package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +2 -2
- package/src/generated/model/submitFlowStepBodyGateProofs.ts +1 -1
- package/src/generated/model/submitFlowStepDefault.ts +18 -0
- package/src/generated/model/updateTeam200.ts +2 -2
- package/src/generated/model/updateTeam200Status.ts +2 -2
- package/src/generated/model/updateTeamBody.ts +1 -1
- package/src/generated/model/updateVariables200.ts +4 -4
- package/src/generated/model/updateVariables200Preview.ts +2 -2
- package/src/generated/model/updateVariables200Primary.ts +2 -2
- package/src/generated/model/updateVariablesBody.ts +14 -14
- package/src/generated/model/updateVariablesParams.ts +3 -1
- package/src/generated/model/userProperty.ts +5 -8
- package/src/generated/model/userPropertyProperties.ts +2 -2
- package/src/generated/model/userPropertyXUnique.ts +1 -1
- package/src/generated/model/verifyChallengeProof200.ts +23 -22
- package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +9 -7
- package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +1 -1
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +2 -2
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +5 -5
- package/src/generated/model/verifyChallengeProof200State.ts +2 -2
- package/src/generated/model/verifyChallengeProofBody.ts +2 -2
- package/src/generated/operations.ts +277 -152
- package/src/runtime/api-factory.spec.ts +50 -0
- package/src/runtime/api-factory.ts +11 -2
- package/src/runtime/base-url.spec.ts +1 -1
- package/src/runtime/fetch.ts +16 -0
- package/src/runtime/paged.spec.ts +11 -0
- package/src/runtime/paged.ts +9 -8
- package/src/runtime/paging.spec.ts +164 -39
- package/src/runtime/paging.ts +162 -43
- package/dist/api-factory-C5b1Gqwv.mjs.map +0 -1
- package/dist/fetch-B-lgjlrf.d.mts.map +0 -1
- package/dist/zitadelNextGen-BVO4sdKD.d.mts +0 -1367
- package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +0 -1
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
import * as zod from "zod";
|
|
2
2
|
//#region src/generated/endpoints/zitadelNextGen.zod.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* Answers `ok` while the server process serves HTTP, and checks nothing
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
4
|
+
* Answers `ok` while the server process serves HTTP, and checks nothing
|
|
5
|
+
* behind it.
|
|
6
|
+
*
|
|
7
|
+
* A liveness probe tells an orchestrator such as Kubernetes whether to
|
|
8
|
+
* restart the process. Point it at `/livez` at the root, where the probes
|
|
9
|
+
* stay, not under `/api/v1`. It never checks the database, so an outage of
|
|
10
|
+
* the database does not restart every instance. `GET /readyz` takes an
|
|
11
|
+
* instance out of rotation instead.
|
|
12
|
+
* @summary Check the server's liveness
|
|
11
13
|
*/
|
|
12
14
|
export declare const GetLiveResponse: zod.ZodString;
|
|
13
15
|
/**
|
|
14
|
-
* Answers
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Answers `ok` when the server can serve requests, which takes its database
|
|
17
|
+
* answering within a second, and `fail` with `503` otherwise.
|
|
18
|
+
*
|
|
19
|
+
* A readiness probe tells an orchestrator such as Kubernetes whether to send
|
|
20
|
+
* the instance requests. Point it at `/readyz` at the root, where the probes
|
|
21
|
+
* stay, not under `/api/v1`, so that a server whose database does not answer
|
|
22
|
+
* gets no requests until it does. The check is one round trip to the
|
|
23
|
+
* database.
|
|
24
|
+
* @summary Check the server's readiness
|
|
20
25
|
*/
|
|
21
26
|
export declare const GetReadyResponse: zod.ZodString;
|
|
22
27
|
/**
|
|
23
|
-
* Creates a user whose attributes satisfy the user schema the request
|
|
24
|
-
*
|
|
25
|
-
* The server assigns the user's
|
|
26
|
-
*
|
|
27
|
-
* user
|
|
28
|
-
*
|
|
28
|
+
* Creates a user whose attributes satisfy the user schema named in the request.
|
|
29
|
+
*
|
|
30
|
+
* The server assigns the user's ID and returns it. `schema` is the `id` of a
|
|
31
|
+
* schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
|
|
32
|
+
* `team_id`, the user also becomes an active member of that team. A value the
|
|
33
|
+
* schema marks unique that another user already holds is refused with `409`;
|
|
34
|
+
* send a different value.
|
|
35
|
+
* @summary Create a user
|
|
29
36
|
*/
|
|
30
37
|
export declare const createUserQueryProjectIdRegExp: RegExp;
|
|
31
38
|
export declare const createUserQueryTeamIdRegExp: RegExp;
|
|
@@ -85,9 +92,15 @@ export declare const CreateUserResponse: zod.ZodObject<{
|
|
|
85
92
|
* `project_id` names the project to list; without it, the credential's own
|
|
86
93
|
* project is listed.
|
|
87
94
|
*
|
|
88
|
-
* Accepts either a project secret (`oauth2`) or a user-bound
|
|
95
|
+
* Accepts either a project secret (`oauth2`) or a user-bound console
|
|
89
96
|
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
90
97
|
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
98
|
+
*
|
|
99
|
+
* With a project secret, embedding `teams` with `expand`, or filtering by
|
|
100
|
+
* `team_id`, also needs `team_membership.read`. Embedding
|
|
101
|
+
* `lifecycle_owner_team` needs `team.read`. A console session carries no
|
|
102
|
+
* scopes: it may do both when it may read the whole project, and gets
|
|
103
|
+
* `403 user.permission_denied` otherwise.
|
|
91
104
|
* @summary Query users
|
|
92
105
|
*/
|
|
93
106
|
export declare const queryUsersQueryProjectIdRegExp: RegExp;
|
|
@@ -185,11 +198,11 @@ export declare const QueryUsersResponse: zod.ZodObject<{
|
|
|
185
198
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
186
199
|
}, zod.z.core.$strip>;
|
|
187
200
|
/**
|
|
188
|
-
* Returns a user by
|
|
201
|
+
* Returns a user by ID, with the attributes its schema defines.
|
|
189
202
|
*
|
|
190
|
-
* With `team_id`, the user is returned only while they are an active member
|
|
191
|
-
* that team.
|
|
192
|
-
* @summary Get user by ID
|
|
203
|
+
* With `team_id`, the user is returned only while they are an active member
|
|
204
|
+
* of that team.
|
|
205
|
+
* @summary Get a user by ID
|
|
193
206
|
*/
|
|
194
207
|
export declare const getUserByIDPathUserIdRegExp: RegExp;
|
|
195
208
|
export declare const GetUserByIDParams: zod.ZodObject<{
|
|
@@ -246,7 +259,20 @@ export declare const GetUserByIDResponse: zod.ZodObject<{
|
|
|
246
259
|
* moves the user to another registered schema. The merged result is
|
|
247
260
|
* validated against the schema before commit. Concurrent writes are
|
|
248
261
|
* last-write-wins.
|
|
249
|
-
*
|
|
262
|
+
*
|
|
263
|
+
* To move the user, send `schema` with the `id` of a registered schema, as
|
|
264
|
+
* `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
|
|
265
|
+
*
|
|
266
|
+
* To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
|
|
267
|
+
* the same permission and answers the same status and `details` as the real
|
|
268
|
+
* request, and it changes nothing and emits no `user.updated`. The request
|
|
269
|
+
* itself is still recorded as `request.api`, like any other API call. A `200`
|
|
270
|
+
* holds for the moment of the check: a unique value that is free then can be
|
|
271
|
+
* taken before the real request, which then answers `409`.
|
|
272
|
+
*
|
|
273
|
+
* `dry_run` is a body field so that a server from before it refuses the
|
|
274
|
+
* request as malformed (`400 req.invalid`) instead of applying the patch.
|
|
275
|
+
* @summary Update a user by ID
|
|
250
276
|
*/
|
|
251
277
|
export declare const patchUserByIDPathUserIdRegExp: RegExp;
|
|
252
278
|
export declare const PatchUserByIDParams: zod.ZodObject<{
|
|
@@ -254,6 +280,7 @@ export declare const PatchUserByIDParams: zod.ZodObject<{
|
|
|
254
280
|
}, zod.z.core.$strip>;
|
|
255
281
|
export declare const PatchUserByIDBody: zod.ZodObject<{
|
|
256
282
|
schema: zod.ZodOptional<zod.ZodString>;
|
|
283
|
+
dry_run: zod.ZodOptional<zod.ZodBoolean>;
|
|
257
284
|
attributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
258
285
|
}, zod.z.core.$strip>;
|
|
259
286
|
export declare const patchUserByIDResponseIdRegExp: RegExp;
|
|
@@ -308,7 +335,7 @@ export declare const PatchUserByIDResponse: zod.ZodObject<{
|
|
|
308
335
|
* in no project succeeds without changing anything. Deleting the last active
|
|
309
336
|
* member of a project's owning team returns 409 `proj.last_owner` and changes
|
|
310
337
|
* nothing.
|
|
311
|
-
* @summary Delete user by ID
|
|
338
|
+
* @summary Delete a user by ID
|
|
312
339
|
*/
|
|
313
340
|
export declare const deleteUserByIDPathUserIdRegExp: RegExp;
|
|
314
341
|
export declare const DeleteUserByIDParams: zod.ZodObject<{
|
|
@@ -316,8 +343,9 @@ export declare const DeleteUserByIDParams: zod.ZodObject<{
|
|
|
316
343
|
}, zod.z.core.$strip>;
|
|
317
344
|
export declare const DeleteUserByIDResponse: zod.ZodVoid;
|
|
318
345
|
/**
|
|
319
|
-
*
|
|
320
|
-
* The provider's subject and claims
|
|
346
|
+
* Lists the identity provider accounts a sign-in linked to the user, oldest
|
|
347
|
+
* first. The provider's subject and claims, the data it asserts about the
|
|
348
|
+
* account, are never returned.
|
|
321
349
|
* @summary List the provider accounts linked to a user
|
|
322
350
|
*/
|
|
323
351
|
export declare const listUserIdentityLinksPathUserIdRegExp: RegExp;
|
|
@@ -339,12 +367,13 @@ export declare const ListUserIdentityLinksResponse: zod.ZodObject<{
|
|
|
339
367
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
340
368
|
}, zod.z.core.$strip>;
|
|
341
369
|
/**
|
|
342
|
-
*
|
|
343
|
-
* cursor.
|
|
370
|
+
* Lists the passkeys registered for a user, newest first, paginated with a
|
|
371
|
+
* cursor. A passkey is a WebAuthn credential that signs a user in without a
|
|
372
|
+
* password.
|
|
344
373
|
*
|
|
345
|
-
* Each passkey carries its
|
|
374
|
+
* Each passkey carries its ID, its name and when it was registered, never the
|
|
346
375
|
* credential itself.
|
|
347
|
-
* @summary List user passkeys
|
|
376
|
+
* @summary List a user's passkeys
|
|
348
377
|
*/
|
|
349
378
|
export declare const listUserPasskeysPathUserIdRegExp: RegExp;
|
|
350
379
|
export declare const ListUserPasskeysParams: zod.ZodObject<{
|
|
@@ -366,11 +395,15 @@ export declare const ListUserPasskeysResponse: zod.ZodObject<{
|
|
|
366
395
|
}, zod.z.core.$strip>;
|
|
367
396
|
/**
|
|
368
397
|
* Starts a WebAuthn registration ceremony for the user and returns the
|
|
369
|
-
* creation options for `navigator.credentials.create()`.
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
398
|
+
* creation options for `navigator.credentials.create()`. A passkey is
|
|
399
|
+
* registered in two steps: this one returns options for the browser, and
|
|
400
|
+
* `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
|
|
401
|
+
*
|
|
402
|
+
* Complete the ceremony with
|
|
403
|
+
* `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
|
|
404
|
+
* minutes, using the `registration_id` this response returns. Credentials
|
|
405
|
+
* already registered for the user are excluded automatically.
|
|
406
|
+
* @summary Begin a passkey registration
|
|
374
407
|
*/
|
|
375
408
|
export declare const beginUserPasskeyRegistrationPathUserIdRegExp: RegExp;
|
|
376
409
|
export declare const BeginUserPasskeyRegistrationParams: zod.ZodObject<{
|
|
@@ -387,13 +420,16 @@ export declare const BeginUserPasskeyRegistrationResponse: zod.ZodObject<{
|
|
|
387
420
|
options: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
388
421
|
}, zod.z.core.$strip>;
|
|
389
422
|
/**
|
|
390
|
-
* Verifies the attestation against the ceremony
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
*
|
|
423
|
+
* Verifies the attestation against the registration ceremony and stores
|
|
424
|
+
* the new passkey for the user. `registration_id` is the one that
|
|
425
|
+
* `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
|
|
426
|
+
* returned when it started the ceremony. The attestation is
|
|
427
|
+
* the browser's answer from `navigator.credentials.create()`.
|
|
428
|
+
*
|
|
429
|
+
* A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers
|
|
430
|
+
* `att.stale_challenge`: begin a new registration. An unknown or
|
|
431
|
+
* already-consumed registration ID answers `att.not_found`.
|
|
432
|
+
* @summary Finish a passkey registration
|
|
397
433
|
*/
|
|
398
434
|
export declare const finishUserPasskeyRegistrationPathUserIdRegExp: RegExp;
|
|
399
435
|
export declare const FinishUserPasskeyRegistrationParams: zod.ZodObject<{
|
|
@@ -410,10 +446,10 @@ export declare const FinishUserPasskeyRegistrationResponse: zod.ZodObject<{
|
|
|
410
446
|
created_at: zod.z.ZodISODateTime;
|
|
411
447
|
}, zod.z.core.$strip>;
|
|
412
448
|
/**
|
|
413
|
-
*
|
|
449
|
+
* Returns when the user's current password was set, and leaves `set_at` out
|
|
414
450
|
* when the user has none. The password and its hash are never returned;
|
|
415
|
-
*
|
|
416
|
-
* @summary Get user password state
|
|
451
|
+
* `setUserPassword` (`PUT` on the same path) sets one.
|
|
452
|
+
* @summary Get a user's password state
|
|
417
453
|
*/
|
|
418
454
|
export declare const getUserPasswordStatePathUserIdRegExp: RegExp;
|
|
419
455
|
export declare const GetUserPasswordStateParams: zod.ZodObject<{
|
|
@@ -427,25 +463,49 @@ export declare const GetUserPasswordStateResponse: zod.ZodObject<{
|
|
|
427
463
|
* policy.
|
|
428
464
|
*
|
|
429
465
|
* The new password replaces the current one, and setting it emits
|
|
430
|
-
* `auth.factor.password.set`.
|
|
431
|
-
*
|
|
466
|
+
* `auth.factor.password.set`. A password the project's password policy
|
|
467
|
+
* refuses answers `user.password_policy_violation`; send one that meets the
|
|
468
|
+
* policy.
|
|
469
|
+
*
|
|
470
|
+
* The password policy is the one in the release that serves the caller's
|
|
471
|
+
* `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a
|
|
472
|
+
* preview URL gets that preview's policy, and one on a primary origin the
|
|
473
|
+
* newest primary deployment's. A request with no `Origin`, or from the
|
|
474
|
+
* console when the project does not list the console's origin, gets the
|
|
475
|
+
* project's newest primary deployment.
|
|
476
|
+
*
|
|
477
|
+
* If the request is refused:
|
|
478
|
+
* - `403 proj.origin_not_allowed`: the project admits no such origin. Add it
|
|
479
|
+
* with `zitadel origin add`.
|
|
480
|
+
* - `403 proj.preview_not_live`: the origin matches a preview pattern but has
|
|
481
|
+
* no live preview. Run `zitadel preview` on the branch.
|
|
482
|
+
* - `409 rel.not_deployed`: nothing is deployed to the origin. Run
|
|
483
|
+
* `zitadel deploy`.
|
|
484
|
+
* - `409 rel.no_default`: the request names no origin and the project has no
|
|
485
|
+
* primary deployment. Run `zitadel deploy`.
|
|
486
|
+
* - `409 rel.revoked`: the release that serves the origin is revoked.
|
|
487
|
+
* @summary Set a user's password
|
|
432
488
|
*/
|
|
433
489
|
export declare const setUserPasswordPathUserIdRegExp: RegExp;
|
|
434
490
|
export declare const SetUserPasswordParams: zod.ZodObject<{
|
|
435
491
|
user_id: zod.ZodString;
|
|
436
492
|
}, zod.z.core.$strip>;
|
|
493
|
+
export declare const SetUserPasswordHeader: zod.ZodObject<{
|
|
494
|
+
Origin: zod.ZodOptional<zod.ZodURL>;
|
|
495
|
+
}, zod.z.core.$strict>;
|
|
437
496
|
export declare const SetUserPasswordBody: zod.ZodObject<{
|
|
438
497
|
password: zod.ZodString;
|
|
439
498
|
}, zod.z.core.$strip>;
|
|
440
499
|
export declare const SetUserPasswordResponse: zod.ZodVoid;
|
|
441
500
|
/**
|
|
442
|
-
*
|
|
443
|
-
* team's name, so a client renders a page without resolving
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
*
|
|
501
|
+
* Lists the teams a user belongs to, ordered by team name. Each entry carries
|
|
502
|
+
* the team's name, so a client renders a page without resolving IDs one by
|
|
503
|
+
* one.
|
|
504
|
+
*
|
|
505
|
+
* This is the user's team memberships, not lifecycle ownership: the single
|
|
506
|
+
* team that owns the user's lifecycle is reported as
|
|
507
|
+
* `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships
|
|
508
|
+
* the user was removed from are not returned.
|
|
449
509
|
* @summary List the teams a user belongs to
|
|
450
510
|
*/
|
|
451
511
|
export declare const listUserTeamsPathUserIdRegExp: RegExp;
|
|
@@ -587,8 +647,9 @@ export declare const PatchMyUserResponse: zod.ZodObject<{
|
|
|
587
647
|
teams_truncated: zod.ZodOptional<zod.ZodBoolean>;
|
|
588
648
|
}, zod.z.core.$strip>;
|
|
589
649
|
/**
|
|
590
|
-
*
|
|
591
|
-
* oldest first. The provider's subject and claims
|
|
650
|
+
* Lists the identity provider accounts a sign-in linked to the signed-in user,
|
|
651
|
+
* oldest first. The provider's subject and claims, the data it asserts about
|
|
652
|
+
* the account, are never returned.
|
|
592
653
|
*
|
|
593
654
|
* With `project_id`, the links are listed only when the session belongs to
|
|
594
655
|
* that project.
|
|
@@ -611,9 +672,10 @@ export declare const ListMyIdentityLinksResponse: zod.ZodObject<{
|
|
|
611
672
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
612
673
|
}, zod.z.core.$strip>;
|
|
613
674
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
-
*
|
|
675
|
+
* Lists the signed-in user's own passkeys, newest first, paginated with a
|
|
676
|
+
* cursor. A passkey is a WebAuthn credential that signs a user in without a
|
|
677
|
+
* password. Each passkey carries its ID, its name and when it was registered,
|
|
678
|
+
* never the credential itself.
|
|
617
679
|
*
|
|
618
680
|
* With `project_id`, the passkeys are listed only when the session belongs to
|
|
619
681
|
* that project.
|
|
@@ -636,7 +698,7 @@ export declare const ListMyPasskeysResponse: zod.ZodObject<{
|
|
|
636
698
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
637
699
|
}, zod.z.core.$strip>;
|
|
638
700
|
/**
|
|
639
|
-
*
|
|
701
|
+
* Returns when the signed-in user's current password was set, and leaves
|
|
640
702
|
* `set_at` out when they have none. The password and its hash are never
|
|
641
703
|
* returned.
|
|
642
704
|
*
|
|
@@ -652,12 +714,12 @@ export declare const GetMyPasswordStateResponse: zod.ZodObject<{
|
|
|
652
714
|
set_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
653
715
|
}, zod.z.core.$strip>;
|
|
654
716
|
/**
|
|
655
|
-
*
|
|
656
|
-
* on, either directly or through a team they are a member of. For a
|
|
657
|
-
* operator
|
|
658
|
-
* project
|
|
717
|
+
* Lists the projects the signed-in user can act on: those they hold an active
|
|
718
|
+
* grant on, either directly or through a team they are a member of. For a
|
|
719
|
+
* platform operator, someone who runs the deployment, that is every project of
|
|
720
|
+
* the deployment. Ordered by project ID and paged with an opaque cursor.
|
|
659
721
|
*
|
|
660
|
-
* This is not the same question as `queryProjects
|
|
722
|
+
* This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one
|
|
661
723
|
* project the calling credential is bound to. Here the session is the caller
|
|
662
724
|
* and the grants are the answer, so the list spans projects.
|
|
663
725
|
*
|
|
@@ -721,7 +783,7 @@ export declare const ListMyProjectsResponse: zod.ZodObject<{
|
|
|
721
783
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
722
784
|
}, zod.z.core.$strip>;
|
|
723
785
|
/**
|
|
724
|
-
*
|
|
786
|
+
* Returns the schema that validates the signed-in user's own record.
|
|
725
787
|
*
|
|
726
788
|
* With `project_id`, the schema is returned only when the session belongs to
|
|
727
789
|
* that project.
|
|
@@ -779,7 +841,7 @@ export declare const GetMyUserSchemaResponse: zod.ZodObject<{
|
|
|
779
841
|
}, zod.z.core.$strip>;
|
|
780
842
|
}, zod.z.core.$strip>;
|
|
781
843
|
/**
|
|
782
|
-
*
|
|
844
|
+
* Lists the teams the signed-in user belongs to, ordered by team name.
|
|
783
845
|
*
|
|
784
846
|
* With `project_id`, the teams are listed only when the session belongs to
|
|
785
847
|
* that project.
|
|
@@ -808,34 +870,56 @@ export declare const ListMyTeamsResponse: zod.ZodObject<{
|
|
|
808
870
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
809
871
|
}, zod.z.core.$strip>;
|
|
810
872
|
/**
|
|
811
|
-
*
|
|
812
|
-
* the first
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
* the
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
873
|
+
* Starts a flow: resolves a flow definition from the request's purpose and
|
|
874
|
+
* audience, and returns the first step.
|
|
875
|
+
*
|
|
876
|
+
* The flow endpoints are the runtime calls the login component
|
|
877
|
+
* (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
|
|
878
|
+
* step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to
|
|
879
|
+
* get the next step. This call creates a new session implicitly, unless
|
|
880
|
+
* `session_id` is provided together with that session's `session_token`
|
|
881
|
+
* (for step-up or reauthentication on an existing session).
|
|
882
|
+
*
|
|
883
|
+
* The browser `Origin` header selects which deployment serves this attempt.
|
|
884
|
+
* The server checks the origin against the project's origin patterns and live
|
|
885
|
+
* previews, and the deployment that origin serves is the target: the
|
|
886
|
+
* project's newest primary deployment when it names a primary origin, or the
|
|
887
|
+
* newest live deployment to a preview URL. A
|
|
888
|
+
* deployment is a release, the immutable bundle of the project's
|
|
889
|
+
* configuration, made live at an origin. The deployment's release supplies
|
|
890
|
+
* flow definitions, user schemas and branding. The resolved deployment is
|
|
891
|
+
* sealed into the `_zflow` cookie so later steps keep the same
|
|
892
|
+
* configuration.
|
|
893
|
+
*
|
|
894
|
+
* - An origin that matches no pattern answers `403` with
|
|
895
|
+
* `proj.origin_not_allowed`, including when the project lists no origins.
|
|
896
|
+
* Add the origin with `zitadel origin add`.
|
|
897
|
+
* - An origin that matches a preview pattern with no live preview answers
|
|
898
|
+
* `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.
|
|
899
|
+
* - Nothing deployed to a listed origin or a live preview answers `409`
|
|
900
|
+
* with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added
|
|
901
|
+
* since the last deploy serves nothing until the next one.
|
|
902
|
+
* - A loopback origin the project does not list answers `409` with
|
|
903
|
+
* `rel.not_deployed` too, as no deployment can name it. Add it with
|
|
904
|
+
* `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.
|
|
905
|
+
* - A revoked release answers `409` with `rel.revoked`.
|
|
906
|
+
*
|
|
907
|
+
* A request with no `Origin` passes the check, and so does the server's own
|
|
908
|
+
* origin, from which its console previews a project's login. Both are served
|
|
909
|
+
* the project's newest primary deployment unless the project lists that
|
|
910
|
+
* origin; with no primary deployment they answer `409` with
|
|
911
|
+
* `rel.no_default`. A loopback origin passes the check and is its own
|
|
912
|
+
* target. A step submitted from the server's own origin is still refused
|
|
913
|
+
* unless the project lists it.
|
|
914
|
+
*
|
|
915
|
+
* The response contains an `id` field, the flow handle. Use it as the path
|
|
832
916
|
* parameter for all subsequent `/flow/{id}/submit` calls.
|
|
833
917
|
*
|
|
834
918
|
* The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
|
|
835
919
|
* the flow's orchestration state (current step, collected data, history).
|
|
836
|
-
* The server is stateless between requests
|
|
920
|
+
* The server is stateless between requests: all flow state lives in this
|
|
837
921
|
* cookie. The browser sends it automatically on subsequent requests.
|
|
838
|
-
* @summary Start a
|
|
922
|
+
* @summary Start a flow
|
|
839
923
|
*/
|
|
840
924
|
export declare const CreateFlowHeader: zod.ZodObject<{
|
|
841
925
|
Origin: zod.ZodOptional<zod.ZodURL>;
|
|
@@ -1114,13 +1198,17 @@ export declare const CreateFlowResponse: zod.ZodObject<{
|
|
|
1114
1198
|
handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
1115
1199
|
}, zod.z.core.$strip>;
|
|
1116
1200
|
/**
|
|
1117
|
-
* Returns the current
|
|
1118
|
-
*
|
|
1201
|
+
* Returns the current step of a flow without advancing it. Use it to render
|
|
1202
|
+
* the step again after a page reload or a network error.
|
|
1203
|
+
*
|
|
1204
|
+
* The flow endpoints are the runtime calls the login component
|
|
1205
|
+
* (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and
|
|
1206
|
+
* `submitFlowStep` (`POST /flow/{id}/submit`) advances it.
|
|
1119
1207
|
*
|
|
1120
1208
|
* Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
|
|
1121
1209
|
* re-resolve from `Origin`. If that release was revoked since the attempt
|
|
1122
1210
|
* started, the response is `409` with `rel.revoked`.
|
|
1123
|
-
* @summary Get current step
|
|
1211
|
+
* @summary Get the current step of a flow
|
|
1124
1212
|
*/
|
|
1125
1213
|
export declare const GetFlowStepParams: zod.ZodObject<{
|
|
1126
1214
|
id: zod.ZodString;
|
|
@@ -1370,12 +1458,14 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
|
|
|
1370
1458
|
handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
1371
1459
|
}, zod.z.core.$strip>;
|
|
1372
1460
|
/**
|
|
1373
|
-
* Submits user input for the current step. The server
|
|
1374
|
-
* processes (
|
|
1375
|
-
* through any invisible steps, and returns the next visible step.
|
|
1461
|
+
* Submits the user's input for the current step of a flow. The server
|
|
1462
|
+
* validates it, processes it (for example, verifies a credential), advances
|
|
1463
|
+
* the flow through any invisible steps, and returns the next visible step.
|
|
1464
|
+
* The flow endpoints are the runtime calls the login component
|
|
1465
|
+
* (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.
|
|
1376
1466
|
*
|
|
1377
1467
|
* The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
|
|
1378
|
-
* with the new flow state. The server is stateless
|
|
1468
|
+
* with the new flow state. The server is stateless: all orchestration
|
|
1379
1469
|
* state is carried in this cookie between requests.
|
|
1380
1470
|
*
|
|
1381
1471
|
* **Important:** The `id` in the response may differ from the `id` used in
|
|
@@ -1391,17 +1481,17 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
|
|
|
1391
1481
|
* | `behavior` | Action |
|
|
1392
1482
|
* |------------- |------------------------------------------------------------|
|
|
1393
1483
|
* | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
|
|
1394
|
-
* | `show` | Render the step as a success screen
|
|
1484
|
+
* | `show` | Render the step as a success screen, such as registration. |
|
|
1395
1485
|
*
|
|
1396
1486
|
* A `complete` step is only returned when the **entire flow stack** is done.
|
|
1397
|
-
* If a stacked flow (
|
|
1398
|
-
* auto-pops to the parent flow and returns the parent's next step
|
|
1399
|
-
* frontend never sees a `complete` for intermediate flows.
|
|
1487
|
+
* If a stacked flow (for example, recovery pivoted from login) finishes, the
|
|
1488
|
+
* server auto-pops to the parent flow and returns the parent's next step.
|
|
1489
|
+
* The frontend never sees a `complete` for intermediate flows.
|
|
1400
1490
|
*
|
|
1401
1491
|
* ## External sign-in
|
|
1402
1492
|
*
|
|
1403
1493
|
* `{action: "sso", sso_provider_id, return_target}` on a step that offers
|
|
1404
|
-
* `sso_providers` returns the
|
|
1494
|
+
* `sso_providers` returns the server-emitted `sso-redirect` step, whose
|
|
1405
1495
|
* `redirect_url` the frontend navigates to.
|
|
1406
1496
|
*
|
|
1407
1497
|
* - The flow state does not change, but `_zflow` is re-sealed like on
|
|
@@ -1414,15 +1504,16 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
|
|
|
1414
1504
|
* Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
|
|
1415
1505
|
* `__Host-` prefix is dropped because it requires `Secure`.
|
|
1416
1506
|
*
|
|
1417
|
-
*
|
|
1418
|
-
*
|
|
1419
|
-
* sign-in with, including a
|
|
1420
|
-
* re-renders the step with
|
|
1507
|
+
* An identity provider (an external sign-in such as Google) whose
|
|
1508
|
+
* `client_id` is a `${{ NAME }}` reference has it filled from the project's
|
|
1509
|
+
* variables. A provider the server cannot start a sign-in with, including a
|
|
1510
|
+
* reference with no variable behind it, re-renders the step with
|
|
1511
|
+
* `error.sso_unavailable`.
|
|
1421
1512
|
*
|
|
1422
1513
|
* Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
|
|
1423
1514
|
* re-resolve from `Origin`. If that release was revoked since the attempt
|
|
1424
1515
|
* started, the response is `409` with `rel.revoked`.
|
|
1425
|
-
* @summary Submit
|
|
1516
|
+
* @summary Submit a flow step
|
|
1426
1517
|
*/
|
|
1427
1518
|
export declare const SubmitFlowStepParams: zod.ZodObject<{
|
|
1428
1519
|
id: zod.ZodString;
|
|
@@ -1689,20 +1780,36 @@ export declare const SubmitFlowStepResponse: zod.ZodObject<{
|
|
|
1689
1780
|
handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
1690
1781
|
}, zod.z.core.$strip>;
|
|
1691
1782
|
/**
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1694
|
-
* An attempt
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1697
|
-
*
|
|
1698
|
-
*
|
|
1699
|
-
*
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
1704
|
-
*
|
|
1705
|
-
*
|
|
1783
|
+
* Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.
|
|
1784
|
+
*
|
|
1785
|
+
* An authentication attempt collects the proofs for one sign-in and ends in a
|
|
1786
|
+
* handoff token. A handoff token is the short-lived, single-use credential that
|
|
1787
|
+
* a completed attempt hands to the session exchange. A client makes these calls
|
|
1788
|
+
* in order:
|
|
1789
|
+
*
|
|
1790
|
+
* 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
|
|
1791
|
+
* 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
|
|
1792
|
+
* `identifier`, `password` or `passkey`.
|
|
1793
|
+
* 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
|
|
1794
|
+
* credential, code or assertion. Repeat steps 2 and 3 until
|
|
1795
|
+
* `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
|
|
1796
|
+
* `required_factors` is verified.
|
|
1797
|
+
* 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
|
|
1798
|
+
* 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
|
|
1799
|
+
* for the session and its `session_token`.
|
|
1800
|
+
*
|
|
1801
|
+
* The body takes a `project_id` and a `challenge_nonce` (from
|
|
1802
|
+
* `POST /bootstrap/challenge`). For step-up authentication, which adds factors
|
|
1803
|
+
* to an existing session, also send that session's `session_id` and its
|
|
1804
|
+
* `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.
|
|
1805
|
+
* The attempt's `attempt_id` in the response is the ID every later call takes.
|
|
1806
|
+
*
|
|
1807
|
+
* The project comes from the project secret. A body `project_id` that names
|
|
1808
|
+
* another project answers `403` with `proj.mismatch`: send the credential's own
|
|
1809
|
+
* project. The attempt seals the project's newest primary deployment, whatever
|
|
1810
|
+
* the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a
|
|
1811
|
+
* revoked release answers `409` with `rel.revoked`.
|
|
1812
|
+
* @summary Create an authentication attempt
|
|
1706
1813
|
*/
|
|
1707
1814
|
export declare const createAuthAttemptBodyProjectIdRegExp: RegExp;
|
|
1708
1815
|
export declare const createAuthAttemptBodySessionIdOneRegExp: RegExp;
|
|
@@ -1802,14 +1909,14 @@ export declare const CreateAuthAttemptResponse: zod.ZodObject<{
|
|
|
1802
1909
|
created_at: zod.z.ZodISODateTime;
|
|
1803
1910
|
}, zod.z.core.$strip>;
|
|
1804
1911
|
/**
|
|
1805
|
-
*
|
|
1912
|
+
* Returns the current state of an authentication attempt, one sign-in round.
|
|
1806
1913
|
*
|
|
1807
|
-
*
|
|
1808
|
-
* challenges issued so far, and any errors preventing progress.
|
|
1914
|
+
* The response holds the attempt's state, available factors for the next
|
|
1915
|
+
* challenge, challenges issued so far, and any errors preventing progress.
|
|
1809
1916
|
*
|
|
1810
|
-
* Use
|
|
1811
|
-
* a federated IdP callback or a device flow
|
|
1812
|
-
* @summary Get authentication attempt
|
|
1917
|
+
* Use it to poll during long-running factor verifications, for example waiting
|
|
1918
|
+
* for a federated identity provider (IdP) callback or a device flow.
|
|
1919
|
+
* @summary Get an authentication attempt by ID
|
|
1813
1920
|
*/
|
|
1814
1921
|
export declare const getAuthAttemptPathAttemptIdRegExp: RegExp;
|
|
1815
1922
|
export declare const GetAuthAttemptParams: zod.ZodObject<{
|
|
@@ -1905,12 +2012,12 @@ export declare const GetAuthAttemptResponse: zod.ZodObject<{
|
|
|
1905
2012
|
created_at: zod.z.ZodISODateTime;
|
|
1906
2013
|
}, zod.z.core.$strip>;
|
|
1907
2014
|
/**
|
|
1908
|
-
* Issues a
|
|
2015
|
+
* Issues a challenge, a request to prove one factor, within an authentication attempt.
|
|
1909
2016
|
*
|
|
1910
|
-
*
|
|
1911
|
-
*
|
|
1912
|
-
*
|
|
1913
|
-
*
|
|
2017
|
+
* A challenge names one factor method, such as password, passkey, TOTP or OTP
|
|
2018
|
+
* via SMS. The response carries the challenge's `challenge_id`, method,
|
|
2019
|
+
* metadata and any UI hints. The client then submits the proof with
|
|
2020
|
+
* `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
|
|
1914
2021
|
* @summary Issue a factor challenge
|
|
1915
2022
|
*/
|
|
1916
2023
|
export declare const issueChallengePathAttemptIdRegExp: RegExp;
|
|
@@ -1967,17 +2074,22 @@ export declare const IssueChallengeResponse: zod.ZodObject<{
|
|
|
1967
2074
|
}, zod.z.core.$strip>]>>;
|
|
1968
2075
|
}, zod.z.core.$strip>;
|
|
1969
2076
|
/**
|
|
1970
|
-
*
|
|
2077
|
+
* Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.
|
|
1971
2078
|
*
|
|
1972
2079
|
* The proof format depends on the challenge method. For example:
|
|
2080
|
+
*
|
|
1973
2081
|
* - `password` method: { password: "…" }
|
|
1974
2082
|
* - `totp` method: { totp: { code: "123456" } }
|
|
1975
2083
|
* - `passkey` method: { passkey: { assertion: "…" } }
|
|
1976
2084
|
* - `recovery_code` method: { recovery_code: "…" }
|
|
1977
2085
|
*
|
|
1978
|
-
* On
|
|
1979
|
-
*
|
|
1980
|
-
*
|
|
2086
|
+
* On success, the factor is recorded on the authentication attempt. The
|
|
2087
|
+
* attempt moves to the next pending challenge, or completes when every required
|
|
2088
|
+
* factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
|
|
2089
|
+
*
|
|
2090
|
+
* A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
|
|
2091
|
+
* again. There is no retry limit: you can retry until the attempt expires.
|
|
2092
|
+
* @summary Verify a challenge proof
|
|
1981
2093
|
*/
|
|
1982
2094
|
export declare const verifyChallengeProofPathAttemptIdRegExp: RegExp;
|
|
1983
2095
|
export declare const verifyChallengeProofPathChallengeIdRegExp: RegExp;
|
|
@@ -2087,19 +2199,24 @@ export declare const VerifyChallengeProofResponse: zod.ZodObject<{
|
|
|
2087
2199
|
created_at: zod.z.ZodISODateTime;
|
|
2088
2200
|
}, zod.z.core.$strip>;
|
|
2089
2201
|
/**
|
|
2090
|
-
* Completes
|
|
2202
|
+
* Completes an authentication attempt and mints a `handoff_token`.
|
|
2091
2203
|
*
|
|
2092
|
-
*
|
|
2093
|
-
*
|
|
2094
|
-
*
|
|
2204
|
+
* A handoff token is the short-lived credential that a completed attempt hands
|
|
2205
|
+
* to the session exchange. Call this after every required factor is verified and
|
|
2206
|
+
* the attempt is in `completed` state. Otherwise it answers `409` with
|
|
2207
|
+
* `att.not_completed`: verify the remaining factors, then call again.
|
|
2095
2208
|
*
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2098
|
-
* - Audience-bound (requires matching project key for exchange)
|
|
2099
|
-
* - Idempotency-safe within a 5-minute window (see conventions)
|
|
2209
|
+
* Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60
|
|
2210
|
+
* seconds to receive the session and its `session_token`. The handoff token is:
|
|
2100
2211
|
*
|
|
2101
|
-
*
|
|
2102
|
-
*
|
|
2212
|
+
* - Single-use: exchange it once, with no retry.
|
|
2213
|
+
* - Bound to the project: the exchange needs the same project's credential.
|
|
2214
|
+
* - Created once: a second call answers `409 att.already_handed_off`, even
|
|
2215
|
+
* with the same idempotency key.
|
|
2216
|
+
*
|
|
2217
|
+
* A revoked release is refused when the handoff is exchanged, not here. A
|
|
2218
|
+
* release is the configuration that `zitadel deploy` publishes.
|
|
2219
|
+
* @summary Complete an authentication attempt and create a handoff token
|
|
2103
2220
|
*/
|
|
2104
2221
|
export declare const createHandoffPathAttemptIdRegExp: RegExp;
|
|
2105
2222
|
export declare const CreateHandoffParams: zod.ZodObject<{
|
|
@@ -2116,10 +2233,13 @@ export declare const CreateHandoffResponse: zod.ZodObject<{
|
|
|
2116
2233
|
* Creates a project and returns its project secret and preview secret, which no
|
|
2117
2234
|
* other endpoint returns.
|
|
2118
2235
|
*
|
|
2119
|
-
*
|
|
2120
|
-
*
|
|
2121
|
-
*
|
|
2122
|
-
*
|
|
2236
|
+
* A project is the top-level boundary that holds users, sessions and
|
|
2237
|
+
* configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).
|
|
2238
|
+
*
|
|
2239
|
+
* The request needs no credential and is rate-limited. On `429`, wait and retry.
|
|
2240
|
+
* Unless `seed_defaults` is `false`, the project starts with a default user schema
|
|
2241
|
+
* and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.
|
|
2242
|
+
* @summary Create a project
|
|
2123
2243
|
*/
|
|
2124
2244
|
export declare const createProjectBodySeedDefaultsDefault = true;
|
|
2125
2245
|
export declare const CreateProjectBody: zod.ZodObject<{
|
|
@@ -2151,9 +2271,9 @@ export declare const CreateProjectResponse: zod.ZodObject<{
|
|
|
2151
2271
|
* Returns the project the project secret belongs to, as a page of at most one
|
|
2152
2272
|
* project.
|
|
2153
2273
|
*
|
|
2154
|
-
* A credential is scoped to one project
|
|
2155
|
-
*
|
|
2156
|
-
* act on
|
|
2274
|
+
* A credential is scoped to one project today, so the filters and sorting
|
|
2275
|
+
* apply to that project alone. A signed-in person lists the projects they can
|
|
2276
|
+
* act on with `GET /users/me/projects`.
|
|
2157
2277
|
* @summary Query projects
|
|
2158
2278
|
*/
|
|
2159
2279
|
export declare const queryProjectsBodyLimitDefault = 20;
|
|
@@ -2228,8 +2348,12 @@ export declare const QueryProjectsResponse: zod.ZodObject<{
|
|
|
2228
2348
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
2229
2349
|
}, zod.z.core.$strip>;
|
|
2230
2350
|
/**
|
|
2231
|
-
* Returns
|
|
2232
|
-
*
|
|
2351
|
+
* Returns a project's current state: its name, origins, password hashing
|
|
2352
|
+
* method and owning team.
|
|
2353
|
+
*
|
|
2354
|
+
* Authenticate with the project secret, or with the session of a signed-in
|
|
2355
|
+
* person who holds a grant on the project.
|
|
2356
|
+
* @summary Get a project by ID
|
|
2233
2357
|
*/
|
|
2234
2358
|
export declare const getProjectPathProjectIdRegExp: RegExp;
|
|
2235
2359
|
export declare const GetProjectParams: zod.ZodObject<{
|
|
@@ -2276,8 +2400,16 @@ export declare const GetProjectResponse: zod.ZodIntersection<zod.ZodObject<{
|
|
|
2276
2400
|
owning_team_id: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
2277
2401
|
}, zod.z.core.$strip>>;
|
|
2278
2402
|
/**
|
|
2279
|
-
* Updates
|
|
2280
|
-
*
|
|
2403
|
+
* Updates a project's name or password hashing method.
|
|
2404
|
+
*
|
|
2405
|
+
* Fields you leave out keep their value. Sending `password_hash: null` drops
|
|
2406
|
+
* the project's own method and returns to the server default. A change of
|
|
2407
|
+
* method rewrites no stored password: each moves to the new method when its
|
|
2408
|
+
* owner next signs in or sets a new password.
|
|
2409
|
+
*
|
|
2410
|
+
* Authenticate with the project secret, or with the session of a signed-in
|
|
2411
|
+
* person who can act on the project.
|
|
2412
|
+
* @summary Update a project
|
|
2281
2413
|
*/
|
|
2282
2414
|
export declare const patchProjectPathProjectIdRegExp: RegExp;
|
|
2283
2415
|
export declare const PatchProjectParams: zod.ZodObject<{
|
|
@@ -2351,35 +2483,35 @@ export declare const PatchProjectResponse: zod.ZodIntersection<zod.ZodObject<{
|
|
|
2351
2483
|
owning_team_id: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
2352
2484
|
}, zod.z.core.$strip>>;
|
|
2353
2485
|
/**
|
|
2354
|
-
* Lists the people who can administer
|
|
2355
|
-
*
|
|
2356
|
-
*
|
|
2357
|
-
*
|
|
2358
|
-
*
|
|
2359
|
-
*
|
|
2360
|
-
*
|
|
2361
|
-
*
|
|
2362
|
-
*
|
|
2363
|
-
*
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2366
|
-
*
|
|
2367
|
-
*
|
|
2368
|
-
*
|
|
2369
|
-
*
|
|
2370
|
-
*
|
|
2371
|
-
*
|
|
2486
|
+
* Lists the people who can administer a project, and how each of them
|
|
2487
|
+
* holds that access.
|
|
2488
|
+
*
|
|
2489
|
+
* A person appears once, with one entry in `sources` per way they hold it:
|
|
2490
|
+
*
|
|
2491
|
+
* - `owning_team`: an active member of the team that owns the project, the
|
|
2492
|
+
* team a claim attaches the project to. Removing a grant does not remove
|
|
2493
|
+
* this access. It ends only when the person leaves the team or the
|
|
2494
|
+
* project changes owner.
|
|
2495
|
+
* - `grant`: an unexpired `admin` grant on the project, which is a role
|
|
2496
|
+
* given to the person (`grant_id` only) or to a team they are an active
|
|
2497
|
+
* member of (`grant_id` and `team`). Revoking that grant removes this
|
|
2498
|
+
* source.
|
|
2499
|
+
*
|
|
2500
|
+
* The list follows the authorization check. A person who left a team, or
|
|
2501
|
+
* whose team or user was deactivated, is not listed through it. Grants that
|
|
2502
|
+
* expired or carry a lower role are left out. A person whose only access is a
|
|
2503
|
+
* `viewer` or `editor` grant is not an admin and is not listed. Like the
|
|
2504
|
+
* check, the list does not look at a person's user status beyond that, so a
|
|
2505
|
+
* direct grant to a suspended person is listed.
|
|
2372
2506
|
*
|
|
2373
2507
|
* A person whose access comes only through teams the caller is not a
|
|
2374
|
-
* member of is left out
|
|
2375
|
-
*
|
|
2376
|
-
* grants.
|
|
2508
|
+
* member of is left out. A team the caller is not in is named by `team_id`
|
|
2509
|
+
* only. The grant to such a team still shows in the project's grants.
|
|
2377
2510
|
*
|
|
2378
|
-
*
|
|
2379
|
-
*
|
|
2380
|
-
*
|
|
2381
|
-
*
|
|
2382
|
-
* @summary List project admins
|
|
2511
|
+
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
2512
|
+
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
2513
|
+
* (`sessionCookie`) of a signed-in person who can read the project.
|
|
2514
|
+
* @summary List the admins of a project
|
|
2383
2515
|
*/
|
|
2384
2516
|
export declare const listProjectAdminsPathProjectIdRegExp: RegExp;
|
|
2385
2517
|
export declare const ListProjectAdminsParams: zod.ZodObject<{
|
|
@@ -2422,11 +2554,22 @@ export declare const ListProjectAdminsResponse: zod.ZodObject<{
|
|
|
2422
2554
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
2423
2555
|
}, zod.z.core.$strip>;
|
|
2424
2556
|
/**
|
|
2425
|
-
* Starts a claim
|
|
2426
|
-
*
|
|
2427
|
-
*
|
|
2428
|
-
*
|
|
2429
|
-
*
|
|
2557
|
+
* Starts a claim, which attaches a project created before sign-in to a
|
|
2558
|
+
* team, and returns the `claim_url` to open in a browser.
|
|
2559
|
+
*
|
|
2560
|
+
* A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)
|
|
2561
|
+
* so that the team's members administer it. This operation mints a
|
|
2562
|
+
* single-use, short-lived challenge for an unclaimed project. The developer
|
|
2563
|
+
* opens `claim_url`, signs in and completes the claim in the browser; see
|
|
2564
|
+
* `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
|
|
2565
|
+
* as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
|
|
2566
|
+
*
|
|
2567
|
+
* Authenticate with the project secret that `createProject` (`POST /projects`) returns as
|
|
2568
|
+
* `project_secret`.
|
|
2569
|
+
*
|
|
2570
|
+
* A `409` means a team already claimed the project, and its details name
|
|
2571
|
+
* that team. A `410` means the project's 14-day claim window has closed,
|
|
2572
|
+
* which is final.
|
|
2430
2573
|
* @summary Initialize a project claim
|
|
2431
2574
|
*/
|
|
2432
2575
|
export declare const initClaimPathProjectIdRegExp: RegExp;
|
|
@@ -2440,15 +2583,23 @@ export declare const InitClaimResponse: zod.ZodObject<{
|
|
|
2440
2583
|
expires_at: zod.z.ZodISODateTime;
|
|
2441
2584
|
}, zod.z.core.$strip>;
|
|
2442
2585
|
/**
|
|
2443
|
-
*
|
|
2444
|
-
*
|
|
2445
|
-
*
|
|
2446
|
-
*
|
|
2447
|
-
*
|
|
2448
|
-
*
|
|
2449
|
-
*
|
|
2450
|
-
*
|
|
2451
|
-
*
|
|
2586
|
+
* Returns the status of a claim challenge, `pending` or `completed`, while a
|
|
2587
|
+
* browser completes the claim.
|
|
2588
|
+
*
|
|
2589
|
+
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
|
|
2590
|
+
* `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
|
|
2591
|
+
* Once the project is claimed, the response is `completed` with the owning
|
|
2592
|
+
* team, the claim timestamp and the dashboard URL.
|
|
2593
|
+
*
|
|
2594
|
+
* The claim itself, not the polled challenge, decides the status. A project
|
|
2595
|
+
* claimed through another concurrent challenge also reports `completed`. A
|
|
2596
|
+
* completed claim keeps reporting `completed` past this challenge's expiry
|
|
2597
|
+
* and past the project's claim window.
|
|
2598
|
+
*
|
|
2599
|
+
* Pass the `challenge_id` that `initClaim` returns. Authenticate with the
|
|
2600
|
+
* project secret that started the challenge. On `410` with `proj.claim_expired`, call
|
|
2601
|
+
* `initClaim` again for a fresh challenge.
|
|
2602
|
+
* @summary Get the status of a project claim
|
|
2452
2603
|
*/
|
|
2453
2604
|
export declare const getClaimStatusPathProjectIdRegExp: RegExp;
|
|
2454
2605
|
export declare const GetClaimStatusParams: zod.ZodObject<{
|
|
@@ -2472,10 +2623,18 @@ export declare const GetClaimStatusResponse: zod.ZodUnion<readonly [zod.ZodObjec
|
|
|
2472
2623
|
dashboard_url: zod.ZodURL;
|
|
2473
2624
|
}, zod.z.core.$strip>]>;
|
|
2474
2625
|
/**
|
|
2475
|
-
*
|
|
2476
|
-
*
|
|
2477
|
-
*
|
|
2478
|
-
*
|
|
2626
|
+
* Completes a claim by attaching the project to the signed-in developer's
|
|
2627
|
+
* personal team.
|
|
2628
|
+
*
|
|
2629
|
+
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
|
|
2630
|
+
* so that the team's members administer it. The claim page in the browser
|
|
2631
|
+
* calls this operation after the developer signs in, with the session cookie.
|
|
2632
|
+
* The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the
|
|
2633
|
+
* request's single-use, browser-safe authorization.
|
|
2634
|
+
*
|
|
2635
|
+
* Claims are first-claim-wins and spend the challenge. If a team already
|
|
2636
|
+
* claimed the project, the request answers `409`. If the challenge lapsed
|
|
2637
|
+
* (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.
|
|
2479
2638
|
* @summary Complete a project claim
|
|
2480
2639
|
*/
|
|
2481
2640
|
export declare const completeClaimPathProjectIdRegExp: RegExp;
|
|
@@ -2494,12 +2653,18 @@ export declare const CompleteClaimResponse: zod.ZodObject<{
|
|
|
2494
2653
|
claimed_at: zod.z.ZodISODateTime;
|
|
2495
2654
|
}, zod.z.core.$strip>;
|
|
2496
2655
|
/**
|
|
2497
|
-
*
|
|
2498
|
-
*
|
|
2499
|
-
*
|
|
2500
|
-
* is the
|
|
2501
|
-
*
|
|
2502
|
-
*
|
|
2656
|
+
* Returns when a project's claim window closes and whether it has already
|
|
2657
|
+
* closed.
|
|
2658
|
+
*
|
|
2659
|
+
* The claim window is the 14 days after a project is created during which a
|
|
2660
|
+
* team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page
|
|
2661
|
+
* in the browser calls this operation to show how long is left.
|
|
2662
|
+
*
|
|
2663
|
+
* The request needs no credential, because the claim page calls it before the
|
|
2664
|
+
* developer has signed in. Holding the `challenge_id` from the claim URL that
|
|
2665
|
+
* `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)
|
|
2666
|
+
* accepts. The response reveals only the window, never the project itself.
|
|
2667
|
+
* Unlike `completeClaim` it spends nothing, so reloading the page is safe.
|
|
2503
2668
|
* @summary Get the claim window for a project
|
|
2504
2669
|
*/
|
|
2505
2670
|
export declare const getClaimWindowPathProjectIdRegExp: RegExp;
|
|
@@ -2515,10 +2680,22 @@ export declare const GetClaimWindowResponse: zod.ZodObject<{
|
|
|
2515
2680
|
expired: zod.ZodBoolean;
|
|
2516
2681
|
}, zod.z.core.$strip>;
|
|
2517
2682
|
/**
|
|
2518
|
-
* Adds
|
|
2519
|
-
*
|
|
2520
|
-
*
|
|
2521
|
-
*
|
|
2683
|
+
* Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.
|
|
2684
|
+
*
|
|
2685
|
+
* An origin pattern says which web origins the project accepts. A `primary`
|
|
2686
|
+
* pattern must be an exact URL with no wildcard. A `preview` pattern may
|
|
2687
|
+
* include a single DNS-label wildcard.
|
|
2688
|
+
*
|
|
2689
|
+
* While the project has no patterns, it admits no origin except a loopback
|
|
2690
|
+
* origin, so the first pattern you add opens it to the origins that
|
|
2691
|
+
* pattern matches. Admitting an origin is not serving it: a new `primary`
|
|
2692
|
+
* origin answers `rel.not_deployed` until the next deploy to primary
|
|
2693
|
+
* (`zitadel deploy`).
|
|
2694
|
+
*
|
|
2695
|
+
* Adding a pattern that already exists with the same kind is idempotent and
|
|
2696
|
+
* answers `201` with the stored origin. If the pattern exists with the other
|
|
2697
|
+
* kind, the request is refused with `origin.kind_conflict`: remove it with
|
|
2698
|
+
* `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
|
|
2522
2699
|
* @summary Add an origin pattern
|
|
2523
2700
|
*/
|
|
2524
2701
|
export declare const addOriginPathProjectIdRegExp: RegExp;
|
|
@@ -2540,10 +2717,15 @@ export declare const AddOriginResponse: zod.ZodObject<{
|
|
|
2540
2717
|
}>;
|
|
2541
2718
|
}, zod.z.core.$strip>;
|
|
2542
2719
|
/**
|
|
2543
|
-
* Removes one pattern from the project's origins.
|
|
2544
|
-
*
|
|
2545
|
-
*
|
|
2546
|
-
*
|
|
2720
|
+
* Removes one origin pattern from the project's origins.
|
|
2721
|
+
*
|
|
2722
|
+
* Requests from URLs only that pattern admitted are refused from then on.
|
|
2723
|
+
* Live previews and deployment history are untouched. Removing the last
|
|
2724
|
+
* pattern leaves an empty list, which admits no origin except a loopback
|
|
2725
|
+
* origin.
|
|
2726
|
+
* Removing a pattern that is already absent is idempotent and answers `204`.
|
|
2727
|
+
*
|
|
2728
|
+
* The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.
|
|
2547
2729
|
* @summary Remove an origin pattern
|
|
2548
2730
|
*/
|
|
2549
2731
|
export declare const removeOriginPathProjectIdRegExp: RegExp;
|
|
@@ -2555,10 +2737,12 @@ export declare const RemoveOriginBody: zod.ZodObject<{
|
|
|
2555
2737
|
}, zod.z.core.$strip>;
|
|
2556
2738
|
export declare const RemoveOriginResponse: zod.ZodVoid;
|
|
2557
2739
|
/**
|
|
2558
|
-
* Lists the project's live previews, newest first by `created_at`.
|
|
2559
|
-
*
|
|
2740
|
+
* Lists the project's live previews, newest first by `created_at`.
|
|
2741
|
+
*
|
|
2742
|
+
* A preview is a URL with a deployment on it, served until it expires.
|
|
2743
|
+
* An expired or removed preview is not listed. What was deployed to it stays
|
|
2560
2744
|
* in `GET /deployments`.
|
|
2561
|
-
* @summary List previews
|
|
2745
|
+
* @summary List a project's previews
|
|
2562
2746
|
*/
|
|
2563
2747
|
export declare const listPreviewsPathProjectIdRegExp: RegExp;
|
|
2564
2748
|
export declare const ListPreviewsParams: zod.ZodObject<{
|
|
@@ -2582,14 +2766,14 @@ export declare const ListPreviewsResponse: zod.ZodObject<{
|
|
|
2582
2766
|
}, zod.z.core.$strip>;
|
|
2583
2767
|
/**
|
|
2584
2768
|
* Ends a preview before it expires: the URL stops being served at once.
|
|
2585
|
-
* The deployments to it stay in the history.
|
|
2586
2769
|
*
|
|
2587
|
-
*
|
|
2588
|
-
*
|
|
2589
|
-
* races the expiry still
|
|
2770
|
+
* The deployments to it stay in the history. The call is idempotent.
|
|
2771
|
+
* A URL with no live preview answers `204` too. That includes one that
|
|
2772
|
+
* expired or was removed before, so a cleanup that races the expiry still
|
|
2773
|
+
* succeeds.
|
|
2590
2774
|
*
|
|
2591
2775
|
* The URL travels in the body rather than the path because an origin
|
|
2592
|
-
* contains `/`.
|
|
2776
|
+
* contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
|
|
2593
2777
|
* @summary Remove a preview
|
|
2594
2778
|
*/
|
|
2595
2779
|
export declare const removePreviewPathProjectIdRegExp: RegExp;
|
|
@@ -2603,29 +2787,32 @@ export declare const RemovePreviewBody: zod.ZodObject<{
|
|
|
2603
2787
|
}, zod.z.core.$strip>;
|
|
2604
2788
|
export declare const RemovePreviewResponse: zod.ZodVoid;
|
|
2605
2789
|
/**
|
|
2606
|
-
* Creates an anonymous session
|
|
2790
|
+
* Creates an anonymous session with no user and no factors (`state: building`).
|
|
2791
|
+
*
|
|
2792
|
+
* A session is the durable record of a signed-in user. This call is optional: an
|
|
2793
|
+
* authentication attempt creates a session implicitly if none is provided.
|
|
2794
|
+
* Create one explicitly when you want to:
|
|
2607
2795
|
*
|
|
2608
|
-
*
|
|
2609
|
-
* Use this explicitly when you want to:
|
|
2610
|
-
* - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
|
|
2796
|
+
* - Pre-allocate a `session_id` before the user is known, so device and telemetry signals
|
|
2611
2797
|
* can be correlated with the eventual authenticated session from the start.
|
|
2612
2798
|
* - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
|
|
2613
2799
|
*
|
|
2614
|
-
* Creating a session
|
|
2615
|
-
*
|
|
2616
|
-
*
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2619
|
-
* `
|
|
2620
|
-
*
|
|
2621
|
-
*
|
|
2622
|
-
*
|
|
2623
|
-
* The `session_token` is superseded when a handoff exchange completes
|
|
2624
|
-
* replace it at that point.
|
|
2625
|
-
*
|
|
2626
|
-
* Anonymous sessions expire
|
|
2627
|
-
* full session
|
|
2628
|
-
*
|
|
2800
|
+
* Creating a session runs on the project credential (`session.write`). The returned
|
|
2801
|
+
* `session_token` is a session credential for the end-user client, not a
|
|
2802
|
+
* management scope. It is delivered as the `__Host-zitadel_session` cookie
|
|
2803
|
+
* (`zitadel_session` over plain http to a loopback host) and authorises the
|
|
2804
|
+
* self-service operations `GET /sessions/me` and `DELETE /sessions/me`
|
|
2805
|
+
* (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`
|
|
2806
|
+
* and `DELETE /sessions/{session_id}` are operator endpoints and require
|
|
2807
|
+
* `session.read` / `session.delete` instead.
|
|
2808
|
+
*
|
|
2809
|
+
* The `session_token` is superseded when a handoff exchange completes. Clients
|
|
2810
|
+
* must replace it at that point.
|
|
2811
|
+
*
|
|
2812
|
+
* Anonymous sessions expire after 10 minutes. The lifetime resets to the
|
|
2813
|
+
* configured full session lifetime when a completing authentication attempt
|
|
2814
|
+
* writes the first authentication factor.
|
|
2815
|
+
* @summary Create an anonymous session
|
|
2629
2816
|
*/
|
|
2630
2817
|
export declare const createSessionBodyProjectIdRegExp: RegExp;
|
|
2631
2818
|
export declare const CreateSessionBody: zod.ZodObject<{
|
|
@@ -2699,9 +2886,10 @@ export declare const CreateSessionResponse: zod.ZodObject<{
|
|
|
2699
2886
|
session_token: zod.ZodString;
|
|
2700
2887
|
}, zod.z.core.$strip>;
|
|
2701
2888
|
/**
|
|
2702
|
-
* Returns
|
|
2889
|
+
* Returns a page of a project's sessions.
|
|
2890
|
+
*
|
|
2703
2891
|
* Sessions of every lifecycle state are returned; each carries its `state`.
|
|
2704
|
-
* Requires `session.read`
|
|
2892
|
+
* Requires the `session.read` scope.
|
|
2705
2893
|
* @summary Query sessions
|
|
2706
2894
|
*/
|
|
2707
2895
|
export declare const querySessionsQueryProjectIdRegExp: RegExp;
|
|
@@ -2807,31 +2995,38 @@ export declare const QuerySessionsResponse: zod.ZodObject<{
|
|
|
2807
2995
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
2808
2996
|
}, zod.z.core.$strip>;
|
|
2809
2997
|
/**
|
|
2810
|
-
*
|
|
2811
|
-
* and returns the resulting session and a `session_token`.
|
|
2998
|
+
* Exchanges a handoff token for a session and a `session_token`.
|
|
2812
2999
|
*
|
|
2813
|
-
*
|
|
3000
|
+
* A handoff token is the short-lived, single-use credential that
|
|
3001
|
+
* `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
|
|
3002
|
+
* complete. This call consumes it. It is the last step of the sign-in sequence:
|
|
3003
|
+
* create the attempt, issue a challenge, verify the proof, create the handoff,
|
|
3004
|
+
* exchange it.
|
|
2814
3005
|
*
|
|
2815
|
-
*
|
|
3006
|
+
* The server resolves the originating authentication attempt from the token and then:
|
|
3007
|
+
*
|
|
3008
|
+
* | Originating authentication attempt | Outcome |
|
|
2816
3009
|
* |---|---|
|
|
2817
3010
|
* | No `session_id` | A new authenticated session is **created**. |
|
|
2818
|
-
* | `session_id` points to an anonymous
|
|
2819
|
-
* | `session_id` points to an active session (step-up) | Existing session is **upgraded
|
|
3011
|
+
* | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |
|
|
3012
|
+
* | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |
|
|
2820
3013
|
*
|
|
2821
3014
|
* The response shape is identical in all three cases.
|
|
2822
3015
|
*
|
|
2823
|
-
* The `session_token` supersedes any previously issued `session_token` for the
|
|
2824
|
-
* Clients must replace their stored token at this point.
|
|
3016
|
+
* The `session_token` supersedes any previously issued `session_token` for the
|
|
3017
|
+
* same session. Clients must replace their stored token at this point.
|
|
2825
3018
|
*
|
|
2826
|
-
* Requires a project service key (OAuth2 client credentials).
|
|
3019
|
+
* Requires a project service key (OAuth2 client credentials). The project comes
|
|
3020
|
+
* from the project secret. A query `project_id` that disagrees answers `403`
|
|
3021
|
+
* with `proj.mismatch`.
|
|
2827
3022
|
*
|
|
2828
|
-
* The
|
|
2829
|
-
*
|
|
2830
|
-
*
|
|
2831
|
-
*
|
|
2832
|
-
* `
|
|
2833
|
-
* `rel.revoked`.
|
|
2834
|
-
* @summary Exchange handoff token for a session
|
|
3023
|
+
* The exchange resolves a deployment the same way as other runtime operations.
|
|
3024
|
+
* A deployment makes a release live, and a release is the configuration that
|
|
3025
|
+
* `zitadel deploy` publishes. With no browser `Origin` and
|
|
3026
|
+
* nothing deployed to the resolved target, the response is `409` with
|
|
3027
|
+
* `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release
|
|
3028
|
+
* answers `409` with `rel.revoked`.
|
|
3029
|
+
* @summary Exchange a handoff token for a session
|
|
2835
3030
|
*/
|
|
2836
3031
|
export declare const exchangeHandoffQueryProjectIdRegExp: RegExp;
|
|
2837
3032
|
export declare const ExchangeHandoffQueryParams: zod.ZodObject<{
|
|
@@ -2908,13 +3103,14 @@ export declare const ExchangeHandoffResponse: zod.ZodObject<{
|
|
|
2908
3103
|
session_token: zod.ZodString;
|
|
2909
3104
|
}, zod.z.core.$strip>;
|
|
2910
3105
|
/**
|
|
2911
|
-
* Returns the current state of a session including its factors and all currently
|
|
2912
|
-
*
|
|
2913
|
-
*
|
|
2914
|
-
* `assurance_levels[]` may shrink over time
|
|
2915
|
-
* without the session itself expiring.
|
|
2916
|
-
*
|
|
2917
|
-
*
|
|
3106
|
+
* Returns the current state of a session, including its factors and all currently satisfied assurance levels.
|
|
3107
|
+
*
|
|
3108
|
+
* An assurance level is a profile, such as `urn:nist:aal:2`, that the
|
|
3109
|
+
* session's verified factors satisfy. `assurance_levels[]` may shrink over time
|
|
3110
|
+
* as factor freshness windows expire, without the session itself expiring.
|
|
3111
|
+
* To restore a dropped level, use step-up authentication: create an
|
|
3112
|
+
* authentication attempt with the same `session_id`.
|
|
3113
|
+
* @summary Get a session by ID
|
|
2918
3114
|
*/
|
|
2919
3115
|
export declare const getSessionPathSessionIdRegExp: RegExp;
|
|
2920
3116
|
export declare const GetSessionParams: zod.ZodObject<{
|
|
@@ -2981,16 +3177,17 @@ export declare const GetSessionResponse: zod.ZodObject<{
|
|
|
2981
3177
|
expires_at: zod.z.ZodISODateTime;
|
|
2982
3178
|
}, zod.z.core.$strip>;
|
|
2983
3179
|
/**
|
|
2984
|
-
*
|
|
3180
|
+
* Revokes a session by deleting it, immediately and for good. A later
|
|
3181
|
+
* `getSession` (`GET /sessions/{session_id}`) for it answers `404`.
|
|
2985
3182
|
*
|
|
2986
|
-
* This is the operator revoke path
|
|
2987
|
-
* project-bound credential. End-user
|
|
3183
|
+
* This is the operator revoke path. It requires the `session.delete` scope on a
|
|
3184
|
+
* project-bound credential. End-user sign-out with the session cookie is
|
|
2988
3185
|
* `DELETE /sessions/me` (`sessionCookie` scheme).
|
|
2989
3186
|
*
|
|
2990
|
-
* Idempotent:
|
|
2991
|
-
* still returns 204
|
|
3187
|
+
* Idempotent: revoking a session that does not exist, or was already revoked,
|
|
3188
|
+
* still returns `204`. After revocation, any tokens derived from the session are
|
|
2992
3189
|
* invalidated.
|
|
2993
|
-
* @summary Revoke session
|
|
3190
|
+
* @summary Revoke a session
|
|
2994
3191
|
*/
|
|
2995
3192
|
export declare const revokeSessionPathSessionIdRegExp: RegExp;
|
|
2996
3193
|
export declare const RevokeSessionParams: zod.ZodObject<{
|
|
@@ -2998,15 +3195,16 @@ export declare const RevokeSessionParams: zod.ZodObject<{
|
|
|
2998
3195
|
}, zod.z.core.$strip>;
|
|
2999
3196
|
export declare const RevokeSessionResponse: zod.ZodVoid;
|
|
3000
3197
|
/**
|
|
3001
|
-
* Returns the current state of the
|
|
3002
|
-
* satisfied assurance levels.
|
|
3198
|
+
* Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
|
|
3003
3199
|
*
|
|
3004
3200
|
* With `project_id`, the session is returned only when it belongs to that project.
|
|
3005
3201
|
*
|
|
3006
|
-
*
|
|
3007
|
-
*
|
|
3008
|
-
*
|
|
3009
|
-
*
|
|
3202
|
+
* An assurance level is a profile, such as `urn:nist:aal:2`, that the
|
|
3203
|
+
* session's verified factors satisfy. `assurance_levels[]` may shrink over time
|
|
3204
|
+
* as factor freshness windows expire, without the session itself expiring.
|
|
3205
|
+
* To restore a dropped level, use step-up authentication: create an
|
|
3206
|
+
* authentication attempt with the same `session_id`.
|
|
3207
|
+
* @summary Get my session
|
|
3010
3208
|
*/
|
|
3011
3209
|
export declare const getMySessionQueryProjectIdRegExp: RegExp;
|
|
3012
3210
|
export declare const GetMySessionQueryParams: zod.ZodObject<{
|
|
@@ -3073,15 +3271,15 @@ export declare const GetMySessionResponse: zod.ZodObject<{
|
|
|
3073
3271
|
expires_at: zod.z.ZodISODateTime;
|
|
3074
3272
|
}, zod.z.core.$strip>;
|
|
3075
3273
|
/**
|
|
3076
|
-
*
|
|
3274
|
+
* Revokes the caller's own session by deleting it, which signs the user out.
|
|
3077
3275
|
*
|
|
3078
|
-
* The session cookie issued at creation (or superseded by a
|
|
3079
|
-
* exchange)
|
|
3080
|
-
* in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
|
|
3081
|
-
* this still returns 204
|
|
3082
|
-
* and the
|
|
3276
|
+
* The request needs the session cookie issued at creation (or superseded by a
|
|
3277
|
+
* handoff exchange). It also needs the session's CSRF token from
|
|
3278
|
+
* `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,
|
|
3279
|
+
* this still returns `204`. Any tokens derived from the session are
|
|
3280
|
+
* invalidated, and the response clears the cookie.
|
|
3083
3281
|
*
|
|
3084
|
-
* With `project_id`, only a session of that project is
|
|
3282
|
+
* With `project_id`, only a session of that project is revoked. A session of
|
|
3085
3283
|
* another project is left alone, and so is its cookie.
|
|
3086
3284
|
* @summary Revoke my session
|
|
3087
3285
|
*/
|
|
@@ -3091,13 +3289,13 @@ export declare const RevokeMySessionQueryParams: zod.ZodObject<{
|
|
|
3091
3289
|
}, zod.z.core.$strict>;
|
|
3092
3290
|
export declare const RevokeMySessionResponse: zod.ZodVoid;
|
|
3093
3291
|
/**
|
|
3094
|
-
* Returns the session-bound token
|
|
3095
|
-
* (
|
|
3096
|
-
* state-changing requests the session cookie authenticates that
|
|
3097
|
-
*
|
|
3098
|
-
* HttpOnly cookie is still the credential, and a cross-site page
|
|
3099
|
-
* read this response. It stays the same for the life of the session,
|
|
3100
|
-
* client fetches it once per session.
|
|
3292
|
+
* Returns the session-bound token that protects against cross-site request
|
|
3293
|
+
* forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the
|
|
3294
|
+
* state-changing requests that the session cookie authenticates and that
|
|
3295
|
+
* require it; see the `sessionCookie` scheme. It authorizes nothing on its
|
|
3296
|
+
* own: the HttpOnly cookie is still the credential, and a cross-site page
|
|
3297
|
+
* cannot read this response. It stays the same for the life of the session,
|
|
3298
|
+
* so a client fetches it once per session.
|
|
3101
3299
|
*
|
|
3102
3300
|
* With `project_id`, the token is returned only when the session belongs to
|
|
3103
3301
|
* that project.
|
|
@@ -3111,16 +3309,21 @@ export declare const GetMySessionCsrfTokenResponse: zod.ZodObject<{
|
|
|
3111
3309
|
csrf_token: zod.ZodString;
|
|
3112
3310
|
}, zod.z.core.$strip>;
|
|
3113
3311
|
/**
|
|
3114
|
-
*
|
|
3115
|
-
*
|
|
3116
|
-
*
|
|
3117
|
-
*
|
|
3118
|
-
*
|
|
3119
|
-
*
|
|
3120
|
-
*
|
|
3121
|
-
* The
|
|
3122
|
-
* schema
|
|
3123
|
-
*
|
|
3312
|
+
* Creates a user schema, the JSON Schema that says which attributes a user
|
|
3313
|
+
* has and which attribute identifies the user.
|
|
3314
|
+
*
|
|
3315
|
+
* The request is either a user schema (`kind: user-schema`) or a schema URL
|
|
3316
|
+
* (`kind: schema-url`) that the server resolves. The response's `id` is what
|
|
3317
|
+
* `createUser` (`POST /users`) takes as `schema`.
|
|
3318
|
+
*
|
|
3319
|
+
* The optional `$id` is the JSON Schema document URI that identifies the
|
|
3320
|
+
* schema in later requests. It is a stable identity for GitOps, not a
|
|
3321
|
+
* free-form resource key. When `$id` is omitted, the server generates a
|
|
3322
|
+
* `sch_*` URL. When provided, `$id` must be unique within the project and
|
|
3323
|
+
* should ideally be a valid URI pointing at where the schema can be accessed.
|
|
3324
|
+
* A `$id` that already exists in the project is refused; pick another or
|
|
3325
|
+
* omit it.
|
|
3326
|
+
* @summary Create a schema
|
|
3124
3327
|
*/
|
|
3125
3328
|
export declare const createSchemaQueryProjectIdRegExp: RegExp;
|
|
3126
3329
|
export declare const createSchemaQueryTeamIdRegExp: RegExp;
|
|
@@ -3175,9 +3378,12 @@ export declare const CreateSchemaResponse: zod.ZodObject<{
|
|
|
3175
3378
|
id: zod.ZodString;
|
|
3176
3379
|
}, zod.z.core.$strip>;
|
|
3177
3380
|
/**
|
|
3178
|
-
*
|
|
3179
|
-
*
|
|
3180
|
-
*
|
|
3381
|
+
* Lists the schemas of a project, newest first, paginated with a cursor.
|
|
3382
|
+
* Filter by `object_type` or `kind`, and choose which revisions to return
|
|
3383
|
+
* with `revisions`.
|
|
3384
|
+
*
|
|
3385
|
+
* A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.
|
|
3386
|
+
* @summary List schemas
|
|
3181
3387
|
*/
|
|
3182
3388
|
export declare const listSchemasQueryProjectIdRegExp: RegExp;
|
|
3183
3389
|
export declare const listSchemasQueryLimitDefault = 20;
|
|
@@ -3251,17 +3457,17 @@ export declare const ListSchemasResponse: zod.ZodObject<{
|
|
|
3251
3457
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
3252
3458
|
}, zod.z.core.$strip>;
|
|
3253
3459
|
/**
|
|
3254
|
-
*
|
|
3460
|
+
* Returns a schema by ID. A schema ID identifies one immutable revision, so
|
|
3255
3461
|
* this returns exactly that revision. To find the current revision of an
|
|
3256
|
-
* object type,
|
|
3462
|
+
* object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
|
|
3257
3463
|
*
|
|
3258
3464
|
* Schema IDs are unique within a project, not across projects (the seeded
|
|
3259
|
-
* default schema carries the same `$id` in every project). A
|
|
3465
|
+
* default schema carries the same `$id` in every project). A console
|
|
3260
3466
|
* session that manages more than one project names the project with
|
|
3261
3467
|
* `project_id`; without it, the ID is resolved in the credential's own
|
|
3262
3468
|
* project when it is ambiguous. A project secret always resolves in its
|
|
3263
3469
|
* own project and ignores `project_id`.
|
|
3264
|
-
* @summary Get schema by ID
|
|
3470
|
+
* @summary Get a schema by ID
|
|
3265
3471
|
*/
|
|
3266
3472
|
export declare const GetSchemaByIdParams: zod.ZodObject<{
|
|
3267
3473
|
id: zod.ZodString;
|
|
@@ -3320,17 +3526,22 @@ export declare const GetSchemaByIdResponse: zod.ZodObject<{
|
|
|
3320
3526
|
}, zod.z.core.$strip>;
|
|
3321
3527
|
}, zod.z.core.$strip>;
|
|
3322
3528
|
/**
|
|
3323
|
-
*
|
|
3324
|
-
*
|
|
3325
|
-
*
|
|
3326
|
-
*
|
|
3327
|
-
*
|
|
3328
|
-
*
|
|
3329
|
-
*
|
|
3330
|
-
*
|
|
3331
|
-
*
|
|
3332
|
-
*
|
|
3333
|
-
*
|
|
3529
|
+
* Creates a flow definition by publishing a new revision of it. It records a
|
|
3530
|
+
* `flowdef.created` event.
|
|
3531
|
+
*
|
|
3532
|
+
* A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
|
|
3533
|
+
* defines the sequence of steps (capabilities) for one user journey, such as
|
|
3534
|
+
* registration, login or password reset. The body follows the flow
|
|
3535
|
+
* definition schema, which includes the flow's purpose, audience and steps.
|
|
3536
|
+
*
|
|
3537
|
+
* Every call allocates a new opaque ID. That `id` is the `revision_id` a
|
|
3538
|
+
* release pins for `kind: flow_definition`.
|
|
3539
|
+
*
|
|
3540
|
+
* Revisions of one flow share its `name`. Posting a definition under an
|
|
3541
|
+
* existing `name` publishes a new revision of that flow, which is not a
|
|
3542
|
+
* conflict. List with `name` to see a flow's revisions, newest by creation
|
|
3543
|
+
* time first.
|
|
3544
|
+
* @summary Create a flow definition
|
|
3334
3545
|
*/
|
|
3335
3546
|
export declare const createFlowDefinitionBodyProjectIdRegExp: RegExp;
|
|
3336
3547
|
export declare const createFlowDefinitionBodyFlowDefinitionNameRegExp: RegExp;
|
|
@@ -3389,7 +3600,7 @@ export declare const CreateFlowDefinitionBody: zod.ZodObject<{
|
|
|
3389
3600
|
show: "show";
|
|
3390
3601
|
}>>;
|
|
3391
3602
|
transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
3392
|
-
target: zod.ZodString
|
|
3603
|
+
target: zod.ZodOptional<zod.ZodString>;
|
|
3393
3604
|
action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
3394
3605
|
switch: "switch";
|
|
3395
3606
|
pivot: "pivot";
|
|
@@ -3467,7 +3678,7 @@ export declare const CreateFlowDefinitionResponse: zod.ZodObject<{
|
|
|
3467
3678
|
show: "show";
|
|
3468
3679
|
}>>;
|
|
3469
3680
|
transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
3470
|
-
target: zod.ZodString
|
|
3681
|
+
target: zod.ZodOptional<zod.ZodString>;
|
|
3471
3682
|
action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
3472
3683
|
switch: "switch";
|
|
3473
3684
|
pivot: "pivot";
|
|
@@ -3529,9 +3740,12 @@ export declare const CreateFlowDefinitionResponse: zod.ZodObject<{
|
|
|
3529
3740
|
updated_at: zod.z.ZodISODateTime;
|
|
3530
3741
|
}, zod.z.core.$strip>;
|
|
3531
3742
|
/**
|
|
3532
|
-
*
|
|
3533
|
-
*
|
|
3534
|
-
*
|
|
3743
|
+
* Lists the project's flow definitions with their configurations, newest by
|
|
3744
|
+
* creation time first. A flow definition sets which step of a sign-in
|
|
3745
|
+
* renders when, and which fields each step collects.
|
|
3746
|
+
*
|
|
3747
|
+
* The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)
|
|
3748
|
+
* takes. Filter by `name` to list the revisions of one flow.
|
|
3535
3749
|
* @summary List flow definitions
|
|
3536
3750
|
*/
|
|
3537
3751
|
export declare const listFlowDefinitionsQueryLimitDefault = 20;
|
|
@@ -3622,7 +3836,7 @@ export declare const ListFlowDefinitionsResponse: zod.ZodObject<{
|
|
|
3622
3836
|
show: "show";
|
|
3623
3837
|
}>>;
|
|
3624
3838
|
transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
3625
|
-
target: zod.ZodString
|
|
3839
|
+
target: zod.ZodOptional<zod.ZodString>;
|
|
3626
3840
|
action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
3627
3841
|
switch: "switch";
|
|
3628
3842
|
pivot: "pivot";
|
|
@@ -3686,8 +3900,9 @@ export declare const ListFlowDefinitionsResponse: zod.ZodObject<{
|
|
|
3686
3900
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
3687
3901
|
}, zod.z.core.$strip>;
|
|
3688
3902
|
/**
|
|
3689
|
-
*
|
|
3690
|
-
*
|
|
3903
|
+
* Returns one flow definition revision. Pass the `id` that
|
|
3904
|
+
* `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
|
|
3905
|
+
* @summary Get a flow definition by ID
|
|
3691
3906
|
*/
|
|
3692
3907
|
export declare const GetFlowDefinitionParams: zod.ZodObject<{
|
|
3693
3908
|
id: zod.ZodString;
|
|
@@ -3753,7 +3968,7 @@ export declare const GetFlowDefinitionResponse: zod.ZodObject<{
|
|
|
3753
3968
|
show: "show";
|
|
3754
3969
|
}>>;
|
|
3755
3970
|
transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
3756
|
-
target: zod.ZodString
|
|
3971
|
+
target: zod.ZodOptional<zod.ZodString>;
|
|
3757
3972
|
action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
3758
3973
|
switch: "switch";
|
|
3759
3974
|
pivot: "pivot";
|
|
@@ -3817,9 +4032,10 @@ export declare const GetFlowDefinitionResponse: zod.ZodObject<{
|
|
|
3817
4032
|
/**
|
|
3818
4033
|
* Creates a team in the project, with a name no other team in the project has.
|
|
3819
4034
|
*
|
|
3820
|
-
* A
|
|
3821
|
-
*
|
|
3822
|
-
*
|
|
4035
|
+
* A team groups users inside a project and can represent a customer. A taken
|
|
4036
|
+
* name is refused with `409 team.already_exists`: choose another name. The
|
|
4037
|
+
* new team has no members yet.
|
|
4038
|
+
* @summary Create a team
|
|
3823
4039
|
*/
|
|
3824
4040
|
export declare const createTeamQueryProjectIdRegExp: RegExp;
|
|
3825
4041
|
export declare const CreateTeamQueryParams: zod.ZodObject<{
|
|
@@ -3840,10 +4056,11 @@ export declare const CreateTeamResponse: zod.ZodObject<{
|
|
|
3840
4056
|
updated_at: zod.z.ZodISODateTime;
|
|
3841
4057
|
}, zod.z.core.$strip>;
|
|
3842
4058
|
/**
|
|
3843
|
-
* Returns
|
|
4059
|
+
* Returns a page of a project's teams.
|
|
3844
4060
|
*
|
|
3845
|
-
* `
|
|
3846
|
-
* project
|
|
4061
|
+
* Pass the response's `next_page_token` as `page_token` to fetch the next
|
|
4062
|
+
* page. `project_id` names the project to list; without it, the credential's
|
|
4063
|
+
* own project is listed.
|
|
3847
4064
|
* @summary Query teams
|
|
3848
4065
|
*/
|
|
3849
4066
|
export declare const queryTeamsQueryProjectIdRegExp: RegExp;
|
|
@@ -3899,8 +4116,10 @@ export declare const QueryTeamsResponse: zod.ZodObject<{
|
|
|
3899
4116
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
3900
4117
|
}, zod.z.core.$strip>;
|
|
3901
4118
|
/**
|
|
3902
|
-
* Returns a
|
|
3903
|
-
*
|
|
4119
|
+
* Returns a team, a group of users inside a project, by ID.
|
|
4120
|
+
*
|
|
4121
|
+
* A deactivated team is still returned, with status `deactivated`.
|
|
4122
|
+
* @summary Get a team by ID
|
|
3904
4123
|
*/
|
|
3905
4124
|
export declare const getTeamPathTeamIdRegExp: RegExp;
|
|
3906
4125
|
export declare const GetTeamParams: zod.ZodObject<{
|
|
@@ -3917,20 +4136,20 @@ export declare const GetTeamResponse: zod.ZodObject<{
|
|
|
3917
4136
|
updated_at: zod.z.ZodISODateTime;
|
|
3918
4137
|
}, zod.z.core.$strip>;
|
|
3919
4138
|
/**
|
|
3920
|
-
* Deactivates
|
|
4139
|
+
* Deactivates a team and removes its memberships.
|
|
3921
4140
|
*
|
|
3922
|
-
* The team is
|
|
3923
|
-
*
|
|
3924
|
-
*
|
|
4141
|
+
* The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with
|
|
4142
|
+
* status `deactivated`. The users whose lifecycle the team owns are
|
|
4143
|
+
* deactivated with it.
|
|
3925
4144
|
*
|
|
3926
4145
|
* The request is idempotent. Deleting a team that is already deactivated
|
|
3927
|
-
* or
|
|
4146
|
+
* or does not exist succeeds without changing anything.
|
|
3928
4147
|
*
|
|
3929
|
-
* A team that still owns a project is refused with `409
|
|
3930
|
-
*
|
|
3931
|
-
*
|
|
3932
|
-
*
|
|
3933
|
-
* @summary
|
|
4148
|
+
* A team that still owns a project is refused with `409 team.owns_project`.
|
|
4149
|
+
* Deactivating it would leave the project owned by a deactivated team and so
|
|
4150
|
+
* unmanageable. No endpoint ends a team's ownership of a project yet, so for
|
|
4151
|
+
* now such a team cannot be deactivated through the API.
|
|
4152
|
+
* @summary Deactivate a team
|
|
3934
4153
|
*/
|
|
3935
4154
|
export declare const deleteTeamPathTeamIdRegExp: RegExp;
|
|
3936
4155
|
export declare const DeleteTeamParams: zod.ZodObject<{
|
|
@@ -3938,8 +4157,12 @@ export declare const DeleteTeamParams: zod.ZodObject<{
|
|
|
3938
4157
|
}, zod.z.core.$strip>;
|
|
3939
4158
|
export declare const DeleteTeamResponse: zod.ZodVoid;
|
|
3940
4159
|
/**
|
|
3941
|
-
*
|
|
3942
|
-
*
|
|
4160
|
+
* Renames an active team.
|
|
4161
|
+
*
|
|
4162
|
+
* Only active teams can be updated. A deactivated team answers `404`. The new
|
|
4163
|
+
* name must be unique within the project, and a taken name answers `409`:
|
|
4164
|
+
* choose another name.
|
|
4165
|
+
* @summary Update a team
|
|
3943
4166
|
*/
|
|
3944
4167
|
export declare const updateTeamPathTeamIdRegExp: RegExp;
|
|
3945
4168
|
export declare const UpdateTeamParams: zod.ZodObject<{
|
|
@@ -3960,15 +4183,19 @@ export declare const UpdateTeamResponse: zod.ZodObject<{
|
|
|
3960
4183
|
updated_at: zod.z.ZodISODateTime;
|
|
3961
4184
|
}, zod.z.core.$strip>;
|
|
3962
4185
|
/**
|
|
3963
|
-
* Publishes a new immutable branding revision for the project
|
|
3964
|
-
* revisions cannot be updated or deleted
|
|
3965
|
-
*
|
|
4186
|
+
* Publishes a new immutable branding revision for the project, and records a
|
|
4187
|
+
* `branding.created` event. Branding revisions cannot be updated or deleted.
|
|
4188
|
+
* Every edit publishes a new revision. Flow responses carry the branding
|
|
4189
|
+
* revision the request's release pins.
|
|
4190
|
+
*
|
|
4191
|
+
* The `id` of the new revision is the revision ID a release pins for
|
|
4192
|
+
* `kind: branding`.
|
|
3966
4193
|
*
|
|
3967
4194
|
* The `liquid_template` is validated lexically on save (size, encoding,
|
|
3968
4195
|
* banned patterns such as `<script>` tags, inline event handlers, and the
|
|
3969
4196
|
* `| raw` filter). Authoritative LiquidJS validation runs at authoring
|
|
3970
|
-
* time
|
|
3971
|
-
* @summary Publish a
|
|
4197
|
+
* time, in `zitadel deploy` and `zitadel deploy --dry-run`.
|
|
4198
|
+
* @summary Publish a branding revision
|
|
3972
4199
|
*/
|
|
3973
4200
|
export declare const createBrandingQueryProjectIdRegExp: RegExp;
|
|
3974
4201
|
export declare const CreateBrandingQueryParams: zod.ZodObject<{
|
|
@@ -4255,11 +4482,11 @@ export declare const CreateBrandingResponse: zod.ZodObject<{
|
|
|
4255
4482
|
}, zod.z.core.$strip>;
|
|
4256
4483
|
}, zod.z.core.$strip>;
|
|
4257
4484
|
/**
|
|
4258
|
-
* Lists branding revisions
|
|
4259
|
-
*
|
|
4260
|
-
*
|
|
4261
|
-
*
|
|
4262
|
-
*
|
|
4485
|
+
* Lists a project's branding revisions, newest first, capped at the 100 most
|
|
4486
|
+
* recent and not paginated. The first entry is the newest revision.
|
|
4487
|
+
*
|
|
4488
|
+
* The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and
|
|
4489
|
+
* that a release pins for `kind: branding`.
|
|
4263
4490
|
* @summary List branding revisions
|
|
4264
4491
|
*/
|
|
4265
4492
|
export declare const listBrandingQueryProjectIdRegExp: RegExp;
|
|
@@ -4275,7 +4502,8 @@ export declare const ListBrandingResponse: zod.ZodArray<zod.ZodObject<{
|
|
|
4275
4502
|
created_at: zod.z.ZodISODateTime;
|
|
4276
4503
|
}, zod.z.core.$strip>>;
|
|
4277
4504
|
/**
|
|
4278
|
-
*
|
|
4505
|
+
* Returns one branding revision, including its stored configuration. Pass the
|
|
4506
|
+
* `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
|
|
4279
4507
|
* @summary Get a branding revision by ID
|
|
4280
4508
|
*/
|
|
4281
4509
|
export declare const GetBrandingByIdParams: zod.ZodObject<{
|
|
@@ -4424,17 +4652,19 @@ export declare const GetBrandingByIdResponse: zod.ZodObject<{
|
|
|
4424
4652
|
}, zod.z.core.$strip>;
|
|
4425
4653
|
}, zod.z.core.$strip>;
|
|
4426
4654
|
/**
|
|
4427
|
-
* Creates or revises
|
|
4428
|
-
*
|
|
4429
|
-
*
|
|
4430
|
-
*
|
|
4431
|
-
*
|
|
4432
|
-
*
|
|
4433
|
-
*
|
|
4434
|
-
*
|
|
4435
|
-
*
|
|
4436
|
-
*
|
|
4437
|
-
*
|
|
4655
|
+
* Creates or revises an identity provider, an external sign-in such as
|
|
4656
|
+
* Google, from its connection document. If the slug does not already exist,
|
|
4657
|
+
* a new identity provider is created. If one with that slug already exists,
|
|
4658
|
+
* a revision is created.
|
|
4659
|
+
*
|
|
4660
|
+
* A revision gets a new `revision_id` and does not modify the identity
|
|
4661
|
+
* provider's `id`. Identity links, which tie a user to an account at the
|
|
4662
|
+
* provider, keep resolving. Releases and authentication attempts stay pinned
|
|
4663
|
+
* to the revision they captured.
|
|
4664
|
+
*
|
|
4665
|
+
* Identity fields are fixed for the life of the identity provider and a
|
|
4666
|
+
* revision that changes one is rejected: `protocol`, `subject_claim`, and
|
|
4667
|
+
* `issuer`, the field that names the authority. Their values decide which provider
|
|
4438
4668
|
* account a stored subject belongs to, so changing one would silently
|
|
4439
4669
|
* repoint existing identities at a different provider.
|
|
4440
4670
|
*
|
|
@@ -4445,18 +4675,18 @@ export declare const GetBrandingByIdResponse: zod.ZodObject<{
|
|
|
4445
4675
|
* OIDC is the only protocol.
|
|
4446
4676
|
*
|
|
4447
4677
|
* The document is validated against the `idp-connection.json` schema before
|
|
4448
|
-
* anything is stored. The rules the
|
|
4449
|
-
* then run on the document, so a
|
|
4450
|
-
* refused here
|
|
4451
|
-
*
|
|
4452
|
-
*
|
|
4453
|
-
*
|
|
4678
|
+
* anything is stored. The rules the server applies when it starts a sign-in
|
|
4679
|
+
* then run on the document, so a document that could never start one is
|
|
4680
|
+
* refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint
|
|
4681
|
+
* without the others. Set no endpoint, and discovery fills them, or set
|
|
4682
|
+
* `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and
|
|
4683
|
+
* `userinfo_endpoint`. `userinfo_endpoint` may be left out when
|
|
4454
4684
|
* `id_token_mapping` is on, but setting it alone still counts as setting an
|
|
4455
4685
|
* endpoint. The details list the missing endpoints.
|
|
4456
4686
|
*
|
|
4457
4687
|
* A refused document stores nothing, and on a revise the current revision
|
|
4458
4688
|
* stays unchanged.
|
|
4459
|
-
* @summary Create or revise an identity provider
|
|
4689
|
+
* @summary Create or revise an identity provider
|
|
4460
4690
|
*/
|
|
4461
4691
|
export declare const createIdpQueryProjectIdRegExp: RegExp;
|
|
4462
4692
|
export declare const CreateIdpQueryParams: zod.ZodObject<{
|
|
@@ -4572,9 +4802,10 @@ export declare const CreateIdpResponse: zod.ZodObject<{
|
|
|
4572
4802
|
}, zod.z.core.$strip>;
|
|
4573
4803
|
}, zod.z.core.$strip>;
|
|
4574
4804
|
/**
|
|
4575
|
-
* Returns the identity
|
|
4576
|
-
* cursor.
|
|
4577
|
-
*
|
|
4805
|
+
* Returns the identity providers of a project, external sign-ins such as
|
|
4806
|
+
* Google, paginated with a cursor. Each identity provider appears once, with
|
|
4807
|
+
* its newest revision.
|
|
4808
|
+
* @summary Query identity providers
|
|
4578
4809
|
*/
|
|
4579
4810
|
export declare const queryIdpsQueryProjectIdRegExp: RegExp;
|
|
4580
4811
|
export declare const QueryIdpsQueryParams: zod.ZodObject<{
|
|
@@ -4674,11 +4905,12 @@ export declare const QueryIdpsResponse: zod.ZodObject<{
|
|
|
4674
4905
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
4675
4906
|
}, zod.z.core.$strip>;
|
|
4676
4907
|
/**
|
|
4677
|
-
*
|
|
4678
|
-
* `GET /idps/{id}/revisions` lists
|
|
4908
|
+
* Returns an identity provider, an external sign-in such as Google, by ID at
|
|
4909
|
+
* its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists
|
|
4910
|
+
* every revision of it.
|
|
4679
4911
|
*
|
|
4680
4912
|
* The lookup is scoped to the project in `project_id`.
|
|
4681
|
-
* @summary Get an identity provider
|
|
4913
|
+
* @summary Get an identity provider by ID
|
|
4682
4914
|
*/
|
|
4683
4915
|
export declare const GetIdpByIdParams: zod.ZodObject<{
|
|
4684
4916
|
id: zod.ZodString;
|
|
@@ -4745,11 +4977,12 @@ export declare const GetIdpByIdResponse: zod.ZodObject<{
|
|
|
4745
4977
|
}, zod.z.core.$strip>;
|
|
4746
4978
|
}, zod.z.core.$strip>;
|
|
4747
4979
|
/**
|
|
4748
|
-
*
|
|
4749
|
-
* cursor. The order is fixed, so there
|
|
4980
|
+
* Lists every revision of one identity provider, an external sign-in such as
|
|
4981
|
+
* Google, newest first, paginated with a cursor. The order is fixed, so there
|
|
4982
|
+
* is no `sorting`.
|
|
4750
4983
|
*
|
|
4751
4984
|
* The lookup is scoped to the project in `project_id`.
|
|
4752
|
-
* @summary List the revisions of an identity provider
|
|
4985
|
+
* @summary List the revisions of an identity provider
|
|
4753
4986
|
*/
|
|
4754
4987
|
export declare const ListIdpRevisionsParams: zod.ZodObject<{
|
|
4755
4988
|
id: zod.ZodString;
|
|
@@ -4823,11 +5056,12 @@ export declare const ListIdpRevisionsResponse: zod.ZodObject<{
|
|
|
4823
5056
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
4824
5057
|
}, zod.z.core.$strip>;
|
|
4825
5058
|
/**
|
|
4826
|
-
*
|
|
4827
|
-
* attempt or a
|
|
5059
|
+
* Returns one revision of an identity provider, an external sign-in such as
|
|
5060
|
+
* Google, by its `revision_id`, the value an authentication attempt or a
|
|
5061
|
+
* release pins.
|
|
4828
5062
|
*
|
|
4829
5063
|
* The lookup is scoped to the project in `project_id`.
|
|
4830
|
-
* @summary Get
|
|
5064
|
+
* @summary Get a revision of an identity provider
|
|
4831
5065
|
*/
|
|
4832
5066
|
export declare const GetIdpRevisionByIdParams: zod.ZodObject<{
|
|
4833
5067
|
revision_id: zod.ZodString;
|
|
@@ -4895,9 +5129,12 @@ export declare const GetIdpRevisionByIdResponse: zod.ZodObject<{
|
|
|
4895
5129
|
}, zod.z.core.$strip>;
|
|
4896
5130
|
/**
|
|
4897
5131
|
* Lists the project's policies, one per operation, each as its newest
|
|
4898
|
-
* revision
|
|
4899
|
-
*
|
|
4900
|
-
*
|
|
5132
|
+
* revision.
|
|
5133
|
+
*
|
|
5134
|
+
* A policy holds a project's rules for one operation, such as setting a
|
|
5135
|
+
* password. The list is ordered by `created_at` (first publish) and then
|
|
5136
|
+
* `id`. Filter by `operation` to read the policy of one operation; a project
|
|
5137
|
+
* that never published one gets an empty list.
|
|
4901
5138
|
*
|
|
4902
5139
|
* The lookup is scoped to the project in `project_id`.
|
|
4903
5140
|
* @summary List policies
|
|
@@ -4939,22 +5176,31 @@ export declare const ListPoliciesResponse: zod.ZodObject<{
|
|
|
4939
5176
|
}, zod.z.core.$strip>;
|
|
4940
5177
|
/**
|
|
4941
5178
|
* Publishes the project's policy for an operation as a new immutable
|
|
4942
|
-
* revision, creating the policy on its first publish.
|
|
4943
|
-
*
|
|
5179
|
+
* revision, creating the policy on its first publish. A revision applies
|
|
5180
|
+
* once a deployed release pins it. Nothing already stored is
|
|
4944
5181
|
* re-evaluated, so a stricter password policy applies the next time a
|
|
4945
5182
|
* password is set.
|
|
4946
5183
|
*
|
|
4947
|
-
*
|
|
5184
|
+
* A policy holds a project's rules for one operation, such as setting a
|
|
5185
|
+
* password. The first publish records a `policy.created` event and every
|
|
5186
|
+
* later one a `policy.updated` event.
|
|
5187
|
+
*
|
|
5188
|
+
* The request is typed by `operation`. An unknown operation or setting, or
|
|
4948
5189
|
* a value of the wrong type or outside its bounds, answers `req.invalid`
|
|
4949
|
-
* like any malformed request.
|
|
4950
|
-
*
|
|
4951
|
-
*
|
|
4952
|
-
*
|
|
4953
|
-
*
|
|
4954
|
-
*
|
|
4955
|
-
*
|
|
4956
|
-
* settings
|
|
4957
|
-
* rule
|
|
5190
|
+
* like any malformed request.
|
|
5191
|
+
*
|
|
5192
|
+
* The operation's template then checks the config again, together with the
|
|
5193
|
+
* rules that relate settings to each other (a `min_length` above
|
|
5194
|
+
* `max_length`), and answers `pol.invalid`. Its `details.details.violations`
|
|
5195
|
+
* lists everything that failed, settings first, then rules.
|
|
5196
|
+
* `{"setting": "min_length"}` names one setting. `{"config_rule":
|
|
5197
|
+
* "min_length_not_above_max_length", "settings": ["min_length",
|
|
5198
|
+
* "max_length"]}` names a rule across settings, with the settings it reads.
|
|
5199
|
+
* Fix what the violations list and publish again. To check a config without
|
|
5200
|
+
* publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).
|
|
5201
|
+
*
|
|
5202
|
+
* A setting left out is off, and `{}` switches every rule off; there are no
|
|
5203
|
+
* defaults.
|
|
4958
5204
|
* @summary Publish a policy
|
|
4959
5205
|
*/
|
|
4960
5206
|
export declare const publishPolicyQueryProjectIdRegExp: RegExp;
|
|
@@ -4997,24 +5243,27 @@ export declare const PublishPolicyResponse: zod.ZodObject<{
|
|
|
4997
5243
|
}, zod.z.core.$strip>;
|
|
4998
5244
|
/**
|
|
4999
5245
|
* Evaluates a policy config against one request, without side effects, and
|
|
5000
|
-
* answers the decision the operation would reach.
|
|
5001
|
-
*
|
|
5002
|
-
*
|
|
5003
|
-
*
|
|
5246
|
+
* answers the decision the operation would reach. A policy holds a
|
|
5247
|
+
* project's rules for one operation, such as setting a password.
|
|
5248
|
+
*
|
|
5249
|
+
* Nothing is read from or written to the project. The config is the one in
|
|
5250
|
+
* the body, checked exactly as a publish checks it, so an invalid config
|
|
5251
|
+
* answers `pol.invalid` with the same violations. Fix the settings the
|
|
5252
|
+
* violations list and send the request again.
|
|
5004
5253
|
*
|
|
5005
5254
|
* `input` is what the operation's request carries, in the operation's own
|
|
5006
|
-
* terms (a password, not its length)
|
|
5255
|
+
* terms (a password, not its length). The server derives what the policy
|
|
5007
5256
|
* checks with the code the live operation runs, guards included. `facts`
|
|
5008
5257
|
* states what the operation would look up at runtime, such as whether the
|
|
5009
5258
|
* candidate matches one of the user's kept passwords.
|
|
5010
5259
|
*
|
|
5011
5260
|
* The decision and the names of the failed rules hold wherever the
|
|
5012
|
-
* operation runs. `code` and `violations` are what an API call answers
|
|
5261
|
+
* operation runs. `code` and `violations` are what an API call answers. A
|
|
5013
5262
|
* login flow shows the same rules as field errors on the password field
|
|
5014
5263
|
* (`error.x-auth-methods#password_<rule>` in `step.error`).
|
|
5015
5264
|
*
|
|
5016
|
-
*
|
|
5017
|
-
* and pass its config
|
|
5265
|
+
* This operation does not choose which policy a project or release applies.
|
|
5266
|
+
* Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.
|
|
5018
5267
|
*
|
|
5019
5268
|
* The caller needs read access to the project in `project_id`.
|
|
5020
5269
|
* @summary Evaluate a policy
|
|
@@ -5053,12 +5302,15 @@ export declare const EvaluatePolicyResponse: zod.ZodObject<{
|
|
|
5053
5302
|
violations: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
5054
5303
|
}, zod.z.core.$strip>;
|
|
5055
5304
|
/**
|
|
5056
|
-
*
|
|
5057
|
-
*
|
|
5305
|
+
* Returns a policy as its newest revision. A revision applies once a deployed
|
|
5306
|
+
* release pins it.
|
|
5307
|
+
*
|
|
5308
|
+
* A policy holds a project's rules for one operation, such as setting a
|
|
5309
|
+
* password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
|
|
5058
5310
|
*
|
|
5059
5311
|
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
5060
|
-
* project answers not found exactly as an unknown
|
|
5061
|
-
* @summary Get a policy
|
|
5312
|
+
* project answers not found exactly as an unknown ID does.
|
|
5313
|
+
* @summary Get a policy by ID
|
|
5062
5314
|
*/
|
|
5063
5315
|
export declare const getPolicyPathPolicyIdRegExp: RegExp;
|
|
5064
5316
|
export declare const GetPolicyParams: zod.ZodObject<{
|
|
@@ -5090,11 +5342,14 @@ export declare const GetPolicyResponse: zod.ZodObject<{
|
|
|
5090
5342
|
updated_at: zod.z.ZodISODateTime;
|
|
5091
5343
|
}, zod.z.core.$strip>;
|
|
5092
5344
|
/**
|
|
5093
|
-
*
|
|
5094
|
-
*
|
|
5345
|
+
* Lists every revision of one policy, newest first, one page at a time. The
|
|
5346
|
+
* order is fixed, so there is no `sorting`.
|
|
5347
|
+
*
|
|
5348
|
+
* Each publish of a policy adds a revision. Pass the policy `id` that
|
|
5349
|
+
* `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
|
|
5095
5350
|
*
|
|
5096
5351
|
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
5097
|
-
* project answers not found exactly as an unknown
|
|
5352
|
+
* project answers not found exactly as an unknown ID does.
|
|
5098
5353
|
* @summary List the revisions of a policy
|
|
5099
5354
|
*/
|
|
5100
5355
|
export declare const listPolicyRevisionsPathPolicyIdRegExp: RegExp;
|
|
@@ -5134,11 +5389,14 @@ export declare const ListPolicyRevisionsResponse: zod.ZodObject<{
|
|
|
5134
5389
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
5135
5390
|
}, zod.z.core.$strip>;
|
|
5136
5391
|
/**
|
|
5137
|
-
*
|
|
5392
|
+
* Returns one revision of a policy, the newest or an older one.
|
|
5393
|
+
*
|
|
5394
|
+
* Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)
|
|
5395
|
+
* returns.
|
|
5138
5396
|
*
|
|
5139
5397
|
* The lookup is scoped to the project in `project_id`: a revision of another
|
|
5140
|
-
* project answers not found exactly as an unknown
|
|
5141
|
-
* @summary Get a policy revision
|
|
5398
|
+
* project answers not found exactly as an unknown ID does.
|
|
5399
|
+
* @summary Get a policy revision by ID
|
|
5142
5400
|
*/
|
|
5143
5401
|
export declare const getPolicyRevisionPathRevisionIdRegExp: RegExp;
|
|
5144
5402
|
export declare const GetPolicyRevisionParams: zod.ZodObject<{
|
|
@@ -5170,25 +5428,34 @@ export declare const GetPolicyRevisionResponse: zod.ZodObject<{
|
|
|
5170
5428
|
updated_at: zod.z.ZodISODateTime;
|
|
5171
5429
|
}, zod.z.core.$strip>;
|
|
5172
5430
|
/**
|
|
5173
|
-
*
|
|
5174
|
-
*
|
|
5175
|
-
* `POST /releases/build
|
|
5431
|
+
* Creates a release from existing revisions, given as `(kind, revision_id)`
|
|
5432
|
+
* pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)
|
|
5433
|
+
* (`POST /releases/build`).
|
|
5434
|
+
*
|
|
5435
|
+
* A release is a snapshot of the project's configuration: it pins one
|
|
5436
|
+
* revision of each resource it includes, and it is not tied to an origin.
|
|
5437
|
+
* Take each `revision_id` from the operation that created the revision, for
|
|
5438
|
+
* example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.
|
|
5176
5439
|
*
|
|
5177
5440
|
* Each revision must exist in the project and is recorded under the handle
|
|
5178
5441
|
* it declares. The release must be complete and consistent:
|
|
5179
5442
|
*
|
|
5180
5443
|
* - Every handle its revisions name must be in the release: a flow's
|
|
5181
|
-
* `user_schema`, and the
|
|
5182
|
-
* `sso_providers` or a schema's `x-auth-methods.sso.providers`.
|
|
5183
|
-
* one answers `rel.unresolved_reference`, naming the resource and
|
|
5184
|
-
* handle,
|
|
5185
|
-
*
|
|
5186
|
-
*
|
|
5187
|
-
* reason in
|
|
5188
|
-
*
|
|
5189
|
-
*
|
|
5190
|
-
*
|
|
5191
|
-
* `
|
|
5444
|
+
* `user_schema`, and the identity provider (IdP) connections named by a
|
|
5445
|
+
* flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.
|
|
5446
|
+
* A missing one answers `rel.unresolved_reference`, naming the resource and
|
|
5447
|
+
* the handle, for example `flow_definition default-login: user_schema
|
|
5448
|
+
* human-user not found`. Add the missing revision to the request.
|
|
5449
|
+
* - Every flow is validated as on save, against the user schema revision in
|
|
5450
|
+
* the release. A flow that fails answers `rel.invalid`, with the reason in
|
|
5451
|
+
* `details`. Fix the flow and send the request again.
|
|
5452
|
+
*
|
|
5453
|
+
* The call is idempotent on the set of revisions: the same revisions with a
|
|
5454
|
+
* different `message` answer `200` with the existing release. A new release
|
|
5455
|
+
* answers `201`.
|
|
5456
|
+
*
|
|
5457
|
+
* Creating a release does not deploy it. Pass the returned `id` to
|
|
5458
|
+
* `createDeployment` (`POST /deployments`) to make the release live.
|
|
5192
5459
|
* @summary Create a release
|
|
5193
5460
|
*/
|
|
5194
5461
|
export declare const createReleaseQueryProjectIdRegExp: RegExp;
|
|
@@ -5257,17 +5524,20 @@ export declare const CreateReleaseResponse: zod.ZodObject<{
|
|
|
5257
5524
|
}, zod.z.core.$strip>>;
|
|
5258
5525
|
}, zod.z.core.$strip>;
|
|
5259
5526
|
/**
|
|
5260
|
-
* Lists the project's releases, newest first.
|
|
5527
|
+
* Lists the project's releases, newest first. A release is a snapshot of the
|
|
5528
|
+
* project's configuration.
|
|
5261
5529
|
*
|
|
5262
|
-
* Entries carry the digest, the metadata and `revoked_at
|
|
5263
|
-
*
|
|
5264
|
-
*
|
|
5530
|
+
* Entries carry the digest, the metadata and `revoked_at`. The pinned set is
|
|
5531
|
+
* omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.
|
|
5532
|
+
*
|
|
5533
|
+
* The `id` of an entry is the release ID that `getReleaseById`,
|
|
5534
|
+
* `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
|
|
5265
5535
|
*
|
|
5266
5536
|
* `content_hash` looks a release up by its content, as the CLI does when a
|
|
5267
5537
|
* person types the digest a transcript printed. The project holds at most
|
|
5268
|
-
* one release per digest, so the filtered list has one entry or none
|
|
5269
|
-
*
|
|
5270
|
-
* `rel_`
|
|
5538
|
+
* one release per digest, so the filtered list has one entry or none. An
|
|
5539
|
+
* unknown digest is an empty list rather than an error. Paths take the
|
|
5540
|
+
* `rel_` ID only, so use the matched entry's `id` there.
|
|
5271
5541
|
* @summary List releases
|
|
5272
5542
|
*/
|
|
5273
5543
|
export declare const listReleasesQueryProjectIdRegExp: RegExp;
|
|
@@ -5313,38 +5583,44 @@ export declare const ListReleasesResponse: zod.ZodObject<{
|
|
|
5313
5583
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
5314
5584
|
}, zod.z.core.$strip>;
|
|
5315
5585
|
/**
|
|
5316
|
-
* Builds a release from the resources
|
|
5317
|
-
* grouped by kind, in one transaction
|
|
5318
|
-
*
|
|
5586
|
+
* Builds a release from the resources in `.zitadel/` as authored on disk,
|
|
5587
|
+
* grouped by kind, in one transaction.
|
|
5588
|
+
*
|
|
5589
|
+
* A release is a snapshot of the project's configuration. A failure anywhere
|
|
5590
|
+
* leaves no revision and no release. The caller records nothing. The CLI's
|
|
5591
|
+
* `deploy` command builds its release with this operation.
|
|
5319
5592
|
*
|
|
5320
5593
|
* If the project already holds a release with the same content, the same
|
|
5321
|
-
* `content_hash`, the request answers `200` with that release and
|
|
5322
|
-
*
|
|
5323
|
-
* project's newest revision of the same handle: unchanged content reuses
|
|
5324
|
-
* that revision, changed content allocates a new one, and the request
|
|
5325
|
-
* answers `201` with the new release. A policy whose config matches only an
|
|
5326
|
-
* older revision allocates a new one too, so a request that resolves no
|
|
5327
|
-
* release, which reads the newest revision, applies it as well. Metadata is excluded from the
|
|
5594
|
+
* `content_hash`, the request answers `200` with that release and allocates
|
|
5595
|
+
* nothing, however long ago it was built. Metadata is excluded from the
|
|
5328
5596
|
* comparison, so the same content under a different `message` is the same
|
|
5329
5597
|
* release.
|
|
5330
5598
|
*
|
|
5599
|
+
* Otherwise every resource is compared with the project's newest revision of
|
|
5600
|
+
* the same handle. Unchanged content reuses that revision, and changed
|
|
5601
|
+
* content allocates a new one. The request answers `201` with the new
|
|
5602
|
+
* release. A policy whose config matches only an older revision allocates a
|
|
5603
|
+
* new one too, so the policy reads back as the config the build carried.
|
|
5604
|
+
*
|
|
5331
5605
|
* A structurally malformed request is refused while decoding with
|
|
5332
5606
|
* `req.invalid`, naming the offending fields. A well-formed bundle is then
|
|
5333
5607
|
* checked resource by resource, as each kind's create endpoint checks it,
|
|
5334
|
-
* and every failure is reported at once
|
|
5608
|
+
* and every failure is reported at once. The request answers `400` with
|
|
5335
5609
|
* `rel.invalid`, and `details.resources` lists each resource that failed.
|
|
5336
|
-
*
|
|
5337
|
-
*
|
|
5610
|
+
* Fix each listed resource and build again. A handle that resolves neither
|
|
5611
|
+
* in the bundle nor in the project answers `rel.unresolved_reference`,
|
|
5612
|
+
* naming the pointer and the handle. Add the missing resource to the bundle.
|
|
5338
5613
|
*
|
|
5339
5614
|
* Building writes revisions, so besides `release.write` it needs the write
|
|
5340
5615
|
* scope of every kind the bundle carries a resource of: `schema.write`,
|
|
5341
|
-
* `flow_definition.write`, `branding.write`, `idp.write` and
|
|
5342
|
-
*
|
|
5343
|
-
* naming the kind.
|
|
5344
|
-
*
|
|
5345
|
-
*
|
|
5346
|
-
*
|
|
5347
|
-
* origins
|
|
5616
|
+
* `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,
|
|
5617
|
+
* as the per-kind create endpoints do. A missing scope answers `403` with
|
|
5618
|
+
* `rel.permission_denied`, naming the kind. Request a token with that scope.
|
|
5619
|
+
* An empty kind needs no scope.
|
|
5620
|
+
*
|
|
5621
|
+
* Building a release does not deploy it. A release is not tied to an origin,
|
|
5622
|
+
* and the same release can later be deployed to any number of origins
|
|
5623
|
+
* unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).
|
|
5348
5624
|
* @summary Build a release from files
|
|
5349
5625
|
*/
|
|
5350
5626
|
export declare const buildReleaseQueryProjectIdRegExp: RegExp;
|
|
@@ -5543,7 +5819,7 @@ export declare const BuildReleaseBody: zod.ZodObject<{
|
|
|
5543
5819
|
show: "show";
|
|
5544
5820
|
}>>;
|
|
5545
5821
|
transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
5546
|
-
target: zod.ZodString
|
|
5822
|
+
target: zod.ZodOptional<zod.ZodString>;
|
|
5547
5823
|
action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
5548
5824
|
switch: "switch";
|
|
5549
5825
|
pivot: "pivot";
|
|
@@ -5720,20 +5996,23 @@ export declare const BuildReleaseResponse: zod.ZodObject<{
|
|
|
5720
5996
|
}, zod.z.core.$strip>>;
|
|
5721
5997
|
}, zod.z.core.$strip>;
|
|
5722
5998
|
/**
|
|
5723
|
-
*
|
|
5724
|
-
* the `(kind, handle, revision_id)` tuples it pins.
|
|
5725
|
-
*
|
|
5726
|
-
*
|
|
5727
|
-
*
|
|
5728
|
-
*
|
|
5729
|
-
*
|
|
5730
|
-
*
|
|
5731
|
-
*
|
|
5732
|
-
* The
|
|
5733
|
-
*
|
|
5734
|
-
*
|
|
5735
|
-
*
|
|
5736
|
-
*
|
|
5999
|
+
* Returns one release: its digest, its metadata, whether it was revoked, and
|
|
6000
|
+
* the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot
|
|
6001
|
+
* of the project's configuration.
|
|
6002
|
+
*
|
|
6003
|
+
* The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),
|
|
6004
|
+
* `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its
|
|
6005
|
+
* digest, list with the `content_hash` filter and read the matched entry's
|
|
6006
|
+
* `id`.
|
|
6007
|
+
*
|
|
6008
|
+
* The response does not embed resource content. Resolve each `revision_id`
|
|
6009
|
+
* through the per-kind read endpoints when the bytes are needed.
|
|
6010
|
+
*
|
|
6011
|
+
* The lookup is scoped to the project in `project_id`. A release ID
|
|
6012
|
+
* belonging to another project answers not found exactly as an unknown ID
|
|
6013
|
+
* does, so the endpoint cannot be used to probe for releases in projects the
|
|
6014
|
+
* caller cannot read.
|
|
6015
|
+
* @summary Get a release by ID
|
|
5737
6016
|
*/
|
|
5738
6017
|
export declare const getReleaseByIdPathReleaseIdRegExp: RegExp;
|
|
5739
6018
|
export declare const GetReleaseByIdParams: zod.ZodObject<{
|
|
@@ -5785,25 +6064,29 @@ export declare const GetReleaseByIdResponse: zod.ZodObject<{
|
|
|
5785
6064
|
}, zod.z.core.$strip>>;
|
|
5786
6065
|
}, zod.z.core.$strip>;
|
|
5787
6066
|
/**
|
|
5788
|
-
*
|
|
5789
|
-
*
|
|
5790
|
-
*
|
|
5791
|
-
*
|
|
5792
|
-
*
|
|
5793
|
-
*
|
|
5794
|
-
*
|
|
5795
|
-
*
|
|
5796
|
-
*
|
|
5797
|
-
*
|
|
5798
|
-
*
|
|
5799
|
-
*
|
|
5800
|
-
*
|
|
5801
|
-
*
|
|
5802
|
-
*
|
|
5803
|
-
*
|
|
5804
|
-
*
|
|
5805
|
-
*
|
|
5806
|
-
*
|
|
6067
|
+
* Revokes a release, so that its content is never served again. Pass the
|
|
6068
|
+
* `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It
|
|
6069
|
+
* records a `release.revoked` event.
|
|
6070
|
+
*
|
|
6071
|
+
* From then on the release cannot be deployed. Every path that would serve
|
|
6072
|
+
* it refuses it with `rel.revoked`, including a build that pins its digest.
|
|
6073
|
+
*
|
|
6074
|
+
* A release that any origin still serves cannot be revoked. An origin serves
|
|
6075
|
+
* the release of the newest deployment to it, so the call answers `409` with
|
|
6076
|
+
* `rel.in_use`, naming each such origin and that deployment. Deploy another
|
|
6077
|
+
* release there or roll back first, then revoke. Revoking therefore never
|
|
6078
|
+
* takes an origin down. Deployments that named the release earlier stay in
|
|
6079
|
+
* the history.
|
|
6080
|
+
*
|
|
6081
|
+
* The call is idempotent: revoking a release that is already revoked answers
|
|
6082
|
+
* `200` with the release unchanged, and `revoked_at` still names the first
|
|
6083
|
+
* revocation. There is no un-revoke. To serve that configuration again,
|
|
6084
|
+
* change it and build a new release: rebuilding unchanged content returns
|
|
6085
|
+
* the same revoked release.
|
|
6086
|
+
*
|
|
6087
|
+
* The call takes no body. The lookup is scoped to the project in
|
|
6088
|
+
* `project_id`, so a release ID of another project answers not found exactly
|
|
6089
|
+
* as an unknown ID does.
|
|
5807
6090
|
* @summary Revoke a release
|
|
5808
6091
|
*/
|
|
5809
6092
|
export declare const revokeReleasePathReleaseIdRegExp: RegExp;
|
|
@@ -5856,26 +6139,32 @@ export declare const RevokeReleaseResponse: zod.ZodObject<{
|
|
|
5856
6139
|
}, zod.z.core.$strip>>;
|
|
5857
6140
|
}, zod.z.core.$strip>;
|
|
5858
6141
|
/**
|
|
5859
|
-
*
|
|
5860
|
-
*
|
|
5861
|
-
*
|
|
5862
|
-
* (`
|
|
5863
|
-
*
|
|
5864
|
-
*
|
|
5865
|
-
*
|
|
5866
|
-
*
|
|
5867
|
-
*
|
|
5868
|
-
*
|
|
5869
|
-
*
|
|
5870
|
-
*
|
|
5871
|
-
*
|
|
5872
|
-
*
|
|
5873
|
-
*
|
|
5874
|
-
*
|
|
5875
|
-
* session
|
|
5876
|
-
*
|
|
5877
|
-
*
|
|
5878
|
-
*
|
|
6142
|
+
* Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.
|
|
6143
|
+
*
|
|
6144
|
+
* The project is the one named by the `project_id` query parameter. Name the
|
|
6145
|
+
* principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
|
|
6146
|
+
* `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
|
|
6147
|
+
* `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not
|
|
6148
|
+
* created here: a claim, which attaches a project to a team, creates them.
|
|
6149
|
+
*
|
|
6150
|
+
* An unrevoked grant with the same principal and relation holds that binding
|
|
6151
|
+
* even after `expires_at`. Revoke it with `deleteGrant` before you create it
|
|
6152
|
+
* again.
|
|
6153
|
+
*
|
|
6154
|
+
* Create does not accept `expand`. The `user_id` and team locators return `201`,
|
|
6155
|
+
* whose `user` and `team` carry only `user_id` and `team_id`. They still answer
|
|
6156
|
+
* `404` or `409` when the principal is missing or the grant already exists.
|
|
6157
|
+
* Creating by `user.identifier` answers `202` with no body on every outcome.
|
|
6158
|
+
* Granting the session caller's own user is `grant.invalid` on either user
|
|
6159
|
+
* locator. A `201` grant names its user or team by ID only: read it back
|
|
6160
|
+
* with `getGrant` for the identifier and display name. A `202` returns no
|
|
6161
|
+
* grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.
|
|
6162
|
+
*
|
|
6163
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
6164
|
+
* (`sessionCookie`). A session caller is authorized as the signed-in person
|
|
6165
|
+
* against the target project, even when the session belongs to another project.
|
|
6166
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
6167
|
+
* @summary Create a grant
|
|
5879
6168
|
*/
|
|
5880
6169
|
export declare const createGrantQueryProjectIdRegExp: RegExp;
|
|
5881
6170
|
export declare const CreateGrantQueryParams: zod.ZodObject<{
|
|
@@ -5956,22 +6245,20 @@ export declare const CreateGrantResponse: zod.ZodObject<{
|
|
|
5956
6245
|
}, zod.z.core.$strip>>>;
|
|
5957
6246
|
}, zod.z.core.$strip>;
|
|
5958
6247
|
/**
|
|
5959
|
-
* Returns
|
|
5960
|
-
*
|
|
5961
|
-
*
|
|
5962
|
-
*
|
|
5963
|
-
*
|
|
5964
|
-
*
|
|
5965
|
-
*
|
|
5966
|
-
*
|
|
5967
|
-
* `
|
|
5968
|
-
*
|
|
5969
|
-
*
|
|
5970
|
-
*
|
|
5971
|
-
*
|
|
5972
|
-
*
|
|
5973
|
-
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
5974
|
-
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
6248
|
+
* Returns a page of a project's grants.
|
|
6249
|
+
*
|
|
6250
|
+
* Only unrevoked grants this API manages are listed, which bind a user or team
|
|
6251
|
+
* to the viewer, editor or admin role. Expired grants are included, so a client
|
|
6252
|
+
* can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.
|
|
6253
|
+
* Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
|
|
6254
|
+
* not returned. Requires `project.read`.
|
|
6255
|
+
*
|
|
6256
|
+
* `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
|
|
6257
|
+
* secrets it additionally requires `user.read` and `team.read`. A user-bound
|
|
6258
|
+
* console session that already passed the project check may expand without those scopes.
|
|
6259
|
+
*
|
|
6260
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
6261
|
+
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
5975
6262
|
* @summary Query grants
|
|
5976
6263
|
*/
|
|
5977
6264
|
export declare const queryGrantsQueryProjectIdRegExp: RegExp;
|
|
@@ -6078,23 +6365,23 @@ export declare const QueryGrantsResponse: zod.ZodObject<{
|
|
|
6078
6365
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
6079
6366
|
}, zod.z.core.$strip>;
|
|
6080
6367
|
/**
|
|
6081
|
-
*
|
|
6082
|
-
*
|
|
6083
|
-
*
|
|
6084
|
-
*
|
|
6085
|
-
*
|
|
6086
|
-
*
|
|
6087
|
-
*
|
|
6088
|
-
*
|
|
6089
|
-
*
|
|
6090
|
-
* `
|
|
6091
|
-
* secrets
|
|
6092
|
-
*
|
|
6093
|
-
*
|
|
6094
|
-
*
|
|
6095
|
-
*
|
|
6096
|
-
* follow
|
|
6097
|
-
* @summary Get grant
|
|
6368
|
+
* Returns a grant by ID, when this API manages it and it has not been revoked.
|
|
6369
|
+
*
|
|
6370
|
+
* This API manages grants that bind a user or team to the viewer, editor or
|
|
6371
|
+
* admin role. An expired grant is still returned, so you can revoke it with
|
|
6372
|
+
* `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still
|
|
6373
|
+
* ignores expired grants. Send `project_id` as well as the grant ID.
|
|
6374
|
+
* Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
|
|
6375
|
+
* (`relation=team`) rows and grants of another project all return `404`.
|
|
6376
|
+
*
|
|
6377
|
+
* `expand=principal` adds envelope fields on `user` or `team`. For project
|
|
6378
|
+
* secrets it requires `user.read` and `team.read` in addition to `project.read`.
|
|
6379
|
+
* A user-bound console session that already passed the project check may expand
|
|
6380
|
+
* without those scopes.
|
|
6381
|
+
*
|
|
6382
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
6383
|
+
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
6384
|
+
* @summary Get a grant by ID
|
|
6098
6385
|
*/
|
|
6099
6386
|
export declare const GetGrantParams: zod.ZodObject<{
|
|
6100
6387
|
id: zod.ZodString;
|
|
@@ -6163,15 +6450,15 @@ export declare const GetGrantResponse: zod.ZodObject<{
|
|
|
6163
6450
|
}, zod.z.core.$strip>>>;
|
|
6164
6451
|
}, zod.z.core.$strip>;
|
|
6165
6452
|
/**
|
|
6166
|
-
*
|
|
6167
|
-
* Already-revoked, missing, project-secret setup, and owning-team grants
|
|
6168
|
-
* return 404. The row is not un-revoked. Expired grants can still be
|
|
6169
|
-
* revoked so the unique binding can be reused.
|
|
6453
|
+
* Revokes a grant this API manages and emits `authz.revoked`.
|
|
6170
6454
|
*
|
|
6171
|
-
*
|
|
6172
|
-
*
|
|
6173
|
-
*
|
|
6174
|
-
*
|
|
6455
|
+
* A revoked grant cannot be restored: create a new one. Already-revoked, missing,
|
|
6456
|
+
* project-secret setup and owning-team grants return `404`. Expired grants can
|
|
6457
|
+
* still be revoked, so the binding can be reused.
|
|
6458
|
+
*
|
|
6459
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
6460
|
+
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
6461
|
+
* @summary Revoke a grant
|
|
6175
6462
|
*/
|
|
6176
6463
|
export declare const DeleteGrantParams: zod.ZodObject<{
|
|
6177
6464
|
id: zod.ZodString;
|
|
@@ -6182,17 +6469,18 @@ export declare const DeleteGrantQueryParams: zod.ZodObject<{
|
|
|
6182
6469
|
}, zod.z.core.$strict>;
|
|
6183
6470
|
export declare const DeleteGrantResponse: zod.ZodVoid;
|
|
6184
6471
|
/**
|
|
6185
|
-
*
|
|
6186
|
-
*
|
|
6187
|
-
*
|
|
6472
|
+
* Lists a project's audit events, newest first. Pass `order=asc` for oldest
|
|
6473
|
+
* first. Requires `events.read`.
|
|
6474
|
+
*
|
|
6475
|
+
* A project that is not claimed yet returns an empty list: its events are
|
|
6476
|
+
* stored but stay invisible until the
|
|
6477
|
+
* [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
|
|
6188
6478
|
*
|
|
6189
|
-
*
|
|
6190
|
-
*
|
|
6191
|
-
* whose emit-time `team_id` matches the credential team (enforced when
|
|
6192
|
-
* team-scoped tokens exist).
|
|
6479
|
+
* Team-scoped credentials see only the events whose `team_id` matches the
|
|
6480
|
+
* credential's team. Team-scoped credentials are not issued today.
|
|
6193
6481
|
*
|
|
6194
|
-
*
|
|
6195
|
-
*
|
|
6482
|
+
* Each item carries an `event_type` that says which type of event it is, and
|
|
6483
|
+
* the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).
|
|
6196
6484
|
* @summary List events
|
|
6197
6485
|
*/
|
|
6198
6486
|
export declare const listEventsQueryProjectIdRegExp: RegExp;
|
|
@@ -8836,12 +9124,16 @@ export declare const ListEventsResponse: zod.ZodObject<{
|
|
|
8836
9124
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
8837
9125
|
}, zod.z.core.$strip>;
|
|
8838
9126
|
/**
|
|
8839
|
-
*
|
|
8840
|
-
*
|
|
8841
|
-
*
|
|
9127
|
+
* Returns one event of a project by its ID. Requires `events.read`.
|
|
9128
|
+
*
|
|
9129
|
+
* Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its
|
|
9130
|
+
* `project_id`. An unknown ID and the ID of another project's event both
|
|
9131
|
+
* answer `404`.
|
|
8842
9132
|
*
|
|
8843
|
-
*
|
|
8844
|
-
*
|
|
9133
|
+
* A project that is not claimed yet also answers `404`: its events are
|
|
9134
|
+
* stored but stay invisible until the
|
|
9135
|
+
* [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
|
|
9136
|
+
* @summary Get an event by ID
|
|
8845
9137
|
*/
|
|
8846
9138
|
export declare const GetEventParams: zod.ZodObject<{
|
|
8847
9139
|
id: zod.ZodString;
|
|
@@ -11455,12 +11747,13 @@ export declare const GetEventResponse: zod.ZodUnion<readonly [zod.ZodIntersectio
|
|
|
11455
11747
|
}, zod.z.core.$strip>;
|
|
11456
11748
|
}, zod.z.core.$strip>>]>;
|
|
11457
11749
|
/**
|
|
11458
|
-
* Returns the project's variables, keyed by name, each with its value
|
|
11459
|
-
* kind
|
|
11750
|
+
* Returns the project's variables, keyed by name, each with its value for
|
|
11751
|
+
* each kind: `primary` for primary origins and `preview` for preview URLs.
|
|
11752
|
+
* With `kind`, only that kind's values are returned.
|
|
11460
11753
|
*
|
|
11461
11754
|
* Secret values are not returned. A secret appears as `{"secret": true}`,
|
|
11462
11755
|
* which says a value is held without disclosing it.
|
|
11463
|
-
* @summary Get variables
|
|
11756
|
+
* @summary Get a project's variables
|
|
11464
11757
|
*/
|
|
11465
11758
|
export declare const getVariablesQueryProjectIdRegExp: RegExp;
|
|
11466
11759
|
export declare const GetVariablesQueryParams: zod.ZodObject<{
|
|
@@ -11481,25 +11774,29 @@ export declare const GetVariablesResponse: zod.ZodRecord<zod.ZodString, zod.ZodO
|
|
|
11481
11774
|
}, zod.z.core.$strip>]>>;
|
|
11482
11775
|
}, zod.z.core.$strip>>;
|
|
11483
11776
|
/**
|
|
11484
|
-
*
|
|
11485
|
-
* kind. Names not in the body are untouched. Existing
|
|
11486
|
-
* values they froze.
|
|
11487
|
-
*
|
|
11488
|
-
* Without `kind`, a plain value is written for both kinds. A secret is
|
|
11489
|
-
* written for `primary` only and removes the name's `preview` value, so a
|
|
11490
|
-
* preview never keeps a plaintext copy; set a preview secret with
|
|
11491
|
-
* `kind=preview`. `null` removes the name from both.
|
|
11777
|
+
* Sets, replaces and removes the project's variables for the requested
|
|
11778
|
+
* kind, in one request. Names not in the body are untouched. Existing
|
|
11779
|
+
* deployments keep the values they froze.
|
|
11492
11780
|
*
|
|
11493
11781
|
* A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
|
|
11494
11782
|
* stores the value encrypted under the project's active `secret` key, after
|
|
11495
11783
|
* which it can be referenced but not read back. `null` removes the name
|
|
11496
|
-
* (RFC 7386), which is how several variables are removed in one request
|
|
11497
|
-
*
|
|
11784
|
+
* (RFC 7386), which is how several variables are removed in one request.
|
|
11785
|
+
* Removing a name the project does not hold is a no-op rather than an error.
|
|
11786
|
+
*
|
|
11787
|
+
* Without `kind`, a plain value is written for both kinds. A secret is
|
|
11788
|
+
* written for `primary` only and removes the name's `preview` value, so a
|
|
11789
|
+
* preview never keeps a plaintext copy. Set a preview secret with
|
|
11790
|
+
* `kind=preview`. `null` removes the name from both kinds.
|
|
11498
11791
|
*
|
|
11499
11792
|
* The body is applied whole or not at all, so a rejected request leaves the
|
|
11500
|
-
* project's variables exactly as they were.
|
|
11501
|
-
*
|
|
11502
|
-
*
|
|
11793
|
+
* project's variables exactly as they were. Fix what the error reports and
|
|
11794
|
+
* send the request again. Writing the same name twice replaces the value
|
|
11795
|
+
* rather than duplicating it, which makes a retry safe.
|
|
11796
|
+
*
|
|
11797
|
+
* Each kind written records a `variable.set` event, and each kind removed a
|
|
11798
|
+
* `variable.removed` event. The value never appears in either.
|
|
11799
|
+
* @summary Update a project's variables
|
|
11503
11800
|
*/
|
|
11504
11801
|
export declare const updateVariablesQueryProjectIdRegExp: RegExp;
|
|
11505
11802
|
export declare const UpdateVariablesQueryParams: zod.ZodObject<{
|
|
@@ -11526,10 +11823,14 @@ export declare const UpdateVariablesResponse: zod.ZodRecord<zod.ZodString, zod.Z
|
|
|
11526
11823
|
}, zod.z.core.$strip>]>>;
|
|
11527
11824
|
}, zod.z.core.$strip>>;
|
|
11528
11825
|
/**
|
|
11529
|
-
*
|
|
11530
|
-
*
|
|
11531
|
-
*
|
|
11532
|
-
*
|
|
11826
|
+
* Returns one variable by name, with its value for each kind. A variable
|
|
11827
|
+
* holds a value per kind: `primary` for primary origins and `preview` for
|
|
11828
|
+
* preview URLs.
|
|
11829
|
+
*
|
|
11830
|
+
* Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists
|
|
11831
|
+
* it. A name with no value for the requested kind answers `var.not_found`;
|
|
11832
|
+
* set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
|
|
11833
|
+
* @summary Get a variable by name
|
|
11533
11834
|
*/
|
|
11534
11835
|
export declare const getVariablePathVariableNameMax = 255;
|
|
11535
11836
|
export declare const getVariablePathVariableNameRegExp: RegExp;
|
|
@@ -11555,10 +11856,15 @@ export declare const GetVariableResponse: zod.ZodObject<{
|
|
|
11555
11856
|
}, zod.z.core.$strip>]>>;
|
|
11556
11857
|
}, zod.z.core.$strip>;
|
|
11557
11858
|
/**
|
|
11558
|
-
*
|
|
11559
|
-
* `kind`.
|
|
11560
|
-
*
|
|
11561
|
-
*
|
|
11859
|
+
* Deletes a variable for the requested kind, or for both kinds without
|
|
11860
|
+
* `kind`. Existing deployments keep the values they froze. Each kind removed
|
|
11861
|
+
* records a `variable.removed` event.
|
|
11862
|
+
*
|
|
11863
|
+
* A name with no value for that kind answers `var.not_found`: there is
|
|
11864
|
+
* nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To
|
|
11865
|
+
* remove several names in one request, or to remove a name that may already
|
|
11866
|
+
* be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).
|
|
11867
|
+
* @summary Delete a variable by name
|
|
11562
11868
|
*/
|
|
11563
11869
|
export declare const deleteVariablePathVariableNameMax = 255;
|
|
11564
11870
|
export declare const deleteVariablePathVariableNameRegExp: RegExp;
|
|
@@ -11575,34 +11881,54 @@ export declare const DeleteVariableQueryParams: zod.ZodObject<{
|
|
|
11575
11881
|
}, zod.z.core.$strict>;
|
|
11576
11882
|
export declare const DeleteVariableResponse: zod.ZodVoid;
|
|
11577
11883
|
/**
|
|
11578
|
-
*
|
|
11579
|
-
*
|
|
11580
|
-
*
|
|
11581
|
-
*
|
|
11582
|
-
*
|
|
11583
|
-
*
|
|
11584
|
-
*
|
|
11585
|
-
*
|
|
11884
|
+
* Creates a deployment: it makes a release live on the project's primary
|
|
11885
|
+
* origins or on preview URLs.
|
|
11886
|
+
*
|
|
11887
|
+
* A release is a snapshot of the project's configuration. A deployment makes
|
|
11888
|
+
* a release live on origins and freezes the project's variable values for
|
|
11889
|
+
* its kind, with no fallback between primary and preview values. The call is
|
|
11890
|
+
* atomic: on success every target serves the release and the deployment is
|
|
11891
|
+
* recorded, and it records a `deployment.created` event. On failure nothing
|
|
11892
|
+
* changes and nothing is recorded.
|
|
11893
|
+
*
|
|
11894
|
+
* Name the release by exactly one of `release_id` or `content_hash`. Take the
|
|
11895
|
+
* release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or
|
|
11896
|
+
* `listReleases` (`GET /releases`) returns. The release must already exist in the project.
|
|
11897
|
+
* `targets` is `primary`, which means every primary origin, or a list of
|
|
11898
|
+
* preview URLs. `["primary"]`, which clients released before this shape
|
|
11899
|
+
* send, still deploys to every primary origin until 1.0.0; its answer
|
|
11900
|
+
* carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.
|
|
11901
|
+
*
|
|
11902
|
+
* The project's newest primary deployment also serves every request with no
|
|
11903
|
+
* `Origin`, such as a backend, a native app or the CLI, and the console's
|
|
11904
|
+
* login preview of a project that does not list the console's origin. A
|
|
11905
|
+
* preview URL serves only itself.
|
|
11586
11906
|
*
|
|
11587
11907
|
* A deployment to `primary` changes nothing when the project's newest
|
|
11588
11908
|
* primary deployment has the same release and frozen values and covers
|
|
11589
|
-
* exactly the current primary origins
|
|
11590
|
-
* deployment. Any other request writes a new deployment and answers `201
|
|
11591
|
-
*
|
|
11592
|
-
*
|
|
11593
|
-
*
|
|
11594
|
-
* - `400 dep.invalid`: both or neither of `release_id` and
|
|
11595
|
-
* a primary origin
|
|
11596
|
-
* `primary`
|
|
11597
|
-
* `ttl` above 365 days (`P365D`).
|
|
11598
|
-
*
|
|
11599
|
-
*
|
|
11600
|
-
*
|
|
11601
|
-
*
|
|
11602
|
-
* - `
|
|
11603
|
-
*
|
|
11604
|
-
*
|
|
11605
|
-
*
|
|
11909
|
+
* exactly the current primary origins. The call then answers `200` with that
|
|
11910
|
+
* deployment. Any other request writes a new deployment and answers `201`.
|
|
11911
|
+
* For preview URLs, that deployment renews their previews.
|
|
11912
|
+
*
|
|
11913
|
+
* If the request is refused, fix the cause and send it again:
|
|
11914
|
+
* - `400 dep.invalid`: the request names both or neither of `release_id` and
|
|
11915
|
+
* `content_hash`, names a primary origin among the preview URLs, sends
|
|
11916
|
+
* `primary` for a project with no primary origin, sends
|
|
11917
|
+
* `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct
|
|
11918
|
+
* the request.
|
|
11919
|
+
* - `400 dep.variables_missing`: a variable the release references has no
|
|
11920
|
+
* value for the kind. `details` names the kind and every missing variable.
|
|
11921
|
+
* Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.
|
|
11922
|
+
* - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
|
|
11923
|
+
* of the project, or is a loopback URL. Use a URL that matches a pattern.
|
|
11924
|
+
* - `404 rel.not_found`: the release ID or digest names no release in this
|
|
11925
|
+
* project. List the project's releases with `listReleases`.
|
|
11926
|
+
* - `409 dep.conflict`: `expected_deployment_id` is not the deployment this
|
|
11927
|
+
* write replaces, and `details.deployment` is that deployment. Inspect it,
|
|
11928
|
+
* then retry with its ID as `expected_deployment_id`, or stop.
|
|
11929
|
+
* - `409 rel.revoked`: the release is revoked and cannot be deployed. Change
|
|
11930
|
+
* the configuration and build a new release, or deploy a release that is
|
|
11931
|
+
* not revoked. Rebuilding unchanged content returns the same revoked release.
|
|
11606
11932
|
* @summary Create a deployment
|
|
11607
11933
|
*/
|
|
11608
11934
|
export declare const createDeploymentQueryProjectIdRegExp: RegExp;
|
|
@@ -11613,15 +11939,17 @@ export declare const createDeploymentBodyReleaseIdRegExp: RegExp;
|
|
|
11613
11939
|
export declare const createDeploymentBodyContentHashMin = 71;
|
|
11614
11940
|
export declare const createDeploymentBodyContentHashMax = 71;
|
|
11615
11941
|
export declare const createDeploymentBodyContentHashRegExp: RegExp;
|
|
11616
|
-
export declare const
|
|
11617
|
-
export declare const
|
|
11618
|
-
export declare const
|
|
11942
|
+
export declare const createDeploymentBodyTargetsTwoItemMax = 2048;
|
|
11943
|
+
export declare const createDeploymentBodyTargetsTwoItemRegExp: RegExp;
|
|
11944
|
+
export declare const createDeploymentBodyTargetsTwoMax = 50;
|
|
11619
11945
|
export declare const createDeploymentBodyMessageMax = 1024;
|
|
11620
11946
|
export declare const createDeploymentBodyExpectedDeploymentIdRegExp: RegExp;
|
|
11621
11947
|
export declare const CreateDeploymentBody: zod.ZodObject<{
|
|
11622
11948
|
release_id: zod.ZodOptional<zod.ZodString>;
|
|
11623
11949
|
content_hash: zod.ZodOptional<zod.ZodString>;
|
|
11624
|
-
targets: zod.
|
|
11950
|
+
targets: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
11951
|
+
primary: "primary";
|
|
11952
|
+
}>, zod.ZodArray<zod.ZodString>]>;
|
|
11625
11953
|
ttl: zod.ZodOptional<zod.ZodString>;
|
|
11626
11954
|
reason: zod.ZodOptional<zod.ZodEnum<{
|
|
11627
11955
|
deploy: "deploy";
|
|
@@ -11712,19 +12040,26 @@ export declare const CreateDeploymentResponse: zod.ZodObject<{
|
|
|
11712
12040
|
}, zod.z.core.$strip>>;
|
|
11713
12041
|
}, zod.z.core.$strip>;
|
|
11714
12042
|
/**
|
|
11715
|
-
* Lists what ran where
|
|
11716
|
-
*
|
|
11717
|
-
*
|
|
11718
|
-
*
|
|
11719
|
-
*
|
|
11720
|
-
*
|
|
11721
|
-
*
|
|
11722
|
-
*
|
|
11723
|
-
*
|
|
11724
|
-
* the
|
|
11725
|
-
*
|
|
11726
|
-
*
|
|
11727
|
-
*
|
|
12043
|
+
* Lists the project's deployments: the history of what ran where and when,
|
|
12044
|
+
* or with `live=true` what is served now.
|
|
12045
|
+
*
|
|
12046
|
+
* A deployment makes a release live on origins. By default the list is the
|
|
12047
|
+
* history, newest first: every deployment of the project, with every target
|
|
12048
|
+
* it made the release live on. With `origin`, it is the history of that
|
|
12049
|
+
* origin alone.
|
|
12050
|
+
*
|
|
12051
|
+
* With `live=true`, the list is what is served now, newest first. It holds
|
|
12052
|
+
* the project's newest primary deployment with every origin it names, an
|
|
12053
|
+
* origin the project no longer lists included: that deployment also serves
|
|
12054
|
+
* requests with no `Origin`, so it stays live. It also holds the newest
|
|
12055
|
+
* deployment to each live preview URL, narrowed to the URLs it still
|
|
12056
|
+
* serves. Combined with `origin`, it is the one deployment that origin
|
|
12057
|
+
* serves, or empty, as it is for an origin the project no longer lists.
|
|
12058
|
+
*
|
|
12059
|
+
* The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),
|
|
12060
|
+
* `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
|
|
12061
|
+
*
|
|
12062
|
+
* `expand: ["release"]` embeds the release each deployment made live. It
|
|
11728
12063
|
* requires `release.read` and does not change the ordering or the page
|
|
11729
12064
|
* tokens.
|
|
11730
12065
|
* @summary List deployments
|
|
@@ -11830,13 +12165,17 @@ export declare const ListDeploymentsResponse: zod.ZodObject<{
|
|
|
11830
12165
|
next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
|
|
11831
12166
|
}, zod.z.core.$strip>;
|
|
11832
12167
|
/**
|
|
11833
|
-
*
|
|
12168
|
+
* Returns one deployment: the release it made live, the origins it made it
|
|
12169
|
+
* live on, and whether they still serve it.
|
|
11834
12170
|
*
|
|
11835
|
-
*
|
|
11836
|
-
*
|
|
12171
|
+
* Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or
|
|
12172
|
+
* `listDeployments` (`GET /deployments`) returns.
|
|
12173
|
+
*
|
|
12174
|
+
* The lookup is scoped to the project in `project_id`. A deployment ID
|
|
12175
|
+
* belonging to another project answers not found exactly as an unknown ID
|
|
11837
12176
|
* does, so the endpoint cannot be used to probe for deployments in projects
|
|
11838
12177
|
* the caller cannot read.
|
|
11839
|
-
* @summary Get a deployment by
|
|
12178
|
+
* @summary Get a deployment by ID
|
|
11840
12179
|
*/
|
|
11841
12180
|
export declare const getDeploymentByIdPathDeploymentIdRegExp: RegExp;
|
|
11842
12181
|
export declare const GetDeploymentByIdParams: zod.ZodObject<{
|
|
@@ -11928,20 +12267,44 @@ export declare const GetDeploymentByIdResponse: zod.ZodObject<{
|
|
|
11928
12267
|
}, zod.z.core.$strip>>;
|
|
11929
12268
|
}, zod.z.core.$strip>;
|
|
11930
12269
|
/**
|
|
11931
|
-
*
|
|
11932
|
-
* with the variable values
|
|
11933
|
-
*
|
|
11934
|
-
*
|
|
11935
|
-
*
|
|
11936
|
-
*
|
|
11937
|
-
*
|
|
11938
|
-
*
|
|
11939
|
-
*
|
|
11940
|
-
*
|
|
11941
|
-
*
|
|
12270
|
+
* Rolls back to an earlier deployment by deploying its release again to
|
|
12271
|
+
* every current primary origin, with the variable values that deployment
|
|
12272
|
+
* froze.
|
|
12273
|
+
*
|
|
12274
|
+
* A release is a snapshot of the project's configuration. A deployment makes
|
|
12275
|
+
* a release live on origins and freezes the project's variable values with
|
|
12276
|
+
* it.
|
|
12277
|
+
*
|
|
12278
|
+
* The deployment ID in the path is the deployment to return to, not the one
|
|
12279
|
+
* to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists
|
|
12280
|
+
* the newest deployment first.
|
|
12281
|
+
*
|
|
12282
|
+
* A rollback is a new deployment, not an undo. It has `reason: rollback`,
|
|
12283
|
+
* and its `rollback_to` names the deployment you returned to. It uses the
|
|
12284
|
+
* variable values that deployment froze, not the project's current ones, and
|
|
12285
|
+
* creates no release.
|
|
12286
|
+
*
|
|
12287
|
+
* To guard against a deployment that landed since you looked, set
|
|
12288
|
+
* `expected_deployment_id` in the request body to the newest primary
|
|
12289
|
+
* deployment, the one live now. The call then fails with `409 dep.conflict`
|
|
12290
|
+
* if another deployment has replaced it.
|
|
12291
|
+
*
|
|
12292
|
+
* A rollback is idempotent like a deployment to `primary`. When nothing
|
|
12293
|
+
* would change, it answers `200` with the newest primary deployment.
|
|
12294
|
+
*
|
|
12295
|
+
* If the request is refused:
|
|
12296
|
+
* - `400 dep.invalid`: the deployment went to preview URLs, which cannot be
|
|
12297
|
+
* rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`). The
|
|
12298
|
+
* error also appears when the project has no primary origin. Add one with
|
|
12299
|
+
* `zitadel origin add`.
|
|
12300
|
+
* - `404 dep.not_found`: no deployment of the project has that ID, or that
|
|
12301
|
+
* deployment recorded no variables to restore, so it cannot be a rollback
|
|
12302
|
+
* target. List them with `listDeployments` and pick another.
|
|
11942
12303
|
* - `409 dep.conflict`: `expected_deployment_id` is not the project's
|
|
11943
|
-
* newest primary deployment
|
|
11944
|
-
*
|
|
12304
|
+
* newest primary deployment, and `details.deployment` is that deployment.
|
|
12305
|
+
* Inspect it, then retry with its ID, or stop.
|
|
12306
|
+
* - `409 rel.revoked`: the release of that deployment is revoked and cannot
|
|
12307
|
+
* be deployed. Roll back to a deployment of a release that is not revoked.
|
|
11945
12308
|
* @summary Roll back to a deployment
|
|
11946
12309
|
*/
|
|
11947
12310
|
export declare const rollbackDeploymentPathDeploymentIdRegExp: RegExp;
|
|
@@ -12043,6 +12406,8 @@ export declare const RollbackDeploymentResponse: zod.ZodObject<{
|
|
|
12043
12406
|
* Returns the variable values the deployment froze when it was made. Later
|
|
12044
12407
|
* changes to the project's variables do not affect them. A secret reads
|
|
12045
12408
|
* back as `{"secret": true}`.
|
|
12409
|
+
*
|
|
12410
|
+
* Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
|
|
12046
12411
|
* @summary Get a deployment's variables
|
|
12047
12412
|
*/
|
|
12048
12413
|
export declare const getDeploymentVariablesPathDeploymentIdRegExp: RegExp;
|