@zitadel/api 1.0.0-alpha.25 → 1.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +609 -147
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +22 -6
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +2124 -959
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1750 -465
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1747 -594
- 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 +312 -119
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/{index-C1weUrQx.d.mts → index-Csm0c4Kk.d.mts} +23554 -16767
- package/dist/index-Csm0c4Kk.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +2 -2
- package/dist/runtime/api-factory.mjs +1 -1
- package/dist/runtime/api-factory.mjs.map +1 -1
- package/dist/{zitadelNextGen-KWjI2Uyj.d.mts → zitadelNextGen-DdcvpXYL.d.mts} +376 -115
- package/dist/zitadelNextGen-DdcvpXYL.d.mts.map +1 -0
- package/package.json +9 -8
- package/src/generated/endpoints/zitadelNextGen.faker.ts +75 -70
- package/src/generated/endpoints/zitadelNextGen.msw.ts +162 -34
- package/src/generated/endpoints/zitadelNextGen.ts +795 -177
- package/src/generated/endpoints/zitadelNextGen.zod.ts +1877 -637
- package/src/generated/model/addOrigin201.ts +13 -0
- package/src/generated/model/addOrigin201Kind.ts +15 -0
- package/src/generated/model/addOriginBody.ts +23 -0
- package/src/generated/model/addOriginBodyKind.ts +15 -0
- package/src/generated/model/addOriginDefault.ts +108 -0
- package/src/generated/model/beginUserPasskeyRegistration201.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration400.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration401.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration403.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration404.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration500.ts +1 -1
- package/src/generated/model/buildRelease200.ts +96 -0
- package/src/generated/model/buildRelease200Metadata.ts +43 -0
- package/src/generated/model/buildRelease200MetadataCreatedByType.ts +20 -0
- package/src/generated/model/buildRelease200PointersItem.ts +58 -0
- package/src/generated/model/buildRelease200PointersItemKind.ts +27 -0
- package/src/generated/model/buildRelease201.ts +96 -0
- package/src/generated/model/buildRelease201Metadata.ts +43 -0
- package/src/generated/model/buildRelease201MetadataCreatedByType.ts +20 -0
- package/src/generated/model/buildRelease201PointersItem.ts +58 -0
- package/src/generated/model/buildRelease201PointersItemKind.ts +27 -0
- package/src/generated/model/buildRelease400.ts +31 -0
- package/src/generated/model/buildRelease400Details.ts +13 -0
- package/src/generated/model/buildRelease400DetailsResourcesItem.ts +41 -0
- package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +27 -0
- package/src/generated/model/buildReleaseBody.ts +62 -0
- package/src/generated/model/buildReleaseBodyBundle.ts +82 -0
- package/src/generated/model/buildReleaseBodyBundleBranding.ts +78 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingLayout.ts +26 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingShape.ts +30 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingShapeDensity.ts +19 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingTheme.ts +43 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +34 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +34 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingThemeMode.ts +19 -0
- package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +47 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +74 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemAudience.ts +20 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +23 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItem.ts +91 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItem.ts +47 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemKind.ts +29 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemComplete.ts +20 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +35 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +13 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesKind.ts +19 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemOnSuccess.ts +25 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitions.ts +48 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsAction.ts +25 -0
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsPurpose.ts +30 -0
- package/src/generated/model/buildReleaseBodyBundleIdpsItem.ts +44 -0
- package/src/generated/model/buildReleaseBodyBundleIdpsItemClaimMapping.ts +12 -0
- package/src/generated/model/buildReleaseBodyBundleIdpsItemOidc.ts +65 -0
- package/src/generated/model/{createIdp200DefinitionOauth2StaticAuthorizeParameters.ts → buildReleaseBodyBundleIdpsItemOidcStaticAuthorizeParameters.ts} +1 -1
- package/src/generated/model/{createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts → buildReleaseBodyBundleIdpsItemOidcTokenEndpointAuthMethod.ts} +2 -2
- package/src/generated/model/buildReleaseBodyBundleIdpsItemProtocol.ts +17 -0
- package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioning.ts +15 -0
- package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioningCreation.ts +15 -0
- package/src/generated/model/buildReleaseBodyBundleIdpsItemVerifiedClaims.ts +12 -0
- package/src/generated/model/buildReleaseBodyBundleSchemasItem.ts +85 -0
- package/src/generated/model/buildReleaseDefault.ts +189 -0
- package/src/generated/model/{getEnvironmentByNameParams.ts → buildReleaseParams.ts} +1 -1
- package/src/generated/model/completeClaim400.ts +1 -1
- package/src/generated/model/completeClaim404.ts +1 -1
- package/src/generated/model/completeClaim409.ts +1 -1
- package/src/generated/model/completeClaim429.ts +1 -1
- package/src/generated/model/completeClaimDefault.ts +1 -1
- package/src/generated/model/createAuthAttempt201.ts +4 -4
- package/src/generated/model/createAuthAttempt201ChallengesItem.ts +3 -3
- package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +2 -2
- package/src/generated/model/createBranding201.ts +1 -1
- package/src/generated/model/createBranding201Branding.ts +4 -4
- package/src/generated/model/createBranding201BrandingShape.ts +1 -1
- package/src/generated/model/createBranding201BrandingTheme.ts +3 -3
- package/src/generated/model/createBranding201BrandingThemeDark.ts +1 -1
- package/src/generated/model/createBranding201BrandingThemeLight.ts +1 -1
- package/src/generated/model/createBranding400.ts +1 -1
- package/src/generated/model/createBrandingBody.ts +4 -4
- package/src/generated/model/createBrandingBodyShape.ts +1 -1
- package/src/generated/model/createBrandingBodyTheme.ts +3 -3
- package/src/generated/model/createBrandingBodyThemeDark.ts +1 -1
- package/src/generated/model/createBrandingBodyThemeLight.ts +1 -1
- package/src/generated/model/createBrandingDefault.ts +1 -1
- package/src/generated/model/createDeployment200.ts +29 -20
- package/src/generated/model/createDeployment200Metadata.ts +18 -27
- package/src/generated/model/createDeployment200MetadataReason.ts +6 -7
- package/src/generated/model/createDeployment200Release.ts +56 -4
- package/src/generated/model/createDeployment200ReleaseMetadata.ts +1 -1
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +3 -1
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/createDeployment200TargetsItem.ts +32 -0
- package/src/generated/model/createDeployment201.ts +29 -20
- package/src/generated/model/createDeployment201Metadata.ts +18 -27
- package/src/generated/model/createDeployment201MetadataReason.ts +6 -7
- package/src/generated/model/createDeployment201Release.ts +56 -4
- package/src/generated/model/createDeployment201ReleaseMetadata.ts +1 -1
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +3 -1
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/createDeployment201TargetsItem.ts +32 -0
- package/src/generated/model/createDeployment400.ts +27 -0
- package/src/generated/model/createDeployment400Details.ts +22 -0
- package/src/generated/model/createDeployment400DetailsKind.ts +19 -0
- package/src/generated/model/createDeployment409.ts +271 -0
- package/src/generated/model/createDeploymentBody.ts +79 -37
- package/src/generated/model/createDeploymentBodyReason.ts +6 -7
- package/src/generated/model/createDeploymentDefault.ts +2 -29
- package/src/generated/model/createFlow201.ts +2 -2
- package/src/generated/model/createFlow201Branding.ts +4 -4
- package/src/generated/model/createFlow201BrandingShape.ts +1 -1
- package/src/generated/model/createFlow201BrandingTheme.ts +3 -3
- package/src/generated/model/createFlow201BrandingThemeDark.ts +1 -1
- package/src/generated/model/createFlow201BrandingThemeLight.ts +1 -1
- package/src/generated/model/createFlow201Step.ts +12 -11
- package/src/generated/model/createFlow201StepActionsItem.ts +1 -1
- package/src/generated/model/createFlow201StepChallenge.ts +2 -2
- package/src/generated/model/createFlow201StepFieldsItem.ts +11 -2
- package/src/generated/model/createFlow201StepFieldsItemValidation.ts +1 -1
- package/src/generated/model/createFlow201StepGates.ts +2 -2
- package/src/generated/model/createFlow201StepTexts.ts +6 -1
- package/src/generated/model/createFlow400.ts +1 -1
- package/src/generated/model/createFlowBody.ts +2 -2
- package/src/generated/model/createFlowBodyHint.ts +1 -1
- package/src/generated/model/createFlowDefinition201.ts +2 -2
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +11 -7
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +8 -9
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +1 -1
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +2 -2
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +3 -4
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +2 -2
- package/src/generated/model/createFlowDefinition201UserSchema.ts +2 -2
- package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +5 -19
- package/src/generated/model/createFlowDefinition400.ts +1 -1
- package/src/generated/model/createFlowDefinitionBody.ts +1 -1
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +11 -7
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +8 -9
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +1 -1
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +2 -2
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +3 -4
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +2 -2
- package/src/generated/model/createGrant201.ts +4 -4
- package/src/generated/model/createGrant201Team.ts +1 -1
- package/src/generated/model/createGrant201User.ts +2 -2
- package/src/generated/model/createGrant201UserMetadata.ts +2 -2
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/createGrant400.ts +1 -1
- package/src/generated/model/createGrant401.ts +1 -1
- package/src/generated/model/createGrant403.ts +1 -1
- package/src/generated/model/createGrant404.ts +1 -1
- package/src/generated/model/createGrant409.ts +1 -1
- package/src/generated/model/createGrant429.ts +1 -1
- package/src/generated/model/createGrantBody.ts +3 -3
- package/src/generated/model/createIdp200.ts +1 -1
- package/src/generated/model/createIdp200Definition.ts +10 -13
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/createIdp200DefinitionOidc.ts +3 -3
- package/src/generated/model/createIdp200DefinitionProtocol.ts +1 -2
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/createIdp201.ts +1 -1
- package/src/generated/model/createIdp201Definition.ts +10 -13
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/createIdp201DefinitionOidc.ts +3 -3
- package/src/generated/model/createIdp201DefinitionProtocol.ts +1 -2
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/createIdp400.ts +1 -1
- package/src/generated/model/createIdp401.ts +1 -1
- package/src/generated/model/createIdp403.ts +1 -1
- package/src/generated/model/createIdp404.ts +1 -1
- package/src/generated/model/createIdpBody.ts +1 -1
- package/src/generated/model/createIdpBodyIdp.ts +10 -13
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
- package/src/generated/model/createIdpBodyIdpOidc.ts +3 -3
- package/src/generated/model/createIdpBodyIdpProtocol.ts +1 -2
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
- package/src/generated/model/createIdpDefault.ts +9 -0
- package/src/generated/model/createProject201.ts +7 -2
- package/src/generated/model/createProject201OriginsItem.ts +23 -0
- package/src/generated/model/createProject201OriginsItemKind.ts +15 -0
- package/src/generated/model/createProject429.ts +1 -1
- package/src/generated/model/createProjectBody.ts +7 -2
- package/src/generated/model/createProjectBodyOriginsItem.ts +23 -0
- package/src/generated/model/createProjectBodyOriginsItemKind.ts +15 -0
- package/src/generated/model/createProjectDefault.ts +27 -0
- package/src/generated/model/createRelease200.ts +56 -4
- package/src/generated/model/createRelease200Metadata.ts +1 -1
- package/src/generated/model/createRelease200PointersItem.ts +3 -1
- package/src/generated/model/createRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/createRelease201.ts +56 -4
- package/src/generated/model/createRelease201Metadata.ts +1 -1
- package/src/generated/model/createRelease201PointersItem.ts +3 -1
- package/src/generated/model/createRelease201PointersItemKind.ts +1 -0
- package/src/generated/model/createReleaseBody.ts +1 -1
- package/src/generated/model/createReleaseBodyPointersItem.ts +1 -1
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +1 -0
- package/src/generated/model/createReleaseDefault.ts +9 -0
- package/src/generated/model/createSchemaBody.ts +5 -19
- package/src/generated/model/createSession201.ts +1 -1
- package/src/generated/model/createSession201Session.ts +5 -5
- package/src/generated/model/createSession201SessionFactorsItem.ts +2 -2
- package/src/generated/model/createSession400.ts +1 -1
- package/src/generated/model/createSessionBody.ts +1 -1
- package/src/generated/model/createTeam201.ts +1 -1
- package/src/generated/model/createTeam400.ts +1 -1
- package/src/generated/model/createTeam401.ts +1 -1
- package/src/generated/model/createTeam403.ts +1 -1
- package/src/generated/model/createTeam404.ts +1 -1
- package/src/generated/model/createTeam409.ts +1 -1
- package/src/generated/model/createTeam429.ts +1 -1
- package/src/generated/model/createTeamDefault.ts +1 -1
- package/src/generated/model/createUser201.ts +3 -3
- package/src/generated/model/createUser201Metadata.ts +2 -2
- package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/createUser201TeamsItem.ts +1 -1
- package/src/generated/model/createUser400.ts +1 -1
- package/src/generated/model/createUser401.ts +1 -1
- package/src/generated/model/createUser403.ts +1 -1
- package/src/generated/model/createUser409.ts +1 -1
- package/src/generated/model/createUser500.ts +1 -1
- package/src/generated/model/createUserBody.ts +1 -1
- package/src/generated/model/deleteGrant401.ts +1 -1
- package/src/generated/model/deleteGrant403.ts +1 -1
- package/src/generated/model/deleteGrant404.ts +1 -1
- package/src/generated/model/deleteTeam400.ts +1 -1
- package/src/generated/model/deleteTeam401.ts +1 -1
- package/src/generated/model/deleteTeam403.ts +1 -1
- package/src/generated/model/deleteTeam409.ts +1 -1
- package/src/generated/model/deleteTeamDefault.ts +1 -1
- package/src/generated/model/deleteUserByID401.ts +1 -1
- package/src/generated/model/deleteUserByID404.ts +1 -1
- package/src/generated/model/deleteVariableDefault.ts +1 -1
- package/src/generated/model/deleteVariableKind.ts +15 -0
- package/src/generated/model/deleteVariableParams.ts +4 -8
- package/src/generated/model/exchangeHandoff200.ts +1 -1
- package/src/generated/model/exchangeHandoff200Session.ts +5 -5
- package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +2 -2
- package/src/generated/model/exchangeHandoff400.ts +1 -1
- package/src/generated/model/exchangeHandoff401.ts +1 -1
- package/src/generated/model/exchangeHandoffBody.ts +2 -1
- package/src/generated/model/finishUserPasskeyRegistration400.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration401.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration403.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration404.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration500.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistrationBody.ts +1 -1
- package/src/generated/model/getAuthAttempt200.ts +4 -4
- package/src/generated/model/getAuthAttempt200ChallengesItem.ts +3 -3
- package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +2 -2
- package/src/generated/model/getBrandingById200.ts +1 -1
- package/src/generated/model/getBrandingById200Branding.ts +4 -4
- package/src/generated/model/getBrandingById200BrandingShape.ts +1 -1
- package/src/generated/model/getBrandingById200BrandingTheme.ts +3 -3
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +1 -1
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +1 -1
- package/src/generated/model/getBrandingById404.ts +1 -1
- package/src/generated/model/getBrandingByIdDefault.ts +1 -1
- package/src/generated/model/getClaimStatus401.ts +1 -1
- package/src/generated/model/getClaimStatus404.ts +1 -1
- package/src/generated/model/getClaimStatus429.ts +1 -1
- package/src/generated/model/getClaimStatusDefault.ts +1 -1
- package/src/generated/model/getClaimWindow404.ts +1 -1
- package/src/generated/model/getClaimWindow429.ts +1 -1
- package/src/generated/model/getClaimWindowDefault.ts +1 -1
- package/src/generated/model/getDeploymentById200.ts +29 -20
- package/src/generated/model/getDeploymentById200Metadata.ts +18 -27
- package/src/generated/model/getDeploymentById200MetadataReason.ts +6 -7
- package/src/generated/model/getDeploymentById200Release.ts +56 -4
- package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +1 -1
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +3 -1
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/getDeploymentById200TargetsItem.ts +32 -0
- package/src/generated/model/getDeploymentByIdDefault.ts +9 -0
- package/src/generated/model/getDeploymentVariables200.ts +17 -0
- package/src/generated/model/getDeploymentVariablesDefault.ts +81 -0
- package/src/generated/model/getDeploymentVariablesParams.ts +15 -0
- package/src/generated/model/getEvent200.ts +373 -62
- package/src/generated/model/getEvent401.ts +1 -1
- package/src/generated/model/getEvent403.ts +1 -1
- package/src/generated/model/getEvent404.ts +1 -1
- package/src/generated/model/getEventDefault.ts +1 -1
- package/src/generated/model/getFlowDefinition200.ts +2 -2
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +11 -7
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +8 -9
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +1 -1
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +2 -2
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +3 -4
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +2 -2
- package/src/generated/model/getFlowDefinition200UserSchema.ts +2 -2
- package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +5 -19
- package/src/generated/model/getFlowStep200.ts +2 -2
- package/src/generated/model/getFlowStep200Branding.ts +4 -4
- package/src/generated/model/getFlowStep200BrandingShape.ts +1 -1
- package/src/generated/model/getFlowStep200BrandingTheme.ts +3 -3
- package/src/generated/model/getFlowStep200BrandingThemeDark.ts +1 -1
- package/src/generated/model/getFlowStep200BrandingThemeLight.ts +1 -1
- package/src/generated/model/getFlowStep200Step.ts +12 -11
- package/src/generated/model/getFlowStep200StepActionsItem.ts +1 -1
- package/src/generated/model/getFlowStep200StepChallenge.ts +2 -2
- package/src/generated/model/getFlowStep200StepFieldsItem.ts +11 -2
- package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +1 -1
- package/src/generated/model/getFlowStep200StepGates.ts +2 -2
- package/src/generated/model/getFlowStep200StepTexts.ts +6 -1
- package/src/generated/model/getFlowStep404.ts +1 -1
- package/src/generated/model/getFlowStep409.ts +1 -1
- package/src/generated/model/getFlowStep410.ts +1 -1
- package/src/generated/model/getFlowStepDefault.ts +28 -10
- package/src/generated/model/getGrant200.ts +4 -4
- package/src/generated/model/getGrant200Team.ts +1 -1
- package/src/generated/model/getGrant200User.ts +2 -2
- package/src/generated/model/getGrant200UserMetadata.ts +2 -2
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/getGrant401.ts +1 -1
- package/src/generated/model/getGrant403.ts +1 -1
- package/src/generated/model/getGrant404.ts +1 -1
- package/src/generated/model/getGrantParams.ts +1 -1
- package/src/generated/model/getHealth4xx.ts +1 -1
- package/src/generated/model/getHealthDefault.ts +1 -1
- package/src/generated/model/getIdpById200.ts +1 -1
- package/src/generated/model/getIdpById200Definition.ts +10 -13
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/getIdpById200DefinitionOidc.ts +3 -3
- package/src/generated/model/getIdpById200DefinitionProtocol.ts +1 -2
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/getIdpById401.ts +1 -1
- package/src/generated/model/getIdpById403.ts +1 -1
- package/src/generated/model/getIdpById404.ts +1 -1
- package/src/generated/model/getIdpRevisionById200.ts +1 -1
- package/src/generated/model/getIdpRevisionById200Definition.ts +10 -13
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +3 -3
- package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +1 -2
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/getIdpRevisionById401.ts +1 -1
- package/src/generated/model/getIdpRevisionById403.ts +1 -1
- package/src/generated/model/getIdpRevisionById404.ts +1 -1
- package/src/generated/model/getLive4xx.ts +1 -1
- package/src/generated/model/getLiveDefault.ts +1 -1
- package/src/generated/model/getMySession200.ts +5 -5
- package/src/generated/model/getMySession200FactorsItem.ts +2 -2
- package/src/generated/model/getMySession403.ts +23 -0
- package/src/generated/model/getMySessionCsrfToken403.ts +23 -0
- package/src/generated/model/getMySessionCsrfTokenDefault.ts +54 -0
- package/src/generated/model/getMySessionCsrfTokenParams.ts +26 -0
- package/src/generated/model/getMySessionDefault.ts +9 -0
- package/src/generated/model/getMySessionParams.ts +26 -0
- package/src/generated/model/getMyUser200.ts +3 -3
- package/src/generated/model/getMyUser200Metadata.ts +2 -2
- package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/getMyUser200TeamsItem.ts +1 -1
- package/src/generated/model/getMyUser401.ts +1 -1
- package/src/generated/model/getMyUser403.ts +23 -0
- package/src/generated/model/getMyUserDefault.ts +1 -1
- package/src/generated/model/getMyUserParams.ts +26 -0
- package/src/generated/model/getMyUserSchema200.ts +31 -0
- package/src/generated/model/getMyUserSchema200Metadata.ts +12 -0
- package/src/generated/model/getMyUserSchema200Schema.ts +83 -0
- package/src/generated/model/getMyUserSchema401.ts +23 -0
- package/src/generated/model/getMyUserSchema403.ts +23 -0
- package/src/generated/model/getMyUserSchema404.ts +23 -0
- package/src/generated/model/{listEnvironmentsDefault.ts → getMyUserSchemaDefault.ts} +5 -5
- package/src/generated/model/getMyUserSchemaParams.ts +26 -0
- package/src/generated/model/getProject200.ts +8 -3
- package/src/generated/model/getProject200OriginsItem.ts +23 -0
- package/src/generated/model/getProject200OriginsItemKind.ts +15 -0
- package/src/generated/model/getProject200PasswordHash.ts +2 -2
- package/src/generated/model/getProject200PasswordHashParams.ts +1 -1
- package/src/generated/model/getProject401.ts +1 -1
- package/src/generated/model/getProject404.ts +1 -1
- package/src/generated/model/getReady4xx.ts +1 -1
- package/src/generated/model/getReadyDefault.ts +1 -1
- package/src/generated/model/getReleaseById200.ts +56 -4
- package/src/generated/model/getReleaseById200Metadata.ts +1 -1
- package/src/generated/model/getReleaseById200PointersItem.ts +3 -1
- package/src/generated/model/getReleaseById200PointersItemKind.ts +1 -0
- package/src/generated/model/getSchemaById200.ts +2 -2
- package/src/generated/model/getSchemaById200Schema.ts +5 -19
- package/src/generated/model/getSession200.ts +5 -5
- package/src/generated/model/getSession200FactorsItem.ts +2 -2
- package/src/generated/model/getSession401.ts +1 -1
- package/src/generated/model/getSession403.ts +1 -1
- package/src/generated/model/getSession404.ts +1 -1
- package/src/generated/model/getTeam200.ts +1 -1
- package/src/generated/model/getTeam401.ts +1 -1
- package/src/generated/model/getTeam404.ts +1 -1
- package/src/generated/model/getTeamDefault.ts +1 -1
- package/src/generated/model/getUserByID200.ts +3 -3
- package/src/generated/model/getUserByID200Metadata.ts +2 -2
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/getUserByID200TeamsItem.ts +1 -1
- package/src/generated/model/getUserByID401.ts +1 -1
- package/src/generated/model/getUserByID404.ts +1 -1
- package/src/generated/model/getVariable200.ts +22 -9
- package/src/generated/model/getVariable200Preview.ts +20 -0
- package/src/generated/model/getVariable200Primary.ts +20 -0
- package/src/generated/model/getVariableDefault.ts +0 -9
- package/src/generated/model/getVariableKind.ts +15 -0
- package/src/generated/model/getVariableParams.ts +4 -8
- package/src/generated/model/getVariables200.ts +23 -10
- package/src/generated/model/getVariables200Preview.ts +20 -0
- package/src/generated/model/getVariables200Primary.ts +20 -0
- package/src/generated/model/getVariablesDefault.ts +0 -9
- package/src/generated/model/getVariablesKind.ts +15 -0
- package/src/generated/model/getVariablesParams.ts +4 -8
- package/src/generated/model/index.ts +1299 -1155
- package/src/generated/model/initClaim401.ts +1 -1
- package/src/generated/model/initClaim409.ts +1 -1
- package/src/generated/model/initClaimDefault.ts +1 -1
- package/src/generated/model/issueChallenge201.ts +3 -3
- package/src/generated/model/issueChallengeBody.ts +2 -2
- package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +1 -1
- package/src/generated/model/listBrandingDefault.ts +1 -1
- package/src/generated/model/listDeployments200.ts +4 -5
- package/src/generated/model/listDeployments200DeploymentsItem.ts +29 -20
- package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +18 -27
- package/src/generated/model/listDeployments200DeploymentsItemMetadataReason.ts +6 -7
- package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +56 -4
- package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +1 -1
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +3 -1
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +1 -0
- package/src/generated/model/listDeployments200DeploymentsItemTargetsItem.ts +32 -0
- package/src/generated/model/listDeploymentsDefault.ts +2 -2
- package/src/generated/model/listDeploymentsParams.ts +14 -9
- package/src/generated/model/listEvents200.ts +1 -1
- package/src/generated/model/listEvents200DataItem.ts +373 -62
- package/src/generated/model/listEvents400.ts +1 -1
- package/src/generated/model/listEvents401.ts +1 -1
- package/src/generated/model/listEvents403.ts +1 -1
- package/src/generated/model/listEventsDefault.ts +1 -1
- package/src/generated/model/listEventsParams.ts +2 -2
- package/src/generated/model/listFlowDefinitions200.ts +1 -1
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +11 -7
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +8 -9
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +1 -1
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemOnSuccess.ts +3 -4
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +5 -19
- package/src/generated/model/listFlowDefinitions400.ts +1 -1
- package/src/generated/model/listFlowDefinitionsParams.ts +4 -4
- package/src/generated/model/listIdpRevisions200.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +10 -13
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +3 -3
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +1 -2
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/listIdpRevisions401.ts +1 -1
- package/src/generated/model/listIdpRevisions403.ts +1 -1
- package/src/generated/model/listIdpRevisions404.ts +1 -1
- package/src/generated/model/listMyProjects200.ts +1 -1
- package/src/generated/model/listMyProjects200ProjectsItem.ts +8 -3
- package/src/generated/model/listMyProjects200ProjectsItemOriginsItem.ts +23 -0
- package/src/generated/model/listMyProjects200ProjectsItemOriginsItemKind.ts +15 -0
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +2 -2
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +1 -1
- package/src/generated/model/listMyProjects400.ts +1 -1
- package/src/generated/model/listMyProjects403.ts +23 -0
- package/src/generated/model/listMyProjects500.ts +1 -1
- package/src/generated/model/listMyProjectsDefault.ts +9 -0
- package/src/generated/model/listMyProjectsParams.ts +16 -0
- package/src/generated/model/{listEnvironments200.ts → listMyTeams200.ts} +4 -4
- package/src/generated/model/listMyTeams200TeamsItem.ts +33 -0
- package/src/generated/model/listMyTeams200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/{exchangeHandoff410.ts → listMyTeams400.ts} +3 -3
- package/src/generated/model/listMyTeams400Details.ts +12 -0
- package/src/generated/model/listMyTeams401.ts +23 -0
- package/src/generated/model/listMyTeams403.ts +23 -0
- package/src/generated/model/{getEnvironmentByNameDefault.ts → listMyTeamsDefault.ts} +5 -5
- package/src/generated/model/listMyTeamsParams.ts +39 -0
- package/src/generated/model/listPreviews200.ts +20 -0
- package/src/generated/model/listPreviews200PreviewsItem.ts +38 -0
- package/src/generated/model/listPreviewsDefault.ts +63 -0
- package/src/generated/model/{listEnvironmentsParams.ts → listPreviewsParams.ts} +1 -6
- package/src/generated/model/listReleases200.ts +1 -1
- package/src/generated/model/listReleases200ReleasesItem.ts +43 -1
- package/src/generated/model/listReleases200ReleasesItemMetadata.ts +1 -1
- package/src/generated/model/listReleasesParams.ts +40 -0
- package/src/generated/model/listSchemas200.ts +1 -1
- package/src/generated/model/listSchemas200SchemasItem.ts +2 -2
- package/src/generated/model/listSchemas200SchemasItemSchema.ts +5 -19
- package/src/generated/model/listSchemasParams.ts +2 -2
- package/src/generated/model/listUserIdentityLinks200.ts +20 -0
- package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +22 -0
- package/src/generated/model/listUserIdentityLinks400.ts +20 -0
- package/src/generated/model/listUserIdentityLinks400Details.ts +12 -0
- package/src/generated/model/listUserIdentityLinks401.ts +20 -0
- package/src/generated/model/listUserIdentityLinks401Details.ts +12 -0
- package/src/generated/model/listUserIdentityLinks403.ts +20 -0
- package/src/generated/model/listUserIdentityLinks403Details.ts +12 -0
- package/src/generated/model/listUserIdentityLinks404.ts +20 -0
- package/src/generated/model/listUserIdentityLinks404Details.ts +12 -0
- package/src/generated/model/listUserIdentityLinks500.ts +20 -0
- package/src/generated/model/listUserIdentityLinks500Details.ts +12 -0
- package/src/generated/model/listUserIdentityLinksDefault.ts +54 -0
- package/src/generated/model/listUserIdentityLinksParams.ts +23 -0
- package/src/generated/model/listUserPasskeys200.ts +1 -1
- package/src/generated/model/listUserPasskeys400.ts +1 -1
- package/src/generated/model/listUserPasskeys401.ts +1 -1
- package/src/generated/model/listUserPasskeys403.ts +1 -1
- package/src/generated/model/listUserPasskeys404.ts +1 -1
- package/src/generated/model/listUserPasskeys500.ts +1 -1
- package/src/generated/model/listUserTeams200.ts +1 -1
- package/src/generated/model/listUserTeams200TeamsItem.ts +1 -1
- package/src/generated/model/listUserTeams400.ts +1 -1
- package/src/generated/model/listUserTeams401.ts +1 -1
- package/src/generated/model/listUserTeams403.ts +1 -1
- package/src/generated/model/listUserTeams404.ts +1 -1
- package/src/generated/model/listUserTeams500.ts +1 -1
- package/src/generated/model/patchMyUser200.ts +3 -3
- package/src/generated/model/patchMyUser200Metadata.ts +2 -2
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/patchMyUser200TeamsItem.ts +1 -1
- package/src/generated/model/patchMyUser400.ts +1 -1
- package/src/generated/model/patchMyUser401.ts +1 -1
- package/src/generated/model/patchMyUser403.ts +20 -0
- package/src/generated/model/patchMyUser403Details.ts +12 -0
- package/src/generated/model/patchMyUser409.ts +1 -1
- package/src/generated/model/patchMyUserBody.ts +1 -1
- package/src/generated/model/patchMyUserDefault.ts +1 -1
- package/src/generated/model/patchMyUserParams.ts +26 -0
- package/src/generated/model/patchProject200.ts +8 -3
- package/src/generated/model/patchProject200OriginsItem.ts +23 -0
- package/src/generated/model/patchProject200OriginsItemKind.ts +15 -0
- package/src/generated/model/patchProject200PasswordHash.ts +2 -2
- package/src/generated/model/patchProject200PasswordHashParams.ts +1 -1
- package/src/generated/model/patchProject400.ts +1 -1
- package/src/generated/model/patchProject401.ts +1 -1
- package/src/generated/model/patchProject404.ts +1 -1
- package/src/generated/model/patchProjectBody.ts +1 -1
- package/src/generated/model/patchProjectBodyPasswordHash.ts +2 -2
- package/src/generated/model/patchProjectBodyPasswordHashParams.ts +1 -1
- package/src/generated/model/patchUserByID200.ts +3 -3
- package/src/generated/model/patchUserByID200Metadata.ts +2 -2
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/patchUserByID200TeamsItem.ts +1 -1
- package/src/generated/model/patchUserByID400.ts +1 -1
- package/src/generated/model/patchUserByID401.ts +1 -1
- package/src/generated/model/patchUserByID403.ts +1 -1
- package/src/generated/model/patchUserByID404.ts +1 -1
- package/src/generated/model/patchUserByID409.ts +1 -1
- package/src/generated/model/patchUserByIDBody.ts +12 -5
- package/src/generated/model/patchUserByIDDefault.ts +9 -0
- package/src/generated/model/queryGrants200.ts +1 -1
- package/src/generated/model/queryGrants200GrantsItem.ts +4 -4
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +1 -1
- package/src/generated/model/queryGrants200GrantsItemUser.ts +2 -2
- package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +2 -2
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/queryGrants400.ts +1 -1
- package/src/generated/model/queryGrants401.ts +1 -1
- package/src/generated/model/queryGrants403.ts +1 -1
- package/src/generated/model/queryGrantsBody.ts +3 -3
- package/src/generated/model/queryGrantsBodyFilterItem.ts +2 -2
- package/src/generated/model/queryGrantsBodySorting.ts +2 -2
- package/src/generated/model/queryIdps200.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItem.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItemDefinition.ts +10 -13
- package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +3 -3
- package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +1 -2
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
- package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
- package/src/generated/model/queryIdps400.ts +1 -1
- package/src/generated/model/queryIdps401.ts +1 -1
- package/src/generated/model/queryIdps403.ts +1 -1
- package/src/generated/model/queryIdps404.ts +1 -1
- package/src/generated/model/queryIdpsBody.ts +2 -2
- package/src/generated/model/queryIdpsBodyFilterItem.ts +2 -2
- package/src/generated/model/queryIdpsBodySorting.ts +2 -2
- package/src/generated/model/queryIdpsDefault.ts +9 -0
- package/src/generated/model/queryProjects200.ts +1 -1
- package/src/generated/model/queryProjects200ProjectsItem.ts +8 -3
- package/src/generated/model/queryProjects200ProjectsItemOriginsItem.ts +23 -0
- package/src/generated/model/queryProjects200ProjectsItemOriginsItemKind.ts +15 -0
- package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +2 -2
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +1 -1
- package/src/generated/model/queryProjects400.ts +1 -1
- package/src/generated/model/queryProjects401.ts +1 -1
- package/src/generated/model/queryProjects403.ts +1 -1
- package/src/generated/model/queryProjects429.ts +1 -1
- package/src/generated/model/queryProjectsBody.ts +2 -2
- package/src/generated/model/queryProjectsBodyFilterItem.ts +2 -2
- package/src/generated/model/queryProjectsBodySorting.ts +2 -2
- package/src/generated/model/querySessions200.ts +1 -1
- package/src/generated/model/querySessions200SessionsItem.ts +5 -5
- package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +2 -2
- package/src/generated/model/querySessions400.ts +1 -1
- package/src/generated/model/querySessions401.ts +1 -1
- package/src/generated/model/querySessions403.ts +1 -1
- package/src/generated/model/querySessionsBody.ts +2 -2
- package/src/generated/model/querySessionsBodyFilterItem.ts +2 -2
- package/src/generated/model/querySessionsBodySorting.ts +2 -2
- package/src/generated/model/queryTeams200.ts +1 -1
- package/src/generated/model/queryTeams200TeamsItem.ts +1 -1
- package/src/generated/model/queryTeams400.ts +1 -1
- package/src/generated/model/queryTeams401.ts +1 -1
- package/src/generated/model/queryTeams403.ts +1 -1
- package/src/generated/model/queryTeams404.ts +1 -1
- package/src/generated/model/queryTeams429.ts +1 -1
- package/src/generated/model/queryTeamsBody.ts +2 -2
- package/src/generated/model/queryTeamsBodyFilterItem.ts +2 -2
- package/src/generated/model/queryTeamsBodySorting.ts +2 -2
- package/src/generated/model/queryTeamsDefault.ts +1 -1
- package/src/generated/model/queryUsers200.ts +1 -1
- package/src/generated/model/queryUsers200UsersItem.ts +3 -3
- package/src/generated/model/queryUsers200UsersItemMetadata.ts +2 -2
- package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +1 -1
- package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +1 -1
- package/src/generated/model/queryUsers400.ts +1 -1
- package/src/generated/model/queryUsers401.ts +1 -1
- package/src/generated/model/queryUsers403.ts +1 -1
- package/src/generated/model/queryUsersBody.ts +3 -3
- package/src/generated/model/queryUsersBodyFilterItem.ts +2 -2
- package/src/generated/model/queryUsersBodySorting.ts +2 -2
- package/src/generated/model/removeOriginBody.ts +15 -0
- package/src/generated/model/removeOriginDefault.ts +81 -0
- package/src/generated/model/removePreviewBody.ts +23 -0
- package/src/generated/model/removePreviewDefault.ts +72 -0
- package/src/generated/model/revokeMySession403.ts +20 -0
- package/src/generated/model/{exchangeHandoff410Details.ts → revokeMySession403Details.ts} +1 -1
- package/src/generated/model/revokeMySessionDefault.ts +9 -0
- package/src/generated/model/revokeMySessionParams.ts +26 -0
- package/src/generated/model/revokeRelease200.ts +96 -0
- package/src/generated/model/revokeRelease200Metadata.ts +43 -0
- package/src/generated/model/revokeRelease200MetadataCreatedByType.ts +20 -0
- package/src/generated/model/revokeRelease200PointersItem.ts +58 -0
- package/src/generated/model/revokeRelease200PointersItemKind.ts +27 -0
- package/src/generated/model/revokeRelease409.ts +19 -0
- package/src/generated/model/revokeRelease409Details.ts +16 -0
- package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +17 -0
- package/src/generated/model/revokeReleaseDefault.ts +45 -0
- package/src/generated/model/revokeReleaseParams.ts +15 -0
- package/src/generated/model/revokeSession401.ts +1 -1
- package/src/generated/model/revokeSession403.ts +1 -1
- package/src/generated/model/rollbackDeployment200.ts +71 -0
- package/src/generated/model/rollbackDeployment200Metadata.ts +49 -0
- package/src/generated/model/rollbackDeployment200MetadataDeployedByType.ts +20 -0
- package/src/generated/model/rollbackDeployment200MetadataReason.ts +25 -0
- package/src/generated/model/rollbackDeployment200Release.ts +96 -0
- package/src/generated/model/rollbackDeployment200ReleaseMetadata.ts +43 -0
- package/src/generated/model/rollbackDeployment200ReleaseMetadataCreatedByType.ts +20 -0
- package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +58 -0
- package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +27 -0
- package/src/generated/model/rollbackDeployment200TargetsItem.ts +32 -0
- package/src/generated/model/rollbackDeployment201.ts +71 -0
- package/src/generated/model/rollbackDeployment201Metadata.ts +49 -0
- package/src/generated/model/rollbackDeployment201MetadataDeployedByType.ts +20 -0
- package/src/generated/model/rollbackDeployment201MetadataReason.ts +25 -0
- package/src/generated/model/rollbackDeployment201Release.ts +96 -0
- package/src/generated/model/rollbackDeployment201ReleaseMetadata.ts +43 -0
- package/src/generated/model/rollbackDeployment201ReleaseMetadataCreatedByType.ts +20 -0
- package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +58 -0
- package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +27 -0
- package/src/generated/model/rollbackDeployment201TargetsItem.ts +32 -0
- package/src/generated/model/rollbackDeployment400.ts +20 -0
- package/src/generated/model/rollbackDeployment400Details.ts +12 -0
- package/src/generated/model/rollbackDeployment403.ts +20 -0
- package/src/generated/model/rollbackDeployment403Details.ts +12 -0
- package/src/generated/model/rollbackDeployment409.ts +271 -0
- package/src/generated/model/rollbackDeploymentBody.ts +25 -0
- package/src/generated/model/rollbackDeploymentDefault.ts +72 -0
- package/src/generated/model/rollbackDeploymentParams.ts +15 -0
- package/src/generated/model/setUserPassword400.ts +1 -1
- package/src/generated/model/setUserPassword404.ts +1 -1
- package/src/generated/model/setUserPassword500.ts +1 -1
- package/src/generated/model/submitFlowStep200.ts +2 -2
- package/src/generated/model/submitFlowStep200Branding.ts +4 -4
- package/src/generated/model/submitFlowStep200BrandingShape.ts +1 -1
- package/src/generated/model/submitFlowStep200BrandingTheme.ts +3 -3
- package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +1 -1
- package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +1 -1
- package/src/generated/model/submitFlowStep200Step.ts +12 -11
- package/src/generated/model/submitFlowStep200StepActionsItem.ts +1 -1
- package/src/generated/model/submitFlowStep200StepChallenge.ts +2 -2
- package/src/generated/model/submitFlowStep200StepFieldsItem.ts +11 -2
- package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +1 -1
- package/src/generated/model/submitFlowStep200StepGates.ts +2 -2
- package/src/generated/model/submitFlowStep200StepTexts.ts +6 -1
- package/src/generated/model/submitFlowStep400.ts +2 -2
- package/src/generated/model/submitFlowStep400Branding.ts +4 -4
- package/src/generated/model/submitFlowStep400BrandingShape.ts +1 -1
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +3 -3
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +1 -1
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +1 -1
- package/src/generated/model/submitFlowStep400Step.ts +12 -11
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +1 -1
- package/src/generated/model/submitFlowStep400StepChallenge.ts +2 -2
- package/src/generated/model/submitFlowStep400StepFieldsItem.ts +11 -2
- package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +1 -1
- package/src/generated/model/submitFlowStep400StepGates.ts +2 -2
- package/src/generated/model/submitFlowStep400StepTexts.ts +6 -1
- package/src/generated/model/submitFlowStep409.ts +1 -1
- package/src/generated/model/submitFlowStepBody.ts +8 -3
- package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +1 -1
- package/src/generated/model/submitFlowStepDefault.ts +45 -0
- package/src/generated/model/updateTeam200.ts +1 -1
- package/src/generated/model/updateTeam400.ts +1 -1
- package/src/generated/model/updateTeam401.ts +1 -1
- package/src/generated/model/updateTeam403.ts +1 -1
- package/src/generated/model/updateTeam404.ts +1 -1
- package/src/generated/model/updateTeam409.ts +1 -1
- package/src/generated/model/updateTeamDefault.ts +1 -1
- package/src/generated/model/updateVariables200.ts +23 -10
- package/src/generated/model/updateVariables200Preview.ts +20 -0
- package/src/generated/model/updateVariables200Primary.ts +20 -0
- package/src/generated/model/updateVariablesBody.ts +8 -14
- package/src/generated/model/updateVariablesDefault.ts +19 -1
- package/src/generated/model/updateVariablesKind.ts +15 -0
- package/src/generated/model/updateVariablesParams.ts +4 -8
- package/src/generated/model/userProperty.ts +39 -0
- package/src/generated/model/userPropertyProperties.ts +14 -0
- package/src/generated/model/userPropertyXUnique.ts +19 -0
- package/src/generated/model/verifyChallengeProof200.ts +4 -4
- package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +3 -3
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +2 -2
- package/src/runtime/api-factory.ts +1 -1
- package/src/runtime/base-url.spec.ts +2 -2
- package/dist/index-C1weUrQx.d.mts.map +0 -1
- package/dist/zitadelNextGen-KWjI2Uyj.d.mts.map +0 -1
- package/src/generated/model/createIdp200DefinitionOauth2.ts +0 -55
- package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdp201DefinitionOauth2.ts +0 -55
- package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdpBodyIdpOauth2.ts +0 -55
- package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/getEnvironmentByName200.ts +0 -41
- package/src/generated/model/getEnvironmentByName200CurrentDeployment.ts +0 -38
- package/src/generated/model/getEnvironmentByName200CurrentDeploymentReason.ts +0 -26
- package/src/generated/model/getIdpById200DefinitionOauth2.ts +0 -55
- package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +0 -55
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/listEnvironments200EnvironmentsItem.ts +0 -41
- package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeployment.ts +0 -38
- package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeploymentReason.ts +0 -26
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +0 -55
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +0 -55
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +0 -17
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +0 -18
|
@@ -30,6 +30,11 @@ export const GetReadyResponse = zod.string()
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
+
* Creates a user whose attributes satisfy the user schema the request names.
|
|
34
|
+
*
|
|
35
|
+
* The server assigns the user's id. With `team_id`, the user also becomes an
|
|
36
|
+
* active member of that team. A value the schema marks unique that another
|
|
37
|
+
* user already holds is refused with `409`.
|
|
33
38
|
* @summary Create user
|
|
34
39
|
*/
|
|
35
40
|
export const createUserQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -159,13 +164,17 @@ export const QueryUsersResponse = zod.object({
|
|
|
159
164
|
|
|
160
165
|
|
|
161
166
|
/**
|
|
167
|
+
* Returns a user by its id, with the attributes its schema defines.
|
|
168
|
+
*
|
|
169
|
+
* With `team_id`, the user is returned only while they are an active member of
|
|
170
|
+
* that team.
|
|
162
171
|
* @summary Get user by ID
|
|
163
172
|
*/
|
|
164
173
|
export const getUserByIDPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
165
174
|
|
|
166
175
|
|
|
167
176
|
export const GetUserByIDParams = zod.object({
|
|
168
|
-
"user_id": zod.string().regex(getUserByIDPathUserIdRegExp)
|
|
177
|
+
"user_id": zod.string().regex(getUserByIDPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
169
178
|
})
|
|
170
179
|
|
|
171
180
|
export const getUserByIDQueryTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -220,16 +229,16 @@ export const patchUserByIDPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$')
|
|
|
220
229
|
|
|
221
230
|
|
|
222
231
|
export const PatchUserByIDParams = zod.object({
|
|
223
|
-
"user_id": zod.string().regex(patchUserByIDPathUserIdRegExp)
|
|
232
|
+
"user_id": zod.string().regex(patchUserByIDPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
224
233
|
})
|
|
225
234
|
|
|
226
235
|
|
|
227
236
|
|
|
228
237
|
|
|
229
238
|
export const PatchUserByIDBody = zod.object({
|
|
230
|
-
"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
|
|
239
|
+
"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`\nand be a revision of the user\'s current schema.\n'),
|
|
231
240
|
"attributes": zod.record(zod.string(), zod.unknown()).optional().describe('The changed attributes only. `null` deletes an attribute; omitted\nkeys are untouched.\n')
|
|
232
|
-
}).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
|
|
241
|
+
}).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 target must be a revision of the user\'s current\nschema (the same `objectType`), newer or older; a schema of another\n`objectType` is rejected with `user.invalid`. A schema stored without an\n`objectType` is a revision of nothing, so a user cannot move to or from\none. The request must be\nself-contained: merged attributes are validated against the new schema\nbefore commit, and every uniqueness claim is recomputed under the new\nschema\'s annotations. Values removed by an earlier move are not restored\nby moving back.\n')
|
|
233
242
|
|
|
234
243
|
export const patchUserByIDResponseIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
235
244
|
|
|
@@ -266,26 +275,68 @@ export const PatchUserByIDResponse = zod.object({
|
|
|
266
275
|
|
|
267
276
|
|
|
268
277
|
/**
|
|
278
|
+
* Deletes a user and removes them from every team they belong to.
|
|
279
|
+
*
|
|
280
|
+
* The user is removed, not deactivated, and the deletion emits `user.deleted`.
|
|
281
|
+
* With a project secret the request is idempotent: deleting a user that exists
|
|
282
|
+
* in no project succeeds without changing anything.
|
|
269
283
|
* @summary Delete user by ID
|
|
270
284
|
*/
|
|
271
285
|
export const deleteUserByIDPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
272
286
|
|
|
273
287
|
|
|
274
288
|
export const DeleteUserByIDParams = zod.object({
|
|
275
|
-
"user_id": zod.string().regex(deleteUserByIDPathUserIdRegExp)
|
|
289
|
+
"user_id": zod.string().regex(deleteUserByIDPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
276
290
|
})
|
|
277
291
|
|
|
278
292
|
export const DeleteUserByIDResponse = zod.void()
|
|
279
293
|
|
|
280
294
|
|
|
281
295
|
/**
|
|
296
|
+
* The identity provider accounts a sign-in linked to the user, oldest first.
|
|
297
|
+
* The provider's subject and claims are never returned.
|
|
298
|
+
* @summary List the provider accounts linked to a user
|
|
299
|
+
*/
|
|
300
|
+
export const listUserIdentityLinksPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
export const ListUserIdentityLinksParams = zod.object({
|
|
304
|
+
"user_id": zod.string().regex(listUserIdentityLinksPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
305
|
+
})
|
|
306
|
+
|
|
307
|
+
export const listUserIdentityLinksQueryLimitDefault = 20;
|
|
308
|
+
export const listUserIdentityLinksQueryLimitMax = 100;
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
export const ListUserIdentityLinksQueryParams = zod.strictObject({
|
|
313
|
+
"limit": zod.int().min(1).max(listUserIdentityLinksQueryLimitMax).default(listUserIdentityLinksQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
314
|
+
"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')
|
|
315
|
+
})
|
|
316
|
+
|
|
317
|
+
export const ListUserIdentityLinksResponse = zod.object({
|
|
318
|
+
"identity_links": zod.array(zod.object({
|
|
319
|
+
"id": zod.string().describe('The unique identifier of the link.'),
|
|
320
|
+
"connection_id": zod.string().describe('The IdP connection the account signs in through, by its id rather than a\nrevision id; `GET /idps/{id}` resolves it.\n'),
|
|
321
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the account was linked to the user.')
|
|
322
|
+
}).describe('One provider account linked to the user.')),
|
|
323
|
+
"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')
|
|
324
|
+
}).describe('Response containing the provider accounts linked to the user.')
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Returns the passkeys registered for a user, newest first, paginated with a
|
|
329
|
+
* cursor.
|
|
330
|
+
*
|
|
331
|
+
* Each passkey carries its id, its name and when it was registered, never the
|
|
332
|
+
* credential itself.
|
|
282
333
|
* @summary List user passkeys
|
|
283
334
|
*/
|
|
284
335
|
export const listUserPasskeysPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
285
336
|
|
|
286
337
|
|
|
287
338
|
export const ListUserPasskeysParams = zod.object({
|
|
288
|
-
"user_id": zod.string().regex(listUserPasskeysPathUserIdRegExp)
|
|
339
|
+
"user_id": zod.string().regex(listUserPasskeysPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
289
340
|
})
|
|
290
341
|
|
|
291
342
|
export const listUserPasskeysQueryLimitDefault = 20;
|
|
@@ -320,7 +371,7 @@ export const beginUserPasskeyRegistrationPathUserIdRegExp = new RegExp('^user_[a
|
|
|
320
371
|
|
|
321
372
|
|
|
322
373
|
export const BeginUserPasskeyRegistrationParams = zod.object({
|
|
323
|
-
"user_id": zod.string().regex(beginUserPasskeyRegistrationPathUserIdRegExp)
|
|
374
|
+
"user_id": zod.string().regex(beginUserPasskeyRegistrationPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
324
375
|
})
|
|
325
376
|
|
|
326
377
|
|
|
@@ -353,8 +404,8 @@ export const finishUserPasskeyRegistrationPathUserIdRegExp = new RegExp('^user_[
|
|
|
353
404
|
|
|
354
405
|
|
|
355
406
|
export const FinishUserPasskeyRegistrationParams = zod.object({
|
|
356
|
-
"user_id": zod.string().regex(finishUserPasskeyRegistrationPathUserIdRegExp),
|
|
357
|
-
"registration_id": zod.string()
|
|
407
|
+
"user_id": zod.string().regex(finishUserPasskeyRegistrationPathUserIdRegExp).describe('The unique identifier of the user.'),
|
|
408
|
+
"registration_id": zod.string().describe('The ceremony identifier returned by begin.')
|
|
358
409
|
})
|
|
359
410
|
|
|
360
411
|
export const FinishUserPasskeyRegistrationBody = zod.object({
|
|
@@ -370,13 +421,18 @@ export const FinishUserPasskeyRegistrationResponse = zod.object({
|
|
|
370
421
|
|
|
371
422
|
|
|
372
423
|
/**
|
|
424
|
+
* Sets a user's password, hashed with the project's current password hashing
|
|
425
|
+
* policy.
|
|
426
|
+
*
|
|
427
|
+
* The new password replaces the current one, and setting it emits
|
|
428
|
+
* `auth.factor.password.set`.
|
|
373
429
|
* @summary Set user password
|
|
374
430
|
*/
|
|
375
431
|
export const setUserPasswordPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
376
432
|
|
|
377
433
|
|
|
378
434
|
export const SetUserPasswordParams = zod.object({
|
|
379
|
-
"user_id": zod.string().regex(setUserPasswordPathUserIdRegExp)
|
|
435
|
+
"user_id": zod.string().regex(setUserPasswordPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
380
436
|
})
|
|
381
437
|
|
|
382
438
|
export const SetUserPasswordBody = zod.object({
|
|
@@ -400,7 +456,7 @@ export const listUserTeamsPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$')
|
|
|
400
456
|
|
|
401
457
|
|
|
402
458
|
export const ListUserTeamsParams = zod.object({
|
|
403
|
-
"user_id": zod.string().regex(listUserTeamsPathUserIdRegExp)
|
|
459
|
+
"user_id": zod.string().regex(listUserTeamsPathUserIdRegExp).describe('The unique identifier of the user.')
|
|
404
460
|
})
|
|
405
461
|
|
|
406
462
|
export const listUserTeamsQueryLimitDefault = 20;
|
|
@@ -426,8 +482,22 @@ export const ListUserTeamsResponse = zod.object({
|
|
|
426
482
|
|
|
427
483
|
|
|
428
484
|
/**
|
|
485
|
+
* Returns the user signed in to the session that authenticates the request.
|
|
486
|
+
*
|
|
487
|
+
* The project and the user both come from the session cookie, so a caller only
|
|
488
|
+
* ever reads their own user.
|
|
489
|
+
*
|
|
490
|
+
* With `project_id`, the user is returned only when the session belongs to
|
|
491
|
+
* that project.
|
|
429
492
|
* @summary Get my user information
|
|
430
493
|
*/
|
|
494
|
+
export const getMyUserQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
export const GetMyUserQueryParams = zod.strictObject({
|
|
498
|
+
"project_id": zod.string().regex(getMyUserQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
499
|
+
})
|
|
500
|
+
|
|
431
501
|
export const getMyUserResponseIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
432
502
|
|
|
433
503
|
|
|
@@ -466,8 +536,18 @@ export const GetMyUserResponse = zod.object({
|
|
|
466
536
|
* Partially updates the caller's own schema-defined attributes. The merged
|
|
467
537
|
* result is validated against the user's schema before commit. Concurrent
|
|
468
538
|
* writes are last-write-wins.
|
|
539
|
+
*
|
|
540
|
+
* With `project_id`, the user is updated only when the session belongs to
|
|
541
|
+
* that project.
|
|
469
542
|
* @summary Update my user information
|
|
470
543
|
*/
|
|
544
|
+
export const patchMyUserQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
export const PatchMyUserQueryParams = zod.strictObject({
|
|
548
|
+
"project_id": zod.string().regex(patchMyUserQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
549
|
+
})
|
|
550
|
+
|
|
471
551
|
export const PatchMyUserBody = zod.object({
|
|
472
552
|
"attributes": zod.record(zod.string(), zod.unknown()).describe('The changed attributes only. `null` deletes an attribute; omitted\nkeys are untouched.\n')
|
|
473
553
|
}).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')
|
|
@@ -514,23 +594,32 @@ export const PatchMyUserResponse = zod.object({
|
|
|
514
594
|
* This is not the same question as `queryProjects`, which answers with the one
|
|
515
595
|
* project the calling credential is bound to. Here the session is the caller
|
|
516
596
|
* and the grants are the answer, so the list spans projects.
|
|
597
|
+
*
|
|
598
|
+
* With `project_id`, the projects are listed only when the session belongs to
|
|
599
|
+
* that project. It names the project the session was signed in to, not one to
|
|
600
|
+
* list.
|
|
517
601
|
* @summary List the projects I can act on
|
|
518
602
|
*/
|
|
519
603
|
export const listMyProjectsQueryLimitDefault = 20;
|
|
520
604
|
export const listMyProjectsQueryLimitMax = 100;
|
|
521
605
|
|
|
606
|
+
export const listMyProjectsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
522
607
|
|
|
523
608
|
|
|
524
609
|
export const ListMyProjectsQueryParams = zod.strictObject({
|
|
525
610
|
"limit": zod.int().min(1).max(listMyProjectsQueryLimitMax).default(listMyProjectsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
526
|
-
"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')
|
|
611
|
+
"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'),
|
|
612
|
+
"project_id": zod.string().regex(listMyProjectsQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
527
613
|
})
|
|
528
614
|
|
|
529
615
|
export const ListMyProjectsResponse = zod.object({
|
|
530
616
|
"projects": zod.array(zod.object({
|
|
531
617
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
532
618
|
"name": zod.string().describe('The name of the project.'),
|
|
533
|
-
"
|
|
619
|
+
"origins": zod.array(zod.object({
|
|
620
|
+
"pattern": zod.string(),
|
|
621
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
622
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).describe('The project\'s origins. An empty list means every origin is admitted\nuntil the first pattern is added. Loopback origins are admitted without\na pattern.\n'),
|
|
534
623
|
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the project was created.'),
|
|
535
624
|
"updated_at": zod.iso.datetime({"offset":true}).describe('The time when the project was last updated.'),
|
|
536
625
|
"password_hash": zod.union([zod.object({
|
|
@@ -549,6 +638,104 @@ export const ListMyProjectsResponse = zod.object({
|
|
|
549
638
|
}).describe('Paginated list of projects, ordered by project id.')
|
|
550
639
|
|
|
551
640
|
|
|
641
|
+
/**
|
|
642
|
+
* The schema the signed-in user's own record is validated against.
|
|
643
|
+
*
|
|
644
|
+
* With `project_id`, the schema is returned only when the session belongs to
|
|
645
|
+
* that project.
|
|
646
|
+
* @summary Get my user schema
|
|
647
|
+
*/
|
|
648
|
+
export const getMyUserSchemaQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
export const GetMyUserSchemaQueryParams = zod.strictObject({
|
|
652
|
+
"project_id": zod.string().regex(getMyUserSchemaQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
653
|
+
})
|
|
654
|
+
|
|
655
|
+
export const getMyUserSchemaResponseSchemaOneObjectTypeMax = 256;
|
|
656
|
+
|
|
657
|
+
export const getMyUserSchemaResponseSchemaOneMetaSchemaMax = 1024;
|
|
658
|
+
|
|
659
|
+
export const getMyUserSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
export const getMyUserSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = new RegExp('^[a-z0-9][a-z0-9_-]*$');
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
export const getMyUserSchemaResponseSchemaOnePropertiesXAuditDefault = false;
|
|
668
|
+
|
|
669
|
+
export const GetMyUserSchemaResponse = zod.object({
|
|
670
|
+
"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'),
|
|
671
|
+
"schema": zod.object({
|
|
672
|
+
"objectType": zod.string().max(getMyUserSchemaResponseSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
673
|
+
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
674
|
+
"metaSchema": zod.url().max(getMyUserSchemaResponseSchemaOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
675
|
+
"x-auth-methods": zod.object({
|
|
676
|
+
"password": zod.object({
|
|
677
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
678
|
+
}).optional(),
|
|
679
|
+
"passkey": zod.object({
|
|
680
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
681
|
+
}).optional(),
|
|
682
|
+
"magic_link": zod.object({
|
|
683
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
684
|
+
}).optional(),
|
|
685
|
+
"sso": zod.object({
|
|
686
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not'),
|
|
687
|
+
"providers": zod.array(zod.string().max(getMyUserSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemMax).regex(getMyUserSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp)).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.')
|
|
688
|
+
}).optional(),
|
|
689
|
+
"otp": zod.object({
|
|
690
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
691
|
+
}).optional()
|
|
692
|
+
}).describe('A list of authentication methods supported by the user definition.'),
|
|
693
|
+
"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'),
|
|
694
|
+
"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'),
|
|
695
|
+
"properties": zod.record(zod.string(), zod.object({
|
|
696
|
+
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The level of uniqueness for this property, if applicable'),
|
|
697
|
+
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The claim name for this property, if applicable'),
|
|
698
|
+
"x-audit": zod.boolean().default(getMyUserSchemaResponseSchemaOnePropertiesXAuditDefault).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'),
|
|
699
|
+
"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')
|
|
700
|
+
}).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')
|
|
701
|
+
}).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.'),
|
|
702
|
+
"metadata": zod.object({
|
|
703
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
704
|
+
})
|
|
705
|
+
}).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')
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The signed-in user's own team roster, ordered by team name.
|
|
710
|
+
*
|
|
711
|
+
* With `project_id`, the teams are listed only when the session belongs to
|
|
712
|
+
* that project.
|
|
713
|
+
* @summary List the teams I belong to
|
|
714
|
+
*/
|
|
715
|
+
export const listMyTeamsQueryLimitDefault = 20;
|
|
716
|
+
export const listMyTeamsQueryLimitMax = 100;
|
|
717
|
+
|
|
718
|
+
export const listMyTeamsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
export const ListMyTeamsQueryParams = zod.strictObject({
|
|
722
|
+
"limit": zod.int().min(1).max(listMyTeamsQueryLimitMax).default(listMyTeamsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
723
|
+
"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'),
|
|
724
|
+
"project_id": zod.string().regex(listMyTeamsQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
725
|
+
})
|
|
726
|
+
|
|
727
|
+
export const ListMyTeamsResponse = zod.object({
|
|
728
|
+
"teams": zod.array(zod.object({
|
|
729
|
+
"id": zod.string().describe('The unique identifier of the team.'),
|
|
730
|
+
"name": zod.string().describe('The name of the team.'),
|
|
731
|
+
"membership_status": zod.enum(['pending', 'active', 'inactive']).describe('The user\'s participation state on this team. Memberships the user was\nremoved from are not returned.\n'),
|
|
732
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the user joined this team.'),
|
|
733
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('The time when this membership was last changed.')
|
|
734
|
+
}).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')),
|
|
735
|
+
"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')
|
|
736
|
+
}).describe('Paginated list of the teams a user belongs to.')
|
|
737
|
+
|
|
738
|
+
|
|
552
739
|
/**
|
|
553
740
|
* Resolves a flow definition based on purpose + audience context and returns
|
|
554
741
|
* the first capability step. Creates a new session implicitly unless
|
|
@@ -582,12 +769,13 @@ export const CreateFlowBody = zod.object({
|
|
|
582
769
|
"hint": zod.object({
|
|
583
770
|
"login_name": zod.string().optional().describe('Auto-submits identifier step (maps to OIDC login_hint).'),
|
|
584
771
|
"team_id": zod.string().optional().describe('Scopes flow resolution to a team.'),
|
|
585
|
-
"user_schema_id": zod.string().optional().describe('Scopes to a specific user type.'),
|
|
772
|
+
"user_schema_id": zod.string().optional().describe('Scopes to a specific user type, the `objectType` of a user schema.'),
|
|
586
773
|
"app_id": zod.string().optional().describe('Scopes to a specific application.')
|
|
587
774
|
}).optional()
|
|
588
775
|
})
|
|
589
776
|
|
|
590
777
|
export const createFlowResponseStepFieldsItemRequiredDefault = false;
|
|
778
|
+
export const createFlowResponseStepFieldsItemReadOnlyDefault = false;
|
|
591
779
|
export const createFlowResponseStepFieldsItemValidationMinLengthMin = 0;
|
|
592
780
|
|
|
593
781
|
export const createFlowResponseStepFieldsItemValidationMaxLengthMin = 0;
|
|
@@ -739,9 +927,9 @@ export const CreateFlowResponse = zod.object({
|
|
|
739
927
|
"name": zod.string().describe('Step name from the flow definition.'),
|
|
740
928
|
"texts": zod.object({
|
|
741
929
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
742
|
-
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text.')
|
|
930
|
+
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n')
|
|
743
931
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
744
|
-
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`)
|
|
932
|
+
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`). An outcome\nthe step has no transition for sends `error.user_not_found`,\n`error.user_already_exists`, `error.sso_user_not_found`, or\n`error.outcome_unhandled` for any other outcome.\n'),
|
|
745
933
|
"complete": zod.enum(['redirect', 'show']).optional().describe('Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n'),
|
|
746
934
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
747
935
|
"fields": zod.array(zod.object({
|
|
@@ -751,6 +939,7 @@ export const CreateFlowResponse = zod.object({
|
|
|
751
939
|
"autocomplete": zod.string().optional().describe('Value for the HTML `autocomplete` attribute of the input rendered\nfor this field, so password managers and browser autofill\nrecognise it. A space-separated token list; put it on the\nattribute verbatim and do not reinterpret it.\n\nThe engine emits `username` on the field carrying the user\'s\nidentifier, whatever that field\'s `type` is: `username` is the\ntoken a password manager pairs with a password, while `email`\nmeans contact information, so an email-typed identifier still\ntakes `username` and matches the `identifier` a later password\nstep carries. On a password field it emits `current-password`\nwhere the submitted value is verified against the stored\ncredential, and `new-password` where the value is saved as the\nuser\'s password — so a manager offers to fill on sign-in and to\ngenerate on registration. A journey whose purpose does not\nestablish or verify a password yet emits neither.\n\nOmitted when no token applies, in which case render no attribute\nrather than an empty one.\n\nAutofill only: it says nothing about validation, and the input\'s\n`type` still comes from `type`.\n'),
|
|
752
940
|
"required": zod.boolean().default(createFlowResponseStepFieldsItemRequiredDefault).describe('The field MUST be present and non-empty on submit. Mirrors the\nschema\'s top-level `required` array.\n'),
|
|
753
941
|
"value": zod.unknown().optional().describe('Pre-filled value (e.g., an identifier carried over from a pivot).'),
|
|
942
|
+
"read_only": zod.boolean().default(createFlowResponseStepFieldsItemReadOnlyDefault).describe('The server refuses a submitted value that differs from `value`, so\nrender the input read-only. Submit the value unchanged: a read-only\ninput is still sent with the form, unlike a disabled one.\n\nSet on a step that creates the user from an SSO identity, for a\nfield prefilled from a provider claim that is verified and unique.\n'),
|
|
754
943
|
"validation": zod.object({
|
|
755
944
|
"format": zod.enum(['email', 'date-time', 'uuid', 'uri']).optional().describe('Semantic format the value must match. Values mirror the user\nmeta-schema. When `type` already encodes the format (email,\nurl, date), this key is informative and the input type is\nsufficient for client-side validation. When `type` is `text`\n(e.g. `format: uuid`), this key is the only signal.\n'),
|
|
756
945
|
"min_length": zod.int().min(createFlowResponseStepFieldsItemValidationMinLengthMin).optional().describe('Minimum length in characters (inclusive). Mirrors `minLength`.'),
|
|
@@ -853,6 +1042,7 @@ export const GetFlowStepParams = zod.object({
|
|
|
853
1042
|
})
|
|
854
1043
|
|
|
855
1044
|
export const getFlowStepResponseStepFieldsItemRequiredDefault = false;
|
|
1045
|
+
export const getFlowStepResponseStepFieldsItemReadOnlyDefault = false;
|
|
856
1046
|
export const getFlowStepResponseStepFieldsItemValidationMinLengthMin = 0;
|
|
857
1047
|
|
|
858
1048
|
export const getFlowStepResponseStepFieldsItemValidationMaxLengthMin = 0;
|
|
@@ -1004,9 +1194,9 @@ export const GetFlowStepResponse = zod.object({
|
|
|
1004
1194
|
"name": zod.string().describe('Step name from the flow definition.'),
|
|
1005
1195
|
"texts": zod.object({
|
|
1006
1196
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1007
|
-
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text.')
|
|
1197
|
+
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n')
|
|
1008
1198
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1009
|
-
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`)
|
|
1199
|
+
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`). An outcome\nthe step has no transition for sends `error.user_not_found`,\n`error.user_already_exists`, `error.sso_user_not_found`, or\n`error.outcome_unhandled` for any other outcome.\n'),
|
|
1010
1200
|
"complete": zod.enum(['redirect', 'show']).optional().describe('Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n'),
|
|
1011
1201
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
1012
1202
|
"fields": zod.array(zod.object({
|
|
@@ -1016,6 +1206,7 @@ export const GetFlowStepResponse = zod.object({
|
|
|
1016
1206
|
"autocomplete": zod.string().optional().describe('Value for the HTML `autocomplete` attribute of the input rendered\nfor this field, so password managers and browser autofill\nrecognise it. A space-separated token list; put it on the\nattribute verbatim and do not reinterpret it.\n\nThe engine emits `username` on the field carrying the user\'s\nidentifier, whatever that field\'s `type` is: `username` is the\ntoken a password manager pairs with a password, while `email`\nmeans contact information, so an email-typed identifier still\ntakes `username` and matches the `identifier` a later password\nstep carries. On a password field it emits `current-password`\nwhere the submitted value is verified against the stored\ncredential, and `new-password` where the value is saved as the\nuser\'s password — so a manager offers to fill on sign-in and to\ngenerate on registration. A journey whose purpose does not\nestablish or verify a password yet emits neither.\n\nOmitted when no token applies, in which case render no attribute\nrather than an empty one.\n\nAutofill only: it says nothing about validation, and the input\'s\n`type` still comes from `type`.\n'),
|
|
1017
1207
|
"required": zod.boolean().default(getFlowStepResponseStepFieldsItemRequiredDefault).describe('The field MUST be present and non-empty on submit. Mirrors the\nschema\'s top-level `required` array.\n'),
|
|
1018
1208
|
"value": zod.unknown().optional().describe('Pre-filled value (e.g., an identifier carried over from a pivot).'),
|
|
1209
|
+
"read_only": zod.boolean().default(getFlowStepResponseStepFieldsItemReadOnlyDefault).describe('The server refuses a submitted value that differs from `value`, so\nrender the input read-only. Submit the value unchanged: a read-only\ninput is still sent with the form, unlike a disabled one.\n\nSet on a step that creates the user from an SSO identity, for a\nfield prefilled from a provider claim that is verified and unique.\n'),
|
|
1019
1210
|
"validation": zod.object({
|
|
1020
1211
|
"format": zod.enum(['email', 'date-time', 'uuid', 'uri']).optional().describe('Semantic format the value must match. Values mirror the user\nmeta-schema. When `type` already encodes the format (email,\nurl, date), this key is informative and the input type is\nsufficient for client-side validation. When `type` is `text`\n(e.g. `format: uuid`), this key is the only signal.\n'),
|
|
1021
1212
|
"min_length": zod.int().min(getFlowStepResponseStepFieldsItemValidationMinLengthMin).optional().describe('Minimum length in characters (inclusive). Mirrors `minLength`.'),
|
|
@@ -1173,7 +1364,7 @@ export const submitFlowStepBodyReturnTargetMax = 2048;
|
|
|
1173
1364
|
|
|
1174
1365
|
export const SubmitFlowStepBody = zod.object({
|
|
1175
1366
|
"session_token": zod.string().optional().describe('Reserved for future rotation. The sealed `_zflow` cookie carries the flow state today.'),
|
|
1176
|
-
"action": zod.string().describe('Which action to take. Must be a key from the step\'s `actions` dictionary:\n- A regular action (e.g., "submit", "register", "back")\n- The reserved value "sso" — triggers SSO redirect (requires `sso_provider_id`)\n'),
|
|
1367
|
+
"action": zod.string().describe('Which action to take. Must be a key from the step\'s `actions` dictionary:\n- A regular action (e.g., "submit", "register", "back")\n- The reserved value "sso" — triggers SSO redirect (requires `sso_provider_id`)\n\nA name the current step does not declare is refused with 400\n(`flow.invalid_action`). That includes the outcome names the engine\nroutes on its own (`user_not_found`, `user_already_exists`,\n`sso_user_not_found`, `sso_authenticated`), which are never actions.\n'),
|
|
1177
1368
|
"fields": zod.record(zod.string(), zod.unknown()).optional().describe('User input values. Keys match field names from the step\'s `fields` dictionary.\n'),
|
|
1178
1369
|
"gate_proofs": zod.record(zod.string(), zod.string()).optional().describe('Solutions for security gates. Keys match gate names from the step\'s `gates` dictionary.\nThe orchestrator collects these from `<zl-captcha>` component events.\n'),
|
|
1179
1370
|
"challenge_response": zod.object({
|
|
@@ -1186,6 +1377,7 @@ export const SubmitFlowStepBody = zod.object({
|
|
|
1186
1377
|
})
|
|
1187
1378
|
|
|
1188
1379
|
export const submitFlowStepResponseStepFieldsItemRequiredDefault = false;
|
|
1380
|
+
export const submitFlowStepResponseStepFieldsItemReadOnlyDefault = false;
|
|
1189
1381
|
export const submitFlowStepResponseStepFieldsItemValidationMinLengthMin = 0;
|
|
1190
1382
|
|
|
1191
1383
|
export const submitFlowStepResponseStepFieldsItemValidationMaxLengthMin = 0;
|
|
@@ -1337,9 +1529,9 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1337
1529
|
"name": zod.string().describe('Step name from the flow definition.'),
|
|
1338
1530
|
"texts": zod.object({
|
|
1339
1531
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1340
|
-
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text.')
|
|
1532
|
+
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n')
|
|
1341
1533
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1342
|
-
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`)
|
|
1534
|
+
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`). An outcome\nthe step has no transition for sends `error.user_not_found`,\n`error.user_already_exists`, `error.sso_user_not_found`, or\n`error.outcome_unhandled` for any other outcome.\n'),
|
|
1343
1535
|
"complete": zod.enum(['redirect', 'show']).optional().describe('Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n'),
|
|
1344
1536
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
1345
1537
|
"fields": zod.array(zod.object({
|
|
@@ -1349,6 +1541,7 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1349
1541
|
"autocomplete": zod.string().optional().describe('Value for the HTML `autocomplete` attribute of the input rendered\nfor this field, so password managers and browser autofill\nrecognise it. A space-separated token list; put it on the\nattribute verbatim and do not reinterpret it.\n\nThe engine emits `username` on the field carrying the user\'s\nidentifier, whatever that field\'s `type` is: `username` is the\ntoken a password manager pairs with a password, while `email`\nmeans contact information, so an email-typed identifier still\ntakes `username` and matches the `identifier` a later password\nstep carries. On a password field it emits `current-password`\nwhere the submitted value is verified against the stored\ncredential, and `new-password` where the value is saved as the\nuser\'s password — so a manager offers to fill on sign-in and to\ngenerate on registration. A journey whose purpose does not\nestablish or verify a password yet emits neither.\n\nOmitted when no token applies, in which case render no attribute\nrather than an empty one.\n\nAutofill only: it says nothing about validation, and the input\'s\n`type` still comes from `type`.\n'),
|
|
1350
1542
|
"required": zod.boolean().default(submitFlowStepResponseStepFieldsItemRequiredDefault).describe('The field MUST be present and non-empty on submit. Mirrors the\nschema\'s top-level `required` array.\n'),
|
|
1351
1543
|
"value": zod.unknown().optional().describe('Pre-filled value (e.g., an identifier carried over from a pivot).'),
|
|
1544
|
+
"read_only": zod.boolean().default(submitFlowStepResponseStepFieldsItemReadOnlyDefault).describe('The server refuses a submitted value that differs from `value`, so\nrender the input read-only. Submit the value unchanged: a read-only\ninput is still sent with the form, unlike a disabled one.\n\nSet on a step that creates the user from an SSO identity, for a\nfield prefilled from a provider claim that is verified and unique.\n'),
|
|
1352
1545
|
"validation": zod.object({
|
|
1353
1546
|
"format": zod.enum(['email', 'date-time', 'uuid', 'uri']).optional().describe('Semantic format the value must match. Values mirror the user\nmeta-schema. When `type` already encodes the format (email,\nurl, date), this key is informative and the input type is\nsufficient for client-side validation. When `type` is `text`\n(e.g. `format: uuid`), this key is the only signal.\n'),
|
|
1354
1547
|
"min_length": zod.int().min(submitFlowStepResponseStepFieldsItemValidationMinLengthMin).optional().describe('Minimum length in characters (inclusive). Mirrors `minLength`.'),
|
|
@@ -1774,13 +1967,22 @@ export const CreateHandoffResponse = zod.object({
|
|
|
1774
1967
|
|
|
1775
1968
|
|
|
1776
1969
|
/**
|
|
1970
|
+
* Creates a project and returns its project secret and preview secret, which no
|
|
1971
|
+
* other endpoint returns.
|
|
1972
|
+
*
|
|
1973
|
+
* The request needs no credential and is rate-limited. Unless `seed_defaults` is
|
|
1974
|
+
* `false`, the project starts with a default user schema and flow; the CLI turns
|
|
1975
|
+
* that off and uploads its own from `.zitadel/`.
|
|
1777
1976
|
* @summary Create project
|
|
1778
1977
|
*/
|
|
1779
1978
|
export const createProjectBodySeedDefaultsDefault = true;
|
|
1780
1979
|
|
|
1781
1980
|
export const CreateProjectBody = zod.object({
|
|
1782
1981
|
"name": zod.string().describe('The name of the project.'),
|
|
1783
|
-
"
|
|
1982
|
+
"origins": zod.array(zod.object({
|
|
1983
|
+
"pattern": zod.string(),
|
|
1984
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
1985
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).optional().describe('The origins the project starts with. An omitted or empty list means\nevery origin is admitted until the first pattern is added. Loopback\norigins are admitted without a pattern.\n'),
|
|
1784
1986
|
"seed_defaults": zod.boolean().default(createProjectBodySeedDefaultsDefault).describe('Whether the server should provision fallback default user schema and flow\nresources for the project. CLI-managed projects set this to false and\nupload their local .zitadel config files through the schema and flow APIs.\n')
|
|
1785
1987
|
})
|
|
1786
1988
|
|
|
@@ -1789,12 +1991,21 @@ export const CreateProjectResponse = zod.object({
|
|
|
1789
1991
|
"name": zod.string().describe('The name of the project.'),
|
|
1790
1992
|
"project_secret": zod.string().describe('Secret which can be used for authentication when modifying the project.\n'),
|
|
1791
1993
|
"preview_secret": zod.string().describe('Secret which can be used for previewing and testing the project.\n'),
|
|
1792
|
-
"
|
|
1994
|
+
"origins": zod.array(zod.object({
|
|
1995
|
+
"pattern": zod.string(),
|
|
1996
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
1997
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).describe('The project\'s origins. An empty list means every origin is admitted\nuntil the first pattern is added. Loopback origins are admitted without\na pattern.\n'),
|
|
1793
1998
|
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the project was created.')
|
|
1794
1999
|
})
|
|
1795
2000
|
|
|
1796
2001
|
|
|
1797
2002
|
/**
|
|
2003
|
+
* Returns the project the project secret belongs to, as a page of at most one
|
|
2004
|
+
* project.
|
|
2005
|
+
*
|
|
2006
|
+
* A credential is scoped to one project until ADR 036 widens it, so the filters
|
|
2007
|
+
* and sorting apply to that project alone. The projects a signed-in person can
|
|
2008
|
+
* act on are listed by `GET /users/me/projects`.
|
|
1798
2009
|
* @summary Query projects
|
|
1799
2010
|
*/
|
|
1800
2011
|
export const queryProjectsBodyLimitDefault = 20;
|
|
@@ -1820,7 +2031,10 @@ export const QueryProjectsResponse = zod.object({
|
|
|
1820
2031
|
"projects": zod.array(zod.object({
|
|
1821
2032
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
1822
2033
|
"name": zod.string().describe('The name of the project.'),
|
|
1823
|
-
"
|
|
2034
|
+
"origins": zod.array(zod.object({
|
|
2035
|
+
"pattern": zod.string(),
|
|
2036
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
2037
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).describe('The project\'s origins. An empty list means every origin is admitted\nuntil the first pattern is added. Loopback origins are admitted without\na pattern.\n'),
|
|
1824
2038
|
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the project was created.'),
|
|
1825
2039
|
"updated_at": zod.iso.datetime({"offset":true}).describe('The time when the project was last updated.'),
|
|
1826
2040
|
"password_hash": zod.union([zod.object({
|
|
@@ -1847,13 +2061,16 @@ export const getProjectPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
1847
2061
|
|
|
1848
2062
|
|
|
1849
2063
|
export const GetProjectParams = zod.object({
|
|
1850
|
-
"project_id": zod.string().regex(getProjectPathProjectIdRegExp)
|
|
2064
|
+
"project_id": zod.string().regex(getProjectPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
1851
2065
|
})
|
|
1852
2066
|
|
|
1853
2067
|
export const GetProjectResponse = zod.object({
|
|
1854
2068
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
1855
2069
|
"name": zod.string().describe('The name of the project.'),
|
|
1856
|
-
"
|
|
2070
|
+
"origins": zod.array(zod.object({
|
|
2071
|
+
"pattern": zod.string(),
|
|
2072
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
2073
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).describe('The project\'s origins. An empty list means every origin is admitted\nuntil the first pattern is added. Loopback origins are admitted without\na pattern.\n'),
|
|
1857
2074
|
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the project was created.'),
|
|
1858
2075
|
"updated_at": zod.iso.datetime({"offset":true}).describe('The time when the project was last updated.'),
|
|
1859
2076
|
"password_hash": zod.union([zod.object({
|
|
@@ -1878,7 +2095,7 @@ export const patchProjectPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
1878
2095
|
|
|
1879
2096
|
|
|
1880
2097
|
export const PatchProjectParams = zod.object({
|
|
1881
|
-
"project_id": zod.string().regex(patchProjectPathProjectIdRegExp)
|
|
2098
|
+
"project_id": zod.string().regex(patchProjectPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
1882
2099
|
})
|
|
1883
2100
|
|
|
1884
2101
|
export const PatchProjectBody = zod.object({
|
|
@@ -1899,7 +2116,10 @@ export const PatchProjectBody = zod.object({
|
|
|
1899
2116
|
export const PatchProjectResponse = zod.object({
|
|
1900
2117
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
1901
2118
|
"name": zod.string().describe('The name of the project.'),
|
|
1902
|
-
"
|
|
2119
|
+
"origins": zod.array(zod.object({
|
|
2120
|
+
"pattern": zod.string(),
|
|
2121
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
2122
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).describe('The project\'s origins. An empty list means every origin is admitted\nuntil the first pattern is added. Loopback origins are admitted without\na pattern.\n'),
|
|
1903
2123
|
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the project was created.'),
|
|
1904
2124
|
"updated_at": zod.iso.datetime({"offset":true}).describe('The time when the project was last updated.'),
|
|
1905
2125
|
"password_hash": zod.union([zod.object({
|
|
@@ -1928,7 +2148,7 @@ export const initClaimPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
1928
2148
|
|
|
1929
2149
|
|
|
1930
2150
|
export const InitClaimParams = zod.object({
|
|
1931
|
-
"project_id": zod.string().regex(initClaimPathProjectIdRegExp)
|
|
2151
|
+
"project_id": zod.string().regex(initClaimPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
1932
2152
|
})
|
|
1933
2153
|
|
|
1934
2154
|
export const initClaimResponseChallengeIdRegExp = new RegExp('^ch_[a-zA-Z0-9_-]+$');
|
|
@@ -1956,14 +2176,14 @@ export const getClaimStatusPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
1956
2176
|
|
|
1957
2177
|
|
|
1958
2178
|
export const GetClaimStatusParams = zod.object({
|
|
1959
|
-
"project_id": zod.string().regex(getClaimStatusPathProjectIdRegExp)
|
|
2179
|
+
"project_id": zod.string().regex(getClaimStatusPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
1960
2180
|
})
|
|
1961
2181
|
|
|
1962
2182
|
export const getClaimStatusQueryChallengeIdRegExp = new RegExp('^ch_[a-zA-Z0-9_-]+$');
|
|
1963
2183
|
|
|
1964
2184
|
|
|
1965
2185
|
export const GetClaimStatusQueryParams = zod.strictObject({
|
|
1966
|
-
"challenge_id": zod.string().regex(getClaimStatusQueryChallengeIdRegExp).describe('The challenge minted by the matching claim init
|
|
2186
|
+
"challenge_id": zod.string().regex(getClaimStatusQueryChallengeIdRegExp).describe('The challenge minted by the matching claim init, as the claim URL carries\nit.\n')
|
|
1967
2187
|
})
|
|
1968
2188
|
|
|
1969
2189
|
export const getClaimStatusResponseTwoTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -1990,7 +2210,7 @@ export const completeClaimPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
1990
2210
|
|
|
1991
2211
|
|
|
1992
2212
|
export const CompleteClaimParams = zod.object({
|
|
1993
|
-
"project_id": zod.string().regex(completeClaimPathProjectIdRegExp)
|
|
2213
|
+
"project_id": zod.string().regex(completeClaimPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
1994
2214
|
})
|
|
1995
2215
|
|
|
1996
2216
|
export const completeClaimBodyChallengeIdRegExp = new RegExp('^ch_[a-zA-Z0-9_-]+$');
|
|
@@ -2024,14 +2244,14 @@ export const getClaimWindowPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
2024
2244
|
|
|
2025
2245
|
|
|
2026
2246
|
export const GetClaimWindowParams = zod.object({
|
|
2027
|
-
"project_id": zod.string().regex(getClaimWindowPathProjectIdRegExp)
|
|
2247
|
+
"project_id": zod.string().regex(getClaimWindowPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2028
2248
|
})
|
|
2029
2249
|
|
|
2030
2250
|
export const getClaimWindowQueryChallengeIdRegExp = new RegExp('^ch_[a-zA-Z0-9_-]+$');
|
|
2031
2251
|
|
|
2032
2252
|
|
|
2033
2253
|
export const GetClaimWindowQueryParams = zod.strictObject({
|
|
2034
|
-
"challenge_id": zod.string().regex(getClaimWindowQueryChallengeIdRegExp).describe('The challenge
|
|
2254
|
+
"challenge_id": zod.string().regex(getClaimWindowQueryChallengeIdRegExp).describe('The challenge minted by the matching claim init, as the claim URL carries\nit.\n')
|
|
2035
2255
|
})
|
|
2036
2256
|
|
|
2037
2257
|
export const GetClaimWindowResponse = zod.object({
|
|
@@ -2040,6 +2260,123 @@ export const GetClaimWindowResponse = zod.object({
|
|
|
2040
2260
|
}).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')
|
|
2041
2261
|
|
|
2042
2262
|
|
|
2263
|
+
/**
|
|
2264
|
+
* Adds one `{pattern, kind}` to the project's origins. A primary pattern
|
|
2265
|
+
* must be an exact URL (no wildcard). Preview patterns may include a single
|
|
2266
|
+
* DNS-label wildcard. Adding a pattern that already exists with the same
|
|
2267
|
+
* kind is idempotent and answers 201 with the stored origin.
|
|
2268
|
+
* @summary Add an origin pattern
|
|
2269
|
+
*/
|
|
2270
|
+
export const addOriginPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
export const AddOriginParams = zod.object({
|
|
2274
|
+
"project_id": zod.string().regex(addOriginPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2275
|
+
})
|
|
2276
|
+
|
|
2277
|
+
export const AddOriginBody = zod.object({
|
|
2278
|
+
"pattern": zod.string(),
|
|
2279
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
2280
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')
|
|
2281
|
+
|
|
2282
|
+
export const AddOriginResponse = zod.object({
|
|
2283
|
+
"pattern": zod.string(),
|
|
2284
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
2285
|
+
})
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* Removes one pattern from the project's origins. Requests from URLs only
|
|
2290
|
+
* that pattern admitted are refused from then on; live previews and
|
|
2291
|
+
* deployment history are untouched. Removing a pattern that is already
|
|
2292
|
+
* absent is idempotent and answers 204.
|
|
2293
|
+
* @summary Remove an origin pattern
|
|
2294
|
+
*/
|
|
2295
|
+
export const removeOriginPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
export const RemoveOriginParams = zod.object({
|
|
2299
|
+
"project_id": zod.string().regex(removeOriginPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2300
|
+
})
|
|
2301
|
+
|
|
2302
|
+
export const RemoveOriginBody = zod.object({
|
|
2303
|
+
"pattern": zod.string().describe('The origin pattern exactly as stored on the project (same\nstring returned by create/get or addOrigin).\n')
|
|
2304
|
+
})
|
|
2305
|
+
|
|
2306
|
+
export const RemoveOriginResponse = zod.void()
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* Lists the project's live previews, newest first by `created_at`. An
|
|
2311
|
+
* expired or removed preview is not listed; what was deployed to it stays
|
|
2312
|
+
* in `GET /deployments`.
|
|
2313
|
+
* @summary List previews
|
|
2314
|
+
*/
|
|
2315
|
+
export const listPreviewsPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
export const ListPreviewsParams = zod.object({
|
|
2319
|
+
"project_id": zod.string().regex(listPreviewsPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2320
|
+
})
|
|
2321
|
+
|
|
2322
|
+
export const listPreviewsQueryLimitDefault = 20;
|
|
2323
|
+
export const listPreviewsQueryLimitMax = 100;
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
export const ListPreviewsQueryParams = zod.strictObject({
|
|
2328
|
+
"limit": zod.int().min(1).max(listPreviewsQueryLimitMax).default(listPreviewsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
2329
|
+
"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')
|
|
2330
|
+
})
|
|
2331
|
+
|
|
2332
|
+
export const listPreviewsResponsePreviewsItemOriginMax = 2048;
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
export const listPreviewsResponsePreviewsItemOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
export const ListPreviewsResponse = zod.object({
|
|
2339
|
+
"previews": zod.array(zod.object({
|
|
2340
|
+
"origin": zod.string().max(listPreviewsResponsePreviewsItemOriginMax).regex(listPreviewsResponsePreviewsItemOriginRegExp).describe('A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme\'s default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n'),
|
|
2341
|
+
"expires_at": zod.iso.datetime({"offset":true}).describe('When the preview stops being served. Every deployment to it sets this\nagain from its `ttl`.\n'),
|
|
2342
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the first deployment to the URL created the preview.')
|
|
2343
|
+
}).describe('A preview URL that is live: an origin matching one of the project\'s\npreview patterns, with something deployed to it, until it expires.\n\nThere is no create operation. A deployment whose targets are preview URLs\ncreates the preview for each of them, or renews it when it exists, in the\nsame transaction, so a preview with nothing deployed to it cannot exist.\nA preview ends when it expires or is removed with\n`POST /projects/{project_id}/previews/remove`;\nthe deployments to it stay in the history either way.\n')),
|
|
2344
|
+
"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')
|
|
2345
|
+
}).describe('The project\'s live previews, newest first.')
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* Ends a preview before it expires: the URL stops being served at once.
|
|
2350
|
+
* The deployments to it stay in the history.
|
|
2351
|
+
*
|
|
2352
|
+
* Idempotent: a URL with no live preview, including one that has already
|
|
2353
|
+
* expired or was removed before, answers `204` too, so a cleanup that
|
|
2354
|
+
* races the expiry still succeeds.
|
|
2355
|
+
*
|
|
2356
|
+
* The URL travels in the body rather than the path because an origin
|
|
2357
|
+
* contains `/`.
|
|
2358
|
+
* @summary Remove a preview
|
|
2359
|
+
*/
|
|
2360
|
+
export const removePreviewPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
export const RemovePreviewParams = zod.object({
|
|
2364
|
+
"project_id": zod.string().regex(removePreviewPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2365
|
+
})
|
|
2366
|
+
|
|
2367
|
+
export const removePreviewBodyOriginMax = 2048;
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
export const removePreviewBodyOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
export const RemovePreviewBody = zod.object({
|
|
2374
|
+
"origin": zod.string().max(removePreviewBodyOriginMax).regex(removePreviewBodyOriginRegExp).describe('A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme\'s default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n')
|
|
2375
|
+
}).describe('The preview to remove.')
|
|
2376
|
+
|
|
2377
|
+
export const RemovePreviewResponse = zod.void()
|
|
2378
|
+
|
|
2379
|
+
|
|
2043
2380
|
/**
|
|
2044
2381
|
* Creates an anonymous session shell with no user and no factors (`state: building`).
|
|
2045
2382
|
*
|
|
@@ -2237,7 +2574,7 @@ export const ExchangeHandoffHeader = zod.strictObject({
|
|
|
2237
2574
|
})
|
|
2238
2575
|
|
|
2239
2576
|
export const ExchangeHandoffBody = zod.object({
|
|
2240
|
-
"handoff_token": zod.string().describe('The one-time handoff token minted by `POST /auth_attempts/{id}/handoff`.\nSingle-use — replaying it after a successful exchange returns `
|
|
2577
|
+
"handoff_token": zod.string().describe('The one-time handoff token minted by `POST /auth_attempts/{id}/handoff`.\nSingle-use — replaying it after a successful exchange returns `400` with\n`sess.invalid_handoff_token`, the same answer as an unknown or expired token.\n'),
|
|
2241
2578
|
"ttl": zod.string().optional().describe('Optional session lifetime after exchange as an ISO-8601 duration. When omitted, the server\nuses the configured default. Must not exceed the configured maximum.\n')
|
|
2242
2579
|
}).describe('Request to exchange a handoff token for a session and session_token.')
|
|
2243
2580
|
|
|
@@ -2378,11 +2715,20 @@ export const RevokeSessionResponse = zod.void()
|
|
|
2378
2715
|
* Returns the current state of the current session including its factors and all currently
|
|
2379
2716
|
* satisfied assurance levels.
|
|
2380
2717
|
*
|
|
2718
|
+
* With `project_id`, the session is returned only when it belongs to that project.
|
|
2719
|
+
*
|
|
2381
2720
|
* `assurance_levels[]` may shrink over time as factor freshness windows expire,
|
|
2382
2721
|
* without the session itself expiring. Use step-up authentication (a new `auth_attempt`
|
|
2383
2722
|
* against the same `session_id`) to restore a dropped assurance level.
|
|
2384
2723
|
* @summary Get my session state
|
|
2385
2724
|
*/
|
|
2725
|
+
export const getMySessionQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
export const GetMySessionQueryParams = zod.strictObject({
|
|
2729
|
+
"project_id": zod.string().regex(getMySessionQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
2730
|
+
})
|
|
2731
|
+
|
|
2386
2732
|
export const getMySessionResponseSessionIdRegExp = new RegExp('^sess_[a-zA-Z0-9_-]+$');
|
|
2387
2733
|
export const getMySessionResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2388
2734
|
export const getMySessionResponseUserIdOneRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
@@ -2433,11 +2779,22 @@ export const GetMySessionResponse = zod.object({
|
|
|
2433
2779
|
* Logs out by permanently deleting the session.
|
|
2434
2780
|
*
|
|
2435
2781
|
* The `__nextgen_session` cookie issued at creation (or superseded by a handoff
|
|
2436
|
-
* exchange) is required
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2782
|
+
* exchange) is required, with the session's token from `GET /sessions/me/csrf`
|
|
2783
|
+
* in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
|
|
2784
|
+
* this still returns 204. Any tokens derived from the session are invalidated,
|
|
2785
|
+
* and the cookie itself is cleared in the response.
|
|
2786
|
+
*
|
|
2787
|
+
* With `project_id`, only a session of that project is deleted. A session of
|
|
2788
|
+
* another project is left alone, and so is its cookie.
|
|
2439
2789
|
* @summary Revoke my session
|
|
2440
2790
|
*/
|
|
2791
|
+
export const revokeMySessionQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
export const RevokeMySessionQueryParams = zod.strictObject({
|
|
2795
|
+
"project_id": zod.string().regex(revokeMySessionQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
2796
|
+
})
|
|
2797
|
+
|
|
2441
2798
|
export const RevokeMySessionResponse = zod.void()
|
|
2442
2799
|
|
|
2443
2800
|
|
|
@@ -2449,8 +2806,18 @@ export const RevokeMySessionResponse = zod.void()
|
|
|
2449
2806
|
* HttpOnly cookie is still the credential, and a cross-site page cannot
|
|
2450
2807
|
* read this response. It stays the same for the life of the session, so a
|
|
2451
2808
|
* client fetches it once per session.
|
|
2809
|
+
*
|
|
2810
|
+
* With `project_id`, the token is returned only when the session belongs to
|
|
2811
|
+
* that project.
|
|
2452
2812
|
* @summary Get my session's CSRF token
|
|
2453
2813
|
*/
|
|
2814
|
+
export const getMySessionCsrfTokenQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
export const GetMySessionCsrfTokenQueryParams = zod.strictObject({
|
|
2818
|
+
"project_id": zod.string().regex(getMySessionCsrfTokenQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
2819
|
+
})
|
|
2820
|
+
|
|
2454
2821
|
export const GetMySessionCsrfTokenResponse = zod.object({
|
|
2455
2822
|
"csrf_token": zod.string().describe('Send it in the `X-Zitadel-CSRF` header on state-changing requests the\nsession cookie authenticates.\n')
|
|
2456
2823
|
}).describe('The session-bound CSRF token (ADR 053 §5).')
|
|
@@ -2492,7 +2859,7 @@ export const createSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp = new RegExp(
|
|
|
2492
2859
|
export const createSchemaBodyOnePropertiesXAuditDefault = false;
|
|
2493
2860
|
|
|
2494
2861
|
export const CreateSchemaBody = zod.union([zod.object({
|
|
2495
|
-
"objectType": zod.string().max(createSchemaBodyOneObjectTypeMax).
|
|
2862
|
+
"objectType": zod.string().max(createSchemaBodyOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
2496
2863
|
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
2497
2864
|
"metaSchema": zod.url().max(createSchemaBodyOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
2498
2865
|
"x-auth-methods": zod.object({
|
|
@@ -2571,7 +2938,7 @@ export const ListSchemasResponse = zod.object({
|
|
|
2571
2938
|
"schemas": zod.array(zod.object({
|
|
2572
2939
|
"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'),
|
|
2573
2940
|
"schema": zod.object({
|
|
2574
|
-
"objectType": zod.string().max(listSchemasResponseSchemasItemSchemaOneObjectTypeMax).
|
|
2941
|
+
"objectType": zod.string().max(listSchemasResponseSchemasItemSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
2575
2942
|
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
2576
2943
|
"metaSchema": zod.url().max(listSchemasResponseSchemasItemSchemaOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
2577
2944
|
"x-auth-methods": zod.object({
|
|
@@ -2623,7 +2990,7 @@ export const ListSchemasResponse = zod.object({
|
|
|
2623
2990
|
* @summary Get schema by ID
|
|
2624
2991
|
*/
|
|
2625
2992
|
export const GetSchemaByIdParams = zod.object({
|
|
2626
|
-
"id": zod.string()
|
|
2993
|
+
"id": zod.string().describe('The unique identifier of the schema.')
|
|
2627
2994
|
})
|
|
2628
2995
|
|
|
2629
2996
|
export const getSchemaByIdQueryTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -2652,7 +3019,7 @@ export const getSchemaByIdResponseSchemaOnePropertiesXAuditDefault = false;
|
|
|
2652
3019
|
export const GetSchemaByIdResponse = zod.object({
|
|
2653
3020
|
"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'),
|
|
2654
3021
|
"schema": zod.object({
|
|
2655
|
-
"objectType": zod.string().max(getSchemaByIdResponseSchemaOneObjectTypeMax).
|
|
3022
|
+
"objectType": zod.string().max(getSchemaByIdResponseSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
2656
3023
|
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
2657
3024
|
"metaSchema": zod.url().max(getSchemaByIdResponseSchemaOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
2658
3025
|
"x-auth-methods": zod.object({
|
|
@@ -2724,7 +3091,7 @@ export const CreateFlowDefinitionBody = zod.object({
|
|
|
2724
3091
|
"flow_definition": zod.object({
|
|
2725
3092
|
"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'),
|
|
2726
3093
|
"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'),
|
|
2727
|
-
"user_schema": zod.string().describe('
|
|
3094
|
+
"user_schema": zod.string().describe('The user schema this flow operates on, named by its `objectType`. The\nflow runs against the project\'s newest revision of that schema, so\npublishing a schema revision needs no change to the flow. A schema id\nas returned by `POST /schemas` is also accepted and is stored as that\nschema\'s `objectType`; reading the definition back returns the\n`objectType`. A value naming no schema of the project is refused with\n`flowdef.invalid`. Step `fields` reference properties defined in the\nresolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n'),
|
|
2728
3095
|
"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'),
|
|
2729
3096
|
"audience": zod.object({
|
|
2730
3097
|
"team_ids": zod.array(zod.string()).optional().describe('Restrict to specific teams (organizations). Empty means no team restriction.'),
|
|
@@ -2745,7 +3112,7 @@ export const CreateFlowDefinitionBody = zod.object({
|
|
|
2745
3112
|
"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')
|
|
2746
3113
|
}).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'),
|
|
2747
3114
|
"sso_providers": zod.array(zod.string().max(createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemMax).regex(createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItemRegExp)).max(createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersMax).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. A\nstep offers at most 20 providers.\n'),
|
|
2748
|
-
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned
|
|
3115
|
+
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned and the values the step collected, and\n links it to that identity. A unique value another user holds binds\n that user and routes user_already_exists instead.\n'),
|
|
2749
3116
|
"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'),
|
|
2750
3117
|
"transitions": zod.record(zod.string(), zod.object({
|
|
2751
3118
|
"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'),
|
|
@@ -2790,7 +3157,7 @@ export const CreateFlowDefinitionResponse = zod.object({
|
|
|
2790
3157
|
"flow_definition": zod.object({
|
|
2791
3158
|
"name": zod.string().regex(createFlowDefinitionResponseFlowDefinitionNameRegExp).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'),
|
|
2792
3159
|
"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'),
|
|
2793
|
-
"user_schema": zod.string().describe('
|
|
3160
|
+
"user_schema": zod.string().describe('The user schema this flow operates on, named by its `objectType`. The\nflow runs against the project\'s newest revision of that schema, so\npublishing a schema revision needs no change to the flow. A schema id\nas returned by `POST /schemas` is also accepted and is stored as that\nschema\'s `objectType`; reading the definition back returns the\n`objectType`. A value naming no schema of the project is refused with\n`flowdef.invalid`. Step `fields` reference properties defined in the\nresolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n'),
|
|
2794
3161
|
"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'),
|
|
2795
3162
|
"audience": zod.object({
|
|
2796
3163
|
"team_ids": zod.array(zod.string()).optional().describe('Restrict to specific teams (organizations). Empty means no team restriction.'),
|
|
@@ -2811,7 +3178,7 @@ export const CreateFlowDefinitionResponse = zod.object({
|
|
|
2811
3178
|
"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')
|
|
2812
3179
|
}).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(createFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault).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'),
|
|
2813
3180
|
"sso_providers": zod.array(zod.string().max(createFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemMax).regex(createFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemRegExp)).max(createFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersMax).default(createFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault).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. A\nstep offers at most 20 providers.\n'),
|
|
2814
|
-
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned
|
|
3181
|
+
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned and the values the step collected, and\n links it to that identity. A unique value another user holds binds\n that user and routes user_already_exists instead.\n'),
|
|
2815
3182
|
"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'),
|
|
2816
3183
|
"transitions": zod.record(zod.string(), zod.object({
|
|
2817
3184
|
"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'),
|
|
@@ -2823,7 +3190,7 @@ export const CreateFlowDefinitionResponse = zod.object({
|
|
|
2823
3190
|
"user_schema": zod.union([zod.object({
|
|
2824
3191
|
"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'),
|
|
2825
3192
|
"schema": zod.object({
|
|
2826
|
-
"objectType": zod.string().max(createFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax).
|
|
3193
|
+
"objectType": zod.string().max(createFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
2827
3194
|
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
2828
3195
|
"metaSchema": zod.url().max(createFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
2829
3196
|
"x-auth-methods": zod.object({
|
|
@@ -2878,7 +3245,7 @@ export const listFlowDefinitionsQueryRevisionsDefault = `all`;
|
|
|
2878
3245
|
export const ListFlowDefinitionsQueryParams = zod.strictObject({
|
|
2879
3246
|
"limit": zod.int().min(1).max(listFlowDefinitionsQueryLimitMax).default(listFlowDefinitionsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
2880
3247
|
"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'),
|
|
2881
|
-
"project_id": zod.string().regex(listFlowDefinitionsQueryProjectIdRegExp).describe('The
|
|
3248
|
+
"project_id": zod.string().regex(listFlowDefinitionsQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
2882
3249
|
"purpose": zod.enum(['login', 'register', 'recovery', 'profiling', 'reauth', 'link_account']).optional().describe('Filter flow definitions by purpose (e.g., registration, login).'),
|
|
2883
3250
|
"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'),
|
|
2884
3251
|
"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'),
|
|
@@ -2920,7 +3287,7 @@ export const ListFlowDefinitionsResponse = zod.object({
|
|
|
2920
3287
|
"flow_definition": zod.object({
|
|
2921
3288
|
"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'),
|
|
2922
3289
|
"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'),
|
|
2923
|
-
"user_schema": zod.string().describe('
|
|
3290
|
+
"user_schema": zod.string().describe('The user schema this flow operates on, named by its `objectType`. The\nflow runs against the project\'s newest revision of that schema, so\npublishing a schema revision needs no change to the flow. A schema id\nas returned by `POST /schemas` is also accepted and is stored as that\nschema\'s `objectType`; reading the definition back returns the\n`objectType`. A value naming no schema of the project is refused with\n`flowdef.invalid`. Step `fields` reference properties defined in the\nresolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n'),
|
|
2924
3291
|
"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'),
|
|
2925
3292
|
"audience": zod.object({
|
|
2926
3293
|
"team_ids": zod.array(zod.string()).optional().describe('Restrict to specific teams (organizations). Empty means no team restriction.'),
|
|
@@ -2941,7 +3308,7 @@ export const ListFlowDefinitionsResponse = zod.object({
|
|
|
2941
3308
|
"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')
|
|
2942
3309
|
}).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'),
|
|
2943
3310
|
"sso_providers": zod.array(zod.string().max(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemMax).regex(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItemRegExp)).max(listFlowDefinitionsResponseFlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersMax).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. A\nstep offers at most 20 providers.\n'),
|
|
2944
|
-
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned
|
|
3311
|
+
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned and the values the step collected, and\n links it to that identity. A unique value another user holds binds\n that user and routes user_already_exists instead.\n'),
|
|
2945
3312
|
"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'),
|
|
2946
3313
|
"transitions": zod.record(zod.string(), zod.object({
|
|
2947
3314
|
"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'),
|
|
@@ -2953,7 +3320,7 @@ export const ListFlowDefinitionsResponse = zod.object({
|
|
|
2953
3320
|
"user_schema": zod.union([zod.object({
|
|
2954
3321
|
"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'),
|
|
2955
3322
|
"schema": zod.object({
|
|
2956
|
-
"objectType": zod.string().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneObjectTypeMax).
|
|
3323
|
+
"objectType": zod.string().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
2957
3324
|
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
2958
3325
|
"metaSchema": zod.url().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
2959
3326
|
"x-auth-methods": zod.object({
|
|
@@ -3036,7 +3403,7 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
3036
3403
|
"flow_definition": zod.object({
|
|
3037
3404
|
"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'),
|
|
3038
3405
|
"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'),
|
|
3039
|
-
"user_schema": zod.string().describe('
|
|
3406
|
+
"user_schema": zod.string().describe('The user schema this flow operates on, named by its `objectType`. The\nflow runs against the project\'s newest revision of that schema, so\npublishing a schema revision needs no change to the flow. A schema id\nas returned by `POST /schemas` is also accepted and is stored as that\nschema\'s `objectType`; reading the definition back returns the\n`objectType`. A value naming no schema of the project is refused with\n`flowdef.invalid`. Step `fields` reference properties defined in the\nresolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n'),
|
|
3040
3407
|
"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'),
|
|
3041
3408
|
"audience": zod.object({
|
|
3042
3409
|
"team_ids": zod.array(zod.string()).optional().describe('Restrict to specific teams (organizations). Empty means no team restriction.'),
|
|
@@ -3057,7 +3424,7 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
3057
3424
|
"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')
|
|
3058
3425
|
}).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'),
|
|
3059
3426
|
"sso_providers": zod.array(zod.string().max(getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemMax).regex(getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersItemRegExp)).max(getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersMax).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. A\nstep offers at most 20 providers.\n'),
|
|
3060
|
-
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned
|
|
3427
|
+
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned and the values the step collected, and\n links it to that identity. A unique value another user holds binds\n that user and routes user_already_exists instead.\n'),
|
|
3061
3428
|
"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'),
|
|
3062
3429
|
"transitions": zod.record(zod.string(), zod.object({
|
|
3063
3430
|
"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'),
|
|
@@ -3069,7 +3436,7 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
3069
3436
|
"user_schema": zod.union([zod.object({
|
|
3070
3437
|
"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'),
|
|
3071
3438
|
"schema": zod.object({
|
|
3072
|
-
"objectType": zod.string().max(getFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax).
|
|
3439
|
+
"objectType": zod.string().max(getFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3073
3440
|
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
3074
3441
|
"metaSchema": zod.url().max(getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
3075
3442
|
"x-auth-methods": zod.object({
|
|
@@ -3109,6 +3476,10 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
3109
3476
|
|
|
3110
3477
|
|
|
3111
3478
|
/**
|
|
3479
|
+
* Creates a team in the project, with a name no other team in the project has.
|
|
3480
|
+
*
|
|
3481
|
+
* A taken name is refused with `409 team.already_exists`. The new team has no
|
|
3482
|
+
* members yet.
|
|
3112
3483
|
* @summary Create team
|
|
3113
3484
|
*/
|
|
3114
3485
|
export const createTeamQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -3185,7 +3556,7 @@ export const getTeamPathTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
3185
3556
|
|
|
3186
3557
|
|
|
3187
3558
|
export const GetTeamParams = zod.object({
|
|
3188
|
-
"team_id": zod.string().regex(getTeamPathTeamIdRegExp)
|
|
3559
|
+
"team_id": zod.string().regex(getTeamPathTeamIdRegExp).describe('The unique identifier of the team.')
|
|
3189
3560
|
})
|
|
3190
3561
|
|
|
3191
3562
|
export const GetTeamResponse = zod.object({
|
|
@@ -3217,7 +3588,7 @@ export const deleteTeamPathTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
3217
3588
|
|
|
3218
3589
|
|
|
3219
3590
|
export const DeleteTeamParams = zod.object({
|
|
3220
|
-
"team_id": zod.string().regex(deleteTeamPathTeamIdRegExp)
|
|
3591
|
+
"team_id": zod.string().regex(deleteTeamPathTeamIdRegExp).describe('The unique identifier of the team.')
|
|
3221
3592
|
})
|
|
3222
3593
|
|
|
3223
3594
|
export const DeleteTeamResponse = zod.void()
|
|
@@ -3231,7 +3602,7 @@ export const updateTeamPathTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
3231
3602
|
|
|
3232
3603
|
|
|
3233
3604
|
export const UpdateTeamParams = zod.object({
|
|
3234
|
-
"team_id": zod.string().regex(updateTeamPathTeamIdRegExp)
|
|
3605
|
+
"team_id": zod.string().regex(updateTeamPathTeamIdRegExp).describe('The unique identifier of the team.')
|
|
3235
3606
|
})
|
|
3236
3607
|
|
|
3237
3608
|
export const updateTeamBodyNameMax = 200;
|
|
@@ -3251,95 +3622,6 @@ export const UpdateTeamResponse = zod.object({
|
|
|
3251
3622
|
}).describe('Details of a team.')
|
|
3252
3623
|
|
|
3253
3624
|
|
|
3254
|
-
/**
|
|
3255
|
-
* Lists the project's environments ordered by name.
|
|
3256
|
-
* @summary List environments
|
|
3257
|
-
*/
|
|
3258
|
-
export const listEnvironmentsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
3259
|
-
export const listEnvironmentsQueryLimitDefault = 20;
|
|
3260
|
-
export const listEnvironmentsQueryLimitMax = 100;
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
export const ListEnvironmentsQueryParams = zod.strictObject({
|
|
3265
|
-
"project_id": zod.string().regex(listEnvironmentsQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
3266
|
-
"limit": zod.int().min(1).max(listEnvironmentsQueryLimitMax).default(listEnvironmentsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
3267
|
-
"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')
|
|
3268
|
-
})
|
|
3269
|
-
|
|
3270
|
-
export const listEnvironmentsResponseEnvironmentsItemProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
3271
|
-
export const listEnvironmentsResponseEnvironmentsItemNameMax = 63;
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
export const listEnvironmentsResponseEnvironmentsItemNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
3275
|
-
export const listEnvironmentsResponseEnvironmentsItemCurrentDeploymentOneIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
3276
|
-
export const listEnvironmentsResponseEnvironmentsItemCurrentDeploymentOneReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
export const ListEnvironmentsResponse = zod.object({
|
|
3280
|
-
"environments": zod.array(zod.object({
|
|
3281
|
-
"id": zod.string().describe('The opaque, immutable resource id.'),
|
|
3282
|
-
"project_id": zod.string().regex(listEnvironmentsResponseEnvironmentsItemProjectIdRegExp),
|
|
3283
|
-
"name": zod.string().max(listEnvironmentsResponseEnvironmentsItemNameMax).regex(listEnvironmentsResponseEnvironmentsItemNameRegExp).describe('An environment\'s public handle, unique within its project and immutable.\n\nIt addresses the environment on the wire and names a deploy target in the\nCLI, so it is a lowercase DNS-style label: letters, digits, and hyphens\nbetween them.\n'),
|
|
3284
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('When the environment was created.'),
|
|
3285
|
-
"current_deployment": zod.union([zod.object({
|
|
3286
|
-
"id": zod.string().regex(listEnvironmentsResponseEnvironmentsItemCurrentDeploymentOneIdRegExp).describe('The opaque, immutable identifier of a deployment.'),
|
|
3287
|
-
"release_id": zod.string().regex(listEnvironmentsResponseEnvironmentsItemCurrentDeploymentOneReleaseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
3288
|
-
"reason": zod.enum(['deploy', 'promote', 'rollback']).describe('Why the deployment was created. All three are the same operation — a new\ndeployment pointing the environment at a release — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the environment.\n- `promote` — a release that already runs on another environment goes live\n here; `source_environment_id` records where it came from.\n- `rollback` — a release the environment ran earlier goes live again.\n'),
|
|
3289
|
-
"deployed_at": zod.iso.datetime({"offset":true}).describe('When the release went live here.')
|
|
3290
|
-
}).describe('The deployment an environment currently runs: enough to say which release\nis live, since when, and why. The full record — who deployed, and where a\npromotion came from — is at `GET /deployments/{deployment_id}`.\n'),zod.null()]).describe('The deployment this environment currently runs, or `null` while nothing\nhas been deployed to it yet.\n')
|
|
3291
|
-
}).describe('A runtime slot on a project (ADR 035).\n\nIdentity plus what runs there: `current_deployment` names the release the\nenvironment currently runs. The deployment history lives at\n`GET /deployments`; environment lifecycle (create, rename, retire) arrives\nwith its own ADR. Until then every project is seeded with a fixed set of\nenvironments at creation and the set cannot be changed.\n')),
|
|
3292
|
-
"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')
|
|
3293
|
-
}).describe('The project\'s environments, ordered by name.')
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
/**
|
|
3297
|
-
* Reads one environment of the project by its name.
|
|
3298
|
-
*
|
|
3299
|
-
* The lookup is scoped to the project in `project_id`: a name that exists in
|
|
3300
|
-
* another project answers `env.not_found` exactly as an unused name does.
|
|
3301
|
-
* @summary Get an environment by name
|
|
3302
|
-
*/
|
|
3303
|
-
export const getEnvironmentByNamePathNameMax = 63;
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
export const getEnvironmentByNamePathNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
export const GetEnvironmentByNameParams = zod.object({
|
|
3310
|
-
"name": zod.string().max(getEnvironmentByNamePathNameMax).regex(getEnvironmentByNamePathNameRegExp).describe('The name of the environment, unique within the project.')
|
|
3311
|
-
})
|
|
3312
|
-
|
|
3313
|
-
export const getEnvironmentByNameQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
export const GetEnvironmentByNameQueryParams = zod.strictObject({
|
|
3317
|
-
"project_id": zod.string().regex(getEnvironmentByNameQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
3318
|
-
})
|
|
3319
|
-
|
|
3320
|
-
export const getEnvironmentByNameResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
3321
|
-
export const getEnvironmentByNameResponseNameMax = 63;
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
export const getEnvironmentByNameResponseNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
3325
|
-
export const getEnvironmentByNameResponseCurrentDeploymentOneIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
3326
|
-
export const getEnvironmentByNameResponseCurrentDeploymentOneReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
export const GetEnvironmentByNameResponse = zod.object({
|
|
3330
|
-
"id": zod.string().describe('The opaque, immutable resource id.'),
|
|
3331
|
-
"project_id": zod.string().regex(getEnvironmentByNameResponseProjectIdRegExp),
|
|
3332
|
-
"name": zod.string().max(getEnvironmentByNameResponseNameMax).regex(getEnvironmentByNameResponseNameRegExp).describe('An environment\'s public handle, unique within its project and immutable.\n\nIt addresses the environment on the wire and names a deploy target in the\nCLI, so it is a lowercase DNS-style label: letters, digits, and hyphens\nbetween them.\n'),
|
|
3333
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('When the environment was created.'),
|
|
3334
|
-
"current_deployment": zod.union([zod.object({
|
|
3335
|
-
"id": zod.string().regex(getEnvironmentByNameResponseCurrentDeploymentOneIdRegExp).describe('The opaque, immutable identifier of a deployment.'),
|
|
3336
|
-
"release_id": zod.string().regex(getEnvironmentByNameResponseCurrentDeploymentOneReleaseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
3337
|
-
"reason": zod.enum(['deploy', 'promote', 'rollback']).describe('Why the deployment was created. All three are the same operation — a new\ndeployment pointing the environment at a release — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the environment.\n- `promote` — a release that already runs on another environment goes live\n here; `source_environment_id` records where it came from.\n- `rollback` — a release the environment ran earlier goes live again.\n'),
|
|
3338
|
-
"deployed_at": zod.iso.datetime({"offset":true}).describe('When the release went live here.')
|
|
3339
|
-
}).describe('The deployment an environment currently runs: enough to say which release\nis live, since when, and why. The full record — who deployed, and where a\npromotion came from — is at `GET /deployments/{deployment_id}`.\n'),zod.null()]).describe('The deployment this environment currently runs, or `null` while nothing\nhas been deployed to it yet.\n')
|
|
3340
|
-
}).describe('A runtime slot on a project (ADR 035).\n\nIdentity plus what runs there: `current_deployment` names the release the\nenvironment currently runs. The deployment history lives at\n`GET /deployments`; environment lifecycle (create, rename, retire) arrives\nwith its own ADR. Until then every project is seeded with a fixed set of\nenvironments at creation and the set cannot be changed.\n')
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
3625
|
/**
|
|
3344
3626
|
* Publishes a new immutable branding revision for the project. Branding
|
|
3345
3627
|
* revisions cannot be updated or deleted; every edit publishes a new
|
|
@@ -3766,7 +4048,7 @@ export const ListBrandingResponse = zod.array(ListBrandingResponseItem)
|
|
|
3766
4048
|
* @summary Get a branding revision by ID
|
|
3767
4049
|
*/
|
|
3768
4050
|
export const GetBrandingByIdParams = zod.object({
|
|
3769
|
-
"id": zod.string()
|
|
4051
|
+
"id": zod.string().describe('The unique identifier of the branding revision.')
|
|
3770
4052
|
})
|
|
3771
4053
|
|
|
3772
4054
|
export const getBrandingByIdResponseBrandingLayoutDefault = `centered`;
|
|
@@ -3972,19 +4254,29 @@ export const GetBrandingByIdResponse = zod.object({
|
|
|
3972
4254
|
* releases and auth attempts stay pinned to the revision they captured.
|
|
3973
4255
|
*
|
|
3974
4256
|
* Identity fields are fixed for the life of the connection and a revision
|
|
3975
|
-
* that changes one is rejected: `protocol`, `subject_claim`, and
|
|
3976
|
-
*
|
|
3977
|
-
* and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
|
|
4257
|
+
* that changes one is rejected: `protocol`, `subject_claim`, and `issuer`,
|
|
4258
|
+
* the field that names the authority. Their values decide which provider
|
|
3978
4259
|
* account a stored subject belongs to, so changing one would silently
|
|
3979
4260
|
* repoint existing identities at a different provider.
|
|
3980
4261
|
*
|
|
3981
|
-
* `subject_claim` is optional
|
|
3982
|
-
*
|
|
3983
|
-
*
|
|
3984
|
-
*
|
|
4262
|
+
* `subject_claim` is optional, and `sub` is used as the default value. If a
|
|
4263
|
+
* revision updates `subject_claim` to a different value than the one set
|
|
4264
|
+
* during creation, the request is rejected.
|
|
4265
|
+
*
|
|
4266
|
+
* OIDC is the only protocol.
|
|
3985
4267
|
*
|
|
3986
4268
|
* The document is validated against the `idp-connection.json` schema before
|
|
3987
|
-
* anything is stored.
|
|
4269
|
+
* anything is stored. The rules the engine applies when it starts a sign-in
|
|
4270
|
+
* then run on the document, so a connection that could never start one is
|
|
4271
|
+
* refused here instead with `idp.endpoints_partial`: the OIDC block sets an
|
|
4272
|
+
* endpoint without the others. It either sets no endpoint, and discovery
|
|
4273
|
+
* fills them, or sets `authorization_endpoint`, `token_endpoint`, `jwks_uri`,
|
|
4274
|
+
* and `userinfo_endpoint`. `userinfo_endpoint` may be left out when
|
|
4275
|
+
* `id_token_mapping` is on, but setting it alone still counts as setting an
|
|
4276
|
+
* endpoint. The details list the missing endpoints.
|
|
4277
|
+
*
|
|
4278
|
+
* A refused document stores nothing, and on a revise the current revision
|
|
4279
|
+
* stays unchanged.
|
|
3988
4280
|
* @summary Create or revise an identity provider connection
|
|
3989
4281
|
*/
|
|
3990
4282
|
export const createIdpQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -4016,24 +4308,16 @@ export const createIdpBodyIdpOidcTokenEndpointAuthMethodDefault = `client_secret
|
|
|
4016
4308
|
export const createIdpBodyIdpOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4017
4309
|
|
|
4018
4310
|
export const createIdpBodyIdpOidcPkceEnabledDefault = true;
|
|
4019
|
-
export const createIdpBodyIdpOauth2AuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4020
|
-
export const createIdpBodyIdpOauth2TokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4021
|
-
export const createIdpBodyIdpOauth2UserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4022
|
-
export const createIdpBodyIdpOauth2ClientIdMax = 512;
|
|
4023
|
-
|
|
4024
|
-
export const createIdpBodyIdpOauth2ClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4025
|
-
export const createIdpBodyIdpOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4026
|
-
export const createIdpBodyIdpOauth2PkceEnabledDefault = true;
|
|
4027
4311
|
|
|
4028
4312
|
export const CreateIdpBody = zod.object({
|
|
4029
4313
|
"idp": zod.object({
|
|
4030
4314
|
"slug": zod.string().max(createIdpBodyIdpSlugMax).regex(createIdpBodyIdpSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
4031
|
-
"protocol": zod.enum(['oidc'
|
|
4315
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
4032
4316
|
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
4033
4317
|
"display_name": zod.string().min(1).max(createIdpBodyIdpDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
4034
|
-
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional
|
|
4035
|
-
"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
|
|
4036
|
-
"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)
|
|
4318
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
4319
|
+
"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`) 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.'),
|
|
4320
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
4037
4321
|
"provisioning": zod.object({
|
|
4038
4322
|
"creation": zod.enum(['disabled', 'auto']).default(createIdpBodyIdpProvisioningCreationDefault)
|
|
4039
4323
|
}).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.'),
|
|
@@ -4050,19 +4334,7 @@ export const CreateIdpBody = zod.object({
|
|
|
4050
4334
|
"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.'),
|
|
4051
4335
|
"pkce_enabled": zod.boolean().default(createIdpBodyIdpOidcPkceEnabledDefault).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.'),
|
|
4052
4336
|
"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.')
|
|
4053
|
-
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting
|
|
4054
|
-
"oauth2": zod.object({
|
|
4055
|
-
"authorization_endpoint": zod.string().regex(createIdpBodyIdpOauth2AuthorizationEndpointRegExp).describe('Where the user is sent to authorize.'),
|
|
4056
|
-
"token_endpoint": zod.string().regex(createIdpBodyIdpOauth2TokenEndpointRegExp).describe('Where the authorization code is exchanged.'),
|
|
4057
|
-
"userinfo_endpoint": zod.string().regex(createIdpBodyIdpOauth2UserinfoEndpointRegExp).describe('Where the authenticated user\'s profile is fetched.'),
|
|
4058
|
-
"client_id": zod.string().min(1).max(createIdpBodyIdpOauth2ClientIdMax).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.'),
|
|
4059
|
-
"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.'),
|
|
4060
|
-
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(createIdpBodyIdpOauth2TokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
4061
|
-
"scopes": zod.array(zod.string().min(1)).optional().describe('Provider-specific; OAuth 2.0 defines no universal scope.'),
|
|
4062
|
-
"pkce_enabled": zod.boolean().default(createIdpBodyIdpOauth2PkceEnabledDefault).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.'),
|
|
4063
|
-
"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.'),
|
|
4064
|
-
"supplementary_fetch": zod.enum(['github_primary_email']).optional().describe('Provider-specific follow-up call after userinfo. New values are non-breaking.')
|
|
4065
|
-
}).optional().describe('OAuth 2.0 connection details.')
|
|
4337
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
4066
4338
|
})
|
|
4067
4339
|
}).describe('Creates or revises an identity provider connection document.')
|
|
4068
4340
|
|
|
@@ -4088,14 +4360,6 @@ export const createIdpResponseDefinitionOidcTokenEndpointAuthMethodDefault = `cl
|
|
|
4088
4360
|
export const createIdpResponseDefinitionOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4089
4361
|
|
|
4090
4362
|
export const createIdpResponseDefinitionOidcPkceEnabledDefault = true;
|
|
4091
|
-
export const createIdpResponseDefinitionOauth2AuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4092
|
-
export const createIdpResponseDefinitionOauth2TokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4093
|
-
export const createIdpResponseDefinitionOauth2UserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4094
|
-
export const createIdpResponseDefinitionOauth2ClientIdMax = 512;
|
|
4095
|
-
|
|
4096
|
-
export const createIdpResponseDefinitionOauth2ClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4097
|
-
export const createIdpResponseDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4098
|
-
export const createIdpResponseDefinitionOauth2PkceEnabledDefault = true;
|
|
4099
4363
|
|
|
4100
4364
|
export const CreateIdpResponse = zod.object({
|
|
4101
4365
|
"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'),
|
|
@@ -4105,12 +4369,12 @@ export const CreateIdpResponse = zod.object({
|
|
|
4105
4369
|
"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'),
|
|
4106
4370
|
"definition": zod.object({
|
|
4107
4371
|
"slug": zod.string().max(createIdpResponseDefinitionSlugMax).regex(createIdpResponseDefinitionSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
4108
|
-
"protocol": zod.enum(['oidc'
|
|
4372
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
4109
4373
|
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
4110
4374
|
"display_name": zod.string().min(1).max(createIdpResponseDefinitionDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
4111
|
-
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional
|
|
4112
|
-
"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
|
|
4113
|
-
"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)
|
|
4375
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
4376
|
+
"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`) 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.'),
|
|
4377
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
4114
4378
|
"provisioning": zod.object({
|
|
4115
4379
|
"creation": zod.enum(['disabled', 'auto']).default(createIdpResponseDefinitionProvisioningCreationDefault)
|
|
4116
4380
|
}).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.'),
|
|
@@ -4127,19 +4391,7 @@ export const CreateIdpResponse = zod.object({
|
|
|
4127
4391
|
"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.'),
|
|
4128
4392
|
"pkce_enabled": zod.boolean().default(createIdpResponseDefinitionOidcPkceEnabledDefault).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.'),
|
|
4129
4393
|
"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.')
|
|
4130
|
-
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting
|
|
4131
|
-
"oauth2": zod.object({
|
|
4132
|
-
"authorization_endpoint": zod.string().regex(createIdpResponseDefinitionOauth2AuthorizationEndpointRegExp).describe('Where the user is sent to authorize.'),
|
|
4133
|
-
"token_endpoint": zod.string().regex(createIdpResponseDefinitionOauth2TokenEndpointRegExp).describe('Where the authorization code is exchanged.'),
|
|
4134
|
-
"userinfo_endpoint": zod.string().regex(createIdpResponseDefinitionOauth2UserinfoEndpointRegExp).describe('Where the authenticated user\'s profile is fetched.'),
|
|
4135
|
-
"client_id": zod.string().min(1).max(createIdpResponseDefinitionOauth2ClientIdMax).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.'),
|
|
4136
|
-
"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.'),
|
|
4137
|
-
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(createIdpResponseDefinitionOauth2TokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
4138
|
-
"scopes": zod.array(zod.string().min(1)).optional().describe('Provider-specific; OAuth 2.0 defines no universal scope.'),
|
|
4139
|
-
"pkce_enabled": zod.boolean().default(createIdpResponseDefinitionOauth2PkceEnabledDefault).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.'),
|
|
4140
|
-
"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.'),
|
|
4141
|
-
"supplementary_fetch": zod.enum(['github_primary_email']).optional().describe('Provider-specific follow-up call after userinfo. New values are non-breaking.')
|
|
4142
|
-
}).optional().describe('OAuth 2.0 connection details.')
|
|
4394
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
4143
4395
|
})
|
|
4144
4396
|
}).describe('An identity provider connection.\n')
|
|
4145
4397
|
|
|
@@ -4197,14 +4449,6 @@ export const queryIdpsResponseIdpsItemDefinitionOidcTokenEndpointAuthMethodDefau
|
|
|
4197
4449
|
export const queryIdpsResponseIdpsItemDefinitionOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4198
4450
|
|
|
4199
4451
|
export const queryIdpsResponseIdpsItemDefinitionOidcPkceEnabledDefault = true;
|
|
4200
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2AuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4201
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4202
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2UserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4203
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2ClientIdMax = 512;
|
|
4204
|
-
|
|
4205
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2ClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4206
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4207
|
-
export const queryIdpsResponseIdpsItemDefinitionOauth2PkceEnabledDefault = true;
|
|
4208
4452
|
|
|
4209
4453
|
export const QueryIdpsResponse = zod.object({
|
|
4210
4454
|
"idps": zod.array(zod.object({
|
|
@@ -4215,12 +4459,12 @@ export const QueryIdpsResponse = zod.object({
|
|
|
4215
4459
|
"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'),
|
|
4216
4460
|
"definition": zod.object({
|
|
4217
4461
|
"slug": zod.string().max(queryIdpsResponseIdpsItemDefinitionSlugMax).regex(queryIdpsResponseIdpsItemDefinitionSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
4218
|
-
"protocol": zod.enum(['oidc'
|
|
4462
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
4219
4463
|
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
4220
4464
|
"display_name": zod.string().min(1).max(queryIdpsResponseIdpsItemDefinitionDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
4221
|
-
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional
|
|
4222
|
-
"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
|
|
4223
|
-
"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)
|
|
4465
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
4466
|
+
"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`) 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.'),
|
|
4467
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
4224
4468
|
"provisioning": zod.object({
|
|
4225
4469
|
"creation": zod.enum(['disabled', 'auto']).default(queryIdpsResponseIdpsItemDefinitionProvisioningCreationDefault)
|
|
4226
4470
|
}).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.'),
|
|
@@ -4237,19 +4481,7 @@ export const QueryIdpsResponse = zod.object({
|
|
|
4237
4481
|
"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.'),
|
|
4238
4482
|
"pkce_enabled": zod.boolean().default(queryIdpsResponseIdpsItemDefinitionOidcPkceEnabledDefault).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.'),
|
|
4239
4483
|
"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.')
|
|
4240
|
-
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting
|
|
4241
|
-
"oauth2": zod.object({
|
|
4242
|
-
"authorization_endpoint": zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2AuthorizationEndpointRegExp).describe('Where the user is sent to authorize.'),
|
|
4243
|
-
"token_endpoint": zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointRegExp).describe('Where the authorization code is exchanged.'),
|
|
4244
|
-
"userinfo_endpoint": zod.string().regex(queryIdpsResponseIdpsItemDefinitionOauth2UserinfoEndpointRegExp).describe('Where the authenticated user\'s profile is fetched.'),
|
|
4245
|
-
"client_id": zod.string().min(1).max(queryIdpsResponseIdpsItemDefinitionOauth2ClientIdMax).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.'),
|
|
4246
|
-
"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.'),
|
|
4247
|
-
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(queryIdpsResponseIdpsItemDefinitionOauth2TokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
4248
|
-
"scopes": zod.array(zod.string().min(1)).optional().describe('Provider-specific; OAuth 2.0 defines no universal scope.'),
|
|
4249
|
-
"pkce_enabled": zod.boolean().default(queryIdpsResponseIdpsItemDefinitionOauth2PkceEnabledDefault).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.'),
|
|
4250
|
-
"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.'),
|
|
4251
|
-
"supplementary_fetch": zod.enum(['github_primary_email']).optional().describe('Provider-specific follow-up call after userinfo. New values are non-breaking.')
|
|
4252
|
-
}).optional().describe('OAuth 2.0 connection details.')
|
|
4484
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
4253
4485
|
})
|
|
4254
4486
|
}).describe('An identity provider connection.\n')),
|
|
4255
4487
|
"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')
|
|
@@ -4296,14 +4528,6 @@ export const getIdpByIdResponseDefinitionOidcTokenEndpointAuthMethodDefault = `c
|
|
|
4296
4528
|
export const getIdpByIdResponseDefinitionOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4297
4529
|
|
|
4298
4530
|
export const getIdpByIdResponseDefinitionOidcPkceEnabledDefault = true;
|
|
4299
|
-
export const getIdpByIdResponseDefinitionOauth2AuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4300
|
-
export const getIdpByIdResponseDefinitionOauth2TokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4301
|
-
export const getIdpByIdResponseDefinitionOauth2UserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4302
|
-
export const getIdpByIdResponseDefinitionOauth2ClientIdMax = 512;
|
|
4303
|
-
|
|
4304
|
-
export const getIdpByIdResponseDefinitionOauth2ClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4305
|
-
export const getIdpByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4306
|
-
export const getIdpByIdResponseDefinitionOauth2PkceEnabledDefault = true;
|
|
4307
4531
|
|
|
4308
4532
|
export const GetIdpByIdResponse = zod.object({
|
|
4309
4533
|
"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'),
|
|
@@ -4313,12 +4537,12 @@ export const GetIdpByIdResponse = zod.object({
|
|
|
4313
4537
|
"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'),
|
|
4314
4538
|
"definition": zod.object({
|
|
4315
4539
|
"slug": zod.string().max(getIdpByIdResponseDefinitionSlugMax).regex(getIdpByIdResponseDefinitionSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
4316
|
-
"protocol": zod.enum(['oidc'
|
|
4540
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
4317
4541
|
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
4318
4542
|
"display_name": zod.string().min(1).max(getIdpByIdResponseDefinitionDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
4319
|
-
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional
|
|
4320
|
-
"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
|
|
4321
|
-
"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)
|
|
4543
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
4544
|
+
"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`) 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.'),
|
|
4545
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
4322
4546
|
"provisioning": zod.object({
|
|
4323
4547
|
"creation": zod.enum(['disabled', 'auto']).default(getIdpByIdResponseDefinitionProvisioningCreationDefault)
|
|
4324
4548
|
}).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.'),
|
|
@@ -4335,19 +4559,7 @@ export const GetIdpByIdResponse = zod.object({
|
|
|
4335
4559
|
"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.'),
|
|
4336
4560
|
"pkce_enabled": zod.boolean().default(getIdpByIdResponseDefinitionOidcPkceEnabledDefault).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.'),
|
|
4337
4561
|
"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.')
|
|
4338
|
-
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting
|
|
4339
|
-
"oauth2": zod.object({
|
|
4340
|
-
"authorization_endpoint": zod.string().regex(getIdpByIdResponseDefinitionOauth2AuthorizationEndpointRegExp).describe('Where the user is sent to authorize.'),
|
|
4341
|
-
"token_endpoint": zod.string().regex(getIdpByIdResponseDefinitionOauth2TokenEndpointRegExp).describe('Where the authorization code is exchanged.'),
|
|
4342
|
-
"userinfo_endpoint": zod.string().regex(getIdpByIdResponseDefinitionOauth2UserinfoEndpointRegExp).describe('Where the authenticated user\'s profile is fetched.'),
|
|
4343
|
-
"client_id": zod.string().min(1).max(getIdpByIdResponseDefinitionOauth2ClientIdMax).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.'),
|
|
4344
|
-
"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.'),
|
|
4345
|
-
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(getIdpByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
4346
|
-
"scopes": zod.array(zod.string().min(1)).optional().describe('Provider-specific; OAuth 2.0 defines no universal scope.'),
|
|
4347
|
-
"pkce_enabled": zod.boolean().default(getIdpByIdResponseDefinitionOauth2PkceEnabledDefault).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.'),
|
|
4348
|
-
"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.'),
|
|
4349
|
-
"supplementary_fetch": zod.enum(['github_primary_email']).optional().describe('Provider-specific follow-up call after userinfo. New values are non-breaking.')
|
|
4350
|
-
}).optional().describe('OAuth 2.0 connection details.')
|
|
4562
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
4351
4563
|
})
|
|
4352
4564
|
}).describe('An identity provider connection.\n')
|
|
4353
4565
|
|
|
@@ -4397,14 +4609,6 @@ export const listIdpRevisionsResponseRevisionsItemDefinitionOidcTokenEndpointAut
|
|
|
4397
4609
|
export const listIdpRevisionsResponseRevisionsItemDefinitionOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4398
4610
|
|
|
4399
4611
|
export const listIdpRevisionsResponseRevisionsItemDefinitionOidcPkceEnabledDefault = true;
|
|
4400
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2AuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4401
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4402
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2UserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4403
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientIdMax = 512;
|
|
4404
|
-
|
|
4405
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4406
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4407
|
-
export const listIdpRevisionsResponseRevisionsItemDefinitionOauth2PkceEnabledDefault = true;
|
|
4408
4612
|
|
|
4409
4613
|
export const ListIdpRevisionsResponse = zod.object({
|
|
4410
4614
|
"revisions": zod.array(zod.object({
|
|
@@ -4415,12 +4619,12 @@ export const ListIdpRevisionsResponse = zod.object({
|
|
|
4415
4619
|
"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'),
|
|
4416
4620
|
"definition": zod.object({
|
|
4417
4621
|
"slug": zod.string().max(listIdpRevisionsResponseRevisionsItemDefinitionSlugMax).regex(listIdpRevisionsResponseRevisionsItemDefinitionSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
4418
|
-
"protocol": zod.enum(['oidc'
|
|
4622
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
4419
4623
|
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
4420
4624
|
"display_name": zod.string().min(1).max(listIdpRevisionsResponseRevisionsItemDefinitionDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
4421
|
-
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional
|
|
4422
|
-
"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
|
|
4423
|
-
"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)
|
|
4625
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
4626
|
+
"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`) 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.'),
|
|
4627
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
4424
4628
|
"provisioning": zod.object({
|
|
4425
4629
|
"creation": zod.enum(['disabled', 'auto']).default(listIdpRevisionsResponseRevisionsItemDefinitionProvisioningCreationDefault)
|
|
4426
4630
|
}).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.'),
|
|
@@ -4437,19 +4641,7 @@ export const ListIdpRevisionsResponse = zod.object({
|
|
|
4437
4641
|
"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.'),
|
|
4438
4642
|
"pkce_enabled": zod.boolean().default(listIdpRevisionsResponseRevisionsItemDefinitionOidcPkceEnabledDefault).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.'),
|
|
4439
4643
|
"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.')
|
|
4440
|
-
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting
|
|
4441
|
-
"oauth2": zod.object({
|
|
4442
|
-
"authorization_endpoint": zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2AuthorizationEndpointRegExp).describe('Where the user is sent to authorize.'),
|
|
4443
|
-
"token_endpoint": zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointRegExp).describe('Where the authorization code is exchanged.'),
|
|
4444
|
-
"userinfo_endpoint": zod.string().regex(listIdpRevisionsResponseRevisionsItemDefinitionOauth2UserinfoEndpointRegExp).describe('Where the authenticated user\'s profile is fetched.'),
|
|
4445
|
-
"client_id": zod.string().min(1).max(listIdpRevisionsResponseRevisionsItemDefinitionOauth2ClientIdMax).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.'),
|
|
4446
|
-
"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.'),
|
|
4447
|
-
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(listIdpRevisionsResponseRevisionsItemDefinitionOauth2TokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
4448
|
-
"scopes": zod.array(zod.string().min(1)).optional().describe('Provider-specific; OAuth 2.0 defines no universal scope.'),
|
|
4449
|
-
"pkce_enabled": zod.boolean().default(listIdpRevisionsResponseRevisionsItemDefinitionOauth2PkceEnabledDefault).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.'),
|
|
4450
|
-
"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.'),
|
|
4451
|
-
"supplementary_fetch": zod.enum(['github_primary_email']).optional().describe('Provider-specific follow-up call after userinfo. New values are non-breaking.')
|
|
4452
|
-
}).optional().describe('OAuth 2.0 connection details.')
|
|
4644
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
4453
4645
|
})
|
|
4454
4646
|
}).describe('An identity provider connection.\n')),
|
|
4455
4647
|
"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')
|
|
@@ -4496,14 +4688,6 @@ export const getIdpRevisionByIdResponseDefinitionOidcTokenEndpointAuthMethodDefa
|
|
|
4496
4688
|
export const getIdpRevisionByIdResponseDefinitionOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4497
4689
|
|
|
4498
4690
|
export const getIdpRevisionByIdResponseDefinitionOidcPkceEnabledDefault = true;
|
|
4499
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2AuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4500
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4501
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2UserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4502
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2ClientIdMax = 512;
|
|
4503
|
-
|
|
4504
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2ClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4505
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4506
|
-
export const getIdpRevisionByIdResponseDefinitionOauth2PkceEnabledDefault = true;
|
|
4507
4691
|
|
|
4508
4692
|
export const GetIdpRevisionByIdResponse = zod.object({
|
|
4509
4693
|
"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'),
|
|
@@ -4513,12 +4697,12 @@ export const GetIdpRevisionByIdResponse = zod.object({
|
|
|
4513
4697
|
"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'),
|
|
4514
4698
|
"definition": zod.object({
|
|
4515
4699
|
"slug": zod.string().max(getIdpRevisionByIdResponseDefinitionSlugMax).regex(getIdpRevisionByIdResponseDefinitionSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
4516
|
-
"protocol": zod.enum(['oidc'
|
|
4700
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
4517
4701
|
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
4518
4702
|
"display_name": zod.string().min(1).max(getIdpRevisionByIdResponseDefinitionDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
4519
|
-
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional
|
|
4520
|
-
"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
|
|
4521
|
-
"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)
|
|
4703
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
4704
|
+
"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`) 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.'),
|
|
4705
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
4522
4706
|
"provisioning": zod.object({
|
|
4523
4707
|
"creation": zod.enum(['disabled', 'auto']).default(getIdpRevisionByIdResponseDefinitionProvisioningCreationDefault)
|
|
4524
4708
|
}).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.'),
|
|
@@ -4535,39 +4719,31 @@ export const GetIdpRevisionByIdResponse = zod.object({
|
|
|
4535
4719
|
"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.'),
|
|
4536
4720
|
"pkce_enabled": zod.boolean().default(getIdpRevisionByIdResponseDefinitionOidcPkceEnabledDefault).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.'),
|
|
4537
4721
|
"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.')
|
|
4538
|
-
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting
|
|
4539
|
-
"oauth2": zod.object({
|
|
4540
|
-
"authorization_endpoint": zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2AuthorizationEndpointRegExp).describe('Where the user is sent to authorize.'),
|
|
4541
|
-
"token_endpoint": zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointRegExp).describe('Where the authorization code is exchanged.'),
|
|
4542
|
-
"userinfo_endpoint": zod.string().regex(getIdpRevisionByIdResponseDefinitionOauth2UserinfoEndpointRegExp).describe('Where the authenticated user\'s profile is fetched.'),
|
|
4543
|
-
"client_id": zod.string().min(1).max(getIdpRevisionByIdResponseDefinitionOauth2ClientIdMax).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.'),
|
|
4544
|
-
"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.'),
|
|
4545
|
-
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(getIdpRevisionByIdResponseDefinitionOauth2TokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
4546
|
-
"scopes": zod.array(zod.string().min(1)).optional().describe('Provider-specific; OAuth 2.0 defines no universal scope.'),
|
|
4547
|
-
"pkce_enabled": zod.boolean().default(getIdpRevisionByIdResponseDefinitionOauth2PkceEnabledDefault).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.'),
|
|
4548
|
-
"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.'),
|
|
4549
|
-
"supplementary_fetch": zod.enum(['github_primary_email']).optional().describe('Provider-specific follow-up call after userinfo. New values are non-breaking.')
|
|
4550
|
-
}).optional().describe('OAuth 2.0 connection details.')
|
|
4722
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
4551
4723
|
})
|
|
4552
4724
|
}).describe('An identity provider connection.\n')
|
|
4553
4725
|
|
|
4554
4726
|
|
|
4555
4727
|
/**
|
|
4556
|
-
*
|
|
4557
|
-
* `(kind, revision_id)` pairs.
|
|
4558
|
-
*
|
|
4728
|
+
* Assembles a release from existing revisions, given as
|
|
4729
|
+
* `(kind, revision_id)` pairs. To build one from files on disk, use
|
|
4730
|
+
* `POST /releases/build`.
|
|
4559
4731
|
*
|
|
4560
|
-
*
|
|
4561
|
-
*
|
|
4562
|
-
* is always pinned under the identity it declares.
|
|
4732
|
+
* Each revision must exist in the project and is recorded under the handle
|
|
4733
|
+
* it declares. The release must be complete and consistent:
|
|
4563
4734
|
*
|
|
4564
|
-
*
|
|
4565
|
-
* and the
|
|
4566
|
-
*
|
|
4735
|
+
* - Every handle its revisions name must be in the release: a flow's
|
|
4736
|
+
* `user_schema`, and the IDP connections named by a flow step's
|
|
4737
|
+
* `sso_providers` or a schema's `x-auth-methods.sso.providers`. A missing
|
|
4738
|
+
* one answers `rel.unresolved_reference`, naming the resource and the
|
|
4739
|
+
* handle, e.g. `flow_definition default-login: user_schema human-user not found`.
|
|
4740
|
+
* - Every flow is validated as on save, against the user schema revision
|
|
4741
|
+
* in the release. A flow that fails answers `rel.invalid`, with the
|
|
4742
|
+
* reason in `details`.
|
|
4567
4743
|
*
|
|
4568
|
-
* Idempotent on the
|
|
4569
|
-
*
|
|
4570
|
-
*
|
|
4744
|
+
* Idempotent on the set of revisions: the same revisions with a different
|
|
4745
|
+
* `message` answer `200` with the existing release. A new release answers
|
|
4746
|
+
* `201`. Creating a release does not deploy it.
|
|
4571
4747
|
* @summary Create a release
|
|
4572
4748
|
*/
|
|
4573
4749
|
export const createReleaseQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -4589,7 +4765,7 @@ export const createReleaseBodyGitDirtyDefault = false;
|
|
|
4589
4765
|
|
|
4590
4766
|
export const CreateReleaseBody = zod.object({
|
|
4591
4767
|
"pointers": zod.array(zod.object({
|
|
4592
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding']).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'),
|
|
4768
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
4593
4769
|
"revision_id": zod.string().min(1).max(createReleaseBodyPointersItemRevisionIdMax).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')
|
|
4594
4770
|
}).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(createReleaseBodyPointersMax).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'),
|
|
4595
4771
|
"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'),
|
|
@@ -4599,6 +4775,11 @@ export const CreateReleaseBody = zod.object({
|
|
|
4599
4775
|
|
|
4600
4776
|
export const createReleaseResponseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
4601
4777
|
export const createReleaseResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4778
|
+
export const createReleaseResponseContentHashMin = 71;
|
|
4779
|
+
export const createReleaseResponseContentHashMax = 71;
|
|
4780
|
+
|
|
4781
|
+
|
|
4782
|
+
export const createReleaseResponseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
4602
4783
|
export const createReleaseResponseMetadataMessageOneMax = 1024;
|
|
4603
4784
|
|
|
4604
4785
|
export const createReleaseResponseMetadataGitShaOneMax = 64;
|
|
@@ -4615,6 +4796,7 @@ export const createReleaseResponsePointersMax = 50;
|
|
|
4615
4796
|
export const CreateReleaseResponse = zod.object({
|
|
4616
4797
|
"id": zod.string().regex(createReleaseResponseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
4617
4798
|
"project_id": zod.string().regex(createReleaseResponseProjectIdRegExp),
|
|
4799
|
+
"content_hash": zod.string().min(createReleaseResponseContentHashMin).max(createReleaseResponseContentHashMax).regex(createReleaseResponseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
4618
4800
|
"metadata": zod.object({
|
|
4619
4801
|
"message": zod.union([zod.string().max(createReleaseResponseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
4620
4802
|
"git_sha": zod.union([zod.string().max(createReleaseResponseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
@@ -4623,22 +4805,35 @@ export const CreateReleaseResponse = zod.object({
|
|
|
4623
4805
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
4624
4806
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
4625
4807
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
4808
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
4626
4809
|
"pointers": zod.array(zod.object({
|
|
4627
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding']).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'),
|
|
4628
|
-
"handle": zod.string().min(1).max(createReleaseResponsePointersItemHandleMax).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'),
|
|
4810
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
4811
|
+
"handle": zod.string().min(1).max(createReleaseResponsePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
4629
4812
|
"revision_id": zod.string().min(1).max(createReleaseResponsePointersItemRevisionIdMax).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')
|
|
4630
4813
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(createReleaseResponsePointersMax).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')
|
|
4631
|
-
}).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
|
|
4814
|
+
}).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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
4632
4815
|
|
|
4633
4816
|
|
|
4634
4817
|
/**
|
|
4635
4818
|
* Lists the project's releases, newest first.
|
|
4636
4819
|
*
|
|
4637
|
-
* Entries carry metadata
|
|
4638
|
-
*
|
|
4820
|
+
* Entries carry the digest, the metadata and `revoked_at` — the pinned set
|
|
4821
|
+
* is omitted.
|
|
4822
|
+
* Read one release with `GET /releases/{release_id}` to get its pointers.
|
|
4823
|
+
*
|
|
4824
|
+
* `content_hash` looks a release up by its content, as the CLI does when a
|
|
4825
|
+
* person types the digest a transcript printed. The project holds at most
|
|
4826
|
+
* one release per digest, so the filtered list has one entry or none, and
|
|
4827
|
+
* an unknown digest is an empty list rather than an error. Paths take the
|
|
4828
|
+
* `rel_` id only; the matched entry's `id` is what to use there.
|
|
4639
4829
|
* @summary List releases
|
|
4640
4830
|
*/
|
|
4641
4831
|
export const listReleasesQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4832
|
+
export const listReleasesQueryContentHashMin = 71;
|
|
4833
|
+
export const listReleasesQueryContentHashMax = 71;
|
|
4834
|
+
|
|
4835
|
+
|
|
4836
|
+
export const listReleasesQueryContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
4642
4837
|
export const listReleasesQueryLimitDefault = 20;
|
|
4643
4838
|
export const listReleasesQueryLimitMax = 100;
|
|
4644
4839
|
|
|
@@ -4646,12 +4841,18 @@ export const listReleasesQueryLimitMax = 100;
|
|
|
4646
4841
|
|
|
4647
4842
|
export const ListReleasesQueryParams = zod.strictObject({
|
|
4648
4843
|
"project_id": zod.string().regex(listReleasesQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
4844
|
+
"content_hash": zod.string().min(listReleasesQueryContentHashMin).max(listReleasesQueryContentHashMax).regex(listReleasesQueryContentHashRegExp).optional().describe('Narrows the list to the release with this content digest, given in full\nwith its `sha256:` prefix. A project holds at most one release per digest,\nso the result has one entry or none.\n\nA digest no release of the project carries answers an empty list, not an\nerror: the filter asks which release has this content, and "none" is a\nvalid answer. Paths never take a digest; read the matched entry\'s `id`\nand use that.\n'),
|
|
4649
4845
|
"limit": zod.int().min(1).max(listReleasesQueryLimitMax).default(listReleasesQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
4650
4846
|
"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')
|
|
4651
4847
|
})
|
|
4652
4848
|
|
|
4653
4849
|
export const listReleasesResponseReleasesItemIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
4654
4850
|
export const listReleasesResponseReleasesItemProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4851
|
+
export const listReleasesResponseReleasesItemContentHashMin = 71;
|
|
4852
|
+
export const listReleasesResponseReleasesItemContentHashMax = 71;
|
|
4853
|
+
|
|
4854
|
+
|
|
4855
|
+
export const listReleasesResponseReleasesItemContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
4655
4856
|
export const listReleasesResponseReleasesItemMetadataMessageOneMax = 1024;
|
|
4656
4857
|
|
|
4657
4858
|
export const listReleasesResponseReleasesItemMetadataGitShaOneMax = 64;
|
|
@@ -4662,6 +4863,7 @@ export const ListReleasesResponse = zod.object({
|
|
|
4662
4863
|
"releases": zod.array(zod.object({
|
|
4663
4864
|
"id": zod.string().regex(listReleasesResponseReleasesItemIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
4664
4865
|
"project_id": zod.string().regex(listReleasesResponseReleasesItemProjectIdRegExp),
|
|
4866
|
+
"content_hash": zod.string().min(listReleasesResponseReleasesItemContentHashMin).max(listReleasesResponseReleasesItemContentHashMax).regex(listReleasesResponseReleasesItemContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
4665
4867
|
"metadata": zod.object({
|
|
4666
4868
|
"message": zod.union([zod.string().max(listReleasesResponseReleasesItemMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
4667
4869
|
"git_sha": zod.union([zod.string().max(listReleasesResponseReleasesItemMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
@@ -4669,71 +4871,587 @@ export const ListReleasesResponse = zod.object({
|
|
|
4669
4871
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the release was assembled.'),
|
|
4670
4872
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
4671
4873
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
4672
|
-
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n')
|
|
4874
|
+
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
4875
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not.')
|
|
4673
4876
|
}).describe('A release without its pinned set — the shape `GET /releases` returns.\n\nPointers are omitted rather than optional so that a list entry can never be\nmistaken for a release that pins nothing; fetch them with\n`GET /releases/{release_id}`.\n')),
|
|
4674
4877
|
"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')
|
|
4675
4878
|
}).describe('The project\'s releases, newest first.')
|
|
4676
4879
|
|
|
4677
4880
|
|
|
4678
4881
|
/**
|
|
4679
|
-
*
|
|
4680
|
-
*
|
|
4882
|
+
* Builds a release from the resources of `.zitadel/` as authored on disk,
|
|
4883
|
+
* grouped by kind, in one transaction: a failure anywhere leaves no
|
|
4884
|
+
* revision and no release. The caller records nothing.
|
|
4681
4885
|
*
|
|
4682
|
-
*
|
|
4683
|
-
*
|
|
4886
|
+
* If the project already holds a release with the same content, the same
|
|
4887
|
+
* `content_hash`, the request answers `200` with that release and
|
|
4888
|
+
* allocates nothing, however long ago it was built. Otherwise every resource is compared against the
|
|
4889
|
+
* project's newest revision of the same handle: unchanged content reuses
|
|
4890
|
+
* that revision, changed content allocates a new one, and the request
|
|
4891
|
+
* answers `201` with the new release. Metadata is excluded from the
|
|
4892
|
+
* comparison, so the same content under a different `message` is the same
|
|
4893
|
+
* release.
|
|
4684
4894
|
*
|
|
4685
|
-
*
|
|
4686
|
-
*
|
|
4687
|
-
*
|
|
4688
|
-
*
|
|
4689
|
-
*
|
|
4895
|
+
* A structurally malformed request is refused while decoding with
|
|
4896
|
+
* `req.invalid`, naming the offending fields. A well-formed bundle is then
|
|
4897
|
+
* checked resource by resource, as each kind's create endpoint checks it,
|
|
4898
|
+
* and every failure is reported at once: the request answers `400` with
|
|
4899
|
+
* `rel.invalid`, and `details.resources` lists each resource that failed.
|
|
4900
|
+
* A handle that resolves neither in the bundle nor in the project answers
|
|
4901
|
+
* `rel.unresolved_reference`, naming the pointer and the handle.
|
|
4902
|
+
*
|
|
4903
|
+
* Building writes revisions, so besides `release.write` it needs the write
|
|
4904
|
+
* scope of every kind the bundle carries a resource of: `schema.write`,
|
|
4905
|
+
* `flow_definition.write`, `branding.write` and `idp.write`, as the
|
|
4906
|
+
* per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
|
|
4907
|
+
* naming the kind. An empty kind needs no scope.
|
|
4908
|
+
*
|
|
4909
|
+
* Building a release does not deploy it. A release is not tied to an
|
|
4910
|
+
* origin, and the same release can later be deployed to any number of
|
|
4911
|
+
* origins unchanged.
|
|
4912
|
+
* @summary Build a release from files
|
|
4690
4913
|
*/
|
|
4691
|
-
export const
|
|
4914
|
+
export const buildReleaseQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4692
4915
|
|
|
4693
4916
|
|
|
4694
|
-
export const
|
|
4695
|
-
"
|
|
4917
|
+
export const BuildReleaseQueryParams = zod.strictObject({
|
|
4918
|
+
"project_id": zod.string().regex(buildReleaseQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
4696
4919
|
})
|
|
4697
4920
|
|
|
4698
|
-
export const
|
|
4921
|
+
export const buildReleaseBodyBundleSchemasItemOneObjectTypeMax = 256;
|
|
4699
4922
|
|
|
4923
|
+
export const buildReleaseBodyBundleSchemasItemOneMetaSchemaMax = 1024;
|
|
4700
4924
|
|
|
4701
|
-
export const
|
|
4702
|
-
"project_id": zod.string().regex(getReleaseByIdQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
4703
|
-
})
|
|
4925
|
+
export const buildReleaseBodyBundleSchemasItemOneXAuthMethodsSsoProvidersItemMax = 64;
|
|
4704
4926
|
|
|
4705
|
-
export const getReleaseByIdResponseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
4706
|
-
export const getReleaseByIdResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4707
|
-
export const getReleaseByIdResponseMetadataMessageOneMax = 1024;
|
|
4708
4927
|
|
|
4709
|
-
export const
|
|
4928
|
+
export const buildReleaseBodyBundleSchemasItemOneXAuthMethodsSsoProvidersItemRegExp = new RegExp('^[a-z0-9][a-z0-9_-]*$');
|
|
4710
4929
|
|
|
4711
|
-
export const getReleaseByIdResponseMetadataGitDirtyDefault = false;
|
|
4712
|
-
export const getReleaseByIdResponsePointersItemHandleMax = 256;
|
|
4713
4930
|
|
|
4714
|
-
export const getReleaseByIdResponsePointersItemRevisionIdMax = 512;
|
|
4715
4931
|
|
|
4716
|
-
export const getReleaseByIdResponsePointersMax = 50;
|
|
4717
4932
|
|
|
4933
|
+
export const buildReleaseBodyBundleSchemasItemOnePropertiesXAuditDefault = false;
|
|
4934
|
+
export const buildReleaseBodyBundleSchemasMax = 50;
|
|
4718
4935
|
|
|
4936
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemNameRegExp = new RegExp('^[a-z][a-z0-9-]*$');
|
|
4937
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemNameRegExp = new RegExp('^[a-z][a-z0-9_-]*$');
|
|
4938
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemFieldsDefault = [];
|
|
4939
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemPrimaryDefault = false;
|
|
4940
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsDefault = [];
|
|
4941
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesDefault = {};
|
|
4942
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersItemMax = 64;
|
|
4719
4943
|
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4944
|
+
|
|
4945
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersItemRegExp = new RegExp('^[a-z0-9][a-z0-9_-]*$');
|
|
4946
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersDefault = [];
|
|
4947
|
+
export const buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersMax = 20;
|
|
4948
|
+
|
|
4949
|
+
|
|
4950
|
+
export const buildReleaseBodyBundleFlowDefinitionsMax = 50;
|
|
4951
|
+
|
|
4952
|
+
export const buildReleaseBodyBundleIdpsItemSlugMax = 64;
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
export const buildReleaseBodyBundleIdpsItemSlugRegExp = new RegExp('^[a-z0-9][a-z0-9_-]*$');
|
|
4956
|
+
export const buildReleaseBodyBundleIdpsItemDisplayNameMax = 256;
|
|
4957
|
+
|
|
4958
|
+
|
|
4959
|
+
export const buildReleaseBodyBundleIdpsItemClaimMappingRegExpOne = new RegExp('^[^$]');
|
|
4960
|
+
export const buildReleaseBodyBundleIdpsItemProvisioningCreationDefault = `auto`;
|
|
4961
|
+
export const buildReleaseBodyBundleIdpsItemOidcIssuerRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$');
|
|
4962
|
+
export const buildReleaseBodyBundleIdpsItemOidcJwksUriRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4963
|
+
export const buildReleaseBodyBundleIdpsItemOidcIdTokenMappingDefault = false;
|
|
4964
|
+
export const buildReleaseBodyBundleIdpsItemOidcAuthorizationEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4965
|
+
export const buildReleaseBodyBundleIdpsItemOidcTokenEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4966
|
+
export const buildReleaseBodyBundleIdpsItemOidcUserinfoEndpointRegExp = new RegExp('^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$');
|
|
4967
|
+
export const buildReleaseBodyBundleIdpsItemOidcClientIdMax = 512;
|
|
4968
|
+
|
|
4969
|
+
export const buildReleaseBodyBundleIdpsItemOidcClientSecretRegExp = new RegExp('^\\$\\{\\{ *[A-Za-z0-9_]+ *\\}\\}$');
|
|
4970
|
+
export const buildReleaseBodyBundleIdpsItemOidcTokenEndpointAuthMethodDefault = `client_secret_basic`;
|
|
4971
|
+
export const buildReleaseBodyBundleIdpsItemOidcScopesDefault = [`openid`, `profile`, `email`];
|
|
4972
|
+
|
|
4973
|
+
export const buildReleaseBodyBundleIdpsItemOidcPkceEnabledDefault = true;
|
|
4974
|
+
export const buildReleaseBodyBundleIdpsMax = 50;
|
|
4975
|
+
|
|
4976
|
+
export const buildReleaseBodyBundleBrandingLayoutDefault = `centered`;
|
|
4977
|
+
export const buildReleaseBodyBundleBrandingLiquidTemplateMax = 131072;
|
|
4978
|
+
|
|
4979
|
+
export const buildReleaseBodyBundleBrandingLogoUrlMax = 2048;
|
|
4980
|
+
|
|
4981
|
+
|
|
4982
|
+
export const buildReleaseBodyBundleBrandingLogoUrlRegExp = 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]))?([/?#]|$))');
|
|
4983
|
+
export const buildReleaseBodyBundleBrandingHeroUrlMax = 2048;
|
|
4984
|
+
|
|
4985
|
+
|
|
4986
|
+
export const buildReleaseBodyBundleBrandingHeroUrlRegExp = 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]))?([/?#]|$))');
|
|
4987
|
+
export const buildReleaseBodyBundleBrandingThemeLightLogoUrlMax = 2048;
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
export const buildReleaseBodyBundleBrandingThemeLightLogoUrlRegExp = 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]))?([/?#]|$))');
|
|
4991
|
+
export const buildReleaseBodyBundleBrandingThemeLightPalettePrimaryMax = 128;
|
|
4992
|
+
|
|
4993
|
+
|
|
4994
|
+
export const buildReleaseBodyBundleBrandingThemeLightPalettePrimaryRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
4995
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteOnPrimaryMax = 128;
|
|
4996
|
+
|
|
4997
|
+
|
|
4998
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteOnPrimaryRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
4999
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteBackgroundMax = 128;
|
|
5000
|
+
|
|
5001
|
+
|
|
5002
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteBackgroundRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5003
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteSurfaceMax = 128;
|
|
5004
|
+
|
|
5005
|
+
|
|
5006
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteSurfaceRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5007
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteMutedMax = 128;
|
|
5008
|
+
|
|
5009
|
+
|
|
5010
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteMutedRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5011
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteBorderMax = 128;
|
|
5012
|
+
|
|
5013
|
+
|
|
5014
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteBorderRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5015
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteTextMax = 128;
|
|
5016
|
+
|
|
5017
|
+
|
|
5018
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteTextRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5019
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteTextMutedMax = 128;
|
|
5020
|
+
|
|
5021
|
+
|
|
5022
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteTextMutedRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5023
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteLinkMax = 128;
|
|
5024
|
+
|
|
5025
|
+
|
|
5026
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteLinkRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5027
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteSuccessMax = 128;
|
|
5028
|
+
|
|
5029
|
+
|
|
5030
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteSuccessRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5031
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteWarningMax = 128;
|
|
5032
|
+
|
|
5033
|
+
|
|
5034
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteWarningRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5035
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteErrorMax = 128;
|
|
5036
|
+
|
|
5037
|
+
|
|
5038
|
+
export const buildReleaseBodyBundleBrandingThemeLightPaletteErrorRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5039
|
+
export const buildReleaseBodyBundleBrandingThemeDarkLogoUrlMax = 2048;
|
|
5040
|
+
|
|
5041
|
+
|
|
5042
|
+
export const buildReleaseBodyBundleBrandingThemeDarkLogoUrlRegExp = 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]))?([/?#]|$))');
|
|
5043
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPalettePrimaryMax = 128;
|
|
5044
|
+
|
|
5045
|
+
|
|
5046
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPalettePrimaryRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5047
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteOnPrimaryMax = 128;
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteOnPrimaryRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5051
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteBackgroundMax = 128;
|
|
5052
|
+
|
|
5053
|
+
|
|
5054
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteBackgroundRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5055
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteSurfaceMax = 128;
|
|
5056
|
+
|
|
5057
|
+
|
|
5058
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteSurfaceRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5059
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteMutedMax = 128;
|
|
5060
|
+
|
|
5061
|
+
|
|
5062
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteMutedRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5063
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteBorderMax = 128;
|
|
5064
|
+
|
|
5065
|
+
|
|
5066
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteBorderRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5067
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteTextMax = 128;
|
|
5068
|
+
|
|
5069
|
+
|
|
5070
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteTextRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5071
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteTextMutedMax = 128;
|
|
5072
|
+
|
|
5073
|
+
|
|
5074
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteTextMutedRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5075
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteLinkMax = 128;
|
|
5076
|
+
|
|
5077
|
+
|
|
5078
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteLinkRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5079
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteSuccessMax = 128;
|
|
5080
|
+
|
|
5081
|
+
|
|
5082
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteSuccessRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5083
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteWarningMax = 128;
|
|
5084
|
+
|
|
5085
|
+
|
|
5086
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteWarningRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5087
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteErrorMax = 128;
|
|
5088
|
+
|
|
5089
|
+
|
|
5090
|
+
export const buildReleaseBodyBundleBrandingThemeDarkPaletteErrorRegExp = 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%.,+/# -]*\\))*\\))$');
|
|
5091
|
+
export const buildReleaseBodyBundleBrandingTypographyFontFamilyMax = 256;
|
|
5092
|
+
|
|
5093
|
+
|
|
5094
|
+
export const buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp = new RegExp('^ *(?:"[^"\\\\;{}]*"|\'[^\'\\\\;{}]*\'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:"[^"\\\\;{}]*"|\'[^\'\\\\;{}]*\'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$');
|
|
5095
|
+
export const buildReleaseBodyBundleBrandingTypographyFontUrlMax = 2048;
|
|
5096
|
+
|
|
5097
|
+
|
|
5098
|
+
export const buildReleaseBodyBundleBrandingTypographyFontUrlRegExp = 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]))?(?:[/?#]|$)');
|
|
5099
|
+
export const buildReleaseBodyBundleBrandingTypographyScaleMin = 0.75;
|
|
5100
|
+
export const buildReleaseBodyBundleBrandingTypographyScaleMax = 1.25;
|
|
5101
|
+
|
|
5102
|
+
export const buildReleaseBodyBundleBrandingShapeRadiusTwoMin = 0;
|
|
5103
|
+
export const buildReleaseBodyBundleBrandingShapeRadiusTwoMax = 32;
|
|
5104
|
+
|
|
5105
|
+
export const buildReleaseBodyBundleBrandingShapeLogoScaleMin = 0.5;
|
|
5106
|
+
export const buildReleaseBodyBundleBrandingShapeLogoScaleMax = 2;
|
|
5107
|
+
|
|
5108
|
+
export const buildReleaseBodyMessageMax = 1024;
|
|
5109
|
+
|
|
5110
|
+
export const buildReleaseBodyGitShaMax = 64;
|
|
5111
|
+
|
|
5112
|
+
export const buildReleaseBodyGitDirtyDefault = false;
|
|
5113
|
+
|
|
5114
|
+
export const BuildReleaseBody = zod.object({
|
|
5115
|
+
"bundle": zod.object({
|
|
5116
|
+
"schemas": zod.array(zod.union([zod.object({
|
|
5117
|
+
"objectType": zod.string().max(buildReleaseBodyBundleSchemasItemOneObjectTypeMax).describe('The type of user this schema describes. This is a customer chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
5118
|
+
"kind": zod.literal("user-schema").describe('Discriminator value for a user schema create request.'),
|
|
5119
|
+
"metaSchema": zod.url().max(buildReleaseBodyBundleSchemasItemOneMetaSchemaMax).describe('The user Schema version used for this schema.'),
|
|
5120
|
+
"x-auth-methods": zod.object({
|
|
5121
|
+
"password": zod.object({
|
|
5122
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
5123
|
+
}).optional(),
|
|
5124
|
+
"passkey": zod.object({
|
|
5125
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
5126
|
+
}).optional(),
|
|
5127
|
+
"magic_link": zod.object({
|
|
5128
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
5129
|
+
}).optional(),
|
|
5130
|
+
"sso": zod.object({
|
|
5131
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not'),
|
|
5132
|
+
"providers": zod.array(zod.string().max(buildReleaseBodyBundleSchemasItemOneXAuthMethodsSsoProvidersItemMax).regex(buildReleaseBodyBundleSchemasItemOneXAuthMethodsSsoProvidersItemRegExp)).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.')
|
|
5133
|
+
}).optional(),
|
|
5134
|
+
"otp": zod.object({
|
|
5135
|
+
"enabled": zod.boolean().describe('Whether the authentication method is enabled or not')
|
|
5136
|
+
}).optional()
|
|
5137
|
+
}).describe('A list of authentication methods supported by the user definition.'),
|
|
5138
|
+
"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'),
|
|
5139
|
+
"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'),
|
|
5140
|
+
"properties": zod.record(zod.string(), zod.object({
|
|
5141
|
+
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The level of uniqueness for this property, if applicable'),
|
|
5142
|
+
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The claim name for this property, if applicable'),
|
|
5143
|
+
"x-audit": zod.boolean().default(buildReleaseBodyBundleSchemasItemOnePropertiesXAuditDefault).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'),
|
|
5144
|
+
"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')
|
|
5145
|
+
}).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')
|
|
5146
|
+
}).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({
|
|
5147
|
+
"kind": zod.literal("schema-url").describe('Discriminator value for a user schema create request.'),
|
|
5148
|
+
"url": zod.url().describe('URL to the schema definition.')
|
|
5149
|
+
}).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')])).max(buildReleaseBodyBundleSchemasMax).optional().describe('User schemas, one per `.zitadel/schemas/*.json`, in either form\n`POST /schemas` takes.\n\nAn inline `user-schema` must not declare `$id`: a schema\'s `$id` is\nits revision\'s identity, so a changed schema under the same `$id`\ncould never become a new revision. Such a schema gets a `rel.invalid`\nentry.\n\nA `schema-url` entry\'s handle is the `objectType` of the document the\nURL serves. Its revision is identified by the URL, so the release\nreuses the project\'s revision for a URL the project already holds and\nfetches the document only for a URL it does not.\n'),
|
|
5150
|
+
"flow_definitions": zod.array(zod.object({
|
|
5151
|
+
"name": zod.string().regex(buildReleaseBodyBundleFlowDefinitionsItemNameRegExp).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'),
|
|
5152
|
+
"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'),
|
|
5153
|
+
"user_schema": zod.string().describe('The user schema this flow operates on, named by its `objectType`. The\nflow runs against the project\'s newest revision of that schema, so\npublishing a schema revision needs no change to the flow. A schema id\nas returned by `POST /schemas` is also accepted and is stored as that\nschema\'s `objectType`; reading the definition back returns the\n`objectType`. A value naming no schema of the project is refused with\n`flowdef.invalid`. Step `fields` reference properties defined in the\nresolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n'),
|
|
5154
|
+
"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'),
|
|
5155
|
+
"audience": zod.object({
|
|
5156
|
+
"team_ids": zod.array(zod.string()).optional().describe('Restrict to specific teams (organizations). Empty means no team restriction.'),
|
|
5157
|
+
"app_ids": zod.array(zod.string()).optional().describe('Restrict to specific applications. Empty means no app restriction.')
|
|
5158
|
+
}).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'),
|
|
5159
|
+
"steps": zod.array(zod.object({
|
|
5160
|
+
"name": zod.string().regex(buildReleaseBodyBundleFlowDefinitionsItemStepsItemNameRegExp).describe('Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n'),
|
|
5161
|
+
"fields": zod.array(zod.string()).default(buildReleaseBodyBundleFlowDefinitionsItemStepsItemFieldsDefault).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'),
|
|
5162
|
+
"actions": zod.array(zod.object({
|
|
5163
|
+
"name": zod.string().min(1).describe('Action identifier. Sent back in the submit request as `action`.'),
|
|
5164
|
+
"kind": zod.enum(['submit', 'passkey', 'passkey_register', 'navigate']).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'),
|
|
5165
|
+
"primary": zod.boolean().default(buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemPrimaryDefault).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'),
|
|
5166
|
+
"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')
|
|
5167
|
+
}).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(buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsDefault).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'),
|
|
5168
|
+
"gates": zod.record(zod.string(), zod.object({
|
|
5169
|
+
"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'),
|
|
5170
|
+
"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'),
|
|
5171
|
+
"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')
|
|
5172
|
+
}).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(buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesDefault).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'),
|
|
5173
|
+
"sso_providers": zod.array(zod.string().max(buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersItemMax).regex(buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersItemRegExp)).max(buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersMax).default(buildReleaseBodyBundleFlowDefinitionsItemStepsItemSsoProvidersDefault).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. A\nstep offers at most 20 providers.\n'),
|
|
5174
|
+
"on_success": zod.enum(['create_user', 'create_user_with_sso']).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- create_user_with_sso: creates the user record from the identity an\n external provider returned and the values the step collected, and\n links it to that identity. A unique value another user holds binds\n that user and routes user_already_exists instead.\n'),
|
|
5175
|
+
"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'),
|
|
5176
|
+
"transitions": zod.record(zod.string(), zod.object({
|
|
5177
|
+
"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'),
|
|
5178
|
+
"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'),
|
|
5179
|
+
"purpose": zod.union([zod.enum(['login', 'register', 'recovery', 'profiling', 'reauth', 'link_account']),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')
|
|
5180
|
+
})).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_authenticated`, `sso_user_not_found`).\n')
|
|
5181
|
+
}).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')
|
|
5182
|
+
}).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')).max(buildReleaseBodyBundleFlowDefinitionsMax).optional().describe('Flow definitions, one per `.zitadel/flows/*.json`.'),
|
|
5183
|
+
"idps": zod.array(zod.object({
|
|
5184
|
+
"slug": zod.string().max(buildReleaseBodyBundleIdpsItemSlugMax).regex(buildReleaseBodyBundleIdpsItemSlugRegExp).describe('Stable identifier, referenced by user schemas (x-auth-methods.sso.providers) and flow steps (sso_providers). Unique within the Project.'),
|
|
5185
|
+
"protocol": zod.enum(['oidc']).describe('The protocol used by the identity provider. OIDC is the only protocol.'),
|
|
5186
|
+
"template": zod.string().optional().describe('Template hint for rendering the provider (logo, colors). Carries no protocol behavior: conduct comes only from the protocol blocks.'),
|
|
5187
|
+
"display_name": zod.string().min(1).max(buildReleaseBodyBundleIdpsItemDisplayNameMax).describe('Shown to the user on the sign-in button.'),
|
|
5188
|
+
"subject_claim": zod.string().min(1).optional().describe('Claim carrying the provider\'s stable subject identifier. Optional; the engine uses `sub` per spec. Override it where `sub` is pairwise, e.g. Entra `oid`.'),
|
|
5189
|
+
"claim_mapping": zod.record(zod.string(), zod.string().regex(buildReleaseBodyBundleIdpsItemClaimMappingRegExpOne)).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`) 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.'),
|
|
5190
|
+
"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) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from claim_mapping, which carries values, not verification state.'),
|
|
5191
|
+
"provisioning": zod.object({
|
|
5192
|
+
"creation": zod.enum(['disabled', 'auto']).default(buildReleaseBodyBundleIdpsItemProvisioningCreationDefault)
|
|
5193
|
+
}).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.'),
|
|
5194
|
+
"oidc": zod.object({
|
|
5195
|
+
"issuer": zod.string().regex(buildReleaseBodyBundleIdpsItemOidcIssuerRegExp).describe('Discovery base. Endpoints are resolved from its .well-known document unless the connection names them all.'),
|
|
5196
|
+
"jwks_uri": zod.string().regex(buildReleaseBodyBundleIdpsItemOidcJwksUriRegExp).optional().describe('JWKS endpoint, for a provider that exposes no .well-known document. Set together with the other endpoints.'),
|
|
5197
|
+
"id_token_mapping": zod.boolean().default(buildReleaseBodyBundleIdpsItemOidcIdTokenMappingDefault).describe('Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former.'),
|
|
5198
|
+
"authorization_endpoint": zod.string().regex(buildReleaseBodyBundleIdpsItemOidcAuthorizationEndpointRegExp).optional().describe('For a provider that exposes no .well-known document. Set together with the other endpoints.'),
|
|
5199
|
+
"token_endpoint": zod.string().regex(buildReleaseBodyBundleIdpsItemOidcTokenEndpointRegExp).optional().describe('For a provider that exposes no .well-known document. Set together with the other endpoints.'),
|
|
5200
|
+
"userinfo_endpoint": zod.string().regex(buildReleaseBodyBundleIdpsItemOidcUserinfoEndpointRegExp).optional().describe('For a provider that exposes no .well-known document. Set together with the other endpoints; not needed when id_token_mapping is set.'),
|
|
5201
|
+
"client_id": zod.string().min(1).max(buildReleaseBodyBundleIdpsItemOidcClientIdMax).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.'),
|
|
5202
|
+
"client_secret": zod.string().regex(buildReleaseBodyBundleIdpsItemOidcClientSecretRegExp).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.'),
|
|
5203
|
+
"token_endpoint_auth_method": zod.enum(['client_secret_basic', 'client_secret_post']).default(buildReleaseBodyBundleIdpsItemOidcTokenEndpointAuthMethodDefault).describe('How the client authenticates at the token endpoint.'),
|
|
5204
|
+
"scopes": zod.array(zod.string().min(1)).min(1).default(buildReleaseBodyBundleIdpsItemOidcScopesDefault).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.'),
|
|
5205
|
+
"pkce_enabled": zod.boolean().default(buildReleaseBodyBundleIdpsItemOidcPkceEnabledDefault).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.'),
|
|
5206
|
+
"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.')
|
|
5207
|
+
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
5208
|
+
})).max(buildReleaseBodyBundleIdpsMax).optional().describe('IDP connections, one per `.zitadel/idps/<slug>.json`, each the\nconnection document `POST /idps` takes as `idp`. Secrets appear only\nas `${{ NAME }}` references to variables, never as values, so a bundle\ncarries no credentials.\n'),
|
|
5209
|
+
"branding": zod.object({
|
|
5210
|
+
"layout": zod.enum(['centered', 'split']).default(buildReleaseBodyBundleBrandingLayoutDefault).describe('Layout preset the revision declares, `centered` or `split`. It is\nvalidated on publish and handed to the template as `branding.layout`.\nThe bundled default template does not read it, so changing it alone\nchanges nothing on screen, and it is not an appearance control.\nNot a design catalog: the ejectable designs (`centered`, `minimal`)\nship as templates and both carry `centered`; switch designs with\n`zitadel branding eject --design <name>` instead of editing this field.\n`split` is carried by revisions published from the earlier split\ndesigns.\n'),
|
|
5211
|
+
"liquid_template": zod.string().max(buildReleaseBodyBundleBrandingLiquidTemplateMax).optional().describe('The LiquidJS template for rendering this step. The orchestrator renders\nit into its Shadow DOM with the capability dictionaries as context.\n'),
|
|
5212
|
+
"logo_url": zod.url().max(buildReleaseBodyBundleBrandingLogoUrlMax).regex(buildReleaseBodyBundleBrandingLogoUrlRegExp).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'),
|
|
5213
|
+
"hero_url": zod.url().max(buildReleaseBodyBundleBrandingHeroUrlMax).regex(buildReleaseBodyBundleBrandingHeroUrlRegExp).optional().describe('Hero image URL, for templates that reference `branding.hero_url`. The\nbundled default template does not use it.\n'),
|
|
5214
|
+
"theme": zod.object({
|
|
5215
|
+
"mode": zod.enum(['light', 'dark', 'auto']).optional().describe('Which published side may run. `auto` follows the operating system.\n'),
|
|
5216
|
+
"light": zod.object({
|
|
5217
|
+
"logo_url": zod.url().max(buildReleaseBodyBundleBrandingThemeLightLogoUrlMax).regex(buildReleaseBodyBundleBrandingThemeLightLogoUrlRegExp).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'),
|
|
5218
|
+
"palette": zod.object({
|
|
5219
|
+
"primary": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPalettePrimaryMax).regex(buildReleaseBodyBundleBrandingThemeLightPalettePrimaryRegExp).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'),
|
|
5220
|
+
"on_primary": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteOnPrimaryMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteOnPrimaryRegExp).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'),
|
|
5221
|
+
"background": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteBackgroundMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteBackgroundRegExp).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'),
|
|
5222
|
+
"surface": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteSurfaceMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteSurfaceRegExp).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'),
|
|
5223
|
+
"muted": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteMutedMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteMutedRegExp).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'),
|
|
5224
|
+
"border": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteBorderMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteBorderRegExp).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'),
|
|
5225
|
+
"text": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteTextMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteTextRegExp).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'),
|
|
5226
|
+
"text_muted": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteTextMutedMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteTextMutedRegExp).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'),
|
|
5227
|
+
"link": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteLinkMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteLinkRegExp).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'),
|
|
5228
|
+
"success": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteSuccessMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteSuccessRegExp).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'),
|
|
5229
|
+
"warning": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteWarningMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteWarningRegExp).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'),
|
|
5230
|
+
"error": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeLightPaletteErrorMax).regex(buildReleaseBodyBundleBrandingThemeLightPaletteErrorRegExp).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')
|
|
5231
|
+
}).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')
|
|
5232
|
+
}).optional().describe('One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints the maintained\ndefaults.\n'),
|
|
5233
|
+
"dark": zod.object({
|
|
5234
|
+
"logo_url": zod.url().max(buildReleaseBodyBundleBrandingThemeDarkLogoUrlMax).regex(buildReleaseBodyBundleBrandingThemeDarkLogoUrlRegExp).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'),
|
|
5235
|
+
"palette": zod.object({
|
|
5236
|
+
"primary": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPalettePrimaryMax).regex(buildReleaseBodyBundleBrandingThemeDarkPalettePrimaryRegExp).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'),
|
|
5237
|
+
"on_primary": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteOnPrimaryMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteOnPrimaryRegExp).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'),
|
|
5238
|
+
"background": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteBackgroundMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteBackgroundRegExp).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'),
|
|
5239
|
+
"surface": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteSurfaceMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteSurfaceRegExp).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'),
|
|
5240
|
+
"muted": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteMutedMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteMutedRegExp).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'),
|
|
5241
|
+
"border": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteBorderMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteBorderRegExp).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'),
|
|
5242
|
+
"text": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteTextMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteTextRegExp).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'),
|
|
5243
|
+
"text_muted": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteTextMutedMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteTextMutedRegExp).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'),
|
|
5244
|
+
"link": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteLinkMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteLinkRegExp).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'),
|
|
5245
|
+
"success": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteSuccessMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteSuccessRegExp).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'),
|
|
5246
|
+
"warning": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteWarningMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteWarningRegExp).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'),
|
|
5247
|
+
"error": zod.string().min(1).max(buildReleaseBodyBundleBrandingThemeDarkPaletteErrorMax).regex(buildReleaseBodyBundleBrandingThemeDarkPaletteErrorRegExp).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')
|
|
5248
|
+
}).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')
|
|
5249
|
+
}).optional().describe('One complete theme side. Light and dark are independent surfaces — neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints the maintained\ndefaults.\n')
|
|
5250
|
+
}).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`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith the maintained defaults.\n'),
|
|
5251
|
+
"typography": zod.object({
|
|
5252
|
+
"font_family": zod.string().min(1).max(buildReleaseBodyBundleBrandingTypographyFontFamilyMax).regex(buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp).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'),
|
|
5253
|
+
"font_url": zod.url().max(buildReleaseBodyBundleBrandingTypographyFontUrlMax).regex(buildReleaseBodyBundleBrandingTypographyFontUrlRegExp).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\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
5254
|
+
"scale": zod.number().min(buildReleaseBodyBundleBrandingTypographyScaleMin).max(buildReleaseBodyBundleBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
5255
|
+
}).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'),
|
|
5256
|
+
"shape": zod.object({
|
|
5257
|
+
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).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.int().min(buildReleaseBodyBundleBrandingShapeRadiusTwoMin).max(buildReleaseBodyBundleBrandingShapeRadiusTwoMax)]).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'),
|
|
5258
|
+
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
5259
|
+
"logo_scale": zod.number().min(buildReleaseBodyBundleBrandingShapeLogoScaleMin).max(buildReleaseBodyBundleBrandingShapeLogoScaleMax).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')
|
|
5260
|
+
}).optional().describe('Corner rounding, spacing and logo size. Shared across theme sides.\n')
|
|
5261
|
+
}).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')
|
|
5262
|
+
}).describe('The resources of a project\'s `.zitadel/` directory as authored on disk,\ngrouped by kind.\n\nResources reference each other by handle: a flow definition\'s\n`user_schema` names a schema by its `objectType`, and a flow step\'s\n`sso_providers`, like a schema\'s `x-auth-methods.sso.providers`, name IDP\nconnections by `slug`. A reference resolves to\nthe resource with that handle in this bundle; failing that, to the\nproject\'s newest revision of it, which the release then pins as well. A\nhandle that neither holds refuses the release, naming the pointer and the\nhandle. A bundle that references only resources it carries builds the\nsame release on any project.\n\nA handle names one resource of its kind in a bundle. Two schemas with the\nsame `objectType`, two flow definitions with the same `name`, two IDP\nconnections with the same `slug`, or a schema without an `objectType`\nrefuse the release with `rel.invalid`, with an\nentry for each such resource.\n\nEach kind is optional, and the arrays may be empty: a project that never\nejected its branding omits `branding`. The bundle carries at least one\nresource, and the release it builds pins at most 50, the most a release\npins: the resources the bundle carries plus those resolved from the\nproject. The server refuses anything outside that with `rel.invalid`.\nUnknown keys are refused. More kinds join as they become release kinds.\n'),
|
|
5263
|
+
"message": zod.string().max(buildReleaseBodyMessageMax).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'),
|
|
5264
|
+
"git_sha": zod.string().max(buildReleaseBodyGitShaMax).optional().describe('The source commit the caller was operating from.'),
|
|
5265
|
+
"git_dirty": zod.boolean().default(buildReleaseBodyGitDirtyDefault).describe('Set when the working tree had uncommitted changes, so the release content\ndoes not correspond exactly to `git_sha`.\n')
|
|
5266
|
+
}).describe('The resources to build a release from, plus the metadata to record\nalongside it.\n\n`created_at` and `created_by` are derived server-side from the caller\'s\nauthentication context and are not accepted here.\n')
|
|
5267
|
+
|
|
5268
|
+
export const buildReleaseResponseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
5269
|
+
export const buildReleaseResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5270
|
+
export const buildReleaseResponseContentHashMin = 71;
|
|
5271
|
+
export const buildReleaseResponseContentHashMax = 71;
|
|
5272
|
+
|
|
5273
|
+
|
|
5274
|
+
export const buildReleaseResponseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5275
|
+
export const buildReleaseResponseMetadataMessageOneMax = 1024;
|
|
5276
|
+
|
|
5277
|
+
export const buildReleaseResponseMetadataGitShaOneMax = 64;
|
|
5278
|
+
|
|
5279
|
+
export const buildReleaseResponseMetadataGitDirtyDefault = false;
|
|
5280
|
+
export const buildReleaseResponsePointersItemHandleMax = 256;
|
|
5281
|
+
|
|
5282
|
+
export const buildReleaseResponsePointersItemRevisionIdMax = 512;
|
|
5283
|
+
|
|
5284
|
+
export const buildReleaseResponsePointersMax = 50;
|
|
5285
|
+
|
|
5286
|
+
|
|
5287
|
+
|
|
5288
|
+
export const BuildReleaseResponse = zod.object({
|
|
5289
|
+
"id": zod.string().regex(buildReleaseResponseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
5290
|
+
"project_id": zod.string().regex(buildReleaseResponseProjectIdRegExp),
|
|
5291
|
+
"content_hash": zod.string().min(buildReleaseResponseContentHashMin).max(buildReleaseResponseContentHashMax).regex(buildReleaseResponseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
5292
|
+
"metadata": zod.object({
|
|
5293
|
+
"message": zod.union([zod.string().max(buildReleaseResponseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
5294
|
+
"git_sha": zod.union([zod.string().max(buildReleaseResponseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
5295
|
+
"git_dirty": zod.boolean().default(buildReleaseResponseMetadataGitDirtyDefault).describe('True when the working tree had uncommitted changes at construction time.\n`git_sha` still points at HEAD, but the release content does not\ncorrespond to that commit exactly, so consumers of the git-diff mechanism\nshould skip it when either side is dirty.\n'),
|
|
5296
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the release was assembled.'),
|
|
5297
|
+
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
5298
|
+
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
5299
|
+
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5300
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
5301
|
+
"pointers": zod.array(zod.object({
|
|
5302
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
5303
|
+
"handle": zod.string().min(1).max(buildReleaseResponsePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
5304
|
+
"revision_id": zod.string().min(1).max(buildReleaseResponsePointersItemRevisionIdMax).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')
|
|
5305
|
+
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(buildReleaseResponsePointersMax).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')
|
|
5306
|
+
}).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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
5307
|
+
|
|
5308
|
+
|
|
5309
|
+
/**
|
|
5310
|
+
* Reads one release: its digest, its metadata, whether it was revoked, and
|
|
5311
|
+
* the `(kind, handle, revision_id)` tuples it pins.
|
|
5312
|
+
*
|
|
5313
|
+
* The path takes the `rel_` id only. To find a release from its digest,
|
|
5314
|
+
* list with the `content_hash` filter and read the matched entry's `id`.
|
|
5315
|
+
*
|
|
5316
|
+
* Does not embed resource content. Resolve each `revision_id` through the
|
|
5317
|
+
* per-kind read endpoints when the bytes are needed.
|
|
5318
|
+
*
|
|
5319
|
+
* The lookup is scoped to the project in `project_id`: a release id belonging
|
|
5320
|
+
* to another project answers not found exactly as an unknown id does, so the
|
|
5321
|
+
* endpoint cannot be used to probe for releases in projects the caller cannot
|
|
5322
|
+
* read.
|
|
5323
|
+
* @summary Get a release by id
|
|
5324
|
+
*/
|
|
5325
|
+
export const getReleaseByIdPathReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
export const GetReleaseByIdParams = zod.object({
|
|
5329
|
+
"release_id": zod.string().regex(getReleaseByIdPathReleaseIdRegExp).describe('The unique identifier of the release.')
|
|
5330
|
+
})
|
|
5331
|
+
|
|
5332
|
+
export const getReleaseByIdQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5333
|
+
|
|
5334
|
+
|
|
5335
|
+
export const GetReleaseByIdQueryParams = zod.strictObject({
|
|
5336
|
+
"project_id": zod.string().regex(getReleaseByIdQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5337
|
+
})
|
|
5338
|
+
|
|
5339
|
+
export const getReleaseByIdResponseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
5340
|
+
export const getReleaseByIdResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5341
|
+
export const getReleaseByIdResponseContentHashMin = 71;
|
|
5342
|
+
export const getReleaseByIdResponseContentHashMax = 71;
|
|
5343
|
+
|
|
5344
|
+
|
|
5345
|
+
export const getReleaseByIdResponseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5346
|
+
export const getReleaseByIdResponseMetadataMessageOneMax = 1024;
|
|
5347
|
+
|
|
5348
|
+
export const getReleaseByIdResponseMetadataGitShaOneMax = 64;
|
|
5349
|
+
|
|
5350
|
+
export const getReleaseByIdResponseMetadataGitDirtyDefault = false;
|
|
5351
|
+
export const getReleaseByIdResponsePointersItemHandleMax = 256;
|
|
5352
|
+
|
|
5353
|
+
export const getReleaseByIdResponsePointersItemRevisionIdMax = 512;
|
|
5354
|
+
|
|
5355
|
+
export const getReleaseByIdResponsePointersMax = 50;
|
|
5356
|
+
|
|
5357
|
+
|
|
5358
|
+
|
|
5359
|
+
export const GetReleaseByIdResponse = zod.object({
|
|
5360
|
+
"id": zod.string().regex(getReleaseByIdResponseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
5361
|
+
"project_id": zod.string().regex(getReleaseByIdResponseProjectIdRegExp),
|
|
5362
|
+
"content_hash": zod.string().min(getReleaseByIdResponseContentHashMin).max(getReleaseByIdResponseContentHashMax).regex(getReleaseByIdResponseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
5363
|
+
"metadata": zod.object({
|
|
5364
|
+
"message": zod.union([zod.string().max(getReleaseByIdResponseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
5365
|
+
"git_sha": zod.union([zod.string().max(getReleaseByIdResponseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
4726
5366
|
"git_dirty": zod.boolean().default(getReleaseByIdResponseMetadataGitDirtyDefault).describe('True when the working tree had uncommitted changes at construction time.\n`git_sha` still points at HEAD, but the release content does not\ncorrespond to that commit exactly, so consumers of the git-diff mechanism\nshould skip it when either side is dirty.\n'),
|
|
4727
5367
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the release was assembled.'),
|
|
4728
5368
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
4729
5369
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
4730
5370
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5371
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
4731
5372
|
"pointers": zod.array(zod.object({
|
|
4732
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding']).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'),
|
|
4733
|
-
"handle": zod.string().min(1).max(getReleaseByIdResponsePointersItemHandleMax).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'),
|
|
5373
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
5374
|
+
"handle": zod.string().min(1).max(getReleaseByIdResponsePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
4734
5375
|
"revision_id": zod.string().min(1).max(getReleaseByIdResponsePointersItemRevisionIdMax).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')
|
|
4735
5376
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(getReleaseByIdResponsePointersMax).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')
|
|
4736
|
-
}).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
|
|
5377
|
+
}).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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
5378
|
+
|
|
5379
|
+
|
|
5380
|
+
/**
|
|
5381
|
+
* Marks the release revoked, so that its content is never served again.
|
|
5382
|
+
* From then on the release cannot be deployed and is refused on every path
|
|
5383
|
+
* that would serve it, including to a build that pins its digest, with
|
|
5384
|
+
* `rel.revoked`.
|
|
5385
|
+
*
|
|
5386
|
+
* A release that any origin still serves cannot be revoked. An origin
|
|
5387
|
+
* serves the release of the newest deployment to it, so the call answers
|
|
5388
|
+
* `409` with `rel.in_use`, naming each such origin and that deployment.
|
|
5389
|
+
* Deploy another release there or roll back first, then revoke. Revoking
|
|
5390
|
+
* therefore never takes an origin down. Deployments that named the release
|
|
5391
|
+
* earlier stay in the history.
|
|
5392
|
+
*
|
|
5393
|
+
* Idempotent: revoking a release that is already revoked answers `200`
|
|
5394
|
+
* with the release unchanged, `revoked_at` still naming the first
|
|
5395
|
+
* revocation. There is no un-revoke; build a new release instead.
|
|
5396
|
+
*
|
|
5397
|
+
* Takes no body. The lookup is scoped to the project in `project_id`, so a
|
|
5398
|
+
* release id of another project answers not found exactly as an unknown id
|
|
5399
|
+
* does.
|
|
5400
|
+
* @summary Revoke a release
|
|
5401
|
+
*/
|
|
5402
|
+
export const revokeReleasePathReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
5403
|
+
|
|
5404
|
+
|
|
5405
|
+
export const RevokeReleaseParams = zod.object({
|
|
5406
|
+
"release_id": zod.string().regex(revokeReleasePathReleaseIdRegExp).describe('The unique identifier of the release.')
|
|
5407
|
+
})
|
|
5408
|
+
|
|
5409
|
+
export const revokeReleaseQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5410
|
+
|
|
5411
|
+
|
|
5412
|
+
export const RevokeReleaseQueryParams = zod.strictObject({
|
|
5413
|
+
"project_id": zod.string().regex(revokeReleaseQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5414
|
+
})
|
|
5415
|
+
|
|
5416
|
+
export const revokeReleaseResponseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
5417
|
+
export const revokeReleaseResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5418
|
+
export const revokeReleaseResponseContentHashMin = 71;
|
|
5419
|
+
export const revokeReleaseResponseContentHashMax = 71;
|
|
5420
|
+
|
|
5421
|
+
|
|
5422
|
+
export const revokeReleaseResponseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5423
|
+
export const revokeReleaseResponseMetadataMessageOneMax = 1024;
|
|
5424
|
+
|
|
5425
|
+
export const revokeReleaseResponseMetadataGitShaOneMax = 64;
|
|
5426
|
+
|
|
5427
|
+
export const revokeReleaseResponseMetadataGitDirtyDefault = false;
|
|
5428
|
+
export const revokeReleaseResponsePointersItemHandleMax = 256;
|
|
5429
|
+
|
|
5430
|
+
export const revokeReleaseResponsePointersItemRevisionIdMax = 512;
|
|
5431
|
+
|
|
5432
|
+
export const revokeReleaseResponsePointersMax = 50;
|
|
5433
|
+
|
|
5434
|
+
|
|
5435
|
+
|
|
5436
|
+
export const RevokeReleaseResponse = zod.object({
|
|
5437
|
+
"id": zod.string().regex(revokeReleaseResponseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
5438
|
+
"project_id": zod.string().regex(revokeReleaseResponseProjectIdRegExp),
|
|
5439
|
+
"content_hash": zod.string().min(revokeReleaseResponseContentHashMin).max(revokeReleaseResponseContentHashMax).regex(revokeReleaseResponseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
5440
|
+
"metadata": zod.object({
|
|
5441
|
+
"message": zod.union([zod.string().max(revokeReleaseResponseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
5442
|
+
"git_sha": zod.union([zod.string().max(revokeReleaseResponseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
5443
|
+
"git_dirty": zod.boolean().default(revokeReleaseResponseMetadataGitDirtyDefault).describe('True when the working tree had uncommitted changes at construction time.\n`git_sha` still points at HEAD, but the release content does not\ncorrespond to that commit exactly, so consumers of the git-diff mechanism\nshould skip it when either side is dirty.\n'),
|
|
5444
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the release was assembled.'),
|
|
5445
|
+
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
5446
|
+
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
5447
|
+
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5448
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
5449
|
+
"pointers": zod.array(zod.object({
|
|
5450
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
5451
|
+
"handle": zod.string().min(1).max(revokeReleaseResponsePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
5452
|
+
"revision_id": zod.string().min(1).max(revokeReleaseResponsePointersItemRevisionIdMax).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')
|
|
5453
|
+
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(revokeReleaseResponsePointersMax).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')
|
|
5454
|
+
}).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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
4737
5455
|
|
|
4738
5456
|
|
|
4739
5457
|
/**
|
|
@@ -5086,13 +5804,18 @@ export const listEventsResponseDataItemTwofourOneProjectIdRegExp = new RegExp('^
|
|
|
5086
5804
|
export const listEventsResponseDataItemTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5087
5805
|
export const listEventsResponseDataItemTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5088
5806
|
export const listEventsResponseDataItemTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5089
|
-
export const
|
|
5090
|
-
export const
|
|
5807
|
+
export const listEventsResponseDataItemTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5808
|
+
export const listEventsResponseDataItemTwoeightTwoPayloadContentHashMin = 71;
|
|
5809
|
+
export const listEventsResponseDataItemTwoeightTwoPayloadContentHashMax = 71;
|
|
5091
5810
|
|
|
5092
|
-
export const listEventsResponseDataItemTwosevenTwoPayloadDurationMsMin = 0;
|
|
5093
5811
|
|
|
5094
|
-
export const
|
|
5812
|
+
export const listEventsResponseDataItemTwoeightTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5095
5813
|
export const listEventsResponseDataItemTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5814
|
+
export const listEventsResponseDataItemTwonineTwoPayloadStatusMin = 100;
|
|
5815
|
+
export const listEventsResponseDataItemTwonineTwoPayloadStatusMax = 599;
|
|
5816
|
+
|
|
5817
|
+
export const listEventsResponseDataItemTwonineTwoPayloadDurationMsMin = 0;
|
|
5818
|
+
|
|
5096
5819
|
export const listEventsResponseDataItemThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5097
5820
|
export const listEventsResponseDataItemThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5098
5821
|
export const listEventsResponseDataItemThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -5101,6 +5824,10 @@ export const listEventsResponseDataItemThreefourOneProjectIdRegExp = new RegExp(
|
|
|
5101
5824
|
export const listEventsResponseDataItemThreefiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5102
5825
|
export const listEventsResponseDataItemThreesixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5103
5826
|
export const listEventsResponseDataItemThreesevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5827
|
+
export const listEventsResponseDataItemThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5828
|
+
export const listEventsResponseDataItemThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5829
|
+
export const listEventsResponseDataItemFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5830
|
+
export const listEventsResponseDataItemFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5104
5831
|
|
|
5105
5832
|
|
|
5106
5833
|
export const ListEventsResponse = zod.object({
|
|
@@ -5583,48 +6310,11 @@ export const ListEventsResponse = zod.object({
|
|
|
5583
6310
|
"layout": zod.string().optional(),
|
|
5584
6311
|
"logo_url": zod.string().optional(),
|
|
5585
6312
|
"font_url": zod.string().optional(),
|
|
5586
|
-
"hero_url": zod.string().optional()
|
|
5587
|
-
}).describe('Allowlisted fields for `branding.created`. Omits `liquid_template`.\n')
|
|
5588
|
-
})).describe('Wide event with event_type=branding.created.\n'),zod.object({
|
|
5589
|
-
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5590
|
-
"project_id": zod.string().regex(listEventsResponseDataItemOnefiveOneProjectIdRegExp),
|
|
5591
|
-
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5592
|
-
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5593
|
-
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
5594
|
-
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
5595
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
5596
|
-
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
5597
|
-
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
5598
|
-
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
5599
|
-
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
5600
|
-
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
5601
|
-
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
5602
|
-
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
5603
|
-
"delegation_id": zod.string().optional(),
|
|
5604
|
-
"grantor": zod.string().optional(),
|
|
5605
|
-
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
5606
|
-
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
5607
|
-
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
5608
|
-
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
5609
|
-
"metadata": zod.object({
|
|
5610
|
-
"client": zod.object({
|
|
5611
|
-
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
5612
|
-
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
5613
|
-
"origin": zod.string().optional().describe('Origin header when present.')
|
|
5614
|
-
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
5615
|
-
}).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')
|
|
5616
|
-
}).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({
|
|
5617
|
-
"event_type": zod.literal("deployment.created"),
|
|
5618
|
-
"payload": zod.object({
|
|
5619
|
-
"environment_id": zod.string().optional(),
|
|
5620
|
-
"release_id": zod.string().optional(),
|
|
5621
|
-
"reason": zod.string().optional(),
|
|
5622
|
-
"message": zod.string().optional(),
|
|
5623
|
-
"source_environment_id": zod.string().optional()
|
|
5624
|
-
}).describe('Allowlisted fields for `deployment.created`. The deployment id is already\nthe event\'s `entity_id`; the ids here say what went live where. Ids, not\nnames: they survive environment renames, and because events carry no\nforeign key, the audit trail of a deleted environment lives on here.\n')
|
|
5625
|
-
})).describe('Wide event with event_type=deployment.created.\n'),zod.object({
|
|
6313
|
+
"hero_url": zod.string().optional()
|
|
6314
|
+
}).describe('Allowlisted fields for `branding.created`. Omits `liquid_template`.\n')
|
|
6315
|
+
})).describe('Wide event with event_type=branding.created.\n'),zod.object({
|
|
5626
6316
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5627
|
-
"project_id": zod.string().regex(
|
|
6317
|
+
"project_id": zod.string().regex(listEventsResponseDataItemOnefiveOneProjectIdRegExp),
|
|
5628
6318
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5629
6319
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5630
6320
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5651,13 +6341,17 @@ export const ListEventsResponse = zod.object({
|
|
|
5651
6341
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
5652
6342
|
}).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')
|
|
5653
6343
|
}).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({
|
|
5654
|
-
"event_type": zod.literal("
|
|
6344
|
+
"event_type": zod.literal("deployment.created"),
|
|
5655
6345
|
"payload": zod.object({
|
|
5656
|
-
"
|
|
5657
|
-
|
|
5658
|
-
|
|
6346
|
+
"release_id": zod.string().optional(),
|
|
6347
|
+
"targets": zod.array(zod.string()).optional().describe('The origins the release went live on, sorted.'),
|
|
6348
|
+
"reason": zod.string().optional(),
|
|
6349
|
+
"message": zod.string().optional(),
|
|
6350
|
+
"rollback_to": zod.string().optional()
|
|
6351
|
+
}).describe('Allowlisted fields for `deployment.created`. The deployment id is already\nthe event\'s `entity_id`; the fields here say what went live where.\n')
|
|
6352
|
+
})).describe('Wide event with event_type=deployment.created.\n'),zod.object({
|
|
5659
6353
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5660
|
-
"project_id": zod.string().regex(
|
|
6354
|
+
"project_id": zod.string().regex(listEventsResponseDataItemOnesixOneProjectIdRegExp),
|
|
5661
6355
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5662
6356
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5663
6357
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5697,7 +6391,7 @@ export const ListEventsResponse = zod.object({
|
|
|
5697
6391
|
}).describe('Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n')
|
|
5698
6392
|
})).describe('Wide event with event_type=flowdef.created.\n'),zod.object({
|
|
5699
6393
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5700
|
-
"project_id": zod.string().regex(
|
|
6394
|
+
"project_id": zod.string().regex(listEventsResponseDataItemOnesevenOneProjectIdRegExp),
|
|
5701
6395
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5702
6396
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5703
6397
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5730,7 +6424,7 @@ export const ListEventsResponse = zod.object({
|
|
|
5730
6424
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
5731
6425
|
})).describe('Wide event with event_type=flowdef.deleted.\n'),zod.object({
|
|
5732
6426
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5733
|
-
"project_id": zod.string().regex(
|
|
6427
|
+
"project_id": zod.string().regex(listEventsResponseDataItemOneeightOneProjectIdRegExp),
|
|
5734
6428
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5735
6429
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5736
6430
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5770,7 +6464,7 @@ export const ListEventsResponse = zod.object({
|
|
|
5770
6464
|
}).describe('Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n')
|
|
5771
6465
|
})).describe('Wide event with event_type=flowdef.updated.\n'),zod.object({
|
|
5772
6466
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5773
|
-
"project_id": zod.string().regex(
|
|
6467
|
+
"project_id": zod.string().regex(listEventsResponseDataItemOnenineOneProjectIdRegExp),
|
|
5774
6468
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5775
6469
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5776
6470
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5807,7 +6501,7 @@ export const ListEventsResponse = zod.object({
|
|
|
5807
6501
|
}).describe('Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`\n(delta: only changed fields present, plus the new `revision_id`). The\nconnection id is the event\'s `entity_id`. The connection document, and with\nit the `client_secret` reference, is never included.\n')
|
|
5808
6502
|
})).describe('Wide event with event_type=idp.created.\n'),zod.object({
|
|
5809
6503
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5810
|
-
"project_id": zod.string().regex(
|
|
6504
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwozeroOneProjectIdRegExp),
|
|
5811
6505
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5812
6506
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5813
6507
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5841,7 +6535,7 @@ export const ListEventsResponse = zod.object({
|
|
|
5841
6535
|
}).describe('Snapshot for `idp.identity_link.created`, written when a sign-in creates a\nuser and links the provider account to it. The link id is the event\'s\n`entity_id`. The provider\'s subject and claims are never included.\n')
|
|
5842
6536
|
})).describe('Wide event with event_type=idp.identity_link.created.\n'),zod.object({
|
|
5843
6537
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5844
|
-
"project_id": zod.string().regex(
|
|
6538
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwooneOneProjectIdRegExp),
|
|
5845
6539
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5846
6540
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5847
6541
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5877,6 +6571,40 @@ export const ListEventsResponse = zod.object({
|
|
|
5877
6571
|
"revision_id": zod.string().describe('The revision the write appended.')
|
|
5878
6572
|
}).describe('Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`\n(delta: only changed fields present, plus the new `revision_id`). The\nconnection id is the event\'s `entity_id`. The connection document, and with\nit the `client_secret` reference, is never included.\n')
|
|
5879
6573
|
})).describe('Wide event with event_type=idp.updated.\n'),zod.object({
|
|
6574
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6575
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwotwoOneProjectIdRegExp),
|
|
6576
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6577
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6578
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
6579
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
6580
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
6581
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
6582
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
6583
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
6584
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
6585
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
6586
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
6587
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
6588
|
+
"delegation_id": zod.string().optional(),
|
|
6589
|
+
"grantor": zod.string().optional(),
|
|
6590
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
6591
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
6592
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6593
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6594
|
+
"metadata": zod.object({
|
|
6595
|
+
"client": zod.object({
|
|
6596
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6597
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
6598
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
6599
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
6600
|
+
}).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')
|
|
6601
|
+
}).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({
|
|
6602
|
+
"event_type": zod.literal("origin.added"),
|
|
6603
|
+
"payload": zod.object({
|
|
6604
|
+
"pattern": zod.string(),
|
|
6605
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
6606
|
+
}).describe('Allowlisted fields for `origin.added` and `origin.removed`.\n')
|
|
6607
|
+
})).describe('Wide event with event_type=origin.added.\n'),zod.object({
|
|
5880
6608
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5881
6609
|
"project_id": zod.string().regex(listEventsResponseDataItemTwothreeOneProjectIdRegExp),
|
|
5882
6610
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
@@ -5904,16 +6632,53 @@ export const ListEventsResponse = zod.object({
|
|
|
5904
6632
|
"origin": zod.string().optional().describe('Origin header when present.')
|
|
5905
6633
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
5906
6634
|
}).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')
|
|
6635
|
+
}).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({
|
|
6636
|
+
"event_type": zod.literal("origin.removed"),
|
|
6637
|
+
"payload": zod.object({
|
|
6638
|
+
"pattern": zod.string(),
|
|
6639
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
6640
|
+
}).describe('Allowlisted fields for `origin.added` and `origin.removed`.\n')
|
|
6641
|
+
})).describe('Wide event with event_type=origin.removed.\n'),zod.object({
|
|
6642
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6643
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwofourOneProjectIdRegExp),
|
|
6644
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6645
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6646
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
6647
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
6648
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
6649
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
6650
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
6651
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
6652
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
6653
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
6654
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
6655
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
6656
|
+
"delegation_id": zod.string().optional(),
|
|
6657
|
+
"grantor": zod.string().optional(),
|
|
6658
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
6659
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
6660
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6661
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6662
|
+
"metadata": zod.object({
|
|
6663
|
+
"client": zod.object({
|
|
6664
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6665
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
6666
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
6667
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
6668
|
+
}).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')
|
|
5907
6669
|
}).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({
|
|
5908
6670
|
"event_type": zod.literal("project.created"),
|
|
5909
6671
|
"payload": zod.object({
|
|
5910
6672
|
"name": zod.string().optional(),
|
|
5911
|
-
"
|
|
6673
|
+
"origins": zod.array(zod.object({
|
|
6674
|
+
"pattern": zod.string(),
|
|
6675
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
6676
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).optional(),
|
|
5912
6677
|
"password_hash_algorithm": zod.string().optional().describe('The password hashing algorithm the project switched to. The empty string\nmeans it was handed back to the server default. Absent when the update\ndid not touch hashing.\n')
|
|
5913
6678
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
5914
6679
|
})).describe('Wide event with event_type=project.created.\n'),zod.object({
|
|
5915
6680
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5916
|
-
"project_id": zod.string().regex(
|
|
6681
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwofiveOneProjectIdRegExp),
|
|
5917
6682
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5918
6683
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5919
6684
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5946,7 +6711,7 @@ export const ListEventsResponse = zod.object({
|
|
|
5946
6711
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
5947
6712
|
})).describe('Wide event with event_type=project.deleted.\n'),zod.object({
|
|
5948
6713
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5949
|
-
"project_id": zod.string().regex(
|
|
6714
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwosixOneProjectIdRegExp),
|
|
5950
6715
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5951
6716
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5952
6717
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -5976,12 +6741,15 @@ export const ListEventsResponse = zod.object({
|
|
|
5976
6741
|
"event_type": zod.literal("project.updated"),
|
|
5977
6742
|
"payload": zod.object({
|
|
5978
6743
|
"name": zod.string().optional(),
|
|
5979
|
-
"
|
|
6744
|
+
"origins": zod.array(zod.object({
|
|
6745
|
+
"pattern": zod.string(),
|
|
6746
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
6747
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).optional(),
|
|
5980
6748
|
"password_hash_algorithm": zod.string().optional().describe('The password hashing algorithm the project switched to. The empty string\nmeans it was handed back to the server default. Absent when the update\ndid not touch hashing.\n')
|
|
5981
6749
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
5982
6750
|
})).describe('Wide event with event_type=project.updated.\n'),zod.object({
|
|
5983
6751
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
5984
|
-
"project_id": zod.string().regex(
|
|
6752
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwosevenOneProjectIdRegExp),
|
|
5985
6753
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
5986
6754
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
5987
6755
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6022,7 +6790,40 @@ export const ListEventsResponse = zod.object({
|
|
|
6022
6790
|
}).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')
|
|
6023
6791
|
})).describe('Wide event with event_type=release.created.\n'),zod.object({
|
|
6024
6792
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6025
|
-
"project_id": zod.string().regex(
|
|
6793
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwoeightOneProjectIdRegExp),
|
|
6794
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6795
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6796
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
6797
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
6798
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
6799
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
6800
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
6801
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
6802
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
6803
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
6804
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
6805
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
6806
|
+
"delegation_id": zod.string().optional(),
|
|
6807
|
+
"grantor": zod.string().optional(),
|
|
6808
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
6809
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
6810
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6811
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6812
|
+
"metadata": zod.object({
|
|
6813
|
+
"client": zod.object({
|
|
6814
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6815
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
6816
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
6817
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
6818
|
+
}).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')
|
|
6819
|
+
}).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({
|
|
6820
|
+
"event_type": zod.literal("release.revoked"),
|
|
6821
|
+
"payload": zod.object({
|
|
6822
|
+
"content_hash": zod.string().min(listEventsResponseDataItemTwoeightTwoPayloadContentHashMin).max(listEventsResponseDataItemTwoeightTwoPayloadContentHashMax).regex(listEventsResponseDataItemTwoeightTwoPayloadContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n')
|
|
6823
|
+
}).describe('Allowlisted fields for `release.revoked`. The release id is already the\nevent\'s `entity_id`; the digest is repeated so the audit stream names the\nrelease the way the CLI prints it and builds pin it.\n')
|
|
6824
|
+
})).describe('Wide event with event_type=release.revoked.\n'),zod.object({
|
|
6825
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6826
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwonineOneProjectIdRegExp),
|
|
6026
6827
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6027
6828
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6028
6829
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6054,12 +6855,12 @@ export const ListEventsResponse = zod.object({
|
|
|
6054
6855
|
"operation_id": zod.string(),
|
|
6055
6856
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
6056
6857
|
"route_template": zod.string(),
|
|
6057
|
-
"status": zod.int().min(
|
|
6058
|
-
"duration_ms": zod.int().min(
|
|
6858
|
+
"status": zod.int().min(listEventsResponseDataItemTwonineTwoPayloadStatusMin).max(listEventsResponseDataItemTwonineTwoPayloadStatusMax),
|
|
6859
|
+
"duration_ms": zod.int().min(listEventsResponseDataItemTwonineTwoPayloadDurationMsMin)
|
|
6059
6860
|
}).describe('Payload for `request.api` events.')
|
|
6060
6861
|
})).describe('Wide event with event_type=request.api.\n'),zod.object({
|
|
6061
6862
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6062
|
-
"project_id": zod.string().regex(
|
|
6863
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreezeroOneProjectIdRegExp),
|
|
6063
6864
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6064
6865
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6065
6866
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6093,7 +6894,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6093
6894
|
}).describe('Allowlisted fields for `schema.created`. The schema document itself is\nomitted — it is customer-authored and unbounded, and the event\'s `entity_id`\nalready identifies which schema was created.\n')
|
|
6094
6895
|
})).describe('Wide event with event_type=schema.created.\n'),zod.object({
|
|
6095
6896
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6096
|
-
"project_id": zod.string().regex(
|
|
6897
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreeoneOneProjectIdRegExp),
|
|
6097
6898
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6098
6899
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6099
6900
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6126,7 +6927,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6126
6927
|
}).describe('Payload for `session.deleted` events.')
|
|
6127
6928
|
})).describe('Wide event with event_type=session.deleted.\n'),zod.object({
|
|
6128
6929
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6129
|
-
"project_id": zod.string().regex(
|
|
6930
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreetwoOneProjectIdRegExp),
|
|
6130
6931
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6131
6932
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6132
6933
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6159,7 +6960,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6159
6960
|
}).describe('Payload for `session.established` events.')
|
|
6160
6961
|
})).describe('Wide event with event_type=session.established.\n'),zod.object({
|
|
6161
6962
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6162
|
-
"project_id": zod.string().regex(
|
|
6963
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreethreeOneProjectIdRegExp),
|
|
6163
6964
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6164
6965
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6165
6966
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6192,7 +6993,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6192
6993
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
6193
6994
|
})).describe('Wide event with event_type=team.created.\n'),zod.object({
|
|
6194
6995
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6195
|
-
"project_id": zod.string().regex(
|
|
6996
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreefourOneProjectIdRegExp),
|
|
6196
6997
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6197
6998
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6198
6999
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6225,7 +7026,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6225
7026
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
6226
7027
|
})).describe('Wide event with event_type=team.deactivated.\n'),zod.object({
|
|
6227
7028
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6228
|
-
"project_id": zod.string().regex(
|
|
7029
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreefiveOneProjectIdRegExp),
|
|
6229
7030
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6230
7031
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6231
7032
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6258,7 +7059,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6258
7059
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
6259
7060
|
})).describe('Wide event with event_type=team.updated.\n'),zod.object({
|
|
6260
7061
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6261
|
-
"project_id": zod.string().regex(
|
|
7062
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreesixOneProjectIdRegExp),
|
|
6262
7063
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6263
7064
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6264
7065
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6291,7 +7092,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6291
7092
|
}).describe('Payload for `user.create.failed` events.')
|
|
6292
7093
|
})).describe('Wide event with event_type=user.create.failed.\n'),zod.object({
|
|
6293
7094
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6294
|
-
"project_id": zod.string().regex(
|
|
7095
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreesevenOneProjectIdRegExp),
|
|
6295
7096
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6296
7097
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6297
7098
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6326,7 +7127,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6326
7127
|
}).describe('Payload for `user.created`. Identity is `entity_id`; attribute values\nappear only for schema fields marked `x-audit`.\n')
|
|
6327
7128
|
})).describe('Wide event with event_type=user.created.\n'),zod.object({
|
|
6328
7129
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6329
|
-
"project_id": zod.string().regex(
|
|
7130
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreeeightOneProjectIdRegExp),
|
|
6330
7131
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6331
7132
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6332
7133
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6359,7 +7160,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6359
7160
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
6360
7161
|
})).describe('Wide event with event_type=user.deleted.\n'),zod.object({
|
|
6361
7162
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6362
|
-
"project_id": zod.string().regex(
|
|
7163
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreenineOneProjectIdRegExp),
|
|
6363
7164
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6364
7165
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6365
7166
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6391,7 +7192,74 @@ export const ListEventsResponse = zod.object({
|
|
|
6391
7192
|
"attribute_keys": zod.array(zod.string()).optional(),
|
|
6392
7193
|
"attributes": zod.record(zod.string(), zod.unknown()).optional()
|
|
6393
7194
|
}).describe('Payload for `user.updated`. Same attribute rules as create: keys touched\nplus `x-audit` values only.\n')
|
|
6394
|
-
})).describe('Wide event with event_type=user.updated.\n')
|
|
7195
|
+
})).describe('Wide event with event_type=user.updated.\n'),zod.object({
|
|
7196
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7197
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourzeroOneProjectIdRegExp),
|
|
7198
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7199
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7200
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7201
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7202
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7203
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7204
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7205
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7206
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7207
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7208
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7209
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7210
|
+
"delegation_id": zod.string().optional(),
|
|
7211
|
+
"grantor": zod.string().optional(),
|
|
7212
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7213
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7214
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7215
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7216
|
+
"metadata": zod.object({
|
|
7217
|
+
"client": zod.object({
|
|
7218
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7219
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7220
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7221
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7222
|
+
}).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')
|
|
7223
|
+
}).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({
|
|
7224
|
+
"event_type": zod.literal("variable.removed"),
|
|
7225
|
+
"payload": zod.object({
|
|
7226
|
+
"kind": zod.enum(['primary', 'preview']).optional()
|
|
7227
|
+
}).describe('Payload for `variable.removed` events, one row removed.')
|
|
7228
|
+
})).describe('Wide event with event_type=variable.removed.\n'),zod.object({
|
|
7229
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7230
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFouroneOneProjectIdRegExp),
|
|
7231
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7232
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7233
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7234
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7235
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7236
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7237
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7238
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7239
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7240
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7241
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7242
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7243
|
+
"delegation_id": zod.string().optional(),
|
|
7244
|
+
"grantor": zod.string().optional(),
|
|
7245
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7246
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7247
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7248
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7249
|
+
"metadata": zod.object({
|
|
7250
|
+
"client": zod.object({
|
|
7251
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7252
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7253
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7254
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7255
|
+
}).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')
|
|
7256
|
+
}).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({
|
|
7257
|
+
"event_type": zod.literal("variable.set"),
|
|
7258
|
+
"payload": zod.object({
|
|
7259
|
+
"kind": zod.enum(['primary', 'preview']).optional(),
|
|
7260
|
+
"secret": zod.boolean().optional()
|
|
7261
|
+
}).describe('Payload for `variable.set` events: one row entered or replaced. The value\nis never included, plain or encrypted.\n')
|
|
7262
|
+
})).describe('Wide event with event_type=variable.set.\n')]).describe('Discriminated wide-event union (ADR 048 / ADR 049). Clients select the\nmember via event_type; each member carries a typed payload.\n')),
|
|
6395
7263
|
"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')
|
|
6396
7264
|
}).describe('Paginated list of events (ADR 027 / ADR 049).')
|
|
6397
7265
|
|
|
@@ -6442,13 +7310,18 @@ export const getEventResponseTwofourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9
|
|
|
6442
7310
|
export const getEventResponseTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6443
7311
|
export const getEventResponseTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6444
7312
|
export const getEventResponseTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6445
|
-
export const
|
|
6446
|
-
export const
|
|
7313
|
+
export const getEventResponseTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7314
|
+
export const getEventResponseTwoeightTwoPayloadContentHashMin = 71;
|
|
7315
|
+
export const getEventResponseTwoeightTwoPayloadContentHashMax = 71;
|
|
6447
7316
|
|
|
6448
|
-
export const getEventResponseTwosevenTwoPayloadDurationMsMin = 0;
|
|
6449
7317
|
|
|
6450
|
-
export const
|
|
7318
|
+
export const getEventResponseTwoeightTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
6451
7319
|
export const getEventResponseTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7320
|
+
export const getEventResponseTwonineTwoPayloadStatusMin = 100;
|
|
7321
|
+
export const getEventResponseTwonineTwoPayloadStatusMax = 599;
|
|
7322
|
+
|
|
7323
|
+
export const getEventResponseTwonineTwoPayloadDurationMsMin = 0;
|
|
7324
|
+
|
|
6452
7325
|
export const getEventResponseThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6453
7326
|
export const getEventResponseThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6454
7327
|
export const getEventResponseThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -6457,6 +7330,10 @@ export const getEventResponseThreefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0
|
|
|
6457
7330
|
export const getEventResponseThreefiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6458
7331
|
export const getEventResponseThreesixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6459
7332
|
export const getEventResponseThreesevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7333
|
+
export const getEventResponseThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7334
|
+
export const getEventResponseThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7335
|
+
export const getEventResponseFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7336
|
+
export const getEventResponseFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6460
7337
|
|
|
6461
7338
|
|
|
6462
7339
|
export const GetEventResponse = zod.union([zod.object({
|
|
@@ -6971,12 +7848,12 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
6971
7848
|
}).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({
|
|
6972
7849
|
"event_type": zod.literal("deployment.created"),
|
|
6973
7850
|
"payload": zod.object({
|
|
6974
|
-
"environment_id": zod.string().optional(),
|
|
6975
7851
|
"release_id": zod.string().optional(),
|
|
7852
|
+
"targets": zod.array(zod.string()).optional().describe('The origins the release went live on, sorted.'),
|
|
6976
7853
|
"reason": zod.string().optional(),
|
|
6977
7854
|
"message": zod.string().optional(),
|
|
6978
|
-
"
|
|
6979
|
-
}).describe('Allowlisted fields for `deployment.created`. The deployment id is already\nthe event\'s `entity_id`; the
|
|
7855
|
+
"rollback_to": zod.string().optional()
|
|
7856
|
+
}).describe('Allowlisted fields for `deployment.created`. The deployment id is already\nthe event\'s `entity_id`; the fields here say what went live where.\n')
|
|
6980
7857
|
})).describe('Wide event with event_type=deployment.created.\n'),zod.object({
|
|
6981
7858
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6982
7859
|
"project_id": zod.string().regex(getEventResponseOnesixOneProjectIdRegExp),
|
|
@@ -7006,11 +7883,18 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7006
7883
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7007
7884
|
}).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')
|
|
7008
7885
|
}).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({
|
|
7009
|
-
"event_type": zod.literal("
|
|
7886
|
+
"event_type": zod.literal("flowdef.created"),
|
|
7010
7887
|
"payload": zod.object({
|
|
7011
|
-
"name": zod.string().optional()
|
|
7012
|
-
|
|
7013
|
-
|
|
7888
|
+
"name": zod.string().optional(),
|
|
7889
|
+
"status": zod.string().optional(),
|
|
7890
|
+
"user_schema": zod.string().optional(),
|
|
7891
|
+
"purposes": zod.record(zod.string(), zod.string()).optional(),
|
|
7892
|
+
"audience": zod.object({
|
|
7893
|
+
"app_ids": zod.array(zod.string()).optional(),
|
|
7894
|
+
"team_ids": zod.array(zod.string()).optional()
|
|
7895
|
+
}).optional()
|
|
7896
|
+
}).describe('Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n')
|
|
7897
|
+
})).describe('Wide event with event_type=flowdef.created.\n'),zod.object({
|
|
7014
7898
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7015
7899
|
"project_id": zod.string().regex(getEventResponseOnesevenOneProjectIdRegExp),
|
|
7016
7900
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
@@ -7039,7 +7923,40 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7039
7923
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7040
7924
|
}).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')
|
|
7041
7925
|
}).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({
|
|
7042
|
-
"event_type": zod.literal("flowdef.
|
|
7926
|
+
"event_type": zod.literal("flowdef.deleted"),
|
|
7927
|
+
"payload": zod.object({
|
|
7928
|
+
|
|
7929
|
+
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7930
|
+
})).describe('Wide event with event_type=flowdef.deleted.\n'),zod.object({
|
|
7931
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7932
|
+
"project_id": zod.string().regex(getEventResponseOneeightOneProjectIdRegExp),
|
|
7933
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7934
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7935
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7936
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7937
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7938
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7939
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7940
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7941
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7942
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7943
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7944
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7945
|
+
"delegation_id": zod.string().optional(),
|
|
7946
|
+
"grantor": zod.string().optional(),
|
|
7947
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7948
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7949
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7950
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7951
|
+
"metadata": zod.object({
|
|
7952
|
+
"client": zod.object({
|
|
7953
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7954
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7955
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7956
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7957
|
+
}).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')
|
|
7958
|
+
}).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({
|
|
7959
|
+
"event_type": zod.literal("flowdef.updated"),
|
|
7043
7960
|
"payload": zod.object({
|
|
7044
7961
|
"name": zod.string().optional(),
|
|
7045
7962
|
"status": zod.string().optional(),
|
|
@@ -7050,9 +7967,9 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7050
7967
|
"team_ids": zod.array(zod.string()).optional()
|
|
7051
7968
|
}).optional()
|
|
7052
7969
|
}).describe('Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n')
|
|
7053
|
-
})).describe('Wide event with event_type=flowdef.
|
|
7970
|
+
})).describe('Wide event with event_type=flowdef.updated.\n'),zod.object({
|
|
7054
7971
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7055
|
-
"project_id": zod.string().regex(
|
|
7972
|
+
"project_id": zod.string().regex(getEventResponseOnenineOneProjectIdRegExp),
|
|
7056
7973
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7057
7974
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7058
7975
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7079,13 +7996,17 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7079
7996
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7080
7997
|
}).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')
|
|
7081
7998
|
}).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({
|
|
7082
|
-
"event_type": zod.literal("
|
|
7999
|
+
"event_type": zod.literal("idp.created"),
|
|
7083
8000
|
"payload": zod.object({
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
8001
|
+
"slug": zod.string().optional(),
|
|
8002
|
+
"protocol": zod.string().optional(),
|
|
8003
|
+
"template": zod.string().optional().describe('The rendering template hint. On `idp.updated`, the empty string means\nthe revision removed it.\n'),
|
|
8004
|
+
"display_name": zod.string().optional(),
|
|
8005
|
+
"revision_id": zod.string().describe('The revision the write appended.')
|
|
8006
|
+
}).describe('Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`\n(delta: only changed fields present, plus the new `revision_id`). The\nconnection id is the event\'s `entity_id`. The connection document, and with\nit the `client_secret` reference, is never included.\n')
|
|
8007
|
+
})).describe('Wide event with event_type=idp.created.\n'),zod.object({
|
|
7087
8008
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7088
|
-
"project_id": zod.string().regex(
|
|
8009
|
+
"project_id": zod.string().regex(getEventResponseTwozeroOneProjectIdRegExp),
|
|
7089
8010
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7090
8011
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7091
8012
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7112,20 +8033,14 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7112
8033
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7113
8034
|
}).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')
|
|
7114
8035
|
}).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({
|
|
7115
|
-
"event_type": zod.literal("
|
|
8036
|
+
"event_type": zod.literal("idp.identity_link.created"),
|
|
7116
8037
|
"payload": zod.object({
|
|
7117
|
-
"
|
|
7118
|
-
"
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
"audience": zod.object({
|
|
7122
|
-
"app_ids": zod.array(zod.string()).optional(),
|
|
7123
|
-
"team_ids": zod.array(zod.string()).optional()
|
|
7124
|
-
}).optional()
|
|
7125
|
-
}).describe('Allowlisted fields of the created revision. Retired `flowdef.updated`\nrows carry a delta in the same shape. Steps are omitted.\n')
|
|
7126
|
-
})).describe('Wide event with event_type=flowdef.updated.\n'),zod.object({
|
|
8038
|
+
"connection_id": zod.string().describe('The IdP connection the account signed in through.'),
|
|
8039
|
+
"user_id": zod.string().describe('The user the provider account is linked to.')
|
|
8040
|
+
}).describe('Snapshot for `idp.identity_link.created`, written when a sign-in creates a\nuser and links the provider account to it. The link id is the event\'s\n`entity_id`. The provider\'s subject and claims are never included.\n')
|
|
8041
|
+
})).describe('Wide event with event_type=idp.identity_link.created.\n'),zod.object({
|
|
7127
8042
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7128
|
-
"project_id": zod.string().regex(
|
|
8043
|
+
"project_id": zod.string().regex(getEventResponseTwooneOneProjectIdRegExp),
|
|
7129
8044
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7130
8045
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7131
8046
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7152,7 +8067,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7152
8067
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7153
8068
|
}).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')
|
|
7154
8069
|
}).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({
|
|
7155
|
-
"event_type": zod.literal("idp.
|
|
8070
|
+
"event_type": zod.literal("idp.updated"),
|
|
7156
8071
|
"payload": zod.object({
|
|
7157
8072
|
"slug": zod.string().optional(),
|
|
7158
8073
|
"protocol": zod.string().optional(),
|
|
@@ -7160,9 +8075,9 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7160
8075
|
"display_name": zod.string().optional(),
|
|
7161
8076
|
"revision_id": zod.string().describe('The revision the write appended.')
|
|
7162
8077
|
}).describe('Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`\n(delta: only changed fields present, plus the new `revision_id`). The\nconnection id is the event\'s `entity_id`. The connection document, and with\nit the `client_secret` reference, is never included.\n')
|
|
7163
|
-
})).describe('Wide event with event_type=idp.
|
|
8078
|
+
})).describe('Wide event with event_type=idp.updated.\n'),zod.object({
|
|
7164
8079
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7165
|
-
"project_id": zod.string().regex(
|
|
8080
|
+
"project_id": zod.string().regex(getEventResponseTwotwoOneProjectIdRegExp),
|
|
7166
8081
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7167
8082
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7168
8083
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7189,14 +8104,14 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7189
8104
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7190
8105
|
}).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')
|
|
7191
8106
|
}).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({
|
|
7192
|
-
"event_type": zod.literal("
|
|
8107
|
+
"event_type": zod.literal("origin.added"),
|
|
7193
8108
|
"payload": zod.object({
|
|
7194
|
-
"
|
|
7195
|
-
"
|
|
7196
|
-
}).describe('
|
|
7197
|
-
})).describe('Wide event with event_type=
|
|
8109
|
+
"pattern": zod.string(),
|
|
8110
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
8111
|
+
}).describe('Allowlisted fields for `origin.added` and `origin.removed`.\n')
|
|
8112
|
+
})).describe('Wide event with event_type=origin.added.\n'),zod.object({
|
|
7198
8113
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7199
|
-
"project_id": zod.string().regex(
|
|
8114
|
+
"project_id": zod.string().regex(getEventResponseTwothreeOneProjectIdRegExp),
|
|
7200
8115
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7201
8116
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7202
8117
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7223,17 +8138,14 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7223
8138
|
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7224
8139
|
}).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')
|
|
7225
8140
|
}).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({
|
|
7226
|
-
"event_type": zod.literal("
|
|
8141
|
+
"event_type": zod.literal("origin.removed"),
|
|
7227
8142
|
"payload": zod.object({
|
|
7228
|
-
"
|
|
7229
|
-
"
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
"revision_id": zod.string().describe('The revision the write appended.')
|
|
7233
|
-
}).describe('Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`\n(delta: only changed fields present, plus the new `revision_id`). The\nconnection id is the event\'s `entity_id`. The connection document, and with\nit the `client_secret` reference, is never included.\n')
|
|
7234
|
-
})).describe('Wide event with event_type=idp.updated.\n'),zod.object({
|
|
8143
|
+
"pattern": zod.string(),
|
|
8144
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
8145
|
+
}).describe('Allowlisted fields for `origin.added` and `origin.removed`.\n')
|
|
8146
|
+
})).describe('Wide event with event_type=origin.removed.\n'),zod.object({
|
|
7235
8147
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7236
|
-
"project_id": zod.string().regex(
|
|
8148
|
+
"project_id": zod.string().regex(getEventResponseTwofourOneProjectIdRegExp),
|
|
7237
8149
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7238
8150
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7239
8151
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7263,12 +8175,15 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7263
8175
|
"event_type": zod.literal("project.created"),
|
|
7264
8176
|
"payload": zod.object({
|
|
7265
8177
|
"name": zod.string().optional(),
|
|
7266
|
-
"
|
|
8178
|
+
"origins": zod.array(zod.object({
|
|
8179
|
+
"pattern": zod.string(),
|
|
8180
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
8181
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).optional(),
|
|
7267
8182
|
"password_hash_algorithm": zod.string().optional().describe('The password hashing algorithm the project switched to. The empty string\nmeans it was handed back to the server default. Absent when the update\ndid not touch hashing.\n')
|
|
7268
8183
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
7269
8184
|
})).describe('Wide event with event_type=project.created.\n'),zod.object({
|
|
7270
8185
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7271
|
-
"project_id": zod.string().regex(
|
|
8186
|
+
"project_id": zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp),
|
|
7272
8187
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7273
8188
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7274
8189
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7301,7 +8216,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7301
8216
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7302
8217
|
})).describe('Wide event with event_type=project.deleted.\n'),zod.object({
|
|
7303
8218
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7304
|
-
"project_id": zod.string().regex(
|
|
8219
|
+
"project_id": zod.string().regex(getEventResponseTwosixOneProjectIdRegExp),
|
|
7305
8220
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7306
8221
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7307
8222
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7331,12 +8246,15 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7331
8246
|
"event_type": zod.literal("project.updated"),
|
|
7332
8247
|
"payload": zod.object({
|
|
7333
8248
|
"name": zod.string().optional(),
|
|
7334
|
-
"
|
|
8249
|
+
"origins": zod.array(zod.object({
|
|
8250
|
+
"pattern": zod.string(),
|
|
8251
|
+
"kind": zod.enum(['primary', 'preview'])
|
|
8252
|
+
}).describe('One of a project\'s origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register; it may include at most one `*` inside a single\nhost label (`*` matches one or more characters, none of them a dot). A\nliteral beats a wildcard. Unknown hosts are accepted as written. An empty\nlist means every origin is admitted until the first pattern is added.\nLoopback origins are admitted without a pattern.\n')).optional(),
|
|
7335
8253
|
"password_hash_algorithm": zod.string().optional().describe('The password hashing algorithm the project switched to. The empty string\nmeans it was handed back to the server default. Absent when the update\ndid not touch hashing.\n')
|
|
7336
8254
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
7337
8255
|
})).describe('Wide event with event_type=project.updated.\n'),zod.object({
|
|
7338
8256
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7339
|
-
"project_id": zod.string().regex(
|
|
8257
|
+
"project_id": zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp),
|
|
7340
8258
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7341
8259
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7342
8260
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7377,7 +8295,40 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7377
8295
|
}).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')
|
|
7378
8296
|
})).describe('Wide event with event_type=release.created.\n'),zod.object({
|
|
7379
8297
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7380
|
-
"project_id": zod.string().regex(
|
|
8298
|
+
"project_id": zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp),
|
|
8299
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8300
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8301
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
8302
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
8303
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
8304
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
8305
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
8306
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
8307
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
8308
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
8309
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
8310
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
8311
|
+
"delegation_id": zod.string().optional(),
|
|
8312
|
+
"grantor": zod.string().optional(),
|
|
8313
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
8314
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
8315
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8316
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8317
|
+
"metadata": zod.object({
|
|
8318
|
+
"client": zod.object({
|
|
8319
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8320
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
8321
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
8322
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
8323
|
+
}).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')
|
|
8324
|
+
}).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({
|
|
8325
|
+
"event_type": zod.literal("release.revoked"),
|
|
8326
|
+
"payload": zod.object({
|
|
8327
|
+
"content_hash": zod.string().min(getEventResponseTwoeightTwoPayloadContentHashMin).max(getEventResponseTwoeightTwoPayloadContentHashMax).regex(getEventResponseTwoeightTwoPayloadContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n')
|
|
8328
|
+
}).describe('Allowlisted fields for `release.revoked`. The release id is already the\nevent\'s `entity_id`; the digest is repeated so the audit stream names the\nrelease the way the CLI prints it and builds pin it.\n')
|
|
8329
|
+
})).describe('Wide event with event_type=release.revoked.\n'),zod.object({
|
|
8330
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8331
|
+
"project_id": zod.string().regex(getEventResponseTwonineOneProjectIdRegExp),
|
|
7381
8332
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7382
8333
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7383
8334
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7409,12 +8360,12 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7409
8360
|
"operation_id": zod.string(),
|
|
7410
8361
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
7411
8362
|
"route_template": zod.string(),
|
|
7412
|
-
"status": zod.int().min(
|
|
7413
|
-
"duration_ms": zod.int().min(
|
|
8363
|
+
"status": zod.int().min(getEventResponseTwonineTwoPayloadStatusMin).max(getEventResponseTwonineTwoPayloadStatusMax),
|
|
8364
|
+
"duration_ms": zod.int().min(getEventResponseTwonineTwoPayloadDurationMsMin)
|
|
7414
8365
|
}).describe('Payload for `request.api` events.')
|
|
7415
8366
|
})).describe('Wide event with event_type=request.api.\n'),zod.object({
|
|
7416
8367
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7417
|
-
"project_id": zod.string().regex(
|
|
8368
|
+
"project_id": zod.string().regex(getEventResponseThreezeroOneProjectIdRegExp),
|
|
7418
8369
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7419
8370
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7420
8371
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7448,7 +8399,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7448
8399
|
}).describe('Allowlisted fields for `schema.created`. The schema document itself is\nomitted — it is customer-authored and unbounded, and the event\'s `entity_id`\nalready identifies which schema was created.\n')
|
|
7449
8400
|
})).describe('Wide event with event_type=schema.created.\n'),zod.object({
|
|
7450
8401
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7451
|
-
"project_id": zod.string().regex(
|
|
8402
|
+
"project_id": zod.string().regex(getEventResponseThreeoneOneProjectIdRegExp),
|
|
7452
8403
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7453
8404
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7454
8405
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7481,7 +8432,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7481
8432
|
}).describe('Payload for `session.deleted` events.')
|
|
7482
8433
|
})).describe('Wide event with event_type=session.deleted.\n'),zod.object({
|
|
7483
8434
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7484
|
-
"project_id": zod.string().regex(
|
|
8435
|
+
"project_id": zod.string().regex(getEventResponseThreetwoOneProjectIdRegExp),
|
|
7485
8436
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7486
8437
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7487
8438
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7514,7 +8465,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7514
8465
|
}).describe('Payload for `session.established` events.')
|
|
7515
8466
|
})).describe('Wide event with event_type=session.established.\n'),zod.object({
|
|
7516
8467
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7517
|
-
"project_id": zod.string().regex(
|
|
8468
|
+
"project_id": zod.string().regex(getEventResponseThreethreeOneProjectIdRegExp),
|
|
7518
8469
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7519
8470
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7520
8471
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7547,7 +8498,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7547
8498
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
7548
8499
|
})).describe('Wide event with event_type=team.created.\n'),zod.object({
|
|
7549
8500
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7550
|
-
"project_id": zod.string().regex(
|
|
8501
|
+
"project_id": zod.string().regex(getEventResponseThreefourOneProjectIdRegExp),
|
|
7551
8502
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7552
8503
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7553
8504
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7580,7 +8531,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7580
8531
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7581
8532
|
})).describe('Wide event with event_type=team.deactivated.\n'),zod.object({
|
|
7582
8533
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7583
|
-
"project_id": zod.string().regex(
|
|
8534
|
+
"project_id": zod.string().regex(getEventResponseThreefiveOneProjectIdRegExp),
|
|
7584
8535
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7585
8536
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7586
8537
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7613,7 +8564,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7613
8564
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
7614
8565
|
})).describe('Wide event with event_type=team.updated.\n'),zod.object({
|
|
7615
8566
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7616
|
-
"project_id": zod.string().regex(
|
|
8567
|
+
"project_id": zod.string().regex(getEventResponseThreesixOneProjectIdRegExp),
|
|
7617
8568
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7618
8569
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7619
8570
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7646,7 +8597,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7646
8597
|
}).describe('Payload for `user.create.failed` events.')
|
|
7647
8598
|
})).describe('Wide event with event_type=user.create.failed.\n'),zod.object({
|
|
7648
8599
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7649
|
-
"project_id": zod.string().regex(
|
|
8600
|
+
"project_id": zod.string().regex(getEventResponseThreesevenOneProjectIdRegExp),
|
|
7650
8601
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7651
8602
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7652
8603
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7681,7 +8632,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7681
8632
|
}).describe('Payload for `user.created`. Identity is `entity_id`; attribute values\nappear only for schema fields marked `x-audit`.\n')
|
|
7682
8633
|
})).describe('Wide event with event_type=user.created.\n'),zod.object({
|
|
7683
8634
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7684
|
-
"project_id": zod.string().regex(
|
|
8635
|
+
"project_id": zod.string().regex(getEventResponseThreeeightOneProjectIdRegExp),
|
|
7685
8636
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7686
8637
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7687
8638
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7714,7 +8665,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7714
8665
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7715
8666
|
})).describe('Wide event with event_type=user.deleted.\n'),zod.object({
|
|
7716
8667
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7717
|
-
"project_id": zod.string().regex(
|
|
8668
|
+
"project_id": zod.string().regex(getEventResponseThreenineOneProjectIdRegExp),
|
|
7718
8669
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7719
8670
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7720
8671
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7746,73 +8697,135 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7746
8697
|
"attribute_keys": zod.array(zod.string()).optional(),
|
|
7747
8698
|
"attributes": zod.record(zod.string(), zod.unknown()).optional()
|
|
7748
8699
|
}).describe('Payload for `user.updated`. Same attribute rules as create: keys touched\nplus `x-audit` values only.\n')
|
|
7749
|
-
})).describe('Wide event with event_type=user.updated.\n')
|
|
8700
|
+
})).describe('Wide event with event_type=user.updated.\n'),zod.object({
|
|
8701
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8702
|
+
"project_id": zod.string().regex(getEventResponseFourzeroOneProjectIdRegExp),
|
|
8703
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8704
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8705
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
8706
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
8707
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
8708
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
8709
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
8710
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
8711
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
8712
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
8713
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
8714
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
8715
|
+
"delegation_id": zod.string().optional(),
|
|
8716
|
+
"grantor": zod.string().optional(),
|
|
8717
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
8718
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
8719
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8720
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8721
|
+
"metadata": zod.object({
|
|
8722
|
+
"client": zod.object({
|
|
8723
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8724
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
8725
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
8726
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
8727
|
+
}).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')
|
|
8728
|
+
}).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({
|
|
8729
|
+
"event_type": zod.literal("variable.removed"),
|
|
8730
|
+
"payload": zod.object({
|
|
8731
|
+
"kind": zod.enum(['primary', 'preview']).optional()
|
|
8732
|
+
}).describe('Payload for `variable.removed` events, one row removed.')
|
|
8733
|
+
})).describe('Wide event with event_type=variable.removed.\n'),zod.object({
|
|
8734
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8735
|
+
"project_id": zod.string().regex(getEventResponseFouroneOneProjectIdRegExp),
|
|
8736
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8737
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8738
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
8739
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
8740
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
8741
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
8742
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
8743
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
8744
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
8745
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
8746
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
8747
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
8748
|
+
"delegation_id": zod.string().optional(),
|
|
8749
|
+
"grantor": zod.string().optional(),
|
|
8750
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
8751
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
8752
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8753
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8754
|
+
"metadata": zod.object({
|
|
8755
|
+
"client": zod.object({
|
|
8756
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8757
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
8758
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
8759
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
8760
|
+
}).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')
|
|
8761
|
+
}).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({
|
|
8762
|
+
"event_type": zod.literal("variable.set"),
|
|
8763
|
+
"payload": zod.object({
|
|
8764
|
+
"kind": zod.enum(['primary', 'preview']).optional(),
|
|
8765
|
+
"secret": zod.boolean().optional()
|
|
8766
|
+
}).describe('Payload for `variable.set` events: one row entered or replaced. The value\nis never included, plain or encrypted.\n')
|
|
8767
|
+
})).describe('Wide event with event_type=variable.set.\n')]).describe('Discriminated wide-event union (ADR 048 / ADR 049). Clients select the\nmember via event_type; each member carries a typed payload.\n')
|
|
7750
8768
|
|
|
7751
8769
|
|
|
7752
8770
|
/**
|
|
7753
|
-
* Returns the variables
|
|
7754
|
-
*
|
|
7755
|
-
* level itself without it.
|
|
7756
|
-
*
|
|
7757
|
-
* Owners are separate, not a ladder: an environment does not inherit the
|
|
7758
|
-
* project's variables and the project does not see its environments'. Reading
|
|
7759
|
-
* everything a project holds therefore means reading each owner in turn.
|
|
8771
|
+
* Returns the project's variables, keyed by name, each with its value per
|
|
8772
|
+
* kind. With `kind`, only that kind's values are returned.
|
|
7760
8773
|
*
|
|
7761
8774
|
* Secret values are not returned. A secret appears as `{"secret": true}`,
|
|
7762
8775
|
* which says a value is held without disclosing it.
|
|
7763
8776
|
* @summary Get variables
|
|
7764
8777
|
*/
|
|
7765
8778
|
export const getVariablesQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7766
|
-
export const getVariablesQueryEnvironmentNameMax = 63;
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
export const getVariablesQueryEnvironmentNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
7770
8779
|
|
|
7771
8780
|
|
|
7772
8781
|
export const GetVariablesQueryParams = zod.strictObject({
|
|
7773
8782
|
"project_id": zod.string().regex(getVariablesQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
7774
|
-
"
|
|
8783
|
+
"kind": zod.enum(['primary', 'preview']).optional().describe('The kind of value to address. Omit it for both kinds.\n')
|
|
7775
8784
|
})
|
|
7776
8785
|
|
|
7777
|
-
export const
|
|
8786
|
+
export const getVariablesResponsePrimaryOneOneMax = 16384;
|
|
7778
8787
|
|
|
8788
|
+
export const getVariablesResponsePreviewOneOneMax = 16384;
|
|
7779
8789
|
|
|
7780
8790
|
|
|
7781
|
-
|
|
8791
|
+
|
|
8792
|
+
export const GetVariablesResponse = zod.record(zod.string(), zod.object({
|
|
8793
|
+
"primary": zod.union([zod.union([zod.string().max(getVariablesResponsePrimaryOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
8794
|
+
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
8795
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\n')]).optional().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'),
|
|
8796
|
+
"preview": zod.union([zod.union([zod.string().max(getVariablesResponsePreviewOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
7782
8797
|
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
7783
|
-
}).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
|
|
8798
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\n')]).optional().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')
|
|
8799
|
+
}).describe('One variable\'s values, per kind. A kind with no value is absent.\n')).describe('The project\'s variables, keyed by name, each with its value per kind.\n\nAn empty object is an ordinary answer, not an error.\n')
|
|
7784
8800
|
|
|
7785
8801
|
|
|
7786
8802
|
/**
|
|
7787
|
-
* Enters, replaces and removes variables
|
|
7788
|
-
*
|
|
8803
|
+
* Enters, replaces and removes the project's variables for the requested
|
|
8804
|
+
* kind. Names not in the body are untouched. Existing deployments keep the
|
|
8805
|
+
* values they froze.
|
|
7789
8806
|
*
|
|
7790
|
-
*
|
|
7791
|
-
*
|
|
7792
|
-
*
|
|
8807
|
+
* Without `kind`, a plain value is written for both kinds. A secret is
|
|
8808
|
+
* written for `primary` only and removes the name's `preview` value, so a
|
|
8809
|
+
* preview never keeps a plaintext copy; set a preview secret with
|
|
8810
|
+
* `kind=preview`. `null` removes the name from both.
|
|
7793
8811
|
*
|
|
7794
8812
|
* A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
|
|
7795
8813
|
* stores the value encrypted under the project's active `secret` key, after
|
|
7796
|
-
* which it can be referenced but not read back. `null` removes the name
|
|
7797
|
-
*
|
|
7798
|
-
*
|
|
7799
|
-
* error.
|
|
8814
|
+
* which it can be referenced but not read back. `null` removes the name
|
|
8815
|
+
* (RFC 7386), which is how several variables are removed in one request;
|
|
8816
|
+
* removing a name the project does not hold is a no-op rather than an error.
|
|
7800
8817
|
*
|
|
7801
8818
|
* The body is applied whole or not at all, so a rejected request leaves the
|
|
7802
|
-
*
|
|
7803
|
-
* value rather than duplicating it, which makes a retry safe.
|
|
8819
|
+
* project's variables exactly as they were. Writing the same name twice
|
|
8820
|
+
* replaces the value rather than duplicating it, which makes a retry safe.
|
|
7804
8821
|
* @summary Update variables
|
|
7805
8822
|
*/
|
|
7806
8823
|
export const updateVariablesQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7807
|
-
export const updateVariablesQueryEnvironmentNameMax = 63;
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
export const updateVariablesQueryEnvironmentNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
7811
8824
|
|
|
7812
8825
|
|
|
7813
8826
|
export const UpdateVariablesQueryParams = zod.strictObject({
|
|
7814
8827
|
"project_id": zod.string().regex(updateVariablesQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
7815
|
-
"
|
|
8828
|
+
"kind": zod.enum(['primary', 'preview']).optional().describe('The kind of value to address. Omit it for both kinds.\n')
|
|
7816
8829
|
})
|
|
7817
8830
|
|
|
7818
8831
|
export const updateVariablesBodyTwoOneMax = 16384;
|
|
@@ -7821,28 +8834,31 @@ export const updateVariablesBodyThreeValueOneMax = 16384;
|
|
|
7821
8834
|
|
|
7822
8835
|
|
|
7823
8836
|
|
|
7824
|
-
export const UpdateVariablesBody = zod.record(zod.string(), zod.union([zod.null(),zod.union([zod.string().max(updateVariablesBodyTwoOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean
|
|
7825
|
-
"value": zod.union([zod.string().max(updateVariablesBodyThreeValueOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean
|
|
7826
|
-
"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
|
|
7827
|
-
}).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
|
|
8837
|
+
export const UpdateVariablesBody = zod.record(zod.string(), zod.union([zod.null(),zod.union([zod.string().max(updateVariablesBodyTwoOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
8838
|
+
"value": zod.union([zod.string().max(updateVariablesBodyThreeValueOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),
|
|
8839
|
+
"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.\n')
|
|
8840
|
+
}).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 and\nnever reads back; the bare-scalar form is the same write with\n`secret: false`.\n')]).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, which is\nwhat lets one request enter, replace and remove names together. Removing a\nname the project does not hold is not an error, because a patch states what\nthe project holds afterwards and 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, replacing whatever the\nproject held under it, and a name absent here is left alone. A name whose\nvalue is `null` is removed (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 project does not hold is not an error: a patch states\nwhat the project 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')
|
|
7828
8841
|
|
|
7829
|
-
export const
|
|
8842
|
+
export const updateVariablesResponsePrimaryOneOneMax = 16384;
|
|
7830
8843
|
|
|
8844
|
+
export const updateVariablesResponsePreviewOneOneMax = 16384;
|
|
7831
8845
|
|
|
7832
8846
|
|
|
7833
|
-
|
|
8847
|
+
|
|
8848
|
+
export const UpdateVariablesResponse = zod.record(zod.string(), zod.object({
|
|
8849
|
+
"primary": zod.union([zod.union([zod.string().max(updateVariablesResponsePrimaryOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
8850
|
+
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
8851
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\n')]).optional().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'),
|
|
8852
|
+
"preview": zod.union([zod.union([zod.string().max(updateVariablesResponsePreviewOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
7834
8853
|
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
7835
|
-
}).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
|
|
8854
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\n')]).optional().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')
|
|
8855
|
+
}).describe('One variable\'s values, per kind. A kind with no value is absent.\n')).describe('The project\'s variables, keyed by name, each with its value per kind.\n\nAn empty object is an ordinary answer, not an error.\n')
|
|
7836
8856
|
|
|
7837
8857
|
|
|
7838
8858
|
/**
|
|
7839
|
-
* Reads one variable by name
|
|
7840
|
-
*
|
|
7841
|
-
*
|
|
7842
|
-
*
|
|
7843
|
-
* A name that owner has not entered answers `var.not_found`, even when
|
|
7844
|
-
* another owner of the same project holds it: nothing is inherited. A secret
|
|
7845
|
-
* is found but not disclosed: the response is `{"secret": true}`.
|
|
8859
|
+
* Reads one variable by name, with its value per kind. A name with no
|
|
8860
|
+
* value for the requested kind answers `var.not_found`. A secret reads
|
|
8861
|
+
* back as `{"secret": true}`.
|
|
7846
8862
|
* @summary Get a variable
|
|
7847
8863
|
*/
|
|
7848
8864
|
export const getVariablePathVariableNameMax = 255;
|
|
@@ -7856,32 +8872,33 @@ export const GetVariableParams = zod.object({
|
|
|
7856
8872
|
})
|
|
7857
8873
|
|
|
7858
8874
|
export const getVariableQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7859
|
-
export const getVariableQueryEnvironmentNameMax = 63;
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
export const getVariableQueryEnvironmentNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
7863
8875
|
|
|
7864
8876
|
|
|
7865
8877
|
export const GetVariableQueryParams = zod.strictObject({
|
|
7866
8878
|
"project_id": zod.string().regex(getVariableQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
7867
|
-
"
|
|
8879
|
+
"kind": zod.enum(['primary', 'preview']).optional().describe('The kind of value to address. Omit it for both kinds.\n')
|
|
7868
8880
|
})
|
|
7869
8881
|
|
|
7870
|
-
export const
|
|
8882
|
+
export const getVariableResponsePrimaryOneOneMax = 16384;
|
|
8883
|
+
|
|
8884
|
+
export const getVariableResponsePreviewOneOneMax = 16384;
|
|
7871
8885
|
|
|
7872
8886
|
|
|
7873
8887
|
|
|
7874
|
-
export const GetVariableResponse = zod.
|
|
8888
|
+
export const GetVariableResponse = zod.object({
|
|
8889
|
+
"primary": zod.union([zod.union([zod.string().max(getVariableResponsePrimaryOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
7875
8890
|
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
7876
|
-
}).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
|
|
8891
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\n')]).optional().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'),
|
|
8892
|
+
"preview": zod.union([zod.union([zod.string().max(getVariableResponsePreviewOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
8893
|
+
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
8894
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\n')]).optional().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')
|
|
8895
|
+
}).describe('One variable\'s values, per kind. A kind with no value is absent.\n')
|
|
7877
8896
|
|
|
7878
8897
|
|
|
7879
8898
|
/**
|
|
7880
|
-
* Removes
|
|
7881
|
-
*
|
|
7882
|
-
*
|
|
7883
|
-
* another owner of the same project holds answers `var.not_found` and leaves
|
|
7884
|
-
* that owner's value standing.
|
|
8899
|
+
* Removes a variable for the requested kind, or for both kinds without
|
|
8900
|
+
* `kind`. A name with no value for that kind answers `var.not_found`.
|
|
8901
|
+
* Existing deployments keep the values they froze.
|
|
7885
8902
|
* @summary Delete a variable
|
|
7886
8903
|
*/
|
|
7887
8904
|
export const deleteVariablePathVariableNameMax = 255;
|
|
@@ -7895,43 +8912,65 @@ export const DeleteVariableParams = zod.object({
|
|
|
7895
8912
|
})
|
|
7896
8913
|
|
|
7897
8914
|
export const deleteVariableQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7898
|
-
export const deleteVariableQueryEnvironmentNameMax = 63;
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
export const deleteVariableQueryEnvironmentNameRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
7902
8915
|
|
|
7903
8916
|
|
|
7904
8917
|
export const DeleteVariableQueryParams = zod.strictObject({
|
|
7905
8918
|
"project_id": zod.string().regex(deleteVariableQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
7906
|
-
"
|
|
8919
|
+
"kind": zod.enum(['primary', 'preview']).optional().describe('The kind of value to address. Omit it for both kinds.\n')
|
|
7907
8920
|
})
|
|
7908
8921
|
|
|
7909
8922
|
export const DeleteVariableResponse = zod.void()
|
|
7910
8923
|
|
|
7911
8924
|
|
|
7912
8925
|
/**
|
|
7913
|
-
* Makes a release live on
|
|
7914
|
-
* happen atomically: when the call returns,
|
|
7915
|
-
* release and the record exists; on any failure
|
|
7916
|
-
*
|
|
8926
|
+
* Makes a release live on a set of targets by recording a deployment. The
|
|
8927
|
+
* two happen atomically: when the call returns, every target serves the
|
|
8928
|
+
* named release and the record exists; on any failure every target keeps
|
|
8929
|
+
* serving what it served and no record is written.
|
|
8930
|
+
*
|
|
8931
|
+
* The release is named by exactly one of `release_id` or `content_hash`
|
|
8932
|
+
* (both or neither answers `400` with `dep.invalid`), and must already
|
|
8933
|
+
* exist in the project: deploying never assembles a release. An
|
|
8934
|
+
* unknown release id or digest answers `404` with `rel.not_found`, and a
|
|
8935
|
+
* revoked release answers `409` with `rel.revoked`.
|
|
8936
|
+
*
|
|
8937
|
+
* `targets` lists `primary`, which expands to every primary origin of the
|
|
8938
|
+
* project, and exact origins. An origin that is neither a primary origin
|
|
8939
|
+
* of the project nor matches one of its preview patterns answers `403`
|
|
8940
|
+
* with `proj.origin_not_allowed`, and `primary` on a project with no
|
|
8941
|
+
* primary origin answers `400` with `dep.invalid`. The deployment records
|
|
8942
|
+
* the resolved origins, sorted, never the keyword.
|
|
7917
8943
|
*
|
|
7918
|
-
*
|
|
7919
|
-
*
|
|
7920
|
-
*
|
|
7921
|
-
*
|
|
8944
|
+
* A deployment to preview URLs creates the preview for each of them, or
|
|
8945
|
+
* renews it when it exists, in the same transaction, with the expiry set
|
|
8946
|
+
* from `ttl`; each target in the response carries that expiry. It always
|
|
8947
|
+
* writes a new deployment, answering `201`, even when the URLs already
|
|
8948
|
+
* serve the release: that record is the renewal. Primary origins and
|
|
8949
|
+
* preview URLs cannot be mixed in one deployment: that answers `400` with
|
|
8950
|
+
* `dep.invalid`.
|
|
7922
8951
|
*
|
|
7923
|
-
*
|
|
7924
|
-
*
|
|
7925
|
-
*
|
|
7926
|
-
*
|
|
7927
|
-
*
|
|
7928
|
-
*
|
|
7929
|
-
* the log is append-only, and each row is one act of making a release live.
|
|
8952
|
+
* A deployment freezes the variable values the project stores for its
|
|
8953
|
+
* kind: primary origins use the primary values, preview URLs the preview
|
|
8954
|
+
* values, with no fallback from one to the other. A release that
|
|
8955
|
+
* references a variable with no value for that kind answers `400` with
|
|
8956
|
+
* `dep.variables_missing`, naming the kind and every missing variable, and
|
|
8957
|
+
* nothing is written.
|
|
7930
8958
|
*
|
|
7931
|
-
*
|
|
7932
|
-
*
|
|
7933
|
-
*
|
|
7934
|
-
*
|
|
8959
|
+
* A deployment to primary origins is idempotent on what is served: when
|
|
8960
|
+
* every resolved target already serves the release with the same frozen
|
|
8961
|
+
* variable values, nothing changes and the call answers `200` with the
|
|
8962
|
+
* newest deployment to those targets, so a re-run of `zitadel deploy` on
|
|
8963
|
+
* unchanged content is a no-op end to end. The same release with a
|
|
8964
|
+
* changed variable value is a new deployment.
|
|
8965
|
+
* Anything else writes a new record covering all of the resolved targets,
|
|
8966
|
+
* including the same release returning after something else was served in
|
|
8967
|
+
* between: the log is append-only, and each record is one act of making a
|
|
8968
|
+
* release live.
|
|
8969
|
+
*
|
|
8970
|
+
* `expected_deployment_id` guards against racing another deploy: when
|
|
8971
|
+
* present, the write only happens if the newest deployment to any of the
|
|
8972
|
+
* resolved targets still is the one named, and a mismatch answers `409`
|
|
8973
|
+
* with `dep.conflict`, carrying the actual newest deployment.
|
|
7935
8974
|
* @summary Create a deployment
|
|
7936
8975
|
*/
|
|
7937
8976
|
export const createDeploymentQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -7941,40 +8980,52 @@ export const CreateDeploymentQueryParams = zod.strictObject({
|
|
|
7941
8980
|
"project_id": zod.string().regex(createDeploymentQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
7942
8981
|
})
|
|
7943
8982
|
|
|
7944
|
-
export const
|
|
8983
|
+
export const createDeploymentBodyReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
8984
|
+
export const createDeploymentBodyContentHashMin = 71;
|
|
8985
|
+
export const createDeploymentBodyContentHashMax = 71;
|
|
8986
|
+
|
|
7945
8987
|
|
|
8988
|
+
export const createDeploymentBodyContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
8989
|
+
export const createDeploymentBodyTargetsItemMax = 2048;
|
|
7946
8990
|
|
|
7947
|
-
export const createDeploymentBodyEnvironmentRegExp = new RegExp('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$');
|
|
7948
|
-
export const createDeploymentBodyReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
7949
|
-
export const createDeploymentBodySourceEnvironmentOneMax = 63;
|
|
7950
8991
|
|
|
8992
|
+
export const createDeploymentBodyTargetsItemRegExp = new RegExp('^(primary|https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?)$');
|
|
8993
|
+
export const createDeploymentBodyTargetsMax = 50;
|
|
7951
8994
|
|
|
7952
|
-
export const
|
|
8995
|
+
export const createDeploymentBodyTtlRegExp = new RegExp('^[1-9][0-9]{0,5}[mhd]$');
|
|
7953
8996
|
export const createDeploymentBodyMessageMax = 1024;
|
|
7954
8997
|
|
|
7955
|
-
export const
|
|
8998
|
+
export const createDeploymentBodyExpectedDeploymentIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
7956
8999
|
|
|
7957
9000
|
|
|
7958
9001
|
export const CreateDeploymentBody = zod.object({
|
|
7959
|
-
"
|
|
7960
|
-
"
|
|
7961
|
-
"
|
|
7962
|
-
"
|
|
9002
|
+
"release_id": zod.string().regex(createDeploymentBodyReleaseIdRegExp).optional().describe('The opaque, immutable identifier of a release.'),
|
|
9003
|
+
"content_hash": zod.string().min(createDeploymentBodyContentHashMin).max(createDeploymentBodyContentHashMax).regex(createDeploymentBodyContentHashRegExp).optional().describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
9004
|
+
"targets": zod.array(zod.string().max(createDeploymentBodyTargetsItemMax).regex(createDeploymentBodyTargetsItemRegExp)).min(1).max(createDeploymentBodyTargetsMax).describe('Where the release goes live. Each entry is one of:\n\n- `primary` — every primary origin of the project, expanded when the\n deployment is created. The deployment records the origins it expanded\n to, so a primary origin added later is not part of it.\n- An exact origin, such as `https://app.acme.com`, in the form `Origin`\n describes, which must be one of the project\'s primary origins or match\n one of its preview patterns.\n\nA deployment goes either to primary origins or to preview URLs, never to\nboth. It covers every target in one transaction: either all of them serve\nthe release afterwards or none does.\n'),
|
|
9005
|
+
"ttl": zod.string().regex(createDeploymentBodyTtlRegExp).optional().describe('How long a preview stays live after the deployment that writes it: a\npositive whole number followed by `m` for minutes, `h` for hours or `d`\nfor days.\n'),
|
|
9006
|
+
"reason": zod.enum(['deploy', 'rollback']).optional().describe('Why the deployment was created. Both are the same operation — a new\ndeployment making a release live on its targets — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the targets.\n- `rollback` — a release the targets served earlier goes live again.\n `POST /deployments/{deployment_id}/rollback` records it, and so may\n `POST /deployments` when the caller picks the earlier release itself.\n'),
|
|
7963
9007
|
"message": zod.string().max(createDeploymentBodyMessageMax).optional().describe('A short free-form summary of why this deployment happened, analogous to\na git commit message. Recorded on the deployment\'s metadata and shown\nwhen listing the history.\n'),
|
|
7964
|
-
"
|
|
7965
|
-
}).describe('The release to make live and the
|
|
9008
|
+
"expected_deployment_id": zod.string().regex(createDeploymentBodyExpectedDeploymentIdRegExp).optional().describe('The opaque, immutable identifier of a deployment.')
|
|
9009
|
+
}).describe('The release to make live and the targets to make it live on. The release\nis named by exactly one of `release_id` or `content_hash`; a request with\nboth or neither answers `400` with `dep.invalid`.\n\n`deployed_at` and `deployed_by` are derived server-side from the caller\'s\nauthentication context and are not accepted here.\n')
|
|
7966
9010
|
|
|
7967
9011
|
export const createDeploymentResponseIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
7968
9012
|
export const createDeploymentResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7969
9013
|
export const createDeploymentResponseReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
7970
|
-
export const
|
|
9014
|
+
export const createDeploymentResponseTargetsItemOriginMax = 2048;
|
|
9015
|
+
|
|
7971
9016
|
|
|
7972
|
-
export const
|
|
9017
|
+
export const createDeploymentResponseTargetsItemOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
7973
9018
|
|
|
9019
|
+
export const createDeploymentResponseMetadataMessageOneMax = 1024;
|
|
7974
9020
|
|
|
7975
|
-
export const
|
|
9021
|
+
export const createDeploymentResponseMetadataRollbackToOneRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
7976
9022
|
export const createDeploymentResponseReleaseIdRegExpOne = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
7977
9023
|
export const createDeploymentResponseReleaseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9024
|
+
export const createDeploymentResponseReleaseContentHashMin = 71;
|
|
9025
|
+
export const createDeploymentResponseReleaseContentHashMax = 71;
|
|
9026
|
+
|
|
9027
|
+
|
|
9028
|
+
export const createDeploymentResponseReleaseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
7978
9029
|
export const createDeploymentResponseReleaseMetadataMessageOneMax = 1024;
|
|
7979
9030
|
|
|
7980
9031
|
export const createDeploymentResponseReleaseMetadataGitShaOneMax = 64;
|
|
@@ -7991,20 +9042,23 @@ export const createDeploymentResponseReleasePointersMax = 50;
|
|
|
7991
9042
|
export const CreateDeploymentResponse = zod.object({
|
|
7992
9043
|
"id": zod.string().regex(createDeploymentResponseIdRegExp).describe('The opaque, immutable identifier of a deployment.'),
|
|
7993
9044
|
"project_id": zod.string().regex(createDeploymentResponseProjectIdRegExp),
|
|
7994
|
-
"environment_id": zod.string().describe('The environment this deployment made the release live on.'),
|
|
7995
9045
|
"release_id": zod.string().regex(createDeploymentResponseReleaseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
9046
|
+
"targets": zod.array(zod.object({
|
|
9047
|
+
"origin": zod.string().max(createDeploymentResponseTargetsItemOriginMax).regex(createDeploymentResponseTargetsItemOriginRegExp).describe('A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme\'s default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n'),
|
|
9048
|
+
"expires_at": zod.iso.datetime({"offset":true}).optional().describe('Present only on a target that is a preview URL: the expiry this\ndeployment set for its preview. Fixed when the deployment is created,\nlike the rest of the record: a later deployment to the URL renews the\npreview and records its own expiry, and removing the preview or\nletting it expire leaves this value as it was. Absent on a primary\norigin, which does not expire.\n')
|
|
9049
|
+
}).describe('One origin a deployment made its release live on.')).min(1).describe('The origins this deployment made the release live on, as resolved when\nit was created: `primary` appears here as the origins it expanded to.\nSorted by origin.\n'),
|
|
7996
9050
|
"deployed_at": zod.iso.datetime({"offset":true}).describe('When the deployment was created.'),
|
|
7997
9051
|
"metadata": zod.object({
|
|
7998
|
-
"reason": zod.enum(['deploy', '
|
|
9052
|
+
"reason": zod.enum(['deploy', 'rollback']).describe('Why the deployment was created. Both are the same operation — a new\ndeployment making a release live on its targets — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the targets.\n- `rollback` — a release the targets served earlier goes live again.\n `POST /deployments/{deployment_id}/rollback` records it, and so may\n `POST /deployments` when the caller picks the earlier release itself.\n'),
|
|
7999
9053
|
"message": zod.union([zod.string().max(createDeploymentResponseMetadataMessageOneMax),zod.null()]).optional().describe('The caller-supplied summary of why this deployment happened, analogous\nto a git commit message.\n'),
|
|
8000
|
-
"
|
|
8001
|
-
"source_environment_name": zod.union([zod.string().max(createDeploymentResponseMetadataSourceEnvironmentNameOneMax).regex(createDeploymentResponseMetadataSourceEnvironmentNameOneRegExp).describe('An environment\'s public handle, unique within its project and immutable.\n\nIt addresses the environment on the wire and names a deploy target in the\nCLI, so it is a lowercase DNS-style label: letters, digits, and hyphens\nbetween them.\n'),zod.null()]).optional().describe('The name the source environment had at deployment time, set exactly\nwhen `source_environment_id` is. A snapshot for reading the history,\nnot an address: a later rename does not update it, and the id is what\nidentifies the environment.\n'),
|
|
9054
|
+
"rollback_to": zod.union([zod.string().regex(createDeploymentResponseMetadataRollbackToOneRegExp).describe('The opaque, immutable identifier of a deployment.'),zod.null()]).optional().describe('The deployment `POST /deployments/{deployment_id}/rollback` re-applied,\nwith its release and its targets. Null or absent for every other\ndeployment, including one created by `POST /deployments` with\n`reason: rollback`.\n'),
|
|
8002
9055
|
"deployed_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that created the deployment. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case\nfor deployments made from CI.\n'),
|
|
8003
9056
|
"deployed_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `deployed_by` names.')
|
|
8004
|
-
}).describe('Why the release went live
|
|
9057
|
+
}).describe('Why the release went live and who made it happen. Set when the deployment\nis created and never mutated afterwards — enrichment of the record, while\nthe release, targets and timestamp on the deployment itself say what ran\nwhere and when.\n'),
|
|
8005
9058
|
"release": zod.object({
|
|
8006
9059
|
"id": zod.string().regex(createDeploymentResponseReleaseIdRegExpOne).describe('The opaque, immutable identifier of a release.'),
|
|
8007
9060
|
"project_id": zod.string().regex(createDeploymentResponseReleaseProjectIdRegExp),
|
|
9061
|
+
"content_hash": zod.string().min(createDeploymentResponseReleaseContentHashMin).max(createDeploymentResponseReleaseContentHashMax).regex(createDeploymentResponseReleaseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
8008
9062
|
"metadata": zod.object({
|
|
8009
9063
|
"message": zod.union([zod.string().max(createDeploymentResponseReleaseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
8010
9064
|
"git_sha": zod.union([zod.string().max(createDeploymentResponseReleaseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
@@ -8013,22 +9067,32 @@ export const CreateDeploymentResponse = zod.object({
|
|
|
8013
9067
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
8014
9068
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
8015
9069
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9070
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
8016
9071
|
"pointers": zod.array(zod.object({
|
|
8017
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding']).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'),
|
|
8018
|
-
"handle": zod.string().min(1).max(createDeploymentResponseReleasePointersItemHandleMax).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'),
|
|
9072
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
9073
|
+
"handle": zod.string().min(1).max(createDeploymentResponseReleasePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
8019
9074
|
"revision_id": zod.string().min(1).max(createDeploymentResponseReleasePointersItemRevisionIdMax).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')
|
|
8020
9075
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(createDeploymentResponseReleasePointersMax).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')
|
|
8021
|
-
}).optional().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
|
|
8022
|
-
}).describe('An immutable record of a release being made live on
|
|
9076
|
+
}).optional().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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
9077
|
+
}).describe('An immutable record of a release being made live on a set of targets.\n\nDeploying and rolling back both create a deployment. The record is what\nran where and when — the release, the targets and the timestamp — plus\nmetadata saying why and who. It is append-only: written once, in one\ntransaction for all of its targets, and never changed afterwards, so the\ndeployment log is the audit trail of what ran where.\n\nA target serves the release of the newest deployment that targeted it.\nAn older deployment stays in the history after a newer one replaces it on\nsome or all of its targets.\n')
|
|
8023
9078
|
|
|
8024
9079
|
|
|
8025
9080
|
/**
|
|
8026
9081
|
* Lists deployments newest first: what ran where, and when.
|
|
8027
9082
|
*
|
|
8028
|
-
*
|
|
8029
|
-
*
|
|
8030
|
-
*
|
|
8031
|
-
*
|
|
9083
|
+
* By default the list is the history: every deployment of the project, each
|
|
9084
|
+
* with every target it made the release live on. With `origin`, it is the
|
|
9085
|
+
* history of that origin alone, and its first row is the deployment the
|
|
9086
|
+
* origin serves.
|
|
9087
|
+
*
|
|
9088
|
+
* With `live=true`, the list is what is served now: the newest deployment
|
|
9089
|
+
* to each target, each carrying only the targets it still serves. A
|
|
9090
|
+
* preview URL is served only while its preview is live, and its
|
|
9091
|
+
* `expires_at` is the expiry its newest deployment set, which is the
|
|
9092
|
+
* preview's current one. A deployment every target of which has since
|
|
9093
|
+
* been replaced, or whose previews have all expired or been removed, does
|
|
9094
|
+
* not appear. Combined with `origin`, the live view is the one deployment
|
|
9095
|
+
* that origin serves, or empty.
|
|
8032
9096
|
*
|
|
8033
9097
|
* `expand: ["release"]` embeds the release each deployment made live, so a
|
|
8034
9098
|
* history renders with each entry's content without resolving `release_id`
|
|
@@ -8037,10 +9101,11 @@ export const CreateDeploymentResponse = zod.object({
|
|
|
8037
9101
|
* @summary List deployments
|
|
8038
9102
|
*/
|
|
8039
9103
|
export const listDeploymentsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8040
|
-
export const
|
|
9104
|
+
export const listDeploymentsQueryOriginMax = 2048;
|
|
8041
9105
|
|
|
8042
9106
|
|
|
8043
|
-
export const
|
|
9107
|
+
export const listDeploymentsQueryOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
9108
|
+
export const listDeploymentsQueryLiveDefault = false;
|
|
8044
9109
|
export const listDeploymentsQueryLimitDefault = 20;
|
|
8045
9110
|
export const listDeploymentsQueryLimitMax = 100;
|
|
8046
9111
|
|
|
@@ -8048,7 +9113,8 @@ export const listDeploymentsQueryLimitMax = 100;
|
|
|
8048
9113
|
|
|
8049
9114
|
export const ListDeploymentsQueryParams = zod.strictObject({
|
|
8050
9115
|
"project_id": zod.string().regex(listDeploymentsQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
8051
|
-
"
|
|
9116
|
+
"origin": zod.string().max(listDeploymentsQueryOriginMax).regex(listDeploymentsQueryOriginRegExp).optional().describe('Narrows the list to the deployments that targeted this origin, given\nexactly as the deployment records it. An origin no deployment targeted\nanswers an empty list, not an error.\n'),
|
|
9117
|
+
"live": zod.boolean().default(listDeploymentsQueryLiveDefault).describe('Lists what each target serves now instead of the history. Defaults\nto `false`.\n'),
|
|
8052
9118
|
"expand": zod.array(zod.enum(['release']).describe('A related object to embed on each returned deployment.\n\n- `release`: the release this deployment made live, as `release` on each\n deployment — the same representation `GET /releases/{release_id}` serves.\n The property is omitted entirely when not requested, so "did not ask" is\n distinguishable from asked-for content. One release per deployment, so no\n cap and no truncation flag.\n\n Requires `release.read` in addition to `deployment.read`.\n')).optional().describe('Related objects to embed on each returned deployment.'),
|
|
8053
9119
|
"limit": zod.int().min(1).max(listDeploymentsQueryLimitMax).default(listDeploymentsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
8054
9120
|
"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')
|
|
@@ -8057,14 +9123,21 @@ export const ListDeploymentsQueryParams = zod.strictObject({
|
|
|
8057
9123
|
export const listDeploymentsResponseDeploymentsItemIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
8058
9124
|
export const listDeploymentsResponseDeploymentsItemProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8059
9125
|
export const listDeploymentsResponseDeploymentsItemReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
8060
|
-
export const
|
|
9126
|
+
export const listDeploymentsResponseDeploymentsItemTargetsItemOriginMax = 2048;
|
|
9127
|
+
|
|
8061
9128
|
|
|
8062
|
-
export const
|
|
9129
|
+
export const listDeploymentsResponseDeploymentsItemTargetsItemOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
8063
9130
|
|
|
9131
|
+
export const listDeploymentsResponseDeploymentsItemMetadataMessageOneMax = 1024;
|
|
8064
9132
|
|
|
8065
|
-
export const
|
|
9133
|
+
export const listDeploymentsResponseDeploymentsItemMetadataRollbackToOneRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
8066
9134
|
export const listDeploymentsResponseDeploymentsItemReleaseIdRegExpOne = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
8067
9135
|
export const listDeploymentsResponseDeploymentsItemReleaseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9136
|
+
export const listDeploymentsResponseDeploymentsItemReleaseContentHashMin = 71;
|
|
9137
|
+
export const listDeploymentsResponseDeploymentsItemReleaseContentHashMax = 71;
|
|
9138
|
+
|
|
9139
|
+
|
|
9140
|
+
export const listDeploymentsResponseDeploymentsItemReleaseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
8068
9141
|
export const listDeploymentsResponseDeploymentsItemReleaseMetadataMessageOneMax = 1024;
|
|
8069
9142
|
|
|
8070
9143
|
export const listDeploymentsResponseDeploymentsItemReleaseMetadataGitShaOneMax = 64;
|
|
@@ -8082,20 +9155,23 @@ export const ListDeploymentsResponse = zod.object({
|
|
|
8082
9155
|
"deployments": zod.array(zod.object({
|
|
8083
9156
|
"id": zod.string().regex(listDeploymentsResponseDeploymentsItemIdRegExp).describe('The opaque, immutable identifier of a deployment.'),
|
|
8084
9157
|
"project_id": zod.string().regex(listDeploymentsResponseDeploymentsItemProjectIdRegExp),
|
|
8085
|
-
"environment_id": zod.string().describe('The environment this deployment made the release live on.'),
|
|
8086
9158
|
"release_id": zod.string().regex(listDeploymentsResponseDeploymentsItemReleaseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
9159
|
+
"targets": zod.array(zod.object({
|
|
9160
|
+
"origin": zod.string().max(listDeploymentsResponseDeploymentsItemTargetsItemOriginMax).regex(listDeploymentsResponseDeploymentsItemTargetsItemOriginRegExp).describe('A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme\'s default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n'),
|
|
9161
|
+
"expires_at": zod.iso.datetime({"offset":true}).optional().describe('Present only on a target that is a preview URL: the expiry this\ndeployment set for its preview. Fixed when the deployment is created,\nlike the rest of the record: a later deployment to the URL renews the\npreview and records its own expiry, and removing the preview or\nletting it expire leaves this value as it was. Absent on a primary\norigin, which does not expire.\n')
|
|
9162
|
+
}).describe('One origin a deployment made its release live on.')).min(1).describe('The origins this deployment made the release live on, as resolved when\nit was created: `primary` appears here as the origins it expanded to.\nSorted by origin.\n'),
|
|
8087
9163
|
"deployed_at": zod.iso.datetime({"offset":true}).describe('When the deployment was created.'),
|
|
8088
9164
|
"metadata": zod.object({
|
|
8089
|
-
"reason": zod.enum(['deploy', '
|
|
9165
|
+
"reason": zod.enum(['deploy', 'rollback']).describe('Why the deployment was created. Both are the same operation — a new\ndeployment making a release live on its targets — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the targets.\n- `rollback` — a release the targets served earlier goes live again.\n `POST /deployments/{deployment_id}/rollback` records it, and so may\n `POST /deployments` when the caller picks the earlier release itself.\n'),
|
|
8090
9166
|
"message": zod.union([zod.string().max(listDeploymentsResponseDeploymentsItemMetadataMessageOneMax),zod.null()]).optional().describe('The caller-supplied summary of why this deployment happened, analogous\nto a git commit message.\n'),
|
|
8091
|
-
"
|
|
8092
|
-
"source_environment_name": zod.union([zod.string().max(listDeploymentsResponseDeploymentsItemMetadataSourceEnvironmentNameOneMax).regex(listDeploymentsResponseDeploymentsItemMetadataSourceEnvironmentNameOneRegExp).describe('An environment\'s public handle, unique within its project and immutable.\n\nIt addresses the environment on the wire and names a deploy target in the\nCLI, so it is a lowercase DNS-style label: letters, digits, and hyphens\nbetween them.\n'),zod.null()]).optional().describe('The name the source environment had at deployment time, set exactly\nwhen `source_environment_id` is. A snapshot for reading the history,\nnot an address: a later rename does not update it, and the id is what\nidentifies the environment.\n'),
|
|
9167
|
+
"rollback_to": zod.union([zod.string().regex(listDeploymentsResponseDeploymentsItemMetadataRollbackToOneRegExp).describe('The opaque, immutable identifier of a deployment.'),zod.null()]).optional().describe('The deployment `POST /deployments/{deployment_id}/rollback` re-applied,\nwith its release and its targets. Null or absent for every other\ndeployment, including one created by `POST /deployments` with\n`reason: rollback`.\n'),
|
|
8093
9168
|
"deployed_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that created the deployment. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case\nfor deployments made from CI.\n'),
|
|
8094
9169
|
"deployed_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `deployed_by` names.')
|
|
8095
|
-
}).describe('Why the release went live
|
|
9170
|
+
}).describe('Why the release went live and who made it happen. Set when the deployment\nis created and never mutated afterwards — enrichment of the record, while\nthe release, targets and timestamp on the deployment itself say what ran\nwhere and when.\n'),
|
|
8096
9171
|
"release": zod.object({
|
|
8097
9172
|
"id": zod.string().regex(listDeploymentsResponseDeploymentsItemReleaseIdRegExpOne).describe('The opaque, immutable identifier of a release.'),
|
|
8098
9173
|
"project_id": zod.string().regex(listDeploymentsResponseDeploymentsItemReleaseProjectIdRegExp),
|
|
9174
|
+
"content_hash": zod.string().min(listDeploymentsResponseDeploymentsItemReleaseContentHashMin).max(listDeploymentsResponseDeploymentsItemReleaseContentHashMax).regex(listDeploymentsResponseDeploymentsItemReleaseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
8099
9175
|
"metadata": zod.object({
|
|
8100
9176
|
"message": zod.union([zod.string().max(listDeploymentsResponseDeploymentsItemReleaseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
8101
9177
|
"git_sha": zod.union([zod.string().max(listDeploymentsResponseDeploymentsItemReleaseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
@@ -8104,15 +9180,16 @@ export const ListDeploymentsResponse = zod.object({
|
|
|
8104
9180
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
8105
9181
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
8106
9182
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9183
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
8107
9184
|
"pointers": zod.array(zod.object({
|
|
8108
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding']).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'),
|
|
8109
|
-
"handle": zod.string().min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersItemHandleMax).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'),
|
|
9185
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
9186
|
+
"handle": zod.string().min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
8110
9187
|
"revision_id": zod.string().min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersItemRevisionIdMax).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')
|
|
8111
9188
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersMax).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')
|
|
8112
|
-
}).optional().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
|
|
8113
|
-
}).describe('An immutable record of a release being made live on
|
|
9189
|
+
}).optional().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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
9190
|
+
}).describe('An immutable record of a release being made live on a set of targets.\n\nDeploying and rolling back both create a deployment. The record is what\nran where and when — the release, the targets and the timestamp — plus\nmetadata saying why and who. It is append-only: written once, in one\ntransaction for all of its targets, and never changed afterwards, so the\ndeployment log is the audit trail of what ran where.\n\nA target serves the release of the newest deployment that targeted it.\nAn older deployment stays in the history after a newer one replaces it on\nsome or all of its targets.\n')),
|
|
8114
9191
|
"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')
|
|
8115
|
-
}).describe('Deployments, newest first.\n\
|
|
9192
|
+
}).describe('Deployments, newest first.\n\nIn the history (the default), each deployment carries every target it\nmade the release live on. In the live view (`live=true`), each deployment\ncarries only the targets it still serves.\n')
|
|
8116
9193
|
|
|
8117
9194
|
|
|
8118
9195
|
/**
|
|
@@ -8141,14 +9218,21 @@ export const GetDeploymentByIdQueryParams = zod.strictObject({
|
|
|
8141
9218
|
export const getDeploymentByIdResponseIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
8142
9219
|
export const getDeploymentByIdResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8143
9220
|
export const getDeploymentByIdResponseReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
8144
|
-
export const
|
|
9221
|
+
export const getDeploymentByIdResponseTargetsItemOriginMax = 2048;
|
|
8145
9222
|
|
|
8146
|
-
export const getDeploymentByIdResponseMetadataSourceEnvironmentNameOneMax = 63;
|
|
8147
9223
|
|
|
9224
|
+
export const getDeploymentByIdResponseTargetsItemOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
8148
9225
|
|
|
8149
|
-
export const
|
|
9226
|
+
export const getDeploymentByIdResponseMetadataMessageOneMax = 1024;
|
|
9227
|
+
|
|
9228
|
+
export const getDeploymentByIdResponseMetadataRollbackToOneRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
8150
9229
|
export const getDeploymentByIdResponseReleaseIdRegExpOne = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
8151
9230
|
export const getDeploymentByIdResponseReleaseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9231
|
+
export const getDeploymentByIdResponseReleaseContentHashMin = 71;
|
|
9232
|
+
export const getDeploymentByIdResponseReleaseContentHashMax = 71;
|
|
9233
|
+
|
|
9234
|
+
|
|
9235
|
+
export const getDeploymentByIdResponseReleaseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
8152
9236
|
export const getDeploymentByIdResponseReleaseMetadataMessageOneMax = 1024;
|
|
8153
9237
|
|
|
8154
9238
|
export const getDeploymentByIdResponseReleaseMetadataGitShaOneMax = 64;
|
|
@@ -8165,20 +9249,23 @@ export const getDeploymentByIdResponseReleasePointersMax = 50;
|
|
|
8165
9249
|
export const GetDeploymentByIdResponse = zod.object({
|
|
8166
9250
|
"id": zod.string().regex(getDeploymentByIdResponseIdRegExp).describe('The opaque, immutable identifier of a deployment.'),
|
|
8167
9251
|
"project_id": zod.string().regex(getDeploymentByIdResponseProjectIdRegExp),
|
|
8168
|
-
"environment_id": zod.string().describe('The environment this deployment made the release live on.'),
|
|
8169
9252
|
"release_id": zod.string().regex(getDeploymentByIdResponseReleaseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
9253
|
+
"targets": zod.array(zod.object({
|
|
9254
|
+
"origin": zod.string().max(getDeploymentByIdResponseTargetsItemOriginMax).regex(getDeploymentByIdResponseTargetsItemOriginRegExp).describe('A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme\'s default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n'),
|
|
9255
|
+
"expires_at": zod.iso.datetime({"offset":true}).optional().describe('Present only on a target that is a preview URL: the expiry this\ndeployment set for its preview. Fixed when the deployment is created,\nlike the rest of the record: a later deployment to the URL renews the\npreview and records its own expiry, and removing the preview or\nletting it expire leaves this value as it was. Absent on a primary\norigin, which does not expire.\n')
|
|
9256
|
+
}).describe('One origin a deployment made its release live on.')).min(1).describe('The origins this deployment made the release live on, as resolved when\nit was created: `primary` appears here as the origins it expanded to.\nSorted by origin.\n'),
|
|
8170
9257
|
"deployed_at": zod.iso.datetime({"offset":true}).describe('When the deployment was created.'),
|
|
8171
9258
|
"metadata": zod.object({
|
|
8172
|
-
"reason": zod.enum(['deploy', '
|
|
9259
|
+
"reason": zod.enum(['deploy', 'rollback']).describe('Why the deployment was created. Both are the same operation — a new\ndeployment making a release live on its targets — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the targets.\n- `rollback` — a release the targets served earlier goes live again.\n `POST /deployments/{deployment_id}/rollback` records it, and so may\n `POST /deployments` when the caller picks the earlier release itself.\n'),
|
|
8173
9260
|
"message": zod.union([zod.string().max(getDeploymentByIdResponseMetadataMessageOneMax),zod.null()]).optional().describe('The caller-supplied summary of why this deployment happened, analogous\nto a git commit message.\n'),
|
|
8174
|
-
"
|
|
8175
|
-
"source_environment_name": zod.union([zod.string().max(getDeploymentByIdResponseMetadataSourceEnvironmentNameOneMax).regex(getDeploymentByIdResponseMetadataSourceEnvironmentNameOneRegExp).describe('An environment\'s public handle, unique within its project and immutable.\n\nIt addresses the environment on the wire and names a deploy target in the\nCLI, so it is a lowercase DNS-style label: letters, digits, and hyphens\nbetween them.\n'),zod.null()]).optional().describe('The name the source environment had at deployment time, set exactly\nwhen `source_environment_id` is. A snapshot for reading the history,\nnot an address: a later rename does not update it, and the id is what\nidentifies the environment.\n'),
|
|
9261
|
+
"rollback_to": zod.union([zod.string().regex(getDeploymentByIdResponseMetadataRollbackToOneRegExp).describe('The opaque, immutable identifier of a deployment.'),zod.null()]).optional().describe('The deployment `POST /deployments/{deployment_id}/rollback` re-applied,\nwith its release and its targets. Null or absent for every other\ndeployment, including one created by `POST /deployments` with\n`reason: rollback`.\n'),
|
|
8176
9262
|
"deployed_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that created the deployment. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case\nfor deployments made from CI.\n'),
|
|
8177
9263
|
"deployed_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `deployed_by` names.')
|
|
8178
|
-
}).describe('Why the release went live
|
|
9264
|
+
}).describe('Why the release went live and who made it happen. Set when the deployment\nis created and never mutated afterwards — enrichment of the record, while\nthe release, targets and timestamp on the deployment itself say what ran\nwhere and when.\n'),
|
|
8179
9265
|
"release": zod.object({
|
|
8180
9266
|
"id": zod.string().regex(getDeploymentByIdResponseReleaseIdRegExpOne).describe('The opaque, immutable identifier of a release.'),
|
|
8181
9267
|
"project_id": zod.string().regex(getDeploymentByIdResponseReleaseProjectIdRegExp),
|
|
9268
|
+
"content_hash": zod.string().min(getDeploymentByIdResponseReleaseContentHashMin).max(getDeploymentByIdResponseReleaseContentHashMax).regex(getDeploymentByIdResponseReleaseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
8182
9269
|
"metadata": zod.object({
|
|
8183
9270
|
"message": zod.union([zod.string().max(getDeploymentByIdResponseReleaseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
8184
9271
|
"git_sha": zod.union([zod.string().max(getDeploymentByIdResponseReleaseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
@@ -8187,12 +9274,165 @@ export const GetDeploymentByIdResponse = zod.object({
|
|
|
8187
9274
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
8188
9275
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
8189
9276
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9277
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
8190
9278
|
"pointers": zod.array(zod.object({
|
|
8191
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding']).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'),
|
|
8192
|
-
"handle": zod.string().min(1).max(getDeploymentByIdResponseReleasePointersItemHandleMax).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'),
|
|
9279
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
9280
|
+
"handle": zod.string().min(1).max(getDeploymentByIdResponseReleasePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
8193
9281
|
"revision_id": zod.string().min(1).max(getDeploymentByIdResponseReleasePointersItemRevisionIdMax).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')
|
|
8194
9282
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(getDeploymentByIdResponseReleasePointersMax).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')
|
|
8195
|
-
}).optional().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
|
|
8196
|
-
}).describe('An immutable record of a release being made live on
|
|
9283
|
+
}).optional().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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
9284
|
+
}).describe('An immutable record of a release being made live on a set of targets.\n\nDeploying and rolling back both create a deployment. The record is what\nran where and when — the release, the targets and the timestamp — plus\nmetadata saying why and who. It is append-only: written once, in one\ntransaction for all of its targets, and never changed afterwards, so the\ndeployment log is the audit trail of what ran where.\n\nA target serves the release of the newest deployment that targeted it.\nAn older deployment stays in the history after a newer one replaces it on\nsome or all of its targets.\n')
|
|
9285
|
+
|
|
9286
|
+
|
|
9287
|
+
/**
|
|
9288
|
+
* Re-deploys the deployment named in the path: a new deployment with the
|
|
9289
|
+
* same `release_id` and the same `targets`, `reason: rollback`, and
|
|
9290
|
+
* `rollback_to` in its metadata naming the deployment it re-applied. The
|
|
9291
|
+
* variable values that deployment resolved are re-applied with it, so the
|
|
9292
|
+
* targets serve exactly what they served then. The history is append-only,
|
|
9293
|
+
* so the deployments in between stay in it.
|
|
9294
|
+
*
|
|
9295
|
+
* Only a deployment to primary origins can be rolled back. One whose
|
|
9296
|
+
* targets were preview URLs answers `400` with `dep.invalid`; deploy to
|
|
9297
|
+
* the preview again instead. Every target must still be a primary origin
|
|
9298
|
+
* of the project, as `POST /deployments` requires of an exact origin:
|
|
9299
|
+
* when one is not, the request answers `403` with
|
|
9300
|
+
* `proj.origin_not_allowed` naming it, and nothing changes. There is no
|
|
9301
|
+
* narrowing to some of the targets: to roll back one origin, deploy the
|
|
9302
|
+
* earlier release to it with `POST /deployments`.
|
|
9303
|
+
*
|
|
9304
|
+
* When every target already serves the deployment's release, nothing
|
|
9305
|
+
* changes and the call answers `200` with the newest deployment to the
|
|
9306
|
+
* targets.
|
|
9307
|
+
*
|
|
9308
|
+
* The release must not be revoked: a revoked one answers `409` with
|
|
9309
|
+
* `rel.revoked`. An unknown deployment id, or one of another project,
|
|
9310
|
+
* answers `404` with `dep.not_found`.
|
|
9311
|
+
*
|
|
9312
|
+
* A rollback never answers `dep.variables_missing`: the release and the
|
|
9313
|
+
* frozen values it re-applies passed that check together when the named
|
|
9314
|
+
* deployment was made.
|
|
9315
|
+
* @summary Roll back to a deployment
|
|
9316
|
+
*/
|
|
9317
|
+
export const rollbackDeploymentPathDeploymentIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
9318
|
+
|
|
9319
|
+
|
|
9320
|
+
export const RollbackDeploymentParams = zod.object({
|
|
9321
|
+
"deployment_id": zod.string().regex(rollbackDeploymentPathDeploymentIdRegExp).describe('The unique identifier of the deployment.')
|
|
9322
|
+
})
|
|
9323
|
+
|
|
9324
|
+
export const rollbackDeploymentQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9325
|
+
|
|
9326
|
+
|
|
9327
|
+
export const RollbackDeploymentQueryParams = zod.strictObject({
|
|
9328
|
+
"project_id": zod.string().regex(rollbackDeploymentQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
9329
|
+
})
|
|
9330
|
+
|
|
9331
|
+
export const rollbackDeploymentBodyMessageMax = 1024;
|
|
9332
|
+
|
|
9333
|
+
export const rollbackDeploymentBodyExpectedDeploymentIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
9334
|
+
|
|
9335
|
+
|
|
9336
|
+
export const RollbackDeploymentBody = zod.object({
|
|
9337
|
+
"message": zod.string().max(rollbackDeploymentBodyMessageMax).optional().describe('A short free-form summary of why the rollback happened. Recorded on\nthe new deployment\'s metadata.\n'),
|
|
9338
|
+
"expected_deployment_id": zod.string().regex(rollbackDeploymentBodyExpectedDeploymentIdRegExp).optional().describe('The opaque, immutable identifier of a deployment.')
|
|
9339
|
+
}).describe('What to record alongside the rollback. The release and the targets come\nfrom the deployment named in the path and cannot be changed here.\n')
|
|
9340
|
+
|
|
9341
|
+
export const rollbackDeploymentResponseIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
9342
|
+
export const rollbackDeploymentResponseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9343
|
+
export const rollbackDeploymentResponseReleaseIdRegExp = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
9344
|
+
export const rollbackDeploymentResponseTargetsItemOriginMax = 2048;
|
|
9345
|
+
|
|
9346
|
+
|
|
9347
|
+
export const rollbackDeploymentResponseTargetsItemOriginRegExp = new RegExp('^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$');
|
|
9348
|
+
|
|
9349
|
+
export const rollbackDeploymentResponseMetadataMessageOneMax = 1024;
|
|
9350
|
+
|
|
9351
|
+
export const rollbackDeploymentResponseMetadataRollbackToOneRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
9352
|
+
export const rollbackDeploymentResponseReleaseIdRegExpOne = new RegExp('^rel_[a-zA-Z0-9_-]+$');
|
|
9353
|
+
export const rollbackDeploymentResponseReleaseProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9354
|
+
export const rollbackDeploymentResponseReleaseContentHashMin = 71;
|
|
9355
|
+
export const rollbackDeploymentResponseReleaseContentHashMax = 71;
|
|
9356
|
+
|
|
9357
|
+
|
|
9358
|
+
export const rollbackDeploymentResponseReleaseContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
9359
|
+
export const rollbackDeploymentResponseReleaseMetadataMessageOneMax = 1024;
|
|
9360
|
+
|
|
9361
|
+
export const rollbackDeploymentResponseReleaseMetadataGitShaOneMax = 64;
|
|
9362
|
+
|
|
9363
|
+
export const rollbackDeploymentResponseReleaseMetadataGitDirtyDefault = false;
|
|
9364
|
+
export const rollbackDeploymentResponseReleasePointersItemHandleMax = 256;
|
|
9365
|
+
|
|
9366
|
+
export const rollbackDeploymentResponseReleasePointersItemRevisionIdMax = 512;
|
|
9367
|
+
|
|
9368
|
+
export const rollbackDeploymentResponseReleasePointersMax = 50;
|
|
9369
|
+
|
|
9370
|
+
|
|
9371
|
+
|
|
9372
|
+
export const RollbackDeploymentResponse = zod.object({
|
|
9373
|
+
"id": zod.string().regex(rollbackDeploymentResponseIdRegExp).describe('The opaque, immutable identifier of a deployment.'),
|
|
9374
|
+
"project_id": zod.string().regex(rollbackDeploymentResponseProjectIdRegExp),
|
|
9375
|
+
"release_id": zod.string().regex(rollbackDeploymentResponseReleaseIdRegExp).describe('The opaque, immutable identifier of a release.'),
|
|
9376
|
+
"targets": zod.array(zod.object({
|
|
9377
|
+
"origin": zod.string().max(rollbackDeploymentResponseTargetsItemOriginMax).regex(rollbackDeploymentResponseTargetsItemOriginRegExp).describe('A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme\'s default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n'),
|
|
9378
|
+
"expires_at": zod.iso.datetime({"offset":true}).optional().describe('Present only on a target that is a preview URL: the expiry this\ndeployment set for its preview. Fixed when the deployment is created,\nlike the rest of the record: a later deployment to the URL renews the\npreview and records its own expiry, and removing the preview or\nletting it expire leaves this value as it was. Absent on a primary\norigin, which does not expire.\n')
|
|
9379
|
+
}).describe('One origin a deployment made its release live on.')).min(1).describe('The origins this deployment made the release live on, as resolved when\nit was created: `primary` appears here as the origins it expanded to.\nSorted by origin.\n'),
|
|
9380
|
+
"deployed_at": zod.iso.datetime({"offset":true}).describe('When the deployment was created.'),
|
|
9381
|
+
"metadata": zod.object({
|
|
9382
|
+
"reason": zod.enum(['deploy', 'rollback']).describe('Why the deployment was created. Both are the same operation — a new\ndeployment making a release live on its targets — and the reason records\nthe caller\'s intent:\n\n- `deploy` — a release goes live on the targets.\n- `rollback` — a release the targets served earlier goes live again.\n `POST /deployments/{deployment_id}/rollback` records it, and so may\n `POST /deployments` when the caller picks the earlier release itself.\n'),
|
|
9383
|
+
"message": zod.union([zod.string().max(rollbackDeploymentResponseMetadataMessageOneMax),zod.null()]).optional().describe('The caller-supplied summary of why this deployment happened, analogous\nto a git commit message.\n'),
|
|
9384
|
+
"rollback_to": zod.union([zod.string().regex(rollbackDeploymentResponseMetadataRollbackToOneRegExp).describe('The opaque, immutable identifier of a deployment.'),zod.null()]).optional().describe('The deployment `POST /deployments/{deployment_id}/rollback` re-applied,\nwith its release and its targets. Null or absent for every other\ndeployment, including one created by `POST /deployments` with\n`reason: rollback`.\n'),
|
|
9385
|
+
"deployed_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that created the deployment. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case\nfor deployments made from CI.\n'),
|
|
9386
|
+
"deployed_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `deployed_by` names.')
|
|
9387
|
+
}).describe('Why the release went live and who made it happen. Set when the deployment\nis created and never mutated afterwards — enrichment of the record, while\nthe release, targets and timestamp on the deployment itself say what ran\nwhere and when.\n'),
|
|
9388
|
+
"release": zod.object({
|
|
9389
|
+
"id": zod.string().regex(rollbackDeploymentResponseReleaseIdRegExpOne).describe('The opaque, immutable identifier of a release.'),
|
|
9390
|
+
"project_id": zod.string().regex(rollbackDeploymentResponseReleaseProjectIdRegExp),
|
|
9391
|
+
"content_hash": zod.string().min(rollbackDeploymentResponseReleaseContentHashMin).max(rollbackDeploymentResponseReleaseContentHashMax).regex(rollbackDeploymentResponseReleaseContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
9392
|
+
"metadata": zod.object({
|
|
9393
|
+
"message": zod.union([zod.string().max(rollbackDeploymentResponseReleaseMetadataMessageOneMax),zod.null()]).optional().describe('A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n'),
|
|
9394
|
+
"git_sha": zod.union([zod.string().max(rollbackDeploymentResponseReleaseMetadataGitShaOneMax),zod.null()]).optional().describe('The source commit the caller was operating from. Recording it on both\nreleases is what lets two releases be diffed at field level in the\nsource repository they were built from.\n'),
|
|
9395
|
+
"git_dirty": zod.boolean().default(rollbackDeploymentResponseReleaseMetadataGitDirtyDefault).describe('True when the working tree had uncommitted changes at construction time.\n`git_sha` still points at HEAD, but the release content does not\ncorrespond to that commit exactly, so consumers of the git-diff mechanism\nshould skip it when either side is dirty.\n'),
|
|
9396
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the release was assembled.'),
|
|
9397
|
+
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases constructed from CI or the CLI.\n'),
|
|
9398
|
+
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.')
|
|
9399
|
+
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9400
|
+
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
9401
|
+
"pointers": zod.array(zod.object({
|
|
9402
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).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'),
|
|
9403
|
+
"handle": zod.string().min(1).max(rollbackDeploymentResponseReleasePointersItemHandleMax).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- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\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'),
|
|
9404
|
+
"revision_id": zod.string().min(1).max(rollbackDeploymentResponseReleasePointersItemRevisionIdMax).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')
|
|
9405
|
+
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(rollbackDeploymentResponseReleasePointersMax).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')
|
|
9406
|
+
}).optional().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 origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
9407
|
+
}).describe('An immutable record of a release being made live on a set of targets.\n\nDeploying and rolling back both create a deployment. The record is what\nran where and when — the release, the targets and the timestamp — plus\nmetadata saying why and who. It is append-only: written once, in one\ntransaction for all of its targets, and never changed afterwards, so the\ndeployment log is the audit trail of what ran where.\n\nA target serves the release of the newest deployment that targeted it.\nAn older deployment stays in the history after a newer one replaces it on\nsome or all of its targets.\n')
|
|
9408
|
+
|
|
9409
|
+
|
|
9410
|
+
/**
|
|
9411
|
+
* Returns the variable values the deployment froze when it was made. Later
|
|
9412
|
+
* changes to the project's variables do not affect them. A secret reads
|
|
9413
|
+
* back as `{"secret": true}`.
|
|
9414
|
+
* @summary Get a deployment's variables
|
|
9415
|
+
*/
|
|
9416
|
+
export const getDeploymentVariablesPathDeploymentIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
9417
|
+
|
|
9418
|
+
|
|
9419
|
+
export const GetDeploymentVariablesParams = zod.object({
|
|
9420
|
+
"deployment_id": zod.string().regex(getDeploymentVariablesPathDeploymentIdRegExp).describe('The unique identifier of the deployment.')
|
|
9421
|
+
})
|
|
9422
|
+
|
|
9423
|
+
export const getDeploymentVariablesQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9424
|
+
|
|
9425
|
+
|
|
9426
|
+
export const GetDeploymentVariablesQueryParams = zod.strictObject({
|
|
9427
|
+
"project_id": zod.string().regex(getDeploymentVariablesQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
9428
|
+
})
|
|
9429
|
+
|
|
9430
|
+
export const getDeploymentVariablesResponseOneOneMax = 16384;
|
|
9431
|
+
|
|
9432
|
+
|
|
9433
|
+
|
|
9434
|
+
export const GetDeploymentVariablesResponse = zod.record(zod.string(), zod.union([zod.union([zod.string().max(getDeploymentVariablesResponseOneOneMax),zod.number(),zod.boolean()]).describe('A variable\'s value. JSON scalars only — a string, a number, or a boolean.\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.\n'),zod.object({
|
|
9435
|
+
"secret": zod.literal(true).describe('Always `true`. A non-secret variable is returned as a bare scalar instead.')
|
|
9436
|
+
}).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.\n\nSecrets are still usable without being readable: a configuration document\nreferencing `${{ NAME }}` resolves against the decrypted value when it is\nserved.\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 a deployment froze, keyed by name.\n\nAn empty object is an ordinary answer, not an error.\n')
|
|
8197
9437
|
|
|
8198
9438
|
|