@zitadel/api 0.4.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 (715) hide show
  1. package/README.md +1 -1
  2. package/dist/{api-factory-C5b1Gqwv.mjs → api-factory-32Zz3s86.mjs} +8 -6
  3. package/dist/api-factory-32Zz3s86.mjs.map +1 -0
  4. package/dist/{api-factory-Dt5lUjyu.d.mts → api-factory-DbVEEqxe.d.mts} +8 -3
  5. package/dist/{api-factory-Dt5lUjyu.d.mts.map → api-factory-DbVEEqxe.d.mts.map} +1 -1
  6. package/dist/{fetch-B-lgjlrf.d.mts → fetch-BzLvdm6C.d.mts} +14 -1
  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 +984 -625
  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 +1024 -659
  15. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  16. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +4797 -4436
  17. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  18. package/dist/generated/model/index.d.mts +1 -1
  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 +266 -153
  23. package/dist/generated/operations.mjs.map +1 -1
  24. package/dist/{index-DGQY1rfH.d.mts → index-BX80Kl-8.d.mts} +9071 -7707
  25. package/dist/{index-DGQY1rfH.d.mts.map → index-BX80Kl-8.d.mts.map} +1 -1
  26. package/dist/runtime/api-factory.d.mts +1 -1
  27. package/dist/runtime/api-factory.mjs +1 -1
  28. package/dist/runtime/config.d.mts +1 -1
  29. package/dist/runtime/config.mjs +1 -1
  30. package/dist/runtime/fetch.d.mts +1 -1
  31. package/dist/runtime/fetch.mjs +1 -0
  32. package/dist/runtime/fetch.mjs.map +1 -1
  33. package/dist/runtime/paging.d.mts +106 -23
  34. package/dist/runtime/paging.d.mts.map +1 -1
  35. package/dist/runtime/paging.mjs +132 -32
  36. package/dist/runtime/paging.mjs.map +1 -1
  37. package/dist/zitadelNextGen-CFrFhq_h.d.mts +1726 -0
  38. package/dist/zitadelNextGen-CFrFhq_h.d.mts.map +1 -0
  39. package/package.json +3 -3
  40. package/src/generated/endpoints/zitadelNextGen.faker.ts +3 -3
  41. package/src/generated/endpoints/zitadelNextGen.ts +1009 -650
  42. package/src/generated/endpoints/zitadelNextGen.zod.ts +4812 -4443
  43. package/src/generated/model/addOrigin201.ts +5 -0
  44. package/src/generated/model/addOrigin201Kind.ts +3 -0
  45. package/src/generated/model/addOriginBody.ts +17 -5
  46. package/src/generated/model/addOriginBodyKind.ts +4 -0
  47. package/src/generated/model/beginUserPasskeyRegistration201.ts +3 -3
  48. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +6 -6
  49. package/src/generated/model/buildRelease200.ts +15 -15
  50. package/src/generated/model/buildRelease200Metadata.ts +8 -8
  51. package/src/generated/model/buildRelease200PointersItem.ts +13 -12
  52. package/src/generated/model/buildRelease200PointersItemKind.ts +3 -3
  53. package/src/generated/model/buildRelease201.ts +15 -15
  54. package/src/generated/model/buildRelease201Metadata.ts +8 -8
  55. package/src/generated/model/buildRelease201PointersItem.ts +13 -12
  56. package/src/generated/model/buildRelease201PointersItemKind.ts +3 -3
  57. package/src/generated/model/buildRelease400.ts +1 -3
  58. package/src/generated/model/buildRelease400DetailsResourcesItem.ts +3 -3
  59. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +3 -3
  60. package/src/generated/model/buildReleaseBody.ts +19 -16
  61. package/src/generated/model/buildReleaseBodyBundle.ts +31 -28
  62. package/src/generated/model/buildReleaseBodyBundleBranding.ts +24 -22
  63. package/src/generated/model/buildReleaseBodyBundleBrandingLayout.ts +8 -7
  64. package/src/generated/model/buildReleaseBodyBundleBrandingShape.ts +1 -1
  65. package/src/generated/model/buildReleaseBodyBundleBrandingTheme.ts +5 -7
  66. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +7 -7
  67. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDarkPalette.ts +63 -62
  68. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +7 -7
  69. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLightPalette.ts +63 -62
  70. package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +4 -4
  71. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +47 -26
  72. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemAudience.ts +1 -1
  73. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +2 -2
  74. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItem.ts +46 -28
  75. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItem.ts +9 -7
  76. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemKind.ts +2 -2
  77. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +11 -10
  78. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -1
  79. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesKind.ts +4 -3
  80. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitions.ts +40 -20
  81. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsAction.ts +8 -5
  82. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsPurpose.ts +7 -8
  83. package/src/generated/model/buildReleaseBodyBundleIdpsItem.ts +7 -7
  84. package/src/generated/model/buildReleaseBodyBundleIdpsItemClaimMapping.ts +1 -1
  85. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidc.ts +7 -7
  86. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidcStaticAuthorizeParameters.ts +1 -1
  87. package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioning.ts +1 -1
  88. package/src/generated/model/buildReleaseBodyBundleIdpsItemVerifiedClaims.ts +1 -1
  89. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +3 -3
  90. package/src/generated/model/buildReleaseBodyBundleSchemasItem.ts +23 -22
  91. package/src/generated/model/buildReleaseParams.ts +3 -1
  92. package/src/generated/model/completeClaim409.ts +2 -2
  93. package/src/generated/model/completeClaimBody.ts +1 -1
  94. package/src/generated/model/createAuthAttempt201.ts +23 -22
  95. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +9 -7
  96. package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +1 -1
  97. package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +2 -2
  98. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +5 -5
  99. package/src/generated/model/createAuthAttempt201State.ts +2 -2
  100. package/src/generated/model/createAuthAttemptBody.ts +3 -3
  101. package/src/generated/model/createAuthAttemptDefault.ts +63 -0
  102. package/src/generated/model/createBranding201.ts +10 -10
  103. package/src/generated/model/createBranding201Branding.ts +24 -22
  104. package/src/generated/model/createBranding201BrandingLayout.ts +8 -7
  105. package/src/generated/model/createBranding201BrandingShape.ts +1 -1
  106. package/src/generated/model/createBranding201BrandingTheme.ts +5 -7
  107. package/src/generated/model/createBranding201BrandingThemeDark.ts +7 -7
  108. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +63 -62
  109. package/src/generated/model/createBranding201BrandingThemeLight.ts +7 -7
  110. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +63 -62
  111. package/src/generated/model/createBranding201BrandingTypography.ts +4 -4
  112. package/src/generated/model/createBrandingBody.ts +24 -22
  113. package/src/generated/model/createBrandingBodyLayout.ts +8 -7
  114. package/src/generated/model/createBrandingBodyShape.ts +1 -1
  115. package/src/generated/model/createBrandingBodyTheme.ts +5 -7
  116. package/src/generated/model/createBrandingBodyThemeDark.ts +7 -7
  117. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +63 -62
  118. package/src/generated/model/createBrandingBodyThemeLight.ts +7 -7
  119. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +63 -62
  120. package/src/generated/model/createBrandingBodyTypography.ts +4 -4
  121. package/src/generated/model/createBrandingParams.ts +3 -1
  122. package/src/generated/model/createDeployment200.ts +16 -14
  123. package/src/generated/model/createDeployment200Metadata.ts +1 -1
  124. package/src/generated/model/createDeployment200Release.ts +15 -15
  125. package/src/generated/model/createDeployment200ReleaseMetadata.ts +8 -8
  126. package/src/generated/model/createDeployment200ReleasePointersItem.ts +13 -12
  127. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +3 -3
  128. package/src/generated/model/createDeployment200Status.ts +3 -3
  129. package/src/generated/model/createDeployment201.ts +16 -14
  130. package/src/generated/model/createDeployment201Metadata.ts +1 -1
  131. package/src/generated/model/createDeployment201Release.ts +15 -15
  132. package/src/generated/model/createDeployment201ReleaseMetadata.ts +8 -8
  133. package/src/generated/model/createDeployment201ReleasePointersItem.ts +13 -12
  134. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +3 -3
  135. package/src/generated/model/createDeployment201Status.ts +3 -3
  136. package/src/generated/model/createDeployment409.ts +41 -40
  137. package/src/generated/model/createDeploymentBody.ts +4 -10
  138. package/src/generated/model/createDeploymentParams.ts +3 -1
  139. package/src/generated/model/createFlow201.ts +16 -12
  140. package/src/generated/model/createFlow201Branding.ts +24 -22
  141. package/src/generated/model/createFlow201BrandingLayout.ts +8 -7
  142. package/src/generated/model/createFlow201BrandingShape.ts +1 -1
  143. package/src/generated/model/createFlow201BrandingTheme.ts +5 -7
  144. package/src/generated/model/createFlow201BrandingThemeDark.ts +7 -7
  145. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +63 -62
  146. package/src/generated/model/createFlow201BrandingThemeLight.ts +7 -7
  147. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +63 -62
  148. package/src/generated/model/createFlow201BrandingTypography.ts +4 -4
  149. package/src/generated/model/createFlow201Step.ts +36 -31
  150. package/src/generated/model/createFlow201StepActionsItem.ts +3 -3
  151. package/src/generated/model/createFlow201StepActionsItemKind.ts +1 -1
  152. package/src/generated/model/createFlow201StepChallenge.ts +4 -3
  153. package/src/generated/model/createFlow201StepComplete.ts +1 -1
  154. package/src/generated/model/createFlow201StepFieldsItem.ts +14 -13
  155. package/src/generated/model/createFlow201StepFieldsItemType.ts +1 -1
  156. package/src/generated/model/createFlow201StepFieldsItemValidation.ts +2 -2
  157. package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +1 -1
  158. package/src/generated/model/createFlow201StepGates.ts +10 -8
  159. package/src/generated/model/createFlow201StepGatesConfig.ts +1 -1
  160. package/src/generated/model/createFlow201StepGatesKind.ts +4 -3
  161. package/src/generated/model/createFlow201StepIdentifier.ts +6 -6
  162. package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
  163. package/src/generated/model/createFlow201StepTexts.ts +1 -1
  164. package/src/generated/model/createFlowBody.ts +7 -2
  165. package/src/generated/model/createFlowBodyHint.ts +4 -1
  166. package/src/generated/model/createFlowBodyPurpose.ts +3 -0
  167. package/src/generated/model/createFlowDefault.ts +9 -0
  168. package/src/generated/model/createFlowDefinition201.ts +22 -10
  169. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +47 -26
  170. package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +1 -1
  171. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +2 -2
  172. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +46 -28
  173. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +9 -7
  174. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  175. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +11 -10
  176. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +1 -1
  177. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +4 -3
  178. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +40 -20
  179. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  180. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  181. package/src/generated/model/createFlowDefinition201UserSchema.ts +2 -2
  182. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +2 -1
  183. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +21 -20
  184. package/src/generated/model/createFlowDefinitionBody.ts +22 -12
  185. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +47 -26
  186. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +1 -1
  187. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +2 -2
  188. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +46 -28
  189. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +9 -7
  190. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  191. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +11 -10
  192. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +1 -1
  193. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +4 -3
  194. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +40 -20
  195. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  196. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  197. package/src/generated/model/createGrant201.ts +14 -14
  198. package/src/generated/model/createGrant201ObjectType.ts +1 -1
  199. package/src/generated/model/createGrant201Relation.ts +1 -1
  200. package/src/generated/model/createGrant201Team.ts +7 -7
  201. package/src/generated/model/createGrant201TeamStatus.ts +2 -2
  202. package/src/generated/model/createGrant201User.ts +5 -5
  203. package/src/generated/model/createGrant201UserMetadata.ts +10 -11
  204. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +11 -12
  205. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  206. package/src/generated/model/createGrantBody.ts +12 -12
  207. package/src/generated/model/createGrantBodyRelation.ts +1 -1
  208. package/src/generated/model/createGrantBodyTeam.ts +3 -3
  209. package/src/generated/model/createGrantBodyUser.ts +5 -5
  210. package/src/generated/model/createGrantDefault.ts +9 -0
  211. package/src/generated/model/createGrantParams.ts +3 -1
  212. package/src/generated/model/createHandoff200.ts +9 -10
  213. package/src/generated/model/createIdp200.ts +10 -9
  214. package/src/generated/model/createIdp200Definition.ts +7 -7
  215. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
  216. package/src/generated/model/createIdp200DefinitionOidc.ts +7 -7
  217. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  218. package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
  219. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
  220. package/src/generated/model/createIdp201.ts +10 -9
  221. package/src/generated/model/createIdp201Definition.ts +7 -7
  222. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
  223. package/src/generated/model/createIdp201DefinitionOidc.ts +7 -7
  224. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  225. package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
  226. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
  227. package/src/generated/model/createIdpBody.ts +1 -1
  228. package/src/generated/model/createIdpBodyIdp.ts +7 -7
  229. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
  230. package/src/generated/model/createIdpBodyIdpOidc.ts +7 -7
  231. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +1 -1
  232. package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
  233. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
  234. package/src/generated/model/createIdpParams.ts +3 -1
  235. package/src/generated/model/createProject201.ts +10 -5
  236. package/src/generated/model/createProject201OriginsItem.ts +17 -5
  237. package/src/generated/model/createProject201OriginsItemKind.ts +4 -0
  238. package/src/generated/model/createProjectBody.ts +5 -6
  239. package/src/generated/model/createProjectBodyOriginsItem.ts +17 -5
  240. package/src/generated/model/createProjectBodyOriginsItemKind.ts +4 -0
  241. package/src/generated/model/createRelease200.ts +15 -15
  242. package/src/generated/model/createRelease200Metadata.ts +8 -8
  243. package/src/generated/model/createRelease200PointersItem.ts +13 -12
  244. package/src/generated/model/createRelease200PointersItemKind.ts +3 -3
  245. package/src/generated/model/createRelease201.ts +15 -15
  246. package/src/generated/model/createRelease201Metadata.ts +8 -8
  247. package/src/generated/model/createRelease201PointersItem.ts +13 -12
  248. package/src/generated/model/createRelease201PointersItemKind.ts +3 -3
  249. package/src/generated/model/createReleaseBody.ts +7 -11
  250. package/src/generated/model/createReleaseBodyPointersItem.ts +8 -8
  251. package/src/generated/model/createReleaseBodyPointersItemKind.ts +3 -3
  252. package/src/generated/model/createReleaseParams.ts +3 -1
  253. package/src/generated/model/createSchema201.ts +1 -1
  254. package/src/generated/model/createSchemaBody.ts +23 -22
  255. package/src/generated/model/createSchemaParams.ts +4 -2
  256. package/src/generated/model/createSession201.ts +8 -8
  257. package/src/generated/model/createSession201Session.ts +16 -16
  258. package/src/generated/model/createSession201SessionFactorsItem.ts +2 -2
  259. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +5 -5
  260. package/src/generated/model/createSession201SessionState.ts +1 -1
  261. package/src/generated/model/createSession201SessionUser.ts +5 -5
  262. package/src/generated/model/createSessionBody.ts +1 -1
  263. package/src/generated/model/createTeam201.ts +2 -2
  264. package/src/generated/model/createTeam201Status.ts +2 -2
  265. package/src/generated/model/createTeamBody.ts +1 -1
  266. package/src/generated/model/createTeamParams.ts +3 -1
  267. package/src/generated/model/createUser201.ts +28 -29
  268. package/src/generated/model/createUser201Metadata.ts +10 -11
  269. package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +11 -12
  270. package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +2 -2
  271. package/src/generated/model/createUser201TeamsItem.ts +4 -4
  272. package/src/generated/model/createUserBody.ts +9 -8
  273. package/src/generated/model/createUserParams.ts +4 -2
  274. package/src/generated/model/deleteGrantParams.ts +3 -1
  275. package/src/generated/model/deleteVariableParams.ts +3 -1
  276. package/src/generated/model/evaluatePolicy200.ts +5 -4
  277. package/src/generated/model/evaluatePolicy200Violations.ts +4 -3
  278. package/src/generated/model/evaluatePolicyBody.ts +8 -9
  279. package/src/generated/model/evaluatePolicyParams.ts +3 -1
  280. package/src/generated/model/exchangeHandoff200.ts +8 -8
  281. package/src/generated/model/exchangeHandoff200Session.ts +16 -16
  282. package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +2 -2
  283. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +5 -5
  284. package/src/generated/model/exchangeHandoff200SessionState.ts +1 -1
  285. package/src/generated/model/exchangeHandoff200SessionUser.ts +5 -5
  286. package/src/generated/model/exchangeHandoffBody.ts +7 -5
  287. package/src/generated/model/exchangeHandoffParams.ts +3 -1
  288. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +1 -1
  289. package/src/generated/model/getAuthAttempt200.ts +23 -22
  290. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +9 -7
  291. package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +1 -1
  292. package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +2 -2
  293. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +5 -5
  294. package/src/generated/model/getAuthAttempt200State.ts +2 -2
  295. package/src/generated/model/getBrandingById200.ts +10 -10
  296. package/src/generated/model/getBrandingById200Branding.ts +24 -22
  297. package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -7
  298. package/src/generated/model/getBrandingById200BrandingShape.ts +1 -1
  299. package/src/generated/model/getBrandingById200BrandingTheme.ts +5 -7
  300. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +7 -7
  301. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +63 -62
  302. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +7 -7
  303. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +63 -62
  304. package/src/generated/model/getBrandingById200BrandingTypography.ts +4 -4
  305. package/src/generated/model/getClaimStatus200.ts +4 -5
  306. package/src/generated/model/getClaimStatusParams.ts +1 -1
  307. package/src/generated/model/getClaimWindow200.ts +6 -6
  308. package/src/generated/model/getClaimWindowParams.ts +1 -1
  309. package/src/generated/model/getDeploymentById200.ts +16 -14
  310. package/src/generated/model/getDeploymentById200Metadata.ts +1 -1
  311. package/src/generated/model/getDeploymentById200Release.ts +15 -15
  312. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +8 -8
  313. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +13 -12
  314. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +3 -3
  315. package/src/generated/model/getDeploymentById200Status.ts +3 -3
  316. package/src/generated/model/getDeploymentByIdParams.ts +3 -1
  317. package/src/generated/model/getDeploymentVariablesParams.ts +3 -1
  318. package/src/generated/model/getEvent200.ts +1574 -1323
  319. package/src/generated/model/getEventParams.ts +3 -1
  320. package/src/generated/model/getFlowDefinition200.ts +22 -10
  321. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +47 -26
  322. package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +1 -1
  323. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +2 -2
  324. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +46 -28
  325. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +9 -7
  326. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  327. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +11 -10
  328. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -1
  329. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +4 -3
  330. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +40 -20
  331. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  332. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  333. package/src/generated/model/getFlowDefinition200UserSchema.ts +2 -2
  334. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +2 -1
  335. package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +21 -20
  336. package/src/generated/model/getFlowStep200.ts +16 -12
  337. package/src/generated/model/getFlowStep200Branding.ts +24 -22
  338. package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -7
  339. package/src/generated/model/getFlowStep200BrandingShape.ts +1 -1
  340. package/src/generated/model/getFlowStep200BrandingTheme.ts +5 -7
  341. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +7 -7
  342. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +63 -62
  343. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +7 -7
  344. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +63 -62
  345. package/src/generated/model/getFlowStep200BrandingTypography.ts +4 -4
  346. package/src/generated/model/getFlowStep200Step.ts +36 -31
  347. package/src/generated/model/getFlowStep200StepActionsItem.ts +3 -3
  348. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +1 -1
  349. package/src/generated/model/getFlowStep200StepChallenge.ts +4 -3
  350. package/src/generated/model/getFlowStep200StepComplete.ts +1 -1
  351. package/src/generated/model/getFlowStep200StepFieldsItem.ts +14 -13
  352. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +1 -1
  353. package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +2 -2
  354. package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  355. package/src/generated/model/getFlowStep200StepGates.ts +10 -8
  356. package/src/generated/model/getFlowStep200StepGatesConfig.ts +1 -1
  357. package/src/generated/model/getFlowStep200StepGatesKind.ts +4 -3
  358. package/src/generated/model/getFlowStep200StepIdentifier.ts +6 -6
  359. package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
  360. package/src/generated/model/getFlowStep200StepTexts.ts +1 -1
  361. package/src/generated/model/getFlowStepDefault.ts +18 -0
  362. package/src/generated/model/getGrant200.ts +14 -14
  363. package/src/generated/model/getGrant200ObjectType.ts +1 -1
  364. package/src/generated/model/getGrant200Relation.ts +1 -1
  365. package/src/generated/model/getGrant200Team.ts +7 -7
  366. package/src/generated/model/getGrant200TeamStatus.ts +2 -2
  367. package/src/generated/model/getGrant200User.ts +5 -5
  368. package/src/generated/model/getGrant200UserMetadata.ts +10 -11
  369. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +11 -12
  370. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  371. package/src/generated/model/getGrantDefault.ts +0 -9
  372. package/src/generated/model/getGrantExpandItem.ts +8 -5
  373. package/src/generated/model/getGrantParams.ts +6 -3
  374. package/src/generated/model/getIdpById200.ts +10 -9
  375. package/src/generated/model/getIdpById200Definition.ts +7 -7
  376. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
  377. package/src/generated/model/getIdpById200DefinitionOidc.ts +7 -7
  378. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  379. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
  380. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
  381. package/src/generated/model/getIdpByIdParams.ts +3 -1
  382. package/src/generated/model/getIdpRevisionById200.ts +10 -9
  383. package/src/generated/model/getIdpRevisionById200Definition.ts +7 -7
  384. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
  385. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +7 -7
  386. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  387. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
  388. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
  389. package/src/generated/model/getIdpRevisionByIdParams.ts +3 -1
  390. package/src/generated/model/getMyPasswordState200.ts +2 -2
  391. package/src/generated/model/getMySession200.ts +16 -16
  392. package/src/generated/model/getMySession200FactorsItem.ts +2 -2
  393. package/src/generated/model/getMySession200FactorsItemPayload.ts +5 -5
  394. package/src/generated/model/getMySession200State.ts +1 -1
  395. package/src/generated/model/getMySession200User.ts +5 -5
  396. package/src/generated/model/getMySessionCsrfToken200.ts +1 -1
  397. package/src/generated/model/getMyUser200.ts +28 -29
  398. package/src/generated/model/getMyUser200Metadata.ts +10 -11
  399. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  400. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  401. package/src/generated/model/getMyUser200TeamsItem.ts +4 -4
  402. package/src/generated/model/getMyUserSchema200.ts +4 -4
  403. package/src/generated/model/getMyUserSchema200Metadata.ts +2 -1
  404. package/src/generated/model/getMyUserSchema200Schema.ts +21 -20
  405. package/src/generated/model/getPolicy200.ts +3 -3
  406. package/src/generated/model/getPolicyParams.ts +3 -1
  407. package/src/generated/model/getPolicyRevision200.ts +3 -3
  408. package/src/generated/model/getPolicyRevisionParams.ts +3 -1
  409. package/src/generated/model/getProject200.ts +34 -30
  410. package/src/generated/model/getReleaseById200.ts +15 -15
  411. package/src/generated/model/getReleaseById200Metadata.ts +8 -8
  412. package/src/generated/model/getReleaseById200PointersItem.ts +13 -12
  413. package/src/generated/model/getReleaseById200PointersItemKind.ts +3 -3
  414. package/src/generated/model/getReleaseByIdParams.ts +3 -1
  415. package/src/generated/model/getSchemaById200.ts +4 -4
  416. package/src/generated/model/getSchemaById200Metadata.ts +2 -1
  417. package/src/generated/model/getSchemaById200Schema.ts +21 -20
  418. package/src/generated/model/getSchemaByIdParams.ts +3 -3
  419. package/src/generated/model/getSession200.ts +16 -16
  420. package/src/generated/model/getSession200FactorsItem.ts +2 -2
  421. package/src/generated/model/getSession200FactorsItemPayload.ts +5 -5
  422. package/src/generated/model/getSession200State.ts +1 -1
  423. package/src/generated/model/getSession200User.ts +5 -5
  424. package/src/generated/model/getTeam200.ts +2 -2
  425. package/src/generated/model/getTeam200Status.ts +2 -2
  426. package/src/generated/model/getUserByID200.ts +28 -29
  427. package/src/generated/model/getUserByID200Metadata.ts +10 -11
  428. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  429. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  430. package/src/generated/model/getUserByID200TeamsItem.ts +4 -4
  431. package/src/generated/model/getUserByIDParams.ts +4 -3
  432. package/src/generated/model/getUserPasswordState200.ts +2 -2
  433. package/src/generated/model/getVariable200.ts +4 -4
  434. package/src/generated/model/getVariable200Preview.ts +2 -2
  435. package/src/generated/model/getVariable200Primary.ts +2 -2
  436. package/src/generated/model/getVariableParams.ts +3 -1
  437. package/src/generated/model/getVariables200.ts +4 -4
  438. package/src/generated/model/getVariables200Preview.ts +2 -2
  439. package/src/generated/model/getVariables200Primary.ts +2 -2
  440. package/src/generated/model/getVariablesParams.ts +3 -1
  441. package/src/generated/model/initClaim201.ts +3 -3
  442. package/src/generated/model/initClaim409.ts +2 -2
  443. package/src/generated/model/issueChallenge201.ts +9 -7
  444. package/src/generated/model/issueChallenge201State.ts +1 -1
  445. package/src/generated/model/issueChallengeBody.ts +2 -2
  446. package/src/generated/model/listBrandingParams.ts +3 -1
  447. package/src/generated/model/listDeployments200DeploymentsItem.ts +16 -14
  448. package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +1 -1
  449. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +15 -15
  450. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +8 -8
  451. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +13 -12
  452. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +3 -3
  453. package/src/generated/model/listDeployments200DeploymentsItemStatus.ts +3 -3
  454. package/src/generated/model/listDeploymentsExpandItem.ts +4 -4
  455. package/src/generated/model/listDeploymentsParams.ts +3 -1
  456. package/src/generated/model/listEvents200.ts +1 -1
  457. package/src/generated/model/listEvents200DataItem.ts +1574 -1323
  458. package/src/generated/model/listEventsParams.ts +34 -6
  459. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +22 -10
  460. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +47 -26
  461. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +1 -1
  462. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +2 -2
  463. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +46 -28
  464. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +9 -7
  465. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  466. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +11 -10
  467. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -1
  468. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +4 -3
  469. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +40 -20
  470. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  471. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  472. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +2 -2
  473. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +2 -1
  474. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +21 -20
  475. package/src/generated/model/listFlowDefinitionsExpandItem.ts +2 -2
  476. package/src/generated/model/listFlowDefinitionsParams.ts +8 -6
  477. package/src/generated/model/listIdpRevisions200.ts +1 -2
  478. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +10 -9
  479. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +7 -7
  480. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
  481. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +7 -7
  482. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  483. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
  484. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -1
  485. package/src/generated/model/listIdpRevisionsParams.ts +3 -1
  486. package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +2 -2
  487. package/src/generated/model/listMyProjects200.ts +1 -1
  488. package/src/generated/model/listMyProjects200ProjectsItem.ts +2 -3
  489. package/src/generated/model/listMyProjects200ProjectsItemOriginsItem.ts +17 -5
  490. package/src/generated/model/listMyProjects200ProjectsItemOriginsItemKind.ts +4 -0
  491. package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +12 -15
  492. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  493. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +15 -18
  494. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  495. package/src/generated/model/listMyTeams200TeamsItem.ts +4 -4
  496. package/src/generated/model/listPolicies200.ts +2 -2
  497. package/src/generated/model/listPolicies200PoliciesItem.ts +3 -3
  498. package/src/generated/model/listPoliciesParams.ts +3 -1
  499. package/src/generated/model/listPolicyRevisions200.ts +1 -1
  500. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +3 -3
  501. package/src/generated/model/listPolicyRevisionsParams.ts +3 -1
  502. package/src/generated/model/listPreviews200PreviewsItem.ts +4 -5
  503. package/src/generated/model/listProjectAdmins200AdminsItem.ts +3 -3
  504. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +13 -15
  505. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +5 -5
  506. package/src/generated/model/listReleases200.ts +1 -1
  507. package/src/generated/model/listReleases200ReleasesItem.ts +4 -4
  508. package/src/generated/model/listReleases200ReleasesItemMetadata.ts +8 -8
  509. package/src/generated/model/listReleasesParams.ts +4 -2
  510. package/src/generated/model/listSchemas200.ts +1 -1
  511. package/src/generated/model/listSchemas200SchemasItem.ts +4 -4
  512. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +2 -1
  513. package/src/generated/model/listSchemas200SchemasItemSchema.ts +21 -20
  514. package/src/generated/model/listSchemasExpandItem.ts +2 -2
  515. package/src/generated/model/listSchemasParams.ts +7 -5
  516. package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +2 -2
  517. package/src/generated/model/listUserTeams200TeamsItem.ts +4 -4
  518. package/src/generated/model/patchMyUser200.ts +28 -29
  519. package/src/generated/model/patchMyUser200Metadata.ts +10 -11
  520. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  521. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  522. package/src/generated/model/patchMyUser200TeamsItem.ts +4 -4
  523. package/src/generated/model/patchMyUserBody.ts +2 -2
  524. package/src/generated/model/patchProject200.ts +34 -30
  525. package/src/generated/model/patchProjectBody.ts +3 -3
  526. package/src/generated/model/patchProjectBodyPasswordHash.ts +15 -18
  527. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +1 -1
  528. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +15 -18
  529. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +4 -4
  530. package/src/generated/model/patchUserByID200.ts +28 -29
  531. package/src/generated/model/patchUserByID200Metadata.ts +10 -11
  532. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  533. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  534. package/src/generated/model/patchUserByID200TeamsItem.ts +4 -4
  535. package/src/generated/model/patchUserByIDBody.ts +21 -13
  536. package/src/generated/model/publishPolicy201.ts +3 -3
  537. package/src/generated/model/publishPolicyBody.ts +3 -3
  538. package/src/generated/model/publishPolicyParams.ts +3 -1
  539. package/src/generated/model/queryGrants200GrantsItem.ts +14 -14
  540. package/src/generated/model/queryGrants200GrantsItemObjectType.ts +1 -1
  541. package/src/generated/model/queryGrants200GrantsItemRelation.ts +1 -1
  542. package/src/generated/model/queryGrants200GrantsItemTeam.ts +7 -7
  543. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +2 -2
  544. package/src/generated/model/queryGrants200GrantsItemUser.ts +5 -5
  545. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +10 -11
  546. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +11 -12
  547. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  548. package/src/generated/model/queryGrantsBody.ts +2 -3
  549. package/src/generated/model/queryGrantsBodyExpandItem.ts +8 -5
  550. package/src/generated/model/queryGrantsBodyFilterItem.ts +3 -5
  551. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +1 -2
  552. package/src/generated/model/queryGrantsDefault.ts +0 -9
  553. package/src/generated/model/queryGrantsParams.ts +3 -1
  554. package/src/generated/model/queryIdps200.ts +1 -1
  555. package/src/generated/model/queryIdps200IdpsItem.ts +10 -9
  556. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +7 -7
  557. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
  558. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +7 -7
  559. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  560. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
  561. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
  562. package/src/generated/model/queryIdpsBody.ts +2 -2
  563. package/src/generated/model/queryIdpsBodyFilterItem.ts +5 -7
  564. package/src/generated/model/queryIdpsBodyFilterItemField.ts +2 -2
  565. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +1 -2
  566. package/src/generated/model/queryIdpsBodySorting.ts +2 -2
  567. package/src/generated/model/queryIdpsBodySortingField.ts +2 -2
  568. package/src/generated/model/queryIdpsParams.ts +3 -1
  569. package/src/generated/model/queryProjects200ProjectsItem.ts +2 -3
  570. package/src/generated/model/queryProjects200ProjectsItemOriginsItem.ts +17 -5
  571. package/src/generated/model/queryProjects200ProjectsItemOriginsItemKind.ts +4 -0
  572. package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +12 -15
  573. package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  574. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +15 -18
  575. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  576. package/src/generated/model/queryProjectsBodyFilterItem.ts +3 -5
  577. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +1 -2
  578. package/src/generated/model/querySessions200SessionsItem.ts +16 -16
  579. package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +2 -2
  580. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +5 -5
  581. package/src/generated/model/querySessions200SessionsItemState.ts +1 -1
  582. package/src/generated/model/querySessions200SessionsItemUser.ts +5 -5
  583. package/src/generated/model/querySessionsBodyFilterItem.ts +4 -6
  584. package/src/generated/model/querySessionsBodyFilterItemField.ts +1 -1
  585. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +1 -2
  586. package/src/generated/model/querySessionsBodySorting.ts +2 -3
  587. package/src/generated/model/querySessionsBodySortingField.ts +2 -3
  588. package/src/generated/model/querySessionsParams.ts +3 -1
  589. package/src/generated/model/queryTeams200TeamsItem.ts +2 -2
  590. package/src/generated/model/queryTeams200TeamsItemStatus.ts +2 -2
  591. package/src/generated/model/queryTeamsBodyFilterItem.ts +3 -5
  592. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +1 -2
  593. package/src/generated/model/queryTeamsParams.ts +2 -2
  594. package/src/generated/model/queryUsers200UsersItem.ts +28 -29
  595. package/src/generated/model/queryUsers200UsersItemMetadata.ts +10 -11
  596. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +11 -12
  597. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +2 -2
  598. package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +4 -4
  599. package/src/generated/model/queryUsersBody.ts +2 -2
  600. package/src/generated/model/queryUsersBodyExpandItem.ts +8 -8
  601. package/src/generated/model/queryUsersBodyFilterItem.ts +13 -16
  602. package/src/generated/model/queryUsersBodyFilterItemField.ts +10 -11
  603. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +1 -2
  604. package/src/generated/model/queryUsersBodySorting.ts +4 -5
  605. package/src/generated/model/queryUsersBodySortingField.ts +4 -5
  606. package/src/generated/model/queryUsersParams.ts +2 -2
  607. package/src/generated/model/removeOriginBody.ts +2 -2
  608. package/src/generated/model/revokeRelease200.ts +15 -15
  609. package/src/generated/model/revokeRelease200Metadata.ts +8 -8
  610. package/src/generated/model/revokeRelease200PointersItem.ts +13 -12
  611. package/src/generated/model/revokeRelease200PointersItemKind.ts +3 -3
  612. package/src/generated/model/revokeReleaseParams.ts +3 -1
  613. package/src/generated/model/rollbackDeployment200.ts +16 -14
  614. package/src/generated/model/rollbackDeployment200Metadata.ts +1 -1
  615. package/src/generated/model/rollbackDeployment200Release.ts +15 -15
  616. package/src/generated/model/rollbackDeployment200ReleaseMetadata.ts +8 -8
  617. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +13 -12
  618. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +3 -3
  619. package/src/generated/model/rollbackDeployment200Status.ts +3 -3
  620. package/src/generated/model/rollbackDeployment201.ts +16 -14
  621. package/src/generated/model/rollbackDeployment201Metadata.ts +1 -1
  622. package/src/generated/model/rollbackDeployment201Release.ts +15 -15
  623. package/src/generated/model/rollbackDeployment201ReleaseMetadata.ts +8 -8
  624. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +13 -12
  625. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +3 -3
  626. package/src/generated/model/rollbackDeployment201Status.ts +3 -3
  627. package/src/generated/model/rollbackDeployment409.ts +41 -40
  628. package/src/generated/model/rollbackDeploymentParams.ts +3 -1
  629. package/src/generated/model/setUserPasswordBody.ts +1 -1
  630. package/src/generated/model/setUserPasswordDefault.ts +63 -0
  631. package/src/generated/model/submitFlowStep200.ts +16 -12
  632. package/src/generated/model/submitFlowStep200Branding.ts +24 -22
  633. package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -7
  634. package/src/generated/model/submitFlowStep200BrandingShape.ts +1 -1
  635. package/src/generated/model/submitFlowStep200BrandingTheme.ts +5 -7
  636. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +7 -7
  637. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +63 -62
  638. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +7 -7
  639. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +63 -62
  640. package/src/generated/model/submitFlowStep200BrandingTypography.ts +4 -4
  641. package/src/generated/model/submitFlowStep200Step.ts +36 -31
  642. package/src/generated/model/submitFlowStep200StepActionsItem.ts +3 -3
  643. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +1 -1
  644. package/src/generated/model/submitFlowStep200StepChallenge.ts +4 -3
  645. package/src/generated/model/submitFlowStep200StepComplete.ts +1 -1
  646. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +14 -13
  647. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +1 -1
  648. package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +2 -2
  649. package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  650. package/src/generated/model/submitFlowStep200StepGates.ts +10 -8
  651. package/src/generated/model/submitFlowStep200StepGatesConfig.ts +1 -1
  652. package/src/generated/model/submitFlowStep200StepGatesKind.ts +4 -3
  653. package/src/generated/model/submitFlowStep200StepIdentifier.ts +6 -6
  654. package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
  655. package/src/generated/model/submitFlowStep200StepTexts.ts +1 -1
  656. package/src/generated/model/submitFlowStep400.ts +16 -12
  657. package/src/generated/model/submitFlowStep400Branding.ts +24 -22
  658. package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -7
  659. package/src/generated/model/submitFlowStep400BrandingShape.ts +1 -1
  660. package/src/generated/model/submitFlowStep400BrandingTheme.ts +5 -7
  661. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +7 -7
  662. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +63 -62
  663. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +7 -7
  664. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +63 -62
  665. package/src/generated/model/submitFlowStep400BrandingTypography.ts +4 -4
  666. package/src/generated/model/submitFlowStep400Step.ts +36 -31
  667. package/src/generated/model/submitFlowStep400StepActionsItem.ts +3 -3
  668. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +1 -1
  669. package/src/generated/model/submitFlowStep400StepChallenge.ts +4 -3
  670. package/src/generated/model/submitFlowStep400StepComplete.ts +1 -1
  671. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +14 -13
  672. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +1 -1
  673. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +2 -2
  674. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +1 -1
  675. package/src/generated/model/submitFlowStep400StepGates.ts +10 -8
  676. package/src/generated/model/submitFlowStep400StepGatesConfig.ts +1 -1
  677. package/src/generated/model/submitFlowStep400StepGatesKind.ts +4 -3
  678. package/src/generated/model/submitFlowStep400StepIdentifier.ts +6 -6
  679. package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
  680. package/src/generated/model/submitFlowStep400StepTexts.ts +1 -1
  681. package/src/generated/model/submitFlowStepBody.ts +10 -7
  682. package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +2 -2
  683. package/src/generated/model/submitFlowStepBodyGateProofs.ts +1 -1
  684. package/src/generated/model/submitFlowStepDefault.ts +18 -0
  685. package/src/generated/model/updateTeam200.ts +2 -2
  686. package/src/generated/model/updateTeam200Status.ts +2 -2
  687. package/src/generated/model/updateTeamBody.ts +1 -1
  688. package/src/generated/model/updateVariables200.ts +4 -4
  689. package/src/generated/model/updateVariables200Preview.ts +2 -2
  690. package/src/generated/model/updateVariables200Primary.ts +2 -2
  691. package/src/generated/model/updateVariablesBody.ts +14 -14
  692. package/src/generated/model/updateVariablesParams.ts +3 -1
  693. package/src/generated/model/userProperty.ts +5 -8
  694. package/src/generated/model/userPropertyProperties.ts +2 -2
  695. package/src/generated/model/userPropertyXUnique.ts +1 -1
  696. package/src/generated/model/verifyChallengeProof200.ts +23 -22
  697. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +9 -7
  698. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +1 -1
  699. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +2 -2
  700. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +5 -5
  701. package/src/generated/model/verifyChallengeProof200State.ts +2 -2
  702. package/src/generated/model/verifyChallengeProofBody.ts +2 -2
  703. package/src/generated/operations.ts +277 -152
  704. package/src/runtime/api-factory.spec.ts +50 -0
  705. package/src/runtime/api-factory.ts +11 -2
  706. package/src/runtime/base-url.spec.ts +1 -1
  707. package/src/runtime/fetch.ts +16 -0
  708. package/src/runtime/paged.spec.ts +11 -0
  709. package/src/runtime/paged.ts +9 -8
  710. package/src/runtime/paging.spec.ts +164 -39
  711. package/src/runtime/paging.ts +162 -43
  712. package/dist/api-factory-C5b1Gqwv.mjs.map +0 -1
  713. package/dist/fetch-B-lgjlrf.d.mts.map +0 -1
  714. package/dist/zitadelNextGen-BVO4sdKD.d.mts +0 -1367
  715. package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +0 -1
@@ -1,31 +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.
5
- *
6
- * Point a liveness probe at `/livez` at the root, where the probes stay,
7
- * not under `/api/v1`. It never checks the database, so an outage of the
8
- * database does not restart every instance; `GET /readyz` takes an instance
9
- * out of rotation instead.
10
- * @summary Check server liveness
4
+ * Answers `ok` while the server process serves HTTP, and checks nothing
5
+ * behind it.
6
+ *
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
11
+ * instance out of rotation instead.
12
+ * @summary Check the server's liveness
11
13
  */
12
14
  export declare const GetLiveResponse: zod.ZodString;
13
15
  /**
14
- * Answers whether the server can serve requests, which takes its database answering within a second.
15
- *
16
- * Point a readiness probe at `/readyz` at the root, where the probes stay,
17
- * not under `/api/v1`, so that a server whose database does not answer gets
18
- * no requests until it does. The check is one round trip to the database.
19
- * @summary Check server readiness
16
+ * Answers `ok` when the server can serve requests, which takes its database
17
+ * answering within a second, and `fail` with `503` otherwise.
18
+ *
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
23
+ * database.
24
+ * @summary Check the server's readiness
20
25
  */
21
26
  export declare const GetReadyResponse: zod.ZodString;
22
27
  /**
23
- * Creates a user whose attributes satisfy the user schema the request names.
24
- *
25
- * The server assigns the user's id. With `team_id`, the user also becomes an
26
- * active member of that team. A value the schema marks unique that another
27
- * user already holds is refused with `409`.
28
- * @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
29
36
  */
30
37
  export declare const createUserQueryProjectIdRegExp: RegExp;
31
38
  export declare const createUserQueryTeamIdRegExp: RegExp;
@@ -85,9 +92,15 @@ export declare const CreateUserResponse: zod.ZodObject<{
85
92
  * `project_id` names the project to list; without it, the credential's own
86
93
  * project is listed.
87
94
  *
88
- * Accepts either a project secret (`oauth2`) or a user-bound Console
95
+ * Accepts either a project secret (`oauth2`) or a user-bound console
89
96
  * session cookie (`sessionCookie`). Cookie-authenticated requests
90
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.
91
104
  * @summary Query users
92
105
  */
93
106
  export declare const queryUsersQueryProjectIdRegExp: RegExp;
@@ -185,11 +198,11 @@ export declare const QueryUsersResponse: zod.ZodObject<{
185
198
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
186
199
  }, zod.z.core.$strip>;
187
200
  /**
188
- * Returns a user by its id, with the attributes its schema defines.
201
+ * Returns a user by ID, with the attributes its schema defines.
189
202
  *
190
- * With `team_id`, the user is returned only while they are an active member of
191
- * that team.
192
- * @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
193
206
  */
194
207
  export declare const getUserByIDPathUserIdRegExp: RegExp;
195
208
  export declare const GetUserByIDParams: zod.ZodObject<{
@@ -246,7 +259,20 @@ export declare const GetUserByIDResponse: zod.ZodObject<{
246
259
  * moves the user to another registered schema. The merged result is
247
260
  * validated against the schema before commit. Concurrent writes are
248
261
  * last-write-wins.
249
- * @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
250
276
  */
251
277
  export declare const patchUserByIDPathUserIdRegExp: RegExp;
252
278
  export declare const PatchUserByIDParams: zod.ZodObject<{
@@ -254,6 +280,7 @@ export declare const PatchUserByIDParams: zod.ZodObject<{
254
280
  }, zod.z.core.$strip>;
255
281
  export declare const PatchUserByIDBody: zod.ZodObject<{
256
282
  schema: zod.ZodOptional<zod.ZodString>;
283
+ dry_run: zod.ZodOptional<zod.ZodBoolean>;
257
284
  attributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
258
285
  }, zod.z.core.$strip>;
259
286
  export declare const patchUserByIDResponseIdRegExp: RegExp;
@@ -308,7 +335,7 @@ export declare const PatchUserByIDResponse: zod.ZodObject<{
308
335
  * in no project succeeds without changing anything. Deleting the last active
309
336
  * member of a project's owning team returns 409 `proj.last_owner` and changes
310
337
  * nothing.
311
- * @summary Delete user by ID
338
+ * @summary Delete a user by ID
312
339
  */
313
340
  export declare const deleteUserByIDPathUserIdRegExp: RegExp;
314
341
  export declare const DeleteUserByIDParams: zod.ZodObject<{
@@ -316,8 +343,9 @@ export declare const DeleteUserByIDParams: zod.ZodObject<{
316
343
  }, zod.z.core.$strip>;
317
344
  export declare const DeleteUserByIDResponse: zod.ZodVoid;
318
345
  /**
319
- * The identity provider accounts a sign-in linked to the user, oldest first.
320
- * 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.
321
349
  * @summary List the provider accounts linked to a user
322
350
  */
323
351
  export declare const listUserIdentityLinksPathUserIdRegExp: RegExp;
@@ -339,12 +367,13 @@ export declare const ListUserIdentityLinksResponse: zod.ZodObject<{
339
367
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
340
368
  }, zod.z.core.$strip>;
341
369
  /**
342
- * Returns the passkeys registered for a user, newest first, paginated with a
343
- * 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.
344
373
  *
345
- * 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
346
375
  * credential itself.
347
- * @summary List user passkeys
376
+ * @summary List a user's passkeys
348
377
  */
349
378
  export declare const listUserPasskeysPathUserIdRegExp: RegExp;
350
379
  export declare const ListUserPasskeysParams: zod.ZodObject<{
@@ -366,11 +395,15 @@ export declare const ListUserPasskeysResponse: zod.ZodObject<{
366
395
  }, zod.z.core.$strip>;
367
396
  /**
368
397
  * Starts a WebAuthn registration ceremony for the user and returns the
369
- * creation options for `navigator.credentials.create()`. Complete the
370
- * ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
371
- * five minutes. Credentials already registered for the user are excluded
372
- * automatically.
373
- * @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
374
407
  */
375
408
  export declare const beginUserPasskeyRegistrationPathUserIdRegExp: RegExp;
376
409
  export declare const BeginUserPasskeyRegistrationParams: zod.ZodObject<{
@@ -387,13 +420,16 @@ export declare const BeginUserPasskeyRegistrationResponse: zod.ZodObject<{
387
420
  options: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
388
421
  }, zod.z.core.$strip>;
389
422
  /**
390
- * Verifies the attestation against the ceremony started by
391
- * `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
392
- * rejected attestation counts against the ceremony's failure budget and the
393
- * ceremony stays open for a retry. An expired ceremony surfaces as
394
- * `att.stale_challenge`; an unknown or already-consumed registration id
395
- * surfaces as `att.not_found`.
396
- * @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
397
433
  */
398
434
  export declare const finishUserPasskeyRegistrationPathUserIdRegExp: RegExp;
399
435
  export declare const FinishUserPasskeyRegistrationParams: zod.ZodObject<{
@@ -410,10 +446,10 @@ export declare const FinishUserPasskeyRegistrationResponse: zod.ZodObject<{
410
446
  created_at: zod.z.ZodISODateTime;
411
447
  }, zod.z.core.$strip>;
412
448
  /**
413
- * 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
414
450
  * when the user has none. The password and its hash are never returned;
415
- * setting one is `PUT` on the same path.
416
- * @summary Get user password state
451
+ * `setUserPassword` (`PUT` on the same path) sets one.
452
+ * @summary Get a user's password state
417
453
  */
418
454
  export declare const getUserPasswordStatePathUserIdRegExp: RegExp;
419
455
  export declare const GetUserPasswordStateParams: zod.ZodObject<{
@@ -427,25 +463,49 @@ export declare const GetUserPasswordStateResponse: zod.ZodObject<{
427
463
  * policy.
428
464
  *
429
465
  * The new password replaces the current one, and setting it emits
430
- * `auth.factor.password.set`.
431
- * @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
432
488
  */
433
489
  export declare const setUserPasswordPathUserIdRegExp: RegExp;
434
490
  export declare const SetUserPasswordParams: zod.ZodObject<{
435
491
  user_id: zod.ZodString;
436
492
  }, zod.z.core.$strip>;
493
+ export declare const SetUserPasswordHeader: zod.ZodObject<{
494
+ Origin: zod.ZodOptional<zod.ZodURL>;
495
+ }, zod.z.core.$strict>;
437
496
  export declare const SetUserPasswordBody: zod.ZodObject<{
438
497
  password: zod.ZodString;
439
498
  }, zod.z.core.$strip>;
440
499
  export declare const SetUserPasswordResponse: zod.ZodVoid;
441
500
  /**
442
- * The user's team roster, ordered by team name. Each entry carries the
443
- * team's name, so a client renders a page without resolving ids one by one.
444
- *
445
- * This is the N:N roster and it is not lifecycle ownership: the single team
446
- * that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
447
- * on the user read endpoints. Memberships the user was removed from are not
448
- * 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.
449
509
  * @summary List the teams a user belongs to
450
510
  */
451
511
  export declare const listUserTeamsPathUserIdRegExp: RegExp;
@@ -587,8 +647,9 @@ export declare const PatchMyUserResponse: zod.ZodObject<{
587
647
  teams_truncated: zod.ZodOptional<zod.ZodBoolean>;
588
648
  }, zod.z.core.$strip>;
589
649
  /**
590
- * The identity provider accounts a sign-in linked to the signed-in user,
591
- * 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.
592
653
  *
593
654
  * With `project_id`, the links are listed only when the session belongs to
594
655
  * that project.
@@ -611,9 +672,10 @@ export declare const ListMyIdentityLinksResponse: zod.ZodObject<{
611
672
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
612
673
  }, zod.z.core.$strip>;
613
674
  /**
614
- * The signed-in user's own passkeys, newest first, paginated with a cursor.
615
- * Each passkey carries its id, its name and when it was registered, never the
616
- * 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.
617
679
  *
618
680
  * With `project_id`, the passkeys are listed only when the session belongs to
619
681
  * that project.
@@ -636,7 +698,7 @@ export declare const ListMyPasskeysResponse: zod.ZodObject<{
636
698
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
637
699
  }, zod.z.core.$strip>;
638
700
  /**
639
- * 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
640
702
  * `set_at` out when they have none. The password and its hash are never
641
703
  * returned.
642
704
  *
@@ -652,12 +714,12 @@ export declare const GetMyPasswordStateResponse: zod.ZodObject<{
652
714
  set_at: zod.ZodOptional<zod.z.ZodISODateTime>;
653
715
  }, zod.z.core.$strip>;
654
716
  /**
655
- * The projects the signed-in user can act on: those they hold an active grant
656
- * on, either directly or through a team they are a member of. For a platform
657
- * operator (ADR 075) that is every project of the deployment. Ordered by
658
- * 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.
659
721
  *
660
- * 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
661
723
  * project the calling credential is bound to. Here the session is the caller
662
724
  * and the grants are the answer, so the list spans projects.
663
725
  *
@@ -721,7 +783,7 @@ export declare const ListMyProjectsResponse: zod.ZodObject<{
721
783
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
722
784
  }, zod.z.core.$strip>;
723
785
  /**
724
- * 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.
725
787
  *
726
788
  * With `project_id`, the schema is returned only when the session belongs to
727
789
  * that project.
@@ -779,7 +841,7 @@ export declare const GetMyUserSchemaResponse: zod.ZodObject<{
779
841
  }, zod.z.core.$strip>;
780
842
  }, zod.z.core.$strip>;
781
843
  /**
782
- * 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.
783
845
  *
784
846
  * With `project_id`, the teams are listed only when the session belongs to
785
847
  * that project.
@@ -808,34 +870,56 @@ export declare const ListMyTeamsResponse: zod.ZodObject<{
808
870
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
809
871
  }, zod.z.core.$strip>;
810
872
  /**
811
- * Resolves a flow definition based on purpose + audience context and returns
812
- * the first capability step. Creates a new session implicitly unless
813
- * `session_id` is provided, together with that session's `session_token`
814
- * (for step-up / reauth on an existing session).
815
- *
816
- * The browser `Origin` header selects which deployment serves this attempt:
817
- * the gate admits the origin against the project's origin patterns and live
818
- * previews, the newest deployment to that exact origin is the target, and
819
- * that deployment's release supplies flow definitions, user schemas and
820
- * branding. The resolved deployment is sealed into the `_zflow` cookie so
821
- * later steps keep the same configuration. An origin that matches no pattern
822
- * answers `403` with `proj.origin_not_allowed`; one that matches a preview
823
- * pattern with no live preview answers `403` with `proj.preview_not_live`;
824
- * nothing deployed to the target answers `409` with `rel.not_deployed`; a
825
- * revoked release answers `409` with `rel.revoked`. A request with no
826
- * `Origin` passes the gate and still needs a deployment target. A loopback
827
- * origin passes it too, and so does the server's own origin, from which its
828
- * console previews a project's login; a step submitted from the server's
829
- * own origin is still refused unless the project lists it.
830
- *
831
- * 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
832
916
  * parameter for all subsequent `/flow/{id}/submit` calls.
833
917
  *
834
918
  * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
835
919
  * the flow's orchestration state (current step, collected data, history).
836
- * 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
837
921
  * cookie. The browser sends it automatically on subsequent requests.
838
- * @summary Start a new flow
922
+ * @summary Start a flow
839
923
  */
840
924
  export declare const CreateFlowHeader: zod.ZodObject<{
841
925
  Origin: zod.ZodOptional<zod.ZodURL>;
@@ -1114,13 +1198,17 @@ export declare const CreateFlowResponse: zod.ZodObject<{
1114
1198
  handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
1115
1199
  }, zod.z.core.$strip>;
1116
1200
  /**
1117
- * Returns the current capability step without advancing the state machine.
1118
- * 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.
1119
1207
  *
1120
1208
  * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
1121
1209
  * re-resolve from `Origin`. If that release was revoked since the attempt
1122
1210
  * started, the response is `409` with `rel.revoked`.
1123
- * @summary Get current step (re-render)
1211
+ * @summary Get the current step of a flow
1124
1212
  */
1125
1213
  export declare const GetFlowStepParams: zod.ZodObject<{
1126
1214
  id: zod.ZodString;
@@ -1370,12 +1458,14 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
1370
1458
  handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
1371
1459
  }, zod.z.core.$strip>;
1372
1460
  /**
1373
- * Submits user input for the current step. The server validates,
1374
- * processes (e.g., verifies a credential), advances the state machine
1375
- * 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.
1376
1466
  *
1377
1467
  * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
1378
- * with the new flow state. The server is stateless — all orchestration
1468
+ * with the new flow state. The server is stateless: all orchestration
1379
1469
  * state is carried in this cookie between requests.
1380
1470
  *
1381
1471
  * **Important:** The `id` in the response may differ from the `id` used in
@@ -1391,17 +1481,17 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
1391
1481
  * | `behavior` | Action |
1392
1482
  * |------------- |------------------------------------------------------------|
1393
1483
  * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
1394
- * | `show` | Render the step as a success screen (e.g., registration). |
1484
+ * | `show` | Render the step as a success screen, such as registration. |
1395
1485
  *
1396
1486
  * A `complete` step is only returned when the **entire flow stack** is done.
1397
- * If a stacked flow (e.g., recovery pivoted from login) finishes, the server
1398
- * auto-pops to the parent flow and returns the parent's next step — the
1399
- * 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.
1400
1490
  *
1401
1491
  * ## External sign-in
1402
1492
  *
1403
1493
  * `{action: "sso", sso_provider_id, return_target}` on a step that offers
1404
- * `sso_providers` returns the engine-emitted `sso-redirect` step, whose
1494
+ * `sso_providers` returns the server-emitted `sso-redirect` step, whose
1405
1495
  * `redirect_url` the frontend navigates to.
1406
1496
  *
1407
1497
  * - The flow state does not change, but `_zflow` is re-sealed like on
@@ -1414,15 +1504,16 @@ export declare const GetFlowStepResponse: zod.ZodObject<{
1414
1504
  * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
1415
1505
  * `__Host-` prefix is dropped because it requires `Secure`.
1416
1506
  *
1417
- * A connection whose `client_id` is a `${{ NAME }}` reference has it filled
1418
- * from the project's variables. A provider the engine cannot start a
1419
- * sign-in with, including a reference with no variable behind it,
1420
- * 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`.
1421
1512
  *
1422
1513
  * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
1423
1514
  * re-resolve from `Origin`. If that release was revoked since the attempt
1424
1515
  * started, the response is `409` with `rel.revoked`.
1425
- * @summary Submit step data and advance
1516
+ * @summary Submit a flow step
1426
1517
  */
1427
1518
  export declare const SubmitFlowStepParams: zod.ZodObject<{
1428
1519
  id: zod.ZodString;
@@ -1689,20 +1780,36 @@ export declare const SubmitFlowStepResponse: zod.ZodObject<{
1689
1780
  handoff_token_expires_at: zod.ZodOptional<zod.z.ZodISODateTime>;
1690
1781
  }, zod.z.core.$strip>;
1691
1782
  /**
1692
- * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
1693
- *
1694
- * An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
1695
- * It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
1696
- *
1697
- * Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
1698
- * also include session_id and that session's session_token to add factors to an existing session.
1699
- *
1700
- * The project comes from the project secret. A body `project_id` that disagrees
1701
- * answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are
1702
- * filled only when create runs with a runtime resolution already on the
1703
- * context (the flow create path); this HTTP entry point does not resolve
1704
- * Origin or refuse a revoked release itself.
1705
- * @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
1706
1813
  */
1707
1814
  export declare const createAuthAttemptBodyProjectIdRegExp: RegExp;
1708
1815
  export declare const createAuthAttemptBodySessionIdOneRegExp: RegExp;
@@ -1802,14 +1909,14 @@ export declare const CreateAuthAttemptResponse: zod.ZodObject<{
1802
1909
  created_at: zod.z.ZodISODateTime;
1803
1910
  }, zod.z.core.$strip>;
1804
1911
  /**
1805
- * Polls the current state of an authentication attempt.
1912
+ * Returns the current state of an authentication attempt, one sign-in round.
1806
1913
  *
1807
- * Returns the attempt's state, available factors for the next challenge,
1808
- * 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.
1809
1916
  *
1810
- * Use this for polling during long-running factor verifications (e.g., waiting for
1811
- * a federated IdP callback or a device flow).
1812
- * @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
1813
1920
  */
1814
1921
  export declare const getAuthAttemptPathAttemptIdRegExp: RegExp;
1815
1922
  export declare const GetAuthAttemptParams: zod.ZodObject<{
@@ -1905,12 +2012,12 @@ export declare const GetAuthAttemptResponse: zod.ZodObject<{
1905
2012
  created_at: zod.z.ZodISODateTime;
1906
2013
  }, zod.z.core.$strip>;
1907
2014
  /**
1908
- * Issues a single-factor verification challenge within an auth attempt.
2015
+ * Issues a challenge, a request to prove one factor, within an authentication attempt.
1909
2016
  *
1910
- * This advances the authentication state machine by requesting a specific factor method
1911
- * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
1912
- * including method, metadata, and any UI hints. The client then verifies the proof
1913
- * 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`.
1914
2021
  * @summary Issue a factor challenge
1915
2022
  */
1916
2023
  export declare const issueChallengePathAttemptIdRegExp: RegExp;
@@ -1967,17 +2074,22 @@ export declare const IssueChallengeResponse: zod.ZodObject<{
1967
2074
  }, zod.z.core.$strip>]>>;
1968
2075
  }, zod.z.core.$strip>;
1969
2076
  /**
1970
- * 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.
1971
2078
  *
1972
2079
  * The proof format depends on the challenge method. For example:
2080
+ *
1973
2081
  * - `password` method: { password: "…" }
1974
2082
  * - `totp` method: { totp: { code: "123456" } }
1975
2083
  * - `passkey` method: { passkey: { assertion: "…" } }
1976
2084
  * - `recovery_code` method: { recovery_code: "…" }
1977
2085
  *
1978
- * On successful verification, the factor is written to the auth attempt.
1979
- * The attempt moves to the next pending challenge or completes if all required factors are verified.
1980
- * @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
1981
2093
  */
1982
2094
  export declare const verifyChallengeProofPathAttemptIdRegExp: RegExp;
1983
2095
  export declare const verifyChallengeProofPathChallengeIdRegExp: RegExp;
@@ -2087,19 +2199,24 @@ export declare const VerifyChallengeProofResponse: zod.ZodObject<{
2087
2199
  created_at: zod.z.ZodISODateTime;
2088
2200
  }, zod.z.core.$strip>;
2089
2201
  /**
2090
- * Completes the authentication attempt and mints a `handoff_token`.
2202
+ * Completes an authentication attempt and mints a `handoff_token`.
2091
2203
  *
2092
- * Call this after all required factors have been verified and the attempt is in `completed` state.
2093
- * The handoff token is short-lived (≤60 seconds) and must be exchanged at
2094
- * POST /sessions/exchange to receive the final session and session_token.
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.
2095
2208
  *
2096
- * The handoff token is:
2097
- * - Single-use (atomic exchange, no retry)
2098
- * - Audience-bound (requires matching project key for exchange)
2099
- * - Idempotency-safe within a 5-minute window (see conventions)
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:
2100
2211
  *
2101
- * Revoke refusal for a sealed release happens at handoff exchange, not here.
2102
- * @summary Complete authentication and create handoff token
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.
2216
+ *
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
2103
2220
  */
2104
2221
  export declare const createHandoffPathAttemptIdRegExp: RegExp;
2105
2222
  export declare const CreateHandoffParams: zod.ZodObject<{
@@ -2116,10 +2233,13 @@ export declare const CreateHandoffResponse: zod.ZodObject<{
2116
2233
  * Creates a project and returns its project secret and preview secret, which no
2117
2234
  * other endpoint returns.
2118
2235
  *
2119
- * The request needs no credential and is rate-limited. Unless `seed_defaults` is
2120
- * `false`, the project starts with a default user schema and flow; the CLI turns
2121
- * that off and uploads its own from `.zitadel/`.
2122
- * @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
2123
2243
  */
2124
2244
  export declare const createProjectBodySeedDefaultsDefault = true;
2125
2245
  export declare const CreateProjectBody: zod.ZodObject<{
@@ -2151,9 +2271,9 @@ export declare const CreateProjectResponse: zod.ZodObject<{
2151
2271
  * Returns the project the project secret belongs to, as a page of at most one
2152
2272
  * project.
2153
2273
  *
2154
- * A credential is scoped to one project until ADR 036 widens it, so the filters
2155
- * and sorting apply to that project alone. The projects a signed-in person can
2156
- * 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`.
2157
2277
  * @summary Query projects
2158
2278
  */
2159
2279
  export declare const queryProjectsBodyLimitDefault = 20;
@@ -2228,8 +2348,12 @@ export declare const QueryProjectsResponse: zod.ZodObject<{
2228
2348
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
2229
2349
  }, zod.z.core.$strip>;
2230
2350
  /**
2231
- * Returns the current state of a project.
2232
- * @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
2233
2357
  */
2234
2358
  export declare const getProjectPathProjectIdRegExp: RegExp;
2235
2359
  export declare const GetProjectParams: zod.ZodObject<{
@@ -2276,8 +2400,16 @@ export declare const GetProjectResponse: zod.ZodIntersection<zod.ZodObject<{
2276
2400
  owning_team_id: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
2277
2401
  }, zod.z.core.$strip>>;
2278
2402
  /**
2279
- * Updates the state of a project.
2280
- * @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
2281
2413
  */
2282
2414
  export declare const patchProjectPathProjectIdRegExp: RegExp;
2283
2415
  export declare const PatchProjectParams: zod.ZodObject<{
@@ -2351,35 +2483,35 @@ export declare const PatchProjectResponse: zod.ZodIntersection<zod.ZodObject<{
2351
2483
  owning_team_id: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
2352
2484
  }, zod.z.core.$strip>>;
2353
2485
  /**
2354
- * Lists the people who can administer the project, and how each of them
2355
- * gets that access. A person appears once, with one entry in `sources` per
2356
- * way they hold it:
2357
- *
2358
- * - `owning_team`: an active member of the team that owns the project
2359
- * (ADR 054 §2). Removing a grant does not remove this access; it ends
2360
- * only when the person leaves the team or the project changes owner.
2361
- * - `grant`: an unexpired `admin` grant on the project, either to the
2362
- * person (`grant_id` only) or to a team they are an active member of
2363
- * (`grant_id` and `team`). Revoking that grant removes this source.
2364
- *
2365
- * The list follows the authorization check: team membership is read from
2366
- * the same membership projection the check expands, so a person who left a
2367
- * team, or whose team or user was deactivated, is not listed through it.
2368
- * Grants that expired or carry a lower role are left out. A person whose
2369
- * only access is a `viewer` or `editor` grant is not an admin and is not
2370
- * listed. Like the check, the list does not look at a person's user status
2371
- * 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.
2372
2506
  *
2373
2507
  * A person whose access comes only through teams the caller is not a
2374
- * member of is left out, and a team the caller is not in is named by
2375
- * `team_id` only. The grant to such a team still shows in the project's
2376
- * grants.
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.
2377
2510
  *
2378
- * Ordered by `user_id` and paginated with `page_token`.
2379
- *
2380
- * Accepts either a project secret (`oauth2`) or a user-bound Console
2381
- * session cookie (`sessionCookie`) that can read the project.
2382
- * @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
2383
2515
  */
2384
2516
  export declare const listProjectAdminsPathProjectIdRegExp: RegExp;
2385
2517
  export declare const ListProjectAdminsParams: zod.ZodObject<{
@@ -2422,11 +2554,22 @@ export declare const ListProjectAdminsResponse: zod.ZodObject<{
2422
2554
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
2423
2555
  }, zod.z.core.$strip>;
2424
2556
  /**
2425
- * Starts a claim challenge for an unclaimed project. Authenticated by the
2426
- * project secret, this mints a single-use, short-lived challenge and returns
2427
- * the `claim_url` the developer opens in a browser to complete the claim,
2428
- * together with the `challenge_id` the CLI polls with. The exact expiry is
2429
- * 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.
2430
2573
  * @summary Initialize a project claim
2431
2574
  */
2432
2575
  export declare const initClaimPathProjectIdRegExp: RegExp;
@@ -2440,15 +2583,23 @@ export declare const InitClaimResponse: zod.ZodObject<{
2440
2583
  expires_at: zod.z.ZodISODateTime;
2441
2584
  }, zod.z.core.$strip>;
2442
2585
  /**
2443
- * Polled by the CLI while a browser completes the claim. Authorized by the
2444
- * project secret that initiated the challenge. Returns `pending`, or
2445
- * `completed` with the owning team, the claim timestamp, and the dashboard
2446
- * URL once the project is claimed. The claim grant, not the polled
2447
- * challenge, is the source of truth: a project claimed through another
2448
- * concurrent challenge also reports `completed`, and a completed claim
2449
- * keeps reporting `completed` past this challenge's expiry and past the
2450
- * project's claim window.
2451
- * @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
2452
2603
  */
2453
2604
  export declare const getClaimStatusPathProjectIdRegExp: RegExp;
2454
2605
  export declare const GetClaimStatusParams: zod.ZodObject<{
@@ -2472,10 +2623,18 @@ export declare const GetClaimStatusResponse: zod.ZodUnion<readonly [zod.ZodObjec
2472
2623
  dashboard_url: zod.ZodURL;
2473
2624
  }, zod.z.core.$strip>]>;
2474
2625
  /**
2475
- * Called by the browser after the developer authenticates on the claim page.
2476
- * Authenticated by the session cookie, it attaches the project to
2477
- * the developer's personal team using the `challenge_id` from the claim URL as
2478
- * 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.
2479
2638
  * @summary Complete a project claim
2480
2639
  */
2481
2640
  export declare const completeClaimPathProjectIdRegExp: RegExp;
@@ -2494,12 +2653,18 @@ export declare const CompleteClaimResponse: zod.ZodObject<{
2494
2653
  claimed_at: zod.z.ZodISODateTime;
2495
2654
  }, zod.z.core.$strip>;
2496
2655
  /**
2497
- * Read by the claim page in the browser to show how long is left to claim the
2498
- * project. Unauthenticated by design: the claim page runs this before the
2499
- * developer has signed in, and holding the `challenge_id` from the claim URL
2500
- * is the authorization — the same capability `claim/complete` accepts. It
2501
- * reveals only the window, never the project itself, and unlike
2502
- * `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.
2503
2668
  * @summary Get the claim window for a project
2504
2669
  */
2505
2670
  export declare const getClaimWindowPathProjectIdRegExp: RegExp;
@@ -2515,10 +2680,22 @@ export declare const GetClaimWindowResponse: zod.ZodObject<{
2515
2680
  expired: zod.ZodBoolean;
2516
2681
  }, zod.z.core.$strip>;
2517
2682
  /**
2518
- * Adds one `{pattern, kind}` to the project's origins. A primary pattern
2519
- * must be an exact URL (no wildcard). Preview patterns may include a single
2520
- * DNS-label wildcard. Adding a pattern that already exists with the same
2521
- * 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.
2522
2699
  * @summary Add an origin pattern
2523
2700
  */
2524
2701
  export declare const addOriginPathProjectIdRegExp: RegExp;
@@ -2540,10 +2717,15 @@ export declare const AddOriginResponse: zod.ZodObject<{
2540
2717
  }>;
2541
2718
  }, zod.z.core.$strip>;
2542
2719
  /**
2543
- * Removes one pattern from the project's origins. Requests from URLs only
2544
- * that pattern admitted are refused from then on; live previews and
2545
- * deployment history are untouched. Removing a pattern that is already
2546
- * 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.
2547
2729
  * @summary Remove an origin pattern
2548
2730
  */
2549
2731
  export declare const removeOriginPathProjectIdRegExp: RegExp;
@@ -2555,10 +2737,12 @@ export declare const RemoveOriginBody: zod.ZodObject<{
2555
2737
  }, zod.z.core.$strip>;
2556
2738
  export declare const RemoveOriginResponse: zod.ZodVoid;
2557
2739
  /**
2558
- * Lists the project's live previews, newest first by `created_at`. An
2559
- * 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
2560
2744
  * in `GET /deployments`.
2561
- * @summary List previews
2745
+ * @summary List a project's previews
2562
2746
  */
2563
2747
  export declare const listPreviewsPathProjectIdRegExp: RegExp;
2564
2748
  export declare const ListPreviewsParams: zod.ZodObject<{
@@ -2582,14 +2766,14 @@ export declare const ListPreviewsResponse: zod.ZodObject<{
2582
2766
  }, zod.z.core.$strip>;
2583
2767
  /**
2584
2768
  * Ends a preview before it expires: the URL stops being served at once.
2585
- * The deployments to it stay in the history.
2586
2769
  *
2587
- * Idempotent: a URL with no live preview, including one that has already
2588
- * expired or was removed before, answers `204` too, so a cleanup that
2589
- * 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.
2590
2774
  *
2591
2775
  * The URL travels in the body rather than the path because an origin
2592
- * contains `/`.
2776
+ * contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
2593
2777
  * @summary Remove a preview
2594
2778
  */
2595
2779
  export declare const removePreviewPathProjectIdRegExp: RegExp;
@@ -2603,29 +2787,32 @@ export declare const RemovePreviewBody: zod.ZodObject<{
2603
2787
  }, zod.z.core.$strip>;
2604
2788
  export declare const RemovePreviewResponse: zod.ZodVoid;
2605
2789
  /**
2606
- * 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:
2607
2795
  *
2608
- * This is optional — an `auth_attempt` will create a session implicitly if none is provided.
2609
- * Use this explicitly when you want to:
2610
- * - 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
2611
2797
  * can be correlated with the eventual authenticated session from the start.
2612
2798
  * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
2613
2799
  *
2614
- * Creating a session is an app-plane operation on the project credential
2615
- * (`session.write`). The returned `session_token` is a session credential for the
2616
- * end-user client, not a management scope: it is delivered as the
2617
- * `__Host-zitadel_session` cookie (`zitadel_session` over plain http to a
2618
- * loopback host) and authorises the self-service operations
2619
- * `GET /sessions/me` and `DELETE /sessions/me` (`sessionCookie` scheme). The
2620
- * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
2621
- * are operator endpoints and require `session.read` / `session.delete` instead.
2622
- *
2623
- * The `session_token` is superseded when a handoff exchange completes — clients must
2624
- * replace it at that point.
2625
- *
2626
- * Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
2627
- * full session TTL when the first authentication factor is written via a completing `auth_attempt`.
2628
- * @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
2629
2816
  */
2630
2817
  export declare const createSessionBodyProjectIdRegExp: RegExp;
2631
2818
  export declare const CreateSessionBody: zod.ZodObject<{
@@ -2699,9 +2886,10 @@ export declare const CreateSessionResponse: zod.ZodObject<{
2699
2886
  session_token: zod.ZodString;
2700
2887
  }, zod.z.core.$strip>;
2701
2888
  /**
2702
- * Returns the sessions of a project, paginated with a cursor.
2889
+ * Returns a page of a project's sessions.
2890
+ *
2703
2891
  * Sessions of every lifecycle state are returned; each carries its `state`.
2704
- * Requires `session.read` permission.
2892
+ * Requires the `session.read` scope.
2705
2893
  * @summary Query sessions
2706
2894
  */
2707
2895
  export declare const querySessionsQueryProjectIdRegExp: RegExp;
@@ -2807,31 +2995,38 @@ export declare const QuerySessionsResponse: zod.ZodObject<{
2807
2995
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
2808
2996
  }, zod.z.core.$strip>;
2809
2997
  /**
2810
- * Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
2811
- * and returns the resulting session and a `session_token`.
2998
+ * Exchanges a handoff token for a session and a `session_token`.
2812
2999
  *
2813
- * 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.
2814
3005
  *
2815
- * | Originating auth_attempt | Outcome |
3006
+ * The server resolves the originating authentication attempt from the token and then:
3007
+ *
3008
+ * | Originating authentication attempt | Outcome |
2816
3009
  * |---|---|
2817
3010
  * | No `session_id` | A new authenticated session is **created**. |
2818
- * | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
2819
- * | `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. |
2820
3013
  *
2821
3014
  * The response shape is identical in all three cases.
2822
3015
  *
2823
- * The `session_token` supersedes any previously issued `session_token` for the same session.
2824
- * 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.
2825
3018
  *
2826
- * 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`.
2827
3022
  *
2828
- * The project comes from the project secret. A query `project_id` that
2829
- * disagrees answers `403` with `proj.mismatch`. The exchange resolves a
2830
- * deployment the same way as other runtime operations; with no browser
2831
- * `Origin` and nothing deployed to the resolved target the response is
2832
- * `409` with `rel.not_deployed`. A revoked release answers `409` with
2833
- * `rel.revoked`.
2834
- * @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
2835
3030
  */
2836
3031
  export declare const exchangeHandoffQueryProjectIdRegExp: RegExp;
2837
3032
  export declare const ExchangeHandoffQueryParams: zod.ZodObject<{
@@ -2908,13 +3103,14 @@ export declare const ExchangeHandoffResponse: zod.ZodObject<{
2908
3103
  session_token: zod.ZodString;
2909
3104
  }, zod.z.core.$strip>;
2910
3105
  /**
2911
- * Returns the current state of a session including its factors and all currently
2912
- * satisfied assurance levels.
2913
- *
2914
- * `assurance_levels[]` may shrink over time as factor freshness windows expire,
2915
- * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
2916
- * against the same `session_id`) to restore a dropped assurance level.
2917
- * @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
2918
3114
  */
2919
3115
  export declare const getSessionPathSessionIdRegExp: RegExp;
2920
3116
  export declare const GetSessionParams: zod.ZodObject<{
@@ -2981,16 +3177,17 @@ export declare const GetSessionResponse: zod.ZodObject<{
2981
3177
  expires_at: zod.z.ZodISODateTime;
2982
3178
  }, zod.z.core.$strip>;
2983
3179
  /**
2984
- * 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`.
2985
3182
  *
2986
- * This is the operator revoke path and requires the `session.delete` scope on a
2987
- * project-bound credential. End-user logout with the session cookie is
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
2988
3185
  * `DELETE /sessions/me` (`sessionCookie` scheme).
2989
3186
  *
2990
- * Idempotent: deleting a session that does not exist (or was already deleted)
2991
- * 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
2992
3189
  * invalidated.
2993
- * @summary Revoke session
3190
+ * @summary Revoke a session
2994
3191
  */
2995
3192
  export declare const revokeSessionPathSessionIdRegExp: RegExp;
2996
3193
  export declare const RevokeSessionParams: zod.ZodObject<{
@@ -2998,15 +3195,16 @@ export declare const RevokeSessionParams: zod.ZodObject<{
2998
3195
  }, zod.z.core.$strip>;
2999
3196
  export declare const RevokeSessionResponse: zod.ZodVoid;
3000
3197
  /**
3001
- * Returns the current state of the current session including its factors and all currently
3002
- * satisfied assurance levels.
3198
+ * Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
3003
3199
  *
3004
3200
  * With `project_id`, the session is returned only when it belongs to that project.
3005
3201
  *
3006
- * `assurance_levels[]` may shrink over time as factor freshness windows expire,
3007
- * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
3008
- * against the same `session_id`) to restore a dropped assurance level.
3009
- * @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
3010
3208
  */
3011
3209
  export declare const getMySessionQueryProjectIdRegExp: RegExp;
3012
3210
  export declare const GetMySessionQueryParams: zod.ZodObject<{
@@ -3073,15 +3271,15 @@ export declare const GetMySessionResponse: zod.ZodObject<{
3073
3271
  expires_at: zod.z.ZodISODateTime;
3074
3272
  }, zod.z.core.$strip>;
3075
3273
  /**
3076
- * Logs out by permanently deleting the session.
3274
+ * Revokes the caller's own session by deleting it, which signs the user out.
3077
3275
  *
3078
- * The session cookie issued at creation (or superseded by a handoff
3079
- * exchange) is required, with the session's token from `GET /sessions/me/csrf`
3080
- * in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
3081
- * this still returns 204. Any tokens derived from the session are invalidated,
3082
- * 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.
3083
3281
  *
3084
- * 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
3085
3283
  * another project is left alone, and so is its cookie.
3086
3284
  * @summary Revoke my session
3087
3285
  */
@@ -3091,13 +3289,13 @@ export declare const RevokeMySessionQueryParams: zod.ZodObject<{
3091
3289
  }, zod.z.core.$strict>;
3092
3290
  export declare const RevokeMySessionResponse: zod.ZodVoid;
3093
3291
  /**
3094
- * Returns the session-bound token for cross-site request forgery protection
3095
- * (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the
3096
- * state-changing requests the session cookie authenticates that require it
3097
- * — see the `sessionCookie` scheme. It authorizes nothing on its own: the
3098
- * HttpOnly cookie is still the credential, and a cross-site page cannot
3099
- * read this response. It stays the same for the life of the session, so a
3100
- * 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.
3101
3299
  *
3102
3300
  * With `project_id`, the token is returned only when the session belongs to
3103
3301
  * that project.
@@ -3111,16 +3309,21 @@ export declare const GetMySessionCsrfTokenResponse: zod.ZodObject<{
3111
3309
  csrf_token: zod.ZodString;
3112
3310
  }, zod.z.core.$strip>;
3113
3311
  /**
3114
- * Create a new schema. The optional `$id` field is the JSON Schema document
3115
- * URI used to identify the schema in future requests (GitOps-stable identity,
3116
- * not a free-form resource primary key). When `$id` is omitted, the server
3117
- * generates a `sch_*` URL. When provided, `$id` must be unique within the
3118
- * project and should ideally be a valid URI pointing at where the schema can
3119
- * be accessed.
3120
- *
3121
- * The schema can either be a concrete schema, e.g. a user schema, or a
3122
- * schema-url which will be resolved by the server.
3123
- * @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
3124
3327
  */
3125
3328
  export declare const createSchemaQueryProjectIdRegExp: RegExp;
3126
3329
  export declare const createSchemaQueryTeamIdRegExp: RegExp;
@@ -3175,9 +3378,12 @@ export declare const CreateSchemaResponse: zod.ZodObject<{
3175
3378
  id: zod.ZodString;
3176
3379
  }, zod.z.core.$strip>;
3177
3380
  /**
3178
- * Retrieve a list of all schemas available in the system. This endpoint
3179
- * supports pagination and filtering based on schema attributes.
3180
- * @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
3181
3387
  */
3182
3388
  export declare const listSchemasQueryProjectIdRegExp: RegExp;
3183
3389
  export declare const listSchemasQueryLimitDefault = 20;
@@ -3251,17 +3457,17 @@ export declare const ListSchemasResponse: zod.ZodObject<{
3251
3457
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
3252
3458
  }, zod.z.core.$strip>;
3253
3459
  /**
3254
- * 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
3255
3461
  * this returns exactly that revision. To find the current revision of an
3256
- * object type, list with `revisions=latest`.
3462
+ * object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
3257
3463
  *
3258
3464
  * Schema IDs are unique within a project, not across projects (the seeded
3259
- * default schema carries the same `$id` in every project). A Console
3465
+ * default schema carries the same `$id` in every project). A console
3260
3466
  * session that manages more than one project names the project with
3261
3467
  * `project_id`; without it, the ID is resolved in the credential's own
3262
3468
  * project when it is ambiguous. A project secret always resolves in its
3263
3469
  * own project and ignores `project_id`.
3264
- * @summary Get schema by ID
3470
+ * @summary Get a schema by ID
3265
3471
  */
3266
3472
  export declare const GetSchemaByIdParams: zod.ZodObject<{
3267
3473
  id: zod.ZodString;
@@ -3320,17 +3526,22 @@ export declare const GetSchemaByIdResponse: zod.ZodObject<{
3320
3526
  }, zod.z.core.$strip>;
3321
3527
  }, zod.z.core.$strip>;
3322
3528
  /**
3323
- * Publishes a new flow definition revision.
3324
- * Flow definitions are templates that define the sequence of steps (capabilities)
3325
- * for a particular user journey (e.g., registration, login, password reset).
3326
- *
3327
- * Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
3328
- *
3329
- * Every call allocates a new opaque id. Revisions of one flow share its
3330
- * `name`; posting a definition under an existing `name` publishes a new
3331
- * revision of that flow, it is not a conflict. List with `name` to see a
3332
- * flow's revisions, newest by creation time first.
3333
- * @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
3334
3545
  */
3335
3546
  export declare const createFlowDefinitionBodyProjectIdRegExp: RegExp;
3336
3547
  export declare const createFlowDefinitionBodyFlowDefinitionNameRegExp: RegExp;
@@ -3389,7 +3600,7 @@ export declare const CreateFlowDefinitionBody: zod.ZodObject<{
3389
3600
  show: "show";
3390
3601
  }>>;
3391
3602
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3392
- target: zod.ZodString;
3603
+ target: zod.ZodOptional<zod.ZodString>;
3393
3604
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3394
3605
  switch: "switch";
3395
3606
  pivot: "pivot";
@@ -3467,7 +3678,7 @@ export declare const CreateFlowDefinitionResponse: zod.ZodObject<{
3467
3678
  show: "show";
3468
3679
  }>>;
3469
3680
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3470
- target: zod.ZodString;
3681
+ target: zod.ZodOptional<zod.ZodString>;
3471
3682
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3472
3683
  switch: "switch";
3473
3684
  pivot: "pivot";
@@ -3529,9 +3740,12 @@ export declare const CreateFlowDefinitionResponse: zod.ZodObject<{
3529
3740
  updated_at: zod.z.ZodISODateTime;
3530
3741
  }, zod.z.core.$strip>;
3531
3742
  /**
3532
- * Retrieves a list of all flow definitions, newest by creation time first.
3533
- * This endpoint can be used to view existing flow definitions and their configurations.
3534
- * 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.
3535
3749
  * @summary List flow definitions
3536
3750
  */
3537
3751
  export declare const listFlowDefinitionsQueryLimitDefault = 20;
@@ -3622,7 +3836,7 @@ export declare const ListFlowDefinitionsResponse: zod.ZodObject<{
3622
3836
  show: "show";
3623
3837
  }>>;
3624
3838
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3625
- target: zod.ZodString;
3839
+ target: zod.ZodOptional<zod.ZodString>;
3626
3840
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3627
3841
  switch: "switch";
3628
3842
  pivot: "pivot";
@@ -3686,8 +3900,9 @@ export declare const ListFlowDefinitionsResponse: zod.ZodObject<{
3686
3900
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
3687
3901
  }, zod.z.core.$strip>;
3688
3902
  /**
3689
- * Get a flow definition by id
3690
- * @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
3691
3906
  */
3692
3907
  export declare const GetFlowDefinitionParams: zod.ZodObject<{
3693
3908
  id: zod.ZodString;
@@ -3753,7 +3968,7 @@ export declare const GetFlowDefinitionResponse: zod.ZodObject<{
3753
3968
  show: "show";
3754
3969
  }>>;
3755
3970
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
3756
- target: zod.ZodString;
3971
+ target: zod.ZodOptional<zod.ZodString>;
3757
3972
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
3758
3973
  switch: "switch";
3759
3974
  pivot: "pivot";
@@ -3817,9 +4032,10 @@ export declare const GetFlowDefinitionResponse: zod.ZodObject<{
3817
4032
  /**
3818
4033
  * Creates a team in the project, with a name no other team in the project has.
3819
4034
  *
3820
- * A taken name is refused with `409 team.already_exists`. The new team has no
3821
- * members yet.
3822
- * @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
3823
4039
  */
3824
4040
  export declare const createTeamQueryProjectIdRegExp: RegExp;
3825
4041
  export declare const CreateTeamQueryParams: zod.ZodObject<{
@@ -3840,10 +4056,11 @@ export declare const CreateTeamResponse: zod.ZodObject<{
3840
4056
  updated_at: zod.z.ZodISODateTime;
3841
4057
  }, zod.z.core.$strip>;
3842
4058
  /**
3843
- * Returns the teams of a project, paginated with a cursor.
4059
+ * Returns a page of a project's teams.
3844
4060
  *
3845
- * `project_id` names the project to list; without it, the credential's own
3846
- * project is listed.
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.
3847
4064
  * @summary Query teams
3848
4065
  */
3849
4066
  export declare const queryTeamsQueryProjectIdRegExp: RegExp;
@@ -3899,8 +4116,10 @@ export declare const QueryTeamsResponse: zod.ZodObject<{
3899
4116
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
3900
4117
  }, zod.z.core.$strip>;
3901
4118
  /**
3902
- * Returns a Team by its id.
3903
- * @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
3904
4123
  */
3905
4124
  export declare const getTeamPathTeamIdRegExp: RegExp;
3906
4125
  export declare const GetTeamParams: zod.ZodObject<{
@@ -3917,20 +4136,20 @@ export declare const GetTeamResponse: zod.ZodObject<{
3917
4136
  updated_at: zod.z.ZodISODateTime;
3918
4137
  }, zod.z.core.$strip>;
3919
4138
  /**
3920
- * Deactivates the team.
4139
+ * Deactivates a team and removes its memberships.
3921
4140
  *
3922
- * The team is tombstoned rather than erased: it stays readable through
3923
- * getTeam with status `deactivated`. Its memberships are removed and the
3924
- * 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.
3925
4144
  *
3926
4145
  * The request is idempotent. Deleting a team that is already deactivated
3927
- * or doesn't exist succeeds without changing anything.
4146
+ * or does not exist succeeds without changing anything.
3928
4147
  *
3929
- * A team that still owns a project is refused with `409
3930
- * team.owns_project`: deactivating it would leave the project owned by a
3931
- * dead team and so unmanageable. No endpoint releases that ownership yet,
3932
- * so such a team cannot currently be deactivated through the API.
3933
- * @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
3934
4153
  */
3935
4154
  export declare const deleteTeamPathTeamIdRegExp: RegExp;
3936
4155
  export declare const DeleteTeamParams: zod.ZodObject<{
@@ -3938,8 +4157,12 @@ export declare const DeleteTeamParams: zod.ZodObject<{
3938
4157
  }, zod.z.core.$strip>;
3939
4158
  export declare const DeleteTeamResponse: zod.ZodVoid;
3940
4159
  /**
3941
- * Update team. Only active teams can be updated.
3942
- * @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
3943
4166
  */
3944
4167
  export declare const updateTeamPathTeamIdRegExp: RegExp;
3945
4168
  export declare const UpdateTeamParams: zod.ZodObject<{
@@ -3960,15 +4183,19 @@ export declare const UpdateTeamResponse: zod.ZodObject<{
3960
4183
  updated_at: zod.z.ZodISODateTime;
3961
4184
  }, zod.z.core.$strip>;
3962
4185
  /**
3963
- * Publishes a new immutable branding revision for the project. Branding
3964
- * revisions cannot be updated or deleted; every edit publishes a new
3965
- * 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`.
3966
4193
  *
3967
4194
  * The `liquid_template` is validated lexically on save (size, encoding,
3968
4195
  * banned patterns such as `<script>` tags, inline event handlers, and the
3969
4196
  * `| raw` filter). Authoritative LiquidJS validation runs at authoring
3970
- * time via `zitadel plan` / `zitadel apply`.
3971
- * @summary Publish a new branding revision
4197
+ * time, in `zitadel deploy` and `zitadel deploy --dry-run`.
4198
+ * @summary Publish a branding revision
3972
4199
  */
3973
4200
  export declare const createBrandingQueryProjectIdRegExp: RegExp;
3974
4201
  export declare const CreateBrandingQueryParams: zod.ZodObject<{
@@ -4255,11 +4482,11 @@ export declare const CreateBrandingResponse: zod.ZodObject<{
4255
4482
  }, zod.z.core.$strip>;
4256
4483
  }, zod.z.core.$strip>;
4257
4484
  /**
4258
- * Lists branding revisions for the project, newest first, capped at the
4259
- * 100 most recent. The first entry is the revision flow responses
4260
- * currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
4261
- * real query mechanism together; advertising pagination parameters the
4262
- * 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`.
4263
4490
  * @summary List branding revisions
4264
4491
  */
4265
4492
  export declare const listBrandingQueryProjectIdRegExp: RegExp;
@@ -4275,7 +4502,8 @@ export declare const ListBrandingResponse: zod.ZodArray<zod.ZodObject<{
4275
4502
  created_at: zod.z.ZodISODateTime;
4276
4503
  }, zod.z.core.$strip>>;
4277
4504
  /**
4278
- * 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.
4279
4507
  * @summary Get a branding revision by ID
4280
4508
  */
4281
4509
  export declare const GetBrandingByIdParams: zod.ZodObject<{
@@ -4424,17 +4652,19 @@ export declare const GetBrandingByIdResponse: zod.ZodObject<{
4424
4652
  }, zod.z.core.$strip>;
4425
4653
  }, zod.z.core.$strip>;
4426
4654
  /**
4427
- * Creates or revises a connection document. If the slug does not already
4428
- * exist, a new connection is created. If a connection with that slug already
4429
- * exists, a revision is created.
4430
- *
4431
- * A revision gets a new `revision_id` and does not modify the connection
4432
- * `id`, so identity links that reference the connection keep resolving while
4433
- * releases and auth attempts stay pinned to the revision they captured.
4434
- *
4435
- * Identity fields are fixed for the life of the connection and a revision
4436
- * that changes one is rejected: `protocol`, `subject_claim`, and `issuer`,
4437
- * 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
4438
4668
  * account a stored subject belongs to, so changing one would silently
4439
4669
  * repoint existing identities at a different provider.
4440
4670
  *
@@ -4445,18 +4675,18 @@ export declare const GetBrandingByIdResponse: zod.ZodObject<{
4445
4675
  * OIDC is the only protocol.
4446
4676
  *
4447
4677
  * The document is validated against the `idp-connection.json` schema before
4448
- * anything is stored. The rules the engine applies when it starts a sign-in
4449
- * then run on the document, so a connection that could never start one is
4450
- * refused here instead with `idp.endpoints_partial`: the OIDC block sets an
4451
- * endpoint without the others. It either sets no endpoint, and discovery
4452
- * fills them, or sets `authorization_endpoint`, `token_endpoint`, `jwks_uri`,
4453
- * 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
4454
4684
  * `id_token_mapping` is on, but setting it alone still counts as setting an
4455
4685
  * endpoint. The details list the missing endpoints.
4456
4686
  *
4457
4687
  * A refused document stores nothing, and on a revise the current revision
4458
4688
  * stays unchanged.
4459
- * @summary Create or revise an identity provider connection
4689
+ * @summary Create or revise an identity provider
4460
4690
  */
4461
4691
  export declare const createIdpQueryProjectIdRegExp: RegExp;
4462
4692
  export declare const CreateIdpQueryParams: zod.ZodObject<{
@@ -4572,9 +4802,10 @@ export declare const CreateIdpResponse: zod.ZodObject<{
4572
4802
  }, zod.z.core.$strip>;
4573
4803
  }, zod.z.core.$strip>;
4574
4804
  /**
4575
- * Returns the identity provider connections of a project, paginated with a
4576
- * cursor. One row per connection, carrying its newest revision.
4577
- * @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
4578
4809
  */
4579
4810
  export declare const queryIdpsQueryProjectIdRegExp: RegExp;
4580
4811
  export declare const QueryIdpsQueryParams: zod.ZodObject<{
@@ -4674,11 +4905,12 @@ export declare const QueryIdpsResponse: zod.ZodObject<{
4674
4905
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
4675
4906
  }, zod.z.core.$strip>;
4676
4907
  /**
4677
- * Reads a connection by its id, at its newest revision.
4678
- * `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.
4679
4911
  *
4680
4912
  * The lookup is scoped to the project in `project_id`.
4681
- * @summary Get an identity provider connection by id
4913
+ * @summary Get an identity provider by ID
4682
4914
  */
4683
4915
  export declare const GetIdpByIdParams: zod.ZodObject<{
4684
4916
  id: zod.ZodString;
@@ -4745,11 +4977,12 @@ export declare const GetIdpByIdResponse: zod.ZodObject<{
4745
4977
  }, zod.z.core.$strip>;
4746
4978
  }, zod.z.core.$strip>;
4747
4979
  /**
4748
- * Returns every revision of one connection, newest first, paginated with a
4749
- * 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`.
4750
4983
  *
4751
4984
  * The lookup is scoped to the project in `project_id`.
4752
- * @summary List the revisions of an identity provider connection
4985
+ * @summary List the revisions of an identity provider
4753
4986
  */
4754
4987
  export declare const ListIdpRevisionsParams: zod.ZodObject<{
4755
4988
  id: zod.ZodString;
@@ -4823,11 +5056,12 @@ export declare const ListIdpRevisionsResponse: zod.ZodObject<{
4823
5056
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
4824
5057
  }, zod.z.core.$strip>;
4825
5058
  /**
4826
- * Reads one revision of a connection by its `revision_id`, the value an auth
4827
- * 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.
4828
5062
  *
4829
5063
  * The lookup is scoped to the project in `project_id`.
4830
- * @summary Get one revision of an identity provider connection
5064
+ * @summary Get a revision of an identity provider
4831
5065
  */
4832
5066
  export declare const GetIdpRevisionByIdParams: zod.ZodObject<{
4833
5067
  revision_id: zod.ZodString;
@@ -4895,9 +5129,12 @@ export declare const GetIdpRevisionByIdResponse: zod.ZodObject<{
4895
5129
  }, zod.z.core.$strip>;
4896
5130
  /**
4897
5131
  * Lists the project's policies, one per operation, each as its newest
4898
- * revision, ordered by `created_at` (first publish) and then `id`. Filter
4899
- * by `operation` to read the policy of one operation; a project that never
4900
- * 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.
4901
5138
  *
4902
5139
  * The lookup is scoped to the project in `project_id`.
4903
5140
  * @summary List policies
@@ -4939,22 +5176,31 @@ export declare const ListPoliciesResponse: zod.ZodObject<{
4939
5176
  }, zod.z.core.$strip>;
4940
5177
  /**
4941
5178
  * Publishes the project's policy for an operation as a new immutable
4942
- * revision, creating the policy on its first publish. The newest revision
4943
- * 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
4944
5181
  * re-evaluated, so a stricter password policy applies the next time a
4945
5182
  * password is set.
4946
5183
  *
4947
- * 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
4948
5189
  * a value of the wrong type or outside its bounds, answers `req.invalid`
4949
- * like any malformed request. The operation's template then checks the
4950
- * config again, together with the rules that relate settings to each other
4951
- * (a `min_length` above `max_length`), and answers `pol.invalid`. Its
4952
- * `details.details.violations` lists everything that failed, settings
4953
- * first, then rules: `{"setting": "min_length"}` for one setting, or
4954
- * `{"config_rule": "min_length_not_above_max_length", "settings":
4955
- * ["min_length", "max_length"]}` for a rule across settings, with the
4956
- * settings it reads. A setting left out is off, and `{}` switches every
4957
- * 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.
4958
5204
  * @summary Publish a policy
4959
5205
  */
4960
5206
  export declare const publishPolicyQueryProjectIdRegExp: RegExp;
@@ -4997,24 +5243,27 @@ export declare const PublishPolicyResponse: zod.ZodObject<{
4997
5243
  }, zod.z.core.$strip>;
4998
5244
  /**
4999
5245
  * Evaluates a policy config against one request, without side effects, and
5000
- * answers the decision the operation would reach. Nothing is read from or
5001
- * written to the project: the config is the one in the body, checked
5002
- * exactly as a publish checks it, so an invalid config answers `pol.invalid`
5003
- * 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.
5004
5253
  *
5005
5254
  * `input` is what the operation's request carries, in the operation's own
5006
- * 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
5007
5256
  * checks with the code the live operation runs, guards included. `facts`
5008
5257
  * states what the operation would look up at runtime, such as whether the
5009
5258
  * candidate matches one of the user's kept passwords.
5010
5259
  *
5011
5260
  * The decision and the names of the failed rules hold wherever the
5012
- * 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
5013
5262
  * login flow shows the same rules as field errors on the password field
5014
5263
  * (`error.x-auth-methods#password_<rule>` in `step.error`).
5015
5264
  *
5016
- * Which policy a project or release applies is not decided here: read it
5017
- * 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`.
5018
5267
  *
5019
5268
  * The caller needs read access to the project in `project_id`.
5020
5269
  * @summary Evaluate a policy
@@ -5053,12 +5302,15 @@ export declare const EvaluatePolicyResponse: zod.ZodObject<{
5053
5302
  violations: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
5054
5303
  }, zod.z.core.$strip>;
5055
5304
  /**
5056
- * Reads a policy as its newest revision, the one that applies the next time
5057
- * 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.
5058
5310
  *
5059
5311
  * The lookup is scoped to the project in `project_id`: a policy of another
5060
- * project answers not found exactly as an unknown id does.
5061
- * @summary Get a policy
5312
+ * project answers not found exactly as an unknown ID does.
5313
+ * @summary Get a policy by ID
5062
5314
  */
5063
5315
  export declare const getPolicyPathPolicyIdRegExp: RegExp;
5064
5316
  export declare const GetPolicyParams: zod.ZodObject<{
@@ -5090,11 +5342,14 @@ export declare const GetPolicyResponse: zod.ZodObject<{
5090
5342
  updated_at: zod.z.ZodISODateTime;
5091
5343
  }, zod.z.core.$strip>;
5092
5344
  /**
5093
- * Returns every revision of one policy, newest first, paginated with a
5094
- * 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.
5095
5350
  *
5096
5351
  * The lookup is scoped to the project in `project_id`: a policy of another
5097
- * project answers not found exactly as an unknown id does.
5352
+ * project answers not found exactly as an unknown ID does.
5098
5353
  * @summary List the revisions of a policy
5099
5354
  */
5100
5355
  export declare const listPolicyRevisionsPathPolicyIdRegExp: RegExp;
@@ -5134,11 +5389,14 @@ export declare const ListPolicyRevisionsResponse: zod.ZodObject<{
5134
5389
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
5135
5390
  }, zod.z.core.$strip>;
5136
5391
  /**
5137
- * 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.
5138
5396
  *
5139
5397
  * The lookup is scoped to the project in `project_id`: a revision of another
5140
- * project answers not found exactly as an unknown id does.
5141
- * @summary Get a policy revision
5398
+ * project answers not found exactly as an unknown ID does.
5399
+ * @summary Get a policy revision by ID
5142
5400
  */
5143
5401
  export declare const getPolicyRevisionPathRevisionIdRegExp: RegExp;
5144
5402
  export declare const GetPolicyRevisionParams: zod.ZodObject<{
@@ -5170,25 +5428,34 @@ export declare const GetPolicyRevisionResponse: zod.ZodObject<{
5170
5428
  updated_at: zod.z.ZodISODateTime;
5171
5429
  }, zod.z.core.$strip>;
5172
5430
  /**
5173
- * Assembles a release from existing revisions, given as
5174
- * `(kind, revision_id)` pairs. To build one from files on disk, use
5175
- * `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.
5176
5439
  *
5177
5440
  * Each revision must exist in the project and is recorded under the handle
5178
5441
  * it declares. The release must be complete and consistent:
5179
5442
  *
5180
5443
  * - Every handle its revisions name must be in the release: a flow's
5181
- * `user_schema`, and the IDP connections named by a flow step's
5182
- * `sso_providers` or a schema's `x-auth-methods.sso.providers`. A missing
5183
- * one answers `rel.unresolved_reference`, naming the resource and the
5184
- * handle, e.g. `flow_definition default-login: user_schema human-user not found`.
5185
- * - Every flow is validated as on save, against the user schema revision
5186
- * in the release. A flow that fails answers `rel.invalid`, with the
5187
- * reason in `details`.
5188
- *
5189
- * Idempotent on the set of revisions: the same revisions with a different
5190
- * `message` answer `200` with the existing release. A new release answers
5191
- * `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.
5192
5459
  * @summary Create a release
5193
5460
  */
5194
5461
  export declare const createReleaseQueryProjectIdRegExp: RegExp;
@@ -5257,17 +5524,20 @@ export declare const CreateReleaseResponse: zod.ZodObject<{
5257
5524
  }, zod.z.core.$strip>>;
5258
5525
  }, zod.z.core.$strip>;
5259
5526
  /**
5260
- * 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.
5261
5529
  *
5262
- * Entries carry the digest, the metadata and `revoked_at` — the pinned set
5263
- * is omitted.
5264
- * Read one release with `GET /releases/{release_id}` to get its pointers.
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.
5532
+ *
5533
+ * The `id` of an entry is the release ID that `getReleaseById`,
5534
+ * `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
5265
5535
  *
5266
5536
  * `content_hash` looks a release up by its content, as the CLI does when a
5267
5537
  * person types the digest a transcript printed. The project holds at most
5268
- * one release per digest, so the filtered list has one entry or none, and
5269
- * an unknown digest is an empty list rather than an error. Paths take the
5270
- * `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.
5271
5541
  * @summary List releases
5272
5542
  */
5273
5543
  export declare const listReleasesQueryProjectIdRegExp: RegExp;
@@ -5313,38 +5583,44 @@ export declare const ListReleasesResponse: zod.ZodObject<{
5313
5583
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
5314
5584
  }, zod.z.core.$strip>;
5315
5585
  /**
5316
- * Builds a release from the resources of `.zitadel/` as authored on disk,
5317
- * grouped by kind, in one transaction: a failure anywhere leaves no
5318
- * 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.
5319
5592
  *
5320
5593
  * If the project already holds a release with the same content, the same
5321
- * `content_hash`, the request answers `200` with that release and
5322
- * allocates nothing, however long ago it was built. Otherwise every resource is compared against the
5323
- * project's newest revision of the same handle: unchanged content reuses
5324
- * that revision, changed content allocates a new one, and the request
5325
- * answers `201` with the new release. A policy whose config matches only an
5326
- * older revision allocates a new one too, so a request that resolves no
5327
- * 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
5328
5596
  * comparison, so the same content under a different `message` is the same
5329
5597
  * release.
5330
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
+ *
5331
5605
  * A structurally malformed request is refused while decoding with
5332
5606
  * `req.invalid`, naming the offending fields. A well-formed bundle is then
5333
5607
  * checked resource by resource, as each kind's create endpoint checks it,
5334
- * 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
5335
5609
  * `rel.invalid`, and `details.resources` lists each resource that failed.
5336
- * A handle that resolves neither in the bundle nor in the project answers
5337
- * `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.
5338
5613
  *
5339
5614
  * Building writes revisions, so besides `release.write` it needs the write
5340
5615
  * scope of every kind the bundle carries a resource of: `schema.write`,
5341
- * `flow_definition.write`, `branding.write`, `idp.write` and
5342
- * `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
5343
- * naming the kind. An empty kind needs no scope.
5344
- *
5345
- * Building a release does not deploy it. A release is not tied to an
5346
- * origin, and the same release can later be deployed to any number of
5347
- * 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`).
5348
5624
  * @summary Build a release from files
5349
5625
  */
5350
5626
  export declare const buildReleaseQueryProjectIdRegExp: RegExp;
@@ -5543,7 +5819,7 @@ export declare const BuildReleaseBody: zod.ZodObject<{
5543
5819
  show: "show";
5544
5820
  }>>;
5545
5821
  transitions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
5546
- target: zod.ZodString;
5822
+ target: zod.ZodOptional<zod.ZodString>;
5547
5823
  action: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
5548
5824
  switch: "switch";
5549
5825
  pivot: "pivot";
@@ -5720,20 +5996,23 @@ export declare const BuildReleaseResponse: zod.ZodObject<{
5720
5996
  }, zod.z.core.$strip>>;
5721
5997
  }, zod.z.core.$strip>;
5722
5998
  /**
5723
- * Reads one release: its digest, its metadata, whether it was revoked, and
5724
- * the `(kind, handle, revision_id)` tuples it pins.
5725
- *
5726
- * The path takes the `rel_` id only. To find a release from its digest,
5727
- * list with the `content_hash` filter and read the matched entry's `id`.
5728
- *
5729
- * Does not embed resource content. Resolve each `revision_id` through the
5730
- * per-kind read endpoints when the bytes are needed.
5731
- *
5732
- * The lookup is scoped to the project in `project_id`: a release id belonging
5733
- * to another project answers not found exactly as an unknown id does, so the
5734
- * endpoint cannot be used to probe for releases in projects the caller cannot
5735
- * read.
5736
- * @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
5737
6016
  */
5738
6017
  export declare const getReleaseByIdPathReleaseIdRegExp: RegExp;
5739
6018
  export declare const GetReleaseByIdParams: zod.ZodObject<{
@@ -5785,25 +6064,29 @@ export declare const GetReleaseByIdResponse: zod.ZodObject<{
5785
6064
  }, zod.z.core.$strip>>;
5786
6065
  }, zod.z.core.$strip>;
5787
6066
  /**
5788
- * Marks the release revoked, so that its content is never served again.
5789
- * From then on the release cannot be deployed and is refused on every path
5790
- * that would serve it, including to a build that pins its digest, with
5791
- * `rel.revoked`.
5792
- *
5793
- * A release that any origin still serves cannot be revoked. An origin
5794
- * serves the release of the newest deployment to it, so the call answers
5795
- * `409` with `rel.in_use`, naming each such origin and that deployment.
5796
- * Deploy another release there or roll back first, then revoke. Revoking
5797
- * therefore never takes an origin down. Deployments that named the release
5798
- * earlier stay in the history.
5799
- *
5800
- * Idempotent: revoking a release that is already revoked answers `200`
5801
- * with the release unchanged, `revoked_at` still naming the first
5802
- * revocation. There is no un-revoke; build a new release instead.
5803
- *
5804
- * Takes no body. The lookup is scoped to the project in `project_id`, so a
5805
- * release id of another project answers not found exactly as an unknown id
5806
- * 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.
5807
6090
  * @summary Revoke a release
5808
6091
  */
5809
6092
  export declare const revokeReleasePathReleaseIdRegExp: RegExp;
@@ -5856,26 +6139,32 @@ export declare const RevokeReleaseResponse: zod.ZodObject<{
5856
6139
  }, zod.z.core.$strip>>;
5857
6140
  }, zod.z.core.$strip>;
5858
6141
  /**
5859
- * Bind a user or team to `project.viewer`, `project.editor`, or
5860
- * `project.admin` on the project identified by the `project-id` header.
5861
- * Name the principal with `user` (`user_id` or `identifier`) or `team`
5862
- * (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
5863
- * (`project.team`) grants are not created here — claim owns that path. An
5864
- * unrevoked grant with the same principal and relation occupies the unique
5865
- * key even after `expires_at`; DELETE it before re-creating.
5866
- * Create does not accept `expand`. The `user_id` and team locators
5867
- * return 201, whose `user` / `team` carry only `user_id` / `team_id`,
5868
- * and still 404 / 409 when the principal is missing or the tuple
5869
- * already exists. Creating by `user.identifier` answers 202 with no
5870
- * body on every outcome. Granting the session caller's own user is
5871
- * `grant.invalid` on either user locator. Read the grant back for
5872
- * identifier and display.
5873
- *
5874
- * Accepts either a project secret (`oauth2`) or a user-bound Console
5875
- * session cookie (`sessionCookie`). Session callers are authorized as
5876
- * the human against the target project (home may differ). Cookie-authenticated
5877
- * requests follow the scheme's CSRF rules (`sessionCookie`).
5878
- * @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
5879
6168
  */
5880
6169
  export declare const createGrantQueryProjectIdRegExp: RegExp;
5881
6170
  export declare const CreateGrantQueryParams: zod.ZodObject<{
@@ -5956,22 +6245,20 @@ export declare const CreateGrantResponse: zod.ZodObject<{
5956
6245
  }, zod.z.core.$strip>>>;
5957
6246
  }, zod.z.core.$strip>;
5958
6247
  /**
5959
- * Returns the collaboration grants of a project, paginated with a cursor.
5960
- * Only unrevoked grants this API manages are listed (user or team bound to
5961
- * viewer, editor, or admin), including expired grants so a client can
5962
- * DELETE before re-granting. Project-secret setup (`sk_proj`) and
5963
- * owning-team (`relation=team`) rows are not returned. Grants are not in
5964
- * `resource_scope_index`; project scope is required on the query (same as
5965
- * get). Requires `project.read`. `expand: ["principal"]` adds envelope
5966
- * fields on `user` / `team` and additionally requires `user.read` and
5967
- * `team.read` for project secrets (documented on the expand enum; those
5968
- * scopes cannot be ANDed onto this security block because they are
5969
- * body-conditional). A user-bound Console session that already passed
5970
- * the project Check may expand without those scopes.
5971
- *
5972
- * Accepts either a project secret (`oauth2`) or a user-bound Console
5973
- * session cookie (`sessionCookie`). Cookie-authenticated requests
5974
- * follow the scheme's CSRF rules (`sessionCookie`).
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.
5975
6262
  * @summary Query grants
5976
6263
  */
5977
6264
  export declare const queryGrantsQueryProjectIdRegExp: RegExp;
@@ -6078,23 +6365,23 @@ export declare const QueryGrantsResponse: zod.ZodObject<{
6078
6365
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
6079
6366
  }, zod.z.core.$strip>;
6080
6367
  /**
6081
- * Loads a grant by `(project_id, id)` that this API manages (user or team
6082
- * bound to viewer, editor, or admin) and that has not been revoked.
6083
- * "Active" here means not revoked: expired grants stay visible so the
6084
- * client can DELETE before re-granting the same binding. Authorization
6085
- * still ignores expired grants. Grants are not registered in
6086
- * `resource_scope_index`; project scope is required on the query (same as
6087
- * events). Misses, revoked rows, project-secret setup (`sk_proj`),
6088
- * owning-team (`relation=team`) rows, and cross-project ids return 404.
6089
- * `expand=principal` adds envelope fields on `user` or `team` and requires
6090
- * `user.read` and `team.read` in addition to `project.read` for project
6091
- * secrets. A user-bound Console session that already passed the project
6092
- * Check may expand without those scopes.
6093
- *
6094
- * Accepts either a project secret (`oauth2`) or a user-bound Console
6095
- * session cookie (`sessionCookie`). Cookie-authenticated requests
6096
- * follow the scheme's CSRF rules (`sessionCookie`).
6097
- * @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
6098
6385
  */
6099
6386
  export declare const GetGrantParams: zod.ZodObject<{
6100
6387
  id: zod.ZodString;
@@ -6163,15 +6450,15 @@ export declare const GetGrantResponse: zod.ZodObject<{
6163
6450
  }, zod.z.core.$strip>>>;
6164
6451
  }, zod.z.core.$strip>;
6165
6452
  /**
6166
- * Soft-revokes a grant this API manages and emits `authz.revoked`.
6167
- * Already-revoked, missing, project-secret setup, and owning-team grants
6168
- * return 404. The row is not un-revoked. Expired grants can still be
6169
- * revoked so the unique binding can be reused.
6453
+ * Revokes a grant this API manages and emits `authz.revoked`.
6170
6454
  *
6171
- * Accepts either a project secret (`oauth2`) or a user-bound Console
6172
- * session cookie (`sessionCookie`). Cookie-authenticated requests
6173
- * follow the scheme's CSRF rules (`sessionCookie`).
6174
- * @summary Revoke grant
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
6175
6462
  */
6176
6463
  export declare const DeleteGrantParams: zod.ZodObject<{
6177
6464
  id: zod.ZodString;
@@ -6182,17 +6469,18 @@ export declare const DeleteGrantQueryParams: zod.ZodObject<{
6182
6469
  }, zod.z.core.$strict>;
6183
6470
  export declare const DeleteGrantResponse: zod.ZodVoid;
6184
6471
  /**
6185
- * Returns project-scoped audit events, newest-first by keyset on
6186
- * `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
6187
- * Requires `events.read`.
6472
+ * Lists a project's audit events, newest first. Pass `order=asc` for oldest
6473
+ * first. Requires `events.read`.
6474
+ *
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.
6188
6478
  *
6189
- * Pre-claim projects return an empty list (events are stored but not
6190
- * visible until claim succeeds). Team-scoped credentials see only events
6191
- * whose emit-time `team_id` matches the credential team (enforced when
6192
- * team-scoped tokens exist).
6479
+ * Team-scoped credentials see only the events whose `team_id` matches the
6480
+ * credential's team. Team-scoped credentials are not issued today.
6193
6481
  *
6194
- * Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
6195
- * see docs/design/api/events-catalog.md.
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}`).
6196
6484
  * @summary List events
6197
6485
  */
6198
6486
  export declare const listEventsQueryProjectIdRegExp: RegExp;
@@ -8836,12 +9124,16 @@ export declare const ListEventsResponse: zod.ZodObject<{
8836
9124
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
8837
9125
  }, zod.z.core.$strip>;
8838
9126
  /**
8839
- * Loads a single event by `(project_id, id)`. Requires `events.read`.
8840
- * Events are not registered in `resource_scope_index`; project scope is
8841
- * 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`.
8842
9132
  *
8843
- * Pre-claim projects return 404 (stored events stay invisible until claim).
8844
- * @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
8845
9137
  */
8846
9138
  export declare const GetEventParams: zod.ZodObject<{
8847
9139
  id: zod.ZodString;
@@ -11455,12 +11747,13 @@ export declare const GetEventResponse: zod.ZodUnion<readonly [zod.ZodIntersectio
11455
11747
  }, zod.z.core.$strip>;
11456
11748
  }, zod.z.core.$strip>>]>;
11457
11749
  /**
11458
- * Returns the project's variables, keyed by name, each with its value per
11459
- * 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.
11460
11753
  *
11461
11754
  * Secret values are not returned. A secret appears as `{"secret": true}`,
11462
11755
  * which says a value is held without disclosing it.
11463
- * @summary Get variables
11756
+ * @summary Get a project's variables
11464
11757
  */
11465
11758
  export declare const getVariablesQueryProjectIdRegExp: RegExp;
11466
11759
  export declare const GetVariablesQueryParams: zod.ZodObject<{
@@ -11481,25 +11774,29 @@ export declare const GetVariablesResponse: zod.ZodRecord<zod.ZodString, zod.ZodO
11481
11774
  }, zod.z.core.$strip>]>>;
11482
11775
  }, zod.z.core.$strip>>;
11483
11776
  /**
11484
- * Enters, replaces and removes the project's variables for the requested
11485
- * kind. Names not in the body are untouched. Existing deployments keep the
11486
- * values they froze.
11487
- *
11488
- * Without `kind`, a plain value is written for both kinds. A secret is
11489
- * written for `primary` only and removes the name's `preview` value, so a
11490
- * preview never keeps a plaintext copy; set a preview secret with
11491
- * `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.
11492
11780
  *
11493
11781
  * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
11494
11782
  * stores the value encrypted under the project's active `secret` key, after
11495
11783
  * which it can be referenced but not read back. `null` removes the name
11496
- * (RFC 7386), which is how several variables are removed in one request;
11497
- * 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.
11498
11791
  *
11499
11792
  * The body is applied whole or not at all, so a rejected request leaves the
11500
- * project's variables exactly as they were. Writing the same name twice
11501
- * replaces the value rather than duplicating it, which makes a retry safe.
11502
- * @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
11503
11800
  */
11504
11801
  export declare const updateVariablesQueryProjectIdRegExp: RegExp;
11505
11802
  export declare const UpdateVariablesQueryParams: zod.ZodObject<{
@@ -11526,10 +11823,14 @@ export declare const UpdateVariablesResponse: zod.ZodRecord<zod.ZodString, zod.Z
11526
11823
  }, zod.z.core.$strip>]>>;
11527
11824
  }, zod.z.core.$strip>>;
11528
11825
  /**
11529
- * Reads one variable by name, with its value per kind. A name with no
11530
- * value for the requested kind answers `var.not_found`. A secret reads
11531
- * back as `{"secret": true}`.
11532
- * @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
11533
11834
  */
11534
11835
  export declare const getVariablePathVariableNameMax = 255;
11535
11836
  export declare const getVariablePathVariableNameRegExp: RegExp;
@@ -11555,10 +11856,15 @@ export declare const GetVariableResponse: zod.ZodObject<{
11555
11856
  }, zod.z.core.$strip>]>>;
11556
11857
  }, zod.z.core.$strip>;
11557
11858
  /**
11558
- * Removes a variable for the requested kind, or for both kinds without
11559
- * `kind`. A name with no value for that kind answers `var.not_found`.
11560
- * Existing deployments keep the values they froze.
11561
- * @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
11562
11868
  */
11563
11869
  export declare const deleteVariablePathVariableNameMax = 255;
11564
11870
  export declare const deleteVariablePathVariableNameRegExp: RegExp;
@@ -11575,34 +11881,54 @@ export declare const DeleteVariableQueryParams: zod.ZodObject<{
11575
11881
  }, zod.z.core.$strict>;
11576
11882
  export declare const DeleteVariableResponse: zod.ZodVoid;
11577
11883
  /**
11578
- * Makes a release live on its targets by recording a deployment,
11579
- * atomically: on success every target serves the release and the record
11580
- * exists; on failure nothing changes and no record is written.
11581
- *
11582
- * Name the release by exactly one of `release_id` or `content_hash`; it
11583
- * must already exist in the project. `targets` is `primary` or preview
11584
- * URLs. The deployment freezes the project's variable values for its kind,
11585
- * 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.
11586
11906
  *
11587
11907
  * A deployment to `primary` changes nothing when the project's newest
11588
11908
  * primary deployment has the same release and frozen values and covers
11589
- * exactly the current primary origins: the call answers `200` with that
11590
- * deployment. Any other request writes a new deployment and answers `201`;
11591
- * for preview URLs that record renews their previews.
11592
- *
11593
- * Failures:
11594
- * - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;
11595
- * a primary origin named exactly; `primary` mixed with preview URLs;
11596
- * `primary` on a project with no primary origin; `ttl` with `primary`;
11597
- * `ttl` above 365 days (`P365D`).
11598
- * - `400 dep.variables_missing`: a referenced variable has no value for
11599
- * the kind; `details` names the kind and every missing variable.
11600
- * - `403 proj.origin_not_allowed`: a preview URL matches no preview
11601
- * pattern, or is a loopback URL.
11602
- * - `404 rel.not_found`: the release id or digest names no release here.
11603
- * - `409 dep.conflict`: `expected_deployment_id` is not the deployment
11604
- * this write replaces; `details.deployment` is that deployment.
11605
- * - `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.
11606
11932
  * @summary Create a deployment
11607
11933
  */
11608
11934
  export declare const createDeploymentQueryProjectIdRegExp: RegExp;
@@ -11613,15 +11939,17 @@ export declare const createDeploymentBodyReleaseIdRegExp: RegExp;
11613
11939
  export declare const createDeploymentBodyContentHashMin = 71;
11614
11940
  export declare const createDeploymentBodyContentHashMax = 71;
11615
11941
  export declare const createDeploymentBodyContentHashRegExp: RegExp;
11616
- export declare const createDeploymentBodyTargetsItemMax = 2048;
11617
- export declare const createDeploymentBodyTargetsItemRegExp: RegExp;
11618
- export declare const createDeploymentBodyTargetsMax = 50;
11942
+ export declare const createDeploymentBodyTargetsTwoItemMax = 2048;
11943
+ export declare const createDeploymentBodyTargetsTwoItemRegExp: RegExp;
11944
+ export declare const createDeploymentBodyTargetsTwoMax = 50;
11619
11945
  export declare const createDeploymentBodyMessageMax = 1024;
11620
11946
  export declare const createDeploymentBodyExpectedDeploymentIdRegExp: RegExp;
11621
11947
  export declare const CreateDeploymentBody: zod.ZodObject<{
11622
11948
  release_id: zod.ZodOptional<zod.ZodString>;
11623
11949
  content_hash: zod.ZodOptional<zod.ZodString>;
11624
- targets: zod.ZodArray<zod.ZodString>;
11950
+ targets: zod.ZodUnion<readonly [zod.ZodEnum<{
11951
+ primary: "primary";
11952
+ }>, zod.ZodArray<zod.ZodString>]>;
11625
11953
  ttl: zod.ZodOptional<zod.ZodString>;
11626
11954
  reason: zod.ZodOptional<zod.ZodEnum<{
11627
11955
  deploy: "deploy";
@@ -11712,19 +12040,26 @@ export declare const CreateDeploymentResponse: zod.ZodObject<{
11712
12040
  }, zod.z.core.$strip>>;
11713
12041
  }, zod.z.core.$strip>;
11714
12042
  /**
11715
- * Lists what ran where, and when.
11716
- *
11717
- * By default the list is the history, newest first: every deployment of
11718
- * the project with every target it made the release live on. With
11719
- * `origin`, the history of that origin alone.
11720
- *
11721
- * With `live=true`, the list is what is served now, newest first: the
11722
- * project's newest primary deployment, narrowed to origins that are still
11723
- * primary, and the newest deployment to each live preview URL, narrowed to
11724
- * the URLs it still serves. Combined with `origin`, it is the one
11725
- * deployment that origin serves, or empty.
11726
- *
11727
- * `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
11728
12063
  * requires `release.read` and does not change the ordering or the page
11729
12064
  * tokens.
11730
12065
  * @summary List deployments
@@ -11830,13 +12165,17 @@ export declare const ListDeploymentsResponse: zod.ZodObject<{
11830
12165
  next_page_token: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>>;
11831
12166
  }, zod.z.core.$strip>;
11832
12167
  /**
11833
- * 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.
11834
12170
  *
11835
- * The lookup is scoped to the project in `project_id`: a deployment id
11836
- * 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
11837
12176
  * does, so the endpoint cannot be used to probe for deployments in projects
11838
12177
  * the caller cannot read.
11839
- * @summary Get a deployment by id
12178
+ * @summary Get a deployment by ID
11840
12179
  */
11841
12180
  export declare const getDeploymentByIdPathDeploymentIdRegExp: RegExp;
11842
12181
  export declare const GetDeploymentByIdParams: zod.ZodObject<{
@@ -11928,20 +12267,44 @@ export declare const GetDeploymentByIdResponse: zod.ZodObject<{
11928
12267
  }, zod.z.core.$strip>>;
11929
12268
  }, zod.z.core.$strip>;
11930
12269
  /**
11931
- * Re-deploys the release of the deployment named in the path to `primary`,
11932
- * with the variable values it froze: a new deployment with `reason:
11933
- * rollback` and `rollback_to` naming it. Like any deployment to `primary`,
11934
- * it covers every current primary origin. Idempotent like a deployment to
11935
- * `primary`: when nothing would change it answers `200` with the newest
11936
- * primary deployment.
11937
- *
11938
- * Failures:
11939
- * - `400 dep.invalid`: the deployment went to preview URLs (deploy to the
11940
- * preview again instead), or the project has no primary origin.
11941
- * - `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.
11942
12303
  * - `409 dep.conflict`: `expected_deployment_id` is not the project's
11943
- * newest primary deployment; `details.deployment` is that deployment.
11944
- * - `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.
11945
12308
  * @summary Roll back to a deployment
11946
12309
  */
11947
12310
  export declare const rollbackDeploymentPathDeploymentIdRegExp: RegExp;
@@ -12043,6 +12406,8 @@ export declare const RollbackDeploymentResponse: zod.ZodObject<{
12043
12406
  * Returns the variable values the deployment froze when it was made. Later
12044
12407
  * changes to the project's variables do not affect them. A secret reads
12045
12408
  * back as `{"secret": true}`.
12409
+ *
12410
+ * Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
12046
12411
  * @summary Get a deployment's variables
12047
12412
  */
12048
12413
  export declare const getDeploymentVariablesPathDeploymentIdRegExp: RegExp;