@zitadel/api 1.0.0-alpha.22 → 1.0.0-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fetch-DEQBdRAE.d.mts +44 -0
- package/dist/fetch-DEQBdRAE.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +1128 -458
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +35 -7
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +4286 -1990
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +3716 -818
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +3603 -852
- 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 +792 -87
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/index-DCCtHY7q.d.mts +34169 -0
- package/dist/index-DCCtHY7q.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/fetch.d.mts +2 -44
- package/dist/zitadelNextGen-NzRGHVHl.d.mts +894 -0
- package/dist/zitadelNextGen-NzRGHVHl.d.mts.map +1 -0
- package/package.json +5 -3
- package/src/generated/endpoints/zitadelNextGen.faker.ts +12297 -0
- package/src/generated/endpoints/zitadelNextGen.msw.ts +536 -10060
- package/src/generated/endpoints/zitadelNextGen.ts +1761 -533
- package/src/generated/endpoints/zitadelNextGen.zod.ts +14429 -6012
- package/src/generated/model/beginUserPasskeyRegistration201.ts +8 -6
- package/src/generated/model/beginUserPasskeyRegistration201Options.ts +2 -3
- package/src/generated/model/beginUserPasskeyRegistration400.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration400Details.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration401.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration401Details.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration403.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration403Details.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration404.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration404Details.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration500.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistration500Details.ts +1 -1
- package/src/generated/model/beginUserPasskeyRegistrationBody.ts +7 -7
- package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +1 -1
- package/src/generated/model/completeClaim200.ts +1 -1
- package/src/generated/model/completeClaim400.ts +1 -1
- package/src/generated/model/completeClaim400Details.ts +1 -1
- package/src/generated/model/completeClaim401.ts +3 -4
- package/src/generated/model/completeClaim403.ts +1 -1
- package/src/generated/model/completeClaim404.ts +1 -1
- package/src/generated/model/completeClaim404Details.ts +1 -1
- package/src/generated/model/completeClaim409.ts +2 -3
- package/src/generated/model/completeClaim409Details.ts +1 -1
- package/src/generated/model/completeClaim410.ts +1 -1
- package/src/generated/model/completeClaim429.ts +1 -1
- package/src/generated/model/completeClaim429Details.ts +1 -1
- package/src/generated/model/completeClaimBody.ts +1 -1
- package/src/generated/model/completeClaimDefault.ts +1 -1
- package/src/generated/model/completeClaimDefaultDetails.ts +1 -1
- package/src/generated/model/createAuthAttempt201.ts +36 -31
- package/src/generated/model/createAuthAttempt201ChallengesItem.ts +14 -13
- package/src/generated/model/createAuthAttempt201ChallengesItemMethod.ts +1 -1
- package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +8 -8
- package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +4 -5
- package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +7 -7
- package/src/generated/model/createAuthAttempt201CompletedFactorsItemMethod.ts +1 -1
- package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +12 -6
- package/src/generated/model/createAuthAttempt201RequiredFactorsItem.ts +1 -1
- package/src/generated/model/createAuthAttempt201State.ts +5 -6
- package/src/generated/model/createAuthAttemptBody.ts +8 -6
- package/src/generated/model/createAuthAttemptDefault.ts +1 -1
- package/src/generated/model/createBranding201.ts +13 -12
- package/src/generated/model/createBranding201Branding.ts +59 -30
- package/src/generated/model/createBranding201BrandingLayout.ts +10 -6
- package/src/generated/model/createBranding201BrandingShape.ts +30 -0
- package/src/generated/model/createBranding201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/createBranding201BrandingTheme.ts +43 -0
- package/src/generated/model/createBranding201BrandingThemeDark.ts +34 -0
- package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/createBranding201BrandingThemeLight.ts +34 -0
- package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/createBranding201BrandingThemeMode.ts +19 -0
- package/src/generated/model/createBranding201BrandingTypography.ts +47 -0
- package/src/generated/model/createBranding400.ts +1 -1
- package/src/generated/model/createBranding400Details.ts +1 -1
- package/src/generated/model/createBrandingBody.ts +59 -30
- package/src/generated/model/createBrandingBodyLayout.ts +10 -6
- package/src/generated/model/createBrandingBodyShape.ts +30 -0
- package/src/generated/model/createBrandingBodyShapeDensity.ts +19 -0
- package/src/generated/model/createBrandingBodyTheme.ts +43 -0
- package/src/generated/model/createBrandingBodyThemeDark.ts +34 -0
- package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +209 -0
- package/src/generated/model/createBrandingBodyThemeLight.ts +34 -0
- package/src/generated/model/createBrandingBodyThemeLightPalette.ts +209 -0
- package/src/generated/model/createBrandingBodyThemeMode.ts +19 -0
- package/src/generated/model/createBrandingBodyTypography.ts +47 -0
- package/src/generated/model/createBrandingDefault.ts +1 -1
- package/src/generated/model/createBrandingDefaultDetails.ts +1 -1
- package/src/generated/model/createBrandingParams.ts +1 -1
- package/src/generated/model/createDeployment200.ts +62 -0
- package/src/generated/model/createDeployment200Metadata.ts +58 -0
- package/src/generated/model/createDeployment200MetadataDeployedByType.ts +21 -0
- package/src/generated/model/createDeployment200MetadataReason.ts +26 -0
- package/src/generated/model/createDeployment200Release.ts +44 -0
- package/src/generated/model/createDeployment200ReleaseMetadata.ts +43 -0
- package/src/generated/model/createDeployment200ReleaseMetadataCreatedByType.ts +21 -0
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +56 -0
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +26 -0
- package/src/generated/model/createDeployment201.ts +62 -0
- package/src/generated/model/createDeployment201Metadata.ts +58 -0
- package/src/generated/model/createDeployment201MetadataDeployedByType.ts +21 -0
- package/src/generated/model/createDeployment201MetadataReason.ts +26 -0
- package/src/generated/model/createDeployment201Release.ts +44 -0
- package/src/generated/model/createDeployment201ReleaseMetadata.ts +43 -0
- package/src/generated/model/createDeployment201ReleaseMetadataCreatedByType.ts +21 -0
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +56 -0
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +26 -0
- package/src/generated/model/createDeploymentBody.ts +71 -0
- package/src/generated/model/createDeploymentBodyReason.ts +26 -0
- package/src/generated/model/createDeploymentDefault.ts +109 -0
- package/src/generated/model/createDeploymentParams.ts +15 -0
- package/src/generated/model/createFlow201.ts +27 -21
- package/src/generated/model/createFlow201Branding.ts +59 -30
- package/src/generated/model/createFlow201BrandingLayout.ts +10 -6
- package/src/generated/model/createFlow201BrandingShape.ts +30 -0
- package/src/generated/model/createFlow201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/createFlow201BrandingTheme.ts +43 -0
- package/src/generated/model/createFlow201BrandingThemeDark.ts +34 -0
- package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/createFlow201BrandingThemeLight.ts +34 -0
- package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/createFlow201BrandingThemeMode.ts +19 -0
- package/src/generated/model/createFlow201BrandingTypography.ts +47 -0
- package/src/generated/model/createFlow201Step.ts +42 -36
- package/src/generated/model/createFlow201StepActionsItem.ts +22 -23
- package/src/generated/model/createFlow201StepActionsItemKind.ts +8 -12
- package/src/generated/model/createFlow201StepChallenge.ts +15 -14
- package/src/generated/model/createFlow201StepChallengeMethod.ts +1 -1
- package/src/generated/model/createFlow201StepChallengeOptions.ts +4 -5
- package/src/generated/model/createFlow201StepComplete.ts +3 -4
- package/src/generated/model/createFlow201StepFieldsItem.ts +23 -20
- package/src/generated/model/createFlow201StepFieldsItemType.ts +5 -6
- package/src/generated/model/createFlow201StepFieldsItemValidation.ts +19 -18
- package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +5 -6
- package/src/generated/model/createFlow201StepGates.ts +17 -15
- package/src/generated/model/createFlow201StepGatesConfig.ts +2 -3
- package/src/generated/model/createFlow201StepGatesKind.ts +3 -4
- package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/createFlow201StepTexts.ts +2 -3
- package/src/generated/model/createFlow400.ts +1 -1
- package/src/generated/model/createFlow400Details.ts +1 -1
- package/src/generated/model/createFlowBody.ts +21 -20
- package/src/generated/model/createFlowBodyHint.ts +1 -1
- package/src/generated/model/createFlowBodyPurpose.ts +1 -1
- package/src/generated/model/createFlowDefault.ts +1 -1
- package/src/generated/model/createFlowDefinition201.ts +15 -13
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +43 -44
- package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +4 -5
- package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +6 -9
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +54 -40
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +28 -23
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +11 -13
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemComplete.ts +3 -4
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +18 -16
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +2 -3
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +3 -4
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +4 -5
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +35 -31
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +26 -0
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +31 -0
- package/src/generated/model/createFlowDefinition201UserSchema.ts +11 -88
- package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +12 -0
- package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +99 -0
- package/src/generated/model/createFlowDefinition400.ts +1 -1
- package/src/generated/model/createFlowDefinition400Details.ts +1 -1
- package/src/generated/model/createFlowDefinitionBody.ts +16 -15
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +43 -44
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +4 -5
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +6 -9
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +54 -40
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +28 -23
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +11 -13
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +3 -4
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +18 -16
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +2 -3
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +3 -4
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +4 -5
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +35 -31
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +26 -0
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +31 -0
- package/src/generated/model/createFlowDefinitionDefault.ts +11 -1
- package/src/generated/model/createGrant201.ts +18 -35
- package/src/generated/model/createGrant201ObjectType.ts +1 -1
- package/src/generated/model/createGrant201Relation.ts +1 -1
- package/src/generated/model/createGrant201Team.ts +18 -7
- package/src/generated/model/createGrant201TeamStatus.ts +21 -0
- package/src/generated/model/createGrant201User.ts +33 -19
- package/src/generated/model/createGrant201UserAttributes.ts +13 -0
- package/src/generated/model/createGrant201UserMetadata.ts +45 -0
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +44 -0
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/createGrant201UserMetadataStatus.ts +20 -0
- package/src/generated/model/createGrant400.ts +1 -1
- package/src/generated/model/createGrant400Details.ts +1 -1
- package/src/generated/model/createGrant401.ts +1 -1
- package/src/generated/model/createGrant401Details.ts +1 -1
- package/src/generated/model/createGrant403.ts +1 -1
- package/src/generated/model/createGrant403Details.ts +1 -1
- package/src/generated/model/createGrant404.ts +1 -1
- package/src/generated/model/createGrant404Details.ts +1 -1
- package/src/generated/model/createGrant409.ts +1 -1
- package/src/generated/model/createGrant409Details.ts +1 -1
- package/src/generated/model/createGrant429.ts +1 -1
- package/src/generated/model/createGrant429Details.ts +1 -1
- package/src/generated/model/createGrantBody.ts +24 -14
- package/src/generated/model/createGrantBodyRelation.ts +1 -1
- package/src/generated/model/createGrantBodyTeam.ts +23 -0
- package/src/generated/model/createGrantBodyUser.ts +27 -0
- package/src/generated/model/createGrantDefault.ts +1 -1
- package/src/generated/model/createGrantParams.ts +1 -1
- package/src/generated/model/createHandoff200.ts +15 -15
- package/src/generated/model/createHandoffDefault.ts +1 -1
- package/src/generated/model/createIdp200.ts +38 -0
- package/src/generated/model/createIdp200Definition.ts +47 -0
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOauth2.ts +55 -0
- package/src/generated/model/createIdp200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp200DefinitionOidc.ts +65 -0
- package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp200DefinitionProtocol.ts +18 -0
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/createIdp201.ts +38 -0
- package/src/generated/model/createIdp201Definition.ts +47 -0
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOauth2.ts +55 -0
- package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp201DefinitionOidc.ts +65 -0
- package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp201DefinitionProtocol.ts +18 -0
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +15 -0
- package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/{createSchema400.ts → createIdp400.ts} +4 -4
- package/src/generated/model/{createSchema409Details.ts → createIdp400Details.ts} +2 -2
- package/src/generated/model/{createSchema409.ts → createIdp401.ts} +4 -4
- package/src/generated/model/{createSchema400Details.ts → createIdp401Details.ts} +2 -2
- package/src/generated/model/createIdp403.ts +20 -0
- package/src/generated/model/createIdp403Details.ts +12 -0
- package/src/generated/model/createIdp404.ts +20 -0
- package/src/generated/model/createIdp404Details.ts +12 -0
- package/src/generated/model/createIdpBody.ts +15 -0
- package/src/generated/model/createIdpBodyIdp.ts +47 -0
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOauth2.ts +55 -0
- package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdpBodyIdpOidc.ts +65 -0
- package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdpBodyIdpProtocol.ts +18 -0
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +15 -0
- package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +12 -0
- package/src/generated/model/{deleteFlowDefinitionDefault.ts → createIdpDefault.ts} +7 -7
- package/src/generated/model/createIdpParams.ts +15 -0
- package/src/generated/model/createProject201.ts +4 -7
- package/src/generated/model/createProject429.ts +1 -1
- package/src/generated/model/createProject429Details.ts +1 -1
- package/src/generated/model/createProjectBody.ts +6 -6
- package/src/generated/model/createProjectDefault.ts +1 -1
- package/src/generated/model/createRelease200.ts +19 -18
- package/src/generated/model/createRelease200Metadata.ts +20 -16
- package/src/generated/model/createRelease200MetadataCreatedByType.ts +21 -0
- package/src/generated/model/createRelease200PointersItem.ts +37 -39
- package/src/generated/model/createRelease200PointersItemKind.ts +8 -9
- package/src/generated/model/createRelease201.ts +19 -18
- package/src/generated/model/createRelease201Metadata.ts +20 -16
- package/src/generated/model/createRelease201MetadataCreatedByType.ts +21 -0
- package/src/generated/model/createRelease201PointersItem.ts +37 -39
- package/src/generated/model/createRelease201PointersItemKind.ts +8 -9
- package/src/generated/model/createReleaseBody.ts +30 -24
- package/src/generated/model/createReleaseBodyPointersItem.ts +21 -22
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +8 -9
- package/src/generated/model/createReleaseDefault.ts +71 -1
- package/src/generated/model/createReleaseParams.ts +1 -1
- package/src/generated/model/createSchema201.ts +1 -1
- package/src/generated/model/createSchemaBody.ts +43 -32
- package/src/generated/model/createSchemaDefault.ts +142 -13
- package/src/generated/model/createSchemaParams.ts +1 -1
- package/src/generated/model/createSession201.ts +13 -12
- package/src/generated/model/createSession201Session.ts +34 -29
- package/src/generated/model/createSession201SessionFactorsItem.ts +7 -7
- package/src/generated/model/createSession201SessionFactorsItemMethod.ts +1 -1
- package/src/generated/model/createSession201SessionFactorsItemPayload.ts +12 -6
- package/src/generated/model/createSession201SessionMetadata.ts +1 -1
- package/src/generated/model/createSession201SessionState.ts +4 -5
- package/src/generated/model/createSession201SessionUser.ts +20 -18
- package/src/generated/model/createSession201SessionUserAgent.ts +1 -1
- package/src/generated/model/createSession400.ts +1 -1
- package/src/generated/model/createSession400Details.ts +1 -1
- package/src/generated/model/createSessionBody.ts +5 -4
- package/src/generated/model/createSessionBodyUserAgent.ts +3 -4
- package/src/generated/model/createSessionDefault.ts +1 -1
- package/src/generated/model/createTeam201.ts +6 -5
- package/src/generated/model/createTeam201Status.ts +4 -5
- package/src/generated/model/createTeam400.ts +1 -1
- package/src/generated/model/createTeam400Details.ts +1 -1
- package/src/generated/model/createTeam401.ts +1 -1
- package/src/generated/model/createTeam401Details.ts +1 -1
- package/src/generated/model/createTeam403.ts +1 -1
- package/src/generated/model/createTeam403Details.ts +1 -1
- package/src/generated/model/createTeam404.ts +1 -1
- package/src/generated/model/createTeam404Details.ts +1 -1
- package/src/generated/model/createTeam409.ts +1 -1
- package/src/generated/model/createTeam409Details.ts +1 -1
- package/src/generated/model/createTeam429.ts +1 -1
- package/src/generated/model/createTeam429Details.ts +1 -1
- package/src/generated/model/createTeamBody.ts +1 -1
- package/src/generated/model/createTeamDefault.ts +1 -1
- package/src/generated/model/createTeamDefaultDetails.ts +1 -1
- package/src/generated/model/createTeamParams.ts +1 -1
- package/src/generated/model/createUser201.ts +45 -39
- package/src/generated/model/createUser201Attributes.ts +2 -3
- package/src/generated/model/createUser201Metadata.ts +24 -22
- package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +23 -22
- package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/createUser201MetadataStatus.ts +1 -1
- package/src/generated/model/createUser201TeamsItem.ts +10 -10
- package/src/generated/model/createUser201TeamsItemMembershipStatus.ts +2 -3
- package/src/generated/model/createUser400.ts +1 -1
- package/src/generated/model/createUser400Details.ts +1 -1
- package/src/generated/model/createUser401.ts +1 -1
- package/src/generated/model/createUser401Details.ts +1 -1
- package/src/generated/model/createUser403.ts +1 -1
- package/src/generated/model/createUser403Details.ts +1 -1
- package/src/generated/model/createUser409.ts +1 -1
- package/src/generated/model/createUser409Details.ts +1 -1
- package/src/generated/model/createUser500.ts +1 -1
- package/src/generated/model/createUser500Details.ts +1 -1
- package/src/generated/model/createUserBody.ts +18 -19
- package/src/generated/model/createUserBodyAttributes.ts +2 -3
- package/src/generated/model/createUserDefault.ts +1 -1
- package/src/generated/model/createUserParams.ts +15 -16
- package/src/generated/model/deleteGrant401.ts +1 -1
- package/src/generated/model/deleteGrant401Details.ts +1 -1
- package/src/generated/model/deleteGrant403.ts +1 -1
- package/src/generated/model/deleteGrant403Details.ts +1 -1
- package/src/generated/model/deleteGrant404.ts +1 -1
- package/src/generated/model/deleteGrant404Details.ts +1 -1
- package/src/generated/model/deleteGrantDefault.ts +1 -1
- package/src/generated/model/deleteGrantParams.ts +1 -1
- package/src/generated/model/deleteTeam400.ts +1 -1
- package/src/generated/model/deleteTeam400Details.ts +1 -1
- package/src/generated/model/deleteTeam401.ts +1 -1
- package/src/generated/model/deleteTeam401Details.ts +1 -1
- package/src/generated/model/deleteTeam403.ts +1 -1
- package/src/generated/model/deleteTeam403Details.ts +1 -1
- package/src/generated/model/deleteTeam409.ts +20 -0
- package/src/generated/model/deleteTeam409Details.ts +12 -0
- package/src/generated/model/deleteTeamDefault.ts +1 -1
- package/src/generated/model/deleteTeamDefaultDetails.ts +1 -1
- package/src/generated/model/deleteUserByID401.ts +1 -1
- package/src/generated/model/deleteUserByID401Details.ts +1 -1
- package/src/generated/model/deleteUserByID404.ts +1 -1
- package/src/generated/model/deleteUserByID404Details.ts +1 -1
- package/src/generated/model/deleteUserByIDDefault.ts +1 -1
- package/src/generated/model/deleteVariableDefault.ts +69 -0
- package/src/generated/model/deleteVariableParams.ts +25 -0
- package/src/generated/model/exchangeHandoff200.ts +13 -12
- package/src/generated/model/exchangeHandoff200Session.ts +34 -29
- package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +7 -7
- package/src/generated/model/exchangeHandoff200SessionFactorsItemMethod.ts +1 -1
- package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +12 -6
- package/src/generated/model/exchangeHandoff200SessionMetadata.ts +1 -1
- package/src/generated/model/exchangeHandoff200SessionState.ts +4 -5
- package/src/generated/model/exchangeHandoff200SessionUser.ts +20 -18
- package/src/generated/model/exchangeHandoff200SessionUserAgent.ts +1 -1
- package/src/generated/model/exchangeHandoff400.ts +1 -1
- package/src/generated/model/exchangeHandoff400Details.ts +1 -1
- package/src/generated/model/exchangeHandoff401.ts +1 -1
- package/src/generated/model/exchangeHandoff401Details.ts +1 -1
- package/src/generated/model/exchangeHandoff410.ts +1 -1
- package/src/generated/model/exchangeHandoff410Details.ts +1 -1
- package/src/generated/model/exchangeHandoffBody.ts +7 -5
- package/src/generated/model/exchangeHandoffDefault.ts +1 -1
- package/src/generated/model/exchangeHandoffParams.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration201.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration400.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration400Details.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration401.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration401Details.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration403.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration403Details.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration404.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration404Details.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration500.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistration500Details.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistrationBody.ts +4 -3
- package/src/generated/model/finishUserPasskeyRegistrationBodyAttestation.ts +1 -1
- package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +1 -1
- package/src/generated/model/getAuthAttempt200.ts +36 -31
- package/src/generated/model/getAuthAttempt200ChallengesItem.ts +14 -13
- package/src/generated/model/getAuthAttempt200ChallengesItemMethod.ts +1 -1
- package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +8 -8
- package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +4 -5
- package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +7 -7
- package/src/generated/model/getAuthAttempt200CompletedFactorsItemMethod.ts +1 -1
- package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +12 -6
- package/src/generated/model/getAuthAttempt200RequiredFactorsItem.ts +1 -1
- package/src/generated/model/getAuthAttempt200State.ts +5 -6
- package/src/generated/model/getAuthAttemptDefault.ts +1 -1
- package/src/generated/model/getBrandingById200.ts +13 -12
- package/src/generated/model/getBrandingById200Branding.ts +59 -30
- package/src/generated/model/getBrandingById200BrandingLayout.ts +10 -6
- package/src/generated/model/getBrandingById200BrandingShape.ts +30 -0
- package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getBrandingById200BrandingTheme.ts +43 -0
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +34 -0
- package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +34 -0
- package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/getBrandingById200BrandingThemeMode.ts +19 -0
- package/src/generated/model/getBrandingById200BrandingTypography.ts +47 -0
- package/src/generated/model/getBrandingById404.ts +1 -1
- package/src/generated/model/getBrandingById404Details.ts +1 -1
- package/src/generated/model/getBrandingByIdDefault.ts +1 -1
- package/src/generated/model/getBrandingByIdDefaultDetails.ts +1 -1
- package/src/generated/model/getClaimStatus200.ts +5 -6
- package/src/generated/model/getClaimStatus401.ts +1 -1
- package/src/generated/model/getClaimStatus401Details.ts +1 -1
- package/src/generated/model/getClaimStatus403.ts +3 -4
- package/src/generated/model/getClaimStatus404.ts +1 -1
- package/src/generated/model/getClaimStatus404Details.ts +1 -1
- package/src/generated/model/getClaimStatus410.ts +1 -1
- package/src/generated/model/getClaimStatus429.ts +1 -1
- package/src/generated/model/getClaimStatus429Details.ts +1 -1
- package/src/generated/model/getClaimStatusDefault.ts +1 -1
- package/src/generated/model/getClaimStatusDefaultDetails.ts +1 -1
- package/src/generated/model/getClaimStatusParams.ts +1 -1
- package/src/generated/model/getClaimWindow200.ts +7 -7
- package/src/generated/model/getClaimWindow404.ts +1 -1
- package/src/generated/model/getClaimWindow404Details.ts +1 -1
- package/src/generated/model/getClaimWindow429.ts +1 -1
- package/src/generated/model/getClaimWindow429Details.ts +1 -1
- package/src/generated/model/getClaimWindowDefault.ts +1 -1
- package/src/generated/model/getClaimWindowDefaultDetails.ts +1 -1
- package/src/generated/model/getClaimWindowParams.ts +1 -1
- package/src/generated/model/getDeploymentById200.ts +62 -0
- package/src/generated/model/getDeploymentById200Metadata.ts +58 -0
- package/src/generated/model/getDeploymentById200MetadataDeployedByType.ts +21 -0
- package/src/generated/model/getDeploymentById200MetadataReason.ts +26 -0
- package/src/generated/model/getDeploymentById200Release.ts +44 -0
- package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +43 -0
- package/src/generated/model/getDeploymentById200ReleaseMetadataCreatedByType.ts +21 -0
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +56 -0
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +26 -0
- package/src/generated/model/getDeploymentByIdDefault.ts +59 -0
- package/src/generated/model/getDeploymentByIdParams.ts +15 -0
- package/src/generated/model/getEnvironmentByName200.ts +21 -17
- package/src/generated/model/getEnvironmentByName200CurrentDeployment.ts +38 -0
- package/src/generated/model/getEnvironmentByName200CurrentDeploymentReason.ts +26 -0
- package/src/generated/model/getEnvironmentByNameDefault.ts +1 -1
- package/src/generated/model/getEnvironmentByNameParams.ts +1 -1
- package/src/generated/model/getEvent200.ts +667 -273
- package/src/generated/model/getEvent401.ts +1 -1
- package/src/generated/model/getEvent401Details.ts +1 -1
- package/src/generated/model/getEvent403.ts +1 -1
- package/src/generated/model/getEvent403Details.ts +1 -1
- package/src/generated/model/getEvent404.ts +1 -1
- package/src/generated/model/getEvent404Details.ts +1 -1
- package/src/generated/model/getEventDefault.ts +1 -1
- package/src/generated/model/getEventDefaultDetails.ts +1 -1
- package/src/generated/model/getEventParams.ts +1 -1
- package/src/generated/model/getFlowDefinition200.ts +15 -13
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +43 -44
- package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +4 -5
- package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +6 -9
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +54 -40
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +28 -23
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +11 -13
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemComplete.ts +3 -4
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +18 -16
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +2 -3
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +3 -4
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +4 -5
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +35 -31
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +26 -0
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +31 -0
- package/src/generated/model/getFlowDefinition200UserSchema.ts +11 -88
- package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +12 -0
- package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +99 -0
- package/src/generated/model/getFlowDefinitionDefault.ts +1 -1
- package/src/generated/model/getFlowStep200.ts +27 -21
- package/src/generated/model/getFlowStep200Branding.ts +59 -30
- package/src/generated/model/getFlowStep200BrandingLayout.ts +10 -6
- package/src/generated/model/getFlowStep200BrandingShape.ts +30 -0
- package/src/generated/model/getFlowStep200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getFlowStep200BrandingTheme.ts +43 -0
- package/src/generated/model/getFlowStep200BrandingThemeDark.ts +34 -0
- package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/getFlowStep200BrandingThemeLight.ts +34 -0
- package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/getFlowStep200BrandingThemeMode.ts +19 -0
- package/src/generated/model/getFlowStep200BrandingTypography.ts +47 -0
- package/src/generated/model/getFlowStep200Step.ts +42 -36
- package/src/generated/model/getFlowStep200StepActionsItem.ts +22 -23
- package/src/generated/model/getFlowStep200StepActionsItemKind.ts +8 -12
- package/src/generated/model/getFlowStep200StepChallenge.ts +15 -14
- package/src/generated/model/getFlowStep200StepChallengeMethod.ts +1 -1
- package/src/generated/model/getFlowStep200StepChallengeOptions.ts +4 -5
- package/src/generated/model/getFlowStep200StepComplete.ts +3 -4
- package/src/generated/model/getFlowStep200StepFieldsItem.ts +23 -20
- package/src/generated/model/getFlowStep200StepFieldsItemType.ts +5 -6
- package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +19 -18
- package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +5 -6
- package/src/generated/model/getFlowStep200StepGates.ts +17 -15
- package/src/generated/model/getFlowStep200StepGatesConfig.ts +2 -3
- package/src/generated/model/getFlowStep200StepGatesKind.ts +3 -4
- package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/getFlowStep200StepTexts.ts +2 -3
- package/src/generated/model/getFlowStep404.ts +1 -1
- package/src/generated/model/getFlowStep404Details.ts +1 -1
- package/src/generated/model/getFlowStep410.ts +1 -1
- package/src/generated/model/getFlowStep410Details.ts +1 -1
- package/src/generated/model/getFlowStepDefault.ts +1 -1
- package/src/generated/model/getGrant200.ts +18 -35
- package/src/generated/model/getGrant200ObjectType.ts +1 -1
- package/src/generated/model/getGrant200Relation.ts +1 -1
- package/src/generated/model/getGrant200Team.ts +18 -7
- package/src/generated/model/getGrant200TeamStatus.ts +21 -0
- package/src/generated/model/getGrant200User.ts +33 -19
- package/src/generated/model/getGrant200UserAttributes.ts +13 -0
- package/src/generated/model/getGrant200UserMetadata.ts +45 -0
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +44 -0
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/getGrant200UserMetadataStatus.ts +20 -0
- package/src/generated/model/getGrant401.ts +1 -1
- package/src/generated/model/getGrant401Details.ts +1 -1
- package/src/generated/model/getGrant403.ts +1 -1
- package/src/generated/model/getGrant403Details.ts +1 -1
- package/src/generated/model/getGrant404.ts +1 -1
- package/src/generated/model/getGrant404Details.ts +1 -1
- package/src/generated/model/getGrantDefault.ts +21 -1
- package/src/generated/model/getGrantExpandItem.ts +28 -0
- package/src/generated/model/getGrantParams.ts +7 -1
- package/src/generated/model/getHealth4xx.ts +1 -1
- package/src/generated/model/getHealth4xxDetails.ts +1 -1
- package/src/generated/model/getHealthDefault.ts +1 -1
- package/src/generated/model/getHealthDefaultDetails.ts +1 -1
- package/src/generated/model/getIdpById200.ts +38 -0
- package/src/generated/model/getIdpById200Definition.ts +47 -0
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOauth2.ts +55 -0
- package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionOidc.ts +65 -0
- package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionProtocol.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpById401.ts +20 -0
- package/src/generated/model/getIdpById401Details.ts +12 -0
- package/src/generated/model/getIdpById403.ts +20 -0
- package/src/generated/model/getIdpById403Details.ts +12 -0
- package/src/generated/model/getIdpById404.ts +20 -0
- package/src/generated/model/getIdpById404Details.ts +12 -0
- package/src/generated/model/getIdpByIdDefault.ts +59 -0
- package/src/generated/model/getIdpByIdParams.ts +15 -0
- package/src/generated/model/getIdpRevisionById200.ts +38 -0
- package/src/generated/model/getIdpRevisionById200Definition.ts +47 -0
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +55 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +65 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpRevisionById401.ts +20 -0
- package/src/generated/model/getIdpRevisionById401Details.ts +12 -0
- package/src/generated/model/getIdpRevisionById403.ts +20 -0
- package/src/generated/model/getIdpRevisionById403Details.ts +12 -0
- package/src/generated/model/getIdpRevisionById404.ts +20 -0
- package/src/generated/model/getIdpRevisionById404Details.ts +12 -0
- package/src/generated/model/getIdpRevisionByIdDefault.ts +59 -0
- package/src/generated/model/getIdpRevisionByIdParams.ts +15 -0
- package/src/generated/model/getLive4xx.ts +1 -1
- package/src/generated/model/getLive4xxDetails.ts +1 -1
- package/src/generated/model/getLiveDefault.ts +1 -1
- package/src/generated/model/getLiveDefaultDetails.ts +1 -1
- package/src/generated/model/getMySession200.ts +34 -29
- package/src/generated/model/getMySession200FactorsItem.ts +7 -7
- package/src/generated/model/getMySession200FactorsItemMethod.ts +1 -1
- package/src/generated/model/getMySession200FactorsItemPayload.ts +12 -6
- package/src/generated/model/getMySession200Metadata.ts +1 -1
- package/src/generated/model/getMySession200State.ts +4 -5
- package/src/generated/model/getMySession200User.ts +20 -18
- package/src/generated/model/getMySession200UserAgent.ts +1 -1
- package/src/generated/model/getMySession401.ts +3 -4
- package/src/generated/model/getMySession404.ts +3 -4
- package/src/generated/model/getMySessionDefault.ts +1 -1
- package/src/generated/model/getMyUser200.ts +45 -39
- package/src/generated/model/getMyUser200Attributes.ts +2 -3
- package/src/generated/model/getMyUser200Metadata.ts +24 -22
- package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +23 -22
- package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/getMyUser200MetadataStatus.ts +1 -1
- package/src/generated/model/getMyUser200TeamsItem.ts +10 -10
- package/src/generated/model/getMyUser200TeamsItemMembershipStatus.ts +2 -3
- package/src/generated/model/getMyUser401.ts +1 -1
- package/src/generated/model/getMyUser401Details.ts +1 -1
- package/src/generated/model/getMyUser404.ts +3 -4
- package/src/generated/model/getMyUserDefault.ts +1 -1
- package/src/generated/model/getProject200.ts +8 -3
- package/src/generated/model/getProject200PasswordHash.ts +42 -0
- package/src/generated/model/getProject200PasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/getProject200PasswordHashParams.ts +47 -0
- package/src/generated/model/getProject200PasswordHashParamsHash.ts +24 -0
- package/src/generated/model/getProject401.ts +1 -1
- package/src/generated/model/getProject401Details.ts +1 -1
- package/src/generated/model/getProject404.ts +1 -1
- package/src/generated/model/getProject404Details.ts +1 -1
- package/src/generated/model/getProjectDefault.ts +1 -1
- package/src/generated/model/getReady4xx.ts +1 -1
- package/src/generated/model/getReady4xxDetails.ts +1 -1
- package/src/generated/model/getReadyDefault.ts +1 -1
- package/src/generated/model/getReadyDefaultDetails.ts +1 -1
- package/src/generated/model/getReleaseById200.ts +19 -18
- package/src/generated/model/getReleaseById200Metadata.ts +20 -16
- package/src/generated/model/getReleaseById200MetadataCreatedByType.ts +21 -0
- package/src/generated/model/getReleaseById200PointersItem.ts +37 -39
- package/src/generated/model/getReleaseById200PointersItemKind.ts +8 -9
- package/src/generated/model/getReleaseByIdDefault.ts +21 -1
- package/src/generated/model/getReleaseByIdParams.ts +1 -1
- package/src/generated/model/getSchemaById200.ts +12 -12
- package/src/generated/model/getSchemaById200Metadata.ts +1 -1
- package/src/generated/model/getSchemaById200Schema.ts +42 -31
- package/src/generated/model/getSchemaByIdDefault.ts +52 -13
- package/src/generated/model/getSchemaByIdParams.ts +7 -1
- package/src/generated/model/getSession200.ts +34 -29
- package/src/generated/model/getSession200FactorsItem.ts +7 -7
- package/src/generated/model/getSession200FactorsItemMethod.ts +1 -1
- package/src/generated/model/getSession200FactorsItemPayload.ts +12 -6
- package/src/generated/model/getSession200Metadata.ts +1 -1
- package/src/generated/model/getSession200State.ts +4 -5
- package/src/generated/model/getSession200User.ts +20 -18
- package/src/generated/model/getSession200UserAgent.ts +1 -1
- package/src/generated/model/getSession401.ts +1 -1
- package/src/generated/model/getSession401Details.ts +1 -1
- package/src/generated/model/getSession403.ts +1 -1
- package/src/generated/model/getSession403Details.ts +1 -1
- package/src/generated/model/getSession404.ts +1 -1
- package/src/generated/model/getSession404Details.ts +1 -1
- package/src/generated/model/getSessionDefault.ts +1 -1
- package/src/generated/model/getTeam200.ts +6 -5
- package/src/generated/model/getTeam200Status.ts +4 -5
- package/src/generated/model/getTeam401.ts +1 -1
- package/src/generated/model/getTeam401Details.ts +1 -1
- package/src/generated/model/getTeam404.ts +1 -1
- package/src/generated/model/getTeam404Details.ts +1 -1
- package/src/generated/model/getTeamDefault.ts +1 -1
- package/src/generated/model/getTeamDefaultDetails.ts +1 -1
- package/src/generated/model/getUserByID200.ts +45 -39
- package/src/generated/model/getUserByID200Attributes.ts +2 -3
- package/src/generated/model/getUserByID200Metadata.ts +24 -22
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +23 -22
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/getUserByID200MetadataStatus.ts +1 -1
- package/src/generated/model/getUserByID200TeamsItem.ts +10 -10
- package/src/generated/model/getUserByID200TeamsItemMembershipStatus.ts +2 -3
- package/src/generated/model/getUserByID401.ts +1 -1
- package/src/generated/model/getUserByID401Details.ts +1 -1
- package/src/generated/model/getUserByID404.ts +1 -1
- package/src/generated/model/getUserByID404Details.ts +1 -1
- package/src/generated/model/getUserByIDDefault.ts +1 -1
- package/src/generated/model/getUserByIDParams.ts +14 -15
- package/src/generated/model/getVariable200.ts +24 -0
- package/src/generated/model/getVariableDefault.ts +69 -0
- package/src/generated/model/getVariableParams.ts +25 -0
- package/src/generated/model/getVariables200.ts +28 -0
- package/src/generated/model/getVariablesDefault.ts +69 -0
- package/src/generated/model/getVariablesParams.ts +25 -0
- package/src/generated/model/index.ts +392 -60
- package/src/generated/model/initClaim201.ts +4 -3
- package/src/generated/model/initClaim401.ts +1 -1
- package/src/generated/model/initClaim401Details.ts +1 -1
- package/src/generated/model/initClaim404.ts +3 -4
- package/src/generated/model/initClaim409.ts +2 -3
- package/src/generated/model/initClaim409Details.ts +1 -1
- package/src/generated/model/initClaim410.ts +3 -4
- package/src/generated/model/initClaimDefault.ts +1 -1
- package/src/generated/model/initClaimDefaultDetails.ts +1 -1
- package/src/generated/model/issueChallenge201.ts +14 -13
- package/src/generated/model/issueChallenge201Method.ts +1 -1
- package/src/generated/model/issueChallenge201Payload.ts +8 -8
- package/src/generated/model/issueChallenge201State.ts +4 -5
- package/src/generated/model/issueChallengeBody.ts +7 -8
- package/src/generated/model/issueChallengeBodyMethod.ts +1 -1
- package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +1 -1
- package/src/generated/model/issueChallengeBodyPasskeyOptionsUserVerification.ts +1 -1
- package/src/generated/model/issueChallengeDefault.ts +1 -1
- package/src/generated/model/listBranding200Item.ts +1 -1
- package/src/generated/model/listBrandingDefault.ts +1 -1
- package/src/generated/model/listBrandingDefaultDetails.ts +1 -1
- package/src/generated/model/listBrandingParams.ts +1 -1
- package/src/generated/model/listDeployments200.ts +25 -0
- package/src/generated/model/listDeployments200DeploymentsItem.ts +62 -0
- package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +58 -0
- package/src/generated/model/listDeployments200DeploymentsItemMetadataDeployedByType.ts +21 -0
- package/src/generated/model/listDeployments200DeploymentsItemMetadataReason.ts +26 -0
- package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +44 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +43 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadataCreatedByType.ts +21 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +56 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +26 -0
- package/src/generated/model/listDeploymentsDefault.ts +69 -0
- package/src/generated/model/listDeploymentsExpandItem.ts +25 -0
- package/src/generated/model/listDeploymentsParams.ts +43 -0
- package/src/generated/model/listEnvironments200.ts +4 -3
- package/src/generated/model/listEnvironments200EnvironmentsItem.ts +21 -17
- package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeployment.ts +38 -0
- package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeploymentReason.ts +26 -0
- package/src/generated/model/listEnvironmentsDefault.ts +1 -1
- package/src/generated/model/listEnvironmentsParams.ts +6 -7
- package/src/generated/model/listEvents200.ts +4 -3
- package/src/generated/model/listEvents200DataItem.ts +667 -273
- package/src/generated/model/listEvents400.ts +1 -1
- package/src/generated/model/listEvents400Details.ts +1 -1
- package/src/generated/model/listEvents401.ts +1 -1
- package/src/generated/model/listEvents401Details.ts +1 -1
- package/src/generated/model/listEvents403.ts +1 -1
- package/src/generated/model/listEvents403Details.ts +1 -1
- package/src/generated/model/listEventsCategoryItem.ts +1 -1
- package/src/generated/model/listEventsDefault.ts +1 -1
- package/src/generated/model/listEventsDefaultDetails.ts +1 -1
- package/src/generated/model/listEventsOrder.ts +1 -1
- package/src/generated/model/listEventsParams.ts +13 -17
- package/src/generated/model/listFlowDefinitions200.ts +1 -1
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +15 -13
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +43 -44
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +4 -5
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +6 -9
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +54 -40
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +28 -23
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +11 -13
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemComplete.ts +3 -4
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +18 -16
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +2 -3
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +3 -4
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemOnSuccess.ts +4 -5
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +35 -31
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +26 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +31 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +11 -88
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +12 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +99 -0
- package/src/generated/model/listFlowDefinitions400.ts +1 -1
- package/src/generated/model/listFlowDefinitions400Details.ts +1 -1
- package/src/generated/model/listFlowDefinitionsDefault.ts +1 -1
- package/src/generated/model/listFlowDefinitionsExpandItem.ts +8 -9
- package/src/generated/model/listFlowDefinitionsParams.ts +25 -13
- package/src/generated/model/listFlowDefinitionsPurpose.ts +1 -1
- package/src/generated/model/listFlowDefinitionsRevisions.ts +15 -0
- package/src/generated/model/listIdpRevisions200.ts +21 -0
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +38 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +47 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +12 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +55 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +65 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +15 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +14 -0
- package/src/generated/model/listIdpRevisions401.ts +20 -0
- package/src/generated/model/{createSchemaDefaultDetails.ts → listIdpRevisions401Details.ts} +2 -2
- package/src/generated/model/listIdpRevisions403.ts +20 -0
- package/src/generated/model/listIdpRevisions403Details.ts +12 -0
- package/src/generated/model/listIdpRevisions404.ts +20 -0
- package/src/generated/model/listIdpRevisions404Details.ts +12 -0
- package/src/generated/model/listIdpRevisionsDefault.ts +59 -0
- package/src/generated/model/listIdpRevisionsParams.ts +28 -0
- package/src/generated/model/listMyProjects200.ts +21 -0
- package/src/generated/model/listMyProjects200ProjectsItem.ts +29 -0
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +42 -0
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +47 -0
- package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +24 -0
- package/src/generated/model/listMyProjects400.ts +20 -0
- package/src/generated/model/listMyProjects400Details.ts +12 -0
- package/src/generated/model/listMyProjects401.ts +23 -0
- package/src/generated/model/listMyProjects500.ts +20 -0
- package/src/generated/model/listMyProjects500Details.ts +12 -0
- package/src/generated/model/listMyProjectsDefault.ts +39 -0
- package/src/generated/model/listMyProjectsParams.ts +23 -0
- package/src/generated/model/listReleases200.ts +4 -3
- package/src/generated/model/listReleases200ReleasesItem.ts +8 -8
- package/src/generated/model/listReleases200ReleasesItemMetadata.ts +20 -16
- package/src/generated/model/listReleases200ReleasesItemMetadataCreatedByType.ts +21 -0
- package/src/generated/model/listReleasesDefault.ts +21 -1
- package/src/generated/model/listReleasesParams.ts +6 -7
- package/src/generated/model/listSchemas200.ts +4 -3
- package/src/generated/model/listSchemas200SchemasItem.ts +12 -12
- package/src/generated/model/listSchemas200SchemasItemMetadata.ts +1 -1
- package/src/generated/model/listSchemas200SchemasItemSchema.ts +42 -31
- package/src/generated/model/listSchemasDefault.ts +52 -13
- package/src/generated/model/listSchemasKind.ts +1 -1
- package/src/generated/model/listSchemasParams.ts +29 -32
- package/src/generated/model/listSchemasRevisions.ts +1 -1
- package/src/generated/model/listUserPasskeys200.ts +4 -3
- package/src/generated/model/listUserPasskeys200PasskeysItem.ts +1 -1
- package/src/generated/model/listUserPasskeys400.ts +1 -1
- package/src/generated/model/listUserPasskeys400Details.ts +1 -1
- package/src/generated/model/listUserPasskeys401.ts +1 -1
- package/src/generated/model/listUserPasskeys401Details.ts +1 -1
- package/src/generated/model/listUserPasskeys403.ts +1 -1
- package/src/generated/model/listUserPasskeys403Details.ts +1 -1
- package/src/generated/model/listUserPasskeys404.ts +1 -1
- package/src/generated/model/listUserPasskeys404Details.ts +1 -1
- package/src/generated/model/listUserPasskeys500.ts +1 -1
- package/src/generated/model/listUserPasskeys500Details.ts +1 -1
- package/src/generated/model/listUserPasskeysDefault.ts +1 -1
- package/src/generated/model/listUserPasskeysParams.ts +6 -7
- package/src/generated/model/listUserTeams200.ts +4 -3
- package/src/generated/model/listUserTeams200TeamsItem.ts +10 -10
- package/src/generated/model/listUserTeams200TeamsItemMembershipStatus.ts +2 -3
- package/src/generated/model/listUserTeams400.ts +1 -1
- package/src/generated/model/listUserTeams400Details.ts +1 -1
- package/src/generated/model/listUserTeams401.ts +1 -1
- package/src/generated/model/listUserTeams401Details.ts +1 -1
- package/src/generated/model/listUserTeams403.ts +1 -1
- package/src/generated/model/listUserTeams403Details.ts +1 -1
- package/src/generated/model/listUserTeams404.ts +1 -1
- package/src/generated/model/listUserTeams404Details.ts +1 -1
- package/src/generated/model/listUserTeams500.ts +1 -1
- package/src/generated/model/listUserTeams500Details.ts +1 -1
- package/src/generated/model/listUserTeamsDefault.ts +1 -1
- package/src/generated/model/listUserTeamsParams.ts +6 -7
- package/src/generated/model/patchMyUser200.ts +77 -0
- package/src/generated/model/patchMyUser200Attributes.ts +13 -0
- package/src/generated/model/patchMyUser200Metadata.ts +45 -0
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +44 -0
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/patchMyUser200MetadataStatus.ts +20 -0
- package/src/generated/model/patchMyUser200TeamsItem.ts +33 -0
- package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/patchMyUser400.ts +20 -0
- package/src/generated/model/patchMyUser400Details.ts +12 -0
- package/src/generated/model/patchMyUser401.ts +20 -0
- package/src/generated/model/patchMyUser401Details.ts +12 -0
- package/src/generated/model/patchMyUser404.ts +23 -0
- package/src/generated/model/patchMyUser409.ts +20 -0
- package/src/generated/model/patchMyUser409Details.ts +12 -0
- package/src/generated/model/patchMyUserBody.ts +25 -0
- package/src/generated/model/patchMyUserBodyAttributes.ts +13 -0
- package/src/generated/model/patchMyUserDefault.ts +99 -0
- package/src/generated/model/patchProject200.ts +8 -3
- package/src/generated/model/patchProject200PasswordHash.ts +42 -0
- package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/patchProject200PasswordHashParams.ts +47 -0
- package/src/generated/model/patchProject200PasswordHashParamsHash.ts +24 -0
- package/src/generated/model/patchProject400.ts +1 -1
- package/src/generated/model/patchProject400Details.ts +1 -1
- package/src/generated/model/patchProject401.ts +1 -1
- package/src/generated/model/patchProject401Details.ts +1 -1
- package/src/generated/model/patchProject404.ts +1 -1
- package/src/generated/model/patchProject404Details.ts +1 -1
- package/src/generated/model/patchProjectBody.ts +8 -1
- package/src/generated/model/patchProjectBodyPasswordHash.ts +43 -0
- package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/patchProjectBodyPasswordHashParams.ts +47 -0
- package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +24 -0
- package/src/generated/model/patchProjectDefault.ts +11 -1
- package/src/generated/model/patchUserByID200.ts +77 -0
- package/src/generated/model/patchUserByID200Attributes.ts +13 -0
- package/src/generated/model/patchUserByID200Metadata.ts +45 -0
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +44 -0
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/patchUserByID200MetadataStatus.ts +20 -0
- package/src/generated/model/patchUserByID200TeamsItem.ts +33 -0
- package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/{getSchemaById404.ts → patchUserByID400.ts} +4 -4
- package/src/generated/model/{getSchemaById400Details.ts → patchUserByID400Details.ts} +2 -2
- package/src/generated/model/{getSchemaById400.ts → patchUserByID401.ts} +4 -4
- package/src/generated/model/{getSchemaById404Details.ts → patchUserByID401Details.ts} +2 -2
- package/src/generated/model/patchUserByID403.ts +20 -0
- package/src/generated/model/patchUserByID403Details.ts +12 -0
- package/src/generated/model/patchUserByID404.ts +20 -0
- package/src/generated/model/patchUserByID404Details.ts +12 -0
- package/src/generated/model/patchUserByID409.ts +20 -0
- package/src/generated/model/patchUserByID409Details.ts +12 -0
- package/src/generated/model/patchUserByIDBody.ts +38 -0
- package/src/generated/model/patchUserByIDBodyAttributes.ts +13 -0
- package/src/generated/model/patchUserByIDDefault.ts +99 -0
- package/src/generated/model/queryGrants200.ts +5 -4
- package/src/generated/model/queryGrants200GrantsItem.ts +18 -35
- package/src/generated/model/queryGrants200GrantsItemObjectType.ts +1 -1
- package/src/generated/model/queryGrants200GrantsItemRelation.ts +1 -1
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +18 -7
- package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +21 -0
- package/src/generated/model/queryGrants200GrantsItemUser.ts +33 -19
- package/src/generated/model/queryGrants200GrantsItemUserAttributes.ts +13 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +45 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +44 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataStatus.ts +20 -0
- package/src/generated/model/queryGrants400.ts +1 -1
- package/src/generated/model/queryGrants400Details.ts +1 -1
- package/src/generated/model/queryGrants401.ts +1 -1
- package/src/generated/model/queryGrants401Details.ts +1 -1
- package/src/generated/model/queryGrants403.ts +1 -1
- package/src/generated/model/queryGrants403Details.ts +1 -1
- package/src/generated/model/queryGrantsBody.ts +9 -6
- package/src/generated/model/queryGrantsBodyExpandItem.ts +14 -15
- package/src/generated/model/queryGrantsBodyFilterItem.ts +19 -16
- package/src/generated/model/queryGrantsBodyFilterItemField.ts +8 -9
- package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +6 -7
- package/src/generated/model/queryGrantsBodySorting.ts +4 -3
- package/src/generated/model/queryGrantsBodySortingDirection.ts +1 -1
- package/src/generated/model/queryGrantsBodySortingField.ts +2 -3
- package/src/generated/model/queryGrantsDefault.ts +1 -1
- package/src/generated/model/queryGrantsParams.ts +1 -1
- package/src/generated/model/queryIdps200.ts +21 -0
- package/src/generated/model/queryIdps200IdpsItem.ts +38 -0
- package/src/generated/model/queryIdps200IdpsItemDefinition.ts +47 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +12 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +55 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +65 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +15 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/queryIdps400.ts +20 -0
- package/src/generated/model/queryIdps400Details.ts +12 -0
- package/src/generated/model/queryIdps401.ts +20 -0
- package/src/generated/model/queryIdps401Details.ts +12 -0
- package/src/generated/model/queryIdps403.ts +20 -0
- package/src/generated/model/queryIdps403Details.ts +12 -0
- package/src/generated/model/queryIdps404.ts +20 -0
- package/src/generated/model/queryIdps404Details.ts +12 -0
- package/src/generated/model/queryIdpsBody.ts +30 -0
- package/src/generated/model/queryIdpsBodyFilterItem.ts +34 -0
- package/src/generated/model/queryIdpsBodyFilterItemField.ts +21 -0
- package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +29 -0
- package/src/generated/model/queryIdpsBodySorting.ts +23 -0
- package/src/generated/model/queryIdpsBodySortingDirection.ts +15 -0
- package/src/generated/model/queryIdpsBodySortingField.ts +21 -0
- package/src/generated/model/queryIdpsDefault.ts +69 -0
- package/src/generated/model/queryIdpsParams.ts +15 -0
- package/src/generated/model/queryProjects200.ts +5 -4
- package/src/generated/model/queryProjects200ProjectsItem.ts +8 -3
- package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +42 -0
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +47 -0
- package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +24 -0
- package/src/generated/model/queryProjects400.ts +1 -1
- package/src/generated/model/queryProjects400Details.ts +1 -1
- package/src/generated/model/queryProjects401.ts +1 -1
- package/src/generated/model/queryProjects401Details.ts +1 -1
- package/src/generated/model/queryProjects403.ts +1 -1
- package/src/generated/model/queryProjects403Details.ts +1 -1
- package/src/generated/model/queryProjects429.ts +1 -1
- package/src/generated/model/queryProjects429Details.ts +1 -1
- package/src/generated/model/queryProjectsBody.ts +5 -4
- package/src/generated/model/queryProjectsBodyFilterItem.ts +12 -10
- package/src/generated/model/queryProjectsBodyFilterItemField.ts +1 -1
- package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +6 -7
- package/src/generated/model/queryProjectsBodySorting.ts +1 -1
- package/src/generated/model/queryProjectsBodySortingDirection.ts +1 -1
- package/src/generated/model/queryProjectsBodySortingField.ts +1 -1
- package/src/generated/model/queryProjectsDefault.ts +1 -1
- package/src/generated/model/querySessions200.ts +4 -3
- package/src/generated/model/querySessions200SessionsItem.ts +34 -29
- package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +7 -7
- package/src/generated/model/querySessions200SessionsItemFactorsItemMethod.ts +1 -1
- package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +12 -6
- package/src/generated/model/querySessions200SessionsItemMetadata.ts +1 -1
- package/src/generated/model/querySessions200SessionsItemState.ts +4 -5
- package/src/generated/model/querySessions200SessionsItemUser.ts +20 -18
- package/src/generated/model/querySessions200SessionsItemUserAgent.ts +1 -1
- package/src/generated/model/querySessions400.ts +1 -1
- package/src/generated/model/querySessions400Details.ts +1 -1
- package/src/generated/model/querySessions401.ts +1 -1
- package/src/generated/model/querySessions401Details.ts +1 -1
- package/src/generated/model/querySessions403.ts +1 -1
- package/src/generated/model/querySessions403Details.ts +1 -1
- package/src/generated/model/querySessionsBody.ts +1 -1
- package/src/generated/model/querySessionsBodyFilterItem.ts +26 -23
- package/src/generated/model/querySessionsBodyFilterItemField.ts +13 -14
- package/src/generated/model/querySessionsBodyFilterItemOperation.ts +6 -7
- package/src/generated/model/querySessionsBodySorting.ts +5 -4
- package/src/generated/model/querySessionsBodySortingDirection.ts +1 -1
- package/src/generated/model/querySessionsBodySortingField.ts +3 -4
- package/src/generated/model/querySessionsDefault.ts +1 -1
- package/src/generated/model/querySessionsParams.ts +1 -1
- package/src/generated/model/queryTeams200.ts +5 -4
- package/src/generated/model/queryTeams200TeamsItem.ts +6 -5
- package/src/generated/model/queryTeams200TeamsItemStatus.ts +4 -5
- package/src/generated/model/queryTeams400.ts +1 -1
- package/src/generated/model/queryTeams400Details.ts +1 -1
- package/src/generated/model/queryTeams401.ts +1 -1
- package/src/generated/model/queryTeams401Details.ts +1 -1
- package/src/generated/model/queryTeams403.ts +1 -1
- package/src/generated/model/queryTeams403Details.ts +1 -1
- package/src/generated/model/queryTeams404.ts +1 -1
- package/src/generated/model/queryTeams404Details.ts +1 -1
- package/src/generated/model/queryTeams429.ts +1 -1
- package/src/generated/model/queryTeams429Details.ts +1 -1
- package/src/generated/model/queryTeamsBody.ts +5 -4
- package/src/generated/model/queryTeamsBodyFilterItem.ts +17 -14
- package/src/generated/model/queryTeamsBodyFilterItemField.ts +4 -5
- package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +6 -7
- package/src/generated/model/queryTeamsBodySorting.ts +6 -5
- package/src/generated/model/queryTeamsBodySortingDirection.ts +1 -1
- package/src/generated/model/queryTeamsBodySortingField.ts +4 -5
- package/src/generated/model/queryTeamsDefault.ts +1 -1
- package/src/generated/model/queryTeamsDefaultDetails.ts +1 -1
- package/src/generated/model/queryTeamsParams.ts +1 -1
- package/src/generated/model/queryUsers200.ts +4 -3
- package/src/generated/model/queryUsers200UsersItem.ts +45 -39
- package/src/generated/model/queryUsers200UsersItemAttributes.ts +2 -3
- package/src/generated/model/queryUsers200UsersItemMetadata.ts +24 -22
- package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +23 -22
- package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/queryUsers200UsersItemMetadataStatus.ts +1 -1
- package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +10 -10
- package/src/generated/model/queryUsers200UsersItemTeamsItemMembershipStatus.ts +2 -3
- package/src/generated/model/queryUsers400.ts +1 -1
- package/src/generated/model/queryUsers400Details.ts +1 -1
- package/src/generated/model/queryUsers401.ts +1 -1
- package/src/generated/model/queryUsers401Details.ts +1 -1
- package/src/generated/model/queryUsers403.ts +1 -1
- package/src/generated/model/queryUsers403Details.ts +1 -1
- package/src/generated/model/queryUsersBody.ts +8 -6
- package/src/generated/model/queryUsersBodyExpandItem.ts +29 -26
- package/src/generated/model/queryUsersBodyFilterItem.ts +41 -36
- package/src/generated/model/queryUsersBodyFilterItemField.ts +28 -27
- package/src/generated/model/queryUsersBodyFilterItemOperation.ts +6 -7
- package/src/generated/model/queryUsersBodySorting.ts +8 -7
- package/src/generated/model/queryUsersBodySortingDirection.ts +1 -1
- package/src/generated/model/queryUsersBodySortingField.ts +6 -7
- package/src/generated/model/queryUsersDefault.ts +1 -1
- package/src/generated/model/queryUsersParams.ts +16 -0
- package/src/generated/model/revokeMySession401.ts +3 -4
- package/src/generated/model/revokeMySessionDefault.ts +1 -1
- package/src/generated/model/revokeSession401.ts +1 -1
- package/src/generated/model/revokeSession401Details.ts +1 -1
- package/src/generated/model/revokeSession403.ts +1 -1
- package/src/generated/model/revokeSession403Details.ts +1 -1
- package/src/generated/model/revokeSessionDefault.ts +1 -1
- package/src/generated/model/setUserPassword400.ts +1 -1
- package/src/generated/model/setUserPassword400Details.ts +1 -1
- package/src/generated/model/setUserPassword404.ts +1 -1
- package/src/generated/model/setUserPassword404Details.ts +1 -1
- package/src/generated/model/setUserPassword500.ts +1 -1
- package/src/generated/model/setUserPassword500Details.ts +1 -1
- package/src/generated/model/setUserPasswordBody.ts +4 -3
- package/src/generated/model/setUserPasswordDefault.ts +1 -1
- package/src/generated/model/submitFlowStep200.ts +27 -21
- package/src/generated/model/submitFlowStep200Branding.ts +59 -30
- package/src/generated/model/submitFlowStep200BrandingLayout.ts +10 -6
- package/src/generated/model/submitFlowStep200BrandingShape.ts +30 -0
- package/src/generated/model/submitFlowStep200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/submitFlowStep200BrandingTheme.ts +43 -0
- package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +34 -0
- package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +34 -0
- package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/submitFlowStep200BrandingThemeMode.ts +19 -0
- package/src/generated/model/submitFlowStep200BrandingTypography.ts +47 -0
- package/src/generated/model/submitFlowStep200Step.ts +42 -36
- package/src/generated/model/submitFlowStep200StepActionsItem.ts +22 -23
- package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +8 -12
- package/src/generated/model/submitFlowStep200StepChallenge.ts +15 -14
- package/src/generated/model/submitFlowStep200StepChallengeMethod.ts +1 -1
- package/src/generated/model/submitFlowStep200StepChallengeOptions.ts +4 -5
- package/src/generated/model/submitFlowStep200StepComplete.ts +3 -4
- package/src/generated/model/submitFlowStep200StepFieldsItem.ts +23 -20
- package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +5 -6
- package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +19 -18
- package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +5 -6
- package/src/generated/model/submitFlowStep200StepGates.ts +17 -15
- package/src/generated/model/submitFlowStep200StepGatesConfig.ts +2 -3
- package/src/generated/model/submitFlowStep200StepGatesKind.ts +3 -4
- package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/submitFlowStep200StepTexts.ts +2 -3
- package/src/generated/model/submitFlowStep400.ts +27 -21
- package/src/generated/model/submitFlowStep400Branding.ts +59 -30
- package/src/generated/model/submitFlowStep400BrandingLayout.ts +10 -6
- package/src/generated/model/submitFlowStep400BrandingShape.ts +30 -0
- package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +19 -0
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +43 -0
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +34 -0
- package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +209 -0
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +34 -0
- package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +209 -0
- package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +19 -0
- package/src/generated/model/submitFlowStep400BrandingTypography.ts +47 -0
- package/src/generated/model/submitFlowStep400Step.ts +42 -36
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +22 -23
- package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +8 -12
- package/src/generated/model/submitFlowStep400StepChallenge.ts +15 -14
- package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +1 -1
- package/src/generated/model/submitFlowStep400StepChallengeOptions.ts +4 -5
- package/src/generated/model/submitFlowStep400StepComplete.ts +3 -4
- package/src/generated/model/submitFlowStep400StepFieldsItem.ts +23 -20
- package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +5 -6
- package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +19 -18
- package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +5 -6
- package/src/generated/model/submitFlowStep400StepGates.ts +17 -15
- package/src/generated/model/submitFlowStep400StepGatesConfig.ts +2 -3
- package/src/generated/model/submitFlowStep400StepGatesKind.ts +3 -4
- package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
- package/src/generated/model/submitFlowStep400StepTexts.ts +2 -3
- package/src/generated/model/submitFlowStep409.ts +1 -1
- package/src/generated/model/submitFlowStep409Details.ts +1 -1
- package/src/generated/model/submitFlowStepBody.ts +16 -13
- package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +9 -8
- package/src/generated/model/submitFlowStepBodyChallengeResponseProof.ts +2 -3
- package/src/generated/model/submitFlowStepBodyFields.ts +1 -2
- package/src/generated/model/submitFlowStepBodyGateProofs.ts +2 -3
- package/src/generated/model/submitFlowStepDefault.ts +1 -1
- package/src/generated/model/updateTeam200.ts +6 -5
- package/src/generated/model/updateTeam200Status.ts +4 -5
- package/src/generated/model/updateTeam400.ts +1 -1
- package/src/generated/model/updateTeam400Details.ts +1 -1
- package/src/generated/model/updateTeam401.ts +1 -1
- package/src/generated/model/updateTeam401Details.ts +1 -1
- package/src/generated/model/updateTeam403.ts +1 -1
- package/src/generated/model/updateTeam403Details.ts +1 -1
- package/src/generated/model/updateTeam404.ts +1 -1
- package/src/generated/model/updateTeam404Details.ts +1 -1
- package/src/generated/model/updateTeam409.ts +1 -1
- package/src/generated/model/updateTeam409Details.ts +1 -1
- package/src/generated/model/updateTeamBody.ts +1 -1
- package/src/generated/model/updateTeamDefault.ts +1 -1
- package/src/generated/model/updateTeamDefaultDetails.ts +1 -1
- package/src/generated/model/updateVariables200.ts +28 -0
- package/src/generated/model/updateVariablesBody.ts +61 -0
- package/src/generated/model/{updateFlowDefinitionDefault.ts → updateVariablesDefault.ts} +23 -13
- package/src/generated/model/updateVariablesParams.ts +25 -0
- package/src/generated/model/verifyChallengeProof200.ts +36 -31
- package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +14 -13
- package/src/generated/model/verifyChallengeProof200ChallengesItemMethod.ts +1 -1
- package/src/generated/model/verifyChallengeProof200ChallengesItemPayload.ts +8 -8
- package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +4 -5
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +7 -7
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemMethod.ts +1 -1
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +12 -6
- package/src/generated/model/verifyChallengeProof200RequiredFactorsItem.ts +1 -1
- package/src/generated/model/verifyChallengeProof200State.ts +5 -6
- package/src/generated/model/verifyChallengeProofBody.ts +5 -6
- package/src/generated/model/verifyChallengeProofDefault.ts +11 -1
- package/src/runtime/base-url.spec.ts +33 -2
- package/dist/index-DtExHu2p.d.mts +0 -22272
- package/dist/index-DtExHu2p.d.mts.map +0 -1
- package/dist/runtime/fetch.d.mts.map +0 -1
- package/dist/zitadelNextGen-C79YSuEo.d.mts +0 -709
- package/dist/zitadelNextGen-C79YSuEo.d.mts.map +0 -1
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/createGrant201Principal.ts +0 -147
- package/src/generated/model/createGrant201PrincipalType.ts +0 -18
- package/src/generated/model/createGrantBodyPrincipalType.ts +0 -18
- package/src/generated/model/deleteFlowDefinition409.ts +0 -20
- package/src/generated/model/deleteFlowDefinition409Details.ts +0 -12
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/getGrant200Principal.ts +0 -147
- package/src/generated/model/getGrant200PrincipalType.ts +0 -18
- package/src/generated/model/getSchemaByIdDefaultDetails.ts +0 -12
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/listSchemasDefaultDetails.ts +0 -12
- package/src/generated/model/queryGrants200GrantsItemPrincipal.ts +0 -147
- package/src/generated/model/queryGrants200GrantsItemPrincipalType.ts +0 -18
- package/src/generated/model/updateFlowDefinition200.ts +0 -34
- package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +0 -73
- package/src/generated/model/updateFlowDefinition200FlowDefinitionAudience.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStatus.ts +0 -26
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItem.ts +0 -71
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +0 -42
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +0 -31
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemComplete.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGates.ts +0 -35
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +0 -14
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemTransitions.ts +0 -46
- package/src/generated/model/updateFlowDefinition200UserSchema.ts +0 -103
- package/src/generated/model/updateFlowDefinition400.ts +0 -20
- package/src/generated/model/updateFlowDefinition400Details.ts +0 -12
- package/src/generated/model/updateFlowDefinition404.ts +0 -20
- package/src/generated/model/updateFlowDefinition404Details.ts +0 -12
- package/src/generated/model/updateFlowDefinitionBody.ts +0 -30
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +0 -73
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionAudience.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStatus.ts +0 -26
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -71
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -42
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -31
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -35
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -14
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -46
|
@@ -3,7 +3,7 @@ import { getProxyPath } from "../../runtime/base-url.mjs";
|
|
|
3
3
|
import { customFetch } from "../../runtime/fetch.mjs";
|
|
4
4
|
//#region src/generated/endpoints/zitadelNextGen.ts
|
|
5
5
|
/**
|
|
6
|
-
* Generated by orval
|
|
6
|
+
* Generated by orval 🍺
|
|
7
7
|
* Do not edit manually.
|
|
8
8
|
* Zitadel NextGen
|
|
9
9
|
* This is the next generation of the Zitadel identity platform.
|
|
@@ -14,20 +14,22 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
14
14
|
completeClaim: () => completeClaim,
|
|
15
15
|
createAuthAttempt: () => createAuthAttempt,
|
|
16
16
|
createBranding: () => createBranding,
|
|
17
|
+
createDeployment: () => createDeployment,
|
|
17
18
|
createFlow: () => createFlow,
|
|
18
19
|
createFlowDefinition: () => createFlowDefinition,
|
|
19
20
|
createGrant: () => createGrant,
|
|
20
21
|
createHandoff: () => createHandoff,
|
|
22
|
+
createIdp: () => createIdp,
|
|
21
23
|
createProject: () => createProject,
|
|
22
24
|
createRelease: () => createRelease,
|
|
23
25
|
createSchema: () => createSchema,
|
|
24
26
|
createSession: () => createSession,
|
|
25
27
|
createTeam: () => createTeam,
|
|
26
28
|
createUser: () => createUser,
|
|
27
|
-
deleteFlowDefinition: () => deleteFlowDefinition,
|
|
28
29
|
deleteGrant: () => deleteGrant,
|
|
29
30
|
deleteTeam: () => deleteTeam,
|
|
30
31
|
deleteUserByID: () => deleteUserByID,
|
|
32
|
+
deleteVariable: () => deleteVariable,
|
|
31
33
|
exchangeHandoff: () => exchangeHandoff,
|
|
32
34
|
finishUserPasskeyRegistration: () => finishUserPasskeyRegistration,
|
|
33
35
|
getAuthAttempt: () => getAuthAttempt,
|
|
@@ -38,20 +40,23 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
38
40
|
getCompleteClaimUrl: () => getCompleteClaimUrl,
|
|
39
41
|
getCreateAuthAttemptUrl: () => getCreateAuthAttemptUrl,
|
|
40
42
|
getCreateBrandingUrl: () => getCreateBrandingUrl,
|
|
43
|
+
getCreateDeploymentUrl: () => getCreateDeploymentUrl,
|
|
41
44
|
getCreateFlowDefinitionUrl: () => getCreateFlowDefinitionUrl,
|
|
42
45
|
getCreateFlowUrl: () => getCreateFlowUrl,
|
|
43
46
|
getCreateGrantUrl: () => getCreateGrantUrl,
|
|
44
47
|
getCreateHandoffUrl: () => getCreateHandoffUrl,
|
|
48
|
+
getCreateIdpUrl: () => getCreateIdpUrl,
|
|
45
49
|
getCreateProjectUrl: () => getCreateProjectUrl,
|
|
46
50
|
getCreateReleaseUrl: () => getCreateReleaseUrl,
|
|
47
51
|
getCreateSchemaUrl: () => getCreateSchemaUrl,
|
|
48
52
|
getCreateSessionUrl: () => getCreateSessionUrl,
|
|
49
53
|
getCreateTeamUrl: () => getCreateTeamUrl,
|
|
50
54
|
getCreateUserUrl: () => getCreateUserUrl,
|
|
51
|
-
getDeleteFlowDefinitionUrl: () => getDeleteFlowDefinitionUrl,
|
|
52
55
|
getDeleteGrantUrl: () => getDeleteGrantUrl,
|
|
53
56
|
getDeleteTeamUrl: () => getDeleteTeamUrl,
|
|
54
57
|
getDeleteUserByIDUrl: () => getDeleteUserByIDUrl,
|
|
58
|
+
getDeleteVariableUrl: () => getDeleteVariableUrl,
|
|
59
|
+
getDeploymentById: () => getDeploymentById,
|
|
55
60
|
getEnvironmentByName: () => getEnvironmentByName,
|
|
56
61
|
getEvent: () => getEvent,
|
|
57
62
|
getExchangeHandoffUrl: () => getExchangeHandoffUrl,
|
|
@@ -62,12 +67,15 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
62
67
|
getGetBrandingByIdUrl: () => getGetBrandingByIdUrl,
|
|
63
68
|
getGetClaimStatusUrl: () => getGetClaimStatusUrl,
|
|
64
69
|
getGetClaimWindowUrl: () => getGetClaimWindowUrl,
|
|
70
|
+
getGetDeploymentByIdUrl: () => getGetDeploymentByIdUrl,
|
|
65
71
|
getGetEnvironmentByNameUrl: () => getGetEnvironmentByNameUrl,
|
|
66
72
|
getGetEventUrl: () => getGetEventUrl,
|
|
67
73
|
getGetFlowDefinitionUrl: () => getGetFlowDefinitionUrl,
|
|
68
74
|
getGetFlowStepUrl: () => getGetFlowStepUrl,
|
|
69
75
|
getGetGrantUrl: () => getGetGrantUrl,
|
|
70
76
|
getGetHealthUrl: () => getGetHealthUrl,
|
|
77
|
+
getGetIdpByIdUrl: () => getGetIdpByIdUrl,
|
|
78
|
+
getGetIdpRevisionByIdUrl: () => getGetIdpRevisionByIdUrl,
|
|
71
79
|
getGetLiveUrl: () => getGetLiveUrl,
|
|
72
80
|
getGetMySessionUrl: () => getGetMySessionUrl,
|
|
73
81
|
getGetMyUserUrl: () => getGetMyUserUrl,
|
|
@@ -78,14 +86,21 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
78
86
|
getGetSessionUrl: () => getGetSessionUrl,
|
|
79
87
|
getGetTeamUrl: () => getGetTeamUrl,
|
|
80
88
|
getGetUserByIDUrl: () => getGetUserByIDUrl,
|
|
89
|
+
getGetVariableUrl: () => getGetVariableUrl,
|
|
90
|
+
getGetVariablesUrl: () => getGetVariablesUrl,
|
|
81
91
|
getGrant: () => getGrant,
|
|
82
92
|
getHealth: () => getHealth,
|
|
93
|
+
getIdpById: () => getIdpById,
|
|
94
|
+
getIdpRevisionById: () => getIdpRevisionById,
|
|
83
95
|
getInitClaimUrl: () => getInitClaimUrl,
|
|
84
96
|
getIssueChallengeUrl: () => getIssueChallengeUrl,
|
|
85
97
|
getListBrandingUrl: () => getListBrandingUrl,
|
|
98
|
+
getListDeploymentsUrl: () => getListDeploymentsUrl,
|
|
86
99
|
getListEnvironmentsUrl: () => getListEnvironmentsUrl,
|
|
87
100
|
getListEventsUrl: () => getListEventsUrl,
|
|
88
101
|
getListFlowDefinitionsUrl: () => getListFlowDefinitionsUrl,
|
|
102
|
+
getListIdpRevisionsUrl: () => getListIdpRevisionsUrl,
|
|
103
|
+
getListMyProjectsUrl: () => getListMyProjectsUrl,
|
|
89
104
|
getListReleasesUrl: () => getListReleasesUrl,
|
|
90
105
|
getListSchemasUrl: () => getListSchemasUrl,
|
|
91
106
|
getListUserPasskeysUrl: () => getListUserPasskeysUrl,
|
|
@@ -93,9 +108,12 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
93
108
|
getLive: () => getLive,
|
|
94
109
|
getMySession: () => getMySession,
|
|
95
110
|
getMyUser: () => getMyUser,
|
|
111
|
+
getPatchMyUserUrl: () => getPatchMyUserUrl,
|
|
96
112
|
getPatchProjectUrl: () => getPatchProjectUrl,
|
|
113
|
+
getPatchUserByIDUrl: () => getPatchUserByIDUrl,
|
|
97
114
|
getProject: () => getProject,
|
|
98
115
|
getQueryGrantsUrl: () => getQueryGrantsUrl,
|
|
116
|
+
getQueryIdpsUrl: () => getQueryIdpsUrl,
|
|
99
117
|
getQueryProjectsUrl: () => getQueryProjectsUrl,
|
|
100
118
|
getQuerySessionsUrl: () => getQuerySessionsUrl,
|
|
101
119
|
getQueryTeamsUrl: () => getQueryTeamsUrl,
|
|
@@ -109,22 +127,30 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
109
127
|
getSetUserPasswordUrl: () => getSetUserPasswordUrl,
|
|
110
128
|
getSubmitFlowStepUrl: () => getSubmitFlowStepUrl,
|
|
111
129
|
getTeam: () => getTeam,
|
|
112
|
-
getUpdateFlowDefinitionUrl: () => getUpdateFlowDefinitionUrl,
|
|
113
130
|
getUpdateTeamUrl: () => getUpdateTeamUrl,
|
|
131
|
+
getUpdateVariablesUrl: () => getUpdateVariablesUrl,
|
|
114
132
|
getUserByID: () => getUserByID,
|
|
133
|
+
getVariable: () => getVariable,
|
|
134
|
+
getVariables: () => getVariables,
|
|
115
135
|
getVerifyChallengeProofUrl: () => getVerifyChallengeProofUrl,
|
|
116
136
|
initClaim: () => initClaim,
|
|
117
137
|
issueChallenge: () => issueChallenge,
|
|
118
138
|
listBranding: () => listBranding,
|
|
139
|
+
listDeployments: () => listDeployments,
|
|
119
140
|
listEnvironments: () => listEnvironments,
|
|
120
141
|
listEvents: () => listEvents,
|
|
121
142
|
listFlowDefinitions: () => listFlowDefinitions,
|
|
143
|
+
listIdpRevisions: () => listIdpRevisions,
|
|
144
|
+
listMyProjects: () => listMyProjects,
|
|
122
145
|
listReleases: () => listReleases,
|
|
123
146
|
listSchemas: () => listSchemas,
|
|
124
147
|
listUserPasskeys: () => listUserPasskeys,
|
|
125
148
|
listUserTeams: () => listUserTeams,
|
|
149
|
+
patchMyUser: () => patchMyUser,
|
|
126
150
|
patchProject: () => patchProject,
|
|
151
|
+
patchUserByID: () => patchUserByID,
|
|
127
152
|
queryGrants: () => queryGrants,
|
|
153
|
+
queryIdps: () => queryIdps,
|
|
128
154
|
queryProjects: () => queryProjects,
|
|
129
155
|
querySessions: () => querySessions,
|
|
130
156
|
queryTeams: () => queryTeams,
|
|
@@ -133,8 +159,8 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
133
159
|
revokeSession: () => revokeSession,
|
|
134
160
|
setUserPassword: () => setUserPassword,
|
|
135
161
|
submitFlowStep: () => submitFlowStep,
|
|
136
|
-
updateFlowDefinition: () => updateFlowDefinition,
|
|
137
162
|
updateTeam: () => updateTeam,
|
|
163
|
+
updateVariables: () => updateVariables,
|
|
138
164
|
verifyChallengeProof: () => verifyChallengeProof
|
|
139
165
|
});
|
|
140
166
|
const getGetHealthUrl = () => {
|
|
@@ -179,7 +205,7 @@ const getReady = async (options) => {
|
|
|
179
205
|
const getCreateUserUrl = (params) => {
|
|
180
206
|
const normalizedParams = new URLSearchParams();
|
|
181
207
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
182
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
208
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
183
209
|
});
|
|
184
210
|
const stringifiedParams = normalizedParams.toString();
|
|
185
211
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/users?${stringifiedParams}` : `${getProxyPath()}/users`;
|
|
@@ -188,35 +214,58 @@ const getCreateUserUrl = (params) => {
|
|
|
188
214
|
* @summary Create user
|
|
189
215
|
*/
|
|
190
216
|
const createUser = async (createUserBody, params, options) => {
|
|
217
|
+
const getHeaders = (h) => {
|
|
218
|
+
if (!h) return {};
|
|
219
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
220
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
221
|
+
const headers = {};
|
|
222
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
223
|
+
return headers;
|
|
224
|
+
};
|
|
191
225
|
return customFetch(getCreateUserUrl(params), {
|
|
192
226
|
...options,
|
|
193
227
|
method: "POST",
|
|
194
228
|
headers: {
|
|
195
229
|
"Content-Type": "application/json",
|
|
196
|
-
...options?.headers
|
|
230
|
+
...getHeaders(options?.headers)
|
|
197
231
|
},
|
|
198
232
|
body: JSON.stringify(createUserBody)
|
|
199
233
|
});
|
|
200
234
|
};
|
|
201
|
-
const getQueryUsersUrl = () => {
|
|
202
|
-
|
|
235
|
+
const getQueryUsersUrl = (params) => {
|
|
236
|
+
const normalizedParams = new URLSearchParams();
|
|
237
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
238
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
239
|
+
});
|
|
240
|
+
const stringifiedParams = normalizedParams.toString();
|
|
241
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/query?${stringifiedParams}` : `${getProxyPath()}/users/query`;
|
|
203
242
|
};
|
|
204
243
|
/**
|
|
205
244
|
* Returns the users of a project, paginated with a cursor.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
245
|
+
*
|
|
246
|
+
* `project_id` names the project to list; without it, the credential's own
|
|
247
|
+
* project is listed.
|
|
248
|
+
*
|
|
249
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
250
|
+
* session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
251
|
+
* is a follow-up (#1140).
|
|
211
252
|
* @summary Query users
|
|
212
253
|
*/
|
|
213
|
-
const queryUsers = async (queryUsersBody, options) => {
|
|
214
|
-
|
|
254
|
+
const queryUsers = async (queryUsersBody, params, options) => {
|
|
255
|
+
const getHeaders = (h) => {
|
|
256
|
+
if (!h) return {};
|
|
257
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
258
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
259
|
+
const headers = {};
|
|
260
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
261
|
+
return headers;
|
|
262
|
+
};
|
|
263
|
+
return customFetch(getQueryUsersUrl(params), {
|
|
215
264
|
...options,
|
|
216
265
|
method: "POST",
|
|
217
266
|
headers: {
|
|
218
267
|
"Content-Type": "application/json",
|
|
219
|
-
...options?.headers
|
|
268
|
+
...getHeaders(options?.headers)
|
|
220
269
|
},
|
|
221
270
|
body: JSON.stringify(queryUsersBody)
|
|
222
271
|
});
|
|
@@ -224,10 +273,10 @@ const queryUsers = async (queryUsersBody, options) => {
|
|
|
224
273
|
const getGetUserByIDUrl = (userId, params) => {
|
|
225
274
|
const normalizedParams = new URLSearchParams();
|
|
226
275
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
227
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
276
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
228
277
|
});
|
|
229
278
|
const stringifiedParams = normalizedParams.toString();
|
|
230
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}?${stringifiedParams}` : `${getProxyPath()}/users/${userId}`;
|
|
279
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}?${stringifiedParams}` : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
|
|
231
280
|
};
|
|
232
281
|
/**
|
|
233
282
|
* @summary Get user by ID
|
|
@@ -238,8 +287,37 @@ const getUserByID = async (userId, params, options) => {
|
|
|
238
287
|
method: "GET"
|
|
239
288
|
});
|
|
240
289
|
};
|
|
290
|
+
const getPatchUserByIDUrl = (userId) => {
|
|
291
|
+
return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Partially updates a user's schema-defined attributes, and optionally
|
|
295
|
+
* moves the user to another registered schema. The merged result is
|
|
296
|
+
* validated against the schema before commit. Concurrent writes are
|
|
297
|
+
* last-write-wins.
|
|
298
|
+
* @summary Update user by ID
|
|
299
|
+
*/
|
|
300
|
+
const patchUserByID = async (userId, patchUserByIDBody, options) => {
|
|
301
|
+
const getHeaders = (h) => {
|
|
302
|
+
if (!h) return {};
|
|
303
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
304
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
305
|
+
const headers = {};
|
|
306
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
307
|
+
return headers;
|
|
308
|
+
};
|
|
309
|
+
return customFetch(getPatchUserByIDUrl(userId), {
|
|
310
|
+
...options,
|
|
311
|
+
method: "PATCH",
|
|
312
|
+
headers: {
|
|
313
|
+
"Content-Type": "application/json",
|
|
314
|
+
...getHeaders(options?.headers)
|
|
315
|
+
},
|
|
316
|
+
body: JSON.stringify(patchUserByIDBody)
|
|
317
|
+
});
|
|
318
|
+
};
|
|
241
319
|
const getDeleteUserByIDUrl = (userId) => {
|
|
242
|
-
return `${getProxyPath()}/users/${userId}`;
|
|
320
|
+
return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
|
|
243
321
|
};
|
|
244
322
|
/**
|
|
245
323
|
* @summary Delete user by ID
|
|
@@ -253,10 +331,10 @@ const deleteUserByID = async (userId, options) => {
|
|
|
253
331
|
const getListUserPasskeysUrl = (userId, params) => {
|
|
254
332
|
const normalizedParams = new URLSearchParams();
|
|
255
333
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
256
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
334
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
257
335
|
});
|
|
258
336
|
const stringifiedParams = normalizedParams.toString();
|
|
259
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/passkeys?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/passkeys`;
|
|
337
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys?${stringifiedParams}` : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys`;
|
|
260
338
|
};
|
|
261
339
|
/**
|
|
262
340
|
* @summary List user passkeys
|
|
@@ -268,65 +346,87 @@ const listUserPasskeys = async (userId, params, options) => {
|
|
|
268
346
|
});
|
|
269
347
|
};
|
|
270
348
|
const getBeginUserPasskeyRegistrationUrl = (userId) => {
|
|
271
|
-
return `${getProxyPath()}/users/${userId}/passkeys/registrations`;
|
|
349
|
+
return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations`;
|
|
272
350
|
};
|
|
273
351
|
/**
|
|
274
352
|
* Starts a WebAuthn registration ceremony for the user and returns the
|
|
275
|
-
creation options for `navigator.credentials.create()`. Complete the
|
|
276
|
-
ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
|
|
277
|
-
five minutes. Credentials already registered for the user are excluded
|
|
278
|
-
automatically.
|
|
279
|
-
|
|
353
|
+
* creation options for `navigator.credentials.create()`. Complete the
|
|
354
|
+
* ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
|
|
355
|
+
* five minutes. Credentials already registered for the user are excluded
|
|
356
|
+
* automatically.
|
|
280
357
|
* @summary Begin passkey registration
|
|
281
358
|
*/
|
|
282
359
|
const beginUserPasskeyRegistration = async (userId, beginUserPasskeyRegistrationBody, options) => {
|
|
360
|
+
const getHeaders = (h) => {
|
|
361
|
+
if (!h) return {};
|
|
362
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
363
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
364
|
+
const headers = {};
|
|
365
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
366
|
+
return headers;
|
|
367
|
+
};
|
|
283
368
|
return customFetch(getBeginUserPasskeyRegistrationUrl(userId), {
|
|
284
369
|
...options,
|
|
285
370
|
method: "POST",
|
|
286
371
|
headers: {
|
|
287
372
|
"Content-Type": "application/json",
|
|
288
|
-
...options?.headers
|
|
373
|
+
...getHeaders(options?.headers)
|
|
289
374
|
},
|
|
290
375
|
body: JSON.stringify(beginUserPasskeyRegistrationBody)
|
|
291
376
|
});
|
|
292
377
|
};
|
|
293
378
|
const getFinishUserPasskeyRegistrationUrl = (userId, registrationId) => {
|
|
294
|
-
return `${getProxyPath()}/users/${userId}/passkeys/registrations/${registrationId}`;
|
|
379
|
+
return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations/${encodeURIComponent(String(registrationId))}`;
|
|
295
380
|
};
|
|
296
381
|
/**
|
|
297
382
|
* Verifies the attestation against the ceremony started by
|
|
298
|
-
`POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
|
|
299
|
-
rejected attestation counts against the ceremony's failure budget and the
|
|
300
|
-
ceremony stays open for a retry. An expired ceremony surfaces as
|
|
301
|
-
`att.stale_challenge`; an unknown or already-consumed registration id
|
|
302
|
-
surfaces as `att.not_found`.
|
|
303
|
-
|
|
383
|
+
* `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
|
|
384
|
+
* rejected attestation counts against the ceremony's failure budget and the
|
|
385
|
+
* ceremony stays open for a retry. An expired ceremony surfaces as
|
|
386
|
+
* `att.stale_challenge`; an unknown or already-consumed registration id
|
|
387
|
+
* surfaces as `att.not_found`.
|
|
304
388
|
* @summary Finish passkey registration
|
|
305
389
|
*/
|
|
306
390
|
const finishUserPasskeyRegistration = async (userId, registrationId, finishUserPasskeyRegistrationBody, options) => {
|
|
391
|
+
const getHeaders = (h) => {
|
|
392
|
+
if (!h) return {};
|
|
393
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
394
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
395
|
+
const headers = {};
|
|
396
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
397
|
+
return headers;
|
|
398
|
+
};
|
|
307
399
|
return customFetch(getFinishUserPasskeyRegistrationUrl(userId, registrationId), {
|
|
308
400
|
...options,
|
|
309
401
|
method: "POST",
|
|
310
402
|
headers: {
|
|
311
403
|
"Content-Type": "application/json",
|
|
312
|
-
...options?.headers
|
|
404
|
+
...getHeaders(options?.headers)
|
|
313
405
|
},
|
|
314
406
|
body: JSON.stringify(finishUserPasskeyRegistrationBody)
|
|
315
407
|
});
|
|
316
408
|
};
|
|
317
409
|
const getSetUserPasswordUrl = (userId) => {
|
|
318
|
-
return `${getProxyPath()}/users/${userId}/password`;
|
|
410
|
+
return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/password`;
|
|
319
411
|
};
|
|
320
412
|
/**
|
|
321
413
|
* @summary Set user password
|
|
322
414
|
*/
|
|
323
415
|
const setUserPassword = async (userId, setUserPasswordBody, options) => {
|
|
416
|
+
const getHeaders = (h) => {
|
|
417
|
+
if (!h) return {};
|
|
418
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
419
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
420
|
+
const headers = {};
|
|
421
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
422
|
+
return headers;
|
|
423
|
+
};
|
|
324
424
|
return customFetch(getSetUserPasswordUrl(userId), {
|
|
325
425
|
...options,
|
|
326
426
|
method: "PUT",
|
|
327
427
|
headers: {
|
|
328
428
|
"Content-Type": "application/json",
|
|
329
|
-
...options?.headers
|
|
429
|
+
...getHeaders(options?.headers)
|
|
330
430
|
},
|
|
331
431
|
body: JSON.stringify(setUserPasswordBody)
|
|
332
432
|
});
|
|
@@ -334,20 +434,19 @@ const setUserPassword = async (userId, setUserPasswordBody, options) => {
|
|
|
334
434
|
const getListUserTeamsUrl = (userId, params) => {
|
|
335
435
|
const normalizedParams = new URLSearchParams();
|
|
336
436
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
337
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
437
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
338
438
|
});
|
|
339
439
|
const stringifiedParams = normalizedParams.toString();
|
|
340
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/teams?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/teams`;
|
|
440
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/teams?${stringifiedParams}` : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/teams`;
|
|
341
441
|
};
|
|
342
442
|
/**
|
|
343
443
|
* The user's team roster, ordered by team name. Each entry carries the
|
|
344
|
-
team's name, so a client renders a page without resolving ids one by one.
|
|
345
|
-
|
|
346
|
-
This is the N:N roster and it is not lifecycle ownership: the single team
|
|
347
|
-
that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
|
|
348
|
-
on the user read endpoints. Memberships the user was removed from are not
|
|
349
|
-
returned.
|
|
350
|
-
|
|
444
|
+
* team's name, so a client renders a page without resolving ids one by one.
|
|
445
|
+
*
|
|
446
|
+
* This is the N:N roster and it is not lifecycle ownership: the single team
|
|
447
|
+
* that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
|
|
448
|
+
* on the user read endpoints. Memberships the user was removed from are not
|
|
449
|
+
* returned.
|
|
351
450
|
* @summary List the teams a user belongs to
|
|
352
451
|
*/
|
|
353
452
|
const listUserTeams = async (userId, params, options) => {
|
|
@@ -368,42 +467,100 @@ const getMyUser = async (options) => {
|
|
|
368
467
|
method: "GET"
|
|
369
468
|
});
|
|
370
469
|
};
|
|
470
|
+
const getPatchMyUserUrl = () => {
|
|
471
|
+
return `${getProxyPath()}/users/me`;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Partially updates the caller's own schema-defined attributes. The merged
|
|
475
|
+
* result is validated against the user's schema before commit. Concurrent
|
|
476
|
+
* writes are last-write-wins.
|
|
477
|
+
* @summary Update my user information
|
|
478
|
+
*/
|
|
479
|
+
const patchMyUser = async (patchMyUserBody, options) => {
|
|
480
|
+
const getHeaders = (h) => {
|
|
481
|
+
if (!h) return {};
|
|
482
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
483
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
484
|
+
const headers = {};
|
|
485
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
486
|
+
return headers;
|
|
487
|
+
};
|
|
488
|
+
return customFetch(getPatchMyUserUrl(), {
|
|
489
|
+
...options,
|
|
490
|
+
method: "PATCH",
|
|
491
|
+
headers: {
|
|
492
|
+
"Content-Type": "application/json",
|
|
493
|
+
...getHeaders(options?.headers)
|
|
494
|
+
},
|
|
495
|
+
body: JSON.stringify(patchMyUserBody)
|
|
496
|
+
});
|
|
497
|
+
};
|
|
498
|
+
const getListMyProjectsUrl = (params) => {
|
|
499
|
+
const normalizedParams = new URLSearchParams();
|
|
500
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
501
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
502
|
+
});
|
|
503
|
+
const stringifiedParams = normalizedParams.toString();
|
|
504
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/users/me/projects?${stringifiedParams}` : `${getProxyPath()}/users/me/projects`;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* The projects the signed-in user holds an active grant on, either directly or
|
|
508
|
+
* through a team they are a member of. Ordered by project id and paged with an
|
|
509
|
+
* opaque cursor.
|
|
510
|
+
*
|
|
511
|
+
* This is not the same question as `queryProjects`, which answers with the one
|
|
512
|
+
* project the calling credential is bound to. Here the session is the caller
|
|
513
|
+
* and the grants are the answer, so the list spans projects.
|
|
514
|
+
* @summary List the projects I can act on
|
|
515
|
+
*/
|
|
516
|
+
const listMyProjects = async (params, options) => {
|
|
517
|
+
return customFetch(getListMyProjectsUrl(params), {
|
|
518
|
+
...options,
|
|
519
|
+
method: "GET"
|
|
520
|
+
});
|
|
521
|
+
};
|
|
371
522
|
const getCreateFlowUrl = () => {
|
|
372
523
|
return `${getProxyPath()}/flow`;
|
|
373
524
|
};
|
|
374
525
|
/**
|
|
375
526
|
* Resolves a flow definition based on purpose + audience context and returns
|
|
376
|
-
the first capability step. Creates a new session implicitly unless
|
|
377
|
-
`session_id` is provided (for step-up / reauth on an existing session).
|
|
378
|
-
|
|
379
|
-
The response contains an `id` field — the flow handle. Use it as the path
|
|
380
|
-
parameter for all subsequent `/flow/{id}/submit` calls.
|
|
381
|
-
|
|
382
|
-
The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
|
|
383
|
-
the flow's orchestration state (current step, collected data, history).
|
|
384
|
-
The server is stateless between requests — all flow state lives in this
|
|
385
|
-
cookie. The browser sends it automatically on subsequent requests.
|
|
386
|
-
|
|
527
|
+
* the first capability step. Creates a new session implicitly unless
|
|
528
|
+
* `session_id` is provided (for step-up / reauth on an existing session).
|
|
529
|
+
*
|
|
530
|
+
* The response contains an `id` field — the flow handle. Use it as the path
|
|
531
|
+
* parameter for all subsequent `/flow/{id}/submit` calls.
|
|
532
|
+
*
|
|
533
|
+
* The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
|
|
534
|
+
* the flow's orchestration state (current step, collected data, history).
|
|
535
|
+
* The server is stateless between requests — all flow state lives in this
|
|
536
|
+
* cookie. The browser sends it automatically on subsequent requests.
|
|
387
537
|
* @summary Start a new flow
|
|
388
538
|
*/
|
|
389
539
|
const createFlow = async (createFlowBody, options) => {
|
|
540
|
+
const getHeaders = (h) => {
|
|
541
|
+
if (!h) return {};
|
|
542
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
543
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
544
|
+
const headers = {};
|
|
545
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
546
|
+
return headers;
|
|
547
|
+
};
|
|
390
548
|
return customFetch(getCreateFlowUrl(), {
|
|
391
549
|
...options,
|
|
392
550
|
method: "POST",
|
|
393
551
|
headers: {
|
|
394
552
|
"Content-Type": "application/json",
|
|
395
|
-
...options?.headers
|
|
553
|
+
...getHeaders(options?.headers)
|
|
396
554
|
},
|
|
397
555
|
body: JSON.stringify(createFlowBody)
|
|
398
556
|
});
|
|
399
557
|
};
|
|
400
558
|
const getGetFlowStepUrl = (id) => {
|
|
401
|
-
return `${getProxyPath()}/flow/${id}`;
|
|
559
|
+
return `${getProxyPath()}/flow/${encodeURIComponent(String(id))}`;
|
|
402
560
|
};
|
|
403
561
|
/**
|
|
404
562
|
* Returns the current capability step without advancing the state machine.
|
|
405
|
-
Useful for page reloads or re-rendering after a network error.
|
|
406
|
-
|
|
563
|
+
* Useful for page reloads or re-rendering after a network error.
|
|
407
564
|
* @summary Get current step (re-render)
|
|
408
565
|
*/
|
|
409
566
|
const getFlowStep = async (id, options) => {
|
|
@@ -413,46 +570,53 @@ const getFlowStep = async (id, options) => {
|
|
|
413
570
|
});
|
|
414
571
|
};
|
|
415
572
|
const getSubmitFlowStepUrl = (id) => {
|
|
416
|
-
return `${getProxyPath()}/flow/${id}/submit`;
|
|
573
|
+
return `${getProxyPath()}/flow/${encodeURIComponent(String(id))}/submit`;
|
|
417
574
|
};
|
|
418
575
|
/**
|
|
419
576
|
* Submits user input for the current step. The server validates,
|
|
420
|
-
processes (e.g., verifies a credential), advances the state machine
|
|
421
|
-
through any invisible steps, and returns the next visible step.
|
|
422
|
-
|
|
423
|
-
The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
|
|
424
|
-
with the new flow state. The server is stateless — all orchestration
|
|
425
|
-
state is carried in this cookie between requests.
|
|
426
|
-
|
|
427
|
-
**Important:** The `id` in the response may differ from the `id` used in
|
|
428
|
-
the request. This happens when a flow pivots (pushes a new flow onto the
|
|
429
|
-
stack) or when a stacked flow completes (auto-pops to the parent flow).
|
|
430
|
-
Always use the `id` from the latest response for the next request.
|
|
431
|
-
|
|
432
|
-
## Flow completion
|
|
433
|
-
|
|
434
|
-
When `step.type` is `complete`, the flow is terminal. The `step.behavior`
|
|
435
|
-
field tells the frontend what to do:
|
|
436
|
-
|
|
437
|
-
| `behavior` | Action |
|
|
438
|
-
|------------- |------------------------------------------------------------|
|
|
439
|
-
| `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
|
|
440
|
-
| `show` | Render the step as a success screen (e.g., registration). |
|
|
441
|
-
|
|
442
|
-
A `complete` step is only returned when the **entire flow stack** is done.
|
|
443
|
-
If a stacked flow (e.g., recovery pivoted from login) finishes, the server
|
|
444
|
-
auto-pops to the parent flow and returns the parent's next step — the
|
|
445
|
-
frontend never sees a `complete` for intermediate flows.
|
|
446
|
-
|
|
577
|
+
* processes (e.g., verifies a credential), advances the state machine
|
|
578
|
+
* through any invisible steps, and returns the next visible step.
|
|
579
|
+
*
|
|
580
|
+
* The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
|
|
581
|
+
* with the new flow state. The server is stateless — all orchestration
|
|
582
|
+
* state is carried in this cookie between requests.
|
|
583
|
+
*
|
|
584
|
+
* **Important:** The `id` in the response may differ from the `id` used in
|
|
585
|
+
* the request. This happens when a flow pivots (pushes a new flow onto the
|
|
586
|
+
* stack) or when a stacked flow completes (auto-pops to the parent flow).
|
|
587
|
+
* Always use the `id` from the latest response for the next request.
|
|
588
|
+
*
|
|
589
|
+
* ## Flow completion
|
|
590
|
+
*
|
|
591
|
+
* When `step.type` is `complete`, the flow is terminal. The `step.behavior`
|
|
592
|
+
* field tells the frontend what to do:
|
|
593
|
+
*
|
|
594
|
+
* | `behavior` | Action |
|
|
595
|
+
* |------------- |------------------------------------------------------------|
|
|
596
|
+
* | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
|
|
597
|
+
* | `show` | Render the step as a success screen (e.g., registration). |
|
|
598
|
+
*
|
|
599
|
+
* A `complete` step is only returned when the **entire flow stack** is done.
|
|
600
|
+
* If a stacked flow (e.g., recovery pivoted from login) finishes, the server
|
|
601
|
+
* auto-pops to the parent flow and returns the parent's next step — the
|
|
602
|
+
* frontend never sees a `complete` for intermediate flows.
|
|
447
603
|
* @summary Submit step data and advance
|
|
448
604
|
*/
|
|
449
605
|
const submitFlowStep = async (id, submitFlowStepBody, options) => {
|
|
606
|
+
const getHeaders = (h) => {
|
|
607
|
+
if (!h) return {};
|
|
608
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
609
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
610
|
+
const headers = {};
|
|
611
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
612
|
+
return headers;
|
|
613
|
+
};
|
|
450
614
|
return customFetch(getSubmitFlowStepUrl(id), {
|
|
451
615
|
...options,
|
|
452
616
|
method: "POST",
|
|
453
617
|
headers: {
|
|
454
618
|
"Content-Type": "application/json",
|
|
455
|
-
...options?.headers
|
|
619
|
+
...getHeaders(options?.headers)
|
|
456
620
|
},
|
|
457
621
|
body: JSON.stringify(submitFlowStepBody)
|
|
458
622
|
});
|
|
@@ -462,38 +626,44 @@ const getCreateAuthAttemptUrl = () => {
|
|
|
462
626
|
};
|
|
463
627
|
/**
|
|
464
628
|
* Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
|
|
465
|
-
|
|
466
|
-
An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
|
|
467
|
-
It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
|
|
468
|
-
|
|
469
|
-
Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
|
|
470
|
-
also include session_id to add factors to an existing session.
|
|
471
|
-
|
|
629
|
+
*
|
|
630
|
+
* An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
|
|
631
|
+
* It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
|
|
632
|
+
*
|
|
633
|
+
* Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
|
|
634
|
+
* also include session_id to add factors to an existing session.
|
|
472
635
|
* @summary Create a new authentication attempt
|
|
473
636
|
*/
|
|
474
637
|
const createAuthAttempt = async (createAuthAttemptBody, options) => {
|
|
638
|
+
const getHeaders = (h) => {
|
|
639
|
+
if (!h) return {};
|
|
640
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
641
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
642
|
+
const headers = {};
|
|
643
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
644
|
+
return headers;
|
|
645
|
+
};
|
|
475
646
|
return customFetch(getCreateAuthAttemptUrl(), {
|
|
476
647
|
...options,
|
|
477
648
|
method: "POST",
|
|
478
649
|
headers: {
|
|
479
650
|
"Content-Type": "application/json",
|
|
480
|
-
...options?.headers
|
|
651
|
+
...getHeaders(options?.headers)
|
|
481
652
|
},
|
|
482
653
|
body: JSON.stringify(createAuthAttemptBody)
|
|
483
654
|
});
|
|
484
655
|
};
|
|
485
656
|
const getGetAuthAttemptUrl = (attemptId) => {
|
|
486
|
-
return `${getProxyPath()}/auth_attempts/${attemptId}`;
|
|
657
|
+
return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}`;
|
|
487
658
|
};
|
|
488
659
|
/**
|
|
489
660
|
* Polls the current state of an authentication attempt.
|
|
490
|
-
|
|
491
|
-
Returns the attempt's state, available factors for the next challenge,
|
|
492
|
-
challenges issued so far, and any errors preventing progress.
|
|
493
|
-
|
|
494
|
-
Use this for polling during long-running factor verifications (e.g., waiting for
|
|
495
|
-
a federated IdP callback or a device flow).
|
|
496
|
-
|
|
661
|
+
*
|
|
662
|
+
* Returns the attempt's state, available factors for the next challenge,
|
|
663
|
+
* challenges issued so far, and any errors preventing progress.
|
|
664
|
+
*
|
|
665
|
+
* Use this for polling during long-running factor verifications (e.g., waiting for
|
|
666
|
+
* a federated IdP callback or a device flow).
|
|
497
667
|
* @summary Get authentication attempt state
|
|
498
668
|
*/
|
|
499
669
|
const getAuthAttempt = async (attemptId, options) => {
|
|
@@ -503,72 +673,85 @@ const getAuthAttempt = async (attemptId, options) => {
|
|
|
503
673
|
});
|
|
504
674
|
};
|
|
505
675
|
const getIssueChallengeUrl = (attemptId) => {
|
|
506
|
-
return `${getProxyPath()}/auth_attempts/${attemptId}/challenges`;
|
|
676
|
+
return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges`;
|
|
507
677
|
};
|
|
508
678
|
/**
|
|
509
679
|
* Issues a single-factor verification challenge within an auth attempt.
|
|
510
|
-
|
|
511
|
-
This advances the authentication state machine by requesting a specific factor method
|
|
512
|
-
(password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
|
|
513
|
-
including method, metadata, and any UI hints. The client then verifies the proof
|
|
514
|
-
by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
|
|
515
|
-
|
|
680
|
+
*
|
|
681
|
+
* This advances the authentication state machine by requesting a specific factor method
|
|
682
|
+
* (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
|
|
683
|
+
* including method, metadata, and any UI hints. The client then verifies the proof
|
|
684
|
+
* by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
|
|
516
685
|
* @summary Issue a factor challenge
|
|
517
686
|
*/
|
|
518
687
|
const issueChallenge = async (attemptId, issueChallengeBody, options) => {
|
|
688
|
+
const getHeaders = (h) => {
|
|
689
|
+
if (!h) return {};
|
|
690
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
691
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
692
|
+
const headers = {};
|
|
693
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
694
|
+
return headers;
|
|
695
|
+
};
|
|
519
696
|
return customFetch(getIssueChallengeUrl(attemptId), {
|
|
520
697
|
...options,
|
|
521
698
|
method: "POST",
|
|
522
699
|
headers: {
|
|
523
700
|
"Content-Type": "application/json",
|
|
524
|
-
...options?.headers
|
|
701
|
+
...getHeaders(options?.headers)
|
|
525
702
|
},
|
|
526
703
|
body: JSON.stringify(issueChallengeBody)
|
|
527
704
|
});
|
|
528
705
|
};
|
|
529
706
|
const getVerifyChallengeProofUrl = (attemptId, challengeId) => {
|
|
530
|
-
return `${getProxyPath()}/auth_attempts/${attemptId}/challenges/${challengeId}/verify`;
|
|
707
|
+
return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges/${encodeURIComponent(String(challengeId))}/verify`;
|
|
531
708
|
};
|
|
532
709
|
/**
|
|
533
710
|
* Submits a proof (credential, code, assertion) to verify a factor challenge.
|
|
534
|
-
|
|
535
|
-
The proof format depends on the challenge method. For example:
|
|
536
|
-
- `password` method: { password: "…" }
|
|
537
|
-
- `totp` method: { totp: { code: "123456" } }
|
|
538
|
-
- `passkey` method: { passkey: { assertion: "…" } }
|
|
539
|
-
- `recovery_code` method: { recovery_code: "…" }
|
|
540
|
-
|
|
541
|
-
On successful verification, the factor is written to the auth attempt.
|
|
542
|
-
The attempt moves to the next pending challenge or completes if all required factors are verified.
|
|
543
|
-
|
|
711
|
+
*
|
|
712
|
+
* The proof format depends on the challenge method. For example:
|
|
713
|
+
* - `password` method: { password: "…" }
|
|
714
|
+
* - `totp` method: { totp: { code: "123456" } }
|
|
715
|
+
* - `passkey` method: { passkey: { assertion: "…" } }
|
|
716
|
+
* - `recovery_code` method: { recovery_code: "…" }
|
|
717
|
+
*
|
|
718
|
+
* On successful verification, the factor is written to the auth attempt.
|
|
719
|
+
* The attempt moves to the next pending challenge or completes if all required factors are verified.
|
|
544
720
|
* @summary Verify a factor proof
|
|
545
721
|
*/
|
|
546
722
|
const verifyChallengeProof = async (attemptId, challengeId, verifyChallengeProofBody, options) => {
|
|
723
|
+
const getHeaders = (h) => {
|
|
724
|
+
if (!h) return {};
|
|
725
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
726
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
727
|
+
const headers = {};
|
|
728
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
729
|
+
return headers;
|
|
730
|
+
};
|
|
547
731
|
return customFetch(getVerifyChallengeProofUrl(attemptId, challengeId), {
|
|
548
732
|
...options,
|
|
549
733
|
method: "POST",
|
|
550
734
|
headers: {
|
|
551
735
|
"Content-Type": "application/json",
|
|
552
|
-
...options?.headers
|
|
736
|
+
...getHeaders(options?.headers)
|
|
553
737
|
},
|
|
554
738
|
body: JSON.stringify(verifyChallengeProofBody)
|
|
555
739
|
});
|
|
556
740
|
};
|
|
557
741
|
const getCreateHandoffUrl = (attemptId) => {
|
|
558
|
-
return `${getProxyPath()}/auth_attempts/${attemptId}/handoff`;
|
|
742
|
+
return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/handoff`;
|
|
559
743
|
};
|
|
560
744
|
/**
|
|
561
745
|
* Completes the authentication attempt and mints a `handoff_token`.
|
|
562
|
-
|
|
563
|
-
Call this after all required factors have been verified and the attempt is in `completed` state.
|
|
564
|
-
The handoff token is short-lived (≤60 seconds) and must be exchanged at
|
|
565
|
-
POST /sessions/exchange to receive the final session and session_token.
|
|
566
|
-
|
|
567
|
-
The handoff token is:
|
|
568
|
-
- Single-use (atomic exchange, no retry)
|
|
569
|
-
- Audience-bound (requires matching project key for exchange)
|
|
570
|
-
- Idempotency-safe within a 5-minute window (see conventions)
|
|
571
|
-
|
|
746
|
+
*
|
|
747
|
+
* Call this after all required factors have been verified and the attempt is in `completed` state.
|
|
748
|
+
* The handoff token is short-lived (≤60 seconds) and must be exchanged at
|
|
749
|
+
* POST /sessions/exchange to receive the final session and session_token.
|
|
750
|
+
*
|
|
751
|
+
* The handoff token is:
|
|
752
|
+
* - Single-use (atomic exchange, no retry)
|
|
753
|
+
* - Audience-bound (requires matching project key for exchange)
|
|
754
|
+
* - Idempotency-safe within a 5-minute window (see conventions)
|
|
572
755
|
* @summary Complete authentication and create handoff token
|
|
573
756
|
*/
|
|
574
757
|
const createHandoff = async (attemptId, options) => {
|
|
@@ -584,12 +767,20 @@ const getCreateProjectUrl = () => {
|
|
|
584
767
|
* @summary Create project
|
|
585
768
|
*/
|
|
586
769
|
const createProject = async (createProjectBody, options) => {
|
|
770
|
+
const getHeaders = (h) => {
|
|
771
|
+
if (!h) return {};
|
|
772
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
773
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
774
|
+
const headers = {};
|
|
775
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
776
|
+
return headers;
|
|
777
|
+
};
|
|
587
778
|
return customFetch(getCreateProjectUrl(), {
|
|
588
779
|
...options,
|
|
589
780
|
method: "POST",
|
|
590
781
|
headers: {
|
|
591
782
|
"Content-Type": "application/json",
|
|
592
|
-
...options?.headers
|
|
783
|
+
...getHeaders(options?.headers)
|
|
593
784
|
},
|
|
594
785
|
body: JSON.stringify(createProjectBody)
|
|
595
786
|
});
|
|
@@ -601,22 +792,29 @@ const getQueryProjectsUrl = () => {
|
|
|
601
792
|
* @summary Query projects
|
|
602
793
|
*/
|
|
603
794
|
const queryProjects = async (queryProjectsBody, options) => {
|
|
795
|
+
const getHeaders = (h) => {
|
|
796
|
+
if (!h) return {};
|
|
797
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
798
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
799
|
+
const headers = {};
|
|
800
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
801
|
+
return headers;
|
|
802
|
+
};
|
|
604
803
|
return customFetch(getQueryProjectsUrl(), {
|
|
605
804
|
...options,
|
|
606
805
|
method: "POST",
|
|
607
806
|
headers: {
|
|
608
807
|
"Content-Type": "application/json",
|
|
609
|
-
...options?.headers
|
|
808
|
+
...getHeaders(options?.headers)
|
|
610
809
|
},
|
|
611
810
|
body: JSON.stringify(queryProjectsBody)
|
|
612
811
|
});
|
|
613
812
|
};
|
|
614
813
|
const getGetProjectUrl = (projectId) => {
|
|
615
|
-
return `${getProxyPath()}/projects/${projectId}`;
|
|
814
|
+
return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}`;
|
|
616
815
|
};
|
|
617
816
|
/**
|
|
618
817
|
* Returns the current state of a project.
|
|
619
|
-
|
|
620
818
|
* @summary Get project
|
|
621
819
|
*/
|
|
622
820
|
const getProject = async (projectId, options) => {
|
|
@@ -626,34 +824,40 @@ const getProject = async (projectId, options) => {
|
|
|
626
824
|
});
|
|
627
825
|
};
|
|
628
826
|
const getPatchProjectUrl = (projectId) => {
|
|
629
|
-
return `${getProxyPath()}/projects/${projectId}`;
|
|
827
|
+
return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}`;
|
|
630
828
|
};
|
|
631
829
|
/**
|
|
632
830
|
* Updates the state of a project.
|
|
633
|
-
|
|
634
831
|
* @summary Update project
|
|
635
832
|
*/
|
|
636
833
|
const patchProject = async (projectId, patchProjectBody, options) => {
|
|
834
|
+
const getHeaders = (h) => {
|
|
835
|
+
if (!h) return {};
|
|
836
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
837
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
838
|
+
const headers = {};
|
|
839
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
840
|
+
return headers;
|
|
841
|
+
};
|
|
637
842
|
return customFetch(getPatchProjectUrl(projectId), {
|
|
638
843
|
...options,
|
|
639
844
|
method: "PATCH",
|
|
640
845
|
headers: {
|
|
641
846
|
"Content-Type": "application/json",
|
|
642
|
-
...options?.headers
|
|
847
|
+
...getHeaders(options?.headers)
|
|
643
848
|
},
|
|
644
849
|
body: JSON.stringify(patchProjectBody)
|
|
645
850
|
});
|
|
646
851
|
};
|
|
647
852
|
const getInitClaimUrl = (projectId) => {
|
|
648
|
-
return `${getProxyPath()}/projects/${projectId}/claim/init`;
|
|
853
|
+
return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/init`;
|
|
649
854
|
};
|
|
650
855
|
/**
|
|
651
856
|
* Starts a claim challenge for an unclaimed project. Authenticated by the
|
|
652
|
-
project secret, this mints a single-use, short-lived challenge and returns
|
|
653
|
-
the `claim_url` the developer opens in a browser to complete the claim,
|
|
654
|
-
together with the `challenge_id` the CLI polls with. The exact expiry is
|
|
655
|
-
carried by `expires_at` on the response.
|
|
656
|
-
|
|
857
|
+
* project secret, this mints a single-use, short-lived challenge and returns
|
|
858
|
+
* the `claim_url` the developer opens in a browser to complete the claim,
|
|
859
|
+
* together with the `challenge_id` the CLI polls with. The exact expiry is
|
|
860
|
+
* carried by `expires_at` on the response.
|
|
657
861
|
* @summary Initialize a project claim
|
|
658
862
|
*/
|
|
659
863
|
const initClaim = async (projectId, options) => {
|
|
@@ -665,21 +869,20 @@ const initClaim = async (projectId, options) => {
|
|
|
665
869
|
const getGetClaimStatusUrl = (projectId, params) => {
|
|
666
870
|
const normalizedParams = new URLSearchParams();
|
|
667
871
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
668
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
872
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
669
873
|
});
|
|
670
874
|
const stringifiedParams = normalizedParams.toString();
|
|
671
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${projectId}/claim/status?${stringifiedParams}` : `${getProxyPath()}/projects/${projectId}/claim/status`;
|
|
875
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/status?${stringifiedParams}` : `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/status`;
|
|
672
876
|
};
|
|
673
877
|
/**
|
|
674
878
|
* Polled by the CLI while a browser completes the claim. Authorized by the
|
|
675
|
-
project secret that initiated the challenge. Returns `pending`, or
|
|
676
|
-
`completed` with the owning team, the claim timestamp, and the dashboard
|
|
677
|
-
URL once the project is claimed. The claim grant, not the polled
|
|
678
|
-
challenge, is the source of truth: a project claimed through another
|
|
679
|
-
concurrent challenge also reports `completed`, and a completed claim
|
|
680
|
-
keeps reporting `completed` past this challenge's expiry and past the
|
|
681
|
-
project's claim window.
|
|
682
|
-
|
|
879
|
+
* project secret that initiated the challenge. Returns `pending`, or
|
|
880
|
+
* `completed` with the owning team, the claim timestamp, and the dashboard
|
|
881
|
+
* URL once the project is claimed. The claim grant, not the polled
|
|
882
|
+
* challenge, is the source of truth: a project claimed through another
|
|
883
|
+
* concurrent challenge also reports `completed`, and a completed claim
|
|
884
|
+
* keeps reporting `completed` past this challenge's expiry and past the
|
|
885
|
+
* project's claim window.
|
|
683
886
|
* @summary Get claim status
|
|
684
887
|
*/
|
|
685
888
|
const getClaimStatus = async (projectId, params, options) => {
|
|
@@ -689,23 +892,30 @@ const getClaimStatus = async (projectId, params, options) => {
|
|
|
689
892
|
});
|
|
690
893
|
};
|
|
691
894
|
const getCompleteClaimUrl = (projectId) => {
|
|
692
|
-
return `${getProxyPath()}/projects/${projectId}/claim/complete`;
|
|
895
|
+
return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/complete`;
|
|
693
896
|
};
|
|
694
897
|
/**
|
|
695
898
|
* Called by the browser after the developer authenticates on the claim page.
|
|
696
|
-
Authenticated by the `__nextgen_session` cookie, it attaches the project to
|
|
697
|
-
the developer's personal team using the `challenge_id` from the claim URL as
|
|
698
|
-
its single-use, browser-safe authorization.
|
|
699
|
-
|
|
899
|
+
* Authenticated by the `__nextgen_session` cookie, it attaches the project to
|
|
900
|
+
* the developer's personal team using the `challenge_id` from the claim URL as
|
|
901
|
+
* its single-use, browser-safe authorization.
|
|
700
902
|
* @summary Complete a project claim
|
|
701
903
|
*/
|
|
702
904
|
const completeClaim = async (projectId, completeClaimBody, options) => {
|
|
905
|
+
const getHeaders = (h) => {
|
|
906
|
+
if (!h) return {};
|
|
907
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
908
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
909
|
+
const headers = {};
|
|
910
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
911
|
+
return headers;
|
|
912
|
+
};
|
|
703
913
|
return customFetch(getCompleteClaimUrl(projectId), {
|
|
704
914
|
...options,
|
|
705
915
|
method: "POST",
|
|
706
916
|
headers: {
|
|
707
917
|
"Content-Type": "application/json",
|
|
708
|
-
...options?.headers
|
|
918
|
+
...getHeaders(options?.headers)
|
|
709
919
|
},
|
|
710
920
|
body: JSON.stringify(completeClaimBody)
|
|
711
921
|
});
|
|
@@ -713,19 +923,18 @@ const completeClaim = async (projectId, completeClaimBody, options) => {
|
|
|
713
923
|
const getGetClaimWindowUrl = (projectId, params) => {
|
|
714
924
|
const normalizedParams = new URLSearchParams();
|
|
715
925
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
716
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
926
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
717
927
|
});
|
|
718
928
|
const stringifiedParams = normalizedParams.toString();
|
|
719
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${projectId}/claim/window?${stringifiedParams}` : `${getProxyPath()}/projects/${projectId}/claim/window`;
|
|
929
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/window?${stringifiedParams}` : `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/window`;
|
|
720
930
|
};
|
|
721
931
|
/**
|
|
722
932
|
* Read by the claim page in the browser to show how long is left to claim the
|
|
723
|
-
project. Unauthenticated by design: the claim page runs this before the
|
|
724
|
-
developer has signed in, and holding the `challenge_id` from the claim URL
|
|
725
|
-
is the authorization — the same capability `claim/complete` accepts. It
|
|
726
|
-
reveals only the window, never the project itself, and unlike
|
|
727
|
-
`claim/complete` it spends nothing, so a reload is free.
|
|
728
|
-
|
|
933
|
+
* project. Unauthenticated by design: the claim page runs this before the
|
|
934
|
+
* developer has signed in, and holding the `challenge_id` from the claim URL
|
|
935
|
+
* is the authorization — the same capability `claim/complete` accepts. It
|
|
936
|
+
* reveals only the window, never the project itself, and unlike
|
|
937
|
+
* `claim/complete` it spends nothing, so a reload is free.
|
|
729
938
|
* @summary Get the claim window for a project
|
|
730
939
|
*/
|
|
731
940
|
const getClaimWindow = async (projectId, params, options) => {
|
|
@@ -739,36 +948,43 @@ const getCreateSessionUrl = () => {
|
|
|
739
948
|
};
|
|
740
949
|
/**
|
|
741
950
|
* Creates an anonymous session shell with no user and no factors (`state: building`).
|
|
742
|
-
|
|
743
|
-
This is optional — an `auth_attempt` will create a session implicitly if none is provided.
|
|
744
|
-
Use this explicitly when you want to:
|
|
745
|
-
- Pre-allocate a `session_id` before the user is known, so device/telemetry signals
|
|
746
|
-
can be correlated with the eventual authenticated session from the start.
|
|
747
|
-
- Track anonymous state (bot detection, device fingerprint) that survives until authentication.
|
|
748
|
-
|
|
749
|
-
Creating a session is an app-plane operation on the project credential
|
|
750
|
-
(`session.write`). The returned `session_token` is a session credential for the
|
|
751
|
-
end-user client, not a management scope: it is delivered as the
|
|
752
|
-
`__nextgen_session` cookie and authorises the self-service operations
|
|
753
|
-
`GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
|
|
754
|
-
by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
|
|
755
|
-
are operator endpoints and require `session.read` / `session.delete` instead.
|
|
756
|
-
|
|
757
|
-
The `session_token` is superseded when a handoff exchange completes — clients must
|
|
758
|
-
replace it at that point.
|
|
759
|
-
|
|
760
|
-
Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
|
|
761
|
-
full session TTL when the first authentication factor is written via a completing `auth_attempt`.
|
|
762
|
-
|
|
951
|
+
*
|
|
952
|
+
* This is optional — an `auth_attempt` will create a session implicitly if none is provided.
|
|
953
|
+
* Use this explicitly when you want to:
|
|
954
|
+
* - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
|
|
955
|
+
* can be correlated with the eventual authenticated session from the start.
|
|
956
|
+
* - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
|
|
957
|
+
*
|
|
958
|
+
* Creating a session is an app-plane operation on the project credential
|
|
959
|
+
* (`session.write`). The returned `session_token` is a session credential for the
|
|
960
|
+
* end-user client, not a management scope: it is delivered as the
|
|
961
|
+
* `__nextgen_session` cookie and authorises the self-service operations
|
|
962
|
+
* `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
|
|
963
|
+
* by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
|
|
964
|
+
* are operator endpoints and require `session.read` / `session.delete` instead.
|
|
965
|
+
*
|
|
966
|
+
* The `session_token` is superseded when a handoff exchange completes — clients must
|
|
967
|
+
* replace it at that point.
|
|
968
|
+
*
|
|
969
|
+
* Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
|
|
970
|
+
* full session TTL when the first authentication factor is written via a completing `auth_attempt`.
|
|
763
971
|
* @summary Create an anonymous session shell
|
|
764
972
|
*/
|
|
765
973
|
const createSession = async (createSessionBody, options) => {
|
|
974
|
+
const getHeaders = (h) => {
|
|
975
|
+
if (!h) return {};
|
|
976
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
977
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
978
|
+
const headers = {};
|
|
979
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
980
|
+
return headers;
|
|
981
|
+
};
|
|
766
982
|
return customFetch(getCreateSessionUrl(), {
|
|
767
983
|
...options,
|
|
768
984
|
method: "POST",
|
|
769
985
|
headers: {
|
|
770
986
|
"Content-Type": "application/json",
|
|
771
|
-
...options?.headers
|
|
987
|
+
...getHeaders(options?.headers)
|
|
772
988
|
},
|
|
773
989
|
body: JSON.stringify(createSessionBody)
|
|
774
990
|
});
|
|
@@ -776,25 +992,32 @@ const createSession = async (createSessionBody, options) => {
|
|
|
776
992
|
const getQuerySessionsUrl = (params) => {
|
|
777
993
|
const normalizedParams = new URLSearchParams();
|
|
778
994
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
779
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
995
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
780
996
|
});
|
|
781
997
|
const stringifiedParams = normalizedParams.toString();
|
|
782
998
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/query?${stringifiedParams}` : `${getProxyPath()}/sessions/query`;
|
|
783
999
|
};
|
|
784
1000
|
/**
|
|
785
1001
|
* Returns the sessions of a project, paginated with a cursor.
|
|
786
|
-
Sessions of every lifecycle state are returned; each carries its `state`.
|
|
787
|
-
Requires `session.read` permission.
|
|
788
|
-
|
|
1002
|
+
* Sessions of every lifecycle state are returned; each carries its `state`.
|
|
1003
|
+
* Requires `session.read` permission.
|
|
789
1004
|
* @summary Query sessions
|
|
790
1005
|
*/
|
|
791
1006
|
const querySessions = async (querySessionsBody, params, options) => {
|
|
1007
|
+
const getHeaders = (h) => {
|
|
1008
|
+
if (!h) return {};
|
|
1009
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1010
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1011
|
+
const headers = {};
|
|
1012
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1013
|
+
return headers;
|
|
1014
|
+
};
|
|
792
1015
|
return customFetch(getQuerySessionsUrl(params), {
|
|
793
1016
|
...options,
|
|
794
1017
|
method: "POST",
|
|
795
1018
|
headers: {
|
|
796
1019
|
"Content-Type": "application/json",
|
|
797
|
-
...options?.headers
|
|
1020
|
+
...getHeaders(options?.headers)
|
|
798
1021
|
},
|
|
799
1022
|
body: JSON.stringify(querySessionsBody)
|
|
800
1023
|
});
|
|
@@ -802,54 +1025,60 @@ const querySessions = async (querySessionsBody, params, options) => {
|
|
|
802
1025
|
const getExchangeHandoffUrl = (params) => {
|
|
803
1026
|
const normalizedParams = new URLSearchParams();
|
|
804
1027
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
805
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1028
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
806
1029
|
});
|
|
807
1030
|
const stringifiedParams = normalizedParams.toString();
|
|
808
1031
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/exchange?${stringifiedParams}` : `${getProxyPath()}/sessions/exchange`;
|
|
809
1032
|
};
|
|
810
1033
|
/**
|
|
811
1034
|
* Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
|
|
812
|
-
and returns the resulting session and a `session_token`.
|
|
813
|
-
|
|
814
|
-
The server resolves the originating `auth_attempt` from the token and then:
|
|
815
|
-
|
|
816
|
-
| Originating auth_attempt | Outcome |
|
|
817
|
-
|---|---|
|
|
818
|
-
| No `session_id` | A new authenticated session is **created**. |
|
|
819
|
-
| `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
|
|
820
|
-
| `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
|
|
821
|
-
|
|
822
|
-
The response shape is identical in all three cases.
|
|
823
|
-
|
|
824
|
-
The `session_token` supersedes any previously issued `session_token` for the same session.
|
|
825
|
-
Clients must replace their stored token at this point.
|
|
826
|
-
|
|
827
|
-
Requires a project service key (OAuth2 client credentials).
|
|
828
|
-
|
|
1035
|
+
* and returns the resulting session and a `session_token`.
|
|
1036
|
+
*
|
|
1037
|
+
* The server resolves the originating `auth_attempt` from the token and then:
|
|
1038
|
+
*
|
|
1039
|
+
* | Originating auth_attempt | Outcome |
|
|
1040
|
+
* |---|---|
|
|
1041
|
+
* | No `session_id` | A new authenticated session is **created**. |
|
|
1042
|
+
* | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
|
|
1043
|
+
* | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
|
|
1044
|
+
*
|
|
1045
|
+
* The response shape is identical in all three cases.
|
|
1046
|
+
*
|
|
1047
|
+
* The `session_token` supersedes any previously issued `session_token` for the same session.
|
|
1048
|
+
* Clients must replace their stored token at this point.
|
|
1049
|
+
*
|
|
1050
|
+
* Requires a project service key (OAuth2 client credentials).
|
|
829
1051
|
* @summary Exchange handoff token for a session
|
|
830
1052
|
*/
|
|
831
1053
|
const exchangeHandoff = async (exchangeHandoffBody, params, options) => {
|
|
1054
|
+
const getHeaders = (h) => {
|
|
1055
|
+
if (!h) return {};
|
|
1056
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1057
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1058
|
+
const headers = {};
|
|
1059
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1060
|
+
return headers;
|
|
1061
|
+
};
|
|
832
1062
|
return customFetch(getExchangeHandoffUrl(params), {
|
|
833
1063
|
...options,
|
|
834
1064
|
method: "POST",
|
|
835
1065
|
headers: {
|
|
836
1066
|
"Content-Type": "application/json",
|
|
837
|
-
...options?.headers
|
|
1067
|
+
...getHeaders(options?.headers)
|
|
838
1068
|
},
|
|
839
1069
|
body: JSON.stringify(exchangeHandoffBody)
|
|
840
1070
|
});
|
|
841
1071
|
};
|
|
842
1072
|
const getGetSessionUrl = (sessionId) => {
|
|
843
|
-
return `${getProxyPath()}/sessions/${sessionId}`;
|
|
1073
|
+
return `${getProxyPath()}/sessions/${encodeURIComponent(String(sessionId))}`;
|
|
844
1074
|
};
|
|
845
1075
|
/**
|
|
846
1076
|
* Returns the current state of a session including its factors and all currently
|
|
847
|
-
satisfied assurance levels.
|
|
848
|
-
|
|
849
|
-
`assurance_levels[]` may shrink over time as factor freshness windows expire,
|
|
850
|
-
without the session itself expiring. Use step-up authentication (a new `auth_attempt`
|
|
851
|
-
against the same `session_id`) to restore a dropped assurance level.
|
|
852
|
-
|
|
1077
|
+
* satisfied assurance levels.
|
|
1078
|
+
*
|
|
1079
|
+
* `assurance_levels[]` may shrink over time as factor freshness windows expire,
|
|
1080
|
+
* without the session itself expiring. Use step-up authentication (a new `auth_attempt`
|
|
1081
|
+
* against the same `session_id`) to restore a dropped assurance level.
|
|
853
1082
|
* @summary Get session state
|
|
854
1083
|
*/
|
|
855
1084
|
const getSession = async (sessionId, options) => {
|
|
@@ -859,19 +1088,18 @@ const getSession = async (sessionId, options) => {
|
|
|
859
1088
|
});
|
|
860
1089
|
};
|
|
861
1090
|
const getRevokeSessionUrl = (sessionId) => {
|
|
862
|
-
return `${getProxyPath()}/sessions/${sessionId}`;
|
|
1091
|
+
return `${getProxyPath()}/sessions/${encodeURIComponent(String(sessionId))}`;
|
|
863
1092
|
};
|
|
864
1093
|
/**
|
|
865
1094
|
* Permanently deletes the session, terminating it immediately.
|
|
866
|
-
|
|
867
|
-
This is the operator revoke path and requires the `session.delete` scope on a
|
|
868
|
-
project-bound credential. End-user logout with the `__nextgen_session` cookie is
|
|
869
|
-
`DELETE /sessions/me` (`nextgenSession` scheme).
|
|
870
|
-
|
|
871
|
-
Idempotent: deleting a session that does not exist (or was already deleted)
|
|
872
|
-
still returns 204. After deletion, any tokens derived from the session are
|
|
873
|
-
invalidated.
|
|
874
|
-
|
|
1095
|
+
*
|
|
1096
|
+
* This is the operator revoke path and requires the `session.delete` scope on a
|
|
1097
|
+
* project-bound credential. End-user logout with the `__nextgen_session` cookie is
|
|
1098
|
+
* `DELETE /sessions/me` (`nextgenSession` scheme).
|
|
1099
|
+
*
|
|
1100
|
+
* Idempotent: deleting a session that does not exist (or was already deleted)
|
|
1101
|
+
* still returns 204. After deletion, any tokens derived from the session are
|
|
1102
|
+
* invalidated.
|
|
875
1103
|
* @summary Revoke session
|
|
876
1104
|
*/
|
|
877
1105
|
const revokeSession = async (sessionId, options) => {
|
|
@@ -885,12 +1113,11 @@ const getGetMySessionUrl = () => {
|
|
|
885
1113
|
};
|
|
886
1114
|
/**
|
|
887
1115
|
* Returns the current state of the current session including its factors and all currently
|
|
888
|
-
satisfied assurance levels.
|
|
889
|
-
|
|
890
|
-
`assurance_levels[]` may shrink over time as factor freshness windows expire,
|
|
891
|
-
without the session itself expiring. Use step-up authentication (a new `auth_attempt`
|
|
892
|
-
against the same `session_id`) to restore a dropped assurance level.
|
|
893
|
-
|
|
1116
|
+
* satisfied assurance levels.
|
|
1117
|
+
*
|
|
1118
|
+
* `assurance_levels[]` may shrink over time as factor freshness windows expire,
|
|
1119
|
+
* without the session itself expiring. Use step-up authentication (a new `auth_attempt`
|
|
1120
|
+
* against the same `session_id`) to restore a dropped assurance level.
|
|
894
1121
|
* @summary Get my session state
|
|
895
1122
|
*/
|
|
896
1123
|
const getMySession = async (options) => {
|
|
@@ -904,12 +1131,11 @@ const getRevokeMySessionUrl = () => {
|
|
|
904
1131
|
};
|
|
905
1132
|
/**
|
|
906
1133
|
* Logs out by permanently deleting the session.
|
|
907
|
-
|
|
908
|
-
The `__nextgen_session` cookie issued at creation (or superseded by a handoff
|
|
909
|
-
exchange) is required. Idempotent: if the session is already gone this still
|
|
910
|
-
returns 204. Any tokens derived from the session are invalidated, and the
|
|
911
|
-
cookie itself is cleared in the response.
|
|
912
|
-
|
|
1134
|
+
*
|
|
1135
|
+
* The `__nextgen_session` cookie issued at creation (or superseded by a handoff
|
|
1136
|
+
* exchange) is required. Idempotent: if the session is already gone this still
|
|
1137
|
+
* returns 204. Any tokens derived from the session are invalidated, and the
|
|
1138
|
+
* cookie itself is cleared in the response.
|
|
913
1139
|
* @summary Revoke my session
|
|
914
1140
|
*/
|
|
915
1141
|
const revokeMySession = async (options) => {
|
|
@@ -921,31 +1147,38 @@ const revokeMySession = async (options) => {
|
|
|
921
1147
|
const getCreateSchemaUrl = (params) => {
|
|
922
1148
|
const normalizedParams = new URLSearchParams();
|
|
923
1149
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
924
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1150
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
925
1151
|
});
|
|
926
1152
|
const stringifiedParams = normalizedParams.toString();
|
|
927
1153
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas?${stringifiedParams}` : `${getProxyPath()}/schemas`;
|
|
928
1154
|
};
|
|
929
1155
|
/**
|
|
930
1156
|
* Create a new schema. The optional `$id` field is the JSON Schema document
|
|
931
|
-
URI used to identify the schema in future requests (GitOps-stable identity,
|
|
932
|
-
not a free-form resource primary key). When `$id` is omitted, the server
|
|
933
|
-
generates a `sch_*` URL. When provided, `$id` must be unique within the
|
|
934
|
-
project and should ideally be a valid URI pointing at where the schema can
|
|
935
|
-
be accessed.
|
|
936
|
-
|
|
937
|
-
The schema can either be a concrete schema, e.g. a user schema, or a
|
|
938
|
-
schema-url which will be resolved by the server.
|
|
939
|
-
|
|
1157
|
+
* URI used to identify the schema in future requests (GitOps-stable identity,
|
|
1158
|
+
* not a free-form resource primary key). When `$id` is omitted, the server
|
|
1159
|
+
* generates a `sch_*` URL. When provided, `$id` must be unique within the
|
|
1160
|
+
* project and should ideally be a valid URI pointing at where the schema can
|
|
1161
|
+
* be accessed.
|
|
1162
|
+
*
|
|
1163
|
+
* The schema can either be a concrete schema, e.g. a user schema, or a
|
|
1164
|
+
* schema-url which will be resolved by the server.
|
|
940
1165
|
* @summary Create new schema
|
|
941
1166
|
*/
|
|
942
1167
|
const createSchema = async (createSchemaBody, params, options) => {
|
|
1168
|
+
const getHeaders = (h) => {
|
|
1169
|
+
if (!h) return {};
|
|
1170
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1171
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1172
|
+
const headers = {};
|
|
1173
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1174
|
+
return headers;
|
|
1175
|
+
};
|
|
943
1176
|
return customFetch(getCreateSchemaUrl(params), {
|
|
944
1177
|
...options,
|
|
945
1178
|
method: "POST",
|
|
946
1179
|
headers: {
|
|
947
1180
|
"Content-Type": "application/json",
|
|
948
|
-
...options?.headers
|
|
1181
|
+
...getHeaders(options?.headers)
|
|
949
1182
|
},
|
|
950
1183
|
body: JSON.stringify(createSchemaBody)
|
|
951
1184
|
});
|
|
@@ -953,15 +1186,14 @@ const createSchema = async (createSchemaBody, params, options) => {
|
|
|
953
1186
|
const getListSchemasUrl = (params) => {
|
|
954
1187
|
const normalizedParams = new URLSearchParams();
|
|
955
1188
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
956
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1189
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
957
1190
|
});
|
|
958
1191
|
const stringifiedParams = normalizedParams.toString();
|
|
959
1192
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas?${stringifiedParams}` : `${getProxyPath()}/schemas`;
|
|
960
1193
|
};
|
|
961
1194
|
/**
|
|
962
1195
|
* Retrieve a list of all schemas available in the system. This endpoint
|
|
963
|
-
supports pagination and filtering based on schema attributes.
|
|
964
|
-
|
|
1196
|
+
* supports pagination and filtering based on schema attributes.
|
|
965
1197
|
* @summary List all schemas
|
|
966
1198
|
*/
|
|
967
1199
|
const listSchemas = async (params, options) => {
|
|
@@ -973,16 +1205,22 @@ const listSchemas = async (params, options) => {
|
|
|
973
1205
|
const getGetSchemaByIdUrl = (id, params) => {
|
|
974
1206
|
const normalizedParams = new URLSearchParams();
|
|
975
1207
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
976
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1208
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
977
1209
|
});
|
|
978
1210
|
const stringifiedParams = normalizedParams.toString();
|
|
979
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas/${id}?${stringifiedParams}` : `${getProxyPath()}/schemas/${id}`;
|
|
1211
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/schemas/${encodeURIComponent(String(id))}`;
|
|
980
1212
|
};
|
|
981
1213
|
/**
|
|
982
1214
|
* Get a schema by its ID. A schema ID identifies one immutable revision, so
|
|
983
|
-
this returns exactly that revision. To find the current revision of an
|
|
984
|
-
object type, list with `revisions=latest`.
|
|
985
|
-
|
|
1215
|
+
* this returns exactly that revision. To find the current revision of an
|
|
1216
|
+
* object type, list with `revisions=latest`.
|
|
1217
|
+
*
|
|
1218
|
+
* Schema IDs are unique within a project, not across projects (the seeded
|
|
1219
|
+
* default schema carries the same `$id` in every project). A Console
|
|
1220
|
+
* session that manages more than one project names the project with
|
|
1221
|
+
* `project_id`; without it, the ID is resolved in the credential's own
|
|
1222
|
+
* project when it is ambiguous. A project secret always resolves in its
|
|
1223
|
+
* own project and ignores `project_id`.
|
|
986
1224
|
* @summary Get schema by ID
|
|
987
1225
|
*/
|
|
988
1226
|
const getSchemaById = async (id, params, options) => {
|
|
@@ -996,25 +1234,32 @@ const getCreateFlowDefinitionUrl = () => {
|
|
|
996
1234
|
};
|
|
997
1235
|
/**
|
|
998
1236
|
* Publishes a new flow definition revision.
|
|
999
|
-
Flow definitions are templates that define the sequence of steps (capabilities)
|
|
1000
|
-
for a particular user journey (e.g., registration, login, password reset).
|
|
1001
|
-
|
|
1002
|
-
Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
|
|
1003
|
-
|
|
1004
|
-
Every call allocates a new opaque id. Revisions of one flow share its
|
|
1005
|
-
`name`; posting a definition under an existing `name` publishes a new
|
|
1006
|
-
revision of that flow, it is not a conflict. List with `name` to see a
|
|
1007
|
-
flow's revisions, newest by creation time first.
|
|
1008
|
-
|
|
1237
|
+
* Flow definitions are templates that define the sequence of steps (capabilities)
|
|
1238
|
+
* for a particular user journey (e.g., registration, login, password reset).
|
|
1239
|
+
*
|
|
1240
|
+
* Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
|
|
1241
|
+
*
|
|
1242
|
+
* Every call allocates a new opaque id. Revisions of one flow share its
|
|
1243
|
+
* `name`; posting a definition under an existing `name` publishes a new
|
|
1244
|
+
* revision of that flow, it is not a conflict. List with `name` to see a
|
|
1245
|
+
* flow's revisions, newest by creation time first.
|
|
1009
1246
|
* @summary Create a new flow definition
|
|
1010
1247
|
*/
|
|
1011
1248
|
const createFlowDefinition = async (createFlowDefinitionBody, options) => {
|
|
1249
|
+
const getHeaders = (h) => {
|
|
1250
|
+
if (!h) return {};
|
|
1251
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1252
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1253
|
+
const headers = {};
|
|
1254
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1255
|
+
return headers;
|
|
1256
|
+
};
|
|
1012
1257
|
return customFetch(getCreateFlowDefinitionUrl(), {
|
|
1013
1258
|
...options,
|
|
1014
1259
|
method: "POST",
|
|
1015
1260
|
headers: {
|
|
1016
1261
|
"Content-Type": "application/json",
|
|
1017
|
-
...options?.headers
|
|
1262
|
+
...getHeaders(options?.headers)
|
|
1018
1263
|
},
|
|
1019
1264
|
body: JSON.stringify(createFlowDefinitionBody)
|
|
1020
1265
|
});
|
|
@@ -1022,16 +1267,21 @@ const createFlowDefinition = async (createFlowDefinitionBody, options) => {
|
|
|
1022
1267
|
const getListFlowDefinitionsUrl = (params) => {
|
|
1023
1268
|
const normalizedParams = new URLSearchParams();
|
|
1024
1269
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1025
|
-
if (
|
|
1270
|
+
if (Array.isArray(value) && ["expand"].includes(key)) {
|
|
1271
|
+
value.forEach((v) => {
|
|
1272
|
+
normalizedParams.append(key, v === null ? "null" : String(v));
|
|
1273
|
+
});
|
|
1274
|
+
return;
|
|
1275
|
+
}
|
|
1276
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1026
1277
|
});
|
|
1027
1278
|
const stringifiedParams = normalizedParams.toString();
|
|
1028
1279
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions?${stringifiedParams}` : `${getProxyPath()}/flow_definitions`;
|
|
1029
1280
|
};
|
|
1030
1281
|
/**
|
|
1031
1282
|
* Retrieves a list of all flow definitions, newest by creation time first.
|
|
1032
|
-
This endpoint can be used to view existing flow definitions and their configurations.
|
|
1033
|
-
Filter by `name` to list the revisions of one flow.
|
|
1034
|
-
|
|
1283
|
+
* This endpoint can be used to view existing flow definitions and their configurations.
|
|
1284
|
+
* Filter by `name` to list the revisions of one flow.
|
|
1035
1285
|
* @summary List flow definitions
|
|
1036
1286
|
*/
|
|
1037
1287
|
const listFlowDefinitions = async (params, options) => {
|
|
@@ -1041,7 +1291,7 @@ const listFlowDefinitions = async (params, options) => {
|
|
|
1041
1291
|
});
|
|
1042
1292
|
};
|
|
1043
1293
|
const getGetFlowDefinitionUrl = (id) => {
|
|
1044
|
-
return `${getProxyPath()}/flow_definitions/${id}`;
|
|
1294
|
+
return `${getProxyPath()}/flow_definitions/${encodeURIComponent(String(id))}`;
|
|
1045
1295
|
};
|
|
1046
1296
|
/**
|
|
1047
1297
|
* Get a flow definition by id
|
|
@@ -1053,46 +1303,10 @@ const getFlowDefinition = async (id, options) => {
|
|
|
1053
1303
|
method: "GET"
|
|
1054
1304
|
});
|
|
1055
1305
|
};
|
|
1056
|
-
const getUpdateFlowDefinitionUrl = (id) => {
|
|
1057
|
-
return `${getProxyPath()}/flow_definitions/${id}`;
|
|
1058
|
-
};
|
|
1059
|
-
/**
|
|
1060
|
-
* Update a flow definition by id. This endpoint replaces the existing flow definition.
|
|
1061
|
-
If `flow_definition.status` is omitted, the current status is preserved
|
|
1062
|
-
|
|
1063
|
-
* @summary Update a flow definition by id
|
|
1064
|
-
*/
|
|
1065
|
-
const updateFlowDefinition = async (id, updateFlowDefinitionBody, options) => {
|
|
1066
|
-
return customFetch(getUpdateFlowDefinitionUrl(id), {
|
|
1067
|
-
...options,
|
|
1068
|
-
method: "PUT",
|
|
1069
|
-
headers: {
|
|
1070
|
-
"Content-Type": "application/json",
|
|
1071
|
-
...options?.headers
|
|
1072
|
-
},
|
|
1073
|
-
body: JSON.stringify(updateFlowDefinitionBody)
|
|
1074
|
-
});
|
|
1075
|
-
};
|
|
1076
|
-
const getDeleteFlowDefinitionUrl = (id) => {
|
|
1077
|
-
return `${getProxyPath()}/flow_definitions/${id}`;
|
|
1078
|
-
};
|
|
1079
|
-
/**
|
|
1080
|
-
* Delete a flow definition by id.
|
|
1081
|
-
If the flow definition is currently being used by a flow, the deletion will fail.
|
|
1082
|
-
If the flow definition is the last active flow definition for a given purpose, the deletion will fail to prevent disruption of new flows being started for that purpose.
|
|
1083
|
-
|
|
1084
|
-
* @summary Delete a flow definition by id
|
|
1085
|
-
*/
|
|
1086
|
-
const deleteFlowDefinition = async (id, options) => {
|
|
1087
|
-
return customFetch(getDeleteFlowDefinitionUrl(id), {
|
|
1088
|
-
...options,
|
|
1089
|
-
method: "DELETE"
|
|
1090
|
-
});
|
|
1091
|
-
};
|
|
1092
1306
|
const getCreateTeamUrl = (params) => {
|
|
1093
1307
|
const normalizedParams = new URLSearchParams();
|
|
1094
1308
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1095
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1309
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1096
1310
|
});
|
|
1097
1311
|
const stringifiedParams = normalizedParams.toString();
|
|
1098
1312
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/teams?${stringifiedParams}` : `${getProxyPath()}/teams`;
|
|
@@ -1101,12 +1315,20 @@ const getCreateTeamUrl = (params) => {
|
|
|
1101
1315
|
* @summary Create team
|
|
1102
1316
|
*/
|
|
1103
1317
|
const createTeam = async (createTeamBody, params, options) => {
|
|
1318
|
+
const getHeaders = (h) => {
|
|
1319
|
+
if (!h) return {};
|
|
1320
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1321
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1322
|
+
const headers = {};
|
|
1323
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1324
|
+
return headers;
|
|
1325
|
+
};
|
|
1104
1326
|
return customFetch(getCreateTeamUrl(params), {
|
|
1105
1327
|
...options,
|
|
1106
1328
|
method: "POST",
|
|
1107
1329
|
headers: {
|
|
1108
1330
|
"Content-Type": "application/json",
|
|
1109
|
-
...options?.headers
|
|
1331
|
+
...getHeaders(options?.headers)
|
|
1110
1332
|
},
|
|
1111
1333
|
body: JSON.stringify(createTeamBody)
|
|
1112
1334
|
});
|
|
@@ -1114,33 +1336,39 @@ const createTeam = async (createTeamBody, params, options) => {
|
|
|
1114
1336
|
const getQueryTeamsUrl = (params) => {
|
|
1115
1337
|
const normalizedParams = new URLSearchParams();
|
|
1116
1338
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1117
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1339
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1118
1340
|
});
|
|
1119
1341
|
const stringifiedParams = normalizedParams.toString();
|
|
1120
1342
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/teams/query?${stringifiedParams}` : `${getProxyPath()}/teams/query`;
|
|
1121
1343
|
};
|
|
1122
1344
|
/**
|
|
1123
1345
|
* Returns the teams of a project, paginated with a cursor.
|
|
1124
|
-
|
|
1125
1346
|
* @summary Query teams
|
|
1126
1347
|
*/
|
|
1127
1348
|
const queryTeams = async (queryTeamsBody, params, options) => {
|
|
1349
|
+
const getHeaders = (h) => {
|
|
1350
|
+
if (!h) return {};
|
|
1351
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1352
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1353
|
+
const headers = {};
|
|
1354
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1355
|
+
return headers;
|
|
1356
|
+
};
|
|
1128
1357
|
return customFetch(getQueryTeamsUrl(params), {
|
|
1129
1358
|
...options,
|
|
1130
1359
|
method: "POST",
|
|
1131
1360
|
headers: {
|
|
1132
1361
|
"Content-Type": "application/json",
|
|
1133
|
-
...options?.headers
|
|
1362
|
+
...getHeaders(options?.headers)
|
|
1134
1363
|
},
|
|
1135
1364
|
body: JSON.stringify(queryTeamsBody)
|
|
1136
1365
|
});
|
|
1137
1366
|
};
|
|
1138
1367
|
const getGetTeamUrl = (teamId) => {
|
|
1139
|
-
return `${getProxyPath()}/teams/${teamId}`;
|
|
1368
|
+
return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
|
|
1140
1369
|
};
|
|
1141
1370
|
/**
|
|
1142
1371
|
* Returns a Team by its id.
|
|
1143
|
-
|
|
1144
1372
|
* @summary Get team
|
|
1145
1373
|
*/
|
|
1146
1374
|
const getTeam = async (teamId, options) => {
|
|
@@ -1150,18 +1378,22 @@ const getTeam = async (teamId, options) => {
|
|
|
1150
1378
|
});
|
|
1151
1379
|
};
|
|
1152
1380
|
const getDeleteTeamUrl = (teamId) => {
|
|
1153
|
-
return `${getProxyPath()}/teams/${teamId}`;
|
|
1381
|
+
return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
|
|
1154
1382
|
};
|
|
1155
1383
|
/**
|
|
1156
1384
|
* Deactivates the team.
|
|
1157
|
-
|
|
1158
|
-
The team is tombstoned rather than erased: it stays readable through
|
|
1159
|
-
getTeam with status `deactivated`. Its memberships are removed and the
|
|
1160
|
-
users whose lifecycle it owns are deactivated with it.
|
|
1161
|
-
|
|
1162
|
-
The request is idempotent. Deleting a team that is already deactivated
|
|
1163
|
-
or doesn't exist succeeds without changing anything.
|
|
1164
|
-
|
|
1385
|
+
*
|
|
1386
|
+
* The team is tombstoned rather than erased: it stays readable through
|
|
1387
|
+
* getTeam with status `deactivated`. Its memberships are removed and the
|
|
1388
|
+
* users whose lifecycle it owns are deactivated with it.
|
|
1389
|
+
*
|
|
1390
|
+
* The request is idempotent. Deleting a team that is already deactivated
|
|
1391
|
+
* or doesn't exist succeeds without changing anything.
|
|
1392
|
+
*
|
|
1393
|
+
* A team that still owns a project is refused with `409
|
|
1394
|
+
* team.owns_project`: deactivating it would leave the project owned by a
|
|
1395
|
+
* dead team and so unmanageable. No endpoint releases that ownership yet,
|
|
1396
|
+
* so such a team cannot currently be deactivated through the API.
|
|
1165
1397
|
* @summary Delete team
|
|
1166
1398
|
*/
|
|
1167
1399
|
const deleteTeam = async (teamId, options) => {
|
|
@@ -1171,20 +1403,27 @@ const deleteTeam = async (teamId, options) => {
|
|
|
1171
1403
|
});
|
|
1172
1404
|
};
|
|
1173
1405
|
const getUpdateTeamUrl = (teamId) => {
|
|
1174
|
-
return `${getProxyPath()}/teams/${teamId}`;
|
|
1406
|
+
return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
|
|
1175
1407
|
};
|
|
1176
1408
|
/**
|
|
1177
1409
|
* Update team. Only active teams can be updated.
|
|
1178
|
-
|
|
1179
1410
|
* @summary Update team
|
|
1180
1411
|
*/
|
|
1181
1412
|
const updateTeam = async (teamId, updateTeamBody, options) => {
|
|
1413
|
+
const getHeaders = (h) => {
|
|
1414
|
+
if (!h) return {};
|
|
1415
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1416
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1417
|
+
const headers = {};
|
|
1418
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1419
|
+
return headers;
|
|
1420
|
+
};
|
|
1182
1421
|
return customFetch(getUpdateTeamUrl(teamId), {
|
|
1183
1422
|
...options,
|
|
1184
1423
|
method: "PATCH",
|
|
1185
1424
|
headers: {
|
|
1186
1425
|
"Content-Type": "application/json",
|
|
1187
|
-
...options?.headers
|
|
1426
|
+
...getHeaders(options?.headers)
|
|
1188
1427
|
},
|
|
1189
1428
|
body: JSON.stringify(updateTeamBody)
|
|
1190
1429
|
});
|
|
@@ -1192,14 +1431,13 @@ const updateTeam = async (teamId, updateTeamBody, options) => {
|
|
|
1192
1431
|
const getListEnvironmentsUrl = (params) => {
|
|
1193
1432
|
const normalizedParams = new URLSearchParams();
|
|
1194
1433
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1195
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1434
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1196
1435
|
});
|
|
1197
1436
|
const stringifiedParams = normalizedParams.toString();
|
|
1198
1437
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/environments?${stringifiedParams}` : `${getProxyPath()}/environments`;
|
|
1199
1438
|
};
|
|
1200
1439
|
/**
|
|
1201
1440
|
* Lists the project's environments ordered by name.
|
|
1202
|
-
|
|
1203
1441
|
* @summary List environments
|
|
1204
1442
|
*/
|
|
1205
1443
|
const listEnvironments = async (params, options) => {
|
|
@@ -1211,17 +1449,16 @@ const listEnvironments = async (params, options) => {
|
|
|
1211
1449
|
const getGetEnvironmentByNameUrl = (name, params) => {
|
|
1212
1450
|
const normalizedParams = new URLSearchParams();
|
|
1213
1451
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1214
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1452
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1215
1453
|
});
|
|
1216
1454
|
const stringifiedParams = normalizedParams.toString();
|
|
1217
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/environments/${name}?${stringifiedParams}` : `${getProxyPath()}/environments/${name}`;
|
|
1455
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/environments/${encodeURIComponent(String(name))}?${stringifiedParams}` : `${getProxyPath()}/environments/${encodeURIComponent(String(name))}`;
|
|
1218
1456
|
};
|
|
1219
1457
|
/**
|
|
1220
1458
|
* Reads one environment of the project by its name.
|
|
1221
|
-
|
|
1222
|
-
The lookup is scoped to the project in `project_id`: a name that exists in
|
|
1223
|
-
another project answers `env.not_found` exactly as an unused name does.
|
|
1224
|
-
|
|
1459
|
+
*
|
|
1460
|
+
* The lookup is scoped to the project in `project_id`: a name that exists in
|
|
1461
|
+
* another project answers `env.not_found` exactly as an unused name does.
|
|
1225
1462
|
* @summary Get an environment by name
|
|
1226
1463
|
*/
|
|
1227
1464
|
const getEnvironmentByName = async (name, params, options) => {
|
|
@@ -1233,31 +1470,37 @@ const getEnvironmentByName = async (name, params, options) => {
|
|
|
1233
1470
|
const getCreateBrandingUrl = (params) => {
|
|
1234
1471
|
const normalizedParams = new URLSearchParams();
|
|
1235
1472
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1236
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1473
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1237
1474
|
});
|
|
1238
1475
|
const stringifiedParams = normalizedParams.toString();
|
|
1239
1476
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/branding?${stringifiedParams}` : `${getProxyPath()}/branding`;
|
|
1240
1477
|
};
|
|
1241
1478
|
/**
|
|
1242
1479
|
* Publishes a new immutable branding revision for the project. Branding
|
|
1243
|
-
revisions cannot be updated or deleted; every edit publishes a new
|
|
1244
|
-
revision, and flow responses resolve the latest revision per project
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
time via `zitadel plan` / `zitadel apply`.
|
|
1251
|
-
|
|
1480
|
+
* revisions cannot be updated or deleted; every edit publishes a new
|
|
1481
|
+
* revision, and flow responses resolve the latest revision per project.
|
|
1482
|
+
*
|
|
1483
|
+
* The `liquid_template` is validated lexically on save (size, encoding,
|
|
1484
|
+
* banned patterns such as `<script>` tags, inline event handlers, and the
|
|
1485
|
+
* `| raw` filter). Authoritative LiquidJS validation runs at authoring
|
|
1486
|
+
* time via `zitadel plan` / `zitadel apply`.
|
|
1252
1487
|
* @summary Publish a new branding revision
|
|
1253
1488
|
*/
|
|
1254
1489
|
const createBranding = async (createBrandingBody, params, options) => {
|
|
1490
|
+
const getHeaders = (h) => {
|
|
1491
|
+
if (!h) return {};
|
|
1492
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1493
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1494
|
+
const headers = {};
|
|
1495
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1496
|
+
return headers;
|
|
1497
|
+
};
|
|
1255
1498
|
return customFetch(getCreateBrandingUrl(params), {
|
|
1256
1499
|
...options,
|
|
1257
1500
|
method: "POST",
|
|
1258
1501
|
headers: {
|
|
1259
1502
|
"Content-Type": "application/json",
|
|
1260
|
-
...options?.headers
|
|
1503
|
+
...getHeaders(options?.headers)
|
|
1261
1504
|
},
|
|
1262
1505
|
body: JSON.stringify(createBrandingBody)
|
|
1263
1506
|
});
|
|
@@ -1265,18 +1508,17 @@ const createBranding = async (createBrandingBody, params, options) => {
|
|
|
1265
1508
|
const getListBrandingUrl = (params) => {
|
|
1266
1509
|
const normalizedParams = new URLSearchParams();
|
|
1267
1510
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1268
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1511
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1269
1512
|
});
|
|
1270
1513
|
const stringifiedParams = normalizedParams.toString();
|
|
1271
1514
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/branding?${stringifiedParams}` : `${getProxyPath()}/branding`;
|
|
1272
1515
|
};
|
|
1273
1516
|
/**
|
|
1274
1517
|
* Lists branding revisions for the project, newest first, capped at the
|
|
1275
|
-
100 most recent. The first entry is the revision flow responses
|
|
1276
|
-
currently resolve. Deliberately unpaginated in v1 — list endpoints
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1518
|
+
* 100 most recent. The first entry is the revision flow responses
|
|
1519
|
+
* currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
|
|
1520
|
+
* real query mechanism together; advertising pagination parameters the
|
|
1521
|
+
* server ignores would be worse than none.
|
|
1280
1522
|
* @summary List branding revisions
|
|
1281
1523
|
*/
|
|
1282
1524
|
const listBranding = async (params, options) => {
|
|
@@ -1286,7 +1528,7 @@ const listBranding = async (params, options) => {
|
|
|
1286
1528
|
});
|
|
1287
1529
|
};
|
|
1288
1530
|
const getGetBrandingByIdUrl = (id) => {
|
|
1289
|
-
return `${getProxyPath()}/branding/${id}`;
|
|
1531
|
+
return `${getProxyPath()}/branding/${encodeURIComponent(String(id))}`;
|
|
1290
1532
|
};
|
|
1291
1533
|
/**
|
|
1292
1534
|
* Retrieves a single branding revision, including its stored configuration.
|
|
@@ -1298,40 +1540,194 @@ const getBrandingById = async (id, options) => {
|
|
|
1298
1540
|
method: "GET"
|
|
1299
1541
|
});
|
|
1300
1542
|
};
|
|
1543
|
+
const getCreateIdpUrl = (params) => {
|
|
1544
|
+
const normalizedParams = new URLSearchParams();
|
|
1545
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1546
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1547
|
+
});
|
|
1548
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1549
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/idps?${stringifiedParams}` : `${getProxyPath()}/idps`;
|
|
1550
|
+
};
|
|
1551
|
+
/**
|
|
1552
|
+
* Creates or revises a connection document. If the slug does not already
|
|
1553
|
+
* exist, a new connection is created. If a connection with that slug already
|
|
1554
|
+
* exists, a revision is created.
|
|
1555
|
+
*
|
|
1556
|
+
* A revision gets a new `revision_id` and does not modify the connection
|
|
1557
|
+
* `id`, so identity links that reference the connection keep resolving while
|
|
1558
|
+
* releases and auth attempts stay pinned to the revision they captured.
|
|
1559
|
+
*
|
|
1560
|
+
* Identity fields are fixed for the life of the connection and a revision
|
|
1561
|
+
* that changes one is rejected: `protocol`, `subject_claim`, and the
|
|
1562
|
+
* endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
|
|
1563
|
+
* and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
|
|
1564
|
+
* account a stored subject belongs to, so changing one would silently
|
|
1565
|
+
* repoint existing identities at a different provider.
|
|
1566
|
+
*
|
|
1567
|
+
* `subject_claim` is optional for OIDC and required for OAuth 2.0. For an
|
|
1568
|
+
* OIDC connection, `sub` is used as the default value. If a revision updates
|
|
1569
|
+
* `subject_claim` to a different value than the one set during creation, the
|
|
1570
|
+
* request is rejected.
|
|
1571
|
+
*
|
|
1572
|
+
* The document is validated against the `idp-connection.json` schema before
|
|
1573
|
+
* anything is stored.
|
|
1574
|
+
* @summary Create or revise an identity provider connection
|
|
1575
|
+
*/
|
|
1576
|
+
const createIdp = async (createIdpBody, params, options) => {
|
|
1577
|
+
const getHeaders = (h) => {
|
|
1578
|
+
if (!h) return {};
|
|
1579
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1580
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1581
|
+
const headers = {};
|
|
1582
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1583
|
+
return headers;
|
|
1584
|
+
};
|
|
1585
|
+
return customFetch(getCreateIdpUrl(params), {
|
|
1586
|
+
...options,
|
|
1587
|
+
method: "POST",
|
|
1588
|
+
headers: {
|
|
1589
|
+
"Content-Type": "application/json",
|
|
1590
|
+
...getHeaders(options?.headers)
|
|
1591
|
+
},
|
|
1592
|
+
body: JSON.stringify(createIdpBody)
|
|
1593
|
+
});
|
|
1594
|
+
};
|
|
1595
|
+
const getQueryIdpsUrl = (params) => {
|
|
1596
|
+
const normalizedParams = new URLSearchParams();
|
|
1597
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1598
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1599
|
+
});
|
|
1600
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1601
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/query?${stringifiedParams}` : `${getProxyPath()}/idps/query`;
|
|
1602
|
+
};
|
|
1603
|
+
/**
|
|
1604
|
+
* Returns the identity provider connections of a project, paginated with a
|
|
1605
|
+
* cursor. One row per connection, carrying its newest revision.
|
|
1606
|
+
* @summary Query identity provider connections
|
|
1607
|
+
*/
|
|
1608
|
+
const queryIdps = async (queryIdpsBody, params, options) => {
|
|
1609
|
+
const getHeaders = (h) => {
|
|
1610
|
+
if (!h) return {};
|
|
1611
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1612
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1613
|
+
const headers = {};
|
|
1614
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1615
|
+
return headers;
|
|
1616
|
+
};
|
|
1617
|
+
return customFetch(getQueryIdpsUrl(params), {
|
|
1618
|
+
...options,
|
|
1619
|
+
method: "POST",
|
|
1620
|
+
headers: {
|
|
1621
|
+
"Content-Type": "application/json",
|
|
1622
|
+
...getHeaders(options?.headers)
|
|
1623
|
+
},
|
|
1624
|
+
body: JSON.stringify(queryIdpsBody)
|
|
1625
|
+
});
|
|
1626
|
+
};
|
|
1627
|
+
const getGetIdpByIdUrl = (id, params) => {
|
|
1628
|
+
const normalizedParams = new URLSearchParams();
|
|
1629
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1630
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1631
|
+
});
|
|
1632
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1633
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/idps/${encodeURIComponent(String(id))}`;
|
|
1634
|
+
};
|
|
1635
|
+
/**
|
|
1636
|
+
* Reads a connection by its id, at its newest revision.
|
|
1637
|
+
* `GET /idps/{id}/revisions` lists every revision of the connection.
|
|
1638
|
+
*
|
|
1639
|
+
* The lookup is scoped to the project in `project_id`.
|
|
1640
|
+
* @summary Get an identity provider connection by id
|
|
1641
|
+
*/
|
|
1642
|
+
const getIdpById = async (id, params, options) => {
|
|
1643
|
+
return customFetch(getGetIdpByIdUrl(id, params), {
|
|
1644
|
+
...options,
|
|
1645
|
+
method: "GET"
|
|
1646
|
+
});
|
|
1647
|
+
};
|
|
1648
|
+
const getListIdpRevisionsUrl = (id, params) => {
|
|
1649
|
+
const normalizedParams = new URLSearchParams();
|
|
1650
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1651
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1652
|
+
});
|
|
1653
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1654
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/${encodeURIComponent(String(id))}/revisions?${stringifiedParams}` : `${getProxyPath()}/idps/${encodeURIComponent(String(id))}/revisions`;
|
|
1655
|
+
};
|
|
1656
|
+
/**
|
|
1657
|
+
* Returns every revision of one connection, newest first, paginated with a
|
|
1658
|
+
* cursor. The order is fixed, so there is no `sorting`.
|
|
1659
|
+
*
|
|
1660
|
+
* The lookup is scoped to the project in `project_id`.
|
|
1661
|
+
* @summary List the revisions of an identity provider connection
|
|
1662
|
+
*/
|
|
1663
|
+
const listIdpRevisions = async (id, params, options) => {
|
|
1664
|
+
return customFetch(getListIdpRevisionsUrl(id, params), {
|
|
1665
|
+
...options,
|
|
1666
|
+
method: "GET"
|
|
1667
|
+
});
|
|
1668
|
+
};
|
|
1669
|
+
const getGetIdpRevisionByIdUrl = (revisionId, params) => {
|
|
1670
|
+
const normalizedParams = new URLSearchParams();
|
|
1671
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1672
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1673
|
+
});
|
|
1674
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1675
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getProxyPath()}/idps/revisions/${encodeURIComponent(String(revisionId))}`;
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Reads one revision of a connection by its `revision_id`, the value an auth
|
|
1679
|
+
* attempt or a release pins.
|
|
1680
|
+
*
|
|
1681
|
+
* The lookup is scoped to the project in `project_id`.
|
|
1682
|
+
* @summary Get one revision of an identity provider connection
|
|
1683
|
+
*/
|
|
1684
|
+
const getIdpRevisionById = async (revisionId, params, options) => {
|
|
1685
|
+
return customFetch(getGetIdpRevisionByIdUrl(revisionId, params), {
|
|
1686
|
+
...options,
|
|
1687
|
+
method: "GET"
|
|
1688
|
+
});
|
|
1689
|
+
};
|
|
1301
1690
|
const getCreateReleaseUrl = (params) => {
|
|
1302
1691
|
const normalizedParams = new URLSearchParams();
|
|
1303
1692
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1304
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1693
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1305
1694
|
});
|
|
1306
1695
|
const stringifiedParams = normalizedParams.toString();
|
|
1307
1696
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/releases?${stringifiedParams}` : `${getProxyPath()}/releases`;
|
|
1308
1697
|
};
|
|
1309
1698
|
/**
|
|
1310
1699
|
* Bundles a release from revisions that already exist, supplied as
|
|
1311
|
-
`(kind, revision_id)` pairs. No new revisions are allocated — use the
|
|
1312
|
-
per-kind create endpoints for that, then pin the ids here.
|
|
1313
|
-
|
|
1314
|
-
Every referenced `revision_id` must exist in the project. Each one's handle
|
|
1315
|
-
is read from the revision itself and recorded on the release, so a resource
|
|
1316
|
-
is always pinned under the identity it declares.
|
|
1317
|
-
|
|
1318
|
-
Creating a release does not deploy it. A release is environment-agnostic
|
|
1319
|
-
and the same release can later be deployed to any number of environments
|
|
1320
|
-
unchanged.
|
|
1321
|
-
|
|
1322
|
-
Idempotent on the pinned set: metadata is excluded from the comparison, so
|
|
1323
|
-
re-submitting the same revisions with a different `message` returns the
|
|
1324
|
-
release that already pins them rather than creating a second one.
|
|
1325
|
-
|
|
1700
|
+
* `(kind, revision_id)` pairs. No new revisions are allocated — use the
|
|
1701
|
+
* per-kind create endpoints for that, then pin the ids here.
|
|
1702
|
+
*
|
|
1703
|
+
* Every referenced `revision_id` must exist in the project. Each one's handle
|
|
1704
|
+
* is read from the revision itself and recorded on the release, so a resource
|
|
1705
|
+
* is always pinned under the identity it declares.
|
|
1706
|
+
*
|
|
1707
|
+
* Creating a release does not deploy it. A release is environment-agnostic
|
|
1708
|
+
* and the same release can later be deployed to any number of environments
|
|
1709
|
+
* unchanged.
|
|
1710
|
+
*
|
|
1711
|
+
* Idempotent on the pinned set: metadata is excluded from the comparison, so
|
|
1712
|
+
* re-submitting the same revisions with a different `message` returns the
|
|
1713
|
+
* release that already pins them rather than creating a second one.
|
|
1326
1714
|
* @summary Create a release
|
|
1327
1715
|
*/
|
|
1328
1716
|
const createRelease = async (createReleaseBody, params, options) => {
|
|
1717
|
+
const getHeaders = (h) => {
|
|
1718
|
+
if (!h) return {};
|
|
1719
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1720
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1721
|
+
const headers = {};
|
|
1722
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1723
|
+
return headers;
|
|
1724
|
+
};
|
|
1329
1725
|
return customFetch(getCreateReleaseUrl(params), {
|
|
1330
1726
|
...options,
|
|
1331
1727
|
method: "POST",
|
|
1332
1728
|
headers: {
|
|
1333
1729
|
"Content-Type": "application/json",
|
|
1334
|
-
...options?.headers
|
|
1730
|
+
...getHeaders(options?.headers)
|
|
1335
1731
|
},
|
|
1336
1732
|
body: JSON.stringify(createReleaseBody)
|
|
1337
1733
|
});
|
|
@@ -1339,17 +1735,16 @@ const createRelease = async (createReleaseBody, params, options) => {
|
|
|
1339
1735
|
const getListReleasesUrl = (params) => {
|
|
1340
1736
|
const normalizedParams = new URLSearchParams();
|
|
1341
1737
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1342
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1738
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1343
1739
|
});
|
|
1344
1740
|
const stringifiedParams = normalizedParams.toString();
|
|
1345
1741
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/releases?${stringifiedParams}` : `${getProxyPath()}/releases`;
|
|
1346
1742
|
};
|
|
1347
1743
|
/**
|
|
1348
1744
|
* Lists the project's releases, newest first.
|
|
1349
|
-
|
|
1350
|
-
Entries carry metadata only — the pinned set is omitted. Read one release
|
|
1351
|
-
with `GET /releases/{release_id}` to get its pointers.
|
|
1352
|
-
|
|
1745
|
+
*
|
|
1746
|
+
* Entries carry metadata only — the pinned set is omitted. Read one release
|
|
1747
|
+
* with `GET /releases/{release_id}` to get its pointers.
|
|
1353
1748
|
* @summary List releases
|
|
1354
1749
|
*/
|
|
1355
1750
|
const listReleases = async (params, options) => {
|
|
@@ -1361,23 +1756,22 @@ const listReleases = async (params, options) => {
|
|
|
1361
1756
|
const getGetReleaseByIdUrl = (releaseId, params) => {
|
|
1362
1757
|
const normalizedParams = new URLSearchParams();
|
|
1363
1758
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1364
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1759
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1365
1760
|
});
|
|
1366
1761
|
const stringifiedParams = normalizedParams.toString();
|
|
1367
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/releases/${releaseId}?${stringifiedParams}` : `${getProxyPath()}/releases/${releaseId}`;
|
|
1762
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/releases/${encodeURIComponent(String(releaseId))}?${stringifiedParams}` : `${getProxyPath()}/releases/${encodeURIComponent(String(releaseId))}`;
|
|
1368
1763
|
};
|
|
1369
1764
|
/**
|
|
1370
1765
|
* Reads one release: its metadata and the `(kind, handle, revision_id)`
|
|
1371
|
-
tuples it pins.
|
|
1372
|
-
|
|
1373
|
-
Does not embed resource content. Resolve each `revision_id` through the
|
|
1374
|
-
per-kind read endpoints when the bytes are needed.
|
|
1375
|
-
|
|
1376
|
-
The lookup is scoped to the project in `project_id`: a release id belonging
|
|
1377
|
-
to another project answers not found exactly as an unknown id does, so the
|
|
1378
|
-
endpoint cannot be used to probe for releases in projects the caller cannot
|
|
1379
|
-
read.
|
|
1380
|
-
|
|
1766
|
+
* tuples it pins.
|
|
1767
|
+
*
|
|
1768
|
+
* Does not embed resource content. Resolve each `revision_id` through the
|
|
1769
|
+
* per-kind read endpoints when the bytes are needed.
|
|
1770
|
+
*
|
|
1771
|
+
* The lookup is scoped to the project in `project_id`: a release id belonging
|
|
1772
|
+
* to another project answers not found exactly as an unknown id does, so the
|
|
1773
|
+
* endpoint cannot be used to probe for releases in projects the caller cannot
|
|
1774
|
+
* read.
|
|
1381
1775
|
* @summary Get a release by id
|
|
1382
1776
|
*/
|
|
1383
1777
|
const getReleaseById = async (releaseId, params, options) => {
|
|
@@ -1389,28 +1783,48 @@ const getReleaseById = async (releaseId, params, options) => {
|
|
|
1389
1783
|
const getCreateGrantUrl = (params) => {
|
|
1390
1784
|
const normalizedParams = new URLSearchParams();
|
|
1391
1785
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1392
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1786
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1393
1787
|
});
|
|
1394
1788
|
const stringifiedParams = normalizedParams.toString();
|
|
1395
1789
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/grants?${stringifiedParams}` : `${getProxyPath()}/grants`;
|
|
1396
1790
|
};
|
|
1397
1791
|
/**
|
|
1398
1792
|
* Bind a user or team to `project.viewer`, `project.editor`, or
|
|
1399
|
-
`project.admin` on the project identified by the `project-id` header.
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1793
|
+
* `project.admin` on the project identified by the `project-id` header.
|
|
1794
|
+
* Name the principal with `user` (`user_id` or `identifier`) or `team`
|
|
1795
|
+
* (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
|
|
1796
|
+
* (`project.team`) grants are not created here — claim owns that path. An
|
|
1797
|
+
* unrevoked grant with the same principal and relation occupies the unique
|
|
1798
|
+
* key even after `expires_at`; DELETE it before re-creating.
|
|
1799
|
+
* Create does not accept `expand`. The `user_id` and team locators
|
|
1800
|
+
* return 201, whose `user` / `team` carry only `user_id` / `team_id`,
|
|
1801
|
+
* and still 404 / 409 when the principal is missing or the tuple
|
|
1802
|
+
* already exists. Creating by `user.identifier` answers 202 with no
|
|
1803
|
+
* body on every outcome. Granting the session caller's own user is
|
|
1804
|
+
* `grant.invalid` on either user locator. Read the grant back for
|
|
1805
|
+
* identifier and display.
|
|
1806
|
+
*
|
|
1807
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
1808
|
+
* session cookie (`nextgenSession`). Session callers are authorized as
|
|
1809
|
+
* the human against the target project (home may differ). CSRF/Origin
|
|
1810
|
+
* for cookie mutations is a follow-up (#1140).
|
|
1405
1811
|
* @summary Create grant
|
|
1406
1812
|
*/
|
|
1407
1813
|
const createGrant = async (createGrantBody, params, options) => {
|
|
1814
|
+
const getHeaders = (h) => {
|
|
1815
|
+
if (!h) return {};
|
|
1816
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1817
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1818
|
+
const headers = {};
|
|
1819
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1820
|
+
return headers;
|
|
1821
|
+
};
|
|
1408
1822
|
return customFetch(getCreateGrantUrl(params), {
|
|
1409
1823
|
...options,
|
|
1410
1824
|
method: "POST",
|
|
1411
1825
|
headers: {
|
|
1412
1826
|
"Content-Type": "application/json",
|
|
1413
|
-
...options?.headers
|
|
1827
|
+
...getHeaders(options?.headers)
|
|
1414
1828
|
},
|
|
1415
1829
|
body: JSON.stringify(createGrantBody)
|
|
1416
1830
|
});
|
|
@@ -1418,32 +1832,45 @@ const createGrant = async (createGrantBody, params, options) => {
|
|
|
1418
1832
|
const getQueryGrantsUrl = (params) => {
|
|
1419
1833
|
const normalizedParams = new URLSearchParams();
|
|
1420
1834
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1421
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1835
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1422
1836
|
});
|
|
1423
1837
|
const stringifiedParams = normalizedParams.toString();
|
|
1424
1838
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/query?${stringifiedParams}` : `${getProxyPath()}/grants/query`;
|
|
1425
1839
|
};
|
|
1426
1840
|
/**
|
|
1427
1841
|
* Returns the collaboration grants of a project, paginated with a cursor.
|
|
1428
|
-
Only unrevoked grants this API manages are listed (user or team bound to
|
|
1429
|
-
viewer, editor, or admin), including expired grants so a client can
|
|
1430
|
-
DELETE before re-granting. Project-secret setup (`sk_proj`) and
|
|
1431
|
-
owning-team (`relation=team`) rows are not returned. Grants are not in
|
|
1432
|
-
`resource_scope_index`; project scope is required on the query (same as
|
|
1433
|
-
get). Requires `project.read`. `expand: ["principal"]`
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1842
|
+
* Only unrevoked grants this API manages are listed (user or team bound to
|
|
1843
|
+
* viewer, editor, or admin), including expired grants so a client can
|
|
1844
|
+
* DELETE before re-granting. Project-secret setup (`sk_proj`) and
|
|
1845
|
+
* owning-team (`relation=team`) rows are not returned. Grants are not in
|
|
1846
|
+
* `resource_scope_index`; project scope is required on the query (same as
|
|
1847
|
+
* get). Requires `project.read`. `expand: ["principal"]` adds envelope
|
|
1848
|
+
* fields on `user` / `team` and additionally requires `user.read` and
|
|
1849
|
+
* `team.read` for project secrets (documented on the expand enum; those
|
|
1850
|
+
* scopes cannot be ANDed onto this security block because they are
|
|
1851
|
+
* body-conditional). A user-bound Console session that already passed
|
|
1852
|
+
* the project Check may expand without those scopes.
|
|
1853
|
+
*
|
|
1854
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
1855
|
+
* session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
1856
|
+
* is a follow-up (#1140).
|
|
1438
1857
|
* @summary Query grants
|
|
1439
1858
|
*/
|
|
1440
1859
|
const queryGrants = async (queryGrantsBody, params, options) => {
|
|
1860
|
+
const getHeaders = (h) => {
|
|
1861
|
+
if (!h) return {};
|
|
1862
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1863
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1864
|
+
const headers = {};
|
|
1865
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1866
|
+
return headers;
|
|
1867
|
+
};
|
|
1441
1868
|
return customFetch(getQueryGrantsUrl(params), {
|
|
1442
1869
|
...options,
|
|
1443
1870
|
method: "POST",
|
|
1444
1871
|
headers: {
|
|
1445
1872
|
"Content-Type": "application/json",
|
|
1446
|
-
...options?.headers
|
|
1873
|
+
...getHeaders(options?.headers)
|
|
1447
1874
|
},
|
|
1448
1875
|
body: JSON.stringify(queryGrantsBody)
|
|
1449
1876
|
});
|
|
@@ -1451,21 +1878,34 @@ const queryGrants = async (queryGrantsBody, params, options) => {
|
|
|
1451
1878
|
const getGetGrantUrl = (id, params) => {
|
|
1452
1879
|
const normalizedParams = new URLSearchParams();
|
|
1453
1880
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1454
|
-
if (
|
|
1881
|
+
if (Array.isArray(value) && ["expand"].includes(key)) {
|
|
1882
|
+
value.forEach((v) => {
|
|
1883
|
+
normalizedParams.append(key, v === null ? "null" : String(v));
|
|
1884
|
+
});
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1887
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1455
1888
|
});
|
|
1456
1889
|
const stringifiedParams = normalizedParams.toString();
|
|
1457
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${id}?${stringifiedParams}` : `${getProxyPath()}/grants/${id}`;
|
|
1890
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/grants/${encodeURIComponent(String(id))}`;
|
|
1458
1891
|
};
|
|
1459
1892
|
/**
|
|
1460
1893
|
* Loads a grant by `(project_id, id)` that this API manages (user or team
|
|
1461
|
-
bound to viewer, editor, or admin) and that has not been revoked.
|
|
1462
|
-
"Active" here means not revoked: expired grants stay visible so the
|
|
1463
|
-
client can DELETE before re-granting the same binding. Authorization
|
|
1464
|
-
still ignores expired grants. Grants are not registered in
|
|
1465
|
-
`resource_scope_index`; project scope is required on the query (same as
|
|
1466
|
-
events). Misses, revoked rows, project-secret setup (`sk_proj`),
|
|
1467
|
-
owning-team (`relation=team`) rows, and cross-project ids return 404.
|
|
1468
|
-
|
|
1894
|
+
* bound to viewer, editor, or admin) and that has not been revoked.
|
|
1895
|
+
* "Active" here means not revoked: expired grants stay visible so the
|
|
1896
|
+
* client can DELETE before re-granting the same binding. Authorization
|
|
1897
|
+
* still ignores expired grants. Grants are not registered in
|
|
1898
|
+
* `resource_scope_index`; project scope is required on the query (same as
|
|
1899
|
+
* events). Misses, revoked rows, project-secret setup (`sk_proj`),
|
|
1900
|
+
* owning-team (`relation=team`) rows, and cross-project ids return 404.
|
|
1901
|
+
* `expand=principal` adds envelope fields on `user` or `team` and requires
|
|
1902
|
+
* `user.read` and `team.read` in addition to `project.read` for project
|
|
1903
|
+
* secrets. A user-bound Console session that already passed the project
|
|
1904
|
+
* Check may expand without those scopes.
|
|
1905
|
+
*
|
|
1906
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
1907
|
+
* session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
1908
|
+
* is a follow-up (#1140).
|
|
1469
1909
|
* @summary Get grant
|
|
1470
1910
|
*/
|
|
1471
1911
|
const getGrant = async (id, params, options) => {
|
|
@@ -1477,17 +1917,20 @@ const getGrant = async (id, params, options) => {
|
|
|
1477
1917
|
const getDeleteGrantUrl = (id, params) => {
|
|
1478
1918
|
const normalizedParams = new URLSearchParams();
|
|
1479
1919
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1480
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1920
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1481
1921
|
});
|
|
1482
1922
|
const stringifiedParams = normalizedParams.toString();
|
|
1483
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${id}?${stringifiedParams}` : `${getProxyPath()}/grants/${id}`;
|
|
1923
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/grants/${encodeURIComponent(String(id))}`;
|
|
1484
1924
|
};
|
|
1485
1925
|
/**
|
|
1486
1926
|
* Soft-revokes a grant this API manages and emits `authz.revoked`.
|
|
1487
|
-
Already-revoked, missing, project-secret setup, and owning-team grants
|
|
1488
|
-
return 404. The row is not un-revoked. Expired grants can still be
|
|
1489
|
-
revoked so the unique binding can be reused.
|
|
1490
|
-
|
|
1927
|
+
* Already-revoked, missing, project-secret setup, and owning-team grants
|
|
1928
|
+
* return 404. The row is not un-revoked. Expired grants can still be
|
|
1929
|
+
* revoked so the unique binding can be reused.
|
|
1930
|
+
*
|
|
1931
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
1932
|
+
* session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
1933
|
+
* is a follow-up (#1140).
|
|
1491
1934
|
* @summary Revoke grant
|
|
1492
1935
|
*/
|
|
1493
1936
|
const deleteGrant = async (id, params, options) => {
|
|
@@ -1501,28 +1944,27 @@ const getListEventsUrl = (params) => {
|
|
|
1501
1944
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1502
1945
|
if (Array.isArray(value) && ["category", "event_type"].includes(key)) {
|
|
1503
1946
|
value.forEach((v) => {
|
|
1504
|
-
normalizedParams.append(key, v === null ? "null" : v
|
|
1947
|
+
normalizedParams.append(key, v === null ? "null" : String(v));
|
|
1505
1948
|
});
|
|
1506
1949
|
return;
|
|
1507
1950
|
}
|
|
1508
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1951
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1509
1952
|
});
|
|
1510
1953
|
const stringifiedParams = normalizedParams.toString();
|
|
1511
1954
|
return stringifiedParams.length > 0 ? `${getProxyPath()}/events?${stringifiedParams}` : `${getProxyPath()}/events`;
|
|
1512
1955
|
};
|
|
1513
1956
|
/**
|
|
1514
1957
|
* Returns project-scoped audit events, newest-first by keyset on
|
|
1515
|
-
`(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
|
|
1516
|
-
Requires `events.read`.
|
|
1517
|
-
|
|
1518
|
-
Pre-claim projects return an empty list (events are stored but not
|
|
1519
|
-
visible until claim succeeds). Team-scoped credentials see only events
|
|
1520
|
-
whose emit-time `team_id` matches the credential team (enforced when
|
|
1521
|
-
team-scoped tokens exist).
|
|
1522
|
-
|
|
1523
|
-
Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
|
|
1524
|
-
see docs/design/api/events-catalog.md.
|
|
1525
|
-
|
|
1958
|
+
* `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
|
|
1959
|
+
* Requires `events.read`.
|
|
1960
|
+
*
|
|
1961
|
+
* Pre-claim projects return an empty list (events are stored but not
|
|
1962
|
+
* visible until claim succeeds). Team-scoped credentials see only events
|
|
1963
|
+
* whose emit-time `team_id` matches the credential team (enforced when
|
|
1964
|
+
* team-scoped tokens exist).
|
|
1965
|
+
*
|
|
1966
|
+
* Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
|
|
1967
|
+
* see docs/design/api/events-catalog.md.
|
|
1526
1968
|
* @summary List events
|
|
1527
1969
|
*/
|
|
1528
1970
|
const listEvents = async (params, options) => {
|
|
@@ -1534,18 +1976,17 @@ const listEvents = async (params, options) => {
|
|
|
1534
1976
|
const getGetEventUrl = (id, params) => {
|
|
1535
1977
|
const normalizedParams = new URLSearchParams();
|
|
1536
1978
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1537
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value
|
|
1979
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1538
1980
|
});
|
|
1539
1981
|
const stringifiedParams = normalizedParams.toString();
|
|
1540
|
-
return stringifiedParams.length > 0 ? `${getProxyPath()}/events/${id}?${stringifiedParams}` : `${getProxyPath()}/events/${id}`;
|
|
1982
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/events/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/events/${encodeURIComponent(String(id))}`;
|
|
1541
1983
|
};
|
|
1542
1984
|
/**
|
|
1543
1985
|
* Loads a single event by `(project_id, id)`. Requires `events.read`.
|
|
1544
|
-
Events are not registered in `resource_scope_index`; project scope is
|
|
1545
|
-
required on the query (ADR 049). Misses and cross-project ids return 404.
|
|
1546
|
-
|
|
1547
|
-
Pre-claim projects return 404 (stored events stay invisible until claim).
|
|
1548
|
-
|
|
1986
|
+
* Events are not registered in `resource_scope_index`; project scope is
|
|
1987
|
+
* required on the query (ADR 049). Misses and cross-project ids return 404.
|
|
1988
|
+
*
|
|
1989
|
+
* Pre-claim projects return 404 (stored events stay invisible until claim).
|
|
1549
1990
|
* @summary Get event by ID
|
|
1550
1991
|
*/
|
|
1551
1992
|
const getEvent = async (id, params, options) => {
|
|
@@ -1554,7 +1995,236 @@ const getEvent = async (id, params, options) => {
|
|
|
1554
1995
|
method: "GET"
|
|
1555
1996
|
});
|
|
1556
1997
|
};
|
|
1998
|
+
const getGetVariablesUrl = (params) => {
|
|
1999
|
+
const normalizedParams = new URLSearchParams();
|
|
2000
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2001
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2002
|
+
});
|
|
2003
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2004
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/variables?${stringifiedParams}` : `${getProxyPath()}/variables`;
|
|
2005
|
+
};
|
|
2006
|
+
/**
|
|
2007
|
+
* Returns the variables entered at the owner this request addresses, keyed by
|
|
2008
|
+
* name — one environment of the project with `environment_name`, the project
|
|
2009
|
+
* level itself without it.
|
|
2010
|
+
*
|
|
2011
|
+
* Owners are separate, not a ladder: an environment does not inherit the
|
|
2012
|
+
* project's variables and the project does not see its environments'. Reading
|
|
2013
|
+
* everything a project holds therefore means reading each owner in turn.
|
|
2014
|
+
*
|
|
2015
|
+
* Secret values are not returned. A secret appears as `{"secret": true}`,
|
|
2016
|
+
* which says a value is held without disclosing it.
|
|
2017
|
+
* @summary Get variables
|
|
2018
|
+
*/
|
|
2019
|
+
const getVariables = async (params, options) => {
|
|
2020
|
+
return customFetch(getGetVariablesUrl(params), {
|
|
2021
|
+
...options,
|
|
2022
|
+
method: "GET"
|
|
2023
|
+
});
|
|
2024
|
+
};
|
|
2025
|
+
const getUpdateVariablesUrl = (params) => {
|
|
2026
|
+
const normalizedParams = new URLSearchParams();
|
|
2027
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2028
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2029
|
+
});
|
|
2030
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2031
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/variables?${stringifiedParams}` : `${getProxyPath()}/variables`;
|
|
2032
|
+
};
|
|
2033
|
+
/**
|
|
2034
|
+
* Enters, replaces and removes variables at the owner this request
|
|
2035
|
+
* addresses.
|
|
2036
|
+
*
|
|
2037
|
+
* Every name in the body is applied at exactly that owner — the project, or
|
|
2038
|
+
* the environment named by `environment_name` — and reaches no other. Names
|
|
2039
|
+
* not in the body are untouched.
|
|
2040
|
+
*
|
|
2041
|
+
* A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
|
|
2042
|
+
* stores the value encrypted under the project's active `secret` key, after
|
|
2043
|
+
* which it can be referenced but not read back. `null` removes the name from
|
|
2044
|
+
* this owner (RFC 7386), which is how several variables are removed in one
|
|
2045
|
+
* request; removing a name this owner does not hold is a no-op rather than an
|
|
2046
|
+
* error.
|
|
2047
|
+
*
|
|
2048
|
+
* The body is applied whole or not at all, so a rejected request leaves the
|
|
2049
|
+
* owner exactly as it was. Writing the same name and owner twice replaces the
|
|
2050
|
+
* value rather than duplicating it, which makes a retry safe.
|
|
2051
|
+
* @summary Update variables
|
|
2052
|
+
*/
|
|
2053
|
+
const updateVariables = async (updateVariablesBody, params, options) => {
|
|
2054
|
+
const getHeaders = (h) => {
|
|
2055
|
+
if (!h) return {};
|
|
2056
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2057
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2058
|
+
const headers = {};
|
|
2059
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2060
|
+
return headers;
|
|
2061
|
+
};
|
|
2062
|
+
return customFetch(getUpdateVariablesUrl(params), {
|
|
2063
|
+
...options,
|
|
2064
|
+
method: "PATCH",
|
|
2065
|
+
headers: {
|
|
2066
|
+
"Content-Type": "application/json",
|
|
2067
|
+
...getHeaders(options?.headers)
|
|
2068
|
+
},
|
|
2069
|
+
body: JSON.stringify(updateVariablesBody)
|
|
2070
|
+
});
|
|
2071
|
+
};
|
|
2072
|
+
const getGetVariableUrl = (variableName, params) => {
|
|
2073
|
+
const normalizedParams = new URLSearchParams();
|
|
2074
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2075
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2076
|
+
});
|
|
2077
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2078
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}`;
|
|
2079
|
+
};
|
|
2080
|
+
/**
|
|
2081
|
+
* Reads one variable by name from the owner this request addresses — one
|
|
2082
|
+
* environment of the project with `environment_name`, the project level
|
|
2083
|
+
* itself without it.
|
|
2084
|
+
*
|
|
2085
|
+
* A name that owner has not entered answers `var.not_found`, even when
|
|
2086
|
+
* another owner of the same project holds it: nothing is inherited. A secret
|
|
2087
|
+
* is found but not disclosed: the response is `{"secret": true}`.
|
|
2088
|
+
* @summary Get a variable
|
|
2089
|
+
*/
|
|
2090
|
+
const getVariable = async (variableName, params, options) => {
|
|
2091
|
+
return customFetch(getGetVariableUrl(variableName, params), {
|
|
2092
|
+
...options,
|
|
2093
|
+
method: "GET"
|
|
2094
|
+
});
|
|
2095
|
+
};
|
|
2096
|
+
const getDeleteVariableUrl = (variableName, params) => {
|
|
2097
|
+
const normalizedParams = new URLSearchParams();
|
|
2098
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2099
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2100
|
+
});
|
|
2101
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2102
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}`;
|
|
2103
|
+
};
|
|
2104
|
+
/**
|
|
2105
|
+
* Removes the variable this owner entered under this name.
|
|
2106
|
+
*
|
|
2107
|
+
* A variable is deletable only by the owner that entered it. Deleting a name
|
|
2108
|
+
* another owner of the same project holds answers `var.not_found` and leaves
|
|
2109
|
+
* that owner's value standing.
|
|
2110
|
+
* @summary Delete a variable
|
|
2111
|
+
*/
|
|
2112
|
+
const deleteVariable = async (variableName, params, options) => {
|
|
2113
|
+
return customFetch(getDeleteVariableUrl(variableName, params), {
|
|
2114
|
+
...options,
|
|
2115
|
+
method: "DELETE"
|
|
2116
|
+
});
|
|
2117
|
+
};
|
|
2118
|
+
const getCreateDeploymentUrl = (params) => {
|
|
2119
|
+
const normalizedParams = new URLSearchParams();
|
|
2120
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2121
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2122
|
+
});
|
|
2123
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2124
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/deployments?${stringifiedParams}` : `${getProxyPath()}/deployments`;
|
|
2125
|
+
};
|
|
2126
|
+
/**
|
|
2127
|
+
* Makes a release live on an environment by recording a deployment. The two
|
|
2128
|
+
* happen atomically: when the call returns, the environment runs the named
|
|
2129
|
+
* release and the record exists; on any failure the environment keeps
|
|
2130
|
+
* running what it ran and no record is written.
|
|
2131
|
+
*
|
|
2132
|
+
* Deploying, promoting and rolling back are all this call — `reason` says
|
|
2133
|
+
* which. None of them assembles a release: the release must already exist,
|
|
2134
|
+
* and rolling back means deploying a release the environment ran earlier,
|
|
2135
|
+
* chosen from its deployment history.
|
|
2136
|
+
*
|
|
2137
|
+
* Idempotent on the running release: deploying the release the environment
|
|
2138
|
+
* already runs changes nothing and answers `200` with the deployment that
|
|
2139
|
+
* made it live, so a re-run of `zitadel deploy` on unchanged content is a
|
|
2140
|
+
* no-op end to end — matching `POST /releases`, which resolves the same
|
|
2141
|
+
* content to the same release first. Anything else writes a new record,
|
|
2142
|
+
* including the same release returning after something else ran in between:
|
|
2143
|
+
* the log is append-only, and each row is one act of making a release live.
|
|
2144
|
+
*
|
|
2145
|
+
* `expected_current_deployment_id` guards against racing another deploy:
|
|
2146
|
+
* when present, the swap only happens if the environment's current
|
|
2147
|
+
* deployment still is the one named, and a mismatch answers `409` with the
|
|
2148
|
+
* actual `current_deployment_id` and `current_release_id` in the details.
|
|
2149
|
+
* @summary Create a deployment
|
|
2150
|
+
*/
|
|
2151
|
+
const createDeployment = async (createDeploymentBody, params, options) => {
|
|
2152
|
+
const getHeaders = (h) => {
|
|
2153
|
+
if (!h) return {};
|
|
2154
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2155
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2156
|
+
const headers = {};
|
|
2157
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2158
|
+
return headers;
|
|
2159
|
+
};
|
|
2160
|
+
return customFetch(getCreateDeploymentUrl(params), {
|
|
2161
|
+
...options,
|
|
2162
|
+
method: "POST",
|
|
2163
|
+
headers: {
|
|
2164
|
+
"Content-Type": "application/json",
|
|
2165
|
+
...getHeaders(options?.headers)
|
|
2166
|
+
},
|
|
2167
|
+
body: JSON.stringify(createDeploymentBody)
|
|
2168
|
+
});
|
|
2169
|
+
};
|
|
2170
|
+
const getListDeploymentsUrl = (params) => {
|
|
2171
|
+
const normalizedParams = new URLSearchParams();
|
|
2172
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2173
|
+
if (Array.isArray(value) && ["expand"].includes(key)) {
|
|
2174
|
+
value.forEach((v) => {
|
|
2175
|
+
normalizedParams.append(key, v === null ? "null" : String(v));
|
|
2176
|
+
});
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2179
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2180
|
+
});
|
|
2181
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2182
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/deployments?${stringifiedParams}` : `${getProxyPath()}/deployments`;
|
|
2183
|
+
};
|
|
2184
|
+
/**
|
|
2185
|
+
* Lists deployments newest first: what ran where, and when.
|
|
2186
|
+
*
|
|
2187
|
+
* With `environment_name`, the list is that environment's history and its
|
|
2188
|
+
* first row is the environment's current deployment. Without it, the list
|
|
2189
|
+
* interleaves every environment of the project — a project-wide audit view
|
|
2190
|
+
* in which the first row is only the most recent deployment anywhere.
|
|
2191
|
+
*
|
|
2192
|
+
* `expand: ["release"]` embeds the release each deployment made live, so a
|
|
2193
|
+
* history renders with each entry's content without resolving `release_id`
|
|
2194
|
+
* one by one. Expanding requires `release.read` and does not affect the
|
|
2195
|
+
* ordering or the page tokens.
|
|
2196
|
+
* @summary List deployments
|
|
2197
|
+
*/
|
|
2198
|
+
const listDeployments = async (params, options) => {
|
|
2199
|
+
return customFetch(getListDeploymentsUrl(params), {
|
|
2200
|
+
...options,
|
|
2201
|
+
method: "GET"
|
|
2202
|
+
});
|
|
2203
|
+
};
|
|
2204
|
+
const getGetDeploymentByIdUrl = (deploymentId, params) => {
|
|
2205
|
+
const normalizedParams = new URLSearchParams();
|
|
2206
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2207
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2208
|
+
});
|
|
2209
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2210
|
+
return stringifiedParams.length > 0 ? `${getProxyPath()}/deployments/${encodeURIComponent(String(deploymentId))}?${stringifiedParams}` : `${getProxyPath()}/deployments/${encodeURIComponent(String(deploymentId))}`;
|
|
2211
|
+
};
|
|
2212
|
+
/**
|
|
2213
|
+
* Reads one deployment record.
|
|
2214
|
+
*
|
|
2215
|
+
* The lookup is scoped to the project in `project_id`: a deployment id
|
|
2216
|
+
* belonging to another project answers not found exactly as an unknown id
|
|
2217
|
+
* does, so the endpoint cannot be used to probe for deployments in projects
|
|
2218
|
+
* the caller cannot read.
|
|
2219
|
+
* @summary Get a deployment by id
|
|
2220
|
+
*/
|
|
2221
|
+
const getDeploymentById = async (deploymentId, params, options) => {
|
|
2222
|
+
return customFetch(getGetDeploymentByIdUrl(deploymentId, params), {
|
|
2223
|
+
...options,
|
|
2224
|
+
method: "GET"
|
|
2225
|
+
});
|
|
2226
|
+
};
|
|
1557
2227
|
//#endregion
|
|
1558
|
-
export { beginUserPasskeyRegistration, completeClaim, createAuthAttempt, createBranding, createFlow, createFlowDefinition, createGrant, createHandoff, createProject, createRelease, createSchema, createSession, createTeam, createUser,
|
|
2228
|
+
export { beginUserPasskeyRegistration, completeClaim, createAuthAttempt, createBranding, createDeployment, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, exchangeHandoff, finishUserPasskeyRegistration, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateDeploymentUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getDeploymentById, getEnvironmentByName, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetDeploymentByIdUrl, getGetEnvironmentByNameUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetHealthUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMySessionUrl, getGetMyUserUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getHealth, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListDeploymentsUrl, getListEnvironmentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyProjectsUrl, getListReleasesUrl, getListSchemasUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMySession, getMyUser, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getProject, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRevokeMySessionUrl, getRevokeSessionUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listDeployments, listEnvironments, listEvents, listFlowDefinitions, listIdpRevisions, listMyProjects, listReleases, listSchemas, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, revokeMySession, revokeSession, setUserPassword, submitFlowStep, zitadelNextGen_exports as t, updateTeam, updateVariables, verifyChallengeProof };
|
|
1559
2229
|
|
|
1560
2230
|
//# sourceMappingURL=zitadelNextGen.mjs.map
|