@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
|
@@ -216,13 +216,15 @@ export const getGetLiveUrl = () => {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
* Answers `ok` while the server process serves HTTP, and checks nothing
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
219
|
+
* Answers `ok` while the server process serves HTTP, and checks nothing
|
|
220
|
+
* behind it.
|
|
221
|
+
*
|
|
222
|
+
* A liveness probe tells an orchestrator such as Kubernetes whether to
|
|
223
|
+
* restart the process. Point it at `/livez` at the root, where the probes
|
|
224
|
+
* stay, not under `/api/v1`. It never checks the database, so an outage of
|
|
225
|
+
* the database does not restart every instance. `GET /readyz` takes an
|
|
226
|
+
* instance out of rotation instead.
|
|
227
|
+
* @summary Check the server's liveness
|
|
226
228
|
*/
|
|
227
229
|
export const getLive = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetLiveDefault> => {
|
|
228
230
|
|
|
@@ -246,12 +248,15 @@ export const getGetReadyUrl = () => {
|
|
|
246
248
|
}
|
|
247
249
|
|
|
248
250
|
/**
|
|
249
|
-
* Answers
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
251
|
+
* Answers `ok` when the server can serve requests, which takes its database
|
|
252
|
+
* answering within a second, and `fail` with `503` otherwise.
|
|
253
|
+
*
|
|
254
|
+
* A readiness probe tells an orchestrator such as Kubernetes whether to send
|
|
255
|
+
* the instance requests. Point it at `/readyz` at the root, where the probes
|
|
256
|
+
* stay, not under `/api/v1`, so that a server whose database does not answer
|
|
257
|
+
* gets no requests until it does. The check is one round trip to the
|
|
258
|
+
* database.
|
|
259
|
+
* @summary Check the server's readiness
|
|
255
260
|
*/
|
|
256
261
|
export const getReady = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetReadyDefault> => {
|
|
257
262
|
|
|
@@ -282,12 +287,14 @@ export const getCreateUserUrl = (params: CreateUserParams,) => {
|
|
|
282
287
|
}
|
|
283
288
|
|
|
284
289
|
/**
|
|
285
|
-
* Creates a user whose attributes satisfy the user schema the request
|
|
286
|
-
*
|
|
287
|
-
* The server assigns the user's
|
|
288
|
-
*
|
|
289
|
-
* user
|
|
290
|
-
*
|
|
290
|
+
* Creates a user whose attributes satisfy the user schema named in the request.
|
|
291
|
+
*
|
|
292
|
+
* The server assigns the user's ID and returns it. `schema` is the `id` of a
|
|
293
|
+
* schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
|
|
294
|
+
* `team_id`, the user also becomes an active member of that team. A value the
|
|
295
|
+
* schema marks unique that another user already holds is refused with `409`;
|
|
296
|
+
* send a different value.
|
|
297
|
+
* @summary Create a user
|
|
291
298
|
*/
|
|
292
299
|
export const createUser = async (createUserBody: CreateUserBody,
|
|
293
300
|
params: CreateUserParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateUser201> => {
|
|
@@ -338,9 +345,15 @@ export const getQueryUsersUrl = (params?: QueryUsersParams,) => {
|
|
|
338
345
|
* `project_id` names the project to list; without it, the credential's own
|
|
339
346
|
* project is listed.
|
|
340
347
|
*
|
|
341
|
-
* Accepts either a project secret (`oauth2`) or a user-bound
|
|
348
|
+
* Accepts either a project secret (`oauth2`) or a user-bound console
|
|
342
349
|
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
343
350
|
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
351
|
+
*
|
|
352
|
+
* With a project secret, embedding `teams` with `expand`, or filtering by
|
|
353
|
+
* `team_id`, also needs `team_membership.read`. Embedding
|
|
354
|
+
* `lifecycle_owner_team` needs `team.read`. A console session carries no
|
|
355
|
+
* scopes: it may do both when it may read the whole project, and gets
|
|
356
|
+
* `403 user.permission_denied` otherwise.
|
|
344
357
|
* @summary Query users
|
|
345
358
|
*/
|
|
346
359
|
export const queryUsers = async (queryUsersBody: QueryUsersBody,
|
|
@@ -388,11 +401,11 @@ export const getGetUserByIDUrl = (userId: string,
|
|
|
388
401
|
}
|
|
389
402
|
|
|
390
403
|
/**
|
|
391
|
-
* Returns a user by
|
|
404
|
+
* Returns a user by ID, with the attributes its schema defines.
|
|
392
405
|
*
|
|
393
|
-
* With `team_id`, the user is returned only while they are an active member
|
|
394
|
-
* that team.
|
|
395
|
-
* @summary Get user by ID
|
|
406
|
+
* With `team_id`, the user is returned only while they are an active member
|
|
407
|
+
* of that team.
|
|
408
|
+
* @summary Get a user by ID
|
|
396
409
|
*/
|
|
397
410
|
export const getUserByID = async (userId: string,
|
|
398
411
|
params?: GetUserByIDParams, options?: Parameters<typeof customFetch>[1]): Promise<GetUserByID200> => {
|
|
@@ -421,7 +434,20 @@ export const getPatchUserByIDUrl = (userId: string,) => {
|
|
|
421
434
|
* moves the user to another registered schema. The merged result is
|
|
422
435
|
* validated against the schema before commit. Concurrent writes are
|
|
423
436
|
* last-write-wins.
|
|
424
|
-
*
|
|
437
|
+
*
|
|
438
|
+
* To move the user, send `schema` with the `id` of a registered schema, as
|
|
439
|
+
* `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
|
|
440
|
+
*
|
|
441
|
+
* To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
|
|
442
|
+
* the same permission and answers the same status and `details` as the real
|
|
443
|
+
* request, and it changes nothing and emits no `user.updated`. The request
|
|
444
|
+
* itself is still recorded as `request.api`, like any other API call. A `200`
|
|
445
|
+
* holds for the moment of the check: a unique value that is free then can be
|
|
446
|
+
* taken before the real request, which then answers `409`.
|
|
447
|
+
*
|
|
448
|
+
* `dry_run` is a body field so that a server from before it refuses the
|
|
449
|
+
* request as malformed (`400 req.invalid`) instead of applying the patch.
|
|
450
|
+
* @summary Update a user by ID
|
|
425
451
|
*/
|
|
426
452
|
export const patchUserByID = async (userId: string,
|
|
427
453
|
patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchUserByID200> => {
|
|
@@ -469,7 +495,7 @@ export const getDeleteUserByIDUrl = (userId: string,) => {
|
|
|
469
495
|
* in no project succeeds without changing anything. Deleting the last active
|
|
470
496
|
* member of a project's owning team returns 409 `proj.last_owner` and changes
|
|
471
497
|
* nothing.
|
|
472
|
-
* @summary Delete user by ID
|
|
498
|
+
* @summary Delete a user by ID
|
|
473
499
|
*/
|
|
474
500
|
export const deleteUserByID = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
475
501
|
|
|
@@ -501,8 +527,9 @@ export const getListUserIdentityLinksUrl = (userId: string,
|
|
|
501
527
|
}
|
|
502
528
|
|
|
503
529
|
/**
|
|
504
|
-
*
|
|
505
|
-
* The provider's subject and claims
|
|
530
|
+
* Lists the identity provider accounts a sign-in linked to the user, oldest
|
|
531
|
+
* first. The provider's subject and claims, the data it asserts about the
|
|
532
|
+
* account, are never returned.
|
|
506
533
|
* @summary List the provider accounts linked to a user
|
|
507
534
|
*/
|
|
508
535
|
export const listUserIdentityLinks = async (userId: string,
|
|
@@ -536,12 +563,13 @@ export const getListUserPasskeysUrl = (userId: string,
|
|
|
536
563
|
}
|
|
537
564
|
|
|
538
565
|
/**
|
|
539
|
-
*
|
|
540
|
-
* cursor.
|
|
566
|
+
* Lists the passkeys registered for a user, newest first, paginated with a
|
|
567
|
+
* cursor. A passkey is a WebAuthn credential that signs a user in without a
|
|
568
|
+
* password.
|
|
541
569
|
*
|
|
542
|
-
* Each passkey carries its
|
|
570
|
+
* Each passkey carries its ID, its name and when it was registered, never the
|
|
543
571
|
* credential itself.
|
|
544
|
-
* @summary List user passkeys
|
|
572
|
+
* @summary List a user's passkeys
|
|
545
573
|
*/
|
|
546
574
|
export const listUserPasskeys = async (userId: string,
|
|
547
575
|
params?: ListUserPasskeysParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserPasskeys200> => {
|
|
@@ -567,11 +595,15 @@ export const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
|
567
595
|
|
|
568
596
|
/**
|
|
569
597
|
* Starts a WebAuthn registration ceremony for the user and returns the
|
|
570
|
-
* creation options for `navigator.credentials.create()`.
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
*
|
|
598
|
+
* creation options for `navigator.credentials.create()`. A passkey is
|
|
599
|
+
* registered in two steps: this one returns options for the browser, and
|
|
600
|
+
* `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
|
|
601
|
+
*
|
|
602
|
+
* Complete the ceremony with
|
|
603
|
+
* `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
|
|
604
|
+
* minutes, using the `registration_id` this response returns. Credentials
|
|
605
|
+
* already registered for the user are excluded automatically.
|
|
606
|
+
* @summary Begin a passkey registration
|
|
575
607
|
*/
|
|
576
608
|
export const beginUserPasskeyRegistration = async (userId: string,
|
|
577
609
|
beginUserPasskeyRegistrationBody: BeginUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<BeginUserPasskeyRegistration201> => {
|
|
@@ -611,13 +643,16 @@ export const getFinishUserPasskeyRegistrationUrl = (userId: string,
|
|
|
611
643
|
}
|
|
612
644
|
|
|
613
645
|
/**
|
|
614
|
-
* Verifies the attestation against the ceremony
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
646
|
+
* Verifies the attestation against the registration ceremony and stores
|
|
647
|
+
* the new passkey for the user. `registration_id` is the one that
|
|
648
|
+
* `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
|
|
649
|
+
* returned when it started the ceremony. The attestation is
|
|
650
|
+
* the browser's answer from `navigator.credentials.create()`.
|
|
651
|
+
*
|
|
652
|
+
* A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers
|
|
653
|
+
* `att.stale_challenge`: begin a new registration. An unknown or
|
|
654
|
+
* already-consumed registration ID answers `att.not_found`.
|
|
655
|
+
* @summary Finish a passkey registration
|
|
621
656
|
*/
|
|
622
657
|
export const finishUserPasskeyRegistration = async (userId: string,
|
|
623
658
|
registrationId: string,
|
|
@@ -657,10 +692,10 @@ export const getGetUserPasswordStateUrl = (userId: string,) => {
|
|
|
657
692
|
}
|
|
658
693
|
|
|
659
694
|
/**
|
|
660
|
-
*
|
|
695
|
+
* Returns when the user's current password was set, and leaves `set_at` out
|
|
661
696
|
* when the user has none. The password and its hash are never returned;
|
|
662
|
-
*
|
|
663
|
-
* @summary Get user password state
|
|
697
|
+
* `setUserPassword` (`PUT` on the same path) sets one.
|
|
698
|
+
* @summary Get a user's password state
|
|
664
699
|
*/
|
|
665
700
|
export const getUserPasswordState = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetUserPasswordState200> => {
|
|
666
701
|
|
|
@@ -688,8 +723,28 @@ export const getSetUserPasswordUrl = (userId: string,) => {
|
|
|
688
723
|
* policy.
|
|
689
724
|
*
|
|
690
725
|
* The new password replaces the current one, and setting it emits
|
|
691
|
-
* `auth.factor.password.set`.
|
|
692
|
-
*
|
|
726
|
+
* `auth.factor.password.set`. A password the project's password policy
|
|
727
|
+
* refuses answers `user.password_policy_violation`; send one that meets the
|
|
728
|
+
* policy.
|
|
729
|
+
*
|
|
730
|
+
* The password policy is the one in the release that serves the caller's
|
|
731
|
+
* `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a
|
|
732
|
+
* preview URL gets that preview's policy, and one on a primary origin the
|
|
733
|
+
* newest primary deployment's. A request with no `Origin`, or from the
|
|
734
|
+
* console when the project does not list the console's origin, gets the
|
|
735
|
+
* project's newest primary deployment.
|
|
736
|
+
*
|
|
737
|
+
* If the request is refused:
|
|
738
|
+
* - `403 proj.origin_not_allowed`: the project admits no such origin. Add it
|
|
739
|
+
* with `zitadel origin add`.
|
|
740
|
+
* - `403 proj.preview_not_live`: the origin matches a preview pattern but has
|
|
741
|
+
* no live preview. Run `zitadel preview` on the branch.
|
|
742
|
+
* - `409 rel.not_deployed`: nothing is deployed to the origin. Run
|
|
743
|
+
* `zitadel deploy`.
|
|
744
|
+
* - `409 rel.no_default`: the request names no origin and the project has no
|
|
745
|
+
* primary deployment. Run `zitadel deploy`.
|
|
746
|
+
* - `409 rel.revoked`: the release that serves the origin is revoked.
|
|
747
|
+
* @summary Set a user's password
|
|
693
748
|
*/
|
|
694
749
|
export const setUserPassword = async (userId: string,
|
|
695
750
|
setUserPasswordBody: SetUserPasswordBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
@@ -736,13 +791,14 @@ export const getListUserTeamsUrl = (userId: string,
|
|
|
736
791
|
}
|
|
737
792
|
|
|
738
793
|
/**
|
|
739
|
-
*
|
|
740
|
-
* team's name, so a client renders a page without resolving
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
*
|
|
745
|
-
*
|
|
794
|
+
* Lists the teams a user belongs to, ordered by team name. Each entry carries
|
|
795
|
+
* the team's name, so a client renders a page without resolving IDs one by
|
|
796
|
+
* one.
|
|
797
|
+
*
|
|
798
|
+
* This is the user's team memberships, not lifecycle ownership: the single
|
|
799
|
+
* team that owns the user's lifecycle is reported as
|
|
800
|
+
* `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships
|
|
801
|
+
* the user was removed from are not returned.
|
|
746
802
|
* @summary List the teams a user belongs to
|
|
747
803
|
*/
|
|
748
804
|
export const listUserTeams = async (userId: string,
|
|
@@ -865,8 +921,9 @@ export const getListMyIdentityLinksUrl = (params?: ListMyIdentityLinksParams,) =
|
|
|
865
921
|
}
|
|
866
922
|
|
|
867
923
|
/**
|
|
868
|
-
*
|
|
869
|
-
* oldest first. The provider's subject and claims
|
|
924
|
+
* Lists the identity provider accounts a sign-in linked to the signed-in user,
|
|
925
|
+
* oldest first. The provider's subject and claims, the data it asserts about
|
|
926
|
+
* the account, are never returned.
|
|
870
927
|
*
|
|
871
928
|
* With `project_id`, the links are listed only when the session belongs to
|
|
872
929
|
* that project.
|
|
@@ -901,9 +958,10 @@ export const getListMyPasskeysUrl = (params?: ListMyPasskeysParams,) => {
|
|
|
901
958
|
}
|
|
902
959
|
|
|
903
960
|
/**
|
|
904
|
-
*
|
|
905
|
-
*
|
|
906
|
-
*
|
|
961
|
+
* Lists the signed-in user's own passkeys, newest first, paginated with a
|
|
962
|
+
* cursor. A passkey is a WebAuthn credential that signs a user in without a
|
|
963
|
+
* password. Each passkey carries its ID, its name and when it was registered,
|
|
964
|
+
* never the credential itself.
|
|
907
965
|
*
|
|
908
966
|
* With `project_id`, the passkeys are listed only when the session belongs to
|
|
909
967
|
* that project.
|
|
@@ -938,7 +996,7 @@ export const getGetMyPasswordStateUrl = (params?: GetMyPasswordStateParams,) =>
|
|
|
938
996
|
}
|
|
939
997
|
|
|
940
998
|
/**
|
|
941
|
-
*
|
|
999
|
+
* Returns when the signed-in user's current password was set, and leaves
|
|
942
1000
|
* `set_at` out when they have none. The password and its hash are never
|
|
943
1001
|
* returned.
|
|
944
1002
|
*
|
|
@@ -975,12 +1033,12 @@ export const getListMyProjectsUrl = (params?: ListMyProjectsParams,) => {
|
|
|
975
1033
|
}
|
|
976
1034
|
|
|
977
1035
|
/**
|
|
978
|
-
*
|
|
979
|
-
* on, either directly or through a team they are a member of. For a
|
|
980
|
-
* operator
|
|
981
|
-
* project
|
|
1036
|
+
* Lists the projects the signed-in user can act on: those they hold an active
|
|
1037
|
+
* grant on, either directly or through a team they are a member of. For a
|
|
1038
|
+
* platform operator, someone who runs the deployment, that is every project of
|
|
1039
|
+
* the deployment. Ordered by project ID and paged with an opaque cursor.
|
|
982
1040
|
*
|
|
983
|
-
* This is not the same question as `queryProjects
|
|
1041
|
+
* This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one
|
|
984
1042
|
* project the calling credential is bound to. Here the session is the caller
|
|
985
1043
|
* and the grants are the answer, so the list spans projects.
|
|
986
1044
|
*
|
|
@@ -1023,7 +1081,7 @@ export const getGetMyUserSchemaUrl = (params?: GetMyUserSchemaParams,) => {
|
|
|
1023
1081
|
}
|
|
1024
1082
|
|
|
1025
1083
|
/**
|
|
1026
|
-
*
|
|
1084
|
+
* Returns the schema that validates the signed-in user's own record.
|
|
1027
1085
|
*
|
|
1028
1086
|
* With `project_id`, the schema is returned only when the session belongs to
|
|
1029
1087
|
* that project.
|
|
@@ -1058,7 +1116,7 @@ export const getListMyTeamsUrl = (params?: ListMyTeamsParams,) => {
|
|
|
1058
1116
|
}
|
|
1059
1117
|
|
|
1060
1118
|
/**
|
|
1061
|
-
*
|
|
1119
|
+
* Lists the teams the signed-in user belongs to, ordered by team name.
|
|
1062
1120
|
*
|
|
1063
1121
|
* With `project_id`, the teams are listed only when the session belongs to
|
|
1064
1122
|
* that project.
|
|
@@ -1086,34 +1144,56 @@ export const getCreateFlowUrl = () => {
|
|
|
1086
1144
|
}
|
|
1087
1145
|
|
|
1088
1146
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
* the first
|
|
1091
|
-
*
|
|
1092
|
-
*
|
|
1093
|
-
*
|
|
1094
|
-
*
|
|
1095
|
-
* the
|
|
1096
|
-
*
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1105
|
-
*
|
|
1106
|
-
*
|
|
1107
|
-
*
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1147
|
+
* Starts a flow: resolves a flow definition from the request's purpose and
|
|
1148
|
+
* audience, and returns the first step.
|
|
1149
|
+
*
|
|
1150
|
+
* The flow endpoints are the runtime calls the login component
|
|
1151
|
+
* (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
|
|
1152
|
+
* step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to
|
|
1153
|
+
* get the next step. This call creates a new session implicitly, unless
|
|
1154
|
+
* `session_id` is provided together with that session's `session_token`
|
|
1155
|
+
* (for step-up or reauthentication on an existing session).
|
|
1156
|
+
*
|
|
1157
|
+
* The browser `Origin` header selects which deployment serves this attempt.
|
|
1158
|
+
* The server checks the origin against the project's origin patterns and live
|
|
1159
|
+
* previews, and the deployment that origin serves is the target: the
|
|
1160
|
+
* project's newest primary deployment when it names a primary origin, or the
|
|
1161
|
+
* newest live deployment to a preview URL. A
|
|
1162
|
+
* deployment is a release, the immutable bundle of the project's
|
|
1163
|
+
* configuration, made live at an origin. The deployment's release supplies
|
|
1164
|
+
* flow definitions, user schemas and branding. The resolved deployment is
|
|
1165
|
+
* sealed into the `_zflow` cookie so later steps keep the same
|
|
1166
|
+
* configuration.
|
|
1167
|
+
*
|
|
1168
|
+
* - An origin that matches no pattern answers `403` with
|
|
1169
|
+
* `proj.origin_not_allowed`, including when the project lists no origins.
|
|
1170
|
+
* Add the origin with `zitadel origin add`.
|
|
1171
|
+
* - An origin that matches a preview pattern with no live preview answers
|
|
1172
|
+
* `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.
|
|
1173
|
+
* - Nothing deployed to a listed origin or a live preview answers `409`
|
|
1174
|
+
* with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added
|
|
1175
|
+
* since the last deploy serves nothing until the next one.
|
|
1176
|
+
* - A loopback origin the project does not list answers `409` with
|
|
1177
|
+
* `rel.not_deployed` too, as no deployment can name it. Add it with
|
|
1178
|
+
* `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.
|
|
1179
|
+
* - A revoked release answers `409` with `rel.revoked`.
|
|
1180
|
+
*
|
|
1181
|
+
* A request with no `Origin` passes the check, and so does the server's own
|
|
1182
|
+
* origin, from which its console previews a project's login. Both are served
|
|
1183
|
+
* the project's newest primary deployment unless the project lists that
|
|
1184
|
+
* origin; with no primary deployment they answer `409` with
|
|
1185
|
+
* `rel.no_default`. A loopback origin passes the check and is its own
|
|
1186
|
+
* target. A step submitted from the server's own origin is still refused
|
|
1187
|
+
* unless the project lists it.
|
|
1188
|
+
*
|
|
1189
|
+
* The response contains an `id` field, the flow handle. Use it as the path
|
|
1110
1190
|
* parameter for all subsequent `/flow/{id}/submit` calls.
|
|
1111
1191
|
*
|
|
1112
1192
|
* The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
|
|
1113
1193
|
* the flow's orchestration state (current step, collected data, history).
|
|
1114
|
-
* The server is stateless between requests
|
|
1194
|
+
* The server is stateless between requests: all flow state lives in this
|
|
1115
1195
|
* cookie. The browser sends it automatically on subsequent requests.
|
|
1116
|
-
* @summary Start a
|
|
1196
|
+
* @summary Start a flow
|
|
1117
1197
|
*/
|
|
1118
1198
|
export const createFlow = async (createFlowBody: CreateFlowBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlow201> => {
|
|
1119
1199
|
|
|
@@ -1151,13 +1231,17 @@ export const getGetFlowStepUrl = (id: string,) => {
|
|
|
1151
1231
|
}
|
|
1152
1232
|
|
|
1153
1233
|
/**
|
|
1154
|
-
* Returns the current
|
|
1155
|
-
*
|
|
1234
|
+
* Returns the current step of a flow without advancing it. Use it to render
|
|
1235
|
+
* the step again after a page reload or a network error.
|
|
1236
|
+
*
|
|
1237
|
+
* The flow endpoints are the runtime calls the login component
|
|
1238
|
+
* (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and
|
|
1239
|
+
* `submitFlowStep` (`POST /flow/{id}/submit`) advances it.
|
|
1156
1240
|
*
|
|
1157
1241
|
* Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
|
|
1158
1242
|
* re-resolve from `Origin`. If that release was revoked since the attempt
|
|
1159
1243
|
* started, the response is `409` with `rel.revoked`.
|
|
1160
|
-
* @summary Get current step
|
|
1244
|
+
* @summary Get the current step of a flow
|
|
1161
1245
|
*/
|
|
1162
1246
|
export const getFlowStep = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowStep200> => {
|
|
1163
1247
|
|
|
@@ -1181,12 +1265,14 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1181
1265
|
}
|
|
1182
1266
|
|
|
1183
1267
|
/**
|
|
1184
|
-
* Submits user input for the current step. The server
|
|
1185
|
-
* processes (
|
|
1186
|
-
* through any invisible steps, and returns the next visible step.
|
|
1268
|
+
* Submits the user's input for the current step of a flow. The server
|
|
1269
|
+
* validates it, processes it (for example, verifies a credential), advances
|
|
1270
|
+
* the flow through any invisible steps, and returns the next visible step.
|
|
1271
|
+
* The flow endpoints are the runtime calls the login component
|
|
1272
|
+
* (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.
|
|
1187
1273
|
*
|
|
1188
1274
|
* The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
|
|
1189
|
-
* with the new flow state. The server is stateless
|
|
1275
|
+
* with the new flow state. The server is stateless: all orchestration
|
|
1190
1276
|
* state is carried in this cookie between requests.
|
|
1191
1277
|
*
|
|
1192
1278
|
* **Important:** The `id` in the response may differ from the `id` used in
|
|
@@ -1202,17 +1288,17 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1202
1288
|
* | `behavior` | Action |
|
|
1203
1289
|
* |------------- |------------------------------------------------------------|
|
|
1204
1290
|
* | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
|
|
1205
|
-
* | `show` | Render the step as a success screen
|
|
1291
|
+
* | `show` | Render the step as a success screen, such as registration. |
|
|
1206
1292
|
*
|
|
1207
1293
|
* A `complete` step is only returned when the **entire flow stack** is done.
|
|
1208
|
-
* If a stacked flow (
|
|
1209
|
-
* auto-pops to the parent flow and returns the parent's next step
|
|
1210
|
-
* frontend never sees a `complete` for intermediate flows.
|
|
1294
|
+
* If a stacked flow (for example, recovery pivoted from login) finishes, the
|
|
1295
|
+
* server auto-pops to the parent flow and returns the parent's next step.
|
|
1296
|
+
* The frontend never sees a `complete` for intermediate flows.
|
|
1211
1297
|
*
|
|
1212
1298
|
* ## External sign-in
|
|
1213
1299
|
*
|
|
1214
1300
|
* `{action: "sso", sso_provider_id, return_target}` on a step that offers
|
|
1215
|
-
* `sso_providers` returns the
|
|
1301
|
+
* `sso_providers` returns the server-emitted `sso-redirect` step, whose
|
|
1216
1302
|
* `redirect_url` the frontend navigates to.
|
|
1217
1303
|
*
|
|
1218
1304
|
* - The flow state does not change, but `_zflow` is re-sealed like on
|
|
@@ -1225,15 +1311,16 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1225
1311
|
* Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
|
|
1226
1312
|
* `__Host-` prefix is dropped because it requires `Secure`.
|
|
1227
1313
|
*
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
1230
|
-
* sign-in with, including a
|
|
1231
|
-
* re-renders the step with
|
|
1314
|
+
* An identity provider (an external sign-in such as Google) whose
|
|
1315
|
+
* `client_id` is a `${{ NAME }}` reference has it filled from the project's
|
|
1316
|
+
* variables. A provider the server cannot start a sign-in with, including a
|
|
1317
|
+
* reference with no variable behind it, re-renders the step with
|
|
1318
|
+
* `error.sso_unavailable`.
|
|
1232
1319
|
*
|
|
1233
1320
|
* Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
|
|
1234
1321
|
* re-resolve from `Origin`. If that release was revoked since the attempt
|
|
1235
1322
|
* started, the response is `409` with `rel.revoked`.
|
|
1236
|
-
* @summary Submit
|
|
1323
|
+
* @summary Submit a flow step
|
|
1237
1324
|
*/
|
|
1238
1325
|
export const submitFlowStep = async (id: string,
|
|
1239
1326
|
submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]): Promise<SubmitFlowStep200> => {
|
|
@@ -1272,20 +1359,36 @@ export const getCreateAuthAttemptUrl = () => {
|
|
|
1272
1359
|
}
|
|
1273
1360
|
|
|
1274
1361
|
/**
|
|
1275
|
-
*
|
|
1276
|
-
*
|
|
1277
|
-
* An attempt
|
|
1278
|
-
*
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
1282
|
-
*
|
|
1283
|
-
*
|
|
1284
|
-
*
|
|
1285
|
-
*
|
|
1286
|
-
*
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
1362
|
+
* Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.
|
|
1363
|
+
*
|
|
1364
|
+
* An authentication attempt collects the proofs for one sign-in and ends in a
|
|
1365
|
+
* handoff token. A handoff token is the short-lived, single-use credential that
|
|
1366
|
+
* a completed attempt hands to the session exchange. A client makes these calls
|
|
1367
|
+
* in order:
|
|
1368
|
+
*
|
|
1369
|
+
* 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
|
|
1370
|
+
* 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
|
|
1371
|
+
* `identifier`, `password` or `passkey`.
|
|
1372
|
+
* 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
|
|
1373
|
+
* credential, code or assertion. Repeat steps 2 and 3 until
|
|
1374
|
+
* `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
|
|
1375
|
+
* `required_factors` is verified.
|
|
1376
|
+
* 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
|
|
1377
|
+
* 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
|
|
1378
|
+
* for the session and its `session_token`.
|
|
1379
|
+
*
|
|
1380
|
+
* The body takes a `project_id` and a `challenge_nonce` (from
|
|
1381
|
+
* `POST /bootstrap/challenge`). For step-up authentication, which adds factors
|
|
1382
|
+
* to an existing session, also send that session's `session_id` and its
|
|
1383
|
+
* `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.
|
|
1384
|
+
* The attempt's `attempt_id` in the response is the ID every later call takes.
|
|
1385
|
+
*
|
|
1386
|
+
* The project comes from the project secret. A body `project_id` that names
|
|
1387
|
+
* another project answers `403` with `proj.mismatch`: send the credential's own
|
|
1388
|
+
* project. The attempt seals the project's newest primary deployment, whatever
|
|
1389
|
+
* the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a
|
|
1390
|
+
* revoked release answers `409` with `rel.revoked`.
|
|
1391
|
+
* @summary Create an authentication attempt
|
|
1289
1392
|
*/
|
|
1290
1393
|
export const createAuthAttempt = async (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttempt201> => {
|
|
1291
1394
|
|
|
@@ -1323,14 +1426,14 @@ export const getGetAuthAttemptUrl = (attemptId: string,) => {
|
|
|
1323
1426
|
}
|
|
1324
1427
|
|
|
1325
1428
|
/**
|
|
1326
|
-
*
|
|
1429
|
+
* Returns the current state of an authentication attempt, one sign-in round.
|
|
1327
1430
|
*
|
|
1328
|
-
*
|
|
1329
|
-
* challenges issued so far, and any errors preventing progress.
|
|
1431
|
+
* The response holds the attempt's state, available factors for the next
|
|
1432
|
+
* challenge, challenges issued so far, and any errors preventing progress.
|
|
1330
1433
|
*
|
|
1331
|
-
* Use
|
|
1332
|
-
* a federated IdP callback or a device flow
|
|
1333
|
-
* @summary Get authentication attempt
|
|
1434
|
+
* Use it to poll during long-running factor verifications, for example waiting
|
|
1435
|
+
* for a federated identity provider (IdP) callback or a device flow.
|
|
1436
|
+
* @summary Get an authentication attempt by ID
|
|
1334
1437
|
*/
|
|
1335
1438
|
export const getAuthAttempt = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetAuthAttempt200> => {
|
|
1336
1439
|
|
|
@@ -1354,12 +1457,12 @@ export const getIssueChallengeUrl = (attemptId: string,) => {
|
|
|
1354
1457
|
}
|
|
1355
1458
|
|
|
1356
1459
|
/**
|
|
1357
|
-
* Issues a
|
|
1460
|
+
* Issues a challenge, a request to prove one factor, within an authentication attempt.
|
|
1358
1461
|
*
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1462
|
+
* A challenge names one factor method, such as password, passkey, TOTP or OTP
|
|
1463
|
+
* via SMS. The response carries the challenge's `challenge_id`, method,
|
|
1464
|
+
* metadata and any UI hints. The client then submits the proof with
|
|
1465
|
+
* `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
|
|
1363
1466
|
* @summary Issue a factor challenge
|
|
1364
1467
|
*/
|
|
1365
1468
|
export const issueChallenge = async (attemptId: string,
|
|
@@ -1400,17 +1503,22 @@ export const getVerifyChallengeProofUrl = (attemptId: string,
|
|
|
1400
1503
|
}
|
|
1401
1504
|
|
|
1402
1505
|
/**
|
|
1403
|
-
*
|
|
1506
|
+
* Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.
|
|
1404
1507
|
*
|
|
1405
1508
|
* The proof format depends on the challenge method. For example:
|
|
1509
|
+
*
|
|
1406
1510
|
* - `password` method: { password: "…" }
|
|
1407
1511
|
* - `totp` method: { totp: { code: "123456" } }
|
|
1408
1512
|
* - `passkey` method: { passkey: { assertion: "…" } }
|
|
1409
1513
|
* - `recovery_code` method: { recovery_code: "…" }
|
|
1410
1514
|
*
|
|
1411
|
-
* On
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1515
|
+
* On success, the factor is recorded on the authentication attempt. The
|
|
1516
|
+
* attempt moves to the next pending challenge, or completes when every required
|
|
1517
|
+
* factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
|
|
1518
|
+
*
|
|
1519
|
+
* A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
|
|
1520
|
+
* again. There is no retry limit: you can retry until the attempt expires.
|
|
1521
|
+
* @summary Verify a challenge proof
|
|
1414
1522
|
*/
|
|
1415
1523
|
export const verifyChallengeProof = async (attemptId: string,
|
|
1416
1524
|
challengeId: string,
|
|
@@ -1450,19 +1558,24 @@ export const getCreateHandoffUrl = (attemptId: string,) => {
|
|
|
1450
1558
|
}
|
|
1451
1559
|
|
|
1452
1560
|
/**
|
|
1453
|
-
* Completes
|
|
1561
|
+
* Completes an authentication attempt and mints a `handoff_token`.
|
|
1562
|
+
*
|
|
1563
|
+
* A handoff token is the short-lived credential that a completed attempt hands
|
|
1564
|
+
* to the session exchange. Call this after every required factor is verified and
|
|
1565
|
+
* the attempt is in `completed` state. Otherwise it answers `409` with
|
|
1566
|
+
* `att.not_completed`: verify the remaining factors, then call again.
|
|
1454
1567
|
*
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1457
|
-
* POST /sessions/exchange to receive the final session and session_token.
|
|
1568
|
+
* Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60
|
|
1569
|
+
* seconds to receive the session and its `session_token`. The handoff token is:
|
|
1458
1570
|
*
|
|
1459
|
-
*
|
|
1460
|
-
* -
|
|
1461
|
-
* -
|
|
1462
|
-
*
|
|
1571
|
+
* - Single-use: exchange it once, with no retry.
|
|
1572
|
+
* - Bound to the project: the exchange needs the same project's credential.
|
|
1573
|
+
* - Created once: a second call answers `409 att.already_handed_off`, even
|
|
1574
|
+
* with the same idempotency key.
|
|
1463
1575
|
*
|
|
1464
|
-
*
|
|
1465
|
-
*
|
|
1576
|
+
* A revoked release is refused when the handoff is exchanged, not here. A
|
|
1577
|
+
* release is the configuration that `zitadel deploy` publishes.
|
|
1578
|
+
* @summary Complete an authentication attempt and create a handoff token
|
|
1466
1579
|
*/
|
|
1467
1580
|
export const createHandoff = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateHandoff200> => {
|
|
1468
1581
|
|
|
@@ -1489,10 +1602,13 @@ export const getCreateProjectUrl = () => {
|
|
|
1489
1602
|
* Creates a project and returns its project secret and preview secret, which no
|
|
1490
1603
|
* other endpoint returns.
|
|
1491
1604
|
*
|
|
1492
|
-
*
|
|
1493
|
-
*
|
|
1494
|
-
*
|
|
1495
|
-
*
|
|
1605
|
+
* A project is the top-level boundary that holds users, sessions and
|
|
1606
|
+
* configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).
|
|
1607
|
+
*
|
|
1608
|
+
* The request needs no credential and is rate-limited. On `429`, wait and retry.
|
|
1609
|
+
* Unless `seed_defaults` is `false`, the project starts with a default user schema
|
|
1610
|
+
* and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.
|
|
1611
|
+
* @summary Create a project
|
|
1496
1612
|
*/
|
|
1497
1613
|
export const createProject = async (createProjectBody: CreateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateProject201> => {
|
|
1498
1614
|
|
|
@@ -1533,9 +1649,9 @@ export const getQueryProjectsUrl = () => {
|
|
|
1533
1649
|
* Returns the project the project secret belongs to, as a page of at most one
|
|
1534
1650
|
* project.
|
|
1535
1651
|
*
|
|
1536
|
-
* A credential is scoped to one project
|
|
1537
|
-
*
|
|
1538
|
-
* act on
|
|
1652
|
+
* A credential is scoped to one project today, so the filters and sorting
|
|
1653
|
+
* apply to that project alone. A signed-in person lists the projects they can
|
|
1654
|
+
* act on with `GET /users/me/projects`.
|
|
1539
1655
|
* @summary Query projects
|
|
1540
1656
|
*/
|
|
1541
1657
|
export const queryProjects = async (queryProjectsBody: QueryProjectsBody, options?: Parameters<typeof customFetch>[1]): Promise<QueryProjects200> => {
|
|
@@ -1574,8 +1690,12 @@ export const getGetProjectUrl = (projectId: string,) => {
|
|
|
1574
1690
|
}
|
|
1575
1691
|
|
|
1576
1692
|
/**
|
|
1577
|
-
* Returns
|
|
1578
|
-
*
|
|
1693
|
+
* Returns a project's current state: its name, origins, password hashing
|
|
1694
|
+
* method and owning team.
|
|
1695
|
+
*
|
|
1696
|
+
* Authenticate with the project secret, or with the session of a signed-in
|
|
1697
|
+
* person who holds a grant on the project.
|
|
1698
|
+
* @summary Get a project by ID
|
|
1579
1699
|
*/
|
|
1580
1700
|
export const getProject = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetProject200> => {
|
|
1581
1701
|
|
|
@@ -1599,8 +1719,16 @@ export const getPatchProjectUrl = (projectId: string,) => {
|
|
|
1599
1719
|
}
|
|
1600
1720
|
|
|
1601
1721
|
/**
|
|
1602
|
-
* Updates
|
|
1603
|
-
*
|
|
1722
|
+
* Updates a project's name or password hashing method.
|
|
1723
|
+
*
|
|
1724
|
+
* Fields you leave out keep their value. Sending `password_hash: null` drops
|
|
1725
|
+
* the project's own method and returns to the server default. A change of
|
|
1726
|
+
* method rewrites no stored password: each moves to the new method when its
|
|
1727
|
+
* owner next signs in or sets a new password.
|
|
1728
|
+
*
|
|
1729
|
+
* Authenticate with the project secret, or with the session of a signed-in
|
|
1730
|
+
* person who can act on the project.
|
|
1731
|
+
* @summary Update a project
|
|
1604
1732
|
*/
|
|
1605
1733
|
export const patchProject = async (projectId: string,
|
|
1606
1734
|
patchProjectBody: PatchProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchProject200> => {
|
|
@@ -1647,35 +1775,35 @@ export const getListProjectAdminsUrl = (projectId: string,
|
|
|
1647
1775
|
}
|
|
1648
1776
|
|
|
1649
1777
|
/**
|
|
1650
|
-
* Lists the people who can administer
|
|
1651
|
-
*
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1655
|
-
*
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
*
|
|
1660
|
-
*
|
|
1661
|
-
*
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1666
|
-
*
|
|
1667
|
-
*
|
|
1778
|
+
* Lists the people who can administer a project, and how each of them
|
|
1779
|
+
* holds that access.
|
|
1780
|
+
*
|
|
1781
|
+
* A person appears once, with one entry in `sources` per way they hold it:
|
|
1782
|
+
*
|
|
1783
|
+
* - `owning_team`: an active member of the team that owns the project, the
|
|
1784
|
+
* team a claim attaches the project to. Removing a grant does not remove
|
|
1785
|
+
* this access. It ends only when the person leaves the team or the
|
|
1786
|
+
* project changes owner.
|
|
1787
|
+
* - `grant`: an unexpired `admin` grant on the project, which is a role
|
|
1788
|
+
* given to the person (`grant_id` only) or to a team they are an active
|
|
1789
|
+
* member of (`grant_id` and `team`). Revoking that grant removes this
|
|
1790
|
+
* source.
|
|
1791
|
+
*
|
|
1792
|
+
* The list follows the authorization check. A person who left a team, or
|
|
1793
|
+
* whose team or user was deactivated, is not listed through it. Grants that
|
|
1794
|
+
* expired or carry a lower role are left out. A person whose only access is a
|
|
1795
|
+
* `viewer` or `editor` grant is not an admin and is not listed. Like the
|
|
1796
|
+
* check, the list does not look at a person's user status beyond that, so a
|
|
1797
|
+
* direct grant to a suspended person is listed.
|
|
1668
1798
|
*
|
|
1669
1799
|
* A person whose access comes only through teams the caller is not a
|
|
1670
|
-
* member of is left out
|
|
1671
|
-
*
|
|
1672
|
-
* grants.
|
|
1673
|
-
*
|
|
1674
|
-
* Ordered by `user_id` and paginated with `page_token`.
|
|
1800
|
+
* member of is left out. A team the caller is not in is named by `team_id`
|
|
1801
|
+
* only. The grant to such a team still shows in the project's grants.
|
|
1675
1802
|
*
|
|
1676
|
-
*
|
|
1677
|
-
*
|
|
1678
|
-
*
|
|
1803
|
+
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
1804
|
+
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
1805
|
+
* (`sessionCookie`) of a signed-in person who can read the project.
|
|
1806
|
+
* @summary List the admins of a project
|
|
1679
1807
|
*/
|
|
1680
1808
|
export const listProjectAdmins = async (projectId: string,
|
|
1681
1809
|
params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectAdmins200> => {
|
|
@@ -1700,11 +1828,22 @@ export const getInitClaimUrl = (projectId: string,) => {
|
|
|
1700
1828
|
}
|
|
1701
1829
|
|
|
1702
1830
|
/**
|
|
1703
|
-
* Starts a claim
|
|
1704
|
-
*
|
|
1705
|
-
*
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1831
|
+
* Starts a claim, which attaches a project created before sign-in to a
|
|
1832
|
+
* team, and returns the `claim_url` to open in a browser.
|
|
1833
|
+
*
|
|
1834
|
+
* A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)
|
|
1835
|
+
* so that the team's members administer it. This operation mints a
|
|
1836
|
+
* single-use, short-lived challenge for an unclaimed project. The developer
|
|
1837
|
+
* opens `claim_url`, signs in and completes the claim in the browser; see
|
|
1838
|
+
* `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
|
|
1839
|
+
* as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
|
|
1840
|
+
*
|
|
1841
|
+
* Authenticate with the project secret that `createProject` (`POST /projects`) returns as
|
|
1842
|
+
* `project_secret`.
|
|
1843
|
+
*
|
|
1844
|
+
* A `409` means a team already claimed the project, and its details name
|
|
1845
|
+
* that team. A `410` means the project's 14-day claim window has closed,
|
|
1846
|
+
* which is final.
|
|
1708
1847
|
* @summary Initialize a project claim
|
|
1709
1848
|
*/
|
|
1710
1849
|
export const initClaim = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<InitClaim201> => {
|
|
@@ -1737,15 +1876,23 @@ export const getGetClaimStatusUrl = (projectId: string,
|
|
|
1737
1876
|
}
|
|
1738
1877
|
|
|
1739
1878
|
/**
|
|
1740
|
-
*
|
|
1741
|
-
*
|
|
1742
|
-
*
|
|
1743
|
-
*
|
|
1744
|
-
*
|
|
1745
|
-
*
|
|
1746
|
-
*
|
|
1747
|
-
*
|
|
1748
|
-
*
|
|
1879
|
+
* Returns the status of a claim challenge, `pending` or `completed`, while a
|
|
1880
|
+
* browser completes the claim.
|
|
1881
|
+
*
|
|
1882
|
+
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
|
|
1883
|
+
* `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
|
|
1884
|
+
* Once the project is claimed, the response is `completed` with the owning
|
|
1885
|
+
* team, the claim timestamp and the dashboard URL.
|
|
1886
|
+
*
|
|
1887
|
+
* The claim itself, not the polled challenge, decides the status. A project
|
|
1888
|
+
* claimed through another concurrent challenge also reports `completed`. A
|
|
1889
|
+
* completed claim keeps reporting `completed` past this challenge's expiry
|
|
1890
|
+
* and past the project's claim window.
|
|
1891
|
+
*
|
|
1892
|
+
* Pass the `challenge_id` that `initClaim` returns. Authenticate with the
|
|
1893
|
+
* project secret that started the challenge. On `410` with `proj.claim_expired`, call
|
|
1894
|
+
* `initClaim` again for a fresh challenge.
|
|
1895
|
+
* @summary Get the status of a project claim
|
|
1749
1896
|
*/
|
|
1750
1897
|
export const getClaimStatus = async (projectId: string,
|
|
1751
1898
|
params: GetClaimStatusParams, options?: Parameters<typeof customFetch>[1]): Promise<GetClaimStatus200> => {
|
|
@@ -1770,10 +1917,18 @@ export const getCompleteClaimUrl = (projectId: string,) => {
|
|
|
1770
1917
|
}
|
|
1771
1918
|
|
|
1772
1919
|
/**
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1920
|
+
* Completes a claim by attaching the project to the signed-in developer's
|
|
1921
|
+
* personal team.
|
|
1922
|
+
*
|
|
1923
|
+
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
|
|
1924
|
+
* so that the team's members administer it. The claim page in the browser
|
|
1925
|
+
* calls this operation after the developer signs in, with the session cookie.
|
|
1926
|
+
* The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the
|
|
1927
|
+
* request's single-use, browser-safe authorization.
|
|
1928
|
+
*
|
|
1929
|
+
* Claims are first-claim-wins and spend the challenge. If a team already
|
|
1930
|
+
* claimed the project, the request answers `409`. If the challenge lapsed
|
|
1931
|
+
* (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.
|
|
1777
1932
|
* @summary Complete a project claim
|
|
1778
1933
|
*/
|
|
1779
1934
|
export const completeClaim = async (projectId: string,
|
|
@@ -1821,12 +1976,18 @@ export const getGetClaimWindowUrl = (projectId: string,
|
|
|
1821
1976
|
}
|
|
1822
1977
|
|
|
1823
1978
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
* is the
|
|
1828
|
-
*
|
|
1829
|
-
*
|
|
1979
|
+
* Returns when a project's claim window closes and whether it has already
|
|
1980
|
+
* closed.
|
|
1981
|
+
*
|
|
1982
|
+
* The claim window is the 14 days after a project is created during which a
|
|
1983
|
+
* team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page
|
|
1984
|
+
* in the browser calls this operation to show how long is left.
|
|
1985
|
+
*
|
|
1986
|
+
* The request needs no credential, because the claim page calls it before the
|
|
1987
|
+
* developer has signed in. Holding the `challenge_id` from the claim URL that
|
|
1988
|
+
* `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)
|
|
1989
|
+
* accepts. The response reveals only the window, never the project itself.
|
|
1990
|
+
* Unlike `completeClaim` it spends nothing, so reloading the page is safe.
|
|
1830
1991
|
* @summary Get the claim window for a project
|
|
1831
1992
|
*/
|
|
1832
1993
|
export const getClaimWindow = async (projectId: string,
|
|
@@ -1852,10 +2013,22 @@ export const getAddOriginUrl = (projectId: string,) => {
|
|
|
1852
2013
|
}
|
|
1853
2014
|
|
|
1854
2015
|
/**
|
|
1855
|
-
* Adds
|
|
1856
|
-
*
|
|
1857
|
-
*
|
|
1858
|
-
*
|
|
2016
|
+
* Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.
|
|
2017
|
+
*
|
|
2018
|
+
* An origin pattern says which web origins the project accepts. A `primary`
|
|
2019
|
+
* pattern must be an exact URL with no wildcard. A `preview` pattern may
|
|
2020
|
+
* include a single DNS-label wildcard.
|
|
2021
|
+
*
|
|
2022
|
+
* While the project has no patterns, it admits no origin except a loopback
|
|
2023
|
+
* origin, so the first pattern you add opens it to the origins that
|
|
2024
|
+
* pattern matches. Admitting an origin is not serving it: a new `primary`
|
|
2025
|
+
* origin answers `rel.not_deployed` until the next deploy to primary
|
|
2026
|
+
* (`zitadel deploy`).
|
|
2027
|
+
*
|
|
2028
|
+
* Adding a pattern that already exists with the same kind is idempotent and
|
|
2029
|
+
* answers `201` with the stored origin. If the pattern exists with the other
|
|
2030
|
+
* kind, the request is refused with `origin.kind_conflict`: remove it with
|
|
2031
|
+
* `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
|
|
1859
2032
|
* @summary Add an origin pattern
|
|
1860
2033
|
*/
|
|
1861
2034
|
export const addOrigin = async (projectId: string,
|
|
@@ -1895,10 +2068,15 @@ export const getRemoveOriginUrl = (projectId: string,) => {
|
|
|
1895
2068
|
}
|
|
1896
2069
|
|
|
1897
2070
|
/**
|
|
1898
|
-
* Removes one pattern from the project's origins.
|
|
1899
|
-
*
|
|
1900
|
-
*
|
|
1901
|
-
*
|
|
2071
|
+
* Removes one origin pattern from the project's origins.
|
|
2072
|
+
*
|
|
2073
|
+
* Requests from URLs only that pattern admitted are refused from then on.
|
|
2074
|
+
* Live previews and deployment history are untouched. Removing the last
|
|
2075
|
+
* pattern leaves an empty list, which admits no origin except a loopback
|
|
2076
|
+
* origin.
|
|
2077
|
+
* Removing a pattern that is already absent is idempotent and answers `204`.
|
|
2078
|
+
*
|
|
2079
|
+
* The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.
|
|
1902
2080
|
* @summary Remove an origin pattern
|
|
1903
2081
|
*/
|
|
1904
2082
|
export const removeOrigin = async (projectId: string,
|
|
@@ -1946,10 +2124,12 @@ export const getListPreviewsUrl = (projectId: string,
|
|
|
1946
2124
|
}
|
|
1947
2125
|
|
|
1948
2126
|
/**
|
|
1949
|
-
* Lists the project's live previews, newest first by `created_at`.
|
|
1950
|
-
*
|
|
2127
|
+
* Lists the project's live previews, newest first by `created_at`.
|
|
2128
|
+
*
|
|
2129
|
+
* A preview is a URL with a deployment on it, served until it expires.
|
|
2130
|
+
* An expired or removed preview is not listed. What was deployed to it stays
|
|
1951
2131
|
* in `GET /deployments`.
|
|
1952
|
-
* @summary List previews
|
|
2132
|
+
* @summary List a project's previews
|
|
1953
2133
|
*/
|
|
1954
2134
|
export const listPreviews = async (projectId: string,
|
|
1955
2135
|
params?: ListPreviewsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPreviews200> => {
|
|
@@ -1975,14 +2155,14 @@ export const getRemovePreviewUrl = (projectId: string,) => {
|
|
|
1975
2155
|
|
|
1976
2156
|
/**
|
|
1977
2157
|
* Ends a preview before it expires: the URL stops being served at once.
|
|
1978
|
-
* The deployments to it stay in the history.
|
|
1979
2158
|
*
|
|
1980
|
-
*
|
|
1981
|
-
*
|
|
1982
|
-
* races the expiry still
|
|
2159
|
+
* The deployments to it stay in the history. The call is idempotent.
|
|
2160
|
+
* A URL with no live preview answers `204` too. That includes one that
|
|
2161
|
+
* expired or was removed before, so a cleanup that races the expiry still
|
|
2162
|
+
* succeeds.
|
|
1983
2163
|
*
|
|
1984
2164
|
* The URL travels in the body rather than the path because an origin
|
|
1985
|
-
* contains `/`.
|
|
2165
|
+
* contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
|
|
1986
2166
|
* @summary Remove a preview
|
|
1987
2167
|
*/
|
|
1988
2168
|
export const removePreview = async (projectId: string,
|
|
@@ -2022,29 +2202,32 @@ export const getCreateSessionUrl = () => {
|
|
|
2022
2202
|
}
|
|
2023
2203
|
|
|
2024
2204
|
/**
|
|
2025
|
-
* Creates an anonymous session
|
|
2205
|
+
* Creates an anonymous session with no user and no factors (`state: building`).
|
|
2026
2206
|
*
|
|
2027
|
-
*
|
|
2028
|
-
*
|
|
2029
|
-
*
|
|
2207
|
+
* A session is the durable record of a signed-in user. This call is optional: an
|
|
2208
|
+
* authentication attempt creates a session implicitly if none is provided.
|
|
2209
|
+
* Create one explicitly when you want to:
|
|
2210
|
+
*
|
|
2211
|
+
* - Pre-allocate a `session_id` before the user is known, so device and telemetry signals
|
|
2030
2212
|
* can be correlated with the eventual authenticated session from the start.
|
|
2031
2213
|
* - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
|
|
2032
2214
|
*
|
|
2033
|
-
* Creating a session
|
|
2034
|
-
*
|
|
2035
|
-
*
|
|
2036
|
-
*
|
|
2037
|
-
*
|
|
2038
|
-
* `
|
|
2039
|
-
*
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2042
|
-
* The `session_token` is superseded when a handoff exchange completes
|
|
2043
|
-
* replace it at that point.
|
|
2044
|
-
*
|
|
2045
|
-
* Anonymous sessions expire
|
|
2046
|
-
* full session
|
|
2047
|
-
*
|
|
2215
|
+
* Creating a session runs on the project credential (`session.write`). The returned
|
|
2216
|
+
* `session_token` is a session credential for the end-user client, not a
|
|
2217
|
+
* management scope. It is delivered as the `__Host-zitadel_session` cookie
|
|
2218
|
+
* (`zitadel_session` over plain http to a loopback host) and authorises the
|
|
2219
|
+
* self-service operations `GET /sessions/me` and `DELETE /sessions/me`
|
|
2220
|
+
* (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`
|
|
2221
|
+
* and `DELETE /sessions/{session_id}` are operator endpoints and require
|
|
2222
|
+
* `session.read` / `session.delete` instead.
|
|
2223
|
+
*
|
|
2224
|
+
* The `session_token` is superseded when a handoff exchange completes. Clients
|
|
2225
|
+
* must replace it at that point.
|
|
2226
|
+
*
|
|
2227
|
+
* Anonymous sessions expire after 10 minutes. The lifetime resets to the
|
|
2228
|
+
* configured full session lifetime when a completing authentication attempt
|
|
2229
|
+
* writes the first authentication factor.
|
|
2230
|
+
* @summary Create an anonymous session
|
|
2048
2231
|
*/
|
|
2049
2232
|
export const createSession = async (createSessionBody: CreateSessionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateSession201> => {
|
|
2050
2233
|
|
|
@@ -2089,9 +2272,10 @@ export const getQuerySessionsUrl = (params: QuerySessionsParams,) => {
|
|
|
2089
2272
|
}
|
|
2090
2273
|
|
|
2091
2274
|
/**
|
|
2092
|
-
* Returns
|
|
2275
|
+
* Returns a page of a project's sessions.
|
|
2276
|
+
*
|
|
2093
2277
|
* Sessions of every lifecycle state are returned; each carries its `state`.
|
|
2094
|
-
* Requires `session.read`
|
|
2278
|
+
* Requires the `session.read` scope.
|
|
2095
2279
|
* @summary Query sessions
|
|
2096
2280
|
*/
|
|
2097
2281
|
export const querySessions = async (querySessionsBody: QuerySessionsBody,
|
|
@@ -2138,31 +2322,38 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {
|
|
|
2138
2322
|
}
|
|
2139
2323
|
|
|
2140
2324
|
/**
|
|
2141
|
-
*
|
|
2142
|
-
*
|
|
2325
|
+
* Exchanges a handoff token for a session and a `session_token`.
|
|
2326
|
+
*
|
|
2327
|
+
* A handoff token is the short-lived, single-use credential that
|
|
2328
|
+
* `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
|
|
2329
|
+
* complete. This call consumes it. It is the last step of the sign-in sequence:
|
|
2330
|
+
* create the attempt, issue a challenge, verify the proof, create the handoff,
|
|
2331
|
+
* exchange it.
|
|
2143
2332
|
*
|
|
2144
|
-
* The server resolves the originating
|
|
2333
|
+
* The server resolves the originating authentication attempt from the token and then:
|
|
2145
2334
|
*
|
|
2146
|
-
* | Originating
|
|
2335
|
+
* | Originating authentication attempt | Outcome |
|
|
2147
2336
|
* |---|---|
|
|
2148
2337
|
* | No `session_id` | A new authenticated session is **created**. |
|
|
2149
|
-
* | `session_id` points to an anonymous
|
|
2150
|
-
* | `session_id` points to an active session (step-up) | Existing session is **upgraded
|
|
2338
|
+
* | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |
|
|
2339
|
+
* | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |
|
|
2151
2340
|
*
|
|
2152
2341
|
* The response shape is identical in all three cases.
|
|
2153
2342
|
*
|
|
2154
|
-
* The `session_token` supersedes any previously issued `session_token` for the
|
|
2155
|
-
* Clients must replace their stored token at this point.
|
|
2343
|
+
* The `session_token` supersedes any previously issued `session_token` for the
|
|
2344
|
+
* same session. Clients must replace their stored token at this point.
|
|
2156
2345
|
*
|
|
2157
|
-
* Requires a project service key (OAuth2 client credentials).
|
|
2346
|
+
* Requires a project service key (OAuth2 client credentials). The project comes
|
|
2347
|
+
* from the project secret. A query `project_id` that disagrees answers `403`
|
|
2348
|
+
* with `proj.mismatch`.
|
|
2158
2349
|
*
|
|
2159
|
-
* The
|
|
2160
|
-
*
|
|
2161
|
-
*
|
|
2162
|
-
*
|
|
2163
|
-
* `
|
|
2164
|
-
* `rel.revoked`.
|
|
2165
|
-
* @summary Exchange handoff token for a session
|
|
2350
|
+
* The exchange resolves a deployment the same way as other runtime operations.
|
|
2351
|
+
* A deployment makes a release live, and a release is the configuration that
|
|
2352
|
+
* `zitadel deploy` publishes. With no browser `Origin` and
|
|
2353
|
+
* nothing deployed to the resolved target, the response is `409` with
|
|
2354
|
+
* `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release
|
|
2355
|
+
* answers `409` with `rel.revoked`.
|
|
2356
|
+
* @summary Exchange a handoff token for a session
|
|
2166
2357
|
*/
|
|
2167
2358
|
export const exchangeHandoff = async (exchangeHandoffBody: ExchangeHandoffBody,
|
|
2168
2359
|
params: ExchangeHandoffParams, options?: Parameters<typeof customFetch>[1]): Promise<ExchangeHandoff200> => {
|
|
@@ -2201,13 +2392,14 @@ export const getGetSessionUrl = (sessionId: string,) => {
|
|
|
2201
2392
|
}
|
|
2202
2393
|
|
|
2203
2394
|
/**
|
|
2204
|
-
* Returns the current state of a session including its factors and all currently
|
|
2205
|
-
*
|
|
2206
|
-
*
|
|
2207
|
-
* `assurance_levels[]` may shrink over time
|
|
2208
|
-
* without the session itself expiring.
|
|
2209
|
-
*
|
|
2210
|
-
*
|
|
2395
|
+
* Returns the current state of a session, including its factors and all currently satisfied assurance levels.
|
|
2396
|
+
*
|
|
2397
|
+
* An assurance level is a profile, such as `urn:nist:aal:2`, that the
|
|
2398
|
+
* session's verified factors satisfy. `assurance_levels[]` may shrink over time
|
|
2399
|
+
* as factor freshness windows expire, without the session itself expiring.
|
|
2400
|
+
* To restore a dropped level, use step-up authentication: create an
|
|
2401
|
+
* authentication attempt with the same `session_id`.
|
|
2402
|
+
* @summary Get a session by ID
|
|
2211
2403
|
*/
|
|
2212
2404
|
export const getSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetSession200> => {
|
|
2213
2405
|
|
|
@@ -2231,16 +2423,17 @@ export const getRevokeSessionUrl = (sessionId: string,) => {
|
|
|
2231
2423
|
}
|
|
2232
2424
|
|
|
2233
2425
|
/**
|
|
2234
|
-
*
|
|
2426
|
+
* Revokes a session by deleting it, immediately and for good. A later
|
|
2427
|
+
* `getSession` (`GET /sessions/{session_id}`) for it answers `404`.
|
|
2235
2428
|
*
|
|
2236
|
-
* This is the operator revoke path
|
|
2237
|
-
* project-bound credential. End-user
|
|
2429
|
+
* This is the operator revoke path. It requires the `session.delete` scope on a
|
|
2430
|
+
* project-bound credential. End-user sign-out with the session cookie is
|
|
2238
2431
|
* `DELETE /sessions/me` (`sessionCookie` scheme).
|
|
2239
2432
|
*
|
|
2240
|
-
* Idempotent:
|
|
2241
|
-
* still returns 204
|
|
2433
|
+
* Idempotent: revoking a session that does not exist, or was already revoked,
|
|
2434
|
+
* still returns `204`. After revocation, any tokens derived from the session are
|
|
2242
2435
|
* invalidated.
|
|
2243
|
-
* @summary Revoke session
|
|
2436
|
+
* @summary Revoke a session
|
|
2244
2437
|
*/
|
|
2245
2438
|
export const revokeSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
2246
2439
|
|
|
@@ -2271,15 +2464,16 @@ export const getGetMySessionUrl = (params?: GetMySessionParams,) => {
|
|
|
2271
2464
|
}
|
|
2272
2465
|
|
|
2273
2466
|
/**
|
|
2274
|
-
* Returns the current state of the
|
|
2275
|
-
* satisfied assurance levels.
|
|
2467
|
+
* Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
|
|
2276
2468
|
*
|
|
2277
2469
|
* With `project_id`, the session is returned only when it belongs to that project.
|
|
2278
2470
|
*
|
|
2279
|
-
*
|
|
2280
|
-
*
|
|
2281
|
-
*
|
|
2282
|
-
*
|
|
2471
|
+
* An assurance level is a profile, such as `urn:nist:aal:2`, that the
|
|
2472
|
+
* session's verified factors satisfy. `assurance_levels[]` may shrink over time
|
|
2473
|
+
* as factor freshness windows expire, without the session itself expiring.
|
|
2474
|
+
* To restore a dropped level, use step-up authentication: create an
|
|
2475
|
+
* authentication attempt with the same `session_id`.
|
|
2476
|
+
* @summary Get my session
|
|
2283
2477
|
*/
|
|
2284
2478
|
export const getMySession = async (params?: GetMySessionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMySession200> => {
|
|
2285
2479
|
|
|
@@ -2310,15 +2504,15 @@ export const getRevokeMySessionUrl = (params?: RevokeMySessionParams,) => {
|
|
|
2310
2504
|
}
|
|
2311
2505
|
|
|
2312
2506
|
/**
|
|
2313
|
-
*
|
|
2507
|
+
* Revokes the caller's own session by deleting it, which signs the user out.
|
|
2314
2508
|
*
|
|
2315
|
-
* The session cookie issued at creation (or superseded by a
|
|
2316
|
-
* exchange)
|
|
2317
|
-
* in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
|
|
2318
|
-
* this still returns 204
|
|
2319
|
-
* and the
|
|
2509
|
+
* The request needs the session cookie issued at creation (or superseded by a
|
|
2510
|
+
* handoff exchange). It also needs the session's CSRF token from
|
|
2511
|
+
* `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,
|
|
2512
|
+
* this still returns `204`. Any tokens derived from the session are
|
|
2513
|
+
* invalidated, and the response clears the cookie.
|
|
2320
2514
|
*
|
|
2321
|
-
* With `project_id`, only a session of that project is
|
|
2515
|
+
* With `project_id`, only a session of that project is revoked. A session of
|
|
2322
2516
|
* another project is left alone, and so is its cookie.
|
|
2323
2517
|
* @summary Revoke my session
|
|
2324
2518
|
*/
|
|
@@ -2351,13 +2545,13 @@ export const getGetMySessionCsrfTokenUrl = (params?: GetMySessionCsrfTokenParams
|
|
|
2351
2545
|
}
|
|
2352
2546
|
|
|
2353
2547
|
/**
|
|
2354
|
-
* Returns the session-bound token
|
|
2355
|
-
* (
|
|
2356
|
-
* state-changing requests the session cookie authenticates that
|
|
2357
|
-
*
|
|
2358
|
-
* HttpOnly cookie is still the credential, and a cross-site page
|
|
2359
|
-
* read this response. It stays the same for the life of the session,
|
|
2360
|
-
* client fetches it once per session.
|
|
2548
|
+
* Returns the session-bound token that protects against cross-site request
|
|
2549
|
+
* forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the
|
|
2550
|
+
* state-changing requests that the session cookie authenticates and that
|
|
2551
|
+
* require it; see the `sessionCookie` scheme. It authorizes nothing on its
|
|
2552
|
+
* own: the HttpOnly cookie is still the credential, and a cross-site page
|
|
2553
|
+
* cannot read this response. It stays the same for the life of the session,
|
|
2554
|
+
* so a client fetches it once per session.
|
|
2361
2555
|
*
|
|
2362
2556
|
* With `project_id`, the token is returned only when the session belongs to
|
|
2363
2557
|
* that project.
|
|
@@ -2392,16 +2586,21 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams,) => {
|
|
|
2392
2586
|
}
|
|
2393
2587
|
|
|
2394
2588
|
/**
|
|
2395
|
-
*
|
|
2396
|
-
*
|
|
2397
|
-
*
|
|
2398
|
-
*
|
|
2399
|
-
*
|
|
2400
|
-
*
|
|
2401
|
-
*
|
|
2402
|
-
* The
|
|
2403
|
-
* schema
|
|
2404
|
-
*
|
|
2589
|
+
* Creates a user schema, the JSON Schema that says which attributes a user
|
|
2590
|
+
* has and which attribute identifies the user.
|
|
2591
|
+
*
|
|
2592
|
+
* The request is either a user schema (`kind: user-schema`) or a schema URL
|
|
2593
|
+
* (`kind: schema-url`) that the server resolves. The response's `id` is what
|
|
2594
|
+
* `createUser` (`POST /users`) takes as `schema`.
|
|
2595
|
+
*
|
|
2596
|
+
* The optional `$id` is the JSON Schema document URI that identifies the
|
|
2597
|
+
* schema in later requests. It is a stable identity for GitOps, not a
|
|
2598
|
+
* free-form resource key. When `$id` is omitted, the server generates a
|
|
2599
|
+
* `sch_*` URL. When provided, `$id` must be unique within the project and
|
|
2600
|
+
* should ideally be a valid URI pointing at where the schema can be accessed.
|
|
2601
|
+
* A `$id` that already exists in the project is refused; pick another or
|
|
2602
|
+
* omit it.
|
|
2603
|
+
* @summary Create a schema
|
|
2405
2604
|
*/
|
|
2406
2605
|
export const createSchema = async (createSchemaBody: CreateSchemaBody,
|
|
2407
2606
|
params: CreateSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateSchema201> => {
|
|
@@ -2455,9 +2654,12 @@ export const getListSchemasUrl = (params: ListSchemasParams,) => {
|
|
|
2455
2654
|
}
|
|
2456
2655
|
|
|
2457
2656
|
/**
|
|
2458
|
-
*
|
|
2459
|
-
*
|
|
2460
|
-
*
|
|
2657
|
+
* Lists the schemas of a project, newest first, paginated with a cursor.
|
|
2658
|
+
* Filter by `object_type` or `kind`, and choose which revisions to return
|
|
2659
|
+
* with `revisions`.
|
|
2660
|
+
*
|
|
2661
|
+
* A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.
|
|
2662
|
+
* @summary List schemas
|
|
2461
2663
|
*/
|
|
2462
2664
|
export const listSchemas = async (params: ListSchemasParams, options?: Parameters<typeof customFetch>[1]): Promise<ListSchemas200> => {
|
|
2463
2665
|
|
|
@@ -2489,17 +2691,17 @@ export const getGetSchemaByIdUrl = (id: string,
|
|
|
2489
2691
|
}
|
|
2490
2692
|
|
|
2491
2693
|
/**
|
|
2492
|
-
*
|
|
2694
|
+
* Returns a schema by ID. A schema ID identifies one immutable revision, so
|
|
2493
2695
|
* this returns exactly that revision. To find the current revision of an
|
|
2494
|
-
* object type,
|
|
2696
|
+
* object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
|
|
2495
2697
|
*
|
|
2496
2698
|
* Schema IDs are unique within a project, not across projects (the seeded
|
|
2497
|
-
* default schema carries the same `$id` in every project). A
|
|
2699
|
+
* default schema carries the same `$id` in every project). A console
|
|
2498
2700
|
* session that manages more than one project names the project with
|
|
2499
2701
|
* `project_id`; without it, the ID is resolved in the credential's own
|
|
2500
2702
|
* project when it is ambiguous. A project secret always resolves in its
|
|
2501
2703
|
* own project and ignores `project_id`.
|
|
2502
|
-
* @summary Get schema by ID
|
|
2704
|
+
* @summary Get a schema by ID
|
|
2503
2705
|
*/
|
|
2504
2706
|
export const getSchemaById = async (id: string,
|
|
2505
2707
|
params?: GetSchemaByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetSchemaById200> => {
|
|
@@ -2524,17 +2726,22 @@ export const getCreateFlowDefinitionUrl = () => {
|
|
|
2524
2726
|
}
|
|
2525
2727
|
|
|
2526
2728
|
/**
|
|
2527
|
-
*
|
|
2528
|
-
*
|
|
2529
|
-
*
|
|
2530
|
-
*
|
|
2531
|
-
*
|
|
2532
|
-
*
|
|
2533
|
-
*
|
|
2534
|
-
*
|
|
2535
|
-
*
|
|
2536
|
-
*
|
|
2537
|
-
*
|
|
2729
|
+
* Creates a flow definition by publishing a new revision of it. It records a
|
|
2730
|
+
* `flowdef.created` event.
|
|
2731
|
+
*
|
|
2732
|
+
* A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
|
|
2733
|
+
* defines the sequence of steps (capabilities) for one user journey, such as
|
|
2734
|
+
* registration, login or password reset. The body follows the flow
|
|
2735
|
+
* definition schema, which includes the flow's purpose, audience and steps.
|
|
2736
|
+
*
|
|
2737
|
+
* Every call allocates a new opaque ID. That `id` is the `revision_id` a
|
|
2738
|
+
* release pins for `kind: flow_definition`.
|
|
2739
|
+
*
|
|
2740
|
+
* Revisions of one flow share its `name`. Posting a definition under an
|
|
2741
|
+
* existing `name` publishes a new revision of that flow, which is not a
|
|
2742
|
+
* conflict. List with `name` to see a flow's revisions, newest by creation
|
|
2743
|
+
* time first.
|
|
2744
|
+
* @summary Create a flow definition
|
|
2538
2745
|
*/
|
|
2539
2746
|
export const createFlowDefinition = async (createFlowDefinitionBody: CreateFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlowDefinition201> => {
|
|
2540
2747
|
|
|
@@ -2587,9 +2794,12 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams,) =>
|
|
|
2587
2794
|
}
|
|
2588
2795
|
|
|
2589
2796
|
/**
|
|
2590
|
-
*
|
|
2591
|
-
*
|
|
2592
|
-
*
|
|
2797
|
+
* Lists the project's flow definitions with their configurations, newest by
|
|
2798
|
+
* creation time first. A flow definition sets which step of a sign-in
|
|
2799
|
+
* renders when, and which fields each step collects.
|
|
2800
|
+
*
|
|
2801
|
+
* The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)
|
|
2802
|
+
* takes. Filter by `name` to list the revisions of one flow.
|
|
2593
2803
|
* @summary List flow definitions
|
|
2594
2804
|
*/
|
|
2595
2805
|
export const listFlowDefinitions = async (params: ListFlowDefinitionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListFlowDefinitions200> => {
|
|
@@ -2614,8 +2824,9 @@ export const getGetFlowDefinitionUrl = (id: string,) => {
|
|
|
2614
2824
|
}
|
|
2615
2825
|
|
|
2616
2826
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2827
|
+
* Returns one flow definition revision. Pass the `id` that
|
|
2828
|
+
* `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
|
|
2829
|
+
* @summary Get a flow definition by ID
|
|
2619
2830
|
*/
|
|
2620
2831
|
export const getFlowDefinition = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowDefinition200> => {
|
|
2621
2832
|
|
|
@@ -2648,9 +2859,10 @@ export const getCreateTeamUrl = (params: CreateTeamParams,) => {
|
|
|
2648
2859
|
/**
|
|
2649
2860
|
* Creates a team in the project, with a name no other team in the project has.
|
|
2650
2861
|
*
|
|
2651
|
-
* A
|
|
2652
|
-
*
|
|
2653
|
-
*
|
|
2862
|
+
* A team groups users inside a project and can represent a customer. A taken
|
|
2863
|
+
* name is refused with `409 team.already_exists`: choose another name. The
|
|
2864
|
+
* new team has no members yet.
|
|
2865
|
+
* @summary Create a team
|
|
2654
2866
|
*/
|
|
2655
2867
|
export const createTeam = async (createTeamBody: CreateTeamBody,
|
|
2656
2868
|
params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateTeam201> => {
|
|
@@ -2696,10 +2908,11 @@ export const getQueryTeamsUrl = (params?: QueryTeamsParams,) => {
|
|
|
2696
2908
|
}
|
|
2697
2909
|
|
|
2698
2910
|
/**
|
|
2699
|
-
* Returns
|
|
2911
|
+
* Returns a page of a project's teams.
|
|
2700
2912
|
*
|
|
2701
|
-
* `
|
|
2702
|
-
* project
|
|
2913
|
+
* Pass the response's `next_page_token` as `page_token` to fetch the next
|
|
2914
|
+
* page. `project_id` names the project to list; without it, the credential's
|
|
2915
|
+
* own project is listed.
|
|
2703
2916
|
* @summary Query teams
|
|
2704
2917
|
*/
|
|
2705
2918
|
export const queryTeams = async (queryTeamsBody: QueryTeamsBody,
|
|
@@ -2739,8 +2952,10 @@ export const getGetTeamUrl = (teamId: string,) => {
|
|
|
2739
2952
|
}
|
|
2740
2953
|
|
|
2741
2954
|
/**
|
|
2742
|
-
* Returns a
|
|
2743
|
-
*
|
|
2955
|
+
* Returns a team, a group of users inside a project, by ID.
|
|
2956
|
+
*
|
|
2957
|
+
* A deactivated team is still returned, with status `deactivated`.
|
|
2958
|
+
* @summary Get a team by ID
|
|
2744
2959
|
*/
|
|
2745
2960
|
export const getTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetTeam200> => {
|
|
2746
2961
|
|
|
@@ -2764,20 +2979,20 @@ export const getDeleteTeamUrl = (teamId: string,) => {
|
|
|
2764
2979
|
}
|
|
2765
2980
|
|
|
2766
2981
|
/**
|
|
2767
|
-
* Deactivates
|
|
2982
|
+
* Deactivates a team and removes its memberships.
|
|
2768
2983
|
*
|
|
2769
|
-
* The team is
|
|
2770
|
-
*
|
|
2771
|
-
*
|
|
2984
|
+
* The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with
|
|
2985
|
+
* status `deactivated`. The users whose lifecycle the team owns are
|
|
2986
|
+
* deactivated with it.
|
|
2772
2987
|
*
|
|
2773
2988
|
* The request is idempotent. Deleting a team that is already deactivated
|
|
2774
|
-
* or
|
|
2989
|
+
* or does not exist succeeds without changing anything.
|
|
2775
2990
|
*
|
|
2776
|
-
* A team that still owns a project is refused with `409
|
|
2777
|
-
*
|
|
2778
|
-
*
|
|
2779
|
-
*
|
|
2780
|
-
* @summary
|
|
2991
|
+
* A team that still owns a project is refused with `409 team.owns_project`.
|
|
2992
|
+
* Deactivating it would leave the project owned by a deactivated team and so
|
|
2993
|
+
* unmanageable. No endpoint ends a team's ownership of a project yet, so for
|
|
2994
|
+
* now such a team cannot be deactivated through the API.
|
|
2995
|
+
* @summary Deactivate a team
|
|
2781
2996
|
*/
|
|
2782
2997
|
export const deleteTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
2783
2998
|
|
|
@@ -2801,8 +3016,12 @@ export const getUpdateTeamUrl = (teamId: string,) => {
|
|
|
2801
3016
|
}
|
|
2802
3017
|
|
|
2803
3018
|
/**
|
|
2804
|
-
*
|
|
2805
|
-
*
|
|
3019
|
+
* Renames an active team.
|
|
3020
|
+
*
|
|
3021
|
+
* Only active teams can be updated. A deactivated team answers `404`. The new
|
|
3022
|
+
* name must be unique within the project, and a taken name answers `409`:
|
|
3023
|
+
* choose another name.
|
|
3024
|
+
* @summary Update a team
|
|
2806
3025
|
*/
|
|
2807
3026
|
export const updateTeam = async (teamId: string,
|
|
2808
3027
|
updateTeamBody: UpdateTeamBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateTeam200> => {
|
|
@@ -2848,15 +3067,19 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams,) => {
|
|
|
2848
3067
|
}
|
|
2849
3068
|
|
|
2850
3069
|
/**
|
|
2851
|
-
* Publishes a new immutable branding revision for the project
|
|
2852
|
-
* revisions cannot be updated or deleted
|
|
2853
|
-
*
|
|
3070
|
+
* Publishes a new immutable branding revision for the project, and records a
|
|
3071
|
+
* `branding.created` event. Branding revisions cannot be updated or deleted.
|
|
3072
|
+
* Every edit publishes a new revision. Flow responses carry the branding
|
|
3073
|
+
* revision the request's release pins.
|
|
3074
|
+
*
|
|
3075
|
+
* The `id` of the new revision is the revision ID a release pins for
|
|
3076
|
+
* `kind: branding`.
|
|
2854
3077
|
*
|
|
2855
3078
|
* The `liquid_template` is validated lexically on save (size, encoding,
|
|
2856
3079
|
* banned patterns such as `<script>` tags, inline event handlers, and the
|
|
2857
3080
|
* `| raw` filter). Authoritative LiquidJS validation runs at authoring
|
|
2858
|
-
* time
|
|
2859
|
-
* @summary Publish a
|
|
3081
|
+
* time, in `zitadel deploy` and `zitadel deploy --dry-run`.
|
|
3082
|
+
* @summary Publish a branding revision
|
|
2860
3083
|
*/
|
|
2861
3084
|
export const createBranding = async (createBrandingBody: CreateBrandingBody,
|
|
2862
3085
|
params: CreateBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateBranding201> => {
|
|
@@ -2902,11 +3125,11 @@ export const getListBrandingUrl = (params: ListBrandingParams,) => {
|
|
|
2902
3125
|
}
|
|
2903
3126
|
|
|
2904
3127
|
/**
|
|
2905
|
-
* Lists branding revisions
|
|
2906
|
-
*
|
|
2907
|
-
*
|
|
2908
|
-
*
|
|
2909
|
-
*
|
|
3128
|
+
* Lists a project's branding revisions, newest first, capped at the 100 most
|
|
3129
|
+
* recent and not paginated. The first entry is the newest revision.
|
|
3130
|
+
*
|
|
3131
|
+
* The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and
|
|
3132
|
+
* that a release pins for `kind: branding`.
|
|
2910
3133
|
* @summary List branding revisions
|
|
2911
3134
|
*/
|
|
2912
3135
|
export const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<ListBranding200Item[]> => {
|
|
@@ -2931,7 +3154,8 @@ export const getGetBrandingByIdUrl = (id: string,) => {
|
|
|
2931
3154
|
}
|
|
2932
3155
|
|
|
2933
3156
|
/**
|
|
2934
|
-
*
|
|
3157
|
+
* Returns one branding revision, including its stored configuration. Pass the
|
|
3158
|
+
* `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
|
|
2935
3159
|
* @summary Get a branding revision by ID
|
|
2936
3160
|
*/
|
|
2937
3161
|
export const getBrandingById = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetBrandingById200> => {
|
|
@@ -2963,17 +3187,19 @@ export const getCreateIdpUrl = (params: CreateIdpParams,) => {
|
|
|
2963
3187
|
}
|
|
2964
3188
|
|
|
2965
3189
|
/**
|
|
2966
|
-
* Creates or revises
|
|
2967
|
-
*
|
|
2968
|
-
*
|
|
2969
|
-
*
|
|
2970
|
-
*
|
|
2971
|
-
*
|
|
2972
|
-
*
|
|
2973
|
-
*
|
|
2974
|
-
*
|
|
2975
|
-
*
|
|
2976
|
-
*
|
|
3190
|
+
* Creates or revises an identity provider, an external sign-in such as
|
|
3191
|
+
* Google, from its connection document. If the slug does not already exist,
|
|
3192
|
+
* a new identity provider is created. If one with that slug already exists,
|
|
3193
|
+
* a revision is created.
|
|
3194
|
+
*
|
|
3195
|
+
* A revision gets a new `revision_id` and does not modify the identity
|
|
3196
|
+
* provider's `id`. Identity links, which tie a user to an account at the
|
|
3197
|
+
* provider, keep resolving. Releases and authentication attempts stay pinned
|
|
3198
|
+
* to the revision they captured.
|
|
3199
|
+
*
|
|
3200
|
+
* Identity fields are fixed for the life of the identity provider and a
|
|
3201
|
+
* revision that changes one is rejected: `protocol`, `subject_claim`, and
|
|
3202
|
+
* `issuer`, the field that names the authority. Their values decide which provider
|
|
2977
3203
|
* account a stored subject belongs to, so changing one would silently
|
|
2978
3204
|
* repoint existing identities at a different provider.
|
|
2979
3205
|
*
|
|
@@ -2984,18 +3210,18 @@ export const getCreateIdpUrl = (params: CreateIdpParams,) => {
|
|
|
2984
3210
|
* OIDC is the only protocol.
|
|
2985
3211
|
*
|
|
2986
3212
|
* The document is validated against the `idp-connection.json` schema before
|
|
2987
|
-
* anything is stored. The rules the
|
|
2988
|
-
* then run on the document, so a
|
|
2989
|
-
* refused here
|
|
2990
|
-
*
|
|
2991
|
-
*
|
|
2992
|
-
*
|
|
3213
|
+
* anything is stored. The rules the server applies when it starts a sign-in
|
|
3214
|
+
* then run on the document, so a document that could never start one is
|
|
3215
|
+
* refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint
|
|
3216
|
+
* without the others. Set no endpoint, and discovery fills them, or set
|
|
3217
|
+
* `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and
|
|
3218
|
+
* `userinfo_endpoint`. `userinfo_endpoint` may be left out when
|
|
2993
3219
|
* `id_token_mapping` is on, but setting it alone still counts as setting an
|
|
2994
3220
|
* endpoint. The details list the missing endpoints.
|
|
2995
3221
|
*
|
|
2996
3222
|
* A refused document stores nothing, and on a revise the current revision
|
|
2997
3223
|
* stays unchanged.
|
|
2998
|
-
* @summary Create or revise an identity provider
|
|
3224
|
+
* @summary Create or revise an identity provider
|
|
2999
3225
|
*/
|
|
3000
3226
|
export const createIdp = async (createIdpBody: CreateIdpBody,
|
|
3001
3227
|
params: CreateIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateIdp200 | CreateIdp201> => {
|
|
@@ -3041,9 +3267,10 @@ export const getQueryIdpsUrl = (params: QueryIdpsParams,) => {
|
|
|
3041
3267
|
}
|
|
3042
3268
|
|
|
3043
3269
|
/**
|
|
3044
|
-
* Returns the identity
|
|
3045
|
-
* cursor.
|
|
3046
|
-
*
|
|
3270
|
+
* Returns the identity providers of a project, external sign-ins such as
|
|
3271
|
+
* Google, paginated with a cursor. Each identity provider appears once, with
|
|
3272
|
+
* its newest revision.
|
|
3273
|
+
* @summary Query identity providers
|
|
3047
3274
|
*/
|
|
3048
3275
|
export const queryIdps = async (queryIdpsBody: QueryIdpsBody,
|
|
3049
3276
|
params: QueryIdpsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryIdps200> => {
|
|
@@ -3090,11 +3317,12 @@ export const getGetIdpByIdUrl = (id: string,
|
|
|
3090
3317
|
}
|
|
3091
3318
|
|
|
3092
3319
|
/**
|
|
3093
|
-
*
|
|
3094
|
-
* `GET /idps/{id}/revisions` lists
|
|
3320
|
+
* Returns an identity provider, an external sign-in such as Google, by ID at
|
|
3321
|
+
* its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists
|
|
3322
|
+
* every revision of it.
|
|
3095
3323
|
*
|
|
3096
3324
|
* The lookup is scoped to the project in `project_id`.
|
|
3097
|
-
* @summary Get an identity provider
|
|
3325
|
+
* @summary Get an identity provider by ID
|
|
3098
3326
|
*/
|
|
3099
3327
|
export const getIdpById = async (id: string,
|
|
3100
3328
|
params: GetIdpByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpById200> => {
|
|
@@ -3127,11 +3355,12 @@ export const getListIdpRevisionsUrl = (id: string,
|
|
|
3127
3355
|
}
|
|
3128
3356
|
|
|
3129
3357
|
/**
|
|
3130
|
-
*
|
|
3131
|
-
* cursor. The order is fixed, so there
|
|
3358
|
+
* Lists every revision of one identity provider, an external sign-in such as
|
|
3359
|
+
* Google, newest first, paginated with a cursor. The order is fixed, so there
|
|
3360
|
+
* is no `sorting`.
|
|
3132
3361
|
*
|
|
3133
3362
|
* The lookup is scoped to the project in `project_id`.
|
|
3134
|
-
* @summary List the revisions of an identity provider
|
|
3363
|
+
* @summary List the revisions of an identity provider
|
|
3135
3364
|
*/
|
|
3136
3365
|
export const listIdpRevisions = async (id: string,
|
|
3137
3366
|
params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListIdpRevisions200> => {
|
|
@@ -3164,11 +3393,12 @@ export const getGetIdpRevisionByIdUrl = (revisionId: string,
|
|
|
3164
3393
|
}
|
|
3165
3394
|
|
|
3166
3395
|
/**
|
|
3167
|
-
*
|
|
3168
|
-
* attempt or a
|
|
3396
|
+
* Returns one revision of an identity provider, an external sign-in such as
|
|
3397
|
+
* Google, by its `revision_id`, the value an authentication attempt or a
|
|
3398
|
+
* release pins.
|
|
3169
3399
|
*
|
|
3170
3400
|
* The lookup is scoped to the project in `project_id`.
|
|
3171
|
-
* @summary Get
|
|
3401
|
+
* @summary Get a revision of an identity provider
|
|
3172
3402
|
*/
|
|
3173
3403
|
export const getIdpRevisionById = async (revisionId: string,
|
|
3174
3404
|
params: GetIdpRevisionByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpRevisionById200> => {
|
|
@@ -3201,9 +3431,12 @@ export const getListPoliciesUrl = (params: ListPoliciesParams,) => {
|
|
|
3201
3431
|
|
|
3202
3432
|
/**
|
|
3203
3433
|
* Lists the project's policies, one per operation, each as its newest
|
|
3204
|
-
* revision
|
|
3205
|
-
*
|
|
3206
|
-
*
|
|
3434
|
+
* revision.
|
|
3435
|
+
*
|
|
3436
|
+
* A policy holds a project's rules for one operation, such as setting a
|
|
3437
|
+
* password. The list is ordered by `created_at` (first publish) and then
|
|
3438
|
+
* `id`. Filter by `operation` to read the policy of one operation; a project
|
|
3439
|
+
* that never published one gets an empty list.
|
|
3207
3440
|
*
|
|
3208
3441
|
* The lookup is scoped to the project in `project_id`.
|
|
3209
3442
|
* @summary List policies
|
|
@@ -3238,22 +3471,31 @@ export const getPublishPolicyUrl = (params: PublishPolicyParams,) => {
|
|
|
3238
3471
|
|
|
3239
3472
|
/**
|
|
3240
3473
|
* Publishes the project's policy for an operation as a new immutable
|
|
3241
|
-
* revision, creating the policy on its first publish.
|
|
3242
|
-
*
|
|
3474
|
+
* revision, creating the policy on its first publish. A revision applies
|
|
3475
|
+
* once a deployed release pins it. Nothing already stored is
|
|
3243
3476
|
* re-evaluated, so a stricter password policy applies the next time a
|
|
3244
3477
|
* password is set.
|
|
3245
3478
|
*
|
|
3246
|
-
*
|
|
3479
|
+
* A policy holds a project's rules for one operation, such as setting a
|
|
3480
|
+
* password. The first publish records a `policy.created` event and every
|
|
3481
|
+
* later one a `policy.updated` event.
|
|
3482
|
+
*
|
|
3483
|
+
* The request is typed by `operation`. An unknown operation or setting, or
|
|
3247
3484
|
* a value of the wrong type or outside its bounds, answers `req.invalid`
|
|
3248
|
-
* like any malformed request.
|
|
3249
|
-
*
|
|
3250
|
-
*
|
|
3251
|
-
*
|
|
3252
|
-
*
|
|
3253
|
-
*
|
|
3254
|
-
*
|
|
3255
|
-
* settings
|
|
3256
|
-
* rule
|
|
3485
|
+
* like any malformed request.
|
|
3486
|
+
*
|
|
3487
|
+
* The operation's template then checks the config again, together with the
|
|
3488
|
+
* rules that relate settings to each other (a `min_length` above
|
|
3489
|
+
* `max_length`), and answers `pol.invalid`. Its `details.details.violations`
|
|
3490
|
+
* lists everything that failed, settings first, then rules.
|
|
3491
|
+
* `{"setting": "min_length"}` names one setting. `{"config_rule":
|
|
3492
|
+
* "min_length_not_above_max_length", "settings": ["min_length",
|
|
3493
|
+
* "max_length"]}` names a rule across settings, with the settings it reads.
|
|
3494
|
+
* Fix what the violations list and publish again. To check a config without
|
|
3495
|
+
* publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).
|
|
3496
|
+
*
|
|
3497
|
+
* A setting left out is off, and `{}` switches every rule off; there are no
|
|
3498
|
+
* defaults.
|
|
3257
3499
|
* @summary Publish a policy
|
|
3258
3500
|
*/
|
|
3259
3501
|
export const publishPolicy = async (publishPolicyBody: PublishPolicyBody,
|
|
@@ -3301,24 +3543,27 @@ export const getEvaluatePolicyUrl = (params: EvaluatePolicyParams,) => {
|
|
|
3301
3543
|
|
|
3302
3544
|
/**
|
|
3303
3545
|
* Evaluates a policy config against one request, without side effects, and
|
|
3304
|
-
* answers the decision the operation would reach.
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3307
|
-
*
|
|
3546
|
+
* answers the decision the operation would reach. A policy holds a
|
|
3547
|
+
* project's rules for one operation, such as setting a password.
|
|
3548
|
+
*
|
|
3549
|
+
* Nothing is read from or written to the project. The config is the one in
|
|
3550
|
+
* the body, checked exactly as a publish checks it, so an invalid config
|
|
3551
|
+
* answers `pol.invalid` with the same violations. Fix the settings the
|
|
3552
|
+
* violations list and send the request again.
|
|
3308
3553
|
*
|
|
3309
3554
|
* `input` is what the operation's request carries, in the operation's own
|
|
3310
|
-
* terms (a password, not its length)
|
|
3555
|
+
* terms (a password, not its length). The server derives what the policy
|
|
3311
3556
|
* checks with the code the live operation runs, guards included. `facts`
|
|
3312
3557
|
* states what the operation would look up at runtime, such as whether the
|
|
3313
3558
|
* candidate matches one of the user's kept passwords.
|
|
3314
3559
|
*
|
|
3315
3560
|
* The decision and the names of the failed rules hold wherever the
|
|
3316
|
-
* operation runs. `code` and `violations` are what an API call answers
|
|
3561
|
+
* operation runs. `code` and `violations` are what an API call answers. A
|
|
3317
3562
|
* login flow shows the same rules as field errors on the password field
|
|
3318
3563
|
* (`error.x-auth-methods#password_<rule>` in `step.error`).
|
|
3319
3564
|
*
|
|
3320
|
-
*
|
|
3321
|
-
* and pass its config
|
|
3565
|
+
* This operation does not choose which policy a project or release applies.
|
|
3566
|
+
* Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.
|
|
3322
3567
|
*
|
|
3323
3568
|
* The caller needs read access to the project in `project_id`.
|
|
3324
3569
|
* @summary Evaluate a policy
|
|
@@ -3368,12 +3613,15 @@ export const getGetPolicyUrl = (policyId: string,
|
|
|
3368
3613
|
}
|
|
3369
3614
|
|
|
3370
3615
|
/**
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3616
|
+
* Returns a policy as its newest revision. A revision applies once a deployed
|
|
3617
|
+
* release pins it.
|
|
3618
|
+
*
|
|
3619
|
+
* A policy holds a project's rules for one operation, such as setting a
|
|
3620
|
+
* password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
|
|
3373
3621
|
*
|
|
3374
3622
|
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
3375
|
-
* project answers not found exactly as an unknown
|
|
3376
|
-
* @summary Get a policy
|
|
3623
|
+
* project answers not found exactly as an unknown ID does.
|
|
3624
|
+
* @summary Get a policy by ID
|
|
3377
3625
|
*/
|
|
3378
3626
|
export const getPolicy = async (policyId: string,
|
|
3379
3627
|
params: GetPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicy200> => {
|
|
@@ -3406,11 +3654,14 @@ export const getListPolicyRevisionsUrl = (policyId: string,
|
|
|
3406
3654
|
}
|
|
3407
3655
|
|
|
3408
3656
|
/**
|
|
3409
|
-
*
|
|
3410
|
-
*
|
|
3657
|
+
* Lists every revision of one policy, newest first, one page at a time. The
|
|
3658
|
+
* order is fixed, so there is no `sorting`.
|
|
3659
|
+
*
|
|
3660
|
+
* Each publish of a policy adds a revision. Pass the policy `id` that
|
|
3661
|
+
* `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
|
|
3411
3662
|
*
|
|
3412
3663
|
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
3413
|
-
* project answers not found exactly as an unknown
|
|
3664
|
+
* project answers not found exactly as an unknown ID does.
|
|
3414
3665
|
* @summary List the revisions of a policy
|
|
3415
3666
|
*/
|
|
3416
3667
|
export const listPolicyRevisions = async (policyId: string,
|
|
@@ -3444,11 +3695,14 @@ export const getGetPolicyRevisionUrl = (revisionId: string,
|
|
|
3444
3695
|
}
|
|
3445
3696
|
|
|
3446
3697
|
/**
|
|
3447
|
-
*
|
|
3698
|
+
* Returns one revision of a policy, the newest or an older one.
|
|
3699
|
+
*
|
|
3700
|
+
* Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)
|
|
3701
|
+
* returns.
|
|
3448
3702
|
*
|
|
3449
3703
|
* The lookup is scoped to the project in `project_id`: a revision of another
|
|
3450
|
-
* project answers not found exactly as an unknown
|
|
3451
|
-
* @summary Get a policy revision
|
|
3704
|
+
* project answers not found exactly as an unknown ID does.
|
|
3705
|
+
* @summary Get a policy revision by ID
|
|
3452
3706
|
*/
|
|
3453
3707
|
export const getPolicyRevision = async (revisionId: string,
|
|
3454
3708
|
params: GetPolicyRevisionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicyRevision200> => {
|
|
@@ -3480,25 +3734,34 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams,) => {
|
|
|
3480
3734
|
}
|
|
3481
3735
|
|
|
3482
3736
|
/**
|
|
3483
|
-
*
|
|
3484
|
-
*
|
|
3485
|
-
* `POST /releases/build
|
|
3737
|
+
* Creates a release from existing revisions, given as `(kind, revision_id)`
|
|
3738
|
+
* pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)
|
|
3739
|
+
* (`POST /releases/build`).
|
|
3740
|
+
*
|
|
3741
|
+
* A release is a snapshot of the project's configuration: it pins one
|
|
3742
|
+
* revision of each resource it includes, and it is not tied to an origin.
|
|
3743
|
+
* Take each `revision_id` from the operation that created the revision, for
|
|
3744
|
+
* example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.
|
|
3486
3745
|
*
|
|
3487
3746
|
* Each revision must exist in the project and is recorded under the handle
|
|
3488
3747
|
* it declares. The release must be complete and consistent:
|
|
3489
3748
|
*
|
|
3490
3749
|
* - Every handle its revisions name must be in the release: a flow's
|
|
3491
|
-
* `user_schema`, and the
|
|
3492
|
-
* `sso_providers` or a schema's `x-auth-methods.sso.providers`.
|
|
3493
|
-
* one answers `rel.unresolved_reference`, naming the resource and
|
|
3494
|
-
* handle,
|
|
3495
|
-
*
|
|
3496
|
-
*
|
|
3497
|
-
* reason in
|
|
3498
|
-
*
|
|
3499
|
-
*
|
|
3500
|
-
*
|
|
3501
|
-
* `
|
|
3750
|
+
* `user_schema`, and the identity provider (IdP) connections named by a
|
|
3751
|
+
* flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.
|
|
3752
|
+
* A missing one answers `rel.unresolved_reference`, naming the resource and
|
|
3753
|
+
* the handle, for example `flow_definition default-login: user_schema
|
|
3754
|
+
* human-user not found`. Add the missing revision to the request.
|
|
3755
|
+
* - Every flow is validated as on save, against the user schema revision in
|
|
3756
|
+
* the release. A flow that fails answers `rel.invalid`, with the reason in
|
|
3757
|
+
* `details`. Fix the flow and send the request again.
|
|
3758
|
+
*
|
|
3759
|
+
* The call is idempotent on the set of revisions: the same revisions with a
|
|
3760
|
+
* different `message` answer `200` with the existing release. A new release
|
|
3761
|
+
* answers `201`.
|
|
3762
|
+
*
|
|
3763
|
+
* Creating a release does not deploy it. Pass the returned `id` to
|
|
3764
|
+
* `createDeployment` (`POST /deployments`) to make the release live.
|
|
3502
3765
|
* @summary Create a release
|
|
3503
3766
|
*/
|
|
3504
3767
|
export const createRelease = async (createReleaseBody: CreateReleaseBody,
|
|
@@ -3545,17 +3808,20 @@ export const getListReleasesUrl = (params: ListReleasesParams,) => {
|
|
|
3545
3808
|
}
|
|
3546
3809
|
|
|
3547
3810
|
/**
|
|
3548
|
-
* Lists the project's releases, newest first.
|
|
3811
|
+
* Lists the project's releases, newest first. A release is a snapshot of the
|
|
3812
|
+
* project's configuration.
|
|
3813
|
+
*
|
|
3814
|
+
* Entries carry the digest, the metadata and `revoked_at`. The pinned set is
|
|
3815
|
+
* omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.
|
|
3549
3816
|
*
|
|
3550
|
-
*
|
|
3551
|
-
*
|
|
3552
|
-
* Read one release with `GET /releases/{release_id}` to get its pointers.
|
|
3817
|
+
* The `id` of an entry is the release ID that `getReleaseById`,
|
|
3818
|
+
* `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
|
|
3553
3819
|
*
|
|
3554
3820
|
* `content_hash` looks a release up by its content, as the CLI does when a
|
|
3555
3821
|
* person types the digest a transcript printed. The project holds at most
|
|
3556
|
-
* one release per digest, so the filtered list has one entry or none
|
|
3557
|
-
*
|
|
3558
|
-
* `rel_`
|
|
3822
|
+
* one release per digest, so the filtered list has one entry or none. An
|
|
3823
|
+
* unknown digest is an empty list rather than an error. Paths take the
|
|
3824
|
+
* `rel_` ID only, so use the matched entry's `id` there.
|
|
3559
3825
|
* @summary List releases
|
|
3560
3826
|
*/
|
|
3561
3827
|
export const listReleases = async (params: ListReleasesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListReleases200> => {
|
|
@@ -3587,38 +3853,44 @@ export const getBuildReleaseUrl = (params: BuildReleaseParams,) => {
|
|
|
3587
3853
|
}
|
|
3588
3854
|
|
|
3589
3855
|
/**
|
|
3590
|
-
* Builds a release from the resources
|
|
3591
|
-
* grouped by kind, in one transaction
|
|
3592
|
-
*
|
|
3856
|
+
* Builds a release from the resources in `.zitadel/` as authored on disk,
|
|
3857
|
+
* grouped by kind, in one transaction.
|
|
3858
|
+
*
|
|
3859
|
+
* A release is a snapshot of the project's configuration. A failure anywhere
|
|
3860
|
+
* leaves no revision and no release. The caller records nothing. The CLI's
|
|
3861
|
+
* `deploy` command builds its release with this operation.
|
|
3593
3862
|
*
|
|
3594
3863
|
* If the project already holds a release with the same content, the same
|
|
3595
|
-
* `content_hash`, the request answers `200` with that release and
|
|
3596
|
-
*
|
|
3597
|
-
* project's newest revision of the same handle: unchanged content reuses
|
|
3598
|
-
* that revision, changed content allocates a new one, and the request
|
|
3599
|
-
* answers `201` with the new release. A policy whose config matches only an
|
|
3600
|
-
* older revision allocates a new one too, so a request that resolves no
|
|
3601
|
-
* release, which reads the newest revision, applies it as well. Metadata is excluded from the
|
|
3864
|
+
* `content_hash`, the request answers `200` with that release and allocates
|
|
3865
|
+
* nothing, however long ago it was built. Metadata is excluded from the
|
|
3602
3866
|
* comparison, so the same content under a different `message` is the same
|
|
3603
3867
|
* release.
|
|
3604
3868
|
*
|
|
3869
|
+
* Otherwise every resource is compared with the project's newest revision of
|
|
3870
|
+
* the same handle. Unchanged content reuses that revision, and changed
|
|
3871
|
+
* content allocates a new one. The request answers `201` with the new
|
|
3872
|
+
* release. A policy whose config matches only an older revision allocates a
|
|
3873
|
+
* new one too, so the policy reads back as the config the build carried.
|
|
3874
|
+
*
|
|
3605
3875
|
* A structurally malformed request is refused while decoding with
|
|
3606
3876
|
* `req.invalid`, naming the offending fields. A well-formed bundle is then
|
|
3607
3877
|
* checked resource by resource, as each kind's create endpoint checks it,
|
|
3608
|
-
* and every failure is reported at once
|
|
3878
|
+
* and every failure is reported at once. The request answers `400` with
|
|
3609
3879
|
* `rel.invalid`, and `details.resources` lists each resource that failed.
|
|
3610
|
-
*
|
|
3611
|
-
*
|
|
3880
|
+
* Fix each listed resource and build again. A handle that resolves neither
|
|
3881
|
+
* in the bundle nor in the project answers `rel.unresolved_reference`,
|
|
3882
|
+
* naming the pointer and the handle. Add the missing resource to the bundle.
|
|
3612
3883
|
*
|
|
3613
3884
|
* Building writes revisions, so besides `release.write` it needs the write
|
|
3614
3885
|
* scope of every kind the bundle carries a resource of: `schema.write`,
|
|
3615
|
-
* `flow_definition.write`, `branding.write`, `idp.write` and
|
|
3616
|
-
*
|
|
3617
|
-
* naming the kind.
|
|
3618
|
-
*
|
|
3619
|
-
*
|
|
3620
|
-
*
|
|
3621
|
-
* origins
|
|
3886
|
+
* `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,
|
|
3887
|
+
* as the per-kind create endpoints do. A missing scope answers `403` with
|
|
3888
|
+
* `rel.permission_denied`, naming the kind. Request a token with that scope.
|
|
3889
|
+
* An empty kind needs no scope.
|
|
3890
|
+
*
|
|
3891
|
+
* Building a release does not deploy it. A release is not tied to an origin,
|
|
3892
|
+
* and the same release can later be deployed to any number of origins
|
|
3893
|
+
* unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).
|
|
3622
3894
|
* @summary Build a release from files
|
|
3623
3895
|
*/
|
|
3624
3896
|
export const buildRelease = async (buildReleaseBody: BuildReleaseBody,
|
|
@@ -3666,20 +3938,23 @@ export const getGetReleaseByIdUrl = (releaseId: string,
|
|
|
3666
3938
|
}
|
|
3667
3939
|
|
|
3668
3940
|
/**
|
|
3669
|
-
*
|
|
3670
|
-
* the `(kind, handle, revision_id)` tuples it pins.
|
|
3671
|
-
*
|
|
3672
|
-
*
|
|
3673
|
-
*
|
|
3674
|
-
*
|
|
3675
|
-
*
|
|
3676
|
-
*
|
|
3677
|
-
*
|
|
3678
|
-
* The
|
|
3679
|
-
*
|
|
3680
|
-
*
|
|
3681
|
-
*
|
|
3682
|
-
*
|
|
3941
|
+
* Returns one release: its digest, its metadata, whether it was revoked, and
|
|
3942
|
+
* the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot
|
|
3943
|
+
* of the project's configuration.
|
|
3944
|
+
*
|
|
3945
|
+
* The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),
|
|
3946
|
+
* `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its
|
|
3947
|
+
* digest, list with the `content_hash` filter and read the matched entry's
|
|
3948
|
+
* `id`.
|
|
3949
|
+
*
|
|
3950
|
+
* The response does not embed resource content. Resolve each `revision_id`
|
|
3951
|
+
* through the per-kind read endpoints when the bytes are needed.
|
|
3952
|
+
*
|
|
3953
|
+
* The lookup is scoped to the project in `project_id`. A release ID
|
|
3954
|
+
* belonging to another project answers not found exactly as an unknown ID
|
|
3955
|
+
* does, so the endpoint cannot be used to probe for releases in projects the
|
|
3956
|
+
* caller cannot read.
|
|
3957
|
+
* @summary Get a release by ID
|
|
3683
3958
|
*/
|
|
3684
3959
|
export const getReleaseById = async (releaseId: string,
|
|
3685
3960
|
params: GetReleaseByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetReleaseById200> => {
|
|
@@ -3712,25 +3987,29 @@ export const getRevokeReleaseUrl = (releaseId: string,
|
|
|
3712
3987
|
}
|
|
3713
3988
|
|
|
3714
3989
|
/**
|
|
3715
|
-
*
|
|
3716
|
-
*
|
|
3717
|
-
*
|
|
3718
|
-
*
|
|
3719
|
-
*
|
|
3720
|
-
*
|
|
3721
|
-
*
|
|
3722
|
-
*
|
|
3723
|
-
*
|
|
3724
|
-
*
|
|
3725
|
-
*
|
|
3726
|
-
*
|
|
3727
|
-
*
|
|
3728
|
-
*
|
|
3729
|
-
*
|
|
3730
|
-
*
|
|
3731
|
-
*
|
|
3732
|
-
*
|
|
3733
|
-
*
|
|
3990
|
+
* Revokes a release, so that its content is never served again. Pass the
|
|
3991
|
+
* `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It
|
|
3992
|
+
* records a `release.revoked` event.
|
|
3993
|
+
*
|
|
3994
|
+
* From then on the release cannot be deployed. Every path that would serve
|
|
3995
|
+
* it refuses it with `rel.revoked`, including a build that pins its digest.
|
|
3996
|
+
*
|
|
3997
|
+
* A release that any origin still serves cannot be revoked. An origin serves
|
|
3998
|
+
* the release of the newest deployment to it, so the call answers `409` with
|
|
3999
|
+
* `rel.in_use`, naming each such origin and that deployment. Deploy another
|
|
4000
|
+
* release there or roll back first, then revoke. Revoking therefore never
|
|
4001
|
+
* takes an origin down. Deployments that named the release earlier stay in
|
|
4002
|
+
* the history.
|
|
4003
|
+
*
|
|
4004
|
+
* The call is idempotent: revoking a release that is already revoked answers
|
|
4005
|
+
* `200` with the release unchanged, and `revoked_at` still names the first
|
|
4006
|
+
* revocation. There is no un-revoke. To serve that configuration again,
|
|
4007
|
+
* change it and build a new release: rebuilding unchanged content returns
|
|
4008
|
+
* the same revoked release.
|
|
4009
|
+
*
|
|
4010
|
+
* The call takes no body. The lookup is scoped to the project in
|
|
4011
|
+
* `project_id`, so a release ID of another project answers not found exactly
|
|
4012
|
+
* as an unknown ID does.
|
|
3734
4013
|
* @summary Revoke a release
|
|
3735
4014
|
*/
|
|
3736
4015
|
export const revokeRelease = async (releaseId: string,
|
|
@@ -3763,26 +4042,32 @@ export const getCreateGrantUrl = (params: CreateGrantParams,) => {
|
|
|
3763
4042
|
}
|
|
3764
4043
|
|
|
3765
4044
|
/**
|
|
3766
|
-
*
|
|
3767
|
-
*
|
|
3768
|
-
*
|
|
3769
|
-
* (`
|
|
3770
|
-
*
|
|
3771
|
-
*
|
|
3772
|
-
*
|
|
3773
|
-
*
|
|
3774
|
-
*
|
|
3775
|
-
*
|
|
3776
|
-
*
|
|
3777
|
-
*
|
|
3778
|
-
*
|
|
3779
|
-
*
|
|
3780
|
-
*
|
|
3781
|
-
*
|
|
3782
|
-
* session
|
|
3783
|
-
*
|
|
3784
|
-
*
|
|
3785
|
-
*
|
|
4045
|
+
* Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.
|
|
4046
|
+
*
|
|
4047
|
+
* The project is the one named by the `project_id` query parameter. Name the
|
|
4048
|
+
* principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
|
|
4049
|
+
* `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
|
|
4050
|
+
* `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not
|
|
4051
|
+
* created here: a claim, which attaches a project to a team, creates them.
|
|
4052
|
+
*
|
|
4053
|
+
* An unrevoked grant with the same principal and relation holds that binding
|
|
4054
|
+
* even after `expires_at`. Revoke it with `deleteGrant` before you create it
|
|
4055
|
+
* again.
|
|
4056
|
+
*
|
|
4057
|
+
* Create does not accept `expand`. The `user_id` and team locators return `201`,
|
|
4058
|
+
* whose `user` and `team` carry only `user_id` and `team_id`. They still answer
|
|
4059
|
+
* `404` or `409` when the principal is missing or the grant already exists.
|
|
4060
|
+
* Creating by `user.identifier` answers `202` with no body on every outcome.
|
|
4061
|
+
* Granting the session caller's own user is `grant.invalid` on either user
|
|
4062
|
+
* locator. A `201` grant names its user or team by ID only: read it back
|
|
4063
|
+
* with `getGrant` for the identifier and display name. A `202` returns no
|
|
4064
|
+
* grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.
|
|
4065
|
+
*
|
|
4066
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
4067
|
+
* (`sessionCookie`). A session caller is authorized as the signed-in person
|
|
4068
|
+
* against the target project, even when the session belongs to another project.
|
|
4069
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
4070
|
+
* @summary Create a grant
|
|
3786
4071
|
*/
|
|
3787
4072
|
export const createGrant = async (createGrantBody: CreateGrantBody,
|
|
3788
4073
|
params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateGrant201 | void> => {
|
|
@@ -3828,22 +4113,20 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams,) => {
|
|
|
3828
4113
|
}
|
|
3829
4114
|
|
|
3830
4115
|
/**
|
|
3831
|
-
* Returns
|
|
3832
|
-
*
|
|
3833
|
-
*
|
|
3834
|
-
*
|
|
3835
|
-
*
|
|
3836
|
-
*
|
|
3837
|
-
*
|
|
3838
|
-
*
|
|
3839
|
-
* `
|
|
3840
|
-
*
|
|
3841
|
-
*
|
|
3842
|
-
*
|
|
3843
|
-
*
|
|
3844
|
-
*
|
|
3845
|
-
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
3846
|
-
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
4116
|
+
* Returns a page of a project's grants.
|
|
4117
|
+
*
|
|
4118
|
+
* Only unrevoked grants this API manages are listed, which bind a user or team
|
|
4119
|
+
* to the viewer, editor or admin role. Expired grants are included, so a client
|
|
4120
|
+
* can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.
|
|
4121
|
+
* Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
|
|
4122
|
+
* not returned. Requires `project.read`.
|
|
4123
|
+
*
|
|
4124
|
+
* `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
|
|
4125
|
+
* secrets it additionally requires `user.read` and `team.read`. A user-bound
|
|
4126
|
+
* console session that already passed the project check may expand without those scopes.
|
|
4127
|
+
*
|
|
4128
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
4129
|
+
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
3847
4130
|
* @summary Query grants
|
|
3848
4131
|
*/
|
|
3849
4132
|
export const queryGrants = async (queryGrantsBody: QueryGrantsBody,
|
|
@@ -3899,23 +4182,23 @@ export const getGetGrantUrl = (id: string,
|
|
|
3899
4182
|
}
|
|
3900
4183
|
|
|
3901
4184
|
/**
|
|
3902
|
-
*
|
|
3903
|
-
*
|
|
3904
|
-
*
|
|
3905
|
-
*
|
|
3906
|
-
*
|
|
3907
|
-
*
|
|
3908
|
-
*
|
|
3909
|
-
*
|
|
3910
|
-
*
|
|
3911
|
-
* `
|
|
3912
|
-
* secrets
|
|
3913
|
-
*
|
|
3914
|
-
*
|
|
3915
|
-
*
|
|
3916
|
-
*
|
|
3917
|
-
* follow
|
|
3918
|
-
* @summary Get grant
|
|
4185
|
+
* Returns a grant by ID, when this API manages it and it has not been revoked.
|
|
4186
|
+
*
|
|
4187
|
+
* This API manages grants that bind a user or team to the viewer, editor or
|
|
4188
|
+
* admin role. An expired grant is still returned, so you can revoke it with
|
|
4189
|
+
* `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still
|
|
4190
|
+
* ignores expired grants. Send `project_id` as well as the grant ID.
|
|
4191
|
+
* Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
|
|
4192
|
+
* (`relation=team`) rows and grants of another project all return `404`.
|
|
4193
|
+
*
|
|
4194
|
+
* `expand=principal` adds envelope fields on `user` or `team`. For project
|
|
4195
|
+
* secrets it requires `user.read` and `team.read` in addition to `project.read`.
|
|
4196
|
+
* A user-bound console session that already passed the project check may expand
|
|
4197
|
+
* without those scopes.
|
|
4198
|
+
*
|
|
4199
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
4200
|
+
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
4201
|
+
* @summary Get a grant by ID
|
|
3919
4202
|
*/
|
|
3920
4203
|
export const getGrant = async (id: string,
|
|
3921
4204
|
params: GetGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<GetGrant200> => {
|
|
@@ -3948,15 +4231,15 @@ export const getDeleteGrantUrl = (id: string,
|
|
|
3948
4231
|
}
|
|
3949
4232
|
|
|
3950
4233
|
/**
|
|
3951
|
-
*
|
|
3952
|
-
* Already-revoked, missing, project-secret setup, and owning-team grants
|
|
3953
|
-
* return 404. The row is not un-revoked. Expired grants can still be
|
|
3954
|
-
* revoked so the unique binding can be reused.
|
|
4234
|
+
* Revokes a grant this API manages and emits `authz.revoked`.
|
|
3955
4235
|
*
|
|
3956
|
-
*
|
|
3957
|
-
*
|
|
3958
|
-
*
|
|
3959
|
-
*
|
|
4236
|
+
* A revoked grant cannot be restored: create a new one. Already-revoked, missing,
|
|
4237
|
+
* project-secret setup and owning-team grants return `404`. Expired grants can
|
|
4238
|
+
* still be revoked, so the binding can be reused.
|
|
4239
|
+
*
|
|
4240
|
+
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
4241
|
+
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
4242
|
+
* @summary Revoke a grant
|
|
3960
4243
|
*/
|
|
3961
4244
|
export const deleteGrant = async (id: string,
|
|
3962
4245
|
params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
@@ -3996,17 +4279,18 @@ export const getListEventsUrl = (params: ListEventsParams,) => {
|
|
|
3996
4279
|
}
|
|
3997
4280
|
|
|
3998
4281
|
/**
|
|
3999
|
-
*
|
|
4000
|
-
*
|
|
4001
|
-
*
|
|
4282
|
+
* Lists a project's audit events, newest first. Pass `order=asc` for oldest
|
|
4283
|
+
* first. Requires `events.read`.
|
|
4284
|
+
*
|
|
4285
|
+
* A project that is not claimed yet returns an empty list: its events are
|
|
4286
|
+
* stored but stay invisible until the
|
|
4287
|
+
* [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
|
|
4002
4288
|
*
|
|
4003
|
-
*
|
|
4004
|
-
*
|
|
4005
|
-
* whose emit-time `team_id` matches the credential team (enforced when
|
|
4006
|
-
* team-scoped tokens exist).
|
|
4289
|
+
* Team-scoped credentials see only the events whose `team_id` matches the
|
|
4290
|
+
* credential's team. Team-scoped credentials are not issued today.
|
|
4007
4291
|
*
|
|
4008
|
-
*
|
|
4009
|
-
*
|
|
4292
|
+
* Each item carries an `event_type` that says which type of event it is, and
|
|
4293
|
+
* the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).
|
|
4010
4294
|
* @summary List events
|
|
4011
4295
|
*/
|
|
4012
4296
|
export const listEvents = async (params: ListEventsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListEvents200> => {
|
|
@@ -4039,12 +4323,16 @@ export const getGetEventUrl = (id: string,
|
|
|
4039
4323
|
}
|
|
4040
4324
|
|
|
4041
4325
|
/**
|
|
4042
|
-
*
|
|
4043
|
-
* Events are not registered in `resource_scope_index`; project scope is
|
|
4044
|
-
* required on the query (ADR 049). Misses and cross-project ids return 404.
|
|
4326
|
+
* Returns one event of a project by its ID. Requires `events.read`.
|
|
4045
4327
|
*
|
|
4046
|
-
*
|
|
4047
|
-
*
|
|
4328
|
+
* Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its
|
|
4329
|
+
* `project_id`. An unknown ID and the ID of another project's event both
|
|
4330
|
+
* answer `404`.
|
|
4331
|
+
*
|
|
4332
|
+
* A project that is not claimed yet also answers `404`: its events are
|
|
4333
|
+
* stored but stay invisible until the
|
|
4334
|
+
* [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
|
|
4335
|
+
* @summary Get an event by ID
|
|
4048
4336
|
*/
|
|
4049
4337
|
export const getEvent = async (id: string,
|
|
4050
4338
|
params: GetEventParams, options?: Parameters<typeof customFetch>[1]): Promise<GetEvent200> => {
|
|
@@ -4076,12 +4364,13 @@ export const getGetVariablesUrl = (params: GetVariablesParams,) => {
|
|
|
4076
4364
|
}
|
|
4077
4365
|
|
|
4078
4366
|
/**
|
|
4079
|
-
* Returns the project's variables, keyed by name, each with its value
|
|
4080
|
-
* kind
|
|
4367
|
+
* Returns the project's variables, keyed by name, each with its value for
|
|
4368
|
+
* each kind: `primary` for primary origins and `preview` for preview URLs.
|
|
4369
|
+
* With `kind`, only that kind's values are returned.
|
|
4081
4370
|
*
|
|
4082
4371
|
* Secret values are not returned. A secret appears as `{"secret": true}`,
|
|
4083
4372
|
* which says a value is held without disclosing it.
|
|
4084
|
-
* @summary Get variables
|
|
4373
|
+
* @summary Get a project's variables
|
|
4085
4374
|
*/
|
|
4086
4375
|
export const getVariables = async (params: GetVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariables200> => {
|
|
4087
4376
|
|
|
@@ -4112,25 +4401,29 @@ export const getUpdateVariablesUrl = (params: UpdateVariablesParams,) => {
|
|
|
4112
4401
|
}
|
|
4113
4402
|
|
|
4114
4403
|
/**
|
|
4115
|
-
*
|
|
4116
|
-
* kind. Names not in the body are untouched. Existing
|
|
4117
|
-
* values they froze.
|
|
4118
|
-
*
|
|
4119
|
-
* Without `kind`, a plain value is written for both kinds. A secret is
|
|
4120
|
-
* written for `primary` only and removes the name's `preview` value, so a
|
|
4121
|
-
* preview never keeps a plaintext copy; set a preview secret with
|
|
4122
|
-
* `kind=preview`. `null` removes the name from both.
|
|
4404
|
+
* Sets, replaces and removes the project's variables for the requested
|
|
4405
|
+
* kind, in one request. Names not in the body are untouched. Existing
|
|
4406
|
+
* deployments keep the values they froze.
|
|
4123
4407
|
*
|
|
4124
4408
|
* A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
|
|
4125
4409
|
* stores the value encrypted under the project's active `secret` key, after
|
|
4126
4410
|
* which it can be referenced but not read back. `null` removes the name
|
|
4127
|
-
* (RFC 7386), which is how several variables are removed in one request
|
|
4128
|
-
*
|
|
4411
|
+
* (RFC 7386), which is how several variables are removed in one request.
|
|
4412
|
+
* Removing a name the project does not hold is a no-op rather than an error.
|
|
4413
|
+
*
|
|
4414
|
+
* Without `kind`, a plain value is written for both kinds. A secret is
|
|
4415
|
+
* written for `primary` only and removes the name's `preview` value, so a
|
|
4416
|
+
* preview never keeps a plaintext copy. Set a preview secret with
|
|
4417
|
+
* `kind=preview`. `null` removes the name from both kinds.
|
|
4129
4418
|
*
|
|
4130
4419
|
* The body is applied whole or not at all, so a rejected request leaves the
|
|
4131
|
-
* project's variables exactly as they were.
|
|
4132
|
-
*
|
|
4133
|
-
*
|
|
4420
|
+
* project's variables exactly as they were. Fix what the error reports and
|
|
4421
|
+
* send the request again. Writing the same name twice replaces the value
|
|
4422
|
+
* rather than duplicating it, which makes a retry safe.
|
|
4423
|
+
*
|
|
4424
|
+
* Each kind written records a `variable.set` event, and each kind removed a
|
|
4425
|
+
* `variable.removed` event. The value never appears in either.
|
|
4426
|
+
* @summary Update a project's variables
|
|
4134
4427
|
*/
|
|
4135
4428
|
export const updateVariables = async (updateVariablesBody: UpdateVariablesBody,
|
|
4136
4429
|
params: UpdateVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<UpdateVariables200> => {
|
|
@@ -4177,10 +4470,14 @@ export const getGetVariableUrl = (variableName: string,
|
|
|
4177
4470
|
}
|
|
4178
4471
|
|
|
4179
4472
|
/**
|
|
4180
|
-
*
|
|
4181
|
-
*
|
|
4182
|
-
*
|
|
4183
|
-
*
|
|
4473
|
+
* Returns one variable by name, with its value for each kind. A variable
|
|
4474
|
+
* holds a value per kind: `primary` for primary origins and `preview` for
|
|
4475
|
+
* preview URLs.
|
|
4476
|
+
*
|
|
4477
|
+
* Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists
|
|
4478
|
+
* it. A name with no value for the requested kind answers `var.not_found`;
|
|
4479
|
+
* set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
|
|
4480
|
+
* @summary Get a variable by name
|
|
4184
4481
|
*/
|
|
4185
4482
|
export const getVariable = async (variableName: string,
|
|
4186
4483
|
params: GetVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariable200> => {
|
|
@@ -4213,10 +4510,15 @@ export const getDeleteVariableUrl = (variableName: string,
|
|
|
4213
4510
|
}
|
|
4214
4511
|
|
|
4215
4512
|
/**
|
|
4216
|
-
*
|
|
4217
|
-
* `kind`.
|
|
4218
|
-
*
|
|
4219
|
-
*
|
|
4513
|
+
* Deletes a variable for the requested kind, or for both kinds without
|
|
4514
|
+
* `kind`. Existing deployments keep the values they froze. Each kind removed
|
|
4515
|
+
* records a `variable.removed` event.
|
|
4516
|
+
*
|
|
4517
|
+
* A name with no value for that kind answers `var.not_found`: there is
|
|
4518
|
+
* nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To
|
|
4519
|
+
* remove several names in one request, or to remove a name that may already
|
|
4520
|
+
* be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).
|
|
4521
|
+
* @summary Delete a variable by name
|
|
4220
4522
|
*/
|
|
4221
4523
|
export const deleteVariable = async (variableName: string,
|
|
4222
4524
|
params: DeleteVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
@@ -4248,34 +4550,54 @@ export const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {
|
|
|
4248
4550
|
}
|
|
4249
4551
|
|
|
4250
4552
|
/**
|
|
4251
|
-
*
|
|
4252
|
-
*
|
|
4253
|
-
*
|
|
4254
|
-
*
|
|
4255
|
-
*
|
|
4256
|
-
*
|
|
4257
|
-
*
|
|
4258
|
-
*
|
|
4553
|
+
* Creates a deployment: it makes a release live on the project's primary
|
|
4554
|
+
* origins or on preview URLs.
|
|
4555
|
+
*
|
|
4556
|
+
* A release is a snapshot of the project's configuration. A deployment makes
|
|
4557
|
+
* a release live on origins and freezes the project's variable values for
|
|
4558
|
+
* its kind, with no fallback between primary and preview values. The call is
|
|
4559
|
+
* atomic: on success every target serves the release and the deployment is
|
|
4560
|
+
* recorded, and it records a `deployment.created` event. On failure nothing
|
|
4561
|
+
* changes and nothing is recorded.
|
|
4562
|
+
*
|
|
4563
|
+
* Name the release by exactly one of `release_id` or `content_hash`. Take the
|
|
4564
|
+
* release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or
|
|
4565
|
+
* `listReleases` (`GET /releases`) returns. The release must already exist in the project.
|
|
4566
|
+
* `targets` is `primary`, which means every primary origin, or a list of
|
|
4567
|
+
* preview URLs. `["primary"]`, which clients released before this shape
|
|
4568
|
+
* send, still deploys to every primary origin until 1.0.0; its answer
|
|
4569
|
+
* carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.
|
|
4570
|
+
*
|
|
4571
|
+
* The project's newest primary deployment also serves every request with no
|
|
4572
|
+
* `Origin`, such as a backend, a native app or the CLI, and the console's
|
|
4573
|
+
* login preview of a project that does not list the console's origin. A
|
|
4574
|
+
* preview URL serves only itself.
|
|
4259
4575
|
*
|
|
4260
4576
|
* A deployment to `primary` changes nothing when the project's newest
|
|
4261
4577
|
* primary deployment has the same release and frozen values and covers
|
|
4262
|
-
* exactly the current primary origins
|
|
4263
|
-
* deployment. Any other request writes a new deployment and answers `201
|
|
4264
|
-
*
|
|
4265
|
-
*
|
|
4266
|
-
*
|
|
4267
|
-
* - `400 dep.invalid`: both or neither of `release_id` and
|
|
4268
|
-
* a primary origin
|
|
4269
|
-
* `primary`
|
|
4270
|
-
* `ttl` above 365 days (`P365D`).
|
|
4271
|
-
*
|
|
4272
|
-
*
|
|
4273
|
-
*
|
|
4274
|
-
*
|
|
4275
|
-
* - `
|
|
4276
|
-
*
|
|
4277
|
-
*
|
|
4278
|
-
*
|
|
4578
|
+
* exactly the current primary origins. The call then answers `200` with that
|
|
4579
|
+
* deployment. Any other request writes a new deployment and answers `201`.
|
|
4580
|
+
* For preview URLs, that deployment renews their previews.
|
|
4581
|
+
*
|
|
4582
|
+
* If the request is refused, fix the cause and send it again:
|
|
4583
|
+
* - `400 dep.invalid`: the request names both or neither of `release_id` and
|
|
4584
|
+
* `content_hash`, names a primary origin among the preview URLs, sends
|
|
4585
|
+
* `primary` for a project with no primary origin, sends
|
|
4586
|
+
* `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct
|
|
4587
|
+
* the request.
|
|
4588
|
+
* - `400 dep.variables_missing`: a variable the release references has no
|
|
4589
|
+
* value for the kind. `details` names the kind and every missing variable.
|
|
4590
|
+
* Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.
|
|
4591
|
+
* - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
|
|
4592
|
+
* of the project, or is a loopback URL. Use a URL that matches a pattern.
|
|
4593
|
+
* - `404 rel.not_found`: the release ID or digest names no release in this
|
|
4594
|
+
* project. List the project's releases with `listReleases`.
|
|
4595
|
+
* - `409 dep.conflict`: `expected_deployment_id` is not the deployment this
|
|
4596
|
+
* write replaces, and `details.deployment` is that deployment. Inspect it,
|
|
4597
|
+
* then retry with its ID as `expected_deployment_id`, or stop.
|
|
4598
|
+
* - `409 rel.revoked`: the release is revoked and cannot be deployed. Change
|
|
4599
|
+
* the configuration and build a new release, or deploy a release that is
|
|
4600
|
+
* not revoked. Rebuilding unchanged content returns the same revoked release.
|
|
4279
4601
|
* @summary Create a deployment
|
|
4280
4602
|
*/
|
|
4281
4603
|
export const createDeployment = async (createDeploymentBody: CreateDeploymentBody,
|
|
@@ -4330,19 +4652,26 @@ export const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {
|
|
|
4330
4652
|
}
|
|
4331
4653
|
|
|
4332
4654
|
/**
|
|
4333
|
-
* Lists what ran where
|
|
4334
|
-
*
|
|
4335
|
-
*
|
|
4336
|
-
*
|
|
4337
|
-
*
|
|
4338
|
-
*
|
|
4339
|
-
*
|
|
4340
|
-
*
|
|
4341
|
-
*
|
|
4342
|
-
* the
|
|
4343
|
-
*
|
|
4344
|
-
*
|
|
4345
|
-
*
|
|
4655
|
+
* Lists the project's deployments: the history of what ran where and when,
|
|
4656
|
+
* or with `live=true` what is served now.
|
|
4657
|
+
*
|
|
4658
|
+
* A deployment makes a release live on origins. By default the list is the
|
|
4659
|
+
* history, newest first: every deployment of the project, with every target
|
|
4660
|
+
* it made the release live on. With `origin`, it is the history of that
|
|
4661
|
+
* origin alone.
|
|
4662
|
+
*
|
|
4663
|
+
* With `live=true`, the list is what is served now, newest first. It holds
|
|
4664
|
+
* the project's newest primary deployment with every origin it names, an
|
|
4665
|
+
* origin the project no longer lists included: that deployment also serves
|
|
4666
|
+
* requests with no `Origin`, so it stays live. It also holds the newest
|
|
4667
|
+
* deployment to each live preview URL, narrowed to the URLs it still
|
|
4668
|
+
* serves. Combined with `origin`, it is the one deployment that origin
|
|
4669
|
+
* serves, or empty, as it is for an origin the project no longer lists.
|
|
4670
|
+
*
|
|
4671
|
+
* The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),
|
|
4672
|
+
* `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
|
|
4673
|
+
*
|
|
4674
|
+
* `expand: ["release"]` embeds the release each deployment made live. It
|
|
4346
4675
|
* requires `release.read` and does not change the ordering or the page
|
|
4347
4676
|
* tokens.
|
|
4348
4677
|
* @summary List deployments
|
|
@@ -4377,13 +4706,17 @@ export const getGetDeploymentByIdUrl = (deploymentId: string,
|
|
|
4377
4706
|
}
|
|
4378
4707
|
|
|
4379
4708
|
/**
|
|
4380
|
-
*
|
|
4709
|
+
* Returns one deployment: the release it made live, the origins it made it
|
|
4710
|
+
* live on, and whether they still serve it.
|
|
4381
4711
|
*
|
|
4382
|
-
*
|
|
4383
|
-
*
|
|
4712
|
+
* Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or
|
|
4713
|
+
* `listDeployments` (`GET /deployments`) returns.
|
|
4714
|
+
*
|
|
4715
|
+
* The lookup is scoped to the project in `project_id`. A deployment ID
|
|
4716
|
+
* belonging to another project answers not found exactly as an unknown ID
|
|
4384
4717
|
* does, so the endpoint cannot be used to probe for deployments in projects
|
|
4385
4718
|
* the caller cannot read.
|
|
4386
|
-
* @summary Get a deployment by
|
|
4719
|
+
* @summary Get a deployment by ID
|
|
4387
4720
|
*/
|
|
4388
4721
|
export const getDeploymentById = async (deploymentId: string,
|
|
4389
4722
|
params: GetDeploymentByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeploymentById200> => {
|
|
@@ -4416,20 +4749,44 @@ export const getRollbackDeploymentUrl = (deploymentId: string,
|
|
|
4416
4749
|
}
|
|
4417
4750
|
|
|
4418
4751
|
/**
|
|
4419
|
-
*
|
|
4420
|
-
* with the variable values
|
|
4421
|
-
*
|
|
4422
|
-
*
|
|
4423
|
-
*
|
|
4424
|
-
*
|
|
4425
|
-
*
|
|
4426
|
-
*
|
|
4427
|
-
*
|
|
4428
|
-
*
|
|
4429
|
-
*
|
|
4752
|
+
* Rolls back to an earlier deployment by deploying its release again to
|
|
4753
|
+
* every current primary origin, with the variable values that deployment
|
|
4754
|
+
* froze.
|
|
4755
|
+
*
|
|
4756
|
+
* A release is a snapshot of the project's configuration. A deployment makes
|
|
4757
|
+
* a release live on origins and freezes the project's variable values with
|
|
4758
|
+
* it.
|
|
4759
|
+
*
|
|
4760
|
+
* The deployment ID in the path is the deployment to return to, not the one
|
|
4761
|
+
* to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists
|
|
4762
|
+
* the newest deployment first.
|
|
4763
|
+
*
|
|
4764
|
+
* A rollback is a new deployment, not an undo. It has `reason: rollback`,
|
|
4765
|
+
* and its `rollback_to` names the deployment you returned to. It uses the
|
|
4766
|
+
* variable values that deployment froze, not the project's current ones, and
|
|
4767
|
+
* creates no release.
|
|
4768
|
+
*
|
|
4769
|
+
* To guard against a deployment that landed since you looked, set
|
|
4770
|
+
* `expected_deployment_id` in the request body to the newest primary
|
|
4771
|
+
* deployment, the one live now. The call then fails with `409 dep.conflict`
|
|
4772
|
+
* if another deployment has replaced it.
|
|
4773
|
+
*
|
|
4774
|
+
* A rollback is idempotent like a deployment to `primary`. When nothing
|
|
4775
|
+
* would change, it answers `200` with the newest primary deployment.
|
|
4776
|
+
*
|
|
4777
|
+
* If the request is refused:
|
|
4778
|
+
* - `400 dep.invalid`: the deployment went to preview URLs, which cannot be
|
|
4779
|
+
* rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`). The
|
|
4780
|
+
* error also appears when the project has no primary origin. Add one with
|
|
4781
|
+
* `zitadel origin add`.
|
|
4782
|
+
* - `404 dep.not_found`: no deployment of the project has that ID, or that
|
|
4783
|
+
* deployment recorded no variables to restore, so it cannot be a rollback
|
|
4784
|
+
* target. List them with `listDeployments` and pick another.
|
|
4430
4785
|
* - `409 dep.conflict`: `expected_deployment_id` is not the project's
|
|
4431
|
-
* newest primary deployment
|
|
4432
|
-
*
|
|
4786
|
+
* newest primary deployment, and `details.deployment` is that deployment.
|
|
4787
|
+
* Inspect it, then retry with its ID, or stop.
|
|
4788
|
+
* - `409 rel.revoked`: the release of that deployment is revoked and cannot
|
|
4789
|
+
* be deployed. Roll back to a deployment of a release that is not revoked.
|
|
4433
4790
|
* @summary Roll back to a deployment
|
|
4434
4791
|
*/
|
|
4435
4792
|
export const rollbackDeployment = async (deploymentId: string,
|
|
@@ -4481,6 +4838,8 @@ export const getGetDeploymentVariablesUrl = (deploymentId: string,
|
|
|
4481
4838
|
* Returns the variable values the deployment froze when it was made. Later
|
|
4482
4839
|
* changes to the project's variables do not affect them. A secret reads
|
|
4483
4840
|
* back as `{"secret": true}`.
|
|
4841
|
+
*
|
|
4842
|
+
* Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
|
|
4484
4843
|
* @summary Get a deployment's variables
|
|
4485
4844
|
*/
|
|
4486
4845
|
export const getDeploymentVariables = async (deploymentId: string,
|