@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
@@ -1,30 +1,38 @@
1
1
  import * as zod from "zod";
2
2
  //#region src/generated/endpoints/zitadelNextGen.zod.d.ts
3
3
  /**
4
- * Answers `ok` while the server process serves HTTP, and checks nothing behind it.
4
+ * Answers `ok` while the server process serves HTTP, and checks nothing
5
+ * behind it.
5
6
  *
6
- * Point a liveness probe here. It never checks the database, so an outage
7
- * of the database does not restart every instance; `GET /readyz` takes an
7
+ * A liveness probe tells an orchestrator such as Kubernetes whether to
8
+ * restart the process. Point it at `/livez` at the root, where the probes
9
+ * stay, not under `/api/v1`. It never checks the database, so an outage of
10
+ * the database does not restart every instance. `GET /readyz` takes an
8
11
  * instance out of rotation instead.
9
- * @summary Check server liveness
12
+ * @summary Check the server's liveness
10
13
  */
11
14
  export declare const GetLiveResponse: zod.ZodString;
12
15
  /**
13
- * Answers whether the server can serve requests, which takes its database answering within a second.
16
+ * Answers `ok` when the server can serve requests, which takes its database
17
+ * answering within a second, and `fail` with `503` otherwise.
14
18
  *
15
- * Point a readiness probe here, so that a server whose database does not
16
- * answer gets no requests until it does. The check is one round trip to the
19
+ * A readiness probe tells an orchestrator such as Kubernetes whether to send
20
+ * the instance requests. Point it at `/readyz` at the root, where the probes
21
+ * stay, not under `/api/v1`, so that a server whose database does not answer
22
+ * gets no requests until it does. The check is one round trip to the
17
23
  * database.
18
- * @summary Check server readiness
24
+ * @summary Check the server's readiness
19
25
  */
20
26
  export declare const GetReadyResponse: zod.ZodString;
21
27
  /**
22
- * Creates a user whose attributes satisfy the user schema the request names.
23
- *
24
- * The server assigns the user's id. With `team_id`, the user also becomes an
25
- * active member of that team. A value the schema marks unique that another
26
- * user already holds is refused with `409`.
27
- * @summary Create user
28
+ * Creates a user whose attributes satisfy the user schema named in the request.
29
+ *
30
+ * The server assigns the user's ID and returns it. `schema` is the `id` of a
31
+ * schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
32
+ * `team_id`, the user also becomes an active member of that team. A value the
33
+ * schema marks unique that another user already holds is refused with `409`;
34
+ * send a different value.
35
+ * @summary Create a user
28
36
  */
29
37
  export declare const createUserQueryProjectIdRegExp: RegExp;
30
38
  export declare const createUserQueryTeamIdRegExp: RegExp;
@@ -84,9 +92,15 @@ export declare const CreateUserResponse: zod.ZodObject<{
84
92
  * `project_id` names the project to list; without it, the credential's own
85
93
  * project is listed.
86
94
  *
87
- * Accepts either a project secret (`oauth2`) or a user-bound Console
88
- * session cookie (`nextgenSession`). Cookie-authenticated requests
89
- * follow the scheme's CSRF rules (`nextgenSession`).
95
+ * Accepts either a project secret (`oauth2`) or a user-bound console
96
+ * session cookie (`sessionCookie`). Cookie-authenticated requests
97
+ * follow the scheme's CSRF rules (`sessionCookie`).
98
+ *
99
+ * With a project secret, embedding `teams` with `expand`, or filtering by
100
+ * `team_id`, also needs `team_membership.read`. Embedding
101
+ * `lifecycle_owner_team` needs `team.read`. A console session carries no
102
+ * scopes: it may do both when it may read the whole project, and gets
103
+ * `403 user.permission_denied` otherwise.
90
104
  * @summary Query users
91
105
  */
92
106
  export declare const queryUsersQueryProjectIdRegExp: RegExp;
@@ -184,11 +198,11 @@ export declare const QueryUsersResponse: zod.ZodObject<{
184
198
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
185
199
  }, zod.z.core.$strip>;
186
200
  /**
187
- * Returns a user by its id, with the attributes its schema defines.
201
+ * Returns a user by ID, with the attributes its schema defines.
188
202
  *
189
- * With `team_id`, the user is returned only while they are an active member of
190
- * that team.
191
- * @summary Get user by ID
203
+ * With `team_id`, the user is returned only while they are an active member
204
+ * of that team.
205
+ * @summary Get a user by ID
192
206
  */
193
207
  export declare const getUserByIDPathUserIdRegExp: RegExp;
194
208
  export declare const GetUserByIDParams: zod.ZodObject<{
@@ -245,7 +259,20 @@ export declare const GetUserByIDResponse: zod.ZodObject<{
245
259
  * moves the user to another registered schema. The merged result is
246
260
  * validated against the schema before commit. Concurrent writes are
247
261
  * last-write-wins.
248
- * @summary Update user by ID
262
+ *
263
+ * To move the user, send `schema` with the `id` of a registered schema, as
264
+ * `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
265
+ *
266
+ * To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
267
+ * the same permission and answers the same status and `details` as the real
268
+ * request, and it changes nothing and emits no `user.updated`. The request
269
+ * itself is still recorded as `request.api`, like any other API call. A `200`
270
+ * holds for the moment of the check: a unique value that is free then can be
271
+ * taken before the real request, which then answers `409`.
272
+ *
273
+ * `dry_run` is a body field so that a server from before it refuses the
274
+ * request as malformed (`400 req.invalid`) instead of applying the patch.
275
+ * @summary Update a user by ID
249
276
  */
250
277
  export declare const patchUserByIDPathUserIdRegExp: RegExp;
251
278
  export declare const PatchUserByIDParams: zod.ZodObject<{
@@ -253,6 +280,7 @@ export declare const PatchUserByIDParams: zod.ZodObject<{
253
280
  }, zod.z.core.$strip>;
254
281
  export declare const PatchUserByIDBody: zod.ZodObject<{
255
282
  schema: zod.ZodOptional<zod.ZodString>;
283
+ dry_run: zod.ZodOptional<zod.ZodBoolean>;
256
284
  attributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
257
285
  }, zod.z.core.$strip>;
258
286
  export declare const patchUserByIDResponseIdRegExp: RegExp;
@@ -304,8 +332,10 @@ export declare const PatchUserByIDResponse: zod.ZodObject<{
304
332
  * The user is removed, not deactivated, and the deletion emits `user.deleted`,
305
333
  * plus `authz.revoked` for each grant on that grant's project.
306
334
  * With a project secret the request is idempotent: deleting a user that exists
307
- * in no project succeeds without changing anything.
308
- * @summary Delete user by ID
335
+ * in no project succeeds without changing anything. Deleting the last active
336
+ * member of a project's owning team returns 409 `proj.last_owner` and changes
337
+ * nothing.
338
+ * @summary Delete a user by ID
309
339
  */
310
340
  export declare const deleteUserByIDPathUserIdRegExp: RegExp;
311
341
  export declare const DeleteUserByIDParams: zod.ZodObject<{
@@ -313,8 +343,9 @@ export declare const DeleteUserByIDParams: zod.ZodObject<{
313
343
  }, zod.z.core.$strip>;
314
344
  export declare const DeleteUserByIDResponse: zod.ZodVoid;
315
345
  /**
316
- * The identity provider accounts a sign-in linked to the user, oldest first.
317
- * The provider's subject and claims are never returned.
346
+ * Lists the identity provider accounts a sign-in linked to the user, oldest
347
+ * first. The provider's subject and claims, the data it asserts about the
348
+ * account, are never returned.
318
349
  * @summary List the provider accounts linked to a user
319
350
  */
320
351
  export declare const listUserIdentityLinksPathUserIdRegExp: RegExp;
@@ -336,12 +367,13 @@ export declare const ListUserIdentityLinksResponse: zod.ZodObject<{
336
367
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
337
368
  }, zod.z.core.$strip>;
338
369
  /**
339
- * Returns the passkeys registered for a user, newest first, paginated with a
340
- * cursor.
370
+ * Lists the passkeys registered for a user, newest first, paginated with a
371
+ * cursor. A passkey is a WebAuthn credential that signs a user in without a
372
+ * password.
341
373
  *
342
- * Each passkey carries its id, its name and when it was registered, never the
374
+ * Each passkey carries its ID, its name and when it was registered, never the
343
375
  * credential itself.
344
- * @summary List user passkeys
376
+ * @summary List a user's passkeys
345
377
  */
346
378
  export declare const listUserPasskeysPathUserIdRegExp: RegExp;
347
379
  export declare const ListUserPasskeysParams: zod.ZodObject<{
@@ -363,11 +395,15 @@ export declare const ListUserPasskeysResponse: zod.ZodObject<{
363
395
  }, zod.z.core.$strip>;
364
396
  /**
365
397
  * Starts a WebAuthn registration ceremony for the user and returns the
366
- * creation options for `navigator.credentials.create()`. Complete the
367
- * ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
368
- * five minutes. Credentials already registered for the user are excluded
369
- * automatically.
370
- * @summary Begin passkey registration
398
+ * creation options for `navigator.credentials.create()`. A passkey is
399
+ * registered in two steps: this one returns options for the browser, and
400
+ * `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
401
+ *
402
+ * Complete the ceremony with
403
+ * `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
404
+ * minutes, using the `registration_id` this response returns. Credentials
405
+ * already registered for the user are excluded automatically.
406
+ * @summary Begin a passkey registration
371
407
  */
372
408
  export declare const beginUserPasskeyRegistrationPathUserIdRegExp: RegExp;
373
409
  export declare const BeginUserPasskeyRegistrationParams: zod.ZodObject<{
@@ -384,13 +420,16 @@ export declare const BeginUserPasskeyRegistrationResponse: zod.ZodObject<{
384
420
  options: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
385
421
  }, zod.z.core.$strip>;
386
422
  /**
387
- * Verifies the attestation against the ceremony started by
388
- * `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
389
- * rejected attestation counts against the ceremony's failure budget and the
390
- * ceremony stays open for a retry. An expired ceremony surfaces as
391
- * `att.stale_challenge`; an unknown or already-consumed registration id
392
- * surfaces as `att.not_found`.
393
- * @summary Finish passkey registration
423
+ * Verifies the attestation against the registration ceremony and stores
424
+ * the new passkey for the user. `registration_id` is the one that
425
+ * `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
426
+ * returned when it started the ceremony. The attestation is
427
+ * the browser's answer from `navigator.credentials.create()`.
428
+ *
429
+ * A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers
430
+ * `att.stale_challenge`: begin a new registration. An unknown or
431
+ * already-consumed registration ID answers `att.not_found`.
432
+ * @summary Finish a passkey registration
394
433
  */
395
434
  export declare const finishUserPasskeyRegistrationPathUserIdRegExp: RegExp;
396
435
  export declare const FinishUserPasskeyRegistrationParams: zod.ZodObject<{
@@ -407,10 +446,10 @@ export declare const FinishUserPasskeyRegistrationResponse: zod.ZodObject<{
407
446
  created_at: zod.z.ZodISODateTime;
408
447
  }, zod.z.core.$strip>;
409
448
  /**
410
- * Reports when the user's current password was set, and leaves `set_at` out
449
+ * Returns when the user's current password was set, and leaves `set_at` out
411
450
  * when the user has none. The password and its hash are never returned;
412
- * setting one is `PUT` on the same path.
413
- * @summary Get user password state
451
+ * `setUserPassword` (`PUT` on the same path) sets one.
452
+ * @summary Get a user's password state
414
453
  */
415
454
  export declare const getUserPasswordStatePathUserIdRegExp: RegExp;
416
455
  export declare const GetUserPasswordStateParams: zod.ZodObject<{
@@ -424,25 +463,49 @@ export declare const GetUserPasswordStateResponse: zod.ZodObject<{
424
463
  * policy.
425
464
  *
426
465
  * The new password replaces the current one, and setting it emits
427
- * `auth.factor.password.set`.
428
- * @summary Set user password
466
+ * `auth.factor.password.set`. A password the project's password policy
467
+ * refuses answers `user.password_policy_violation`; send one that meets the
468
+ * policy.
469
+ *
470
+ * The password policy is the one in the release that serves the caller's
471
+ * `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a
472
+ * preview URL gets that preview's policy, and one on a primary origin the
473
+ * newest primary deployment's. A request with no `Origin`, or from the
474
+ * console when the project does not list the console's origin, gets the
475
+ * project's newest primary deployment.
476
+ *
477
+ * If the request is refused:
478
+ * - `403 proj.origin_not_allowed`: the project admits no such origin. Add it
479
+ * with `zitadel origin add`.
480
+ * - `403 proj.preview_not_live`: the origin matches a preview pattern but has
481
+ * no live preview. Run `zitadel preview` on the branch.
482
+ * - `409 rel.not_deployed`: nothing is deployed to the origin. Run
483
+ * `zitadel deploy`.
484
+ * - `409 rel.no_default`: the request names no origin and the project has no
485
+ * primary deployment. Run `zitadel deploy`.
486
+ * - `409 rel.revoked`: the release that serves the origin is revoked.
487
+ * @summary Set a user's password
429
488
  */
430
489
  export declare const setUserPasswordPathUserIdRegExp: RegExp;
431
490
  export declare const SetUserPasswordParams: zod.ZodObject<{
432
491
  user_id: zod.ZodString;
433
492
  }, zod.z.core.$strip>;
493
+ export declare const SetUserPasswordHeader: zod.ZodObject<{
494
+ Origin: zod.ZodOptional<zod.ZodURL>;
495
+ }, zod.z.core.$strict>;
434
496
  export declare const SetUserPasswordBody: zod.ZodObject<{
435
497
  password: zod.ZodString;
436
498
  }, zod.z.core.$strip>;
437
499
  export declare const SetUserPasswordResponse: zod.ZodVoid;
438
500
  /**
439
- * The user's team roster, ordered by team name. Each entry carries the
440
- * team's name, so a client renders a page without resolving ids one by one.
441
- *
442
- * This is the N:N roster and it is not lifecycle ownership: the single team
443
- * that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
444
- * on the user read endpoints. Memberships the user was removed from are not
445
- * returned.
501
+ * Lists the teams a user belongs to, ordered by team name. Each entry carries
502
+ * the team's name, so a client renders a page without resolving IDs one by
503
+ * one.
504
+ *
505
+ * This is the user's team memberships, not lifecycle ownership: the single
506
+ * team that owns the user's lifecycle is reported as
507
+ * `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships
508
+ * the user was removed from are not returned.
446
509
  * @summary List the teams a user belongs to
447
510
  */
448
511
  export declare const listUserTeamsPathUserIdRegExp: RegExp;
@@ -584,8 +647,9 @@ export declare const PatchMyUserResponse: zod.ZodObject<{
584
647
  teams_truncated: zod.ZodOptional<zod.ZodBoolean>;
585
648
  }, zod.z.core.$strip>;
586
649
  /**
587
- * The identity provider accounts a sign-in linked to the signed-in user,
588
- * oldest first. The provider's subject and claims are never returned.
650
+ * Lists the identity provider accounts a sign-in linked to the signed-in user,
651
+ * oldest first. The provider's subject and claims, the data it asserts about
652
+ * the account, are never returned.
589
653
  *
590
654
  * With `project_id`, the links are listed only when the session belongs to
591
655
  * that project.
@@ -608,9 +672,10 @@ export declare const ListMyIdentityLinksResponse: zod.ZodObject<{
608
672
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
609
673
  }, zod.z.core.$strip>;
610
674
  /**
611
- * The signed-in user's own passkeys, newest first, paginated with a cursor.
612
- * Each passkey carries its id, its name and when it was registered, never the
613
- * credential itself.
675
+ * Lists the signed-in user's own passkeys, newest first, paginated with a
676
+ * cursor. A passkey is a WebAuthn credential that signs a user in without a
677
+ * password. Each passkey carries its ID, its name and when it was registered,
678
+ * never the credential itself.
614
679
  *
615
680
  * With `project_id`, the passkeys are listed only when the session belongs to
616
681
  * that project.
@@ -633,7 +698,7 @@ export declare const ListMyPasskeysResponse: zod.ZodObject<{
633
698
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
634
699
  }, zod.z.core.$strip>;
635
700
  /**
636
- * Reports when the signed-in user's current password was set, and leaves
701
+ * Returns when the signed-in user's current password was set, and leaves
637
702
  * `set_at` out when they have none. The password and its hash are never
638
703
  * returned.
639
704
  *
@@ -649,12 +714,12 @@ export declare const GetMyPasswordStateResponse: zod.ZodObject<{
649
714
  set_at: zod.ZodOptional<zod.z.ZodISODateTime>;
650
715
  }, zod.z.core.$strip>;
651
716
  /**
652
- * The projects the signed-in user can act on: those they hold an active grant
653
- * on, either directly or through a team they are a member of. For a platform
654
- * operator (ADR 075) that is every project of the deployment. Ordered by
655
- * project id and paged with an opaque cursor.
717
+ * Lists the projects the signed-in user can act on: those they hold an active
718
+ * grant on, either directly or through a team they are a member of. For a
719
+ * platform operator, someone who runs the deployment, that is every project of
720
+ * the deployment. Ordered by project ID and paged with an opaque cursor.
656
721
  *
657
- * This is not the same question as `queryProjects`, which answers with the one
722
+ * This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one
658
723
  * project the calling credential is bound to. Here the session is the caller
659
724
  * and the grants are the answer, so the list spans projects.
660
725
  *
@@ -718,7 +783,7 @@ export declare const ListMyProjectsResponse: zod.ZodObject<{
718
783
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
719
784
  }, zod.z.core.$strip>;
720
785
  /**
721
- * The schema the signed-in user's own record is validated against.
786
+ * Returns the schema that validates the signed-in user's own record.
722
787
  *
723
788
  * With `project_id`, the schema is returned only when the session belongs to
724
789
  * that project.
@@ -776,7 +841,7 @@ export declare const GetMyUserSchemaResponse: zod.ZodObject<{
776
841
  }, zod.z.core.$strip>;
777
842
  }, zod.z.core.$strip>;
778
843
  /**
779
- * The signed-in user's own team roster, ordered by team name.
844
+ * Lists the teams the signed-in user belongs to, ordered by team name.
780
845
  *
781
846
  * With `project_id`, the teams are listed only when the session belongs to
782
847
  * that project.
@@ -805,34 +870,56 @@ export declare const ListMyTeamsResponse: zod.ZodObject<{
805
870
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
806
871
  }, zod.z.core.$strip>;
807
872
  /**
808
- * Resolves a flow definition based on purpose + audience context and returns
809
- * the first capability step. Creates a new session implicitly unless
810
- * `session_id` is provided, together with that session's `session_token`
811
- * (for step-up / reauth on an existing session).
812
- *
813
- * The browser `Origin` header selects which deployment serves this attempt:
814
- * the gate admits the origin against the project's origin patterns and live
815
- * previews, the newest deployment to that exact origin is the target, and
816
- * that deployment's release supplies flow definitions, user schemas and
817
- * branding. The resolved deployment is sealed into the `_zflow` cookie so
818
- * later steps keep the same configuration. An origin that matches no pattern
819
- * answers `403` with `proj.origin_not_allowed`; one that matches a preview
820
- * pattern with no live preview answers `403` with `proj.preview_not_live`;
821
- * nothing deployed to the target answers `409` with `rel.not_deployed`; a
822
- * revoked release answers `409` with `rel.revoked`. A request with no
823
- * `Origin` passes the gate and still needs a deployment target. A loopback
824
- * origin passes it too, and so does the server's own origin, from which its
825
- * console previews a project's login; a step submitted from the server's
826
- * own origin is still refused unless the project lists it.
827
- *
828
- * The response contains an `id` field — the flow handle. Use it as the path
873
+ * Starts a flow: resolves a flow definition from the request's purpose and
874
+ * audience, and returns the first step.
875
+ *
876
+ * The flow endpoints are the runtime calls the login component
877
+ * (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
878
+ * step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to
879
+ * get the next step. This call creates a new session implicitly, unless
880
+ * `session_id` is provided together with that session's `session_token`
881
+ * (for step-up or reauthentication on an existing session).
882
+ *
883
+ * The browser `Origin` header selects which deployment serves this attempt.
884
+ * The server checks the origin against the project's origin patterns and live
885
+ * previews, and the deployment that origin serves is the target: the
886
+ * project's newest primary deployment when it names a primary origin, or the
887
+ * newest live deployment to a preview URL. A
888
+ * deployment is a release, the immutable bundle of the project's
889
+ * configuration, made live at an origin. The deployment's release supplies
890
+ * flow definitions, user schemas and branding. The resolved deployment is
891
+ * sealed into the `_zflow` cookie so later steps keep the same
892
+ * configuration.
893
+ *
894
+ * - An origin that matches no pattern answers `403` with
895
+ * `proj.origin_not_allowed`, including when the project lists no origins.
896
+ * Add the origin with `zitadel origin add`.
897
+ * - An origin that matches a preview pattern with no live preview answers
898
+ * `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.
899
+ * - Nothing deployed to a listed origin or a live preview answers `409`
900
+ * with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added
901
+ * since the last deploy serves nothing until the next one.
902
+ * - A loopback origin the project does not list answers `409` with
903
+ * `rel.not_deployed` too, as no deployment can name it. Add it with
904
+ * `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.
905
+ * - A revoked release answers `409` with `rel.revoked`.
906
+ *
907
+ * A request with no `Origin` passes the check, and so does the server's own
908
+ * origin, from which its console previews a project's login. Both are served
909
+ * the project's newest primary deployment unless the project lists that
910
+ * origin; with no primary deployment they answer `409` with
911
+ * `rel.no_default`. A loopback origin passes the check and is its own
912
+ * target. A step submitted from the server's own origin is still refused
913
+ * unless the project lists it.
914
+ *
915
+ * The response contains an `id` field, the flow handle. Use it as the path
829
916
  * parameter for all subsequent `/flow/{id}/submit` calls.
830
917
  *
831
918
  * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
832
919
  * the flow's orchestration state (current step, collected data, history).
833
- * The server is stateless between requests — all flow state lives in this
920
+ * The server is stateless between requests: all flow state lives in this
834
921
  * cookie. The browser sends it automatically on subsequent requests.
835
- * @summary Start a new flow
922
+ * @summary Start a flow
836
923
  */
837
924
  export declare const CreateFlowHeader: zod.ZodObject<{
838
925
  Origin: zod.ZodOptional<zod.ZodURL>;
@@ -1111,13 +1198,17 @@ export declare const CreateFlowResponse: zod.ZodObject<{
1111
1198
  handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
1112
1199
  }, zod.z.core.$strip>;
1113
1200
  /**
1114
- * Returns the current capability step without advancing the state machine.
1115
- * Useful for page reloads or re-rendering after a network error.
1201
+ * Returns the current step of a flow without advancing it. Use it to render
1202
+ * the step again after a page reload or a network error.
1203
+ *
1204
+ * The flow endpoints are the runtime calls the login component
1205
+ * (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and
1206
+ * `submitFlowStep` (`POST /flow/{id}/submit`) advances it.
1116
1207
  *
1117
1208
  * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
1118
1209
  * re-resolve from `Origin`. If that release was revoked since the attempt
1119
1210
  * started, the response is `409` with `rel.revoked`.
1120
- * @summary Get current step (re-render)
1211
+ * @summary Get the current step of a flow
1121
1212
  */
1122
1213
  export declare const GetFlowStepParams: zod.ZodObject<{
1123
1214
  id: zod.ZodString;
@@ -1367,12 +1458,14 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
1367
1458
  handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
1368
1459
  }, zod.z.core.$strip>;
1369
1460
  /**
1370
- * Submits user input for the current step. The server validates,
1371
- * processes (e.g., verifies a credential), advances the state machine
1372
- * through any invisible steps, and returns the next visible step.
1461
+ * Submits the user's input for the current step of a flow. The server
1462
+ * validates it, processes it (for example, verifies a credential), advances
1463
+ * the flow through any invisible steps, and returns the next visible step.
1464
+ * The flow endpoints are the runtime calls the login component
1465
+ * (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.
1373
1466
  *
1374
1467
  * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
1375
- * with the new flow state. The server is stateless — all orchestration
1468
+ * with the new flow state. The server is stateless: all orchestration
1376
1469
  * state is carried in this cookie between requests.
1377
1470
  *
1378
1471
  * **Important:** The `id` in the response may differ from the `id` used in
@@ -1388,17 +1481,17 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
1388
1481
  * | `behavior` | Action |
1389
1482
  * |------------- |------------------------------------------------------------|
1390
1483
  * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
1391
- * | `show` | Render the step as a success screen (e.g., registration). |
1484
+ * | `show` | Render the step as a success screen, such as registration. |
1392
1485
  *
1393
1486
  * A `complete` step is only returned when the **entire flow stack** is done.
1394
- * If a stacked flow (e.g., recovery pivoted from login) finishes, the server
1395
- * auto-pops to the parent flow and returns the parent's next step — the
1396
- * frontend never sees a `complete` for intermediate flows.
1487
+ * If a stacked flow (for example, recovery pivoted from login) finishes, the
1488
+ * server auto-pops to the parent flow and returns the parent's next step.
1489
+ * The frontend never sees a `complete` for intermediate flows.
1397
1490
  *
1398
1491
  * ## External sign-in
1399
1492
  *
1400
1493
  * `{action: "sso", sso_provider_id, return_target}` on a step that offers
1401
- * `sso_providers` returns the engine-emitted `sso-redirect` step, whose
1494
+ * `sso_providers` returns the server-emitted `sso-redirect` step, whose
1402
1495
  * `redirect_url` the frontend navigates to.
1403
1496
  *
1404
1497
  * - The flow state does not change, but `_zflow` is re-sealed like on
@@ -1411,15 +1504,16 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
1411
1504
  * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
1412
1505
  * `__Host-` prefix is dropped because it requires `Secure`.
1413
1506
  *
1414
- * A connection whose `client_id` is a `${{ NAME }}` reference has it filled
1415
- * from the project's variables. A provider the engine cannot start a
1416
- * sign-in with, including a reference with no variable behind it,
1417
- * re-renders the step with `error.sso_unavailable`.
1507
+ * An identity provider (an external sign-in such as Google) whose
1508
+ * `client_id` is a `${{ NAME }}` reference has it filled from the project's
1509
+ * variables. A provider the server cannot start a sign-in with, including a
1510
+ * reference with no variable behind it, re-renders the step with
1511
+ * `error.sso_unavailable`.
1418
1512
  *
1419
1513
  * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
1420
1514
  * re-resolve from `Origin`. If that release was revoked since the attempt
1421
1515
  * started, the response is `409` with `rel.revoked`.
1422
- * @summary Submit step data and advance
1516
+ * @summary Submit a flow step
1423
1517
  */
1424
1518
  export declare const SubmitFlowStepParams: zod.ZodObject<{
1425
1519
  id: zod.ZodString;
@@ -1686,20 +1780,36 @@ export declare const SubmitFlowStepResponse: zod.ZodObject<{
1686
1780
  handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
1687
1781
  }, zod.z.core.$strip>;
1688
1782
  /**
1689
- * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
1690
- *
1691
- * An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
1692
- * It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
1693
- *
1694
- * Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
1695
- * also include session_id and that session's session_token to add factors to an existing session.
1696
- *
1697
- * The project comes from the project secret. A body `project_id` that disagrees
1698
- * answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are
1699
- * filled only when create runs with a runtime resolution already on the
1700
- * context (the flow create path); this HTTP entry point does not resolve
1701
- * Origin or refuse a revoked release itself.
1702
- * @summary Create a new authentication attempt
1783
+ * Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.
1784
+ *
1785
+ * An authentication attempt collects the proofs for one sign-in and ends in a
1786
+ * handoff token. A handoff token is the short-lived, single-use credential that
1787
+ * a completed attempt hands to the session exchange. A client makes these calls
1788
+ * in order:
1789
+ *
1790
+ * 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
1791
+ * 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
1792
+ * `identifier`, `password` or `passkey`.
1793
+ * 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
1794
+ * credential, code or assertion. Repeat steps 2 and 3 until
1795
+ * `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
1796
+ * `required_factors` is verified.
1797
+ * 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
1798
+ * 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
1799
+ * for the session and its `session_token`.
1800
+ *
1801
+ * The body takes a `project_id` and a `challenge_nonce` (from
1802
+ * `POST /bootstrap/challenge`). For step-up authentication, which adds factors
1803
+ * to an existing session, also send that session's `session_id` and its
1804
+ * `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.
1805
+ * The attempt's `attempt_id` in the response is the ID every later call takes.
1806
+ *
1807
+ * The project comes from the project secret. A body `project_id` that names
1808
+ * another project answers `403` with `proj.mismatch`: send the credential's own
1809
+ * project. The attempt seals the project's newest primary deployment, whatever
1810
+ * the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a
1811
+ * revoked release answers `409` with `rel.revoked`.
1812
+ * @summary Create an authentication attempt
1703
1813
  */
1704
1814
  export declare const createAuthAttemptBodyProjectIdRegExp: RegExp;
1705
1815
  export declare const createAuthAttemptBodySessionIdOneRegExp: RegExp;
@@ -1799,14 +1909,14 @@ export declare const CreateAuthAttemptResponse: zod.ZodObject<{
1799
1909
  created_at: zod.z.ZodISODateTime;
1800
1910
  }, zod.z.core.$strip>;
1801
1911
  /**
1802
- * Polls the current state of an authentication attempt.
1912
+ * Returns the current state of an authentication attempt, one sign-in round.
1803
1913
  *
1804
- * Returns the attempt's state, available factors for the next challenge,
1805
- * challenges issued so far, and any errors preventing progress.
1914
+ * The response holds the attempt's state, available factors for the next
1915
+ * challenge, challenges issued so far, and any errors preventing progress.
1806
1916
  *
1807
- * Use this for polling during long-running factor verifications (e.g., waiting for
1808
- * a federated IdP callback or a device flow).
1809
- * @summary Get authentication attempt state
1917
+ * Use it to poll during long-running factor verifications, for example waiting
1918
+ * for a federated identity provider (IdP) callback or a device flow.
1919
+ * @summary Get an authentication attempt by ID
1810
1920
  */
1811
1921
  export declare const getAuthAttemptPathAttemptIdRegExp: RegExp;
1812
1922
  export declare const GetAuthAttemptParams: zod.ZodObject<{
@@ -1902,12 +2012,12 @@ export declare const GetAuthAttemptResponse: zod.ZodObject<{
1902
2012
  created_at: zod.z.ZodISODateTime;
1903
2013
  }, zod.z.core.$strip>;
1904
2014
  /**
1905
- * Issues a single-factor verification challenge within an auth attempt.
2015
+ * Issues a challenge, a request to prove one factor, within an authentication attempt.
1906
2016
  *
1907
- * This advances the authentication state machine by requesting a specific factor method
1908
- * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
1909
- * including method, metadata, and any UI hints. The client then verifies the proof
1910
- * by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
2017
+ * A challenge names one factor method, such as password, passkey, TOTP or OTP
2018
+ * via SMS. The response carries the challenge's `challenge_id`, method,
2019
+ * metadata and any UI hints. The client then submits the proof with
2020
+ * `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
1911
2021
  * @summary Issue a factor challenge
1912
2022
  */
1913
2023
  export declare const issueChallengePathAttemptIdRegExp: RegExp;
@@ -1964,17 +2074,22 @@ export declare const IssueChallengeResponse: zod.ZodObject<{
1964
2074
  }, zod.z.core.$strip>]>>;
1965
2075
  }, zod.z.core.$strip>;
1966
2076
  /**
1967
- * Submits a proof (credential, code, assertion) to verify a factor challenge.
2077
+ * Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.
1968
2078
  *
1969
2079
  * The proof format depends on the challenge method. For example:
2080
+ *
1970
2081
  * - `password` method: { password: "…" }
1971
2082
  * - `totp` method: { totp: { code: "123456" } }
1972
2083
  * - `passkey` method: { passkey: { assertion: "…" } }
1973
2084
  * - `recovery_code` method: { recovery_code: "…" }
1974
2085
  *
1975
- * On successful verification, the factor is written to the auth attempt.
1976
- * The attempt moves to the next pending challenge or completes if all required factors are verified.
1977
- * @summary Verify a factor proof
2086
+ * On success, the factor is recorded on the authentication attempt. The
2087
+ * attempt moves to the next pending challenge, or completes when every required
2088
+ * factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
2089
+ *
2090
+ * A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
2091
+ * again. There is no retry limit: you can retry until the attempt expires.
2092
+ * @summary Verify a challenge proof
1978
2093
  */
1979
2094
  export declare const verifyChallengeProofPathAttemptIdRegExp: RegExp;
1980
2095
  export declare const verifyChallengeProofPathChallengeIdRegExp: RegExp;
@@ -2084,19 +2199,24 @@ export declare const VerifyChallengeProofResponse: zod.ZodObject<{
2084
2199
  created_at: zod.z.ZodISODateTime;
2085
2200
  }, zod.z.core.$strip>;
2086
2201
  /**
2087
- * Completes the authentication attempt and mints a `handoff_token`.
2202
+ * Completes an authentication attempt and mints a `handoff_token`.
2203
+ *
2204
+ * A handoff token is the short-lived credential that a completed attempt hands
2205
+ * to the session exchange. Call this after every required factor is verified and
2206
+ * the attempt is in `completed` state. Otherwise it answers `409` with
2207
+ * `att.not_completed`: verify the remaining factors, then call again.
2088
2208
  *
2089
- * Call this after all required factors have been verified and the attempt is in `completed` state.
2090
- * The handoff token is short-lived (≤60 seconds) and must be exchanged at
2091
- * POST /sessions/exchange to receive the final session and session_token.
2209
+ * Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60
2210
+ * seconds to receive the session and its `session_token`. The handoff token is:
2092
2211
  *
2093
- * The handoff token is:
2094
- * - Single-use (atomic exchange, no retry)
2095
- * - Audience-bound (requires matching project key for exchange)
2096
- * - Idempotency-safe within a 5-minute window (see conventions)
2212
+ * - Single-use: exchange it once, with no retry.
2213
+ * - Bound to the project: the exchange needs the same project's credential.
2214
+ * - Created once: a second call answers `409 att.already_handed_off`, even
2215
+ * with the same idempotency key.
2097
2216
  *
2098
- * Revoke refusal for a sealed release happens at handoff exchange, not here.
2099
- * @summary Complete authentication and create handoff token
2217
+ * A revoked release is refused when the handoff is exchanged, not here. A
2218
+ * release is the configuration that `zitadel deploy` publishes.
2219
+ * @summary Complete an authentication attempt and create a handoff token
2100
2220
  */
2101
2221
  export declare const createHandoffPathAttemptIdRegExp: RegExp;
2102
2222
  export declare const CreateHandoffParams: zod.ZodObject<{
@@ -2113,10 +2233,13 @@ export declare const CreateHandoffResponse: zod.ZodObject<{
2113
2233
  * Creates a project and returns its project secret and preview secret, which no
2114
2234
  * other endpoint returns.
2115
2235
  *
2116
- * The request needs no credential and is rate-limited. Unless `seed_defaults` is
2117
- * `false`, the project starts with a default user schema and flow; the CLI turns
2118
- * that off and uploads its own from `.zitadel/`.
2119
- * @summary Create project
2236
+ * A project is the top-level boundary that holds users, sessions and
2237
+ * configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).
2238
+ *
2239
+ * The request needs no credential and is rate-limited. On `429`, wait and retry.
2240
+ * Unless `seed_defaults` is `false`, the project starts with a default user schema
2241
+ * and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.
2242
+ * @summary Create a project
2120
2243
  */
2121
2244
  export declare const createProjectBodySeedDefaultsDefault = true;
2122
2245
  export declare const CreateProjectBody: zod.ZodObject<{
@@ -2148,9 +2271,9 @@ export declare const CreateProjectResponse: zod.ZodObject<{
2148
2271
  * Returns the project the project secret belongs to, as a page of at most one
2149
2272
  * project.
2150
2273
  *
2151
- * A credential is scoped to one project until ADR 036 widens it, so the filters
2152
- * and sorting apply to that project alone. The projects a signed-in person can
2153
- * act on are listed by `GET /users/me/projects`.
2274
+ * A credential is scoped to one project today, so the filters and sorting
2275
+ * apply to that project alone. A signed-in person lists the projects they can
2276
+ * act on with `GET /users/me/projects`.
2154
2277
  * @summary Query projects
2155
2278
  */
2156
2279
  export declare const queryProjectsBodyLimitDefault = 20;
@@ -2225,8 +2348,12 @@ export declare const QueryProjectsResponse: zod.ZodObject<{
2225
2348
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
2226
2349
  }, zod.z.core.$strip>;
2227
2350
  /**
2228
- * Returns the current state of a project.
2229
- * @summary Get project
2351
+ * Returns a project's current state: its name, origins, password hashing
2352
+ * method and owning team.
2353
+ *
2354
+ * Authenticate with the project secret, or with the session of a signed-in
2355
+ * person who holds a grant on the project.
2356
+ * @summary Get a project by ID
2230
2357
  */
2231
2358
  export declare const getProjectPathProjectIdRegExp: RegExp;
2232
2359
  export declare const GetProjectParams: zod.ZodObject<{
@@ -2273,8 +2400,16 @@ export declare const GetProjectResponse: zod.ZodIntersection<zod.ZodObject<{
2273
2400
  owning_team_id: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
2274
2401
  }, zod.z.core.$strip>>;
2275
2402
  /**
2276
- * Updates the state of a project.
2277
- * @summary Update project
2403
+ * Updates a project's name or password hashing method.
2404
+ *
2405
+ * Fields you leave out keep their value. Sending `password_hash: null` drops
2406
+ * the project's own method and returns to the server default. A change of
2407
+ * method rewrites no stored password: each moves to the new method when its
2408
+ * owner next signs in or sets a new password.
2409
+ *
2410
+ * Authenticate with the project secret, or with the session of a signed-in
2411
+ * person who can act on the project.
2412
+ * @summary Update a project
2278
2413
  */
2279
2414
  export declare const patchProjectPathProjectIdRegExp: RegExp;
2280
2415
  export declare const PatchProjectParams: zod.ZodObject<{
@@ -2348,35 +2483,35 @@ export declare const PatchProjectResponse: zod.ZodIntersection<zod.ZodObject<{
2348
2483
  owning_team_id: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
2349
2484
  }, zod.z.core.$strip>>;
2350
2485
  /**
2351
- * Lists the people who can administer the project, and how each of them
2352
- * gets that access. A person appears once, with one entry in `sources` per
2353
- * way they hold it:
2354
- *
2355
- * - `owning_team`: an active member of the team that owns the project
2356
- * (ADR 054 §2). Removing a grant does not remove this access; it ends
2357
- * only when the person leaves the team or the project changes owner.
2358
- * - `grant`: an unexpired `admin` grant on the project, either to the
2359
- * person (`grant_id` only) or to a team they are an active member of
2360
- * (`grant_id` and `team`). Revoking that grant removes this source.
2361
- *
2362
- * The list follows the authorization check: team membership is read from
2363
- * the same membership projection the check expands, so a person who left a
2364
- * team, or whose team or user was deactivated, is not listed through it.
2365
- * Grants that expired or carry a lower role are left out. A person whose
2366
- * only access is a `viewer` or `editor` grant is not an admin and is not
2367
- * listed. Like the check, the list does not look at a person's user status
2368
- * beyond that, so a direct grant to a suspended person is listed.
2486
+ * Lists the people who can administer a project, and how each of them
2487
+ * holds that access.
2488
+ *
2489
+ * A person appears once, with one entry in `sources` per way they hold it:
2490
+ *
2491
+ * - `owning_team`: an active member of the team that owns the project, the
2492
+ * team a claim attaches the project to. Removing a grant does not remove
2493
+ * this access. It ends only when the person leaves the team or the
2494
+ * project changes owner.
2495
+ * - `grant`: an unexpired `admin` grant on the project, which is a role
2496
+ * given to the person (`grant_id` only) or to a team they are an active
2497
+ * member of (`grant_id` and `team`). Revoking that grant removes this
2498
+ * source.
2499
+ *
2500
+ * The list follows the authorization check. A person who left a team, or
2501
+ * whose team or user was deactivated, is not listed through it. Grants that
2502
+ * expired or carry a lower role are left out. A person whose only access is a
2503
+ * `viewer` or `editor` grant is not an admin and is not listed. Like the
2504
+ * check, the list does not look at a person's user status beyond that, so a
2505
+ * direct grant to a suspended person is listed.
2369
2506
  *
2370
2507
  * A person whose access comes only through teams the caller is not a
2371
- * member of is left out, and a team the caller is not in is named by
2372
- * `team_id` only. The grant to such a team still shows in the project's
2373
- * grants.
2374
- *
2375
- * Ordered by `user_id` and paginated with `page_token`.
2508
+ * member of is left out. A team the caller is not in is named by `team_id`
2509
+ * only. The grant to such a team still shows in the project's grants.
2376
2510
  *
2377
- * Accepts either a project secret (`oauth2`) or a user-bound Console
2378
- * session cookie (`nextgenSession`) that can read the project.
2379
- * @summary List project admins
2511
+ * The list is ordered by `user_id` and paginated with `page_token`.
2512
+ * Authenticate with a project secret (`oauth2`), or with the session cookie
2513
+ * (`sessionCookie`) of a signed-in person who can read the project.
2514
+ * @summary List the admins of a project
2380
2515
  */
2381
2516
  export declare const listProjectAdminsPathProjectIdRegExp: RegExp;
2382
2517
  export declare const ListProjectAdminsParams: zod.ZodObject<{
@@ -2419,11 +2554,22 @@ export declare const ListProjectAdminsResponse: zod.ZodObject<{
2419
2554
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
2420
2555
  }, zod.z.core.$strip>;
2421
2556
  /**
2422
- * Starts a claim challenge for an unclaimed project. Authenticated by the
2423
- * project secret, this mints a single-use, short-lived challenge and returns
2424
- * the `claim_url` the developer opens in a browser to complete the claim,
2425
- * together with the `challenge_id` the CLI polls with. The exact expiry is
2426
- * carried by `expires_at` on the response.
2557
+ * Starts a claim, which attaches a project created before sign-in to a
2558
+ * team, and returns the `claim_url` to open in a browser.
2559
+ *
2560
+ * A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)
2561
+ * so that the team's members administer it. This operation mints a
2562
+ * single-use, short-lived challenge for an unclaimed project. The developer
2563
+ * opens `claim_url`, signs in and completes the claim in the browser; see
2564
+ * `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
2565
+ * as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
2566
+ *
2567
+ * Authenticate with the project secret that `createProject` (`POST /projects`) returns as
2568
+ * `project_secret`.
2569
+ *
2570
+ * A `409` means a team already claimed the project, and its details name
2571
+ * that team. A `410` means the project's 14-day claim window has closed,
2572
+ * which is final.
2427
2573
  * @summary Initialize a project claim
2428
2574
  */
2429
2575
  export declare const initClaimPathProjectIdRegExp: RegExp;
@@ -2437,15 +2583,23 @@ export declare const InitClaimResponse: zod.ZodObject<{
2437
2583
  expires_at: zod.z.ZodISODateTime;
2438
2584
  }, zod.z.core.$strip>;
2439
2585
  /**
2440
- * Polled by the CLI while a browser completes the claim. Authorized by the
2441
- * project secret that initiated the challenge. Returns `pending`, or
2442
- * `completed` with the owning team, the claim timestamp, and the dashboard
2443
- * URL once the project is claimed. The claim grant, not the polled
2444
- * challenge, is the source of truth: a project claimed through another
2445
- * concurrent challenge also reports `completed`, and a completed claim
2446
- * keeps reporting `completed` past this challenge's expiry and past the
2447
- * project's claim window.
2448
- * @summary Get claim status
2586
+ * Returns the status of a claim challenge, `pending` or `completed`, while a
2587
+ * browser completes the claim.
2588
+ *
2589
+ * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
2590
+ * `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
2591
+ * Once the project is claimed, the response is `completed` with the owning
2592
+ * team, the claim timestamp and the dashboard URL.
2593
+ *
2594
+ * The claim itself, not the polled challenge, decides the status. A project
2595
+ * claimed through another concurrent challenge also reports `completed`. A
2596
+ * completed claim keeps reporting `completed` past this challenge's expiry
2597
+ * and past the project's claim window.
2598
+ *
2599
+ * Pass the `challenge_id` that `initClaim` returns. Authenticate with the
2600
+ * project secret that started the challenge. On `410` with `proj.claim_expired`, call
2601
+ * `initClaim` again for a fresh challenge.
2602
+ * @summary Get the status of a project claim
2449
2603
  */
2450
2604
  export declare const getClaimStatusPathProjectIdRegExp: RegExp;
2451
2605
  export declare const GetClaimStatusParams: zod.ZodObject<{
@@ -2469,10 +2623,18 @@ export declare const GetClaimStatusResponse: zod.ZodUnion<readonly [zod.ZodObjec
2469
2623
  dashboard_url: zod.ZodURL;
2470
2624
  }, zod.z.core.$strip>]>;
2471
2625
  /**
2472
- * Called by the browser after the developer authenticates on the claim page.
2473
- * Authenticated by the `__nextgen_session` cookie, it attaches the project to
2474
- * the developer's personal team using the `challenge_id` from the claim URL as
2475
- * its single-use, browser-safe authorization.
2626
+ * Completes a claim by attaching the project to the signed-in developer's
2627
+ * personal team.
2628
+ *
2629
+ * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
2630
+ * so that the team's members administer it. The claim page in the browser
2631
+ * calls this operation after the developer signs in, with the session cookie.
2632
+ * The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the
2633
+ * request's single-use, browser-safe authorization.
2634
+ *
2635
+ * Claims are first-claim-wins and spend the challenge. If a team already
2636
+ * claimed the project, the request answers `409`. If the challenge lapsed
2637
+ * (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.
2476
2638
  * @summary Complete a project claim
2477
2639
  */
2478
2640
  export declare const completeClaimPathProjectIdRegExp: RegExp;
@@ -2491,12 +2653,18 @@ export declare const CompleteClaimResponse: zod.ZodObject<{
2491
2653
  claimed_at: zod.z.ZodISODateTime;
2492
2654
  }, zod.z.core.$strip>;
2493
2655
  /**
2494
- * Read by the claim page in the browser to show how long is left to claim the
2495
- * project. Unauthenticated by design: the claim page runs this before the
2496
- * developer has signed in, and holding the `challenge_id` from the claim URL
2497
- * is the authorization — the same capability `claim/complete` accepts. It
2498
- * reveals only the window, never the project itself, and unlike
2499
- * `claim/complete` it spends nothing, so a reload is free.
2656
+ * Returns when a project's claim window closes and whether it has already
2657
+ * closed.
2658
+ *
2659
+ * The claim window is the 14 days after a project is created during which a
2660
+ * team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page
2661
+ * in the browser calls this operation to show how long is left.
2662
+ *
2663
+ * The request needs no credential, because the claim page calls it before the
2664
+ * developer has signed in. Holding the `challenge_id` from the claim URL that
2665
+ * `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)
2666
+ * accepts. The response reveals only the window, never the project itself.
2667
+ * Unlike `completeClaim` it spends nothing, so reloading the page is safe.
2500
2668
  * @summary Get the claim window for a project
2501
2669
  */
2502
2670
  export declare const getClaimWindowPathProjectIdRegExp: RegExp;
@@ -2512,10 +2680,22 @@ export declare const GetClaimWindowResponse: zod.ZodObject<{
2512
2680
  expired: zod.ZodBoolean;
2513
2681
  }, zod.z.core.$strip>;
2514
2682
  /**
2515
- * Adds one `{pattern, kind}` to the project's origins. A primary pattern
2516
- * must be an exact URL (no wildcard). Preview patterns may include a single
2517
- * DNS-label wildcard. Adding a pattern that already exists with the same
2518
- * kind is idempotent and answers 201 with the stored origin.
2683
+ * Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.
2684
+ *
2685
+ * An origin pattern says which web origins the project accepts. A `primary`
2686
+ * pattern must be an exact URL with no wildcard. A `preview` pattern may
2687
+ * include a single DNS-label wildcard.
2688
+ *
2689
+ * While the project has no patterns, it admits no origin except a loopback
2690
+ * origin, so the first pattern you add opens it to the origins that
2691
+ * pattern matches. Admitting an origin is not serving it: a new `primary`
2692
+ * origin answers `rel.not_deployed` until the next deploy to primary
2693
+ * (`zitadel deploy`).
2694
+ *
2695
+ * Adding a pattern that already exists with the same kind is idempotent and
2696
+ * answers `201` with the stored origin. If the pattern exists with the other
2697
+ * kind, the request is refused with `origin.kind_conflict`: remove it with
2698
+ * `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
2519
2699
  * @summary Add an origin pattern
2520
2700
  */
2521
2701
  export declare const addOriginPathProjectIdRegExp: RegExp;
@@ -2537,10 +2717,15 @@ export declare const AddOriginResponse: zod.ZodObject<{
2537
2717
  }>;
2538
2718
  }, zod.z.core.$strip>;
2539
2719
  /**
2540
- * Removes one pattern from the project's origins. Requests from URLs only
2541
- * that pattern admitted are refused from then on; live previews and
2542
- * deployment history are untouched. Removing a pattern that is already
2543
- * absent is idempotent and answers 204.
2720
+ * Removes one origin pattern from the project's origins.
2721
+ *
2722
+ * Requests from URLs only that pattern admitted are refused from then on.
2723
+ * Live previews and deployment history are untouched. Removing the last
2724
+ * pattern leaves an empty list, which admits no origin except a loopback
2725
+ * origin.
2726
+ * Removing a pattern that is already absent is idempotent and answers `204`.
2727
+ *
2728
+ * The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.
2544
2729
  * @summary Remove an origin pattern
2545
2730
  */
2546
2731
  export declare const removeOriginPathProjectIdRegExp: RegExp;
@@ -2552,10 +2737,12 @@ export declare const RemoveOriginBody: zod.ZodObject<{
2552
2737
  }, zod.z.core.$strip>;
2553
2738
  export declare const RemoveOriginResponse: zod.ZodVoid;
2554
2739
  /**
2555
- * Lists the project's live previews, newest first by `created_at`. An
2556
- * expired or removed preview is not listed; what was deployed to it stays
2740
+ * Lists the project's live previews, newest first by `created_at`.
2741
+ *
2742
+ * A preview is a URL with a deployment on it, served until it expires.
2743
+ * An expired or removed preview is not listed. What was deployed to it stays
2557
2744
  * in `GET /deployments`.
2558
- * @summary List previews
2745
+ * @summary List a project's previews
2559
2746
  */
2560
2747
  export declare const listPreviewsPathProjectIdRegExp: RegExp;
2561
2748
  export declare const ListPreviewsParams: zod.ZodObject<{
@@ -2579,14 +2766,14 @@ export declare const ListPreviewsResponse: zod.ZodObject<{
2579
2766
  }, zod.z.core.$strip>;
2580
2767
  /**
2581
2768
  * Ends a preview before it expires: the URL stops being served at once.
2582
- * The deployments to it stay in the history.
2583
2769
  *
2584
- * Idempotent: a URL with no live preview, including one that has already
2585
- * expired or was removed before, answers `204` too, so a cleanup that
2586
- * races the expiry still succeeds.
2770
+ * The deployments to it stay in the history. The call is idempotent.
2771
+ * A URL with no live preview answers `204` too. That includes one that
2772
+ * expired or was removed before, so a cleanup that races the expiry still
2773
+ * succeeds.
2587
2774
  *
2588
2775
  * The URL travels in the body rather than the path because an origin
2589
- * contains `/`.
2776
+ * contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
2590
2777
  * @summary Remove a preview
2591
2778
  */
2592
2779
  export declare const removePreviewPathProjectIdRegExp: RegExp;
@@ -2600,28 +2787,32 @@ export declare const RemovePreviewBody: zod.ZodObject<{
2600
2787
  }, zod.z.core.$strip>;
2601
2788
  export declare const RemovePreviewResponse: zod.ZodVoid;
2602
2789
  /**
2603
- * Creates an anonymous session shell with no user and no factors (`state: building`).
2790
+ * Creates an anonymous session with no user and no factors (`state: building`).
2791
+ *
2792
+ * A session is the durable record of a signed-in user. This call is optional: an
2793
+ * authentication attempt creates a session implicitly if none is provided.
2794
+ * Create one explicitly when you want to:
2604
2795
  *
2605
- * This is optional — an `auth_attempt` will create a session implicitly if none is provided.
2606
- * Use this explicitly when you want to:
2607
- * - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
2796
+ * - Pre-allocate a `session_id` before the user is known, so device and telemetry signals
2608
2797
  * can be correlated with the eventual authenticated session from the start.
2609
2798
  * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
2610
2799
  *
2611
- * Creating a session is an app-plane operation on the project credential
2612
- * (`session.write`). The returned `session_token` is a session credential for the
2613
- * end-user client, not a management scope: it is delivered as the
2614
- * `__nextgen_session` cookie and authorises the self-service operations
2615
- * `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
2616
- * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
2617
- * are operator endpoints and require `session.read` / `session.delete` instead.
2618
- *
2619
- * The `session_token` is superseded when a handoff exchange completes — clients must
2620
- * replace it at that point.
2621
- *
2622
- * Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
2623
- * full session TTL when the first authentication factor is written via a completing `auth_attempt`.
2624
- * @summary Create an anonymous session shell
2800
+ * Creating a session runs on the project credential (`session.write`). The returned
2801
+ * `session_token` is a session credential for the end-user client, not a
2802
+ * management scope. It is delivered as the `__Host-zitadel_session` cookie
2803
+ * (`zitadel_session` over plain http to a loopback host) and authorises the
2804
+ * self-service operations `GET /sessions/me` and `DELETE /sessions/me`
2805
+ * (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`
2806
+ * and `DELETE /sessions/{session_id}` are operator endpoints and require
2807
+ * `session.read` / `session.delete` instead.
2808
+ *
2809
+ * The `session_token` is superseded when a handoff exchange completes. Clients
2810
+ * must replace it at that point.
2811
+ *
2812
+ * Anonymous sessions expire after 10 minutes. The lifetime resets to the
2813
+ * configured full session lifetime when a completing authentication attempt
2814
+ * writes the first authentication factor.
2815
+ * @summary Create an anonymous session
2625
2816
  */
2626
2817
  export declare const createSessionBodyProjectIdRegExp: RegExp;
2627
2818
  export declare const CreateSessionBody: zod.ZodObject<{
@@ -2695,9 +2886,10 @@ export declare const CreateSessionResponse: zod.ZodObject<{
2695
2886
  session_token: zod.ZodString;
2696
2887
  }, zod.z.core.$strip>;
2697
2888
  /**
2698
- * Returns the sessions of a project, paginated with a cursor.
2889
+ * Returns a page of a project's sessions.
2890
+ *
2699
2891
  * Sessions of every lifecycle state are returned; each carries its `state`.
2700
- * Requires `session.read` permission.
2892
+ * Requires the `session.read` scope.
2701
2893
  * @summary Query sessions
2702
2894
  */
2703
2895
  export declare const querySessionsQueryProjectIdRegExp: RegExp;
@@ -2803,31 +2995,38 @@ export declare const QuerySessionsResponse: zod.ZodObject<{
2803
2995
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
2804
2996
  }, zod.z.core.$strip>;
2805
2997
  /**
2806
- * Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
2807
- * and returns the resulting session and a `session_token`.
2998
+ * Exchanges a handoff token for a session and a `session_token`.
2808
2999
  *
2809
- * The server resolves the originating `auth_attempt` from the token and then:
3000
+ * A handoff token is the short-lived, single-use credential that
3001
+ * `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
3002
+ * complete. This call consumes it. It is the last step of the sign-in sequence:
3003
+ * create the attempt, issue a challenge, verify the proof, create the handoff,
3004
+ * exchange it.
2810
3005
  *
2811
- * | Originating auth_attempt | Outcome |
3006
+ * The server resolves the originating authentication attempt from the token and then:
3007
+ *
3008
+ * | Originating authentication attempt | Outcome |
2812
3009
  * |---|---|
2813
3010
  * | No `session_id` | A new authenticated session is **created**. |
2814
- * | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
2815
- * | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
3011
+ * | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |
3012
+ * | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |
2816
3013
  *
2817
3014
  * The response shape is identical in all three cases.
2818
3015
  *
2819
- * The `session_token` supersedes any previously issued `session_token` for the same session.
2820
- * Clients must replace their stored token at this point.
3016
+ * The `session_token` supersedes any previously issued `session_token` for the
3017
+ * same session. Clients must replace their stored token at this point.
2821
3018
  *
2822
- * Requires a project service key (OAuth2 client credentials).
3019
+ * Requires a project service key (OAuth2 client credentials). The project comes
3020
+ * from the project secret. A query `project_id` that disagrees answers `403`
3021
+ * with `proj.mismatch`.
2823
3022
  *
2824
- * The project comes from the project secret. A query `project_id` that
2825
- * disagrees answers `403` with `proj.mismatch`. The exchange resolves a
2826
- * deployment the same way as other runtime operations; with no browser
2827
- * `Origin` and nothing deployed to the resolved target the response is
2828
- * `409` with `rel.not_deployed`. A revoked release answers `409` with
2829
- * `rel.revoked`.
2830
- * @summary Exchange handoff token for a session
3023
+ * The exchange resolves a deployment the same way as other runtime operations.
3024
+ * A deployment makes a release live, and a release is the configuration that
3025
+ * `zitadel deploy` publishes. With no browser `Origin` and
3026
+ * nothing deployed to the resolved target, the response is `409` with
3027
+ * `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release
3028
+ * answers `409` with `rel.revoked`.
3029
+ * @summary Exchange a handoff token for a session
2831
3030
  */
2832
3031
  export declare const exchangeHandoffQueryProjectIdRegExp: RegExp;
2833
3032
  export declare const ExchangeHandoffQueryParams: zod.ZodObject<{
@@ -2904,13 +3103,14 @@ export declare const ExchangeHandoffResponse: zod.ZodObject<{
2904
3103
  session_token: zod.ZodString;
2905
3104
  }, zod.z.core.$strip>;
2906
3105
  /**
2907
- * Returns the current state of a session including its factors and all currently
2908
- * satisfied assurance levels.
2909
- *
2910
- * `assurance_levels[]` may shrink over time as factor freshness windows expire,
2911
- * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
2912
- * against the same `session_id`) to restore a dropped assurance level.
2913
- * @summary Get session state
3106
+ * Returns the current state of a session, including its factors and all currently satisfied assurance levels.
3107
+ *
3108
+ * An assurance level is a profile, such as `urn:nist:aal:2`, that the
3109
+ * session's verified factors satisfy. `assurance_levels[]` may shrink over time
3110
+ * as factor freshness windows expire, without the session itself expiring.
3111
+ * To restore a dropped level, use step-up authentication: create an
3112
+ * authentication attempt with the same `session_id`.
3113
+ * @summary Get a session by ID
2914
3114
  */
2915
3115
  export declare const getSessionPathSessionIdRegExp: RegExp;
2916
3116
  export declare const GetSessionParams: zod.ZodObject<{
@@ -2977,16 +3177,17 @@ export declare const GetSessionResponse: zod.ZodObject<{
2977
3177
  expires_at: zod.z.ZodISODateTime;
2978
3178
  }, zod.z.core.$strip>;
2979
3179
  /**
2980
- * Permanently deletes the session, terminating it immediately.
3180
+ * Revokes a session by deleting it, immediately and for good. A later
3181
+ * `getSession` (`GET /sessions/{session_id}`) for it answers `404`.
2981
3182
  *
2982
- * This is the operator revoke path and requires the `session.delete` scope on a
2983
- * project-bound credential. End-user logout with the `__nextgen_session` cookie is
2984
- * `DELETE /sessions/me` (`nextgenSession` scheme).
3183
+ * This is the operator revoke path. It requires the `session.delete` scope on a
3184
+ * project-bound credential. End-user sign-out with the session cookie is
3185
+ * `DELETE /sessions/me` (`sessionCookie` scheme).
2985
3186
  *
2986
- * Idempotent: deleting a session that does not exist (or was already deleted)
2987
- * still returns 204. After deletion, any tokens derived from the session are
3187
+ * Idempotent: revoking a session that does not exist, or was already revoked,
3188
+ * still returns `204`. After revocation, any tokens derived from the session are
2988
3189
  * invalidated.
2989
- * @summary Revoke session
3190
+ * @summary Revoke a session
2990
3191
  */
2991
3192
  export declare const revokeSessionPathSessionIdRegExp: RegExp;
2992
3193
  export declare const RevokeSessionParams: zod.ZodObject<{
@@ -2994,15 +3195,16 @@ export declare const RevokeSessionParams: zod.ZodObject<{
2994
3195
  }, zod.z.core.$strip>;
2995
3196
  export declare const RevokeSessionResponse: zod.ZodVoid;
2996
3197
  /**
2997
- * Returns the current state of the current session including its factors and all currently
2998
- * satisfied assurance levels.
3198
+ * Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
2999
3199
  *
3000
3200
  * With `project_id`, the session is returned only when it belongs to that project.
3001
3201
  *
3002
- * `assurance_levels[]` may shrink over time as factor freshness windows expire,
3003
- * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
3004
- * against the same `session_id`) to restore a dropped assurance level.
3005
- * @summary Get my session state
3202
+ * An assurance level is a profile, such as `urn:nist:aal:2`, that the
3203
+ * session's verified factors satisfy. `assurance_levels[]` may shrink over time
3204
+ * as factor freshness windows expire, without the session itself expiring.
3205
+ * To restore a dropped level, use step-up authentication: create an
3206
+ * authentication attempt with the same `session_id`.
3207
+ * @summary Get my session
3006
3208
  */
3007
3209
  export declare const getMySessionQueryProjectIdRegExp: RegExp;
3008
3210
  export declare const GetMySessionQueryParams: zod.ZodObject<{
@@ -3069,15 +3271,15 @@ export declare const GetMySessionResponse: zod.ZodObject<{
3069
3271
  expires_at: zod.z.ZodISODateTime;
3070
3272
  }, zod.z.core.$strip>;
3071
3273
  /**
3072
- * Logs out by permanently deleting the session.
3274
+ * Revokes the caller's own session by deleting it, which signs the user out.
3073
3275
  *
3074
- * The `__nextgen_session` cookie issued at creation (or superseded by a handoff
3075
- * exchange) is required, with the session's token from `GET /sessions/me/csrf`
3076
- * in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
3077
- * this still returns 204. Any tokens derived from the session are invalidated,
3078
- * and the cookie itself is cleared in the response.
3276
+ * The request needs the session cookie issued at creation (or superseded by a
3277
+ * handoff exchange). It also needs the session's CSRF token from
3278
+ * `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,
3279
+ * this still returns `204`. Any tokens derived from the session are
3280
+ * invalidated, and the response clears the cookie.
3079
3281
  *
3080
- * With `project_id`, only a session of that project is deleted. A session of
3282
+ * With `project_id`, only a session of that project is revoked. A session of
3081
3283
  * another project is left alone, and so is its cookie.
3082
3284
  * @summary Revoke my session
3083
3285
  */
@@ -3087,13 +3289,13 @@ export declare const RevokeMySessionQueryParams: zod.ZodObject<{
3087
3289
  }, zod.z.core.$strict>;
3088
3290
  export declare const RevokeMySessionResponse: zod.ZodVoid;
3089
3291
  /**
3090
- * Returns the session-bound token for cross-site request forgery protection
3091
- * (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the
3092
- * state-changing requests the session cookie authenticates that require it
3093
- * — see the `nextgenSession` scheme. It authorizes nothing on its own: the
3094
- * HttpOnly cookie is still the credential, and a cross-site page cannot
3095
- * read this response. It stays the same for the life of the session, so a
3096
- * client fetches it once per session.
3292
+ * Returns the session-bound token that protects against cross-site request
3293
+ * forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the
3294
+ * state-changing requests that the session cookie authenticates and that
3295
+ * require it; see the `sessionCookie` scheme. It authorizes nothing on its
3296
+ * own: the HttpOnly cookie is still the credential, and a cross-site page
3297
+ * cannot read this response. It stays the same for the life of the session,
3298
+ * so a client fetches it once per session.
3097
3299
  *
3098
3300
  * With `project_id`, the token is returned only when the session belongs to
3099
3301
  * that project.
@@ -3107,16 +3309,21 @@ export declare const GetMySessionCsrfTokenResponse: zod.ZodObject<{
3107
3309
  csrf_token: zod.ZodString;
3108
3310
  }, zod.z.core.$strip>;
3109
3311
  /**
3110
- * Create a new schema. The optional `$id` field is the JSON Schema document
3111
- * URI used to identify the schema in future requests (GitOps-stable identity,
3112
- * not a free-form resource primary key). When `$id` is omitted, the server
3113
- * generates a `sch_*` URL. When provided, `$id` must be unique within the
3114
- * project and should ideally be a valid URI pointing at where the schema can
3115
- * be accessed.
3116
- *
3117
- * The schema can either be a concrete schema, e.g. a user schema, or a
3118
- * schema-url which will be resolved by the server.
3119
- * @summary Create new schema
3312
+ * Creates a user schema, the JSON Schema that says which attributes a user
3313
+ * has and which attribute identifies the user.
3314
+ *
3315
+ * The request is either a user schema (`kind: user-schema`) or a schema URL
3316
+ * (`kind: schema-url`) that the server resolves. The response's `id` is what
3317
+ * `createUser` (`POST /users`) takes as `schema`.
3318
+ *
3319
+ * The optional `$id` is the JSON Schema document URI that identifies the
3320
+ * schema in later requests. It is a stable identity for GitOps, not a
3321
+ * free-form resource key. When `$id` is omitted, the server generates a
3322
+ * `sch_*` URL. When provided, `$id` must be unique within the project and
3323
+ * should ideally be a valid URI pointing at where the schema can be accessed.
3324
+ * A `$id` that already exists in the project is refused; pick another or
3325
+ * omit it.
3326
+ * @summary Create a schema
3120
3327
  */
3121
3328
  export declare const createSchemaQueryProjectIdRegExp: RegExp;
3122
3329
  export declare const createSchemaQueryTeamIdRegExp: RegExp;
@@ -3171,9 +3378,12 @@ export declare const CreateSchemaResponse: zod.ZodObject<{
3171
3378
  id: zod.ZodString;
3172
3379
  }, zod.z.core.$strip>;
3173
3380
  /**
3174
- * Retrieve a list of all schemas available in the system. This endpoint
3175
- * supports pagination and filtering based on schema attributes.
3176
- * @summary List all schemas
3381
+ * Lists the schemas of a project, newest first, paginated with a cursor.
3382
+ * Filter by `object_type` or `kind`, and choose which revisions to return
3383
+ * with `revisions`.
3384
+ *
3385
+ * A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.
3386
+ * @summary List schemas
3177
3387
  */
3178
3388
  export declare const listSchemasQueryProjectIdRegExp: RegExp;
3179
3389
  export declare const listSchemasQueryLimitDefault = 20;
@@ -3247,17 +3457,17 @@ export declare const ListSchemasResponse: zod.ZodObject<{
3247
3457
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
3248
3458
  }, zod.z.core.$strip>;
3249
3459
  /**
3250
- * Get a schema by its ID. A schema ID identifies one immutable revision, so
3460
+ * Returns a schema by ID. A schema ID identifies one immutable revision, so
3251
3461
  * this returns exactly that revision. To find the current revision of an
3252
- * object type, list with `revisions=latest`.
3462
+ * object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
3253
3463
  *
3254
3464
  * Schema IDs are unique within a project, not across projects (the seeded
3255
- * default schema carries the same `$id` in every project). A Console
3465
+ * default schema carries the same `$id` in every project). A console
3256
3466
  * session that manages more than one project names the project with
3257
3467
  * `project_id`; without it, the ID is resolved in the credential's own
3258
3468
  * project when it is ambiguous. A project secret always resolves in its
3259
3469
  * own project and ignores `project_id`.
3260
- * @summary Get schema by ID
3470
+ * @summary Get a schema by ID
3261
3471
  */
3262
3472
  export declare const GetSchemaByIdParams: zod.ZodObject<{
3263
3473
  id: zod.ZodString;
@@ -3316,17 +3526,22 @@ export declare const GetSchemaByIdResponse: zod.ZodObject<{
3316
3526
  }, zod.z.core.$strip>;
3317
3527
  }, zod.z.core.$strip>;
3318
3528
  /**
3319
- * Publishes a new flow definition revision.
3320
- * Flow definitions are templates that define the sequence of steps (capabilities)
3321
- * for a particular user journey (e.g., registration, login, password reset).
3322
- *
3323
- * Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
3324
- *
3325
- * Every call allocates a new opaque id. Revisions of one flow share its
3326
- * `name`; posting a definition under an existing `name` publishes a new
3327
- * revision of that flow, it is not a conflict. List with `name` to see a
3328
- * flow's revisions, newest by creation time first.
3329
- * @summary Create a new flow definition
3529
+ * Creates a flow definition by publishing a new revision of it. It records a
3530
+ * `flowdef.created` event.
3531
+ *
3532
+ * A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
3533
+ * defines the sequence of steps (capabilities) for one user journey, such as
3534
+ * registration, login or password reset. The body follows the flow
3535
+ * definition schema, which includes the flow's purpose, audience and steps.
3536
+ *
3537
+ * Every call allocates a new opaque ID. That `id` is the `revision_id` a
3538
+ * release pins for `kind: flow_definition`.
3539
+ *
3540
+ * Revisions of one flow share its `name`. Posting a definition under an
3541
+ * existing `name` publishes a new revision of that flow, which is not a
3542
+ * conflict. List with `name` to see a flow's revisions, newest by creation
3543
+ * time first.
3544
+ * @summary Create a flow definition
3330
3545
  */
3331
3546
  export declare const createFlowDefinitionBodyProjectIdRegExp: RegExp;
3332
3547
  export declare const createFlowDefinitionBodyFlowDefinitionNameRegExp: RegExp;
@@ -3385,7 +3600,7 @@ export declare const CreateFlowDefinitionBody: zod.ZodObject<{
3385
3600
  show: "show";
3386
3601
  }>>;
3387
3602
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3388
- target: zod.ZodString;
3603
+ target: zod.ZodOptional<zod.ZodString>;
3389
3604
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3390
3605
  switch: "switch";
3391
3606
  pivot: "pivot";
@@ -3463,7 +3678,7 @@ export declare const CreateFlowDefinitionResponse: zod.ZodObject<{
3463
3678
  show: "show";
3464
3679
  }>>;
3465
3680
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3466
- target: zod.ZodString;
3681
+ target: zod.ZodOptional<zod.ZodString>;
3467
3682
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3468
3683
  switch: "switch";
3469
3684
  pivot: "pivot";
@@ -3525,9 +3740,12 @@ export declare const CreateFlowDefinitionResponse: zod.ZodObject<{
3525
3740
  updated_at: zod.z.ZodISODateTime;
3526
3741
  }, zod.z.core.$strip>;
3527
3742
  /**
3528
- * Retrieves a list of all flow definitions, newest by creation time first.
3529
- * This endpoint can be used to view existing flow definitions and their configurations.
3530
- * Filter by `name` to list the revisions of one flow.
3743
+ * Lists the project's flow definitions with their configurations, newest by
3744
+ * creation time first. A flow definition sets which step of a sign-in
3745
+ * renders when, and which fields each step collects.
3746
+ *
3747
+ * The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)
3748
+ * takes. Filter by `name` to list the revisions of one flow.
3531
3749
  * @summary List flow definitions
3532
3750
  */
3533
3751
  export declare const listFlowDefinitionsQueryLimitDefault = 20;
@@ -3618,7 +3836,7 @@ export declare const ListFlowDefinitionsResponse: zod.ZodObject<{
3618
3836
  show: "show";
3619
3837
  }>>;
3620
3838
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3621
- target: zod.ZodString;
3839
+ target: zod.ZodOptional<zod.ZodString>;
3622
3840
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3623
3841
  switch: "switch";
3624
3842
  pivot: "pivot";
@@ -3682,8 +3900,9 @@ export declare const ListFlowDefinitionsResponse: zod.ZodObject<{
3682
3900
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
3683
3901
  }, zod.z.core.$strip>;
3684
3902
  /**
3685
- * Get a flow definition by id
3686
- * @summary Get a flow definition by id
3903
+ * Returns one flow definition revision. Pass the `id` that
3904
+ * `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
3905
+ * @summary Get a flow definition by ID
3687
3906
  */
3688
3907
  export declare const GetFlowDefinitionParams: zod.ZodObject<{
3689
3908
  id: zod.ZodString;
@@ -3749,7 +3968,7 @@ export declare const GetFlowDefinitionResponse: zod.ZodObject<{
3749
3968
  show: "show";
3750
3969
  }>>;
3751
3970
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3752
- target: zod.ZodString;
3971
+ target: zod.ZodOptional<zod.ZodString>;
3753
3972
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3754
3973
  switch: "switch";
3755
3974
  pivot: "pivot";
@@ -3813,9 +4032,10 @@ export declare const GetFlowDefinitionResponse: zod.ZodObject<{
3813
4032
  /**
3814
4033
  * Creates a team in the project, with a name no other team in the project has.
3815
4034
  *
3816
- * A taken name is refused with `409 team.already_exists`. The new team has no
3817
- * members yet.
3818
- * @summary Create team
4035
+ * A team groups users inside a project and can represent a customer. A taken
4036
+ * name is refused with `409 team.already_exists`: choose another name. The
4037
+ * new team has no members yet.
4038
+ * @summary Create a team
3819
4039
  */
3820
4040
  export declare const createTeamQueryProjectIdRegExp: RegExp;
3821
4041
  export declare const CreateTeamQueryParams: zod.ZodObject<{
@@ -3836,12 +4056,16 @@ export declare const CreateTeamResponse: zod.ZodObject<{
3836
4056
  updated_at: zod.z.ZodISODateTime;
3837
4057
  }, zod.z.core.$strip>;
3838
4058
  /**
3839
- * Returns the teams of a project, paginated with a cursor.
4059
+ * Returns a page of a project's teams.
4060
+ *
4061
+ * Pass the response's `next_page_token` as `page_token` to fetch the next
4062
+ * page. `project_id` names the project to list; without it, the credential's
4063
+ * own project is listed.
3840
4064
  * @summary Query teams
3841
4065
  */
3842
4066
  export declare const queryTeamsQueryProjectIdRegExp: RegExp;
3843
4067
  export declare const QueryTeamsQueryParams: zod.ZodObject<{
3844
- project_id: zod.ZodString;
4068
+ project_id: zod.ZodOptional<zod.ZodString>;
3845
4069
  }, zod.z.core.$strict>;
3846
4070
  export declare const queryTeamsBodyLimitDefault = 20;
3847
4071
  export declare const queryTeamsBodyLimitMax = 100;
@@ -3892,8 +4116,10 @@ export declare const QueryTeamsResponse: zod.ZodObject<{
3892
4116
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
3893
4117
  }, zod.z.core.$strip>;
3894
4118
  /**
3895
- * Returns a Team by its id.
3896
- * @summary Get team
4119
+ * Returns a team, a group of users inside a project, by ID.
4120
+ *
4121
+ * A deactivated team is still returned, with status `deactivated`.
4122
+ * @summary Get a team by ID
3897
4123
  */
3898
4124
  export declare const getTeamPathTeamIdRegExp: RegExp;
3899
4125
  export declare const GetTeamParams: zod.ZodObject<{
@@ -3910,20 +4136,20 @@ export declare const GetTeamResponse: zod.ZodObject<{
3910
4136
  updated_at: zod.z.ZodISODateTime;
3911
4137
  }, zod.z.core.$strip>;
3912
4138
  /**
3913
- * Deactivates the team.
4139
+ * Deactivates a team and removes its memberships.
3914
4140
  *
3915
- * The team is tombstoned rather than erased: it stays readable through
3916
- * getTeam with status `deactivated`. Its memberships are removed and the
3917
- * users whose lifecycle it owns are deactivated with it.
4141
+ * The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with
4142
+ * status `deactivated`. The users whose lifecycle the team owns are
4143
+ * deactivated with it.
3918
4144
  *
3919
4145
  * The request is idempotent. Deleting a team that is already deactivated
3920
- * or doesn't exist succeeds without changing anything.
4146
+ * or does not exist succeeds without changing anything.
3921
4147
  *
3922
- * A team that still owns a project is refused with `409
3923
- * team.owns_project`: deactivating it would leave the project owned by a
3924
- * dead team and so unmanageable. No endpoint releases that ownership yet,
3925
- * so such a team cannot currently be deactivated through the API.
3926
- * @summary Delete team
4148
+ * A team that still owns a project is refused with `409 team.owns_project`.
4149
+ * Deactivating it would leave the project owned by a deactivated team and so
4150
+ * unmanageable. No endpoint ends a team's ownership of a project yet, so for
4151
+ * now such a team cannot be deactivated through the API.
4152
+ * @summary Deactivate a team
3927
4153
  */
3928
4154
  export declare const deleteTeamPathTeamIdRegExp: RegExp;
3929
4155
  export declare const DeleteTeamParams: zod.ZodObject<{
@@ -3931,8 +4157,12 @@ export declare const DeleteTeamParams: zod.ZodObject<{
3931
4157
  }, zod.z.core.$strip>;
3932
4158
  export declare const DeleteTeamResponse: zod.ZodVoid;
3933
4159
  /**
3934
- * Update team. Only active teams can be updated.
3935
- * @summary Update team
4160
+ * Renames an active team.
4161
+ *
4162
+ * Only active teams can be updated. A deactivated team answers `404`. The new
4163
+ * name must be unique within the project, and a taken name answers `409`:
4164
+ * choose another name.
4165
+ * @summary Update a team
3936
4166
  */
3937
4167
  export declare const updateTeamPathTeamIdRegExp: RegExp;
3938
4168
  export declare const UpdateTeamParams: zod.ZodObject<{
@@ -3953,15 +4183,19 @@ export declare const UpdateTeamResponse: zod.ZodObject<{
3953
4183
  updated_at: zod.z.ZodISODateTime;
3954
4184
  }, zod.z.core.$strip>;
3955
4185
  /**
3956
- * Publishes a new immutable branding revision for the project. Branding
3957
- * revisions cannot be updated or deleted; every edit publishes a new
3958
- * revision, and flow responses resolve the latest revision per project.
4186
+ * Publishes a new immutable branding revision for the project, and records a
4187
+ * `branding.created` event. Branding revisions cannot be updated or deleted.
4188
+ * Every edit publishes a new revision. Flow responses carry the branding
4189
+ * revision the request's release pins.
4190
+ *
4191
+ * The `id` of the new revision is the revision ID a release pins for
4192
+ * `kind: branding`.
3959
4193
  *
3960
4194
  * The `liquid_template` is validated lexically on save (size, encoding,
3961
4195
  * banned patterns such as `<script>` tags, inline event handlers, and the
3962
4196
  * `| raw` filter). Authoritative LiquidJS validation runs at authoring
3963
- * time via `zitadel plan` / `zitadel apply`.
3964
- * @summary Publish a new branding revision
4197
+ * time, in `zitadel deploy` and `zitadel deploy --dry-run`.
4198
+ * @summary Publish a branding revision
3965
4199
  */
3966
4200
  export declare const createBrandingQueryProjectIdRegExp: RegExp;
3967
4201
  export declare const CreateBrandingQueryParams: zod.ZodObject<{
@@ -4248,11 +4482,11 @@ export declare const CreateBrandingResponse: zod.ZodObject<{
4248
4482
  }, zod.z.core.$strip>;
4249
4483
  }, zod.z.core.$strip>;
4250
4484
  /**
4251
- * Lists branding revisions for the project, newest first, capped at the
4252
- * 100 most recent. The first entry is the revision flow responses
4253
- * currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
4254
- * real query mechanism together; advertising pagination parameters the
4255
- * server ignores would be worse than none.
4485
+ * Lists a project's branding revisions, newest first, capped at the 100 most
4486
+ * recent and not paginated. The first entry is the newest revision.
4487
+ *
4488
+ * The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and
4489
+ * that a release pins for `kind: branding`.
4256
4490
  * @summary List branding revisions
4257
4491
  */
4258
4492
  export declare const listBrandingQueryProjectIdRegExp: RegExp;
@@ -4268,7 +4502,8 @@ export declare const ListBrandingResponse: zod.ZodArray<zod.ZodObject<{
4268
4502
  created_at: zod.z.ZodISODateTime;
4269
4503
  }, zod.z.core.$strip>>;
4270
4504
  /**
4271
- * Retrieves a single branding revision, including its stored configuration.
4505
+ * Returns one branding revision, including its stored configuration. Pass the
4506
+ * `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
4272
4507
  * @summary Get a branding revision by ID
4273
4508
  */
4274
4509
  export declare const GetBrandingByIdParams: zod.ZodObject<{
@@ -4417,17 +4652,19 @@ export declare const GetBrandingByIdResponse: zod.ZodObject<{
4417
4652
  }, zod.z.core.$strip>;
4418
4653
  }, zod.z.core.$strip>;
4419
4654
  /**
4420
- * Creates or revises a connection document. If the slug does not already
4421
- * exist, a new connection is created. If a connection with that slug already
4422
- * exists, a revision is created.
4423
- *
4424
- * A revision gets a new `revision_id` and does not modify the connection
4425
- * `id`, so identity links that reference the connection keep resolving while
4426
- * releases and auth attempts stay pinned to the revision they captured.
4427
- *
4428
- * Identity fields are fixed for the life of the connection and a revision
4429
- * that changes one is rejected: `protocol`, `subject_claim`, and `issuer`,
4430
- * the field that names the authority. Their values decide which provider
4655
+ * Creates or revises an identity provider, an external sign-in such as
4656
+ * Google, from its connection document. If the slug does not already exist,
4657
+ * a new identity provider is created. If one with that slug already exists,
4658
+ * a revision is created.
4659
+ *
4660
+ * A revision gets a new `revision_id` and does not modify the identity
4661
+ * provider's `id`. Identity links, which tie a user to an account at the
4662
+ * provider, keep resolving. Releases and authentication attempts stay pinned
4663
+ * to the revision they captured.
4664
+ *
4665
+ * Identity fields are fixed for the life of the identity provider and a
4666
+ * revision that changes one is rejected: `protocol`, `subject_claim`, and
4667
+ * `issuer`, the field that names the authority. Their values decide which provider
4431
4668
  * account a stored subject belongs to, so changing one would silently
4432
4669
  * repoint existing identities at a different provider.
4433
4670
  *
@@ -4438,18 +4675,18 @@ export declare const GetBrandingByIdResponse: zod.ZodObject<{
4438
4675
  * OIDC is the only protocol.
4439
4676
  *
4440
4677
  * The document is validated against the `idp-connection.json` schema before
4441
- * anything is stored. The rules the engine applies when it starts a sign-in
4442
- * then run on the document, so a connection that could never start one is
4443
- * refused here instead with `idp.endpoints_partial`: the OIDC block sets an
4444
- * endpoint without the others. It either sets no endpoint, and discovery
4445
- * fills them, or sets `authorization_endpoint`, `token_endpoint`, `jwks_uri`,
4446
- * and `userinfo_endpoint`. `userinfo_endpoint` may be left out when
4678
+ * anything is stored. The rules the server applies when it starts a sign-in
4679
+ * then run on the document, so a document that could never start one is
4680
+ * refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint
4681
+ * without the others. Set no endpoint, and discovery fills them, or set
4682
+ * `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and
4683
+ * `userinfo_endpoint`. `userinfo_endpoint` may be left out when
4447
4684
  * `id_token_mapping` is on, but setting it alone still counts as setting an
4448
4685
  * endpoint. The details list the missing endpoints.
4449
4686
  *
4450
4687
  * A refused document stores nothing, and on a revise the current revision
4451
4688
  * stays unchanged.
4452
- * @summary Create or revise an identity provider connection
4689
+ * @summary Create or revise an identity provider
4453
4690
  */
4454
4691
  export declare const createIdpQueryProjectIdRegExp: RegExp;
4455
4692
  export declare const CreateIdpQueryParams: zod.ZodObject<{
@@ -4565,9 +4802,10 @@ export declare const CreateIdpResponse: zod.ZodObject<{
4565
4802
  }, zod.z.core.$strip>;
4566
4803
  }, zod.z.core.$strip>;
4567
4804
  /**
4568
- * Returns the identity provider connections of a project, paginated with a
4569
- * cursor. One row per connection, carrying its newest revision.
4570
- * @summary Query identity provider connections
4805
+ * Returns the identity providers of a project, external sign-ins such as
4806
+ * Google, paginated with a cursor. Each identity provider appears once, with
4807
+ * its newest revision.
4808
+ * @summary Query identity providers
4571
4809
  */
4572
4810
  export declare const queryIdpsQueryProjectIdRegExp: RegExp;
4573
4811
  export declare const QueryIdpsQueryParams: zod.ZodObject<{
@@ -4667,11 +4905,12 @@ export declare const QueryIdpsResponse: zod.ZodObject<{
4667
4905
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
4668
4906
  }, zod.z.core.$strip>;
4669
4907
  /**
4670
- * Reads a connection by its id, at its newest revision.
4671
- * `GET /idps/{id}/revisions` lists every revision of the connection.
4908
+ * Returns an identity provider, an external sign-in such as Google, by ID at
4909
+ * its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists
4910
+ * every revision of it.
4672
4911
  *
4673
4912
  * The lookup is scoped to the project in `project_id`.
4674
- * @summary Get an identity provider connection by id
4913
+ * @summary Get an identity provider by ID
4675
4914
  */
4676
4915
  export declare const GetIdpByIdParams: zod.ZodObject<{
4677
4916
  id: zod.ZodString;
@@ -4738,11 +4977,12 @@ export declare const GetIdpByIdResponse: zod.ZodObject<{
4738
4977
  }, zod.z.core.$strip>;
4739
4978
  }, zod.z.core.$strip>;
4740
4979
  /**
4741
- * Returns every revision of one connection, newest first, paginated with a
4742
- * cursor. The order is fixed, so there is no `sorting`.
4980
+ * Lists every revision of one identity provider, an external sign-in such as
4981
+ * Google, newest first, paginated with a cursor. The order is fixed, so there
4982
+ * is no `sorting`.
4743
4983
  *
4744
4984
  * The lookup is scoped to the project in `project_id`.
4745
- * @summary List the revisions of an identity provider connection
4985
+ * @summary List the revisions of an identity provider
4746
4986
  */
4747
4987
  export declare const ListIdpRevisionsParams: zod.ZodObject<{
4748
4988
  id: zod.ZodString;
@@ -4816,11 +5056,12 @@ export declare const ListIdpRevisionsResponse: zod.ZodObject<{
4816
5056
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
4817
5057
  }, zod.z.core.$strip>;
4818
5058
  /**
4819
- * Reads one revision of a connection by its `revision_id`, the value an auth
4820
- * attempt or a release pins.
5059
+ * Returns one revision of an identity provider, an external sign-in such as
5060
+ * Google, by its `revision_id`, the value an authentication attempt or a
5061
+ * release pins.
4821
5062
  *
4822
5063
  * The lookup is scoped to the project in `project_id`.
4823
- * @summary Get one revision of an identity provider connection
5064
+ * @summary Get a revision of an identity provider
4824
5065
  */
4825
5066
  export declare const GetIdpRevisionByIdParams: zod.ZodObject<{
4826
5067
  revision_id: zod.ZodString;
@@ -4888,9 +5129,12 @@ export declare const GetIdpRevisionByIdResponse: zod.ZodObject<{
4888
5129
  }, zod.z.core.$strip>;
4889
5130
  /**
4890
5131
  * Lists the project's policies, one per operation, each as its newest
4891
- * revision, ordered by `created_at` (first publish) and then `id`. Filter
4892
- * by `operation` to read the policy of one operation; a project that never
4893
- * published one gets an empty list.
5132
+ * revision.
5133
+ *
5134
+ * A policy holds a project's rules for one operation, such as setting a
5135
+ * password. The list is ordered by `created_at` (first publish) and then
5136
+ * `id`. Filter by `operation` to read the policy of one operation; a project
5137
+ * that never published one gets an empty list.
4894
5138
  *
4895
5139
  * The lookup is scoped to the project in `project_id`.
4896
5140
  * @summary List policies
@@ -4932,22 +5176,31 @@ export declare const ListPoliciesResponse: zod.ZodObject<{
4932
5176
  }, zod.z.core.$strip>;
4933
5177
  /**
4934
5178
  * Publishes the project's policy for an operation as a new immutable
4935
- * revision, creating the policy on its first publish. The newest revision
4936
- * applies to the next time the operation runs; nothing already stored is
5179
+ * revision, creating the policy on its first publish. A revision applies
5180
+ * once a deployed release pins it. Nothing already stored is
4937
5181
  * re-evaluated, so a stricter password policy applies the next time a
4938
5182
  * password is set.
4939
5183
  *
4940
- * The request is typed by `operation`: an unknown operation or setting, or
5184
+ * A policy holds a project's rules for one operation, such as setting a
5185
+ * password. The first publish records a `policy.created` event and every
5186
+ * later one a `policy.updated` event.
5187
+ *
5188
+ * The request is typed by `operation`. An unknown operation or setting, or
4941
5189
  * a value of the wrong type or outside its bounds, answers `req.invalid`
4942
- * like any malformed request. The operation's template then checks the
4943
- * config again, together with the rules that relate settings to each other
4944
- * (a `min_length` above `max_length`), and answers `pol.invalid`. Its
4945
- * `details.details.violations` lists everything that failed, settings
4946
- * first, then rules: `{"setting": "min_length"}` for one setting, or
4947
- * `{"config_rule": "min_length_not_above_max_length", "settings":
4948
- * ["min_length", "max_length"]}` for a rule across settings, with the
4949
- * settings it reads. A setting left out is off, and `{}` switches every
4950
- * rule off; there are no defaults.
5190
+ * like any malformed request.
5191
+ *
5192
+ * The operation's template then checks the config again, together with the
5193
+ * rules that relate settings to each other (a `min_length` above
5194
+ * `max_length`), and answers `pol.invalid`. Its `details.details.violations`
5195
+ * lists everything that failed, settings first, then rules.
5196
+ * `{"setting": "min_length"}` names one setting. `{"config_rule":
5197
+ * "min_length_not_above_max_length", "settings": ["min_length",
5198
+ * "max_length"]}` names a rule across settings, with the settings it reads.
5199
+ * Fix what the violations list and publish again. To check a config without
5200
+ * publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).
5201
+ *
5202
+ * A setting left out is off, and `{}` switches every rule off; there are no
5203
+ * defaults.
4951
5204
  * @summary Publish a policy
4952
5205
  */
4953
5206
  export declare const publishPolicyQueryProjectIdRegExp: RegExp;
@@ -4990,24 +5243,27 @@ export declare const PublishPolicyResponse: zod.ZodObject<{
4990
5243
  }, zod.z.core.$strip>;
4991
5244
  /**
4992
5245
  * Evaluates a policy config against one request, without side effects, and
4993
- * answers the decision the operation would reach. Nothing is read from or
4994
- * written to the project: the config is the one in the body, checked
4995
- * exactly as a publish checks it, so an invalid config answers `pol.invalid`
4996
- * with the same violations.
5246
+ * answers the decision the operation would reach. A policy holds a
5247
+ * project's rules for one operation, such as setting a password.
5248
+ *
5249
+ * Nothing is read from or written to the project. The config is the one in
5250
+ * the body, checked exactly as a publish checks it, so an invalid config
5251
+ * answers `pol.invalid` with the same violations. Fix the settings the
5252
+ * violations list and send the request again.
4997
5253
  *
4998
5254
  * `input` is what the operation's request carries, in the operation's own
4999
- * terms (a password, not its length): the server derives what the policy
5255
+ * terms (a password, not its length). The server derives what the policy
5000
5256
  * checks with the code the live operation runs, guards included. `facts`
5001
5257
  * states what the operation would look up at runtime, such as whether the
5002
5258
  * candidate matches one of the user's kept passwords.
5003
5259
  *
5004
5260
  * The decision and the names of the failed rules hold wherever the
5005
- * operation runs. `code` and `violations` are what an API call answers; a
5261
+ * operation runs. `code` and `violations` are what an API call answers. A
5006
5262
  * login flow shows the same rules as field errors on the password field
5007
5263
  * (`error.x-auth-methods#password_<rule>` in `step.error`).
5008
5264
  *
5009
- * Which policy a project or release applies is not decided here: read it
5010
- * and pass its config.
5265
+ * This operation does not choose which policy a project or release applies.
5266
+ * Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.
5011
5267
  *
5012
5268
  * The caller needs read access to the project in `project_id`.
5013
5269
  * @summary Evaluate a policy
@@ -5046,12 +5302,15 @@ export declare const EvaluatePolicyResponse: zod.ZodObject<{
5046
5302
  violations: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
5047
5303
  }, zod.z.core.$strip>;
5048
5304
  /**
5049
- * Reads a policy as its newest revision, the one that applies the next time
5050
- * its operation runs.
5305
+ * Returns a policy as its newest revision. A revision applies once a deployed
5306
+ * release pins it.
5307
+ *
5308
+ * A policy holds a project's rules for one operation, such as setting a
5309
+ * password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
5051
5310
  *
5052
5311
  * The lookup is scoped to the project in `project_id`: a policy of another
5053
- * project answers not found exactly as an unknown id does.
5054
- * @summary Get a policy
5312
+ * project answers not found exactly as an unknown ID does.
5313
+ * @summary Get a policy by ID
5055
5314
  */
5056
5315
  export declare const getPolicyPathPolicyIdRegExp: RegExp;
5057
5316
  export declare const GetPolicyParams: zod.ZodObject<{
@@ -5083,11 +5342,14 @@ export declare const GetPolicyResponse: zod.ZodObject<{
5083
5342
  updated_at: zod.z.ZodISODateTime;
5084
5343
  }, zod.z.core.$strip>;
5085
5344
  /**
5086
- * Returns every revision of one policy, newest first, paginated with a
5087
- * cursor. The order is fixed, so there is no `sorting`.
5345
+ * Lists every revision of one policy, newest first, one page at a time. The
5346
+ * order is fixed, so there is no `sorting`.
5347
+ *
5348
+ * Each publish of a policy adds a revision. Pass the policy `id` that
5349
+ * `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
5088
5350
  *
5089
5351
  * The lookup is scoped to the project in `project_id`: a policy of another
5090
- * project answers not found exactly as an unknown id does.
5352
+ * project answers not found exactly as an unknown ID does.
5091
5353
  * @summary List the revisions of a policy
5092
5354
  */
5093
5355
  export declare const listPolicyRevisionsPathPolicyIdRegExp: RegExp;
@@ -5127,11 +5389,14 @@ export declare const ListPolicyRevisionsResponse: zod.ZodObject<{
5127
5389
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
5128
5390
  }, zod.z.core.$strip>;
5129
5391
  /**
5130
- * Reads one revision of a policy, newest or not.
5392
+ * Returns one revision of a policy, the newest or an older one.
5393
+ *
5394
+ * Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)
5395
+ * returns.
5131
5396
  *
5132
5397
  * The lookup is scoped to the project in `project_id`: a revision of another
5133
- * project answers not found exactly as an unknown id does.
5134
- * @summary Get a policy revision
5398
+ * project answers not found exactly as an unknown ID does.
5399
+ * @summary Get a policy revision by ID
5135
5400
  */
5136
5401
  export declare const getPolicyRevisionPathRevisionIdRegExp: RegExp;
5137
5402
  export declare const GetPolicyRevisionParams: zod.ZodObject<{
@@ -5163,25 +5428,34 @@ export declare const GetPolicyRevisionResponse: zod.ZodObject<{
5163
5428
  updated_at: zod.z.ZodISODateTime;
5164
5429
  }, zod.z.core.$strip>;
5165
5430
  /**
5166
- * Assembles a release from existing revisions, given as
5167
- * `(kind, revision_id)` pairs. To build one from files on disk, use
5168
- * `POST /releases/build`.
5431
+ * Creates a release from existing revisions, given as `(kind, revision_id)`
5432
+ * pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)
5433
+ * (`POST /releases/build`).
5434
+ *
5435
+ * A release is a snapshot of the project's configuration: it pins one
5436
+ * revision of each resource it includes, and it is not tied to an origin.
5437
+ * Take each `revision_id` from the operation that created the revision, for
5438
+ * example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.
5169
5439
  *
5170
5440
  * Each revision must exist in the project and is recorded under the handle
5171
5441
  * it declares. The release must be complete and consistent:
5172
5442
  *
5173
5443
  * - Every handle its revisions name must be in the release: a flow's
5174
- * `user_schema`, and the IDP connections named by a flow step's
5175
- * `sso_providers` or a schema's `x-auth-methods.sso.providers`. A missing
5176
- * one answers `rel.unresolved_reference`, naming the resource and the
5177
- * handle, e.g. `flow_definition default-login: user_schema human-user not found`.
5178
- * - Every flow is validated as on save, against the user schema revision
5179
- * in the release. A flow that fails answers `rel.invalid`, with the
5180
- * reason in `details`.
5181
- *
5182
- * Idempotent on the set of revisions: the same revisions with a different
5183
- * `message` answer `200` with the existing release. A new release answers
5184
- * `201`. Creating a release does not deploy it.
5444
+ * `user_schema`, and the identity provider (IdP) connections named by a
5445
+ * flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.
5446
+ * A missing one answers `rel.unresolved_reference`, naming the resource and
5447
+ * the handle, for example `flow_definition default-login: user_schema
5448
+ * human-user not found`. Add the missing revision to the request.
5449
+ * - Every flow is validated as on save, against the user schema revision in
5450
+ * the release. A flow that fails answers `rel.invalid`, with the reason in
5451
+ * `details`. Fix the flow and send the request again.
5452
+ *
5453
+ * The call is idempotent on the set of revisions: the same revisions with a
5454
+ * different `message` answer `200` with the existing release. A new release
5455
+ * answers `201`.
5456
+ *
5457
+ * Creating a release does not deploy it. Pass the returned `id` to
5458
+ * `createDeployment` (`POST /deployments`) to make the release live.
5185
5459
  * @summary Create a release
5186
5460
  */
5187
5461
  export declare const createReleaseQueryProjectIdRegExp: RegExp;
@@ -5250,17 +5524,20 @@ export declare const CreateReleaseResponse: zod.ZodObject<{
5250
5524
  }, zod.z.core.$strip>>;
5251
5525
  }, zod.z.core.$strip>;
5252
5526
  /**
5253
- * Lists the project's releases, newest first.
5527
+ * Lists the project's releases, newest first. A release is a snapshot of the
5528
+ * project's configuration.
5529
+ *
5530
+ * Entries carry the digest, the metadata and `revoked_at`. The pinned set is
5531
+ * omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.
5254
5532
  *
5255
- * Entries carry the digest, the metadata and `revoked_at` — the pinned set
5256
- * is omitted.
5257
- * Read one release with `GET /releases/{release_id}` to get its pointers.
5533
+ * The `id` of an entry is the release ID that `getReleaseById`,
5534
+ * `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
5258
5535
  *
5259
5536
  * `content_hash` looks a release up by its content, as the CLI does when a
5260
5537
  * person types the digest a transcript printed. The project holds at most
5261
- * one release per digest, so the filtered list has one entry or none, and
5262
- * an unknown digest is an empty list rather than an error. Paths take the
5263
- * `rel_` id only; the matched entry's `id` is what to use there.
5538
+ * one release per digest, so the filtered list has one entry or none. An
5539
+ * unknown digest is an empty list rather than an error. Paths take the
5540
+ * `rel_` ID only, so use the matched entry's `id` there.
5264
5541
  * @summary List releases
5265
5542
  */
5266
5543
  export declare const listReleasesQueryProjectIdRegExp: RegExp;
@@ -5306,38 +5583,44 @@ export declare const ListReleasesResponse: zod.ZodObject<{
5306
5583
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
5307
5584
  }, zod.z.core.$strip>;
5308
5585
  /**
5309
- * Builds a release from the resources of `.zitadel/` as authored on disk,
5310
- * grouped by kind, in one transaction: a failure anywhere leaves no
5311
- * revision and no release. The caller records nothing.
5586
+ * Builds a release from the resources in `.zitadel/` as authored on disk,
5587
+ * grouped by kind, in one transaction.
5588
+ *
5589
+ * A release is a snapshot of the project's configuration. A failure anywhere
5590
+ * leaves no revision and no release. The caller records nothing. The CLI's
5591
+ * `deploy` command builds its release with this operation.
5312
5592
  *
5313
5593
  * If the project already holds a release with the same content, the same
5314
- * `content_hash`, the request answers `200` with that release and
5315
- * allocates nothing, however long ago it was built. Otherwise every resource is compared against the
5316
- * project's newest revision of the same handle: unchanged content reuses
5317
- * that revision, changed content allocates a new one, and the request
5318
- * answers `201` with the new release. A policy whose config matches only an
5319
- * older revision allocates a new one too, so a request that resolves no
5320
- * release, which reads the newest revision, applies it as well. Metadata is excluded from the
5594
+ * `content_hash`, the request answers `200` with that release and allocates
5595
+ * nothing, however long ago it was built. Metadata is excluded from the
5321
5596
  * comparison, so the same content under a different `message` is the same
5322
5597
  * release.
5323
5598
  *
5599
+ * Otherwise every resource is compared with the project's newest revision of
5600
+ * the same handle. Unchanged content reuses that revision, and changed
5601
+ * content allocates a new one. The request answers `201` with the new
5602
+ * release. A policy whose config matches only an older revision allocates a
5603
+ * new one too, so the policy reads back as the config the build carried.
5604
+ *
5324
5605
  * A structurally malformed request is refused while decoding with
5325
5606
  * `req.invalid`, naming the offending fields. A well-formed bundle is then
5326
5607
  * checked resource by resource, as each kind's create endpoint checks it,
5327
- * and every failure is reported at once: the request answers `400` with
5608
+ * and every failure is reported at once. The request answers `400` with
5328
5609
  * `rel.invalid`, and `details.resources` lists each resource that failed.
5329
- * A handle that resolves neither in the bundle nor in the project answers
5330
- * `rel.unresolved_reference`, naming the pointer and the handle.
5610
+ * Fix each listed resource and build again. A handle that resolves neither
5611
+ * in the bundle nor in the project answers `rel.unresolved_reference`,
5612
+ * naming the pointer and the handle. Add the missing resource to the bundle.
5331
5613
  *
5332
5614
  * Building writes revisions, so besides `release.write` it needs the write
5333
5615
  * scope of every kind the bundle carries a resource of: `schema.write`,
5334
- * `flow_definition.write`, `branding.write`, `idp.write` and
5335
- * `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
5336
- * naming the kind. An empty kind needs no scope.
5337
- *
5338
- * Building a release does not deploy it. A release is not tied to an
5339
- * origin, and the same release can later be deployed to any number of
5340
- * origins unchanged.
5616
+ * `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,
5617
+ * as the per-kind create endpoints do. A missing scope answers `403` with
5618
+ * `rel.permission_denied`, naming the kind. Request a token with that scope.
5619
+ * An empty kind needs no scope.
5620
+ *
5621
+ * Building a release does not deploy it. A release is not tied to an origin,
5622
+ * and the same release can later be deployed to any number of origins
5623
+ * unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).
5341
5624
  * @summary Build a release from files
5342
5625
  */
5343
5626
  export declare const buildReleaseQueryProjectIdRegExp: RegExp;
@@ -5536,7 +5819,7 @@ export declare const BuildReleaseBody: zod.ZodObject<{
5536
5819
  show: "show";
5537
5820
  }>>;
5538
5821
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
5539
- target: zod.ZodString;
5822
+ target: zod.ZodOptional<zod.ZodString>;
5540
5823
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
5541
5824
  switch: "switch";
5542
5825
  pivot: "pivot";
@@ -5713,20 +5996,23 @@ export declare const BuildReleaseResponse: zod.ZodObject<{
5713
5996
  }, zod.z.core.$strip>>;
5714
5997
  }, zod.z.core.$strip>;
5715
5998
  /**
5716
- * Reads one release: its digest, its metadata, whether it was revoked, and
5717
- * the `(kind, handle, revision_id)` tuples it pins.
5718
- *
5719
- * The path takes the `rel_` id only. To find a release from its digest,
5720
- * list with the `content_hash` filter and read the matched entry's `id`.
5721
- *
5722
- * Does not embed resource content. Resolve each `revision_id` through the
5723
- * per-kind read endpoints when the bytes are needed.
5724
- *
5725
- * The lookup is scoped to the project in `project_id`: a release id belonging
5726
- * to another project answers not found exactly as an unknown id does, so the
5727
- * endpoint cannot be used to probe for releases in projects the caller cannot
5728
- * read.
5729
- * @summary Get a release by id
5999
+ * Returns one release: its digest, its metadata, whether it was revoked, and
6000
+ * the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot
6001
+ * of the project's configuration.
6002
+ *
6003
+ * The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),
6004
+ * `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its
6005
+ * digest, list with the `content_hash` filter and read the matched entry's
6006
+ * `id`.
6007
+ *
6008
+ * The response does not embed resource content. Resolve each `revision_id`
6009
+ * through the per-kind read endpoints when the bytes are needed.
6010
+ *
6011
+ * The lookup is scoped to the project in `project_id`. A release ID
6012
+ * belonging to another project answers not found exactly as an unknown ID
6013
+ * does, so the endpoint cannot be used to probe for releases in projects the
6014
+ * caller cannot read.
6015
+ * @summary Get a release by ID
5730
6016
  */
5731
6017
  export declare const getReleaseByIdPathReleaseIdRegExp: RegExp;
5732
6018
  export declare const GetReleaseByIdParams: zod.ZodObject<{
@@ -5778,25 +6064,29 @@ export declare const GetReleaseByIdResponse: zod.ZodObject<{
5778
6064
  }, zod.z.core.$strip>>;
5779
6065
  }, zod.z.core.$strip>;
5780
6066
  /**
5781
- * Marks the release revoked, so that its content is never served again.
5782
- * From then on the release cannot be deployed and is refused on every path
5783
- * that would serve it, including to a build that pins its digest, with
5784
- * `rel.revoked`.
5785
- *
5786
- * A release that any origin still serves cannot be revoked. An origin
5787
- * serves the release of the newest deployment to it, so the call answers
5788
- * `409` with `rel.in_use`, naming each such origin and that deployment.
5789
- * Deploy another release there or roll back first, then revoke. Revoking
5790
- * therefore never takes an origin down. Deployments that named the release
5791
- * earlier stay in the history.
5792
- *
5793
- * Idempotent: revoking a release that is already revoked answers `200`
5794
- * with the release unchanged, `revoked_at` still naming the first
5795
- * revocation. There is no un-revoke; build a new release instead.
5796
- *
5797
- * Takes no body. The lookup is scoped to the project in `project_id`, so a
5798
- * release id of another project answers not found exactly as an unknown id
5799
- * does.
6067
+ * Revokes a release, so that its content is never served again. Pass the
6068
+ * `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It
6069
+ * records a `release.revoked` event.
6070
+ *
6071
+ * From then on the release cannot be deployed. Every path that would serve
6072
+ * it refuses it with `rel.revoked`, including a build that pins its digest.
6073
+ *
6074
+ * A release that any origin still serves cannot be revoked. An origin serves
6075
+ * the release of the newest deployment to it, so the call answers `409` with
6076
+ * `rel.in_use`, naming each such origin and that deployment. Deploy another
6077
+ * release there or roll back first, then revoke. Revoking therefore never
6078
+ * takes an origin down. Deployments that named the release earlier stay in
6079
+ * the history.
6080
+ *
6081
+ * The call is idempotent: revoking a release that is already revoked answers
6082
+ * `200` with the release unchanged, and `revoked_at` still names the first
6083
+ * revocation. There is no un-revoke. To serve that configuration again,
6084
+ * change it and build a new release: rebuilding unchanged content returns
6085
+ * the same revoked release.
6086
+ *
6087
+ * The call takes no body. The lookup is scoped to the project in
6088
+ * `project_id`, so a release ID of another project answers not found exactly
6089
+ * as an unknown ID does.
5800
6090
  * @summary Revoke a release
5801
6091
  */
5802
6092
  export declare const revokeReleasePathReleaseIdRegExp: RegExp;
@@ -5849,26 +6139,32 @@ export declare const RevokeReleaseResponse: zod.ZodObject<{
5849
6139
  }, zod.z.core.$strip>>;
5850
6140
  }, zod.z.core.$strip>;
5851
6141
  /**
5852
- * Bind a user or team to `project.viewer`, `project.editor`, or
5853
- * `project.admin` on the project identified by the `project-id` header.
5854
- * Name the principal with `user` (`user_id` or `identifier`) or `team`
5855
- * (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
5856
- * (`project.team`) grants are not created here — claim owns that path. An
5857
- * unrevoked grant with the same principal and relation occupies the unique
5858
- * key even after `expires_at`; DELETE it before re-creating.
5859
- * Create does not accept `expand`. The `user_id` and team locators
5860
- * return 201, whose `user` / `team` carry only `user_id` / `team_id`,
5861
- * and still 404 / 409 when the principal is missing or the tuple
5862
- * already exists. Creating by `user.identifier` answers 202 with no
5863
- * body on every outcome. Granting the session caller's own user is
5864
- * `grant.invalid` on either user locator. Read the grant back for
5865
- * identifier and display.
5866
- *
5867
- * Accepts either a project secret (`oauth2`) or a user-bound Console
5868
- * session cookie (`nextgenSession`). Session callers are authorized as
5869
- * the human against the target project (home may differ). Cookie-authenticated
5870
- * requests follow the scheme's CSRF rules (`nextgenSession`).
5871
- * @summary Create grant
6142
+ * Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.
6143
+ *
6144
+ * The project is the one named by the `project_id` query parameter. Name the
6145
+ * principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
6146
+ * `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
6147
+ * `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not
6148
+ * created here: a claim, which attaches a project to a team, creates them.
6149
+ *
6150
+ * An unrevoked grant with the same principal and relation holds that binding
6151
+ * even after `expires_at`. Revoke it with `deleteGrant` before you create it
6152
+ * again.
6153
+ *
6154
+ * Create does not accept `expand`. The `user_id` and team locators return `201`,
6155
+ * whose `user` and `team` carry only `user_id` and `team_id`. They still answer
6156
+ * `404` or `409` when the principal is missing or the grant already exists.
6157
+ * Creating by `user.identifier` answers `202` with no body on every outcome.
6158
+ * Granting the session caller's own user is `grant.invalid` on either user
6159
+ * locator. A `201` grant names its user or team by ID only: read it back
6160
+ * with `getGrant` for the identifier and display name. A `202` returns no
6161
+ * grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.
6162
+ *
6163
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
6164
+ * (`sessionCookie`). A session caller is authorized as the signed-in person
6165
+ * against the target project, even when the session belongs to another project.
6166
+ * Cookie requests follow that scheme's CSRF rules.
6167
+ * @summary Create a grant
5872
6168
  */
5873
6169
  export declare const createGrantQueryProjectIdRegExp: RegExp;
5874
6170
  export declare const CreateGrantQueryParams: zod.ZodObject<{
@@ -5949,22 +6245,20 @@ export declare const CreateGrantResponse: zod.ZodObject<{
5949
6245
  }, zod.z.core.$strip>>>;
5950
6246
  }, zod.z.core.$strip>;
5951
6247
  /**
5952
- * Returns the collaboration grants of a project, paginated with a cursor.
5953
- * Only unrevoked grants this API manages are listed (user or team bound to
5954
- * viewer, editor, or admin), including expired grants so a client can
5955
- * DELETE before re-granting. Project-secret setup (`sk_proj`) and
5956
- * owning-team (`relation=team`) rows are not returned. Grants are not in
5957
- * `resource_scope_index`; project scope is required on the query (same as
5958
- * get). Requires `project.read`. `expand: ["principal"]` adds envelope
5959
- * fields on `user` / `team` and additionally requires `user.read` and
5960
- * `team.read` for project secrets (documented on the expand enum; those
5961
- * scopes cannot be ANDed onto this security block because they are
5962
- * body-conditional). A user-bound Console session that already passed
5963
- * the project Check may expand without those scopes.
5964
- *
5965
- * Accepts either a project secret (`oauth2`) or a user-bound Console
5966
- * session cookie (`nextgenSession`). Cookie-authenticated requests
5967
- * follow the scheme's CSRF rules (`nextgenSession`).
6248
+ * Returns a page of a project's grants.
6249
+ *
6250
+ * Only unrevoked grants this API manages are listed, which bind a user or team
6251
+ * to the viewer, editor or admin role. Expired grants are included, so a client
6252
+ * can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.
6253
+ * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
6254
+ * not returned. Requires `project.read`.
6255
+ *
6256
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
6257
+ * secrets it additionally requires `user.read` and `team.read`. A user-bound
6258
+ * console session that already passed the project check may expand without those scopes.
6259
+ *
6260
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
6261
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
5968
6262
  * @summary Query grants
5969
6263
  */
5970
6264
  export declare const queryGrantsQueryProjectIdRegExp: RegExp;
@@ -6071,23 +6365,23 @@ export declare const QueryGrantsResponse: zod.ZodObject<{
6071
6365
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
6072
6366
  }, zod.z.core.$strip>;
6073
6367
  /**
6074
- * Loads a grant by `(project_id, id)` that this API manages (user or team
6075
- * bound to viewer, editor, or admin) and that has not been revoked.
6076
- * "Active" here means not revoked: expired grants stay visible so the
6077
- * client can DELETE before re-granting the same binding. Authorization
6078
- * still ignores expired grants. Grants are not registered in
6079
- * `resource_scope_index`; project scope is required on the query (same as
6080
- * events). Misses, revoked rows, project-secret setup (`sk_proj`),
6081
- * owning-team (`relation=team`) rows, and cross-project ids return 404.
6082
- * `expand=principal` adds envelope fields on `user` or `team` and requires
6083
- * `user.read` and `team.read` in addition to `project.read` for project
6084
- * secrets. A user-bound Console session that already passed the project
6085
- * Check may expand without those scopes.
6086
- *
6087
- * Accepts either a project secret (`oauth2`) or a user-bound Console
6088
- * session cookie (`nextgenSession`). Cookie-authenticated requests
6089
- * follow the scheme's CSRF rules (`nextgenSession`).
6090
- * @summary Get grant
6368
+ * Returns a grant by ID, when this API manages it and it has not been revoked.
6369
+ *
6370
+ * This API manages grants that bind a user or team to the viewer, editor or
6371
+ * admin role. An expired grant is still returned, so you can revoke it with
6372
+ * `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still
6373
+ * ignores expired grants. Send `project_id` as well as the grant ID.
6374
+ * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
6375
+ * (`relation=team`) rows and grants of another project all return `404`.
6376
+ *
6377
+ * `expand=principal` adds envelope fields on `user` or `team`. For project
6378
+ * secrets it requires `user.read` and `team.read` in addition to `project.read`.
6379
+ * A user-bound console session that already passed the project check may expand
6380
+ * without those scopes.
6381
+ *
6382
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
6383
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
6384
+ * @summary Get a grant by ID
6091
6385
  */
6092
6386
  export declare const GetGrantParams: zod.ZodObject<{
6093
6387
  id: zod.ZodString;
@@ -6156,15 +6450,15 @@ export declare const GetGrantResponse: zod.ZodObject<{
6156
6450
  }, zod.z.core.$strip>>>;
6157
6451
  }, zod.z.core.$strip>;
6158
6452
  /**
6159
- * Soft-revokes a grant this API manages and emits `authz.revoked`.
6160
- * Already-revoked, missing, project-secret setup, and owning-team grants
6161
- * return 404. The row is not un-revoked. Expired grants can still be
6162
- * revoked so the unique binding can be reused.
6163
- *
6164
- * Accepts either a project secret (`oauth2`) or a user-bound Console
6165
- * session cookie (`nextgenSession`). Cookie-authenticated requests
6166
- * follow the scheme's CSRF rules (`nextgenSession`).
6167
- * @summary Revoke grant
6453
+ * Revokes a grant this API manages and emits `authz.revoked`.
6454
+ *
6455
+ * A revoked grant cannot be restored: create a new one. Already-revoked, missing,
6456
+ * project-secret setup and owning-team grants return `404`. Expired grants can
6457
+ * still be revoked, so the binding can be reused.
6458
+ *
6459
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
6460
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
6461
+ * @summary Revoke a grant
6168
6462
  */
6169
6463
  export declare const DeleteGrantParams: zod.ZodObject<{
6170
6464
  id: zod.ZodString;
@@ -6175,17 +6469,18 @@ export declare const DeleteGrantQueryParams: zod.ZodObject<{
6175
6469
  }, zod.z.core.$strict>;
6176
6470
  export declare const DeleteGrantResponse: zod.ZodVoid;
6177
6471
  /**
6178
- * Returns project-scoped audit events, newest-first by keyset on
6179
- * `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
6180
- * Requires `events.read`.
6472
+ * Lists a project's audit events, newest first. Pass `order=asc` for oldest
6473
+ * first. Requires `events.read`.
6181
6474
  *
6182
- * Pre-claim projects return an empty list (events are stored but not
6183
- * visible until claim succeeds). Team-scoped credentials see only events
6184
- * whose emit-time `team_id` matches the credential team (enforced when
6185
- * team-scoped tokens exist).
6475
+ * A project that is not claimed yet returns an empty list: its events are
6476
+ * stored but stay invisible until the
6477
+ * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
6186
6478
  *
6187
- * Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
6188
- * see docs/design/api/events-catalog.md.
6479
+ * Team-scoped credentials see only the events whose `team_id` matches the
6480
+ * credential's team. Team-scoped credentials are not issued today.
6481
+ *
6482
+ * Each item carries an `event_type` that says which type of event it is, and
6483
+ * the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).
6189
6484
  * @summary List events
6190
6485
  */
6191
6486
  export declare const listEventsQueryProjectIdRegExp: RegExp;
@@ -8829,12 +9124,16 @@ export declare const ListEventsResponse: zod.ZodObject<{
8829
9124
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
8830
9125
  }, zod.z.core.$strip>;
8831
9126
  /**
8832
- * Loads a single event by `(project_id, id)`. Requires `events.read`.
8833
- * Events are not registered in `resource_scope_index`; project scope is
8834
- * required on the query (ADR 049). Misses and cross-project ids return 404.
9127
+ * Returns one event of a project by its ID. Requires `events.read`.
9128
+ *
9129
+ * Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its
9130
+ * `project_id`. An unknown ID and the ID of another project's event both
9131
+ * answer `404`.
8835
9132
  *
8836
- * Pre-claim projects return 404 (stored events stay invisible until claim).
8837
- * @summary Get event by ID
9133
+ * A project that is not claimed yet also answers `404`: its events are
9134
+ * stored but stay invisible until the
9135
+ * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
9136
+ * @summary Get an event by ID
8838
9137
  */
8839
9138
  export declare const GetEventParams: zod.ZodObject<{
8840
9139
  id: zod.ZodString;
@@ -11448,12 +11747,13 @@ export declare const GetEventResponse: zod.ZodUnion<readonly [zod.ZodIntersectio
11448
11747
  }, zod.z.core.$strip>;
11449
11748
  }, zod.z.core.$strip>>]>;
11450
11749
  /**
11451
- * Returns the project's variables, keyed by name, each with its value per
11452
- * kind. With `kind`, only that kind's values are returned.
11750
+ * Returns the project's variables, keyed by name, each with its value for
11751
+ * each kind: `primary` for primary origins and `preview` for preview URLs.
11752
+ * With `kind`, only that kind's values are returned.
11453
11753
  *
11454
11754
  * Secret values are not returned. A secret appears as `{"secret": true}`,
11455
11755
  * which says a value is held without disclosing it.
11456
- * @summary Get variables
11756
+ * @summary Get a project's variables
11457
11757
  */
11458
11758
  export declare const getVariablesQueryProjectIdRegExp: RegExp;
11459
11759
  export declare const GetVariablesQueryParams: zod.ZodObject<{
@@ -11474,25 +11774,29 @@ export declare const GetVariablesResponse: zod.ZodRecord<zod.ZodString, zod.ZodO
11474
11774
  }, zod.z.core.$strip>]>>;
11475
11775
  }, zod.z.core.$strip>>;
11476
11776
  /**
11477
- * Enters, replaces and removes the project's variables for the requested
11478
- * kind. Names not in the body are untouched. Existing deployments keep the
11479
- * values they froze.
11480
- *
11481
- * Without `kind`, a plain value is written for both kinds. A secret is
11482
- * written for `primary` only and removes the name's `preview` value, so a
11483
- * preview never keeps a plaintext copy; set a preview secret with
11484
- * `kind=preview`. `null` removes the name from both.
11777
+ * Sets, replaces and removes the project's variables for the requested
11778
+ * kind, in one request. Names not in the body are untouched. Existing
11779
+ * deployments keep the values they froze.
11485
11780
  *
11486
11781
  * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
11487
11782
  * stores the value encrypted under the project's active `secret` key, after
11488
11783
  * which it can be referenced but not read back. `null` removes the name
11489
- * (RFC 7386), which is how several variables are removed in one request;
11490
- * removing a name the project does not hold is a no-op rather than an error.
11784
+ * (RFC 7386), which is how several variables are removed in one request.
11785
+ * Removing a name the project does not hold is a no-op rather than an error.
11786
+ *
11787
+ * Without `kind`, a plain value is written for both kinds. A secret is
11788
+ * written for `primary` only and removes the name's `preview` value, so a
11789
+ * preview never keeps a plaintext copy. Set a preview secret with
11790
+ * `kind=preview`. `null` removes the name from both kinds.
11491
11791
  *
11492
11792
  * The body is applied whole or not at all, so a rejected request leaves the
11493
- * project's variables exactly as they were. Writing the same name twice
11494
- * replaces the value rather than duplicating it, which makes a retry safe.
11495
- * @summary Update variables
11793
+ * project's variables exactly as they were. Fix what the error reports and
11794
+ * send the request again. Writing the same name twice replaces the value
11795
+ * rather than duplicating it, which makes a retry safe.
11796
+ *
11797
+ * Each kind written records a `variable.set` event, and each kind removed a
11798
+ * `variable.removed` event. The value never appears in either.
11799
+ * @summary Update a project's variables
11496
11800
  */
11497
11801
  export declare const updateVariablesQueryProjectIdRegExp: RegExp;
11498
11802
  export declare const UpdateVariablesQueryParams: zod.ZodObject<{
@@ -11519,10 +11823,14 @@ export declare const UpdateVariablesResponse: zod.ZodRecord<zod.ZodString, zod.Z
11519
11823
  }, zod.z.core.$strip>]>>;
11520
11824
  }, zod.z.core.$strip>>;
11521
11825
  /**
11522
- * Reads one variable by name, with its value per kind. A name with no
11523
- * value for the requested kind answers `var.not_found`. A secret reads
11524
- * back as `{"secret": true}`.
11525
- * @summary Get a variable
11826
+ * Returns one variable by name, with its value for each kind. A variable
11827
+ * holds a value per kind: `primary` for primary origins and `preview` for
11828
+ * preview URLs.
11829
+ *
11830
+ * Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists
11831
+ * it. A name with no value for the requested kind answers `var.not_found`;
11832
+ * set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
11833
+ * @summary Get a variable by name
11526
11834
  */
11527
11835
  export declare const getVariablePathVariableNameMax = 255;
11528
11836
  export declare const getVariablePathVariableNameRegExp: RegExp;
@@ -11548,10 +11856,15 @@ export declare const GetVariableResponse: zod.ZodObject<{
11548
11856
  }, zod.z.core.$strip>]>>;
11549
11857
  }, zod.z.core.$strip>;
11550
11858
  /**
11551
- * Removes a variable for the requested kind, or for both kinds without
11552
- * `kind`. A name with no value for that kind answers `var.not_found`.
11553
- * Existing deployments keep the values they froze.
11554
- * @summary Delete a variable
11859
+ * Deletes a variable for the requested kind, or for both kinds without
11860
+ * `kind`. Existing deployments keep the values they froze. Each kind removed
11861
+ * records a `variable.removed` event.
11862
+ *
11863
+ * A name with no value for that kind answers `var.not_found`: there is
11864
+ * nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To
11865
+ * remove several names in one request, or to remove a name that may already
11866
+ * be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).
11867
+ * @summary Delete a variable by name
11555
11868
  */
11556
11869
  export declare const deleteVariablePathVariableNameMax = 255;
11557
11870
  export declare const deleteVariablePathVariableNameRegExp: RegExp;
@@ -11568,34 +11881,54 @@ export declare const DeleteVariableQueryParams: zod.ZodObject<{
11568
11881
  }, zod.z.core.$strict>;
11569
11882
  export declare const DeleteVariableResponse: zod.ZodVoid;
11570
11883
  /**
11571
- * Makes a release live on its targets by recording a deployment,
11572
- * atomically: on success every target serves the release and the record
11573
- * exists; on failure nothing changes and no record is written.
11574
- *
11575
- * Name the release by exactly one of `release_id` or `content_hash`; it
11576
- * must already exist in the project. `targets` is `primary` or preview
11577
- * URLs. The deployment freezes the project's variable values for its kind,
11578
- * with no fallback between primary and preview values.
11884
+ * Creates a deployment: it makes a release live on the project's primary
11885
+ * origins or on preview URLs.
11886
+ *
11887
+ * A release is a snapshot of the project's configuration. A deployment makes
11888
+ * a release live on origins and freezes the project's variable values for
11889
+ * its kind, with no fallback between primary and preview values. The call is
11890
+ * atomic: on success every target serves the release and the deployment is
11891
+ * recorded, and it records a `deployment.created` event. On failure nothing
11892
+ * changes and nothing is recorded.
11893
+ *
11894
+ * Name the release by exactly one of `release_id` or `content_hash`. Take the
11895
+ * release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or
11896
+ * `listReleases` (`GET /releases`) returns. The release must already exist in the project.
11897
+ * `targets` is `primary`, which means every primary origin, or a list of
11898
+ * preview URLs. `["primary"]`, which clients released before this shape
11899
+ * send, still deploys to every primary origin until 1.0.0; its answer
11900
+ * carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.
11901
+ *
11902
+ * The project's newest primary deployment also serves every request with no
11903
+ * `Origin`, such as a backend, a native app or the CLI, and the console's
11904
+ * login preview of a project that does not list the console's origin. A
11905
+ * preview URL serves only itself.
11579
11906
  *
11580
11907
  * A deployment to `primary` changes nothing when the project's newest
11581
11908
  * primary deployment has the same release and frozen values and covers
11582
- * exactly the current primary origins: the call answers `200` with that
11583
- * deployment. Any other request writes a new deployment and answers `201`;
11584
- * for preview URLs that record renews their previews.
11585
- *
11586
- * Failures:
11587
- * - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;
11588
- * a primary origin named exactly; `primary` mixed with preview URLs;
11589
- * `primary` on a project with no primary origin; `ttl` with `primary`;
11590
- * `ttl` above 365 days (`P365D`).
11591
- * - `400 dep.variables_missing`: a referenced variable has no value for
11592
- * the kind; `details` names the kind and every missing variable.
11593
- * - `403 proj.origin_not_allowed`: a preview URL matches no preview
11594
- * pattern, or is a loopback URL.
11595
- * - `404 rel.not_found`: the release id or digest names no release here.
11596
- * - `409 dep.conflict`: `expected_deployment_id` is not the deployment
11597
- * this write replaces; `details.deployment` is that deployment.
11598
- * - `409 rel.revoked`: the release is revoked.
11909
+ * exactly the current primary origins. The call then answers `200` with that
11910
+ * deployment. Any other request writes a new deployment and answers `201`.
11911
+ * For preview URLs, that deployment renews their previews.
11912
+ *
11913
+ * If the request is refused, fix the cause and send it again:
11914
+ * - `400 dep.invalid`: the request names both or neither of `release_id` and
11915
+ * `content_hash`, names a primary origin among the preview URLs, sends
11916
+ * `primary` for a project with no primary origin, sends
11917
+ * `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct
11918
+ * the request.
11919
+ * - `400 dep.variables_missing`: a variable the release references has no
11920
+ * value for the kind. `details` names the kind and every missing variable.
11921
+ * Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.
11922
+ * - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
11923
+ * of the project, or is a loopback URL. Use a URL that matches a pattern.
11924
+ * - `404 rel.not_found`: the release ID or digest names no release in this
11925
+ * project. List the project's releases with `listReleases`.
11926
+ * - `409 dep.conflict`: `expected_deployment_id` is not the deployment this
11927
+ * write replaces, and `details.deployment` is that deployment. Inspect it,
11928
+ * then retry with its ID as `expected_deployment_id`, or stop.
11929
+ * - `409 rel.revoked`: the release is revoked and cannot be deployed. Change
11930
+ * the configuration and build a new release, or deploy a release that is
11931
+ * not revoked. Rebuilding unchanged content returns the same revoked release.
11599
11932
  * @summary Create a deployment
11600
11933
  */
11601
11934
  export declare const createDeploymentQueryProjectIdRegExp: RegExp;
@@ -11606,15 +11939,17 @@ export declare const createDeploymentBodyReleaseIdRegExp: RegExp;
11606
11939
  export declare const createDeploymentBodyContentHashMin = 71;
11607
11940
  export declare const createDeploymentBodyContentHashMax = 71;
11608
11941
  export declare const createDeploymentBodyContentHashRegExp: RegExp;
11609
- export declare const createDeploymentBodyTargetsItemMax = 2048;
11610
- export declare const createDeploymentBodyTargetsItemRegExp: RegExp;
11611
- export declare const createDeploymentBodyTargetsMax = 50;
11942
+ export declare const createDeploymentBodyTargetsTwoItemMax = 2048;
11943
+ export declare const createDeploymentBodyTargetsTwoItemRegExp: RegExp;
11944
+ export declare const createDeploymentBodyTargetsTwoMax = 50;
11612
11945
  export declare const createDeploymentBodyMessageMax = 1024;
11613
11946
  export declare const createDeploymentBodyExpectedDeploymentIdRegExp: RegExp;
11614
11947
  export declare const CreateDeploymentBody: zod.ZodObject<{
11615
11948
  release_id: zod.ZodOptional<zod.ZodString>;
11616
11949
  content_hash: zod.ZodOptional<zod.ZodString>;
11617
- targets: zod.ZodArray<zod.ZodString>;
11950
+ targets: zod.ZodUnion<readonly [zod.ZodEnum<{
11951
+ primary: "primary";
11952
+ }>, zod.ZodArray<zod.ZodString>]>;
11618
11953
  ttl: zod.ZodOptional<zod.ZodString>;
11619
11954
  reason: zod.ZodOptional<zod.ZodEnum<{
11620
11955
  deploy: "deploy";
@@ -11705,19 +12040,26 @@ export declare const CreateDeploymentResponse: zod.ZodObject<{
11705
12040
  }, zod.z.core.$strip>>;
11706
12041
  }, zod.z.core.$strip>;
11707
12042
  /**
11708
- * Lists what ran where, and when.
11709
- *
11710
- * By default the list is the history, newest first: every deployment of
11711
- * the project with every target it made the release live on. With
11712
- * `origin`, the history of that origin alone.
11713
- *
11714
- * With `live=true`, the list is what is served now, newest first: the
11715
- * project's newest primary deployment, narrowed to origins that are still
11716
- * primary, and the newest deployment to each live preview URL, narrowed to
11717
- * the URLs it still serves. Combined with `origin`, it is the one
11718
- * deployment that origin serves, or empty.
11719
- *
11720
- * `expand: ["release"]` embeds the release each deployment made live; it
12043
+ * Lists the project's deployments: the history of what ran where and when,
12044
+ * or with `live=true` what is served now.
12045
+ *
12046
+ * A deployment makes a release live on origins. By default the list is the
12047
+ * history, newest first: every deployment of the project, with every target
12048
+ * it made the release live on. With `origin`, it is the history of that
12049
+ * origin alone.
12050
+ *
12051
+ * With `live=true`, the list is what is served now, newest first. It holds
12052
+ * the project's newest primary deployment with every origin it names, an
12053
+ * origin the project no longer lists included: that deployment also serves
12054
+ * requests with no `Origin`, so it stays live. It also holds the newest
12055
+ * deployment to each live preview URL, narrowed to the URLs it still
12056
+ * serves. Combined with `origin`, it is the one deployment that origin
12057
+ * serves, or empty, as it is for an origin the project no longer lists.
12058
+ *
12059
+ * The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),
12060
+ * `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
12061
+ *
12062
+ * `expand: ["release"]` embeds the release each deployment made live. It
11721
12063
  * requires `release.read` and does not change the ordering or the page
11722
12064
  * tokens.
11723
12065
  * @summary List deployments
@@ -11823,13 +12165,17 @@ export declare const ListDeploymentsResponse: zod.ZodObject<{
11823
12165
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
11824
12166
  }, zod.z.core.$strip>;
11825
12167
  /**
11826
- * Reads one deployment record.
12168
+ * Returns one deployment: the release it made live, the origins it made it
12169
+ * live on, and whether they still serve it.
11827
12170
  *
11828
- * The lookup is scoped to the project in `project_id`: a deployment id
11829
- * belonging to another project answers not found exactly as an unknown id
12171
+ * Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or
12172
+ * `listDeployments` (`GET /deployments`) returns.
12173
+ *
12174
+ * The lookup is scoped to the project in `project_id`. A deployment ID
12175
+ * belonging to another project answers not found exactly as an unknown ID
11830
12176
  * does, so the endpoint cannot be used to probe for deployments in projects
11831
12177
  * the caller cannot read.
11832
- * @summary Get a deployment by id
12178
+ * @summary Get a deployment by ID
11833
12179
  */
11834
12180
  export declare const getDeploymentByIdPathDeploymentIdRegExp: RegExp;
11835
12181
  export declare const GetDeploymentByIdParams: zod.ZodObject<{
@@ -11921,20 +12267,44 @@ export declare const GetDeploymentByIdResponse: zod.ZodObject<{
11921
12267
  }, zod.z.core.$strip>>;
11922
12268
  }, zod.z.core.$strip>;
11923
12269
  /**
11924
- * Re-deploys the release of the deployment named in the path to `primary`,
11925
- * with the variable values it froze: a new deployment with `reason:
11926
- * rollback` and `rollback_to` naming it. Like any deployment to `primary`,
11927
- * it covers every current primary origin. Idempotent like a deployment to
11928
- * `primary`: when nothing would change it answers `200` with the newest
11929
- * primary deployment.
11930
- *
11931
- * Failures:
11932
- * - `400 dep.invalid`: the deployment went to preview URLs (deploy to the
11933
- * preview again instead), or the project has no primary origin.
11934
- * - `404 dep.not_found`: no deployment of the project has that id.
12270
+ * Rolls back to an earlier deployment by deploying its release again to
12271
+ * every current primary origin, with the variable values that deployment
12272
+ * froze.
12273
+ *
12274
+ * A release is a snapshot of the project's configuration. A deployment makes
12275
+ * a release live on origins and freezes the project's variable values with
12276
+ * it.
12277
+ *
12278
+ * The deployment ID in the path is the deployment to return to, not the one
12279
+ * to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists
12280
+ * the newest deployment first.
12281
+ *
12282
+ * A rollback is a new deployment, not an undo. It has `reason: rollback`,
12283
+ * and its `rollback_to` names the deployment you returned to. It uses the
12284
+ * variable values that deployment froze, not the project's current ones, and
12285
+ * creates no release.
12286
+ *
12287
+ * To guard against a deployment that landed since you looked, set
12288
+ * `expected_deployment_id` in the request body to the newest primary
12289
+ * deployment, the one live now. The call then fails with `409 dep.conflict`
12290
+ * if another deployment has replaced it.
12291
+ *
12292
+ * A rollback is idempotent like a deployment to `primary`. When nothing
12293
+ * would change, it answers `200` with the newest primary deployment.
12294
+ *
12295
+ * If the request is refused:
12296
+ * - `400 dep.invalid`: the deployment went to preview URLs, which cannot be
12297
+ * rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`). The
12298
+ * error also appears when the project has no primary origin. Add one with
12299
+ * `zitadel origin add`.
12300
+ * - `404 dep.not_found`: no deployment of the project has that ID, or that
12301
+ * deployment recorded no variables to restore, so it cannot be a rollback
12302
+ * target. List them with `listDeployments` and pick another.
11935
12303
  * - `409 dep.conflict`: `expected_deployment_id` is not the project's
11936
- * newest primary deployment; `details.deployment` is that deployment.
11937
- * - `409 rel.revoked`: the release is revoked.
12304
+ * newest primary deployment, and `details.deployment` is that deployment.
12305
+ * Inspect it, then retry with its ID, or stop.
12306
+ * - `409 rel.revoked`: the release of that deployment is revoked and cannot
12307
+ * be deployed. Roll back to a deployment of a release that is not revoked.
11938
12308
  * @summary Roll back to a deployment
11939
12309
  */
11940
12310
  export declare const rollbackDeploymentPathDeploymentIdRegExp: RegExp;
@@ -12036,6 +12406,8 @@ export declare const RollbackDeploymentResponse: zod.ZodObject<{
12036
12406
  * Returns the variable values the deployment froze when it was made. Later
12037
12407
  * changes to the project's variables do not affect them. A secret reads
12038
12408
  * back as `{"secret": true}`.
12409
+ *
12410
+ * Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
12039
12411
  * @summary Get a deployment's variables
12040
12412
  */
12041
12413
  export declare const getDeploymentVariablesPathDeploymentIdRegExp: RegExp;