@zitadel/api 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-factory-BPmRCU7u.mjs +372 -0
- package/dist/api-factory-BPmRCU7u.mjs.map +1 -0
- package/dist/api-factory-DCzYxpdV.d.mts +223 -0
- package/dist/api-factory-DCzYxpdV.d.mts.map +1 -0
- package/dist/fetch-BLgYBrzi.d.mts +134 -0
- package/dist/fetch-BLgYBrzi.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +1 -3868
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +69 -71
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +2240 -751
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1751 -941
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +2161 -1411
- 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 +515 -889
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.d.mts +1 -3
- package/dist/generated/operations.d.mts.map +1 -1
- package/dist/generated/operations.mjs +154 -108
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/index-BwYxe7Dw.d.mts +59554 -0
- package/dist/index-BwYxe7Dw.d.mts.map +1 -0
- package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/api-factory.mjs +1 -2
- package/dist/runtime/auth.d.mts +0 -2
- package/dist/runtime/auth.d.mts.map +1 -1
- package/dist/runtime/auth.mjs +1 -2
- package/dist/runtime/base-url.d.mts +0 -2
- package/dist/runtime/base-url.d.mts.map +1 -1
- package/dist/runtime/base-url.mjs +1 -2
- package/dist/runtime/config.d.mts +1 -3
- package/dist/runtime/config.d.mts.map +1 -1
- package/dist/runtime/config.mjs +2 -3
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +2 -3
- package/dist/runtime/paging.d.mts +0 -2
- package/dist/runtime/paging.d.mts.map +1 -1
- package/dist/runtime/paging.mjs +1 -2
- package/dist/zitadelNextGen-DsPFGqLs.mjs +3926 -0
- package/dist/zitadelNextGen-DsPFGqLs.mjs.map +1 -0
- package/dist/zitadelNextGen-SGK-fW1x.d.mts +1989 -0
- package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +1 -0
- package/package.json +7 -9
- package/src/generated/endpoints/zitadelNextGen.faker.ts +93 -88
- package/src/generated/endpoints/zitadelNextGen.msw.ts +192 -177
- package/src/generated/endpoints/zitadelNextGen.ts +422 -352
- package/src/generated/endpoints/zitadelNextGen.zod.ts +2135 -1484
- package/src/generated/model/acceptInvitation200.ts +6 -6
- package/src/generated/model/addProjectOrigin201.ts +18 -0
- package/src/generated/model/addProjectOrigin201Kind.ts +18 -0
- package/src/generated/model/addProjectOriginBody.ts +35 -0
- package/src/generated/model/addProjectOriginBodyKind.ts +19 -0
- package/src/generated/model/addProjectOriginDefault.ts +135 -0
- package/src/generated/model/buildRelease200.ts +4 -4
- package/src/generated/model/buildRelease200PointersItem.ts +3 -1
- package/src/generated/model/buildRelease200PointersItemKind.ts +2 -1
- package/src/generated/model/buildRelease201.ts +4 -4
- package/src/generated/model/buildRelease201PointersItem.ts +3 -1
- package/src/generated/model/buildRelease201PointersItemKind.ts +2 -1
- package/src/generated/model/buildRelease400DetailsResourcesItem.ts +2 -2
- package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +2 -1
- package/src/generated/model/buildReleaseBody.ts +7 -5
- package/src/generated/model/buildReleaseBodyBundle.ts +23 -6
- package/src/generated/model/buildReleaseBodyBundleBranding.ts +1 -1
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +2 -12
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +2 -9
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -2
- package/src/generated/model/buildReleaseBodyBundleOauth.ts +30 -0
- package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +20 -0
- package/src/generated/model/cancelInvitationDefault.ts +9 -0
- package/src/generated/model/completeProjectClaim200.ts +19 -0
- package/src/generated/model/completeProjectClaim400.ts +20 -0
- package/src/generated/model/completeProjectClaim400Details.ts +12 -0
- package/src/generated/model/completeProjectClaim401.ts +23 -0
- package/src/generated/model/completeProjectClaim403.ts +36 -0
- package/src/generated/model/completeProjectClaim404.ts +20 -0
- package/src/generated/model/completeProjectClaim404Details.ts +12 -0
- package/src/generated/model/completeProjectClaim409.ts +25 -0
- package/src/generated/model/completeProjectClaim409Details.ts +14 -0
- package/src/generated/model/completeProjectClaim410.ts +27 -0
- package/src/generated/model/completeProjectClaim429.ts +20 -0
- package/src/generated/model/completeProjectClaim429Details.ts +12 -0
- package/src/generated/model/completeProjectClaimBody.ts +18 -0
- package/src/generated/model/completeProjectClaimDefault.ts +144 -0
- package/src/generated/model/completeUserPasskeyRegistration201.ts +19 -0
- package/src/generated/model/completeUserPasskeyRegistration400.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration400Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration401.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration401Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration403.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration403Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration404.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration404Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistration429.ts +23 -0
- package/src/generated/model/completeUserPasskeyRegistration500.ts +20 -0
- package/src/generated/model/completeUserPasskeyRegistration500Details.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistrationBody.ts +21 -0
- package/src/generated/model/completeUserPasskeyRegistrationBodyAttestation.ts +12 -0
- package/src/generated/model/completeUserPasskeyRegistrationDefault.ts +189 -0
- package/src/generated/model/createAuthAttempt201ChallengesItem.ts +1 -1
- package/src/generated/model/createAuthAttemptChallenge201.ts +49 -0
- package/src/generated/model/createAuthAttemptChallenge201Method.ts +20 -0
- package/src/generated/model/createAuthAttemptChallenge201Payload.ts +34 -0
- package/src/generated/model/createAuthAttemptChallenge201State.ts +22 -0
- package/src/generated/model/createAuthAttemptChallengeBody.ts +28 -0
- package/src/generated/model/createAuthAttemptChallengeBodyMethod.ts +20 -0
- package/src/generated/model/createAuthAttemptChallengeBodyPasskeyOptions.ts +19 -0
- package/src/generated/model/createAuthAttemptChallengeBodyPasskeyOptionsUserVerification.ts +16 -0
- package/src/generated/model/createAuthAttemptChallengeDefault.ts +90 -0
- package/src/generated/model/createAuthAttemptHandoff200.ts +30 -0
- package/src/generated/model/createAuthAttemptHandoff409.ts +20 -0
- package/src/generated/model/createAuthAttemptHandoff409Details.ts +12 -0
- package/src/generated/model/createAuthAttemptHandoffDefault.ts +99 -0
- package/src/generated/model/createDeployment200.ts +2 -2
- package/src/generated/model/createDeployment200Release.ts +4 -4
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +3 -1
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/createDeployment200TargetsItem.ts +0 -5
- package/src/generated/model/createDeployment201.ts +2 -2
- package/src/generated/model/createDeployment201Release.ts +4 -4
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +3 -1
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/createDeployment201TargetsItem.ts +0 -5
- package/src/generated/model/createDeployment409.ts +8 -11
- package/src/generated/model/createDeploymentBody.ts +2 -2
- package/src/generated/model/createFlow201.ts +1 -1
- package/src/generated/model/createFlow201Branding.ts +1 -1
- package/src/generated/model/createFlow201StepGates.ts +22 -9
- package/src/generated/model/createFlow201StepGatesChallenge.ts +30 -0
- package/src/generated/model/createFlow201StepGatesConfig.ts +2 -2
- package/src/generated/model/createFlow201StepGatesKind.ts +3 -4
- package/src/generated/model/createInvitation201.ts +6 -6
- package/src/generated/model/createInvitationBody.ts +4 -4
- package/src/generated/model/createInvitationDefault.ts +54 -0
- package/src/generated/model/createProjectClaim201.ts +25 -0
- package/src/generated/model/createProjectClaim401.ts +20 -0
- package/src/generated/model/createProjectClaim401Details.ts +12 -0
- package/src/generated/model/createProjectClaim404.ts +23 -0
- package/src/generated/model/createProjectClaim409.ts +25 -0
- package/src/generated/model/createProjectClaim409Details.ts +14 -0
- package/src/generated/model/createProjectClaim410.ts +23 -0
- package/src/generated/model/createProjectClaimDefault.ts +99 -0
- package/src/generated/model/createRelease200.ts +4 -4
- package/src/generated/model/createRelease200PointersItem.ts +3 -1
- package/src/generated/model/createRelease200PointersItemKind.ts +2 -1
- package/src/generated/model/createRelease201.ts +4 -4
- package/src/generated/model/createRelease201PointersItem.ts +3 -1
- package/src/generated/model/createRelease201PointersItemKind.ts +2 -1
- package/src/generated/model/createReleaseBodyPointersItem.ts +1 -1
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +2 -1
- package/src/generated/model/createUser201.ts +1 -1
- package/src/generated/model/createUserBody.ts +1 -1
- package/src/generated/model/createUserPasskeyRegistration201.ts +25 -0
- package/src/generated/model/createUserPasskeyRegistration201Options.ts +13 -0
- package/src/generated/model/createUserPasskeyRegistration400.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration400Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration401.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration401Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration403.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration403Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration404.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration404Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistration500.ts +20 -0
- package/src/generated/model/createUserPasskeyRegistration500Details.ts +12 -0
- package/src/generated/model/createUserPasskeyRegistrationBody.ts +33 -0
- package/src/generated/model/createUserPasskeyRegistrationDefault.ts +126 -0
- package/src/generated/model/deactivateTeam400.ts +20 -0
- package/src/generated/model/deactivateTeam400Details.ts +12 -0
- package/src/generated/model/deactivateTeam401.ts +20 -0
- package/src/generated/model/deactivateTeam401Details.ts +12 -0
- package/src/generated/model/deactivateTeam403.ts +20 -0
- package/src/generated/model/deactivateTeam403Details.ts +12 -0
- package/src/generated/model/deactivateTeam409.ts +20 -0
- package/src/generated/model/deactivateTeam409Details.ts +12 -0
- package/src/generated/model/deactivateTeamDefault.ts +90 -0
- package/src/generated/model/deleteUser401.ts +20 -0
- package/src/generated/model/deleteUser401Details.ts +12 -0
- package/src/generated/model/deleteUser404.ts +20 -0
- package/src/generated/model/deleteUser404Details.ts +12 -0
- package/src/generated/model/deleteUser409.ts +20 -0
- package/src/generated/model/deleteUser409Details.ts +12 -0
- package/src/generated/model/deleteUserDefault.ts +99 -0
- package/src/generated/model/evaluatePolicy200.ts +2 -2
- package/src/generated/model/evaluatePolicyBody.ts +31 -0
- package/src/generated/model/exchangeHandoffBody.ts +2 -2
- package/src/generated/model/getApplication200.ts +43 -0
- package/src/generated/model/getApplication200Definition.ts +35 -0
- package/src/generated/model/getApplication200DefinitionClientsItem.ts +84 -0
- package/src/generated/model/getApplication200DefinitionClientsItemGrantTypesItem.ts +15 -0
- package/src/generated/model/getApplication200DefinitionClientsItemType.ts +19 -0
- package/src/generated/model/getApplication401.ts +20 -0
- package/src/generated/model/getApplication401Details.ts +12 -0
- package/src/generated/model/getApplication403.ts +20 -0
- package/src/generated/model/getApplication403Details.ts +12 -0
- package/src/generated/model/getApplication404.ts +20 -0
- package/src/generated/model/getApplication404Details.ts +12 -0
- package/src/generated/model/getApplicationDefault.ts +72 -0
- package/src/generated/model/getApplicationParams.ts +17 -0
- package/src/generated/model/getAuthAttempt200ChallengesItem.ts +1 -1
- package/src/generated/model/getBranding200.ts +32 -0
- package/src/generated/model/getBranding200Branding.ts +80 -0
- package/src/generated/model/getBranding200BrandingLayout.ts +27 -0
- package/src/generated/model/getBranding200BrandingShape.ts +30 -0
- package/src/generated/model/getBranding200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getBranding200BrandingTheme.ts +41 -0
- package/src/generated/model/getBranding200BrandingThemeDark.ts +34 -0
- package/src/generated/model/getBranding200BrandingThemeDarkPalette.ts +210 -0
- package/src/generated/model/getBranding200BrandingThemeLight.ts +34 -0
- package/src/generated/model/getBranding200BrandingThemeLightPalette.ts +210 -0
- package/src/generated/model/getBranding200BrandingThemeMode.ts +19 -0
- package/src/generated/model/getBranding200BrandingTypography.ts +47 -0
- package/src/generated/model/getBranding404.ts +20 -0
- package/src/generated/model/getBranding404Details.ts +12 -0
- package/src/generated/model/getBrandingDefault.ts +72 -0
- package/src/generated/model/getDeployment200.ts +78 -0
- package/src/generated/model/getDeployment200Kind.ts +18 -0
- package/src/generated/model/getDeployment200Metadata.ts +35 -0
- package/src/generated/model/getDeployment200MetadataDeployedByType.ts +20 -0
- package/src/generated/model/getDeployment200MetadataReason.ts +20 -0
- package/src/generated/model/getDeployment200Release.ts +96 -0
- package/src/generated/model/getDeployment200ReleaseMetadata.ts +43 -0
- package/src/generated/model/getDeployment200ReleaseMetadataCreatedByType.ts +20 -0
- package/src/generated/model/getDeployment200ReleasePointersItem.ts +63 -0
- package/src/generated/model/getDeployment200ReleasePointersItemKind.ts +29 -0
- package/src/generated/model/getDeployment200Status.ts +23 -0
- package/src/generated/model/getDeployment200TargetsItem.ts +23 -0
- package/src/generated/model/getDeploymentDefault.ts +72 -0
- package/src/generated/model/getDeploymentParams.ts +17 -0
- package/src/generated/model/getEvent200.ts +772 -100
- package/src/generated/model/getFlowDefinition200.ts +2 -2
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +2 -12
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +2 -9
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -2
- package/src/generated/model/getFlowDefinition200UserSchema.ts +1 -1
- package/src/generated/model/getFlowStep200.ts +1 -1
- package/src/generated/model/getFlowStep200Branding.ts +1 -1
- package/src/generated/model/getFlowStep200StepGates.ts +22 -9
- package/src/generated/model/getFlowStep200StepGatesChallenge.ts +30 -0
- package/src/generated/model/getFlowStep200StepGatesConfig.ts +2 -2
- package/src/generated/model/getFlowStep200StepGatesKind.ts +3 -4
- package/src/generated/model/getFlowStep429.ts +23 -0
- package/src/generated/model/getFlowStepDefault.ts +18 -0
- package/src/generated/model/getIdp200.ts +39 -0
- package/src/generated/model/getIdp200Definition.ts +44 -0
- package/src/generated/model/getIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdp200DefinitionOidc.ts +65 -0
- package/src/generated/model/getIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdp200DefinitionProtocol.ts +17 -0
- package/src/generated/model/getIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdp401.ts +20 -0
- package/src/generated/model/getIdp401Details.ts +12 -0
- package/src/generated/model/getIdp403.ts +20 -0
- package/src/generated/model/getIdp403Details.ts +12 -0
- package/src/generated/model/getIdp404.ts +20 -0
- package/src/generated/model/getIdp404Details.ts +12 -0
- package/src/generated/model/getIdpDefault.ts +72 -0
- package/src/generated/model/getIdpParams.ts +17 -0
- package/src/generated/model/getIdpRevision200.ts +39 -0
- package/src/generated/model/getIdpRevision200Definition.ts +44 -0
- package/src/generated/model/getIdpRevision200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpRevision200DefinitionOidc.ts +65 -0
- package/src/generated/model/getIdpRevision200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpRevision200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevision200DefinitionProtocol.ts +17 -0
- package/src/generated/model/getIdpRevision200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpRevision200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpRevision200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpRevision401.ts +20 -0
- package/src/generated/model/getIdpRevision401Details.ts +12 -0
- package/src/generated/model/getIdpRevision403.ts +20 -0
- package/src/generated/model/getIdpRevision403Details.ts +12 -0
- package/src/generated/model/getIdpRevision404.ts +20 -0
- package/src/generated/model/getIdpRevision404Details.ts +12 -0
- package/src/generated/model/getIdpRevisionDefault.ts +72 -0
- package/src/generated/model/getIdpRevisionParams.ts +17 -0
- package/src/generated/model/getInvitation200.ts +6 -6
- package/src/generated/model/getMyUser200.ts +1 -1
- package/src/generated/model/getOAuthSettings200.ts +34 -0
- package/src/generated/model/getOAuthSettings200Oauth.ts +30 -0
- package/src/generated/model/getOAuthSettings404.ts +20 -0
- package/src/generated/model/getOAuthSettings404Details.ts +12 -0
- package/src/generated/model/getOAuthSettingsDefault.ts +54 -0
- package/src/generated/model/getPolicy200.ts +36 -0
- package/src/generated/model/getPolicyRevision200.ts +36 -0
- package/src/generated/model/getProjectClaimStatus200.ts +27 -0
- package/src/generated/model/getProjectClaimStatus401.ts +20 -0
- package/src/generated/model/getProjectClaimStatus401Details.ts +12 -0
- package/src/generated/model/getProjectClaimStatus403.ts +23 -0
- package/src/generated/model/getProjectClaimStatus404.ts +20 -0
- package/src/generated/model/getProjectClaimStatus404Details.ts +12 -0
- package/src/generated/model/getProjectClaimStatus410.ts +27 -0
- package/src/generated/model/getProjectClaimStatus429.ts +20 -0
- package/src/generated/model/getProjectClaimStatus429Details.ts +12 -0
- package/src/generated/model/getProjectClaimStatusDefault.ts +99 -0
- package/src/generated/model/getProjectClaimStatusParams.ts +15 -0
- package/src/generated/model/getProjectClaimWindow200.ts +23 -0
- package/src/generated/model/getProjectClaimWindow404.ts +20 -0
- package/src/generated/model/getProjectClaimWindow404Details.ts +12 -0
- package/src/generated/model/getProjectClaimWindow429.ts +20 -0
- package/src/generated/model/getProjectClaimWindow429Details.ts +12 -0
- package/src/generated/model/getProjectClaimWindowDefault.ts +36 -0
- package/src/generated/model/getProjectClaimWindowParams.ts +15 -0
- package/src/generated/model/getRelease200.ts +96 -0
- package/src/generated/model/getRelease200Metadata.ts +43 -0
- package/src/generated/model/getRelease200MetadataCreatedByType.ts +20 -0
- package/src/generated/model/getRelease200PointersItem.ts +63 -0
- package/src/generated/model/getRelease200PointersItemKind.ts +29 -0
- package/src/generated/model/getReleaseDefault.ts +72 -0
- package/src/generated/model/getReleaseParams.ts +17 -0
- package/src/generated/model/getSchema200.ts +31 -0
- package/src/generated/model/getSchema200Metadata.ts +18 -0
- package/src/generated/model/getSchema200Schema.ts +84 -0
- package/src/generated/model/getSchemaDefault.ts +72 -0
- package/src/generated/model/getSchemaParams.ts +21 -0
- package/src/generated/model/getUser200.ts +76 -0
- package/src/generated/model/getUser200Attributes.ts +13 -0
- package/src/generated/model/getUser200Metadata.ts +44 -0
- package/src/generated/model/getUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/getUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/getUser200MetadataStatus.ts +20 -0
- package/src/generated/model/getUser200TeamsItem.ts +33 -0
- package/src/generated/model/getUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/getUser401.ts +20 -0
- package/src/generated/model/getUser401Details.ts +12 -0
- package/src/generated/model/getUser404.ts +20 -0
- package/src/generated/model/getUser404Details.ts +12 -0
- package/src/generated/model/getUserDefault.ts +72 -0
- package/src/generated/model/getUserParams.ts +31 -0
- package/src/generated/model/index.ts +444 -461
- package/src/generated/model/listBranding200.ts +20 -0
- package/src/generated/model/listBranding200BrandingItem.ts +18 -0
- package/src/generated/model/listBrandingParams.ts +13 -0
- package/src/generated/model/listDeploymentVariables200.ts +17 -0
- package/src/generated/model/listDeploymentVariablesDefault.ts +90 -0
- package/src/generated/model/listDeploymentVariablesParams.ts +17 -0
- package/src/generated/model/listDeployments200DeploymentsItem.ts +2 -2
- package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +4 -4
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +3 -1
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +2 -1
- package/src/generated/model/listDeployments200DeploymentsItemTargetsItem.ts +0 -5
- package/src/generated/model/listDeploymentsParams.ts +5 -0
- package/src/generated/model/listEvents200.ts +2 -2
- package/src/generated/model/listEvents200EventsItem.ts +5038 -0
- package/src/generated/model/listEventsParams.ts +8 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +2 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +2 -12
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +2 -9
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -2
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +1 -1
- package/src/generated/model/listFlowDefinitionsExpandItem.ts +1 -1
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +2 -2
- package/src/generated/model/listInvitations200InvitationsItem.ts +6 -6
- package/src/generated/model/listInvitationsParams.ts +2 -2
- package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +1 -1
- package/src/generated/model/listMyProjectsParams.ts +6 -0
- package/src/generated/model/listPolicies200PoliciesItem.ts +36 -0
- package/src/generated/model/listPoliciesOperation.ts +1 -0
- package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +36 -0
- package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +1 -1
- package/src/generated/model/listProjectPreviews200.ts +20 -0
- package/src/generated/model/listProjectPreviews200PreviewsItem.ts +37 -0
- package/src/generated/model/listProjectPreviewsDefault.ts +72 -0
- package/src/generated/model/listProjectPreviewsParams.ts +23 -0
- package/src/generated/model/listReleases200ReleasesItem.ts +2 -2
- package/src/generated/model/listReleasesParams.ts +2 -2
- package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +1 -1
- package/src/generated/model/listVariables200.ts +35 -0
- package/src/generated/model/listVariables200Preview.ts +20 -0
- package/src/generated/model/listVariables200Primary.ts +20 -0
- package/src/generated/model/listVariablesDefault.ts +72 -0
- package/src/generated/model/listVariablesKind.ts +15 -0
- package/src/generated/model/listVariablesParams.ts +23 -0
- package/src/generated/model/lookupInvitation200.ts +4 -4
- package/src/generated/model/publishApplication200.ts +137 -0
- package/src/generated/model/publishApplication200ClientSecretsItem.ts +19 -0
- package/src/generated/model/publishApplication201.ts +137 -0
- package/src/generated/model/publishApplication201ClientSecretsItem.ts +19 -0
- package/src/generated/model/publishApplication400.ts +20 -0
- package/src/generated/model/publishApplication400Details.ts +12 -0
- package/src/generated/model/publishApplication401.ts +20 -0
- package/src/generated/model/publishApplication401Details.ts +12 -0
- package/src/generated/model/publishApplication403.ts +20 -0
- package/src/generated/model/publishApplication403Details.ts +12 -0
- package/src/generated/model/publishApplication404.ts +20 -0
- package/src/generated/model/publishApplication404Details.ts +12 -0
- package/src/generated/model/publishApplication409.ts +20 -0
- package/src/generated/model/publishApplication409Details.ts +12 -0
- package/src/generated/model/publishApplicationBody.ts +20 -0
- package/src/generated/model/publishApplicationBodyApplication.ts +35 -0
- package/src/generated/model/publishApplicationBodyApplicationClientsItem.ts +84 -0
- package/src/generated/model/publishApplicationBodyApplicationClientsItemGrantTypesItem.ts +15 -0
- package/src/generated/model/publishApplicationBodyApplicationClientsItemType.ts +19 -0
- package/src/generated/model/publishApplicationDefault.ts +117 -0
- package/src/generated/model/publishApplicationParams.ts +17 -0
- package/src/generated/model/publishBranding201.ts +32 -0
- package/src/generated/model/publishBranding201Branding.ts +80 -0
- package/src/generated/model/publishBranding201BrandingLayout.ts +27 -0
- package/src/generated/model/publishBranding201BrandingShape.ts +30 -0
- package/src/generated/model/publishBranding201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/publishBranding201BrandingTheme.ts +41 -0
- package/src/generated/model/publishBranding201BrandingThemeDark.ts +34 -0
- package/src/generated/model/publishBranding201BrandingThemeDarkPalette.ts +210 -0
- package/src/generated/model/publishBranding201BrandingThemeLight.ts +34 -0
- package/src/generated/model/publishBranding201BrandingThemeLightPalette.ts +210 -0
- package/src/generated/model/publishBranding201BrandingThemeMode.ts +19 -0
- package/src/generated/model/publishBranding201BrandingTypography.ts +47 -0
- package/src/generated/model/publishBranding400.ts +20 -0
- package/src/generated/model/publishBranding400Details.ts +12 -0
- package/src/generated/model/publishBrandingBody.ts +80 -0
- package/src/generated/model/publishBrandingBodyLayout.ts +27 -0
- package/src/generated/model/publishBrandingBodyShape.ts +30 -0
- package/src/generated/model/publishBrandingBodyShapeDensity.ts +19 -0
- package/src/generated/model/publishBrandingBodyTheme.ts +41 -0
- package/src/generated/model/publishBrandingBodyThemeDark.ts +34 -0
- package/src/generated/model/publishBrandingBodyThemeDarkPalette.ts +210 -0
- package/src/generated/model/publishBrandingBodyThemeLight.ts +34 -0
- package/src/generated/model/publishBrandingBodyThemeLightPalette.ts +210 -0
- package/src/generated/model/publishBrandingBodyThemeMode.ts +19 -0
- package/src/generated/model/publishBrandingBodyTypography.ts +47 -0
- package/src/generated/model/publishBrandingDefault.ts +99 -0
- package/src/generated/model/publishBrandingParams.ts +17 -0
- package/src/generated/model/publishFlowDefinition201.ts +48 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinition.ts +85 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionAudience.ts +20 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItem.ts +109 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +49 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +29 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemComplete.ts +20 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGates.ts +29 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +12 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +20 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +25 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitions.ts +68 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +28 -0
- package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +29 -0
- package/src/generated/model/publishFlowDefinition201UserSchema.ts +26 -0
- package/src/generated/model/publishFlowDefinition201UserSchemaMetadata.ts +18 -0
- package/src/generated/model/publishFlowDefinition201UserSchemaSchema.ts +84 -0
- package/src/generated/model/publishFlowDefinition400.ts +20 -0
- package/src/generated/model/publishFlowDefinition400Details.ts +12 -0
- package/src/generated/model/publishFlowDefinitionBody.ts +43 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinition.ts +85 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionAudience.ts +20 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItem.ts +109 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +49 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +29 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +20 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +29 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +12 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +20 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +25 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +68 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +28 -0
- package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +29 -0
- package/src/generated/model/publishFlowDefinitionDefault.ts +117 -0
- package/src/generated/model/publishIdp200.ts +39 -0
- package/src/generated/model/publishIdp200Definition.ts +44 -0
- package/src/generated/model/publishIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/publishIdp200DefinitionOidc.ts +65 -0
- package/src/generated/model/publishIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/publishIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/publishIdp200DefinitionProtocol.ts +17 -0
- package/src/generated/model/publishIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/publishIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/publishIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/publishIdp201.ts +39 -0
- package/src/generated/model/publishIdp201Definition.ts +44 -0
- package/src/generated/model/publishIdp201DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/publishIdp201DefinitionOidc.ts +65 -0
- package/src/generated/model/publishIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/publishIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/publishIdp201DefinitionProtocol.ts +17 -0
- package/src/generated/model/publishIdp201DefinitionProvisioning.ts +15 -0
- package/src/generated/model/publishIdp201DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/publishIdp201DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/publishIdp400.ts +20 -0
- package/src/generated/model/publishIdp400Details.ts +12 -0
- package/src/generated/model/publishIdp401.ts +20 -0
- package/src/generated/model/publishIdp401Details.ts +12 -0
- package/src/generated/model/publishIdp403.ts +20 -0
- package/src/generated/model/publishIdp403Details.ts +12 -0
- package/src/generated/model/publishIdp404.ts +20 -0
- package/src/generated/model/publishIdp404Details.ts +12 -0
- package/src/generated/model/publishIdpBody.ts +15 -0
- package/src/generated/model/publishIdpBodyIdp.ts +44 -0
- package/src/generated/model/publishIdpBodyIdpClaimMapping.ts +12 -0
- package/src/generated/model/publishIdpBodyIdpOidc.ts +65 -0
- package/src/generated/model/publishIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/publishIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/publishIdpBodyIdpProtocol.ts +17 -0
- package/src/generated/model/publishIdpBodyIdpProvisioning.ts +15 -0
- package/src/generated/model/publishIdpBodyIdpProvisioningCreation.ts +15 -0
- package/src/generated/model/publishIdpBodyIdpVerifiedClaims.ts +12 -0
- package/src/generated/model/publishIdpDefault.ts +108 -0
- package/src/generated/model/publishIdpParams.ts +17 -0
- package/src/generated/model/publishPolicy201.ts +36 -0
- package/src/generated/model/publishPolicyBody.ts +20 -0
- package/src/generated/model/publishSchema201.ts +31 -0
- package/src/generated/model/publishSchema201Metadata.ts +18 -0
- package/src/generated/model/publishSchema201Schema.ts +84 -0
- package/src/generated/model/publishSchemaBody.ts +86 -0
- package/src/generated/model/publishSchemaDefault.ts +153 -0
- package/src/generated/model/publishSchemaParams.ts +22 -0
- package/src/generated/model/queryIdps200IdpsItem.ts +2 -2
- package/src/generated/model/queryUsers200UsersItem.ts +1 -1
- package/src/generated/model/rejectInvitation200.ts +6 -6
- package/src/generated/model/removeProjectOriginBody.ts +15 -0
- package/src/generated/model/removeProjectOriginDefault.ts +108 -0
- package/src/generated/model/removeProjectPreviewBody.ts +23 -0
- package/src/generated/model/removeProjectPreviewDefault.ts +90 -0
- package/src/generated/model/revokeRelease200.ts +4 -4
- package/src/generated/model/revokeRelease200PointersItem.ts +3 -1
- package/src/generated/model/revokeRelease200PointersItemKind.ts +2 -1
- package/src/generated/model/rollbackDeployment200.ts +2 -2
- package/src/generated/model/rollbackDeployment200Release.ts +4 -4
- package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +3 -1
- package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/rollbackDeployment200TargetsItem.ts +0 -5
- package/src/generated/model/rollbackDeployment201.ts +2 -2
- package/src/generated/model/rollbackDeployment201Release.ts +4 -4
- package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +3 -1
- package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +2 -1
- package/src/generated/model/rollbackDeployment201TargetsItem.ts +0 -5
- package/src/generated/model/rollbackDeployment409.ts +8 -11
- package/src/generated/model/search200.ts +9 -2
- package/src/generated/model/searchDefault.ts +2 -74
- package/src/generated/model/searchParams.ts +3 -2
- package/src/generated/model/setUserPassword429.ts +23 -0
- package/src/generated/model/setUserPasswordDefault.ts +9 -0
- package/src/generated/model/setVariables200.ts +35 -0
- package/src/generated/model/setVariables200Preview.ts +20 -0
- package/src/generated/model/setVariables200Primary.ts +20 -0
- package/src/generated/model/setVariablesBody.ts +48 -0
- package/src/generated/model/setVariablesDefault.ts +162 -0
- package/src/generated/model/setVariablesKind.ts +15 -0
- package/src/generated/model/setVariablesParams.ts +23 -0
- package/src/generated/model/submitFlowStep200.ts +1 -1
- package/src/generated/model/submitFlowStep200Branding.ts +1 -1
- package/src/generated/model/submitFlowStep200StepGates.ts +22 -9
- package/src/generated/model/submitFlowStep200StepGatesChallenge.ts +30 -0
- package/src/generated/model/submitFlowStep200StepGatesConfig.ts +2 -2
- package/src/generated/model/submitFlowStep200StepGatesKind.ts +3 -4
- package/src/generated/model/submitFlowStep400.ts +885 -8
- package/src/generated/model/submitFlowStep429.ts +23 -0
- package/src/generated/model/submitFlowStepBody.ts +5 -2
- package/src/generated/model/submitFlowStepBodyGateProofs.ts +4 -1
- package/src/generated/model/submitFlowStepDefault.ts +27 -0
- package/src/generated/model/updateMyUser200.ts +76 -0
- package/src/generated/model/updateMyUser200Attributes.ts +13 -0
- package/src/generated/model/updateMyUser200Metadata.ts +44 -0
- package/src/generated/model/updateMyUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/updateMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/updateMyUser200MetadataStatus.ts +20 -0
- package/src/generated/model/updateMyUser200TeamsItem.ts +33 -0
- package/src/generated/model/updateMyUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/updateMyUser400.ts +20 -0
- package/src/generated/model/updateMyUser400Details.ts +12 -0
- package/src/generated/model/updateMyUser401.ts +20 -0
- package/src/generated/model/updateMyUser401Details.ts +12 -0
- package/src/generated/model/updateMyUser403.ts +20 -0
- package/src/generated/model/updateMyUser403Details.ts +12 -0
- package/src/generated/model/updateMyUser404.ts +23 -0
- package/src/generated/model/updateMyUser409.ts +20 -0
- package/src/generated/model/updateMyUser409Details.ts +12 -0
- package/src/generated/model/updateMyUserBody.ts +25 -0
- package/src/generated/model/updateMyUserBodyAttributes.ts +13 -0
- package/src/generated/model/updateMyUserDefault.ts +117 -0
- package/src/generated/model/updateMyUserParams.ts +26 -0
- package/src/generated/model/updateProject200.ts +96 -0
- package/src/generated/model/updateProject400.ts +20 -0
- package/src/generated/model/updateProject400Details.ts +12 -0
- package/src/generated/model/updateProject401.ts +20 -0
- package/src/generated/model/updateProject401Details.ts +12 -0
- package/src/generated/model/updateProject404.ts +20 -0
- package/src/generated/model/updateProject404Details.ts +12 -0
- package/src/generated/model/updateProjectBody.ts +19 -0
- package/src/generated/model/updateProjectBodyPasswordHash.ts +40 -0
- package/src/generated/model/updateProjectBodyPasswordHashAlgorithm.ts +24 -0
- package/src/generated/model/updateProjectBodyPasswordHashParams.ts +44 -0
- package/src/generated/model/updateProjectBodyPasswordHashParamsHash.ts +24 -0
- package/src/generated/model/updateProjectDefault.ts +117 -0
- package/src/generated/model/updateUser200.ts +76 -0
- package/src/generated/model/updateUser200Attributes.ts +13 -0
- package/src/generated/model/updateUser200Metadata.ts +44 -0
- package/src/generated/model/updateUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/updateUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
- package/src/generated/model/updateUser200MetadataStatus.ts +20 -0
- package/src/generated/model/updateUser200TeamsItem.ts +33 -0
- package/src/generated/model/updateUser200TeamsItemMembershipStatus.ts +20 -0
- package/src/generated/model/updateUser400.ts +20 -0
- package/src/generated/model/updateUser400Details.ts +12 -0
- package/src/generated/model/updateUser401.ts +20 -0
- package/src/generated/model/updateUser401Details.ts +12 -0
- package/src/generated/model/updateUser403.ts +20 -0
- package/src/generated/model/updateUser403Details.ts +12 -0
- package/src/generated/model/updateUser404.ts +20 -0
- package/src/generated/model/updateUser404Details.ts +12 -0
- package/src/generated/model/updateUser409.ts +20 -0
- package/src/generated/model/updateUser409Details.ts +12 -0
- package/src/generated/model/updateUserBody.ts +53 -0
- package/src/generated/model/updateUserBodyAttributes.ts +13 -0
- package/src/generated/model/updateUserDefault.ts +117 -0
- package/src/generated/model/verifyAuthAttemptChallenge200.ts +76 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItem.ts +49 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemMethod.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +34 -0
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemState.ts +22 -0
- package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItem.ts +28 -0
- package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItemMethod.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItemPayload.ts +37 -0
- package/src/generated/model/verifyAuthAttemptChallenge200RequiredFactorsItem.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge200State.ts +24 -0
- package/src/generated/model/verifyAuthAttemptChallenge409.ts +20 -0
- package/src/generated/model/verifyAuthAttemptChallenge409Details.ts +12 -0
- package/src/generated/model/verifyAuthAttemptChallenge429.ts +23 -0
- package/src/generated/model/verifyAuthAttemptChallengeBody.ts +27 -0
- package/src/generated/model/verifyAuthAttemptChallengeDefault.ts +189 -0
- package/src/generated/operations.ts +149 -102
- package/src/generated/paging.ts +12 -7
- package/src/runtime/api-factory.spec.ts +3 -3
- package/src/runtime/api-factory.ts +1 -1
- package/src/runtime/base-url.spec.ts +5 -5
- package/dist/api-factory-Durul-IL.d.mts +0 -222
- package/dist/api-factory-Durul-IL.d.mts.map +0 -1
- package/dist/api-factory-DwzqkuTV.mjs +0 -367
- package/dist/api-factory-DwzqkuTV.mjs.map +0 -1
- package/dist/fetch-BzLvdm6C.d.mts +0 -136
- package/dist/fetch-BzLvdm6C.d.mts.map +0 -1
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +0 -1
- package/dist/index-D0r_rLRr.d.mts +0 -60777
- package/dist/index-D0r_rLRr.d.mts.map +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
- package/dist/zitadelNextGen-DgKtevtj.d.mts +0 -1940
- package/dist/zitadelNextGen-DgKtevtj.d.mts.map +0 -1
- package/src/generated/model/addOrigin201.ts +0 -18
- package/src/generated/model/addOrigin201Kind.ts +0 -18
- package/src/generated/model/addOriginBody.ts +0 -35
- package/src/generated/model/addOriginBodyKind.ts +0 -19
- package/src/generated/model/addOriginDefault.ts +0 -135
- package/src/generated/model/beginUserPasskeyRegistration201.ts +0 -25
- package/src/generated/model/beginUserPasskeyRegistration201Options.ts +0 -13
- package/src/generated/model/beginUserPasskeyRegistration400.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration400Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration401.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration401Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration403.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration403Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration404.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration404Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistration500.ts +0 -20
- package/src/generated/model/beginUserPasskeyRegistration500Details.ts +0 -12
- package/src/generated/model/beginUserPasskeyRegistrationBody.ts +0 -33
- package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +0 -126
- package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +0 -23
- package/src/generated/model/completeClaim200.ts +0 -19
- package/src/generated/model/completeClaim400.ts +0 -20
- package/src/generated/model/completeClaim400Details.ts +0 -12
- package/src/generated/model/completeClaim401.ts +0 -23
- package/src/generated/model/completeClaim403.ts +0 -36
- package/src/generated/model/completeClaim404.ts +0 -20
- package/src/generated/model/completeClaim404Details.ts +0 -12
- package/src/generated/model/completeClaim409.ts +0 -25
- package/src/generated/model/completeClaim409Details.ts +0 -14
- package/src/generated/model/completeClaim410.ts +0 -27
- package/src/generated/model/completeClaim429.ts +0 -20
- package/src/generated/model/completeClaim429Details.ts +0 -12
- package/src/generated/model/completeClaimBody.ts +0 -18
- package/src/generated/model/completeClaimDefault.ts +0 -144
- package/src/generated/model/createApplication200.ts +0 -137
- package/src/generated/model/createApplication200ClientSecretsItem.ts +0 -19
- package/src/generated/model/createApplication201.ts +0 -137
- package/src/generated/model/createApplication201ClientSecretsItem.ts +0 -19
- package/src/generated/model/createApplication400.ts +0 -20
- package/src/generated/model/createApplication400Details.ts +0 -12
- package/src/generated/model/createApplication401.ts +0 -20
- package/src/generated/model/createApplication401Details.ts +0 -12
- package/src/generated/model/createApplication403.ts +0 -20
- package/src/generated/model/createApplication403Details.ts +0 -12
- package/src/generated/model/createApplication404.ts +0 -20
- package/src/generated/model/createApplication404Details.ts +0 -12
- package/src/generated/model/createApplication409.ts +0 -20
- package/src/generated/model/createApplication409Details.ts +0 -12
- package/src/generated/model/createApplicationBody.ts +0 -20
- package/src/generated/model/createApplicationBodyApplication.ts +0 -35
- package/src/generated/model/createApplicationBodyApplicationClientsItem.ts +0 -84
- package/src/generated/model/createApplicationBodyApplicationClientsItemGrantTypesItem.ts +0 -15
- package/src/generated/model/createApplicationBodyApplicationClientsItemType.ts +0 -19
- package/src/generated/model/createApplicationDefault.ts +0 -54
- package/src/generated/model/createApplicationParams.ts +0 -17
- package/src/generated/model/createBranding201.ts +0 -32
- package/src/generated/model/createBranding201Branding.ts +0 -80
- package/src/generated/model/createBranding201BrandingLayout.ts +0 -27
- package/src/generated/model/createBranding201BrandingShape.ts +0 -30
- package/src/generated/model/createBranding201BrandingShapeDensity.ts +0 -19
- package/src/generated/model/createBranding201BrandingTheme.ts +0 -41
- package/src/generated/model/createBranding201BrandingThemeDark.ts +0 -34
- package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +0 -210
- package/src/generated/model/createBranding201BrandingThemeLight.ts +0 -34
- package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +0 -210
- package/src/generated/model/createBranding201BrandingThemeMode.ts +0 -19
- package/src/generated/model/createBranding201BrandingTypography.ts +0 -47
- package/src/generated/model/createBranding400.ts +0 -20
- package/src/generated/model/createBranding400Details.ts +0 -12
- package/src/generated/model/createBrandingBody.ts +0 -80
- package/src/generated/model/createBrandingBodyLayout.ts +0 -27
- package/src/generated/model/createBrandingBodyShape.ts +0 -30
- package/src/generated/model/createBrandingBodyShapeDensity.ts +0 -19
- package/src/generated/model/createBrandingBodyTheme.ts +0 -41
- package/src/generated/model/createBrandingBodyThemeDark.ts +0 -34
- package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +0 -210
- package/src/generated/model/createBrandingBodyThemeLight.ts +0 -34
- package/src/generated/model/createBrandingBodyThemeLightPalette.ts +0 -210
- package/src/generated/model/createBrandingBodyThemeMode.ts +0 -19
- package/src/generated/model/createBrandingBodyTypography.ts +0 -47
- package/src/generated/model/createBrandingDefault.ts +0 -99
- package/src/generated/model/createBrandingParams.ts +0 -17
- package/src/generated/model/createFlowDefinition201.ts +0 -48
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +0 -95
- package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +0 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +0 -23
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +0 -109
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +0 -49
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +0 -29
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemComplete.ts +0 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +0 -36
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +0 -13
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +0 -25
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +0 -68
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +0 -28
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +0 -29
- package/src/generated/model/createFlowDefinition201UserSchema.ts +0 -26
- package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +0 -18
- package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +0 -84
- package/src/generated/model/createFlowDefinition400.ts +0 -20
- package/src/generated/model/createFlowDefinition400Details.ts +0 -12
- package/src/generated/model/createFlowDefinitionBody.ts +0 -45
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +0 -95
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +0 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +0 -23
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -109
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -49
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -29
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -36
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -13
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -25
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -68
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +0 -28
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +0 -29
- package/src/generated/model/createFlowDefinitionDefault.ts +0 -117
- package/src/generated/model/createHandoff200.ts +0 -30
- package/src/generated/model/createHandoff409.ts +0 -20
- package/src/generated/model/createHandoff409Details.ts +0 -12
- package/src/generated/model/createHandoffDefault.ts +0 -99
- package/src/generated/model/createIdp200.ts +0 -39
- package/src/generated/model/createIdp200Definition.ts +0 -44
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/createIdp200DefinitionOidc.ts +0 -65
- package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdp200DefinitionProtocol.ts +0 -17
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +0 -15
- package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/createIdp201.ts +0 -39
- package/src/generated/model/createIdp201Definition.ts +0 -44
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/createIdp201DefinitionOidc.ts +0 -65
- package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdp201DefinitionProtocol.ts +0 -17
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +0 -15
- package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/createIdp400.ts +0 -20
- package/src/generated/model/createIdp400Details.ts +0 -12
- package/src/generated/model/createIdp401.ts +0 -20
- package/src/generated/model/createIdp401Details.ts +0 -12
- package/src/generated/model/createIdp403.ts +0 -20
- package/src/generated/model/createIdp403Details.ts +0 -12
- package/src/generated/model/createIdp404.ts +0 -20
- package/src/generated/model/createIdp404Details.ts +0 -12
- package/src/generated/model/createIdpBody.ts +0 -15
- package/src/generated/model/createIdpBodyIdp.ts +0 -44
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +0 -12
- package/src/generated/model/createIdpBodyIdpOidc.ts +0 -65
- package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/createIdpBodyIdpProtocol.ts +0 -17
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +0 -15
- package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +0 -15
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +0 -12
- package/src/generated/model/createIdpDefault.ts +0 -108
- package/src/generated/model/createIdpParams.ts +0 -17
- package/src/generated/model/createSchema201.ts +0 -12
- package/src/generated/model/createSchemaBody.ts +0 -86
- package/src/generated/model/createSchemaDefault.ts +0 -153
- package/src/generated/model/createSchemaParams.ts +0 -22
- package/src/generated/model/deleteTeam400.ts +0 -20
- package/src/generated/model/deleteTeam400Details.ts +0 -12
- package/src/generated/model/deleteTeam401.ts +0 -20
- package/src/generated/model/deleteTeam401Details.ts +0 -12
- package/src/generated/model/deleteTeam403.ts +0 -20
- package/src/generated/model/deleteTeam403Details.ts +0 -12
- package/src/generated/model/deleteTeam409.ts +0 -20
- package/src/generated/model/deleteTeam409Details.ts +0 -12
- package/src/generated/model/deleteTeamDefault.ts +0 -90
- package/src/generated/model/deleteUserByID401.ts +0 -20
- package/src/generated/model/deleteUserByID401Details.ts +0 -12
- package/src/generated/model/deleteUserByID404.ts +0 -20
- package/src/generated/model/deleteUserByID404Details.ts +0 -12
- package/src/generated/model/deleteUserByID409.ts +0 -20
- package/src/generated/model/deleteUserByID409Details.ts +0 -12
- package/src/generated/model/deleteUserByIDDefault.ts +0 -99
- package/src/generated/model/finishUserPasskeyRegistration201.ts +0 -19
- package/src/generated/model/finishUserPasskeyRegistration400.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration400Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration401.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration401Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration403.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration403Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration404.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration404Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistration500.ts +0 -20
- package/src/generated/model/finishUserPasskeyRegistration500Details.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistrationBody.ts +0 -21
- package/src/generated/model/finishUserPasskeyRegistrationBodyAttestation.ts +0 -12
- package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +0 -180
- package/src/generated/model/getApplicationById200.ts +0 -43
- package/src/generated/model/getApplicationById200Definition.ts +0 -35
- package/src/generated/model/getApplicationById200DefinitionClientsItem.ts +0 -84
- package/src/generated/model/getApplicationById200DefinitionClientsItemGrantTypesItem.ts +0 -15
- package/src/generated/model/getApplicationById200DefinitionClientsItemType.ts +0 -19
- package/src/generated/model/getApplicationById401.ts +0 -20
- package/src/generated/model/getApplicationById401Details.ts +0 -12
- package/src/generated/model/getApplicationById403.ts +0 -20
- package/src/generated/model/getApplicationById403Details.ts +0 -12
- package/src/generated/model/getApplicationById404.ts +0 -20
- package/src/generated/model/getApplicationById404Details.ts +0 -12
- package/src/generated/model/getApplicationByIdDefault.ts +0 -54
- package/src/generated/model/getApplicationByIdParams.ts +0 -17
- package/src/generated/model/getBrandingById200.ts +0 -32
- package/src/generated/model/getBrandingById200Branding.ts +0 -80
- package/src/generated/model/getBrandingById200BrandingLayout.ts +0 -27
- package/src/generated/model/getBrandingById200BrandingShape.ts +0 -30
- package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +0 -19
- package/src/generated/model/getBrandingById200BrandingTheme.ts +0 -41
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +0 -34
- package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +0 -210
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +0 -34
- package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +0 -210
- package/src/generated/model/getBrandingById200BrandingThemeMode.ts +0 -19
- package/src/generated/model/getBrandingById200BrandingTypography.ts +0 -47
- package/src/generated/model/getBrandingById404.ts +0 -20
- package/src/generated/model/getBrandingById404Details.ts +0 -12
- package/src/generated/model/getBrandingByIdDefault.ts +0 -72
- package/src/generated/model/getClaimStatus200.ts +0 -27
- package/src/generated/model/getClaimStatus401.ts +0 -20
- package/src/generated/model/getClaimStatus401Details.ts +0 -12
- package/src/generated/model/getClaimStatus403.ts +0 -23
- package/src/generated/model/getClaimStatus404.ts +0 -20
- package/src/generated/model/getClaimStatus404Details.ts +0 -12
- package/src/generated/model/getClaimStatus410.ts +0 -27
- package/src/generated/model/getClaimStatus429.ts +0 -20
- package/src/generated/model/getClaimStatus429Details.ts +0 -12
- package/src/generated/model/getClaimStatusDefault.ts +0 -99
- package/src/generated/model/getClaimStatusParams.ts +0 -15
- package/src/generated/model/getClaimWindow200.ts +0 -23
- package/src/generated/model/getClaimWindow404.ts +0 -20
- package/src/generated/model/getClaimWindow404Details.ts +0 -12
- package/src/generated/model/getClaimWindow429.ts +0 -20
- package/src/generated/model/getClaimWindow429Details.ts +0 -12
- package/src/generated/model/getClaimWindowDefault.ts +0 -36
- package/src/generated/model/getClaimWindowParams.ts +0 -15
- package/src/generated/model/getDeploymentById200.ts +0 -78
- package/src/generated/model/getDeploymentById200Kind.ts +0 -18
- package/src/generated/model/getDeploymentById200Metadata.ts +0 -35
- package/src/generated/model/getDeploymentById200MetadataDeployedByType.ts +0 -20
- package/src/generated/model/getDeploymentById200MetadataReason.ts +0 -20
- package/src/generated/model/getDeploymentById200Release.ts +0 -96
- package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +0 -43
- package/src/generated/model/getDeploymentById200ReleaseMetadataCreatedByType.ts +0 -20
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +0 -61
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +0 -28
- package/src/generated/model/getDeploymentById200Status.ts +0 -23
- package/src/generated/model/getDeploymentById200TargetsItem.ts +0 -28
- package/src/generated/model/getDeploymentByIdDefault.ts +0 -72
- package/src/generated/model/getDeploymentByIdParams.ts +0 -17
- package/src/generated/model/getDeploymentVariables200.ts +0 -17
- package/src/generated/model/getDeploymentVariablesDefault.ts +0 -90
- package/src/generated/model/getDeploymentVariablesParams.ts +0 -17
- package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +0 -23
- package/src/generated/model/getIdpById200.ts +0 -39
- package/src/generated/model/getIdpById200Definition.ts +0 -44
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/getIdpById200DefinitionOidc.ts +0 -65
- package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/getIdpById200DefinitionProtocol.ts +0 -17
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +0 -15
- package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/getIdpById401.ts +0 -20
- package/src/generated/model/getIdpById401Details.ts +0 -12
- package/src/generated/model/getIdpById403.ts +0 -20
- package/src/generated/model/getIdpById403Details.ts +0 -12
- package/src/generated/model/getIdpById404.ts +0 -20
- package/src/generated/model/getIdpById404Details.ts +0 -12
- package/src/generated/model/getIdpByIdDefault.ts +0 -72
- package/src/generated/model/getIdpByIdParams.ts +0 -17
- package/src/generated/model/getIdpRevisionById200.ts +0 -39
- package/src/generated/model/getIdpRevisionById200Definition.ts +0 -44
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +0 -12
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +0 -65
- package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
- package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
- package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +0 -17
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +0 -15
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +0 -15
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +0 -12
- package/src/generated/model/getIdpRevisionById401.ts +0 -20
- package/src/generated/model/getIdpRevisionById401Details.ts +0 -12
- package/src/generated/model/getIdpRevisionById403.ts +0 -20
- package/src/generated/model/getIdpRevisionById403Details.ts +0 -12
- package/src/generated/model/getIdpRevisionById404.ts +0 -20
- package/src/generated/model/getIdpRevisionById404Details.ts +0 -12
- package/src/generated/model/getIdpRevisionByIdDefault.ts +0 -72
- package/src/generated/model/getIdpRevisionByIdParams.ts +0 -17
- package/src/generated/model/getReleaseById200.ts +0 -96
- package/src/generated/model/getReleaseById200Metadata.ts +0 -43
- package/src/generated/model/getReleaseById200MetadataCreatedByType.ts +0 -20
- package/src/generated/model/getReleaseById200PointersItem.ts +0 -61
- package/src/generated/model/getReleaseById200PointersItemKind.ts +0 -28
- package/src/generated/model/getReleaseByIdDefault.ts +0 -72
- package/src/generated/model/getReleaseByIdParams.ts +0 -17
- package/src/generated/model/getSchemaById200.ts +0 -31
- package/src/generated/model/getSchemaById200Metadata.ts +0 -18
- package/src/generated/model/getSchemaById200Schema.ts +0 -84
- package/src/generated/model/getSchemaByIdDefault.ts +0 -72
- package/src/generated/model/getSchemaByIdParams.ts +0 -21
- package/src/generated/model/getUserByID200.ts +0 -76
- package/src/generated/model/getUserByID200Attributes.ts +0 -13
- package/src/generated/model/getUserByID200Metadata.ts +0 -44
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +0 -43
- package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +0 -21
- package/src/generated/model/getUserByID200MetadataStatus.ts +0 -20
- package/src/generated/model/getUserByID200TeamsItem.ts +0 -33
- package/src/generated/model/getUserByID200TeamsItemMembershipStatus.ts +0 -20
- package/src/generated/model/getUserByID401.ts +0 -20
- package/src/generated/model/getUserByID401Details.ts +0 -12
- package/src/generated/model/getUserByID404.ts +0 -20
- package/src/generated/model/getUserByID404Details.ts +0 -12
- package/src/generated/model/getUserByIDDefault.ts +0 -72
- package/src/generated/model/getUserByIDParams.ts +0 -31
- package/src/generated/model/getVariables200.ts +0 -35
- package/src/generated/model/getVariables200Preview.ts +0 -20
- package/src/generated/model/getVariables200Primary.ts +0 -20
- package/src/generated/model/getVariablesDefault.ts +0 -72
- package/src/generated/model/getVariablesKind.ts +0 -15
- package/src/generated/model/getVariablesParams.ts +0 -23
- package/src/generated/model/initClaim201.ts +0 -25
- package/src/generated/model/initClaim401.ts +0 -20
- package/src/generated/model/initClaim401Details.ts +0 -12
- package/src/generated/model/initClaim404.ts +0 -23
- package/src/generated/model/initClaim409.ts +0 -25
- package/src/generated/model/initClaim409Details.ts +0 -14
- package/src/generated/model/initClaim410.ts +0 -23
- package/src/generated/model/initClaimDefault.ts +0 -99
- package/src/generated/model/issueChallenge201.ts +0 -49
- package/src/generated/model/issueChallenge201Method.ts +0 -20
- package/src/generated/model/issueChallenge201Payload.ts +0 -34
- package/src/generated/model/issueChallenge201State.ts +0 -22
- package/src/generated/model/issueChallengeBody.ts +0 -28
- package/src/generated/model/issueChallengeBodyMethod.ts +0 -20
- package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +0 -19
- package/src/generated/model/issueChallengeBodyPasskeyOptionsUserVerification.ts +0 -16
- package/src/generated/model/issueChallengeDefault.ts +0 -90
- package/src/generated/model/listBranding200Item.ts +0 -14
- package/src/generated/model/listEvents200DataItem.ts +0 -4366
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +0 -23
- package/src/generated/model/listPreviews200.ts +0 -20
- package/src/generated/model/listPreviews200PreviewsItem.ts +0 -37
- package/src/generated/model/listPreviewsDefault.ts +0 -72
- package/src/generated/model/listPreviewsParams.ts +0 -23
- package/src/generated/model/patchMyUser200.ts +0 -76
- package/src/generated/model/patchMyUser200Attributes.ts +0 -13
- package/src/generated/model/patchMyUser200Metadata.ts +0 -44
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +0 -43
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +0 -21
- package/src/generated/model/patchMyUser200MetadataStatus.ts +0 -20
- package/src/generated/model/patchMyUser200TeamsItem.ts +0 -33
- package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +0 -20
- package/src/generated/model/patchMyUser400.ts +0 -20
- package/src/generated/model/patchMyUser400Details.ts +0 -12
- package/src/generated/model/patchMyUser401.ts +0 -20
- package/src/generated/model/patchMyUser401Details.ts +0 -12
- package/src/generated/model/patchMyUser403.ts +0 -20
- package/src/generated/model/patchMyUser403Details.ts +0 -12
- package/src/generated/model/patchMyUser404.ts +0 -23
- package/src/generated/model/patchMyUser409.ts +0 -20
- package/src/generated/model/patchMyUser409Details.ts +0 -12
- package/src/generated/model/patchMyUserBody.ts +0 -25
- package/src/generated/model/patchMyUserBodyAttributes.ts +0 -13
- package/src/generated/model/patchMyUserDefault.ts +0 -117
- package/src/generated/model/patchMyUserParams.ts +0 -26
- package/src/generated/model/patchProject200.ts +0 -96
- package/src/generated/model/patchProject400.ts +0 -20
- package/src/generated/model/patchProject400Details.ts +0 -12
- package/src/generated/model/patchProject401.ts +0 -20
- package/src/generated/model/patchProject401Details.ts +0 -12
- package/src/generated/model/patchProject404.ts +0 -20
- package/src/generated/model/patchProject404Details.ts +0 -12
- package/src/generated/model/patchProjectBody.ts +0 -19
- package/src/generated/model/patchProjectBodyPasswordHash.ts +0 -40
- package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +0 -24
- package/src/generated/model/patchProjectBodyPasswordHashParams.ts +0 -44
- package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +0 -24
- package/src/generated/model/patchProjectDefault.ts +0 -117
- package/src/generated/model/patchUserByID200.ts +0 -76
- package/src/generated/model/patchUserByID200Attributes.ts +0 -13
- package/src/generated/model/patchUserByID200Metadata.ts +0 -44
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +0 -43
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +0 -21
- package/src/generated/model/patchUserByID200MetadataStatus.ts +0 -20
- package/src/generated/model/patchUserByID200TeamsItem.ts +0 -33
- package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +0 -20
- package/src/generated/model/patchUserByID400.ts +0 -20
- package/src/generated/model/patchUserByID400Details.ts +0 -12
- package/src/generated/model/patchUserByID401.ts +0 -20
- package/src/generated/model/patchUserByID401Details.ts +0 -12
- package/src/generated/model/patchUserByID403.ts +0 -20
- package/src/generated/model/patchUserByID403Details.ts +0 -12
- package/src/generated/model/patchUserByID404.ts +0 -20
- package/src/generated/model/patchUserByID404Details.ts +0 -12
- package/src/generated/model/patchUserByID409.ts +0 -20
- package/src/generated/model/patchUserByID409Details.ts +0 -12
- package/src/generated/model/patchUserByIDBody.ts +0 -53
- package/src/generated/model/patchUserByIDBodyAttributes.ts +0 -13
- package/src/generated/model/patchUserByIDDefault.ts +0 -117
- package/src/generated/model/removeOriginBody.ts +0 -15
- package/src/generated/model/removeOriginDefault.ts +0 -108
- package/src/generated/model/removePreviewBody.ts +0 -23
- package/src/generated/model/removePreviewDefault.ts +0 -90
- package/src/generated/model/submitFlowStep400Branding.ts +0 -80
- package/src/generated/model/submitFlowStep400BrandingLayout.ts +0 -27
- package/src/generated/model/submitFlowStep400BrandingShape.ts +0 -30
- package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +0 -19
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +0 -41
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +0 -34
- package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +0 -210
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +0 -34
- package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +0 -210
- package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +0 -19
- package/src/generated/model/submitFlowStep400BrandingTypography.ts +0 -47
- package/src/generated/model/submitFlowStep400Step.ts +0 -142
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +0 -41
- package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +0 -27
- package/src/generated/model/submitFlowStep400StepChallenge.ts +0 -36
- package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +0 -18
- package/src/generated/model/submitFlowStep400StepChallengeOptions.ts +0 -15
- package/src/generated/model/submitFlowStep400StepComplete.ts +0 -20
- package/src/generated/model/submitFlowStep400StepFieldsItem.ts +0 -87
- package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +0 -34
- package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +0 -46
- package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +0 -24
- package/src/generated/model/submitFlowStep400StepGates.ts +0 -36
- package/src/generated/model/submitFlowStep400StepGatesConfig.ts +0 -13
- package/src/generated/model/submitFlowStep400StepGatesKind.ts +0 -20
- package/src/generated/model/submitFlowStep400StepIdentifier.ts +0 -58
- package/src/generated/model/submitFlowStep400StepPurpose.ts +0 -26
- package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +0 -19
- package/src/generated/model/submitFlowStep400StepTexts.ts +0 -23
- package/src/generated/model/updateVariables200.ts +0 -35
- package/src/generated/model/updateVariables200Preview.ts +0 -20
- package/src/generated/model/updateVariables200Primary.ts +0 -20
- package/src/generated/model/updateVariablesBody.ts +0 -48
- package/src/generated/model/updateVariablesDefault.ts +0 -162
- package/src/generated/model/updateVariablesKind.ts +0 -15
- package/src/generated/model/updateVariablesParams.ts +0 -23
- package/src/generated/model/verifyChallengeProof200.ts +0 -76
- package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +0 -49
- package/src/generated/model/verifyChallengeProof200ChallengesItemMethod.ts +0 -20
- package/src/generated/model/verifyChallengeProof200ChallengesItemPayload.ts +0 -34
- package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +0 -22
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +0 -28
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemMethod.ts +0 -20
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +0 -37
- package/src/generated/model/verifyChallengeProof200RequiredFactorsItem.ts +0 -20
- package/src/generated/model/verifyChallengeProof200State.ts +0 -24
- package/src/generated/model/verifyChallengeProof409.ts +0 -20
- package/src/generated/model/verifyChallengeProof409Details.ts +0 -12
- package/src/generated/model/verifyChallengeProofBody.ts +0 -27
- package/src/generated/model/verifyChallengeProofDefault.ts +0 -180
|
@@ -12,54 +12,41 @@ import {
|
|
|
12
12
|
import type {
|
|
13
13
|
AcceptInvitation200,
|
|
14
14
|
AcceptInvitationBody,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
BeginUserPasskeyRegistration201,
|
|
18
|
-
BeginUserPasskeyRegistrationBody,
|
|
15
|
+
AddProjectOrigin201,
|
|
16
|
+
AddProjectOriginBody,
|
|
19
17
|
BuildRelease200,
|
|
20
18
|
BuildRelease201,
|
|
21
19
|
BuildReleaseBody,
|
|
22
20
|
BuildReleaseParams,
|
|
23
21
|
CancelInvitationParams,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
CreateApplicationBody,
|
|
29
|
-
CreateApplicationParams,
|
|
22
|
+
CompleteProjectClaim200,
|
|
23
|
+
CompleteProjectClaimBody,
|
|
24
|
+
CompleteUserPasskeyRegistration201,
|
|
25
|
+
CompleteUserPasskeyRegistrationBody,
|
|
30
26
|
CreateAuthAttempt201,
|
|
31
27
|
CreateAuthAttemptBody,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
CreateAuthAttemptChallenge201,
|
|
29
|
+
CreateAuthAttemptChallengeBody,
|
|
30
|
+
CreateAuthAttemptHandoff200,
|
|
35
31
|
CreateDeployment200,
|
|
36
32
|
CreateDeployment201,
|
|
37
33
|
CreateDeploymentBody,
|
|
38
34
|
CreateDeploymentParams,
|
|
39
35
|
CreateFlow201,
|
|
40
36
|
CreateFlowBody,
|
|
41
|
-
CreateFlowDefinition201,
|
|
42
|
-
CreateFlowDefinitionBody,
|
|
43
37
|
CreateGrant201,
|
|
44
38
|
CreateGrantBody,
|
|
45
39
|
CreateGrantParams,
|
|
46
|
-
CreateHandoff200,
|
|
47
|
-
CreateIdp200,
|
|
48
|
-
CreateIdp201,
|
|
49
|
-
CreateIdpBody,
|
|
50
|
-
CreateIdpParams,
|
|
51
40
|
CreateInvitation201,
|
|
52
41
|
CreateInvitationBody,
|
|
53
42
|
CreateInvitationParams,
|
|
54
43
|
CreateProject201,
|
|
55
44
|
CreateProjectBody,
|
|
45
|
+
CreateProjectClaim201,
|
|
56
46
|
CreateRelease200,
|
|
57
47
|
CreateRelease201,
|
|
58
48
|
CreateReleaseBody,
|
|
59
49
|
CreateReleaseParams,
|
|
60
|
-
CreateSchema201,
|
|
61
|
-
CreateSchemaBody,
|
|
62
|
-
CreateSchemaParams,
|
|
63
50
|
CreateSession201,
|
|
64
51
|
CreateSessionBody,
|
|
65
52
|
CreateTeam201,
|
|
@@ -68,6 +55,8 @@ import type {
|
|
|
68
55
|
CreateUser201,
|
|
69
56
|
CreateUserBody,
|
|
70
57
|
CreateUserParams,
|
|
58
|
+
CreateUserPasskeyRegistration201,
|
|
59
|
+
CreateUserPasskeyRegistrationBody,
|
|
71
60
|
DeleteGrantParams,
|
|
72
61
|
DeleteVariableParams,
|
|
73
62
|
EvaluatePolicy200,
|
|
@@ -76,30 +65,22 @@ import type {
|
|
|
76
65
|
ExchangeHandoff200,
|
|
77
66
|
ExchangeHandoffBody,
|
|
78
67
|
ExchangeHandoffParams,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
GetApplicationById200,
|
|
82
|
-
GetApplicationByIdParams,
|
|
68
|
+
GetApplication200,
|
|
69
|
+
GetApplicationParams,
|
|
83
70
|
GetAuthAttempt200,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
GetClaimWindow200,
|
|
88
|
-
GetClaimWindowParams,
|
|
89
|
-
GetDeploymentById200,
|
|
90
|
-
GetDeploymentByIdParams,
|
|
91
|
-
GetDeploymentVariables200,
|
|
92
|
-
GetDeploymentVariablesParams,
|
|
71
|
+
GetBranding200,
|
|
72
|
+
GetDeployment200,
|
|
73
|
+
GetDeploymentParams,
|
|
93
74
|
GetEvent200,
|
|
94
75
|
GetEventParams,
|
|
95
76
|
GetFlowDefinition200,
|
|
96
77
|
GetFlowStep200,
|
|
97
78
|
GetGrant200,
|
|
98
79
|
GetGrantParams,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
GetIdp200,
|
|
81
|
+
GetIdpParams,
|
|
82
|
+
GetIdpRevision200,
|
|
83
|
+
GetIdpRevisionParams,
|
|
103
84
|
GetInvitation200,
|
|
104
85
|
GetInvitationParams,
|
|
105
86
|
GetLiveDefault,
|
|
@@ -113,30 +94,32 @@ import type {
|
|
|
113
94
|
GetMyUserParams,
|
|
114
95
|
GetMyUserSchema200,
|
|
115
96
|
GetMyUserSchemaParams,
|
|
97
|
+
GetOAuthSettings200,
|
|
116
98
|
GetPolicy200,
|
|
117
99
|
GetPolicyParams,
|
|
118
100
|
GetPolicyRevision200,
|
|
119
101
|
GetPolicyRevisionParams,
|
|
120
102
|
GetProject200,
|
|
103
|
+
GetProjectClaimStatus200,
|
|
104
|
+
GetProjectClaimStatusParams,
|
|
105
|
+
GetProjectClaimWindow200,
|
|
106
|
+
GetProjectClaimWindowParams,
|
|
121
107
|
GetReadyDefault,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
108
|
+
GetRelease200,
|
|
109
|
+
GetReleaseParams,
|
|
110
|
+
GetSchema200,
|
|
111
|
+
GetSchemaParams,
|
|
126
112
|
GetSession200,
|
|
127
113
|
GetTeam200,
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
GetUser200,
|
|
115
|
+
GetUserParams,
|
|
130
116
|
GetUserPasswordState200,
|
|
131
117
|
GetVariable200,
|
|
132
118
|
GetVariableParams,
|
|
133
|
-
|
|
134
|
-
GetVariablesParams,
|
|
135
|
-
InitClaim201,
|
|
136
|
-
IssueChallenge201,
|
|
137
|
-
IssueChallengeBody,
|
|
138
|
-
ListBranding200Item,
|
|
119
|
+
ListBranding200,
|
|
139
120
|
ListBrandingParams,
|
|
121
|
+
ListDeploymentVariables200,
|
|
122
|
+
ListDeploymentVariablesParams,
|
|
140
123
|
ListDeployments200,
|
|
141
124
|
ListDeploymentsParams,
|
|
142
125
|
ListEvents200,
|
|
@@ -159,10 +142,10 @@ import type {
|
|
|
159
142
|
ListPoliciesParams,
|
|
160
143
|
ListPolicyRevisions200,
|
|
161
144
|
ListPolicyRevisionsParams,
|
|
162
|
-
ListPreviews200,
|
|
163
|
-
ListPreviewsParams,
|
|
164
145
|
ListProjectAdmins200,
|
|
165
146
|
ListProjectAdminsParams,
|
|
147
|
+
ListProjectPreviews200,
|
|
148
|
+
ListProjectPreviewsParams,
|
|
166
149
|
ListReleases200,
|
|
167
150
|
ListReleasesParams,
|
|
168
151
|
ListSchemas200,
|
|
@@ -173,18 +156,29 @@ import type {
|
|
|
173
156
|
ListUserPasskeysParams,
|
|
174
157
|
ListUserTeams200,
|
|
175
158
|
ListUserTeamsParams,
|
|
159
|
+
ListVariables200,
|
|
160
|
+
ListVariablesParams,
|
|
176
161
|
LookupInvitation200,
|
|
177
162
|
LookupInvitationBody,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
163
|
+
PublishApplication200,
|
|
164
|
+
PublishApplication201,
|
|
165
|
+
PublishApplicationBody,
|
|
166
|
+
PublishApplicationParams,
|
|
167
|
+
PublishBranding201,
|
|
168
|
+
PublishBrandingBody,
|
|
169
|
+
PublishBrandingParams,
|
|
170
|
+
PublishFlowDefinition201,
|
|
171
|
+
PublishFlowDefinitionBody,
|
|
172
|
+
PublishIdp200,
|
|
173
|
+
PublishIdp201,
|
|
174
|
+
PublishIdpBody,
|
|
175
|
+
PublishIdpParams,
|
|
185
176
|
PublishPolicy201,
|
|
186
177
|
PublishPolicyBody,
|
|
187
178
|
PublishPolicyParams,
|
|
179
|
+
PublishSchema201,
|
|
180
|
+
PublishSchemaBody,
|
|
181
|
+
PublishSchemaParams,
|
|
188
182
|
QueryGrants200,
|
|
189
183
|
QueryGrantsBody,
|
|
190
184
|
QueryGrantsParams,
|
|
@@ -204,8 +198,8 @@ import type {
|
|
|
204
198
|
QueryUsersParams,
|
|
205
199
|
RejectInvitation200,
|
|
206
200
|
RejectInvitationBody,
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
RemoveProjectOriginBody,
|
|
202
|
+
RemoveProjectPreviewBody,
|
|
209
203
|
RevokeMySessionParams,
|
|
210
204
|
RevokeRelease200,
|
|
211
205
|
RevokeReleaseParams,
|
|
@@ -217,15 +211,22 @@ import type {
|
|
|
217
211
|
SearchBody,
|
|
218
212
|
SearchParams,
|
|
219
213
|
SetUserPasswordBody,
|
|
214
|
+
SetVariables200,
|
|
215
|
+
SetVariablesBody,
|
|
216
|
+
SetVariablesParams,
|
|
220
217
|
SubmitFlowStep200,
|
|
221
218
|
SubmitFlowStepBody,
|
|
219
|
+
UpdateMyUser200,
|
|
220
|
+
UpdateMyUserBody,
|
|
221
|
+
UpdateMyUserParams,
|
|
222
|
+
UpdateProject200,
|
|
223
|
+
UpdateProjectBody,
|
|
222
224
|
UpdateTeam200,
|
|
223
225
|
UpdateTeamBody,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
VerifyChallengeProofBody
|
|
226
|
+
UpdateUser200,
|
|
227
|
+
UpdateUserBody,
|
|
228
|
+
VerifyAuthAttemptChallenge200,
|
|
229
|
+
VerifyAuthAttemptChallengeBody
|
|
229
230
|
} from '../model';
|
|
230
231
|
|
|
231
232
|
import { customFetch } from '../../runtime/fetch.ts';
|
|
@@ -313,7 +314,7 @@ export const getCreateUserUrl = (params: CreateUserParams,) => {
|
|
|
313
314
|
* Creates a user whose attributes satisfy the user schema named in the request.
|
|
314
315
|
*
|
|
315
316
|
* The server assigns the user's ID and returns it. `schema` is the `id` of a
|
|
316
|
-
* schema, as `
|
|
317
|
+
* schema, as `publishSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
|
|
317
318
|
* `team_id`, the user also becomes an active member of that team. A value the
|
|
318
319
|
* schema marks unique that another user already holds is refused with `409`;
|
|
319
320
|
* send a different value.
|
|
@@ -407,8 +408,8 @@ return customFetch<QueryUsers200>(getQueryUsersUrl(params),
|
|
|
407
408
|
|
|
408
409
|
|
|
409
410
|
|
|
410
|
-
export const
|
|
411
|
-
params?:
|
|
411
|
+
export const getGetUserUrl = (userId: string,
|
|
412
|
+
params?: GetUserParams,) => {
|
|
412
413
|
const normalizedParams = new URLSearchParams();
|
|
413
414
|
|
|
414
415
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -430,10 +431,10 @@ export const getGetUserByIDUrl = (userId: string,
|
|
|
430
431
|
* of that team.
|
|
431
432
|
* @summary Get a user by ID
|
|
432
433
|
*/
|
|
433
|
-
export const
|
|
434
|
-
params?:
|
|
434
|
+
export const getUser = async (userId: string,
|
|
435
|
+
params?: GetUserParams, options?: Parameters<typeof customFetch>[1]): Promise<GetUser200> => {
|
|
435
436
|
|
|
436
|
-
return customFetch<
|
|
437
|
+
return customFetch<GetUser200>(getGetUserUrl(userId,params),
|
|
437
438
|
{
|
|
438
439
|
...options,
|
|
439
440
|
method: 'GET'
|
|
@@ -444,7 +445,7 @@ export const getUserByID = async (userId: string,
|
|
|
444
445
|
|
|
445
446
|
|
|
446
447
|
|
|
447
|
-
export const
|
|
448
|
+
export const getUpdateUserUrl = (userId: string,) => {
|
|
448
449
|
|
|
449
450
|
|
|
450
451
|
|
|
@@ -459,7 +460,7 @@ export const getPatchUserByIDUrl = (userId: string,) => {
|
|
|
459
460
|
* last-write-wins.
|
|
460
461
|
*
|
|
461
462
|
* To move the user, send `schema` with the `id` of a registered schema, as
|
|
462
|
-
* `
|
|
463
|
+
* `publishSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
|
|
463
464
|
*
|
|
464
465
|
* To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
|
|
465
466
|
* the same permission and answers the same status and `details` as the real
|
|
@@ -472,8 +473,8 @@ export const getPatchUserByIDUrl = (userId: string,) => {
|
|
|
472
473
|
* request as malformed (`400 req.invalid`) instead of applying the patch.
|
|
473
474
|
* @summary Update a user by ID
|
|
474
475
|
*/
|
|
475
|
-
export const
|
|
476
|
-
|
|
476
|
+
export const updateUser = async (userId: string,
|
|
477
|
+
updateUserBody: UpdateUserBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateUser200> => {
|
|
477
478
|
|
|
478
479
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
479
480
|
if (!h) return {};
|
|
@@ -489,18 +490,18 @@ export const patchUserByID = async (userId: string,
|
|
|
489
490
|
}
|
|
490
491
|
return headers;
|
|
491
492
|
};
|
|
492
|
-
return customFetch<
|
|
493
|
+
return customFetch<UpdateUser200>(getUpdateUserUrl(userId),
|
|
493
494
|
{
|
|
494
495
|
...options,
|
|
495
496
|
method: 'PATCH',
|
|
496
497
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
497
|
-
body: JSON.stringify(
|
|
498
|
+
body: JSON.stringify(updateUserBody)
|
|
498
499
|
}
|
|
499
500
|
);}
|
|
500
501
|
|
|
501
502
|
|
|
502
503
|
|
|
503
|
-
export const
|
|
504
|
+
export const getDeleteUserUrl = (userId: string,) => {
|
|
504
505
|
|
|
505
506
|
|
|
506
507
|
|
|
@@ -520,9 +521,9 @@ export const getDeleteUserByIDUrl = (userId: string,) => {
|
|
|
520
521
|
* nothing.
|
|
521
522
|
* @summary Delete a user by ID
|
|
522
523
|
*/
|
|
523
|
-
export const
|
|
524
|
+
export const deleteUser = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
524
525
|
|
|
525
|
-
return customFetch<void>(
|
|
526
|
+
return customFetch<void>(getDeleteUserUrl(userId),
|
|
526
527
|
{
|
|
527
528
|
...options,
|
|
528
529
|
method: 'DELETE'
|
|
@@ -608,7 +609,7 @@ export const listUserPasskeys = async (userId: string,
|
|
|
608
609
|
|
|
609
610
|
|
|
610
611
|
|
|
611
|
-
export const
|
|
612
|
+
export const getCreateUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
612
613
|
|
|
613
614
|
|
|
614
615
|
|
|
@@ -620,7 +621,7 @@ export const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
|
620
621
|
* Starts a WebAuthn registration ceremony for the user and returns the
|
|
621
622
|
* creation options for `navigator.credentials.create()`. A passkey is
|
|
622
623
|
* registered in two steps: this one returns options for the browser, and
|
|
623
|
-
* `
|
|
624
|
+
* `completeUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
|
|
624
625
|
*
|
|
625
626
|
* Complete the ceremony with
|
|
626
627
|
* `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
|
|
@@ -628,8 +629,8 @@ export const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {
|
|
|
628
629
|
* already registered for the user are excluded automatically.
|
|
629
630
|
* @summary Begin a passkey registration
|
|
630
631
|
*/
|
|
631
|
-
export const
|
|
632
|
-
|
|
632
|
+
export const createUserPasskeyRegistration = async (userId: string,
|
|
633
|
+
createUserPasskeyRegistrationBody: CreateUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateUserPasskeyRegistration201> => {
|
|
633
634
|
|
|
634
635
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
635
636
|
if (!h) return {};
|
|
@@ -645,18 +646,18 @@ export const beginUserPasskeyRegistration = async (userId: string,
|
|
|
645
646
|
}
|
|
646
647
|
return headers;
|
|
647
648
|
};
|
|
648
|
-
return customFetch<
|
|
649
|
+
return customFetch<CreateUserPasskeyRegistration201>(getCreateUserPasskeyRegistrationUrl(userId),
|
|
649
650
|
{
|
|
650
651
|
...options,
|
|
651
652
|
method: 'POST',
|
|
652
653
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
653
|
-
body: JSON.stringify(
|
|
654
|
+
body: JSON.stringify(createUserPasskeyRegistrationBody)
|
|
654
655
|
}
|
|
655
656
|
);}
|
|
656
657
|
|
|
657
658
|
|
|
658
659
|
|
|
659
|
-
export const
|
|
660
|
+
export const getCompleteUserPasskeyRegistrationUrl = (userId: string,
|
|
660
661
|
registrationId: string,) => {
|
|
661
662
|
|
|
662
663
|
|
|
@@ -668,7 +669,7 @@ export const getFinishUserPasskeyRegistrationUrl = (userId: string,
|
|
|
668
669
|
/**
|
|
669
670
|
* Verifies the attestation against the registration ceremony and stores
|
|
670
671
|
* the new passkey for the user. `registration_id` is the one that
|
|
671
|
-
* `
|
|
672
|
+
* `createUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
|
|
672
673
|
* returned when it started the ceremony. The attestation is
|
|
673
674
|
* the browser's answer from `navigator.credentials.create()`.
|
|
674
675
|
*
|
|
@@ -677,9 +678,9 @@ export const getFinishUserPasskeyRegistrationUrl = (userId: string,
|
|
|
677
678
|
* already-consumed registration ID answers `att.not_found`.
|
|
678
679
|
* @summary Finish a passkey registration
|
|
679
680
|
*/
|
|
680
|
-
export const
|
|
681
|
+
export const completeUserPasskeyRegistration = async (userId: string,
|
|
681
682
|
registrationId: string,
|
|
682
|
-
|
|
683
|
+
completeUserPasskeyRegistrationBody: CompleteUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<CompleteUserPasskeyRegistration201> => {
|
|
683
684
|
|
|
684
685
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
685
686
|
if (!h) return {};
|
|
@@ -695,12 +696,12 @@ export const finishUserPasskeyRegistration = async (userId: string,
|
|
|
695
696
|
}
|
|
696
697
|
return headers;
|
|
697
698
|
};
|
|
698
|
-
return customFetch<
|
|
699
|
+
return customFetch<CompleteUserPasskeyRegistration201>(getCompleteUserPasskeyRegistrationUrl(userId,registrationId),
|
|
699
700
|
{
|
|
700
701
|
...options,
|
|
701
702
|
method: 'POST',
|
|
702
703
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
703
|
-
body: JSON.stringify(
|
|
704
|
+
body: JSON.stringify(completeUserPasskeyRegistrationBody)
|
|
704
705
|
}
|
|
705
706
|
);}
|
|
706
707
|
|
|
@@ -751,7 +752,7 @@ export const getSetUserPasswordUrl = (userId: string,) => {
|
|
|
751
752
|
* policy.
|
|
752
753
|
*
|
|
753
754
|
* The password policy is the one in the release that serves the caller's
|
|
754
|
-
* `Origin`, chosen as `createFlow` (`POST /
|
|
755
|
+
* `Origin`, chosen as `createFlow` (`POST /flows`) chooses it. A frontend on a
|
|
755
756
|
* preview URL gets that preview's policy, and one on a primary origin the
|
|
756
757
|
* newest primary deployment's. A request with no `Origin`, or from the
|
|
757
758
|
* console when the project does not list the console's origin, gets the
|
|
@@ -876,7 +877,7 @@ export const getMyUser = async (params?: GetMyUserParams, options?: Parameters<t
|
|
|
876
877
|
|
|
877
878
|
|
|
878
879
|
|
|
879
|
-
export const
|
|
880
|
+
export const getUpdateMyUserUrl = (params?: UpdateMyUserParams,) => {
|
|
880
881
|
const normalizedParams = new URLSearchParams();
|
|
881
882
|
|
|
882
883
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -900,8 +901,8 @@ export const getPatchMyUserUrl = (params?: PatchMyUserParams,) => {
|
|
|
900
901
|
* that project.
|
|
901
902
|
* @summary Update my user information
|
|
902
903
|
*/
|
|
903
|
-
export const
|
|
904
|
-
params?:
|
|
904
|
+
export const updateMyUser = async (updateMyUserBody: UpdateMyUserBody,
|
|
905
|
+
params?: UpdateMyUserParams, options?: Parameters<typeof customFetch>[1]): Promise<UpdateMyUser200> => {
|
|
905
906
|
|
|
906
907
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
907
908
|
if (!h) return {};
|
|
@@ -917,12 +918,12 @@ export const patchMyUser = async (patchMyUserBody: PatchMyUserBody,
|
|
|
917
918
|
}
|
|
918
919
|
return headers;
|
|
919
920
|
};
|
|
920
|
-
return customFetch<
|
|
921
|
+
return customFetch<UpdateMyUser200>(getUpdateMyUserUrl(params),
|
|
921
922
|
{
|
|
922
923
|
...options,
|
|
923
924
|
method: 'PATCH',
|
|
924
925
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
925
|
-
body: JSON.stringify(
|
|
926
|
+
body: JSON.stringify(updateMyUserBody)
|
|
926
927
|
}
|
|
927
928
|
);}
|
|
928
929
|
|
|
@@ -1074,6 +1075,11 @@ export const getListMyProjectsUrl = (params?: ListMyProjectsParams,) => {
|
|
|
1074
1075
|
* With `project_id`, the projects are listed only when the session belongs to
|
|
1075
1076
|
* that project. It names the project the session was signed in to, not one to
|
|
1076
1077
|
* list.
|
|
1078
|
+
*
|
|
1079
|
+
* With `exclude_platform`, the deployment's reserved platform project is left
|
|
1080
|
+
* out: the project the console signs in to, which holds the console's
|
|
1081
|
+
* accounts rather than an application's users. A deployment without one lists
|
|
1082
|
+
* the same projects either way.
|
|
1077
1083
|
* @summary List the projects I can act on
|
|
1078
1084
|
*/
|
|
1079
1085
|
export const listMyProjects = async (params?: ListMyProjectsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyProjects200> => {
|
|
@@ -1164,7 +1170,7 @@ export const getCreateFlowUrl = () => {
|
|
|
1164
1170
|
|
|
1165
1171
|
|
|
1166
1172
|
|
|
1167
|
-
return `${getApiBaseUrl()}/
|
|
1173
|
+
return `${getApiBaseUrl()}/flows`
|
|
1168
1174
|
}
|
|
1169
1175
|
|
|
1170
1176
|
/**
|
|
@@ -1173,7 +1179,7 @@ export const getCreateFlowUrl = () => {
|
|
|
1173
1179
|
*
|
|
1174
1180
|
* The flow endpoints are the runtime calls the login component
|
|
1175
1181
|
* (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
|
|
1176
|
-
* step it gets back, and submits the user's input with `submitFlowStep` (`POST /
|
|
1182
|
+
* step it gets back, and submits the user's input with `submitFlowStep` (`POST /flows/{flow_id}/submit`) to
|
|
1177
1183
|
* get the next step. This call creates a new session implicitly, unless
|
|
1178
1184
|
* `session_id` is provided together with that session's `session_token`
|
|
1179
1185
|
* (for step-up or reauthentication on an existing session).
|
|
@@ -1211,7 +1217,7 @@ export const getCreateFlowUrl = () => {
|
|
|
1211
1217
|
* unless the project lists it.
|
|
1212
1218
|
*
|
|
1213
1219
|
* The response contains an `id` field, the flow handle. Use it as the path
|
|
1214
|
-
* parameter for all subsequent `/
|
|
1220
|
+
* parameter for all subsequent `/flows/{flow_id}/submit` calls.
|
|
1215
1221
|
*
|
|
1216
1222
|
* The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
|
|
1217
1223
|
* the flow's orchestration state (current step, collected data, history).
|
|
@@ -1246,12 +1252,12 @@ return customFetch<CreateFlow201>(getCreateFlowUrl(),
|
|
|
1246
1252
|
|
|
1247
1253
|
|
|
1248
1254
|
|
|
1249
|
-
export const getGetFlowStepUrl = (
|
|
1255
|
+
export const getGetFlowStepUrl = (flowId: string,) => {
|
|
1250
1256
|
|
|
1251
1257
|
|
|
1252
1258
|
|
|
1253
1259
|
|
|
1254
|
-
return `${getApiBaseUrl()}/
|
|
1260
|
+
return `${getApiBaseUrl()}/flows/${encodeURIComponent(String(flowId))}`
|
|
1255
1261
|
}
|
|
1256
1262
|
|
|
1257
1263
|
/**
|
|
@@ -1259,17 +1265,24 @@ export const getGetFlowStepUrl = (id: string,) => {
|
|
|
1259
1265
|
* the step again after a page reload or a network error.
|
|
1260
1266
|
*
|
|
1261
1267
|
* The flow endpoints are the runtime calls the login component
|
|
1262
|
-
* (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /
|
|
1263
|
-
* `submitFlowStep` (`POST /
|
|
1268
|
+
* (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flows`) starts a flow, and
|
|
1269
|
+
* `submitFlowStep` (`POST /flows/{flow_id}/submit`) advances it.
|
|
1270
|
+
*
|
|
1271
|
+
* For a sign-up step, prepares `step.gates.signup_pow.challenge`: one that
|
|
1272
|
+
* creates its user on submit, or one carrying a passkey registration that
|
|
1273
|
+
* creates its user.
|
|
1274
|
+
* Reuses challenges with more than a minute remaining; otherwise issues a
|
|
1275
|
+
* new one. If this render resolves parked SSO state, it first returns the
|
|
1276
|
+
* updated cookie; fetch the step again to obtain its puzzle.
|
|
1264
1277
|
*
|
|
1265
1278
|
* Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
|
|
1266
1279
|
* re-resolve from `Origin`. If that release was revoked since the attempt
|
|
1267
1280
|
* started, the response is `409` with `rel.revoked`.
|
|
1268
1281
|
* @summary Get the current step of a flow
|
|
1269
1282
|
*/
|
|
1270
|
-
export const getFlowStep = async (
|
|
1283
|
+
export const getFlowStep = async (flowId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowStep200> => {
|
|
1271
1284
|
|
|
1272
|
-
return customFetch<GetFlowStep200>(getGetFlowStepUrl(
|
|
1285
|
+
return customFetch<GetFlowStep200>(getGetFlowStepUrl(flowId),
|
|
1273
1286
|
{
|
|
1274
1287
|
...options,
|
|
1275
1288
|
method: 'GET'
|
|
@@ -1280,12 +1293,12 @@ export const getFlowStep = async (id: string, options?: Parameters<typeof custom
|
|
|
1280
1293
|
|
|
1281
1294
|
|
|
1282
1295
|
|
|
1283
|
-
export const getSubmitFlowStepUrl = (
|
|
1296
|
+
export const getSubmitFlowStepUrl = (flowId: string,) => {
|
|
1284
1297
|
|
|
1285
1298
|
|
|
1286
1299
|
|
|
1287
1300
|
|
|
1288
|
-
return `${getApiBaseUrl()}/
|
|
1301
|
+
return `${getApiBaseUrl()}/flows/${encodeURIComponent(String(flowId))}/submit`
|
|
1289
1302
|
}
|
|
1290
1303
|
|
|
1291
1304
|
/**
|
|
@@ -1293,12 +1306,21 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1293
1306
|
* validates it, processes it (for example, verifies a credential), advances
|
|
1294
1307
|
* the flow through any invisible steps, and returns the next visible step.
|
|
1295
1308
|
* The flow endpoints are the runtime calls the login component
|
|
1296
|
-
* (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /
|
|
1309
|
+
* (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flows`) starts a flow.
|
|
1297
1310
|
*
|
|
1298
1311
|
* The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
|
|
1299
1312
|
* with the new flow state. The server is stateless: all orchestration
|
|
1300
1313
|
* state is carried in this cookie between requests.
|
|
1301
1314
|
*
|
|
1315
|
+
* Sign-up additionally requires a single-use `gate_proofs.signup_pow`
|
|
1316
|
+
* solution for `step.gates.signup_pow`: a password sign-up (`create_user`)
|
|
1317
|
+
* sends it with the submit, and a passkey registration that creates its user
|
|
1318
|
+
* sends it with the attestation in `challenge_response`. Pending
|
|
1319
|
+
* challenges and rate counters are stored on the server. Invalid or spent
|
|
1320
|
+
* proofs return `403 flow.proof_invalid`; exhausted per-flow budgets return
|
|
1321
|
+
* `429 flow.rate_limited`. GET the current step to obtain or refresh its
|
|
1322
|
+
* challenge before solving. Start and Submit announce the gate without a puzzle.
|
|
1323
|
+
*
|
|
1302
1324
|
* **Important:** The `id` in the response may differ from the `id` used in
|
|
1303
1325
|
* the request. This happens when a flow pivots (pushes a new flow onto the
|
|
1304
1326
|
* stack) or when a stacked flow completes (auto-pops to the parent flow).
|
|
@@ -1346,7 +1368,7 @@ export const getSubmitFlowStepUrl = (id: string,) => {
|
|
|
1346
1368
|
* started, the response is `409` with `rel.revoked`.
|
|
1347
1369
|
* @summary Submit a flow step
|
|
1348
1370
|
*/
|
|
1349
|
-
export const submitFlowStep = async (
|
|
1371
|
+
export const submitFlowStep = async (flowId: string,
|
|
1350
1372
|
submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]): Promise<SubmitFlowStep200> => {
|
|
1351
1373
|
|
|
1352
1374
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
@@ -1363,7 +1385,7 @@ export const submitFlowStep = async (id: string,
|
|
|
1363
1385
|
}
|
|
1364
1386
|
return headers;
|
|
1365
1387
|
};
|
|
1366
|
-
return customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(
|
|
1388
|
+
return customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(flowId),
|
|
1367
1389
|
{
|
|
1368
1390
|
...options,
|
|
1369
1391
|
method: 'POST',
|
|
@@ -1391,13 +1413,13 @@ export const getCreateAuthAttemptUrl = () => {
|
|
|
1391
1413
|
* in order:
|
|
1392
1414
|
*
|
|
1393
1415
|
* 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
|
|
1394
|
-
* 2. `
|
|
1416
|
+
* 2. `createAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
|
|
1395
1417
|
* `identifier`, `password` or `passkey`.
|
|
1396
|
-
* 3. `
|
|
1418
|
+
* 3. `verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
|
|
1397
1419
|
* credential, code or assertion. Repeat steps 2 and 3 until
|
|
1398
1420
|
* `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
|
|
1399
1421
|
* `required_factors` is verified.
|
|
1400
|
-
* 4. `
|
|
1422
|
+
* 4. `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
|
|
1401
1423
|
* 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
|
|
1402
1424
|
* for the session and its `session_token`.
|
|
1403
1425
|
*
|
|
@@ -1472,7 +1494,7 @@ export const getAuthAttempt = async (attemptId: string, options?: Parameters<typ
|
|
|
1472
1494
|
|
|
1473
1495
|
|
|
1474
1496
|
|
|
1475
|
-
export const
|
|
1497
|
+
export const getCreateAuthAttemptChallengeUrl = (attemptId: string,) => {
|
|
1476
1498
|
|
|
1477
1499
|
|
|
1478
1500
|
|
|
@@ -1486,11 +1508,11 @@ export const getIssueChallengeUrl = (attemptId: string,) => {
|
|
|
1486
1508
|
* A challenge names one factor method, such as password, passkey, TOTP or OTP
|
|
1487
1509
|
* via SMS. The response carries the challenge's `challenge_id`, method,
|
|
1488
1510
|
* metadata and any UI hints. The client then submits the proof with
|
|
1489
|
-
* `
|
|
1511
|
+
* `verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
|
|
1490
1512
|
* @summary Issue a factor challenge
|
|
1491
1513
|
*/
|
|
1492
|
-
export const
|
|
1493
|
-
|
|
1514
|
+
export const createAuthAttemptChallenge = async (attemptId: string,
|
|
1515
|
+
createAuthAttemptChallengeBody: CreateAuthAttemptChallengeBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttemptChallenge201> => {
|
|
1494
1516
|
|
|
1495
1517
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
1496
1518
|
if (!h) return {};
|
|
@@ -1506,18 +1528,18 @@ export const issueChallenge = async (attemptId: string,
|
|
|
1506
1528
|
}
|
|
1507
1529
|
return headers;
|
|
1508
1530
|
};
|
|
1509
|
-
return customFetch<
|
|
1531
|
+
return customFetch<CreateAuthAttemptChallenge201>(getCreateAuthAttemptChallengeUrl(attemptId),
|
|
1510
1532
|
{
|
|
1511
1533
|
...options,
|
|
1512
1534
|
method: 'POST',
|
|
1513
1535
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
1514
|
-
body: JSON.stringify(
|
|
1536
|
+
body: JSON.stringify(createAuthAttemptChallengeBody)
|
|
1515
1537
|
}
|
|
1516
1538
|
);}
|
|
1517
1539
|
|
|
1518
1540
|
|
|
1519
1541
|
|
|
1520
|
-
export const
|
|
1542
|
+
export const getVerifyAuthAttemptChallengeUrl = (attemptId: string,
|
|
1521
1543
|
challengeId: string,) => {
|
|
1522
1544
|
|
|
1523
1545
|
|
|
@@ -1538,15 +1560,15 @@ export const getVerifyChallengeProofUrl = (attemptId: string,
|
|
|
1538
1560
|
*
|
|
1539
1561
|
* On success, the factor is recorded on the authentication attempt. The
|
|
1540
1562
|
* attempt moves to the next pending challenge, or completes when every required
|
|
1541
|
-
* factor is verified. Then call `
|
|
1563
|
+
* factor is verified. Then call `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
|
|
1542
1564
|
*
|
|
1543
1565
|
* A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
|
|
1544
1566
|
* again. There is no retry limit: you can retry until the attempt expires.
|
|
1545
1567
|
* @summary Verify a challenge proof
|
|
1546
1568
|
*/
|
|
1547
|
-
export const
|
|
1569
|
+
export const verifyAuthAttemptChallenge = async (attemptId: string,
|
|
1548
1570
|
challengeId: string,
|
|
1549
|
-
|
|
1571
|
+
verifyAuthAttemptChallengeBody: VerifyAuthAttemptChallengeBody, options?: Parameters<typeof customFetch>[1]): Promise<VerifyAuthAttemptChallenge200> => {
|
|
1550
1572
|
|
|
1551
1573
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
1552
1574
|
if (!h) return {};
|
|
@@ -1562,18 +1584,18 @@ export const verifyChallengeProof = async (attemptId: string,
|
|
|
1562
1584
|
}
|
|
1563
1585
|
return headers;
|
|
1564
1586
|
};
|
|
1565
|
-
return customFetch<
|
|
1587
|
+
return customFetch<VerifyAuthAttemptChallenge200>(getVerifyAuthAttemptChallengeUrl(attemptId,challengeId),
|
|
1566
1588
|
{
|
|
1567
1589
|
...options,
|
|
1568
1590
|
method: 'POST',
|
|
1569
1591
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
1570
|
-
body: JSON.stringify(
|
|
1592
|
+
body: JSON.stringify(verifyAuthAttemptChallengeBody)
|
|
1571
1593
|
}
|
|
1572
1594
|
);}
|
|
1573
1595
|
|
|
1574
1596
|
|
|
1575
1597
|
|
|
1576
|
-
export const
|
|
1598
|
+
export const getCreateAuthAttemptHandoffUrl = (attemptId: string,) => {
|
|
1577
1599
|
|
|
1578
1600
|
|
|
1579
1601
|
|
|
@@ -1601,9 +1623,9 @@ export const getCreateHandoffUrl = (attemptId: string,) => {
|
|
|
1601
1623
|
* release is the configuration that `zitadel deploy` publishes.
|
|
1602
1624
|
* @summary Complete an authentication attempt and create a handoff token
|
|
1603
1625
|
*/
|
|
1604
|
-
export const
|
|
1626
|
+
export const createAuthAttemptHandoff = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttemptHandoff200> => {
|
|
1605
1627
|
|
|
1606
|
-
return customFetch<
|
|
1628
|
+
return customFetch<CreateAuthAttemptHandoff200>(getCreateAuthAttemptHandoffUrl(attemptId),
|
|
1607
1629
|
{
|
|
1608
1630
|
...options,
|
|
1609
1631
|
method: 'POST'
|
|
@@ -1627,7 +1649,7 @@ export const getCreateProjectUrl = () => {
|
|
|
1627
1649
|
* other endpoint returns.
|
|
1628
1650
|
*
|
|
1629
1651
|
* A project is the top-level boundary that holds users, sessions and
|
|
1630
|
-
* configuration. It has no owning team until someone claims it; see `
|
|
1652
|
+
* configuration. It has no owning team until someone claims it; see `createProjectClaim` (`POST /projects/{project_id}/claim/init`).
|
|
1631
1653
|
*
|
|
1632
1654
|
* The request needs no credential and is rate-limited. On `429`, wait and retry.
|
|
1633
1655
|
* Unless `seed_defaults` is `false`, the project starts with a default user schema
|
|
@@ -1734,7 +1756,7 @@ export const getProject = async (projectId: string, options?: Parameters<typeof
|
|
|
1734
1756
|
|
|
1735
1757
|
|
|
1736
1758
|
|
|
1737
|
-
export const
|
|
1759
|
+
export const getUpdateProjectUrl = (projectId: string,) => {
|
|
1738
1760
|
|
|
1739
1761
|
|
|
1740
1762
|
|
|
@@ -1754,8 +1776,8 @@ export const getPatchProjectUrl = (projectId: string,) => {
|
|
|
1754
1776
|
* person who can act on the project.
|
|
1755
1777
|
* @summary Update a project
|
|
1756
1778
|
*/
|
|
1757
|
-
export const
|
|
1758
|
-
|
|
1779
|
+
export const updateProject = async (projectId: string,
|
|
1780
|
+
updateProjectBody: UpdateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateProject200> => {
|
|
1759
1781
|
|
|
1760
1782
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
1761
1783
|
if (!h) return {};
|
|
@@ -1771,12 +1793,12 @@ export const patchProject = async (projectId: string,
|
|
|
1771
1793
|
}
|
|
1772
1794
|
return headers;
|
|
1773
1795
|
};
|
|
1774
|
-
return customFetch<
|
|
1796
|
+
return customFetch<UpdateProject200>(getUpdateProjectUrl(projectId),
|
|
1775
1797
|
{
|
|
1776
1798
|
...options,
|
|
1777
1799
|
method: 'PATCH',
|
|
1778
1800
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
1779
|
-
body: JSON.stringify(
|
|
1801
|
+
body: JSON.stringify(updateProjectBody)
|
|
1780
1802
|
}
|
|
1781
1803
|
);}
|
|
1782
1804
|
|
|
@@ -1843,7 +1865,7 @@ export const listProjectAdmins = async (projectId: string,
|
|
|
1843
1865
|
|
|
1844
1866
|
|
|
1845
1867
|
|
|
1846
|
-
export const
|
|
1868
|
+
export const getCreateProjectClaimUrl = (projectId: string,) => {
|
|
1847
1869
|
|
|
1848
1870
|
|
|
1849
1871
|
|
|
@@ -1859,7 +1881,7 @@ export const getInitClaimUrl = (projectId: string,) => {
|
|
|
1859
1881
|
* so that the team's members administer it. This operation mints a
|
|
1860
1882
|
* single-use, short-lived challenge for an unclaimed project. The developer
|
|
1861
1883
|
* opens `claim_url`, signs in and completes the claim in the browser; see
|
|
1862
|
-
* `
|
|
1884
|
+
* `completeProjectClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getProjectClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
|
|
1863
1885
|
* as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
|
|
1864
1886
|
*
|
|
1865
1887
|
* Authenticate with the project secret that `createProject` (`POST /projects`) returns as
|
|
@@ -1870,9 +1892,9 @@ export const getInitClaimUrl = (projectId: string,) => {
|
|
|
1870
1892
|
* which is final.
|
|
1871
1893
|
* @summary Initialize a project claim
|
|
1872
1894
|
*/
|
|
1873
|
-
export const
|
|
1895
|
+
export const createProjectClaim = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateProjectClaim201> => {
|
|
1874
1896
|
|
|
1875
|
-
return customFetch<
|
|
1897
|
+
return customFetch<CreateProjectClaim201>(getCreateProjectClaimUrl(projectId),
|
|
1876
1898
|
{
|
|
1877
1899
|
...options,
|
|
1878
1900
|
method: 'POST'
|
|
@@ -1883,8 +1905,8 @@ export const initClaim = async (projectId: string, options?: Parameters<typeof c
|
|
|
1883
1905
|
|
|
1884
1906
|
|
|
1885
1907
|
|
|
1886
|
-
export const
|
|
1887
|
-
params:
|
|
1908
|
+
export const getGetProjectClaimStatusUrl = (projectId: string,
|
|
1909
|
+
params: GetProjectClaimStatusParams,) => {
|
|
1888
1910
|
const normalizedParams = new URLSearchParams();
|
|
1889
1911
|
|
|
1890
1912
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1904,7 +1926,7 @@ export const getGetClaimStatusUrl = (projectId: string,
|
|
|
1904
1926
|
* browser completes the claim.
|
|
1905
1927
|
*
|
|
1906
1928
|
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
|
|
1907
|
-
* `zitadel claim` polls this operation after `
|
|
1929
|
+
* `zitadel claim` polls this operation after `createProjectClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
|
|
1908
1930
|
* Once the project is claimed, the response is `completed` with the owning
|
|
1909
1931
|
* team, the claim timestamp and the dashboard URL.
|
|
1910
1932
|
*
|
|
@@ -1913,15 +1935,15 @@ export const getGetClaimStatusUrl = (projectId: string,
|
|
|
1913
1935
|
* completed claim keeps reporting `completed` past this challenge's expiry
|
|
1914
1936
|
* and past the project's claim window.
|
|
1915
1937
|
*
|
|
1916
|
-
* Pass the `challenge_id` that `
|
|
1938
|
+
* Pass the `challenge_id` that `createProjectClaim` returns. Authenticate with the
|
|
1917
1939
|
* project secret that started the challenge. On `410` with `proj.claim_expired`, call
|
|
1918
|
-
* `
|
|
1940
|
+
* `createProjectClaim` again for a fresh challenge.
|
|
1919
1941
|
* @summary Get the status of a project claim
|
|
1920
1942
|
*/
|
|
1921
|
-
export const
|
|
1922
|
-
params:
|
|
1943
|
+
export const getProjectClaimStatus = async (projectId: string,
|
|
1944
|
+
params: GetProjectClaimStatusParams, options?: Parameters<typeof customFetch>[1]): Promise<GetProjectClaimStatus200> => {
|
|
1923
1945
|
|
|
1924
|
-
return customFetch<
|
|
1946
|
+
return customFetch<GetProjectClaimStatus200>(getGetProjectClaimStatusUrl(projectId,params),
|
|
1925
1947
|
{
|
|
1926
1948
|
...options,
|
|
1927
1949
|
method: 'GET'
|
|
@@ -1932,7 +1954,7 @@ export const getClaimStatus = async (projectId: string,
|
|
|
1932
1954
|
|
|
1933
1955
|
|
|
1934
1956
|
|
|
1935
|
-
export const
|
|
1957
|
+
export const getCompleteProjectClaimUrl = (projectId: string,) => {
|
|
1936
1958
|
|
|
1937
1959
|
|
|
1938
1960
|
|
|
@@ -1947,16 +1969,16 @@ export const getCompleteClaimUrl = (projectId: string,) => {
|
|
|
1947
1969
|
* A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
|
|
1948
1970
|
* so that the team's members administer it. The claim page in the browser
|
|
1949
1971
|
* calls this operation after the developer signs in, with the session cookie.
|
|
1950
|
-
* The `challenge_id` from the claim URL that `
|
|
1972
|
+
* The `challenge_id` from the claim URL that `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns is the
|
|
1951
1973
|
* request's single-use, browser-safe authorization.
|
|
1952
1974
|
*
|
|
1953
1975
|
* Claims are first-claim-wins and spend the challenge. If a team already
|
|
1954
1976
|
* claimed the project, the request answers `409`. If the challenge lapsed
|
|
1955
|
-
* (`410` with `proj.claim_expired`), call `
|
|
1977
|
+
* (`410` with `proj.claim_expired`), call `createProjectClaim` again for a fresh one.
|
|
1956
1978
|
* @summary Complete a project claim
|
|
1957
1979
|
*/
|
|
1958
|
-
export const
|
|
1959
|
-
|
|
1980
|
+
export const completeProjectClaim = async (projectId: string,
|
|
1981
|
+
completeProjectClaimBody: CompleteProjectClaimBody, options?: Parameters<typeof customFetch>[1]): Promise<CompleteProjectClaim200> => {
|
|
1960
1982
|
|
|
1961
1983
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
1962
1984
|
if (!h) return {};
|
|
@@ -1972,19 +1994,19 @@ export const completeClaim = async (projectId: string,
|
|
|
1972
1994
|
}
|
|
1973
1995
|
return headers;
|
|
1974
1996
|
};
|
|
1975
|
-
return customFetch<
|
|
1997
|
+
return customFetch<CompleteProjectClaim200>(getCompleteProjectClaimUrl(projectId),
|
|
1976
1998
|
{
|
|
1977
1999
|
...options,
|
|
1978
2000
|
method: 'POST',
|
|
1979
2001
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
1980
|
-
body: JSON.stringify(
|
|
2002
|
+
body: JSON.stringify(completeProjectClaimBody)
|
|
1981
2003
|
}
|
|
1982
2004
|
);}
|
|
1983
2005
|
|
|
1984
2006
|
|
|
1985
2007
|
|
|
1986
|
-
export const
|
|
1987
|
-
params:
|
|
2008
|
+
export const getGetProjectClaimWindowUrl = (projectId: string,
|
|
2009
|
+
params: GetProjectClaimWindowParams,) => {
|
|
1988
2010
|
const normalizedParams = new URLSearchParams();
|
|
1989
2011
|
|
|
1990
2012
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2009,15 +2031,15 @@ export const getGetClaimWindowUrl = (projectId: string,
|
|
|
2009
2031
|
*
|
|
2010
2032
|
* The request needs no credential, because the claim page calls it before the
|
|
2011
2033
|
* developer has signed in. Holding the `challenge_id` from the claim URL that
|
|
2012
|
-
* `
|
|
2034
|
+
* `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeProjectClaim` (`POST /projects/{project_id}/claim/complete`)
|
|
2013
2035
|
* accepts. The response reveals only the window, never the project itself.
|
|
2014
|
-
* Unlike `
|
|
2036
|
+
* Unlike `completeProjectClaim` it spends nothing, so reloading the page is safe.
|
|
2015
2037
|
* @summary Get the claim window for a project
|
|
2016
2038
|
*/
|
|
2017
|
-
export const
|
|
2018
|
-
params:
|
|
2039
|
+
export const getProjectClaimWindow = async (projectId: string,
|
|
2040
|
+
params: GetProjectClaimWindowParams, options?: Parameters<typeof customFetch>[1]): Promise<GetProjectClaimWindow200> => {
|
|
2019
2041
|
|
|
2020
|
-
return customFetch<
|
|
2042
|
+
return customFetch<GetProjectClaimWindow200>(getGetProjectClaimWindowUrl(projectId,params),
|
|
2021
2043
|
{
|
|
2022
2044
|
...options,
|
|
2023
2045
|
method: 'GET'
|
|
@@ -2028,7 +2050,7 @@ export const getClaimWindow = async (projectId: string,
|
|
|
2028
2050
|
|
|
2029
2051
|
|
|
2030
2052
|
|
|
2031
|
-
export const
|
|
2053
|
+
export const getAddProjectOriginUrl = (projectId: string,) => {
|
|
2032
2054
|
|
|
2033
2055
|
|
|
2034
2056
|
|
|
@@ -2052,11 +2074,11 @@ export const getAddOriginUrl = (projectId: string,) => {
|
|
|
2052
2074
|
* Adding a pattern that already exists with the same kind is idempotent and
|
|
2053
2075
|
* answers `201` with the stored origin. If the pattern exists with the other
|
|
2054
2076
|
* kind, the request is refused with `origin.kind_conflict`: remove it with
|
|
2055
|
-
* `
|
|
2077
|
+
* `removeProjectOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
|
|
2056
2078
|
* @summary Add an origin pattern
|
|
2057
2079
|
*/
|
|
2058
|
-
export const
|
|
2059
|
-
|
|
2080
|
+
export const addProjectOrigin = async (projectId: string,
|
|
2081
|
+
addProjectOriginBody: AddProjectOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<AddProjectOrigin201> => {
|
|
2060
2082
|
|
|
2061
2083
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
2062
2084
|
if (!h) return {};
|
|
@@ -2072,18 +2094,18 @@ export const addOrigin = async (projectId: string,
|
|
|
2072
2094
|
}
|
|
2073
2095
|
return headers;
|
|
2074
2096
|
};
|
|
2075
|
-
return customFetch<
|
|
2097
|
+
return customFetch<AddProjectOrigin201>(getAddProjectOriginUrl(projectId),
|
|
2076
2098
|
{
|
|
2077
2099
|
...options,
|
|
2078
2100
|
method: 'POST',
|
|
2079
2101
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
2080
|
-
body: JSON.stringify(
|
|
2102
|
+
body: JSON.stringify(addProjectOriginBody)
|
|
2081
2103
|
}
|
|
2082
2104
|
);}
|
|
2083
2105
|
|
|
2084
2106
|
|
|
2085
2107
|
|
|
2086
|
-
export const
|
|
2108
|
+
export const getRemoveProjectOriginUrl = (projectId: string,) => {
|
|
2087
2109
|
|
|
2088
2110
|
|
|
2089
2111
|
|
|
@@ -2100,11 +2122,11 @@ export const getRemoveOriginUrl = (projectId: string,) => {
|
|
|
2100
2122
|
* origin.
|
|
2101
2123
|
* Removing a pattern that is already absent is idempotent and answers `204`.
|
|
2102
2124
|
*
|
|
2103
|
-
* The body's `pattern` is a pattern `
|
|
2125
|
+
* The body's `pattern` is a pattern `addProjectOrigin` (`POST /projects/{project_id}/origins`) stored.
|
|
2104
2126
|
* @summary Remove an origin pattern
|
|
2105
2127
|
*/
|
|
2106
|
-
export const
|
|
2107
|
-
|
|
2128
|
+
export const removeProjectOrigin = async (projectId: string,
|
|
2129
|
+
removeProjectOriginBody: RemoveProjectOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
2108
2130
|
|
|
2109
2131
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
2110
2132
|
if (!h) return {};
|
|
@@ -2120,19 +2142,19 @@ export const removeOrigin = async (projectId: string,
|
|
|
2120
2142
|
}
|
|
2121
2143
|
return headers;
|
|
2122
2144
|
};
|
|
2123
|
-
return customFetch<void>(
|
|
2145
|
+
return customFetch<void>(getRemoveProjectOriginUrl(projectId),
|
|
2124
2146
|
{
|
|
2125
2147
|
...options,
|
|
2126
2148
|
method: 'POST',
|
|
2127
2149
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
2128
|
-
body: JSON.stringify(
|
|
2150
|
+
body: JSON.stringify(removeProjectOriginBody)
|
|
2129
2151
|
}
|
|
2130
2152
|
);}
|
|
2131
2153
|
|
|
2132
2154
|
|
|
2133
2155
|
|
|
2134
|
-
export const
|
|
2135
|
-
params?:
|
|
2156
|
+
export const getListProjectPreviewsUrl = (projectId: string,
|
|
2157
|
+
params?: ListProjectPreviewsParams,) => {
|
|
2136
2158
|
const normalizedParams = new URLSearchParams();
|
|
2137
2159
|
|
|
2138
2160
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2155,10 +2177,10 @@ export const getListPreviewsUrl = (projectId: string,
|
|
|
2155
2177
|
* in `GET /deployments`.
|
|
2156
2178
|
* @summary List a project's previews
|
|
2157
2179
|
*/
|
|
2158
|
-
export const
|
|
2159
|
-
params?:
|
|
2180
|
+
export const listProjectPreviews = async (projectId: string,
|
|
2181
|
+
params?: ListProjectPreviewsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectPreviews200> => {
|
|
2160
2182
|
|
|
2161
|
-
return customFetch<
|
|
2183
|
+
return customFetch<ListProjectPreviews200>(getListProjectPreviewsUrl(projectId,params),
|
|
2162
2184
|
{
|
|
2163
2185
|
...options,
|
|
2164
2186
|
method: 'GET'
|
|
@@ -2169,7 +2191,7 @@ export const listPreviews = async (projectId: string,
|
|
|
2169
2191
|
|
|
2170
2192
|
|
|
2171
2193
|
|
|
2172
|
-
export const
|
|
2194
|
+
export const getRemoveProjectPreviewUrl = (projectId: string,) => {
|
|
2173
2195
|
|
|
2174
2196
|
|
|
2175
2197
|
|
|
@@ -2186,11 +2208,11 @@ export const getRemovePreviewUrl = (projectId: string,) => {
|
|
|
2186
2208
|
* succeeds.
|
|
2187
2209
|
*
|
|
2188
2210
|
* The URL travels in the body rather than the path because an origin
|
|
2189
|
-
* contains `/`. Take it from `
|
|
2211
|
+
* contains `/`. Take it from `listProjectPreviews` (`GET /projects/{project_id}/previews`).
|
|
2190
2212
|
* @summary Remove a preview
|
|
2191
2213
|
*/
|
|
2192
|
-
export const
|
|
2193
|
-
|
|
2214
|
+
export const removeProjectPreview = async (projectId: string,
|
|
2215
|
+
removeProjectPreviewBody: RemoveProjectPreviewBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
2194
2216
|
|
|
2195
2217
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
2196
2218
|
if (!h) return {};
|
|
@@ -2206,12 +2228,12 @@ export const removePreview = async (projectId: string,
|
|
|
2206
2228
|
}
|
|
2207
2229
|
return headers;
|
|
2208
2230
|
};
|
|
2209
|
-
return customFetch<void>(
|
|
2231
|
+
return customFetch<void>(getRemoveProjectPreviewUrl(projectId),
|
|
2210
2232
|
{
|
|
2211
2233
|
...options,
|
|
2212
2234
|
method: 'POST',
|
|
2213
2235
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
2214
|
-
body: JSON.stringify(
|
|
2236
|
+
body: JSON.stringify(removeProjectPreviewBody)
|
|
2215
2237
|
}
|
|
2216
2238
|
);}
|
|
2217
2239
|
|
|
@@ -2353,7 +2375,7 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {
|
|
|
2353
2375
|
* Exchanges a handoff token for a session and a `session_token`.
|
|
2354
2376
|
*
|
|
2355
2377
|
* A handoff token is the short-lived, single-use credential that
|
|
2356
|
-
* `
|
|
2378
|
+
* `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
|
|
2357
2379
|
* complete. This call consumes it. It is the last step of the sign-in sequence:
|
|
2358
2380
|
* create the attempt, issue a challenge, verify the proof, create the handoff,
|
|
2359
2381
|
* exchange it.
|
|
@@ -2598,7 +2620,7 @@ export const getMySessionCsrfToken = async (params?: GetMySessionCsrfTokenParams
|
|
|
2598
2620
|
|
|
2599
2621
|
|
|
2600
2622
|
|
|
2601
|
-
export const
|
|
2623
|
+
export const getPublishSchemaUrl = (params: PublishSchemaParams,) => {
|
|
2602
2624
|
const normalizedParams = new URLSearchParams();
|
|
2603
2625
|
|
|
2604
2626
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2614,12 +2636,13 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams,) => {
|
|
|
2614
2636
|
}
|
|
2615
2637
|
|
|
2616
2638
|
/**
|
|
2617
|
-
*
|
|
2639
|
+
* Publishes a user schema, the JSON Schema that says which attributes a user
|
|
2618
2640
|
* has and which attribute identifies the user.
|
|
2619
2641
|
*
|
|
2620
2642
|
* The request is either a user schema (`kind: user-schema`) or a schema URL
|
|
2621
|
-
* (`kind: schema-url`) that the server resolves. The response
|
|
2622
|
-
* `
|
|
2643
|
+
* (`kind: schema-url`) that the server resolves. The response is the stored
|
|
2644
|
+
* schema, as `getSchema` (`GET /schemas/{schema_id}`) returns it; its `id` is
|
|
2645
|
+
* what `createUser` (`POST /users`) takes as `schema`.
|
|
2623
2646
|
*
|
|
2624
2647
|
* The optional `$id` is the JSON Schema document URI that identifies the
|
|
2625
2648
|
* schema in later requests. It is a stable identity for GitOps, not a
|
|
@@ -2628,10 +2651,10 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams,) => {
|
|
|
2628
2651
|
* should ideally be a valid URI pointing at where the schema can be accessed.
|
|
2629
2652
|
* A `$id` that already exists in the project is refused; pick another or
|
|
2630
2653
|
* omit it.
|
|
2631
|
-
* @summary
|
|
2654
|
+
* @summary Publish a schema
|
|
2632
2655
|
*/
|
|
2633
|
-
export const
|
|
2634
|
-
params:
|
|
2656
|
+
export const publishSchema = async (publishSchemaBody: PublishSchemaBody,
|
|
2657
|
+
params: PublishSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishSchema201> => {
|
|
2635
2658
|
|
|
2636
2659
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
2637
2660
|
if (!h) return {};
|
|
@@ -2647,12 +2670,12 @@ export const createSchema = async (createSchemaBody: CreateSchemaBody,
|
|
|
2647
2670
|
}
|
|
2648
2671
|
return headers;
|
|
2649
2672
|
};
|
|
2650
|
-
return customFetch<
|
|
2673
|
+
return customFetch<PublishSchema201>(getPublishSchemaUrl(params),
|
|
2651
2674
|
{
|
|
2652
2675
|
...options,
|
|
2653
2676
|
method: 'POST',
|
|
2654
2677
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
2655
|
-
body: JSON.stringify(
|
|
2678
|
+
body: JSON.stringify(publishSchemaBody)
|
|
2656
2679
|
}
|
|
2657
2680
|
);}
|
|
2658
2681
|
|
|
@@ -2702,8 +2725,8 @@ export const listSchemas = async (params: ListSchemasParams, options?: Parameter
|
|
|
2702
2725
|
|
|
2703
2726
|
|
|
2704
2727
|
|
|
2705
|
-
export const
|
|
2706
|
-
params?:
|
|
2728
|
+
export const getGetSchemaUrl = (schemaId: string,
|
|
2729
|
+
params?: GetSchemaParams,) => {
|
|
2707
2730
|
const normalizedParams = new URLSearchParams();
|
|
2708
2731
|
|
|
2709
2732
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2715,7 +2738,7 @@ export const getGetSchemaByIdUrl = (id: string,
|
|
|
2715
2738
|
|
|
2716
2739
|
const stringifiedParams = normalizedParams.toString();
|
|
2717
2740
|
|
|
2718
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(
|
|
2741
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(schemaId))}?${stringifiedParams}` : `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(schemaId))}`
|
|
2719
2742
|
}
|
|
2720
2743
|
|
|
2721
2744
|
/**
|
|
@@ -2731,10 +2754,10 @@ export const getGetSchemaByIdUrl = (id: string,
|
|
|
2731
2754
|
* own project and ignores `project_id`.
|
|
2732
2755
|
* @summary Get a schema by ID
|
|
2733
2756
|
*/
|
|
2734
|
-
export const
|
|
2735
|
-
params?:
|
|
2757
|
+
export const getSchema = async (schemaId: string,
|
|
2758
|
+
params?: GetSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<GetSchema200> => {
|
|
2736
2759
|
|
|
2737
|
-
return customFetch<
|
|
2760
|
+
return customFetch<GetSchema200>(getGetSchemaUrl(schemaId,params),
|
|
2738
2761
|
{
|
|
2739
2762
|
...options,
|
|
2740
2763
|
method: 'GET'
|
|
@@ -2745,7 +2768,7 @@ export const getSchemaById = async (id: string,
|
|
|
2745
2768
|
|
|
2746
2769
|
|
|
2747
2770
|
|
|
2748
|
-
export const
|
|
2771
|
+
export const getPublishFlowDefinitionUrl = () => {
|
|
2749
2772
|
|
|
2750
2773
|
|
|
2751
2774
|
|
|
@@ -2754,8 +2777,8 @@ export const getCreateFlowDefinitionUrl = () => {
|
|
|
2754
2777
|
}
|
|
2755
2778
|
|
|
2756
2779
|
/**
|
|
2757
|
-
*
|
|
2758
|
-
* `flowdef.created` event.
|
|
2780
|
+
* Publishes a new revision of a flow definition, creating the flow definition
|
|
2781
|
+
* on its first publish. It records a `flowdef.created` event.
|
|
2759
2782
|
*
|
|
2760
2783
|
* A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
|
|
2761
2784
|
* defines the sequence of steps (capabilities) for one user journey, such as
|
|
@@ -2769,9 +2792,9 @@ export const getCreateFlowDefinitionUrl = () => {
|
|
|
2769
2792
|
* existing `name` publishes a new revision of that flow, which is not a
|
|
2770
2793
|
* conflict. List with `name` to see a flow's revisions, newest by creation
|
|
2771
2794
|
* time first.
|
|
2772
|
-
* @summary
|
|
2795
|
+
* @summary Publish a flow definition
|
|
2773
2796
|
*/
|
|
2774
|
-
export const
|
|
2797
|
+
export const publishFlowDefinition = async (publishFlowDefinitionBody: PublishFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]): Promise<PublishFlowDefinition201> => {
|
|
2775
2798
|
|
|
2776
2799
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
2777
2800
|
if (!h) return {};
|
|
@@ -2787,12 +2810,12 @@ export const createFlowDefinition = async (createFlowDefinitionBody: CreateFlowD
|
|
|
2787
2810
|
}
|
|
2788
2811
|
return headers;
|
|
2789
2812
|
};
|
|
2790
|
-
return customFetch<
|
|
2813
|
+
return customFetch<PublishFlowDefinition201>(getPublishFlowDefinitionUrl(),
|
|
2791
2814
|
{
|
|
2792
2815
|
...options,
|
|
2793
2816
|
method: 'POST',
|
|
2794
2817
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
2795
|
-
body: JSON.stringify(
|
|
2818
|
+
body: JSON.stringify(publishFlowDefinitionBody)
|
|
2796
2819
|
}
|
|
2797
2820
|
);}
|
|
2798
2821
|
|
|
@@ -2826,7 +2849,7 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams,) =>
|
|
|
2826
2849
|
* creation time first. A flow definition sets which step of a sign-in
|
|
2827
2850
|
* renders when, and which fields each step collects.
|
|
2828
2851
|
*
|
|
2829
|
-
* The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{
|
|
2852
|
+
* The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{flow_definition_id}`)
|
|
2830
2853
|
* takes. Filter by `name` to list the revisions of one flow.
|
|
2831
2854
|
* @summary List flow definitions
|
|
2832
2855
|
*/
|
|
@@ -2843,22 +2866,22 @@ export const listFlowDefinitions = async (params: ListFlowDefinitionsParams, opt
|
|
|
2843
2866
|
|
|
2844
2867
|
|
|
2845
2868
|
|
|
2846
|
-
export const getGetFlowDefinitionUrl = (
|
|
2869
|
+
export const getGetFlowDefinitionUrl = (flowDefinitionId: string,) => {
|
|
2847
2870
|
|
|
2848
2871
|
|
|
2849
2872
|
|
|
2850
2873
|
|
|
2851
|
-
return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(
|
|
2874
|
+
return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(flowDefinitionId))}`
|
|
2852
2875
|
}
|
|
2853
2876
|
|
|
2854
2877
|
/**
|
|
2855
2878
|
* Returns one flow definition revision. Pass the `id` that
|
|
2856
|
-
* `
|
|
2879
|
+
* `publishFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
|
|
2857
2880
|
* @summary Get a flow definition by ID
|
|
2858
2881
|
*/
|
|
2859
|
-
export const getFlowDefinition = async (
|
|
2882
|
+
export const getFlowDefinition = async (flowDefinitionId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowDefinition200> => {
|
|
2860
2883
|
|
|
2861
|
-
return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(
|
|
2884
|
+
return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(flowDefinitionId),
|
|
2862
2885
|
{
|
|
2863
2886
|
...options,
|
|
2864
2887
|
method: 'GET'
|
|
@@ -2998,7 +3021,7 @@ export const getTeam = async (teamId: string, options?: Parameters<typeof custom
|
|
|
2998
3021
|
|
|
2999
3022
|
|
|
3000
3023
|
|
|
3001
|
-
export const
|
|
3024
|
+
export const getDeactivateTeamUrl = (teamId: string,) => {
|
|
3002
3025
|
|
|
3003
3026
|
|
|
3004
3027
|
|
|
@@ -3022,9 +3045,9 @@ export const getDeleteTeamUrl = (teamId: string,) => {
|
|
|
3022
3045
|
* now such a team cannot be deactivated through the API.
|
|
3023
3046
|
* @summary Deactivate a team
|
|
3024
3047
|
*/
|
|
3025
|
-
export const
|
|
3048
|
+
export const deactivateTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
3026
3049
|
|
|
3027
|
-
return customFetch<void>(
|
|
3050
|
+
return customFetch<void>(getDeactivateTeamUrl(teamId),
|
|
3028
3051
|
{
|
|
3029
3052
|
...options,
|
|
3030
3053
|
method: 'DELETE'
|
|
@@ -3095,13 +3118,14 @@ export const getSearchUrl = (params?: SearchParams,) => {
|
|
|
3095
3118
|
}
|
|
3096
3119
|
|
|
3097
3120
|
/**
|
|
3098
|
-
* Finds the resources of
|
|
3121
|
+
* Finds the resources of one project, or of the projects a person can act on, that match a text, across resource types.
|
|
3099
3122
|
*
|
|
3100
3123
|
* `query` is what the person typed and `types` names the kinds of result to
|
|
3101
3124
|
* look for; only those are searched. Each result is a reference: its `type`,
|
|
3102
|
-
* its `id`, a `title` and sometimes a `subtitle`. Read the
|
|
3103
|
-
* with the type's own operation, for example `
|
|
3104
|
-
* (`GET /users/{user_id}`) or `getTeam` (`GET /teams/{team_id}`)
|
|
3125
|
+
* its `id`, its `project_id`, a `title` and sometimes a `subtitle`. Read the
|
|
3126
|
+
* resource itself with the type's own operation, for example `getUser`
|
|
3127
|
+
* (`GET /users/{user_id}`) or `getTeam` (`GET /teams/{team_id}`), in the
|
|
3128
|
+
* result's project.
|
|
3105
3129
|
*
|
|
3106
3130
|
* What a type matches on:
|
|
3107
3131
|
* - `user`: the start of the value they carry as `identifier` or of a part
|
|
@@ -3112,27 +3136,34 @@ export const getSearchUrl = (params?: SearchParams,) => {
|
|
|
3112
3136
|
* - `idp`: the `slug` and the `display_name` of an identity provider
|
|
3113
3137
|
* connection
|
|
3114
3138
|
*
|
|
3115
|
-
* A user matches from the start of
|
|
3116
|
-
*
|
|
3117
|
-
*
|
|
3118
|
-
*
|
|
3119
|
-
*
|
|
3120
|
-
*
|
|
3121
|
-
*
|
|
3139
|
+
* A user matches from the start of a value. Every other type matches from
|
|
3140
|
+
* the start of a name or of a word in it, so `staff` finds "Partner Staff"
|
|
3141
|
+
* and `sso` finds `partner-sso`. Matching ignores case. A `query` that is the
|
|
3142
|
+
* `id` of a resource of a requested type finds that one. A schema and a flow
|
|
3143
|
+
* definition are found at their newest revision.
|
|
3144
|
+
*
|
|
3145
|
+
* `project_id` names the project to search. Without it, a project secret
|
|
3146
|
+
* searches its own project, and a console session searches the projects the
|
|
3147
|
+
* person can act on: the ones `listMyProjects` (`GET /users/me/projects`)
|
|
3148
|
+
* lists, at most the newest 10 by when each was created (`order=desc`).
|
|
3149
|
+
* `more_projects` says the person can act on more than that; search one of
|
|
3150
|
+
* the others by naming it. A caller with access to part of a project finds
|
|
3151
|
+
* only what that access covers.
|
|
3122
3152
|
*
|
|
3123
3153
|
* Authenticate with the project secret (`oauth2`) or a console session cookie
|
|
3124
3154
|
* (`sessionCookie`). A preview secret is refused, as on every management
|
|
3125
3155
|
* operation.
|
|
3126
3156
|
*
|
|
3127
|
-
* Results come best match first, at most `limit_per_type` of each type
|
|
3128
|
-
* types can be mixed in the order.
|
|
3129
|
-
* have more to show: page those with
|
|
3130
|
-
* `queryUsers` (`POST /users/query`) or
|
|
3157
|
+
* Results come best match first, at most `limit_per_type` of each type
|
|
3158
|
+
* across every searched project, and types can be mixed in the order.
|
|
3159
|
+
* `incomplete_types` lists the types that have more to show: page those with
|
|
3160
|
+
* the type's own list, such as `queryUsers` (`POST /users/query`) or
|
|
3161
|
+
* `queryTeams` (`POST /teams/query`).
|
|
3131
3162
|
*
|
|
3132
3163
|
* How text is matched and ranked can change, and later versions can match
|
|
3133
3164
|
* more of a resource. Treat the results as suggestions; to filter by an exact
|
|
3134
3165
|
* rule, use the type's own list.
|
|
3135
|
-
* @summary Search
|
|
3166
|
+
* @summary Search projects
|
|
3136
3167
|
*/
|
|
3137
3168
|
export const search = async (searchBody: SearchBody,
|
|
3138
3169
|
params?: SearchParams, options?: Parameters<typeof customFetch>[1]): Promise<Search200> => {
|
|
@@ -3162,7 +3193,7 @@ return customFetch<Search200>(getSearchUrl(params),
|
|
|
3162
3193
|
|
|
3163
3194
|
|
|
3164
3195
|
|
|
3165
|
-
export const
|
|
3196
|
+
export const getPublishBrandingUrl = (params: PublishBrandingParams,) => {
|
|
3166
3197
|
const normalizedParams = new URLSearchParams();
|
|
3167
3198
|
|
|
3168
3199
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3192,8 +3223,8 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams,) => {
|
|
|
3192
3223
|
* time, in `zitadel deploy` and `zitadel deploy --dry-run`.
|
|
3193
3224
|
* @summary Publish a branding revision
|
|
3194
3225
|
*/
|
|
3195
|
-
export const
|
|
3196
|
-
params:
|
|
3226
|
+
export const publishBranding = async (publishBrandingBody: PublishBrandingBody,
|
|
3227
|
+
params: PublishBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishBranding201> => {
|
|
3197
3228
|
|
|
3198
3229
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
3199
3230
|
if (!h) return {};
|
|
@@ -3209,12 +3240,12 @@ export const createBranding = async (createBrandingBody: CreateBrandingBody,
|
|
|
3209
3240
|
}
|
|
3210
3241
|
return headers;
|
|
3211
3242
|
};
|
|
3212
|
-
return customFetch<
|
|
3243
|
+
return customFetch<PublishBranding201>(getPublishBrandingUrl(params),
|
|
3213
3244
|
{
|
|
3214
3245
|
...options,
|
|
3215
3246
|
method: 'POST',
|
|
3216
3247
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
3217
|
-
body: JSON.stringify(
|
|
3248
|
+
body: JSON.stringify(publishBrandingBody)
|
|
3218
3249
|
}
|
|
3219
3250
|
);}
|
|
3220
3251
|
|
|
@@ -3236,16 +3267,19 @@ export const getListBrandingUrl = (params: ListBrandingParams,) => {
|
|
|
3236
3267
|
}
|
|
3237
3268
|
|
|
3238
3269
|
/**
|
|
3239
|
-
* Lists a project's branding revisions, newest first,
|
|
3240
|
-
*
|
|
3270
|
+
* Lists a project's branding revisions, newest first, paginated with a cursor.
|
|
3271
|
+
* The first entry of the first page is the newest revision.
|
|
3272
|
+
*
|
|
3273
|
+
* Every publish adds a revision, so the list grows without bound. Pass
|
|
3274
|
+
* `next_page_token` back as `page_token` to read the next page.
|
|
3241
3275
|
*
|
|
3242
|
-
* The `id` of an entry is the revision ID that `
|
|
3276
|
+
* The `id` of an entry is the revision ID that `getBranding` (`GET /branding/{branding_id}`) takes and
|
|
3243
3277
|
* that a release pins for `kind: branding`.
|
|
3244
3278
|
* @summary List branding revisions
|
|
3245
3279
|
*/
|
|
3246
|
-
export const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<
|
|
3280
|
+
export const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<ListBranding200> => {
|
|
3247
3281
|
|
|
3248
|
-
return customFetch<
|
|
3282
|
+
return customFetch<ListBranding200>(getListBrandingUrl(params),
|
|
3249
3283
|
{
|
|
3250
3284
|
...options,
|
|
3251
3285
|
method: 'GET'
|
|
@@ -3256,22 +3290,54 @@ export const listBranding = async (params: ListBrandingParams, options?: Paramet
|
|
|
3256
3290
|
|
|
3257
3291
|
|
|
3258
3292
|
|
|
3259
|
-
export const
|
|
3293
|
+
export const getGetBrandingUrl = (brandingId: string,) => {
|
|
3260
3294
|
|
|
3261
3295
|
|
|
3262
3296
|
|
|
3263
3297
|
|
|
3264
|
-
return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(
|
|
3298
|
+
return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(brandingId))}`
|
|
3265
3299
|
}
|
|
3266
3300
|
|
|
3267
3301
|
/**
|
|
3268
3302
|
* Returns one branding revision, including its stored configuration. Pass the
|
|
3269
|
-
* `id` that `
|
|
3303
|
+
* `id` that `publishBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
|
|
3270
3304
|
* @summary Get a branding revision by ID
|
|
3271
3305
|
*/
|
|
3272
|
-
export const
|
|
3306
|
+
export const getBranding = async (brandingId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetBranding200> => {
|
|
3307
|
+
|
|
3308
|
+
return customFetch<GetBranding200>(getGetBrandingUrl(brandingId),
|
|
3309
|
+
{
|
|
3310
|
+
...options,
|
|
3311
|
+
method: 'GET'
|
|
3312
|
+
|
|
3313
|
+
|
|
3314
|
+
}
|
|
3315
|
+
);}
|
|
3316
|
+
|
|
3317
|
+
|
|
3318
|
+
|
|
3319
|
+
export const getGetOAuthSettingsUrl = (oauthSettingsId: string,) => {
|
|
3320
|
+
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
|
|
3324
|
+
return `${getApiBaseUrl()}/oauth_settings/${encodeURIComponent(String(oauthSettingsId))}`
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
* Returns one OAuth settings revision, including its stored settings. Pass
|
|
3329
|
+
* the `revision_id` of the `kind: oauth` pointer on a release, which
|
|
3330
|
+
* `buildRelease` (`POST /releases/build`) and `getRelease`
|
|
3331
|
+
* (`GET /releases/{release_id}`) return.
|
|
3332
|
+
*
|
|
3333
|
+
* A release is the only writer of OAuth settings, so there is no operation
|
|
3334
|
+
* that publishes a revision on its own: put `oauth` in the bundle that
|
|
3335
|
+
* `buildRelease` takes.
|
|
3336
|
+
* @summary Get an OAuth settings revision by ID
|
|
3337
|
+
*/
|
|
3338
|
+
export const getOAuthSettings = async (oauthSettingsId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetOAuthSettings200> => {
|
|
3273
3339
|
|
|
3274
|
-
return customFetch<
|
|
3340
|
+
return customFetch<GetOAuthSettings200>(getGetOAuthSettingsUrl(oauthSettingsId),
|
|
3275
3341
|
{
|
|
3276
3342
|
...options,
|
|
3277
3343
|
method: 'GET'
|
|
@@ -3282,7 +3348,7 @@ export const getBrandingById = async (id: string, options?: Parameters<typeof cu
|
|
|
3282
3348
|
|
|
3283
3349
|
|
|
3284
3350
|
|
|
3285
|
-
export const
|
|
3351
|
+
export const getPublishIdpUrl = (params: PublishIdpParams,) => {
|
|
3286
3352
|
const normalizedParams = new URLSearchParams();
|
|
3287
3353
|
|
|
3288
3354
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3334,8 +3400,8 @@ export const getCreateIdpUrl = (params: CreateIdpParams,) => {
|
|
|
3334
3400
|
* stays unchanged.
|
|
3335
3401
|
* @summary Create or revise an identity provider
|
|
3336
3402
|
*/
|
|
3337
|
-
export const
|
|
3338
|
-
params:
|
|
3403
|
+
export const publishIdp = async (publishIdpBody: PublishIdpBody,
|
|
3404
|
+
params: PublishIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishIdp200 | PublishIdp201> => {
|
|
3339
3405
|
|
|
3340
3406
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
3341
3407
|
if (!h) return {};
|
|
@@ -3351,12 +3417,12 @@ export const createIdp = async (createIdpBody: CreateIdpBody,
|
|
|
3351
3417
|
}
|
|
3352
3418
|
return headers;
|
|
3353
3419
|
};
|
|
3354
|
-
return customFetch<
|
|
3420
|
+
return customFetch<PublishIdp200 | PublishIdp201>(getPublishIdpUrl(params),
|
|
3355
3421
|
{
|
|
3356
3422
|
...options,
|
|
3357
3423
|
method: 'POST',
|
|
3358
3424
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
3359
|
-
body: JSON.stringify(
|
|
3425
|
+
body: JSON.stringify(publishIdpBody)
|
|
3360
3426
|
}
|
|
3361
3427
|
);}
|
|
3362
3428
|
|
|
@@ -3411,8 +3477,8 @@ return customFetch<QueryIdps200>(getQueryIdpsUrl(params),
|
|
|
3411
3477
|
|
|
3412
3478
|
|
|
3413
3479
|
|
|
3414
|
-
export const
|
|
3415
|
-
params:
|
|
3480
|
+
export const getGetIdpUrl = (idpId: string,
|
|
3481
|
+
params: GetIdpParams,) => {
|
|
3416
3482
|
const normalizedParams = new URLSearchParams();
|
|
3417
3483
|
|
|
3418
3484
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3424,21 +3490,21 @@ export const getGetIdpByIdUrl = (id: string,
|
|
|
3424
3490
|
|
|
3425
3491
|
const stringifiedParams = normalizedParams.toString();
|
|
3426
3492
|
|
|
3427
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(
|
|
3493
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}`
|
|
3428
3494
|
}
|
|
3429
3495
|
|
|
3430
3496
|
/**
|
|
3431
3497
|
* Returns an identity provider, an external sign-in such as Google, by ID at
|
|
3432
|
-
* its newest revision. `listIdpRevisions` (`GET /idps/{
|
|
3498
|
+
* its newest revision. `listIdpRevisions` (`GET /idps/{idp_id}/revisions`) lists
|
|
3433
3499
|
* every revision of it.
|
|
3434
3500
|
*
|
|
3435
3501
|
* The lookup is scoped to the project in `project_id`.
|
|
3436
3502
|
* @summary Get an identity provider by ID
|
|
3437
3503
|
*/
|
|
3438
|
-
export const
|
|
3439
|
-
params:
|
|
3504
|
+
export const getIdp = async (idpId: string,
|
|
3505
|
+
params: GetIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdp200> => {
|
|
3440
3506
|
|
|
3441
|
-
return customFetch<
|
|
3507
|
+
return customFetch<GetIdp200>(getGetIdpUrl(idpId,params),
|
|
3442
3508
|
{
|
|
3443
3509
|
...options,
|
|
3444
3510
|
method: 'GET'
|
|
@@ -3449,7 +3515,7 @@ export const getIdpById = async (id: string,
|
|
|
3449
3515
|
|
|
3450
3516
|
|
|
3451
3517
|
|
|
3452
|
-
export const getListIdpRevisionsUrl = (
|
|
3518
|
+
export const getListIdpRevisionsUrl = (idpId: string,
|
|
3453
3519
|
params: ListIdpRevisionsParams,) => {
|
|
3454
3520
|
const normalizedParams = new URLSearchParams();
|
|
3455
3521
|
|
|
@@ -3462,7 +3528,7 @@ export const getListIdpRevisionsUrl = (id: string,
|
|
|
3462
3528
|
|
|
3463
3529
|
const stringifiedParams = normalizedParams.toString();
|
|
3464
3530
|
|
|
3465
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(
|
|
3531
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(idpId))}/revisions`
|
|
3466
3532
|
}
|
|
3467
3533
|
|
|
3468
3534
|
/**
|
|
@@ -3473,10 +3539,10 @@ export const getListIdpRevisionsUrl = (id: string,
|
|
|
3473
3539
|
* The lookup is scoped to the project in `project_id`.
|
|
3474
3540
|
* @summary List the revisions of an identity provider
|
|
3475
3541
|
*/
|
|
3476
|
-
export const listIdpRevisions = async (
|
|
3542
|
+
export const listIdpRevisions = async (idpId: string,
|
|
3477
3543
|
params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListIdpRevisions200> => {
|
|
3478
3544
|
|
|
3479
|
-
return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(
|
|
3545
|
+
return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(idpId,params),
|
|
3480
3546
|
{
|
|
3481
3547
|
...options,
|
|
3482
3548
|
method: 'GET'
|
|
@@ -3487,8 +3553,8 @@ export const listIdpRevisions = async (id: string,
|
|
|
3487
3553
|
|
|
3488
3554
|
|
|
3489
3555
|
|
|
3490
|
-
export const
|
|
3491
|
-
params:
|
|
3556
|
+
export const getGetIdpRevisionUrl = (revisionId: string,
|
|
3557
|
+
params: GetIdpRevisionParams,) => {
|
|
3492
3558
|
const normalizedParams = new URLSearchParams();
|
|
3493
3559
|
|
|
3494
3560
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3511,10 +3577,10 @@ export const getGetIdpRevisionByIdUrl = (revisionId: string,
|
|
|
3511
3577
|
* The lookup is scoped to the project in `project_id`.
|
|
3512
3578
|
* @summary Get a revision of an identity provider
|
|
3513
3579
|
*/
|
|
3514
|
-
export const
|
|
3515
|
-
params:
|
|
3580
|
+
export const getIdpRevision = async (revisionId: string,
|
|
3581
|
+
params: GetIdpRevisionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpRevision200> => {
|
|
3516
3582
|
|
|
3517
|
-
return customFetch<
|
|
3583
|
+
return customFetch<GetIdpRevision200>(getGetIdpRevisionUrl(revisionId,params),
|
|
3518
3584
|
{
|
|
3519
3585
|
...options,
|
|
3520
3586
|
method: 'GET'
|
|
@@ -3525,7 +3591,7 @@ export const getIdpRevisionById = async (revisionId: string,
|
|
|
3525
3591
|
|
|
3526
3592
|
|
|
3527
3593
|
|
|
3528
|
-
export const
|
|
3594
|
+
export const getPublishApplicationUrl = (params: PublishApplicationParams,) => {
|
|
3529
3595
|
const normalizedParams = new URLSearchParams();
|
|
3530
3596
|
|
|
3531
3597
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3550,13 +3616,13 @@ export const getCreateApplicationUrl = (params: CreateApplicationParams,) => {
|
|
|
3550
3616
|
* `id`. Sending an unchanged document also creates a revision. Each client
|
|
3551
3617
|
* is matched to the stored one by its slug and keeps its `client_id`: a
|
|
3552
3618
|
* revision that changes a client's `client_id` is rejected with
|
|
3553
|
-
* `
|
|
3619
|
+
* `app.field_immutable`. A revision keeps every client of the
|
|
3554
3620
|
* stored document: one that omits a client is also rejected with
|
|
3555
|
-
* `
|
|
3621
|
+
* `app.field_immutable`, since removing a client is not available
|
|
3556
3622
|
* yet. A client with a new slug is a new client. It takes the `client_id`
|
|
3557
3623
|
* the document supplies, or the server generates one, and every response
|
|
3558
3624
|
* carries it in `definition`. A `client_id` another client of the project
|
|
3559
|
-
* holds, or ever held, is rejected with `
|
|
3625
|
+
* holds, or ever held, is rejected with `app.client_id_taken`.
|
|
3560
3626
|
*
|
|
3561
3627
|
* Every new client gets a secret, generated by the server and returned once
|
|
3562
3628
|
* in `client_secrets`. The server stores only its hash, so no later read
|
|
@@ -3567,15 +3633,15 @@ export const getCreateApplicationUrl = (params: CreateApplicationParams,) => {
|
|
|
3567
3633
|
* applies: `refresh_token` comes with `authorization_code`, a client with
|
|
3568
3634
|
* `authorization_code` has at least one redirect URI, and each redirect
|
|
3569
3635
|
* URI meets the rules `redirect_uris` states. A document that breaks one
|
|
3570
|
-
* is refused with `
|
|
3636
|
+
* is refused with `app.invalid`, whose details identify the
|
|
3571
3637
|
* setting.
|
|
3572
3638
|
*
|
|
3573
3639
|
* If the document is refused, no change is stored and an existing
|
|
3574
3640
|
* application keeps its current revision.
|
|
3575
3641
|
* @summary Create or revise a registered application
|
|
3576
3642
|
*/
|
|
3577
|
-
export const
|
|
3578
|
-
params:
|
|
3643
|
+
export const publishApplication = async (publishApplicationBody: PublishApplicationBody,
|
|
3644
|
+
params: PublishApplicationParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishApplication200 | PublishApplication201> => {
|
|
3579
3645
|
|
|
3580
3646
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
3581
3647
|
if (!h) return {};
|
|
@@ -3591,19 +3657,19 @@ export const createApplication = async (createApplicationBody: CreateApplication
|
|
|
3591
3657
|
}
|
|
3592
3658
|
return headers;
|
|
3593
3659
|
};
|
|
3594
|
-
return customFetch<
|
|
3660
|
+
return customFetch<PublishApplication200 | PublishApplication201>(getPublishApplicationUrl(params),
|
|
3595
3661
|
{
|
|
3596
3662
|
...options,
|
|
3597
3663
|
method: 'POST',
|
|
3598
3664
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
3599
|
-
body: JSON.stringify(
|
|
3665
|
+
body: JSON.stringify(publishApplicationBody)
|
|
3600
3666
|
}
|
|
3601
3667
|
);}
|
|
3602
3668
|
|
|
3603
3669
|
|
|
3604
3670
|
|
|
3605
|
-
export const
|
|
3606
|
-
params:
|
|
3671
|
+
export const getGetApplicationUrl = (applicationId: string,
|
|
3672
|
+
params: GetApplicationParams,) => {
|
|
3607
3673
|
const normalizedParams = new URLSearchParams();
|
|
3608
3674
|
|
|
3609
3675
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3615,22 +3681,22 @@ export const getGetApplicationByIdUrl = (id: string,
|
|
|
3615
3681
|
|
|
3616
3682
|
const stringifiedParams = normalizedParams.toString();
|
|
3617
3683
|
|
|
3618
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/applications/${encodeURIComponent(String(
|
|
3684
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/applications/${encodeURIComponent(String(applicationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/applications/${encodeURIComponent(String(applicationId))}`
|
|
3619
3685
|
}
|
|
3620
3686
|
|
|
3621
3687
|
/**
|
|
3622
3688
|
* Returns an application that authenticates its users via Zitadel, by ID
|
|
3623
3689
|
* at its newest revision, with each client's `client_id` in `definition`. It
|
|
3624
|
-
* never returns a client secret: `
|
|
3690
|
+
* never returns a client secret: `publishApplication` (`POST /applications`)
|
|
3625
3691
|
* shows one once, when it creates the client.
|
|
3626
3692
|
*
|
|
3627
3693
|
* The lookup is scoped to the project in `project_id`.
|
|
3628
3694
|
* @summary Get an application by ID
|
|
3629
3695
|
*/
|
|
3630
|
-
export const
|
|
3631
|
-
params:
|
|
3696
|
+
export const getApplication = async (applicationId: string,
|
|
3697
|
+
params: GetApplicationParams, options?: Parameters<typeof customFetch>[1]): Promise<GetApplication200> => {
|
|
3632
3698
|
|
|
3633
|
-
return customFetch<
|
|
3699
|
+
return customFetch<GetApplication200>(getGetApplicationUrl(applicationId,params),
|
|
3634
3700
|
{
|
|
3635
3701
|
...options,
|
|
3636
3702
|
method: 'GET'
|
|
@@ -3968,7 +4034,7 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams,) => {
|
|
|
3968
4034
|
* A release is a snapshot of the project's configuration: it pins one
|
|
3969
4035
|
* revision of each resource it includes, and it is not tied to an origin.
|
|
3970
4036
|
* Take each `revision_id` from the operation that created the revision, for
|
|
3971
|
-
* example the `id` that `
|
|
4037
|
+
* example the `id` that `publishBranding` (`POST /branding`) or `publishFlowDefinition` (`POST /flow_definitions`) returns.
|
|
3972
4038
|
*
|
|
3973
4039
|
* Each revision must exist in the project and is recorded under the handle
|
|
3974
4040
|
* it declares. The release must be complete and consistent:
|
|
@@ -4039,9 +4105,9 @@ export const getListReleasesUrl = (params: ListReleasesParams,) => {
|
|
|
4039
4105
|
* project's configuration.
|
|
4040
4106
|
*
|
|
4041
4107
|
* Entries carry the digest, the metadata and `revoked_at`. The pinned set is
|
|
4042
|
-
* omitted: read one release with `
|
|
4108
|
+
* omitted: read one release with `getRelease` (`GET /releases/{release_id}`) to get its pointers.
|
|
4043
4109
|
*
|
|
4044
|
-
* The `id` of an entry is the release ID that `
|
|
4110
|
+
* The `id` of an entry is the release ID that `getRelease`,
|
|
4045
4111
|
* `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
|
|
4046
4112
|
*
|
|
4047
4113
|
* `content_hash` looks a release up by its content, as the CLI does when a
|
|
@@ -4110,8 +4176,8 @@ export const getBuildReleaseUrl = (params: BuildReleaseParams,) => {
|
|
|
4110
4176
|
*
|
|
4111
4177
|
* Building writes revisions, so besides `release.write` it needs the write
|
|
4112
4178
|
* scope of every kind the bundle carries a resource of: `schema.write`,
|
|
4113
|
-
* `flow_definition.write`, `branding.write`, `idp.write
|
|
4114
|
-
* as the per-kind create endpoints do. A missing scope answers `403` with
|
|
4179
|
+
* `flow_definition.write`, `branding.write`, `idp.write`, `policy.write`
|
|
4180
|
+
* and `oauth_settings.write`, as the per-kind create endpoints do. A missing scope answers `403` with
|
|
4115
4181
|
* `rel.permission_denied`, naming the kind. Request a token with that scope.
|
|
4116
4182
|
* An empty kind needs no scope.
|
|
4117
4183
|
*
|
|
@@ -4148,8 +4214,8 @@ return customFetch<BuildRelease200 | BuildRelease201>(getBuildReleaseUrl(params)
|
|
|
4148
4214
|
|
|
4149
4215
|
|
|
4150
4216
|
|
|
4151
|
-
export const
|
|
4152
|
-
params:
|
|
4217
|
+
export const getGetReleaseUrl = (releaseId: string,
|
|
4218
|
+
params: GetReleaseParams,) => {
|
|
4153
4219
|
const normalizedParams = new URLSearchParams();
|
|
4154
4220
|
|
|
4155
4221
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -4183,10 +4249,10 @@ export const getGetReleaseByIdUrl = (releaseId: string,
|
|
|
4183
4249
|
* caller cannot read.
|
|
4184
4250
|
* @summary Get a release by ID
|
|
4185
4251
|
*/
|
|
4186
|
-
export const
|
|
4187
|
-
params:
|
|
4252
|
+
export const getRelease = async (releaseId: string,
|
|
4253
|
+
params: GetReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<GetRelease200> => {
|
|
4188
4254
|
|
|
4189
|
-
return customFetch<
|
|
4255
|
+
return customFetch<GetRelease200>(getGetReleaseUrl(releaseId,params),
|
|
4190
4256
|
{
|
|
4191
4257
|
...options,
|
|
4192
4258
|
method: 'GET'
|
|
@@ -4275,7 +4341,7 @@ export const getCreateGrantUrl = (params: CreateGrantParams,) => {
|
|
|
4275
4341
|
* The project is the one named by the `project_id` query parameter. Name the
|
|
4276
4342
|
* principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
|
|
4277
4343
|
* `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
|
|
4278
|
-
* `getGrant` (`GET /grants/{
|
|
4344
|
+
* `getGrant` (`GET /grants/{grant_id}`) and `deleteGrant` (`DELETE /grants/{grant_id}`) take. Owning-team (`project.team`) grants are not
|
|
4279
4345
|
* created here: a claim, which attaches a project to a team, creates them.
|
|
4280
4346
|
*
|
|
4281
4347
|
* An unrevoked grant with the same principal and relation holds that binding
|
|
@@ -4345,7 +4411,7 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams,) => {
|
|
|
4345
4411
|
*
|
|
4346
4412
|
* Only unrevoked grants this API manages are listed, which bind a user or team
|
|
4347
4413
|
* to the viewer, editor or admin role. Expired grants are included, so a client
|
|
4348
|
-
* can revoke them with `deleteGrant` (`DELETE /grants/{
|
|
4414
|
+
* can revoke them with `deleteGrant` (`DELETE /grants/{grant_id}`) before it grants the same binding again.
|
|
4349
4415
|
* Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
|
|
4350
4416
|
* not returned. Requires `project.read`.
|
|
4351
4417
|
*
|
|
@@ -4385,7 +4451,7 @@ return customFetch<QueryGrants200>(getQueryGrantsUrl(params),
|
|
|
4385
4451
|
|
|
4386
4452
|
|
|
4387
4453
|
|
|
4388
|
-
export const getGetGrantUrl = (
|
|
4454
|
+
export const getGetGrantUrl = (grantId: string,
|
|
4389
4455
|
params: GetGrantParams,) => {
|
|
4390
4456
|
const normalizedParams = new URLSearchParams();
|
|
4391
4457
|
|
|
@@ -4406,7 +4472,7 @@ export const getGetGrantUrl = (id: string,
|
|
|
4406
4472
|
|
|
4407
4473
|
const stringifiedParams = normalizedParams.toString();
|
|
4408
4474
|
|
|
4409
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(
|
|
4475
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}`
|
|
4410
4476
|
}
|
|
4411
4477
|
|
|
4412
4478
|
/**
|
|
@@ -4414,7 +4480,7 @@ export const getGetGrantUrl = (id: string,
|
|
|
4414
4480
|
*
|
|
4415
4481
|
* This API manages grants that bind a user or team to the viewer, editor or
|
|
4416
4482
|
* admin role. An expired grant is still returned, so you can revoke it with
|
|
4417
|
-
* `deleteGrant` (`DELETE /grants/{
|
|
4483
|
+
* `deleteGrant` (`DELETE /grants/{grant_id}`) before you grant the same binding again. Authorization still
|
|
4418
4484
|
* ignores expired grants. Send `project_id` as well as the grant ID.
|
|
4419
4485
|
* Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
|
|
4420
4486
|
* (`relation=team`) rows and grants of another project all return `404`.
|
|
@@ -4428,10 +4494,10 @@ export const getGetGrantUrl = (id: string,
|
|
|
4428
4494
|
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
4429
4495
|
* @summary Get a grant by ID
|
|
4430
4496
|
*/
|
|
4431
|
-
export const getGrant = async (
|
|
4497
|
+
export const getGrant = async (grantId: string,
|
|
4432
4498
|
params: GetGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<GetGrant200> => {
|
|
4433
4499
|
|
|
4434
|
-
return customFetch<GetGrant200>(getGetGrantUrl(
|
|
4500
|
+
return customFetch<GetGrant200>(getGetGrantUrl(grantId,params),
|
|
4435
4501
|
{
|
|
4436
4502
|
...options,
|
|
4437
4503
|
method: 'GET'
|
|
@@ -4442,7 +4508,7 @@ export const getGrant = async (id: string,
|
|
|
4442
4508
|
|
|
4443
4509
|
|
|
4444
4510
|
|
|
4445
|
-
export const getDeleteGrantUrl = (
|
|
4511
|
+
export const getDeleteGrantUrl = (grantId: string,
|
|
4446
4512
|
params: DeleteGrantParams,) => {
|
|
4447
4513
|
const normalizedParams = new URLSearchParams();
|
|
4448
4514
|
|
|
@@ -4455,7 +4521,7 @@ export const getDeleteGrantUrl = (id: string,
|
|
|
4455
4521
|
|
|
4456
4522
|
const stringifiedParams = normalizedParams.toString();
|
|
4457
4523
|
|
|
4458
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(
|
|
4524
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(grantId))}`
|
|
4459
4525
|
}
|
|
4460
4526
|
|
|
4461
4527
|
/**
|
|
@@ -4469,10 +4535,10 @@ export const getDeleteGrantUrl = (id: string,
|
|
|
4469
4535
|
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
4470
4536
|
* @summary Revoke a grant
|
|
4471
4537
|
*/
|
|
4472
|
-
export const deleteGrant = async (
|
|
4538
|
+
export const deleteGrant = async (grantId: string,
|
|
4473
4539
|
params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
4474
4540
|
|
|
4475
|
-
return customFetch<void>(getDeleteGrantUrl(
|
|
4541
|
+
return customFetch<void>(getDeleteGrantUrl(grantId,params),
|
|
4476
4542
|
{
|
|
4477
4543
|
...options,
|
|
4478
4544
|
method: 'DELETE'
|
|
@@ -4507,8 +4573,8 @@ export const getCreateInvitationUrl = (params: CreateInvitationParams,) => {
|
|
|
4507
4573
|
* and `role`, and answers `501` `not_implemented` until team invitations
|
|
4508
4574
|
* ship. Optional `metadata.name` labels who the link is for. Optional
|
|
4509
4575
|
* `replaces_invitation_id` replaces that invitation: the new row keeps the
|
|
4510
|
-
* original's `journey_id`, and
|
|
4511
|
-
* transaction.
|
|
4576
|
+
* original's `journey_id`, and the original is deleted in the same
|
|
4577
|
+
* transaction unless it was accepted.
|
|
4512
4578
|
*
|
|
4513
4579
|
* The `link` appears only in this response. Share it out of band; whoever
|
|
4514
4580
|
* opens it and is signed in can redeem the role. It expires in 72 hours.
|
|
@@ -4728,7 +4794,7 @@ return customFetch<RejectInvitation200>(getRejectInvitationUrl(),
|
|
|
4728
4794
|
|
|
4729
4795
|
|
|
4730
4796
|
|
|
4731
|
-
export const getGetInvitationUrl = (
|
|
4797
|
+
export const getGetInvitationUrl = (invitationId: string,
|
|
4732
4798
|
params: GetInvitationParams,) => {
|
|
4733
4799
|
const normalizedParams = new URLSearchParams();
|
|
4734
4800
|
|
|
@@ -4741,7 +4807,7 @@ export const getGetInvitationUrl = (id: string,
|
|
|
4741
4807
|
|
|
4742
4808
|
const stringifiedParams = normalizedParams.toString();
|
|
4743
4809
|
|
|
4744
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(
|
|
4810
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`
|
|
4745
4811
|
}
|
|
4746
4812
|
|
|
4747
4813
|
/**
|
|
@@ -4753,10 +4819,10 @@ export const getGetInvitationUrl = (id: string,
|
|
|
4753
4819
|
* `createGrant` (`POST /grants`).
|
|
4754
4820
|
* @summary Get an invitation
|
|
4755
4821
|
*/
|
|
4756
|
-
export const getInvitation = async (
|
|
4822
|
+
export const getInvitation = async (invitationId: string,
|
|
4757
4823
|
params: GetInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<GetInvitation200> => {
|
|
4758
4824
|
|
|
4759
|
-
return customFetch<GetInvitation200>(getGetInvitationUrl(
|
|
4825
|
+
return customFetch<GetInvitation200>(getGetInvitationUrl(invitationId,params),
|
|
4760
4826
|
{
|
|
4761
4827
|
...options,
|
|
4762
4828
|
method: 'GET'
|
|
@@ -4767,7 +4833,7 @@ export const getInvitation = async (id: string,
|
|
|
4767
4833
|
|
|
4768
4834
|
|
|
4769
4835
|
|
|
4770
|
-
export const getCancelInvitationUrl = (
|
|
4836
|
+
export const getCancelInvitationUrl = (invitationId: string,
|
|
4771
4837
|
params: CancelInvitationParams,) => {
|
|
4772
4838
|
const normalizedParams = new URLSearchParams();
|
|
4773
4839
|
|
|
@@ -4780,7 +4846,7 @@ export const getCancelInvitationUrl = (id: string,
|
|
|
4780
4846
|
|
|
4781
4847
|
const stringifiedParams = normalizedParams.toString();
|
|
4782
4848
|
|
|
4783
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(
|
|
4849
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`
|
|
4784
4850
|
}
|
|
4785
4851
|
|
|
4786
4852
|
/**
|
|
@@ -4795,10 +4861,10 @@ export const getCancelInvitationUrl = (id: string,
|
|
|
4795
4861
|
* rules.
|
|
4796
4862
|
* @summary Cancel an invitation
|
|
4797
4863
|
*/
|
|
4798
|
-
export const cancelInvitation = async (
|
|
4864
|
+
export const cancelInvitation = async (invitationId: string,
|
|
4799
4865
|
params: CancelInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
|
|
4800
4866
|
|
|
4801
|
-
return customFetch<void>(getCancelInvitationUrl(
|
|
4867
|
+
return customFetch<void>(getCancelInvitationUrl(invitationId,params),
|
|
4802
4868
|
{
|
|
4803
4869
|
...options,
|
|
4804
4870
|
method: 'DELETE'
|
|
@@ -4845,13 +4911,13 @@ export const getListEventsUrl = (params: ListEventsParams,) => {
|
|
|
4845
4911
|
* credential's team. Team-scoped credentials are not issued today.
|
|
4846
4912
|
*
|
|
4847
4913
|
* Each item carries an `event_type` that says which type of event it is, and
|
|
4848
|
-
* the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{
|
|
4914
|
+
* the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{event_id}`).
|
|
4849
4915
|
*
|
|
4850
4916
|
* Filters combine. These are answered from an index and fill their pages: no
|
|
4851
4917
|
* filter, `category`, `event_type`, `status_class`, `operation_id` with or
|
|
4852
4918
|
* without `status_class`, `request_id`, `flow_id`, and `session_id`,
|
|
4853
|
-
* `entity_id`, `actor_id` or `entity_type` with or without
|
|
4854
|
-
* with or without the time bounds. Any other filter or combination is
|
|
4919
|
+
* `entity_id`, `user_id`, `actor_id` or `entity_type` with or without
|
|
4920
|
+
* `category`, each with or without the time bounds. Any other filter or combination is
|
|
4855
4921
|
* matched event by event, over at most a few thousand events per request.
|
|
4856
4922
|
* Such a page can hold fewer events than `limit`, or none, and still carry
|
|
4857
4923
|
* `next_page_token`: keep passing the token until a response has none.
|
|
@@ -4870,7 +4936,7 @@ export const listEvents = async (params: ListEventsParams, options?: Parameters<
|
|
|
4870
4936
|
|
|
4871
4937
|
|
|
4872
4938
|
|
|
4873
|
-
export const getGetEventUrl = (
|
|
4939
|
+
export const getGetEventUrl = (eventId: string,
|
|
4874
4940
|
params: GetEventParams,) => {
|
|
4875
4941
|
const normalizedParams = new URLSearchParams();
|
|
4876
4942
|
|
|
@@ -4883,7 +4949,7 @@ export const getGetEventUrl = (id: string,
|
|
|
4883
4949
|
|
|
4884
4950
|
const stringifiedParams = normalizedParams.toString();
|
|
4885
4951
|
|
|
4886
|
-
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(
|
|
4952
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(eventId))}?${stringifiedParams}` : `${getApiBaseUrl()}/events/${encodeURIComponent(String(eventId))}`
|
|
4887
4953
|
}
|
|
4888
4954
|
|
|
4889
4955
|
/**
|
|
@@ -4899,10 +4965,10 @@ export const getGetEventUrl = (id: string,
|
|
|
4899
4965
|
* platform operators read them from the start.
|
|
4900
4966
|
* @summary Get an event by ID
|
|
4901
4967
|
*/
|
|
4902
|
-
export const getEvent = async (
|
|
4968
|
+
export const getEvent = async (eventId: string,
|
|
4903
4969
|
params: GetEventParams, options?: Parameters<typeof customFetch>[1]): Promise<GetEvent200> => {
|
|
4904
4970
|
|
|
4905
|
-
return customFetch<GetEvent200>(getGetEventUrl(
|
|
4971
|
+
return customFetch<GetEvent200>(getGetEventUrl(eventId,params),
|
|
4906
4972
|
{
|
|
4907
4973
|
...options,
|
|
4908
4974
|
method: 'GET'
|
|
@@ -4913,7 +4979,7 @@ export const getEvent = async (id: string,
|
|
|
4913
4979
|
|
|
4914
4980
|
|
|
4915
4981
|
|
|
4916
|
-
export const
|
|
4982
|
+
export const getListVariablesUrl = (params: ListVariablesParams,) => {
|
|
4917
4983
|
const normalizedParams = new URLSearchParams();
|
|
4918
4984
|
|
|
4919
4985
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -4937,9 +5003,9 @@ export const getGetVariablesUrl = (params: GetVariablesParams,) => {
|
|
|
4937
5003
|
* which says a value is held without disclosing it.
|
|
4938
5004
|
* @summary Get a project's variables
|
|
4939
5005
|
*/
|
|
4940
|
-
export const
|
|
5006
|
+
export const listVariables = async (params: ListVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListVariables200> => {
|
|
4941
5007
|
|
|
4942
|
-
return customFetch<
|
|
5008
|
+
return customFetch<ListVariables200>(getListVariablesUrl(params),
|
|
4943
5009
|
{
|
|
4944
5010
|
...options,
|
|
4945
5011
|
method: 'GET'
|
|
@@ -4950,7 +5016,7 @@ export const getVariables = async (params: GetVariablesParams, options?: Paramet
|
|
|
4950
5016
|
|
|
4951
5017
|
|
|
4952
5018
|
|
|
4953
|
-
export const
|
|
5019
|
+
export const getSetVariablesUrl = (params: SetVariablesParams,) => {
|
|
4954
5020
|
const normalizedParams = new URLSearchParams();
|
|
4955
5021
|
|
|
4956
5022
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -4990,8 +5056,8 @@ export const getUpdateVariablesUrl = (params: UpdateVariablesParams,) => {
|
|
|
4990
5056
|
* `variable.removed` event. The value never appears in either.
|
|
4991
5057
|
* @summary Update a project's variables
|
|
4992
5058
|
*/
|
|
4993
|
-
export const
|
|
4994
|
-
params:
|
|
5059
|
+
export const setVariables = async (setVariablesBody: SetVariablesBody,
|
|
5060
|
+
params: SetVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<SetVariables200> => {
|
|
4995
5061
|
|
|
4996
5062
|
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
|
4997
5063
|
if (!h) return {};
|
|
@@ -5007,12 +5073,12 @@ export const updateVariables = async (updateVariablesBody: UpdateVariablesBody,
|
|
|
5007
5073
|
}
|
|
5008
5074
|
return headers;
|
|
5009
5075
|
};
|
|
5010
|
-
return customFetch<
|
|
5076
|
+
return customFetch<SetVariables200>(getSetVariablesUrl(params),
|
|
5011
5077
|
{
|
|
5012
5078
|
...options,
|
|
5013
5079
|
method: 'PATCH',
|
|
5014
5080
|
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
5015
|
-
body: JSON.stringify(
|
|
5081
|
+
body: JSON.stringify(setVariablesBody)
|
|
5016
5082
|
}
|
|
5017
5083
|
);}
|
|
5018
5084
|
|
|
@@ -5039,9 +5105,9 @@ export const getGetVariableUrl = (variableName: string,
|
|
|
5039
5105
|
* holds a value per kind: `primary` for primary origins and `preview` for
|
|
5040
5106
|
* preview URLs.
|
|
5041
5107
|
*
|
|
5042
|
-
* Pass the name of a variable the project holds, as `
|
|
5108
|
+
* Pass the name of a variable the project holds, as `listVariables` (`GET /variables`) lists
|
|
5043
5109
|
* it. A name with no value for the requested kind answers `var.not_found`;
|
|
5044
|
-
* set it with `
|
|
5110
|
+
* set it with `setVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
|
|
5045
5111
|
* @summary Get a variable by name
|
|
5046
5112
|
*/
|
|
5047
5113
|
export const getVariable = async (variableName: string,
|
|
@@ -5080,9 +5146,9 @@ export const getDeleteVariableUrl = (variableName: string,
|
|
|
5080
5146
|
* records a `variable.removed` event.
|
|
5081
5147
|
*
|
|
5082
5148
|
* A name with no value for that kind answers `var.not_found`: there is
|
|
5083
|
-
* nothing to delete. `
|
|
5149
|
+
* nothing to delete. `listVariables` (`GET /variables`) lists the names the project holds. To
|
|
5084
5150
|
* remove several names in one request, or to remove a name that may already
|
|
5085
|
-
* be absent, send `null` for each name to `
|
|
5151
|
+
* be absent, send `null` for each name to `setVariables` (`PATCH /variables`).
|
|
5086
5152
|
* @summary Delete a variable by name
|
|
5087
5153
|
*/
|
|
5088
5154
|
export const deleteVariable = async (variableName: string,
|
|
@@ -5156,7 +5222,7 @@ export const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {
|
|
|
5156
5222
|
* the request.
|
|
5157
5223
|
* - `400 dep.variables_missing`: a variable the release references has no
|
|
5158
5224
|
* value for the kind. `details` names the kind and every missing variable.
|
|
5159
|
-
* Set each one for that kind with `
|
|
5225
|
+
* Set each one for that kind with `setVariables` (`PATCH /variables`), then deploy again.
|
|
5160
5226
|
* - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
|
|
5161
5227
|
* of the project, or is a loopback URL. Use a URL that matches a pattern.
|
|
5162
5228
|
* - `404 rel.not_found`: the release ID or digest names no release in this
|
|
@@ -5227,7 +5293,8 @@ export const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {
|
|
|
5227
5293
|
* A deployment makes a release live on origins. By default the list is the
|
|
5228
5294
|
* history, newest first: every deployment of the project, with every target
|
|
5229
5295
|
* it made the release live on. With `origin`, it is the history of that
|
|
5230
|
-
* origin alone.
|
|
5296
|
+
* origin alone. With `release_id`, it is every deployment of that release,
|
|
5297
|
+
* superseded ones included.
|
|
5231
5298
|
*
|
|
5232
5299
|
* With `live=true`, the list is what is served now, newest first. It holds
|
|
5233
5300
|
* the project's newest primary deployment with every origin it names, an
|
|
@@ -5236,9 +5303,12 @@ export const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {
|
|
|
5236
5303
|
* deployment to each live preview URL, narrowed to the URLs it still
|
|
5237
5304
|
* serves. Combined with `origin`, it is the one deployment that origin
|
|
5238
5305
|
* serves, or empty, as it is for an origin the project no longer lists.
|
|
5306
|
+
* Combined with `release_id`, it is the deployments of the live view that
|
|
5307
|
+
* serve that release: the primary deployment only when it is of that
|
|
5308
|
+
* release, and the previews serving it.
|
|
5239
5309
|
*
|
|
5240
|
-
* The `id` of an entry is the deployment ID that `
|
|
5241
|
-
* `
|
|
5310
|
+
* The `id` of an entry is the deployment ID that `getDeployment` (`GET /deployments/{deployment_id}`),
|
|
5311
|
+
* `listDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
|
|
5242
5312
|
*
|
|
5243
5313
|
* `expand: ["release"]` embeds the release each deployment made live. It
|
|
5244
5314
|
* requires `release.read` and does not change the ordering or the page
|
|
@@ -5258,8 +5328,8 @@ export const listDeployments = async (params: ListDeploymentsParams, options?: P
|
|
|
5258
5328
|
|
|
5259
5329
|
|
|
5260
5330
|
|
|
5261
|
-
export const
|
|
5262
|
-
params:
|
|
5331
|
+
export const getGetDeploymentUrl = (deploymentId: string,
|
|
5332
|
+
params: GetDeploymentParams,) => {
|
|
5263
5333
|
const normalizedParams = new URLSearchParams();
|
|
5264
5334
|
|
|
5265
5335
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -5287,10 +5357,10 @@ export const getGetDeploymentByIdUrl = (deploymentId: string,
|
|
|
5287
5357
|
* the caller cannot read.
|
|
5288
5358
|
* @summary Get a deployment by ID
|
|
5289
5359
|
*/
|
|
5290
|
-
export const
|
|
5291
|
-
params:
|
|
5360
|
+
export const getDeployment = async (deploymentId: string,
|
|
5361
|
+
params: GetDeploymentParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeployment200> => {
|
|
5292
5362
|
|
|
5293
|
-
return customFetch<
|
|
5363
|
+
return customFetch<GetDeployment200>(getGetDeploymentUrl(deploymentId,params),
|
|
5294
5364
|
{
|
|
5295
5365
|
...options,
|
|
5296
5366
|
method: 'GET'
|
|
@@ -5387,8 +5457,8 @@ return customFetch<RollbackDeployment200 | RollbackDeployment201>(getRollbackDep
|
|
|
5387
5457
|
|
|
5388
5458
|
|
|
5389
5459
|
|
|
5390
|
-
export const
|
|
5391
|
-
params:
|
|
5460
|
+
export const getListDeploymentVariablesUrl = (deploymentId: string,
|
|
5461
|
+
params: ListDeploymentVariablesParams,) => {
|
|
5392
5462
|
const normalizedParams = new URLSearchParams();
|
|
5393
5463
|
|
|
5394
5464
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -5411,10 +5481,10 @@ export const getGetDeploymentVariablesUrl = (deploymentId: string,
|
|
|
5411
5481
|
* Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
|
|
5412
5482
|
* @summary Get a deployment's variables
|
|
5413
5483
|
*/
|
|
5414
|
-
export const
|
|
5415
|
-
params:
|
|
5484
|
+
export const listDeploymentVariables = async (deploymentId: string,
|
|
5485
|
+
params: ListDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListDeploymentVariables200> => {
|
|
5416
5486
|
|
|
5417
|
-
return customFetch<
|
|
5487
|
+
return customFetch<ListDeploymentVariables200>(getListDeploymentVariablesUrl(deploymentId,params),
|
|
5418
5488
|
{
|
|
5419
5489
|
...options,
|
|
5420
5490
|
method: 'GET'
|