@zitadel/api 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +471 -56
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +30 -6
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +2082 -576
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1889 -294
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1837 -333
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +448 -79
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/{index-BK4Q468Q.d.mts → index-ruwZ9xDe.d.mts} +20529 -11466
- package/dist/index-ruwZ9xDe.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/{zitadelNextGen-C8m49W5h.d.mts → zitadelNextGen-DPyZep6V.d.mts} +259 -37
- package/dist/zitadelNextGen-DPyZep6V.d.mts.map +1 -0
- package/package.json +1 -1
- package/src/generated/endpoints/zitadelNextGen.msw.ts +3264 -452
- package/src/generated/endpoints/zitadelNextGen.ts +623 -60
- package/src/generated/endpoints/zitadelNextGen.zod.ts +6812 -2003
- package/src/generated/model/completeClaim410.ts +21 -16
- package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +8 -1
- package/src/generated/model/createBranding201.ts +8 -7
- package/src/generated/model/createBranding201Branding.ts +50 -24
- package/src/generated/model/createBranding201BrandingLayout.ts +8 -4
- package/src/generated/model/createBranding201BrandingShape.ts +31 -0
- package/src/generated/model/createBranding201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/createBranding201BrandingTheme.ts +37 -0
- package/src/generated/model/createBranding201BrandingThemeDark.ts +33 -0
- package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/createBranding201BrandingThemeLight.ts +33 -0
- package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/createBranding201BrandingThemeMode.ts +20 -0
- package/src/generated/model/createBranding201BrandingTypography.ts +49 -0
- package/src/generated/model/createBrandingBody.ts +50 -24
- package/src/generated/model/createBrandingBodyLayout.ts +8 -4
- package/src/generated/model/createBrandingBodyShape.ts +31 -0
- package/src/generated/model/createBrandingBodyShapeDensity.ts +19 -0
- package/src/generated/model/createBrandingBodyTheme.ts +37 -0
- package/src/generated/model/createBrandingBodyThemeDark.ts +33 -0
- package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +222 -0
- package/src/generated/model/createBrandingBodyThemeLight.ts +33 -0
- package/src/generated/model/createBrandingBodyThemeLightPalette.ts +222 -0
- package/src/generated/model/createBrandingBodyThemeMode.ts +20 -0
- package/src/generated/model/createBrandingBodyTypography.ts +49 -0
- package/src/generated/model/createFlow201.ts +8 -7
- package/src/generated/model/createFlow201Branding.ts +50 -24
- package/src/generated/model/createFlow201BrandingLayout.ts +8 -4
- package/src/generated/model/createFlow201BrandingShape.ts +31 -0
- package/src/generated/model/createFlow201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/createFlow201BrandingTheme.ts +37 -0
- package/src/generated/model/createFlow201BrandingThemeDark.ts +33 -0
- package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/createFlow201BrandingThemeLight.ts +33 -0
- package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/createFlow201BrandingThemeMode.ts +20 -0
- package/src/generated/model/createFlow201BrandingTypography.ts +49 -0
- package/src/generated/model/createFlow201StepActionsItem.ts +17 -20
- package/src/generated/model/createFlow201StepActionsItemKind.ts +7 -10
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +6 -6
- package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +1 -3
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/createFlowDefinition201UserSchema.ts +9 -1
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +6 -6
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +1 -3
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/createFlowDefinitionDefault.ts +4 -4
- package/src/generated/model/createGrant201.ts +19 -6
- package/src/generated/model/createGrant201Team.ts +35 -0
- package/src/generated/model/createGrant201TeamStatus.ts +22 -0
- package/src/generated/model/createGrant201User.ts +48 -0
- package/src/generated/model/createGrant201UserAttributes.ts +14 -0
- package/src/generated/model/createGrant201UserMetadata.ts +43 -0
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/createGrant201UserMetadataStatus.ts +20 -0
- package/src/generated/model/createGrantBody.ts +18 -10
- package/src/generated/model/createGrantBodyTeam.ts +25 -0
- package/src/generated/model/createGrantBodyUser.ts +29 -0
- package/src/generated/model/createIdp200.ts +35 -0
- package/src/generated/model/createIdp200Definition.ts +47 -0
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOauth2.ts +52 -0
- package/src/generated/model/createIdp200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp200DefinitionOidc.ts +64 -0
- package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp200DefinitionProtocol.ts +18 -0
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/createIdp201.ts +35 -0
- package/src/generated/model/createIdp201Definition.ts +47 -0
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOauth2.ts +52 -0
- package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp201DefinitionOidc.ts +64 -0
- package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp201DefinitionProtocol.ts +18 -0
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +15 -0
- package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/{createSchema409.ts → createIdp400.ts} +3 -3
- package/src/generated/model/{createSchema400Details.ts → createIdp400Details.ts} +1 -1
- package/src/generated/model/{createSchema400.ts → createIdp401.ts} +3 -3
- package/src/generated/model/{createSchema409Details.ts → createIdp401Details.ts} +1 -1
- package/src/generated/model/createIdp403.ts +20 -0
- package/src/generated/model/createIdp403Details.ts +12 -0
- package/src/generated/model/createIdp404.ts +20 -0
- package/src/generated/model/createIdp404Details.ts +12 -0
- package/src/generated/model/createIdpBody.ts +15 -0
- package/src/generated/model/createIdpBodyIdp.ts +47 -0
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOauth2.ts +52 -0
- package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdpBodyIdpOidc.ts +64 -0
- package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdpBodyIdpProtocol.ts +18 -0
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +15 -0
- package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +12 -0
- package/src/generated/model/createIdpDefault.ts +39 -0
- package/src/generated/model/{createFlowDefinition409Details.ts → createIdpParams.ts} +7 -4
- package/src/generated/model/createRelease200.ts +3 -1
- package/src/generated/model/createRelease201.ts +3 -1
- package/src/generated/model/createReleaseBody.ts +8 -0
- package/src/generated/model/createReleaseDefault.ts +70 -0
- package/src/generated/model/createSchemaBody.ts +9 -1
- package/src/generated/model/createSchemaDefault.ts +141 -12
- package/src/generated/model/createSession201Session.ts +1 -0
- package/src/generated/model/createSession201SessionFactorsItemPayload.ts +8 -1
- package/src/generated/model/createSession201SessionUser.ts +1 -0
- package/src/generated/model/deleteTeam409.ts +20 -0
- package/src/generated/model/deleteTeam409Details.ts +12 -0
- package/src/generated/model/deleteVariableDefault.ts +69 -0
- package/src/generated/model/deleteVariableParams.ts +26 -0
- package/src/generated/model/exchangeHandoff200Session.ts +1 -0
- package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +8 -1
- package/src/generated/model/exchangeHandoff200SessionUser.ts +1 -0
- package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +8 -1
- package/src/generated/model/getBrandingById200.ts +8 -7
- package/src/generated/model/getBrandingById200Branding.ts +50 -24
- package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -4
- package/src/generated/model/getBrandingById200BrandingShape.ts +31 -0
- package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getBrandingById200BrandingTheme.ts +37 -0
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +33 -0
- package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +33 -0
- package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/getBrandingById200BrandingThemeMode.ts +20 -0
- package/src/generated/model/getBrandingById200BrandingTypography.ts +49 -0
- package/src/generated/model/getClaimStatus410.ts +21 -16
- package/src/generated/model/getClaimWindow200.ts +23 -0
- package/src/generated/model/getClaimWindow404.ts +20 -0
- package/src/generated/model/getClaimWindow404Details.ts +12 -0
- package/src/generated/model/getClaimWindow429.ts +20 -0
- package/src/generated/model/getClaimWindow429Details.ts +12 -0
- package/src/generated/model/getClaimWindowDefault.ts +20 -0
- package/src/generated/model/getClaimWindowDefaultDetails.ts +12 -0
- package/src/generated/model/getClaimWindowParams.ts +15 -0
- package/src/generated/model/getEvent200.ts +79 -4
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +6 -6
- package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +1 -3
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/getFlowDefinition200UserSchema.ts +9 -1
- package/src/generated/model/getFlowStep200.ts +8 -7
- package/src/generated/model/getFlowStep200Branding.ts +50 -24
- package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -4
- package/src/generated/model/getFlowStep200BrandingShape.ts +31 -0
- package/src/generated/model/getFlowStep200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getFlowStep200BrandingTheme.ts +37 -0
- package/src/generated/model/getFlowStep200BrandingThemeDark.ts +33 -0
- package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/getFlowStep200BrandingThemeLight.ts +33 -0
- package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/getFlowStep200BrandingThemeMode.ts +20 -0
- package/src/generated/model/getFlowStep200BrandingTypography.ts +49 -0
- package/src/generated/model/getFlowStep200StepActionsItem.ts +17 -20
- package/src/generated/model/getFlowStep200StepActionsItemKind.ts +7 -10
- package/src/generated/model/getGrant200.ts +19 -6
- package/src/generated/model/getGrant200Team.ts +35 -0
- package/src/generated/model/getGrant200TeamStatus.ts +22 -0
- package/src/generated/model/getGrant200User.ts +48 -0
- package/src/generated/model/getGrant200UserAttributes.ts +14 -0
- package/src/generated/model/getGrant200UserMetadata.ts +43 -0
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/getGrant200UserMetadataStatus.ts +20 -0
- package/src/generated/model/getGrantDefault.ts +20 -0
- package/src/generated/model/getGrantExpandItem.ts +29 -0
- package/src/generated/model/getGrantParams.ts +7 -0
- package/src/generated/model/getIdpById200.ts +35 -0
- package/src/generated/model/getIdpById200Definition.ts +47 -0
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOauth2.ts +52 -0
- package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionOidc.ts +64 -0
- package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionProtocol.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpById401.ts +20 -0
- package/src/generated/model/getIdpById401Details.ts +12 -0
- package/src/generated/model/getIdpById403.ts +20 -0
- package/src/generated/model/getIdpById403Details.ts +12 -0
- package/src/generated/model/getIdpById404.ts +20 -0
- package/src/generated/model/getIdpById404Details.ts +12 -0
- package/src/generated/model/getIdpByIdDefault.ts +39 -0
- package/src/generated/model/getIdpByIdParams.ts +15 -0
- package/src/generated/model/getIdpRevisionById200.ts +35 -0
- package/src/generated/model/getIdpRevisionById200Definition.ts +47 -0
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +52 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +64 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpRevisionById401.ts +20 -0
- package/src/generated/model/getIdpRevisionById401Details.ts +12 -0
- package/src/generated/model/getIdpRevisionById403.ts +20 -0
- package/src/generated/model/getIdpRevisionById403Details.ts +12 -0
- package/src/generated/model/getIdpRevisionById404.ts +20 -0
- package/src/generated/model/getIdpRevisionById404Details.ts +12 -0
- package/src/generated/model/getIdpRevisionByIdDefault.ts +39 -0
- package/src/generated/model/getIdpRevisionByIdParams.ts +15 -0
- package/src/generated/model/getMySession200.ts +1 -0
- package/src/generated/model/getMySession200FactorsItemPayload.ts +8 -1
- package/src/generated/model/getMySession200User.ts +1 -0
- package/src/generated/model/getReleaseById200.ts +3 -1
- package/src/generated/model/getReleaseByIdDefault.ts +20 -0
- package/src/generated/model/getSchemaById200Schema.ts +9 -1
- package/src/generated/model/getSchemaByIdDefault.ts +51 -12
- package/src/generated/model/getSession200.ts +1 -0
- package/src/generated/model/getSession200FactorsItemPayload.ts +8 -1
- package/src/generated/model/getSession200User.ts +1 -0
- package/src/generated/model/getVariable200.ts +25 -0
- package/src/generated/model/getVariableDefault.ts +69 -0
- package/src/generated/model/getVariableParams.ts +26 -0
- package/src/generated/model/getVariables200.ts +29 -0
- package/src/generated/model/getVariablesDefault.ts +69 -0
- package/src/generated/model/getVariablesParams.ts +26 -0
- package/src/generated/model/index.ts +328 -57
- package/src/generated/model/{createFlowDefinition409.ts → initClaim410.ts} +8 -4
- package/src/generated/model/listEvents200DataItem.ts +79 -4
- package/src/generated/model/listFlowDefinitions200.ts +3 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +6 -6
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +1 -3
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +9 -1
- package/src/generated/model/listFlowDefinitionsParams.ts +23 -0
- package/src/generated/model/listFlowDefinitionsRevisions.ts +15 -0
- package/src/generated/model/listIdpRevisions200.ts +21 -0
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +35 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +47 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +12 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +52 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +64 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +15 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +14 -0
- package/src/generated/model/listIdpRevisions401.ts +20 -0
- package/src/generated/model/{createSchemaDefaultDetails.ts → listIdpRevisions401Details.ts} +1 -1
- package/src/generated/model/listIdpRevisions403.ts +20 -0
- package/src/generated/model/listIdpRevisions403Details.ts +12 -0
- package/src/generated/model/listIdpRevisions404.ts +20 -0
- package/src/generated/model/listIdpRevisions404Details.ts +12 -0
- package/src/generated/model/listIdpRevisionsDefault.ts +39 -0
- package/src/generated/model/listIdpRevisionsParams.ts +29 -0
- package/src/generated/model/listMyProjects200.ts +20 -0
- package/src/generated/model/listMyProjects200ProjectsItem.ts +24 -0
- package/src/generated/model/listMyProjects400.ts +20 -0
- package/src/generated/model/listMyProjects400Details.ts +12 -0
- package/src/generated/model/listMyProjects401.ts +24 -0
- package/src/generated/model/listMyProjects500.ts +20 -0
- package/src/generated/model/listMyProjects500Details.ts +12 -0
- package/src/generated/model/listMyProjectsDefault.ts +39 -0
- package/src/generated/model/listMyProjectsParams.ts +24 -0
- package/src/generated/model/listReleasesDefault.ts +20 -0
- package/src/generated/model/listSchemas200SchemasItemSchema.ts +9 -1
- package/src/generated/model/listSchemasDefault.ts +51 -12
- package/src/generated/model/patchMyUser200.ts +71 -0
- package/src/generated/model/patchMyUser200Attributes.ts +14 -0
- package/src/generated/model/patchMyUser200Metadata.ts +43 -0
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/patchMyUser200MetadataStatus.ts +20 -0
- package/src/generated/model/patchMyUser200TeamsItem.ts +33 -0
- package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +21 -0
- package/src/generated/model/patchMyUser400.ts +20 -0
- package/src/generated/model/patchMyUser400Details.ts +12 -0
- package/src/generated/model/patchMyUser401.ts +20 -0
- package/src/generated/model/patchMyUser401Details.ts +12 -0
- package/src/generated/model/patchMyUser404.ts +24 -0
- package/src/generated/model/patchMyUser409.ts +20 -0
- package/src/generated/model/patchMyUser409Details.ts +12 -0
- package/src/generated/model/patchMyUserBody.ts +25 -0
- package/src/generated/model/{listSchemasDefaultDetails.ts → patchMyUserBodyAttributes.ts} +4 -2
- package/src/generated/model/{deleteFlowDefinitionDefault.ts → patchMyUserDefault.ts} +8 -8
- package/src/generated/model/patchUserByID200.ts +71 -0
- package/src/generated/model/patchUserByID200Attributes.ts +14 -0
- package/src/generated/model/patchUserByID200Metadata.ts +43 -0
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/patchUserByID200MetadataStatus.ts +20 -0
- package/src/generated/model/patchUserByID200TeamsItem.ts +33 -0
- package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +21 -0
- package/src/generated/model/{getSchemaById400.ts → patchUserByID400.ts} +3 -3
- package/src/generated/model/{getSchemaById400Details.ts → patchUserByID400Details.ts} +1 -1
- package/src/generated/model/{getSchemaById404.ts → patchUserByID401.ts} +3 -3
- package/src/generated/model/{getSchemaById404Details.ts → patchUserByID401Details.ts} +1 -1
- package/src/generated/model/patchUserByID403.ts +20 -0
- package/src/generated/model/patchUserByID403Details.ts +12 -0
- package/src/generated/model/patchUserByID404.ts +20 -0
- package/src/generated/model/patchUserByID404Details.ts +12 -0
- package/src/generated/model/patchUserByID409.ts +20 -0
- package/src/generated/model/patchUserByID409Details.ts +12 -0
- package/src/generated/model/patchUserByIDBody.ts +39 -0
- package/src/generated/model/{getSchemaByIdDefaultDetails.ts → patchUserByIDBodyAttributes.ts} +4 -2
- package/src/generated/model/patchUserByIDDefault.ts +89 -0
- package/src/generated/model/queryGrants200.ts +20 -0
- package/src/generated/model/queryGrants200GrantsItem.ts +47 -0
- package/src/generated/model/queryGrants200GrantsItemObjectType.ts +17 -0
- package/src/generated/model/queryGrants200GrantsItemRelation.ts +19 -0
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +35 -0
- package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +22 -0
- package/src/generated/model/queryGrants200GrantsItemUser.ts +48 -0
- package/src/generated/model/queryGrants200GrantsItemUserAttributes.ts +14 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +43 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataStatus.ts +20 -0
- package/src/generated/model/queryGrants400.ts +20 -0
- package/src/generated/model/queryGrants400Details.ts +12 -0
- package/src/generated/model/queryGrants401.ts +20 -0
- package/src/generated/model/queryGrants401Details.ts +12 -0
- package/src/generated/model/queryGrants403.ts +20 -0
- package/src/generated/model/queryGrants403Details.ts +12 -0
- package/src/generated/model/queryGrantsBody.ts +34 -0
- package/src/generated/model/queryGrantsBodyExpandItem.ts +30 -0
- package/src/generated/model/queryGrantsBodyFilterItem.ts +33 -0
- package/src/generated/model/queryGrantsBodyFilterItemField.ts +27 -0
- package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +30 -0
- package/src/generated/model/queryGrantsBodySorting.ts +17 -0
- package/src/generated/model/queryGrantsBodySortingDirection.ts +15 -0
- package/src/generated/model/queryGrantsBodySortingField.ts +21 -0
- package/src/generated/model/queryGrantsDefault.ts +99 -0
- package/src/generated/model/queryGrantsParams.ts +15 -0
- package/src/generated/model/queryIdps200.ts +21 -0
- package/src/generated/model/queryIdps200IdpsItem.ts +35 -0
- package/src/generated/model/queryIdps200IdpsItemDefinition.ts +47 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +12 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +52 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +64 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +15 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/queryIdps400.ts +20 -0
- package/src/generated/model/queryIdps400Details.ts +12 -0
- package/src/generated/model/queryIdps401.ts +20 -0
- package/src/generated/model/queryIdps401Details.ts +12 -0
- package/src/generated/model/queryIdps403.ts +20 -0
- package/src/generated/model/queryIdps403Details.ts +12 -0
- package/src/generated/model/queryIdps404.ts +20 -0
- package/src/generated/model/queryIdps404Details.ts +12 -0
- package/src/generated/model/queryIdpsBody.ts +29 -0
- package/src/generated/model/queryIdpsBodyFilterItem.ts +31 -0
- package/src/generated/model/queryIdpsBodyFilterItemField.ts +22 -0
- package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +30 -0
- package/src/generated/model/queryIdpsBodySorting.ts +22 -0
- package/src/generated/model/queryIdpsBodySortingDirection.ts +15 -0
- package/src/generated/model/queryIdpsBodySortingField.ts +22 -0
- package/src/generated/model/queryIdpsDefault.ts +39 -0
- package/src/generated/model/queryIdpsParams.ts +15 -0
- package/src/generated/model/querySessions200SessionsItem.ts +1 -0
- package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +8 -1
- package/src/generated/model/querySessions200SessionsItemUser.ts +1 -0
- package/src/generated/model/submitFlowStep200.ts +8 -7
- package/src/generated/model/submitFlowStep200Branding.ts +50 -24
- package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -4
- package/src/generated/model/submitFlowStep200BrandingShape.ts +31 -0
- package/src/generated/model/submitFlowStep200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/submitFlowStep200BrandingTheme.ts +37 -0
- package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +33 -0
- package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +33 -0
- package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/submitFlowStep200BrandingThemeMode.ts +20 -0
- package/src/generated/model/submitFlowStep200BrandingTypography.ts +49 -0
- package/src/generated/model/submitFlowStep200StepActionsItem.ts +17 -20
- package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +7 -10
- package/src/generated/model/submitFlowStep400.ts +8 -7
- package/src/generated/model/submitFlowStep400Branding.ts +50 -24
- package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -4
- package/src/generated/model/submitFlowStep400BrandingShape.ts +31 -0
- package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +19 -0
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +37 -0
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +33 -0
- package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +33 -0
- package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +20 -0
- package/src/generated/model/submitFlowStep400BrandingTypography.ts +49 -0
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +17 -20
- package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +7 -10
- package/src/generated/model/updateVariables200.ts +29 -0
- package/src/generated/model/updateVariablesBody.ts +60 -0
- package/src/generated/model/{updateFlowDefinitionDefault.ts → updateVariablesDefault.ts} +22 -12
- package/src/generated/model/updateVariablesParams.ts +26 -0
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +8 -1
- package/src/generated/model/verifyChallengeProofBody.ts +1 -1
- package/src/generated/model/verifyChallengeProofDefault.ts +10 -0
- package/dist/index-BK4Q468Q.d.mts.map +0 -1
- package/dist/zitadelNextGen-C8m49W5h.d.mts.map +0 -1
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/createGrant201PrincipalType.ts +0 -18
- package/src/generated/model/createGrantBodyPrincipalType.ts +0 -18
- package/src/generated/model/deleteFlowDefinition409.ts +0 -20
- package/src/generated/model/deleteFlowDefinition409Details.ts +0 -12
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/getGrant200PrincipalType.ts +0 -18
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinition200.ts +0 -34
- package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +0 -71
- package/src/generated/model/updateFlowDefinition200FlowDefinitionAudience.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStatus.ts +0 -26
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItem.ts +0 -71
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +0 -42
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +0 -31
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemComplete.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGates.ts +0 -35
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +0 -14
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemTransitions.ts +0 -46
- package/src/generated/model/updateFlowDefinition200UserSchema.ts +0 -103
- package/src/generated/model/updateFlowDefinition400.ts +0 -20
- package/src/generated/model/updateFlowDefinition400Details.ts +0 -12
- package/src/generated/model/updateFlowDefinition404.ts +0 -20
- package/src/generated/model/updateFlowDefinition404Details.ts +0 -12
- package/src/generated/model/updateFlowDefinitionBody.ts +0 -30
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +0 -71
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionAudience.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStatus.ts +0 -26
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -71
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -42
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -31
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -35
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -14
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -46
|
@@ -23,9 +23,14 @@ const CreateUserBody = zod.object({
|
|
|
23
23
|
/**
|
|
24
24
|
* Returns the users of a project, paginated with a cursor.
|
|
25
25
|
|
|
26
|
-
The project comes from the credential, not from a parameter: the
|
|
27
|
-
is bound to the
|
|
28
|
-
|
|
26
|
+
The project comes from the credential, not from a parameter: the
|
|
27
|
+
operation is bound to the credential's home project by construction
|
|
28
|
+
(oauth2 secret or user-bound session). This is why it takes no
|
|
29
|
+
`project_id`, unlike the other query endpoints.
|
|
30
|
+
|
|
31
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
32
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
33
|
+
is a follow-up (#1140).
|
|
29
34
|
|
|
30
35
|
* @summary Query users
|
|
31
36
|
*/
|
|
@@ -161,6 +166,59 @@ const GetUserByIDResponse = zod.object({
|
|
|
161
166
|
teams_truncated: zod.boolean().optional().describe("True when the user is on more teams than the embedded list carries. The\nembedded list is capped and cannot be paged; read them all at\n`GET /users/{user_id}/teams`. Present only alongside `teams`.\n")
|
|
162
167
|
}).describe("A user represents an individual identity in the system. It can be used to\nrepresent a human user, but also a service account or any other type of\nidentity.\n\n`attributes` is the document that satisfies the user schema named by\n`schema`: its property names and types are defined entirely by that schema,\nand it is what the schema validates. The rest of the object — `id`,\n`schema`, `metadata` — is the server-owned envelope. Keeping the two apart\nmeans a schema may name a property `id` or `metadata` without colliding with\nthe envelope, and closed-world keywords (`additionalProperties: false`,\n`propertyNames`, `unevaluatedProperties`) behave as their author expects.\n");
|
|
163
168
|
/**
|
|
169
|
+
* Partially updates a user's schema-defined attributes, and optionally
|
|
170
|
+
moves the user to another registered schema. The merged result is
|
|
171
|
+
validated against the schema before commit. Concurrent writes are
|
|
172
|
+
last-write-wins.
|
|
173
|
+
|
|
174
|
+
* @summary Update user by ID
|
|
175
|
+
*/
|
|
176
|
+
const patchUserByIDPathUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
177
|
+
const PatchUserByIDParams = zod.object({ user_id: zod.string().regex(patchUserByIDPathUserIdRegExp) });
|
|
178
|
+
const PatchUserByIDBody = zod.object({
|
|
179
|
+
schema: zod.string().min(1).optional().describe("The schema the user follows after this patch. Omit it to keep the\ncurrent schema. The schema must already be registered via `/schemas`.\n"),
|
|
180
|
+
attributes: zod.record(zod.string(), zod.unknown()).optional().describe("The changed attributes only. `null` deletes an attribute; omitted\nkeys are untouched.\n")
|
|
181
|
+
}).describe("A partial update, merged into the user's current state. At least one of\n`schema` and `attributes` must be present; an empty patch is rejected with\n`user.invalid`.\n\n`attributes` is merged key by key into the stored attributes: an omitted\nkey stays untouched, an object merges recursively, `null` deletes the\nattribute, and any other value replaces the stored one. The merged result\nis validated as a whole against the user's schema, so a patch that deletes\nor invalidates a required property is rejected with `user.invalid`.\n\n`schema` moves the user to another registered schema — the ADR 009 §4\nupgrade mechanism. The request must be self-contained: merged attributes\nare validated against the new schema before commit, and every uniqueness\nclaim is recomputed under the new schema's annotations.\n");
|
|
182
|
+
const patchUserByIDResponseIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
183
|
+
const PatchUserByIDResponse = zod.object({
|
|
184
|
+
id: zod.string().regex(patchUserByIDResponseIdRegExp),
|
|
185
|
+
schema: zod.string().describe("The schema that defines the content of `attributes`. These schemas can be\ncreated using the `/schemas` endpoint. A default schema is provided.\nThis schema can be retrieved using the same endpoint.\n"),
|
|
186
|
+
attributes: zod.record(zod.string(), zod.unknown()).describe("The user's content, satisfying the schema named by `schema`. Property\nnames and types are determined entirely by that schema.\n"),
|
|
187
|
+
metadata: zod.object({
|
|
188
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
|
|
189
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
|
|
190
|
+
status: zod.enum([
|
|
191
|
+
"active",
|
|
192
|
+
"suspended",
|
|
193
|
+
"deactivated",
|
|
194
|
+
"pending_purge"
|
|
195
|
+
]).describe("The status of the user."),
|
|
196
|
+
lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team memberships: it decides who may deprovision the user, not\nwhich teams the user collaborates in. Memberships are their own paginated\nresource — `GET /users/{user_id}/teams`.\n"),
|
|
197
|
+
lifecycle_owner_team: zod.union([zod.object({
|
|
198
|
+
id: zod.string().describe("The unique identifier of the team."),
|
|
199
|
+
name: zod.string().describe("The name of the team."),
|
|
200
|
+
status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
|
|
201
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
|
|
202
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
|
|
203
|
+
}).describe("Details of a team."), zod.null()]).optional().describe("The team named by `lifecycle_owner_team_id`, present only when the\nrequest asked for it with `expand: [\"lifecycle_owner_team\"]` (ADR 059).\nAbsent means it was not requested; `null` means the user is self-owned\nand there is no owner to resolve.\n\nRequesting it does not guarantee it is present on every user. Today\n`team.read` is checked once for the whole request, so it is; once that\ncheck is per team, a page may contain a user whose owner the caller may\nnot read, and such a row answers with neither the team nor `null` —\n`null` already means self-owned. What it answers with instead is decided\nwith the granular scopes (#420); do not read the two cases above as the\ncomplete set.\n\nThis is the same representation `GET /teams/{team_id}` serves. It is a\nsingle team, not a collection, so it carries no cap and no truncation\nflag.\n")
|
|
204
|
+
}),
|
|
205
|
+
identifier: zod.string().optional().describe("The current value of the user schema's designated identifier\n(`x-identifier`), resolved live at read time. Absent when the schema\ndesignates no identifier or the user carries no value for it.\n"),
|
|
206
|
+
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
207
|
+
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order, resolved live at read time. Purely presentational.\nAbsent when the schema designates no display properties or the user\ncarries no values for them. Clients render `display`, falling back\nto `identifier`, then `id`.\n"),
|
|
208
|
+
teams: zod.array(zod.object({
|
|
209
|
+
id: zod.string().describe("The unique identifier of the team."),
|
|
210
|
+
name: zod.string().describe("The name of the team."),
|
|
211
|
+
membership_status: zod.enum([
|
|
212
|
+
"pending",
|
|
213
|
+
"active",
|
|
214
|
+
"inactive"
|
|
215
|
+
]).describe("The user's participation state on this team. Memberships the user was\nremoved from are not returned.\n"),
|
|
216
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the user joined this team."),
|
|
217
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when this membership was last changed.")
|
|
218
|
+
}).describe("One entry of a user's team roster: a team the user belongs to, with the\nmembership's participation state. The team's `name` travels with the entry, so\na page renders without a follow-up `POST /teams/query` per row.\n\nRoster membership is not lifecycle ownership. A user can belong to many teams\nwhile still owning their own lifecycle — that single owning team is reported\nas `metadata.lifecycle_owner_team_id` on the user itself.\n")).optional().describe("The user's team memberships, present only when the request asked for them with\n`expand: [\"teams\"]` (ADR 059). Absent means it was not requested; `[]`\nmeans the user has none.\n\nDeliberately outside `metadata`: memberships are a related collection, not\npart of the server-owned envelope, and it is a different concept from\n`metadata.lifecycle_owner_team_id` (ADR 024).\n"),
|
|
219
|
+
teams_truncated: zod.boolean().optional().describe("True when the user is on more teams than the embedded list carries. The\nembedded list is capped and cannot be paged; read them all at\n`GET /users/{user_id}/teams`. Present only alongside `teams`.\n")
|
|
220
|
+
}).describe("A user represents an individual identity in the system. It can be used to\nrepresent a human user, but also a service account or any other type of\nidentity.\n\n`attributes` is the document that satisfies the user schema named by\n`schema`: its property names and types are defined entirely by that schema,\nand it is what the schema validates. The rest of the object — `id`,\n`schema`, `metadata` — is the server-owned envelope. Keeping the two apart\nmeans a schema may name a property `id` or `metadata` without colliding with\nthe envelope, and closed-world keywords (`additionalProperties: false`,\n`propertyNames`, `unevaluatedProperties`) behave as their author expects.\n");
|
|
221
|
+
/**
|
|
164
222
|
* @summary Delete user by ID
|
|
165
223
|
*/
|
|
166
224
|
const deleteUserByIDPathUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
@@ -305,6 +363,80 @@ const GetMyUserResponse = zod.object({
|
|
|
305
363
|
teams_truncated: zod.boolean().optional().describe("True when the user is on more teams than the embedded list carries. The\nembedded list is capped and cannot be paged; read them all at\n`GET /users/{user_id}/teams`. Present only alongside `teams`.\n")
|
|
306
364
|
}).describe("A user represents an individual identity in the system. It can be used to\nrepresent a human user, but also a service account or any other type of\nidentity.\n\n`attributes` is the document that satisfies the user schema named by\n`schema`: its property names and types are defined entirely by that schema,\nand it is what the schema validates. The rest of the object — `id`,\n`schema`, `metadata` — is the server-owned envelope. Keeping the two apart\nmeans a schema may name a property `id` or `metadata` without colliding with\nthe envelope, and closed-world keywords (`additionalProperties: false`,\n`propertyNames`, `unevaluatedProperties`) behave as their author expects.\n");
|
|
307
365
|
/**
|
|
366
|
+
* Partially updates the caller's own schema-defined attributes. The merged
|
|
367
|
+
result is validated against the user's schema before commit. Concurrent
|
|
368
|
+
writes are last-write-wins.
|
|
369
|
+
|
|
370
|
+
* @summary Update my user information
|
|
371
|
+
*/
|
|
372
|
+
const PatchMyUserBody = zod.object({ attributes: zod.record(zod.string(), zod.unknown()).describe("The changed attributes only. `null` deletes an attribute; omitted\nkeys are untouched.\n") }).describe("A partial update of the caller's own attributes, merged into the current\nstate: an omitted key stays untouched, an object merges recursively,\n`null` deletes the attribute, and any other value replaces the stored one.\nThe merged result is validated as a whole against the user's schema.\n\nUnlike `PATCH /users/{user_id}`, the schema pointer cannot be moved here:\nschema upgrades are a management operation.\n");
|
|
373
|
+
const patchMyUserResponseIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
374
|
+
const PatchMyUserResponse = zod.object({
|
|
375
|
+
id: zod.string().regex(patchMyUserResponseIdRegExp),
|
|
376
|
+
schema: zod.string().describe("The schema that defines the content of `attributes`. These schemas can be\ncreated using the `/schemas` endpoint. A default schema is provided.\nThis schema can be retrieved using the same endpoint.\n"),
|
|
377
|
+
attributes: zod.record(zod.string(), zod.unknown()).describe("The user's content, satisfying the schema named by `schema`. Property\nnames and types are determined entirely by that schema.\n"),
|
|
378
|
+
metadata: zod.object({
|
|
379
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
|
|
380
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
|
|
381
|
+
status: zod.enum([
|
|
382
|
+
"active",
|
|
383
|
+
"suspended",
|
|
384
|
+
"deactivated",
|
|
385
|
+
"pending_purge"
|
|
386
|
+
]).describe("The status of the user."),
|
|
387
|
+
lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team memberships: it decides who may deprovision the user, not\nwhich teams the user collaborates in. Memberships are their own paginated\nresource — `GET /users/{user_id}/teams`.\n"),
|
|
388
|
+
lifecycle_owner_team: zod.union([zod.object({
|
|
389
|
+
id: zod.string().describe("The unique identifier of the team."),
|
|
390
|
+
name: zod.string().describe("The name of the team."),
|
|
391
|
+
status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
|
|
392
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
|
|
393
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
|
|
394
|
+
}).describe("Details of a team."), zod.null()]).optional().describe("The team named by `lifecycle_owner_team_id`, present only when the\nrequest asked for it with `expand: [\"lifecycle_owner_team\"]` (ADR 059).\nAbsent means it was not requested; `null` means the user is self-owned\nand there is no owner to resolve.\n\nRequesting it does not guarantee it is present on every user. Today\n`team.read` is checked once for the whole request, so it is; once that\ncheck is per team, a page may contain a user whose owner the caller may\nnot read, and such a row answers with neither the team nor `null` —\n`null` already means self-owned. What it answers with instead is decided\nwith the granular scopes (#420); do not read the two cases above as the\ncomplete set.\n\nThis is the same representation `GET /teams/{team_id}` serves. It is a\nsingle team, not a collection, so it carries no cap and no truncation\nflag.\n")
|
|
395
|
+
}),
|
|
396
|
+
identifier: zod.string().optional().describe("The current value of the user schema's designated identifier\n(`x-identifier`), resolved live at read time. Absent when the schema\ndesignates no identifier or the user carries no value for it.\n"),
|
|
397
|
+
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
398
|
+
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order, resolved live at read time. Purely presentational.\nAbsent when the schema designates no display properties or the user\ncarries no values for them. Clients render `display`, falling back\nto `identifier`, then `id`.\n"),
|
|
399
|
+
teams: zod.array(zod.object({
|
|
400
|
+
id: zod.string().describe("The unique identifier of the team."),
|
|
401
|
+
name: zod.string().describe("The name of the team."),
|
|
402
|
+
membership_status: zod.enum([
|
|
403
|
+
"pending",
|
|
404
|
+
"active",
|
|
405
|
+
"inactive"
|
|
406
|
+
]).describe("The user's participation state on this team. Memberships the user was\nremoved from are not returned.\n"),
|
|
407
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the user joined this team."),
|
|
408
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when this membership was last changed.")
|
|
409
|
+
}).describe("One entry of a user's team roster: a team the user belongs to, with the\nmembership's participation state. The team's `name` travels with the entry, so\na page renders without a follow-up `POST /teams/query` per row.\n\nRoster membership is not lifecycle ownership. A user can belong to many teams\nwhile still owning their own lifecycle — that single owning team is reported\nas `metadata.lifecycle_owner_team_id` on the user itself.\n")).optional().describe("The user's team memberships, present only when the request asked for them with\n`expand: [\"teams\"]` (ADR 059). Absent means it was not requested; `[]`\nmeans the user has none.\n\nDeliberately outside `metadata`: memberships are a related collection, not\npart of the server-owned envelope, and it is a different concept from\n`metadata.lifecycle_owner_team_id` (ADR 024).\n"),
|
|
410
|
+
teams_truncated: zod.boolean().optional().describe("True when the user is on more teams than the embedded list carries. The\nembedded list is capped and cannot be paged; read them all at\n`GET /users/{user_id}/teams`. Present only alongside `teams`.\n")
|
|
411
|
+
}).describe("A user represents an individual identity in the system. It can be used to\nrepresent a human user, but also a service account or any other type of\nidentity.\n\n`attributes` is the document that satisfies the user schema named by\n`schema`: its property names and types are defined entirely by that schema,\nand it is what the schema validates. The rest of the object — `id`,\n`schema`, `metadata` — is the server-owned envelope. Keeping the two apart\nmeans a schema may name a property `id` or `metadata` without colliding with\nthe envelope, and closed-world keywords (`additionalProperties: false`,\n`propertyNames`, `unevaluatedProperties`) behave as their author expects.\n");
|
|
412
|
+
/**
|
|
413
|
+
* The projects the signed-in user holds an active grant on, either directly or
|
|
414
|
+
through a team they are a member of. Ordered by project id and paged with an
|
|
415
|
+
opaque cursor.
|
|
416
|
+
|
|
417
|
+
This is not the same question as `queryProjects`, which answers with the one
|
|
418
|
+
project the calling credential is bound to. Here the session is the caller
|
|
419
|
+
and the grants are the answer, so the list spans projects.
|
|
420
|
+
|
|
421
|
+
* @summary List the projects I can act on
|
|
422
|
+
*/
|
|
423
|
+
const listMyProjectsQueryLimitDefault = 20;
|
|
424
|
+
const listMyProjectsQueryLimitMax = 100;
|
|
425
|
+
const ListMyProjectsQueryParams = zod.strictObject({
|
|
426
|
+
limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
|
|
427
|
+
page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n")
|
|
428
|
+
});
|
|
429
|
+
const ListMyProjectsResponse = zod.object({
|
|
430
|
+
projects: zod.array(zod.object({
|
|
431
|
+
id: zod.string().describe("The unique identifier of the project."),
|
|
432
|
+
name: zod.string().describe("The name of the project."),
|
|
433
|
+
preview_origins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
|
|
434
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
|
|
435
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
|
|
436
|
+
}).describe("The current state of a project.")),
|
|
437
|
+
next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nPresent when the page was full. A following request may return an empty page\nand no token, which ends the listing.\n")
|
|
438
|
+
}).describe("Paginated list of projects, ordered by project id.");
|
|
439
|
+
/**
|
|
308
440
|
* Resolves a flow definition based on purpose + audience context and returns
|
|
309
441
|
the first capability step. Creates a new session implicitly unless
|
|
310
442
|
`session_id` is provided (for step-up / reauth on an existing session).
|
|
@@ -364,6 +496,72 @@ const getFlowStepResponseStepGatesDefault = {};
|
|
|
364
496
|
const getFlowStepResponseStepSsoProvidersDefault = [];
|
|
365
497
|
const getFlowStepResponseBrandingLayoutDefault = `centered`;
|
|
366
498
|
const getFlowStepResponseBrandingLiquidTemplateMax = 131072;
|
|
499
|
+
const getFlowStepResponseBrandingLogoUrlMax = 2048;
|
|
500
|
+
const getFlowStepResponseBrandingLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
501
|
+
const getFlowStepResponseBrandingHeroUrlMax = 2048;
|
|
502
|
+
const getFlowStepResponseBrandingHeroUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
503
|
+
const getFlowStepResponseBrandingThemeLightLogoUrlMax = 2048;
|
|
504
|
+
const getFlowStepResponseBrandingThemeLightLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
505
|
+
const getFlowStepResponseBrandingThemeLightPalettePrimaryMax = 128;
|
|
506
|
+
const getFlowStepResponseBrandingThemeLightPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
507
|
+
const getFlowStepResponseBrandingThemeLightPaletteOnPrimaryMax = 128;
|
|
508
|
+
const getFlowStepResponseBrandingThemeLightPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
509
|
+
const getFlowStepResponseBrandingThemeLightPaletteBackgroundMax = 128;
|
|
510
|
+
const getFlowStepResponseBrandingThemeLightPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
511
|
+
const getFlowStepResponseBrandingThemeLightPaletteSurfaceMax = 128;
|
|
512
|
+
const getFlowStepResponseBrandingThemeLightPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
513
|
+
const getFlowStepResponseBrandingThemeLightPaletteMutedMax = 128;
|
|
514
|
+
const getFlowStepResponseBrandingThemeLightPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
515
|
+
const getFlowStepResponseBrandingThemeLightPaletteBorderMax = 128;
|
|
516
|
+
const getFlowStepResponseBrandingThemeLightPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
517
|
+
const getFlowStepResponseBrandingThemeLightPaletteTextMax = 128;
|
|
518
|
+
const getFlowStepResponseBrandingThemeLightPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
519
|
+
const getFlowStepResponseBrandingThemeLightPaletteTextMutedMax = 128;
|
|
520
|
+
const getFlowStepResponseBrandingThemeLightPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
521
|
+
const getFlowStepResponseBrandingThemeLightPaletteLinkMax = 128;
|
|
522
|
+
const getFlowStepResponseBrandingThemeLightPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
523
|
+
const getFlowStepResponseBrandingThemeLightPaletteSuccessMax = 128;
|
|
524
|
+
const getFlowStepResponseBrandingThemeLightPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
525
|
+
const getFlowStepResponseBrandingThemeLightPaletteWarningMax = 128;
|
|
526
|
+
const getFlowStepResponseBrandingThemeLightPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
527
|
+
const getFlowStepResponseBrandingThemeLightPaletteErrorMax = 128;
|
|
528
|
+
const getFlowStepResponseBrandingThemeLightPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
529
|
+
const getFlowStepResponseBrandingThemeDarkLogoUrlMax = 2048;
|
|
530
|
+
const getFlowStepResponseBrandingThemeDarkLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
531
|
+
const getFlowStepResponseBrandingThemeDarkPalettePrimaryMax = 128;
|
|
532
|
+
const getFlowStepResponseBrandingThemeDarkPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
533
|
+
const getFlowStepResponseBrandingThemeDarkPaletteOnPrimaryMax = 128;
|
|
534
|
+
const getFlowStepResponseBrandingThemeDarkPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
535
|
+
const getFlowStepResponseBrandingThemeDarkPaletteBackgroundMax = 128;
|
|
536
|
+
const getFlowStepResponseBrandingThemeDarkPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
537
|
+
const getFlowStepResponseBrandingThemeDarkPaletteSurfaceMax = 128;
|
|
538
|
+
const getFlowStepResponseBrandingThemeDarkPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
539
|
+
const getFlowStepResponseBrandingThemeDarkPaletteMutedMax = 128;
|
|
540
|
+
const getFlowStepResponseBrandingThemeDarkPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
541
|
+
const getFlowStepResponseBrandingThemeDarkPaletteBorderMax = 128;
|
|
542
|
+
const getFlowStepResponseBrandingThemeDarkPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
543
|
+
const getFlowStepResponseBrandingThemeDarkPaletteTextMax = 128;
|
|
544
|
+
const getFlowStepResponseBrandingThemeDarkPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
545
|
+
const getFlowStepResponseBrandingThemeDarkPaletteTextMutedMax = 128;
|
|
546
|
+
const getFlowStepResponseBrandingThemeDarkPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
547
|
+
const getFlowStepResponseBrandingThemeDarkPaletteLinkMax = 128;
|
|
548
|
+
const getFlowStepResponseBrandingThemeDarkPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
549
|
+
const getFlowStepResponseBrandingThemeDarkPaletteSuccessMax = 128;
|
|
550
|
+
const getFlowStepResponseBrandingThemeDarkPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
551
|
+
const getFlowStepResponseBrandingThemeDarkPaletteWarningMax = 128;
|
|
552
|
+
const getFlowStepResponseBrandingThemeDarkPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
553
|
+
const getFlowStepResponseBrandingThemeDarkPaletteErrorMax = 128;
|
|
554
|
+
const getFlowStepResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
555
|
+
const getFlowStepResponseBrandingTypographyFontFamilyMax = 256;
|
|
556
|
+
const getFlowStepResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
557
|
+
const getFlowStepResponseBrandingTypographyFontUrlMax = 2048;
|
|
558
|
+
const getFlowStepResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)");
|
|
559
|
+
const getFlowStepResponseBrandingTypographyScaleMin = .75;
|
|
560
|
+
const getFlowStepResponseBrandingTypographyScaleMax = 1.25;
|
|
561
|
+
const getFlowStepResponseBrandingShapeRadiusTwoMin = 0;
|
|
562
|
+
const getFlowStepResponseBrandingShapeRadiusTwoMax = 32;
|
|
563
|
+
const getFlowStepResponseBrandingShapeLogoScaleMin = .5;
|
|
564
|
+
const getFlowStepResponseBrandingShapeLogoScaleMax = 2;
|
|
367
565
|
const GetFlowStepResponse = zod.object({
|
|
368
566
|
id: zod.string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
|
|
369
567
|
session_id: zod.string().describe("Underlying session ID. Stable across all stacked flows."),
|
|
@@ -407,17 +605,17 @@ const GetFlowStepResponse = zod.object({
|
|
|
407
605
|
}).optional().describe("Schema-derived rules the frontend SHOULD apply at input time. The\nserver runs the same rules on submit and is the only authority on\nwhether the step advances — these rules are a UX hint to reduce\nround trips, not a contract guarantee.\n\nOmitted entirely when the field has no rules beyond its `type`.\nEach key mirrors a JSON Schema keyword on the underlying user\nproperty; absent keys mean no rule.\n")
|
|
408
606
|
}).describe("A data input capability. Describes what the user must provide.\nDoes not contain display text — only a `text_key` resolved client-side.\n")).default(getFlowStepResponseStepFieldsDefault).describe("Ordered list of input fields to collect. Field metadata (type, validation)\nis resolved by the engine from the flow's user schema. The LiquidJS\ntemplate iterates this array; for keyed lookup it builds a name-indexed\nmap locally.\n"),
|
|
409
607
|
actions: zod.array(zod.object({
|
|
410
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
608
|
+
name: zod.string().min(1).describe("Action identifier. Sent back in the submit request as `action`."),
|
|
411
609
|
kind: zod.enum([
|
|
412
610
|
"submit",
|
|
413
611
|
"passkey",
|
|
414
612
|
"passkey_register",
|
|
415
613
|
"navigate",
|
|
416
614
|
"back"
|
|
417
|
-
]).describe("
|
|
418
|
-
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis
|
|
419
|
-
text_key: zod.string().optional().describe("
|
|
420
|
-
}).describe("
|
|
615
|
+
]).describe("How the client should treat the action:\n- `submit`: collect the step's fields and submit.\n- `passkey`: run a WebAuthn assertion, then submit the result.\n- `passkey_register`: run a WebAuthn registration, then submit the result.\n- `navigate`: submit without collecting fields; pure routing.\n- `back`: return the user to the previous step. Engine-injected, never\n declared in a flow definition.\n"),
|
|
616
|
+
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis.\n"),
|
|
617
|
+
text_key: zod.string().optional().describe("Localization key for the action's label, resolved client-side from a\nlocale dictionary.\n")
|
|
618
|
+
}).describe("An action the engine offers on a runtime step. Every declared action of the\ndefinition's step appears here, plus the engine-injected `back` whenever\nreturning to the previous step is possible.\n")).default(getFlowStepResponseStepActionsDefault).describe("Ordered list of available user actions. The LiquidJS template iterates\nthis array and builds a name-indexed map locally for keyed lookup.\n"),
|
|
421
619
|
gates: zod.record(zod.string(), zod.object({
|
|
422
620
|
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
423
621
|
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
@@ -435,12 +633,72 @@ const GetFlowStepResponse = zod.object({
|
|
|
435
633
|
}).optional().describe("A pending authentication challenge issued by the server. Present when the\nflow engine has issued a challenge via auth_attempts (e.g., after the user\nsubmits `action: \"passkey\"`). The `<zl-passkey>` component reads this and\ntriggers the appropriate WebAuthn ceremony.\n\nThe challenge is NOT present on the initial step — it appears only after\nthe user explicitly selects a ceremony-based action.\n")
|
|
436
634
|
}).describe("A step contains ordered capability arrays: what to collect (fields),\nwhat the user can do (actions), and what security gates must be satisfied (gates).\nThe LiquidJS template in `branding.liquid_template` iterates these arrays in order\nand builds name-keyed indexes locally for lookup.\n"),
|
|
437
635
|
branding: zod.object({
|
|
438
|
-
layout: zod.enum(["centered", "split"]).default(getFlowStepResponseBrandingLayoutDefault).describe("
|
|
439
|
-
liquid_template: zod.string().max(getFlowStepResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template
|
|
440
|
-
logo_url: zod.url().optional().describe("
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
636
|
+
layout: zod.enum(["centered", "split"]).default(getFlowStepResponseBrandingLayoutDefault).describe("Degrade preset (`centered` or `split`) the bundled default template\nbranches on, and the fallback when a custom template fails validation.\nNot the complete design catalog: all named designs (`centered`, `split`,\n`split-right`, `hero`, `minimal`) ship as templates and map onto one of\nthese two values; switch designs with\n`zitadel branding eject --design <name>` instead of editing this field.\nEjected templates may ignore it. Selects a template rather than restyling\nthe widget, so it is not an appearance control.\n"),
|
|
637
|
+
liquid_template: zod.string().max(getFlowStepResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template for rendering this step. The orchestrator renders\nit into its Shadow DOM with the capability dictionaries as context.\n"),
|
|
638
|
+
logo_url: zod.url().max(getFlowStepResponseBrandingLogoUrlMax).regex(getFlowStepResponseBrandingLogoUrlRegExp).optional().describe("Fallback mark, used only when neither `theme.light.logo_url` nor\n`theme.dark.logo_url` is set. Prefer the per-side marks — one file\ncannot serve both surfaces.\n"),
|
|
639
|
+
hero_url: zod.url().max(getFlowStepResponseBrandingHeroUrlMax).regex(getFlowStepResponseBrandingHeroUrlRegExp).optional().describe("Hero/background image URL, used by the split layout."),
|
|
640
|
+
theme: zod.object({
|
|
641
|
+
mode: zod.enum([
|
|
642
|
+
"light",
|
|
643
|
+
"dark",
|
|
644
|
+
"auto"
|
|
645
|
+
]).optional().describe("Which published side may run. `auto` follows the operating system.\n"),
|
|
646
|
+
light: zod.object({
|
|
647
|
+
logo_url: zod.url().max(getFlowStepResponseBrandingThemeLightLogoUrlMax).regex(getFlowStepResponseBrandingThemeLightLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
648
|
+
palette: zod.object({
|
|
649
|
+
primary: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
650
|
+
on_primary: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
651
|
+
background: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
652
|
+
surface: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
653
|
+
muted: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
654
|
+
border: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
655
|
+
text: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
656
|
+
text_muted: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
657
|
+
link: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
658
|
+
success: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
659
|
+
warning: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
660
|
+
error: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeLightPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
661
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
662
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n"),
|
|
663
|
+
dark: zod.object({
|
|
664
|
+
logo_url: zod.url().max(getFlowStepResponseBrandingThemeDarkLogoUrlMax).regex(getFlowStepResponseBrandingThemeDarkLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
665
|
+
palette: zod.object({
|
|
666
|
+
primary: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
667
|
+
on_primary: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
668
|
+
background: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
669
|
+
surface: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
670
|
+
muted: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
671
|
+
border: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
672
|
+
text: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
673
|
+
text_muted: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
674
|
+
link: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
675
|
+
success: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
676
|
+
warning: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
677
|
+
error: zod.string().min(1).max(128).regex(getFlowStepResponseBrandingThemeDarkPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
678
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
679
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n")
|
|
680
|
+
}).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`, but cannot select a\nside the project never published.\n"),
|
|
681
|
+
typography: zod.object({
|
|
682
|
+
font_family: zod.string().min(1).max(256).regex(getFlowStepResponseBrandingTypographyFontFamilyRegExp).optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected — the stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
|
|
683
|
+
font_url: zod.url().max(getFlowStepResponseBrandingTypographyFontUrlMax).regex(getFlowStepResponseBrandingTypographyFontUrlRegExp).optional().describe("Stylesheet that loads `font_family` — a Google Fonts CSS URL, for\nexample. Must be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nStored but not applied to an embedded widget: the embedding page loads\nthe face, and Zitadel does not inject a stylesheet into a document it\ndoes not own.\n"),
|
|
684
|
+
scale: zod.number().min(getFlowStepResponseBrandingTypographyScaleMin).max(getFlowStepResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
685
|
+
}).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modelled yet.\n"),
|
|
686
|
+
shape: zod.object({
|
|
687
|
+
radius: zod.union([zod.enum([
|
|
688
|
+
"none",
|
|
689
|
+
"sm",
|
|
690
|
+
"md",
|
|
691
|
+
"lg",
|
|
692
|
+
"full"
|
|
693
|
+
]).describe("A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n"), zod.number().min(0).max(32)]).optional().describe("Corner rounding for the card, inputs, buttons and alerts — either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n"),
|
|
694
|
+
density: zod.enum([
|
|
695
|
+
"compact",
|
|
696
|
+
"regular",
|
|
697
|
+
"comfortable"
|
|
698
|
+
]).optional().describe("Spacing and control height."),
|
|
699
|
+
logo_scale: zod.number().min(getFlowStepResponseBrandingShapeLogoScaleMin).max(2).optional().describe("Multiplier on the logo's maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n")
|
|
700
|
+
}).optional().describe("Corner rounding, spacing and logo size. Shared across theme sides.\n")
|
|
701
|
+
}).optional().describe("Branding configuration, used in two places with one shape: as the request\nbody of `POST /branding`, which publishes it as a new immutable revision,\nand as a read-only projection on flow responses, which carries the\nproject's latest revision. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel apply` publishes.\n\nEvery field is optional. An omitted key uses Zitadel's maintained default,\nso a revision carrying one colour is as valid as one carrying the whole\nobject.\n"),
|
|
444
702
|
redirect_uri: zod.url().optional().describe("Present when `step.complete` is `redirect`."),
|
|
445
703
|
handoff_token: zod.string().optional().describe("Short-lived, audience-bound token produced on flow completion.\nExchange it for a session via `POST /sessions/exchange`.\nOnly present when `step.complete` is set.\n"),
|
|
446
704
|
handoff_token_expires_at: zod.iso.datetime({ offset: true }).optional().describe("Expiry timestamp for `handoff_token`. Only present when\n`handoff_token` is set.\n")
|
|
@@ -500,6 +758,72 @@ const submitFlowStepResponseStepGatesDefault = {};
|
|
|
500
758
|
const submitFlowStepResponseStepSsoProvidersDefault = [];
|
|
501
759
|
const submitFlowStepResponseBrandingLayoutDefault = `centered`;
|
|
502
760
|
const submitFlowStepResponseBrandingLiquidTemplateMax = 131072;
|
|
761
|
+
const submitFlowStepResponseBrandingLogoUrlMax = 2048;
|
|
762
|
+
const submitFlowStepResponseBrandingLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
763
|
+
const submitFlowStepResponseBrandingHeroUrlMax = 2048;
|
|
764
|
+
const submitFlowStepResponseBrandingHeroUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
765
|
+
const submitFlowStepResponseBrandingThemeLightLogoUrlMax = 2048;
|
|
766
|
+
const submitFlowStepResponseBrandingThemeLightLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
767
|
+
const submitFlowStepResponseBrandingThemeLightPalettePrimaryMax = 128;
|
|
768
|
+
const submitFlowStepResponseBrandingThemeLightPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
769
|
+
const submitFlowStepResponseBrandingThemeLightPaletteOnPrimaryMax = 128;
|
|
770
|
+
const submitFlowStepResponseBrandingThemeLightPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
771
|
+
const submitFlowStepResponseBrandingThemeLightPaletteBackgroundMax = 128;
|
|
772
|
+
const submitFlowStepResponseBrandingThemeLightPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
773
|
+
const submitFlowStepResponseBrandingThemeLightPaletteSurfaceMax = 128;
|
|
774
|
+
const submitFlowStepResponseBrandingThemeLightPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
775
|
+
const submitFlowStepResponseBrandingThemeLightPaletteMutedMax = 128;
|
|
776
|
+
const submitFlowStepResponseBrandingThemeLightPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
777
|
+
const submitFlowStepResponseBrandingThemeLightPaletteBorderMax = 128;
|
|
778
|
+
const submitFlowStepResponseBrandingThemeLightPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
779
|
+
const submitFlowStepResponseBrandingThemeLightPaletteTextMax = 128;
|
|
780
|
+
const submitFlowStepResponseBrandingThemeLightPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
781
|
+
const submitFlowStepResponseBrandingThemeLightPaletteTextMutedMax = 128;
|
|
782
|
+
const submitFlowStepResponseBrandingThemeLightPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
783
|
+
const submitFlowStepResponseBrandingThemeLightPaletteLinkMax = 128;
|
|
784
|
+
const submitFlowStepResponseBrandingThemeLightPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
785
|
+
const submitFlowStepResponseBrandingThemeLightPaletteSuccessMax = 128;
|
|
786
|
+
const submitFlowStepResponseBrandingThemeLightPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
787
|
+
const submitFlowStepResponseBrandingThemeLightPaletteWarningMax = 128;
|
|
788
|
+
const submitFlowStepResponseBrandingThemeLightPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
789
|
+
const submitFlowStepResponseBrandingThemeLightPaletteErrorMax = 128;
|
|
790
|
+
const submitFlowStepResponseBrandingThemeLightPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
791
|
+
const submitFlowStepResponseBrandingThemeDarkLogoUrlMax = 2048;
|
|
792
|
+
const submitFlowStepResponseBrandingThemeDarkLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
793
|
+
const submitFlowStepResponseBrandingThemeDarkPalettePrimaryMax = 128;
|
|
794
|
+
const submitFlowStepResponseBrandingThemeDarkPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
795
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteOnPrimaryMax = 128;
|
|
796
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
797
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteBackgroundMax = 128;
|
|
798
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
799
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteSurfaceMax = 128;
|
|
800
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
801
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteMutedMax = 128;
|
|
802
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
803
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteBorderMax = 128;
|
|
804
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
805
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteTextMax = 128;
|
|
806
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
807
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteTextMutedMax = 128;
|
|
808
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
809
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteLinkMax = 128;
|
|
810
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
811
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteSuccessMax = 128;
|
|
812
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
813
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteWarningMax = 128;
|
|
814
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
815
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteErrorMax = 128;
|
|
816
|
+
const submitFlowStepResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
817
|
+
const submitFlowStepResponseBrandingTypographyFontFamilyMax = 256;
|
|
818
|
+
const submitFlowStepResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
819
|
+
const submitFlowStepResponseBrandingTypographyFontUrlMax = 2048;
|
|
820
|
+
const submitFlowStepResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)");
|
|
821
|
+
const submitFlowStepResponseBrandingTypographyScaleMin = .75;
|
|
822
|
+
const submitFlowStepResponseBrandingTypographyScaleMax = 1.25;
|
|
823
|
+
const submitFlowStepResponseBrandingShapeRadiusTwoMin = 0;
|
|
824
|
+
const submitFlowStepResponseBrandingShapeRadiusTwoMax = 32;
|
|
825
|
+
const submitFlowStepResponseBrandingShapeLogoScaleMin = .5;
|
|
826
|
+
const submitFlowStepResponseBrandingShapeLogoScaleMax = 2;
|
|
503
827
|
const SubmitFlowStepResponse = zod.object({
|
|
504
828
|
id: zod.string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
|
|
505
829
|
session_id: zod.string().describe("Underlying session ID. Stable across all stacked flows."),
|
|
@@ -543,17 +867,17 @@ const SubmitFlowStepResponse = zod.object({
|
|
|
543
867
|
}).optional().describe("Schema-derived rules the frontend SHOULD apply at input time. The\nserver runs the same rules on submit and is the only authority on\nwhether the step advances — these rules are a UX hint to reduce\nround trips, not a contract guarantee.\n\nOmitted entirely when the field has no rules beyond its `type`.\nEach key mirrors a JSON Schema keyword on the underlying user\nproperty; absent keys mean no rule.\n")
|
|
544
868
|
}).describe("A data input capability. Describes what the user must provide.\nDoes not contain display text — only a `text_key` resolved client-side.\n")).default(submitFlowStepResponseStepFieldsDefault).describe("Ordered list of input fields to collect. Field metadata (type, validation)\nis resolved by the engine from the flow's user schema. The LiquidJS\ntemplate iterates this array; for keyed lookup it builds a name-indexed\nmap locally.\n"),
|
|
545
869
|
actions: zod.array(zod.object({
|
|
546
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
870
|
+
name: zod.string().min(1).describe("Action identifier. Sent back in the submit request as `action`."),
|
|
547
871
|
kind: zod.enum([
|
|
548
872
|
"submit",
|
|
549
873
|
"passkey",
|
|
550
874
|
"passkey_register",
|
|
551
875
|
"navigate",
|
|
552
876
|
"back"
|
|
553
|
-
]).describe("
|
|
554
|
-
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis
|
|
555
|
-
text_key: zod.string().optional().describe("
|
|
556
|
-
}).describe("
|
|
877
|
+
]).describe("How the client should treat the action:\n- `submit`: collect the step's fields and submit.\n- `passkey`: run a WebAuthn assertion, then submit the result.\n- `passkey_register`: run a WebAuthn registration, then submit the result.\n- `navigate`: submit without collecting fields; pure routing.\n- `back`: return the user to the previous step. Engine-injected, never\n declared in a flow definition.\n"),
|
|
878
|
+
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis.\n"),
|
|
879
|
+
text_key: zod.string().optional().describe("Localization key for the action's label, resolved client-side from a\nlocale dictionary.\n")
|
|
880
|
+
}).describe("An action the engine offers on a runtime step. Every declared action of the\ndefinition's step appears here, plus the engine-injected `back` whenever\nreturning to the previous step is possible.\n")).default(submitFlowStepResponseStepActionsDefault).describe("Ordered list of available user actions. The LiquidJS template iterates\nthis array and builds a name-indexed map locally for keyed lookup.\n"),
|
|
557
881
|
gates: zod.record(zod.string(), zod.object({
|
|
558
882
|
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
559
883
|
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
@@ -571,12 +895,72 @@ const SubmitFlowStepResponse = zod.object({
|
|
|
571
895
|
}).optional().describe("A pending authentication challenge issued by the server. Present when the\nflow engine has issued a challenge via auth_attempts (e.g., after the user\nsubmits `action: \"passkey\"`). The `<zl-passkey>` component reads this and\ntriggers the appropriate WebAuthn ceremony.\n\nThe challenge is NOT present on the initial step — it appears only after\nthe user explicitly selects a ceremony-based action.\n")
|
|
572
896
|
}).describe("A step contains ordered capability arrays: what to collect (fields),\nwhat the user can do (actions), and what security gates must be satisfied (gates).\nThe LiquidJS template in `branding.liquid_template` iterates these arrays in order\nand builds name-keyed indexes locally for lookup.\n"),
|
|
573
897
|
branding: zod.object({
|
|
574
|
-
layout: zod.enum(["centered", "split"]).default(submitFlowStepResponseBrandingLayoutDefault).describe("
|
|
575
|
-
liquid_template: zod.string().max(submitFlowStepResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template
|
|
576
|
-
logo_url: zod.url().optional().describe("
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
898
|
+
layout: zod.enum(["centered", "split"]).default(submitFlowStepResponseBrandingLayoutDefault).describe("Degrade preset (`centered` or `split`) the bundled default template\nbranches on, and the fallback when a custom template fails validation.\nNot the complete design catalog: all named designs (`centered`, `split`,\n`split-right`, `hero`, `minimal`) ship as templates and map onto one of\nthese two values; switch designs with\n`zitadel branding eject --design <name>` instead of editing this field.\nEjected templates may ignore it. Selects a template rather than restyling\nthe widget, so it is not an appearance control.\n"),
|
|
899
|
+
liquid_template: zod.string().max(submitFlowStepResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template for rendering this step. The orchestrator renders\nit into its Shadow DOM with the capability dictionaries as context.\n"),
|
|
900
|
+
logo_url: zod.url().max(submitFlowStepResponseBrandingLogoUrlMax).regex(submitFlowStepResponseBrandingLogoUrlRegExp).optional().describe("Fallback mark, used only when neither `theme.light.logo_url` nor\n`theme.dark.logo_url` is set. Prefer the per-side marks — one file\ncannot serve both surfaces.\n"),
|
|
901
|
+
hero_url: zod.url().max(submitFlowStepResponseBrandingHeroUrlMax).regex(submitFlowStepResponseBrandingHeroUrlRegExp).optional().describe("Hero/background image URL, used by the split layout."),
|
|
902
|
+
theme: zod.object({
|
|
903
|
+
mode: zod.enum([
|
|
904
|
+
"light",
|
|
905
|
+
"dark",
|
|
906
|
+
"auto"
|
|
907
|
+
]).optional().describe("Which published side may run. `auto` follows the operating system.\n"),
|
|
908
|
+
light: zod.object({
|
|
909
|
+
logo_url: zod.url().max(submitFlowStepResponseBrandingThemeLightLogoUrlMax).regex(submitFlowStepResponseBrandingThemeLightLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
910
|
+
palette: zod.object({
|
|
911
|
+
primary: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
912
|
+
on_primary: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
913
|
+
background: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
914
|
+
surface: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
915
|
+
muted: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
916
|
+
border: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
917
|
+
text: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
918
|
+
text_muted: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
919
|
+
link: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
920
|
+
success: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
921
|
+
warning: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
922
|
+
error: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeLightPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
923
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
924
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n"),
|
|
925
|
+
dark: zod.object({
|
|
926
|
+
logo_url: zod.url().max(submitFlowStepResponseBrandingThemeDarkLogoUrlMax).regex(submitFlowStepResponseBrandingThemeDarkLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
927
|
+
palette: zod.object({
|
|
928
|
+
primary: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
929
|
+
on_primary: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
930
|
+
background: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
931
|
+
surface: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
932
|
+
muted: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
933
|
+
border: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
934
|
+
text: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
935
|
+
text_muted: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
936
|
+
link: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
937
|
+
success: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
938
|
+
warning: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
939
|
+
error: zod.string().min(1).max(128).regex(submitFlowStepResponseBrandingThemeDarkPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
940
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
941
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n")
|
|
942
|
+
}).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`, but cannot select a\nside the project never published.\n"),
|
|
943
|
+
typography: zod.object({
|
|
944
|
+
font_family: zod.string().min(1).max(256).regex(submitFlowStepResponseBrandingTypographyFontFamilyRegExp).optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected — the stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
|
|
945
|
+
font_url: zod.url().max(submitFlowStepResponseBrandingTypographyFontUrlMax).regex(submitFlowStepResponseBrandingTypographyFontUrlRegExp).optional().describe("Stylesheet that loads `font_family` — a Google Fonts CSS URL, for\nexample. Must be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nStored but not applied to an embedded widget: the embedding page loads\nthe face, and Zitadel does not inject a stylesheet into a document it\ndoes not own.\n"),
|
|
946
|
+
scale: zod.number().min(submitFlowStepResponseBrandingTypographyScaleMin).max(submitFlowStepResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
947
|
+
}).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modelled yet.\n"),
|
|
948
|
+
shape: zod.object({
|
|
949
|
+
radius: zod.union([zod.enum([
|
|
950
|
+
"none",
|
|
951
|
+
"sm",
|
|
952
|
+
"md",
|
|
953
|
+
"lg",
|
|
954
|
+
"full"
|
|
955
|
+
]).describe("A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n"), zod.number().min(0).max(32)]).optional().describe("Corner rounding for the card, inputs, buttons and alerts — either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n"),
|
|
956
|
+
density: zod.enum([
|
|
957
|
+
"compact",
|
|
958
|
+
"regular",
|
|
959
|
+
"comfortable"
|
|
960
|
+
]).optional().describe("Spacing and control height."),
|
|
961
|
+
logo_scale: zod.number().min(submitFlowStepResponseBrandingShapeLogoScaleMin).max(2).optional().describe("Multiplier on the logo's maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n")
|
|
962
|
+
}).optional().describe("Corner rounding, spacing and logo size. Shared across theme sides.\n")
|
|
963
|
+
}).optional().describe("Branding configuration, used in two places with one shape: as the request\nbody of `POST /branding`, which publishes it as a new immutable revision,\nand as a read-only projection on flow responses, which carries the\nproject's latest revision. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel apply` publishes.\n\nEvery field is optional. An omitted key uses Zitadel's maintained default,\nso a revision carrying one colour is as valid as one carrying the whole\nobject.\n"),
|
|
580
964
|
redirect_uri: zod.url().optional().describe("Present when `step.complete` is `redirect`."),
|
|
581
965
|
handoff_token: zod.string().optional().describe("Short-lived, audience-bound token produced on flow completion.\nExchange it for a session via `POST /sessions/exchange`.\nOnly present when `step.complete` is set.\n"),
|
|
582
966
|
handoff_token_expires_at: zod.iso.datetime({ offset: true }).optional().describe("Expiry timestamp for `handoff_token`. Only present when\n`handoff_token` is set.\n")
|
|
@@ -642,9 +1026,13 @@ const GetAuthAttemptResponse = zod.object({
|
|
|
642
1026
|
]).describe("An authentication factor method."),
|
|
643
1027
|
verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
|
|
644
1028
|
payload: zod.union([
|
|
645
|
-
zod.object({ user_id: zod.string().regex(getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
|
|
646
|
-
zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
|
|
647
1029
|
zod.object({
|
|
1030
|
+
method: zod.enum(["identifier"]).describe("Always `identifier`; the discriminator of the payload union."),
|
|
1031
|
+
user_id: zod.string().regex(getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp)
|
|
1032
|
+
}).describe("Identifier-specific factor metadata"),
|
|
1033
|
+
zod.object({ method: zod.enum(["password"]).describe("Always `password`; the discriminator of the payload union.") }).describe("Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n"),
|
|
1034
|
+
zod.object({
|
|
1035
|
+
method: zod.enum(["passkey"]).describe("Always `passkey`; the discriminator of the payload union."),
|
|
648
1036
|
credential_id: zod.string().describe("The credential ID that was used"),
|
|
649
1037
|
user_verified: zod.boolean().describe("Whether user verification was performed (PIN/biometric)"),
|
|
650
1038
|
backup_eligible: zod.boolean().optional().describe("Whether the credential is backup eligible (can be synced)"),
|
|
@@ -738,7 +1126,7 @@ const VerifyChallengeProofParams = zod.object({
|
|
|
738
1126
|
});
|
|
739
1127
|
const VerifyChallengeProofHeader = zod.strictObject({ "Idempotency-Key": zod.string().optional().describe("Optional retry key for safe retries of the call.\nRetries carrying the same key within the call window return the cached\npayload without creating a new resource. See details in the endpoint description.\n") });
|
|
740
1128
|
const VerifyChallengeProofBody = zod.union([
|
|
741
|
-
zod.object({ login_name: zod.string().describe("The
|
|
1129
|
+
zod.object({ login_name: zod.string().describe("The value being identified, as the user typed it.") }).describe("Proof for `identifier` method.\n\nThe login name is resolved against the designated identifier (`x-identifier`)\nof every user schema in the project, and must identify exactly one user; none,\nor users of more than one schema, rejects the proof. The caller does not name\nthe property: which property identifies users is the project's decision, made\nin its user schemas (ADR 058 §5).\n"),
|
|
742
1130
|
zod.object({ password: zod.string().describe("The password being verified") }).describe("Proof for `password` method"),
|
|
743
1131
|
zod.object({ passkey: zod.object({ assertion: zod.record(zod.string(), zod.unknown()).describe("The WebAuthn AssertionResponse object") }).describe("WebAuthn passkey assertion") }).describe("Proof for `passkey` method")
|
|
744
1132
|
]).describe("Proof for verifying a factor challenge.\n\nThe exact format depends on the challenge method. The proof object should contain\nonly the credential/code/assertion relevant to the challenge method being verified.\n");
|
|
@@ -772,9 +1160,13 @@ const VerifyChallengeProofResponse = zod.object({
|
|
|
772
1160
|
]).describe("An authentication factor method."),
|
|
773
1161
|
verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
|
|
774
1162
|
payload: zod.union([
|
|
775
|
-
zod.object({ user_id: zod.string().regex(verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
|
|
776
|
-
zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
|
|
777
1163
|
zod.object({
|
|
1164
|
+
method: zod.enum(["identifier"]).describe("Always `identifier`; the discriminator of the payload union."),
|
|
1165
|
+
user_id: zod.string().regex(verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp)
|
|
1166
|
+
}).describe("Identifier-specific factor metadata"),
|
|
1167
|
+
zod.object({ method: zod.enum(["password"]).describe("Always `password`; the discriminator of the payload union.") }).describe("Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n"),
|
|
1168
|
+
zod.object({
|
|
1169
|
+
method: zod.enum(["passkey"]).describe("Always `passkey`; the discriminator of the payload union."),
|
|
778
1170
|
credential_id: zod.string().describe("The credential ID that was used"),
|
|
779
1171
|
user_verified: zod.boolean().describe("Whether user verification was performed (PIN/biometric)"),
|
|
780
1172
|
backup_eligible: zod.boolean().optional().describe("Whether the credential is backup eligible (can be synced)"),
|
|
@@ -934,7 +1326,11 @@ const InitClaimParams = zod.object({ project_id: zod.string().regex(initClaimPat
|
|
|
934
1326
|
* Polled by the CLI while a browser completes the claim. Authorized by the
|
|
935
1327
|
project secret that initiated the challenge. Returns `pending`, or
|
|
936
1328
|
`completed` with the owning team, the claim timestamp, and the dashboard
|
|
937
|
-
URL once the
|
|
1329
|
+
URL once the project is claimed. The claim grant, not the polled
|
|
1330
|
+
challenge, is the source of truth: a project claimed through another
|
|
1331
|
+
concurrent challenge also reports `completed`, and a completed claim
|
|
1332
|
+
keeps reporting `completed` past this challenge's expiry and past the
|
|
1333
|
+
project's claim window.
|
|
938
1334
|
|
|
939
1335
|
* @summary Get claim status
|
|
940
1336
|
*/
|
|
@@ -969,6 +1365,24 @@ const CompleteClaimResponse = zod.object({
|
|
|
969
1365
|
claimed_at: zod.iso.datetime({ offset: true }).describe("The time when the project was claimed.")
|
|
970
1366
|
}).describe("The result of a completed project claim.");
|
|
971
1367
|
/**
|
|
1368
|
+
* Read by the claim page in the browser to show how long is left to claim the
|
|
1369
|
+
project. Unauthenticated by design: the claim page runs this before the
|
|
1370
|
+
developer has signed in, and holding the `challenge_id` from the claim URL
|
|
1371
|
+
is the authorization — the same capability `claim/complete` accepts. It
|
|
1372
|
+
reveals only the window, never the project itself, and unlike
|
|
1373
|
+
`claim/complete` it spends nothing, so a reload is free.
|
|
1374
|
+
|
|
1375
|
+
* @summary Get the claim window for a project
|
|
1376
|
+
*/
|
|
1377
|
+
const getClaimWindowPathProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
1378
|
+
const GetClaimWindowParams = zod.object({ project_id: zod.string().regex(getClaimWindowPathProjectIdRegExp) });
|
|
1379
|
+
const getClaimWindowQueryChallengeIdRegExp = /* @__PURE__ */ new RegExp("^ch_[a-zA-Z0-9_-]+$");
|
|
1380
|
+
const GetClaimWindowQueryParams = zod.strictObject({ challenge_id: zod.string().regex(getClaimWindowQueryChallengeIdRegExp).describe("The challenge from the claim URL.") });
|
|
1381
|
+
const GetClaimWindowResponse = zod.object({
|
|
1382
|
+
expires_at: zod.iso.datetime({ offset: true }).describe("The time when the project's claim window closes."),
|
|
1383
|
+
expired: zod.boolean().describe("Whether the window has already closed. Reported alongside `expires_at`\nrather than left to the client so a skewed browser clock cannot show a\nclaimable project as expired, or the reverse.\n")
|
|
1384
|
+
}).describe("How long the project can still be claimed. Derived from the project's\ncreation time and the fixed 14-day claim window (ADR 046); it does not\ndepend on the challenge, which has its own much shorter expiry.\n");
|
|
1385
|
+
/**
|
|
972
1386
|
* Creates an anonymous session shell with no user and no factors (`state: building`).
|
|
973
1387
|
|
|
974
1388
|
This is optional — an `auth_attempt` will create a session implicitly if none is provided.
|
|
@@ -1064,7 +1478,7 @@ const QuerySessionsResponse = zod.object({
|
|
|
1064
1478
|
identifier: zod.string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
|
|
1065
1479
|
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
1066
1480
|
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
|
|
1067
|
-
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\n"),
|
|
1481
|
+
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n"),
|
|
1068
1482
|
factors: zod.array(zod.object({
|
|
1069
1483
|
method: zod.enum([
|
|
1070
1484
|
"identifier",
|
|
@@ -1073,9 +1487,13 @@ const QuerySessionsResponse = zod.object({
|
|
|
1073
1487
|
]).describe("An authentication factor method."),
|
|
1074
1488
|
verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
|
|
1075
1489
|
payload: zod.union([
|
|
1076
|
-
zod.object({ user_id: zod.string().regex(querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
|
|
1077
|
-
zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
|
|
1078
1490
|
zod.object({
|
|
1491
|
+
method: zod.enum(["identifier"]).describe("Always `identifier`; the discriminator of the payload union."),
|
|
1492
|
+
user_id: zod.string().regex(querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp)
|
|
1493
|
+
}).describe("Identifier-specific factor metadata"),
|
|
1494
|
+
zod.object({ method: zod.enum(["password"]).describe("Always `password`; the discriminator of the payload union.") }).describe("Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n"),
|
|
1495
|
+
zod.object({
|
|
1496
|
+
method: zod.enum(["passkey"]).describe("Always `passkey`; the discriminator of the payload union."),
|
|
1079
1497
|
credential_id: zod.string().describe("The credential ID that was used"),
|
|
1080
1498
|
user_verified: zod.boolean().describe("Whether user verification was performed (PIN/biometric)"),
|
|
1081
1499
|
backup_eligible: zod.boolean().optional().describe("Whether the credential is backup eligible (can be synced)"),
|
|
@@ -1143,7 +1561,7 @@ const ExchangeHandoffResponse = zod.object({
|
|
|
1143
1561
|
identifier: zod.string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
|
|
1144
1562
|
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
1145
1563
|
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
|
|
1146
|
-
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\n"),
|
|
1564
|
+
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n"),
|
|
1147
1565
|
factors: zod.array(zod.object({
|
|
1148
1566
|
method: zod.enum([
|
|
1149
1567
|
"identifier",
|
|
@@ -1152,9 +1570,13 @@ const ExchangeHandoffResponse = zod.object({
|
|
|
1152
1570
|
]).describe("An authentication factor method."),
|
|
1153
1571
|
verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
|
|
1154
1572
|
payload: zod.union([
|
|
1155
|
-
zod.object({ user_id: zod.string().regex(exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
|
|
1156
|
-
zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
|
|
1157
1573
|
zod.object({
|
|
1574
|
+
method: zod.enum(["identifier"]).describe("Always `identifier`; the discriminator of the payload union."),
|
|
1575
|
+
user_id: zod.string().regex(exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp)
|
|
1576
|
+
}).describe("Identifier-specific factor metadata"),
|
|
1577
|
+
zod.object({ method: zod.enum(["password"]).describe("Always `password`; the discriminator of the payload union.") }).describe("Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n"),
|
|
1578
|
+
zod.object({
|
|
1579
|
+
method: zod.enum(["passkey"]).describe("Always `passkey`; the discriminator of the payload union."),
|
|
1158
1580
|
credential_id: zod.string().describe("The credential ID that was used"),
|
|
1159
1581
|
user_verified: zod.boolean().describe("Whether user verification was performed (PIN/biometric)"),
|
|
1160
1582
|
backup_eligible: zod.boolean().optional().describe("Whether the credential is backup eligible (can be synced)"),
|
|
@@ -1205,7 +1627,7 @@ const GetSessionResponse = zod.object({
|
|
|
1205
1627
|
identifier: zod.string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
|
|
1206
1628
|
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
1207
1629
|
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
|
|
1208
|
-
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\n"),
|
|
1630
|
+
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n"),
|
|
1209
1631
|
factors: zod.array(zod.object({
|
|
1210
1632
|
method: zod.enum([
|
|
1211
1633
|
"identifier",
|
|
@@ -1214,9 +1636,13 @@ const GetSessionResponse = zod.object({
|
|
|
1214
1636
|
]).describe("An authentication factor method."),
|
|
1215
1637
|
verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
|
|
1216
1638
|
payload: zod.union([
|
|
1217
|
-
zod.object({ user_id: zod.string().regex(getSessionResponseFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
|
|
1218
|
-
zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
|
|
1219
1639
|
zod.object({
|
|
1640
|
+
method: zod.enum(["identifier"]).describe("Always `identifier`; the discriminator of the payload union."),
|
|
1641
|
+
user_id: zod.string().regex(getSessionResponseFactorsItemPayloadOneUserIdRegExp)
|
|
1642
|
+
}).describe("Identifier-specific factor metadata"),
|
|
1643
|
+
zod.object({ method: zod.enum(["password"]).describe("Always `password`; the discriminator of the payload union.") }).describe("Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n"),
|
|
1644
|
+
zod.object({
|
|
1645
|
+
method: zod.enum(["passkey"]).describe("Always `passkey`; the discriminator of the payload union."),
|
|
1220
1646
|
credential_id: zod.string().describe("The credential ID that was used"),
|
|
1221
1647
|
user_verified: zod.boolean().describe("Whether user verification was performed (PIN/biometric)"),
|
|
1222
1648
|
backup_eligible: zod.boolean().optional().describe("Whether the credential is backup eligible (can be synced)"),
|
|
@@ -1278,7 +1704,7 @@ const GetMySessionResponse = zod.object({
|
|
|
1278
1704
|
identifier: zod.string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
|
|
1279
1705
|
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
1280
1706
|
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
|
|
1281
|
-
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\n"),
|
|
1707
|
+
}).optional().describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n"),
|
|
1282
1708
|
factors: zod.array(zod.object({
|
|
1283
1709
|
method: zod.enum([
|
|
1284
1710
|
"identifier",
|
|
@@ -1287,9 +1713,13 @@ const GetMySessionResponse = zod.object({
|
|
|
1287
1713
|
]).describe("An authentication factor method."),
|
|
1288
1714
|
verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
|
|
1289
1715
|
payload: zod.union([
|
|
1290
|
-
zod.object({ user_id: zod.string().regex(getMySessionResponseFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
|
|
1291
|
-
zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
|
|
1292
1716
|
zod.object({
|
|
1717
|
+
method: zod.enum(["identifier"]).describe("Always `identifier`; the discriminator of the payload union."),
|
|
1718
|
+
user_id: zod.string().regex(getMySessionResponseFactorsItemPayloadOneUserIdRegExp)
|
|
1719
|
+
}).describe("Identifier-specific factor metadata"),
|
|
1720
|
+
zod.object({ method: zod.enum(["password"]).describe("Always `password`; the discriminator of the payload union.") }).describe("Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n"),
|
|
1721
|
+
zod.object({
|
|
1722
|
+
method: zod.enum(["passkey"]).describe("Always `passkey`; the discriminator of the payload union."),
|
|
1293
1723
|
credential_id: zod.string().describe("The credential ID that was used"),
|
|
1294
1724
|
user_verified: zod.boolean().describe("Whether user verification was performed (PIN/biometric)"),
|
|
1295
1725
|
backup_eligible: zod.boolean().optional().describe("Whether the credential is backup eligible (can be synced)"),
|
|
@@ -1327,16 +1757,22 @@ const CreateSchemaQueryParams = zod.strictObject({
|
|
|
1327
1757
|
team_id: zod.string().regex(createSchemaQueryTeamIdRegExp).optional().describe("The unique identifier of the team")
|
|
1328
1758
|
});
|
|
1329
1759
|
const createSchemaBodyOneObjectTypeMax = 256;
|
|
1760
|
+
const createSchemaBodyOneMetaSchemaMax = 1024;
|
|
1761
|
+
const createSchemaBodyOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
1762
|
+
const createSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1330
1763
|
const createSchemaBodyOnePropertiesXAuditDefault = false;
|
|
1331
1764
|
const CreateSchemaBody = zod.union([zod.object({
|
|
1332
1765
|
objectType: zod.string().max(256).optional().describe("The type of user this schema describes. This is a customer chosen name.\n"),
|
|
1333
1766
|
kind: zod.literal("user-schema").describe("Discriminator value for a user schema create request."),
|
|
1334
|
-
metaSchema: zod.url().describe("The user Schema version used for this schema."),
|
|
1767
|
+
metaSchema: zod.url().max(createSchemaBodyOneMetaSchemaMax).describe("The user Schema version used for this schema."),
|
|
1335
1768
|
"x-auth-methods": zod.object({
|
|
1336
1769
|
password: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1337
1770
|
passkey: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1338
1771
|
magic_link: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1339
|
-
sso: zod.object({
|
|
1772
|
+
sso: zod.object({
|
|
1773
|
+
enabled: zod.boolean().describe("Whether the authentication method is enabled or not"),
|
|
1774
|
+
providers: zod.array(zod.string().max(64).regex(createSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp)).min(1).optional().describe("Slugs of the Project-level identity provider connections available to users of this schema. Each entry must match the `slug` of a connection under `.zitadel/idps/`; a connection existing does not by itself make it available here.")
|
|
1775
|
+
}).optional(),
|
|
1340
1776
|
otp: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional()
|
|
1341
1777
|
}).describe("A list of authentication methods supported by the user definition."),
|
|
1342
1778
|
"x-identifier": zod.string().min(1).optional().describe("Path of the leaf property whose value identifies a user (nested leaves\nare addressed by their dot-joined attribute path). The property must\ncarry `x-unique` \"project\". Required when an auth method needing\nidentifier-first dispatch (password) is enabled. Passkey is exempt:\ndiscoverable credentials identify the user through the assertion\nitself, so passkey-only and API-managed schemas may designate nothing;\nflows using identifier-first passkey are validated at the flow level\ninstead.\n"),
|
|
@@ -1350,8 +1786,8 @@ const CreateSchemaBody = zod.union([zod.object({
|
|
|
1350
1786
|
"x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
|
|
1351
1787
|
"x-audit": zod.boolean().default(false).describe("Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"),
|
|
1352
1788
|
properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
|
|
1353
|
-
}).describe("
|
|
1354
|
-
}).describe("
|
|
1789
|
+
}).describe("The meta-schema one property of a customer's user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
|
|
1790
|
+
}).describe("The meta-schema a customer's user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n"), zod.object({
|
|
1355
1791
|
kind: zod.literal("schema-url").describe("Discriminator value for a user schema create request."),
|
|
1356
1792
|
url: zod.url().describe("URL to the schema definition.")
|
|
1357
1793
|
}).describe("A schema definition that references an external schema via a URL. It is \non creation, validated against its metaschema and cached in the database.\n")]);
|
|
@@ -1375,6 +1811,9 @@ const ListSchemasQueryParams = zod.strictObject({
|
|
|
1375
1811
|
kind: zod.enum(["user-schema"]).optional().describe("The kind of schema to filter by, read from the stored document's\n`kind` property.\n\n`schema-url` is not a kind: it discriminates the create request body,\nnot a stored schema. A schema registered by URL is stored as whatever\ndocument the URL served, and declares its own kind.\n\nA schema stored without its document being parsed has no kind that\ncould be read, and is excluded from every filtered result.\n")
|
|
1376
1812
|
});
|
|
1377
1813
|
const listSchemasResponseSchemasItemSchemaOneObjectTypeMax = 256;
|
|
1814
|
+
const listSchemasResponseSchemasItemSchemaOneMetaSchemaMax = 1024;
|
|
1815
|
+
const listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
1816
|
+
const listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1378
1817
|
const listSchemasResponseSchemasItemSchemaOnePropertiesXAuditDefault = false;
|
|
1379
1818
|
const ListSchemasResponse = zod.object({
|
|
1380
1819
|
schemas: zod.array(zod.object({
|
|
@@ -1382,12 +1821,15 @@ const ListSchemasResponse = zod.object({
|
|
|
1382
1821
|
schema: zod.object({
|
|
1383
1822
|
objectType: zod.string().max(256).optional().describe("The type of user this schema describes. This is a customer chosen name.\n"),
|
|
1384
1823
|
kind: zod.literal("user-schema").describe("Discriminator value for a user schema create request."),
|
|
1385
|
-
metaSchema: zod.url().describe("The user Schema version used for this schema."),
|
|
1824
|
+
metaSchema: zod.url().max(listSchemasResponseSchemasItemSchemaOneMetaSchemaMax).describe("The user Schema version used for this schema."),
|
|
1386
1825
|
"x-auth-methods": zod.object({
|
|
1387
1826
|
password: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1388
1827
|
passkey: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1389
1828
|
magic_link: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1390
|
-
sso: zod.object({
|
|
1829
|
+
sso: zod.object({
|
|
1830
|
+
enabled: zod.boolean().describe("Whether the authentication method is enabled or not"),
|
|
1831
|
+
providers: zod.array(zod.string().max(64).regex(listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemRegExp)).min(1).optional().describe("Slugs of the Project-level identity provider connections available to users of this schema. Each entry must match the `slug` of a connection under `.zitadel/idps/`; a connection existing does not by itself make it available here.")
|
|
1832
|
+
}).optional(),
|
|
1391
1833
|
otp: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional()
|
|
1392
1834
|
}).describe("A list of authentication methods supported by the user definition."),
|
|
1393
1835
|
"x-identifier": zod.string().min(1).optional().describe("Path of the leaf property whose value identifies a user (nested leaves\nare addressed by their dot-joined attribute path). The property must\ncarry `x-unique` \"project\". Required when an auth method needing\nidentifier-first dispatch (password) is enabled. Passkey is exempt:\ndiscoverable credentials identify the user through the assertion\nitself, so passkey-only and API-managed schemas may designate nothing;\nflows using identifier-first passkey are validated at the flow level\ninstead.\n"),
|
|
@@ -1401,8 +1843,8 @@ const ListSchemasResponse = zod.object({
|
|
|
1401
1843
|
"x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
|
|
1402
1844
|
"x-audit": zod.boolean().default(false).describe("Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"),
|
|
1403
1845
|
properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
|
|
1404
|
-
}).describe("
|
|
1405
|
-
}).describe("
|
|
1846
|
+
}).describe("The meta-schema one property of a customer's user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
|
|
1847
|
+
}).describe("The meta-schema a customer's user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n").describe("The customer-authored JSON Schema document, served verbatim."),
|
|
1406
1848
|
metadata: zod.object({ created_at: zod.iso.datetime({ offset: true }).describe("The time when the schema was created.") })
|
|
1407
1849
|
}).describe("A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document's own `$id`.\n")),
|
|
1408
1850
|
next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
|
|
@@ -1418,18 +1860,24 @@ const GetSchemaByIdParams = zod.object({ id: zod.string() });
|
|
|
1418
1860
|
const getSchemaByIdQueryTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
1419
1861
|
const GetSchemaByIdQueryParams = zod.strictObject({ team_id: zod.string().regex(getSchemaByIdQueryTeamIdRegExp).optional().describe("The unique identifier of the team") });
|
|
1420
1862
|
const getSchemaByIdResponseSchemaOneObjectTypeMax = 256;
|
|
1863
|
+
const getSchemaByIdResponseSchemaOneMetaSchemaMax = 1024;
|
|
1864
|
+
const getSchemaByIdResponseSchemaOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
1865
|
+
const getSchemaByIdResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1421
1866
|
const getSchemaByIdResponseSchemaOnePropertiesXAuditDefault = false;
|
|
1422
1867
|
const GetSchemaByIdResponse = zod.object({
|
|
1423
1868
|
id: zod.string().describe("The resource id: the server-minted `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
|
|
1424
1869
|
schema: zod.object({
|
|
1425
1870
|
objectType: zod.string().max(256).optional().describe("The type of user this schema describes. This is a customer chosen name.\n"),
|
|
1426
1871
|
kind: zod.literal("user-schema").describe("Discriminator value for a user schema create request."),
|
|
1427
|
-
metaSchema: zod.url().describe("The user Schema version used for this schema."),
|
|
1872
|
+
metaSchema: zod.url().max(getSchemaByIdResponseSchemaOneMetaSchemaMax).describe("The user Schema version used for this schema."),
|
|
1428
1873
|
"x-auth-methods": zod.object({
|
|
1429
1874
|
password: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1430
1875
|
passkey: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1431
1876
|
magic_link: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1432
|
-
sso: zod.object({
|
|
1877
|
+
sso: zod.object({
|
|
1878
|
+
enabled: zod.boolean().describe("Whether the authentication method is enabled or not"),
|
|
1879
|
+
providers: zod.array(zod.string().max(64).regex(getSchemaByIdResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp)).min(1).optional().describe("Slugs of the Project-level identity provider connections available to users of this schema. Each entry must match the `slug` of a connection under `.zitadel/idps/`; a connection existing does not by itself make it available here.")
|
|
1880
|
+
}).optional(),
|
|
1433
1881
|
otp: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional()
|
|
1434
1882
|
}).describe("A list of authentication methods supported by the user definition."),
|
|
1435
1883
|
"x-identifier": zod.string().min(1).optional().describe("Path of the leaf property whose value identifies a user (nested leaves\nare addressed by their dot-joined attribute path). The property must\ncarry `x-unique` \"project\". Required when an auth method needing\nidentifier-first dispatch (password) is enabled. Passkey is exempt:\ndiscoverable credentials identify the user through the assertion\nitself, so passkey-only and API-managed schemas may designate nothing;\nflows using identifier-first passkey are validated at the flow level\ninstead.\n"),
|
|
@@ -1443,32 +1891,40 @@ const GetSchemaByIdResponse = zod.object({
|
|
|
1443
1891
|
"x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
|
|
1444
1892
|
"x-audit": zod.boolean().default(false).describe("Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"),
|
|
1445
1893
|
properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
|
|
1446
|
-
}).describe("
|
|
1447
|
-
}).describe("
|
|
1894
|
+
}).describe("The meta-schema one property of a customer's user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
|
|
1895
|
+
}).describe("The meta-schema a customer's user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n").describe("The customer-authored JSON Schema document, served verbatim."),
|
|
1448
1896
|
metadata: zod.object({ created_at: zod.iso.datetime({ offset: true }).describe("The time when the schema was created.") })
|
|
1449
1897
|
}).describe("A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document's own `$id`.\n");
|
|
1450
1898
|
/**
|
|
1451
|
-
*
|
|
1899
|
+
* Publishes a new flow definition revision.
|
|
1452
1900
|
Flow definitions are templates that define the sequence of steps (capabilities)
|
|
1453
1901
|
for a particular user journey (e.g., registration, login, password reset).
|
|
1454
1902
|
|
|
1455
1903
|
Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
|
|
1456
1904
|
|
|
1905
|
+
Every call allocates a new opaque id. Revisions of one flow share its
|
|
1906
|
+
`name`; posting a definition under an existing `name` publishes a new
|
|
1907
|
+
revision of that flow, it is not a conflict. List with `name` to see a
|
|
1908
|
+
flow's revisions, newest by creation time first.
|
|
1909
|
+
|
|
1457
1910
|
* @summary Create a new flow definition
|
|
1458
1911
|
*/
|
|
1459
1912
|
const createFlowDefinitionBodyProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
1460
1913
|
const createFlowDefinitionBodyFlowDefinitionNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]*$");
|
|
1914
|
+
const createFlowDefinitionBodyFlowDefinitionStepsItemNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9_-]*$");
|
|
1461
1915
|
const createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault = [];
|
|
1462
1916
|
const createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
|
|
1463
1917
|
const createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault = [];
|
|
1464
1918
|
const createFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault = {};
|
|
1919
|
+
const createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemMax = 64;
|
|
1920
|
+
const createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1465
1921
|
const createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault = [];
|
|
1466
1922
|
const CreateFlowDefinitionBody = zod.object({
|
|
1467
1923
|
project_id: zod.string().regex(createFlowDefinitionBodyProjectIdRegExp),
|
|
1468
1924
|
schema_uri: zod.url().optional().describe("URI of the server-published flow definition schema this definition was\nauthored against. The server uses this to validate the definition.\nIf not provided, the engine will use the latest schema version for validation.\n"),
|
|
1469
1925
|
flow_definition: zod.object({
|
|
1470
|
-
name: zod.string().regex(createFlowDefinitionBodyFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Renaming is not supported — the
|
|
1471
|
-
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\
|
|
1926
|
+
name: zod.string().regex(createFlowDefinitionBodyFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Every revision of a flow shares its\n`name`; publishing a definition under an existing `name` adds a\nrevision to that flow. Renaming is not supported — the `name` is part\nof the public contract another definition may reference. Acts as the\nhuman display label as well; no separate slug.\n"),
|
|
1927
|
+
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nA revision's status is fixed at creation. Publish a new revision to change it.\n"),
|
|
1472
1928
|
user_schema: zod.string().describe("Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST /schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n"),
|
|
1473
1929
|
purposes: zod.record(zod.string(), zod.string()).describe("Maps each purpose this definition handles to its entry-point step.\nKeys are purpose names; values must match a `name` in `steps`. A\ndefinition can serve multiple purposes (e.g. a combined login/register\nflow) by listing one entry per purpose.\n"),
|
|
1474
1930
|
audience: zod.object({
|
|
@@ -1476,30 +1932,25 @@ const CreateFlowDefinitionBody = zod.object({
|
|
|
1476
1932
|
app_ids: zod.array(zod.string()).optional().describe("Restrict to specific applications. Empty means no app restriction.")
|
|
1477
1933
|
}).optional().describe("Scopes which teams or apps this flow definition applies to. Empty or\nomitted fields mean \"no restriction\"; when both are empty the definition\nmatches every request in the project. The engine picks the most specific\nmatching definition: app > team > project-wide.\n"),
|
|
1478
1934
|
steps: zod.array(zod.object({
|
|
1479
|
-
name: zod.string().describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
1935
|
+
name: zod.string().regex(createFlowDefinitionBodyFlowDefinitionStepsItemNameRegExp).describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
1480
1936
|
fields: zod.array(zod.string()).default(createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault).describe("Schema property names to collect from the user. Each entry references\na property in the flow's user schema. The engine resolves field type,\nvalidation rules, and implicit outcomes from schema annotations\n(e.g. a property with `x-unique` set implies a `user_not_found`\ntransition outcome).\n"),
|
|
1481
1937
|
actions: zod.array(zod.object({
|
|
1482
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
1938
|
+
name: zod.string().min(1).describe("Action identifier. Sent back in the submit request as `action`."),
|
|
1483
1939
|
kind: zod.enum([
|
|
1484
1940
|
"submit",
|
|
1485
1941
|
"passkey",
|
|
1486
1942
|
"passkey_register",
|
|
1487
|
-
"navigate"
|
|
1488
|
-
|
|
1489
|
-
]).describe("Classifies how the engine handles this action:\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n- `back`: return the user to the previous step. Surfaced by the engine\n when going back is available.\n"),
|
|
1943
|
+
"navigate"
|
|
1944
|
+
]).describe("Classifies how the engine handles this action. `back` is not declarable:\nthe engine injects it into runtime steps (see `flow-step-action.yaml`)\nwhenever going back is available.\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n"),
|
|
1490
1945
|
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis. At most one action per step\nshould be primary; this is not enforced here.\n"),
|
|
1491
1946
|
text_key: zod.string().optional().describe("Optional localization key override for the action's label. When\nomitted, the engine derives a key from the step and action names.\nDisplay text is resolved client-side from a locale dictionary, never\nby the engine.\n")
|
|
1492
|
-
}).describe("
|
|
1947
|
+
}).describe("An action a flow author declares on a step of a flow definition. The\n`name` is sent back in the submit request as `action`; the engine resolves\nthe action's declared `kind` to decide how to handle the submission.\n")).default(createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault).describe("Ordered list of actions the user can take. The action name is what the\nfrontend sends back in the submit request. If omitted, the engine\nprovides a default `submit` action.\n"),
|
|
1493
1948
|
gates: zod.record(zod.string(), zod.object({
|
|
1494
1949
|
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
1495
1950
|
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
1496
1951
|
config: zod.record(zod.string(), zod.unknown()).optional().describe("Provider-specific configuration consumed by the implementation when\nissuing the per-render challenge. Opaque to the engine.\n")
|
|
1497
1952
|
}).describe("A security challenge that must be satisfied before this step's submission\nis accepted. The engine may also inject gates at runtime based on policy\nor risk evaluation.\n")).default(createFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault).describe("Security gates that must be satisfied before submission. Keyed by gate\nname. Each gate selects a kind (e.g. \"captcha\") and provider-specific\nconfiguration. The engine may also inject gates dynamically based on\npolicy.\n"),
|
|
1498
|
-
sso_providers: zod.array(zod.
|
|
1499
|
-
id: zod.string().describe("Provider instance identifier."),
|
|
1500
|
-
name: zod.string().describe("Display name for the provider."),
|
|
1501
|
-
template: zod.string().describe("Template hint for rendering (logo, colors).")
|
|
1502
|
-
}).describe("An available SSO identity provider.")).default(createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault).describe("Available SSO identity providers for this step."),
|
|
1953
|
+
sso_providers: zod.array(zod.string().max(64).regex(createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemRegExp)).default(createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault).describe("Slugs of the identity provider connections this step offers, in display\norder. Each names the `slug` of a connection under `.zitadel/idps/`; the\nconnection carries the display name and template, so a rename there\nreaches every step without editing the flow. The rendered step the client\nreceives carries the resolved `{id, name, template}` objects instead.\n"),
|
|
1503
1954
|
on_success: zod.enum(["create_user"]).optional().describe("Server-side mutation to execute when this step completes successfully.\nRuns after field validation passes, before the transition fires.\n\n- create_user: creates the user record (registration flows)\n"),
|
|
1504
1955
|
complete: zod.enum(["redirect", "show"]).optional().describe("Marks this as a terminal step. Tells the frontend what to do:\n- redirect: navigate to redirect_uri (OIDC/SAML callback done)\n- show: render as a success/info screen\n"),
|
|
1505
1956
|
transitions: zod.record(zod.string(), zod.object({
|
|
@@ -1518,14 +1969,17 @@ const CreateFlowDefinitionBody = zod.object({
|
|
|
1518
1969
|
}).describe("A flow definition is the server-side configuration that describes a complete\nauthentication or identity flow. It is NOT sent to the frontend — the flow\nengine evaluates it and produces FlowResponse payloads (steps with capability\ndictionaries) for the client.\n\nFlow definitions are created by administrators and stored in the project/team\nconfiguration hierarchy. The engine selects the matching definition based on\nthe purpose + audience when a flow is created via POST /flow.\n")
|
|
1519
1970
|
}).describe("Creates a flow definition.\nThe flow definition is created in an `active` state by default.\nThe status can also be set via the `status` attribute in the flow definition payload.\n");
|
|
1520
1971
|
/**
|
|
1521
|
-
* Retrieves a list of all flow definitions.
|
|
1972
|
+
* Retrieves a list of all flow definitions, newest by creation time first.
|
|
1522
1973
|
This endpoint can be used to view existing flow definitions and their configurations.
|
|
1974
|
+
Filter by `name` to list the revisions of one flow.
|
|
1523
1975
|
|
|
1524
1976
|
* @summary List flow definitions
|
|
1525
1977
|
*/
|
|
1526
1978
|
const listFlowDefinitionsQueryLimitDefault = 20;
|
|
1527
1979
|
const listFlowDefinitionsQueryLimitMax = 100;
|
|
1528
1980
|
const listFlowDefinitionsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
1981
|
+
const listFlowDefinitionsQueryNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]*$");
|
|
1982
|
+
const listFlowDefinitionsQueryRevisionsDefault = `all`;
|
|
1529
1983
|
const ListFlowDefinitionsQueryParams = zod.strictObject({
|
|
1530
1984
|
limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
|
|
1531
1985
|
page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n"),
|
|
@@ -1538,23 +1992,31 @@ const ListFlowDefinitionsQueryParams = zod.strictObject({
|
|
|
1538
1992
|
"reauth",
|
|
1539
1993
|
"link_account"
|
|
1540
1994
|
]).optional().describe("Filter flow definitions by purpose (e.g., registration, login)."),
|
|
1995
|
+
name: zod.string().regex(listFlowDefinitionsQueryNameRegExp).optional().describe("The flow name to filter by. Every revision of a flow shares its\n`name`, so the result is that flow's revisions, newest by creation\ntime first.\n"),
|
|
1996
|
+
revisions: zod.enum(["all", "latest"]).default(listFlowDefinitionsQueryRevisionsDefault).describe("Which revisions to return. Every revision of a flow shares its\n`name`, so publishing a definition under an existing `name` generates\na new row.\n\n`all` (the default) returns every revision — the full history an\nexport, an audit or a GitOps diff needs. `latest` returns the newest\nrevision of each `name`, which is one row per flow.\n\nA `page_token` is bound to the mode it was issued in and is rejected by\nthe other.\n"),
|
|
1541
1997
|
expand: zod.array(zod.enum(["user_schema"]).describe("A related entity to embed on each returned flow definition.\n\n- `user_schema`: the user schema the flow operates on, embedded as\n `user_schema` on each entry: the same object `GET /schemas/{id}` returns.\n The property is omitted entirely when not requested and `null` when the\n referenced schema no longer resolves or the caller may not read it, so\n \"did not ask\" stays distinguishable from \"cannot resolve\". Requesting it\n requires read access to schemas.\n")).optional().describe("Related entities to embed on each returned flow definition.")
|
|
1542
1998
|
});
|
|
1543
1999
|
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]*$");
|
|
2000
|
+
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9_-]*$");
|
|
1544
2001
|
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemFieldsDefault = [];
|
|
1545
2002
|
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
|
|
1546
2003
|
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsDefault = [];
|
|
1547
2004
|
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemGatesDefault = {};
|
|
2005
|
+
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemMax = 64;
|
|
2006
|
+
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1548
2007
|
const listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersDefault = [];
|
|
1549
2008
|
const listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneObjectTypeMax = 256;
|
|
2009
|
+
const listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax = 1024;
|
|
2010
|
+
const listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
2011
|
+
const listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1550
2012
|
const listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOnePropertiesXAuditDefault = false;
|
|
1551
2013
|
const ListFlowDefinitionsResponse = zod.object({
|
|
1552
2014
|
flow_definitions: zod.array(zod.object({
|
|
1553
2015
|
id: zod.string().describe("Unique identifier for the flow definition."),
|
|
1554
2016
|
project_id: zod.string().describe("Identifier of the project this flow definition belongs to."),
|
|
1555
2017
|
flow_definition: zod.object({
|
|
1556
|
-
name: zod.string().regex(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Renaming is not supported — the
|
|
1557
|
-
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\
|
|
2018
|
+
name: zod.string().regex(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Every revision of a flow shares its\n`name`; publishing a definition under an existing `name` adds a\nrevision to that flow. Renaming is not supported — the `name` is part\nof the public contract another definition may reference. Acts as the\nhuman display label as well; no separate slug.\n"),
|
|
2019
|
+
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nA revision's status is fixed at creation. Publish a new revision to change it.\n"),
|
|
1558
2020
|
user_schema: zod.string().describe("Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST /schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n"),
|
|
1559
2021
|
purposes: zod.record(zod.string(), zod.string()).describe("Maps each purpose this definition handles to its entry-point step.\nKeys are purpose names; values must match a `name` in `steps`. A\ndefinition can serve multiple purposes (e.g. a combined login/register\nflow) by listing one entry per purpose.\n"),
|
|
1560
2022
|
audience: zod.object({
|
|
@@ -1562,30 +2024,25 @@ const ListFlowDefinitionsResponse = zod.object({
|
|
|
1562
2024
|
app_ids: zod.array(zod.string()).optional().describe("Restrict to specific applications. Empty means no app restriction.")
|
|
1563
2025
|
}).optional().describe("Scopes which teams or apps this flow definition applies to. Empty or\nomitted fields mean \"no restriction\"; when both are empty the definition\nmatches every request in the project. The engine picks the most specific\nmatching definition: app > team > project-wide.\n"),
|
|
1564
2026
|
steps: zod.array(zod.object({
|
|
1565
|
-
name: zod.string().describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
2027
|
+
name: zod.string().regex(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemNameRegExp).describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
1566
2028
|
fields: zod.array(zod.string()).default(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemFieldsDefault).describe("Schema property names to collect from the user. Each entry references\na property in the flow's user schema. The engine resolves field type,\nvalidation rules, and implicit outcomes from schema annotations\n(e.g. a property with `x-unique` set implies a `user_not_found`\ntransition outcome).\n"),
|
|
1567
2029
|
actions: zod.array(zod.object({
|
|
1568
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
2030
|
+
name: zod.string().min(1).describe("Action identifier. Sent back in the submit request as `action`."),
|
|
1569
2031
|
kind: zod.enum([
|
|
1570
2032
|
"submit",
|
|
1571
2033
|
"passkey",
|
|
1572
2034
|
"passkey_register",
|
|
1573
|
-
"navigate"
|
|
1574
|
-
|
|
1575
|
-
]).describe("Classifies how the engine handles this action:\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n- `back`: return the user to the previous step. Surfaced by the engine\n when going back is available.\n"),
|
|
2035
|
+
"navigate"
|
|
2036
|
+
]).describe("Classifies how the engine handles this action. `back` is not declarable:\nthe engine injects it into runtime steps (see `flow-step-action.yaml`)\nwhenever going back is available.\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n"),
|
|
1576
2037
|
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis. At most one action per step\nshould be primary; this is not enforced here.\n"),
|
|
1577
2038
|
text_key: zod.string().optional().describe("Optional localization key override for the action's label. When\nomitted, the engine derives a key from the step and action names.\nDisplay text is resolved client-side from a locale dictionary, never\nby the engine.\n")
|
|
1578
|
-
}).describe("
|
|
2039
|
+
}).describe("An action a flow author declares on a step of a flow definition. The\n`name` is sent back in the submit request as `action`; the engine resolves\nthe action's declared `kind` to decide how to handle the submission.\n")).default(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsDefault).describe("Ordered list of actions the user can take. The action name is what the\nfrontend sends back in the submit request. If omitted, the engine\nprovides a default `submit` action.\n"),
|
|
1579
2040
|
gates: zod.record(zod.string(), zod.object({
|
|
1580
2041
|
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
1581
2042
|
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
1582
2043
|
config: zod.record(zod.string(), zod.unknown()).optional().describe("Provider-specific configuration consumed by the implementation when\nissuing the per-render challenge. Opaque to the engine.\n")
|
|
1583
2044
|
}).describe("A security challenge that must be satisfied before this step's submission\nis accepted. The engine may also inject gates at runtime based on policy\nor risk evaluation.\n")).default(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemGatesDefault).describe("Security gates that must be satisfied before submission. Keyed by gate\nname. Each gate selects a kind (e.g. \"captcha\") and provider-specific\nconfiguration. The engine may also inject gates dynamically based on\npolicy.\n"),
|
|
1584
|
-
sso_providers: zod.array(zod.
|
|
1585
|
-
id: zod.string().describe("Provider instance identifier."),
|
|
1586
|
-
name: zod.string().describe("Display name for the provider."),
|
|
1587
|
-
template: zod.string().describe("Template hint for rendering (logo, colors).")
|
|
1588
|
-
}).describe("An available SSO identity provider.")).default(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersDefault).describe("Available SSO identity providers for this step."),
|
|
2045
|
+
sso_providers: zod.array(zod.string().max(64).regex(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemRegExp)).default(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersDefault).describe("Slugs of the identity provider connections this step offers, in display\norder. Each names the `slug` of a connection under `.zitadel/idps/`; the\nconnection carries the display name and template, so a rename there\nreaches every step without editing the flow. The rendered step the client\nreceives carries the resolved `{id, name, template}` objects instead.\n"),
|
|
1589
2046
|
on_success: zod.enum(["create_user"]).optional().describe("Server-side mutation to execute when this step completes successfully.\nRuns after field validation passes, before the transition fires.\n\n- create_user: creates the user record (registration flows)\n"),
|
|
1590
2047
|
complete: zod.enum(["redirect", "show"]).optional().describe("Marks this as a terminal step. Tells the frontend what to do:\n- redirect: navigate to redirect_uri (OIDC/SAML callback done)\n- show: render as a success/info screen\n"),
|
|
1591
2048
|
transitions: zod.record(zod.string(), zod.object({
|
|
@@ -1607,12 +2064,15 @@ const ListFlowDefinitionsResponse = zod.object({
|
|
|
1607
2064
|
schema: zod.object({
|
|
1608
2065
|
objectType: zod.string().max(256).optional().describe("The type of user this schema describes. This is a customer chosen name.\n"),
|
|
1609
2066
|
kind: zod.literal("user-schema").describe("Discriminator value for a user schema create request."),
|
|
1610
|
-
metaSchema: zod.url().describe("The user Schema version used for this schema."),
|
|
2067
|
+
metaSchema: zod.url().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax).describe("The user Schema version used for this schema."),
|
|
1611
2068
|
"x-auth-methods": zod.object({
|
|
1612
2069
|
password: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1613
2070
|
passkey: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1614
2071
|
magic_link: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1615
|
-
sso: zod.object({
|
|
2072
|
+
sso: zod.object({
|
|
2073
|
+
enabled: zod.boolean().describe("Whether the authentication method is enabled or not"),
|
|
2074
|
+
providers: zod.array(zod.string().max(64).regex(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemRegExp)).min(1).optional().describe("Slugs of the Project-level identity provider connections available to users of this schema. Each entry must match the `slug` of a connection under `.zitadel/idps/`; a connection existing does not by itself make it available here.")
|
|
2075
|
+
}).optional(),
|
|
1616
2076
|
otp: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional()
|
|
1617
2077
|
}).describe("A list of authentication methods supported by the user definition."),
|
|
1618
2078
|
"x-identifier": zod.string().min(1).optional().describe("Path of the leaf property whose value identifies a user (nested leaves\nare addressed by their dot-joined attribute path). The property must\ncarry `x-unique` \"project\". Required when an auth method needing\nidentifier-first dispatch (password) is enabled. Passkey is exempt:\ndiscoverable credentials identify the user through the assertion\nitself, so passkey-only and API-managed schemas may designate nothing;\nflows using identifier-first passkey are validated at the flow level\ninstead.\n"),
|
|
@@ -1626,34 +2086,40 @@ const ListFlowDefinitionsResponse = zod.object({
|
|
|
1626
2086
|
"x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
|
|
1627
2087
|
"x-audit": zod.boolean().default(false).describe("Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"),
|
|
1628
2088
|
properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
|
|
1629
|
-
}).describe("
|
|
1630
|
-
}).describe("
|
|
2089
|
+
}).describe("The meta-schema one property of a customer's user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
|
|
2090
|
+
}).describe("The meta-schema a customer's user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n").describe("The customer-authored JSON Schema document, served verbatim."),
|
|
1631
2091
|
metadata: zod.object({ created_at: zod.iso.datetime({ offset: true }).describe("The time when the schema was created.") })
|
|
1632
2092
|
}).describe("A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document's own `$id`.\n"), zod.null()]).optional().describe("The user schema this flow operates on: the same object\n`GET /schemas/{id}` returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n"),
|
|
1633
2093
|
created_at: zod.iso.datetime({ offset: true }),
|
|
1634
2094
|
updated_at: zod.iso.datetime({ offset: true })
|
|
1635
2095
|
})),
|
|
1636
2096
|
next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("The token to retrieve the next page of results. Absent if there are no more results.")
|
|
1637
|
-
});
|
|
2097
|
+
}).describe("List of flow definitions, newest by creation time first.");
|
|
1638
2098
|
/**
|
|
1639
2099
|
* Get a flow definition by id
|
|
1640
2100
|
* @summary Get a flow definition by id
|
|
1641
2101
|
*/
|
|
1642
2102
|
const GetFlowDefinitionParams = zod.object({ id: zod.string().describe("The id returned by the POST /flow_definitions endpoint.\n") });
|
|
1643
2103
|
const getFlowDefinitionResponseFlowDefinitionNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]*$");
|
|
2104
|
+
const getFlowDefinitionResponseFlowDefinitionStepsItemNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9_-]*$");
|
|
1644
2105
|
const getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault = [];
|
|
1645
2106
|
const getFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
|
|
1646
2107
|
const getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault = [];
|
|
1647
2108
|
const getFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault = {};
|
|
2109
|
+
const getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemMax = 64;
|
|
2110
|
+
const getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1648
2111
|
const getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault = [];
|
|
1649
2112
|
const getFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax = 256;
|
|
2113
|
+
const getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax = 1024;
|
|
2114
|
+
const getFlowDefinitionResponseUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
2115
|
+
const getFlowDefinitionResponseUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
1650
2116
|
const getFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault = false;
|
|
1651
2117
|
const GetFlowDefinitionResponse = zod.object({
|
|
1652
2118
|
id: zod.string().describe("Unique identifier for the flow definition."),
|
|
1653
2119
|
project_id: zod.string().describe("Identifier of the project this flow definition belongs to."),
|
|
1654
2120
|
flow_definition: zod.object({
|
|
1655
|
-
name: zod.string().regex(getFlowDefinitionResponseFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Renaming is not supported — the
|
|
1656
|
-
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\
|
|
2121
|
+
name: zod.string().regex(getFlowDefinitionResponseFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Every revision of a flow shares its\n`name`; publishing a definition under an existing `name` adds a\nrevision to that flow. Renaming is not supported — the `name` is part\nof the public contract another definition may reference. Acts as the\nhuman display label as well; no separate slug.\n"),
|
|
2122
|
+
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nA revision's status is fixed at creation. Publish a new revision to change it.\n"),
|
|
1657
2123
|
user_schema: zod.string().describe("Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST /schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n"),
|
|
1658
2124
|
purposes: zod.record(zod.string(), zod.string()).describe("Maps each purpose this definition handles to its entry-point step.\nKeys are purpose names; values must match a `name` in `steps`. A\ndefinition can serve multiple purposes (e.g. a combined login/register\nflow) by listing one entry per purpose.\n"),
|
|
1659
2125
|
audience: zod.object({
|
|
@@ -1661,30 +2127,25 @@ const GetFlowDefinitionResponse = zod.object({
|
|
|
1661
2127
|
app_ids: zod.array(zod.string()).optional().describe("Restrict to specific applications. Empty means no app restriction.")
|
|
1662
2128
|
}).optional().describe("Scopes which teams or apps this flow definition applies to. Empty or\nomitted fields mean \"no restriction\"; when both are empty the definition\nmatches every request in the project. The engine picks the most specific\nmatching definition: app > team > project-wide.\n"),
|
|
1663
2129
|
steps: zod.array(zod.object({
|
|
1664
|
-
name: zod.string().describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
2130
|
+
name: zod.string().regex(getFlowDefinitionResponseFlowDefinitionStepsItemNameRegExp).describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
1665
2131
|
fields: zod.array(zod.string()).default(getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault).describe("Schema property names to collect from the user. Each entry references\na property in the flow's user schema. The engine resolves field type,\nvalidation rules, and implicit outcomes from schema annotations\n(e.g. a property with `x-unique` set implies a `user_not_found`\ntransition outcome).\n"),
|
|
1666
2132
|
actions: zod.array(zod.object({
|
|
1667
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
2133
|
+
name: zod.string().min(1).describe("Action identifier. Sent back in the submit request as `action`."),
|
|
1668
2134
|
kind: zod.enum([
|
|
1669
2135
|
"submit",
|
|
1670
2136
|
"passkey",
|
|
1671
2137
|
"passkey_register",
|
|
1672
|
-
"navigate"
|
|
1673
|
-
|
|
1674
|
-
]).describe("Classifies how the engine handles this action:\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n- `back`: return the user to the previous step. Surfaced by the engine\n when going back is available.\n"),
|
|
2138
|
+
"navigate"
|
|
2139
|
+
]).describe("Classifies how the engine handles this action. `back` is not declarable:\nthe engine injects it into runtime steps (see `flow-step-action.yaml`)\nwhenever going back is available.\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n"),
|
|
1675
2140
|
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis. At most one action per step\nshould be primary; this is not enforced here.\n"),
|
|
1676
2141
|
text_key: zod.string().optional().describe("Optional localization key override for the action's label. When\nomitted, the engine derives a key from the step and action names.\nDisplay text is resolved client-side from a locale dictionary, never\nby the engine.\n")
|
|
1677
|
-
}).describe("
|
|
2142
|
+
}).describe("An action a flow author declares on a step of a flow definition. The\n`name` is sent back in the submit request as `action`; the engine resolves\nthe action's declared `kind` to decide how to handle the submission.\n")).default(getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault).describe("Ordered list of actions the user can take. The action name is what the\nfrontend sends back in the submit request. If omitted, the engine\nprovides a default `submit` action.\n"),
|
|
1678
2143
|
gates: zod.record(zod.string(), zod.object({
|
|
1679
2144
|
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
1680
2145
|
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
1681
2146
|
config: zod.record(zod.string(), zod.unknown()).optional().describe("Provider-specific configuration consumed by the implementation when\nissuing the per-render challenge. Opaque to the engine.\n")
|
|
1682
2147
|
}).describe("A security challenge that must be satisfied before this step's submission\nis accepted. The engine may also inject gates at runtime based on policy\nor risk evaluation.\n")).default(getFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault).describe("Security gates that must be satisfied before submission. Keyed by gate\nname. Each gate selects a kind (e.g. \"captcha\") and provider-specific\nconfiguration. The engine may also inject gates dynamically based on\npolicy.\n"),
|
|
1683
|
-
sso_providers: zod.array(zod.
|
|
1684
|
-
id: zod.string().describe("Provider instance identifier."),
|
|
1685
|
-
name: zod.string().describe("Display name for the provider."),
|
|
1686
|
-
template: zod.string().describe("Template hint for rendering (logo, colors).")
|
|
1687
|
-
}).describe("An available SSO identity provider.")).default(getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault).describe("Available SSO identity providers for this step."),
|
|
2148
|
+
sso_providers: zod.array(zod.string().max(64).regex(getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemRegExp)).default(getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault).describe("Slugs of the identity provider connections this step offers, in display\norder. Each names the `slug` of a connection under `.zitadel/idps/`; the\nconnection carries the display name and template, so a rename there\nreaches every step without editing the flow. The rendered step the client\nreceives carries the resolved `{id, name, template}` objects instead.\n"),
|
|
1688
2149
|
on_success: zod.enum(["create_user"]).optional().describe("Server-side mutation to execute when this step completes successfully.\nRuns after field validation passes, before the transition fires.\n\n- create_user: creates the user record (registration flows)\n"),
|
|
1689
2150
|
complete: zod.enum(["redirect", "show"]).optional().describe("Marks this as a terminal step. Tells the frontend what to do:\n- redirect: navigate to redirect_uri (OIDC/SAML callback done)\n- show: render as a success/info screen\n"),
|
|
1690
2151
|
transitions: zod.record(zod.string(), zod.object({
|
|
@@ -1706,12 +2167,15 @@ const GetFlowDefinitionResponse = zod.object({
|
|
|
1706
2167
|
schema: zod.object({
|
|
1707
2168
|
objectType: zod.string().max(256).optional().describe("The type of user this schema describes. This is a customer chosen name.\n"),
|
|
1708
2169
|
kind: zod.literal("user-schema").describe("Discriminator value for a user schema create request."),
|
|
1709
|
-
metaSchema: zod.url().describe("The user Schema version used for this schema."),
|
|
2170
|
+
metaSchema: zod.url().max(getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe("The user Schema version used for this schema."),
|
|
1710
2171
|
"x-auth-methods": zod.object({
|
|
1711
2172
|
password: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1712
2173
|
passkey: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1713
2174
|
magic_link: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1714
|
-
sso: zod.object({
|
|
2175
|
+
sso: zod.object({
|
|
2176
|
+
enabled: zod.boolean().describe("Whether the authentication method is enabled or not"),
|
|
2177
|
+
providers: zod.array(zod.string().max(64).regex(getFlowDefinitionResponseUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemRegExp)).min(1).optional().describe("Slugs of the Project-level identity provider connections available to users of this schema. Each entry must match the `slug` of a connection under `.zitadel/idps/`; a connection existing does not by itself make it available here.")
|
|
2178
|
+
}).optional(),
|
|
1715
2179
|
otp: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional()
|
|
1716
2180
|
}).describe("A list of authentication methods supported by the user definition."),
|
|
1717
2181
|
"x-identifier": zod.string().min(1).optional().describe("Path of the leaf property whose value identifies a user (nested leaves\nare addressed by their dot-joined attribute path). The property must\ncarry `x-unique` \"project\". Required when an auth method needing\nidentifier-first dispatch (password) is enabled. Passkey is exempt:\ndiscoverable credentials identify the user through the assertion\nitself, so passkey-only and API-managed schemas may designate nothing;\nflows using identifier-first passkey are validated at the flow level\ninstead.\n"),
|
|
@@ -1725,180 +2189,14 @@ const GetFlowDefinitionResponse = zod.object({
|
|
|
1725
2189
|
"x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
|
|
1726
2190
|
"x-audit": zod.boolean().default(false).describe("Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"),
|
|
1727
2191
|
properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
|
|
1728
|
-
}).describe("
|
|
1729
|
-
}).describe("
|
|
2192
|
+
}).describe("The meta-schema one property of a customer's user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
|
|
2193
|
+
}).describe("The meta-schema a customer's user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n").describe("The customer-authored JSON Schema document, served verbatim."),
|
|
1730
2194
|
metadata: zod.object({ created_at: zod.iso.datetime({ offset: true }).describe("The time when the schema was created.") })
|
|
1731
2195
|
}).describe("A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document's own `$id`.\n"), zod.null()]).optional().describe("The user schema this flow operates on: the same object\n`GET /schemas/{id}` returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n"),
|
|
1732
2196
|
created_at: zod.iso.datetime({ offset: true }),
|
|
1733
2197
|
updated_at: zod.iso.datetime({ offset: true })
|
|
1734
2198
|
});
|
|
1735
2199
|
/**
|
|
1736
|
-
* Update a flow definition by id. This endpoint replaces the existing flow definition.
|
|
1737
|
-
If `flow_definition.status` is omitted, the current status is preserved
|
|
1738
|
-
|
|
1739
|
-
* @summary Update a flow definition by id
|
|
1740
|
-
*/
|
|
1741
|
-
const UpdateFlowDefinitionParams = zod.object({ id: zod.string().describe("The id returned by the POST /flow_definitions endpoint.\n") });
|
|
1742
|
-
const updateFlowDefinitionBodyFlowDefinitionNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]*$");
|
|
1743
|
-
const updateFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault = [];
|
|
1744
|
-
const updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
|
|
1745
|
-
const updateFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault = [];
|
|
1746
|
-
const updateFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault = {};
|
|
1747
|
-
const updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault = [];
|
|
1748
|
-
const UpdateFlowDefinitionBody = zod.object({
|
|
1749
|
-
schema_uri: zod.url().optional().describe("URI of the server-published flow definition schema this definition was\nauthored against. The server uses this to validate the definition.\nIf not provided, the engine will use the latest schema version for validation.\n"),
|
|
1750
|
-
flow_definition: zod.object({
|
|
1751
|
-
name: zod.string().regex(updateFlowDefinitionBodyFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Renaming is not supported — the\n`name` is part of the public contract another definition may\nreference. Acts as the human display label as well; no separate slug.\n"),
|
|
1752
|
-
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n"),
|
|
1753
|
-
user_schema: zod.string().describe("Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST /schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n"),
|
|
1754
|
-
purposes: zod.record(zod.string(), zod.string()).describe("Maps each purpose this definition handles to its entry-point step.\nKeys are purpose names; values must match a `name` in `steps`. A\ndefinition can serve multiple purposes (e.g. a combined login/register\nflow) by listing one entry per purpose.\n"),
|
|
1755
|
-
audience: zod.object({
|
|
1756
|
-
team_ids: zod.array(zod.string()).optional().describe("Restrict to specific teams (organizations). Empty means no team restriction."),
|
|
1757
|
-
app_ids: zod.array(zod.string()).optional().describe("Restrict to specific applications. Empty means no app restriction.")
|
|
1758
|
-
}).optional().describe("Scopes which teams or apps this flow definition applies to. Empty or\nomitted fields mean \"no restriction\"; when both are empty the definition\nmatches every request in the project. The engine picks the most specific\nmatching definition: app > team > project-wide.\n"),
|
|
1759
|
-
steps: zod.array(zod.object({
|
|
1760
|
-
name: zod.string().describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
1761
|
-
fields: zod.array(zod.string()).default(updateFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault).describe("Schema property names to collect from the user. Each entry references\na property in the flow's user schema. The engine resolves field type,\nvalidation rules, and implicit outcomes from schema annotations\n(e.g. a property with `x-unique` set implies a `user_not_found`\ntransition outcome).\n"),
|
|
1762
|
-
actions: zod.array(zod.object({
|
|
1763
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
1764
|
-
kind: zod.enum([
|
|
1765
|
-
"submit",
|
|
1766
|
-
"passkey",
|
|
1767
|
-
"passkey_register",
|
|
1768
|
-
"navigate",
|
|
1769
|
-
"back"
|
|
1770
|
-
]).describe("Classifies how the engine handles this action:\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n- `back`: return the user to the previous step. Surfaced by the engine\n when going back is available.\n"),
|
|
1771
|
-
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis. At most one action per step\nshould be primary; this is not enforced here.\n"),
|
|
1772
|
-
text_key: zod.string().optional().describe("Optional localization key override for the action's label. When\nomitted, the engine derives a key from the step and action names.\nDisplay text is resolved client-side from a locale dictionary, never\nby the engine.\n")
|
|
1773
|
-
}).describe("Configuration for a user-invokable action on a step. The `name` is sent\nback in the submit request as `action`; the engine resolves the action's\ndeclared `kind` to decide how to handle the submission.\n")).default(updateFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault).describe("Ordered list of actions the user can take. The action name is what the\nfrontend sends back in the submit request. If omitted, the engine\nprovides a default `submit` action.\n"),
|
|
1774
|
-
gates: zod.record(zod.string(), zod.object({
|
|
1775
|
-
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
1776
|
-
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
1777
|
-
config: zod.record(zod.string(), zod.unknown()).optional().describe("Provider-specific configuration consumed by the implementation when\nissuing the per-render challenge. Opaque to the engine.\n")
|
|
1778
|
-
}).describe("A security challenge that must be satisfied before this step's submission\nis accepted. The engine may also inject gates at runtime based on policy\nor risk evaluation.\n")).default(updateFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault).describe("Security gates that must be satisfied before submission. Keyed by gate\nname. Each gate selects a kind (e.g. \"captcha\") and provider-specific\nconfiguration. The engine may also inject gates dynamically based on\npolicy.\n"),
|
|
1779
|
-
sso_providers: zod.array(zod.object({
|
|
1780
|
-
id: zod.string().describe("Provider instance identifier."),
|
|
1781
|
-
name: zod.string().describe("Display name for the provider."),
|
|
1782
|
-
template: zod.string().describe("Template hint for rendering (logo, colors).")
|
|
1783
|
-
}).describe("An available SSO identity provider.")).default(updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault).describe("Available SSO identity providers for this step."),
|
|
1784
|
-
on_success: zod.enum(["create_user"]).optional().describe("Server-side mutation to execute when this step completes successfully.\nRuns after field validation passes, before the transition fires.\n\n- create_user: creates the user record (registration flows)\n"),
|
|
1785
|
-
complete: zod.enum(["redirect", "show"]).optional().describe("Marks this as a terminal step. Tells the frontend what to do:\n- redirect: navigate to redirect_uri (OIDC/SAML callback done)\n- show: render as a success/info screen\n"),
|
|
1786
|
-
transitions: zod.record(zod.string(), zod.object({
|
|
1787
|
-
target: zod.string().describe("Step name within this flow (when `action` is null), or the name\nof another flow (when `action` is `switch` or `pivot`).\n"),
|
|
1788
|
-
action: zod.union([zod.enum(["switch", "pivot"]), zod.null()]).optional().describe("How to interpret `target`:\n- null (omitted): transition to a step in the current flow.\n- switch: replace the current flow with the target flow.\n No return — the current flow is discarded.\n Example: login ↔ register.\n- pivot: push the target flow onto the stack. The current flow\n is paused and resumes when the target flow completes (auto-pop).\n Example: login → recovery → back to login.\n"),
|
|
1789
|
-
purpose: zod.union([zod.enum([
|
|
1790
|
-
"login",
|
|
1791
|
-
"register",
|
|
1792
|
-
"recovery",
|
|
1793
|
-
"profiling",
|
|
1794
|
-
"reauth",
|
|
1795
|
-
"link_account"
|
|
1796
|
-
]), zod.null()]).optional().describe("Local re-purposing. When set, taking this transition changes the\nflow's current purpose to this value — the dispatch mode a step's\nchallenges run under — while the flow's original purpose stays\npinned. Must be a purpose this definition serves, and `target`\nmust be that purpose's entry step. Mutually exclusive with\n`action`: a transition either re-purposes within this flow or\ntargets another flow, never both.\nExample: a \"Sign up\" navigation on the login identifier step\n(`{ target: register, purpose: register }`).\n")
|
|
1797
|
-
})).optional().describe("Maps action/outcome names to their transition descriptor.\n\nKeys match action names from the `actions` array. Additional keys\ncome from implicit outcomes based on schema annotations\n(e.g. `user_not_found` from `x-unique` fields) and engine\nevents (e.g. `sso`, `callback`).\n")
|
|
1798
|
-
}).describe("A step in a flow definition. This is the admin-authored configuration,\nnot the runtime payload sent to the frontend.\n\nSteps are schema-driven: `fields` references properties from the flow's\nuser schema, and the engine resolves field metadata (type, validation,\nimplicit outcomes) from schema annotations at runtime.\n\nA step with only `complete` set is a terminal step. All other steps are\nrendered to the frontend as capability payloads.\n")).min(1).describe("Ordered list of steps in this flow. The order is for human readability —\nactual step sequencing is determined by transitions.\n")
|
|
1799
|
-
}).describe("A flow definition is the server-side configuration that describes a complete\nauthentication or identity flow. It is NOT sent to the frontend — the flow\nengine evaluates it and produces FlowResponse payloads (steps with capability\ndictionaries) for the client.\n\nFlow definitions are created by administrators and stored in the project/team\nconfiguration hierarchy. The engine selects the matching definition based on\nthe purpose + audience when a flow is created via POST /flow.\n")
|
|
1800
|
-
}).describe("Replaces the existing flow definition.\n");
|
|
1801
|
-
const updateFlowDefinitionResponseFlowDefinitionNameRegExp = /* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]*$");
|
|
1802
|
-
const updateFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault = [];
|
|
1803
|
-
const updateFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
|
|
1804
|
-
const updateFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault = [];
|
|
1805
|
-
const updateFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault = {};
|
|
1806
|
-
const updateFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault = [];
|
|
1807
|
-
const updateFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax = 256;
|
|
1808
|
-
const updateFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault = false;
|
|
1809
|
-
const UpdateFlowDefinitionResponse = zod.object({
|
|
1810
|
-
id: zod.string().describe("Unique identifier for the flow definition."),
|
|
1811
|
-
project_id: zod.string().describe("Identifier of the project this flow definition belongs to."),
|
|
1812
|
-
flow_definition: zod.object({
|
|
1813
|
-
name: zod.string().regex(updateFlowDefinitionResponseFlowDefinitionNameRegExp).describe("Stable identifier for this flow, used as the target of cross-flow\n`switch` and `pivot` transitions. Renaming is not supported — the\n`name` is part of the public contract another definition may\nreference. Acts as the human display label as well; no separate slug.\n"),
|
|
1814
|
-
status: zod.enum(["active", "draft"]).describe("The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n"),
|
|
1815
|
-
user_schema: zod.string().describe("Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST /schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n"),
|
|
1816
|
-
purposes: zod.record(zod.string(), zod.string()).describe("Maps each purpose this definition handles to its entry-point step.\nKeys are purpose names; values must match a `name` in `steps`. A\ndefinition can serve multiple purposes (e.g. a combined login/register\nflow) by listing one entry per purpose.\n"),
|
|
1817
|
-
audience: zod.object({
|
|
1818
|
-
team_ids: zod.array(zod.string()).optional().describe("Restrict to specific teams (organizations). Empty means no team restriction."),
|
|
1819
|
-
app_ids: zod.array(zod.string()).optional().describe("Restrict to specific applications. Empty means no app restriction.")
|
|
1820
|
-
}).optional().describe("Scopes which teams or apps this flow definition applies to. Empty or\nomitted fields mean \"no restriction\"; when both are empty the definition\nmatches every request in the project. The engine picks the most specific\nmatching definition: app > team > project-wide.\n"),
|
|
1821
|
-
steps: zod.array(zod.object({
|
|
1822
|
-
name: zod.string().describe("Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n"),
|
|
1823
|
-
fields: zod.array(zod.string()).default(updateFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault).describe("Schema property names to collect from the user. Each entry references\na property in the flow's user schema. The engine resolves field type,\nvalidation rules, and implicit outcomes from schema annotations\n(e.g. a property with `x-unique` set implies a `user_not_found`\ntransition outcome).\n"),
|
|
1824
|
-
actions: zod.array(zod.object({
|
|
1825
|
-
name: zod.string().describe("Action identifier. Sent back in the submit request as `action`."),
|
|
1826
|
-
kind: zod.enum([
|
|
1827
|
-
"submit",
|
|
1828
|
-
"passkey",
|
|
1829
|
-
"passkey_register",
|
|
1830
|
-
"navigate",
|
|
1831
|
-
"back"
|
|
1832
|
-
]).describe("Classifies how the engine handles this action:\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n pipeline. Used for pure-routing actions declared in the flow definition.\n- `back`: return the user to the previous step. Surfaced by the engine\n when going back is available.\n"),
|
|
1833
|
-
primary: zod.boolean().default(false).describe("Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis. At most one action per step\nshould be primary; this is not enforced here.\n"),
|
|
1834
|
-
text_key: zod.string().optional().describe("Optional localization key override for the action's label. When\nomitted, the engine derives a key from the step and action names.\nDisplay text is resolved client-side from a locale dictionary, never\nby the engine.\n")
|
|
1835
|
-
}).describe("Configuration for a user-invokable action on a step. The `name` is sent\nback in the submit request as `action`; the engine resolves the action's\ndeclared `kind` to decide how to handle the submission.\n")).default(updateFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault).describe("Ordered list of actions the user can take. The action name is what the\nfrontend sends back in the submit request. If omitted, the engine\nprovides a default `submit` action.\n"),
|
|
1836
|
-
gates: zod.record(zod.string(), zod.object({
|
|
1837
|
-
kind: zod.enum(["captcha"]).describe("The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"),
|
|
1838
|
-
provider: zod.string().describe("Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,\n`hcaptcha`. The engine looks up an implementation in its provider\nregistry.\n"),
|
|
1839
|
-
config: zod.record(zod.string(), zod.unknown()).optional().describe("Provider-specific configuration consumed by the implementation when\nissuing the per-render challenge. Opaque to the engine.\n")
|
|
1840
|
-
}).describe("A security challenge that must be satisfied before this step's submission\nis accepted. The engine may also inject gates at runtime based on policy\nor risk evaluation.\n")).default(updateFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault).describe("Security gates that must be satisfied before submission. Keyed by gate\nname. Each gate selects a kind (e.g. \"captcha\") and provider-specific\nconfiguration. The engine may also inject gates dynamically based on\npolicy.\n"),
|
|
1841
|
-
sso_providers: zod.array(zod.object({
|
|
1842
|
-
id: zod.string().describe("Provider instance identifier."),
|
|
1843
|
-
name: zod.string().describe("Display name for the provider."),
|
|
1844
|
-
template: zod.string().describe("Template hint for rendering (logo, colors).")
|
|
1845
|
-
}).describe("An available SSO identity provider.")).default(updateFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault).describe("Available SSO identity providers for this step."),
|
|
1846
|
-
on_success: zod.enum(["create_user"]).optional().describe("Server-side mutation to execute when this step completes successfully.\nRuns after field validation passes, before the transition fires.\n\n- create_user: creates the user record (registration flows)\n"),
|
|
1847
|
-
complete: zod.enum(["redirect", "show"]).optional().describe("Marks this as a terminal step. Tells the frontend what to do:\n- redirect: navigate to redirect_uri (OIDC/SAML callback done)\n- show: render as a success/info screen\n"),
|
|
1848
|
-
transitions: zod.record(zod.string(), zod.object({
|
|
1849
|
-
target: zod.string().describe("Step name within this flow (when `action` is null), or the name\nof another flow (when `action` is `switch` or `pivot`).\n"),
|
|
1850
|
-
action: zod.union([zod.enum(["switch", "pivot"]), zod.null()]).optional().describe("How to interpret `target`:\n- null (omitted): transition to a step in the current flow.\n- switch: replace the current flow with the target flow.\n No return — the current flow is discarded.\n Example: login ↔ register.\n- pivot: push the target flow onto the stack. The current flow\n is paused and resumes when the target flow completes (auto-pop).\n Example: login → recovery → back to login.\n"),
|
|
1851
|
-
purpose: zod.union([zod.enum([
|
|
1852
|
-
"login",
|
|
1853
|
-
"register",
|
|
1854
|
-
"recovery",
|
|
1855
|
-
"profiling",
|
|
1856
|
-
"reauth",
|
|
1857
|
-
"link_account"
|
|
1858
|
-
]), zod.null()]).optional().describe("Local re-purposing. When set, taking this transition changes the\nflow's current purpose to this value — the dispatch mode a step's\nchallenges run under — while the flow's original purpose stays\npinned. Must be a purpose this definition serves, and `target`\nmust be that purpose's entry step. Mutually exclusive with\n`action`: a transition either re-purposes within this flow or\ntargets another flow, never both.\nExample: a \"Sign up\" navigation on the login identifier step\n(`{ target: register, purpose: register }`).\n")
|
|
1859
|
-
})).optional().describe("Maps action/outcome names to their transition descriptor.\n\nKeys match action names from the `actions` array. Additional keys\ncome from implicit outcomes based on schema annotations\n(e.g. `user_not_found` from `x-unique` fields) and engine\nevents (e.g. `sso`, `callback`).\n")
|
|
1860
|
-
}).describe("A step in a flow definition. This is the admin-authored configuration,\nnot the runtime payload sent to the frontend.\n\nSteps are schema-driven: `fields` references properties from the flow's\nuser schema, and the engine resolves field metadata (type, validation,\nimplicit outcomes) from schema annotations at runtime.\n\nA step with only `complete` set is a terminal step. All other steps are\nrendered to the frontend as capability payloads.\n")).min(1).describe("Ordered list of steps in this flow. The order is for human readability —\nactual step sequencing is determined by transitions.\n")
|
|
1861
|
-
}).describe("A flow definition is the server-side configuration that describes a complete\nauthentication or identity flow. It is NOT sent to the frontend — the flow\nengine evaluates it and produces FlowResponse payloads (steps with capability\ndictionaries) for the client.\n\nFlow definitions are created by administrators and stored in the project/team\nconfiguration hierarchy. The engine selects the matching definition based on\nthe purpose + audience when a flow is created via POST /flow.\n"),
|
|
1862
|
-
user_schema: zod.union([zod.object({
|
|
1863
|
-
id: zod.string().describe("The resource id: the server-minted `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
|
|
1864
|
-
schema: zod.object({
|
|
1865
|
-
objectType: zod.string().max(256).optional().describe("The type of user this schema describes. This is a customer chosen name.\n"),
|
|
1866
|
-
kind: zod.literal("user-schema").describe("Discriminator value for a user schema create request."),
|
|
1867
|
-
metaSchema: zod.url().describe("The user Schema version used for this schema."),
|
|
1868
|
-
"x-auth-methods": zod.object({
|
|
1869
|
-
password: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1870
|
-
passkey: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1871
|
-
magic_link: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1872
|
-
sso: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional(),
|
|
1873
|
-
otp: zod.object({ enabled: zod.boolean().describe("Whether the authentication method is enabled or not") }).optional()
|
|
1874
|
-
}).describe("A list of authentication methods supported by the user definition."),
|
|
1875
|
-
"x-identifier": zod.string().min(1).optional().describe("Path of the leaf property whose value identifies a user (nested leaves\nare addressed by their dot-joined attribute path). The property must\ncarry `x-unique` \"project\". Required when an auth method needing\nidentifier-first dispatch (password) is enabled. Passkey is exempt:\ndiscoverable credentials identify the user through the assertion\nitself, so passkey-only and API-managed schemas may designate nothing;\nflows using identifier-first passkey are validated at the flow level\ninstead.\n"),
|
|
1876
|
-
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
|
|
1877
|
-
properties: zod.record(zod.string(), zod.object({
|
|
1878
|
-
"x-unique": zod.union([zod.enum([
|
|
1879
|
-
"unspecified",
|
|
1880
|
-
"project",
|
|
1881
|
-
"team"
|
|
1882
|
-
]), zod.null()]).optional().describe("The level of uniqueness for this property, if applicable"),
|
|
1883
|
-
"x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
|
|
1884
|
-
"x-audit": zod.boolean().default(false).describe("Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"),
|
|
1885
|
-
properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
|
|
1886
|
-
}).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`.\nThis is done because a lot of code generators cannot handle that.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
|
|
1887
|
-
}).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n").describe("The customer-authored JSON Schema document, served verbatim."),
|
|
1888
|
-
metadata: zod.object({ created_at: zod.iso.datetime({ offset: true }).describe("The time when the schema was created.") })
|
|
1889
|
-
}).describe("A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document's own `$id`.\n"), zod.null()]).optional().describe("The user schema this flow operates on: the same object\n`GET /schemas/{id}` returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n"),
|
|
1890
|
-
created_at: zod.iso.datetime({ offset: true }),
|
|
1891
|
-
updated_at: zod.iso.datetime({ offset: true })
|
|
1892
|
-
});
|
|
1893
|
-
/**
|
|
1894
|
-
* Delete a flow definition by id.
|
|
1895
|
-
If the flow definition is currently being used by a flow, the deletion will fail.
|
|
1896
|
-
If the flow definition is the last active flow definition for a given purpose, the deletion will fail to prevent disruption of new flows being started for that purpose.
|
|
1897
|
-
|
|
1898
|
-
* @summary Delete a flow definition by id
|
|
1899
|
-
*/
|
|
1900
|
-
const DeleteFlowDefinitionParams = zod.object({ id: zod.string().describe("The id returned by the POST /flow_definitions endpoint.\n") });
|
|
1901
|
-
/**
|
|
1902
2200
|
* @summary Create team
|
|
1903
2201
|
*/
|
|
1904
2202
|
const createTeamQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -1983,6 +2281,11 @@ users whose lifecycle it owns are deactivated with it.
|
|
|
1983
2281
|
The request is idempotent. Deleting a team that is already deactivated
|
|
1984
2282
|
or doesn't exist succeeds without changing anything.
|
|
1985
2283
|
|
|
2284
|
+
A team that still owns a project is refused with `409
|
|
2285
|
+
team.owns_project`: deactivating it would leave the project owned by a
|
|
2286
|
+
dead team and so unmanageable. No endpoint releases that ownership yet,
|
|
2287
|
+
so such a team cannot currently be deactivated through the API.
|
|
2288
|
+
|
|
1986
2289
|
* @summary Delete team
|
|
1987
2290
|
*/
|
|
1988
2291
|
const deleteTeamPathTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -2053,8 +2356,7 @@ const GetEnvironmentByNameResponse = zod.object({
|
|
|
2053
2356
|
/**
|
|
2054
2357
|
* Publishes a new immutable branding revision for the project. Branding
|
|
2055
2358
|
revisions cannot be updated or deleted; every edit publishes a new
|
|
2056
|
-
revision, and flow responses resolve the latest revision per project
|
|
2057
|
-
(see ADR 040).
|
|
2359
|
+
revision, and flow responses resolve the latest revision per project.
|
|
2058
2360
|
|
|
2059
2361
|
The `liquid_template` is validated lexically on save (size, encoding,
|
|
2060
2362
|
banned patterns such as `<script>` tags, inline event handlers, and the
|
|
@@ -2067,19 +2369,145 @@ const createBrandingQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0
|
|
|
2067
2369
|
const CreateBrandingQueryParams = zod.strictObject({ project_id: zod.string().regex(createBrandingQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
2068
2370
|
const createBrandingBodyLayoutDefault = `centered`;
|
|
2069
2371
|
const createBrandingBodyLiquidTemplateMax = 131072;
|
|
2372
|
+
const createBrandingBodyLogoUrlMax = 2048;
|
|
2373
|
+
const createBrandingBodyLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2374
|
+
const createBrandingBodyHeroUrlMax = 2048;
|
|
2375
|
+
const createBrandingBodyHeroUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2376
|
+
const createBrandingBodyThemeLightLogoUrlMax = 2048;
|
|
2377
|
+
const createBrandingBodyThemeLightLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2378
|
+
const createBrandingBodyThemeLightPalettePrimaryMax = 128;
|
|
2379
|
+
const createBrandingBodyThemeLightPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2380
|
+
const createBrandingBodyThemeLightPaletteOnPrimaryMax = 128;
|
|
2381
|
+
const createBrandingBodyThemeLightPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2382
|
+
const createBrandingBodyThemeLightPaletteBackgroundMax = 128;
|
|
2383
|
+
const createBrandingBodyThemeLightPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2384
|
+
const createBrandingBodyThemeLightPaletteSurfaceMax = 128;
|
|
2385
|
+
const createBrandingBodyThemeLightPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2386
|
+
const createBrandingBodyThemeLightPaletteMutedMax = 128;
|
|
2387
|
+
const createBrandingBodyThemeLightPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2388
|
+
const createBrandingBodyThemeLightPaletteBorderMax = 128;
|
|
2389
|
+
const createBrandingBodyThemeLightPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2390
|
+
const createBrandingBodyThemeLightPaletteTextMax = 128;
|
|
2391
|
+
const createBrandingBodyThemeLightPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2392
|
+
const createBrandingBodyThemeLightPaletteTextMutedMax = 128;
|
|
2393
|
+
const createBrandingBodyThemeLightPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2394
|
+
const createBrandingBodyThemeLightPaletteLinkMax = 128;
|
|
2395
|
+
const createBrandingBodyThemeLightPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2396
|
+
const createBrandingBodyThemeLightPaletteSuccessMax = 128;
|
|
2397
|
+
const createBrandingBodyThemeLightPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2398
|
+
const createBrandingBodyThemeLightPaletteWarningMax = 128;
|
|
2399
|
+
const createBrandingBodyThemeLightPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2400
|
+
const createBrandingBodyThemeLightPaletteErrorMax = 128;
|
|
2401
|
+
const createBrandingBodyThemeLightPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2402
|
+
const createBrandingBodyThemeDarkLogoUrlMax = 2048;
|
|
2403
|
+
const createBrandingBodyThemeDarkLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2404
|
+
const createBrandingBodyThemeDarkPalettePrimaryMax = 128;
|
|
2405
|
+
const createBrandingBodyThemeDarkPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2406
|
+
const createBrandingBodyThemeDarkPaletteOnPrimaryMax = 128;
|
|
2407
|
+
const createBrandingBodyThemeDarkPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2408
|
+
const createBrandingBodyThemeDarkPaletteBackgroundMax = 128;
|
|
2409
|
+
const createBrandingBodyThemeDarkPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2410
|
+
const createBrandingBodyThemeDarkPaletteSurfaceMax = 128;
|
|
2411
|
+
const createBrandingBodyThemeDarkPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2412
|
+
const createBrandingBodyThemeDarkPaletteMutedMax = 128;
|
|
2413
|
+
const createBrandingBodyThemeDarkPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2414
|
+
const createBrandingBodyThemeDarkPaletteBorderMax = 128;
|
|
2415
|
+
const createBrandingBodyThemeDarkPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2416
|
+
const createBrandingBodyThemeDarkPaletteTextMax = 128;
|
|
2417
|
+
const createBrandingBodyThemeDarkPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2418
|
+
const createBrandingBodyThemeDarkPaletteTextMutedMax = 128;
|
|
2419
|
+
const createBrandingBodyThemeDarkPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2420
|
+
const createBrandingBodyThemeDarkPaletteLinkMax = 128;
|
|
2421
|
+
const createBrandingBodyThemeDarkPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2422
|
+
const createBrandingBodyThemeDarkPaletteSuccessMax = 128;
|
|
2423
|
+
const createBrandingBodyThemeDarkPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2424
|
+
const createBrandingBodyThemeDarkPaletteWarningMax = 128;
|
|
2425
|
+
const createBrandingBodyThemeDarkPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2426
|
+
const createBrandingBodyThemeDarkPaletteErrorMax = 128;
|
|
2427
|
+
const createBrandingBodyThemeDarkPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2428
|
+
const createBrandingBodyTypographyFontFamilyMax = 256;
|
|
2429
|
+
const createBrandingBodyTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
2430
|
+
const createBrandingBodyTypographyFontUrlMax = 2048;
|
|
2431
|
+
const createBrandingBodyTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)");
|
|
2432
|
+
const createBrandingBodyTypographyScaleMin = .75;
|
|
2433
|
+
const createBrandingBodyTypographyScaleMax = 1.25;
|
|
2434
|
+
const createBrandingBodyShapeRadiusTwoMin = 0;
|
|
2435
|
+
const createBrandingBodyShapeRadiusTwoMax = 32;
|
|
2436
|
+
const createBrandingBodyShapeLogoScaleMin = .5;
|
|
2437
|
+
const createBrandingBodyShapeLogoScaleMax = 2;
|
|
2070
2438
|
const CreateBrandingBody = zod.object({
|
|
2071
|
-
layout: zod.enum(["centered", "split"]).default(createBrandingBodyLayoutDefault).describe("
|
|
2072
|
-
liquid_template: zod.string().max(createBrandingBodyLiquidTemplateMax).optional().describe("The LiquidJS template
|
|
2073
|
-
logo_url: zod.url().optional().describe("
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2439
|
+
layout: zod.enum(["centered", "split"]).default(createBrandingBodyLayoutDefault).describe("Degrade preset (`centered` or `split`) the bundled default template\nbranches on, and the fallback when a custom template fails validation.\nNot the complete design catalog: all named designs (`centered`, `split`,\n`split-right`, `hero`, `minimal`) ship as templates and map onto one of\nthese two values; switch designs with\n`zitadel branding eject --design <name>` instead of editing this field.\nEjected templates may ignore it. Selects a template rather than restyling\nthe widget, so it is not an appearance control.\n"),
|
|
2440
|
+
liquid_template: zod.string().max(createBrandingBodyLiquidTemplateMax).optional().describe("The LiquidJS template for rendering this step. The orchestrator renders\nit into its Shadow DOM with the capability dictionaries as context.\n"),
|
|
2441
|
+
logo_url: zod.url().max(createBrandingBodyLogoUrlMax).regex(createBrandingBodyLogoUrlRegExp).optional().describe("Fallback mark, used only when neither `theme.light.logo_url` nor\n`theme.dark.logo_url` is set. Prefer the per-side marks — one file\ncannot serve both surfaces.\n"),
|
|
2442
|
+
hero_url: zod.url().max(createBrandingBodyHeroUrlMax).regex(createBrandingBodyHeroUrlRegExp).optional().describe("Hero/background image URL, used by the split layout."),
|
|
2443
|
+
theme: zod.object({
|
|
2444
|
+
mode: zod.enum([
|
|
2445
|
+
"light",
|
|
2446
|
+
"dark",
|
|
2447
|
+
"auto"
|
|
2448
|
+
]).optional().describe("Which published side may run. `auto` follows the operating system.\n"),
|
|
2449
|
+
light: zod.object({
|
|
2450
|
+
logo_url: zod.url().max(createBrandingBodyThemeLightLogoUrlMax).regex(createBrandingBodyThemeLightLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
2451
|
+
palette: zod.object({
|
|
2452
|
+
primary: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2453
|
+
on_primary: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2454
|
+
background: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2455
|
+
surface: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2456
|
+
muted: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2457
|
+
border: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2458
|
+
text: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2459
|
+
text_muted: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2460
|
+
link: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2461
|
+
success: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2462
|
+
warning: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2463
|
+
error: zod.string().min(1).max(128).regex(createBrandingBodyThemeLightPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
2464
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
2465
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n"),
|
|
2466
|
+
dark: zod.object({
|
|
2467
|
+
logo_url: zod.url().max(createBrandingBodyThemeDarkLogoUrlMax).regex(createBrandingBodyThemeDarkLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
2468
|
+
palette: zod.object({
|
|
2469
|
+
primary: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2470
|
+
on_primary: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2471
|
+
background: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2472
|
+
surface: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2473
|
+
muted: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2474
|
+
border: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2475
|
+
text: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2476
|
+
text_muted: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2477
|
+
link: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2478
|
+
success: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2479
|
+
warning: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2480
|
+
error: zod.string().min(1).max(128).regex(createBrandingBodyThemeDarkPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
2481
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
2482
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n")
|
|
2483
|
+
}).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`, but cannot select a\nside the project never published.\n"),
|
|
2484
|
+
typography: zod.object({
|
|
2485
|
+
font_family: zod.string().min(1).max(256).regex(createBrandingBodyTypographyFontFamilyRegExp).optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected — the stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
|
|
2486
|
+
font_url: zod.url().max(createBrandingBodyTypographyFontUrlMax).regex(createBrandingBodyTypographyFontUrlRegExp).optional().describe("Stylesheet that loads `font_family` — a Google Fonts CSS URL, for\nexample. Must be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nStored but not applied to an embedded widget: the embedding page loads\nthe face, and Zitadel does not inject a stylesheet into a document it\ndoes not own.\n"),
|
|
2487
|
+
scale: zod.number().min(createBrandingBodyTypographyScaleMin).max(createBrandingBodyTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
2488
|
+
}).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modelled yet.\n"),
|
|
2489
|
+
shape: zod.object({
|
|
2490
|
+
radius: zod.union([zod.enum([
|
|
2491
|
+
"none",
|
|
2492
|
+
"sm",
|
|
2493
|
+
"md",
|
|
2494
|
+
"lg",
|
|
2495
|
+
"full"
|
|
2496
|
+
]).describe("A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n"), zod.number().min(0).max(32)]).optional().describe("Corner rounding for the card, inputs, buttons and alerts — either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n"),
|
|
2497
|
+
density: zod.enum([
|
|
2498
|
+
"compact",
|
|
2499
|
+
"regular",
|
|
2500
|
+
"comfortable"
|
|
2501
|
+
]).optional().describe("Spacing and control height."),
|
|
2502
|
+
logo_scale: zod.number().min(createBrandingBodyShapeLogoScaleMin).max(2).optional().describe("Multiplier on the logo's maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n")
|
|
2503
|
+
}).optional().describe("Corner rounding, spacing and logo size. Shared across theme sides.\n")
|
|
2504
|
+
}).describe("Branding configuration, used in two places with one shape: as the request\nbody of `POST /branding`, which publishes it as a new immutable revision,\nand as a read-only projection on flow responses, which carries the\nproject's latest revision. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel apply` publishes.\n\nEvery field is optional. An omitted key uses Zitadel's maintained default,\nso a revision carrying one colour is as valid as one carrying the whole\nobject.\n");
|
|
2077
2505
|
/**
|
|
2078
2506
|
* Lists branding revisions for the project, newest first, capped at the
|
|
2079
2507
|
100 most recent. The first entry is the revision flow responses
|
|
2080
|
-
currently resolve. Deliberately unpaginated in v1 — list endpoints
|
|
2081
|
-
|
|
2082
|
-
|
|
2508
|
+
currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
|
|
2509
|
+
real query mechanism together; advertising pagination parameters the
|
|
2510
|
+
server ignores would be worse than none.
|
|
2083
2511
|
|
|
2084
2512
|
* @summary List branding revisions
|
|
2085
2513
|
*/
|
|
@@ -2097,18 +2525,667 @@ const ListBrandingResponse = zod.array(ListBrandingResponseItem);
|
|
|
2097
2525
|
const GetBrandingByIdParams = zod.object({ id: zod.string() });
|
|
2098
2526
|
const getBrandingByIdResponseBrandingLayoutDefault = `centered`;
|
|
2099
2527
|
const getBrandingByIdResponseBrandingLiquidTemplateMax = 131072;
|
|
2528
|
+
const getBrandingByIdResponseBrandingLogoUrlMax = 2048;
|
|
2529
|
+
const getBrandingByIdResponseBrandingLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2530
|
+
const getBrandingByIdResponseBrandingHeroUrlMax = 2048;
|
|
2531
|
+
const getBrandingByIdResponseBrandingHeroUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2532
|
+
const getBrandingByIdResponseBrandingThemeLightLogoUrlMax = 2048;
|
|
2533
|
+
const getBrandingByIdResponseBrandingThemeLightLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2534
|
+
const getBrandingByIdResponseBrandingThemeLightPalettePrimaryMax = 128;
|
|
2535
|
+
const getBrandingByIdResponseBrandingThemeLightPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2536
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteOnPrimaryMax = 128;
|
|
2537
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2538
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteBackgroundMax = 128;
|
|
2539
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2540
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteSurfaceMax = 128;
|
|
2541
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2542
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteMutedMax = 128;
|
|
2543
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2544
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteBorderMax = 128;
|
|
2545
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2546
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteTextMax = 128;
|
|
2547
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2548
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteTextMutedMax = 128;
|
|
2549
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2550
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteLinkMax = 128;
|
|
2551
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2552
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteSuccessMax = 128;
|
|
2553
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2554
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteWarningMax = 128;
|
|
2555
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2556
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteErrorMax = 128;
|
|
2557
|
+
const getBrandingByIdResponseBrandingThemeLightPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2558
|
+
const getBrandingByIdResponseBrandingThemeDarkLogoUrlMax = 2048;
|
|
2559
|
+
const getBrandingByIdResponseBrandingThemeDarkLogoUrlRegExp = /* @__PURE__ */ new RegExp("^([hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?([/?#]|$))");
|
|
2560
|
+
const getBrandingByIdResponseBrandingThemeDarkPalettePrimaryMax = 128;
|
|
2561
|
+
const getBrandingByIdResponseBrandingThemeDarkPalettePrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2562
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteOnPrimaryMax = 128;
|
|
2563
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteOnPrimaryRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2564
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteBackgroundMax = 128;
|
|
2565
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteBackgroundRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2566
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteSurfaceMax = 128;
|
|
2567
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteSurfaceRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2568
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteMutedMax = 128;
|
|
2569
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2570
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteBorderMax = 128;
|
|
2571
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteBorderRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2572
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteTextMax = 128;
|
|
2573
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteTextRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2574
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteTextMutedMax = 128;
|
|
2575
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteTextMutedRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2576
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteLinkMax = 128;
|
|
2577
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteLinkRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2578
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteSuccessMax = 128;
|
|
2579
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteSuccessRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2580
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteWarningMax = 128;
|
|
2581
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteWarningRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2582
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteErrorMax = 128;
|
|
2583
|
+
const getBrandingByIdResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ new RegExp("^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$");
|
|
2584
|
+
const getBrandingByIdResponseBrandingTypographyFontFamilyMax = 256;
|
|
2585
|
+
const getBrandingByIdResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
2586
|
+
const getBrandingByIdResponseBrandingTypographyFontUrlMax = 2048;
|
|
2587
|
+
const getBrandingByIdResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[[0-9A-Fa-f:.]+\\]|[^/:?#@]+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)");
|
|
2588
|
+
const getBrandingByIdResponseBrandingTypographyScaleMin = .75;
|
|
2589
|
+
const getBrandingByIdResponseBrandingTypographyScaleMax = 1.25;
|
|
2590
|
+
const getBrandingByIdResponseBrandingShapeRadiusTwoMin = 0;
|
|
2591
|
+
const getBrandingByIdResponseBrandingShapeRadiusTwoMax = 32;
|
|
2592
|
+
const getBrandingByIdResponseBrandingShapeLogoScaleMin = .5;
|
|
2593
|
+
const getBrandingByIdResponseBrandingShapeLogoScaleMax = 2;
|
|
2100
2594
|
const GetBrandingByIdResponse = zod.object({
|
|
2101
2595
|
id: zod.string().describe("The unique identifier of this branding revision."),
|
|
2102
2596
|
created_at: zod.iso.datetime({ offset: true }).describe("When this revision was published."),
|
|
2103
2597
|
branding: zod.object({
|
|
2104
|
-
layout: zod.enum(["centered", "split"]).default(getBrandingByIdResponseBrandingLayoutDefault).describe("
|
|
2105
|
-
liquid_template: zod.string().max(getBrandingByIdResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template
|
|
2106
|
-
logo_url: zod.url().optional().describe("
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2598
|
+
layout: zod.enum(["centered", "split"]).default(getBrandingByIdResponseBrandingLayoutDefault).describe("Degrade preset (`centered` or `split`) the bundled default template\nbranches on, and the fallback when a custom template fails validation.\nNot the complete design catalog: all named designs (`centered`, `split`,\n`split-right`, `hero`, `minimal`) ship as templates and map onto one of\nthese two values; switch designs with\n`zitadel branding eject --design <name>` instead of editing this field.\nEjected templates may ignore it. Selects a template rather than restyling\nthe widget, so it is not an appearance control.\n"),
|
|
2599
|
+
liquid_template: zod.string().max(getBrandingByIdResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template for rendering this step. The orchestrator renders\nit into its Shadow DOM with the capability dictionaries as context.\n"),
|
|
2600
|
+
logo_url: zod.url().max(getBrandingByIdResponseBrandingLogoUrlMax).regex(getBrandingByIdResponseBrandingLogoUrlRegExp).optional().describe("Fallback mark, used only when neither `theme.light.logo_url` nor\n`theme.dark.logo_url` is set. Prefer the per-side marks — one file\ncannot serve both surfaces.\n"),
|
|
2601
|
+
hero_url: zod.url().max(getBrandingByIdResponseBrandingHeroUrlMax).regex(getBrandingByIdResponseBrandingHeroUrlRegExp).optional().describe("Hero/background image URL, used by the split layout."),
|
|
2602
|
+
theme: zod.object({
|
|
2603
|
+
mode: zod.enum([
|
|
2604
|
+
"light",
|
|
2605
|
+
"dark",
|
|
2606
|
+
"auto"
|
|
2607
|
+
]).optional().describe("Which published side may run. `auto` follows the operating system.\n"),
|
|
2608
|
+
light: zod.object({
|
|
2609
|
+
logo_url: zod.url().max(getBrandingByIdResponseBrandingThemeLightLogoUrlMax).regex(getBrandingByIdResponseBrandingThemeLightLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
2610
|
+
palette: zod.object({
|
|
2611
|
+
primary: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2612
|
+
on_primary: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2613
|
+
background: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2614
|
+
surface: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2615
|
+
muted: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2616
|
+
border: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2617
|
+
text: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2618
|
+
text_muted: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2619
|
+
link: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2620
|
+
success: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2621
|
+
warning: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2622
|
+
error: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeLightPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
2623
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
2624
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n"),
|
|
2625
|
+
dark: zod.object({
|
|
2626
|
+
logo_url: zod.url().max(getBrandingByIdResponseBrandingThemeDarkLogoUrlMax).regex(getBrandingByIdResponseBrandingThemeDarkLogoUrlRegExp).optional().describe("The mark for this surface. A logo is never recoloured, so each side\ncarries its own file. Absent means no mark on this side, unless the\ntop-level `logo_url` is the only one set.\n"),
|
|
2627
|
+
palette: zod.object({
|
|
2628
|
+
primary: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPalettePrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2629
|
+
on_primary: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteOnPrimaryRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2630
|
+
background: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteBackgroundRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2631
|
+
surface: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteSurfaceRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2632
|
+
muted: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2633
|
+
border: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteBorderRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2634
|
+
text: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteTextRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2635
|
+
text_muted: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteTextMutedRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2636
|
+
link: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteLinkRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2637
|
+
success: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteSuccessRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2638
|
+
warning: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteWarningRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n"),
|
|
2639
|
+
error: zod.string().min(1).max(128).regex(getBrandingByIdResponseBrandingThemeDarkPaletteErrorRegExp).optional().describe("A colour on a theme side: hex (`#4F46E5`), a CSS colour name, or a colour\nfunction — `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a colour are stored.\n\nThe pattern pins the shape — no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognised\none is stored and paints nothing, rather than being refused here.\n")
|
|
2640
|
+
}).optional().describe("Semantic colours for one theme side. An omitted key uses the maintained\ndefault for this side, never the other side's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
|
|
2641
|
+
}).optional().describe("One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other, and a side that is absent is never used, whatever\n`mode` or the operating system asks for.\n")
|
|
2642
|
+
}).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`, but cannot select a\nside the project never published.\n"),
|
|
2643
|
+
typography: zod.object({
|
|
2644
|
+
font_family: zod.string().min(1).max(256).regex(getBrandingByIdResponseBrandingTypographyFontFamilyRegExp).optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected — the stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
|
|
2645
|
+
font_url: zod.url().max(getBrandingByIdResponseBrandingTypographyFontUrlMax).regex(getBrandingByIdResponseBrandingTypographyFontUrlRegExp).optional().describe("Stylesheet that loads `font_family` — a Google Fonts CSS URL, for\nexample. Must be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nStored but not applied to an embedded widget: the embedding page loads\nthe face, and Zitadel does not inject a stylesheet into a document it\ndoes not own.\n"),
|
|
2646
|
+
scale: zod.number().min(getBrandingByIdResponseBrandingTypographyScaleMin).max(getBrandingByIdResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
2647
|
+
}).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modelled yet.\n"),
|
|
2648
|
+
shape: zod.object({
|
|
2649
|
+
radius: zod.union([zod.enum([
|
|
2650
|
+
"none",
|
|
2651
|
+
"sm",
|
|
2652
|
+
"md",
|
|
2653
|
+
"lg",
|
|
2654
|
+
"full"
|
|
2655
|
+
]).describe("A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n"), zod.number().min(0).max(32)]).optional().describe("Corner rounding for the card, inputs, buttons and alerts — either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n"),
|
|
2656
|
+
density: zod.enum([
|
|
2657
|
+
"compact",
|
|
2658
|
+
"regular",
|
|
2659
|
+
"comfortable"
|
|
2660
|
+
]).optional().describe("Spacing and control height."),
|
|
2661
|
+
logo_scale: zod.number().min(getBrandingByIdResponseBrandingShapeLogoScaleMin).max(2).optional().describe("Multiplier on the logo's maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n")
|
|
2662
|
+
}).optional().describe("Corner rounding, spacing and logo size. Shared across theme sides.\n")
|
|
2663
|
+
}).describe("Branding configuration, used in two places with one shape: as the request\nbody of `POST /branding`, which publishes it as a new immutable revision,\nand as a read-only projection on flow responses, which carries the\nproject's latest revision. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel apply` publishes.\n\nEvery field is optional. An omitted key uses Zitadel's maintained default,\nso a revision carrying one colour is as valid as one carrying the whole\nobject.\n")
|
|
2110
2664
|
}).describe("A stored branding revision. `branding` echoes the canonical stored\nconfiguration so clients (e.g. the CLI sync engine) can reconcile local\nfiles with the server's stored state.\n");
|
|
2111
2665
|
/**
|
|
2666
|
+
* Creates or revises a connection document. If the slug does not already
|
|
2667
|
+
exist, a new connection is created. If a connection with that slug already
|
|
2668
|
+
exists, a revision is created.
|
|
2669
|
+
|
|
2670
|
+
A revision gets a new `revision_id` and does not modify the connection
|
|
2671
|
+
`id`, so identity links that reference the connection keep resolving while
|
|
2672
|
+
releases and auth attempts stay pinned to the revision they captured.
|
|
2673
|
+
|
|
2674
|
+
Identity fields are fixed for the life of the connection and a revision
|
|
2675
|
+
that changes one is rejected: `protocol`, `subject_claim`, and the
|
|
2676
|
+
endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
|
|
2677
|
+
and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
|
|
2678
|
+
account a stored subject belongs to, so changing one would silently
|
|
2679
|
+
repoint existing identities at a different provider.
|
|
2680
|
+
|
|
2681
|
+
`subject_claim` is optional for OIDC and required for OAuth 2.0. For an
|
|
2682
|
+
OIDC connection, `sub` is used as the default value. If a revision updates
|
|
2683
|
+
`subject_claim` to a different value than the one set during creation, the
|
|
2684
|
+
request is rejected.
|
|
2685
|
+
|
|
2686
|
+
The document is validated against the `idp-connection.json` schema before
|
|
2687
|
+
anything is stored.
|
|
2688
|
+
|
|
2689
|
+
* @summary Create or revise an identity provider connection
|
|
2690
|
+
*/
|
|
2691
|
+
const createIdpQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2692
|
+
const CreateIdpQueryParams = zod.strictObject({ project_id: zod.string().regex(createIdpQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
2693
|
+
const createIdpBodyIdpSlugMax = 64;
|
|
2694
|
+
const createIdpBodyIdpSlugRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
2695
|
+
const createIdpBodyIdpDisplayNameMax = 256;
|
|
2696
|
+
const createIdpBodyIdpClaimMappingRegExpOne = /* @__PURE__ */ new RegExp("^[^$]");
|
|
2697
|
+
const createIdpBodyIdpProvisioningCreationDefault = `auto`;
|
|
2698
|
+
const createIdpBodyIdpOidcIssuerRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$");
|
|
2699
|
+
const createIdpBodyIdpOidcJwksUriRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2700
|
+
const createIdpBodyIdpOidcIdTokenMappingDefault = false;
|
|
2701
|
+
const createIdpBodyIdpOidcAuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2702
|
+
const createIdpBodyIdpOidcTokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2703
|
+
const createIdpBodyIdpOidcUserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2704
|
+
const createIdpBodyIdpOidcClientIdMax = 512;
|
|
2705
|
+
const createIdpBodyIdpOidcClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2706
|
+
const createIdpBodyIdpOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2707
|
+
const createIdpBodyIdpOidcScopesDefault = [
|
|
2708
|
+
`openid`,
|
|
2709
|
+
`profile`,
|
|
2710
|
+
`email`
|
|
2711
|
+
];
|
|
2712
|
+
const createIdpBodyIdpOidcPkceEnabledDefault = true;
|
|
2713
|
+
const createIdpBodyIdpOauth2AuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2714
|
+
const createIdpBodyIdpOauth2TokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2715
|
+
const createIdpBodyIdpOauth2UserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2716
|
+
const createIdpBodyIdpOauth2ClientIdMax = 512;
|
|
2717
|
+
const createIdpBodyIdpOauth2ClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2718
|
+
const createIdpBodyIdpOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2719
|
+
const createIdpBodyIdpOauth2PkceEnabledDefault = true;
|
|
2720
|
+
const CreateIdpBody = zod.object({ idp: zod.object({
|
|
2721
|
+
slug: zod.string().max(64).regex(createIdpBodyIdpSlugRegExp).describe("Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project."),
|
|
2722
|
+
protocol: zod.enum(["oidc", "oauth2"]).describe("The protocol used by the identity provider."),
|
|
2723
|
+
template: zod.string().optional().describe("Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks."),
|
|
2724
|
+
display_name: zod.string().min(1).max(256).describe("Shown to the user on the sign-in button."),
|
|
2725
|
+
subject_claim: zod.string().min(1).optional().describe("Claim carrying the provider's stable subject identifier. Optional for OIDC (the engine uses `sub` per spec; override where `sub` is pairwise, e.g. Entra `oid`). Required for OAuth2 — no `sub` guarantee."),
|
|
2726
|
+
claim_mapping: zod.record(zod.string(), zod.string().regex(createIdpBodyIdpClaimMappingRegExpOne)).optional().describe("Maps user-schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`, GitHub `plan`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."),
|
|
2727
|
+
verified_claims: zod.record(zod.string(), zod.union([zod.boolean(), zod.string()])).optional().describe("Maps a verifiable user-schema property to its verification source: a claim name (read the claim), the literal `true` (trust this provider unconditionally), or the `$`-pointer `\"$supplementary_fetch\"` (verified by the selected supplementary_fetch strategy per its contract - e.g. github_primary_email verifies `email` via primary && verified). Values starting with `$` are reserved; only `$supplementary_fetch` is defined. Distinct from claim_mapping, which carries values, not verification state."),
|
|
2728
|
+
provisioning: zod.object({ creation: zod.enum(["disabled", "auto"]).default(createIdpBodyIdpProvisioningCreationDefault) }).optional().describe("How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties will be added when `x-verify` returns to the dialect. The following are deferred and will be added as additive changes. The `auto_only` value creates the user from complete claims or fails without collecting. The linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey. `is_auto_update`, together with per-property verification state."),
|
|
2729
|
+
oidc: zod.object({
|
|
2730
|
+
issuer: zod.string().regex(createIdpBodyIdpOidcIssuerRegExp).describe("Discovery base. Endpoints are resolved from its .well-known document unless overridden below."),
|
|
2731
|
+
jwks_uri: zod.string().regex(createIdpBodyIdpOidcJwksUriRegExp).optional().describe("Overrides the JWKS endpoint from discovery. Required in practice when the provider exposes no .well-known document, since ID tokens cannot otherwise be validated."),
|
|
2732
|
+
id_token_mapping: zod.boolean().default(false).describe("Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."),
|
|
2733
|
+
authorization_endpoint: zod.string().regex(createIdpBodyIdpOidcAuthorizationEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2734
|
+
token_endpoint: zod.string().regex(createIdpBodyIdpOidcTokenEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2735
|
+
userinfo_endpoint: zod.string().regex(createIdpBodyIdpOidcUserinfoEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2736
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2737
|
+
client_secret: zod.string().regex(createIdpBodyIdpOidcClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2738
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(createIdpBodyIdpOidcTokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2739
|
+
scopes: zod.array(zod.string().min(1)).min(1).default(createIdpBodyIdpOidcScopesDefault).describe("Must contain `openid` - without it the provider returns no id_token and the connection is not OIDC. Enforced by `required` + `contains`; the `default` is a UI-prefill hint only - validators never inject it, so an omitted `scopes` is rejected regardless."),
|
|
2740
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
2741
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.")
|
|
2742
|
+
}).optional().describe("OIDC connection details. Endpoints come from discovery, but any may be supplied to override it, or to serve a provider that exposes no .well-known document."),
|
|
2743
|
+
oauth2: zod.object({
|
|
2744
|
+
authorization_endpoint: zod.string().regex(createIdpBodyIdpOauth2AuthorizationEndpointRegExp).describe("Where the user is sent to authorize."),
|
|
2745
|
+
token_endpoint: zod.string().regex(createIdpBodyIdpOauth2TokenEndpointRegExp).describe("Where the authorization code is exchanged."),
|
|
2746
|
+
userinfo_endpoint: zod.string().regex(createIdpBodyIdpOauth2UserinfoEndpointRegExp).describe("Where the authenticated user's profile is fetched."),
|
|
2747
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2748
|
+
client_secret: zod.string().regex(createIdpBodyIdpOauth2ClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2749
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(createIdpBodyIdpOauth2TokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2750
|
+
scopes: zod.array(zod.string().min(1)).optional().describe("Provider-specific; OAuth 2.0 defines no universal scope."),
|
|
2751
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
2752
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."),
|
|
2753
|
+
supplementary_fetch: zod.enum(["github_primary_email"]).optional().describe("Provider-specific follow-up call after userinfo. New values are non-breaking.")
|
|
2754
|
+
}).optional().describe("OAuth 2.0 connection details.")
|
|
2755
|
+
}) }).describe("Creates or revises an identity provider connection document.");
|
|
2756
|
+
const createIdpResponseDefinitionSlugMax = 64;
|
|
2757
|
+
const createIdpResponseDefinitionSlugRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
2758
|
+
const createIdpResponseDefinitionDisplayNameMax = 256;
|
|
2759
|
+
const createIdpResponseDefinitionClaimMappingRegExpOne = /* @__PURE__ */ new RegExp("^[^$]");
|
|
2760
|
+
const createIdpResponseDefinitionProvisioningCreationDefault = `auto`;
|
|
2761
|
+
const createIdpResponseDefinitionOidcIssuerRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$");
|
|
2762
|
+
const createIdpResponseDefinitionOidcJwksUriRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2763
|
+
const createIdpResponseDefinitionOidcIdTokenMappingDefault = false;
|
|
2764
|
+
const createIdpResponseDefinitionOidcAuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2765
|
+
const createIdpResponseDefinitionOidcTokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2766
|
+
const createIdpResponseDefinitionOidcUserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2767
|
+
const createIdpResponseDefinitionOidcClientIdMax = 512;
|
|
2768
|
+
const createIdpResponseDefinitionOidcClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2769
|
+
const createIdpResponseDefinitionOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2770
|
+
const createIdpResponseDefinitionOidcScopesDefault = [
|
|
2771
|
+
`openid`,
|
|
2772
|
+
`profile`,
|
|
2773
|
+
`email`
|
|
2774
|
+
];
|
|
2775
|
+
const createIdpResponseDefinitionOidcPkceEnabledDefault = true;
|
|
2776
|
+
const createIdpResponseDefinitionOauth2AuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2777
|
+
const createIdpResponseDefinitionOauth2TokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2778
|
+
const createIdpResponseDefinitionOauth2UserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2779
|
+
const createIdpResponseDefinitionOauth2ClientIdMax = 512;
|
|
2780
|
+
const createIdpResponseDefinitionOauth2ClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2781
|
+
const createIdpResponseDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2782
|
+
const createIdpResponseDefinitionOauth2PkceEnabledDefault = true;
|
|
2783
|
+
const CreateIdpResponse = zod.object({
|
|
2784
|
+
id: zod.string().describe("A unique connection id, generated when the connection is created, and shared by\nevery revision. This id is referenced by the identity links.\n"),
|
|
2785
|
+
revision_id: zod.string().describe("The id of the revision this row holds, pinned by auth attempts and\nreleases. `GET /idps/{id}` and the query return the newest one;\n`GET /idps/revisions/{revision_id}` returns the requested revision.\n"),
|
|
2786
|
+
slug: zod.string().describe("The identifier by which user schemas and flow definitions reference the\nconnection. Fixed for the life of the connection.\n"),
|
|
2787
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the connection was created."),
|
|
2788
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("When this revision was created. On the newest revision, that is when\nthe connection was last revised.\n"),
|
|
2789
|
+
definition: zod.object({
|
|
2790
|
+
slug: zod.string().max(64).regex(createIdpResponseDefinitionSlugRegExp).describe("Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project."),
|
|
2791
|
+
protocol: zod.enum(["oidc", "oauth2"]).describe("The protocol used by the identity provider."),
|
|
2792
|
+
template: zod.string().optional().describe("Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks."),
|
|
2793
|
+
display_name: zod.string().min(1).max(256).describe("Shown to the user on the sign-in button."),
|
|
2794
|
+
subject_claim: zod.string().min(1).optional().describe("Claim carrying the provider's stable subject identifier. Optional for OIDC (the engine uses `sub` per spec; override where `sub` is pairwise, e.g. Entra `oid`). Required for OAuth2 — no `sub` guarantee."),
|
|
2795
|
+
claim_mapping: zod.record(zod.string(), zod.string().regex(createIdpResponseDefinitionClaimMappingRegExpOne)).optional().describe("Maps user-schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`, GitHub `plan`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."),
|
|
2796
|
+
verified_claims: zod.record(zod.string(), zod.union([zod.boolean(), zod.string()])).optional().describe("Maps a verifiable user-schema property to its verification source: a claim name (read the claim), the literal `true` (trust this provider unconditionally), or the `$`-pointer `\"$supplementary_fetch\"` (verified by the selected supplementary_fetch strategy per its contract - e.g. github_primary_email verifies `email` via primary && verified). Values starting with `$` are reserved; only `$supplementary_fetch` is defined. Distinct from claim_mapping, which carries values, not verification state."),
|
|
2797
|
+
provisioning: zod.object({ creation: zod.enum(["disabled", "auto"]).default(createIdpResponseDefinitionProvisioningCreationDefault) }).optional().describe("How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties will be added when `x-verify` returns to the dialect. The following are deferred and will be added as additive changes. The `auto_only` value creates the user from complete claims or fails without collecting. The linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey. `is_auto_update`, together with per-property verification state."),
|
|
2798
|
+
oidc: zod.object({
|
|
2799
|
+
issuer: zod.string().regex(createIdpResponseDefinitionOidcIssuerRegExp).describe("Discovery base. Endpoints are resolved from its .well-known document unless overridden below."),
|
|
2800
|
+
jwks_uri: zod.string().regex(createIdpResponseDefinitionOidcJwksUriRegExp).optional().describe("Overrides the JWKS endpoint from discovery. Required in practice when the provider exposes no .well-known document, since ID tokens cannot otherwise be validated."),
|
|
2801
|
+
id_token_mapping: zod.boolean().default(false).describe("Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."),
|
|
2802
|
+
authorization_endpoint: zod.string().regex(createIdpResponseDefinitionOidcAuthorizationEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2803
|
+
token_endpoint: zod.string().regex(createIdpResponseDefinitionOidcTokenEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2804
|
+
userinfo_endpoint: zod.string().regex(createIdpResponseDefinitionOidcUserinfoEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2805
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2806
|
+
client_secret: zod.string().regex(createIdpResponseDefinitionOidcClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2807
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(createIdpResponseDefinitionOidcTokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2808
|
+
scopes: zod.array(zod.string().min(1)).min(1).default(createIdpResponseDefinitionOidcScopesDefault).describe("Must contain `openid` - without it the provider returns no id_token and the connection is not OIDC. Enforced by `required` + `contains`; the `default` is a UI-prefill hint only - validators never inject it, so an omitted `scopes` is rejected regardless."),
|
|
2809
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
2810
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.")
|
|
2811
|
+
}).optional().describe("OIDC connection details. Endpoints come from discovery, but any may be supplied to override it, or to serve a provider that exposes no .well-known document."),
|
|
2812
|
+
oauth2: zod.object({
|
|
2813
|
+
authorization_endpoint: zod.string().regex(createIdpResponseDefinitionOauth2AuthorizationEndpointRegExp).describe("Where the user is sent to authorize."),
|
|
2814
|
+
token_endpoint: zod.string().regex(createIdpResponseDefinitionOauth2TokenEndpointRegExp).describe("Where the authorization code is exchanged."),
|
|
2815
|
+
userinfo_endpoint: zod.string().regex(createIdpResponseDefinitionOauth2UserinfoEndpointRegExp).describe("Where the authenticated user's profile is fetched."),
|
|
2816
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2817
|
+
client_secret: zod.string().regex(createIdpResponseDefinitionOauth2ClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2818
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(createIdpResponseDefinitionOauth2TokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2819
|
+
scopes: zod.array(zod.string().min(1)).optional().describe("Provider-specific; OAuth 2.0 defines no universal scope."),
|
|
2820
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
2821
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."),
|
|
2822
|
+
supplementary_fetch: zod.enum(["github_primary_email"]).optional().describe("Provider-specific follow-up call after userinfo. New values are non-breaking.")
|
|
2823
|
+
}).optional().describe("OAuth 2.0 connection details.")
|
|
2824
|
+
})
|
|
2825
|
+
}).describe("An identity provider connection.\n");
|
|
2826
|
+
/**
|
|
2827
|
+
* Returns the identity provider connections of a project, paginated with a
|
|
2828
|
+
cursor. One row per connection, carrying its newest revision.
|
|
2829
|
+
|
|
2830
|
+
* @summary Query identity provider connections
|
|
2831
|
+
*/
|
|
2832
|
+
const queryIdpsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2833
|
+
const QueryIdpsQueryParams = zod.strictObject({ project_id: zod.string().regex(queryIdpsQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
2834
|
+
const queryIdpsBodyLimitDefault = 20;
|
|
2835
|
+
const queryIdpsBodyLimitMax = 100;
|
|
2836
|
+
const QueryIdpsBody = zod.object({
|
|
2837
|
+
limit: zod.number().min(1).max(100).default(20),
|
|
2838
|
+
page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n"),
|
|
2839
|
+
sorting: zod.object({
|
|
2840
|
+
field: zod.enum(["slug", "created_at"]).describe("Field to filter or sort identity provider connections by:\n- `slug`: unique within the project. `equals` returns the newest revision\n of that connection\n- `created_at`: RFC3339 timestamp\n"),
|
|
2841
|
+
direction: zod.enum(["asc", "desc"])
|
|
2842
|
+
}).optional().describe("Sort order. Defaults to `created_at` ascending; `id` breaks ties either way."),
|
|
2843
|
+
filter: zod.array(zod.object({
|
|
2844
|
+
field: zod.enum(["slug", "created_at"]).describe("Field to filter or sort identity provider connections by:\n- `slug`: unique within the project. `equals` returns the newest revision\n of that connection\n- `created_at`: RFC3339 timestamp\n"),
|
|
2845
|
+
value: zod.union([
|
|
2846
|
+
zod.string(),
|
|
2847
|
+
zod.number(),
|
|
2848
|
+
zod.boolean(),
|
|
2849
|
+
zod.null()
|
|
2850
|
+
]).optional().describe("Filter-value specifies which values can be filtered by a query endpoint. This\nis a union of types. When a value is specified which is not assignable to the\nfield which is being filtered, a 400 error will be returned.\n"),
|
|
2851
|
+
operation: zod.enum([
|
|
2852
|
+
"equals",
|
|
2853
|
+
"not_equals",
|
|
2854
|
+
"contains",
|
|
2855
|
+
"not_contains",
|
|
2856
|
+
"less_than",
|
|
2857
|
+
"less_than_or_equal",
|
|
2858
|
+
"greater_than",
|
|
2859
|
+
"greater_than_or_equal"
|
|
2860
|
+
]).describe("Filter operation defines the operations which can be used when filtering on a\nquery endpoint.\n\nOn text fields, `contains` is a case-insensitive substring match. `equals`\ncompares the whole value and is case-sensitive unless the field documents\notherwise.\n")
|
|
2861
|
+
})).optional().describe("Filter criteria for querying connections. Combined with AND.")
|
|
2862
|
+
}).describe("Request to query the identity provider connections of a project.");
|
|
2863
|
+
const queryIdpsResponseIdpsItemDefinitionSlugMax = 64;
|
|
2864
|
+
const queryIdpsResponseIdpsItemDefinitionSlugRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
2865
|
+
const queryIdpsResponseIdpsItemDefinitionDisplayNameMax = 256;
|
|
2866
|
+
const queryIdpsResponseIdpsItemDefinitionClaimMappingRegExpOne = /* @__PURE__ */ new RegExp("^[^$]");
|
|
2867
|
+
const queryIdpsResponseIdpsItemDefinitionProvisioningCreationDefault = `auto`;
|
|
2868
|
+
const queryIdpsResponseIdpsItemDefinitionOidcIssuerRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$");
|
|
2869
|
+
const queryIdpsResponseIdpsItemDefinitionOidcJwksUriRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2870
|
+
const queryIdpsResponseIdpsItemDefinitionOidcIdTokenMappingDefault = false;
|
|
2871
|
+
const queryIdpsResponseIdpsItemDefinitionOidcAuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2872
|
+
const queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2873
|
+
const queryIdpsResponseIdpsItemDefinitionOidcUserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2874
|
+
const queryIdpsResponseIdpsItemDefinitionOidcClientIdMax = 512;
|
|
2875
|
+
const queryIdpsResponseIdpsItemDefinitionOidcClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2876
|
+
const queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2877
|
+
const queryIdpsResponseIdpsItemDefinitionOidcScopesDefault = [
|
|
2878
|
+
`openid`,
|
|
2879
|
+
`profile`,
|
|
2880
|
+
`email`
|
|
2881
|
+
];
|
|
2882
|
+
const queryIdpsResponseIdpsItemDefinitionOidcPkceEnabledDefault = true;
|
|
2883
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2AuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2884
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2885
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2UserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2886
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2ClientIdMax = 512;
|
|
2887
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2ClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2888
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2889
|
+
const queryIdpsResponseIdpsItemDefinitionOauth2PkceEnabledDefault = true;
|
|
2890
|
+
const QueryIdpsResponse = zod.object({
|
|
2891
|
+
idps: zod.array(zod.object({
|
|
2892
|
+
id: zod.string().describe("A unique connection id, generated when the connection is created, and shared by\nevery revision. This id is referenced by the identity links.\n"),
|
|
2893
|
+
revision_id: zod.string().describe("The id of the revision this row holds, pinned by auth attempts and\nreleases. `GET /idps/{id}` and the query return the newest one;\n`GET /idps/revisions/{revision_id}` returns the requested revision.\n"),
|
|
2894
|
+
slug: zod.string().describe("The identifier by which user schemas and flow definitions reference the\nconnection. Fixed for the life of the connection.\n"),
|
|
2895
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the connection was created."),
|
|
2896
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("When this revision was created. On the newest revision, that is when\nthe connection was last revised.\n"),
|
|
2897
|
+
definition: zod.object({
|
|
2898
|
+
slug: zod.string().max(64).regex(queryIdpsResponseIdpsItemDefinitionSlugRegExp).describe("Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project."),
|
|
2899
|
+
protocol: zod.enum(["oidc", "oauth2"]).describe("The protocol used by the identity provider."),
|
|
2900
|
+
template: zod.string().optional().describe("Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks."),
|
|
2901
|
+
display_name: zod.string().min(1).max(256).describe("Shown to the user on the sign-in button."),
|
|
2902
|
+
subject_claim: zod.string().min(1).optional().describe("Claim carrying the provider's stable subject identifier. Optional for OIDC (the engine uses `sub` per spec; override where `sub` is pairwise, e.g. Entra `oid`). Required for OAuth2 — no `sub` guarantee."),
|
|
2903
|
+
claim_mapping: zod.record(zod.string(), zod.string().regex(queryIdpsResponseIdpsItemDefinitionClaimMappingRegExpOne)).optional().describe("Maps user-schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`, GitHub `plan`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."),
|
|
2904
|
+
verified_claims: zod.record(zod.string(), zod.union([zod.boolean(), zod.string()])).optional().describe("Maps a verifiable user-schema property to its verification source: a claim name (read the claim), the literal `true` (trust this provider unconditionally), or the `$`-pointer `\"$supplementary_fetch\"` (verified by the selected supplementary_fetch strategy per its contract - e.g. github_primary_email verifies `email` via primary && verified). Values starting with `$` are reserved; only `$supplementary_fetch` is defined. Distinct from claim_mapping, which carries values, not verification state."),
|
|
2905
|
+
provisioning: zod.object({ creation: zod.enum(["disabled", "auto"]).default(queryIdpsResponseIdpsItemDefinitionProvisioningCreationDefault) }).optional().describe("How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties will be added when `x-verify` returns to the dialect. The following are deferred and will be added as additive changes. The `auto_only` value creates the user from complete claims or fails without collecting. The linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey. `is_auto_update`, together with per-property verification state."),
|
|
2906
|
+
oidc: zod.object({
|
|
2907
|
+
issuer: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOidcIssuerRegExp).describe("Discovery base. Endpoints are resolved from its .well-known document unless overridden below."),
|
|
2908
|
+
jwks_uri: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOidcJwksUriRegExp).optional().describe("Overrides the JWKS endpoint from discovery. Required in practice when the provider exposes no .well-known document, since ID tokens cannot otherwise be validated."),
|
|
2909
|
+
id_token_mapping: zod.boolean().default(false).describe("Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."),
|
|
2910
|
+
authorization_endpoint: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOidcAuthorizationEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2911
|
+
token_endpoint: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2912
|
+
userinfo_endpoint: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOidcUserinfoEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2913
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2914
|
+
client_secret: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOidcClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2915
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2916
|
+
scopes: zod.array(zod.string().min(1)).min(1).default(queryIdpsResponseIdpsItemDefinitionOidcScopesDefault).describe("Must contain `openid` - without it the provider returns no id_token and the connection is not OIDC. Enforced by `required` + `contains`; the `default` is a UI-prefill hint only - validators never inject it, so an omitted `scopes` is rejected regardless."),
|
|
2917
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
2918
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.")
|
|
2919
|
+
}).optional().describe("OIDC connection details. Endpoints come from discovery, but any may be supplied to override it, or to serve a provider that exposes no .well-known document."),
|
|
2920
|
+
oauth2: zod.object({
|
|
2921
|
+
authorization_endpoint: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2AuthorizationEndpointRegExp).describe("Where the user is sent to authorize."),
|
|
2922
|
+
token_endpoint: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointRegExp).describe("Where the authorization code is exchanged."),
|
|
2923
|
+
userinfo_endpoint: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2UserinfoEndpointRegExp).describe("Where the authenticated user's profile is fetched."),
|
|
2924
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2925
|
+
client_secret: zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2ClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2926
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2927
|
+
scopes: zod.array(zod.string().min(1)).optional().describe("Provider-specific; OAuth 2.0 defines no universal scope."),
|
|
2928
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
2929
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."),
|
|
2930
|
+
supplementary_fetch: zod.enum(["github_primary_email"]).optional().describe("Provider-specific follow-up call after userinfo. New values are non-breaking.")
|
|
2931
|
+
}).optional().describe("OAuth 2.0 connection details.")
|
|
2932
|
+
})
|
|
2933
|
+
}).describe("An identity provider connection.\n")),
|
|
2934
|
+
next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n")
|
|
2935
|
+
}).describe("Paginated list of identity provider connections.\n");
|
|
2936
|
+
/**
|
|
2937
|
+
* Reads a connection by its id, at its newest revision.
|
|
2938
|
+
`GET /idps/{id}/revisions` lists every revision of the connection.
|
|
2939
|
+
|
|
2940
|
+
The lookup is scoped to the project in `project_id`.
|
|
2941
|
+
|
|
2942
|
+
* @summary Get an identity provider connection by id
|
|
2943
|
+
*/
|
|
2944
|
+
const GetIdpByIdParams = zod.object({ id: zod.string().describe("The connection id, allocated when the connection was created.") });
|
|
2945
|
+
const getIdpByIdQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2946
|
+
const GetIdpByIdQueryParams = zod.strictObject({ project_id: zod.string().regex(getIdpByIdQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
2947
|
+
const getIdpByIdResponseDefinitionSlugMax = 64;
|
|
2948
|
+
const getIdpByIdResponseDefinitionSlugRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
2949
|
+
const getIdpByIdResponseDefinitionDisplayNameMax = 256;
|
|
2950
|
+
const getIdpByIdResponseDefinitionClaimMappingRegExpOne = /* @__PURE__ */ new RegExp("^[^$]");
|
|
2951
|
+
const getIdpByIdResponseDefinitionProvisioningCreationDefault = `auto`;
|
|
2952
|
+
const getIdpByIdResponseDefinitionOidcIssuerRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$");
|
|
2953
|
+
const getIdpByIdResponseDefinitionOidcJwksUriRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2954
|
+
const getIdpByIdResponseDefinitionOidcIdTokenMappingDefault = false;
|
|
2955
|
+
const getIdpByIdResponseDefinitionOidcAuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2956
|
+
const getIdpByIdResponseDefinitionOidcTokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2957
|
+
const getIdpByIdResponseDefinitionOidcUserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2958
|
+
const getIdpByIdResponseDefinitionOidcClientIdMax = 512;
|
|
2959
|
+
const getIdpByIdResponseDefinitionOidcClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2960
|
+
const getIdpByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2961
|
+
const getIdpByIdResponseDefinitionOidcScopesDefault = [
|
|
2962
|
+
`openid`,
|
|
2963
|
+
`profile`,
|
|
2964
|
+
`email`
|
|
2965
|
+
];
|
|
2966
|
+
const getIdpByIdResponseDefinitionOidcPkceEnabledDefault = true;
|
|
2967
|
+
const getIdpByIdResponseDefinitionOauth2AuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2968
|
+
const getIdpByIdResponseDefinitionOauth2TokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2969
|
+
const getIdpByIdResponseDefinitionOauth2UserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
2970
|
+
const getIdpByIdResponseDefinitionOauth2ClientIdMax = 512;
|
|
2971
|
+
const getIdpByIdResponseDefinitionOauth2ClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
2972
|
+
const getIdpByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
2973
|
+
const getIdpByIdResponseDefinitionOauth2PkceEnabledDefault = true;
|
|
2974
|
+
const GetIdpByIdResponse = zod.object({
|
|
2975
|
+
id: zod.string().describe("A unique connection id, generated when the connection is created, and shared by\nevery revision. This id is referenced by the identity links.\n"),
|
|
2976
|
+
revision_id: zod.string().describe("The id of the revision this row holds, pinned by auth attempts and\nreleases. `GET /idps/{id}` and the query return the newest one;\n`GET /idps/revisions/{revision_id}` returns the requested revision.\n"),
|
|
2977
|
+
slug: zod.string().describe("The identifier by which user schemas and flow definitions reference the\nconnection. Fixed for the life of the connection.\n"),
|
|
2978
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the connection was created."),
|
|
2979
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("When this revision was created. On the newest revision, that is when\nthe connection was last revised.\n"),
|
|
2980
|
+
definition: zod.object({
|
|
2981
|
+
slug: zod.string().max(64).regex(getIdpByIdResponseDefinitionSlugRegExp).describe("Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project."),
|
|
2982
|
+
protocol: zod.enum(["oidc", "oauth2"]).describe("The protocol used by the identity provider."),
|
|
2983
|
+
template: zod.string().optional().describe("Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks."),
|
|
2984
|
+
display_name: zod.string().min(1).max(256).describe("Shown to the user on the sign-in button."),
|
|
2985
|
+
subject_claim: zod.string().min(1).optional().describe("Claim carrying the provider's stable subject identifier. Optional for OIDC (the engine uses `sub` per spec; override where `sub` is pairwise, e.g. Entra `oid`). Required for OAuth2 — no `sub` guarantee."),
|
|
2986
|
+
claim_mapping: zod.record(zod.string(), zod.string().regex(getIdpByIdResponseDefinitionClaimMappingRegExpOne)).optional().describe("Maps user-schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`, GitHub `plan`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."),
|
|
2987
|
+
verified_claims: zod.record(zod.string(), zod.union([zod.boolean(), zod.string()])).optional().describe("Maps a verifiable user-schema property to its verification source: a claim name (read the claim), the literal `true` (trust this provider unconditionally), or the `$`-pointer `\"$supplementary_fetch\"` (verified by the selected supplementary_fetch strategy per its contract - e.g. github_primary_email verifies `email` via primary && verified). Values starting with `$` are reserved; only `$supplementary_fetch` is defined. Distinct from claim_mapping, which carries values, not verification state."),
|
|
2988
|
+
provisioning: zod.object({ creation: zod.enum(["disabled", "auto"]).default(getIdpByIdResponseDefinitionProvisioningCreationDefault) }).optional().describe("How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties will be added when `x-verify` returns to the dialect. The following are deferred and will be added as additive changes. The `auto_only` value creates the user from complete claims or fails without collecting. The linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey. `is_auto_update`, together with per-property verification state."),
|
|
2989
|
+
oidc: zod.object({
|
|
2990
|
+
issuer: zod.string().regex(getIdpByIdResponseDefinitionOidcIssuerRegExp).describe("Discovery base. Endpoints are resolved from its .well-known document unless overridden below."),
|
|
2991
|
+
jwks_uri: zod.string().regex(getIdpByIdResponseDefinitionOidcJwksUriRegExp).optional().describe("Overrides the JWKS endpoint from discovery. Required in practice when the provider exposes no .well-known document, since ID tokens cannot otherwise be validated."),
|
|
2992
|
+
id_token_mapping: zod.boolean().default(false).describe("Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."),
|
|
2993
|
+
authorization_endpoint: zod.string().regex(getIdpByIdResponseDefinitionOidcAuthorizationEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2994
|
+
token_endpoint: zod.string().regex(getIdpByIdResponseDefinitionOidcTokenEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2995
|
+
userinfo_endpoint: zod.string().regex(getIdpByIdResponseDefinitionOidcUserinfoEndpointRegExp).optional().describe("Overrides discovery."),
|
|
2996
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
2997
|
+
client_secret: zod.string().regex(getIdpByIdResponseDefinitionOidcClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
2998
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(getIdpByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
2999
|
+
scopes: zod.array(zod.string().min(1)).min(1).default(getIdpByIdResponseDefinitionOidcScopesDefault).describe("Must contain `openid` - without it the provider returns no id_token and the connection is not OIDC. Enforced by `required` + `contains`; the `default` is a UI-prefill hint only - validators never inject it, so an omitted `scopes` is rejected regardless."),
|
|
3000
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
3001
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.")
|
|
3002
|
+
}).optional().describe("OIDC connection details. Endpoints come from discovery, but any may be supplied to override it, or to serve a provider that exposes no .well-known document."),
|
|
3003
|
+
oauth2: zod.object({
|
|
3004
|
+
authorization_endpoint: zod.string().regex(getIdpByIdResponseDefinitionOauth2AuthorizationEndpointRegExp).describe("Where the user is sent to authorize."),
|
|
3005
|
+
token_endpoint: zod.string().regex(getIdpByIdResponseDefinitionOauth2TokenEndpointRegExp).describe("Where the authorization code is exchanged."),
|
|
3006
|
+
userinfo_endpoint: zod.string().regex(getIdpByIdResponseDefinitionOauth2UserinfoEndpointRegExp).describe("Where the authenticated user's profile is fetched."),
|
|
3007
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
3008
|
+
client_secret: zod.string().regex(getIdpByIdResponseDefinitionOauth2ClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
3009
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(getIdpByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
3010
|
+
scopes: zod.array(zod.string().min(1)).optional().describe("Provider-specific; OAuth 2.0 defines no universal scope."),
|
|
3011
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
3012
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."),
|
|
3013
|
+
supplementary_fetch: zod.enum(["github_primary_email"]).optional().describe("Provider-specific follow-up call after userinfo. New values are non-breaking.")
|
|
3014
|
+
}).optional().describe("OAuth 2.0 connection details.")
|
|
3015
|
+
})
|
|
3016
|
+
}).describe("An identity provider connection.\n");
|
|
3017
|
+
/**
|
|
3018
|
+
* Returns every revision of one connection, newest first, paginated with a
|
|
3019
|
+
cursor. The order is fixed, so there is no `sorting`.
|
|
3020
|
+
|
|
3021
|
+
The lookup is scoped to the project in `project_id`.
|
|
3022
|
+
|
|
3023
|
+
* @summary List the revisions of an identity provider connection
|
|
3024
|
+
*/
|
|
3025
|
+
const ListIdpRevisionsParams = zod.object({ id: zod.string().describe("The connection id, allocated when the connection was created.") });
|
|
3026
|
+
const listIdpRevisionsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3027
|
+
const listIdpRevisionsQueryLimitDefault = 20;
|
|
3028
|
+
const listIdpRevisionsQueryLimitMax = 100;
|
|
3029
|
+
const ListIdpRevisionsQueryParams = zod.strictObject({
|
|
3030
|
+
project_id: zod.string().regex(listIdpRevisionsQueryProjectIdRegExp).describe("The unique identifier of the project"),
|
|
3031
|
+
limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
|
|
3032
|
+
page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n")
|
|
3033
|
+
});
|
|
3034
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionSlugMax = 64;
|
|
3035
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionSlugRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
3036
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionDisplayNameMax = 256;
|
|
3037
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionClaimMappingRegExpOne = /* @__PURE__ */ new RegExp("^[^$]");
|
|
3038
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionProvisioningCreationDefault = `auto`;
|
|
3039
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcIssuerRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$");
|
|
3040
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcJwksUriRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3041
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcIdTokenMappingDefault = false;
|
|
3042
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcAuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3043
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3044
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcUserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3045
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcClientIdMax = 512;
|
|
3046
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
3047
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
3048
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcScopesDefault = [
|
|
3049
|
+
`openid`,
|
|
3050
|
+
`profile`,
|
|
3051
|
+
`email`
|
|
3052
|
+
];
|
|
3053
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOidcPkceEnabledDefault = true;
|
|
3054
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2AuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3055
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3056
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2UserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3057
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientIdMax = 512;
|
|
3058
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
3059
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
3060
|
+
const listIdpRevisionsResponseRevisionsItemDefinitionOauth2PkceEnabledDefault = true;
|
|
3061
|
+
const ListIdpRevisionsResponse = zod.object({
|
|
3062
|
+
revisions: zod.array(zod.object({
|
|
3063
|
+
id: zod.string().describe("A unique connection id, generated when the connection is created, and shared by\nevery revision. This id is referenced by the identity links.\n"),
|
|
3064
|
+
revision_id: zod.string().describe("The id of the revision this row holds, pinned by auth attempts and\nreleases. `GET /idps/{id}` and the query return the newest one;\n`GET /idps/revisions/{revision_id}` returns the requested revision.\n"),
|
|
3065
|
+
slug: zod.string().describe("The identifier by which user schemas and flow definitions reference the\nconnection. Fixed for the life of the connection.\n"),
|
|
3066
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the connection was created."),
|
|
3067
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("When this revision was created. On the newest revision, that is when\nthe connection was last revised.\n"),
|
|
3068
|
+
definition: zod.object({
|
|
3069
|
+
slug: zod.string().max(64).regex(listIdpRevisionsResponseRevisionsItemDefinitionSlugRegExp).describe("Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project."),
|
|
3070
|
+
protocol: zod.enum(["oidc", "oauth2"]).describe("The protocol used by the identity provider."),
|
|
3071
|
+
template: zod.string().optional().describe("Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks."),
|
|
3072
|
+
display_name: zod.string().min(1).max(256).describe("Shown to the user on the sign-in button."),
|
|
3073
|
+
subject_claim: zod.string().min(1).optional().describe("Claim carrying the provider's stable subject identifier. Optional for OIDC (the engine uses `sub` per spec; override where `sub` is pairwise, e.g. Entra `oid`). Required for OAuth2 — no `sub` guarantee."),
|
|
3074
|
+
claim_mapping: zod.record(zod.string(), zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionClaimMappingRegExpOne)).optional().describe("Maps user-schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`, GitHub `plan`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."),
|
|
3075
|
+
verified_claims: zod.record(zod.string(), zod.union([zod.boolean(), zod.string()])).optional().describe("Maps a verifiable user-schema property to its verification source: a claim name (read the claim), the literal `true` (trust this provider unconditionally), or the `$`-pointer `\"$supplementary_fetch\"` (verified by the selected supplementary_fetch strategy per its contract - e.g. github_primary_email verifies `email` via primary && verified). Values starting with `$` are reserved; only `$supplementary_fetch` is defined. Distinct from claim_mapping, which carries values, not verification state."),
|
|
3076
|
+
provisioning: zod.object({ creation: zod.enum(["disabled", "auto"]).default(listIdpRevisionsResponseRevisionsItemDefinitionProvisioningCreationDefault) }).optional().describe("How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties will be added when `x-verify` returns to the dialect. The following are deferred and will be added as additive changes. The `auto_only` value creates the user from complete claims or fails without collecting. The linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey. `is_auto_update`, together with per-property verification state."),
|
|
3077
|
+
oidc: zod.object({
|
|
3078
|
+
issuer: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOidcIssuerRegExp).describe("Discovery base. Endpoints are resolved from its .well-known document unless overridden below."),
|
|
3079
|
+
jwks_uri: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOidcJwksUriRegExp).optional().describe("Overrides the JWKS endpoint from discovery. Required in practice when the provider exposes no .well-known document, since ID tokens cannot otherwise be validated."),
|
|
3080
|
+
id_token_mapping: zod.boolean().default(false).describe("Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."),
|
|
3081
|
+
authorization_endpoint: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOidcAuthorizationEndpointRegExp).optional().describe("Overrides discovery."),
|
|
3082
|
+
token_endpoint: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointRegExp).optional().describe("Overrides discovery."),
|
|
3083
|
+
userinfo_endpoint: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOidcUserinfoEndpointRegExp).optional().describe("Overrides discovery."),
|
|
3084
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
3085
|
+
client_secret: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOidcClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
3086
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
3087
|
+
scopes: zod.array(zod.string().min(1)).min(1).default(listIdpRevisionsResponseRevisionsItemDefinitionOidcScopesDefault).describe("Must contain `openid` - without it the provider returns no id_token and the connection is not OIDC. Enforced by `required` + `contains`; the `default` is a UI-prefill hint only - validators never inject it, so an omitted `scopes` is rejected regardless."),
|
|
3088
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
3089
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.")
|
|
3090
|
+
}).optional().describe("OIDC connection details. Endpoints come from discovery, but any may be supplied to override it, or to serve a provider that exposes no .well-known document."),
|
|
3091
|
+
oauth2: zod.object({
|
|
3092
|
+
authorization_endpoint: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2AuthorizationEndpointRegExp).describe("Where the user is sent to authorize."),
|
|
3093
|
+
token_endpoint: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointRegExp).describe("Where the authorization code is exchanged."),
|
|
3094
|
+
userinfo_endpoint: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2UserinfoEndpointRegExp).describe("Where the authenticated user's profile is fetched."),
|
|
3095
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
3096
|
+
client_secret: zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
3097
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
3098
|
+
scopes: zod.array(zod.string().min(1)).optional().describe("Provider-specific; OAuth 2.0 defines no universal scope."),
|
|
3099
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
3100
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."),
|
|
3101
|
+
supplementary_fetch: zod.enum(["github_primary_email"]).optional().describe("Provider-specific follow-up call after userinfo. New values are non-breaking.")
|
|
3102
|
+
}).optional().describe("OAuth 2.0 connection details.")
|
|
3103
|
+
})
|
|
3104
|
+
}).describe("An identity provider connection.\n")),
|
|
3105
|
+
next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following\npage. Absent when there are no more results.\n")
|
|
3106
|
+
}).describe("Paginated list of the revisions of one identity provider connection, newest\nfirst.\n");
|
|
3107
|
+
/**
|
|
3108
|
+
* Reads one revision of a connection by its `revision_id`, the value an auth
|
|
3109
|
+
attempt or a release pins.
|
|
3110
|
+
|
|
3111
|
+
The lookup is scoped to the project in `project_id`.
|
|
3112
|
+
|
|
3113
|
+
* @summary Get one revision of an identity provider connection
|
|
3114
|
+
*/
|
|
3115
|
+
const GetIdpRevisionByIdParams = zod.object({ revision_id: zod.string().describe("The revision id, allocated when the revision was written.") });
|
|
3116
|
+
const getIdpRevisionByIdQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3117
|
+
const GetIdpRevisionByIdQueryParams = zod.strictObject({ project_id: zod.string().regex(getIdpRevisionByIdQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
3118
|
+
const getIdpRevisionByIdResponseDefinitionSlugMax = 64;
|
|
3119
|
+
const getIdpRevisionByIdResponseDefinitionSlugRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
3120
|
+
const getIdpRevisionByIdResponseDefinitionDisplayNameMax = 256;
|
|
3121
|
+
const getIdpRevisionByIdResponseDefinitionClaimMappingRegExpOne = /* @__PURE__ */ new RegExp("^[^$]");
|
|
3122
|
+
const getIdpRevisionByIdResponseDefinitionProvisioningCreationDefault = `auto`;
|
|
3123
|
+
const getIdpRevisionByIdResponseDefinitionOidcIssuerRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$");
|
|
3124
|
+
const getIdpRevisionByIdResponseDefinitionOidcJwksUriRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3125
|
+
const getIdpRevisionByIdResponseDefinitionOidcIdTokenMappingDefault = false;
|
|
3126
|
+
const getIdpRevisionByIdResponseDefinitionOidcAuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3127
|
+
const getIdpRevisionByIdResponseDefinitionOidcTokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3128
|
+
const getIdpRevisionByIdResponseDefinitionOidcUserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3129
|
+
const getIdpRevisionByIdResponseDefinitionOidcClientIdMax = 512;
|
|
3130
|
+
const getIdpRevisionByIdResponseDefinitionOidcClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
3131
|
+
const getIdpRevisionByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
3132
|
+
const getIdpRevisionByIdResponseDefinitionOidcScopesDefault = [
|
|
3133
|
+
`openid`,
|
|
3134
|
+
`profile`,
|
|
3135
|
+
`email`
|
|
3136
|
+
];
|
|
3137
|
+
const getIdpRevisionByIdResponseDefinitionOidcPkceEnabledDefault = true;
|
|
3138
|
+
const getIdpRevisionByIdResponseDefinitionOauth2AuthorizationEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3139
|
+
const getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3140
|
+
const getIdpRevisionByIdResponseDefinitionOauth2UserinfoEndpointRegExp = /* @__PURE__ */ new RegExp("^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$");
|
|
3141
|
+
const getIdpRevisionByIdResponseDefinitionOauth2ClientIdMax = 512;
|
|
3142
|
+
const getIdpRevisionByIdResponseDefinitionOauth2ClientSecretRegExp = /* @__PURE__ */ new RegExp("^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$");
|
|
3143
|
+
const getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
3144
|
+
const getIdpRevisionByIdResponseDefinitionOauth2PkceEnabledDefault = true;
|
|
3145
|
+
const GetIdpRevisionByIdResponse = zod.object({
|
|
3146
|
+
id: zod.string().describe("A unique connection id, generated when the connection is created, and shared by\nevery revision. This id is referenced by the identity links.\n"),
|
|
3147
|
+
revision_id: zod.string().describe("The id of the revision this row holds, pinned by auth attempts and\nreleases. `GET /idps/{id}` and the query return the newest one;\n`GET /idps/revisions/{revision_id}` returns the requested revision.\n"),
|
|
3148
|
+
slug: zod.string().describe("The identifier by which user schemas and flow definitions reference the\nconnection. Fixed for the life of the connection.\n"),
|
|
3149
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the connection was created."),
|
|
3150
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("When this revision was created. On the newest revision, that is when\nthe connection was last revised.\n"),
|
|
3151
|
+
definition: zod.object({
|
|
3152
|
+
slug: zod.string().max(64).regex(getIdpRevisionByIdResponseDefinitionSlugRegExp).describe("Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project."),
|
|
3153
|
+
protocol: zod.enum(["oidc", "oauth2"]).describe("The protocol used by the identity provider."),
|
|
3154
|
+
template: zod.string().optional().describe("Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks."),
|
|
3155
|
+
display_name: zod.string().min(1).max(256).describe("Shown to the user on the sign-in button."),
|
|
3156
|
+
subject_claim: zod.string().min(1).optional().describe("Claim carrying the provider's stable subject identifier. Optional for OIDC (the engine uses `sub` per spec; override where `sub` is pairwise, e.g. Entra `oid`). Required for OAuth2 — no `sub` guarantee."),
|
|
3157
|
+
claim_mapping: zod.record(zod.string(), zod.string().regex(getIdpRevisionByIdResponseDefinitionClaimMappingRegExpOne)).optional().describe("Maps user-schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`, GitHub `plan`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."),
|
|
3158
|
+
verified_claims: zod.record(zod.string(), zod.union([zod.boolean(), zod.string()])).optional().describe("Maps a verifiable user-schema property to its verification source: a claim name (read the claim), the literal `true` (trust this provider unconditionally), or the `$`-pointer `\"$supplementary_fetch\"` (verified by the selected supplementary_fetch strategy per its contract - e.g. github_primary_email verifies `email` via primary && verified). Values starting with `$` are reserved; only `$supplementary_fetch` is defined. Distinct from claim_mapping, which carries values, not verification state."),
|
|
3159
|
+
provisioning: zod.object({ creation: zod.enum(["disabled", "auto"]).default(getIdpRevisionByIdResponseDefinitionProvisioningCreationDefault) }).optional().describe("How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties will be added when `x-verify` returns to the dialect. The following are deferred and will be added as additive changes. The `auto_only` value creates the user from complete claims or fails without collecting. The linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey. `is_auto_update`, together with per-property verification state."),
|
|
3160
|
+
oidc: zod.object({
|
|
3161
|
+
issuer: zod.string().regex(getIdpRevisionByIdResponseDefinitionOidcIssuerRegExp).describe("Discovery base. Endpoints are resolved from its .well-known document unless overridden below."),
|
|
3162
|
+
jwks_uri: zod.string().regex(getIdpRevisionByIdResponseDefinitionOidcJwksUriRegExp).optional().describe("Overrides the JWKS endpoint from discovery. Required in practice when the provider exposes no .well-known document, since ID tokens cannot otherwise be validated."),
|
|
3163
|
+
id_token_mapping: zod.boolean().default(false).describe("Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."),
|
|
3164
|
+
authorization_endpoint: zod.string().regex(getIdpRevisionByIdResponseDefinitionOidcAuthorizationEndpointRegExp).optional().describe("Overrides discovery."),
|
|
3165
|
+
token_endpoint: zod.string().regex(getIdpRevisionByIdResponseDefinitionOidcTokenEndpointRegExp).optional().describe("Overrides discovery."),
|
|
3166
|
+
userinfo_endpoint: zod.string().regex(getIdpRevisionByIdResponseDefinitionOidcUserinfoEndpointRegExp).optional().describe("Overrides discovery."),
|
|
3167
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
3168
|
+
client_secret: zod.string().regex(getIdpRevisionByIdResponseDefinitionOidcClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
3169
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(getIdpRevisionByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
3170
|
+
scopes: zod.array(zod.string().min(1)).min(1).default(getIdpRevisionByIdResponseDefinitionOidcScopesDefault).describe("Must contain `openid` - without it the provider returns no id_token and the connection is not OIDC. Enforced by `required` + `contains`; the `default` is a UI-prefill hint only - validators never inject it, so an omitted `scopes` is rejected regardless."),
|
|
3171
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
3172
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.")
|
|
3173
|
+
}).optional().describe("OIDC connection details. Endpoints come from discovery, but any may be supplied to override it, or to serve a provider that exposes no .well-known document."),
|
|
3174
|
+
oauth2: zod.object({
|
|
3175
|
+
authorization_endpoint: zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2AuthorizationEndpointRegExp).describe("Where the user is sent to authorize."),
|
|
3176
|
+
token_endpoint: zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointRegExp).describe("Where the authorization code is exchanged."),
|
|
3177
|
+
userinfo_endpoint: zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2UserinfoEndpointRegExp).describe("Where the authenticated user's profile is fetched."),
|
|
3178
|
+
client_id: zod.string().min(1).max(512).describe("Either a literal in case the same client is used in all environments, or a `${{ NAME }}` reference to a variable in case of separate clients per environment."),
|
|
3179
|
+
client_secret: zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2ClientSecretRegExp).describe("A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The engine resolves it against the environment serving the request."),
|
|
3180
|
+
token_endpoint_auth_method: zod.enum(["client_secret_basic", "client_secret_post"]).default(getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault).describe("How the client authenticates at the token endpoint."),
|
|
3181
|
+
scopes: zod.array(zod.string().min(1)).optional().describe("Provider-specific; OAuth 2.0 defines no universal scope."),
|
|
3182
|
+
pkce_enabled: zod.boolean().default(true).describe("Send PKCE (code_challenge/code_verifier). Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."),
|
|
3183
|
+
static_authorize_parameters: zod.record(zod.string(), zod.string()).optional().describe("Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."),
|
|
3184
|
+
supplementary_fetch: zod.enum(["github_primary_email"]).optional().describe("Provider-specific follow-up call after userinfo. New values are non-breaking.")
|
|
3185
|
+
}).optional().describe("OAuth 2.0 connection details.")
|
|
3186
|
+
})
|
|
3187
|
+
}).describe("An identity provider connection.\n");
|
|
3188
|
+
/**
|
|
2112
3189
|
* Bundles a release from revisions that already exist, supplied as
|
|
2113
3190
|
`(kind, revision_id)` pairs. No new revisions are allocated — use the
|
|
2114
3191
|
per-kind create endpoints for that, then pin the ids here.
|
|
@@ -2130,6 +3207,7 @@ release that already pins them rather than creating a second one.
|
|
|
2130
3207
|
const createReleaseQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2131
3208
|
const CreateReleaseQueryParams = zod.strictObject({ project_id: zod.string().regex(createReleaseQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
2132
3209
|
const createReleaseBodyPointersItemRevisionIdMax = 512;
|
|
3210
|
+
const createReleaseBodyPointersMax = 50;
|
|
2133
3211
|
const createReleaseBodyMessageMax = 1024;
|
|
2134
3212
|
const createReleaseBodyGitShaMax = 64;
|
|
2135
3213
|
const createReleaseBodyGitDirtyDefault = false;
|
|
@@ -2141,7 +3219,7 @@ const CreateReleaseBody = zod.object({
|
|
|
2141
3219
|
"branding"
|
|
2142
3220
|
]).describe("The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema's is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n"),
|
|
2143
3221
|
revision_id: zod.string().min(1).max(512).describe("The revision of that resource to pin. Must already exist in the project —\nthis endpoint pins revisions, it does not create them.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema's `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n")
|
|
2144
|
-
}).describe("One revision to pin. The handle is not supplied: it is the resource's own\nidentifying field, so the server reads it from the revision being pinned and\nrecords it on the release.\n")).min(1).describe("The revisions to pin. Must not be empty.\n\nA kind usually appears more than once: a project has several user schemas\nand several flow definitions, and each is pinned on its own. What it\ncannot do is\npin two revisions of the *same* resource — a second revision of the\n`human-user` schema is rejected rather than ordered, since a release\ndescribes one state of the project.\n"),
|
|
3222
|
+
}).describe("One revision to pin. The handle is not supplied: it is the resource's own\nidentifying field, so the server reads it from the revision being pinned and\nrecords it on the release.\n")).min(1).max(50).describe("The revisions to pin. Must not be empty.\n\nA kind usually appears more than once: a project has several user schemas\nand several flow definitions, and each is pinned on its own. What it\ncannot do is\npin two revisions of the *same* resource — a second revision of the\n`human-user` schema is rejected rather than ordered, since a release\ndescribes one state of the project.\n\nThe upper bound counts *resources*, not revisions — one release pins at\nmost one revision of each — so it is a limit on how much a project\nconfigures, not on how often it changes. It keeps the server's\nper-pointer revision lookups bounded by the contract rather than by the\nrequest, and is set conservatively: raising it is a spec change, and\nwidening a bound breaks no client that was already inside it.\n"),
|
|
2145
3223
|
message: zod.string().max(createReleaseBodyMessageMax).optional().describe("A short summary of what the release changes, analogous to a git commit\nmessage. Recorded on the release and shown when listing releases.\n"),
|
|
2146
3224
|
git_sha: zod.string().max(64).optional().describe("The source commit the caller was operating from."),
|
|
2147
3225
|
git_dirty: zod.boolean().default(false).describe("Set when the working tree had uncommitted changes, so the release content\ndoes not correspond exactly to `git_sha`.\n")
|
|
@@ -2153,6 +3231,7 @@ const createReleaseResponseMetadataGitShaOneMax = 64;
|
|
|
2153
3231
|
const createReleaseResponseMetadataGitDirtyDefault = false;
|
|
2154
3232
|
const createReleaseResponsePointersItemHandleMax = 256;
|
|
2155
3233
|
const createReleaseResponsePointersItemRevisionIdMax = 512;
|
|
3234
|
+
const createReleaseResponsePointersMax = 50;
|
|
2156
3235
|
const CreateReleaseResponse = zod.object({
|
|
2157
3236
|
id: zod.string().regex(createReleaseResponseIdRegExp).describe("The opaque, immutable identifier of a release."),
|
|
2158
3237
|
project_id: zod.string().regex(createReleaseResponseProjectIdRegExp),
|
|
@@ -2177,7 +3256,7 @@ const CreateReleaseResponse = zod.object({
|
|
|
2177
3256
|
]).describe("The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema's is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n"),
|
|
2178
3257
|
handle: zod.string().min(1).max(256).describe("Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document's `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition's `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n"),
|
|
2179
3258
|
revision_id: zod.string().min(1).max(512).describe("The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema's `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n")
|
|
2180
|
-
}).describe("One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n")).min(1).describe("The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource.\n")
|
|
3259
|
+
}).describe("One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n")).min(1).max(50).describe("The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n")
|
|
2181
3260
|
}).describe("An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an environment. Deploying it\nis a separate call.\n");
|
|
2182
3261
|
/**
|
|
2183
3262
|
* Lists the project's releases, newest first.
|
|
@@ -2245,6 +3324,7 @@ const getReleaseByIdResponseMetadataGitShaOneMax = 64;
|
|
|
2245
3324
|
const getReleaseByIdResponseMetadataGitDirtyDefault = false;
|
|
2246
3325
|
const getReleaseByIdResponsePointersItemHandleMax = 256;
|
|
2247
3326
|
const getReleaseByIdResponsePointersItemRevisionIdMax = 512;
|
|
3327
|
+
const getReleaseByIdResponsePointersMax = 50;
|
|
2248
3328
|
const GetReleaseByIdResponse = zod.object({
|
|
2249
3329
|
id: zod.string().regex(getReleaseByIdResponseIdRegExp).describe("The opaque, immutable identifier of a release."),
|
|
2250
3330
|
project_id: zod.string().regex(getReleaseByIdResponseProjectIdRegExp),
|
|
@@ -2269,30 +3349,164 @@ const GetReleaseByIdResponse = zod.object({
|
|
|
2269
3349
|
]).describe("The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema's is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n"),
|
|
2270
3350
|
handle: zod.string().min(1).max(256).describe("Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document's `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition's `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n"),
|
|
2271
3351
|
revision_id: zod.string().min(1).max(512).describe("The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema's `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n")
|
|
2272
|
-
}).describe("One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n")).min(1).describe("The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource.\n")
|
|
3352
|
+
}).describe("One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n")).min(1).max(50).describe("The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n")
|
|
2273
3353
|
}).describe("An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an environment. Deploying it\nis a separate call.\n");
|
|
2274
3354
|
/**
|
|
2275
3355
|
* Bind a user or team to `project.viewer`, `project.editor`, or
|
|
2276
3356
|
`project.admin` on the project identified by the `project-id` header.
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
3357
|
+
Name the principal with `user` (`user_id` or `identifier`) or `team`
|
|
3358
|
+
(`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
|
|
3359
|
+
(`project.team`) grants are not created here — claim owns that path. An
|
|
3360
|
+
unrevoked grant with the same principal and relation occupies the unique
|
|
3361
|
+
key even after `expires_at`; DELETE it before re-creating.
|
|
3362
|
+
Create does not accept `expand`. The `user_id` and team locators
|
|
3363
|
+
return 201, whose `user` / `team` carry only `user_id` / `team_id`,
|
|
3364
|
+
and still 404 / 409 when the principal is missing or the tuple
|
|
3365
|
+
already exists. Creating by `user.identifier` answers 202 with no
|
|
3366
|
+
body on every outcome. Granting the session caller's own user is
|
|
3367
|
+
`grant.invalid` on either user locator. Read the grant back for
|
|
3368
|
+
identifier and display.
|
|
3369
|
+
|
|
3370
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
3371
|
+
session cookie (`nextgenSession`). Session callers are authorized as
|
|
3372
|
+
the human against the target project (home may differ). CSRF/Origin
|
|
3373
|
+
for cookie mutations is a follow-up (#1140).
|
|
2281
3374
|
|
|
2282
3375
|
* @summary Create grant
|
|
2283
3376
|
*/
|
|
2284
3377
|
const createGrantQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2285
3378
|
const CreateGrantQueryParams = zod.strictObject({ project_id: zod.string().regex(createGrantQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
3379
|
+
const createGrantBodyUserUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
3380
|
+
const createGrantBodyTeamTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2286
3381
|
const CreateGrantBody = zod.object({
|
|
2287
|
-
principal_type: zod.enum(["user", "team"]).describe("Kind of principal to bind. `sk_proj` and owning-team grants are not accepted."),
|
|
2288
|
-
principal_id: zod.string().min(1).describe("Principal id (`user_<opaque>` or `team_<opaque>`). The principal must\nexist in the platform project when a platform project is configured.\n"),
|
|
2289
3382
|
relation: zod.enum([
|
|
2290
3383
|
"viewer",
|
|
2291
3384
|
"editor",
|
|
2292
3385
|
"admin"
|
|
2293
3386
|
]).describe("Catalog relation on `object_type` `project`. `team` (owning-team) is not allowed."),
|
|
2294
|
-
expires_at: zod.iso.datetime({ offset: true }).optional().describe("Optional expiry. Must be in the future when set. Expiry stops\nauthorization but does not free the unique binding; DELETE the grant\nbefore posting the same principal and relation again.\n")
|
|
2295
|
-
|
|
3387
|
+
expires_at: zod.iso.datetime({ offset: true }).optional().describe("Optional expiry. Must be in the future when set. Expiry stops\nauthorization but does not free the unique binding; DELETE the grant\nbefore posting the same principal and relation again.\n"),
|
|
3388
|
+
user: zod.object({
|
|
3389
|
+
user_id: zod.string().regex(createGrantBodyUserUserIdRegExp).optional(),
|
|
3390
|
+
identifier: zod.string().min(1).optional().describe("The user schema's designated identifier (`x-identifier`), looked\nup in the platform project. Create answers 202 with no body on\nevery outcome: a hit, a duplicate, a miss, and several matches are\nindistinguishable, and a miss or several matches write nothing.\nThe server logs the lookup outcome. Granting the session caller's\nown resolved user is `grant.invalid`.\n")
|
|
3391
|
+
}).optional().describe("Name a user with exactly one of `user_id` or `identifier`. Sending both\nor neither is `grant.invalid`. Unknown properties are rejected by\n`additionalProperties: false` as `req.invalid` before the handler runs.\n"),
|
|
3392
|
+
team: zod.object({
|
|
3393
|
+
team_id: zod.string().regex(createGrantBodyTeamTeamIdRegExp).optional(),
|
|
3394
|
+
name: zod.string().min(1).optional().describe("Team name, unique per project case-insensitively. Looked up in\nthe platform project. The team must be active.\n")
|
|
3395
|
+
}).optional().describe("Name a team with exactly one of `team_id` or `name`. Sending both\nor neither is `grant.invalid`. Unknown properties are rejected by\n`additionalProperties: false` as `req.invalid` before the handler runs.\n")
|
|
3396
|
+
}).describe("Bind a user or a team. Exactly one of `user` or `team`. Shared fields are\n`relation` and optional `expires_at`. Sending both locators or neither is\n`grant.invalid`.\n");
|
|
3397
|
+
/**
|
|
3398
|
+
* Returns the collaboration grants of a project, paginated with a cursor.
|
|
3399
|
+
Only unrevoked grants this API manages are listed (user or team bound to
|
|
3400
|
+
viewer, editor, or admin), including expired grants so a client can
|
|
3401
|
+
DELETE before re-granting. Project-secret setup (`sk_proj`) and
|
|
3402
|
+
owning-team (`relation=team`) rows are not returned. Grants are not in
|
|
3403
|
+
`resource_scope_index`; project scope is required on the query (same as
|
|
3404
|
+
get). Requires `project.read`. `expand: ["principal"]` adds envelope
|
|
3405
|
+
fields on `user` / `team` and additionally requires `user.read` and
|
|
3406
|
+
`team.read` for project secrets (documented on the expand enum; those
|
|
3407
|
+
scopes cannot be ANDed onto this security block because they are
|
|
3408
|
+
body-conditional). A user-bound Console session that already passed
|
|
3409
|
+
the project Check may expand without those scopes.
|
|
3410
|
+
|
|
3411
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
3412
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
3413
|
+
is a follow-up (#1140).
|
|
3414
|
+
|
|
3415
|
+
* @summary Query grants
|
|
3416
|
+
*/
|
|
3417
|
+
const queryGrantsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3418
|
+
const QueryGrantsQueryParams = zod.strictObject({ project_id: zod.string().regex(queryGrantsQueryProjectIdRegExp).describe("The unique identifier of the project") });
|
|
3419
|
+
const queryGrantsBodyLimitDefault = 20;
|
|
3420
|
+
const queryGrantsBodyLimitMax = 100;
|
|
3421
|
+
const QueryGrantsBody = zod.object({
|
|
3422
|
+
limit: zod.number().min(1).max(100).default(20),
|
|
3423
|
+
page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n"),
|
|
3424
|
+
expand: zod.array(zod.enum(["principal"]).describe("Ask for extra fields on the bound user or team. Those extras land on\n`user` or `team` themselves; there is no sibling `principal` object.\n\n`principal` adds `schema`, `attributes`, and `metadata` on `user`, or\n`status`, `created_at`, and `updated_at` on `team`. The id (`user_id` /\n`team_id`) is always present. If the user or team cannot be loaded, the\nobject stays id-only — the same shape as not expanding.\n\nExpanding requires `user.read` and `team.read` in addition to\n`project.read` for project secrets. Both are checked once for the whole\nrequest. If the caller lacks either, the request is 403; extras are not\nomitted silently. A user-bound Console session that already passed the\nproject Check may expand without those scopes.\n")).optional().describe("Extra principal fields to add onto each grant's `user` or `team`\n(ADR 059 grant exception). Omit it and those objects stay refs. An\nunrecognised value is rejected.\n"),
|
|
3425
|
+
sorting: zod.object({
|
|
3426
|
+
field: zod.enum([
|
|
3427
|
+
"created_at",
|
|
3428
|
+
"expires_at",
|
|
3429
|
+
"id"
|
|
3430
|
+
]).describe("Field to sort grants by. Default is `created_at` ascending with `id` as\nthe tiebreaker.\n"),
|
|
3431
|
+
direction: zod.enum(["asc", "desc"])
|
|
3432
|
+
}).optional(),
|
|
3433
|
+
filter: zod.array(zod.object({
|
|
3434
|
+
field: zod.enum([
|
|
3435
|
+
"created_at",
|
|
3436
|
+
"user_id",
|
|
3437
|
+
"team_id",
|
|
3438
|
+
"relation",
|
|
3439
|
+
"expires_at"
|
|
3440
|
+
]).describe("Field to filter grants by:\n- `created_at`: RFC3339 timestamp\n- `user_id`: user principal id (`user_<opaque>`)\n- `team_id`: team principal id (`team_<opaque>`)\n- `relation`: `viewer`, `editor`, or `admin`\n- `expires_at`: RFC3339 timestamp (null when the grant does not expire)\n"),
|
|
3441
|
+
value: zod.union([
|
|
3442
|
+
zod.string(),
|
|
3443
|
+
zod.number(),
|
|
3444
|
+
zod.boolean(),
|
|
3445
|
+
zod.null()
|
|
3446
|
+
]).optional().describe("Filter-value specifies which values can be filtered by a query endpoint. This\nis a union of types. When a value is specified which is not assignable to the\nfield which is being filtered, a 400 error will be returned.\n"),
|
|
3447
|
+
operation: zod.enum([
|
|
3448
|
+
"equals",
|
|
3449
|
+
"not_equals",
|
|
3450
|
+
"contains",
|
|
3451
|
+
"not_contains",
|
|
3452
|
+
"less_than",
|
|
3453
|
+
"less_than_or_equal",
|
|
3454
|
+
"greater_than",
|
|
3455
|
+
"greater_than_or_equal"
|
|
3456
|
+
]).describe("Filter operation defines the operations which can be used when filtering on a\nquery endpoint.\n\nOn text fields, `contains` is a case-insensitive substring match. `equals`\ncompares the whole value and is case-sensitive unless the field documents\notherwise.\n")
|
|
3457
|
+
})).optional().describe("Filter criteria for querying grants. Combined with AND.")
|
|
3458
|
+
}).describe("Request to query the grants of a project.");
|
|
3459
|
+
const queryGrantsResponseGrantsItemUserOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
3460
|
+
const QueryGrantsResponse = zod.object({
|
|
3461
|
+
grants: zod.array(zod.object({
|
|
3462
|
+
id: zod.string().describe("Managed assignment id (`asgn_<opaque>`)."),
|
|
3463
|
+
project_id: zod.string().describe("Project this grant is scoped to."),
|
|
3464
|
+
object_type: zod.enum(["project"]).describe("Catalog object type. Always `project` for this API."),
|
|
3465
|
+
relation: zod.enum([
|
|
3466
|
+
"viewer",
|
|
3467
|
+
"editor",
|
|
3468
|
+
"admin"
|
|
3469
|
+
]).describe("Catalog relation on the project."),
|
|
3470
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the grant was created."),
|
|
3471
|
+
expires_at: zod.union([zod.iso.datetime({ offset: true }), zod.null()]).optional().describe("When the grant expires. Null when it does not expire. GET still\nreturns expired unrevoked grants; authorization ignores them.\n"),
|
|
3472
|
+
user: zod.object({
|
|
3473
|
+
user_id: zod.string().regex(queryGrantsResponseGrantsItemUserOneUserIdRegExp),
|
|
3474
|
+
identifier: zod.string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
|
|
3475
|
+
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
3476
|
+
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
|
|
3477
|
+
}).describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n").and(zod.object({
|
|
3478
|
+
schema: zod.string().optional().describe("The schema that defines `attributes`. Present only when the request\nasked for `expand: [\"principal\"]` and the user could be loaded.\n"),
|
|
3479
|
+
attributes: zod.record(zod.string(), zod.unknown()).optional().describe("The user's content, satisfying the schema named by `schema`. Property\nnames and types are determined entirely by that schema.\n"),
|
|
3480
|
+
metadata: zod.object({
|
|
3481
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
|
|
3482
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
|
|
3483
|
+
status: zod.enum([
|
|
3484
|
+
"active",
|
|
3485
|
+
"suspended",
|
|
3486
|
+
"deactivated",
|
|
3487
|
+
"pending_purge"
|
|
3488
|
+
]).describe("The status of the user."),
|
|
3489
|
+
lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team memberships: it decides who may deprovision the user, not\nwhich teams the user collaborates in. Memberships are their own paginated\nresource — `GET /users/{user_id}/teams`.\n"),
|
|
3490
|
+
lifecycle_owner_team: zod.union([zod.object({
|
|
3491
|
+
id: zod.string().describe("The unique identifier of the team."),
|
|
3492
|
+
name: zod.string().describe("The name of the team."),
|
|
3493
|
+
status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
|
|
3494
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
|
|
3495
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
|
|
3496
|
+
}).describe("Details of a team."), zod.null()]).optional().describe("The team named by `lifecycle_owner_team_id`, present only when the\nrequest asked for it with `expand: [\"lifecycle_owner_team\"]` (ADR 059).\nAbsent means it was not requested; `null` means the user is self-owned\nand there is no owner to resolve.\n\nRequesting it does not guarantee it is present on every user. Today\n`team.read` is checked once for the whole request, so it is; once that\ncheck is per team, a page may contain a user whose owner the caller may\nnot read, and such a row answers with neither the team nor `null` —\n`null` already means self-owned. What it answers with instead is decided\nwith the granular scopes (#420); do not read the two cases above as the\ncomplete set.\n\nThis is the same representation `GET /teams/{team_id}` serves. It is a\nsingle team, not a collection, so it carries no cap and no truncation\nflag.\n")
|
|
3497
|
+
}).optional()
|
|
3498
|
+
})).optional().describe("User bound by this grant. Always a user-ref (`user_id`, never `id`).\n`expand: [\"principal\"]` adds the User envelope fields `schema`,\n`attributes`, and `metadata` on this same object. Missing users degrade to\n`user_id` only, with or without expand (ADR 059 grant exception).\n"),
|
|
3499
|
+
team: zod.object({
|
|
3500
|
+
team_id: zod.string().describe("The referenced team's id (`team_<opaque>`). Always present."),
|
|
3501
|
+
name: zod.string().optional().describe("The team's name. Absent when the team can no longer be loaded.")
|
|
3502
|
+
}).describe("A resolved reference to a team. Carries the team's id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget's id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n").and(zod.object({
|
|
3503
|
+
status: zod.enum(["active", "deactivated"]).optional().describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
|
|
3504
|
+
created_at: zod.iso.datetime({ offset: true }).optional().describe("When the team was created. Present only when expand loaded the team.\n"),
|
|
3505
|
+
updated_at: zod.iso.datetime({ offset: true }).optional().describe("When the team was last updated. Present only when expand loaded the team.\n")
|
|
3506
|
+
})).optional().describe("Team bound by this grant. Always a team-ref (`team_id`, never `id`).\n`expand: [\"principal\"]` adds `status`, `created_at`, and `updated_at` on\nthis same object. Missing teams degrade to `team_id` only, with or without\nexpand (ADR 059 grant exception).\n")
|
|
3507
|
+
}).describe("A collaboration grant binding a user or a team to a project relation.\nDiscriminate on which of `user` or `team` is present. Those objects are\nalways refs (`user_id` / `team_id`); expand adds extra fields on the same\nobject rather than a sibling.\n")),
|
|
3508
|
+
next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n")
|
|
3509
|
+
}).describe("Paginated list of grants.");
|
|
2296
3510
|
/**
|
|
2297
3511
|
* Loads a grant by `(project_id, id)` that this API manages (user or team
|
|
2298
3512
|
bound to viewer, editor, or admin) and that has not been revoked.
|
|
@@ -2302,17 +3516,27 @@ still ignores expired grants. Grants are not registered in
|
|
|
2302
3516
|
`resource_scope_index`; project scope is required on the query (same as
|
|
2303
3517
|
events). Misses, revoked rows, project-secret setup (`sk_proj`),
|
|
2304
3518
|
owning-team (`relation=team`) rows, and cross-project ids return 404.
|
|
3519
|
+
`expand=principal` adds envelope fields on `user` or `team` and requires
|
|
3520
|
+
`user.read` and `team.read` in addition to `project.read` for project
|
|
3521
|
+
secrets. A user-bound Console session that already passed the project
|
|
3522
|
+
Check may expand without those scopes.
|
|
3523
|
+
|
|
3524
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
3525
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
3526
|
+
is a follow-up (#1140).
|
|
2305
3527
|
|
|
2306
3528
|
* @summary Get grant
|
|
2307
3529
|
*/
|
|
2308
3530
|
const GetGrantParams = zod.object({ id: zod.string().describe("Managed assignment id (`asgn_<opaque>`).") });
|
|
2309
3531
|
const getGrantQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2310
|
-
const GetGrantQueryParams = zod.strictObject({
|
|
3532
|
+
const GetGrantQueryParams = zod.strictObject({
|
|
3533
|
+
project_id: zod.string().regex(getGrantQueryProjectIdRegExp).describe("The unique identifier of the project"),
|
|
3534
|
+
expand: zod.array(zod.enum(["principal"]).describe("Ask for extra fields on the bound user or team. Those extras land on\n`user` or `team` themselves; there is no sibling `principal` object.\n\n`principal` adds `schema`, `attributes`, and `metadata` on `user`, or\n`status`, `created_at`, and `updated_at` on `team`. The id (`user_id` /\n`team_id`) is always present. If the user or team cannot be loaded, the\nobject stays id-only — the same shape as not expanding.\n\nExpanding requires `user.read` and `team.read` in addition to\n`project.read` for project secrets. Both are checked once for the whole\nrequest. If the caller lacks either, the request is 403; extras are not\nomitted silently. A user-bound Console session that already passed the\nproject Check may expand without those scopes.\n")).optional().describe("Extra principal fields to add onto `user` or `team`. Same enum and\n`user.read` + `team.read` gate as `POST /grants/query`.\n")
|
|
3535
|
+
});
|
|
3536
|
+
const getGrantResponseUserOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
2311
3537
|
const GetGrantResponse = zod.object({
|
|
2312
3538
|
id: zod.string().describe("Managed assignment id (`asgn_<opaque>`)."),
|
|
2313
3539
|
project_id: zod.string().describe("Project this grant is scoped to."),
|
|
2314
|
-
principal_type: zod.enum(["user", "team"]).describe("Kind of principal bound by this grant."),
|
|
2315
|
-
principal_id: zod.string().describe("Principal id (`user_<opaque>` or `team_<opaque>`)."),
|
|
2316
3540
|
object_type: zod.enum(["project"]).describe("Catalog object type. Always `project` for this API."),
|
|
2317
3541
|
relation: zod.enum([
|
|
2318
3542
|
"viewer",
|
|
@@ -2320,14 +3544,53 @@ const GetGrantResponse = zod.object({
|
|
|
2320
3544
|
"admin"
|
|
2321
3545
|
]).describe("Catalog relation on the project."),
|
|
2322
3546
|
created_at: zod.iso.datetime({ offset: true }).describe("When the grant was created."),
|
|
2323
|
-
expires_at: zod.union([zod.iso.datetime({ offset: true }), zod.null()]).optional().describe("When the grant expires. Null when it does not expire. GET still\nreturns expired unrevoked grants; authorization ignores them.\n")
|
|
2324
|
-
|
|
3547
|
+
expires_at: zod.union([zod.iso.datetime({ offset: true }), zod.null()]).optional().describe("When the grant expires. Null when it does not expire. GET still\nreturns expired unrevoked grants; authorization ignores them.\n"),
|
|
3548
|
+
user: zod.object({
|
|
3549
|
+
user_id: zod.string().regex(getGrantResponseUserOneUserIdRegExp),
|
|
3550
|
+
identifier: zod.string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
|
|
3551
|
+
identifier_property: zod.string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
|
|
3552
|
+
display: zod.string().optional().describe("The `x-display` rendering — the designated properties' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
|
|
3553
|
+
}).describe("A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n").and(zod.object({
|
|
3554
|
+
schema: zod.string().optional().describe("The schema that defines `attributes`. Present only when the request\nasked for `expand: [\"principal\"]` and the user could be loaded.\n"),
|
|
3555
|
+
attributes: zod.record(zod.string(), zod.unknown()).optional().describe("The user's content, satisfying the schema named by `schema`. Property\nnames and types are determined entirely by that schema.\n"),
|
|
3556
|
+
metadata: zod.object({
|
|
3557
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
|
|
3558
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
|
|
3559
|
+
status: zod.enum([
|
|
3560
|
+
"active",
|
|
3561
|
+
"suspended",
|
|
3562
|
+
"deactivated",
|
|
3563
|
+
"pending_purge"
|
|
3564
|
+
]).describe("The status of the user."),
|
|
3565
|
+
lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team memberships: it decides who may deprovision the user, not\nwhich teams the user collaborates in. Memberships are their own paginated\nresource — `GET /users/{user_id}/teams`.\n"),
|
|
3566
|
+
lifecycle_owner_team: zod.union([zod.object({
|
|
3567
|
+
id: zod.string().describe("The unique identifier of the team."),
|
|
3568
|
+
name: zod.string().describe("The name of the team."),
|
|
3569
|
+
status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
|
|
3570
|
+
created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
|
|
3571
|
+
updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
|
|
3572
|
+
}).describe("Details of a team."), zod.null()]).optional().describe("The team named by `lifecycle_owner_team_id`, present only when the\nrequest asked for it with `expand: [\"lifecycle_owner_team\"]` (ADR 059).\nAbsent means it was not requested; `null` means the user is self-owned\nand there is no owner to resolve.\n\nRequesting it does not guarantee it is present on every user. Today\n`team.read` is checked once for the whole request, so it is; once that\ncheck is per team, a page may contain a user whose owner the caller may\nnot read, and such a row answers with neither the team nor `null` —\n`null` already means self-owned. What it answers with instead is decided\nwith the granular scopes (#420); do not read the two cases above as the\ncomplete set.\n\nThis is the same representation `GET /teams/{team_id}` serves. It is a\nsingle team, not a collection, so it carries no cap and no truncation\nflag.\n")
|
|
3573
|
+
}).optional()
|
|
3574
|
+
})).optional().describe("User bound by this grant. Always a user-ref (`user_id`, never `id`).\n`expand: [\"principal\"]` adds the User envelope fields `schema`,\n`attributes`, and `metadata` on this same object. Missing users degrade to\n`user_id` only, with or without expand (ADR 059 grant exception).\n"),
|
|
3575
|
+
team: zod.object({
|
|
3576
|
+
team_id: zod.string().describe("The referenced team's id (`team_<opaque>`). Always present."),
|
|
3577
|
+
name: zod.string().optional().describe("The team's name. Absent when the team can no longer be loaded.")
|
|
3578
|
+
}).describe("A resolved reference to a team. Carries the team's id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget's id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n").and(zod.object({
|
|
3579
|
+
status: zod.enum(["active", "deactivated"]).optional().describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
|
|
3580
|
+
created_at: zod.iso.datetime({ offset: true }).optional().describe("When the team was created. Present only when expand loaded the team.\n"),
|
|
3581
|
+
updated_at: zod.iso.datetime({ offset: true }).optional().describe("When the team was last updated. Present only when expand loaded the team.\n")
|
|
3582
|
+
})).optional().describe("Team bound by this grant. Always a team-ref (`team_id`, never `id`).\n`expand: [\"principal\"]` adds `status`, `created_at`, and `updated_at` on\nthis same object. Missing teams degrade to `team_id` only, with or without\nexpand (ADR 059 grant exception).\n")
|
|
3583
|
+
}).describe("A collaboration grant binding a user or a team to a project relation.\nDiscriminate on which of `user` or `team` is present. Those objects are\nalways refs (`user_id` / `team_id`); expand adds extra fields on the same\nobject rather than a sibling.\n");
|
|
2325
3584
|
/**
|
|
2326
3585
|
* Soft-revokes a grant this API manages and emits `authz.revoked`.
|
|
2327
3586
|
Already-revoked, missing, project-secret setup, and owning-team grants
|
|
2328
3587
|
return 404. The row is not un-revoked. Expired grants can still be
|
|
2329
3588
|
revoked so the unique binding can be reused.
|
|
2330
3589
|
|
|
3590
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
3591
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
3592
|
+
is a follow-up (#1140).
|
|
3593
|
+
|
|
2331
3594
|
* @summary Revoke grant
|
|
2332
3595
|
*/
|
|
2333
3596
|
const DeleteGrantParams = zod.object({ id: zod.string().describe("Managed assignment id (`asgn_<opaque>`).") });
|
|
@@ -2397,10 +3660,10 @@ const listEventsResponseDataItemOnesixOneProjectIdRegExp = /* @__PURE__ */ new R
|
|
|
2397
3660
|
const listEventsResponseDataItemOnesevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2398
3661
|
const listEventsResponseDataItemOneeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2399
3662
|
const listEventsResponseDataItemOnenineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2400
|
-
const listEventsResponseDataItemOnenineTwoPayloadStatusMin = 100;
|
|
2401
|
-
const listEventsResponseDataItemOnenineTwoPayloadStatusMax = 599;
|
|
2402
|
-
const listEventsResponseDataItemOnenineTwoPayloadDurationMsMin = 0;
|
|
2403
3663
|
const listEventsResponseDataItemTwozeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3664
|
+
const listEventsResponseDataItemTwozeroTwoPayloadStatusMin = 100;
|
|
3665
|
+
const listEventsResponseDataItemTwozeroTwoPayloadStatusMax = 599;
|
|
3666
|
+
const listEventsResponseDataItemTwozeroTwoPayloadDurationMsMin = 0;
|
|
2404
3667
|
const listEventsResponseDataItemTwooneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2405
3668
|
const listEventsResponseDataItemTwotwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2406
3669
|
const listEventsResponseDataItemTwothreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -2409,6 +3672,7 @@ const listEventsResponseDataItemTwofiveOneProjectIdRegExp = /* @__PURE__ */ new
|
|
|
2409
3672
|
const listEventsResponseDataItemTwosixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2410
3673
|
const listEventsResponseDataItemTwosevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2411
3674
|
const listEventsResponseDataItemTwoeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3675
|
+
const listEventsResponseDataItemTwonineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
2412
3676
|
const ListEventsResponse = zod.object({
|
|
2413
3677
|
data: zod.array(zod.union([
|
|
2414
3678
|
zod.object({
|
|
@@ -3056,7 +4320,7 @@ const ListEventsResponse = zod.object({
|
|
|
3056
4320
|
app_ids: zod.array(zod.string()).optional(),
|
|
3057
4321
|
team_ids: zod.array(zod.string()).optional()
|
|
3058
4322
|
}).optional()
|
|
3059
|
-
}).describe("
|
|
4323
|
+
}).describe("Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n")
|
|
3060
4324
|
})).describe("Wide event with event_type=flowdef.created.\n"),
|
|
3061
4325
|
zod.object({
|
|
3062
4326
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
@@ -3159,7 +4423,7 @@ const ListEventsResponse = zod.object({
|
|
|
3159
4423
|
app_ids: zod.array(zod.string()).optional(),
|
|
3160
4424
|
team_ids: zod.array(zod.string()).optional()
|
|
3161
4425
|
}).optional()
|
|
3162
|
-
}).describe("
|
|
4426
|
+
}).describe("Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n")
|
|
3163
4427
|
})).describe("Wide event with event_type=flowdef.updated.\n"),
|
|
3164
4428
|
zod.object({
|
|
3165
4429
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
@@ -3351,6 +4615,63 @@ const ListEventsResponse = zod.object({
|
|
|
3351
4615
|
user_agent: zod.string().optional().describe("Observed User-Agent header."),
|
|
3352
4616
|
origin: zod.string().optional().describe("Origin header when present.")
|
|
3353
4617
|
}).optional().describe("Observed HTTP requestor context on Path A request.api only.") }).optional().describe("Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n")
|
|
4618
|
+
}).describe("Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n").and(zod.object({
|
|
4619
|
+
event_type: zod.literal("release.created"),
|
|
4620
|
+
payload: zod.object({
|
|
4621
|
+
content_hash: zod.string().optional(),
|
|
4622
|
+
message: zod.string().optional(),
|
|
4623
|
+
git_sha: zod.string().optional(),
|
|
4624
|
+
git_dirty: zod.boolean().optional(),
|
|
4625
|
+
pointers: zod.array(zod.object({
|
|
4626
|
+
kind: zod.string().optional(),
|
|
4627
|
+
handle: zod.string().optional(),
|
|
4628
|
+
revision_id: zod.string().optional()
|
|
4629
|
+
})).optional()
|
|
4630
|
+
}).describe("Allowlisted fields for `release.created`. The release id is already the\nevent's `entity_id`; the pinned set is repeated here so the audit stream\nanswers what a release contained without reading the release itself.\n")
|
|
4631
|
+
})).describe("Wide event with event_type=release.created.\n"),
|
|
4632
|
+
zod.object({
|
|
4633
|
+
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
4634
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwozeroOneProjectIdRegExp),
|
|
4635
|
+
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
4636
|
+
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
4637
|
+
category: zod.enum([
|
|
4638
|
+
"request",
|
|
4639
|
+
"auth",
|
|
4640
|
+
"session",
|
|
4641
|
+
"admin",
|
|
4642
|
+
"entity",
|
|
4643
|
+
"signal"
|
|
4644
|
+
]).describe("Wide-event category."),
|
|
4645
|
+
occurred_at: zod.iso.datetime({ offset: true }).describe("When the action happened (server/storage clock, dialect-owned)."),
|
|
4646
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the row was inserted (server/storage clock, dialect-owned)."),
|
|
4647
|
+
actor_id: zod.union([zod.string(), zod.null()]).optional().describe("Who triggered the event."),
|
|
4648
|
+
actor_type: zod.union([zod.enum([
|
|
4649
|
+
"human",
|
|
4650
|
+
"service",
|
|
4651
|
+
"system",
|
|
4652
|
+
"agent"
|
|
4653
|
+
]), zod.null()]).optional().describe("Actor kind."),
|
|
4654
|
+
entity_type: zod.union([zod.string(), zod.null()]).optional().describe("Resource type affected."),
|
|
4655
|
+
entity_id: zod.union([zod.string(), zod.null()]).optional().describe("Resource id affected."),
|
|
4656
|
+
client_id: zod.string().describe("Application or agent that produced the event."),
|
|
4657
|
+
token_id: zod.string().optional().describe("Token id present at emit time, when any."),
|
|
4658
|
+
delegation_type: zod.enum([
|
|
4659
|
+
"direct",
|
|
4660
|
+
"delegated",
|
|
4661
|
+
"pat_shared",
|
|
4662
|
+
"exchanged"
|
|
4663
|
+
]).optional().describe("Delegation kind (omit when unset)."),
|
|
4664
|
+
delegation_id: zod.string().optional(),
|
|
4665
|
+
grantor: zod.string().optional(),
|
|
4666
|
+
fingerprint: zod.string().optional().describe("Device fingerprint correlation id."),
|
|
4667
|
+
request_id: zod.union([zod.string(), zod.null()]).optional().describe("HTTP request correlation id."),
|
|
4668
|
+
session_id: zod.union([zod.string(), zod.null()]).optional().describe("Session correlation id."),
|
|
4669
|
+
flow_id: zod.union([zod.string(), zod.null()]).optional().describe("Login flow correlation id."),
|
|
4670
|
+
metadata: zod.object({ client: zod.object({
|
|
4671
|
+
ip: zod.string().optional().describe("Client IP from the first X-Forwarded-For hop or RemoteAddr."),
|
|
4672
|
+
user_agent: zod.string().optional().describe("Observed User-Agent header."),
|
|
4673
|
+
origin: zod.string().optional().describe("Origin header when present.")
|
|
4674
|
+
}).optional().describe("Observed HTTP requestor context on Path A request.api only.") }).optional().describe("Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n")
|
|
3354
4675
|
}).describe("Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n").and(zod.object({
|
|
3355
4676
|
event_type: zod.literal("request.api"),
|
|
3356
4677
|
payload: zod.object({
|
|
@@ -3371,7 +4692,7 @@ const ListEventsResponse = zod.object({
|
|
|
3371
4692
|
})).describe("Wide event with event_type=request.api.\n"),
|
|
3372
4693
|
zod.object({
|
|
3373
4694
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3374
|
-
project_id: zod.string().regex(
|
|
4695
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwooneOneProjectIdRegExp),
|
|
3375
4696
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3376
4697
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3377
4698
|
category: zod.enum([
|
|
@@ -3421,7 +4742,7 @@ const ListEventsResponse = zod.object({
|
|
|
3421
4742
|
})).describe("Wide event with event_type=schema.created.\n"),
|
|
3422
4743
|
zod.object({
|
|
3423
4744
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3424
|
-
project_id: zod.string().regex(
|
|
4745
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwotwoOneProjectIdRegExp),
|
|
3425
4746
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3426
4747
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3427
4748
|
category: zod.enum([
|
|
@@ -3468,7 +4789,7 @@ const ListEventsResponse = zod.object({
|
|
|
3468
4789
|
})).describe("Wide event with event_type=session.deleted.\n"),
|
|
3469
4790
|
zod.object({
|
|
3470
4791
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3471
|
-
project_id: zod.string().regex(
|
|
4792
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwothreeOneProjectIdRegExp),
|
|
3472
4793
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3473
4794
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3474
4795
|
category: zod.enum([
|
|
@@ -3515,7 +4836,7 @@ const ListEventsResponse = zod.object({
|
|
|
3515
4836
|
})).describe("Wide event with event_type=session.established.\n"),
|
|
3516
4837
|
zod.object({
|
|
3517
4838
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3518
|
-
project_id: zod.string().regex(
|
|
4839
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwofourOneProjectIdRegExp),
|
|
3519
4840
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3520
4841
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3521
4842
|
category: zod.enum([
|
|
@@ -3562,7 +4883,7 @@ const ListEventsResponse = zod.object({
|
|
|
3562
4883
|
})).describe("Wide event with event_type=team.created.\n"),
|
|
3563
4884
|
zod.object({
|
|
3564
4885
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3565
|
-
project_id: zod.string().regex(
|
|
4886
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwofiveOneProjectIdRegExp),
|
|
3566
4887
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3567
4888
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3568
4889
|
category: zod.enum([
|
|
@@ -3609,7 +4930,7 @@ const ListEventsResponse = zod.object({
|
|
|
3609
4930
|
})).describe("Wide event with event_type=team.deactivated.\n"),
|
|
3610
4931
|
zod.object({
|
|
3611
4932
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3612
|
-
project_id: zod.string().regex(
|
|
4933
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwosixOneProjectIdRegExp),
|
|
3613
4934
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3614
4935
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3615
4936
|
category: zod.enum([
|
|
@@ -3656,7 +4977,7 @@ const ListEventsResponse = zod.object({
|
|
|
3656
4977
|
})).describe("Wide event with event_type=team.updated.\n"),
|
|
3657
4978
|
zod.object({
|
|
3658
4979
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3659
|
-
project_id: zod.string().regex(
|
|
4980
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwosevenOneProjectIdRegExp),
|
|
3660
4981
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3661
4982
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3662
4983
|
category: zod.enum([
|
|
@@ -3703,7 +5024,7 @@ const ListEventsResponse = zod.object({
|
|
|
3703
5024
|
})).describe("Wide event with event_type=user.create.failed.\n"),
|
|
3704
5025
|
zod.object({
|
|
3705
5026
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3706
|
-
project_id: zod.string().regex(
|
|
5027
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwoeightOneProjectIdRegExp),
|
|
3707
5028
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3708
5029
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3709
5030
|
category: zod.enum([
|
|
@@ -3754,7 +5075,7 @@ const ListEventsResponse = zod.object({
|
|
|
3754
5075
|
})).describe("Wide event with event_type=user.created.\n"),
|
|
3755
5076
|
zod.object({
|
|
3756
5077
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
3757
|
-
project_id: zod.string().regex(
|
|
5078
|
+
project_id: zod.string().regex(listEventsResponseDataItemTwonineOneProjectIdRegExp),
|
|
3758
5079
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
3759
5080
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
3760
5081
|
category: zod.enum([
|
|
@@ -3833,10 +5154,10 @@ const getEventResponseOnesixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a
|
|
|
3833
5154
|
const getEventResponseOnesevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3834
5155
|
const getEventResponseOneeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3835
5156
|
const getEventResponseOnenineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3836
|
-
const getEventResponseOnenineTwoPayloadStatusMin = 100;
|
|
3837
|
-
const getEventResponseOnenineTwoPayloadStatusMax = 599;
|
|
3838
|
-
const getEventResponseOnenineTwoPayloadDurationMsMin = 0;
|
|
3839
5157
|
const getEventResponseTwozeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
5158
|
+
const getEventResponseTwozeroTwoPayloadStatusMin = 100;
|
|
5159
|
+
const getEventResponseTwozeroTwoPayloadStatusMax = 599;
|
|
5160
|
+
const getEventResponseTwozeroTwoPayloadDurationMsMin = 0;
|
|
3840
5161
|
const getEventResponseTwooneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3841
5162
|
const getEventResponseTwotwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3842
5163
|
const getEventResponseTwothreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -3845,6 +5166,7 @@ const getEventResponseTwofiveOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[
|
|
|
3845
5166
|
const getEventResponseTwosixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3846
5167
|
const getEventResponseTwosevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3847
5168
|
const getEventResponseTwoeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
5169
|
+
const getEventResponseTwonineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
3848
5170
|
const GetEventResponse = zod.union([
|
|
3849
5171
|
zod.object({
|
|
3850
5172
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
@@ -4491,7 +5813,7 @@ const GetEventResponse = zod.union([
|
|
|
4491
5813
|
app_ids: zod.array(zod.string()).optional(),
|
|
4492
5814
|
team_ids: zod.array(zod.string()).optional()
|
|
4493
5815
|
}).optional()
|
|
4494
|
-
}).describe("
|
|
5816
|
+
}).describe("Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n")
|
|
4495
5817
|
})).describe("Wide event with event_type=flowdef.created.\n"),
|
|
4496
5818
|
zod.object({
|
|
4497
5819
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
@@ -4594,7 +5916,7 @@ const GetEventResponse = zod.union([
|
|
|
4594
5916
|
app_ids: zod.array(zod.string()).optional(),
|
|
4595
5917
|
team_ids: zod.array(zod.string()).optional()
|
|
4596
5918
|
}).optional()
|
|
4597
|
-
}).describe("
|
|
5919
|
+
}).describe("Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n")
|
|
4598
5920
|
})).describe("Wide event with event_type=flowdef.updated.\n"),
|
|
4599
5921
|
zod.object({
|
|
4600
5922
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
@@ -4786,6 +6108,63 @@ const GetEventResponse = zod.union([
|
|
|
4786
6108
|
user_agent: zod.string().optional().describe("Observed User-Agent header."),
|
|
4787
6109
|
origin: zod.string().optional().describe("Origin header when present.")
|
|
4788
6110
|
}).optional().describe("Observed HTTP requestor context on Path A request.api only.") }).optional().describe("Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n")
|
|
6111
|
+
}).describe("Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n").and(zod.object({
|
|
6112
|
+
event_type: zod.literal("release.created"),
|
|
6113
|
+
payload: zod.object({
|
|
6114
|
+
content_hash: zod.string().optional(),
|
|
6115
|
+
message: zod.string().optional(),
|
|
6116
|
+
git_sha: zod.string().optional(),
|
|
6117
|
+
git_dirty: zod.boolean().optional(),
|
|
6118
|
+
pointers: zod.array(zod.object({
|
|
6119
|
+
kind: zod.string().optional(),
|
|
6120
|
+
handle: zod.string().optional(),
|
|
6121
|
+
revision_id: zod.string().optional()
|
|
6122
|
+
})).optional()
|
|
6123
|
+
}).describe("Allowlisted fields for `release.created`. The release id is already the\nevent's `entity_id`; the pinned set is repeated here so the audit stream\nanswers what a release contained without reading the release itself.\n")
|
|
6124
|
+
})).describe("Wide event with event_type=release.created.\n"),
|
|
6125
|
+
zod.object({
|
|
6126
|
+
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
6127
|
+
project_id: zod.string().regex(getEventResponseTwozeroOneProjectIdRegExp),
|
|
6128
|
+
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
6129
|
+
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
6130
|
+
category: zod.enum([
|
|
6131
|
+
"request",
|
|
6132
|
+
"auth",
|
|
6133
|
+
"session",
|
|
6134
|
+
"admin",
|
|
6135
|
+
"entity",
|
|
6136
|
+
"signal"
|
|
6137
|
+
]).describe("Wide-event category."),
|
|
6138
|
+
occurred_at: zod.iso.datetime({ offset: true }).describe("When the action happened (server/storage clock, dialect-owned)."),
|
|
6139
|
+
created_at: zod.iso.datetime({ offset: true }).describe("When the row was inserted (server/storage clock, dialect-owned)."),
|
|
6140
|
+
actor_id: zod.union([zod.string(), zod.null()]).optional().describe("Who triggered the event."),
|
|
6141
|
+
actor_type: zod.union([zod.enum([
|
|
6142
|
+
"human",
|
|
6143
|
+
"service",
|
|
6144
|
+
"system",
|
|
6145
|
+
"agent"
|
|
6146
|
+
]), zod.null()]).optional().describe("Actor kind."),
|
|
6147
|
+
entity_type: zod.union([zod.string(), zod.null()]).optional().describe("Resource type affected."),
|
|
6148
|
+
entity_id: zod.union([zod.string(), zod.null()]).optional().describe("Resource id affected."),
|
|
6149
|
+
client_id: zod.string().describe("Application or agent that produced the event."),
|
|
6150
|
+
token_id: zod.string().optional().describe("Token id present at emit time, when any."),
|
|
6151
|
+
delegation_type: zod.enum([
|
|
6152
|
+
"direct",
|
|
6153
|
+
"delegated",
|
|
6154
|
+
"pat_shared",
|
|
6155
|
+
"exchanged"
|
|
6156
|
+
]).optional().describe("Delegation kind (omit when unset)."),
|
|
6157
|
+
delegation_id: zod.string().optional(),
|
|
6158
|
+
grantor: zod.string().optional(),
|
|
6159
|
+
fingerprint: zod.string().optional().describe("Device fingerprint correlation id."),
|
|
6160
|
+
request_id: zod.union([zod.string(), zod.null()]).optional().describe("HTTP request correlation id."),
|
|
6161
|
+
session_id: zod.union([zod.string(), zod.null()]).optional().describe("Session correlation id."),
|
|
6162
|
+
flow_id: zod.union([zod.string(), zod.null()]).optional().describe("Login flow correlation id."),
|
|
6163
|
+
metadata: zod.object({ client: zod.object({
|
|
6164
|
+
ip: zod.string().optional().describe("Client IP from the first X-Forwarded-For hop or RemoteAddr."),
|
|
6165
|
+
user_agent: zod.string().optional().describe("Observed User-Agent header."),
|
|
6166
|
+
origin: zod.string().optional().describe("Origin header when present.")
|
|
6167
|
+
}).optional().describe("Observed HTTP requestor context on Path A request.api only.") }).optional().describe("Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n")
|
|
4789
6168
|
}).describe("Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n").and(zod.object({
|
|
4790
6169
|
event_type: zod.literal("request.api"),
|
|
4791
6170
|
payload: zod.object({
|
|
@@ -4806,7 +6185,7 @@ const GetEventResponse = zod.union([
|
|
|
4806
6185
|
})).describe("Wide event with event_type=request.api.\n"),
|
|
4807
6186
|
zod.object({
|
|
4808
6187
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
4809
|
-
project_id: zod.string().regex(
|
|
6188
|
+
project_id: zod.string().regex(getEventResponseTwooneOneProjectIdRegExp),
|
|
4810
6189
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
4811
6190
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
4812
6191
|
category: zod.enum([
|
|
@@ -4856,7 +6235,7 @@ const GetEventResponse = zod.union([
|
|
|
4856
6235
|
})).describe("Wide event with event_type=schema.created.\n"),
|
|
4857
6236
|
zod.object({
|
|
4858
6237
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
4859
|
-
project_id: zod.string().regex(
|
|
6238
|
+
project_id: zod.string().regex(getEventResponseTwotwoOneProjectIdRegExp),
|
|
4860
6239
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
4861
6240
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
4862
6241
|
category: zod.enum([
|
|
@@ -4903,7 +6282,7 @@ const GetEventResponse = zod.union([
|
|
|
4903
6282
|
})).describe("Wide event with event_type=session.deleted.\n"),
|
|
4904
6283
|
zod.object({
|
|
4905
6284
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
4906
|
-
project_id: zod.string().regex(
|
|
6285
|
+
project_id: zod.string().regex(getEventResponseTwothreeOneProjectIdRegExp),
|
|
4907
6286
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
4908
6287
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
4909
6288
|
category: zod.enum([
|
|
@@ -4950,7 +6329,7 @@ const GetEventResponse = zod.union([
|
|
|
4950
6329
|
})).describe("Wide event with event_type=session.established.\n"),
|
|
4951
6330
|
zod.object({
|
|
4952
6331
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
4953
|
-
project_id: zod.string().regex(
|
|
6332
|
+
project_id: zod.string().regex(getEventResponseTwofourOneProjectIdRegExp),
|
|
4954
6333
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
4955
6334
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
4956
6335
|
category: zod.enum([
|
|
@@ -4997,7 +6376,7 @@ const GetEventResponse = zod.union([
|
|
|
4997
6376
|
})).describe("Wide event with event_type=team.created.\n"),
|
|
4998
6377
|
zod.object({
|
|
4999
6378
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
5000
|
-
project_id: zod.string().regex(
|
|
6379
|
+
project_id: zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp),
|
|
5001
6380
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
5002
6381
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
5003
6382
|
category: zod.enum([
|
|
@@ -5044,7 +6423,7 @@ const GetEventResponse = zod.union([
|
|
|
5044
6423
|
})).describe("Wide event with event_type=team.deactivated.\n"),
|
|
5045
6424
|
zod.object({
|
|
5046
6425
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
5047
|
-
project_id: zod.string().regex(
|
|
6426
|
+
project_id: zod.string().regex(getEventResponseTwosixOneProjectIdRegExp),
|
|
5048
6427
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
5049
6428
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
5050
6429
|
category: zod.enum([
|
|
@@ -5091,7 +6470,7 @@ const GetEventResponse = zod.union([
|
|
|
5091
6470
|
})).describe("Wide event with event_type=team.updated.\n"),
|
|
5092
6471
|
zod.object({
|
|
5093
6472
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
5094
|
-
project_id: zod.string().regex(
|
|
6473
|
+
project_id: zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp),
|
|
5095
6474
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
5096
6475
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
5097
6476
|
category: zod.enum([
|
|
@@ -5138,7 +6517,7 @@ const GetEventResponse = zod.union([
|
|
|
5138
6517
|
})).describe("Wide event with event_type=user.create.failed.\n"),
|
|
5139
6518
|
zod.object({
|
|
5140
6519
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
5141
|
-
project_id: zod.string().regex(
|
|
6520
|
+
project_id: zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp),
|
|
5142
6521
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
5143
6522
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
5144
6523
|
category: zod.enum([
|
|
@@ -5189,7 +6568,7 @@ const GetEventResponse = zod.union([
|
|
|
5189
6568
|
})).describe("Wide event with event_type=user.created.\n"),
|
|
5190
6569
|
zod.object({
|
|
5191
6570
|
id: zod.string().describe("Managed event id (`evt_<opaque>`)."),
|
|
5192
|
-
project_id: zod.string().regex(
|
|
6571
|
+
project_id: zod.string().regex(getEventResponseTwonineOneProjectIdRegExp),
|
|
5193
6572
|
team_id: zod.union([zod.string(), zod.null()]).optional().describe("Emit-time team scope, when the actor operated under a team."),
|
|
5194
6573
|
event_type: zod.string().describe("Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n"),
|
|
5195
6574
|
category: zod.enum([
|
|
@@ -5235,7 +6614,132 @@ const GetEventResponse = zod.union([
|
|
|
5235
6614
|
payload: zod.object({}).describe("Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n")
|
|
5236
6615
|
})).describe("Wide event with event_type=user.deleted.\n")
|
|
5237
6616
|
]).describe("Discriminated wide-event union (ADR 048 / ADR 049). Clients select the\nmember via event_type; each member carries a typed payload.\n");
|
|
6617
|
+
/**
|
|
6618
|
+
* Returns the variables entered at the owner this request addresses, keyed by
|
|
6619
|
+
name — one environment of the project with `environment_name`, the project
|
|
6620
|
+
level itself without it.
|
|
6621
|
+
|
|
6622
|
+
Owners are separate, not a ladder: an environment does not inherit the
|
|
6623
|
+
project's variables and the project does not see its environments'. Reading
|
|
6624
|
+
everything a project holds therefore means reading each owner in turn.
|
|
6625
|
+
|
|
6626
|
+
Secret values are not returned. A secret appears as `{"secret": true}`,
|
|
6627
|
+
which says a value is held without disclosing it.
|
|
6628
|
+
|
|
6629
|
+
* @summary Get variables
|
|
6630
|
+
*/
|
|
6631
|
+
const getVariablesQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
6632
|
+
const getVariablesQueryEnvironmentNameMax = 63;
|
|
6633
|
+
const getVariablesQueryEnvironmentNameRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9]([a-z0-9-]*[a-z0-9])?$");
|
|
6634
|
+
const GetVariablesQueryParams = zod.strictObject({
|
|
6635
|
+
project_id: zod.string().regex(getVariablesQueryProjectIdRegExp).describe("The unique identifier of the project"),
|
|
6636
|
+
environment_name: zod.string().max(63).regex(getVariablesQueryEnvironmentNameRegExp).optional().describe("Selects one environment of the project as the owner this request addresses.\n\nOmit it to address the project level instead. The two are separate owners,\nnot a ladder: a variable entered on the project is not visible from an\nenvironment, and an environment's variables are not visible from the project.\nA value that has to hold in several environments is entered in each of them.\n")
|
|
6637
|
+
});
|
|
6638
|
+
const getVariablesResponseOneOneMax = 16384;
|
|
6639
|
+
const GetVariablesResponse = zod.record(zod.string(), zod.union([zod.union([
|
|
6640
|
+
zod.string().max(getVariablesResponseOneOneMax),
|
|
6641
|
+
zod.number(),
|
|
6642
|
+
zod.boolean()
|
|
6643
|
+
]).describe("A variable's value. JSON scalars only — a string, a number, or a boolean\n(ADR 062 §1).\n\nThe value travels through JSON in both directions, so the set of types is\nJSON's. A number always reads back as a JSON number however it was written;\na type JSON has no scalar for (a timestamp, say) is rejected rather than\nquietly coming back as the string it serialized to. Strings are capped at\n16 KiB: a variable is a configuration value, not a payload (§8).\n"), zod.object({ secret: zod.boolean().describe("Always `true`. A non-secret variable is returned as a bare scalar instead.") }).describe("A secret, on the way out. It says that a value is held under this name and\nthat the value is secret; it never carries the value itself.\n\nA secret is stored encrypted and reads back as ciphertext, so there is\nnothing here that could be returned honestly: the plaintext would defeat the\nencryption, and the ciphertext would be a value no caller can use. Whether\nsecrets ever become readable — and if so under which permission — is left\nopen by ADR 062 §9; this shape is what keeps that question open rather than\nanswering it by accident.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved (§7).\n")]).describe("One resolved variable. A non-secret variable is its value; a secret is an\nobject saying so and withholding the value.\n\nThe two forms mirror the update body, so a value read here can be written\nback unchanged — with the one asymmetry that a secret read back has no value\nto write.\n")).describe("The variables entered at the owner the request addresses, keyed by name.\n\nOnly that owner's own variables: the project level does not see into its\nenvironments, and an environment does not inherit the project's. One name at\nthat owner is one value, so nothing here had to be chosen between.\n\nAn empty object is an ordinary answer, not an error — it means nothing has\nbeen entered at this owner.\n");
|
|
6644
|
+
/**
|
|
6645
|
+
* Enters, replaces and removes variables at the owner this request
|
|
6646
|
+
addresses.
|
|
6647
|
+
|
|
6648
|
+
Every name in the body is applied at exactly that owner — the project, or
|
|
6649
|
+
the environment named by `environment_name` — and reaches no other. Names
|
|
6650
|
+
not in the body are untouched.
|
|
6651
|
+
|
|
6652
|
+
A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
|
|
6653
|
+
stores the value encrypted under the project's active `secret` key, after
|
|
6654
|
+
which it can be referenced but not read back. `null` removes the name from
|
|
6655
|
+
this owner (RFC 7386), which is how several variables are removed in one
|
|
6656
|
+
request; removing a name this owner does not hold is a no-op rather than an
|
|
6657
|
+
error.
|
|
6658
|
+
|
|
6659
|
+
The body is applied whole or not at all, so a rejected request leaves the
|
|
6660
|
+
owner exactly as it was. Writing the same name and owner twice replaces the
|
|
6661
|
+
value rather than duplicating it, which makes a retry safe.
|
|
6662
|
+
|
|
6663
|
+
* @summary Update variables
|
|
6664
|
+
*/
|
|
6665
|
+
const updateVariablesQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
6666
|
+
const updateVariablesQueryEnvironmentNameMax = 63;
|
|
6667
|
+
const updateVariablesQueryEnvironmentNameRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9]([a-z0-9-]*[a-z0-9])?$");
|
|
6668
|
+
const UpdateVariablesQueryParams = zod.strictObject({
|
|
6669
|
+
project_id: zod.string().regex(updateVariablesQueryProjectIdRegExp).describe("The unique identifier of the project"),
|
|
6670
|
+
environment_name: zod.string().max(63).regex(updateVariablesQueryEnvironmentNameRegExp).optional().describe("Selects one environment of the project as the owner this request addresses.\n\nOmit it to address the project level instead. The two are separate owners,\nnot a ladder: a variable entered on the project is not visible from an\nenvironment, and an environment's variables are not visible from the project.\nA value that has to hold in several environments is entered in each of them.\n")
|
|
6671
|
+
});
|
|
6672
|
+
const updateVariablesBodyTwoOneMax = 16384;
|
|
6673
|
+
const updateVariablesBodyThreeValueOneMax = 16384;
|
|
6674
|
+
const UpdateVariablesBody = zod.record(zod.string(), zod.union([
|
|
6675
|
+
zod.null(),
|
|
6676
|
+
zod.union([
|
|
6677
|
+
zod.string().max(updateVariablesBodyTwoOneMax),
|
|
6678
|
+
zod.number(),
|
|
6679
|
+
zod.boolean()
|
|
6680
|
+
]).describe("A variable's value. JSON scalars only — a string, a number, or a boolean\n(ADR 062 §1).\n\nThe value travels through JSON in both directions, so the set of types is\nJSON's. A number always reads back as a JSON number however it was written;\na type JSON has no scalar for (a timestamp, say) is rejected rather than\nquietly coming back as the string it serialized to. Strings are capped at\n16 KiB: a variable is a configuration value, not a payload (§8).\n"),
|
|
6681
|
+
zod.object({
|
|
6682
|
+
value: zod.union([
|
|
6683
|
+
zod.string().max(updateVariablesBodyThreeValueOneMax),
|
|
6684
|
+
zod.number(),
|
|
6685
|
+
zod.boolean()
|
|
6686
|
+
]).describe("A variable's value. JSON scalars only — a string, a number, or a boolean\n(ADR 062 §1).\n\nThe value travels through JSON in both directions, so the set of types is\nJSON's. A number always reads back as a JSON number however it was written;\na type JSON has no scalar for (a timestamp, say) is rejected rather than\nquietly coming back as the string it serialized to. Strings are capped at\n16 KiB: a variable is a configuration value, not a payload (§8).\n"),
|
|
6687
|
+
secret: zod.boolean().describe("Whether the value is stored encrypted. Changing it on an existing name\nre-writes the value under the new flag — the documents referencing that\nname do not change, because secrecy is a property of the value, not of\nthe reference to it (ADR 062 §2).\n")
|
|
6688
|
+
}).describe("A variable written with its secrecy stated explicitly.\n\nUse this form to enter a secret. `{\"value\": \"s3cr3t\", \"secret\": true}` is\nstored encrypted with the project's active `secret` key (ADR 062 §7) and\nnever reads back; the bare-scalar form is the same write with\n`secret: false`.\n")
|
|
6689
|
+
]).describe("One entry of an update. A bare scalar enters a non-secret value, an object\nstates the flag explicitly, and `null` removes the name.\n\nThe shorthand exists because most variables are not secrets and spelling\n`{\"value\": …, \"secret\": false}` for each of them is noise. Making a value\nsecret is therefore always deliberate: it cannot happen by writing a plain\nscalar.\n\n`null` is the RFC 7386 merge-patch convention: the name is removed at the\nowner this request addresses, and at no other, which is what lets one request\nenter, replace and remove names together. Removing a name the owner does not\nhold is not an error, because a patch states what the owner holds afterwards\nand that name is already absent. `DELETE /variables/{variable_name}`\naddresses one name deliberately and still answers `var.not_found` there.\n\nA null is a removal wherever it appears, so a body built from client state in\nwhich an unset field serializes to `null` removes that variable instead of\nleaving it alone. A secret removed this way cannot be recovered, since its\nvalue reads back nowhere. Send only the names the request means to change.\n")).describe("The variables to enter, keyed by name. Each is either a bare scalar (a\nnon-secret value), an object stating the `secret` flag, or `null` to remove\nthe name.\n\nThis is a patch: a name present here is written at the owner the request\naddresses, replacing whatever that owner held under it, and a name absent\nhere is left alone. A name whose value is `null` is removed from that owner\n(RFC 7386), so one request can enter, replace and remove names together —\nwhich is also the way to remove several at once. `DELETE\n/variables/{variable_name}` remains the way to remove exactly one name and\nbe told whether it was there.\n\nRemoving a name the owner does not hold is not an error: a patch states what\nthe owner holds afterwards, and that name is already absent. That makes a\nretry safe, and it is the one place this body differs from `DELETE`, which\nanswers `var.not_found`.\n\nThe body is applied whole or not at all. Every value is validated, and every\nsecret encrypted, before anything is written, and the writes and removals\nshare one transaction.\n\nNames are written at exactly the owner the request addresses, and reach no\nfurther. Writing at the project level does not change what any environment\nresolves, and writing on one environment does not touch another.\n");
|
|
6690
|
+
const updateVariablesResponseOneOneMax = 16384;
|
|
6691
|
+
const UpdateVariablesResponse = zod.record(zod.string(), zod.union([zod.union([
|
|
6692
|
+
zod.string().max(updateVariablesResponseOneOneMax),
|
|
6693
|
+
zod.number(),
|
|
6694
|
+
zod.boolean()
|
|
6695
|
+
]).describe("A variable's value. JSON scalars only — a string, a number, or a boolean\n(ADR 062 §1).\n\nThe value travels through JSON in both directions, so the set of types is\nJSON's. A number always reads back as a JSON number however it was written;\na type JSON has no scalar for (a timestamp, say) is rejected rather than\nquietly coming back as the string it serialized to. Strings are capped at\n16 KiB: a variable is a configuration value, not a payload (§8).\n"), zod.object({ secret: zod.boolean().describe("Always `true`. A non-secret variable is returned as a bare scalar instead.") }).describe("A secret, on the way out. It says that a value is held under this name and\nthat the value is secret; it never carries the value itself.\n\nA secret is stored encrypted and reads back as ciphertext, so there is\nnothing here that could be returned honestly: the plaintext would defeat the\nencryption, and the ciphertext would be a value no caller can use. Whether\nsecrets ever become readable — and if so under which permission — is left\nopen by ADR 062 §9; this shape is what keeps that question open rather than\nanswering it by accident.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved (§7).\n")]).describe("One resolved variable. A non-secret variable is its value; a secret is an\nobject saying so and withholding the value.\n\nThe two forms mirror the update body, so a value read here can be written\nback unchanged — with the one asymmetry that a secret read back has no value\nto write.\n")).describe("The variables entered at the owner the request addresses, keyed by name.\n\nOnly that owner's own variables: the project level does not see into its\nenvironments, and an environment does not inherit the project's. One name at\nthat owner is one value, so nothing here had to be chosen between.\n\nAn empty object is an ordinary answer, not an error — it means nothing has\nbeen entered at this owner.\n");
|
|
6696
|
+
/**
|
|
6697
|
+
* Reads one variable by name from the owner this request addresses — one
|
|
6698
|
+
environment of the project with `environment_name`, the project level
|
|
6699
|
+
itself without it.
|
|
6700
|
+
|
|
6701
|
+
A name that owner has not entered answers `var.not_found`, even when
|
|
6702
|
+
another owner of the same project holds it: nothing is inherited. A secret
|
|
6703
|
+
is found but not disclosed: the response is `{"secret": true}`.
|
|
6704
|
+
|
|
6705
|
+
* @summary Get a variable
|
|
6706
|
+
*/
|
|
6707
|
+
const getVariablePathVariableNameMax = 255;
|
|
6708
|
+
const getVariablePathVariableNameRegExp = /* @__PURE__ */ new RegExp("^\\w+$");
|
|
6709
|
+
const GetVariableParams = zod.object({ variable_name: zod.string().min(1).max(255).regex(getVariablePathVariableNameRegExp).describe("The name of the variable.") });
|
|
6710
|
+
const getVariableQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
6711
|
+
const getVariableQueryEnvironmentNameMax = 63;
|
|
6712
|
+
const getVariableQueryEnvironmentNameRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9]([a-z0-9-]*[a-z0-9])?$");
|
|
6713
|
+
const GetVariableQueryParams = zod.strictObject({
|
|
6714
|
+
project_id: zod.string().regex(getVariableQueryProjectIdRegExp).describe("The unique identifier of the project"),
|
|
6715
|
+
environment_name: zod.string().max(63).regex(getVariableQueryEnvironmentNameRegExp).optional().describe("Selects one environment of the project as the owner this request addresses.\n\nOmit it to address the project level instead. The two are separate owners,\nnot a ladder: a variable entered on the project is not visible from an\nenvironment, and an environment's variables are not visible from the project.\nA value that has to hold in several environments is entered in each of them.\n")
|
|
6716
|
+
});
|
|
6717
|
+
const getVariableResponseOneOneMax = 16384;
|
|
6718
|
+
const GetVariableResponse = zod.union([zod.union([
|
|
6719
|
+
zod.string().max(getVariableResponseOneOneMax),
|
|
6720
|
+
zod.number(),
|
|
6721
|
+
zod.boolean()
|
|
6722
|
+
]).describe("A variable's value. JSON scalars only — a string, a number, or a boolean\n(ADR 062 §1).\n\nThe value travels through JSON in both directions, so the set of types is\nJSON's. A number always reads back as a JSON number however it was written;\na type JSON has no scalar for (a timestamp, say) is rejected rather than\nquietly coming back as the string it serialized to. Strings are capped at\n16 KiB: a variable is a configuration value, not a payload (§8).\n"), zod.object({ secret: zod.boolean().describe("Always `true`. A non-secret variable is returned as a bare scalar instead.") }).describe("A secret, on the way out. It says that a value is held under this name and\nthat the value is secret; it never carries the value itself.\n\nA secret is stored encrypted and reads back as ciphertext, so there is\nnothing here that could be returned honestly: the plaintext would defeat the\nencryption, and the ciphertext would be a value no caller can use. Whether\nsecrets ever become readable — and if so under which permission — is left\nopen by ADR 062 §9; this shape is what keeps that question open rather than\nanswering it by accident.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved (§7).\n")]).describe("One resolved variable. A non-secret variable is its value; a secret is an\nobject saying so and withholding the value.\n\nThe two forms mirror the update body, so a value read here can be written\nback unchanged — with the one asymmetry that a secret read back has no value\nto write.\n");
|
|
6723
|
+
/**
|
|
6724
|
+
* Removes the variable this owner entered under this name.
|
|
6725
|
+
|
|
6726
|
+
A variable is deletable only by the owner that entered it. Deleting a name
|
|
6727
|
+
another owner of the same project holds answers `var.not_found` and leaves
|
|
6728
|
+
that owner's value standing.
|
|
6729
|
+
|
|
6730
|
+
* @summary Delete a variable
|
|
6731
|
+
*/
|
|
6732
|
+
const deleteVariablePathVariableNameMax = 255;
|
|
6733
|
+
const deleteVariablePathVariableNameRegExp = /* @__PURE__ */ new RegExp("^\\w+$");
|
|
6734
|
+
const DeleteVariableParams = zod.object({ variable_name: zod.string().min(1).max(255).regex(deleteVariablePathVariableNameRegExp).describe("The name of the variable.") });
|
|
6735
|
+
const deleteVariableQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
6736
|
+
const deleteVariableQueryEnvironmentNameMax = 63;
|
|
6737
|
+
const deleteVariableQueryEnvironmentNameRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9]([a-z0-9-]*[a-z0-9])?$");
|
|
6738
|
+
const DeleteVariableQueryParams = zod.strictObject({
|
|
6739
|
+
project_id: zod.string().regex(deleteVariableQueryProjectIdRegExp).describe("The unique identifier of the project"),
|
|
6740
|
+
environment_name: zod.string().max(63).regex(deleteVariableQueryEnvironmentNameRegExp).optional().describe("Selects one environment of the project as the owner this request addresses.\n\nOmit it to address the project level instead. The two are separate owners,\nnot a ladder: a variable entered on the project is not visible from an\nenvironment, and an environment's variables are not visible from the project.\nA value that has to hold in several environments is entered in each of them.\n")
|
|
6741
|
+
});
|
|
5238
6742
|
//#endregion
|
|
5239
|
-
export { BeginUserPasskeyRegistrationBody, BeginUserPasskeyRegistrationParams, CompleteClaimBody, CompleteClaimParams, CompleteClaimResponse, CreateAuthAttemptBody, CreateBrandingBody, CreateBrandingQueryParams, CreateFlowBody, CreateFlowDefinitionBody, CreateGrantBody, CreateGrantQueryParams, CreateHandoffHeader, CreateHandoffParams, CreateHandoffResponse, CreateProjectBody, CreateReleaseBody, CreateReleaseQueryParams, CreateReleaseResponse, CreateSchemaBody, CreateSchemaQueryParams, CreateSessionBody, CreateTeamBody, CreateTeamQueryParams, CreateUserBody, CreateUserQueryParams, DeleteFlowDefinitionParams, DeleteGrantParams, DeleteGrantQueryParams, DeleteTeamParams, DeleteUserByIDParams, ExchangeHandoffBody, ExchangeHandoffHeader, ExchangeHandoffQueryParams, ExchangeHandoffResponse, FinishUserPasskeyRegistrationBody, FinishUserPasskeyRegistrationParams, GetAuthAttemptParams, GetAuthAttemptResponse, GetBrandingByIdParams, GetBrandingByIdResponse, GetClaimStatusParams, GetClaimStatusQueryParams, GetClaimStatusResponse, GetEnvironmentByNameParams, GetEnvironmentByNameQueryParams, GetEnvironmentByNameResponse, GetEventParams, GetEventQueryParams, GetEventResponse, GetFlowDefinitionParams, GetFlowDefinitionResponse, GetFlowStepParams, GetFlowStepResponse, GetGrantParams, GetGrantQueryParams, GetGrantResponse, GetMySessionResponse, GetMyUserResponse, GetProjectParams, GetProjectResponse, GetReleaseByIdParams, GetReleaseByIdQueryParams, GetReleaseByIdResponse, GetSchemaByIdParams, GetSchemaByIdQueryParams, GetSchemaByIdResponse, GetSessionParams, GetSessionResponse, GetTeamParams, GetTeamResponse, GetUserByIDParams, GetUserByIDQueryParams, GetUserByIDResponse, InitClaimParams, IssueChallengeBody, IssueChallengeParams, ListBrandingQueryParams, ListBrandingResponse, ListBrandingResponseItem, ListEnvironmentsQueryParams, ListEnvironmentsResponse, ListEventsQueryParams, ListEventsResponse, ListFlowDefinitionsQueryParams, ListFlowDefinitionsResponse, ListReleasesQueryParams, ListReleasesResponse, ListSchemasQueryParams, ListSchemasResponse, ListUserPasskeysParams, ListUserPasskeysQueryParams, ListUserPasskeysResponse, ListUserTeamsParams, ListUserTeamsQueryParams, ListUserTeamsResponse, PatchProjectBody, PatchProjectParams, PatchProjectResponse, QueryProjectsBody, QueryProjectsResponse, QuerySessionsBody, QuerySessionsQueryParams, QuerySessionsResponse, QueryTeamsBody, QueryTeamsQueryParams, QueryTeamsResponse, QueryUsersBody, QueryUsersResponse, RevokeSessionParams, SetUserPasswordBody, SetUserPasswordParams, SubmitFlowStepBody, SubmitFlowStepHeader, SubmitFlowStepParams, SubmitFlowStepResponse, UpdateFlowDefinitionBody, UpdateFlowDefinitionParams, UpdateFlowDefinitionResponse, UpdateTeamBody, UpdateTeamParams, UpdateTeamResponse, VerifyChallengeProofBody, VerifyChallengeProofHeader, VerifyChallengeProofParams, VerifyChallengeProofResponse, beginUserPasskeyRegistrationPathUserIdRegExp, completeClaimBodyChallengeIdRegExp, completeClaimPathProjectIdRegExp, completeClaimResponseProjectIdRegExp, completeClaimResponseTeamIdRegExp, createAuthAttemptBodyProjectIdRegExp, createAuthAttemptBodySessionIdOneRegExp, createBrandingBodyLayoutDefault, createBrandingBodyLiquidTemplateMax, createBrandingQueryProjectIdRegExp, createFlowBodyDryRunDefault, createFlowBodyFlowDefinitionNameRegExp, createFlowBodyProjectIdRegExp, createFlowBodySchemaVersionRegExp, createFlowDefinitionBodyFlowDefinitionNameRegExp, createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, createFlowDefinitionBodyProjectIdRegExp, createGrantQueryProjectIdRegExp, createHandoffPathAttemptIdRegExp, createProjectBodySeedDefaultsDefault, createReleaseBodyGitDirtyDefault, createReleaseBodyGitShaMax, createReleaseBodyMessageMax, createReleaseBodyPointersItemRevisionIdMax, createReleaseQueryProjectIdRegExp, createReleaseResponseIdRegExp, createReleaseResponseMetadataGitDirtyDefault, createReleaseResponseMetadataGitShaOneMax, createReleaseResponseMetadataMessageOneMax, createReleaseResponsePointersItemHandleMax, createReleaseResponsePointersItemRevisionIdMax, createReleaseResponseProjectIdRegExp, createSchemaBodyOneObjectTypeMax, createSchemaBodyOnePropertiesXAuditDefault, createSchemaQueryProjectIdRegExp, createSchemaQueryTeamIdRegExp, createSessionBodyProjectIdRegExp, createTeamBodyNameMax, createTeamQueryProjectIdRegExp, createUserQueryProjectIdRegExp, createUserQueryTeamIdRegExp, deleteGrantQueryProjectIdRegExp, deleteTeamPathTeamIdRegExp, deleteUserByIDPathUserIdRegExp, exchangeHandoffQueryProjectIdRegExp, exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp, exchangeHandoffResponseSessionProjectIdRegExp, exchangeHandoffResponseSessionSessionIdRegExp, exchangeHandoffResponseSessionUserIdOneRegExp, exchangeHandoffResponseSessionUserUserIdRegExp, finishUserPasskeyRegistrationPathUserIdRegExp, getAuthAttemptPathAttemptIdRegExp, getAuthAttemptResponseAttemptIdRegExp, getAuthAttemptResponseChallengesItemChallengeIdRegExp, getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp, getAuthAttemptResponseProjectIdRegExp, getAuthAttemptResponseSessionIdOneRegExp, getAuthAttemptResponseUserIdOneRegExp, getBrandingByIdResponseBrandingLayoutDefault, getBrandingByIdResponseBrandingLiquidTemplateMax, getClaimStatusPathProjectIdRegExp, getClaimStatusQueryChallengeIdRegExp, getClaimStatusResponseTwoTeamIdRegExp, getEnvironmentByNamePathNameMax, getEnvironmentByNamePathNameRegExp, getEnvironmentByNameQueryProjectIdRegExp, getEnvironmentByNameResponseNameMax, getEnvironmentByNameResponseNameRegExp, getEnvironmentByNameResponseProjectIdRegExp, getEventQueryProjectIdRegExp, getEventResponseEightOneProjectIdRegExp, getEventResponseFiveOneProjectIdRegExp, getEventResponseFourOneProjectIdRegExp, getEventResponseNineOneProjectIdRegExp, getEventResponseOneOneProjectIdRegExp, getEventResponseOneeightOneProjectIdRegExp, getEventResponseOnefiveOneProjectIdRegExp, getEventResponseOnefourOneProjectIdRegExp, getEventResponseOnenineOneProjectIdRegExp, getEventResponseOnenineTwoPayloadDurationMsMin, getEventResponseOnenineTwoPayloadStatusMax, getEventResponseOnenineTwoPayloadStatusMin, getEventResponseOneoneOneProjectIdRegExp, getEventResponseOnesevenOneProjectIdRegExp, getEventResponseOnesixOneProjectIdRegExp, getEventResponseOnethreeOneProjectIdRegExp, getEventResponseOnetwoOneProjectIdRegExp, getEventResponseOnezeroOneProjectIdRegExp, getEventResponseSevenOneProjectIdRegExp, getEventResponseSixOneProjectIdRegExp, getEventResponseThreeOneProjectIdRegExp, getEventResponseTwoOneProjectIdRegExp, getEventResponseTwoeightOneProjectIdRegExp, getEventResponseTwofiveOneProjectIdRegExp, getEventResponseTwofourOneProjectIdRegExp, getEventResponseTwooneOneProjectIdRegExp, getEventResponseTwosevenOneProjectIdRegExp, getEventResponseTwosixOneProjectIdRegExp, getEventResponseTwothreeOneProjectIdRegExp, getEventResponseTwotwoOneProjectIdRegExp, getEventResponseTwozeroOneProjectIdRegExp, getFlowDefinitionResponseFlowDefinitionNameRegExp, getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, getFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax, getFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault, getFlowStepResponseBrandingLayoutDefault, getFlowStepResponseBrandingLiquidTemplateMax, getFlowStepResponseStepActionsDefault, getFlowStepResponseStepActionsItemPrimaryDefault, getFlowStepResponseStepFieldsDefault, getFlowStepResponseStepFieldsItemRequiredDefault, getFlowStepResponseStepFieldsItemValidationMaxLengthMin, getFlowStepResponseStepFieldsItemValidationMinLengthMin, getFlowStepResponseStepGatesDefault, getFlowStepResponseStepSsoProvidersDefault, getGrantQueryProjectIdRegExp, getMySessionResponseFactorsItemPayloadOneUserIdRegExp, getMySessionResponseProjectIdRegExp, getMySessionResponseSessionIdRegExp, getMySessionResponseUserIdOneRegExp, getMySessionResponseUserUserIdRegExp, getMyUserResponseIdRegExp, getProjectPathProjectIdRegExp, getReleaseByIdPathReleaseIdRegExp, getReleaseByIdQueryProjectIdRegExp, getReleaseByIdResponseIdRegExp, getReleaseByIdResponseMetadataGitDirtyDefault, getReleaseByIdResponseMetadataGitShaOneMax, getReleaseByIdResponseMetadataMessageOneMax, getReleaseByIdResponsePointersItemHandleMax, getReleaseByIdResponsePointersItemRevisionIdMax, getReleaseByIdResponseProjectIdRegExp, getSchemaByIdQueryTeamIdRegExp, getSchemaByIdResponseSchemaOneObjectTypeMax, getSchemaByIdResponseSchemaOnePropertiesXAuditDefault, getSessionPathSessionIdRegExp, getSessionResponseFactorsItemPayloadOneUserIdRegExp, getSessionResponseProjectIdRegExp, getSessionResponseSessionIdRegExp, getSessionResponseUserIdOneRegExp, getSessionResponseUserUserIdRegExp, getTeamPathTeamIdRegExp, getUserByIDPathUserIdRegExp, getUserByIDQueryTeamIdRegExp, getUserByIDResponseIdRegExp, initClaimPathProjectIdRegExp, issueChallengePathAttemptIdRegExp, listBrandingQueryProjectIdRegExp, listEnvironmentsQueryLimitDefault, listEnvironmentsQueryLimitMax, listEnvironmentsQueryProjectIdRegExp, listEnvironmentsResponseEnvironmentsItemNameMax, listEnvironmentsResponseEnvironmentsItemNameRegExp, listEnvironmentsResponseEnvironmentsItemProjectIdRegExp, listEventsQueryLimitDefault, listEventsQueryLimitMax, listEventsQueryOrderDefault, listEventsQueryProjectIdRegExp, listEventsResponseDataItemEightOneProjectIdRegExp, listEventsResponseDataItemFiveOneProjectIdRegExp, listEventsResponseDataItemFourOneProjectIdRegExp, listEventsResponseDataItemNineOneProjectIdRegExp, listEventsResponseDataItemOneOneProjectIdRegExp, listEventsResponseDataItemOneeightOneProjectIdRegExp, listEventsResponseDataItemOnefiveOneProjectIdRegExp, listEventsResponseDataItemOnefourOneProjectIdRegExp, listEventsResponseDataItemOnenineOneProjectIdRegExp, listEventsResponseDataItemOnenineTwoPayloadDurationMsMin, listEventsResponseDataItemOnenineTwoPayloadStatusMax, listEventsResponseDataItemOnenineTwoPayloadStatusMin, listEventsResponseDataItemOneoneOneProjectIdRegExp, listEventsResponseDataItemOnesevenOneProjectIdRegExp, listEventsResponseDataItemOnesixOneProjectIdRegExp, listEventsResponseDataItemOnethreeOneProjectIdRegExp, listEventsResponseDataItemOnetwoOneProjectIdRegExp, listEventsResponseDataItemOnezeroOneProjectIdRegExp, listEventsResponseDataItemSevenOneProjectIdRegExp, listEventsResponseDataItemSixOneProjectIdRegExp, listEventsResponseDataItemThreeOneProjectIdRegExp, listEventsResponseDataItemTwoOneProjectIdRegExp, listEventsResponseDataItemTwoeightOneProjectIdRegExp, listEventsResponseDataItemTwofiveOneProjectIdRegExp, listEventsResponseDataItemTwofourOneProjectIdRegExp, listEventsResponseDataItemTwooneOneProjectIdRegExp, listEventsResponseDataItemTwosevenOneProjectIdRegExp, listEventsResponseDataItemTwosixOneProjectIdRegExp, listEventsResponseDataItemTwothreeOneProjectIdRegExp, listEventsResponseDataItemTwotwoOneProjectIdRegExp, listEventsResponseDataItemTwozeroOneProjectIdRegExp, listFlowDefinitionsQueryLimitDefault, listFlowDefinitionsQueryLimitMax, listFlowDefinitionsQueryProjectIdRegExp, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionNameRegExp, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsItemPrimaryDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemFieldsDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemGatesDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersDefault, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneObjectTypeMax, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOnePropertiesXAuditDefault, listReleasesQueryLimitDefault, listReleasesQueryLimitMax, listReleasesQueryProjectIdRegExp, listReleasesResponseReleasesItemIdRegExp, listReleasesResponseReleasesItemMetadataGitDirtyDefault, listReleasesResponseReleasesItemMetadataGitShaOneMax, listReleasesResponseReleasesItemMetadataMessageOneMax, listReleasesResponseReleasesItemProjectIdRegExp, listSchemasQueryLimitDefault, listSchemasQueryLimitMax, listSchemasQueryObjectTypeMax, listSchemasQueryProjectIdRegExp, listSchemasQueryRevisionsDefault, listSchemasResponseSchemasItemSchemaOneObjectTypeMax, listSchemasResponseSchemasItemSchemaOnePropertiesXAuditDefault, listUserPasskeysPathUserIdRegExp, listUserPasskeysQueryLimitDefault, listUserPasskeysQueryLimitMax, listUserTeamsPathUserIdRegExp, listUserTeamsQueryLimitDefault, listUserTeamsQueryLimitMax, patchProjectPathProjectIdRegExp, queryProjectsBodyLimitDefault, queryProjectsBodyLimitMax, querySessionsBodyLimitDefault, querySessionsBodyLimitMax, querySessionsQueryProjectIdRegExp, querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp, querySessionsResponseSessionsItemProjectIdRegExp, querySessionsResponseSessionsItemSessionIdRegExp, querySessionsResponseSessionsItemUserIdOneRegExp, querySessionsResponseSessionsItemUserUserIdRegExp, queryTeamsBodyLimitDefault, queryTeamsBodyLimitMax, queryTeamsQueryProjectIdRegExp, queryUsersBodyLimitDefault, queryUsersBodyLimitMax, queryUsersResponseUsersItemIdRegExp, revokeSessionPathSessionIdRegExp, setUserPasswordPathUserIdRegExp, submitFlowStepResponseBrandingLayoutDefault, submitFlowStepResponseBrandingLiquidTemplateMax, submitFlowStepResponseStepActionsDefault, submitFlowStepResponseStepActionsItemPrimaryDefault, submitFlowStepResponseStepFieldsDefault, submitFlowStepResponseStepFieldsItemRequiredDefault, submitFlowStepResponseStepFieldsItemValidationMaxLengthMin, submitFlowStepResponseStepFieldsItemValidationMinLengthMin, submitFlowStepResponseStepGatesDefault, submitFlowStepResponseStepSsoProvidersDefault, updateFlowDefinitionBodyFlowDefinitionNameRegExp, updateFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, updateFlowDefinitionResponseFlowDefinitionNameRegExp, updateFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, updateFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax, updateFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault, updateTeamBodyNameMax, updateTeamPathTeamIdRegExp, verifyChallengeProofPathAttemptIdRegExp, verifyChallengeProofPathChallengeIdRegExp, verifyChallengeProofResponseAttemptIdRegExp, verifyChallengeProofResponseChallengesItemChallengeIdRegExp, verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp, verifyChallengeProofResponseProjectIdRegExp, verifyChallengeProofResponseSessionIdOneRegExp, verifyChallengeProofResponseUserIdOneRegExp };
|
|
6743
|
+
export { BeginUserPasskeyRegistrationBody, BeginUserPasskeyRegistrationParams, CompleteClaimBody, CompleteClaimParams, CompleteClaimResponse, CreateAuthAttemptBody, CreateBrandingBody, CreateBrandingQueryParams, CreateFlowBody, CreateFlowDefinitionBody, CreateGrantBody, CreateGrantQueryParams, CreateHandoffHeader, CreateHandoffParams, CreateHandoffResponse, CreateIdpBody, CreateIdpQueryParams, CreateIdpResponse, CreateProjectBody, CreateReleaseBody, CreateReleaseQueryParams, CreateReleaseResponse, CreateSchemaBody, CreateSchemaQueryParams, CreateSessionBody, CreateTeamBody, CreateTeamQueryParams, CreateUserBody, CreateUserQueryParams, DeleteGrantParams, DeleteGrantQueryParams, DeleteTeamParams, DeleteUserByIDParams, DeleteVariableParams, DeleteVariableQueryParams, ExchangeHandoffBody, ExchangeHandoffHeader, ExchangeHandoffQueryParams, ExchangeHandoffResponse, FinishUserPasskeyRegistrationBody, FinishUserPasskeyRegistrationParams, GetAuthAttemptParams, GetAuthAttemptResponse, GetBrandingByIdParams, GetBrandingByIdResponse, GetClaimStatusParams, GetClaimStatusQueryParams, GetClaimStatusResponse, GetClaimWindowParams, GetClaimWindowQueryParams, GetClaimWindowResponse, GetEnvironmentByNameParams, GetEnvironmentByNameQueryParams, GetEnvironmentByNameResponse, GetEventParams, GetEventQueryParams, GetEventResponse, GetFlowDefinitionParams, GetFlowDefinitionResponse, GetFlowStepParams, GetFlowStepResponse, GetGrantParams, GetGrantQueryParams, GetGrantResponse, GetIdpByIdParams, GetIdpByIdQueryParams, GetIdpByIdResponse, GetIdpRevisionByIdParams, GetIdpRevisionByIdQueryParams, GetIdpRevisionByIdResponse, GetMySessionResponse, GetMyUserResponse, GetProjectParams, GetProjectResponse, GetReleaseByIdParams, GetReleaseByIdQueryParams, GetReleaseByIdResponse, GetSchemaByIdParams, GetSchemaByIdQueryParams, GetSchemaByIdResponse, GetSessionParams, GetSessionResponse, GetTeamParams, GetTeamResponse, GetUserByIDParams, GetUserByIDQueryParams, GetUserByIDResponse, GetVariableParams, GetVariableQueryParams, GetVariableResponse, GetVariablesQueryParams, GetVariablesResponse, InitClaimParams, IssueChallengeBody, IssueChallengeParams, ListBrandingQueryParams, ListBrandingResponse, ListBrandingResponseItem, ListEnvironmentsQueryParams, ListEnvironmentsResponse, ListEventsQueryParams, ListEventsResponse, ListFlowDefinitionsQueryParams, ListFlowDefinitionsResponse, ListIdpRevisionsParams, ListIdpRevisionsQueryParams, ListIdpRevisionsResponse, ListMyProjectsQueryParams, ListMyProjectsResponse, ListReleasesQueryParams, ListReleasesResponse, ListSchemasQueryParams, ListSchemasResponse, ListUserPasskeysParams, ListUserPasskeysQueryParams, ListUserPasskeysResponse, ListUserTeamsParams, ListUserTeamsQueryParams, ListUserTeamsResponse, PatchMyUserBody, PatchMyUserResponse, PatchProjectBody, PatchProjectParams, PatchProjectResponse, PatchUserByIDBody, PatchUserByIDParams, PatchUserByIDResponse, QueryGrantsBody, QueryGrantsQueryParams, QueryGrantsResponse, QueryIdpsBody, QueryIdpsQueryParams, QueryIdpsResponse, QueryProjectsBody, QueryProjectsResponse, QuerySessionsBody, QuerySessionsQueryParams, QuerySessionsResponse, QueryTeamsBody, QueryTeamsQueryParams, QueryTeamsResponse, QueryUsersBody, QueryUsersResponse, RevokeSessionParams, SetUserPasswordBody, SetUserPasswordParams, SubmitFlowStepBody, SubmitFlowStepHeader, SubmitFlowStepParams, SubmitFlowStepResponse, UpdateTeamBody, UpdateTeamParams, UpdateTeamResponse, UpdateVariablesBody, UpdateVariablesQueryParams, UpdateVariablesResponse, VerifyChallengeProofBody, VerifyChallengeProofHeader, VerifyChallengeProofParams, VerifyChallengeProofResponse, beginUserPasskeyRegistrationPathUserIdRegExp, completeClaimBodyChallengeIdRegExp, completeClaimPathProjectIdRegExp, completeClaimResponseProjectIdRegExp, completeClaimResponseTeamIdRegExp, createAuthAttemptBodyProjectIdRegExp, createAuthAttemptBodySessionIdOneRegExp, createBrandingBodyHeroUrlMax, createBrandingBodyHeroUrlRegExp, createBrandingBodyLayoutDefault, createBrandingBodyLiquidTemplateMax, createBrandingBodyLogoUrlMax, createBrandingBodyLogoUrlRegExp, createBrandingBodyShapeLogoScaleMax, createBrandingBodyShapeLogoScaleMin, createBrandingBodyShapeRadiusTwoMax, createBrandingBodyShapeRadiusTwoMin, createBrandingBodyThemeDarkLogoUrlMax, createBrandingBodyThemeDarkLogoUrlRegExp, createBrandingBodyThemeDarkPaletteBackgroundMax, createBrandingBodyThemeDarkPaletteBackgroundRegExp, createBrandingBodyThemeDarkPaletteBorderMax, createBrandingBodyThemeDarkPaletteBorderRegExp, createBrandingBodyThemeDarkPaletteErrorMax, createBrandingBodyThemeDarkPaletteErrorRegExp, createBrandingBodyThemeDarkPaletteLinkMax, createBrandingBodyThemeDarkPaletteLinkRegExp, createBrandingBodyThemeDarkPaletteMutedMax, createBrandingBodyThemeDarkPaletteMutedRegExp, createBrandingBodyThemeDarkPaletteOnPrimaryMax, createBrandingBodyThemeDarkPaletteOnPrimaryRegExp, createBrandingBodyThemeDarkPalettePrimaryMax, createBrandingBodyThemeDarkPalettePrimaryRegExp, createBrandingBodyThemeDarkPaletteSuccessMax, createBrandingBodyThemeDarkPaletteSuccessRegExp, createBrandingBodyThemeDarkPaletteSurfaceMax, createBrandingBodyThemeDarkPaletteSurfaceRegExp, createBrandingBodyThemeDarkPaletteTextMax, createBrandingBodyThemeDarkPaletteTextMutedMax, createBrandingBodyThemeDarkPaletteTextMutedRegExp, createBrandingBodyThemeDarkPaletteTextRegExp, createBrandingBodyThemeDarkPaletteWarningMax, createBrandingBodyThemeDarkPaletteWarningRegExp, createBrandingBodyThemeLightLogoUrlMax, createBrandingBodyThemeLightLogoUrlRegExp, createBrandingBodyThemeLightPaletteBackgroundMax, createBrandingBodyThemeLightPaletteBackgroundRegExp, createBrandingBodyThemeLightPaletteBorderMax, createBrandingBodyThemeLightPaletteBorderRegExp, createBrandingBodyThemeLightPaletteErrorMax, createBrandingBodyThemeLightPaletteErrorRegExp, createBrandingBodyThemeLightPaletteLinkMax, createBrandingBodyThemeLightPaletteLinkRegExp, createBrandingBodyThemeLightPaletteMutedMax, createBrandingBodyThemeLightPaletteMutedRegExp, createBrandingBodyThemeLightPaletteOnPrimaryMax, createBrandingBodyThemeLightPaletteOnPrimaryRegExp, createBrandingBodyThemeLightPalettePrimaryMax, createBrandingBodyThemeLightPalettePrimaryRegExp, createBrandingBodyThemeLightPaletteSuccessMax, createBrandingBodyThemeLightPaletteSuccessRegExp, createBrandingBodyThemeLightPaletteSurfaceMax, createBrandingBodyThemeLightPaletteSurfaceRegExp, createBrandingBodyThemeLightPaletteTextMax, createBrandingBodyThemeLightPaletteTextMutedMax, createBrandingBodyThemeLightPaletteTextMutedRegExp, createBrandingBodyThemeLightPaletteTextRegExp, createBrandingBodyThemeLightPaletteWarningMax, createBrandingBodyThemeLightPaletteWarningRegExp, createBrandingBodyTypographyFontFamilyMax, createBrandingBodyTypographyFontFamilyRegExp, createBrandingBodyTypographyFontUrlMax, createBrandingBodyTypographyFontUrlRegExp, createBrandingBodyTypographyScaleMax, createBrandingBodyTypographyScaleMin, createBrandingQueryProjectIdRegExp, createFlowBodyDryRunDefault, createFlowBodyFlowDefinitionNameRegExp, createFlowBodyProjectIdRegExp, createFlowBodySchemaVersionRegExp, createFlowDefinitionBodyFlowDefinitionNameRegExp, createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, createFlowDefinitionBodyFlowDefinitionStepsItemNameRegExp, createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemMax, createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemRegExp, createFlowDefinitionBodyProjectIdRegExp, createGrantBodyTeamTeamIdRegExp, createGrantBodyUserUserIdRegExp, createGrantQueryProjectIdRegExp, createHandoffPathAttemptIdRegExp, createIdpBodyIdpClaimMappingRegExpOne, createIdpBodyIdpDisplayNameMax, createIdpBodyIdpOauth2AuthorizationEndpointRegExp, createIdpBodyIdpOauth2ClientIdMax, createIdpBodyIdpOauth2ClientSecretRegExp, createIdpBodyIdpOauth2PkceEnabledDefault, createIdpBodyIdpOauth2TokenEndpointAuthMethodDefault, createIdpBodyIdpOauth2TokenEndpointRegExp, createIdpBodyIdpOauth2UserinfoEndpointRegExp, createIdpBodyIdpOidcAuthorizationEndpointRegExp, createIdpBodyIdpOidcClientIdMax, createIdpBodyIdpOidcClientSecretRegExp, createIdpBodyIdpOidcIdTokenMappingDefault, createIdpBodyIdpOidcIssuerRegExp, createIdpBodyIdpOidcJwksUriRegExp, createIdpBodyIdpOidcPkceEnabledDefault, createIdpBodyIdpOidcScopesDefault, createIdpBodyIdpOidcTokenEndpointAuthMethodDefault, createIdpBodyIdpOidcTokenEndpointRegExp, createIdpBodyIdpOidcUserinfoEndpointRegExp, createIdpBodyIdpProvisioningCreationDefault, createIdpBodyIdpSlugMax, createIdpBodyIdpSlugRegExp, createIdpQueryProjectIdRegExp, createIdpResponseDefinitionClaimMappingRegExpOne, createIdpResponseDefinitionDisplayNameMax, createIdpResponseDefinitionOauth2AuthorizationEndpointRegExp, createIdpResponseDefinitionOauth2ClientIdMax, createIdpResponseDefinitionOauth2ClientSecretRegExp, createIdpResponseDefinitionOauth2PkceEnabledDefault, createIdpResponseDefinitionOauth2TokenEndpointAuthMethodDefault, createIdpResponseDefinitionOauth2TokenEndpointRegExp, createIdpResponseDefinitionOauth2UserinfoEndpointRegExp, createIdpResponseDefinitionOidcAuthorizationEndpointRegExp, createIdpResponseDefinitionOidcClientIdMax, createIdpResponseDefinitionOidcClientSecretRegExp, createIdpResponseDefinitionOidcIdTokenMappingDefault, createIdpResponseDefinitionOidcIssuerRegExp, createIdpResponseDefinitionOidcJwksUriRegExp, createIdpResponseDefinitionOidcPkceEnabledDefault, createIdpResponseDefinitionOidcScopesDefault, createIdpResponseDefinitionOidcTokenEndpointAuthMethodDefault, createIdpResponseDefinitionOidcTokenEndpointRegExp, createIdpResponseDefinitionOidcUserinfoEndpointRegExp, createIdpResponseDefinitionProvisioningCreationDefault, createIdpResponseDefinitionSlugMax, createIdpResponseDefinitionSlugRegExp, createProjectBodySeedDefaultsDefault, createReleaseBodyGitDirtyDefault, createReleaseBodyGitShaMax, createReleaseBodyMessageMax, createReleaseBodyPointersItemRevisionIdMax, createReleaseBodyPointersMax, createReleaseQueryProjectIdRegExp, createReleaseResponseIdRegExp, createReleaseResponseMetadataGitDirtyDefault, createReleaseResponseMetadataGitShaOneMax, createReleaseResponseMetadataMessageOneMax, createReleaseResponsePointersItemHandleMax, createReleaseResponsePointersItemRevisionIdMax, createReleaseResponsePointersMax, createReleaseResponseProjectIdRegExp, createSchemaBodyOneMetaSchemaMax, createSchemaBodyOneObjectTypeMax, createSchemaBodyOnePropertiesXAuditDefault, createSchemaBodyOneXAuthMethodsSsoProvidersItemMax, createSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp, createSchemaQueryProjectIdRegExp, createSchemaQueryTeamIdRegExp, createSessionBodyProjectIdRegExp, createTeamBodyNameMax, createTeamQueryProjectIdRegExp, createUserQueryProjectIdRegExp, createUserQueryTeamIdRegExp, deleteGrantQueryProjectIdRegExp, deleteTeamPathTeamIdRegExp, deleteUserByIDPathUserIdRegExp, deleteVariablePathVariableNameMax, deleteVariablePathVariableNameRegExp, deleteVariableQueryEnvironmentNameMax, deleteVariableQueryEnvironmentNameRegExp, deleteVariableQueryProjectIdRegExp, exchangeHandoffQueryProjectIdRegExp, exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp, exchangeHandoffResponseSessionProjectIdRegExp, exchangeHandoffResponseSessionSessionIdRegExp, exchangeHandoffResponseSessionUserIdOneRegExp, exchangeHandoffResponseSessionUserUserIdRegExp, finishUserPasskeyRegistrationPathUserIdRegExp, getAuthAttemptPathAttemptIdRegExp, getAuthAttemptResponseAttemptIdRegExp, getAuthAttemptResponseChallengesItemChallengeIdRegExp, getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp, getAuthAttemptResponseProjectIdRegExp, getAuthAttemptResponseSessionIdOneRegExp, getAuthAttemptResponseUserIdOneRegExp, getBrandingByIdResponseBrandingHeroUrlMax, getBrandingByIdResponseBrandingHeroUrlRegExp, getBrandingByIdResponseBrandingLayoutDefault, getBrandingByIdResponseBrandingLiquidTemplateMax, getBrandingByIdResponseBrandingLogoUrlMax, getBrandingByIdResponseBrandingLogoUrlRegExp, getBrandingByIdResponseBrandingShapeLogoScaleMax, getBrandingByIdResponseBrandingShapeLogoScaleMin, getBrandingByIdResponseBrandingShapeRadiusTwoMax, getBrandingByIdResponseBrandingShapeRadiusTwoMin, getBrandingByIdResponseBrandingThemeDarkLogoUrlMax, getBrandingByIdResponseBrandingThemeDarkLogoUrlRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteBackgroundMax, getBrandingByIdResponseBrandingThemeDarkPaletteBackgroundRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteBorderMax, getBrandingByIdResponseBrandingThemeDarkPaletteBorderRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteErrorMax, getBrandingByIdResponseBrandingThemeDarkPaletteErrorRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteLinkMax, getBrandingByIdResponseBrandingThemeDarkPaletteLinkRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteMutedMax, getBrandingByIdResponseBrandingThemeDarkPaletteMutedRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteOnPrimaryMax, getBrandingByIdResponseBrandingThemeDarkPaletteOnPrimaryRegExp, getBrandingByIdResponseBrandingThemeDarkPalettePrimaryMax, getBrandingByIdResponseBrandingThemeDarkPalettePrimaryRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteSuccessMax, getBrandingByIdResponseBrandingThemeDarkPaletteSuccessRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteSurfaceMax, getBrandingByIdResponseBrandingThemeDarkPaletteSurfaceRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteTextMax, getBrandingByIdResponseBrandingThemeDarkPaletteTextMutedMax, getBrandingByIdResponseBrandingThemeDarkPaletteTextMutedRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteTextRegExp, getBrandingByIdResponseBrandingThemeDarkPaletteWarningMax, getBrandingByIdResponseBrandingThemeDarkPaletteWarningRegExp, getBrandingByIdResponseBrandingThemeLightLogoUrlMax, getBrandingByIdResponseBrandingThemeLightLogoUrlRegExp, getBrandingByIdResponseBrandingThemeLightPaletteBackgroundMax, getBrandingByIdResponseBrandingThemeLightPaletteBackgroundRegExp, getBrandingByIdResponseBrandingThemeLightPaletteBorderMax, getBrandingByIdResponseBrandingThemeLightPaletteBorderRegExp, getBrandingByIdResponseBrandingThemeLightPaletteErrorMax, getBrandingByIdResponseBrandingThemeLightPaletteErrorRegExp, getBrandingByIdResponseBrandingThemeLightPaletteLinkMax, getBrandingByIdResponseBrandingThemeLightPaletteLinkRegExp, getBrandingByIdResponseBrandingThemeLightPaletteMutedMax, getBrandingByIdResponseBrandingThemeLightPaletteMutedRegExp, getBrandingByIdResponseBrandingThemeLightPaletteOnPrimaryMax, getBrandingByIdResponseBrandingThemeLightPaletteOnPrimaryRegExp, getBrandingByIdResponseBrandingThemeLightPalettePrimaryMax, getBrandingByIdResponseBrandingThemeLightPalettePrimaryRegExp, getBrandingByIdResponseBrandingThemeLightPaletteSuccessMax, getBrandingByIdResponseBrandingThemeLightPaletteSuccessRegExp, getBrandingByIdResponseBrandingThemeLightPaletteSurfaceMax, getBrandingByIdResponseBrandingThemeLightPaletteSurfaceRegExp, getBrandingByIdResponseBrandingThemeLightPaletteTextMax, getBrandingByIdResponseBrandingThemeLightPaletteTextMutedMax, getBrandingByIdResponseBrandingThemeLightPaletteTextMutedRegExp, getBrandingByIdResponseBrandingThemeLightPaletteTextRegExp, getBrandingByIdResponseBrandingThemeLightPaletteWarningMax, getBrandingByIdResponseBrandingThemeLightPaletteWarningRegExp, getBrandingByIdResponseBrandingTypographyFontFamilyMax, getBrandingByIdResponseBrandingTypographyFontFamilyRegExp, getBrandingByIdResponseBrandingTypographyFontUrlMax, getBrandingByIdResponseBrandingTypographyFontUrlRegExp, getBrandingByIdResponseBrandingTypographyScaleMax, getBrandingByIdResponseBrandingTypographyScaleMin, getClaimStatusPathProjectIdRegExp, getClaimStatusQueryChallengeIdRegExp, getClaimStatusResponseTwoTeamIdRegExp, getClaimWindowPathProjectIdRegExp, getClaimWindowQueryChallengeIdRegExp, getEnvironmentByNamePathNameMax, getEnvironmentByNamePathNameRegExp, getEnvironmentByNameQueryProjectIdRegExp, getEnvironmentByNameResponseNameMax, getEnvironmentByNameResponseNameRegExp, getEnvironmentByNameResponseProjectIdRegExp, getEventQueryProjectIdRegExp, getEventResponseEightOneProjectIdRegExp, getEventResponseFiveOneProjectIdRegExp, getEventResponseFourOneProjectIdRegExp, getEventResponseNineOneProjectIdRegExp, getEventResponseOneOneProjectIdRegExp, getEventResponseOneeightOneProjectIdRegExp, getEventResponseOnefiveOneProjectIdRegExp, getEventResponseOnefourOneProjectIdRegExp, getEventResponseOnenineOneProjectIdRegExp, getEventResponseOneoneOneProjectIdRegExp, getEventResponseOnesevenOneProjectIdRegExp, getEventResponseOnesixOneProjectIdRegExp, getEventResponseOnethreeOneProjectIdRegExp, getEventResponseOnetwoOneProjectIdRegExp, getEventResponseOnezeroOneProjectIdRegExp, getEventResponseSevenOneProjectIdRegExp, getEventResponseSixOneProjectIdRegExp, getEventResponseThreeOneProjectIdRegExp, getEventResponseTwoOneProjectIdRegExp, getEventResponseTwoeightOneProjectIdRegExp, getEventResponseTwofiveOneProjectIdRegExp, getEventResponseTwofourOneProjectIdRegExp, getEventResponseTwonineOneProjectIdRegExp, getEventResponseTwooneOneProjectIdRegExp, getEventResponseTwosevenOneProjectIdRegExp, getEventResponseTwosixOneProjectIdRegExp, getEventResponseTwothreeOneProjectIdRegExp, getEventResponseTwotwoOneProjectIdRegExp, getEventResponseTwozeroOneProjectIdRegExp, getEventResponseTwozeroTwoPayloadDurationMsMin, getEventResponseTwozeroTwoPayloadStatusMax, getEventResponseTwozeroTwoPayloadStatusMin, getFlowDefinitionResponseFlowDefinitionNameRegExp, getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, getFlowDefinitionResponseFlowDefinitionStepsItemNameRegExp, getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemMax, getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemRegExp, getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax, getFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax, getFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault, getFlowDefinitionResponseUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemMax, getFlowDefinitionResponseUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemRegExp, getFlowStepResponseBrandingHeroUrlMax, getFlowStepResponseBrandingHeroUrlRegExp, getFlowStepResponseBrandingLayoutDefault, getFlowStepResponseBrandingLiquidTemplateMax, getFlowStepResponseBrandingLogoUrlMax, getFlowStepResponseBrandingLogoUrlRegExp, getFlowStepResponseBrandingShapeLogoScaleMax, getFlowStepResponseBrandingShapeLogoScaleMin, getFlowStepResponseBrandingShapeRadiusTwoMax, getFlowStepResponseBrandingShapeRadiusTwoMin, getFlowStepResponseBrandingThemeDarkLogoUrlMax, getFlowStepResponseBrandingThemeDarkLogoUrlRegExp, getFlowStepResponseBrandingThemeDarkPaletteBackgroundMax, getFlowStepResponseBrandingThemeDarkPaletteBackgroundRegExp, getFlowStepResponseBrandingThemeDarkPaletteBorderMax, getFlowStepResponseBrandingThemeDarkPaletteBorderRegExp, getFlowStepResponseBrandingThemeDarkPaletteErrorMax, getFlowStepResponseBrandingThemeDarkPaletteErrorRegExp, getFlowStepResponseBrandingThemeDarkPaletteLinkMax, getFlowStepResponseBrandingThemeDarkPaletteLinkRegExp, getFlowStepResponseBrandingThemeDarkPaletteMutedMax, getFlowStepResponseBrandingThemeDarkPaletteMutedRegExp, getFlowStepResponseBrandingThemeDarkPaletteOnPrimaryMax, getFlowStepResponseBrandingThemeDarkPaletteOnPrimaryRegExp, getFlowStepResponseBrandingThemeDarkPalettePrimaryMax, getFlowStepResponseBrandingThemeDarkPalettePrimaryRegExp, getFlowStepResponseBrandingThemeDarkPaletteSuccessMax, getFlowStepResponseBrandingThemeDarkPaletteSuccessRegExp, getFlowStepResponseBrandingThemeDarkPaletteSurfaceMax, getFlowStepResponseBrandingThemeDarkPaletteSurfaceRegExp, getFlowStepResponseBrandingThemeDarkPaletteTextMax, getFlowStepResponseBrandingThemeDarkPaletteTextMutedMax, getFlowStepResponseBrandingThemeDarkPaletteTextMutedRegExp, getFlowStepResponseBrandingThemeDarkPaletteTextRegExp, getFlowStepResponseBrandingThemeDarkPaletteWarningMax, getFlowStepResponseBrandingThemeDarkPaletteWarningRegExp, getFlowStepResponseBrandingThemeLightLogoUrlMax, getFlowStepResponseBrandingThemeLightLogoUrlRegExp, getFlowStepResponseBrandingThemeLightPaletteBackgroundMax, getFlowStepResponseBrandingThemeLightPaletteBackgroundRegExp, getFlowStepResponseBrandingThemeLightPaletteBorderMax, getFlowStepResponseBrandingThemeLightPaletteBorderRegExp, getFlowStepResponseBrandingThemeLightPaletteErrorMax, getFlowStepResponseBrandingThemeLightPaletteErrorRegExp, getFlowStepResponseBrandingThemeLightPaletteLinkMax, getFlowStepResponseBrandingThemeLightPaletteLinkRegExp, getFlowStepResponseBrandingThemeLightPaletteMutedMax, getFlowStepResponseBrandingThemeLightPaletteMutedRegExp, getFlowStepResponseBrandingThemeLightPaletteOnPrimaryMax, getFlowStepResponseBrandingThemeLightPaletteOnPrimaryRegExp, getFlowStepResponseBrandingThemeLightPalettePrimaryMax, getFlowStepResponseBrandingThemeLightPalettePrimaryRegExp, getFlowStepResponseBrandingThemeLightPaletteSuccessMax, getFlowStepResponseBrandingThemeLightPaletteSuccessRegExp, getFlowStepResponseBrandingThemeLightPaletteSurfaceMax, getFlowStepResponseBrandingThemeLightPaletteSurfaceRegExp, getFlowStepResponseBrandingThemeLightPaletteTextMax, getFlowStepResponseBrandingThemeLightPaletteTextMutedMax, getFlowStepResponseBrandingThemeLightPaletteTextMutedRegExp, getFlowStepResponseBrandingThemeLightPaletteTextRegExp, getFlowStepResponseBrandingThemeLightPaletteWarningMax, getFlowStepResponseBrandingThemeLightPaletteWarningRegExp, getFlowStepResponseBrandingTypographyFontFamilyMax, getFlowStepResponseBrandingTypographyFontFamilyRegExp, getFlowStepResponseBrandingTypographyFontUrlMax, getFlowStepResponseBrandingTypographyFontUrlRegExp, getFlowStepResponseBrandingTypographyScaleMax, getFlowStepResponseBrandingTypographyScaleMin, getFlowStepResponseStepActionsDefault, getFlowStepResponseStepActionsItemPrimaryDefault, getFlowStepResponseStepFieldsDefault, getFlowStepResponseStepFieldsItemRequiredDefault, getFlowStepResponseStepFieldsItemValidationMaxLengthMin, getFlowStepResponseStepFieldsItemValidationMinLengthMin, getFlowStepResponseStepGatesDefault, getFlowStepResponseStepSsoProvidersDefault, getGrantQueryProjectIdRegExp, getGrantResponseUserOneUserIdRegExp, getIdpByIdQueryProjectIdRegExp, getIdpByIdResponseDefinitionClaimMappingRegExpOne, getIdpByIdResponseDefinitionDisplayNameMax, getIdpByIdResponseDefinitionOauth2AuthorizationEndpointRegExp, getIdpByIdResponseDefinitionOauth2ClientIdMax, getIdpByIdResponseDefinitionOauth2ClientSecretRegExp, getIdpByIdResponseDefinitionOauth2PkceEnabledDefault, getIdpByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault, getIdpByIdResponseDefinitionOauth2TokenEndpointRegExp, getIdpByIdResponseDefinitionOauth2UserinfoEndpointRegExp, getIdpByIdResponseDefinitionOidcAuthorizationEndpointRegExp, getIdpByIdResponseDefinitionOidcClientIdMax, getIdpByIdResponseDefinitionOidcClientSecretRegExp, getIdpByIdResponseDefinitionOidcIdTokenMappingDefault, getIdpByIdResponseDefinitionOidcIssuerRegExp, getIdpByIdResponseDefinitionOidcJwksUriRegExp, getIdpByIdResponseDefinitionOidcPkceEnabledDefault, getIdpByIdResponseDefinitionOidcScopesDefault, getIdpByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault, getIdpByIdResponseDefinitionOidcTokenEndpointRegExp, getIdpByIdResponseDefinitionOidcUserinfoEndpointRegExp, getIdpByIdResponseDefinitionProvisioningCreationDefault, getIdpByIdResponseDefinitionSlugMax, getIdpByIdResponseDefinitionSlugRegExp, getIdpRevisionByIdQueryProjectIdRegExp, getIdpRevisionByIdResponseDefinitionClaimMappingRegExpOne, getIdpRevisionByIdResponseDefinitionDisplayNameMax, getIdpRevisionByIdResponseDefinitionOauth2AuthorizationEndpointRegExp, getIdpRevisionByIdResponseDefinitionOauth2ClientIdMax, getIdpRevisionByIdResponseDefinitionOauth2ClientSecretRegExp, getIdpRevisionByIdResponseDefinitionOauth2PkceEnabledDefault, getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault, getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointRegExp, getIdpRevisionByIdResponseDefinitionOauth2UserinfoEndpointRegExp, getIdpRevisionByIdResponseDefinitionOidcAuthorizationEndpointRegExp, getIdpRevisionByIdResponseDefinitionOidcClientIdMax, getIdpRevisionByIdResponseDefinitionOidcClientSecretRegExp, getIdpRevisionByIdResponseDefinitionOidcIdTokenMappingDefault, getIdpRevisionByIdResponseDefinitionOidcIssuerRegExp, getIdpRevisionByIdResponseDefinitionOidcJwksUriRegExp, getIdpRevisionByIdResponseDefinitionOidcPkceEnabledDefault, getIdpRevisionByIdResponseDefinitionOidcScopesDefault, getIdpRevisionByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault, getIdpRevisionByIdResponseDefinitionOidcTokenEndpointRegExp, getIdpRevisionByIdResponseDefinitionOidcUserinfoEndpointRegExp, getIdpRevisionByIdResponseDefinitionProvisioningCreationDefault, getIdpRevisionByIdResponseDefinitionSlugMax, getIdpRevisionByIdResponseDefinitionSlugRegExp, getMySessionResponseFactorsItemPayloadOneUserIdRegExp, getMySessionResponseProjectIdRegExp, getMySessionResponseSessionIdRegExp, getMySessionResponseUserIdOneRegExp, getMySessionResponseUserUserIdRegExp, getMyUserResponseIdRegExp, getProjectPathProjectIdRegExp, getReleaseByIdPathReleaseIdRegExp, getReleaseByIdQueryProjectIdRegExp, getReleaseByIdResponseIdRegExp, getReleaseByIdResponseMetadataGitDirtyDefault, getReleaseByIdResponseMetadataGitShaOneMax, getReleaseByIdResponseMetadataMessageOneMax, getReleaseByIdResponsePointersItemHandleMax, getReleaseByIdResponsePointersItemRevisionIdMax, getReleaseByIdResponsePointersMax, getReleaseByIdResponseProjectIdRegExp, getSchemaByIdQueryTeamIdRegExp, getSchemaByIdResponseSchemaOneMetaSchemaMax, getSchemaByIdResponseSchemaOneObjectTypeMax, getSchemaByIdResponseSchemaOnePropertiesXAuditDefault, getSchemaByIdResponseSchemaOneXAuthMethodsSsoProvidersItemMax, getSchemaByIdResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp, getSessionPathSessionIdRegExp, getSessionResponseFactorsItemPayloadOneUserIdRegExp, getSessionResponseProjectIdRegExp, getSessionResponseSessionIdRegExp, getSessionResponseUserIdOneRegExp, getSessionResponseUserUserIdRegExp, getTeamPathTeamIdRegExp, getUserByIDPathUserIdRegExp, getUserByIDQueryTeamIdRegExp, getUserByIDResponseIdRegExp, getVariablePathVariableNameMax, getVariablePathVariableNameRegExp, getVariableQueryEnvironmentNameMax, getVariableQueryEnvironmentNameRegExp, getVariableQueryProjectIdRegExp, getVariableResponseOneOneMax, getVariablesQueryEnvironmentNameMax, getVariablesQueryEnvironmentNameRegExp, getVariablesQueryProjectIdRegExp, getVariablesResponseOneOneMax, initClaimPathProjectIdRegExp, issueChallengePathAttemptIdRegExp, listBrandingQueryProjectIdRegExp, listEnvironmentsQueryLimitDefault, listEnvironmentsQueryLimitMax, listEnvironmentsQueryProjectIdRegExp, listEnvironmentsResponseEnvironmentsItemNameMax, listEnvironmentsResponseEnvironmentsItemNameRegExp, listEnvironmentsResponseEnvironmentsItemProjectIdRegExp, listEventsQueryLimitDefault, listEventsQueryLimitMax, listEventsQueryOrderDefault, listEventsQueryProjectIdRegExp, listEventsResponseDataItemEightOneProjectIdRegExp, listEventsResponseDataItemFiveOneProjectIdRegExp, listEventsResponseDataItemFourOneProjectIdRegExp, listEventsResponseDataItemNineOneProjectIdRegExp, listEventsResponseDataItemOneOneProjectIdRegExp, listEventsResponseDataItemOneeightOneProjectIdRegExp, listEventsResponseDataItemOnefiveOneProjectIdRegExp, listEventsResponseDataItemOnefourOneProjectIdRegExp, listEventsResponseDataItemOnenineOneProjectIdRegExp, listEventsResponseDataItemOneoneOneProjectIdRegExp, listEventsResponseDataItemOnesevenOneProjectIdRegExp, listEventsResponseDataItemOnesixOneProjectIdRegExp, listEventsResponseDataItemOnethreeOneProjectIdRegExp, listEventsResponseDataItemOnetwoOneProjectIdRegExp, listEventsResponseDataItemOnezeroOneProjectIdRegExp, listEventsResponseDataItemSevenOneProjectIdRegExp, listEventsResponseDataItemSixOneProjectIdRegExp, listEventsResponseDataItemThreeOneProjectIdRegExp, listEventsResponseDataItemTwoOneProjectIdRegExp, listEventsResponseDataItemTwoeightOneProjectIdRegExp, listEventsResponseDataItemTwofiveOneProjectIdRegExp, listEventsResponseDataItemTwofourOneProjectIdRegExp, listEventsResponseDataItemTwonineOneProjectIdRegExp, listEventsResponseDataItemTwooneOneProjectIdRegExp, listEventsResponseDataItemTwosevenOneProjectIdRegExp, listEventsResponseDataItemTwosixOneProjectIdRegExp, listEventsResponseDataItemTwothreeOneProjectIdRegExp, listEventsResponseDataItemTwotwoOneProjectIdRegExp, listEventsResponseDataItemTwozeroOneProjectIdRegExp, listEventsResponseDataItemTwozeroTwoPayloadDurationMsMin, listEventsResponseDataItemTwozeroTwoPayloadStatusMax, listEventsResponseDataItemTwozeroTwoPayloadStatusMin, listFlowDefinitionsQueryLimitDefault, listFlowDefinitionsQueryLimitMax, listFlowDefinitionsQueryNameRegExp, listFlowDefinitionsQueryProjectIdRegExp, listFlowDefinitionsQueryRevisionsDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionNameRegExp, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemActionsItemPrimaryDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemFieldsDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemGatesDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemNameRegExp, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersDefault, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemMax, listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemRegExp, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneObjectTypeMax, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOnePropertiesXAuditDefault, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemMax, listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneXAuthMethodsSsoProvidersItemRegExp, listIdpRevisionsQueryLimitDefault, listIdpRevisionsQueryLimitMax, listIdpRevisionsQueryProjectIdRegExp, listIdpRevisionsResponseRevisionsItemDefinitionClaimMappingRegExpOne, listIdpRevisionsResponseRevisionsItemDefinitionDisplayNameMax, listIdpRevisionsResponseRevisionsItemDefinitionOauth2AuthorizationEndpointRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientIdMax, listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientSecretRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOauth2PkceEnabledDefault, listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointAuthMethodDefault, listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOauth2UserinfoEndpointRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOidcAuthorizationEndpointRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOidcClientIdMax, listIdpRevisionsResponseRevisionsItemDefinitionOidcClientSecretRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOidcIdTokenMappingDefault, listIdpRevisionsResponseRevisionsItemDefinitionOidcIssuerRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOidcJwksUriRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOidcPkceEnabledDefault, listIdpRevisionsResponseRevisionsItemDefinitionOidcScopesDefault, listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointAuthMethodDefault, listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointRegExp, listIdpRevisionsResponseRevisionsItemDefinitionOidcUserinfoEndpointRegExp, listIdpRevisionsResponseRevisionsItemDefinitionProvisioningCreationDefault, listIdpRevisionsResponseRevisionsItemDefinitionSlugMax, listIdpRevisionsResponseRevisionsItemDefinitionSlugRegExp, listMyProjectsQueryLimitDefault, listMyProjectsQueryLimitMax, listReleasesQueryLimitDefault, listReleasesQueryLimitMax, listReleasesQueryProjectIdRegExp, listReleasesResponseReleasesItemIdRegExp, listReleasesResponseReleasesItemMetadataGitDirtyDefault, listReleasesResponseReleasesItemMetadataGitShaOneMax, listReleasesResponseReleasesItemMetadataMessageOneMax, listReleasesResponseReleasesItemProjectIdRegExp, listSchemasQueryLimitDefault, listSchemasQueryLimitMax, listSchemasQueryObjectTypeMax, listSchemasQueryProjectIdRegExp, listSchemasQueryRevisionsDefault, listSchemasResponseSchemasItemSchemaOneMetaSchemaMax, listSchemasResponseSchemasItemSchemaOneObjectTypeMax, listSchemasResponseSchemasItemSchemaOnePropertiesXAuditDefault, listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemMax, listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemRegExp, listUserPasskeysPathUserIdRegExp, listUserPasskeysQueryLimitDefault, listUserPasskeysQueryLimitMax, listUserTeamsPathUserIdRegExp, listUserTeamsQueryLimitDefault, listUserTeamsQueryLimitMax, patchMyUserResponseIdRegExp, patchProjectPathProjectIdRegExp, patchUserByIDPathUserIdRegExp, patchUserByIDResponseIdRegExp, queryGrantsBodyLimitDefault, queryGrantsBodyLimitMax, queryGrantsQueryProjectIdRegExp, queryGrantsResponseGrantsItemUserOneUserIdRegExp, queryIdpsBodyLimitDefault, queryIdpsBodyLimitMax, queryIdpsQueryProjectIdRegExp, queryIdpsResponseIdpsItemDefinitionClaimMappingRegExpOne, queryIdpsResponseIdpsItemDefinitionDisplayNameMax, queryIdpsResponseIdpsItemDefinitionOauth2AuthorizationEndpointRegExp, queryIdpsResponseIdpsItemDefinitionOauth2ClientIdMax, queryIdpsResponseIdpsItemDefinitionOauth2ClientSecretRegExp, queryIdpsResponseIdpsItemDefinitionOauth2PkceEnabledDefault, queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointAuthMethodDefault, queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointRegExp, queryIdpsResponseIdpsItemDefinitionOauth2UserinfoEndpointRegExp, queryIdpsResponseIdpsItemDefinitionOidcAuthorizationEndpointRegExp, queryIdpsResponseIdpsItemDefinitionOidcClientIdMax, queryIdpsResponseIdpsItemDefinitionOidcClientSecretRegExp, queryIdpsResponseIdpsItemDefinitionOidcIdTokenMappingDefault, queryIdpsResponseIdpsItemDefinitionOidcIssuerRegExp, queryIdpsResponseIdpsItemDefinitionOidcJwksUriRegExp, queryIdpsResponseIdpsItemDefinitionOidcPkceEnabledDefault, queryIdpsResponseIdpsItemDefinitionOidcScopesDefault, queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointAuthMethodDefault, queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointRegExp, queryIdpsResponseIdpsItemDefinitionOidcUserinfoEndpointRegExp, queryIdpsResponseIdpsItemDefinitionProvisioningCreationDefault, queryIdpsResponseIdpsItemDefinitionSlugMax, queryIdpsResponseIdpsItemDefinitionSlugRegExp, queryProjectsBodyLimitDefault, queryProjectsBodyLimitMax, querySessionsBodyLimitDefault, querySessionsBodyLimitMax, querySessionsQueryProjectIdRegExp, querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp, querySessionsResponseSessionsItemProjectIdRegExp, querySessionsResponseSessionsItemSessionIdRegExp, querySessionsResponseSessionsItemUserIdOneRegExp, querySessionsResponseSessionsItemUserUserIdRegExp, queryTeamsBodyLimitDefault, queryTeamsBodyLimitMax, queryTeamsQueryProjectIdRegExp, queryUsersBodyLimitDefault, queryUsersBodyLimitMax, queryUsersResponseUsersItemIdRegExp, revokeSessionPathSessionIdRegExp, setUserPasswordPathUserIdRegExp, submitFlowStepResponseBrandingHeroUrlMax, submitFlowStepResponseBrandingHeroUrlRegExp, submitFlowStepResponseBrandingLayoutDefault, submitFlowStepResponseBrandingLiquidTemplateMax, submitFlowStepResponseBrandingLogoUrlMax, submitFlowStepResponseBrandingLogoUrlRegExp, submitFlowStepResponseBrandingShapeLogoScaleMax, submitFlowStepResponseBrandingShapeLogoScaleMin, submitFlowStepResponseBrandingShapeRadiusTwoMax, submitFlowStepResponseBrandingShapeRadiusTwoMin, submitFlowStepResponseBrandingThemeDarkLogoUrlMax, submitFlowStepResponseBrandingThemeDarkLogoUrlRegExp, submitFlowStepResponseBrandingThemeDarkPaletteBackgroundMax, submitFlowStepResponseBrandingThemeDarkPaletteBackgroundRegExp, submitFlowStepResponseBrandingThemeDarkPaletteBorderMax, submitFlowStepResponseBrandingThemeDarkPaletteBorderRegExp, submitFlowStepResponseBrandingThemeDarkPaletteErrorMax, submitFlowStepResponseBrandingThemeDarkPaletteErrorRegExp, submitFlowStepResponseBrandingThemeDarkPaletteLinkMax, submitFlowStepResponseBrandingThemeDarkPaletteLinkRegExp, submitFlowStepResponseBrandingThemeDarkPaletteMutedMax, submitFlowStepResponseBrandingThemeDarkPaletteMutedRegExp, submitFlowStepResponseBrandingThemeDarkPaletteOnPrimaryMax, submitFlowStepResponseBrandingThemeDarkPaletteOnPrimaryRegExp, submitFlowStepResponseBrandingThemeDarkPalettePrimaryMax, submitFlowStepResponseBrandingThemeDarkPalettePrimaryRegExp, submitFlowStepResponseBrandingThemeDarkPaletteSuccessMax, submitFlowStepResponseBrandingThemeDarkPaletteSuccessRegExp, submitFlowStepResponseBrandingThemeDarkPaletteSurfaceMax, submitFlowStepResponseBrandingThemeDarkPaletteSurfaceRegExp, submitFlowStepResponseBrandingThemeDarkPaletteTextMax, submitFlowStepResponseBrandingThemeDarkPaletteTextMutedMax, submitFlowStepResponseBrandingThemeDarkPaletteTextMutedRegExp, submitFlowStepResponseBrandingThemeDarkPaletteTextRegExp, submitFlowStepResponseBrandingThemeDarkPaletteWarningMax, submitFlowStepResponseBrandingThemeDarkPaletteWarningRegExp, submitFlowStepResponseBrandingThemeLightLogoUrlMax, submitFlowStepResponseBrandingThemeLightLogoUrlRegExp, submitFlowStepResponseBrandingThemeLightPaletteBackgroundMax, submitFlowStepResponseBrandingThemeLightPaletteBackgroundRegExp, submitFlowStepResponseBrandingThemeLightPaletteBorderMax, submitFlowStepResponseBrandingThemeLightPaletteBorderRegExp, submitFlowStepResponseBrandingThemeLightPaletteErrorMax, submitFlowStepResponseBrandingThemeLightPaletteErrorRegExp, submitFlowStepResponseBrandingThemeLightPaletteLinkMax, submitFlowStepResponseBrandingThemeLightPaletteLinkRegExp, submitFlowStepResponseBrandingThemeLightPaletteMutedMax, submitFlowStepResponseBrandingThemeLightPaletteMutedRegExp, submitFlowStepResponseBrandingThemeLightPaletteOnPrimaryMax, submitFlowStepResponseBrandingThemeLightPaletteOnPrimaryRegExp, submitFlowStepResponseBrandingThemeLightPalettePrimaryMax, submitFlowStepResponseBrandingThemeLightPalettePrimaryRegExp, submitFlowStepResponseBrandingThemeLightPaletteSuccessMax, submitFlowStepResponseBrandingThemeLightPaletteSuccessRegExp, submitFlowStepResponseBrandingThemeLightPaletteSurfaceMax, submitFlowStepResponseBrandingThemeLightPaletteSurfaceRegExp, submitFlowStepResponseBrandingThemeLightPaletteTextMax, submitFlowStepResponseBrandingThemeLightPaletteTextMutedMax, submitFlowStepResponseBrandingThemeLightPaletteTextMutedRegExp, submitFlowStepResponseBrandingThemeLightPaletteTextRegExp, submitFlowStepResponseBrandingThemeLightPaletteWarningMax, submitFlowStepResponseBrandingThemeLightPaletteWarningRegExp, submitFlowStepResponseBrandingTypographyFontFamilyMax, submitFlowStepResponseBrandingTypographyFontFamilyRegExp, submitFlowStepResponseBrandingTypographyFontUrlMax, submitFlowStepResponseBrandingTypographyFontUrlRegExp, submitFlowStepResponseBrandingTypographyScaleMax, submitFlowStepResponseBrandingTypographyScaleMin, submitFlowStepResponseStepActionsDefault, submitFlowStepResponseStepActionsItemPrimaryDefault, submitFlowStepResponseStepFieldsDefault, submitFlowStepResponseStepFieldsItemRequiredDefault, submitFlowStepResponseStepFieldsItemValidationMaxLengthMin, submitFlowStepResponseStepFieldsItemValidationMinLengthMin, submitFlowStepResponseStepGatesDefault, submitFlowStepResponseStepSsoProvidersDefault, updateTeamBodyNameMax, updateTeamPathTeamIdRegExp, updateVariablesBodyThreeValueOneMax, updateVariablesBodyTwoOneMax, updateVariablesQueryEnvironmentNameMax, updateVariablesQueryEnvironmentNameRegExp, updateVariablesQueryProjectIdRegExp, updateVariablesResponseOneOneMax, verifyChallengeProofPathAttemptIdRegExp, verifyChallengeProofPathChallengeIdRegExp, verifyChallengeProofResponseAttemptIdRegExp, verifyChallengeProofResponseChallengesItemChallengeIdRegExp, verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp, verifyChallengeProofResponseProjectIdRegExp, verifyChallengeProofResponseSessionIdOneRegExp, verifyChallengeProofResponseUserIdOneRegExp };
|
|
5240
6744
|
|
|
5241
6745
|
//# sourceMappingURL=zitadelNextGen.zod.mjs.map
|