@zitadel/api 0.3.0 → 0.5.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.
Files changed (731) hide show
  1. package/README.md +17 -3
  2. package/dist/api-factory-32Zz3s86.mjs +359 -0
  3. package/dist/api-factory-32Zz3s86.mjs.map +1 -0
  4. package/dist/api-factory-DbVEEqxe.d.mts +217 -0
  5. package/dist/api-factory-DbVEEqxe.d.mts.map +1 -0
  6. package/dist/{fetch-CtYe0OvX.d.mts → fetch-BzLvdm6C.d.mts} +35 -12
  7. package/dist/fetch-BzLvdm6C.d.mts.map +1 -0
  8. package/dist/generated/endpoints/zitadelNextGen.d.mts +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.mjs +1099 -733
  10. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +1 -1
  12. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +9 -9
  13. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  14. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1029 -657
  15. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  16. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +4801 -4433
  17. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  18. package/dist/generated/model/index.d.mts +2 -2
  19. package/dist/generated/model/index.mjs.map +1 -1
  20. package/dist/generated/operations.d.mts +9 -0
  21. package/dist/generated/operations.d.mts.map +1 -1
  22. package/dist/generated/operations.mjs +267 -154
  23. package/dist/generated/operations.mjs.map +1 -1
  24. package/dist/{index-DAm3tCA7.d.mts → index-BX80Kl-8.d.mts} +9183 -7757
  25. package/dist/index-BX80Kl-8.d.mts.map +1 -0
  26. package/dist/runtime/api-factory.d.mts +2 -51
  27. package/dist/runtime/api-factory.mjs +3 -62
  28. package/dist/runtime/auth.mjs +1 -1
  29. package/dist/runtime/auth.mjs.map +1 -1
  30. package/dist/runtime/base-url.d.mts +14 -0
  31. package/dist/runtime/base-url.d.mts.map +1 -1
  32. package/dist/runtime/base-url.mjs +22 -1
  33. package/dist/runtime/base-url.mjs.map +1 -1
  34. package/dist/runtime/config.d.mts +1 -1
  35. package/dist/runtime/config.mjs +1 -1
  36. package/dist/runtime/fetch.d.mts +2 -2
  37. package/dist/runtime/fetch.mjs +42 -17
  38. package/dist/runtime/fetch.mjs.map +1 -1
  39. package/dist/runtime/paging.d.mts +118 -0
  40. package/dist/runtime/paging.d.mts.map +1 -0
  41. package/dist/runtime/paging.mjs +138 -0
  42. package/dist/runtime/paging.mjs.map +1 -0
  43. package/dist/zitadelNextGen-CFrFhq_h.d.mts +1726 -0
  44. package/dist/zitadelNextGen-CFrFhq_h.d.mts.map +1 -0
  45. package/package.json +8 -3
  46. package/src/generated/endpoints/zitadelNextGen.faker.ts +3 -3
  47. package/src/generated/endpoints/zitadelNextGen.ts +1112 -746
  48. package/src/generated/endpoints/zitadelNextGen.zod.ts +4816 -4440
  49. package/src/generated/model/addOrigin201.ts +5 -0
  50. package/src/generated/model/addOrigin201Kind.ts +3 -0
  51. package/src/generated/model/addOriginBody.ts +17 -5
  52. package/src/generated/model/addOriginBodyKind.ts +4 -0
  53. package/src/generated/model/beginUserPasskeyRegistration201.ts +3 -3
  54. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +6 -6
  55. package/src/generated/model/buildRelease200.ts +15 -15
  56. package/src/generated/model/buildRelease200Metadata.ts +8 -8
  57. package/src/generated/model/buildRelease200PointersItem.ts +13 -12
  58. package/src/generated/model/buildRelease200PointersItemKind.ts +3 -3
  59. package/src/generated/model/buildRelease201.ts +15 -15
  60. package/src/generated/model/buildRelease201Metadata.ts +8 -8
  61. package/src/generated/model/buildRelease201PointersItem.ts +13 -12
  62. package/src/generated/model/buildRelease201PointersItemKind.ts +3 -3
  63. package/src/generated/model/buildRelease400.ts +1 -3
  64. package/src/generated/model/buildRelease400DetailsResourcesItem.ts +3 -3
  65. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +3 -3
  66. package/src/generated/model/buildReleaseBody.ts +19 -16
  67. package/src/generated/model/buildReleaseBodyBundle.ts +31 -28
  68. package/src/generated/model/buildReleaseBodyBundleBranding.ts +24 -22
  69. package/src/generated/model/buildReleaseBodyBundleBrandingLayout.ts +8 -7
  70. package/src/generated/model/buildReleaseBodyBundleBrandingShape.ts +1 -1
  71. package/src/generated/model/buildReleaseBodyBundleBrandingTheme.ts +5 -7
  72. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +7 -7
  73. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDarkPalette.ts +63 -62
  74. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +7 -7
  75. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLightPalette.ts +63 -62
  76. package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +4 -4
  77. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +47 -26
  78. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemAudience.ts +1 -1
  79. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +2 -2
  80. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItem.ts +46 -28
  81. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItem.ts +9 -7
  82. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemKind.ts +2 -2
  83. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +11 -10
  84. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -1
  85. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesKind.ts +4 -3
  86. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitions.ts +40 -20
  87. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsAction.ts +8 -5
  88. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsPurpose.ts +7 -8
  89. package/src/generated/model/buildReleaseBodyBundleIdpsItem.ts +7 -7
  90. package/src/generated/model/buildReleaseBodyBundleIdpsItemClaimMapping.ts +1 -1
  91. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidc.ts +7 -7
  92. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidcStaticAuthorizeParameters.ts +1 -1
  93. package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioning.ts +1 -1
  94. package/src/generated/model/buildReleaseBodyBundleIdpsItemVerifiedClaims.ts +1 -1
  95. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +3 -3
  96. package/src/generated/model/buildReleaseBodyBundleSchemasItem.ts +23 -22
  97. package/src/generated/model/buildReleaseParams.ts +3 -1
  98. package/src/generated/model/completeClaim409.ts +2 -2
  99. package/src/generated/model/completeClaimBody.ts +1 -1
  100. package/src/generated/model/createAuthAttempt201.ts +23 -22
  101. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +9 -7
  102. package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +1 -1
  103. package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +2 -2
  104. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +5 -5
  105. package/src/generated/model/createAuthAttempt201State.ts +2 -2
  106. package/src/generated/model/createAuthAttemptBody.ts +3 -3
  107. package/src/generated/model/createAuthAttemptDefault.ts +63 -0
  108. package/src/generated/model/createBranding201.ts +10 -10
  109. package/src/generated/model/createBranding201Branding.ts +24 -22
  110. package/src/generated/model/createBranding201BrandingLayout.ts +8 -7
  111. package/src/generated/model/createBranding201BrandingShape.ts +1 -1
  112. package/src/generated/model/createBranding201BrandingTheme.ts +5 -7
  113. package/src/generated/model/createBranding201BrandingThemeDark.ts +7 -7
  114. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +63 -62
  115. package/src/generated/model/createBranding201BrandingThemeLight.ts +7 -7
  116. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +63 -62
  117. package/src/generated/model/createBranding201BrandingTypography.ts +4 -4
  118. package/src/generated/model/createBrandingBody.ts +24 -22
  119. package/src/generated/model/createBrandingBodyLayout.ts +8 -7
  120. package/src/generated/model/createBrandingBodyShape.ts +1 -1
  121. package/src/generated/model/createBrandingBodyTheme.ts +5 -7
  122. package/src/generated/model/createBrandingBodyThemeDark.ts +7 -7
  123. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +63 -62
  124. package/src/generated/model/createBrandingBodyThemeLight.ts +7 -7
  125. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +63 -62
  126. package/src/generated/model/createBrandingBodyTypography.ts +4 -4
  127. package/src/generated/model/createBrandingParams.ts +3 -1
  128. package/src/generated/model/createDeployment200.ts +16 -14
  129. package/src/generated/model/createDeployment200Metadata.ts +1 -1
  130. package/src/generated/model/createDeployment200Release.ts +15 -15
  131. package/src/generated/model/createDeployment200ReleaseMetadata.ts +8 -8
  132. package/src/generated/model/createDeployment200ReleasePointersItem.ts +13 -12
  133. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +3 -3
  134. package/src/generated/model/createDeployment200Status.ts +3 -3
  135. package/src/generated/model/createDeployment201.ts +16 -14
  136. package/src/generated/model/createDeployment201Metadata.ts +1 -1
  137. package/src/generated/model/createDeployment201Release.ts +15 -15
  138. package/src/generated/model/createDeployment201ReleaseMetadata.ts +8 -8
  139. package/src/generated/model/createDeployment201ReleasePointersItem.ts +13 -12
  140. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +3 -3
  141. package/src/generated/model/createDeployment201Status.ts +3 -3
  142. package/src/generated/model/createDeployment409.ts +41 -40
  143. package/src/generated/model/createDeploymentBody.ts +4 -10
  144. package/src/generated/model/createDeploymentParams.ts +3 -1
  145. package/src/generated/model/createFlow201.ts +16 -12
  146. package/src/generated/model/createFlow201Branding.ts +24 -22
  147. package/src/generated/model/createFlow201BrandingLayout.ts +8 -7
  148. package/src/generated/model/createFlow201BrandingShape.ts +1 -1
  149. package/src/generated/model/createFlow201BrandingTheme.ts +5 -7
  150. package/src/generated/model/createFlow201BrandingThemeDark.ts +7 -7
  151. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +63 -62
  152. package/src/generated/model/createFlow201BrandingThemeLight.ts +7 -7
  153. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +63 -62
  154. package/src/generated/model/createFlow201BrandingTypography.ts +4 -4
  155. package/src/generated/model/createFlow201Step.ts +36 -31
  156. package/src/generated/model/createFlow201StepActionsItem.ts +3 -3
  157. package/src/generated/model/createFlow201StepActionsItemKind.ts +1 -1
  158. package/src/generated/model/createFlow201StepChallenge.ts +4 -3
  159. package/src/generated/model/createFlow201StepComplete.ts +1 -1
  160. package/src/generated/model/createFlow201StepFieldsItem.ts +14 -13
  161. package/src/generated/model/createFlow201StepFieldsItemType.ts +1 -1
  162. package/src/generated/model/createFlow201StepFieldsItemValidation.ts +2 -2
  163. package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +1 -1
  164. package/src/generated/model/createFlow201StepGates.ts +10 -8
  165. package/src/generated/model/createFlow201StepGatesConfig.ts +1 -1
  166. package/src/generated/model/createFlow201StepGatesKind.ts +4 -3
  167. package/src/generated/model/createFlow201StepIdentifier.ts +6 -6
  168. package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
  169. package/src/generated/model/createFlow201StepTexts.ts +1 -1
  170. package/src/generated/model/createFlowBody.ts +7 -2
  171. package/src/generated/model/createFlowBodyHint.ts +4 -1
  172. package/src/generated/model/createFlowBodyPurpose.ts +3 -0
  173. package/src/generated/model/createFlowDefault.ts +9 -0
  174. package/src/generated/model/createFlowDefinition201.ts +22 -10
  175. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +47 -26
  176. package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +1 -1
  177. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +2 -2
  178. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +46 -28
  179. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +9 -7
  180. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  181. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +11 -10
  182. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +1 -1
  183. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +4 -3
  184. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +40 -20
  185. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  186. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  187. package/src/generated/model/createFlowDefinition201UserSchema.ts +2 -2
  188. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +2 -1
  189. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +21 -20
  190. package/src/generated/model/createFlowDefinitionBody.ts +22 -12
  191. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +47 -26
  192. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +1 -1
  193. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +2 -2
  194. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +46 -28
  195. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +9 -7
  196. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  197. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +11 -10
  198. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +1 -1
  199. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +4 -3
  200. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +40 -20
  201. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  202. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  203. package/src/generated/model/createGrant201.ts +14 -14
  204. package/src/generated/model/createGrant201ObjectType.ts +1 -1
  205. package/src/generated/model/createGrant201Relation.ts +1 -1
  206. package/src/generated/model/createGrant201Team.ts +7 -7
  207. package/src/generated/model/createGrant201TeamStatus.ts +2 -2
  208. package/src/generated/model/createGrant201User.ts +5 -5
  209. package/src/generated/model/createGrant201UserMetadata.ts +10 -11
  210. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +11 -12
  211. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  212. package/src/generated/model/createGrantBody.ts +12 -12
  213. package/src/generated/model/createGrantBodyRelation.ts +1 -1
  214. package/src/generated/model/createGrantBodyTeam.ts +3 -3
  215. package/src/generated/model/createGrantBodyUser.ts +5 -5
  216. package/src/generated/model/createGrantDefault.ts +9 -0
  217. package/src/generated/model/createGrantParams.ts +3 -1
  218. package/src/generated/model/createHandoff200.ts +9 -10
  219. package/src/generated/model/createIdp200.ts +10 -9
  220. package/src/generated/model/createIdp200Definition.ts +7 -7
  221. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
  222. package/src/generated/model/createIdp200DefinitionOidc.ts +7 -7
  223. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  224. package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
  225. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
  226. package/src/generated/model/createIdp201.ts +10 -9
  227. package/src/generated/model/createIdp201Definition.ts +7 -7
  228. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
  229. package/src/generated/model/createIdp201DefinitionOidc.ts +7 -7
  230. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  231. package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
  232. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
  233. package/src/generated/model/createIdpBody.ts +1 -1
  234. package/src/generated/model/createIdpBodyIdp.ts +7 -7
  235. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
  236. package/src/generated/model/createIdpBodyIdpOidc.ts +7 -7
  237. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +1 -1
  238. package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
  239. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
  240. package/src/generated/model/createIdpParams.ts +3 -1
  241. package/src/generated/model/createProject201.ts +10 -5
  242. package/src/generated/model/createProject201OriginsItem.ts +17 -5
  243. package/src/generated/model/createProject201OriginsItemKind.ts +4 -0
  244. package/src/generated/model/createProjectBody.ts +5 -6
  245. package/src/generated/model/createProjectBodyOriginsItem.ts +17 -5
  246. package/src/generated/model/createProjectBodyOriginsItemKind.ts +4 -0
  247. package/src/generated/model/createRelease200.ts +15 -15
  248. package/src/generated/model/createRelease200Metadata.ts +8 -8
  249. package/src/generated/model/createRelease200PointersItem.ts +13 -12
  250. package/src/generated/model/createRelease200PointersItemKind.ts +3 -3
  251. package/src/generated/model/createRelease201.ts +15 -15
  252. package/src/generated/model/createRelease201Metadata.ts +8 -8
  253. package/src/generated/model/createRelease201PointersItem.ts +13 -12
  254. package/src/generated/model/createRelease201PointersItemKind.ts +3 -3
  255. package/src/generated/model/createReleaseBody.ts +7 -11
  256. package/src/generated/model/createReleaseBodyPointersItem.ts +8 -8
  257. package/src/generated/model/createReleaseBodyPointersItemKind.ts +3 -3
  258. package/src/generated/model/createReleaseParams.ts +3 -1
  259. package/src/generated/model/createSchema201.ts +1 -1
  260. package/src/generated/model/createSchemaBody.ts +23 -22
  261. package/src/generated/model/createSchemaParams.ts +4 -2
  262. package/src/generated/model/createSession201.ts +8 -8
  263. package/src/generated/model/createSession201Session.ts +16 -16
  264. package/src/generated/model/createSession201SessionFactorsItem.ts +2 -2
  265. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +5 -5
  266. package/src/generated/model/createSession201SessionState.ts +1 -1
  267. package/src/generated/model/createSession201SessionUser.ts +5 -5
  268. package/src/generated/model/createSessionBody.ts +1 -1
  269. package/src/generated/model/createTeam201.ts +2 -2
  270. package/src/generated/model/createTeam201Status.ts +2 -2
  271. package/src/generated/model/createTeamBody.ts +1 -1
  272. package/src/generated/model/createTeamParams.ts +3 -1
  273. package/src/generated/model/createUser201.ts +28 -29
  274. package/src/generated/model/createUser201Metadata.ts +10 -11
  275. package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +11 -12
  276. package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +2 -2
  277. package/src/generated/model/createUser201TeamsItem.ts +4 -4
  278. package/src/generated/model/createUserBody.ts +9 -8
  279. package/src/generated/model/createUserParams.ts +4 -2
  280. package/src/generated/model/deleteGrantParams.ts +3 -1
  281. package/src/generated/model/deleteUserByID409.ts +20 -0
  282. package/src/generated/model/deleteUserByID409Details.ts +12 -0
  283. package/src/generated/model/deleteUserByIDDefault.ts +9 -0
  284. package/src/generated/model/deleteVariableParams.ts +3 -1
  285. package/src/generated/model/evaluatePolicy200.ts +5 -4
  286. package/src/generated/model/evaluatePolicy200Violations.ts +4 -3
  287. package/src/generated/model/evaluatePolicyBody.ts +8 -9
  288. package/src/generated/model/evaluatePolicyParams.ts +3 -1
  289. package/src/generated/model/exchangeHandoff200.ts +8 -8
  290. package/src/generated/model/exchangeHandoff200Session.ts +16 -16
  291. package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +2 -2
  292. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +5 -5
  293. package/src/generated/model/exchangeHandoff200SessionState.ts +1 -1
  294. package/src/generated/model/exchangeHandoff200SessionUser.ts +5 -5
  295. package/src/generated/model/exchangeHandoffBody.ts +7 -5
  296. package/src/generated/model/exchangeHandoffParams.ts +3 -1
  297. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +1 -1
  298. package/src/generated/model/getAuthAttempt200.ts +23 -22
  299. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +9 -7
  300. package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +1 -1
  301. package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +2 -2
  302. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +5 -5
  303. package/src/generated/model/getAuthAttempt200State.ts +2 -2
  304. package/src/generated/model/getBrandingById200.ts +10 -10
  305. package/src/generated/model/getBrandingById200Branding.ts +24 -22
  306. package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -7
  307. package/src/generated/model/getBrandingById200BrandingShape.ts +1 -1
  308. package/src/generated/model/getBrandingById200BrandingTheme.ts +5 -7
  309. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +7 -7
  310. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +63 -62
  311. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +7 -7
  312. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +63 -62
  313. package/src/generated/model/getBrandingById200BrandingTypography.ts +4 -4
  314. package/src/generated/model/getClaimStatus200.ts +4 -5
  315. package/src/generated/model/getClaimStatusParams.ts +1 -1
  316. package/src/generated/model/getClaimWindow200.ts +6 -6
  317. package/src/generated/model/getClaimWindowParams.ts +1 -1
  318. package/src/generated/model/getDeploymentById200.ts +16 -14
  319. package/src/generated/model/getDeploymentById200Metadata.ts +1 -1
  320. package/src/generated/model/getDeploymentById200Release.ts +15 -15
  321. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +8 -8
  322. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +13 -12
  323. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +3 -3
  324. package/src/generated/model/getDeploymentById200Status.ts +3 -3
  325. package/src/generated/model/getDeploymentByIdParams.ts +3 -1
  326. package/src/generated/model/getDeploymentVariablesParams.ts +3 -1
  327. package/src/generated/model/getEvent200.ts +1574 -1323
  328. package/src/generated/model/getEventParams.ts +3 -1
  329. package/src/generated/model/getFlowDefinition200.ts +22 -10
  330. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +47 -26
  331. package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +1 -1
  332. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +2 -2
  333. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +46 -28
  334. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +9 -7
  335. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  336. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +11 -10
  337. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -1
  338. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +4 -3
  339. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +40 -20
  340. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  341. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  342. package/src/generated/model/getFlowDefinition200UserSchema.ts +2 -2
  343. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +2 -1
  344. package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +21 -20
  345. package/src/generated/model/getFlowStep200.ts +16 -12
  346. package/src/generated/model/getFlowStep200Branding.ts +24 -22
  347. package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -7
  348. package/src/generated/model/getFlowStep200BrandingShape.ts +1 -1
  349. package/src/generated/model/getFlowStep200BrandingTheme.ts +5 -7
  350. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +7 -7
  351. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +63 -62
  352. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +7 -7
  353. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +63 -62
  354. package/src/generated/model/getFlowStep200BrandingTypography.ts +4 -4
  355. package/src/generated/model/getFlowStep200Step.ts +36 -31
  356. package/src/generated/model/getFlowStep200StepActionsItem.ts +3 -3
  357. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +1 -1
  358. package/src/generated/model/getFlowStep200StepChallenge.ts +4 -3
  359. package/src/generated/model/getFlowStep200StepComplete.ts +1 -1
  360. package/src/generated/model/getFlowStep200StepFieldsItem.ts +14 -13
  361. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +1 -1
  362. package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +2 -2
  363. package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  364. package/src/generated/model/getFlowStep200StepGates.ts +10 -8
  365. package/src/generated/model/getFlowStep200StepGatesConfig.ts +1 -1
  366. package/src/generated/model/getFlowStep200StepGatesKind.ts +4 -3
  367. package/src/generated/model/getFlowStep200StepIdentifier.ts +6 -6
  368. package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
  369. package/src/generated/model/getFlowStep200StepTexts.ts +1 -1
  370. package/src/generated/model/getFlowStepDefault.ts +27 -0
  371. package/src/generated/model/getGrant200.ts +14 -14
  372. package/src/generated/model/getGrant200ObjectType.ts +1 -1
  373. package/src/generated/model/getGrant200Relation.ts +1 -1
  374. package/src/generated/model/getGrant200Team.ts +7 -7
  375. package/src/generated/model/getGrant200TeamStatus.ts +2 -2
  376. package/src/generated/model/getGrant200User.ts +5 -5
  377. package/src/generated/model/getGrant200UserMetadata.ts +10 -11
  378. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +11 -12
  379. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  380. package/src/generated/model/getGrantDefault.ts +0 -9
  381. package/src/generated/model/getGrantExpandItem.ts +8 -5
  382. package/src/generated/model/getGrantParams.ts +6 -3
  383. package/src/generated/model/getIdpById200.ts +10 -9
  384. package/src/generated/model/getIdpById200Definition.ts +7 -7
  385. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
  386. package/src/generated/model/getIdpById200DefinitionOidc.ts +7 -7
  387. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  388. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
  389. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
  390. package/src/generated/model/getIdpByIdParams.ts +3 -1
  391. package/src/generated/model/getIdpRevisionById200.ts +10 -9
  392. package/src/generated/model/getIdpRevisionById200Definition.ts +7 -7
  393. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
  394. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +7 -7
  395. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  396. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
  397. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
  398. package/src/generated/model/getIdpRevisionByIdParams.ts +3 -1
  399. package/src/generated/model/getMyPasswordState200.ts +2 -2
  400. package/src/generated/model/getMySession200.ts +16 -16
  401. package/src/generated/model/getMySession200FactorsItem.ts +2 -2
  402. package/src/generated/model/getMySession200FactorsItemPayload.ts +5 -5
  403. package/src/generated/model/getMySession200State.ts +1 -1
  404. package/src/generated/model/getMySession200User.ts +5 -5
  405. package/src/generated/model/getMySessionCsrfToken200.ts +1 -1
  406. package/src/generated/model/getMyUser200.ts +28 -29
  407. package/src/generated/model/getMyUser200Metadata.ts +10 -11
  408. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  409. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  410. package/src/generated/model/getMyUser200TeamsItem.ts +4 -4
  411. package/src/generated/model/getMyUserSchema200.ts +4 -4
  412. package/src/generated/model/getMyUserSchema200Metadata.ts +2 -1
  413. package/src/generated/model/getMyUserSchema200Schema.ts +21 -20
  414. package/src/generated/model/getPolicy200.ts +3 -3
  415. package/src/generated/model/getPolicyParams.ts +3 -1
  416. package/src/generated/model/getPolicyRevision200.ts +3 -3
  417. package/src/generated/model/getPolicyRevisionParams.ts +3 -1
  418. package/src/generated/model/getProject200.ts +34 -30
  419. package/src/generated/model/getReleaseById200.ts +15 -15
  420. package/src/generated/model/getReleaseById200Metadata.ts +8 -8
  421. package/src/generated/model/getReleaseById200PointersItem.ts +13 -12
  422. package/src/generated/model/getReleaseById200PointersItemKind.ts +3 -3
  423. package/src/generated/model/getReleaseByIdParams.ts +3 -1
  424. package/src/generated/model/getSchemaById200.ts +4 -4
  425. package/src/generated/model/getSchemaById200Metadata.ts +2 -1
  426. package/src/generated/model/getSchemaById200Schema.ts +21 -20
  427. package/src/generated/model/getSchemaByIdParams.ts +3 -3
  428. package/src/generated/model/getSession200.ts +16 -16
  429. package/src/generated/model/getSession200FactorsItem.ts +2 -2
  430. package/src/generated/model/getSession200FactorsItemPayload.ts +5 -5
  431. package/src/generated/model/getSession200State.ts +1 -1
  432. package/src/generated/model/getSession200User.ts +5 -5
  433. package/src/generated/model/getTeam200.ts +2 -2
  434. package/src/generated/model/getTeam200Status.ts +2 -2
  435. package/src/generated/model/getUserByID200.ts +28 -29
  436. package/src/generated/model/getUserByID200Metadata.ts +10 -11
  437. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  438. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  439. package/src/generated/model/getUserByID200TeamsItem.ts +4 -4
  440. package/src/generated/model/getUserByIDParams.ts +4 -3
  441. package/src/generated/model/getUserPasswordState200.ts +2 -2
  442. package/src/generated/model/getVariable200.ts +4 -4
  443. package/src/generated/model/getVariable200Preview.ts +2 -2
  444. package/src/generated/model/getVariable200Primary.ts +2 -2
  445. package/src/generated/model/getVariableParams.ts +3 -1
  446. package/src/generated/model/getVariables200.ts +4 -4
  447. package/src/generated/model/getVariables200Preview.ts +2 -2
  448. package/src/generated/model/getVariables200Primary.ts +2 -2
  449. package/src/generated/model/getVariablesParams.ts +3 -1
  450. package/src/generated/model/index.ts +2 -0
  451. package/src/generated/model/initClaim201.ts +3 -3
  452. package/src/generated/model/initClaim409.ts +2 -2
  453. package/src/generated/model/issueChallenge201.ts +9 -7
  454. package/src/generated/model/issueChallenge201State.ts +1 -1
  455. package/src/generated/model/issueChallengeBody.ts +2 -2
  456. package/src/generated/model/listBrandingParams.ts +3 -1
  457. package/src/generated/model/listDeployments200DeploymentsItem.ts +16 -14
  458. package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +1 -1
  459. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +15 -15
  460. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +8 -8
  461. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +13 -12
  462. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +3 -3
  463. package/src/generated/model/listDeployments200DeploymentsItemStatus.ts +3 -3
  464. package/src/generated/model/listDeploymentsExpandItem.ts +4 -4
  465. package/src/generated/model/listDeploymentsParams.ts +3 -1
  466. package/src/generated/model/listEvents200.ts +1 -1
  467. package/src/generated/model/listEvents200DataItem.ts +1574 -1323
  468. package/src/generated/model/listEventsParams.ts +34 -6
  469. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +22 -10
  470. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +47 -26
  471. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +1 -1
  472. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +2 -2
  473. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +46 -28
  474. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +9 -7
  475. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  476. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +11 -10
  477. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -1
  478. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +4 -3
  479. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +40 -20
  480. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  481. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  482. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +2 -2
  483. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +2 -1
  484. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +21 -20
  485. package/src/generated/model/listFlowDefinitionsExpandItem.ts +2 -2
  486. package/src/generated/model/listFlowDefinitionsParams.ts +8 -6
  487. package/src/generated/model/listIdpRevisions200.ts +1 -2
  488. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +10 -9
  489. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +7 -7
  490. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
  491. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +7 -7
  492. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  493. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
  494. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -1
  495. package/src/generated/model/listIdpRevisionsParams.ts +3 -1
  496. package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +2 -2
  497. package/src/generated/model/listMyProjects200.ts +1 -1
  498. package/src/generated/model/listMyProjects200ProjectsItem.ts +2 -3
  499. package/src/generated/model/listMyProjects200ProjectsItemOriginsItem.ts +17 -5
  500. package/src/generated/model/listMyProjects200ProjectsItemOriginsItemKind.ts +4 -0
  501. package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +12 -15
  502. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  503. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +15 -18
  504. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  505. package/src/generated/model/listMyTeams200TeamsItem.ts +4 -4
  506. package/src/generated/model/listPolicies200.ts +2 -2
  507. package/src/generated/model/listPolicies200PoliciesItem.ts +3 -3
  508. package/src/generated/model/listPoliciesParams.ts +3 -1
  509. package/src/generated/model/listPolicyRevisions200.ts +1 -1
  510. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +3 -3
  511. package/src/generated/model/listPolicyRevisionsParams.ts +3 -1
  512. package/src/generated/model/listPreviews200PreviewsItem.ts +4 -5
  513. package/src/generated/model/listProjectAdmins200AdminsItem.ts +3 -3
  514. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +13 -15
  515. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +5 -5
  516. package/src/generated/model/listReleases200.ts +1 -1
  517. package/src/generated/model/listReleases200ReleasesItem.ts +4 -4
  518. package/src/generated/model/listReleases200ReleasesItemMetadata.ts +8 -8
  519. package/src/generated/model/listReleasesParams.ts +4 -2
  520. package/src/generated/model/listSchemas200.ts +1 -1
  521. package/src/generated/model/listSchemas200SchemasItem.ts +4 -4
  522. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +2 -1
  523. package/src/generated/model/listSchemas200SchemasItemSchema.ts +21 -20
  524. package/src/generated/model/listSchemasExpandItem.ts +2 -2
  525. package/src/generated/model/listSchemasParams.ts +7 -5
  526. package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +2 -2
  527. package/src/generated/model/listUserTeams200TeamsItem.ts +4 -4
  528. package/src/generated/model/patchMyUser200.ts +28 -29
  529. package/src/generated/model/patchMyUser200Metadata.ts +10 -11
  530. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  531. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  532. package/src/generated/model/patchMyUser200TeamsItem.ts +4 -4
  533. package/src/generated/model/patchMyUserBody.ts +2 -2
  534. package/src/generated/model/patchProject200.ts +34 -30
  535. package/src/generated/model/patchProjectBody.ts +3 -3
  536. package/src/generated/model/patchProjectBodyPasswordHash.ts +15 -18
  537. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +1 -1
  538. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +15 -18
  539. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +4 -4
  540. package/src/generated/model/patchUserByID200.ts +28 -29
  541. package/src/generated/model/patchUserByID200Metadata.ts +10 -11
  542. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  543. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  544. package/src/generated/model/patchUserByID200TeamsItem.ts +4 -4
  545. package/src/generated/model/patchUserByIDBody.ts +21 -13
  546. package/src/generated/model/publishPolicy201.ts +3 -3
  547. package/src/generated/model/publishPolicyBody.ts +3 -3
  548. package/src/generated/model/publishPolicyParams.ts +3 -1
  549. package/src/generated/model/queryGrants200GrantsItem.ts +14 -14
  550. package/src/generated/model/queryGrants200GrantsItemObjectType.ts +1 -1
  551. package/src/generated/model/queryGrants200GrantsItemRelation.ts +1 -1
  552. package/src/generated/model/queryGrants200GrantsItemTeam.ts +7 -7
  553. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +2 -2
  554. package/src/generated/model/queryGrants200GrantsItemUser.ts +5 -5
  555. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +10 -11
  556. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +11 -12
  557. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  558. package/src/generated/model/queryGrantsBody.ts +2 -3
  559. package/src/generated/model/queryGrantsBodyExpandItem.ts +8 -5
  560. package/src/generated/model/queryGrantsBodyFilterItem.ts +3 -5
  561. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +1 -2
  562. package/src/generated/model/queryGrantsDefault.ts +0 -9
  563. package/src/generated/model/queryGrantsParams.ts +3 -1
  564. package/src/generated/model/queryIdps200.ts +1 -1
  565. package/src/generated/model/queryIdps200IdpsItem.ts +10 -9
  566. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +7 -7
  567. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
  568. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +7 -7
  569. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  570. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
  571. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
  572. package/src/generated/model/queryIdpsBody.ts +2 -2
  573. package/src/generated/model/queryIdpsBodyFilterItem.ts +5 -7
  574. package/src/generated/model/queryIdpsBodyFilterItemField.ts +2 -2
  575. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +1 -2
  576. package/src/generated/model/queryIdpsBodySorting.ts +2 -2
  577. package/src/generated/model/queryIdpsBodySortingField.ts +2 -2
  578. package/src/generated/model/queryIdpsParams.ts +3 -1
  579. package/src/generated/model/queryProjects200ProjectsItem.ts +2 -3
  580. package/src/generated/model/queryProjects200ProjectsItemOriginsItem.ts +17 -5
  581. package/src/generated/model/queryProjects200ProjectsItemOriginsItemKind.ts +4 -0
  582. package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +12 -15
  583. package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  584. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +15 -18
  585. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  586. package/src/generated/model/queryProjectsBodyFilterItem.ts +3 -5
  587. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +1 -2
  588. package/src/generated/model/querySessions200SessionsItem.ts +16 -16
  589. package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +2 -2
  590. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +5 -5
  591. package/src/generated/model/querySessions200SessionsItemState.ts +1 -1
  592. package/src/generated/model/querySessions200SessionsItemUser.ts +5 -5
  593. package/src/generated/model/querySessionsBodyFilterItem.ts +4 -6
  594. package/src/generated/model/querySessionsBodyFilterItemField.ts +1 -1
  595. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +1 -2
  596. package/src/generated/model/querySessionsBodySorting.ts +2 -3
  597. package/src/generated/model/querySessionsBodySortingField.ts +2 -3
  598. package/src/generated/model/querySessionsParams.ts +3 -1
  599. package/src/generated/model/queryTeams200TeamsItem.ts +2 -2
  600. package/src/generated/model/queryTeams200TeamsItemStatus.ts +2 -2
  601. package/src/generated/model/queryTeamsBodyFilterItem.ts +3 -5
  602. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +1 -2
  603. package/src/generated/model/queryTeamsParams.ts +3 -2
  604. package/src/generated/model/queryUsers200UsersItem.ts +28 -29
  605. package/src/generated/model/queryUsers200UsersItemMetadata.ts +10 -11
  606. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +11 -12
  607. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +2 -2
  608. package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +4 -4
  609. package/src/generated/model/queryUsersBody.ts +2 -2
  610. package/src/generated/model/queryUsersBodyExpandItem.ts +8 -8
  611. package/src/generated/model/queryUsersBodyFilterItem.ts +13 -16
  612. package/src/generated/model/queryUsersBodyFilterItemField.ts +10 -11
  613. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +1 -2
  614. package/src/generated/model/queryUsersBodySorting.ts +4 -5
  615. package/src/generated/model/queryUsersBodySortingField.ts +4 -5
  616. package/src/generated/model/queryUsersParams.ts +2 -2
  617. package/src/generated/model/removeOriginBody.ts +2 -2
  618. package/src/generated/model/revokeRelease200.ts +15 -15
  619. package/src/generated/model/revokeRelease200Metadata.ts +8 -8
  620. package/src/generated/model/revokeRelease200PointersItem.ts +13 -12
  621. package/src/generated/model/revokeRelease200PointersItemKind.ts +3 -3
  622. package/src/generated/model/revokeReleaseParams.ts +3 -1
  623. package/src/generated/model/rollbackDeployment200.ts +16 -14
  624. package/src/generated/model/rollbackDeployment200Metadata.ts +1 -1
  625. package/src/generated/model/rollbackDeployment200Release.ts +15 -15
  626. package/src/generated/model/rollbackDeployment200ReleaseMetadata.ts +8 -8
  627. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +13 -12
  628. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +3 -3
  629. package/src/generated/model/rollbackDeployment200Status.ts +3 -3
  630. package/src/generated/model/rollbackDeployment201.ts +16 -14
  631. package/src/generated/model/rollbackDeployment201Metadata.ts +1 -1
  632. package/src/generated/model/rollbackDeployment201Release.ts +15 -15
  633. package/src/generated/model/rollbackDeployment201ReleaseMetadata.ts +8 -8
  634. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +13 -12
  635. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +3 -3
  636. package/src/generated/model/rollbackDeployment201Status.ts +3 -3
  637. package/src/generated/model/rollbackDeployment409.ts +41 -40
  638. package/src/generated/model/rollbackDeploymentParams.ts +3 -1
  639. package/src/generated/model/setUserPasswordBody.ts +1 -1
  640. package/src/generated/model/setUserPasswordDefault.ts +63 -0
  641. package/src/generated/model/submitFlowStep200.ts +16 -12
  642. package/src/generated/model/submitFlowStep200Branding.ts +24 -22
  643. package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -7
  644. package/src/generated/model/submitFlowStep200BrandingShape.ts +1 -1
  645. package/src/generated/model/submitFlowStep200BrandingTheme.ts +5 -7
  646. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +7 -7
  647. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +63 -62
  648. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +7 -7
  649. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +63 -62
  650. package/src/generated/model/submitFlowStep200BrandingTypography.ts +4 -4
  651. package/src/generated/model/submitFlowStep200Step.ts +36 -31
  652. package/src/generated/model/submitFlowStep200StepActionsItem.ts +3 -3
  653. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +1 -1
  654. package/src/generated/model/submitFlowStep200StepChallenge.ts +4 -3
  655. package/src/generated/model/submitFlowStep200StepComplete.ts +1 -1
  656. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +14 -13
  657. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +1 -1
  658. package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +2 -2
  659. package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  660. package/src/generated/model/submitFlowStep200StepGates.ts +10 -8
  661. package/src/generated/model/submitFlowStep200StepGatesConfig.ts +1 -1
  662. package/src/generated/model/submitFlowStep200StepGatesKind.ts +4 -3
  663. package/src/generated/model/submitFlowStep200StepIdentifier.ts +6 -6
  664. package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
  665. package/src/generated/model/submitFlowStep200StepTexts.ts +1 -1
  666. package/src/generated/model/submitFlowStep400.ts +16 -12
  667. package/src/generated/model/submitFlowStep400Branding.ts +24 -22
  668. package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -7
  669. package/src/generated/model/submitFlowStep400BrandingShape.ts +1 -1
  670. package/src/generated/model/submitFlowStep400BrandingTheme.ts +5 -7
  671. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +7 -7
  672. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +63 -62
  673. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +7 -7
  674. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +63 -62
  675. package/src/generated/model/submitFlowStep400BrandingTypography.ts +4 -4
  676. package/src/generated/model/submitFlowStep400Step.ts +36 -31
  677. package/src/generated/model/submitFlowStep400StepActionsItem.ts +3 -3
  678. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +1 -1
  679. package/src/generated/model/submitFlowStep400StepChallenge.ts +4 -3
  680. package/src/generated/model/submitFlowStep400StepComplete.ts +1 -1
  681. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +14 -13
  682. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +1 -1
  683. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +2 -2
  684. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +1 -1
  685. package/src/generated/model/submitFlowStep400StepGates.ts +10 -8
  686. package/src/generated/model/submitFlowStep400StepGatesConfig.ts +1 -1
  687. package/src/generated/model/submitFlowStep400StepGatesKind.ts +4 -3
  688. package/src/generated/model/submitFlowStep400StepIdentifier.ts +6 -6
  689. package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
  690. package/src/generated/model/submitFlowStep400StepTexts.ts +1 -1
  691. package/src/generated/model/submitFlowStepBody.ts +10 -7
  692. package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +2 -2
  693. package/src/generated/model/submitFlowStepBodyGateProofs.ts +1 -1
  694. package/src/generated/model/submitFlowStepDefault.ts +27 -0
  695. package/src/generated/model/updateTeam200.ts +2 -2
  696. package/src/generated/model/updateTeam200Status.ts +2 -2
  697. package/src/generated/model/updateTeamBody.ts +1 -1
  698. package/src/generated/model/updateVariables200.ts +4 -4
  699. package/src/generated/model/updateVariables200Preview.ts +2 -2
  700. package/src/generated/model/updateVariables200Primary.ts +2 -2
  701. package/src/generated/model/updateVariablesBody.ts +14 -14
  702. package/src/generated/model/updateVariablesParams.ts +3 -1
  703. package/src/generated/model/userProperty.ts +5 -8
  704. package/src/generated/model/userPropertyProperties.ts +2 -2
  705. package/src/generated/model/userPropertyXUnique.ts +1 -1
  706. package/src/generated/model/verifyChallengeProof200.ts +23 -22
  707. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +9 -7
  708. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +1 -1
  709. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +2 -2
  710. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +5 -5
  711. package/src/generated/model/verifyChallengeProof200State.ts +2 -2
  712. package/src/generated/model/verifyChallengeProofBody.ts +2 -2
  713. package/src/generated/operations.ts +278 -153
  714. package/src/generated/paging.ts +128 -0
  715. package/src/runtime/api-factory.spec.ts +328 -0
  716. package/src/runtime/api-factory.ts +103 -13
  717. package/src/runtime/auth.ts +1 -1
  718. package/src/runtime/base-url.spec.ts +40 -4
  719. package/src/runtime/base-url.ts +28 -0
  720. package/src/runtime/fetch.spec.ts +51 -0
  721. package/src/runtime/fetch.ts +85 -30
  722. package/src/runtime/paged.spec.ts +115 -0
  723. package/src/runtime/paged.ts +62 -0
  724. package/src/runtime/paging.spec.ts +219 -0
  725. package/src/runtime/paging.ts +177 -0
  726. package/dist/fetch-CtYe0OvX.d.mts.map +0 -1
  727. package/dist/index-DAm3tCA7.d.mts.map +0 -1
  728. package/dist/runtime/api-factory.d.mts.map +0 -1
  729. package/dist/runtime/api-factory.mjs.map +0 -1
  730. package/dist/zitadelNextGen-B_VRpP2W.d.mts +0 -1360
  731. package/dist/zitadelNextGen-B_VRpP2W.d.mts.map +0 -1
@@ -0,0 +1,1726 @@
1
+ import { $C as BuildReleaseParams, $r as QuerySessionsBody, Ah as GetEventParams, Ao as PatchProject200, BC as CompleteClaimBody, BS as CreateDeployment200, Bf as GetMyUserParams, C as UpdateTeamBody, Cb as CreateGrantBody, Cd as GetUserByIDParams, Cg as GetBrandingById200, Cp as GetLiveDefault, Cy as CreateProjectBody, Dc as ListPolicies200, Ds as ListUserIdentityLinksParams, EC as CreateAuthAttemptBody, E_ as EvaluatePolicyParams, Ef as GetPolicyRevisionParams, Ep as GetIdpRevisionByIdParams, Ev as CreateTeamParams, Fa as QueryGrants200, Fc as ListMyTeams200, Fl as ListFlowDefinitionsParams, Fm as GetFlowStep200, Fu as ListBrandingParams, Gi as QueryIdpsParams, Hd as GetTeam200, Hh as GetDeploymentByIdParams, Hl as ListFlowDefinitions200, Hx as CreateFlow201, Ig as GetAuthAttempt200, Jr as QueryTeams200, Jv as CreateSession201, Kc as ListMyProjects200, Kf as GetMyUser200, Ks as ListSchemas200, Kw as BuildRelease201, L as SubmitFlowStepBody, Lf as GetMyUserSchema200, Li as QueryProjects200, Lu as ListBranding200Item, Mf as GetMyUserSchemaParams, No as PatchMyUserBody, Nx as CreateFlowBody, Ny as CreateIdpBody, OS as CreateDeployment201, O_ as EvaluatePolicyBody, Of as GetPolicyRevision200, Ov as CreateTeamBody, Oy as CreateProject201, P as UpdateTeam200, Pp as GetIdpRevisionById200, QC as CompleteClaim200, QS as CreateBrandingParams, Qa as PatchUserByIDBody, Qo as ListUserTeamsParams, Qp as GetIdpById200, Qs as ListReleases200, Rc as ListMyProjectsParams, Rh as GetEvent200, Sc as ListPolicyRevisions200, Sd as GetUserPasswordState200, Si as QueryProjectsBody, Sn as RollbackDeployment200, Sp as GetMyPasswordState200, Su as ListDeployments200, Tf as GetProject200, Ts as ListUserPasskeys200, Uu as IssueChallenge201, Vh as GetDeploymentVariables200, Vs as ListSchemasParams, Vv as CreateTeam201, Wh as GetDeploymentById200, Wn as RevokeRelease200, Wo as PatchMyUser200, Wp as GetIdpByIdParams, Wv as CreateSessionBody, X_ as DeleteGrantParams, Xa as PublishPolicy201, Xs as ListReleasesParams, Ya as PublishPolicyBody, Yn as RevokeMySessionParams, Zb as CreateFlowDefinitionBody, Zd as GetSession200, Zr as QuerySessionsParams, Zt as SetUserPasswordBody, Zw as BuildRelease200, Zy as CreateIdp201, _T as AddOriginBody, __ as ExchangeHandoff200, _f as GetReadyDefault, _m as GetGrant200, _u as ListEvents200, _y as CreateRelease200, a as VerifyChallengeProof200, a_ as FinishUserPasskeyRegistration201, af as GetSchemaByIdParams, ay as CreateSchemaBody, bS as CreateDeploymentBody, bb as CreateHandoff200, bc as ListPolicyRevisionsParams, br as QueryUsers200, bt as SubmitFlowStep200, c_ as ExchangeHandoffBody, ca as QueryIdps200, cg as GetClaimWindow200, cl as ListMyIdentityLinksParams, cm as GetGrantParams, eC as CreateBrandingBody, ed as InitClaim201, el as ListMyPasskeysParams, ep as GetMySessionParams, fc as ListProjectAdmins200, ff as GetReleaseById200, fh as GetFlowDefinition200, fi as QuerySessions200, fy as CreateRelease201, gc as ListPreviewsParams, gl as ListIdpRevisionsParams, h as UpdateVariablesParams, id as GetVariables200, in as RollbackDeploymentParams, ir as QueryUsersParams, iv as CreateUserParams, j_ as DeleteVariableParams, jf as GetPolicy200, jo as PatchMyUserParams, jr as QueryTeamsBody, jy as CreateIdpParams, kC as CreateAuthAttempt201, k_ as EvaluatePolicy200, kc as ListMyTeamsParams, kd as GetUserByID200, kf as GetPolicyParams, kr as QueryTeamsParams, lg as GetClaimStatusParams, ly as CreateReleaseBody, mT as BeginUserPasskeyRegistration201, ml as ListMyIdentityLinks200, mx as CreateFlowDefinition201, n as VerifyChallengeProofBody, nc as ListProjectAdminsParams, ng as GetClaimWindowParams, np as GetMySessionCsrfTokenParams, o_ as ExchangeHandoffParams, ol as ListMyPasskeys200, on as RollbackDeploymentBody, op as GetMySessionCsrfToken200, or as QueryUsersBody, ov as CreateUserBody, oy as CreateSchema201, pC as CreateBranding201, ps as ListUserPasskeysParams, qa as PublishPolicyParams, qg as FinishUserPasskeyRegistrationBody, qi as QueryIdpsBody, rT as BeginUserPasskeyRegistrationBody, rr as RemoveOriginBody, ry as CreateSchemaParams, sb as CreateIdp200, sd as GetVariableParams, sf as GetSchemaById200, su as ListEventsParams, sy as CreateReleaseParams, td as GetVariablesParams, tr as RemovePreviewBody, tw as BuildReleaseBody, ud as GetVariable200, uf as GetReleaseByIdParams, un as RollbackDeployment201, uo as PatchUserByID200, up as GetMySession200, us as ListUserTeams200, v as UpdateVariablesBody, vS as CreateDeploymentParams, vc as ListPreviews200, vp as GetMyPasswordStateParams, vv as CreateUser201, wc as ListPoliciesParams, wl as ListIdpRevisions200, xa as QueryGrantsBody, xb as CreateGrantParams, y as UpdateVariables200, yT as AddOrigin201, ya as QueryGrantsParams, yg as GetClaimStatus200, yo as PatchProjectBody, yu as ListDeploymentsParams, zb as CreateGrant201, zh as GetDeploymentVariablesParams, zn as RevokeReleaseParams, zs as ListUserIdentityLinks200, zu as IssueChallengeBody } from "./index-BX80Kl-8.mjs";
2
+ import { c as customFetch } from "./fetch-BzLvdm6C.mjs";
3
+ declare namespace zitadelNextGen_d_exports {
4
+ export { addOrigin, beginUserPasskeyRegistration, buildRelease, completeClaim, createAuthAttempt, createBranding, createDeployment, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, evaluatePolicy, exchangeHandoff, finishUserPasskeyRegistration, getAddOriginUrl, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getBuildReleaseUrl, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateDeploymentUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getDeploymentById, getDeploymentVariables, getEvaluatePolicyUrl, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetDeploymentByIdUrl, getGetDeploymentVariablesUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMyPasswordStateUrl, getGetMySessionCsrfTokenUrl, getGetMySessionUrl, getGetMyUserSchemaUrl, getGetMyUserUrl, getGetPolicyRevisionUrl, getGetPolicyUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetUserPasswordStateUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListDeploymentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyIdentityLinksUrl, getListMyPasskeysUrl, getListMyProjectsUrl, getListMyTeamsUrl, getListPoliciesUrl, getListPolicyRevisionsUrl, getListPreviewsUrl, getListProjectAdminsUrl, getListReleasesUrl, getListSchemasUrl, getListUserIdentityLinksUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMyPasswordState, getMySession, getMySessionCsrfToken, getMyUser, getMyUserSchema, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getPolicy, getPolicyRevision, getProject, getPublishPolicyUrl, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRemoveOriginUrl, getRemovePreviewUrl, getRevokeMySessionUrl, getRevokeReleaseUrl, getRevokeSessionUrl, getRollbackDeploymentUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getUserPasswordState, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listDeployments, listEvents, listFlowDefinitions, listIdpRevisions, listMyIdentityLinks, listMyPasskeys, listMyProjects, listMyTeams, listPolicies, listPolicyRevisions, listPreviews, listProjectAdmins, listReleases, listSchemas, listUserIdentityLinks, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, publishPolicy, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, removeOrigin, removePreview, revokeMySession, revokeRelease, revokeSession, rollbackDeployment, setUserPassword, submitFlowStep, updateTeam, updateVariables, verifyChallengeProof };
5
+ }
6
+ declare const getGetLiveUrl: () => string;
7
+ /**
8
+ * Answers `ok` while the server process serves HTTP, and checks nothing
9
+ * behind it.
10
+ *
11
+ * A liveness probe tells an orchestrator such as Kubernetes whether to
12
+ * restart the process. Point it at `/livez` at the root, where the probes
13
+ * stay, not under `/api/v1`. It never checks the database, so an outage of
14
+ * the database does not restart every instance. `GET /readyz` takes an
15
+ * instance out of rotation instead.
16
+ * @summary Check the server's liveness
17
+ */
18
+ declare const getLive: (options?: Parameters<typeof customFetch>[1]) => Promise<GetLiveDefault>;
19
+ declare const getGetReadyUrl: () => string;
20
+ /**
21
+ * Answers `ok` when the server can serve requests, which takes its database
22
+ * answering within a second, and `fail` with `503` otherwise.
23
+ *
24
+ * A readiness probe tells an orchestrator such as Kubernetes whether to send
25
+ * the instance requests. Point it at `/readyz` at the root, where the probes
26
+ * stay, not under `/api/v1`, so that a server whose database does not answer
27
+ * gets no requests until it does. The check is one round trip to the
28
+ * database.
29
+ * @summary Check the server's readiness
30
+ */
31
+ declare const getReady: (options?: Parameters<typeof customFetch>[1]) => Promise<GetReadyDefault>;
32
+ declare const getCreateUserUrl: (params: CreateUserParams) => string;
33
+ /**
34
+ * Creates a user whose attributes satisfy the user schema named in the request.
35
+ *
36
+ * The server assigns the user's ID and returns it. `schema` is the `id` of a
37
+ * schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
38
+ * `team_id`, the user also becomes an active member of that team. A value the
39
+ * schema marks unique that another user already holds is refused with `409`;
40
+ * send a different value.
41
+ * @summary Create a user
42
+ */
43
+ declare const createUser: (createUserBody: CreateUserBody, params: CreateUserParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateUser201>;
44
+ declare const getQueryUsersUrl: (params?: QueryUsersParams) => string;
45
+ /**
46
+ * Returns the users of a project, paginated with a cursor.
47
+ *
48
+ * `project_id` names the project to list; without it, the credential's own
49
+ * project is listed.
50
+ *
51
+ * Accepts either a project secret (`oauth2`) or a user-bound console
52
+ * session cookie (`sessionCookie`). Cookie-authenticated requests
53
+ * follow the scheme's CSRF rules (`sessionCookie`).
54
+ *
55
+ * With a project secret, embedding `teams` with `expand`, or filtering by
56
+ * `team_id`, also needs `team_membership.read`. Embedding
57
+ * `lifecycle_owner_team` needs `team.read`. A console session carries no
58
+ * scopes: it may do both when it may read the whole project, and gets
59
+ * `403 user.permission_denied` otherwise.
60
+ * @summary Query users
61
+ */
62
+ declare const queryUsers: (queryUsersBody: QueryUsersBody, params?: QueryUsersParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryUsers200>;
63
+ declare const getGetUserByIDUrl: (userId: string, params?: GetUserByIDParams) => string;
64
+ /**
65
+ * Returns a user by ID, with the attributes its schema defines.
66
+ *
67
+ * With `team_id`, the user is returned only while they are an active member
68
+ * of that team.
69
+ * @summary Get a user by ID
70
+ */
71
+ declare const getUserByID: (userId: string, params?: GetUserByIDParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserByID200>;
72
+ declare const getPatchUserByIDUrl: (userId: string) => string;
73
+ /**
74
+ * Partially updates a user's schema-defined attributes, and optionally
75
+ * moves the user to another registered schema. The merged result is
76
+ * validated against the schema before commit. Concurrent writes are
77
+ * last-write-wins.
78
+ *
79
+ * To move the user, send `schema` with the `id` of a registered schema, as
80
+ * `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
81
+ *
82
+ * To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
83
+ * the same permission and answers the same status and `details` as the real
84
+ * request, and it changes nothing and emits no `user.updated`. The request
85
+ * itself is still recorded as `request.api`, like any other API call. A `200`
86
+ * holds for the moment of the check: a unique value that is free then can be
87
+ * taken before the real request, which then answers `409`.
88
+ *
89
+ * `dry_run` is a body field so that a server from before it refuses the
90
+ * request as malformed (`400 req.invalid`) instead of applying the patch.
91
+ * @summary Update a user by ID
92
+ */
93
+ declare const patchUserByID: (userId: string, patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]) => Promise<PatchUserByID200>;
94
+ declare const getDeleteUserByIDUrl: (userId: string) => string;
95
+ /**
96
+ * Deletes a user, removes them from every team they belong to, and revokes
97
+ * every grant they hold, on any project.
98
+ *
99
+ * The user is removed, not deactivated, and the deletion emits `user.deleted`,
100
+ * plus `authz.revoked` for each grant on that grant's project.
101
+ * With a project secret the request is idempotent: deleting a user that exists
102
+ * in no project succeeds without changing anything. Deleting the last active
103
+ * member of a project's owning team returns 409 `proj.last_owner` and changes
104
+ * nothing.
105
+ * @summary Delete a user by ID
106
+ */
107
+ declare const deleteUserByID: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
108
+ declare const getListUserIdentityLinksUrl: (userId: string, params?: ListUserIdentityLinksParams) => string;
109
+ /**
110
+ * Lists the identity provider accounts a sign-in linked to the user, oldest
111
+ * first. The provider's subject and claims, the data it asserts about the
112
+ * account, are never returned.
113
+ * @summary List the provider accounts linked to a user
114
+ */
115
+ declare const listUserIdentityLinks: (userId: string, params?: ListUserIdentityLinksParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListUserIdentityLinks200>;
116
+ declare const getListUserPasskeysUrl: (userId: string, params?: ListUserPasskeysParams) => string;
117
+ /**
118
+ * Lists the passkeys registered for a user, newest first, paginated with a
119
+ * cursor. A passkey is a WebAuthn credential that signs a user in without a
120
+ * password.
121
+ *
122
+ * Each passkey carries its ID, its name and when it was registered, never the
123
+ * credential itself.
124
+ * @summary List a user's passkeys
125
+ */
126
+ declare const listUserPasskeys: (userId: string, params?: ListUserPasskeysParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListUserPasskeys200>;
127
+ declare const getBeginUserPasskeyRegistrationUrl: (userId: string) => string;
128
+ /**
129
+ * Starts a WebAuthn registration ceremony for the user and returns the
130
+ * creation options for `navigator.credentials.create()`. A passkey is
131
+ * registered in two steps: this one returns options for the browser, and
132
+ * `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
133
+ *
134
+ * Complete the ceremony with
135
+ * `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
136
+ * minutes, using the `registration_id` this response returns. Credentials
137
+ * already registered for the user are excluded automatically.
138
+ * @summary Begin a passkey registration
139
+ */
140
+ declare const beginUserPasskeyRegistration: (userId: string, beginUserPasskeyRegistrationBody: BeginUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]) => Promise<BeginUserPasskeyRegistration201>;
141
+ declare const getFinishUserPasskeyRegistrationUrl: (userId: string, registrationId: string) => string;
142
+ /**
143
+ * Verifies the attestation against the registration ceremony and stores
144
+ * the new passkey for the user. `registration_id` is the one that
145
+ * `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
146
+ * returned when it started the ceremony. The attestation is
147
+ * the browser's answer from `navigator.credentials.create()`.
148
+ *
149
+ * A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers
150
+ * `att.stale_challenge`: begin a new registration. An unknown or
151
+ * already-consumed registration ID answers `att.not_found`.
152
+ * @summary Finish a passkey registration
153
+ */
154
+ declare const finishUserPasskeyRegistration: (userId: string, registrationId: string, finishUserPasskeyRegistrationBody: FinishUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]) => Promise<FinishUserPasskeyRegistration201>;
155
+ declare const getGetUserPasswordStateUrl: (userId: string) => string;
156
+ /**
157
+ * Returns when the user's current password was set, and leaves `set_at` out
158
+ * when the user has none. The password and its hash are never returned;
159
+ * `setUserPassword` (`PUT` on the same path) sets one.
160
+ * @summary Get a user's password state
161
+ */
162
+ declare const getUserPasswordState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserPasswordState200>;
163
+ declare const getSetUserPasswordUrl: (userId: string) => string;
164
+ /**
165
+ * Sets a user's password, hashed with the project's current password hashing
166
+ * policy.
167
+ *
168
+ * The new password replaces the current one, and setting it emits
169
+ * `auth.factor.password.set`. A password the project's password policy
170
+ * refuses answers `user.password_policy_violation`; send one that meets the
171
+ * policy.
172
+ *
173
+ * The password policy is the one in the release that serves the caller's
174
+ * `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a
175
+ * preview URL gets that preview's policy, and one on a primary origin the
176
+ * newest primary deployment's. A request with no `Origin`, or from the
177
+ * console when the project does not list the console's origin, gets the
178
+ * project's newest primary deployment.
179
+ *
180
+ * If the request is refused:
181
+ * - `403 proj.origin_not_allowed`: the project admits no such origin. Add it
182
+ * with `zitadel origin add`.
183
+ * - `403 proj.preview_not_live`: the origin matches a preview pattern but has
184
+ * no live preview. Run `zitadel preview` on the branch.
185
+ * - `409 rel.not_deployed`: nothing is deployed to the origin. Run
186
+ * `zitadel deploy`.
187
+ * - `409 rel.no_default`: the request names no origin and the project has no
188
+ * primary deployment. Run `zitadel deploy`.
189
+ * - `409 rel.revoked`: the release that serves the origin is revoked.
190
+ * @summary Set a user's password
191
+ */
192
+ declare const setUserPassword: (userId: string, setUserPasswordBody: SetUserPasswordBody, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
193
+ declare const getListUserTeamsUrl: (userId: string, params?: ListUserTeamsParams) => string;
194
+ /**
195
+ * Lists the teams a user belongs to, ordered by team name. Each entry carries
196
+ * the team's name, so a client renders a page without resolving IDs one by
197
+ * one.
198
+ *
199
+ * This is the user's team memberships, not lifecycle ownership: the single
200
+ * team that owns the user's lifecycle is reported as
201
+ * `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships
202
+ * the user was removed from are not returned.
203
+ * @summary List the teams a user belongs to
204
+ */
205
+ declare const listUserTeams: (userId: string, params?: ListUserTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListUserTeams200>;
206
+ declare const getGetMyUserUrl: (params?: GetMyUserParams) => string;
207
+ /**
208
+ * Returns the user signed in to the session that authenticates the request.
209
+ *
210
+ * The project and the user both come from the session cookie, so a caller only
211
+ * ever reads their own user.
212
+ *
213
+ * With `project_id`, the user is returned only when the session belongs to
214
+ * that project.
215
+ * @summary Get my user information
216
+ */
217
+ declare const getMyUser: (params?: GetMyUserParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetMyUser200>;
218
+ declare const getPatchMyUserUrl: (params?: PatchMyUserParams) => string;
219
+ /**
220
+ * Partially updates the caller's own schema-defined attributes. The merged
221
+ * result is validated against the user's schema before commit. Concurrent
222
+ * writes are last-write-wins.
223
+ *
224
+ * With `project_id`, the user is updated only when the session belongs to
225
+ * that project.
226
+ * @summary Update my user information
227
+ */
228
+ declare const patchMyUser: (patchMyUserBody: PatchMyUserBody, params?: PatchMyUserParams, options?: Parameters<typeof customFetch>[1]) => Promise<PatchMyUser200>;
229
+ declare const getListMyIdentityLinksUrl: (params?: ListMyIdentityLinksParams) => string;
230
+ /**
231
+ * Lists the identity provider accounts a sign-in linked to the signed-in user,
232
+ * oldest first. The provider's subject and claims, the data it asserts about
233
+ * the account, are never returned.
234
+ *
235
+ * With `project_id`, the links are listed only when the session belongs to
236
+ * that project.
237
+ * @summary List the provider accounts linked to me
238
+ */
239
+ declare const listMyIdentityLinks: (params?: ListMyIdentityLinksParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListMyIdentityLinks200>;
240
+ declare const getListMyPasskeysUrl: (params?: ListMyPasskeysParams) => string;
241
+ /**
242
+ * Lists the signed-in user's own passkeys, newest first, paginated with a
243
+ * cursor. A passkey is a WebAuthn credential that signs a user in without a
244
+ * password. Each passkey carries its ID, its name and when it was registered,
245
+ * never the credential itself.
246
+ *
247
+ * With `project_id`, the passkeys are listed only when the session belongs to
248
+ * that project.
249
+ * @summary List my passkeys
250
+ */
251
+ declare const listMyPasskeys: (params?: ListMyPasskeysParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListMyPasskeys200>;
252
+ declare const getGetMyPasswordStateUrl: (params?: GetMyPasswordStateParams) => string;
253
+ /**
254
+ * Returns when the signed-in user's current password was set, and leaves
255
+ * `set_at` out when they have none. The password and its hash are never
256
+ * returned.
257
+ *
258
+ * With `project_id`, the state is read only when the session belongs to that
259
+ * project.
260
+ * @summary Get my password state
261
+ */
262
+ declare const getMyPasswordState: (params?: GetMyPasswordStateParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetMyPasswordState200>;
263
+ declare const getListMyProjectsUrl: (params?: ListMyProjectsParams) => string;
264
+ /**
265
+ * Lists the projects the signed-in user can act on: those they hold an active
266
+ * grant on, either directly or through a team they are a member of. For a
267
+ * platform operator, someone who runs the deployment, that is every project of
268
+ * the deployment. Ordered by project ID and paged with an opaque cursor.
269
+ *
270
+ * This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one
271
+ * project the calling credential is bound to. Here the session is the caller
272
+ * and the grants are the answer, so the list spans projects.
273
+ *
274
+ * With `name_contains`, only the projects whose name contains that text are
275
+ * listed. The search runs on the server together with the grants, so it
276
+ * reaches every project the user can act on, however many there are, and
277
+ * pages like the full list.
278
+ *
279
+ * With `project_id`, the projects are listed only when the session belongs to
280
+ * that project. It names the project the session was signed in to, not one to
281
+ * list.
282
+ * @summary List the projects I can act on
283
+ */
284
+ declare const listMyProjects: (params?: ListMyProjectsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListMyProjects200>;
285
+ declare const getGetMyUserSchemaUrl: (params?: GetMyUserSchemaParams) => string;
286
+ /**
287
+ * Returns the schema that validates the signed-in user's own record.
288
+ *
289
+ * With `project_id`, the schema is returned only when the session belongs to
290
+ * that project.
291
+ * @summary Get my user schema
292
+ */
293
+ declare const getMyUserSchema: (params?: GetMyUserSchemaParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetMyUserSchema200>;
294
+ declare const getListMyTeamsUrl: (params?: ListMyTeamsParams) => string;
295
+ /**
296
+ * Lists the teams the signed-in user belongs to, ordered by team name.
297
+ *
298
+ * With `project_id`, the teams are listed only when the session belongs to
299
+ * that project.
300
+ * @summary List the teams I belong to
301
+ */
302
+ declare const listMyTeams: (params?: ListMyTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListMyTeams200>;
303
+ declare const getCreateFlowUrl: () => string;
304
+ /**
305
+ * Starts a flow: resolves a flow definition from the request's purpose and
306
+ * audience, and returns the first step.
307
+ *
308
+ * The flow endpoints are the runtime calls the login component
309
+ * (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
310
+ * step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to
311
+ * get the next step. This call creates a new session implicitly, unless
312
+ * `session_id` is provided together with that session's `session_token`
313
+ * (for step-up or reauthentication on an existing session).
314
+ *
315
+ * The browser `Origin` header selects which deployment serves this attempt.
316
+ * The server checks the origin against the project's origin patterns and live
317
+ * previews, and the deployment that origin serves is the target: the
318
+ * project's newest primary deployment when it names a primary origin, or the
319
+ * newest live deployment to a preview URL. A
320
+ * deployment is a release, the immutable bundle of the project's
321
+ * configuration, made live at an origin. The deployment's release supplies
322
+ * flow definitions, user schemas and branding. The resolved deployment is
323
+ * sealed into the `_zflow` cookie so later steps keep the same
324
+ * configuration.
325
+ *
326
+ * - An origin that matches no pattern answers `403` with
327
+ * `proj.origin_not_allowed`, including when the project lists no origins.
328
+ * Add the origin with `zitadel origin add`.
329
+ * - An origin that matches a preview pattern with no live preview answers
330
+ * `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.
331
+ * - Nothing deployed to a listed origin or a live preview answers `409`
332
+ * with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added
333
+ * since the last deploy serves nothing until the next one.
334
+ * - A loopback origin the project does not list answers `409` with
335
+ * `rel.not_deployed` too, as no deployment can name it. Add it with
336
+ * `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.
337
+ * - A revoked release answers `409` with `rel.revoked`.
338
+ *
339
+ * A request with no `Origin` passes the check, and so does the server's own
340
+ * origin, from which its console previews a project's login. Both are served
341
+ * the project's newest primary deployment unless the project lists that
342
+ * origin; with no primary deployment they answer `409` with
343
+ * `rel.no_default`. A loopback origin passes the check and is its own
344
+ * target. A step submitted from the server's own origin is still refused
345
+ * unless the project lists it.
346
+ *
347
+ * The response contains an `id` field, the flow handle. Use it as the path
348
+ * parameter for all subsequent `/flow/{id}/submit` calls.
349
+ *
350
+ * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
351
+ * the flow's orchestration state (current step, collected data, history).
352
+ * The server is stateless between requests: all flow state lives in this
353
+ * cookie. The browser sends it automatically on subsequent requests.
354
+ * @summary Start a flow
355
+ */
356
+ declare const createFlow: (createFlowBody: CreateFlowBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateFlow201>;
357
+ declare const getGetFlowStepUrl: (id: string) => string;
358
+ /**
359
+ * Returns the current step of a flow without advancing it. Use it to render
360
+ * the step again after a page reload or a network error.
361
+ *
362
+ * The flow endpoints are the runtime calls the login component
363
+ * (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and
364
+ * `submitFlowStep` (`POST /flow/{id}/submit`) advances it.
365
+ *
366
+ * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
367
+ * re-resolve from `Origin`. If that release was revoked since the attempt
368
+ * started, the response is `409` with `rel.revoked`.
369
+ * @summary Get the current step of a flow
370
+ */
371
+ declare const getFlowStep: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetFlowStep200>;
372
+ declare const getSubmitFlowStepUrl: (id: string) => string;
373
+ /**
374
+ * Submits the user's input for the current step of a flow. The server
375
+ * validates it, processes it (for example, verifies a credential), advances
376
+ * the flow through any invisible steps, and returns the next visible step.
377
+ * The flow endpoints are the runtime calls the login component
378
+ * (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.
379
+ *
380
+ * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
381
+ * with the new flow state. The server is stateless: all orchestration
382
+ * state is carried in this cookie between requests.
383
+ *
384
+ * **Important:** The `id` in the response may differ from the `id` used in
385
+ * the request. This happens when a flow pivots (pushes a new flow onto the
386
+ * stack) or when a stacked flow completes (auto-pops to the parent flow).
387
+ * Always use the `id` from the latest response for the next request.
388
+ *
389
+ * ## Flow completion
390
+ *
391
+ * When `step.type` is `complete`, the flow is terminal. The `step.behavior`
392
+ * field tells the frontend what to do:
393
+ *
394
+ * | `behavior` | Action |
395
+ * |------------- |------------------------------------------------------------|
396
+ * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
397
+ * | `show` | Render the step as a success screen, such as registration. |
398
+ *
399
+ * A `complete` step is only returned when the **entire flow stack** is done.
400
+ * If a stacked flow (for example, recovery pivoted from login) finishes, the
401
+ * server auto-pops to the parent flow and returns the parent's next step.
402
+ * The frontend never sees a `complete` for intermediate flows.
403
+ *
404
+ * ## External sign-in
405
+ *
406
+ * `{action: "sso", sso_provider_id, return_target}` on a step that offers
407
+ * `sso_providers` returns the server-emitted `sso-redirect` step, whose
408
+ * `redirect_url` the frontend navigates to.
409
+ *
410
+ * - The flow state does not change, but `_zflow` is re-sealed like on
411
+ * every response, so its ten-minute window restarts at this submission;
412
+ * the external sign-in and the return must complete within it.
413
+ * - A second `Set-Cookie` line carries the browser-binding cookie the
414
+ * callback checks: `HttpOnly`, `Path=/`, `SameSite=Lax`.
415
+ * - On every host except http loopback it is `__Host-_zsso` with `Secure`.
416
+ * - When the request host is http loopback (local development, where
417
+ * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
418
+ * `__Host-` prefix is dropped because it requires `Secure`.
419
+ *
420
+ * An identity provider (an external sign-in such as Google) whose
421
+ * `client_id` is a `${{ NAME }}` reference has it filled from the project's
422
+ * variables. A provider the server cannot start a sign-in with, including a
423
+ * reference with no variable behind it, re-renders the step with
424
+ * `error.sso_unavailable`.
425
+ *
426
+ * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
427
+ * re-resolve from `Origin`. If that release was revoked since the attempt
428
+ * started, the response is `409` with `rel.revoked`.
429
+ * @summary Submit a flow step
430
+ */
431
+ declare const submitFlowStep: (id: string, submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]) => Promise<SubmitFlowStep200>;
432
+ declare const getCreateAuthAttemptUrl: () => string;
433
+ /**
434
+ * Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.
435
+ *
436
+ * An authentication attempt collects the proofs for one sign-in and ends in a
437
+ * handoff token. A handoff token is the short-lived, single-use credential that
438
+ * a completed attempt hands to the session exchange. A client makes these calls
439
+ * in order:
440
+ *
441
+ * 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
442
+ * 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
443
+ * `identifier`, `password` or `passkey`.
444
+ * 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
445
+ * credential, code or assertion. Repeat steps 2 and 3 until
446
+ * `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
447
+ * `required_factors` is verified.
448
+ * 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
449
+ * 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
450
+ * for the session and its `session_token`.
451
+ *
452
+ * The body takes a `project_id` and a `challenge_nonce` (from
453
+ * `POST /bootstrap/challenge`). For step-up authentication, which adds factors
454
+ * to an existing session, also send that session's `session_id` and its
455
+ * `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.
456
+ * The attempt's `attempt_id` in the response is the ID every later call takes.
457
+ *
458
+ * The project comes from the project secret. A body `project_id` that names
459
+ * another project answers `403` with `proj.mismatch`: send the credential's own
460
+ * project. The attempt seals the project's newest primary deployment, whatever
461
+ * the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a
462
+ * revoked release answers `409` with `rel.revoked`.
463
+ * @summary Create an authentication attempt
464
+ */
465
+ declare const createAuthAttempt: (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateAuthAttempt201>;
466
+ declare const getGetAuthAttemptUrl: (attemptId: string) => string;
467
+ /**
468
+ * Returns the current state of an authentication attempt, one sign-in round.
469
+ *
470
+ * The response holds the attempt's state, available factors for the next
471
+ * challenge, challenges issued so far, and any errors preventing progress.
472
+ *
473
+ * Use it to poll during long-running factor verifications, for example waiting
474
+ * for a federated identity provider (IdP) callback or a device flow.
475
+ * @summary Get an authentication attempt by ID
476
+ */
477
+ declare const getAuthAttempt: (attemptId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAuthAttempt200>;
478
+ declare const getIssueChallengeUrl: (attemptId: string) => string;
479
+ /**
480
+ * Issues a challenge, a request to prove one factor, within an authentication attempt.
481
+ *
482
+ * A challenge names one factor method, such as password, passkey, TOTP or OTP
483
+ * via SMS. The response carries the challenge's `challenge_id`, method,
484
+ * metadata and any UI hints. The client then submits the proof with
485
+ * `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
486
+ * @summary Issue a factor challenge
487
+ */
488
+ declare const issueChallenge: (attemptId: string, issueChallengeBody: IssueChallengeBody, options?: Parameters<typeof customFetch>[1]) => Promise<IssueChallenge201>;
489
+ declare const getVerifyChallengeProofUrl: (attemptId: string, challengeId: string) => string;
490
+ /**
491
+ * Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.
492
+ *
493
+ * The proof format depends on the challenge method. For example:
494
+ *
495
+ * - `password` method: { password: "…" }
496
+ * - `totp` method: { totp: { code: "123456" } }
497
+ * - `passkey` method: { passkey: { assertion: "…" } }
498
+ * - `recovery_code` method: { recovery_code: "…" }
499
+ *
500
+ * On success, the factor is recorded on the authentication attempt. The
501
+ * attempt moves to the next pending challenge, or completes when every required
502
+ * factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
503
+ *
504
+ * A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
505
+ * again. There is no retry limit: you can retry until the attempt expires.
506
+ * @summary Verify a challenge proof
507
+ */
508
+ declare const verifyChallengeProof: (attemptId: string, challengeId: string, verifyChallengeProofBody: VerifyChallengeProofBody, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyChallengeProof200>;
509
+ declare const getCreateHandoffUrl: (attemptId: string) => string;
510
+ /**
511
+ * Completes an authentication attempt and mints a `handoff_token`.
512
+ *
513
+ * A handoff token is the short-lived credential that a completed attempt hands
514
+ * to the session exchange. Call this after every required factor is verified and
515
+ * the attempt is in `completed` state. Otherwise it answers `409` with
516
+ * `att.not_completed`: verify the remaining factors, then call again.
517
+ *
518
+ * Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60
519
+ * seconds to receive the session and its `session_token`. The handoff token is:
520
+ *
521
+ * - Single-use: exchange it once, with no retry.
522
+ * - Bound to the project: the exchange needs the same project's credential.
523
+ * - Created once: a second call answers `409 att.already_handed_off`, even
524
+ * with the same idempotency key.
525
+ *
526
+ * A revoked release is refused when the handoff is exchanged, not here. A
527
+ * release is the configuration that `zitadel deploy` publishes.
528
+ * @summary Complete an authentication attempt and create a handoff token
529
+ */
530
+ declare const createHandoff: (attemptId: string, options?: Parameters<typeof customFetch>[1]) => Promise<CreateHandoff200>;
531
+ declare const getCreateProjectUrl: () => string;
532
+ /**
533
+ * Creates a project and returns its project secret and preview secret, which no
534
+ * other endpoint returns.
535
+ *
536
+ * A project is the top-level boundary that holds users, sessions and
537
+ * configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).
538
+ *
539
+ * The request needs no credential and is rate-limited. On `429`, wait and retry.
540
+ * Unless `seed_defaults` is `false`, the project starts with a default user schema
541
+ * and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.
542
+ * @summary Create a project
543
+ */
544
+ declare const createProject: (createProjectBody: CreateProjectBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateProject201>;
545
+ declare const getQueryProjectsUrl: () => string;
546
+ /**
547
+ * Returns the project the project secret belongs to, as a page of at most one
548
+ * project.
549
+ *
550
+ * A credential is scoped to one project today, so the filters and sorting
551
+ * apply to that project alone. A signed-in person lists the projects they can
552
+ * act on with `GET /users/me/projects`.
553
+ * @summary Query projects
554
+ */
555
+ declare const queryProjects: (queryProjectsBody: QueryProjectsBody, options?: Parameters<typeof customFetch>[1]) => Promise<QueryProjects200>;
556
+ declare const getGetProjectUrl: (projectId: string) => string;
557
+ /**
558
+ * Returns a project's current state: its name, origins, password hashing
559
+ * method and owning team.
560
+ *
561
+ * Authenticate with the project secret, or with the session of a signed-in
562
+ * person who holds a grant on the project.
563
+ * @summary Get a project by ID
564
+ */
565
+ declare const getProject: (projectId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetProject200>;
566
+ declare const getPatchProjectUrl: (projectId: string) => string;
567
+ /**
568
+ * Updates a project's name or password hashing method.
569
+ *
570
+ * Fields you leave out keep their value. Sending `password_hash: null` drops
571
+ * the project's own method and returns to the server default. A change of
572
+ * method rewrites no stored password: each moves to the new method when its
573
+ * owner next signs in or sets a new password.
574
+ *
575
+ * Authenticate with the project secret, or with the session of a signed-in
576
+ * person who can act on the project.
577
+ * @summary Update a project
578
+ */
579
+ declare const patchProject: (projectId: string, patchProjectBody: PatchProjectBody, options?: Parameters<typeof customFetch>[1]) => Promise<PatchProject200>;
580
+ declare const getListProjectAdminsUrl: (projectId: string, params?: ListProjectAdminsParams) => string;
581
+ /**
582
+ * Lists the people who can administer a project, and how each of them
583
+ * holds that access.
584
+ *
585
+ * A person appears once, with one entry in `sources` per way they hold it:
586
+ *
587
+ * - `owning_team`: an active member of the team that owns the project, the
588
+ * team a claim attaches the project to. Removing a grant does not remove
589
+ * this access. It ends only when the person leaves the team or the
590
+ * project changes owner.
591
+ * - `grant`: an unexpired `admin` grant on the project, which is a role
592
+ * given to the person (`grant_id` only) or to a team they are an active
593
+ * member of (`grant_id` and `team`). Revoking that grant removes this
594
+ * source.
595
+ *
596
+ * The list follows the authorization check. A person who left a team, or
597
+ * whose team or user was deactivated, is not listed through it. Grants that
598
+ * expired or carry a lower role are left out. A person whose only access is a
599
+ * `viewer` or `editor` grant is not an admin and is not listed. Like the
600
+ * check, the list does not look at a person's user status beyond that, so a
601
+ * direct grant to a suspended person is listed.
602
+ *
603
+ * A person whose access comes only through teams the caller is not a
604
+ * member of is left out. A team the caller is not in is named by `team_id`
605
+ * only. The grant to such a team still shows in the project's grants.
606
+ *
607
+ * The list is ordered by `user_id` and paginated with `page_token`.
608
+ * Authenticate with a project secret (`oauth2`), or with the session cookie
609
+ * (`sessionCookie`) of a signed-in person who can read the project.
610
+ * @summary List the admins of a project
611
+ */
612
+ declare const listProjectAdmins: (projectId: string, params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListProjectAdmins200>;
613
+ declare const getInitClaimUrl: (projectId: string) => string;
614
+ /**
615
+ * Starts a claim, which attaches a project created before sign-in to a
616
+ * team, and returns the `claim_url` to open in a browser.
617
+ *
618
+ * A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)
619
+ * so that the team's members administer it. This operation mints a
620
+ * single-use, short-lived challenge for an unclaimed project. The developer
621
+ * opens `claim_url`, signs in and completes the claim in the browser; see
622
+ * `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
623
+ * as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
624
+ *
625
+ * Authenticate with the project secret that `createProject` (`POST /projects`) returns as
626
+ * `project_secret`.
627
+ *
628
+ * A `409` means a team already claimed the project, and its details name
629
+ * that team. A `410` means the project's 14-day claim window has closed,
630
+ * which is final.
631
+ * @summary Initialize a project claim
632
+ */
633
+ declare const initClaim: (projectId: string, options?: Parameters<typeof customFetch>[1]) => Promise<InitClaim201>;
634
+ declare const getGetClaimStatusUrl: (projectId: string, params: GetClaimStatusParams) => string;
635
+ /**
636
+ * Returns the status of a claim challenge, `pending` or `completed`, while a
637
+ * browser completes the claim.
638
+ *
639
+ * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
640
+ * `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
641
+ * Once the project is claimed, the response is `completed` with the owning
642
+ * team, the claim timestamp and the dashboard URL.
643
+ *
644
+ * The claim itself, not the polled challenge, decides the status. A project
645
+ * claimed through another concurrent challenge also reports `completed`. A
646
+ * completed claim keeps reporting `completed` past this challenge's expiry
647
+ * and past the project's claim window.
648
+ *
649
+ * Pass the `challenge_id` that `initClaim` returns. Authenticate with the
650
+ * project secret that started the challenge. On `410` with `proj.claim_expired`, call
651
+ * `initClaim` again for a fresh challenge.
652
+ * @summary Get the status of a project claim
653
+ */
654
+ declare const getClaimStatus: (projectId: string, params: GetClaimStatusParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetClaimStatus200>;
655
+ declare const getCompleteClaimUrl: (projectId: string) => string;
656
+ /**
657
+ * Completes a claim by attaching the project to the signed-in developer's
658
+ * personal team.
659
+ *
660
+ * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
661
+ * so that the team's members administer it. The claim page in the browser
662
+ * calls this operation after the developer signs in, with the session cookie.
663
+ * The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the
664
+ * request's single-use, browser-safe authorization.
665
+ *
666
+ * Claims are first-claim-wins and spend the challenge. If a team already
667
+ * claimed the project, the request answers `409`. If the challenge lapsed
668
+ * (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.
669
+ * @summary Complete a project claim
670
+ */
671
+ declare const completeClaim: (projectId: string, completeClaimBody: CompleteClaimBody, options?: Parameters<typeof customFetch>[1]) => Promise<CompleteClaim200>;
672
+ declare const getGetClaimWindowUrl: (projectId: string, params: GetClaimWindowParams) => string;
673
+ /**
674
+ * Returns when a project's claim window closes and whether it has already
675
+ * closed.
676
+ *
677
+ * The claim window is the 14 days after a project is created during which a
678
+ * team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page
679
+ * in the browser calls this operation to show how long is left.
680
+ *
681
+ * The request needs no credential, because the claim page calls it before the
682
+ * developer has signed in. Holding the `challenge_id` from the claim URL that
683
+ * `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)
684
+ * accepts. The response reveals only the window, never the project itself.
685
+ * Unlike `completeClaim` it spends nothing, so reloading the page is safe.
686
+ * @summary Get the claim window for a project
687
+ */
688
+ declare const getClaimWindow: (projectId: string, params: GetClaimWindowParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetClaimWindow200>;
689
+ declare const getAddOriginUrl: (projectId: string) => string;
690
+ /**
691
+ * Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.
692
+ *
693
+ * An origin pattern says which web origins the project accepts. A `primary`
694
+ * pattern must be an exact URL with no wildcard. A `preview` pattern may
695
+ * include a single DNS-label wildcard.
696
+ *
697
+ * While the project has no patterns, it admits no origin except a loopback
698
+ * origin, so the first pattern you add opens it to the origins that
699
+ * pattern matches. Admitting an origin is not serving it: a new `primary`
700
+ * origin answers `rel.not_deployed` until the next deploy to primary
701
+ * (`zitadel deploy`).
702
+ *
703
+ * Adding a pattern that already exists with the same kind is idempotent and
704
+ * answers `201` with the stored origin. If the pattern exists with the other
705
+ * kind, the request is refused with `origin.kind_conflict`: remove it with
706
+ * `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
707
+ * @summary Add an origin pattern
708
+ */
709
+ declare const addOrigin: (projectId: string, addOriginBody: AddOriginBody, options?: Parameters<typeof customFetch>[1]) => Promise<AddOrigin201>;
710
+ declare const getRemoveOriginUrl: (projectId: string) => string;
711
+ /**
712
+ * Removes one origin pattern from the project's origins.
713
+ *
714
+ * Requests from URLs only that pattern admitted are refused from then on.
715
+ * Live previews and deployment history are untouched. Removing the last
716
+ * pattern leaves an empty list, which admits no origin except a loopback
717
+ * origin.
718
+ * Removing a pattern that is already absent is idempotent and answers `204`.
719
+ *
720
+ * The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.
721
+ * @summary Remove an origin pattern
722
+ */
723
+ declare const removeOrigin: (projectId: string, removeOriginBody: RemoveOriginBody, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
724
+ declare const getListPreviewsUrl: (projectId: string, params?: ListPreviewsParams) => string;
725
+ /**
726
+ * Lists the project's live previews, newest first by `created_at`.
727
+ *
728
+ * A preview is a URL with a deployment on it, served until it expires.
729
+ * An expired or removed preview is not listed. What was deployed to it stays
730
+ * in `GET /deployments`.
731
+ * @summary List a project's previews
732
+ */
733
+ declare const listPreviews: (projectId: string, params?: ListPreviewsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListPreviews200>;
734
+ declare const getRemovePreviewUrl: (projectId: string) => string;
735
+ /**
736
+ * Ends a preview before it expires: the URL stops being served at once.
737
+ *
738
+ * The deployments to it stay in the history. The call is idempotent.
739
+ * A URL with no live preview answers `204` too. That includes one that
740
+ * expired or was removed before, so a cleanup that races the expiry still
741
+ * succeeds.
742
+ *
743
+ * The URL travels in the body rather than the path because an origin
744
+ * contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
745
+ * @summary Remove a preview
746
+ */
747
+ declare const removePreview: (projectId: string, removePreviewBody: RemovePreviewBody, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
748
+ declare const getCreateSessionUrl: () => string;
749
+ /**
750
+ * Creates an anonymous session with no user and no factors (`state: building`).
751
+ *
752
+ * A session is the durable record of a signed-in user. This call is optional: an
753
+ * authentication attempt creates a session implicitly if none is provided.
754
+ * Create one explicitly when you want to:
755
+ *
756
+ * - Pre-allocate a `session_id` before the user is known, so device and telemetry signals
757
+ * can be correlated with the eventual authenticated session from the start.
758
+ * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
759
+ *
760
+ * Creating a session runs on the project credential (`session.write`). The returned
761
+ * `session_token` is a session credential for the end-user client, not a
762
+ * management scope. It is delivered as the `__Host-zitadel_session` cookie
763
+ * (`zitadel_session` over plain http to a loopback host) and authorises the
764
+ * self-service operations `GET /sessions/me` and `DELETE /sessions/me`
765
+ * (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`
766
+ * and `DELETE /sessions/{session_id}` are operator endpoints and require
767
+ * `session.read` / `session.delete` instead.
768
+ *
769
+ * The `session_token` is superseded when a handoff exchange completes. Clients
770
+ * must replace it at that point.
771
+ *
772
+ * Anonymous sessions expire after 10 minutes. The lifetime resets to the
773
+ * configured full session lifetime when a completing authentication attempt
774
+ * writes the first authentication factor.
775
+ * @summary Create an anonymous session
776
+ */
777
+ declare const createSession: (createSessionBody: CreateSessionBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateSession201>;
778
+ declare const getQuerySessionsUrl: (params: QuerySessionsParams) => string;
779
+ /**
780
+ * Returns a page of a project's sessions.
781
+ *
782
+ * Sessions of every lifecycle state are returned; each carries its `state`.
783
+ * Requires the `session.read` scope.
784
+ * @summary Query sessions
785
+ */
786
+ declare const querySessions: (querySessionsBody: QuerySessionsBody, params: QuerySessionsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QuerySessions200>;
787
+ declare const getExchangeHandoffUrl: (params: ExchangeHandoffParams) => string;
788
+ /**
789
+ * Exchanges a handoff token for a session and a `session_token`.
790
+ *
791
+ * A handoff token is the short-lived, single-use credential that
792
+ * `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
793
+ * complete. This call consumes it. It is the last step of the sign-in sequence:
794
+ * create the attempt, issue a challenge, verify the proof, create the handoff,
795
+ * exchange it.
796
+ *
797
+ * The server resolves the originating authentication attempt from the token and then:
798
+ *
799
+ * | Originating authentication attempt | Outcome |
800
+ * |---|---|
801
+ * | No `session_id` | A new authenticated session is **created**. |
802
+ * | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |
803
+ * | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |
804
+ *
805
+ * The response shape is identical in all three cases.
806
+ *
807
+ * The `session_token` supersedes any previously issued `session_token` for the
808
+ * same session. Clients must replace their stored token at this point.
809
+ *
810
+ * Requires a project service key (OAuth2 client credentials). The project comes
811
+ * from the project secret. A query `project_id` that disagrees answers `403`
812
+ * with `proj.mismatch`.
813
+ *
814
+ * The exchange resolves a deployment the same way as other runtime operations.
815
+ * A deployment makes a release live, and a release is the configuration that
816
+ * `zitadel deploy` publishes. With no browser `Origin` and
817
+ * nothing deployed to the resolved target, the response is `409` with
818
+ * `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release
819
+ * answers `409` with `rel.revoked`.
820
+ * @summary Exchange a handoff token for a session
821
+ */
822
+ declare const exchangeHandoff: (exchangeHandoffBody: ExchangeHandoffBody, params: ExchangeHandoffParams, options?: Parameters<typeof customFetch>[1]) => Promise<ExchangeHandoff200>;
823
+ declare const getGetSessionUrl: (sessionId: string) => string;
824
+ /**
825
+ * Returns the current state of a session, including its factors and all currently satisfied assurance levels.
826
+ *
827
+ * An assurance level is a profile, such as `urn:nist:aal:2`, that the
828
+ * session's verified factors satisfy. `assurance_levels[]` may shrink over time
829
+ * as factor freshness windows expire, without the session itself expiring.
830
+ * To restore a dropped level, use step-up authentication: create an
831
+ * authentication attempt with the same `session_id`.
832
+ * @summary Get a session by ID
833
+ */
834
+ declare const getSession: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetSession200>;
835
+ declare const getRevokeSessionUrl: (sessionId: string) => string;
836
+ /**
837
+ * Revokes a session by deleting it, immediately and for good. A later
838
+ * `getSession` (`GET /sessions/{session_id}`) for it answers `404`.
839
+ *
840
+ * This is the operator revoke path. It requires the `session.delete` scope on a
841
+ * project-bound credential. End-user sign-out with the session cookie is
842
+ * `DELETE /sessions/me` (`sessionCookie` scheme).
843
+ *
844
+ * Idempotent: revoking a session that does not exist, or was already revoked,
845
+ * still returns `204`. After revocation, any tokens derived from the session are
846
+ * invalidated.
847
+ * @summary Revoke a session
848
+ */
849
+ declare const revokeSession: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
850
+ declare const getGetMySessionUrl: (params?: GetMySessionParams) => string;
851
+ /**
852
+ * Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
853
+ *
854
+ * With `project_id`, the session is returned only when it belongs to that project.
855
+ *
856
+ * An assurance level is a profile, such as `urn:nist:aal:2`, that the
857
+ * session's verified factors satisfy. `assurance_levels[]` may shrink over time
858
+ * as factor freshness windows expire, without the session itself expiring.
859
+ * To restore a dropped level, use step-up authentication: create an
860
+ * authentication attempt with the same `session_id`.
861
+ * @summary Get my session
862
+ */
863
+ declare const getMySession: (params?: GetMySessionParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetMySession200>;
864
+ declare const getRevokeMySessionUrl: (params?: RevokeMySessionParams) => string;
865
+ /**
866
+ * Revokes the caller's own session by deleting it, which signs the user out.
867
+ *
868
+ * The request needs the session cookie issued at creation (or superseded by a
869
+ * handoff exchange). It also needs the session's CSRF token from
870
+ * `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,
871
+ * this still returns `204`. Any tokens derived from the session are
872
+ * invalidated, and the response clears the cookie.
873
+ *
874
+ * With `project_id`, only a session of that project is revoked. A session of
875
+ * another project is left alone, and so is its cookie.
876
+ * @summary Revoke my session
877
+ */
878
+ declare const revokeMySession: (params?: RevokeMySessionParams, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
879
+ declare const getGetMySessionCsrfTokenUrl: (params?: GetMySessionCsrfTokenParams) => string;
880
+ /**
881
+ * Returns the session-bound token that protects against cross-site request
882
+ * forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the
883
+ * state-changing requests that the session cookie authenticates and that
884
+ * require it; see the `sessionCookie` scheme. It authorizes nothing on its
885
+ * own: the HttpOnly cookie is still the credential, and a cross-site page
886
+ * cannot read this response. It stays the same for the life of the session,
887
+ * so a client fetches it once per session.
888
+ *
889
+ * With `project_id`, the token is returned only when the session belongs to
890
+ * that project.
891
+ * @summary Get my session's CSRF token
892
+ */
893
+ declare const getMySessionCsrfToken: (params?: GetMySessionCsrfTokenParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetMySessionCsrfToken200>;
894
+ declare const getCreateSchemaUrl: (params: CreateSchemaParams) => string;
895
+ /**
896
+ * Creates a user schema, the JSON Schema that says which attributes a user
897
+ * has and which attribute identifies the user.
898
+ *
899
+ * The request is either a user schema (`kind: user-schema`) or a schema URL
900
+ * (`kind: schema-url`) that the server resolves. The response's `id` is what
901
+ * `createUser` (`POST /users`) takes as `schema`.
902
+ *
903
+ * The optional `$id` is the JSON Schema document URI that identifies the
904
+ * schema in later requests. It is a stable identity for GitOps, not a
905
+ * free-form resource key. When `$id` is omitted, the server generates a
906
+ * `sch_*` URL. When provided, `$id` must be unique within the project and
907
+ * should ideally be a valid URI pointing at where the schema can be accessed.
908
+ * A `$id` that already exists in the project is refused; pick another or
909
+ * omit it.
910
+ * @summary Create a schema
911
+ */
912
+ declare const createSchema: (createSchemaBody: CreateSchemaBody, params: CreateSchemaParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateSchema201>;
913
+ declare const getListSchemasUrl: (params: ListSchemasParams) => string;
914
+ /**
915
+ * Lists the schemas of a project, newest first, paginated with a cursor.
916
+ * Filter by `object_type` or `kind`, and choose which revisions to return
917
+ * with `revisions`.
918
+ *
919
+ * A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.
920
+ * @summary List schemas
921
+ */
922
+ declare const listSchemas: (params: ListSchemasParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListSchemas200>;
923
+ declare const getGetSchemaByIdUrl: (id: string, params?: GetSchemaByIdParams) => string;
924
+ /**
925
+ * Returns a schema by ID. A schema ID identifies one immutable revision, so
926
+ * this returns exactly that revision. To find the current revision of an
927
+ * object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
928
+ *
929
+ * Schema IDs are unique within a project, not across projects (the seeded
930
+ * default schema carries the same `$id` in every project). A console
931
+ * session that manages more than one project names the project with
932
+ * `project_id`; without it, the ID is resolved in the credential's own
933
+ * project when it is ambiguous. A project secret always resolves in its
934
+ * own project and ignores `project_id`.
935
+ * @summary Get a schema by ID
936
+ */
937
+ declare const getSchemaById: (id: string, params?: GetSchemaByIdParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetSchemaById200>;
938
+ declare const getCreateFlowDefinitionUrl: () => string;
939
+ /**
940
+ * Creates a flow definition by publishing a new revision of it. It records a
941
+ * `flowdef.created` event.
942
+ *
943
+ * A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
944
+ * defines the sequence of steps (capabilities) for one user journey, such as
945
+ * registration, login or password reset. The body follows the flow
946
+ * definition schema, which includes the flow's purpose, audience and steps.
947
+ *
948
+ * Every call allocates a new opaque ID. That `id` is the `revision_id` a
949
+ * release pins for `kind: flow_definition`.
950
+ *
951
+ * Revisions of one flow share its `name`. Posting a definition under an
952
+ * existing `name` publishes a new revision of that flow, which is not a
953
+ * conflict. List with `name` to see a flow's revisions, newest by creation
954
+ * time first.
955
+ * @summary Create a flow definition
956
+ */
957
+ declare const createFlowDefinition: (createFlowDefinitionBody: CreateFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateFlowDefinition201>;
958
+ declare const getListFlowDefinitionsUrl: (params: ListFlowDefinitionsParams) => string;
959
+ /**
960
+ * Lists the project's flow definitions with their configurations, newest by
961
+ * creation time first. A flow definition sets which step of a sign-in
962
+ * renders when, and which fields each step collects.
963
+ *
964
+ * The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)
965
+ * takes. Filter by `name` to list the revisions of one flow.
966
+ * @summary List flow definitions
967
+ */
968
+ declare const listFlowDefinitions: (params: ListFlowDefinitionsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListFlowDefinitions200>;
969
+ declare const getGetFlowDefinitionUrl: (id: string) => string;
970
+ /**
971
+ * Returns one flow definition revision. Pass the `id` that
972
+ * `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
973
+ * @summary Get a flow definition by ID
974
+ */
975
+ declare const getFlowDefinition: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetFlowDefinition200>;
976
+ declare const getCreateTeamUrl: (params: CreateTeamParams) => string;
977
+ /**
978
+ * Creates a team in the project, with a name no other team in the project has.
979
+ *
980
+ * A team groups users inside a project and can represent a customer. A taken
981
+ * name is refused with `409 team.already_exists`: choose another name. The
982
+ * new team has no members yet.
983
+ * @summary Create a team
984
+ */
985
+ declare const createTeam: (createTeamBody: CreateTeamBody, params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateTeam201>;
986
+ declare const getQueryTeamsUrl: (params?: QueryTeamsParams) => string;
987
+ /**
988
+ * Returns a page of a project's teams.
989
+ *
990
+ * Pass the response's `next_page_token` as `page_token` to fetch the next
991
+ * page. `project_id` names the project to list; without it, the credential's
992
+ * own project is listed.
993
+ * @summary Query teams
994
+ */
995
+ declare const queryTeams: (queryTeamsBody: QueryTeamsBody, params?: QueryTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryTeams200>;
996
+ declare const getGetTeamUrl: (teamId: string) => string;
997
+ /**
998
+ * Returns a team, a group of users inside a project, by ID.
999
+ *
1000
+ * A deactivated team is still returned, with status `deactivated`.
1001
+ * @summary Get a team by ID
1002
+ */
1003
+ declare const getTeam: (teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetTeam200>;
1004
+ declare const getDeleteTeamUrl: (teamId: string) => string;
1005
+ /**
1006
+ * Deactivates a team and removes its memberships.
1007
+ *
1008
+ * The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with
1009
+ * status `deactivated`. The users whose lifecycle the team owns are
1010
+ * deactivated with it.
1011
+ *
1012
+ * The request is idempotent. Deleting a team that is already deactivated
1013
+ * or does not exist succeeds without changing anything.
1014
+ *
1015
+ * A team that still owns a project is refused with `409 team.owns_project`.
1016
+ * Deactivating it would leave the project owned by a deactivated team and so
1017
+ * unmanageable. No endpoint ends a team's ownership of a project yet, so for
1018
+ * now such a team cannot be deactivated through the API.
1019
+ * @summary Deactivate a team
1020
+ */
1021
+ declare const deleteTeam: (teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
1022
+ declare const getUpdateTeamUrl: (teamId: string) => string;
1023
+ /**
1024
+ * Renames an active team.
1025
+ *
1026
+ * Only active teams can be updated. A deactivated team answers `404`. The new
1027
+ * name must be unique within the project, and a taken name answers `409`:
1028
+ * choose another name.
1029
+ * @summary Update a team
1030
+ */
1031
+ declare const updateTeam: (teamId: string, updateTeamBody: UpdateTeamBody, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateTeam200>;
1032
+ declare const getCreateBrandingUrl: (params: CreateBrandingParams) => string;
1033
+ /**
1034
+ * Publishes a new immutable branding revision for the project, and records a
1035
+ * `branding.created` event. Branding revisions cannot be updated or deleted.
1036
+ * Every edit publishes a new revision. Flow responses carry the branding
1037
+ * revision the request's release pins.
1038
+ *
1039
+ * The `id` of the new revision is the revision ID a release pins for
1040
+ * `kind: branding`.
1041
+ *
1042
+ * The `liquid_template` is validated lexically on save (size, encoding,
1043
+ * banned patterns such as `<script>` tags, inline event handlers, and the
1044
+ * `| raw` filter). Authoritative LiquidJS validation runs at authoring
1045
+ * time, in `zitadel deploy` and `zitadel deploy --dry-run`.
1046
+ * @summary Publish a branding revision
1047
+ */
1048
+ declare const createBranding: (createBrandingBody: CreateBrandingBody, params: CreateBrandingParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateBranding201>;
1049
+ declare const getListBrandingUrl: (params: ListBrandingParams) => string;
1050
+ /**
1051
+ * Lists a project's branding revisions, newest first, capped at the 100 most
1052
+ * recent and not paginated. The first entry is the newest revision.
1053
+ *
1054
+ * The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and
1055
+ * that a release pins for `kind: branding`.
1056
+ * @summary List branding revisions
1057
+ */
1058
+ declare const listBranding: (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListBranding200Item[]>;
1059
+ declare const getGetBrandingByIdUrl: (id: string) => string;
1060
+ /**
1061
+ * Returns one branding revision, including its stored configuration. Pass the
1062
+ * `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
1063
+ * @summary Get a branding revision by ID
1064
+ */
1065
+ declare const getBrandingById: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetBrandingById200>;
1066
+ declare const getCreateIdpUrl: (params: CreateIdpParams) => string;
1067
+ /**
1068
+ * Creates or revises an identity provider, an external sign-in such as
1069
+ * Google, from its connection document. If the slug does not already exist,
1070
+ * a new identity provider is created. If one with that slug already exists,
1071
+ * a revision is created.
1072
+ *
1073
+ * A revision gets a new `revision_id` and does not modify the identity
1074
+ * provider's `id`. Identity links, which tie a user to an account at the
1075
+ * provider, keep resolving. Releases and authentication attempts stay pinned
1076
+ * to the revision they captured.
1077
+ *
1078
+ * Identity fields are fixed for the life of the identity provider and a
1079
+ * revision that changes one is rejected: `protocol`, `subject_claim`, and
1080
+ * `issuer`, the field that names the authority. Their values decide which provider
1081
+ * account a stored subject belongs to, so changing one would silently
1082
+ * repoint existing identities at a different provider.
1083
+ *
1084
+ * `subject_claim` is optional, and `sub` is used as the default value. If a
1085
+ * revision updates `subject_claim` to a different value than the one set
1086
+ * during creation, the request is rejected.
1087
+ *
1088
+ * OIDC is the only protocol.
1089
+ *
1090
+ * The document is validated against the `idp-connection.json` schema before
1091
+ * anything is stored. The rules the server applies when it starts a sign-in
1092
+ * then run on the document, so a document that could never start one is
1093
+ * refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint
1094
+ * without the others. Set no endpoint, and discovery fills them, or set
1095
+ * `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and
1096
+ * `userinfo_endpoint`. `userinfo_endpoint` may be left out when
1097
+ * `id_token_mapping` is on, but setting it alone still counts as setting an
1098
+ * endpoint. The details list the missing endpoints.
1099
+ *
1100
+ * A refused document stores nothing, and on a revise the current revision
1101
+ * stays unchanged.
1102
+ * @summary Create or revise an identity provider
1103
+ */
1104
+ declare const createIdp: (createIdpBody: CreateIdpBody, params: CreateIdpParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateIdp200 | CreateIdp201>;
1105
+ declare const getQueryIdpsUrl: (params: QueryIdpsParams) => string;
1106
+ /**
1107
+ * Returns the identity providers of a project, external sign-ins such as
1108
+ * Google, paginated with a cursor. Each identity provider appears once, with
1109
+ * its newest revision.
1110
+ * @summary Query identity providers
1111
+ */
1112
+ declare const queryIdps: (queryIdpsBody: QueryIdpsBody, params: QueryIdpsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryIdps200>;
1113
+ declare const getGetIdpByIdUrl: (id: string, params: GetIdpByIdParams) => string;
1114
+ /**
1115
+ * Returns an identity provider, an external sign-in such as Google, by ID at
1116
+ * its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists
1117
+ * every revision of it.
1118
+ *
1119
+ * The lookup is scoped to the project in `project_id`.
1120
+ * @summary Get an identity provider by ID
1121
+ */
1122
+ declare const getIdpById: (id: string, params: GetIdpByIdParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetIdpById200>;
1123
+ declare const getListIdpRevisionsUrl: (id: string, params: ListIdpRevisionsParams) => string;
1124
+ /**
1125
+ * Lists every revision of one identity provider, an external sign-in such as
1126
+ * Google, newest first, paginated with a cursor. The order is fixed, so there
1127
+ * is no `sorting`.
1128
+ *
1129
+ * The lookup is scoped to the project in `project_id`.
1130
+ * @summary List the revisions of an identity provider
1131
+ */
1132
+ declare const listIdpRevisions: (id: string, params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListIdpRevisions200>;
1133
+ declare const getGetIdpRevisionByIdUrl: (revisionId: string, params: GetIdpRevisionByIdParams) => string;
1134
+ /**
1135
+ * Returns one revision of an identity provider, an external sign-in such as
1136
+ * Google, by its `revision_id`, the value an authentication attempt or a
1137
+ * release pins.
1138
+ *
1139
+ * The lookup is scoped to the project in `project_id`.
1140
+ * @summary Get a revision of an identity provider
1141
+ */
1142
+ declare const getIdpRevisionById: (revisionId: string, params: GetIdpRevisionByIdParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetIdpRevisionById200>;
1143
+ declare const getListPoliciesUrl: (params: ListPoliciesParams) => string;
1144
+ /**
1145
+ * Lists the project's policies, one per operation, each as its newest
1146
+ * revision.
1147
+ *
1148
+ * A policy holds a project's rules for one operation, such as setting a
1149
+ * password. The list is ordered by `created_at` (first publish) and then
1150
+ * `id`. Filter by `operation` to read the policy of one operation; a project
1151
+ * that never published one gets an empty list.
1152
+ *
1153
+ * The lookup is scoped to the project in `project_id`.
1154
+ * @summary List policies
1155
+ */
1156
+ declare const listPolicies: (params: ListPoliciesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListPolicies200>;
1157
+ declare const getPublishPolicyUrl: (params: PublishPolicyParams) => string;
1158
+ /**
1159
+ * Publishes the project's policy for an operation as a new immutable
1160
+ * revision, creating the policy on its first publish. A revision applies
1161
+ * once a deployed release pins it. Nothing already stored is
1162
+ * re-evaluated, so a stricter password policy applies the next time a
1163
+ * password is set.
1164
+ *
1165
+ * A policy holds a project's rules for one operation, such as setting a
1166
+ * password. The first publish records a `policy.created` event and every
1167
+ * later one a `policy.updated` event.
1168
+ *
1169
+ * The request is typed by `operation`. An unknown operation or setting, or
1170
+ * a value of the wrong type or outside its bounds, answers `req.invalid`
1171
+ * like any malformed request.
1172
+ *
1173
+ * The operation's template then checks the config again, together with the
1174
+ * rules that relate settings to each other (a `min_length` above
1175
+ * `max_length`), and answers `pol.invalid`. Its `details.details.violations`
1176
+ * lists everything that failed, settings first, then rules.
1177
+ * `{"setting": "min_length"}` names one setting. `{"config_rule":
1178
+ * "min_length_not_above_max_length", "settings": ["min_length",
1179
+ * "max_length"]}` names a rule across settings, with the settings it reads.
1180
+ * Fix what the violations list and publish again. To check a config without
1181
+ * publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).
1182
+ *
1183
+ * A setting left out is off, and `{}` switches every rule off; there are no
1184
+ * defaults.
1185
+ * @summary Publish a policy
1186
+ */
1187
+ declare const publishPolicy: (publishPolicyBody: PublishPolicyBody, params: PublishPolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<PublishPolicy201>;
1188
+ declare const getEvaluatePolicyUrl: (params: EvaluatePolicyParams) => string;
1189
+ /**
1190
+ * Evaluates a policy config against one request, without side effects, and
1191
+ * answers the decision the operation would reach. A policy holds a
1192
+ * project's rules for one operation, such as setting a password.
1193
+ *
1194
+ * Nothing is read from or written to the project. The config is the one in
1195
+ * the body, checked exactly as a publish checks it, so an invalid config
1196
+ * answers `pol.invalid` with the same violations. Fix the settings the
1197
+ * violations list and send the request again.
1198
+ *
1199
+ * `input` is what the operation's request carries, in the operation's own
1200
+ * terms (a password, not its length). The server derives what the policy
1201
+ * checks with the code the live operation runs, guards included. `facts`
1202
+ * states what the operation would look up at runtime, such as whether the
1203
+ * candidate matches one of the user's kept passwords.
1204
+ *
1205
+ * The decision and the names of the failed rules hold wherever the
1206
+ * operation runs. `code` and `violations` are what an API call answers. A
1207
+ * login flow shows the same rules as field errors on the password field
1208
+ * (`error.x-auth-methods#password_<rule>` in `step.error`).
1209
+ *
1210
+ * This operation does not choose which policy a project or release applies.
1211
+ * Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.
1212
+ *
1213
+ * The caller needs read access to the project in `project_id`.
1214
+ * @summary Evaluate a policy
1215
+ */
1216
+ declare const evaluatePolicy: (evaluatePolicyBody: EvaluatePolicyBody, params: EvaluatePolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<EvaluatePolicy200>;
1217
+ declare const getGetPolicyUrl: (policyId: string, params: GetPolicyParams) => string;
1218
+ /**
1219
+ * Returns a policy as its newest revision. A revision applies once a deployed
1220
+ * release pins it.
1221
+ *
1222
+ * A policy holds a project's rules for one operation, such as setting a
1223
+ * password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
1224
+ *
1225
+ * The lookup is scoped to the project in `project_id`: a policy of another
1226
+ * project answers not found exactly as an unknown ID does.
1227
+ * @summary Get a policy by ID
1228
+ */
1229
+ declare const getPolicy: (policyId: string, params: GetPolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetPolicy200>;
1230
+ declare const getListPolicyRevisionsUrl: (policyId: string, params: ListPolicyRevisionsParams) => string;
1231
+ /**
1232
+ * Lists every revision of one policy, newest first, one page at a time. The
1233
+ * order is fixed, so there is no `sorting`.
1234
+ *
1235
+ * Each publish of a policy adds a revision. Pass the policy `id` that
1236
+ * `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
1237
+ *
1238
+ * The lookup is scoped to the project in `project_id`: a policy of another
1239
+ * project answers not found exactly as an unknown ID does.
1240
+ * @summary List the revisions of a policy
1241
+ */
1242
+ declare const listPolicyRevisions: (policyId: string, params: ListPolicyRevisionsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListPolicyRevisions200>;
1243
+ declare const getGetPolicyRevisionUrl: (revisionId: string, params: GetPolicyRevisionParams) => string;
1244
+ /**
1245
+ * Returns one revision of a policy, the newest or an older one.
1246
+ *
1247
+ * Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)
1248
+ * returns.
1249
+ *
1250
+ * The lookup is scoped to the project in `project_id`: a revision of another
1251
+ * project answers not found exactly as an unknown ID does.
1252
+ * @summary Get a policy revision by ID
1253
+ */
1254
+ declare const getPolicyRevision: (revisionId: string, params: GetPolicyRevisionParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetPolicyRevision200>;
1255
+ declare const getCreateReleaseUrl: (params: CreateReleaseParams) => string;
1256
+ /**
1257
+ * Creates a release from existing revisions, given as `(kind, revision_id)`
1258
+ * pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)
1259
+ * (`POST /releases/build`).
1260
+ *
1261
+ * A release is a snapshot of the project's configuration: it pins one
1262
+ * revision of each resource it includes, and it is not tied to an origin.
1263
+ * Take each `revision_id` from the operation that created the revision, for
1264
+ * example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.
1265
+ *
1266
+ * Each revision must exist in the project and is recorded under the handle
1267
+ * it declares. The release must be complete and consistent:
1268
+ *
1269
+ * - Every handle its revisions name must be in the release: a flow's
1270
+ * `user_schema`, and the identity provider (IdP) connections named by a
1271
+ * flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.
1272
+ * A missing one answers `rel.unresolved_reference`, naming the resource and
1273
+ * the handle, for example `flow_definition default-login: user_schema
1274
+ * human-user not found`. Add the missing revision to the request.
1275
+ * - Every flow is validated as on save, against the user schema revision in
1276
+ * the release. A flow that fails answers `rel.invalid`, with the reason in
1277
+ * `details`. Fix the flow and send the request again.
1278
+ *
1279
+ * The call is idempotent on the set of revisions: the same revisions with a
1280
+ * different `message` answer `200` with the existing release. A new release
1281
+ * answers `201`.
1282
+ *
1283
+ * Creating a release does not deploy it. Pass the returned `id` to
1284
+ * `createDeployment` (`POST /deployments`) to make the release live.
1285
+ * @summary Create a release
1286
+ */
1287
+ declare const createRelease: (createReleaseBody: CreateReleaseBody, params: CreateReleaseParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateRelease200 | CreateRelease201>;
1288
+ declare const getListReleasesUrl: (params: ListReleasesParams) => string;
1289
+ /**
1290
+ * Lists the project's releases, newest first. A release is a snapshot of the
1291
+ * project's configuration.
1292
+ *
1293
+ * Entries carry the digest, the metadata and `revoked_at`. The pinned set is
1294
+ * omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.
1295
+ *
1296
+ * The `id` of an entry is the release ID that `getReleaseById`,
1297
+ * `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
1298
+ *
1299
+ * `content_hash` looks a release up by its content, as the CLI does when a
1300
+ * person types the digest a transcript printed. The project holds at most
1301
+ * one release per digest, so the filtered list has one entry or none. An
1302
+ * unknown digest is an empty list rather than an error. Paths take the
1303
+ * `rel_` ID only, so use the matched entry's `id` there.
1304
+ * @summary List releases
1305
+ */
1306
+ declare const listReleases: (params: ListReleasesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListReleases200>;
1307
+ declare const getBuildReleaseUrl: (params: BuildReleaseParams) => string;
1308
+ /**
1309
+ * Builds a release from the resources in `.zitadel/` as authored on disk,
1310
+ * grouped by kind, in one transaction.
1311
+ *
1312
+ * A release is a snapshot of the project's configuration. A failure anywhere
1313
+ * leaves no revision and no release. The caller records nothing. The CLI's
1314
+ * `deploy` command builds its release with this operation.
1315
+ *
1316
+ * If the project already holds a release with the same content, the same
1317
+ * `content_hash`, the request answers `200` with that release and allocates
1318
+ * nothing, however long ago it was built. Metadata is excluded from the
1319
+ * comparison, so the same content under a different `message` is the same
1320
+ * release.
1321
+ *
1322
+ * Otherwise every resource is compared with the project's newest revision of
1323
+ * the same handle. Unchanged content reuses that revision, and changed
1324
+ * content allocates a new one. The request answers `201` with the new
1325
+ * release. A policy whose config matches only an older revision allocates a
1326
+ * new one too, so the policy reads back as the config the build carried.
1327
+ *
1328
+ * A structurally malformed request is refused while decoding with
1329
+ * `req.invalid`, naming the offending fields. A well-formed bundle is then
1330
+ * checked resource by resource, as each kind's create endpoint checks it,
1331
+ * and every failure is reported at once. The request answers `400` with
1332
+ * `rel.invalid`, and `details.resources` lists each resource that failed.
1333
+ * Fix each listed resource and build again. A handle that resolves neither
1334
+ * in the bundle nor in the project answers `rel.unresolved_reference`,
1335
+ * naming the pointer and the handle. Add the missing resource to the bundle.
1336
+ *
1337
+ * Building writes revisions, so besides `release.write` it needs the write
1338
+ * scope of every kind the bundle carries a resource of: `schema.write`,
1339
+ * `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,
1340
+ * as the per-kind create endpoints do. A missing scope answers `403` with
1341
+ * `rel.permission_denied`, naming the kind. Request a token with that scope.
1342
+ * An empty kind needs no scope.
1343
+ *
1344
+ * Building a release does not deploy it. A release is not tied to an origin,
1345
+ * and the same release can later be deployed to any number of origins
1346
+ * unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).
1347
+ * @summary Build a release from files
1348
+ */
1349
+ declare const buildRelease: (buildReleaseBody: BuildReleaseBody, params: BuildReleaseParams, options?: Parameters<typeof customFetch>[1]) => Promise<BuildRelease200 | BuildRelease201>;
1350
+ declare const getGetReleaseByIdUrl: (releaseId: string, params: GetReleaseByIdParams) => string;
1351
+ /**
1352
+ * Returns one release: its digest, its metadata, whether it was revoked, and
1353
+ * the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot
1354
+ * of the project's configuration.
1355
+ *
1356
+ * The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),
1357
+ * `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its
1358
+ * digest, list with the `content_hash` filter and read the matched entry's
1359
+ * `id`.
1360
+ *
1361
+ * The response does not embed resource content. Resolve each `revision_id`
1362
+ * through the per-kind read endpoints when the bytes are needed.
1363
+ *
1364
+ * The lookup is scoped to the project in `project_id`. A release ID
1365
+ * belonging to another project answers not found exactly as an unknown ID
1366
+ * does, so the endpoint cannot be used to probe for releases in projects the
1367
+ * caller cannot read.
1368
+ * @summary Get a release by ID
1369
+ */
1370
+ declare const getReleaseById: (releaseId: string, params: GetReleaseByIdParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetReleaseById200>;
1371
+ declare const getRevokeReleaseUrl: (releaseId: string, params: RevokeReleaseParams) => string;
1372
+ /**
1373
+ * Revokes a release, so that its content is never served again. Pass the
1374
+ * `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It
1375
+ * records a `release.revoked` event.
1376
+ *
1377
+ * From then on the release cannot be deployed. Every path that would serve
1378
+ * it refuses it with `rel.revoked`, including a build that pins its digest.
1379
+ *
1380
+ * A release that any origin still serves cannot be revoked. An origin serves
1381
+ * the release of the newest deployment to it, so the call answers `409` with
1382
+ * `rel.in_use`, naming each such origin and that deployment. Deploy another
1383
+ * release there or roll back first, then revoke. Revoking therefore never
1384
+ * takes an origin down. Deployments that named the release earlier stay in
1385
+ * the history.
1386
+ *
1387
+ * The call is idempotent: revoking a release that is already revoked answers
1388
+ * `200` with the release unchanged, and `revoked_at` still names the first
1389
+ * revocation. There is no un-revoke. To serve that configuration again,
1390
+ * change it and build a new release: rebuilding unchanged content returns
1391
+ * the same revoked release.
1392
+ *
1393
+ * The call takes no body. The lookup is scoped to the project in
1394
+ * `project_id`, so a release ID of another project answers not found exactly
1395
+ * as an unknown ID does.
1396
+ * @summary Revoke a release
1397
+ */
1398
+ declare const revokeRelease: (releaseId: string, params: RevokeReleaseParams, options?: Parameters<typeof customFetch>[1]) => Promise<RevokeRelease200>;
1399
+ declare const getCreateGrantUrl: (params: CreateGrantParams) => string;
1400
+ /**
1401
+ * Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.
1402
+ *
1403
+ * The project is the one named by the `project_id` query parameter. Name the
1404
+ * principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
1405
+ * `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
1406
+ * `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not
1407
+ * created here: a claim, which attaches a project to a team, creates them.
1408
+ *
1409
+ * An unrevoked grant with the same principal and relation holds that binding
1410
+ * even after `expires_at`. Revoke it with `deleteGrant` before you create it
1411
+ * again.
1412
+ *
1413
+ * Create does not accept `expand`. The `user_id` and team locators return `201`,
1414
+ * whose `user` and `team` carry only `user_id` and `team_id`. They still answer
1415
+ * `404` or `409` when the principal is missing or the grant already exists.
1416
+ * Creating by `user.identifier` answers `202` with no body on every outcome.
1417
+ * Granting the session caller's own user is `grant.invalid` on either user
1418
+ * locator. A `201` grant names its user or team by ID only: read it back
1419
+ * with `getGrant` for the identifier and display name. A `202` returns no
1420
+ * grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.
1421
+ *
1422
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
1423
+ * (`sessionCookie`). A session caller is authorized as the signed-in person
1424
+ * against the target project, even when the session belongs to another project.
1425
+ * Cookie requests follow that scheme's CSRF rules.
1426
+ * @summary Create a grant
1427
+ */
1428
+ declare const createGrant: (createGrantBody: CreateGrantBody, params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateGrant201 | void>;
1429
+ declare const getQueryGrantsUrl: (params: QueryGrantsParams) => string;
1430
+ /**
1431
+ * Returns a page of a project's grants.
1432
+ *
1433
+ * Only unrevoked grants this API manages are listed, which bind a user or team
1434
+ * to the viewer, editor or admin role. Expired grants are included, so a client
1435
+ * can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.
1436
+ * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
1437
+ * not returned. Requires `project.read`.
1438
+ *
1439
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
1440
+ * secrets it additionally requires `user.read` and `team.read`. A user-bound
1441
+ * console session that already passed the project check may expand without those scopes.
1442
+ *
1443
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
1444
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
1445
+ * @summary Query grants
1446
+ */
1447
+ declare const queryGrants: (queryGrantsBody: QueryGrantsBody, params: QueryGrantsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryGrants200>;
1448
+ declare const getGetGrantUrl: (id: string, params: GetGrantParams) => string;
1449
+ /**
1450
+ * Returns a grant by ID, when this API manages it and it has not been revoked.
1451
+ *
1452
+ * This API manages grants that bind a user or team to the viewer, editor or
1453
+ * admin role. An expired grant is still returned, so you can revoke it with
1454
+ * `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still
1455
+ * ignores expired grants. Send `project_id` as well as the grant ID.
1456
+ * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
1457
+ * (`relation=team`) rows and grants of another project all return `404`.
1458
+ *
1459
+ * `expand=principal` adds envelope fields on `user` or `team`. For project
1460
+ * secrets it requires `user.read` and `team.read` in addition to `project.read`.
1461
+ * A user-bound console session that already passed the project check may expand
1462
+ * without those scopes.
1463
+ *
1464
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
1465
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
1466
+ * @summary Get a grant by ID
1467
+ */
1468
+ declare const getGrant: (id: string, params: GetGrantParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetGrant200>;
1469
+ declare const getDeleteGrantUrl: (id: string, params: DeleteGrantParams) => string;
1470
+ /**
1471
+ * Revokes a grant this API manages and emits `authz.revoked`.
1472
+ *
1473
+ * A revoked grant cannot be restored: create a new one. Already-revoked, missing,
1474
+ * project-secret setup and owning-team grants return `404`. Expired grants can
1475
+ * still be revoked, so the binding can be reused.
1476
+ *
1477
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
1478
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
1479
+ * @summary Revoke a grant
1480
+ */
1481
+ declare const deleteGrant: (id: string, params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
1482
+ declare const getListEventsUrl: (params: ListEventsParams) => string;
1483
+ /**
1484
+ * Lists a project's audit events, newest first. Pass `order=asc` for oldest
1485
+ * first. Requires `events.read`.
1486
+ *
1487
+ * A project that is not claimed yet returns an empty list: its events are
1488
+ * stored but stay invisible until the
1489
+ * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
1490
+ *
1491
+ * Team-scoped credentials see only the events whose `team_id` matches the
1492
+ * credential's team. Team-scoped credentials are not issued today.
1493
+ *
1494
+ * Each item carries an `event_type` that says which type of event it is, and
1495
+ * the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).
1496
+ * @summary List events
1497
+ */
1498
+ declare const listEvents: (params: ListEventsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListEvents200>;
1499
+ declare const getGetEventUrl: (id: string, params: GetEventParams) => string;
1500
+ /**
1501
+ * Returns one event of a project by its ID. Requires `events.read`.
1502
+ *
1503
+ * Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its
1504
+ * `project_id`. An unknown ID and the ID of another project's event both
1505
+ * answer `404`.
1506
+ *
1507
+ * A project that is not claimed yet also answers `404`: its events are
1508
+ * stored but stay invisible until the
1509
+ * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
1510
+ * @summary Get an event by ID
1511
+ */
1512
+ declare const getEvent: (id: string, params: GetEventParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetEvent200>;
1513
+ declare const getGetVariablesUrl: (params: GetVariablesParams) => string;
1514
+ /**
1515
+ * Returns the project's variables, keyed by name, each with its value for
1516
+ * each kind: `primary` for primary origins and `preview` for preview URLs.
1517
+ * With `kind`, only that kind's values are returned.
1518
+ *
1519
+ * Secret values are not returned. A secret appears as `{"secret": true}`,
1520
+ * which says a value is held without disclosing it.
1521
+ * @summary Get a project's variables
1522
+ */
1523
+ declare const getVariables: (params: GetVariablesParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetVariables200>;
1524
+ declare const getUpdateVariablesUrl: (params: UpdateVariablesParams) => string;
1525
+ /**
1526
+ * Sets, replaces and removes the project's variables for the requested
1527
+ * kind, in one request. Names not in the body are untouched. Existing
1528
+ * deployments keep the values they froze.
1529
+ *
1530
+ * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
1531
+ * stores the value encrypted under the project's active `secret` key, after
1532
+ * which it can be referenced but not read back. `null` removes the name
1533
+ * (RFC 7386), which is how several variables are removed in one request.
1534
+ * Removing a name the project does not hold is a no-op rather than an error.
1535
+ *
1536
+ * Without `kind`, a plain value is written for both kinds. A secret is
1537
+ * written for `primary` only and removes the name's `preview` value, so a
1538
+ * preview never keeps a plaintext copy. Set a preview secret with
1539
+ * `kind=preview`. `null` removes the name from both kinds.
1540
+ *
1541
+ * The body is applied whole or not at all, so a rejected request leaves the
1542
+ * project's variables exactly as they were. Fix what the error reports and
1543
+ * send the request again. Writing the same name twice replaces the value
1544
+ * rather than duplicating it, which makes a retry safe.
1545
+ *
1546
+ * Each kind written records a `variable.set` event, and each kind removed a
1547
+ * `variable.removed` event. The value never appears in either.
1548
+ * @summary Update a project's variables
1549
+ */
1550
+ declare const updateVariables: (updateVariablesBody: UpdateVariablesBody, params: UpdateVariablesParams, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateVariables200>;
1551
+ declare const getGetVariableUrl: (variableName: string, params: GetVariableParams) => string;
1552
+ /**
1553
+ * Returns one variable by name, with its value for each kind. A variable
1554
+ * holds a value per kind: `primary` for primary origins and `preview` for
1555
+ * preview URLs.
1556
+ *
1557
+ * Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists
1558
+ * it. A name with no value for the requested kind answers `var.not_found`;
1559
+ * set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
1560
+ * @summary Get a variable by name
1561
+ */
1562
+ declare const getVariable: (variableName: string, params: GetVariableParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetVariable200>;
1563
+ declare const getDeleteVariableUrl: (variableName: string, params: DeleteVariableParams) => string;
1564
+ /**
1565
+ * Deletes a variable for the requested kind, or for both kinds without
1566
+ * `kind`. Existing deployments keep the values they froze. Each kind removed
1567
+ * records a `variable.removed` event.
1568
+ *
1569
+ * A name with no value for that kind answers `var.not_found`: there is
1570
+ * nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To
1571
+ * remove several names in one request, or to remove a name that may already
1572
+ * be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).
1573
+ * @summary Delete a variable by name
1574
+ */
1575
+ declare const deleteVariable: (variableName: string, params: DeleteVariableParams, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
1576
+ declare const getCreateDeploymentUrl: (params: CreateDeploymentParams) => string;
1577
+ /**
1578
+ * Creates a deployment: it makes a release live on the project's primary
1579
+ * origins or on preview URLs.
1580
+ *
1581
+ * A release is a snapshot of the project's configuration. A deployment makes
1582
+ * a release live on origins and freezes the project's variable values for
1583
+ * its kind, with no fallback between primary and preview values. The call is
1584
+ * atomic: on success every target serves the release and the deployment is
1585
+ * recorded, and it records a `deployment.created` event. On failure nothing
1586
+ * changes and nothing is recorded.
1587
+ *
1588
+ * Name the release by exactly one of `release_id` or `content_hash`. Take the
1589
+ * release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or
1590
+ * `listReleases` (`GET /releases`) returns. The release must already exist in the project.
1591
+ * `targets` is `primary`, which means every primary origin, or a list of
1592
+ * preview URLs. `["primary"]`, which clients released before this shape
1593
+ * send, still deploys to every primary origin until 1.0.0; its answer
1594
+ * carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.
1595
+ *
1596
+ * The project's newest primary deployment also serves every request with no
1597
+ * `Origin`, such as a backend, a native app or the CLI, and the console's
1598
+ * login preview of a project that does not list the console's origin. A
1599
+ * preview URL serves only itself.
1600
+ *
1601
+ * A deployment to `primary` changes nothing when the project's newest
1602
+ * primary deployment has the same release and frozen values and covers
1603
+ * exactly the current primary origins. The call then answers `200` with that
1604
+ * deployment. Any other request writes a new deployment and answers `201`.
1605
+ * For preview URLs, that deployment renews their previews.
1606
+ *
1607
+ * If the request is refused, fix the cause and send it again:
1608
+ * - `400 dep.invalid`: the request names both or neither of `release_id` and
1609
+ * `content_hash`, names a primary origin among the preview URLs, sends
1610
+ * `primary` for a project with no primary origin, sends
1611
+ * `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct
1612
+ * the request.
1613
+ * - `400 dep.variables_missing`: a variable the release references has no
1614
+ * value for the kind. `details` names the kind and every missing variable.
1615
+ * Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.
1616
+ * - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
1617
+ * of the project, or is a loopback URL. Use a URL that matches a pattern.
1618
+ * - `404 rel.not_found`: the release ID or digest names no release in this
1619
+ * project. List the project's releases with `listReleases`.
1620
+ * - `409 dep.conflict`: `expected_deployment_id` is not the deployment this
1621
+ * write replaces, and `details.deployment` is that deployment. Inspect it,
1622
+ * then retry with its ID as `expected_deployment_id`, or stop.
1623
+ * - `409 rel.revoked`: the release is revoked and cannot be deployed. Change
1624
+ * the configuration and build a new release, or deploy a release that is
1625
+ * not revoked. Rebuilding unchanged content returns the same revoked release.
1626
+ * @summary Create a deployment
1627
+ */
1628
+ declare const createDeployment: (createDeploymentBody: CreateDeploymentBody, params: CreateDeploymentParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateDeployment200 | CreateDeployment201>;
1629
+ declare const getListDeploymentsUrl: (params: ListDeploymentsParams) => string;
1630
+ /**
1631
+ * Lists the project's deployments: the history of what ran where and when,
1632
+ * or with `live=true` what is served now.
1633
+ *
1634
+ * A deployment makes a release live on origins. By default the list is the
1635
+ * history, newest first: every deployment of the project, with every target
1636
+ * it made the release live on. With `origin`, it is the history of that
1637
+ * origin alone.
1638
+ *
1639
+ * With `live=true`, the list is what is served now, newest first. It holds
1640
+ * the project's newest primary deployment with every origin it names, an
1641
+ * origin the project no longer lists included: that deployment also serves
1642
+ * requests with no `Origin`, so it stays live. It also holds the newest
1643
+ * deployment to each live preview URL, narrowed to the URLs it still
1644
+ * serves. Combined with `origin`, it is the one deployment that origin
1645
+ * serves, or empty, as it is for an origin the project no longer lists.
1646
+ *
1647
+ * The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),
1648
+ * `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
1649
+ *
1650
+ * `expand: ["release"]` embeds the release each deployment made live. It
1651
+ * requires `release.read` and does not change the ordering or the page
1652
+ * tokens.
1653
+ * @summary List deployments
1654
+ */
1655
+ declare const listDeployments: (params: ListDeploymentsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListDeployments200>;
1656
+ declare const getGetDeploymentByIdUrl: (deploymentId: string, params: GetDeploymentByIdParams) => string;
1657
+ /**
1658
+ * Returns one deployment: the release it made live, the origins it made it
1659
+ * live on, and whether they still serve it.
1660
+ *
1661
+ * Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or
1662
+ * `listDeployments` (`GET /deployments`) returns.
1663
+ *
1664
+ * The lookup is scoped to the project in `project_id`. A deployment ID
1665
+ * belonging to another project answers not found exactly as an unknown ID
1666
+ * does, so the endpoint cannot be used to probe for deployments in projects
1667
+ * the caller cannot read.
1668
+ * @summary Get a deployment by ID
1669
+ */
1670
+ declare const getDeploymentById: (deploymentId: string, params: GetDeploymentByIdParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetDeploymentById200>;
1671
+ declare const getRollbackDeploymentUrl: (deploymentId: string, params: RollbackDeploymentParams) => string;
1672
+ /**
1673
+ * Rolls back to an earlier deployment by deploying its release again to
1674
+ * every current primary origin, with the variable values that deployment
1675
+ * froze.
1676
+ *
1677
+ * A release is a snapshot of the project's configuration. A deployment makes
1678
+ * a release live on origins and freezes the project's variable values with
1679
+ * it.
1680
+ *
1681
+ * The deployment ID in the path is the deployment to return to, not the one
1682
+ * to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists
1683
+ * the newest deployment first.
1684
+ *
1685
+ * A rollback is a new deployment, not an undo. It has `reason: rollback`,
1686
+ * and its `rollback_to` names the deployment you returned to. It uses the
1687
+ * variable values that deployment froze, not the project's current ones, and
1688
+ * creates no release.
1689
+ *
1690
+ * To guard against a deployment that landed since you looked, set
1691
+ * `expected_deployment_id` in the request body to the newest primary
1692
+ * deployment, the one live now. The call then fails with `409 dep.conflict`
1693
+ * if another deployment has replaced it.
1694
+ *
1695
+ * A rollback is idempotent like a deployment to `primary`. When nothing
1696
+ * would change, it answers `200` with the newest primary deployment.
1697
+ *
1698
+ * If the request is refused:
1699
+ * - `400 dep.invalid`: the deployment went to preview URLs, which cannot be
1700
+ * rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`). The
1701
+ * error also appears when the project has no primary origin. Add one with
1702
+ * `zitadel origin add`.
1703
+ * - `404 dep.not_found`: no deployment of the project has that ID, or that
1704
+ * deployment recorded no variables to restore, so it cannot be a rollback
1705
+ * target. List them with `listDeployments` and pick another.
1706
+ * - `409 dep.conflict`: `expected_deployment_id` is not the project's
1707
+ * newest primary deployment, and `details.deployment` is that deployment.
1708
+ * Inspect it, then retry with its ID, or stop.
1709
+ * - `409 rel.revoked`: the release of that deployment is revoked and cannot
1710
+ * be deployed. Roll back to a deployment of a release that is not revoked.
1711
+ * @summary Roll back to a deployment
1712
+ */
1713
+ declare const rollbackDeployment: (deploymentId: string, params: RollbackDeploymentParams, rollbackDeploymentBody?: RollbackDeploymentBody, options?: Parameters<typeof customFetch>[1]) => Promise<RollbackDeployment200 | RollbackDeployment201>;
1714
+ declare const getGetDeploymentVariablesUrl: (deploymentId: string, params: GetDeploymentVariablesParams) => string;
1715
+ /**
1716
+ * Returns the variable values the deployment froze when it was made. Later
1717
+ * changes to the project's variables do not affect them. A secret reads
1718
+ * back as `{"secret": true}`.
1719
+ *
1720
+ * Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
1721
+ * @summary Get a deployment's variables
1722
+ */
1723
+ declare const getDeploymentVariables: (deploymentId: string, params: GetDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetDeploymentVariables200>;
1724
+ //#endregion
1725
+ export { getDeploymentVariables as $, listMyProjects as $n, getListProjectAdminsUrl as $t, getBuildReleaseUrl as A, getRevokeSessionUrl as An, verifyChallengeProof as Ar, getGetSessionUrl as At, getCreateHandoffUrl as B, getUserPasswordState as Bn, getIssueChallengeUrl as Bt, evaluatePolicy as C, getQueryUsersUrl as Cn, revokeRelease as Cr, getGetMyUserUrl as Ct, getAuthAttempt as D, getRemovePreviewUrl as Dn, submitFlowStep as Dr, getGetReadyUrl as Dt, getAddOriginUrl as E, getRemoveOriginUrl as En, setUserPassword as Er, getGetProjectUrl as Et, getCreateBrandingUrl as F, getSubmitFlowStepUrl as Fn, getGetVariablesUrl as Ft, getCreateSessionUrl as G, issueChallenge as Gn, getListIdpRevisionsUrl as Gt, getCreateProjectUrl as H, getVariables as Hn, getListDeploymentsUrl as Ht, getCreateDeploymentUrl as I, getTeam as In, getGrant as It, getDeleteGrantUrl as J, listEvents as Jn, getListMyProjectsUrl as Jt, getCreateTeamUrl as K, listBranding as Kn, getListMyIdentityLinksUrl as Kt, getCreateFlowDefinitionUrl as L, getUpdateTeamUrl as Ln, getIdpById as Lt, getClaimWindow as M, getSchemaById as Mn, getGetUserByIDUrl as Mt, getCompleteClaimUrl as N, getSession as Nn, getGetUserPasswordStateUrl as Nt, getBeginUserPasskeyRegistrationUrl as O, getRevokeMySessionUrl as On, updateTeam as Or, getGetReleaseByIdUrl as Ot, getCreateAuthAttemptUrl as P, getSetUserPasswordUrl as Pn, getGetVariableUrl as Pt, getDeploymentById as Q, listMyPasskeys as Qn, getListPreviewsUrl as Qt, getCreateFlowUrl as R, getUpdateVariablesUrl as Rn, getIdpRevisionById as Rt, deleteVariable as S, getQueryTeamsUrl as Sn, revokeMySession as Sr, getGetMyUserSchemaUrl as St, finishUserPasskeyRegistration as T, getReleaseById as Tn, rollbackDeployment as Tr, getGetPolicyUrl as Tt, getCreateReleaseUrl as U, getVerifyChallengeProofUrl as Un, getListEventsUrl as Ut, getCreateIdpUrl as V, getVariable as Vn, getListBrandingUrl as Vt, getCreateSchemaUrl as W, initClaim as Wn, getListFlowDefinitionsUrl as Wt, getDeleteUserByIDUrl as X, listIdpRevisions as Xn, getListPoliciesUrl as Xt, getDeleteTeamUrl as Y, listFlowDefinitions as Yn, getListMyTeamsUrl as Yt, getDeleteVariableUrl as Z, listMyIdentityLinks as Zn, getListPolicyRevisionsUrl as Zt, createTeam as _, getPublishPolicyUrl as _n, querySessions as _r, getGetIdpRevisionByIdUrl as _t, createAuthAttempt as a, getLive as an, listReleases as ar, getFlowStep as at, deleteTeam as b, getQueryProjectsUrl as bn, removeOrigin as br, getGetMySessionCsrfTokenUrl as bt, createFlow as c, getMySessionCsrfToken as cn, listUserPasskeys as cr, getGetClaimStatusUrl as ct, createHandoff as d, getPatchMyUserUrl as dn, patchProject as dr, getGetDeploymentVariablesUrl as dt, getListReleasesUrl as en, listMyTeams as er, getEvaluatePolicyUrl as et, createIdp as f, getPatchProjectUrl as fn, patchUserByID as fr, getGetEventUrl as ft, createSession as g, getProject as gn, queryProjects as gr, getGetIdpByIdUrl as gt, createSchema as h, getPolicyRevision as hn, queryIdps as hr, getGetGrantUrl as ht, completeClaim as i, getListUserTeamsUrl as in, listProjectAdmins as ir, getFlowDefinition as it, getClaimStatus as j, getRollbackDeploymentUrl as jn, zitadelNextGen_d_exports as jr, getGetTeamUrl as jt, getBrandingById as k, getRevokeReleaseUrl as kn, updateVariables as kr, getGetSchemaByIdUrl as kt, createFlowDefinition as l, getMyUser as ln, listUserTeams as lr, getGetClaimWindowUrl as lt, createRelease as m, getPolicy as mn, queryGrants as mr, getGetFlowStepUrl as mt, beginUserPasskeyRegistration as n, getListUserIdentityLinksUrl as nn, listPolicyRevisions as nr, getExchangeHandoffUrl as nt, createBranding as o, getMyPasswordState as on, listSchemas as or, getGetAuthAttemptUrl as ot, createProject as p, getPatchUserByIDUrl as pn, publishPolicy as pr, getGetFlowDefinitionUrl as pt, getCreateUserUrl as q, listDeployments as qn, getListMyPasskeysUrl as qt, buildRelease as r, getListUserPasskeysUrl as rn, listPreviews as rr, getFinishUserPasskeyRegistrationUrl as rt, createDeployment as s, getMySession as sn, listUserIdentityLinks as sr, getGetBrandingByIdUrl as st, addOrigin as t, getListSchemasUrl as tn, listPolicies as tr, getEvent as tt, createGrant as u, getMyUserSchema as un, patchMyUser as ur, getGetDeploymentByIdUrl as ut, createUser as v, getQueryGrantsUrl as vn, queryTeams as vr, getGetLiveUrl as vt, exchangeHandoff as w, getReady as wn, revokeSession as wr, getGetPolicyRevisionUrl as wt, deleteUserByID as x, getQuerySessionsUrl as xn, removePreview as xr, getGetMySessionUrl as xt, deleteGrant as y, getQueryIdpsUrl as yn, queryUsers as yr, getGetMyPasswordStateUrl as yt, getCreateGrantUrl as z, getUserByID as zn, getInitClaimUrl as zt };
1726
+ //# sourceMappingURL=zitadelNextGen-CFrFhq_h.d.mts.map