@zitadel/api 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +471 -56
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +30 -6
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +2082 -576
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1889 -294
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1837 -333
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +448 -79
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/{index-BK4Q468Q.d.mts → index-ruwZ9xDe.d.mts} +20529 -11466
- package/dist/index-ruwZ9xDe.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/{zitadelNextGen-C8m49W5h.d.mts → zitadelNextGen-DPyZep6V.d.mts} +259 -37
- package/dist/zitadelNextGen-DPyZep6V.d.mts.map +1 -0
- package/package.json +1 -1
- package/src/generated/endpoints/zitadelNextGen.msw.ts +3264 -452
- package/src/generated/endpoints/zitadelNextGen.ts +623 -60
- package/src/generated/endpoints/zitadelNextGen.zod.ts +6812 -2003
- package/src/generated/model/completeClaim410.ts +21 -16
- package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +8 -1
- package/src/generated/model/createBranding201.ts +8 -7
- package/src/generated/model/createBranding201Branding.ts +50 -24
- package/src/generated/model/createBranding201BrandingLayout.ts +8 -4
- package/src/generated/model/createBranding201BrandingShape.ts +31 -0
- package/src/generated/model/createBranding201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/createBranding201BrandingTheme.ts +37 -0
- package/src/generated/model/createBranding201BrandingThemeDark.ts +33 -0
- package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/createBranding201BrandingThemeLight.ts +33 -0
- package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/createBranding201BrandingThemeMode.ts +20 -0
- package/src/generated/model/createBranding201BrandingTypography.ts +49 -0
- package/src/generated/model/createBrandingBody.ts +50 -24
- package/src/generated/model/createBrandingBodyLayout.ts +8 -4
- package/src/generated/model/createBrandingBodyShape.ts +31 -0
- package/src/generated/model/createBrandingBodyShapeDensity.ts +19 -0
- package/src/generated/model/createBrandingBodyTheme.ts +37 -0
- package/src/generated/model/createBrandingBodyThemeDark.ts +33 -0
- package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +222 -0
- package/src/generated/model/createBrandingBodyThemeLight.ts +33 -0
- package/src/generated/model/createBrandingBodyThemeLightPalette.ts +222 -0
- package/src/generated/model/createBrandingBodyThemeMode.ts +20 -0
- package/src/generated/model/createBrandingBodyTypography.ts +49 -0
- package/src/generated/model/createFlow201.ts +8 -7
- package/src/generated/model/createFlow201Branding.ts +50 -24
- package/src/generated/model/createFlow201BrandingLayout.ts +8 -4
- package/src/generated/model/createFlow201BrandingShape.ts +31 -0
- package/src/generated/model/createFlow201BrandingShapeDensity.ts +19 -0
- package/src/generated/model/createFlow201BrandingTheme.ts +37 -0
- package/src/generated/model/createFlow201BrandingThemeDark.ts +33 -0
- package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/createFlow201BrandingThemeLight.ts +33 -0
- package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/createFlow201BrandingThemeMode.ts +20 -0
- package/src/generated/model/createFlow201BrandingTypography.ts +49 -0
- package/src/generated/model/createFlow201StepActionsItem.ts +17 -20
- package/src/generated/model/createFlow201StepActionsItemKind.ts +7 -10
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +6 -6
- package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +1 -3
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/createFlowDefinition201UserSchema.ts +9 -1
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +6 -6
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +1 -3
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/createFlowDefinitionDefault.ts +4 -4
- package/src/generated/model/createGrant201.ts +19 -6
- package/src/generated/model/createGrant201Team.ts +35 -0
- package/src/generated/model/createGrant201TeamStatus.ts +22 -0
- package/src/generated/model/createGrant201User.ts +48 -0
- package/src/generated/model/createGrant201UserAttributes.ts +14 -0
- package/src/generated/model/createGrant201UserMetadata.ts +43 -0
- package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/createGrant201UserMetadataStatus.ts +20 -0
- package/src/generated/model/createGrantBody.ts +18 -10
- package/src/generated/model/createGrantBodyTeam.ts +25 -0
- package/src/generated/model/createGrantBodyUser.ts +29 -0
- package/src/generated/model/createIdp200.ts +35 -0
- package/src/generated/model/createIdp200Definition.ts +47 -0
- package/src/generated/model/createIdp200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOauth2.ts +52 -0
- package/src/generated/model/createIdp200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp200DefinitionOidc.ts +64 -0
- package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp200DefinitionProtocol.ts +18 -0
- package/src/generated/model/createIdp200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/createIdp201.ts +35 -0
- package/src/generated/model/createIdp201Definition.ts +47 -0
- package/src/generated/model/createIdp201DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOauth2.ts +52 -0
- package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp201DefinitionOidc.ts +64 -0
- package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdp201DefinitionProtocol.ts +18 -0
- package/src/generated/model/createIdp201DefinitionProvisioning.ts +15 -0
- package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/{createSchema409.ts → createIdp400.ts} +3 -3
- package/src/generated/model/{createSchema400Details.ts → createIdp400Details.ts} +1 -1
- package/src/generated/model/{createSchema400.ts → createIdp401.ts} +3 -3
- package/src/generated/model/{createSchema409Details.ts → createIdp401Details.ts} +1 -1
- package/src/generated/model/createIdp403.ts +20 -0
- package/src/generated/model/createIdp403Details.ts +12 -0
- package/src/generated/model/createIdp404.ts +20 -0
- package/src/generated/model/createIdp404Details.ts +12 -0
- package/src/generated/model/createIdpBody.ts +15 -0
- package/src/generated/model/createIdpBodyIdp.ts +47 -0
- package/src/generated/model/createIdpBodyIdpClaimMapping.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOauth2.ts +52 -0
- package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdpBodyIdpOidc.ts +64 -0
- package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/createIdpBodyIdpProtocol.ts +18 -0
- package/src/generated/model/createIdpBodyIdpProvisioning.ts +15 -0
- package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +15 -0
- package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +12 -0
- package/src/generated/model/createIdpDefault.ts +39 -0
- package/src/generated/model/{createFlowDefinition409Details.ts → createIdpParams.ts} +7 -4
- package/src/generated/model/createRelease200.ts +3 -1
- package/src/generated/model/createRelease201.ts +3 -1
- package/src/generated/model/createReleaseBody.ts +8 -0
- package/src/generated/model/createReleaseDefault.ts +70 -0
- package/src/generated/model/createSchemaBody.ts +9 -1
- package/src/generated/model/createSchemaDefault.ts +141 -12
- package/src/generated/model/createSession201Session.ts +1 -0
- package/src/generated/model/createSession201SessionFactorsItemPayload.ts +8 -1
- package/src/generated/model/createSession201SessionUser.ts +1 -0
- package/src/generated/model/deleteTeam409.ts +20 -0
- package/src/generated/model/deleteTeam409Details.ts +12 -0
- package/src/generated/model/deleteVariableDefault.ts +69 -0
- package/src/generated/model/deleteVariableParams.ts +26 -0
- package/src/generated/model/exchangeHandoff200Session.ts +1 -0
- package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +8 -1
- package/src/generated/model/exchangeHandoff200SessionUser.ts +1 -0
- package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +8 -1
- package/src/generated/model/getBrandingById200.ts +8 -7
- package/src/generated/model/getBrandingById200Branding.ts +50 -24
- package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -4
- package/src/generated/model/getBrandingById200BrandingShape.ts +31 -0
- package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getBrandingById200BrandingTheme.ts +37 -0
- package/src/generated/model/getBrandingById200BrandingThemeDark.ts +33 -0
- package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/getBrandingById200BrandingThemeLight.ts +33 -0
- package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/getBrandingById200BrandingThemeMode.ts +20 -0
- package/src/generated/model/getBrandingById200BrandingTypography.ts +49 -0
- package/src/generated/model/getClaimStatus410.ts +21 -16
- package/src/generated/model/getClaimWindow200.ts +23 -0
- package/src/generated/model/getClaimWindow404.ts +20 -0
- package/src/generated/model/getClaimWindow404Details.ts +12 -0
- package/src/generated/model/getClaimWindow429.ts +20 -0
- package/src/generated/model/getClaimWindow429Details.ts +12 -0
- package/src/generated/model/getClaimWindowDefault.ts +20 -0
- package/src/generated/model/getClaimWindowDefaultDetails.ts +12 -0
- package/src/generated/model/getClaimWindowParams.ts +15 -0
- package/src/generated/model/getEvent200.ts +79 -4
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +6 -6
- package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +1 -3
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/getFlowDefinition200UserSchema.ts +9 -1
- package/src/generated/model/getFlowStep200.ts +8 -7
- package/src/generated/model/getFlowStep200Branding.ts +50 -24
- package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -4
- package/src/generated/model/getFlowStep200BrandingShape.ts +31 -0
- package/src/generated/model/getFlowStep200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/getFlowStep200BrandingTheme.ts +37 -0
- package/src/generated/model/getFlowStep200BrandingThemeDark.ts +33 -0
- package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/getFlowStep200BrandingThemeLight.ts +33 -0
- package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/getFlowStep200BrandingThemeMode.ts +20 -0
- package/src/generated/model/getFlowStep200BrandingTypography.ts +49 -0
- package/src/generated/model/getFlowStep200StepActionsItem.ts +17 -20
- package/src/generated/model/getFlowStep200StepActionsItemKind.ts +7 -10
- package/src/generated/model/getGrant200.ts +19 -6
- package/src/generated/model/getGrant200Team.ts +35 -0
- package/src/generated/model/getGrant200TeamStatus.ts +22 -0
- package/src/generated/model/getGrant200User.ts +48 -0
- package/src/generated/model/getGrant200UserAttributes.ts +14 -0
- package/src/generated/model/getGrant200UserMetadata.ts +43 -0
- package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/getGrant200UserMetadataStatus.ts +20 -0
- package/src/generated/model/getGrantDefault.ts +20 -0
- package/src/generated/model/getGrantExpandItem.ts +29 -0
- package/src/generated/model/getGrantParams.ts +7 -0
- package/src/generated/model/getIdpById200.ts +35 -0
- package/src/generated/model/getIdpById200Definition.ts +47 -0
- package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOauth2.ts +52 -0
- package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionOidc.ts +64 -0
- package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionProtocol.ts +18 -0
- package/src/generated/model/getIdpById200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpById401.ts +20 -0
- package/src/generated/model/getIdpById401Details.ts +12 -0
- package/src/generated/model/getIdpById403.ts +20 -0
- package/src/generated/model/getIdpById403Details.ts +12 -0
- package/src/generated/model/getIdpById404.ts +20 -0
- package/src/generated/model/getIdpById404Details.ts +12 -0
- package/src/generated/model/getIdpByIdDefault.ts +39 -0
- package/src/generated/model/getIdpByIdParams.ts +15 -0
- package/src/generated/model/getIdpRevisionById200.ts +35 -0
- package/src/generated/model/getIdpRevisionById200Definition.ts +47 -0
- package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +12 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +52 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +64 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +18 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +15 -0
- package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/getIdpRevisionById401.ts +20 -0
- package/src/generated/model/getIdpRevisionById401Details.ts +12 -0
- package/src/generated/model/getIdpRevisionById403.ts +20 -0
- package/src/generated/model/getIdpRevisionById403Details.ts +12 -0
- package/src/generated/model/getIdpRevisionById404.ts +20 -0
- package/src/generated/model/getIdpRevisionById404Details.ts +12 -0
- package/src/generated/model/getIdpRevisionByIdDefault.ts +39 -0
- package/src/generated/model/getIdpRevisionByIdParams.ts +15 -0
- package/src/generated/model/getMySession200.ts +1 -0
- package/src/generated/model/getMySession200FactorsItemPayload.ts +8 -1
- package/src/generated/model/getMySession200User.ts +1 -0
- package/src/generated/model/getReleaseById200.ts +3 -1
- package/src/generated/model/getReleaseByIdDefault.ts +20 -0
- package/src/generated/model/getSchemaById200Schema.ts +9 -1
- package/src/generated/model/getSchemaByIdDefault.ts +51 -12
- package/src/generated/model/getSession200.ts +1 -0
- package/src/generated/model/getSession200FactorsItemPayload.ts +8 -1
- package/src/generated/model/getSession200User.ts +1 -0
- package/src/generated/model/getVariable200.ts +25 -0
- package/src/generated/model/getVariableDefault.ts +69 -0
- package/src/generated/model/getVariableParams.ts +26 -0
- package/src/generated/model/getVariables200.ts +29 -0
- package/src/generated/model/getVariablesDefault.ts +69 -0
- package/src/generated/model/getVariablesParams.ts +26 -0
- package/src/generated/model/index.ts +328 -57
- package/src/generated/model/{createFlowDefinition409.ts → initClaim410.ts} +8 -4
- package/src/generated/model/listEvents200DataItem.ts +79 -4
- package/src/generated/model/listFlowDefinitions200.ts +3 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +6 -6
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +1 -3
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +12 -5
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +10 -7
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +3 -4
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +9 -1
- package/src/generated/model/listFlowDefinitionsParams.ts +23 -0
- package/src/generated/model/listFlowDefinitionsRevisions.ts +15 -0
- package/src/generated/model/listIdpRevisions200.ts +21 -0
- package/src/generated/model/listIdpRevisions200RevisionsItem.ts +35 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +47 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +12 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +52 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +64 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +18 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +15 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +14 -0
- package/src/generated/model/listIdpRevisions401.ts +20 -0
- package/src/generated/model/{createSchemaDefaultDetails.ts → listIdpRevisions401Details.ts} +1 -1
- package/src/generated/model/listIdpRevisions403.ts +20 -0
- package/src/generated/model/listIdpRevisions403Details.ts +12 -0
- package/src/generated/model/listIdpRevisions404.ts +20 -0
- package/src/generated/model/listIdpRevisions404Details.ts +12 -0
- package/src/generated/model/listIdpRevisionsDefault.ts +39 -0
- package/src/generated/model/listIdpRevisionsParams.ts +29 -0
- package/src/generated/model/listMyProjects200.ts +20 -0
- package/src/generated/model/listMyProjects200ProjectsItem.ts +24 -0
- package/src/generated/model/listMyProjects400.ts +20 -0
- package/src/generated/model/listMyProjects400Details.ts +12 -0
- package/src/generated/model/listMyProjects401.ts +24 -0
- package/src/generated/model/listMyProjects500.ts +20 -0
- package/src/generated/model/listMyProjects500Details.ts +12 -0
- package/src/generated/model/listMyProjectsDefault.ts +39 -0
- package/src/generated/model/listMyProjectsParams.ts +24 -0
- package/src/generated/model/listReleasesDefault.ts +20 -0
- package/src/generated/model/listSchemas200SchemasItemSchema.ts +9 -1
- package/src/generated/model/listSchemasDefault.ts +51 -12
- package/src/generated/model/patchMyUser200.ts +71 -0
- package/src/generated/model/patchMyUser200Attributes.ts +14 -0
- package/src/generated/model/patchMyUser200Metadata.ts +43 -0
- package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/patchMyUser200MetadataStatus.ts +20 -0
- package/src/generated/model/patchMyUser200TeamsItem.ts +33 -0
- package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +21 -0
- package/src/generated/model/patchMyUser400.ts +20 -0
- package/src/generated/model/patchMyUser400Details.ts +12 -0
- package/src/generated/model/patchMyUser401.ts +20 -0
- package/src/generated/model/patchMyUser401Details.ts +12 -0
- package/src/generated/model/patchMyUser404.ts +24 -0
- package/src/generated/model/patchMyUser409.ts +20 -0
- package/src/generated/model/patchMyUser409Details.ts +12 -0
- package/src/generated/model/patchMyUserBody.ts +25 -0
- package/src/generated/model/{listSchemasDefaultDetails.ts → patchMyUserBodyAttributes.ts} +4 -2
- package/src/generated/model/{deleteFlowDefinitionDefault.ts → patchMyUserDefault.ts} +8 -8
- package/src/generated/model/patchUserByID200.ts +71 -0
- package/src/generated/model/patchUserByID200Attributes.ts +14 -0
- package/src/generated/model/patchUserByID200Metadata.ts +43 -0
- package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/patchUserByID200MetadataStatus.ts +20 -0
- package/src/generated/model/patchUserByID200TeamsItem.ts +33 -0
- package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +21 -0
- package/src/generated/model/{getSchemaById400.ts → patchUserByID400.ts} +3 -3
- package/src/generated/model/{getSchemaById400Details.ts → patchUserByID400Details.ts} +1 -1
- package/src/generated/model/{getSchemaById404.ts → patchUserByID401.ts} +3 -3
- package/src/generated/model/{getSchemaById404Details.ts → patchUserByID401Details.ts} +1 -1
- package/src/generated/model/patchUserByID403.ts +20 -0
- package/src/generated/model/patchUserByID403Details.ts +12 -0
- package/src/generated/model/patchUserByID404.ts +20 -0
- package/src/generated/model/patchUserByID404Details.ts +12 -0
- package/src/generated/model/patchUserByID409.ts +20 -0
- package/src/generated/model/patchUserByID409Details.ts +12 -0
- package/src/generated/model/patchUserByIDBody.ts +39 -0
- package/src/generated/model/{getSchemaByIdDefaultDetails.ts → patchUserByIDBodyAttributes.ts} +4 -2
- package/src/generated/model/patchUserByIDDefault.ts +89 -0
- package/src/generated/model/queryGrants200.ts +20 -0
- package/src/generated/model/queryGrants200GrantsItem.ts +47 -0
- package/src/generated/model/queryGrants200GrantsItemObjectType.ts +17 -0
- package/src/generated/model/queryGrants200GrantsItemRelation.ts +19 -0
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +35 -0
- package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +22 -0
- package/src/generated/model/queryGrants200GrantsItemUser.ts +48 -0
- package/src/generated/model/queryGrants200GrantsItemUserAttributes.ts +14 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +43 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +43 -0
- package/src/generated/model/queryGrants200GrantsItemUserMetadataStatus.ts +20 -0
- package/src/generated/model/queryGrants400.ts +20 -0
- package/src/generated/model/queryGrants400Details.ts +12 -0
- package/src/generated/model/queryGrants401.ts +20 -0
- package/src/generated/model/queryGrants401Details.ts +12 -0
- package/src/generated/model/queryGrants403.ts +20 -0
- package/src/generated/model/queryGrants403Details.ts +12 -0
- package/src/generated/model/queryGrantsBody.ts +34 -0
- package/src/generated/model/queryGrantsBodyExpandItem.ts +30 -0
- package/src/generated/model/queryGrantsBodyFilterItem.ts +33 -0
- package/src/generated/model/queryGrantsBodyFilterItemField.ts +27 -0
- package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +30 -0
- package/src/generated/model/queryGrantsBodySorting.ts +17 -0
- package/src/generated/model/queryGrantsBodySortingDirection.ts +15 -0
- package/src/generated/model/queryGrantsBodySortingField.ts +21 -0
- package/src/generated/model/queryGrantsDefault.ts +99 -0
- package/src/generated/model/queryGrantsParams.ts +15 -0
- package/src/generated/model/queryIdps200.ts +21 -0
- package/src/generated/model/queryIdps200IdpsItem.ts +35 -0
- package/src/generated/model/queryIdps200IdpsItemDefinition.ts +47 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +12 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +52 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +64 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +12 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +18 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +15 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioningCreation.ts +15 -0
- package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +12 -0
- package/src/generated/model/queryIdps400.ts +20 -0
- package/src/generated/model/queryIdps400Details.ts +12 -0
- package/src/generated/model/queryIdps401.ts +20 -0
- package/src/generated/model/queryIdps401Details.ts +12 -0
- package/src/generated/model/queryIdps403.ts +20 -0
- package/src/generated/model/queryIdps403Details.ts +12 -0
- package/src/generated/model/queryIdps404.ts +20 -0
- package/src/generated/model/queryIdps404Details.ts +12 -0
- package/src/generated/model/queryIdpsBody.ts +29 -0
- package/src/generated/model/queryIdpsBodyFilterItem.ts +31 -0
- package/src/generated/model/queryIdpsBodyFilterItemField.ts +22 -0
- package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +30 -0
- package/src/generated/model/queryIdpsBodySorting.ts +22 -0
- package/src/generated/model/queryIdpsBodySortingDirection.ts +15 -0
- package/src/generated/model/queryIdpsBodySortingField.ts +22 -0
- package/src/generated/model/queryIdpsDefault.ts +39 -0
- package/src/generated/model/queryIdpsParams.ts +15 -0
- package/src/generated/model/querySessions200SessionsItem.ts +1 -0
- package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +8 -1
- package/src/generated/model/querySessions200SessionsItemUser.ts +1 -0
- package/src/generated/model/submitFlowStep200.ts +8 -7
- package/src/generated/model/submitFlowStep200Branding.ts +50 -24
- package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -4
- package/src/generated/model/submitFlowStep200BrandingShape.ts +31 -0
- package/src/generated/model/submitFlowStep200BrandingShapeDensity.ts +19 -0
- package/src/generated/model/submitFlowStep200BrandingTheme.ts +37 -0
- package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +33 -0
- package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +33 -0
- package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/submitFlowStep200BrandingThemeMode.ts +20 -0
- package/src/generated/model/submitFlowStep200BrandingTypography.ts +49 -0
- package/src/generated/model/submitFlowStep200StepActionsItem.ts +17 -20
- package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +7 -10
- package/src/generated/model/submitFlowStep400.ts +8 -7
- package/src/generated/model/submitFlowStep400Branding.ts +50 -24
- package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -4
- package/src/generated/model/submitFlowStep400BrandingShape.ts +31 -0
- package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +19 -0
- package/src/generated/model/submitFlowStep400BrandingTheme.ts +37 -0
- package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +33 -0
- package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +222 -0
- package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +33 -0
- package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +222 -0
- package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +20 -0
- package/src/generated/model/submitFlowStep400BrandingTypography.ts +49 -0
- package/src/generated/model/submitFlowStep400StepActionsItem.ts +17 -20
- package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +7 -10
- package/src/generated/model/updateVariables200.ts +29 -0
- package/src/generated/model/updateVariablesBody.ts +60 -0
- package/src/generated/model/{updateFlowDefinitionDefault.ts → updateVariablesDefault.ts} +22 -12
- package/src/generated/model/updateVariablesParams.ts +26 -0
- package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +8 -1
- package/src/generated/model/verifyChallengeProofBody.ts +1 -1
- package/src/generated/model/verifyChallengeProofDefault.ts +10 -0
- package/dist/index-BK4Q468Q.d.mts.map +0 -1
- package/dist/zitadelNextGen-C8m49W5h.d.mts.map +0 -1
- package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/createGrant201PrincipalType.ts +0 -18
- package/src/generated/model/createGrantBodyPrincipalType.ts +0 -18
- package/src/generated/model/deleteFlowDefinition409.ts +0 -20
- package/src/generated/model/deleteFlowDefinition409Details.ts +0 -12
- package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/getGrant200PrincipalType.ts +0 -18
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinition200.ts +0 -34
- package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +0 -71
- package/src/generated/model/updateFlowDefinition200FlowDefinitionAudience.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStatus.ts +0 -26
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItem.ts +0 -71
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +0 -42
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +0 -31
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemComplete.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGates.ts +0 -35
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +0 -14
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +0 -21
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemTransitions.ts +0 -46
- package/src/generated/model/updateFlowDefinition200UserSchema.ts +0 -103
- package/src/generated/model/updateFlowDefinition400.ts +0 -20
- package/src/generated/model/updateFlowDefinition400Details.ts +0 -12
- package/src/generated/model/updateFlowDefinition404.ts +0 -20
- package/src/generated/model/updateFlowDefinition404Details.ts +0 -12
- package/src/generated/model/updateFlowDefinitionBody.ts +0 -30
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +0 -71
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionAudience.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStatus.ts +0 -26
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -71
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -42
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -31
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -35
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -14
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -21
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -46
|
@@ -25,6 +25,10 @@ import type {
|
|
|
25
25
|
CreateGrantBody,
|
|
26
26
|
CreateGrantParams,
|
|
27
27
|
CreateHandoff200,
|
|
28
|
+
CreateIdp200,
|
|
29
|
+
CreateIdp201,
|
|
30
|
+
CreateIdpBody,
|
|
31
|
+
CreateIdpParams,
|
|
28
32
|
CreateProject201,
|
|
29
33
|
CreateProjectBody,
|
|
30
34
|
CreateRelease200,
|
|
@@ -43,6 +47,7 @@ import type {
|
|
|
43
47
|
CreateUserBody,
|
|
44
48
|
CreateUserParams,
|
|
45
49
|
DeleteGrantParams,
|
|
50
|
+
DeleteVariableParams,
|
|
46
51
|
ExchangeHandoff200,
|
|
47
52
|
ExchangeHandoffBody,
|
|
48
53
|
ExchangeHandoffParams,
|
|
@@ -52,6 +57,8 @@ import type {
|
|
|
52
57
|
GetBrandingById200,
|
|
53
58
|
GetClaimStatus200,
|
|
54
59
|
GetClaimStatusParams,
|
|
60
|
+
GetClaimWindow200,
|
|
61
|
+
GetClaimWindowParams,
|
|
55
62
|
GetEnvironmentByName200,
|
|
56
63
|
GetEnvironmentByNameParams,
|
|
57
64
|
GetEvent200,
|
|
@@ -61,6 +68,10 @@ import type {
|
|
|
61
68
|
GetGrant200,
|
|
62
69
|
GetGrantParams,
|
|
63
70
|
GetHealthDefault,
|
|
71
|
+
GetIdpById200,
|
|
72
|
+
GetIdpByIdParams,
|
|
73
|
+
GetIdpRevisionById200,
|
|
74
|
+
GetIdpRevisionByIdParams,
|
|
64
75
|
GetLiveDefault,
|
|
65
76
|
GetMySession200,
|
|
66
77
|
GetMyUser200,
|
|
@@ -74,6 +85,10 @@ import type {
|
|
|
74
85
|
GetTeam200,
|
|
75
86
|
GetUserByID200,
|
|
76
87
|
GetUserByIDParams,
|
|
88
|
+
GetVariable200,
|
|
89
|
+
GetVariableParams,
|
|
90
|
+
GetVariables200,
|
|
91
|
+
GetVariablesParams,
|
|
77
92
|
InitClaim201,
|
|
78
93
|
IssueChallenge201,
|
|
79
94
|
IssueChallengeBody,
|
|
@@ -85,6 +100,10 @@ import type {
|
|
|
85
100
|
ListEventsParams,
|
|
86
101
|
ListFlowDefinitions200,
|
|
87
102
|
ListFlowDefinitionsParams,
|
|
103
|
+
ListIdpRevisions200,
|
|
104
|
+
ListIdpRevisionsParams,
|
|
105
|
+
ListMyProjects200,
|
|
106
|
+
ListMyProjectsParams,
|
|
88
107
|
ListReleases200,
|
|
89
108
|
ListReleasesParams,
|
|
90
109
|
ListSchemas200,
|
|
@@ -93,8 +112,18 @@ import type {
|
|
|
93
112
|
ListUserPasskeysParams,
|
|
94
113
|
ListUserTeams200,
|
|
95
114
|
ListUserTeamsParams,
|
|
115
|
+
PatchMyUser200,
|
|
116
|
+
PatchMyUserBody,
|
|
96
117
|
PatchProject200,
|
|
97
118
|
PatchProjectBody,
|
|
119
|
+
PatchUserByID200,
|
|
120
|
+
PatchUserByIDBody,
|
|
121
|
+
QueryGrants200,
|
|
122
|
+
QueryGrantsBody,
|
|
123
|
+
QueryGrantsParams,
|
|
124
|
+
QueryIdps200,
|
|
125
|
+
QueryIdpsBody,
|
|
126
|
+
QueryIdpsParams,
|
|
98
127
|
QueryProjects200,
|
|
99
128
|
QueryProjectsBody,
|
|
100
129
|
QuerySessions200,
|
|
@@ -108,10 +137,11 @@ import type {
|
|
|
108
137
|
SetUserPasswordBody,
|
|
109
138
|
SubmitFlowStep200,
|
|
110
139
|
SubmitFlowStepBody,
|
|
111
|
-
UpdateFlowDefinition200,
|
|
112
|
-
UpdateFlowDefinitionBody,
|
|
113
140
|
UpdateTeam200,
|
|
114
141
|
UpdateTeamBody,
|
|
142
|
+
UpdateVariables200,
|
|
143
|
+
UpdateVariablesBody,
|
|
144
|
+
UpdateVariablesParams,
|
|
115
145
|
VerifyChallengeProof200,
|
|
116
146
|
VerifyChallengeProofBody,
|
|
117
147
|
} from "../model";
|
|
@@ -200,9 +230,14 @@ export const getQueryUsersUrl = () => {
|
|
|
200
230
|
/**
|
|
201
231
|
* Returns the users of a project, paginated with a cursor.
|
|
202
232
|
|
|
203
|
-
The project comes from the credential, not from a parameter: the
|
|
204
|
-
is bound to the
|
|
205
|
-
|
|
233
|
+
The project comes from the credential, not from a parameter: the
|
|
234
|
+
operation is bound to the credential's home project by construction
|
|
235
|
+
(oauth2 secret or user-bound session). This is why it takes no
|
|
236
|
+
`project_id`, unlike the other query endpoints.
|
|
237
|
+
|
|
238
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
239
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
240
|
+
is a follow-up (#1140).
|
|
206
241
|
|
|
207
242
|
* @summary Query users
|
|
208
243
|
*/
|
|
@@ -248,6 +283,31 @@ export const getUserByID = async (
|
|
|
248
283
|
});
|
|
249
284
|
};
|
|
250
285
|
|
|
286
|
+
export const getPatchUserByIDUrl = (userId: string) => {
|
|
287
|
+
return `${getProxyPath()}/users/${userId}`;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Partially updates a user's schema-defined attributes, and optionally
|
|
292
|
+
moves the user to another registered schema. The merged result is
|
|
293
|
+
validated against the schema before commit. Concurrent writes are
|
|
294
|
+
last-write-wins.
|
|
295
|
+
|
|
296
|
+
* @summary Update user by ID
|
|
297
|
+
*/
|
|
298
|
+
export const patchUserByID = async (
|
|
299
|
+
userId: string,
|
|
300
|
+
patchUserByIDBody: PatchUserByIDBody,
|
|
301
|
+
options?: RequestInit,
|
|
302
|
+
): Promise<PatchUserByID200> => {
|
|
303
|
+
return customFetch<PatchUserByID200>(getPatchUserByIDUrl(userId), {
|
|
304
|
+
...options,
|
|
305
|
+
method: "PATCH",
|
|
306
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
307
|
+
body: JSON.stringify(patchUserByIDBody),
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
|
|
251
311
|
export const getDeleteUserByIDUrl = (userId: string) => {
|
|
252
312
|
return `${getProxyPath()}/users/${userId}`;
|
|
253
313
|
};
|
|
@@ -421,6 +481,66 @@ export const getMyUser = async (options?: RequestInit): Promise<GetMyUser200> =>
|
|
|
421
481
|
});
|
|
422
482
|
};
|
|
423
483
|
|
|
484
|
+
export const getPatchMyUserUrl = () => {
|
|
485
|
+
return `${getProxyPath()}/users/me`;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Partially updates the caller's own schema-defined attributes. The merged
|
|
490
|
+
result is validated against the user's schema before commit. Concurrent
|
|
491
|
+
writes are last-write-wins.
|
|
492
|
+
|
|
493
|
+
* @summary Update my user information
|
|
494
|
+
*/
|
|
495
|
+
export const patchMyUser = async (
|
|
496
|
+
patchMyUserBody: PatchMyUserBody,
|
|
497
|
+
options?: RequestInit,
|
|
498
|
+
): Promise<PatchMyUser200> => {
|
|
499
|
+
return customFetch<PatchMyUser200>(getPatchMyUserUrl(), {
|
|
500
|
+
...options,
|
|
501
|
+
method: "PATCH",
|
|
502
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
503
|
+
body: JSON.stringify(patchMyUserBody),
|
|
504
|
+
});
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
export const getListMyProjectsUrl = (params?: ListMyProjectsParams) => {
|
|
508
|
+
const normalizedParams = new URLSearchParams();
|
|
509
|
+
|
|
510
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
511
|
+
if (value !== undefined) {
|
|
512
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
const stringifiedParams = normalizedParams.toString();
|
|
517
|
+
|
|
518
|
+
return stringifiedParams.length > 0
|
|
519
|
+
? `${getProxyPath()}/users/me/projects?${stringifiedParams}`
|
|
520
|
+
: `${getProxyPath()}/users/me/projects`;
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The projects the signed-in user holds an active grant on, either directly or
|
|
525
|
+
through a team they are a member of. Ordered by project id and paged with an
|
|
526
|
+
opaque cursor.
|
|
527
|
+
|
|
528
|
+
This is not the same question as `queryProjects`, which answers with the one
|
|
529
|
+
project the calling credential is bound to. Here the session is the caller
|
|
530
|
+
and the grants are the answer, so the list spans projects.
|
|
531
|
+
|
|
532
|
+
* @summary List the projects I can act on
|
|
533
|
+
*/
|
|
534
|
+
export const listMyProjects = async (
|
|
535
|
+
params?: ListMyProjectsParams,
|
|
536
|
+
options?: RequestInit,
|
|
537
|
+
): Promise<ListMyProjects200> => {
|
|
538
|
+
return customFetch<ListMyProjects200>(getListMyProjectsUrl(params), {
|
|
539
|
+
...options,
|
|
540
|
+
method: "GET",
|
|
541
|
+
});
|
|
542
|
+
};
|
|
543
|
+
|
|
424
544
|
export const getCreateFlowUrl = () => {
|
|
425
545
|
return `${getProxyPath()}/flow`;
|
|
426
546
|
};
|
|
@@ -778,7 +898,11 @@ export const getGetClaimStatusUrl = (projectId: string, params: GetClaimStatusPa
|
|
|
778
898
|
* Polled by the CLI while a browser completes the claim. Authorized by the
|
|
779
899
|
project secret that initiated the challenge. Returns `pending`, or
|
|
780
900
|
`completed` with the owning team, the claim timestamp, and the dashboard
|
|
781
|
-
URL once the
|
|
901
|
+
URL once the project is claimed. The claim grant, not the polled
|
|
902
|
+
challenge, is the source of truth: a project claimed through another
|
|
903
|
+
concurrent challenge also reports `completed`, and a completed claim
|
|
904
|
+
keeps reporting `completed` past this challenge's expiry and past the
|
|
905
|
+
project's claim window.
|
|
782
906
|
|
|
783
907
|
* @summary Get claim status
|
|
784
908
|
*/
|
|
@@ -818,6 +942,43 @@ export const completeClaim = async (
|
|
|
818
942
|
});
|
|
819
943
|
};
|
|
820
944
|
|
|
945
|
+
export const getGetClaimWindowUrl = (projectId: string, params: GetClaimWindowParams) => {
|
|
946
|
+
const normalizedParams = new URLSearchParams();
|
|
947
|
+
|
|
948
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
949
|
+
if (value !== undefined) {
|
|
950
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
const stringifiedParams = normalizedParams.toString();
|
|
955
|
+
|
|
956
|
+
return stringifiedParams.length > 0
|
|
957
|
+
? `${getProxyPath()}/projects/${projectId}/claim/window?${stringifiedParams}`
|
|
958
|
+
: `${getProxyPath()}/projects/${projectId}/claim/window`;
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Read by the claim page in the browser to show how long is left to claim the
|
|
963
|
+
project. Unauthenticated by design: the claim page runs this before the
|
|
964
|
+
developer has signed in, and holding the `challenge_id` from the claim URL
|
|
965
|
+
is the authorization — the same capability `claim/complete` accepts. It
|
|
966
|
+
reveals only the window, never the project itself, and unlike
|
|
967
|
+
`claim/complete` it spends nothing, so a reload is free.
|
|
968
|
+
|
|
969
|
+
* @summary Get the claim window for a project
|
|
970
|
+
*/
|
|
971
|
+
export const getClaimWindow = async (
|
|
972
|
+
projectId: string,
|
|
973
|
+
params: GetClaimWindowParams,
|
|
974
|
+
options?: RequestInit,
|
|
975
|
+
): Promise<GetClaimWindow200> => {
|
|
976
|
+
return customFetch<GetClaimWindow200>(getGetClaimWindowUrl(projectId, params), {
|
|
977
|
+
...options,
|
|
978
|
+
method: "GET",
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
|
|
821
982
|
export const getCreateSessionUrl = () => {
|
|
822
983
|
return `${getProxyPath()}/sessions`;
|
|
823
984
|
};
|
|
@@ -1148,12 +1309,17 @@ export const getCreateFlowDefinitionUrl = () => {
|
|
|
1148
1309
|
};
|
|
1149
1310
|
|
|
1150
1311
|
/**
|
|
1151
|
-
*
|
|
1312
|
+
* Publishes a new flow definition revision.
|
|
1152
1313
|
Flow definitions are templates that define the sequence of steps (capabilities)
|
|
1153
1314
|
for a particular user journey (e.g., registration, login, password reset).
|
|
1154
1315
|
|
|
1155
1316
|
Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
|
|
1156
1317
|
|
|
1318
|
+
Every call allocates a new opaque id. Revisions of one flow share its
|
|
1319
|
+
`name`; posting a definition under an existing `name` publishes a new
|
|
1320
|
+
revision of that flow, it is not a conflict. List with `name` to see a
|
|
1321
|
+
flow's revisions, newest by creation time first.
|
|
1322
|
+
|
|
1157
1323
|
* @summary Create a new flow definition
|
|
1158
1324
|
*/
|
|
1159
1325
|
export const createFlowDefinition = async (
|
|
@@ -1185,8 +1351,9 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams) =>
|
|
|
1185
1351
|
};
|
|
1186
1352
|
|
|
1187
1353
|
/**
|
|
1188
|
-
* Retrieves a list of all flow definitions.
|
|
1354
|
+
* Retrieves a list of all flow definitions, newest by creation time first.
|
|
1189
1355
|
This endpoint can be used to view existing flow definitions and their configurations.
|
|
1356
|
+
Filter by `name` to list the revisions of one flow.
|
|
1190
1357
|
|
|
1191
1358
|
* @summary List flow definitions
|
|
1192
1359
|
*/
|
|
@@ -1218,47 +1385,6 @@ export const getFlowDefinition = async (
|
|
|
1218
1385
|
});
|
|
1219
1386
|
};
|
|
1220
1387
|
|
|
1221
|
-
export const getUpdateFlowDefinitionUrl = (id: string) => {
|
|
1222
|
-
return `${getProxyPath()}/flow_definitions/${id}`;
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* Update a flow definition by id. This endpoint replaces the existing flow definition.
|
|
1227
|
-
If `flow_definition.status` is omitted, the current status is preserved
|
|
1228
|
-
|
|
1229
|
-
* @summary Update a flow definition by id
|
|
1230
|
-
*/
|
|
1231
|
-
export const updateFlowDefinition = async (
|
|
1232
|
-
id: string,
|
|
1233
|
-
updateFlowDefinitionBody: UpdateFlowDefinitionBody,
|
|
1234
|
-
options?: RequestInit,
|
|
1235
|
-
): Promise<UpdateFlowDefinition200> => {
|
|
1236
|
-
return customFetch<UpdateFlowDefinition200>(getUpdateFlowDefinitionUrl(id), {
|
|
1237
|
-
...options,
|
|
1238
|
-
method: "PUT",
|
|
1239
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1240
|
-
body: JSON.stringify(updateFlowDefinitionBody),
|
|
1241
|
-
});
|
|
1242
|
-
};
|
|
1243
|
-
|
|
1244
|
-
export const getDeleteFlowDefinitionUrl = (id: string) => {
|
|
1245
|
-
return `${getProxyPath()}/flow_definitions/${id}`;
|
|
1246
|
-
};
|
|
1247
|
-
|
|
1248
|
-
/**
|
|
1249
|
-
* Delete a flow definition by id.
|
|
1250
|
-
If the flow definition is currently being used by a flow, the deletion will fail.
|
|
1251
|
-
If the flow definition is the last active flow definition for a given purpose, the deletion will fail to prevent disruption of new flows being started for that purpose.
|
|
1252
|
-
|
|
1253
|
-
* @summary Delete a flow definition by id
|
|
1254
|
-
*/
|
|
1255
|
-
export const deleteFlowDefinition = async (id: string, options?: RequestInit): Promise<void> => {
|
|
1256
|
-
return customFetch<void>(getDeleteFlowDefinitionUrl(id), {
|
|
1257
|
-
...options,
|
|
1258
|
-
method: "DELETE",
|
|
1259
|
-
});
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1262
1388
|
export const getCreateTeamUrl = (params: CreateTeamParams) => {
|
|
1263
1389
|
const normalizedParams = new URLSearchParams();
|
|
1264
1390
|
|
|
@@ -1355,6 +1481,11 @@ users whose lifecycle it owns are deactivated with it.
|
|
|
1355
1481
|
The request is idempotent. Deleting a team that is already deactivated
|
|
1356
1482
|
or doesn't exist succeeds without changing anything.
|
|
1357
1483
|
|
|
1484
|
+
A team that still owns a project is refused with `409
|
|
1485
|
+
team.owns_project`: deactivating it would leave the project owned by a
|
|
1486
|
+
dead team and so unmanageable. No endpoint releases that ownership yet,
|
|
1487
|
+
so such a team cannot currently be deactivated through the API.
|
|
1488
|
+
|
|
1358
1489
|
* @summary Delete team
|
|
1359
1490
|
*/
|
|
1360
1491
|
export const deleteTeam = async (teamId: string, options?: RequestInit): Promise<void> => {
|
|
@@ -1471,8 +1602,7 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams) => {
|
|
|
1471
1602
|
/**
|
|
1472
1603
|
* Publishes a new immutable branding revision for the project. Branding
|
|
1473
1604
|
revisions cannot be updated or deleted; every edit publishes a new
|
|
1474
|
-
revision, and flow responses resolve the latest revision per project
|
|
1475
|
-
(see ADR 040).
|
|
1605
|
+
revision, and flow responses resolve the latest revision per project.
|
|
1476
1606
|
|
|
1477
1607
|
The `liquid_template` is validated lexically on save (size, encoding,
|
|
1478
1608
|
banned patterns such as `<script>` tags, inline event handlers, and the
|
|
@@ -1513,9 +1643,9 @@ export const getListBrandingUrl = (params: ListBrandingParams) => {
|
|
|
1513
1643
|
/**
|
|
1514
1644
|
* Lists branding revisions for the project, newest first, capped at the
|
|
1515
1645
|
100 most recent. The first entry is the revision flow responses
|
|
1516
|
-
currently resolve. Deliberately unpaginated in v1 — list endpoints
|
|
1517
|
-
|
|
1518
|
-
|
|
1646
|
+
currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
|
|
1647
|
+
real query mechanism together; advertising pagination parameters the
|
|
1648
|
+
server ignores would be worse than none.
|
|
1519
1649
|
|
|
1520
1650
|
* @summary List branding revisions
|
|
1521
1651
|
*/
|
|
@@ -1547,6 +1677,201 @@ export const getBrandingById = async (
|
|
|
1547
1677
|
});
|
|
1548
1678
|
};
|
|
1549
1679
|
|
|
1680
|
+
export const getCreateIdpUrl = (params: CreateIdpParams) => {
|
|
1681
|
+
const normalizedParams = new URLSearchParams();
|
|
1682
|
+
|
|
1683
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1684
|
+
if (value !== undefined) {
|
|
1685
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1686
|
+
}
|
|
1687
|
+
});
|
|
1688
|
+
|
|
1689
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1690
|
+
|
|
1691
|
+
return stringifiedParams.length > 0
|
|
1692
|
+
? `${getProxyPath()}/idps?${stringifiedParams}`
|
|
1693
|
+
: `${getProxyPath()}/idps`;
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Creates or revises a connection document. If the slug does not already
|
|
1698
|
+
exist, a new connection is created. If a connection with that slug already
|
|
1699
|
+
exists, a revision is created.
|
|
1700
|
+
|
|
1701
|
+
A revision gets a new `revision_id` and does not modify the connection
|
|
1702
|
+
`id`, so identity links that reference the connection keep resolving while
|
|
1703
|
+
releases and auth attempts stay pinned to the revision they captured.
|
|
1704
|
+
|
|
1705
|
+
Identity fields are fixed for the life of the connection and a revision
|
|
1706
|
+
that changes one is rejected: `protocol`, `subject_claim`, and the
|
|
1707
|
+
endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
|
|
1708
|
+
and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
|
|
1709
|
+
account a stored subject belongs to, so changing one would silently
|
|
1710
|
+
repoint existing identities at a different provider.
|
|
1711
|
+
|
|
1712
|
+
`subject_claim` is optional for OIDC and required for OAuth 2.0. For an
|
|
1713
|
+
OIDC connection, `sub` is used as the default value. If a revision updates
|
|
1714
|
+
`subject_claim` to a different value than the one set during creation, the
|
|
1715
|
+
request is rejected.
|
|
1716
|
+
|
|
1717
|
+
The document is validated against the `idp-connection.json` schema before
|
|
1718
|
+
anything is stored.
|
|
1719
|
+
|
|
1720
|
+
* @summary Create or revise an identity provider connection
|
|
1721
|
+
*/
|
|
1722
|
+
export const createIdp = async (
|
|
1723
|
+
createIdpBody: CreateIdpBody,
|
|
1724
|
+
params: CreateIdpParams,
|
|
1725
|
+
options?: RequestInit,
|
|
1726
|
+
): Promise<CreateIdp200 | CreateIdp201> => {
|
|
1727
|
+
return customFetch<CreateIdp200 | CreateIdp201>(getCreateIdpUrl(params), {
|
|
1728
|
+
...options,
|
|
1729
|
+
method: "POST",
|
|
1730
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1731
|
+
body: JSON.stringify(createIdpBody),
|
|
1732
|
+
});
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
export const getQueryIdpsUrl = (params: QueryIdpsParams) => {
|
|
1736
|
+
const normalizedParams = new URLSearchParams();
|
|
1737
|
+
|
|
1738
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1739
|
+
if (value !== undefined) {
|
|
1740
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
|
|
1744
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1745
|
+
|
|
1746
|
+
return stringifiedParams.length > 0
|
|
1747
|
+
? `${getProxyPath()}/idps/query?${stringifiedParams}`
|
|
1748
|
+
: `${getProxyPath()}/idps/query`;
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Returns the identity provider connections of a project, paginated with a
|
|
1753
|
+
cursor. One row per connection, carrying its newest revision.
|
|
1754
|
+
|
|
1755
|
+
* @summary Query identity provider connections
|
|
1756
|
+
*/
|
|
1757
|
+
export const queryIdps = async (
|
|
1758
|
+
queryIdpsBody: QueryIdpsBody,
|
|
1759
|
+
params: QueryIdpsParams,
|
|
1760
|
+
options?: RequestInit,
|
|
1761
|
+
): Promise<QueryIdps200> => {
|
|
1762
|
+
return customFetch<QueryIdps200>(getQueryIdpsUrl(params), {
|
|
1763
|
+
...options,
|
|
1764
|
+
method: "POST",
|
|
1765
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1766
|
+
body: JSON.stringify(queryIdpsBody),
|
|
1767
|
+
});
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
export const getGetIdpByIdUrl = (id: string, params: GetIdpByIdParams) => {
|
|
1771
|
+
const normalizedParams = new URLSearchParams();
|
|
1772
|
+
|
|
1773
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1774
|
+
if (value !== undefined) {
|
|
1775
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
|
|
1779
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1780
|
+
|
|
1781
|
+
return stringifiedParams.length > 0
|
|
1782
|
+
? `${getProxyPath()}/idps/${id}?${stringifiedParams}`
|
|
1783
|
+
: `${getProxyPath()}/idps/${id}`;
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Reads a connection by its id, at its newest revision.
|
|
1788
|
+
`GET /idps/{id}/revisions` lists every revision of the connection.
|
|
1789
|
+
|
|
1790
|
+
The lookup is scoped to the project in `project_id`.
|
|
1791
|
+
|
|
1792
|
+
* @summary Get an identity provider connection by id
|
|
1793
|
+
*/
|
|
1794
|
+
export const getIdpById = async (
|
|
1795
|
+
id: string,
|
|
1796
|
+
params: GetIdpByIdParams,
|
|
1797
|
+
options?: RequestInit,
|
|
1798
|
+
): Promise<GetIdpById200> => {
|
|
1799
|
+
return customFetch<GetIdpById200>(getGetIdpByIdUrl(id, params), {
|
|
1800
|
+
...options,
|
|
1801
|
+
method: "GET",
|
|
1802
|
+
});
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
export const getListIdpRevisionsUrl = (id: string, params: ListIdpRevisionsParams) => {
|
|
1806
|
+
const normalizedParams = new URLSearchParams();
|
|
1807
|
+
|
|
1808
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1809
|
+
if (value !== undefined) {
|
|
1810
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
|
|
1814
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1815
|
+
|
|
1816
|
+
return stringifiedParams.length > 0
|
|
1817
|
+
? `${getProxyPath()}/idps/${id}/revisions?${stringifiedParams}`
|
|
1818
|
+
: `${getProxyPath()}/idps/${id}/revisions`;
|
|
1819
|
+
};
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Returns every revision of one connection, newest first, paginated with a
|
|
1823
|
+
cursor. The order is fixed, so there is no `sorting`.
|
|
1824
|
+
|
|
1825
|
+
The lookup is scoped to the project in `project_id`.
|
|
1826
|
+
|
|
1827
|
+
* @summary List the revisions of an identity provider connection
|
|
1828
|
+
*/
|
|
1829
|
+
export const listIdpRevisions = async (
|
|
1830
|
+
id: string,
|
|
1831
|
+
params: ListIdpRevisionsParams,
|
|
1832
|
+
options?: RequestInit,
|
|
1833
|
+
): Promise<ListIdpRevisions200> => {
|
|
1834
|
+
return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(id, params), {
|
|
1835
|
+
...options,
|
|
1836
|
+
method: "GET",
|
|
1837
|
+
});
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
export const getGetIdpRevisionByIdUrl = (revisionId: string, params: GetIdpRevisionByIdParams) => {
|
|
1841
|
+
const normalizedParams = new URLSearchParams();
|
|
1842
|
+
|
|
1843
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1844
|
+
if (value !== undefined) {
|
|
1845
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1846
|
+
}
|
|
1847
|
+
});
|
|
1848
|
+
|
|
1849
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1850
|
+
|
|
1851
|
+
return stringifiedParams.length > 0
|
|
1852
|
+
? `${getProxyPath()}/idps/revisions/${revisionId}?${stringifiedParams}`
|
|
1853
|
+
: `${getProxyPath()}/idps/revisions/${revisionId}`;
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Reads one revision of a connection by its `revision_id`, the value an auth
|
|
1858
|
+
attempt or a release pins.
|
|
1859
|
+
|
|
1860
|
+
The lookup is scoped to the project in `project_id`.
|
|
1861
|
+
|
|
1862
|
+
* @summary Get one revision of an identity provider connection
|
|
1863
|
+
*/
|
|
1864
|
+
export const getIdpRevisionById = async (
|
|
1865
|
+
revisionId: string,
|
|
1866
|
+
params: GetIdpRevisionByIdParams,
|
|
1867
|
+
options?: RequestInit,
|
|
1868
|
+
): Promise<GetIdpRevisionById200> => {
|
|
1869
|
+
return customFetch<GetIdpRevisionById200>(getGetIdpRevisionByIdUrl(revisionId, params), {
|
|
1870
|
+
...options,
|
|
1871
|
+
method: "GET",
|
|
1872
|
+
});
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1550
1875
|
export const getCreateReleaseUrl = (params: CreateReleaseParams) => {
|
|
1551
1876
|
const normalizedParams = new URLSearchParams();
|
|
1552
1877
|
|
|
@@ -1689,10 +2014,23 @@ export const getCreateGrantUrl = (params: CreateGrantParams) => {
|
|
|
1689
2014
|
/**
|
|
1690
2015
|
* Bind a user or team to `project.viewer`, `project.editor`, or
|
|
1691
2016
|
`project.admin` on the project identified by the `project-id` header.
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
2017
|
+
Name the principal with `user` (`user_id` or `identifier`) or `team`
|
|
2018
|
+
(`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
|
|
2019
|
+
(`project.team`) grants are not created here — claim owns that path. An
|
|
2020
|
+
unrevoked grant with the same principal and relation occupies the unique
|
|
2021
|
+
key even after `expires_at`; DELETE it before re-creating.
|
|
2022
|
+
Create does not accept `expand`. The `user_id` and team locators
|
|
2023
|
+
return 201, whose `user` / `team` carry only `user_id` / `team_id`,
|
|
2024
|
+
and still 404 / 409 when the principal is missing or the tuple
|
|
2025
|
+
already exists. Creating by `user.identifier` answers 202 with no
|
|
2026
|
+
body on every outcome. Granting the session caller's own user is
|
|
2027
|
+
`grant.invalid` on either user locator. Read the grant back for
|
|
2028
|
+
identifier and display.
|
|
2029
|
+
|
|
2030
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2031
|
+
session cookie (`nextgenSession`). Session callers are authorized as
|
|
2032
|
+
the human against the target project (home may differ). CSRF/Origin
|
|
2033
|
+
for cookie mutations is a follow-up (#1140).
|
|
1696
2034
|
|
|
1697
2035
|
* @summary Create grant
|
|
1698
2036
|
*/
|
|
@@ -1700,8 +2038,8 @@ export const createGrant = async (
|
|
|
1700
2038
|
createGrantBody: CreateGrantBody,
|
|
1701
2039
|
params: CreateGrantParams,
|
|
1702
2040
|
options?: RequestInit,
|
|
1703
|
-
): Promise<CreateGrant201> => {
|
|
1704
|
-
return customFetch<CreateGrant201>(getCreateGrantUrl(params), {
|
|
2041
|
+
): Promise<CreateGrant201 | void> => {
|
|
2042
|
+
return customFetch<CreateGrant201 | void>(getCreateGrantUrl(params), {
|
|
1705
2043
|
...options,
|
|
1706
2044
|
method: "POST",
|
|
1707
2045
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
@@ -1709,6 +2047,55 @@ export const createGrant = async (
|
|
|
1709
2047
|
});
|
|
1710
2048
|
};
|
|
1711
2049
|
|
|
2050
|
+
export const getQueryGrantsUrl = (params: QueryGrantsParams) => {
|
|
2051
|
+
const normalizedParams = new URLSearchParams();
|
|
2052
|
+
|
|
2053
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2054
|
+
if (value !== undefined) {
|
|
2055
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
|
|
2059
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2060
|
+
|
|
2061
|
+
return stringifiedParams.length > 0
|
|
2062
|
+
? `${getProxyPath()}/grants/query?${stringifiedParams}`
|
|
2063
|
+
: `${getProxyPath()}/grants/query`;
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* Returns the collaboration grants of a project, paginated with a cursor.
|
|
2068
|
+
Only unrevoked grants this API manages are listed (user or team bound to
|
|
2069
|
+
viewer, editor, or admin), including expired grants so a client can
|
|
2070
|
+
DELETE before re-granting. Project-secret setup (`sk_proj`) and
|
|
2071
|
+
owning-team (`relation=team`) rows are not returned. Grants are not in
|
|
2072
|
+
`resource_scope_index`; project scope is required on the query (same as
|
|
2073
|
+
get). Requires `project.read`. `expand: ["principal"]` adds envelope
|
|
2074
|
+
fields on `user` / `team` and additionally requires `user.read` and
|
|
2075
|
+
`team.read` for project secrets (documented on the expand enum; those
|
|
2076
|
+
scopes cannot be ANDed onto this security block because they are
|
|
2077
|
+
body-conditional). A user-bound Console session that already passed
|
|
2078
|
+
the project Check may expand without those scopes.
|
|
2079
|
+
|
|
2080
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2081
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
2082
|
+
is a follow-up (#1140).
|
|
2083
|
+
|
|
2084
|
+
* @summary Query grants
|
|
2085
|
+
*/
|
|
2086
|
+
export const queryGrants = async (
|
|
2087
|
+
queryGrantsBody: QueryGrantsBody,
|
|
2088
|
+
params: QueryGrantsParams,
|
|
2089
|
+
options?: RequestInit,
|
|
2090
|
+
): Promise<QueryGrants200> => {
|
|
2091
|
+
return customFetch<QueryGrants200>(getQueryGrantsUrl(params), {
|
|
2092
|
+
...options,
|
|
2093
|
+
method: "POST",
|
|
2094
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
2095
|
+
body: JSON.stringify(queryGrantsBody),
|
|
2096
|
+
});
|
|
2097
|
+
};
|
|
2098
|
+
|
|
1712
2099
|
export const getGetGrantUrl = (id: string, params: GetGrantParams) => {
|
|
1713
2100
|
const normalizedParams = new URLSearchParams();
|
|
1714
2101
|
|
|
@@ -1734,6 +2121,14 @@ still ignores expired grants. Grants are not registered in
|
|
|
1734
2121
|
`resource_scope_index`; project scope is required on the query (same as
|
|
1735
2122
|
events). Misses, revoked rows, project-secret setup (`sk_proj`),
|
|
1736
2123
|
owning-team (`relation=team`) rows, and cross-project ids return 404.
|
|
2124
|
+
`expand=principal` adds envelope fields on `user` or `team` and requires
|
|
2125
|
+
`user.read` and `team.read` in addition to `project.read` for project
|
|
2126
|
+
secrets. A user-bound Console session that already passed the project
|
|
2127
|
+
Check may expand without those scopes.
|
|
2128
|
+
|
|
2129
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2130
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
2131
|
+
is a follow-up (#1140).
|
|
1737
2132
|
|
|
1738
2133
|
* @summary Get grant
|
|
1739
2134
|
*/
|
|
@@ -1770,6 +2165,10 @@ Already-revoked, missing, project-secret setup, and owning-team grants
|
|
|
1770
2165
|
return 404. The row is not un-revoked. Expired grants can still be
|
|
1771
2166
|
revoked so the unique binding can be reused.
|
|
1772
2167
|
|
|
2168
|
+
Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2169
|
+
session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
|
|
2170
|
+
is a follow-up (#1140).
|
|
2171
|
+
|
|
1773
2172
|
* @summary Revoke grant
|
|
1774
2173
|
*/
|
|
1775
2174
|
export const deleteGrant = async (
|
|
@@ -1868,3 +2267,167 @@ export const getEvent = async (
|
|
|
1868
2267
|
method: "GET",
|
|
1869
2268
|
});
|
|
1870
2269
|
};
|
|
2270
|
+
|
|
2271
|
+
export const getGetVariablesUrl = (params: GetVariablesParams) => {
|
|
2272
|
+
const normalizedParams = new URLSearchParams();
|
|
2273
|
+
|
|
2274
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2275
|
+
if (value !== undefined) {
|
|
2276
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2281
|
+
|
|
2282
|
+
return stringifiedParams.length > 0
|
|
2283
|
+
? `${getProxyPath()}/variables?${stringifiedParams}`
|
|
2284
|
+
: `${getProxyPath()}/variables`;
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* Returns the variables entered at the owner this request addresses, keyed by
|
|
2289
|
+
name — one environment of the project with `environment_name`, the project
|
|
2290
|
+
level itself without it.
|
|
2291
|
+
|
|
2292
|
+
Owners are separate, not a ladder: an environment does not inherit the
|
|
2293
|
+
project's variables and the project does not see its environments'. Reading
|
|
2294
|
+
everything a project holds therefore means reading each owner in turn.
|
|
2295
|
+
|
|
2296
|
+
Secret values are not returned. A secret appears as `{"secret": true}`,
|
|
2297
|
+
which says a value is held without disclosing it.
|
|
2298
|
+
|
|
2299
|
+
* @summary Get variables
|
|
2300
|
+
*/
|
|
2301
|
+
export const getVariables = async (
|
|
2302
|
+
params: GetVariablesParams,
|
|
2303
|
+
options?: RequestInit,
|
|
2304
|
+
): Promise<GetVariables200> => {
|
|
2305
|
+
return customFetch<GetVariables200>(getGetVariablesUrl(params), {
|
|
2306
|
+
...options,
|
|
2307
|
+
method: "GET",
|
|
2308
|
+
});
|
|
2309
|
+
};
|
|
2310
|
+
|
|
2311
|
+
export const getUpdateVariablesUrl = (params: UpdateVariablesParams) => {
|
|
2312
|
+
const normalizedParams = new URLSearchParams();
|
|
2313
|
+
|
|
2314
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2315
|
+
if (value !== undefined) {
|
|
2316
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
2317
|
+
}
|
|
2318
|
+
});
|
|
2319
|
+
|
|
2320
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2321
|
+
|
|
2322
|
+
return stringifiedParams.length > 0
|
|
2323
|
+
? `${getProxyPath()}/variables?${stringifiedParams}`
|
|
2324
|
+
: `${getProxyPath()}/variables`;
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* Enters, replaces and removes variables at the owner this request
|
|
2329
|
+
addresses.
|
|
2330
|
+
|
|
2331
|
+
Every name in the body is applied at exactly that owner — the project, or
|
|
2332
|
+
the environment named by `environment_name` — and reaches no other. Names
|
|
2333
|
+
not in the body are untouched.
|
|
2334
|
+
|
|
2335
|
+
A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
|
|
2336
|
+
stores the value encrypted under the project's active `secret` key, after
|
|
2337
|
+
which it can be referenced but not read back. `null` removes the name from
|
|
2338
|
+
this owner (RFC 7386), which is how several variables are removed in one
|
|
2339
|
+
request; removing a name this owner does not hold is a no-op rather than an
|
|
2340
|
+
error.
|
|
2341
|
+
|
|
2342
|
+
The body is applied whole or not at all, so a rejected request leaves the
|
|
2343
|
+
owner exactly as it was. Writing the same name and owner twice replaces the
|
|
2344
|
+
value rather than duplicating it, which makes a retry safe.
|
|
2345
|
+
|
|
2346
|
+
* @summary Update variables
|
|
2347
|
+
*/
|
|
2348
|
+
export const updateVariables = async (
|
|
2349
|
+
updateVariablesBody: UpdateVariablesBody,
|
|
2350
|
+
params: UpdateVariablesParams,
|
|
2351
|
+
options?: RequestInit,
|
|
2352
|
+
): Promise<UpdateVariables200> => {
|
|
2353
|
+
return customFetch<UpdateVariables200>(getUpdateVariablesUrl(params), {
|
|
2354
|
+
...options,
|
|
2355
|
+
method: "PATCH",
|
|
2356
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
2357
|
+
body: JSON.stringify(updateVariablesBody),
|
|
2358
|
+
});
|
|
2359
|
+
};
|
|
2360
|
+
|
|
2361
|
+
export const getGetVariableUrl = (variableName: string, params: GetVariableParams) => {
|
|
2362
|
+
const normalizedParams = new URLSearchParams();
|
|
2363
|
+
|
|
2364
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2365
|
+
if (value !== undefined) {
|
|
2366
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
2367
|
+
}
|
|
2368
|
+
});
|
|
2369
|
+
|
|
2370
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2371
|
+
|
|
2372
|
+
return stringifiedParams.length > 0
|
|
2373
|
+
? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}`
|
|
2374
|
+
: `${getProxyPath()}/variables/${variableName}`;
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
/**
|
|
2378
|
+
* Reads one variable by name from the owner this request addresses — one
|
|
2379
|
+
environment of the project with `environment_name`, the project level
|
|
2380
|
+
itself without it.
|
|
2381
|
+
|
|
2382
|
+
A name that owner has not entered answers `var.not_found`, even when
|
|
2383
|
+
another owner of the same project holds it: nothing is inherited. A secret
|
|
2384
|
+
is found but not disclosed: the response is `{"secret": true}`.
|
|
2385
|
+
|
|
2386
|
+
* @summary Get a variable
|
|
2387
|
+
*/
|
|
2388
|
+
export const getVariable = async (
|
|
2389
|
+
variableName: string,
|
|
2390
|
+
params: GetVariableParams,
|
|
2391
|
+
options?: RequestInit,
|
|
2392
|
+
): Promise<GetVariable200> => {
|
|
2393
|
+
return customFetch<GetVariable200>(getGetVariableUrl(variableName, params), {
|
|
2394
|
+
...options,
|
|
2395
|
+
method: "GET",
|
|
2396
|
+
});
|
|
2397
|
+
};
|
|
2398
|
+
|
|
2399
|
+
export const getDeleteVariableUrl = (variableName: string, params: DeleteVariableParams) => {
|
|
2400
|
+
const normalizedParams = new URLSearchParams();
|
|
2401
|
+
|
|
2402
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2403
|
+
if (value !== undefined) {
|
|
2404
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
2405
|
+
}
|
|
2406
|
+
});
|
|
2407
|
+
|
|
2408
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2409
|
+
|
|
2410
|
+
return stringifiedParams.length > 0
|
|
2411
|
+
? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}`
|
|
2412
|
+
: `${getProxyPath()}/variables/${variableName}`;
|
|
2413
|
+
};
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Removes the variable this owner entered under this name.
|
|
2417
|
+
|
|
2418
|
+
A variable is deletable only by the owner that entered it. Deleting a name
|
|
2419
|
+
another owner of the same project holds answers `var.not_found` and leaves
|
|
2420
|
+
that owner's value standing.
|
|
2421
|
+
|
|
2422
|
+
* @summary Delete a variable
|
|
2423
|
+
*/
|
|
2424
|
+
export const deleteVariable = async (
|
|
2425
|
+
variableName: string,
|
|
2426
|
+
params: DeleteVariableParams,
|
|
2427
|
+
options?: RequestInit,
|
|
2428
|
+
): Promise<void> => {
|
|
2429
|
+
return customFetch<void>(getDeleteVariableUrl(variableName, params), {
|
|
2430
|
+
...options,
|
|
2431
|
+
method: "DELETE",
|
|
2432
|
+
});
|
|
2433
|
+
};
|