@zitadel/api 0.4.0 → 0.6.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 (864) hide show
  1. package/README.md +1 -1
  2. package/dist/{api-factory-Dt5lUjyu.d.mts → api-factory-Durul-IL.d.mts} +13 -3
  3. package/dist/api-factory-Durul-IL.d.mts.map +1 -0
  4. package/dist/{api-factory-C5b1Gqwv.mjs → api-factory-DwzqkuTV.mjs} +16 -6
  5. package/dist/api-factory-DwzqkuTV.mjs.map +1 -0
  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 +2 -2
  9. package/dist/generated/endpoints/zitadelNextGen.mjs +1408 -627
  10. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +20 -1
  12. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +2235 -482
  14. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  15. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +2879 -1013
  16. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  17. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +6411 -4732
  18. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  19. package/dist/generated/model/index.d.mts +2 -2
  20. package/dist/generated/model/index.mjs +92 -1
  21. package/dist/generated/model/index.mjs.map +1 -1
  22. package/dist/generated/operations.d.mts +9 -0
  23. package/dist/generated/operations.d.mts.map +1 -1
  24. package/dist/generated/operations.mjs +481 -153
  25. package/dist/generated/operations.mjs.map +1 -1
  26. package/dist/{index-DGQY1rfH.d.mts → index-D0r_rLRr.d.mts} +17188 -10739
  27. package/dist/index-D0r_rLRr.d.mts.map +1 -0
  28. package/dist/runtime/api-factory.d.mts +1 -1
  29. package/dist/runtime/api-factory.mjs +1 -1
  30. package/dist/runtime/config.d.mts +1 -1
  31. package/dist/runtime/config.mjs +1 -1
  32. package/dist/runtime/fetch.d.mts +1 -1
  33. package/dist/runtime/fetch.mjs +1 -0
  34. package/dist/runtime/fetch.mjs.map +1 -1
  35. package/dist/runtime/paging.d.mts +106 -23
  36. package/dist/runtime/paging.d.mts.map +1 -1
  37. package/dist/runtime/paging.mjs +132 -32
  38. package/dist/runtime/paging.mjs.map +1 -1
  39. package/dist/zitadelNextGen-DgKtevtj.d.mts +1940 -0
  40. package/dist/zitadelNextGen-DgKtevtj.d.mts.map +1 -0
  41. package/package.json +3 -3
  42. package/src/generated/endpoints/zitadelNextGen.faker.ts +36 -8
  43. package/src/generated/endpoints/zitadelNextGen.msw.ts +148 -1
  44. package/src/generated/endpoints/zitadelNextGen.ts +1581 -653
  45. package/src/generated/endpoints/zitadelNextGen.zod.ts +6322 -4751
  46. package/src/generated/model/acceptInvitation200.ts +126 -0
  47. package/src/generated/model/acceptInvitation400.ts +20 -0
  48. package/src/generated/model/acceptInvitation400Details.ts +12 -0
  49. package/src/generated/model/acceptInvitation401.ts +20 -0
  50. package/src/generated/model/acceptInvitation401Details.ts +12 -0
  51. package/src/generated/model/acceptInvitation403.ts +20 -0
  52. package/src/generated/model/acceptInvitation403Details.ts +12 -0
  53. package/src/generated/model/acceptInvitation404.ts +20 -0
  54. package/src/generated/model/acceptInvitation404Details.ts +12 -0
  55. package/src/generated/model/acceptInvitation409.ts +20 -0
  56. package/src/generated/model/acceptInvitation409Details.ts +12 -0
  57. package/src/generated/model/acceptInvitation429.ts +20 -0
  58. package/src/generated/model/acceptInvitation429Details.ts +12 -0
  59. package/src/generated/model/acceptInvitationBody.ts +19 -0
  60. package/src/generated/model/acceptInvitationDefault.ts +99 -0
  61. package/src/generated/model/addOrigin201.ts +5 -0
  62. package/src/generated/model/addOrigin201Kind.ts +3 -0
  63. package/src/generated/model/addOriginBody.ts +17 -5
  64. package/src/generated/model/addOriginBodyKind.ts +4 -0
  65. package/src/generated/model/beginUserPasskeyRegistration201.ts +3 -3
  66. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +6 -6
  67. package/src/generated/model/buildRelease200.ts +15 -15
  68. package/src/generated/model/buildRelease200Metadata.ts +8 -8
  69. package/src/generated/model/buildRelease200PointersItem.ts +13 -12
  70. package/src/generated/model/buildRelease200PointersItemKind.ts +3 -3
  71. package/src/generated/model/buildRelease201.ts +15 -15
  72. package/src/generated/model/buildRelease201Metadata.ts +8 -8
  73. package/src/generated/model/buildRelease201PointersItem.ts +13 -12
  74. package/src/generated/model/buildRelease201PointersItemKind.ts +3 -3
  75. package/src/generated/model/buildRelease400.ts +1 -3
  76. package/src/generated/model/buildRelease400DetailsResourcesItem.ts +3 -3
  77. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +3 -3
  78. package/src/generated/model/buildReleaseBody.ts +19 -16
  79. package/src/generated/model/buildReleaseBodyBundle.ts +31 -28
  80. package/src/generated/model/buildReleaseBodyBundleBranding.ts +26 -24
  81. package/src/generated/model/buildReleaseBodyBundleBrandingLayout.ts +8 -7
  82. package/src/generated/model/buildReleaseBodyBundleBrandingShape.ts +1 -1
  83. package/src/generated/model/buildReleaseBodyBundleBrandingTheme.ts +5 -7
  84. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +8 -8
  85. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDarkPalette.ts +63 -62
  86. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +8 -8
  87. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLightPalette.ts +63 -62
  88. package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +5 -5
  89. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +47 -26
  90. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemAudience.ts +1 -1
  91. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +2 -2
  92. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItem.ts +46 -28
  93. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItem.ts +9 -7
  94. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemKind.ts +2 -2
  95. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +11 -10
  96. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -1
  97. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesKind.ts +4 -3
  98. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitions.ts +40 -20
  99. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsAction.ts +8 -5
  100. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsPurpose.ts +7 -8
  101. package/src/generated/model/buildReleaseBodyBundleIdpsItem.ts +7 -7
  102. package/src/generated/model/buildReleaseBodyBundleIdpsItemClaimMapping.ts +1 -1
  103. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidc.ts +7 -7
  104. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidcStaticAuthorizeParameters.ts +1 -1
  105. package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioning.ts +1 -1
  106. package/src/generated/model/buildReleaseBodyBundleIdpsItemVerifiedClaims.ts +1 -1
  107. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +3 -3
  108. package/src/generated/model/buildReleaseBodyBundleSchemasItem.ts +23 -22
  109. package/src/generated/model/buildReleaseParams.ts +3 -1
  110. package/src/generated/model/cancelInvitation401.ts +20 -0
  111. package/src/generated/model/cancelInvitation401Details.ts +12 -0
  112. package/src/generated/model/cancelInvitation403.ts +20 -0
  113. package/src/generated/model/cancelInvitation403Details.ts +12 -0
  114. package/src/generated/model/cancelInvitation404.ts +20 -0
  115. package/src/generated/model/cancelInvitation404Details.ts +12 -0
  116. package/src/generated/model/cancelInvitationDefault.ts +81 -0
  117. package/src/generated/model/cancelInvitationParams.ts +17 -0
  118. package/src/generated/model/completeClaim409.ts +2 -2
  119. package/src/generated/model/completeClaimBody.ts +1 -1
  120. package/src/generated/model/createApplication200.ts +137 -0
  121. package/src/generated/model/createApplication200ClientSecretsItem.ts +19 -0
  122. package/src/generated/model/createApplication201.ts +137 -0
  123. package/src/generated/model/createApplication201ClientSecretsItem.ts +19 -0
  124. package/src/generated/model/createApplication400.ts +20 -0
  125. package/src/generated/model/createApplication400Details.ts +12 -0
  126. package/src/generated/model/createApplication401.ts +20 -0
  127. package/src/generated/model/createApplication401Details.ts +12 -0
  128. package/src/generated/model/createApplication403.ts +20 -0
  129. package/src/generated/model/createApplication403Details.ts +12 -0
  130. package/src/generated/model/createApplication404.ts +20 -0
  131. package/src/generated/model/createApplication404Details.ts +12 -0
  132. package/src/generated/model/createApplication409.ts +20 -0
  133. package/src/generated/model/createApplication409Details.ts +12 -0
  134. package/src/generated/model/createApplicationBody.ts +20 -0
  135. package/src/generated/model/createApplicationBodyApplication.ts +35 -0
  136. package/src/generated/model/createApplicationBodyApplicationClientsItem.ts +84 -0
  137. package/src/generated/model/createApplicationBodyApplicationClientsItemGrantTypesItem.ts +15 -0
  138. package/src/generated/model/createApplicationBodyApplicationClientsItemType.ts +19 -0
  139. package/src/generated/model/createApplicationDefault.ts +54 -0
  140. package/src/generated/model/createApplicationParams.ts +17 -0
  141. package/src/generated/model/createAuthAttempt201.ts +23 -22
  142. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +9 -7
  143. package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +1 -1
  144. package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +2 -2
  145. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +5 -5
  146. package/src/generated/model/createAuthAttempt201State.ts +2 -2
  147. package/src/generated/model/createAuthAttemptBody.ts +3 -3
  148. package/src/generated/model/createAuthAttemptDefault.ts +63 -0
  149. package/src/generated/model/createBranding201.ts +10 -10
  150. package/src/generated/model/createBranding201Branding.ts +26 -24
  151. package/src/generated/model/createBranding201BrandingLayout.ts +8 -7
  152. package/src/generated/model/createBranding201BrandingShape.ts +1 -1
  153. package/src/generated/model/createBranding201BrandingTheme.ts +5 -7
  154. package/src/generated/model/createBranding201BrandingThemeDark.ts +8 -8
  155. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +63 -62
  156. package/src/generated/model/createBranding201BrandingThemeLight.ts +8 -8
  157. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +63 -62
  158. package/src/generated/model/createBranding201BrandingTypography.ts +5 -5
  159. package/src/generated/model/createBrandingBody.ts +26 -24
  160. package/src/generated/model/createBrandingBodyLayout.ts +8 -7
  161. package/src/generated/model/createBrandingBodyShape.ts +1 -1
  162. package/src/generated/model/createBrandingBodyTheme.ts +5 -7
  163. package/src/generated/model/createBrandingBodyThemeDark.ts +8 -8
  164. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +63 -62
  165. package/src/generated/model/createBrandingBodyThemeLight.ts +8 -8
  166. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +63 -62
  167. package/src/generated/model/createBrandingBodyTypography.ts +5 -5
  168. package/src/generated/model/createBrandingParams.ts +3 -1
  169. package/src/generated/model/createDeployment200.ts +19 -15
  170. package/src/generated/model/createDeployment200Metadata.ts +1 -1
  171. package/src/generated/model/createDeployment200Release.ts +15 -15
  172. package/src/generated/model/createDeployment200ReleaseMetadata.ts +8 -8
  173. package/src/generated/model/createDeployment200ReleasePointersItem.ts +13 -12
  174. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +3 -3
  175. package/src/generated/model/createDeployment200Status.ts +4 -3
  176. package/src/generated/model/createDeployment201.ts +19 -15
  177. package/src/generated/model/createDeployment201Metadata.ts +1 -1
  178. package/src/generated/model/createDeployment201Release.ts +15 -15
  179. package/src/generated/model/createDeployment201ReleaseMetadata.ts +8 -8
  180. package/src/generated/model/createDeployment201ReleasePointersItem.ts +13 -12
  181. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +3 -3
  182. package/src/generated/model/createDeployment201Status.ts +4 -3
  183. package/src/generated/model/createDeployment409.ts +42 -40
  184. package/src/generated/model/createDeploymentBody.ts +4 -10
  185. package/src/generated/model/createDeploymentParams.ts +3 -1
  186. package/src/generated/model/createFlow201.ts +16 -12
  187. package/src/generated/model/createFlow201Branding.ts +26 -24
  188. package/src/generated/model/createFlow201BrandingLayout.ts +8 -7
  189. package/src/generated/model/createFlow201BrandingShape.ts +1 -1
  190. package/src/generated/model/createFlow201BrandingTheme.ts +5 -7
  191. package/src/generated/model/createFlow201BrandingThemeDark.ts +8 -8
  192. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +63 -62
  193. package/src/generated/model/createFlow201BrandingThemeLight.ts +8 -8
  194. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +63 -62
  195. package/src/generated/model/createFlow201BrandingTypography.ts +5 -5
  196. package/src/generated/model/createFlow201Step.ts +36 -31
  197. package/src/generated/model/createFlow201StepActionsItem.ts +3 -3
  198. package/src/generated/model/createFlow201StepActionsItemKind.ts +1 -1
  199. package/src/generated/model/createFlow201StepChallenge.ts +4 -3
  200. package/src/generated/model/createFlow201StepComplete.ts +1 -1
  201. package/src/generated/model/createFlow201StepFieldsItem.ts +19 -15
  202. package/src/generated/model/createFlow201StepFieldsItemType.ts +7 -3
  203. package/src/generated/model/createFlow201StepFieldsItemValidation.ts +2 -2
  204. package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +1 -1
  205. package/src/generated/model/createFlow201StepGates.ts +10 -8
  206. package/src/generated/model/createFlow201StepGatesConfig.ts +1 -1
  207. package/src/generated/model/createFlow201StepGatesKind.ts +4 -3
  208. package/src/generated/model/createFlow201StepIdentifier.ts +6 -6
  209. package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
  210. package/src/generated/model/createFlow201StepTexts.ts +1 -1
  211. package/src/generated/model/createFlowBody.ts +7 -2
  212. package/src/generated/model/createFlowBodyHint.ts +4 -1
  213. package/src/generated/model/createFlowBodyPurpose.ts +3 -0
  214. package/src/generated/model/createFlowDefault.ts +9 -0
  215. package/src/generated/model/createFlowDefinition201.ts +22 -10
  216. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +47 -26
  217. package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +1 -1
  218. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +2 -2
  219. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +46 -28
  220. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +9 -7
  221. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  222. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +11 -10
  223. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +1 -1
  224. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +4 -3
  225. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +40 -20
  226. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  227. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  228. package/src/generated/model/createFlowDefinition201UserSchema.ts +2 -2
  229. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +2 -1
  230. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +21 -20
  231. package/src/generated/model/createFlowDefinitionBody.ts +22 -12
  232. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +47 -26
  233. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +1 -1
  234. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +2 -2
  235. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +46 -28
  236. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +9 -7
  237. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  238. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +11 -10
  239. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +1 -1
  240. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +4 -3
  241. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +40 -20
  242. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  243. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  244. package/src/generated/model/createGrant201.ts +14 -14
  245. package/src/generated/model/createGrant201ObjectType.ts +1 -1
  246. package/src/generated/model/createGrant201Relation.ts +1 -1
  247. package/src/generated/model/createGrant201Team.ts +7 -7
  248. package/src/generated/model/createGrant201TeamStatus.ts +2 -2
  249. package/src/generated/model/createGrant201User.ts +5 -5
  250. package/src/generated/model/createGrant201UserMetadata.ts +10 -11
  251. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +11 -12
  252. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  253. package/src/generated/model/createGrantBody.ts +12 -12
  254. package/src/generated/model/createGrantBodyRelation.ts +1 -1
  255. package/src/generated/model/createGrantBodyTeam.ts +3 -3
  256. package/src/generated/model/createGrantBodyUser.ts +5 -5
  257. package/src/generated/model/createGrantDefault.ts +9 -0
  258. package/src/generated/model/createGrantParams.ts +3 -1
  259. package/src/generated/model/createHandoff200.ts +9 -10
  260. package/src/generated/model/createIdp200.ts +10 -9
  261. package/src/generated/model/createIdp200Definition.ts +7 -7
  262. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
  263. package/src/generated/model/createIdp200DefinitionOidc.ts +7 -7
  264. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  265. package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
  266. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
  267. package/src/generated/model/createIdp201.ts +10 -9
  268. package/src/generated/model/createIdp201Definition.ts +7 -7
  269. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
  270. package/src/generated/model/createIdp201DefinitionOidc.ts +7 -7
  271. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  272. package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
  273. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
  274. package/src/generated/model/createIdpBody.ts +1 -1
  275. package/src/generated/model/createIdpBodyIdp.ts +7 -7
  276. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
  277. package/src/generated/model/createIdpBodyIdpOidc.ts +7 -7
  278. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +1 -1
  279. package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
  280. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
  281. package/src/generated/model/createIdpParams.ts +3 -1
  282. package/src/generated/model/createInvitation201.ts +136 -0
  283. package/src/generated/model/createInvitation400.ts +20 -0
  284. package/src/generated/model/createInvitation400Details.ts +12 -0
  285. package/src/generated/model/createInvitation401.ts +20 -0
  286. package/src/generated/model/createInvitation401Details.ts +12 -0
  287. package/src/generated/model/createInvitation403.ts +20 -0
  288. package/src/generated/model/createInvitation403Details.ts +12 -0
  289. package/src/generated/model/createInvitation404.ts +20 -0
  290. package/src/generated/model/createInvitation404Details.ts +12 -0
  291. package/src/generated/model/createInvitation409.ts +20 -0
  292. package/src/generated/model/createInvitation409Details.ts +12 -0
  293. package/src/generated/model/createInvitation501.ts +23 -0
  294. package/src/generated/model/createInvitationBody.ts +72 -0
  295. package/src/generated/model/createInvitationDefault.ts +117 -0
  296. package/src/generated/model/createInvitationParams.ts +17 -0
  297. package/src/generated/model/createProject201.ts +10 -5
  298. package/src/generated/model/createProject201OriginsItem.ts +17 -5
  299. package/src/generated/model/createProject201OriginsItemKind.ts +4 -0
  300. package/src/generated/model/createProjectBody.ts +5 -6
  301. package/src/generated/model/createProjectBodyOriginsItem.ts +17 -5
  302. package/src/generated/model/createProjectBodyOriginsItemKind.ts +4 -0
  303. package/src/generated/model/createRelease200.ts +15 -15
  304. package/src/generated/model/createRelease200Metadata.ts +8 -8
  305. package/src/generated/model/createRelease200PointersItem.ts +13 -12
  306. package/src/generated/model/createRelease200PointersItemKind.ts +3 -3
  307. package/src/generated/model/createRelease201.ts +15 -15
  308. package/src/generated/model/createRelease201Metadata.ts +8 -8
  309. package/src/generated/model/createRelease201PointersItem.ts +13 -12
  310. package/src/generated/model/createRelease201PointersItemKind.ts +3 -3
  311. package/src/generated/model/createReleaseBody.ts +7 -11
  312. package/src/generated/model/createReleaseBodyPointersItem.ts +8 -8
  313. package/src/generated/model/createReleaseBodyPointersItemKind.ts +3 -3
  314. package/src/generated/model/createReleaseParams.ts +3 -1
  315. package/src/generated/model/createSchema201.ts +1 -1
  316. package/src/generated/model/createSchemaBody.ts +23 -22
  317. package/src/generated/model/createSchemaParams.ts +4 -2
  318. package/src/generated/model/createSession201.ts +8 -8
  319. package/src/generated/model/createSession201Session.ts +16 -16
  320. package/src/generated/model/createSession201SessionFactorsItem.ts +2 -2
  321. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +5 -5
  322. package/src/generated/model/createSession201SessionState.ts +1 -1
  323. package/src/generated/model/createSession201SessionUser.ts +5 -5
  324. package/src/generated/model/createSessionBody.ts +1 -1
  325. package/src/generated/model/createSessionDefault.ts +9 -0
  326. package/src/generated/model/createTeam201.ts +2 -2
  327. package/src/generated/model/createTeam201Status.ts +2 -2
  328. package/src/generated/model/createTeamBody.ts +1 -1
  329. package/src/generated/model/createTeamParams.ts +3 -1
  330. package/src/generated/model/createUser201.ts +28 -29
  331. package/src/generated/model/createUser201Metadata.ts +10 -11
  332. package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +11 -12
  333. package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +2 -2
  334. package/src/generated/model/createUser201TeamsItem.ts +4 -4
  335. package/src/generated/model/createUserBody.ts +9 -8
  336. package/src/generated/model/createUserParams.ts +4 -2
  337. package/src/generated/model/deleteGrantParams.ts +3 -1
  338. package/src/generated/model/deleteVariableParams.ts +3 -1
  339. package/src/generated/model/evaluatePolicy200.ts +5 -4
  340. package/src/generated/model/evaluatePolicy200Violations.ts +4 -3
  341. package/src/generated/model/evaluatePolicyBody.ts +8 -9
  342. package/src/generated/model/evaluatePolicyParams.ts +3 -1
  343. package/src/generated/model/exchangeHandoff200.ts +8 -8
  344. package/src/generated/model/exchangeHandoff200Session.ts +16 -16
  345. package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +2 -2
  346. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +5 -5
  347. package/src/generated/model/exchangeHandoff200SessionState.ts +1 -1
  348. package/src/generated/model/exchangeHandoff200SessionUser.ts +5 -5
  349. package/src/generated/model/exchangeHandoffBody.ts +7 -5
  350. package/src/generated/model/exchangeHandoffParams.ts +3 -1
  351. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +1 -1
  352. package/src/generated/model/getApplicationById200.ts +43 -0
  353. package/src/generated/model/getApplicationById200Definition.ts +35 -0
  354. package/src/generated/model/getApplicationById200DefinitionClientsItem.ts +84 -0
  355. package/src/generated/model/getApplicationById200DefinitionClientsItemGrantTypesItem.ts +15 -0
  356. package/src/generated/model/getApplicationById200DefinitionClientsItemType.ts +19 -0
  357. package/src/generated/model/getApplicationById401.ts +20 -0
  358. package/src/generated/model/getApplicationById401Details.ts +12 -0
  359. package/src/generated/model/getApplicationById403.ts +20 -0
  360. package/src/generated/model/getApplicationById403Details.ts +12 -0
  361. package/src/generated/model/getApplicationById404.ts +20 -0
  362. package/src/generated/model/getApplicationById404Details.ts +12 -0
  363. package/src/generated/model/getApplicationByIdDefault.ts +54 -0
  364. package/src/generated/model/getApplicationByIdParams.ts +17 -0
  365. package/src/generated/model/getAuthAttempt200.ts +23 -22
  366. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +9 -7
  367. package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +1 -1
  368. package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +2 -2
  369. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +5 -5
  370. package/src/generated/model/getAuthAttempt200State.ts +2 -2
  371. package/src/generated/model/getBrandingById200.ts +10 -10
  372. package/src/generated/model/getBrandingById200Branding.ts +26 -24
  373. package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -7
  374. package/src/generated/model/getBrandingById200BrandingShape.ts +1 -1
  375. package/src/generated/model/getBrandingById200BrandingTheme.ts +5 -7
  376. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +8 -8
  377. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +63 -62
  378. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +8 -8
  379. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +63 -62
  380. package/src/generated/model/getBrandingById200BrandingTypography.ts +5 -5
  381. package/src/generated/model/getClaimStatus200.ts +4 -5
  382. package/src/generated/model/getClaimStatusParams.ts +1 -1
  383. package/src/generated/model/getClaimWindow200.ts +6 -6
  384. package/src/generated/model/getClaimWindowParams.ts +1 -1
  385. package/src/generated/model/getDeploymentById200.ts +19 -15
  386. package/src/generated/model/getDeploymentById200Metadata.ts +1 -1
  387. package/src/generated/model/getDeploymentById200Release.ts +15 -15
  388. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +8 -8
  389. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +13 -12
  390. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +3 -3
  391. package/src/generated/model/getDeploymentById200Status.ts +4 -3
  392. package/src/generated/model/getDeploymentByIdParams.ts +3 -1
  393. package/src/generated/model/getDeploymentVariablesParams.ts +3 -1
  394. package/src/generated/model/getEvent200.ts +1984 -1323
  395. package/src/generated/model/getEventParams.ts +3 -1
  396. package/src/generated/model/getFlowDefinition200.ts +22 -10
  397. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +47 -26
  398. package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +1 -1
  399. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +2 -2
  400. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +46 -28
  401. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +9 -7
  402. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  403. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +11 -10
  404. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -1
  405. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +4 -3
  406. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +40 -20
  407. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  408. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  409. package/src/generated/model/getFlowDefinition200UserSchema.ts +2 -2
  410. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +2 -1
  411. package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +21 -20
  412. package/src/generated/model/getFlowStep200.ts +16 -12
  413. package/src/generated/model/getFlowStep200Branding.ts +26 -24
  414. package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -7
  415. package/src/generated/model/getFlowStep200BrandingShape.ts +1 -1
  416. package/src/generated/model/getFlowStep200BrandingTheme.ts +5 -7
  417. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +8 -8
  418. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +63 -62
  419. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +8 -8
  420. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +63 -62
  421. package/src/generated/model/getFlowStep200BrandingTypography.ts +5 -5
  422. package/src/generated/model/getFlowStep200Step.ts +36 -31
  423. package/src/generated/model/getFlowStep200StepActionsItem.ts +3 -3
  424. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +1 -1
  425. package/src/generated/model/getFlowStep200StepChallenge.ts +4 -3
  426. package/src/generated/model/getFlowStep200StepComplete.ts +1 -1
  427. package/src/generated/model/getFlowStep200StepFieldsItem.ts +19 -15
  428. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +7 -3
  429. package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +2 -2
  430. package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  431. package/src/generated/model/getFlowStep200StepGates.ts +10 -8
  432. package/src/generated/model/getFlowStep200StepGatesConfig.ts +1 -1
  433. package/src/generated/model/getFlowStep200StepGatesKind.ts +4 -3
  434. package/src/generated/model/getFlowStep200StepIdentifier.ts +6 -6
  435. package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
  436. package/src/generated/model/getFlowStep200StepTexts.ts +1 -1
  437. package/src/generated/model/getFlowStepDefault.ts +18 -0
  438. package/src/generated/model/getGrant200.ts +14 -14
  439. package/src/generated/model/getGrant200ObjectType.ts +1 -1
  440. package/src/generated/model/getGrant200Relation.ts +1 -1
  441. package/src/generated/model/getGrant200Team.ts +7 -7
  442. package/src/generated/model/getGrant200TeamStatus.ts +2 -2
  443. package/src/generated/model/getGrant200User.ts +5 -5
  444. package/src/generated/model/getGrant200UserMetadata.ts +10 -11
  445. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +11 -12
  446. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  447. package/src/generated/model/getGrantDefault.ts +0 -9
  448. package/src/generated/model/getGrantExpandItem.ts +8 -5
  449. package/src/generated/model/getGrantParams.ts +6 -3
  450. package/src/generated/model/getIdpById200.ts +10 -9
  451. package/src/generated/model/getIdpById200Definition.ts +7 -7
  452. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
  453. package/src/generated/model/getIdpById200DefinitionOidc.ts +7 -7
  454. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  455. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
  456. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
  457. package/src/generated/model/getIdpByIdParams.ts +3 -1
  458. package/src/generated/model/getIdpRevisionById200.ts +10 -9
  459. package/src/generated/model/getIdpRevisionById200Definition.ts +7 -7
  460. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
  461. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +7 -7
  462. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  463. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
  464. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
  465. package/src/generated/model/getIdpRevisionByIdParams.ts +3 -1
  466. package/src/generated/model/getInvitation200.ts +126 -0
  467. package/src/generated/model/getInvitation401.ts +20 -0
  468. package/src/generated/model/getInvitation401Details.ts +12 -0
  469. package/src/generated/model/getInvitation403.ts +20 -0
  470. package/src/generated/model/getInvitation403Details.ts +12 -0
  471. package/src/generated/model/getInvitation404.ts +20 -0
  472. package/src/generated/model/getInvitation404Details.ts +12 -0
  473. package/src/generated/model/getInvitationDefault.ts +72 -0
  474. package/src/generated/model/getInvitationParams.ts +17 -0
  475. package/src/generated/model/getMyPasswordState200.ts +2 -2
  476. package/src/generated/model/getMySession200.ts +16 -16
  477. package/src/generated/model/getMySession200FactorsItem.ts +2 -2
  478. package/src/generated/model/getMySession200FactorsItemPayload.ts +5 -5
  479. package/src/generated/model/getMySession200State.ts +1 -1
  480. package/src/generated/model/getMySession200User.ts +5 -5
  481. package/src/generated/model/getMySessionCsrfToken200.ts +1 -1
  482. package/src/generated/model/getMyUser200.ts +28 -29
  483. package/src/generated/model/getMyUser200Metadata.ts +10 -11
  484. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  485. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  486. package/src/generated/model/getMyUser200TeamsItem.ts +4 -4
  487. package/src/generated/model/getMyUserSchema200.ts +4 -4
  488. package/src/generated/model/getMyUserSchema200Metadata.ts +2 -1
  489. package/src/generated/model/getMyUserSchema200Schema.ts +21 -20
  490. package/src/generated/model/getPolicy200.ts +3 -3
  491. package/src/generated/model/getPolicyParams.ts +3 -1
  492. package/src/generated/model/getPolicyRevision200.ts +3 -3
  493. package/src/generated/model/getPolicyRevisionParams.ts +3 -1
  494. package/src/generated/model/getProject200.ts +34 -30
  495. package/src/generated/model/getReleaseById200.ts +15 -15
  496. package/src/generated/model/getReleaseById200Metadata.ts +8 -8
  497. package/src/generated/model/getReleaseById200PointersItem.ts +13 -12
  498. package/src/generated/model/getReleaseById200PointersItemKind.ts +3 -3
  499. package/src/generated/model/getReleaseByIdParams.ts +3 -1
  500. package/src/generated/model/getSchemaById200.ts +4 -4
  501. package/src/generated/model/getSchemaById200Metadata.ts +2 -1
  502. package/src/generated/model/getSchemaById200Schema.ts +21 -20
  503. package/src/generated/model/getSchemaByIdParams.ts +3 -3
  504. package/src/generated/model/getSession200.ts +16 -16
  505. package/src/generated/model/getSession200FactorsItem.ts +2 -2
  506. package/src/generated/model/getSession200FactorsItemPayload.ts +5 -5
  507. package/src/generated/model/getSession200State.ts +1 -1
  508. package/src/generated/model/getSession200User.ts +5 -5
  509. package/src/generated/model/getTeam200.ts +2 -2
  510. package/src/generated/model/getTeam200Status.ts +2 -2
  511. package/src/generated/model/getUserByID200.ts +28 -29
  512. package/src/generated/model/getUserByID200Metadata.ts +10 -11
  513. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  514. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  515. package/src/generated/model/getUserByID200TeamsItem.ts +4 -4
  516. package/src/generated/model/getUserByIDParams.ts +4 -3
  517. package/src/generated/model/getUserPasswordState200.ts +2 -2
  518. package/src/generated/model/getVariable200.ts +4 -4
  519. package/src/generated/model/getVariable200Preview.ts +2 -2
  520. package/src/generated/model/getVariable200Primary.ts +2 -2
  521. package/src/generated/model/getVariableParams.ts +3 -1
  522. package/src/generated/model/getVariables200.ts +4 -4
  523. package/src/generated/model/getVariables200Preview.ts +2 -2
  524. package/src/generated/model/getVariables200Primary.ts +2 -2
  525. package/src/generated/model/getVariablesParams.ts +3 -1
  526. package/src/generated/model/index.ts +138 -0
  527. package/src/generated/model/initClaim201.ts +3 -3
  528. package/src/generated/model/initClaim409.ts +2 -2
  529. package/src/generated/model/issueChallenge201.ts +9 -7
  530. package/src/generated/model/issueChallenge201State.ts +1 -1
  531. package/src/generated/model/issueChallengeBody.ts +2 -2
  532. package/src/generated/model/listBrandingParams.ts +3 -1
  533. package/src/generated/model/listDeployments200DeploymentsItem.ts +19 -15
  534. package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +1 -1
  535. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +15 -15
  536. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +8 -8
  537. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +13 -12
  538. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +3 -3
  539. package/src/generated/model/listDeployments200DeploymentsItemStatus.ts +4 -3
  540. package/src/generated/model/listDeploymentsExpandItem.ts +4 -4
  541. package/src/generated/model/listDeploymentsParams.ts +3 -1
  542. package/src/generated/model/listEvents200.ts +9 -2
  543. package/src/generated/model/listEvents200DataItem.ts +1984 -1323
  544. package/src/generated/model/listEventsParams.ts +53 -6
  545. package/src/generated/model/listEventsStatusClassItem.ts +18 -0
  546. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +22 -10
  547. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +47 -26
  548. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +1 -1
  549. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +2 -2
  550. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +46 -28
  551. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +9 -7
  552. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  553. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +11 -10
  554. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -1
  555. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +4 -3
  556. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +40 -20
  557. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  558. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  559. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +2 -2
  560. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +2 -1
  561. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +21 -20
  562. package/src/generated/model/listFlowDefinitionsExpandItem.ts +2 -2
  563. package/src/generated/model/listFlowDefinitionsParams.ts +8 -6
  564. package/src/generated/model/listIdpRevisions200.ts +1 -2
  565. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +10 -9
  566. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +7 -7
  567. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
  568. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +7 -7
  569. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  570. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
  571. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -1
  572. package/src/generated/model/listIdpRevisionsParams.ts +3 -1
  573. package/src/generated/model/listInvitations200.ts +20 -0
  574. package/src/generated/model/listInvitations200InvitationsItem.ts +126 -0
  575. package/src/generated/model/listInvitations400.ts +20 -0
  576. package/src/generated/model/listInvitations400Details.ts +12 -0
  577. package/src/generated/model/listInvitations401.ts +20 -0
  578. package/src/generated/model/listInvitations401Details.ts +12 -0
  579. package/src/generated/model/listInvitations403.ts +20 -0
  580. package/src/generated/model/listInvitations403Details.ts +12 -0
  581. package/src/generated/model/listInvitations404.ts +20 -0
  582. package/src/generated/model/listInvitations404Details.ts +12 -0
  583. package/src/generated/model/listInvitationsDefault.ts +72 -0
  584. package/src/generated/model/listInvitationsParams.ts +42 -0
  585. package/src/generated/model/listInvitationsStatus.ts +17 -0
  586. package/src/generated/model/listInvitationsType.ts +15 -0
  587. package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +2 -2
  588. package/src/generated/model/listMyProjects200.ts +1 -1
  589. package/src/generated/model/listMyProjects200ProjectsItem.ts +2 -3
  590. package/src/generated/model/listMyProjects200ProjectsItemOriginsItem.ts +17 -5
  591. package/src/generated/model/listMyProjects200ProjectsItemOriginsItemKind.ts +4 -0
  592. package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +12 -15
  593. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  594. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +15 -18
  595. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  596. package/src/generated/model/listMyProjectsOrder.ts +15 -0
  597. package/src/generated/model/listMyProjectsParams.ts +10 -0
  598. package/src/generated/model/listMyTeams200TeamsItem.ts +4 -4
  599. package/src/generated/model/listPolicies200.ts +2 -2
  600. package/src/generated/model/listPolicies200PoliciesItem.ts +3 -3
  601. package/src/generated/model/listPoliciesParams.ts +3 -1
  602. package/src/generated/model/listPolicyRevisions200.ts +1 -1
  603. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +3 -3
  604. package/src/generated/model/listPolicyRevisionsParams.ts +3 -1
  605. package/src/generated/model/listPreviews200PreviewsItem.ts +4 -5
  606. package/src/generated/model/listProjectAdmins200AdminsItem.ts +3 -3
  607. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +13 -15
  608. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +5 -5
  609. package/src/generated/model/listReleases200.ts +1 -1
  610. package/src/generated/model/listReleases200ReleasesItem.ts +4 -4
  611. package/src/generated/model/listReleases200ReleasesItemMetadata.ts +8 -8
  612. package/src/generated/model/listReleasesParams.ts +4 -2
  613. package/src/generated/model/listSchemas200.ts +1 -1
  614. package/src/generated/model/listSchemas200SchemasItem.ts +4 -4
  615. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +2 -1
  616. package/src/generated/model/listSchemas200SchemasItemSchema.ts +21 -20
  617. package/src/generated/model/listSchemasExpandItem.ts +2 -2
  618. package/src/generated/model/listSchemasParams.ts +7 -5
  619. package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +2 -2
  620. package/src/generated/model/listUserTeams200TeamsItem.ts +4 -4
  621. package/src/generated/model/lookupInvitation200.ts +63 -0
  622. package/src/generated/model/lookupInvitation400.ts +20 -0
  623. package/src/generated/model/lookupInvitation400Details.ts +12 -0
  624. package/src/generated/model/lookupInvitation401.ts +20 -0
  625. package/src/generated/model/lookupInvitation401Details.ts +12 -0
  626. package/src/generated/model/lookupInvitation404.ts +20 -0
  627. package/src/generated/model/lookupInvitation404Details.ts +12 -0
  628. package/src/generated/model/lookupInvitation429.ts +20 -0
  629. package/src/generated/model/lookupInvitation429Details.ts +12 -0
  630. package/src/generated/model/lookupInvitationBody.ts +19 -0
  631. package/src/generated/model/lookupInvitationDefault.ts +72 -0
  632. package/src/generated/model/patchMyUser200.ts +28 -29
  633. package/src/generated/model/patchMyUser200Metadata.ts +10 -11
  634. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  635. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  636. package/src/generated/model/patchMyUser200TeamsItem.ts +4 -4
  637. package/src/generated/model/patchMyUserBody.ts +2 -2
  638. package/src/generated/model/patchProject200.ts +34 -30
  639. package/src/generated/model/patchProjectBody.ts +3 -3
  640. package/src/generated/model/patchProjectBodyPasswordHash.ts +15 -18
  641. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +1 -1
  642. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +15 -18
  643. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +4 -4
  644. package/src/generated/model/patchUserByID200.ts +28 -29
  645. package/src/generated/model/patchUserByID200Metadata.ts +10 -11
  646. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  647. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  648. package/src/generated/model/patchUserByID200TeamsItem.ts +4 -4
  649. package/src/generated/model/patchUserByIDBody.ts +21 -13
  650. package/src/generated/model/publishPolicy201.ts +3 -3
  651. package/src/generated/model/publishPolicyBody.ts +3 -3
  652. package/src/generated/model/publishPolicyParams.ts +3 -1
  653. package/src/generated/model/queryGrants200GrantsItem.ts +14 -14
  654. package/src/generated/model/queryGrants200GrantsItemObjectType.ts +1 -1
  655. package/src/generated/model/queryGrants200GrantsItemRelation.ts +1 -1
  656. package/src/generated/model/queryGrants200GrantsItemTeam.ts +7 -7
  657. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +2 -2
  658. package/src/generated/model/queryGrants200GrantsItemUser.ts +5 -5
  659. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +10 -11
  660. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +11 -12
  661. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  662. package/src/generated/model/queryGrantsBody.ts +2 -3
  663. package/src/generated/model/queryGrantsBodyExpandItem.ts +8 -5
  664. package/src/generated/model/queryGrantsBodyFilterItem.ts +5 -6
  665. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +4 -3
  666. package/src/generated/model/queryGrantsDefault.ts +0 -9
  667. package/src/generated/model/queryGrantsParams.ts +3 -1
  668. package/src/generated/model/queryIdps200.ts +1 -1
  669. package/src/generated/model/queryIdps200IdpsItem.ts +10 -9
  670. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +7 -7
  671. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
  672. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +7 -7
  673. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  674. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
  675. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
  676. package/src/generated/model/queryIdpsBody.ts +2 -2
  677. package/src/generated/model/queryIdpsBodyFilterItem.ts +7 -8
  678. package/src/generated/model/queryIdpsBodyFilterItemField.ts +2 -2
  679. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +4 -3
  680. package/src/generated/model/queryIdpsBodySorting.ts +2 -2
  681. package/src/generated/model/queryIdpsBodySortingField.ts +2 -2
  682. package/src/generated/model/queryIdpsParams.ts +3 -1
  683. package/src/generated/model/queryProjects200ProjectsItem.ts +2 -3
  684. package/src/generated/model/queryProjects200ProjectsItemOriginsItem.ts +17 -5
  685. package/src/generated/model/queryProjects200ProjectsItemOriginsItemKind.ts +4 -0
  686. package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +12 -15
  687. package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  688. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +15 -18
  689. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  690. package/src/generated/model/queryProjectsBodyFilterItem.ts +5 -6
  691. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +4 -3
  692. package/src/generated/model/querySessions200SessionsItem.ts +16 -16
  693. package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +2 -2
  694. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +5 -5
  695. package/src/generated/model/querySessions200SessionsItemState.ts +1 -1
  696. package/src/generated/model/querySessions200SessionsItemUser.ts +5 -5
  697. package/src/generated/model/querySessionsBodyFilterItem.ts +6 -7
  698. package/src/generated/model/querySessionsBodyFilterItemField.ts +1 -1
  699. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +4 -3
  700. package/src/generated/model/querySessionsBodySorting.ts +2 -3
  701. package/src/generated/model/querySessionsBodySortingField.ts +2 -3
  702. package/src/generated/model/querySessionsParams.ts +3 -1
  703. package/src/generated/model/queryTeams200TeamsItem.ts +2 -2
  704. package/src/generated/model/queryTeams200TeamsItemStatus.ts +2 -2
  705. package/src/generated/model/queryTeamsBodyFilterItem.ts +5 -6
  706. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +4 -3
  707. package/src/generated/model/queryTeamsParams.ts +2 -2
  708. package/src/generated/model/queryUsers200UsersItem.ts +28 -29
  709. package/src/generated/model/queryUsers200UsersItemMetadata.ts +10 -11
  710. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +11 -12
  711. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +2 -2
  712. package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +4 -4
  713. package/src/generated/model/queryUsersBody.ts +2 -2
  714. package/src/generated/model/queryUsersBodyExpandItem.ts +8 -8
  715. package/src/generated/model/queryUsersBodyFilterItem.ts +23 -17
  716. package/src/generated/model/queryUsersBodyFilterItemField.ts +19 -11
  717. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +4 -3
  718. package/src/generated/model/queryUsersBodySorting.ts +4 -5
  719. package/src/generated/model/queryUsersBodySortingField.ts +4 -5
  720. package/src/generated/model/queryUsersParams.ts +2 -2
  721. package/src/generated/model/rejectInvitation200.ts +126 -0
  722. package/src/generated/model/rejectInvitation400.ts +20 -0
  723. package/src/generated/model/rejectInvitation400Details.ts +12 -0
  724. package/src/generated/model/rejectInvitation401.ts +20 -0
  725. package/src/generated/model/rejectInvitation401Details.ts +12 -0
  726. package/src/generated/model/rejectInvitation403.ts +20 -0
  727. package/src/generated/model/rejectInvitation403Details.ts +12 -0
  728. package/src/generated/model/rejectInvitation404.ts +20 -0
  729. package/src/generated/model/rejectInvitation404Details.ts +12 -0
  730. package/src/generated/model/rejectInvitation429.ts +20 -0
  731. package/src/generated/model/rejectInvitation429Details.ts +12 -0
  732. package/src/generated/model/rejectInvitationBody.ts +19 -0
  733. package/src/generated/model/rejectInvitationDefault.ts +72 -0
  734. package/src/generated/model/removeOriginBody.ts +2 -2
  735. package/src/generated/model/revokeRelease200.ts +15 -15
  736. package/src/generated/model/revokeRelease200Metadata.ts +8 -8
  737. package/src/generated/model/revokeRelease200PointersItem.ts +13 -12
  738. package/src/generated/model/revokeRelease200PointersItemKind.ts +3 -3
  739. package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +3 -0
  740. package/src/generated/model/revokeRelease409DetailsOriginsItemKind.ts +18 -0
  741. package/src/generated/model/revokeReleaseParams.ts +3 -1
  742. package/src/generated/model/rollbackDeployment200.ts +19 -15
  743. package/src/generated/model/rollbackDeployment200Metadata.ts +1 -1
  744. package/src/generated/model/rollbackDeployment200Release.ts +15 -15
  745. package/src/generated/model/rollbackDeployment200ReleaseMetadata.ts +8 -8
  746. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +13 -12
  747. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +3 -3
  748. package/src/generated/model/rollbackDeployment200Status.ts +4 -3
  749. package/src/generated/model/rollbackDeployment201.ts +19 -15
  750. package/src/generated/model/rollbackDeployment201Metadata.ts +1 -1
  751. package/src/generated/model/rollbackDeployment201Release.ts +15 -15
  752. package/src/generated/model/rollbackDeployment201ReleaseMetadata.ts +8 -8
  753. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +13 -12
  754. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +3 -3
  755. package/src/generated/model/rollbackDeployment201Status.ts +4 -3
  756. package/src/generated/model/rollbackDeployment409.ts +42 -40
  757. package/src/generated/model/rollbackDeploymentDefault.ts +0 -9
  758. package/src/generated/model/rollbackDeploymentParams.ts +3 -1
  759. package/src/generated/model/search200.ts +27 -0
  760. package/src/generated/model/search200IncompleteTypesItem.ts +30 -0
  761. package/src/generated/model/search200ResultsItem.ts +54 -0
  762. package/src/generated/model/search200ResultsItemType.ts +30 -0
  763. package/src/generated/model/search400.ts +20 -0
  764. package/src/generated/model/search400Details.ts +12 -0
  765. package/src/generated/model/search401.ts +20 -0
  766. package/src/generated/model/search401Details.ts +12 -0
  767. package/src/generated/model/search403.ts +20 -0
  768. package/src/generated/model/search403Details.ts +12 -0
  769. package/src/generated/model/search404.ts +20 -0
  770. package/src/generated/model/search404Details.ts +12 -0
  771. package/src/generated/model/searchBody.ts +33 -0
  772. package/src/generated/model/searchBodyTypesItem.ts +30 -0
  773. package/src/generated/model/searchDefault.ts +198 -0
  774. package/src/generated/model/searchParams.ts +16 -0
  775. package/src/generated/model/setUserPasswordBody.ts +1 -1
  776. package/src/generated/model/setUserPasswordDefault.ts +63 -0
  777. package/src/generated/model/submitFlowStep200.ts +16 -12
  778. package/src/generated/model/submitFlowStep200Branding.ts +26 -24
  779. package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -7
  780. package/src/generated/model/submitFlowStep200BrandingShape.ts +1 -1
  781. package/src/generated/model/submitFlowStep200BrandingTheme.ts +5 -7
  782. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +8 -8
  783. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +63 -62
  784. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +8 -8
  785. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +63 -62
  786. package/src/generated/model/submitFlowStep200BrandingTypography.ts +5 -5
  787. package/src/generated/model/submitFlowStep200Step.ts +36 -31
  788. package/src/generated/model/submitFlowStep200StepActionsItem.ts +3 -3
  789. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +1 -1
  790. package/src/generated/model/submitFlowStep200StepChallenge.ts +4 -3
  791. package/src/generated/model/submitFlowStep200StepComplete.ts +1 -1
  792. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +19 -15
  793. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +7 -3
  794. package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +2 -2
  795. package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  796. package/src/generated/model/submitFlowStep200StepGates.ts +10 -8
  797. package/src/generated/model/submitFlowStep200StepGatesConfig.ts +1 -1
  798. package/src/generated/model/submitFlowStep200StepGatesKind.ts +4 -3
  799. package/src/generated/model/submitFlowStep200StepIdentifier.ts +6 -6
  800. package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
  801. package/src/generated/model/submitFlowStep200StepTexts.ts +1 -1
  802. package/src/generated/model/submitFlowStep400.ts +16 -12
  803. package/src/generated/model/submitFlowStep400Branding.ts +26 -24
  804. package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -7
  805. package/src/generated/model/submitFlowStep400BrandingShape.ts +1 -1
  806. package/src/generated/model/submitFlowStep400BrandingTheme.ts +5 -7
  807. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +8 -8
  808. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +63 -62
  809. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +8 -8
  810. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +63 -62
  811. package/src/generated/model/submitFlowStep400BrandingTypography.ts +5 -5
  812. package/src/generated/model/submitFlowStep400Step.ts +36 -31
  813. package/src/generated/model/submitFlowStep400StepActionsItem.ts +3 -3
  814. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +1 -1
  815. package/src/generated/model/submitFlowStep400StepChallenge.ts +4 -3
  816. package/src/generated/model/submitFlowStep400StepComplete.ts +1 -1
  817. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +19 -15
  818. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +7 -3
  819. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +2 -2
  820. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +1 -1
  821. package/src/generated/model/submitFlowStep400StepGates.ts +10 -8
  822. package/src/generated/model/submitFlowStep400StepGatesConfig.ts +1 -1
  823. package/src/generated/model/submitFlowStep400StepGatesKind.ts +4 -3
  824. package/src/generated/model/submitFlowStep400StepIdentifier.ts +6 -6
  825. package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
  826. package/src/generated/model/submitFlowStep400StepTexts.ts +1 -1
  827. package/src/generated/model/submitFlowStepBody.ts +10 -7
  828. package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +2 -2
  829. package/src/generated/model/submitFlowStepBodyGateProofs.ts +1 -1
  830. package/src/generated/model/submitFlowStepDefault.ts +18 -0
  831. package/src/generated/model/updateTeam200.ts +2 -2
  832. package/src/generated/model/updateTeam200Status.ts +2 -2
  833. package/src/generated/model/updateTeamBody.ts +1 -1
  834. package/src/generated/model/updateVariables200.ts +4 -4
  835. package/src/generated/model/updateVariables200Preview.ts +2 -2
  836. package/src/generated/model/updateVariables200Primary.ts +2 -2
  837. package/src/generated/model/updateVariablesBody.ts +14 -14
  838. package/src/generated/model/updateVariablesParams.ts +3 -1
  839. package/src/generated/model/userProperty.ts +11 -9
  840. package/src/generated/model/userPropertyProperties.ts +2 -2
  841. package/src/generated/model/userPropertyXUnique.ts +1 -1
  842. package/src/generated/model/verifyChallengeProof200.ts +23 -22
  843. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +9 -7
  844. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +1 -1
  845. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +2 -2
  846. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +5 -5
  847. package/src/generated/model/verifyChallengeProof200State.ts +2 -2
  848. package/src/generated/model/verifyChallengeProofBody.ts +2 -2
  849. package/src/generated/operations.ts +508 -152
  850. package/src/generated/paging.ts +5 -0
  851. package/src/runtime/api-factory.spec.ts +50 -0
  852. package/src/runtime/api-factory.ts +11 -2
  853. package/src/runtime/base-url.spec.ts +1 -1
  854. package/src/runtime/fetch.ts +16 -0
  855. package/src/runtime/paged.spec.ts +11 -0
  856. package/src/runtime/paged.ts +9 -8
  857. package/src/runtime/paging.spec.ts +164 -39
  858. package/src/runtime/paging.ts +162 -43
  859. package/dist/api-factory-C5b1Gqwv.mjs.map +0 -1
  860. package/dist/api-factory-Dt5lUjyu.d.mts.map +0 -1
  861. package/dist/fetch-B-lgjlrf.d.mts.map +0 -1
  862. package/dist/index-DGQY1rfH.d.mts.map +0 -1
  863. package/dist/zitadelNextGen-BVO4sdKD.d.mts +0 -1367
  864. package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +0 -1
@@ -10,6 +10,8 @@ import {
10
10
  } from '../../runtime/base-url';
11
11
 
12
12
  import type {
13
+ AcceptInvitation200,
14
+ AcceptInvitationBody,
13
15
  AddOrigin201,
14
16
  AddOriginBody,
15
17
  BeginUserPasskeyRegistration201,
@@ -18,8 +20,13 @@ import type {
18
20
  BuildRelease201,
19
21
  BuildReleaseBody,
20
22
  BuildReleaseParams,
23
+ CancelInvitationParams,
21
24
  CompleteClaim200,
22
25
  CompleteClaimBody,
26
+ CreateApplication200,
27
+ CreateApplication201,
28
+ CreateApplicationBody,
29
+ CreateApplicationParams,
23
30
  CreateAuthAttempt201,
24
31
  CreateAuthAttemptBody,
25
32
  CreateBranding201,
@@ -41,6 +48,9 @@ import type {
41
48
  CreateIdp201,
42
49
  CreateIdpBody,
43
50
  CreateIdpParams,
51
+ CreateInvitation201,
52
+ CreateInvitationBody,
53
+ CreateInvitationParams,
44
54
  CreateProject201,
45
55
  CreateProjectBody,
46
56
  CreateRelease200,
@@ -68,6 +78,8 @@ import type {
68
78
  ExchangeHandoffParams,
69
79
  FinishUserPasskeyRegistration201,
70
80
  FinishUserPasskeyRegistrationBody,
81
+ GetApplicationById200,
82
+ GetApplicationByIdParams,
71
83
  GetAuthAttempt200,
72
84
  GetBrandingById200,
73
85
  GetClaimStatus200,
@@ -88,6 +100,8 @@ import type {
88
100
  GetIdpByIdParams,
89
101
  GetIdpRevisionById200,
90
102
  GetIdpRevisionByIdParams,
103
+ GetInvitation200,
104
+ GetInvitationParams,
91
105
  GetLiveDefault,
92
106
  GetMyPasswordState200,
93
107
  GetMyPasswordStateParams,
@@ -131,6 +145,8 @@ import type {
131
145
  ListFlowDefinitionsParams,
132
146
  ListIdpRevisions200,
133
147
  ListIdpRevisionsParams,
148
+ ListInvitations200,
149
+ ListInvitationsParams,
134
150
  ListMyIdentityLinks200,
135
151
  ListMyIdentityLinksParams,
136
152
  ListMyPasskeys200,
@@ -157,6 +173,8 @@ import type {
157
173
  ListUserPasskeysParams,
158
174
  ListUserTeams200,
159
175
  ListUserTeamsParams,
176
+ LookupInvitation200,
177
+ LookupInvitationBody,
160
178
  PatchMyUser200,
161
179
  PatchMyUserBody,
162
180
  PatchMyUserParams,
@@ -184,6 +202,8 @@ import type {
184
202
  QueryUsers200,
185
203
  QueryUsersBody,
186
204
  QueryUsersParams,
205
+ RejectInvitation200,
206
+ RejectInvitationBody,
187
207
  RemoveOriginBody,
188
208
  RemovePreviewBody,
189
209
  RevokeMySessionParams,
@@ -193,6 +213,9 @@ import type {
193
213
  RollbackDeployment201,
194
214
  RollbackDeploymentBody,
195
215
  RollbackDeploymentParams,
216
+ Search200,
217
+ SearchBody,
218
+ SearchParams,
196
219
  SetUserPasswordBody,
197
220
  SubmitFlowStep200,
198
221
  SubmitFlowStepBody,
@@ -216,13 +239,15 @@ export const getGetLiveUrl = () => {
216
239
  }
217
240
 
218
241
  /**
219
- * Answers `ok` while the server process serves HTTP, and checks nothing behind it.
220
- *
221
- * Point a liveness probe at `/livez` at the root, where the probes stay,
222
- * not under `/api/v1`. It never checks the database, so an outage of the
223
- * database does not restart every instance; `GET /readyz` takes an instance
224
- * out of rotation instead.
225
- * @summary Check server liveness
242
+ * Answers `ok` while the server process serves HTTP, and checks nothing
243
+ * behind it.
244
+ *
245
+ * A liveness probe tells an orchestrator such as Kubernetes whether to
246
+ * restart the process. Point it at `/livez` at the root, where the probes
247
+ * stay, not under `/api/v1`. It never checks the database, so an outage of
248
+ * the database does not restart every instance. `GET /readyz` takes an
249
+ * instance out of rotation instead.
250
+ * @summary Check the server's liveness
226
251
  */
227
252
  export const getLive = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetLiveDefault> => {
228
253
 
@@ -246,12 +271,15 @@ export const getGetReadyUrl = () => {
246
271
  }
247
272
 
248
273
  /**
249
- * Answers whether the server can serve requests, which takes its database answering within a second.
250
- *
251
- * Point a readiness probe at `/readyz` at the root, where the probes stay,
252
- * not under `/api/v1`, so that a server whose database does not answer gets
253
- * no requests until it does. The check is one round trip to the database.
254
- * @summary Check server readiness
274
+ * Answers `ok` when the server can serve requests, which takes its database
275
+ * answering within a second, and `fail` with `503` otherwise.
276
+ *
277
+ * A readiness probe tells an orchestrator such as Kubernetes whether to send
278
+ * the instance requests. Point it at `/readyz` at the root, where the probes
279
+ * stay, not under `/api/v1`, so that a server whose database does not answer
280
+ * gets no requests until it does. The check is one round trip to the
281
+ * database.
282
+ * @summary Check the server's readiness
255
283
  */
256
284
  export const getReady = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetReadyDefault> => {
257
285
 
@@ -282,12 +310,14 @@ export const getCreateUserUrl = (params: CreateUserParams,) => {
282
310
  }
283
311
 
284
312
  /**
285
- * Creates a user whose attributes satisfy the user schema the request names.
286
- *
287
- * The server assigns the user's id. With `team_id`, the user also becomes an
288
- * active member of that team. A value the schema marks unique that another
289
- * user already holds is refused with `409`.
290
- * @summary Create user
313
+ * Creates a user whose attributes satisfy the user schema named in the request.
314
+ *
315
+ * The server assigns the user's ID and returns it. `schema` is the `id` of a
316
+ * schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
317
+ * `team_id`, the user also becomes an active member of that team. A value the
318
+ * schema marks unique that another user already holds is refused with `409`;
319
+ * send a different value.
320
+ * @summary Create a user
291
321
  */
292
322
  export const createUser = async (createUserBody: CreateUserBody,
293
323
  params: CreateUserParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateUser201> => {
@@ -338,9 +368,15 @@ export const getQueryUsersUrl = (params?: QueryUsersParams,) => {
338
368
  * `project_id` names the project to list; without it, the credential's own
339
369
  * project is listed.
340
370
  *
341
- * Accepts either a project secret (`oauth2`) or a user-bound Console
371
+ * Accepts either a project secret (`oauth2`) or a user-bound console
342
372
  * session cookie (`sessionCookie`). Cookie-authenticated requests
343
373
  * follow the scheme's CSRF rules (`sessionCookie`).
374
+ *
375
+ * With a project secret, embedding `teams` with `expand`, or filtering by
376
+ * `team_id`, also needs `team_membership.read`. Embedding
377
+ * `lifecycle_owner_team` needs `team.read`. A console session carries no
378
+ * scopes: it may do both when it may read the whole project, and gets
379
+ * `403 user.permission_denied` otherwise.
344
380
  * @summary Query users
345
381
  */
346
382
  export const queryUsers = async (queryUsersBody: QueryUsersBody,
@@ -388,11 +424,11 @@ export const getGetUserByIDUrl = (userId: string,
388
424
  }
389
425
 
390
426
  /**
391
- * Returns a user by its id, with the attributes its schema defines.
427
+ * Returns a user by ID, with the attributes its schema defines.
392
428
  *
393
- * With `team_id`, the user is returned only while they are an active member of
394
- * that team.
395
- * @summary Get user by ID
429
+ * With `team_id`, the user is returned only while they are an active member
430
+ * of that team.
431
+ * @summary Get a user by ID
396
432
  */
397
433
  export const getUserByID = async (userId: string,
398
434
  params?: GetUserByIDParams, options?: Parameters<typeof customFetch>[1]): Promise<GetUserByID200> => {
@@ -421,7 +457,20 @@ export const getPatchUserByIDUrl = (userId: string,) => {
421
457
  * moves the user to another registered schema. The merged result is
422
458
  * validated against the schema before commit. Concurrent writes are
423
459
  * last-write-wins.
424
- * @summary Update user by ID
460
+ *
461
+ * To move the user, send `schema` with the `id` of a registered schema, as
462
+ * `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
463
+ *
464
+ * To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
465
+ * the same permission and answers the same status and `details` as the real
466
+ * request, and it changes nothing and emits no `user.updated`. The request
467
+ * itself is still recorded as `request.api`, like any other API call. A `200`
468
+ * holds for the moment of the check: a unique value that is free then can be
469
+ * taken before the real request, which then answers `409`.
470
+ *
471
+ * `dry_run` is a body field so that a server from before it refuses the
472
+ * request as malformed (`400 req.invalid`) instead of applying the patch.
473
+ * @summary Update a user by ID
425
474
  */
426
475
  export const patchUserByID = async (userId: string,
427
476
  patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchUserByID200> => {
@@ -469,7 +518,7 @@ export const getDeleteUserByIDUrl = (userId: string,) => {
469
518
  * in no project succeeds without changing anything. Deleting the last active
470
519
  * member of a project's owning team returns 409 `proj.last_owner` and changes
471
520
  * nothing.
472
- * @summary Delete user by ID
521
+ * @summary Delete a user by ID
473
522
  */
474
523
  export const deleteUserByID = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
475
524
 
@@ -501,8 +550,9 @@ export const getListUserIdentityLinksUrl = (userId: string,
501
550
  }
502
551
 
503
552
  /**
504
- * The identity provider accounts a sign-in linked to the user, oldest first.
505
- * The provider's subject and claims are never returned.
553
+ * Lists the identity provider accounts a sign-in linked to the user, oldest
554
+ * first. The provider's subject and claims, the data it asserts about the
555
+ * account, are never returned.
506
556
  * @summary List the provider accounts linked to a user
507
557
  */
508
558
  export const listUserIdentityLinks = async (userId: string,
@@ -536,12 +586,13 @@ export const getListUserPasskeysUrl = (userId: string,
536
586
  }
537
587
 
538
588
  /**
539
- * Returns the passkeys registered for a user, newest first, paginated with a
540
- * cursor.
589
+ * Lists the passkeys registered for a user, newest first, paginated with a
590
+ * cursor. A passkey is a WebAuthn credential that signs a user in without a
591
+ * password.
541
592
  *
542
- * Each passkey carries its id, its name and when it was registered, never the
593
+ * Each passkey carries its ID, its name and when it was registered, never the
543
594
  * credential itself.
544
- * @summary List user passkeys
595
+ * @summary List a user's passkeys
545
596
  */
546
597
  export const listUserPasskeys = async (userId: string,
547
598
  params?: ListUserPasskeysParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserPasskeys200> => {
@@ -567,11 +618,15 @@ export const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {
567
618
 
568
619
  /**
569
620
  * Starts a WebAuthn registration ceremony for the user and returns the
570
- * creation options for `navigator.credentials.create()`. Complete the
571
- * ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
572
- * five minutes. Credentials already registered for the user are excluded
573
- * automatically.
574
- * @summary Begin passkey registration
621
+ * creation options for `navigator.credentials.create()`. A passkey is
622
+ * registered in two steps: this one returns options for the browser, and
623
+ * `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
624
+ *
625
+ * Complete the ceremony with
626
+ * `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
627
+ * minutes, using the `registration_id` this response returns. Credentials
628
+ * already registered for the user are excluded automatically.
629
+ * @summary Begin a passkey registration
575
630
  */
576
631
  export const beginUserPasskeyRegistration = async (userId: string,
577
632
  beginUserPasskeyRegistrationBody: BeginUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<BeginUserPasskeyRegistration201> => {
@@ -611,13 +666,16 @@ export const getFinishUserPasskeyRegistrationUrl = (userId: string,
611
666
  }
612
667
 
613
668
  /**
614
- * Verifies the attestation against the ceremony started by
615
- * `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
616
- * rejected attestation counts against the ceremony's failure budget and the
617
- * ceremony stays open for a retry. An expired ceremony surfaces as
618
- * `att.stale_challenge`; an unknown or already-consumed registration id
619
- * surfaces as `att.not_found`.
620
- * @summary Finish passkey registration
669
+ * Verifies the attestation against the registration ceremony and stores
670
+ * the new passkey for the user. `registration_id` is the one that
671
+ * `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
672
+ * returned when it started the ceremony. The attestation is
673
+ * the browser's answer from `navigator.credentials.create()`.
674
+ *
675
+ * A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers
676
+ * `att.stale_challenge`: begin a new registration. An unknown or
677
+ * already-consumed registration ID answers `att.not_found`.
678
+ * @summary Finish a passkey registration
621
679
  */
622
680
  export const finishUserPasskeyRegistration = async (userId: string,
623
681
  registrationId: string,
@@ -657,10 +715,10 @@ export const getGetUserPasswordStateUrl = (userId: string,) => {
657
715
  }
658
716
 
659
717
  /**
660
- * Reports when the user's current password was set, and leaves `set_at` out
718
+ * Returns when the user's current password was set, and leaves `set_at` out
661
719
  * when the user has none. The password and its hash are never returned;
662
- * setting one is `PUT` on the same path.
663
- * @summary Get user password state
720
+ * `setUserPassword` (`PUT` on the same path) sets one.
721
+ * @summary Get a user's password state
664
722
  */
665
723
  export const getUserPasswordState = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetUserPasswordState200> => {
666
724
 
@@ -688,8 +746,28 @@ export const getSetUserPasswordUrl = (userId: string,) => {
688
746
  * policy.
689
747
  *
690
748
  * The new password replaces the current one, and setting it emits
691
- * `auth.factor.password.set`.
692
- * @summary Set user password
749
+ * `auth.factor.password.set`. A password the project's password policy
750
+ * refuses answers `user.password_policy_violation`; send one that meets the
751
+ * policy.
752
+ *
753
+ * The password policy is the one in the release that serves the caller's
754
+ * `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a
755
+ * preview URL gets that preview's policy, and one on a primary origin the
756
+ * newest primary deployment's. A request with no `Origin`, or from the
757
+ * console when the project does not list the console's origin, gets the
758
+ * project's newest primary deployment.
759
+ *
760
+ * If the request is refused:
761
+ * - `403 proj.origin_not_allowed`: the project admits no such origin. Add it
762
+ * with `zitadel origin add`.
763
+ * - `403 proj.preview_not_live`: the origin matches a preview pattern but has
764
+ * no live preview. Run `zitadel preview` on the branch.
765
+ * - `409 rel.not_deployed`: nothing is deployed to the origin. Run
766
+ * `zitadel deploy`.
767
+ * - `409 rel.no_default`: the request names no origin and the project has no
768
+ * primary deployment. Run `zitadel deploy`.
769
+ * - `409 rel.revoked`: the release that serves the origin is revoked.
770
+ * @summary Set a user's password
693
771
  */
694
772
  export const setUserPassword = async (userId: string,
695
773
  setUserPasswordBody: SetUserPasswordBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
@@ -736,13 +814,14 @@ export const getListUserTeamsUrl = (userId: string,
736
814
  }
737
815
 
738
816
  /**
739
- * The user's team roster, ordered by team name. Each entry carries the
740
- * team's name, so a client renders a page without resolving ids one by one.
741
- *
742
- * This is the N:N roster and it is not lifecycle ownership: the single team
743
- * that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
744
- * on the user read endpoints. Memberships the user was removed from are not
745
- * returned.
817
+ * Lists the teams a user belongs to, ordered by team name. Each entry carries
818
+ * the team's name, so a client renders a page without resolving IDs one by
819
+ * one.
820
+ *
821
+ * This is the user's team memberships, not lifecycle ownership: the single
822
+ * team that owns the user's lifecycle is reported as
823
+ * `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships
824
+ * the user was removed from are not returned.
746
825
  * @summary List the teams a user belongs to
747
826
  */
748
827
  export const listUserTeams = async (userId: string,
@@ -865,8 +944,9 @@ export const getListMyIdentityLinksUrl = (params?: ListMyIdentityLinksParams,) =
865
944
  }
866
945
 
867
946
  /**
868
- * The identity provider accounts a sign-in linked to the signed-in user,
869
- * oldest first. The provider's subject and claims are never returned.
947
+ * Lists the identity provider accounts a sign-in linked to the signed-in user,
948
+ * oldest first. The provider's subject and claims, the data it asserts about
949
+ * the account, are never returned.
870
950
  *
871
951
  * With `project_id`, the links are listed only when the session belongs to
872
952
  * that project.
@@ -901,9 +981,10 @@ export const getListMyPasskeysUrl = (params?: ListMyPasskeysParams,) => {
901
981
  }
902
982
 
903
983
  /**
904
- * The signed-in user's own passkeys, newest first, paginated with a cursor.
905
- * Each passkey carries its id, its name and when it was registered, never the
906
- * credential itself.
984
+ * Lists the signed-in user's own passkeys, newest first, paginated with a
985
+ * cursor. A passkey is a WebAuthn credential that signs a user in without a
986
+ * password. Each passkey carries its ID, its name and when it was registered,
987
+ * never the credential itself.
907
988
  *
908
989
  * With `project_id`, the passkeys are listed only when the session belongs to
909
990
  * that project.
@@ -938,7 +1019,7 @@ export const getGetMyPasswordStateUrl = (params?: GetMyPasswordStateParams,) =>
938
1019
  }
939
1020
 
940
1021
  /**
941
- * Reports when the signed-in user's current password was set, and leaves
1022
+ * Returns when the signed-in user's current password was set, and leaves
942
1023
  * `set_at` out when they have none. The password and its hash are never
943
1024
  * returned.
944
1025
  *
@@ -975,12 +1056,13 @@ export const getListMyProjectsUrl = (params?: ListMyProjectsParams,) => {
975
1056
  }
976
1057
 
977
1058
  /**
978
- * The projects the signed-in user can act on: those they hold an active grant
979
- * on, either directly or through a team they are a member of. For a platform
980
- * operator (ADR 075) that is every project of the deployment. Ordered by
981
- * project id and paged with an opaque cursor.
1059
+ * Lists the projects the signed-in user can act on: those they hold an active
1060
+ * grant on, either directly or through a team they are a member of. For a
1061
+ * platform operator, someone who runs the deployment, that is every project of
1062
+ * the deployment. Ordered by project ID unless `order` asks for creation
1063
+ * time, and paged with an opaque cursor.
982
1064
  *
983
- * This is not the same question as `queryProjects`, which answers with the one
1065
+ * This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one
984
1066
  * project the calling credential is bound to. Here the session is the caller
985
1067
  * and the grants are the answer, so the list spans projects.
986
1068
  *
@@ -1023,7 +1105,7 @@ export const getGetMyUserSchemaUrl = (params?: GetMyUserSchemaParams,) => {
1023
1105
  }
1024
1106
 
1025
1107
  /**
1026
- * The schema the signed-in user's own record is validated against.
1108
+ * Returns the schema that validates the signed-in user's own record.
1027
1109
  *
1028
1110
  * With `project_id`, the schema is returned only when the session belongs to
1029
1111
  * that project.
@@ -1058,7 +1140,7 @@ export const getListMyTeamsUrl = (params?: ListMyTeamsParams,) => {
1058
1140
  }
1059
1141
 
1060
1142
  /**
1061
- * The signed-in user's own team roster, ordered by team name.
1143
+ * Lists the teams the signed-in user belongs to, ordered by team name.
1062
1144
  *
1063
1145
  * With `project_id`, the teams are listed only when the session belongs to
1064
1146
  * that project.
@@ -1086,34 +1168,56 @@ export const getCreateFlowUrl = () => {
1086
1168
  }
1087
1169
 
1088
1170
  /**
1089
- * Resolves a flow definition based on purpose + audience context and returns
1090
- * the first capability step. Creates a new session implicitly unless
1091
- * `session_id` is provided, together with that session's `session_token`
1092
- * (for step-up / reauth on an existing session).
1093
- *
1094
- * The browser `Origin` header selects which deployment serves this attempt:
1095
- * the gate admits the origin against the project's origin patterns and live
1096
- * previews, the newest deployment to that exact origin is the target, and
1097
- * that deployment's release supplies flow definitions, user schemas and
1098
- * branding. The resolved deployment is sealed into the `_zflow` cookie so
1099
- * later steps keep the same configuration. An origin that matches no pattern
1100
- * answers `403` with `proj.origin_not_allowed`; one that matches a preview
1101
- * pattern with no live preview answers `403` with `proj.preview_not_live`;
1102
- * nothing deployed to the target answers `409` with `rel.not_deployed`; a
1103
- * revoked release answers `409` with `rel.revoked`. A request with no
1104
- * `Origin` passes the gate and still needs a deployment target. A loopback
1105
- * origin passes it too, and so does the server's own origin, from which its
1106
- * console previews a project's login; a step submitted from the server's
1107
- * own origin is still refused unless the project lists it.
1108
- *
1109
- * The response contains an `id` field — the flow handle. Use it as the path
1171
+ * Starts a flow: resolves a flow definition from the request's purpose and
1172
+ * audience, and returns the first step.
1173
+ *
1174
+ * The flow endpoints are the runtime calls the login component
1175
+ * (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
1176
+ * step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to
1177
+ * get the next step. This call creates a new session implicitly, unless
1178
+ * `session_id` is provided together with that session's `session_token`
1179
+ * (for step-up or reauthentication on an existing session).
1180
+ *
1181
+ * The browser `Origin` header selects which deployment serves this attempt.
1182
+ * The server checks the origin against the project's origin patterns and live
1183
+ * previews, and the deployment that origin serves is the target: the
1184
+ * project's newest primary deployment when it names a primary origin, or the
1185
+ * newest live deployment to a preview URL. A
1186
+ * deployment is a release, the immutable bundle of the project's
1187
+ * configuration, made live at an origin. The deployment's release supplies
1188
+ * flow definitions, user schemas and branding. The resolved deployment is
1189
+ * sealed into the `_zflow` cookie so later steps keep the same
1190
+ * configuration.
1191
+ *
1192
+ * - An origin that matches no pattern answers `403` with
1193
+ * `proj.origin_not_allowed`, including when the project lists no origins.
1194
+ * Add the origin with `zitadel origin add`.
1195
+ * - An origin that matches a preview pattern with no live preview answers
1196
+ * `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.
1197
+ * - Nothing deployed to a listed origin or a live preview answers `409`
1198
+ * with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added
1199
+ * since the last deploy serves nothing until the next one.
1200
+ * - A loopback origin the project does not list answers `409` with
1201
+ * `rel.not_deployed` too, as no deployment can name it. Add it with
1202
+ * `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.
1203
+ * - A revoked release answers `409` with `rel.revoked`.
1204
+ *
1205
+ * A request with no `Origin` passes the check, and so does the server's own
1206
+ * origin, from which its console previews a project's login. Both are served
1207
+ * the project's newest primary deployment unless the project lists that
1208
+ * origin; with no primary deployment they answer `409` with
1209
+ * `rel.no_default`. A loopback origin passes the check and is its own
1210
+ * target. A step submitted from the server's own origin is still refused
1211
+ * unless the project lists it.
1212
+ *
1213
+ * The response contains an `id` field, the flow handle. Use it as the path
1110
1214
  * parameter for all subsequent `/flow/{id}/submit` calls.
1111
1215
  *
1112
1216
  * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
1113
1217
  * the flow's orchestration state (current step, collected data, history).
1114
- * The server is stateless between requests — all flow state lives in this
1218
+ * The server is stateless between requests: all flow state lives in this
1115
1219
  * cookie. The browser sends it automatically on subsequent requests.
1116
- * @summary Start a new flow
1220
+ * @summary Start a flow
1117
1221
  */
1118
1222
  export const createFlow = async (createFlowBody: CreateFlowBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlow201> => {
1119
1223
 
@@ -1151,13 +1255,17 @@ export const getGetFlowStepUrl = (id: string,) => {
1151
1255
  }
1152
1256
 
1153
1257
  /**
1154
- * Returns the current capability step without advancing the state machine.
1155
- * Useful for page reloads or re-rendering after a network error.
1258
+ * Returns the current step of a flow without advancing it. Use it to render
1259
+ * the step again after a page reload or a network error.
1260
+ *
1261
+ * The flow endpoints are the runtime calls the login component
1262
+ * (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and
1263
+ * `submitFlowStep` (`POST /flow/{id}/submit`) advances it.
1156
1264
  *
1157
1265
  * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
1158
1266
  * re-resolve from `Origin`. If that release was revoked since the attempt
1159
1267
  * started, the response is `409` with `rel.revoked`.
1160
- * @summary Get current step (re-render)
1268
+ * @summary Get the current step of a flow
1161
1269
  */
1162
1270
  export const getFlowStep = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowStep200> => {
1163
1271
 
@@ -1181,12 +1289,14 @@ export const getSubmitFlowStepUrl = (id: string,) => {
1181
1289
  }
1182
1290
 
1183
1291
  /**
1184
- * Submits user input for the current step. The server validates,
1185
- * processes (e.g., verifies a credential), advances the state machine
1186
- * through any invisible steps, and returns the next visible step.
1292
+ * Submits the user's input for the current step of a flow. The server
1293
+ * validates it, processes it (for example, verifies a credential), advances
1294
+ * the flow through any invisible steps, and returns the next visible step.
1295
+ * The flow endpoints are the runtime calls the login component
1296
+ * (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.
1187
1297
  *
1188
1298
  * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
1189
- * with the new flow state. The server is stateless — all orchestration
1299
+ * with the new flow state. The server is stateless: all orchestration
1190
1300
  * state is carried in this cookie between requests.
1191
1301
  *
1192
1302
  * **Important:** The `id` in the response may differ from the `id` used in
@@ -1202,17 +1312,17 @@ export const getSubmitFlowStepUrl = (id: string,) => {
1202
1312
  * | `behavior` | Action |
1203
1313
  * |------------- |------------------------------------------------------------|
1204
1314
  * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
1205
- * | `show` | Render the step as a success screen (e.g., registration). |
1315
+ * | `show` | Render the step as a success screen, such as registration. |
1206
1316
  *
1207
1317
  * A `complete` step is only returned when the **entire flow stack** is done.
1208
- * If a stacked flow (e.g., recovery pivoted from login) finishes, the server
1209
- * auto-pops to the parent flow and returns the parent's next step — the
1210
- * frontend never sees a `complete` for intermediate flows.
1318
+ * If a stacked flow (for example, recovery pivoted from login) finishes, the
1319
+ * server auto-pops to the parent flow and returns the parent's next step.
1320
+ * The frontend never sees a `complete` for intermediate flows.
1211
1321
  *
1212
1322
  * ## External sign-in
1213
1323
  *
1214
1324
  * `{action: "sso", sso_provider_id, return_target}` on a step that offers
1215
- * `sso_providers` returns the engine-emitted `sso-redirect` step, whose
1325
+ * `sso_providers` returns the server-emitted `sso-redirect` step, whose
1216
1326
  * `redirect_url` the frontend navigates to.
1217
1327
  *
1218
1328
  * - The flow state does not change, but `_zflow` is re-sealed like on
@@ -1225,15 +1335,16 @@ export const getSubmitFlowStepUrl = (id: string,) => {
1225
1335
  * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
1226
1336
  * `__Host-` prefix is dropped because it requires `Secure`.
1227
1337
  *
1228
- * A connection whose `client_id` is a `${{ NAME }}` reference has it filled
1229
- * from the project's variables. A provider the engine cannot start a
1230
- * sign-in with, including a reference with no variable behind it,
1231
- * re-renders the step with `error.sso_unavailable`.
1338
+ * An identity provider (an external sign-in such as Google) whose
1339
+ * `client_id` is a `${{ NAME }}` reference has it filled from the project's
1340
+ * variables. A provider the server cannot start a sign-in with, including a
1341
+ * reference with no variable behind it, re-renders the step with
1342
+ * `error.sso_unavailable`.
1232
1343
  *
1233
1344
  * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
1234
1345
  * re-resolve from `Origin`. If that release was revoked since the attempt
1235
1346
  * started, the response is `409` with `rel.revoked`.
1236
- * @summary Submit step data and advance
1347
+ * @summary Submit a flow step
1237
1348
  */
1238
1349
  export const submitFlowStep = async (id: string,
1239
1350
  submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]): Promise<SubmitFlowStep200> => {
@@ -1272,20 +1383,36 @@ export const getCreateAuthAttemptUrl = () => {
1272
1383
  }
1273
1384
 
1274
1385
  /**
1275
- * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
1276
- *
1277
- * An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
1278
- * It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
1279
- *
1280
- * Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
1281
- * also include session_id and that session's session_token to add factors to an existing session.
1282
- *
1283
- * The project comes from the project secret. A body `project_id` that disagrees
1284
- * answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are
1285
- * filled only when create runs with a runtime resolution already on the
1286
- * context (the flow create path); this HTTP entry point does not resolve
1287
- * Origin or refuse a revoked release itself.
1288
- * @summary Create a new authentication attempt
1386
+ * Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.
1387
+ *
1388
+ * An authentication attempt collects the proofs for one sign-in and ends in a
1389
+ * handoff token. A handoff token is the short-lived, single-use credential that
1390
+ * a completed attempt hands to the session exchange. A client makes these calls
1391
+ * in order:
1392
+ *
1393
+ * 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
1394
+ * 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
1395
+ * `identifier`, `password` or `passkey`.
1396
+ * 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
1397
+ * credential, code or assertion. Repeat steps 2 and 3 until
1398
+ * `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
1399
+ * `required_factors` is verified.
1400
+ * 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
1401
+ * 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
1402
+ * for the session and its `session_token`.
1403
+ *
1404
+ * The body takes a `project_id` and a `challenge_nonce` (from
1405
+ * `POST /bootstrap/challenge`). For step-up authentication, which adds factors
1406
+ * to an existing session, also send that session's `session_id` and its
1407
+ * `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.
1408
+ * The attempt's `attempt_id` in the response is the ID every later call takes.
1409
+ *
1410
+ * The project comes from the project secret. A body `project_id` that names
1411
+ * another project answers `403` with `proj.mismatch`: send the credential's own
1412
+ * project. The attempt seals the project's newest primary deployment, whatever
1413
+ * the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a
1414
+ * revoked release answers `409` with `rel.revoked`.
1415
+ * @summary Create an authentication attempt
1289
1416
  */
1290
1417
  export const createAuthAttempt = async (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttempt201> => {
1291
1418
 
@@ -1323,14 +1450,14 @@ export const getGetAuthAttemptUrl = (attemptId: string,) => {
1323
1450
  }
1324
1451
 
1325
1452
  /**
1326
- * Polls the current state of an authentication attempt.
1453
+ * Returns the current state of an authentication attempt, one sign-in round.
1327
1454
  *
1328
- * Returns the attempt's state, available factors for the next challenge,
1329
- * challenges issued so far, and any errors preventing progress.
1455
+ * The response holds the attempt's state, available factors for the next
1456
+ * challenge, challenges issued so far, and any errors preventing progress.
1330
1457
  *
1331
- * Use this for polling during long-running factor verifications (e.g., waiting for
1332
- * a federated IdP callback or a device flow).
1333
- * @summary Get authentication attempt state
1458
+ * Use it to poll during long-running factor verifications, for example waiting
1459
+ * for a federated identity provider (IdP) callback or a device flow.
1460
+ * @summary Get an authentication attempt by ID
1334
1461
  */
1335
1462
  export const getAuthAttempt = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetAuthAttempt200> => {
1336
1463
 
@@ -1354,12 +1481,12 @@ export const getIssueChallengeUrl = (attemptId: string,) => {
1354
1481
  }
1355
1482
 
1356
1483
  /**
1357
- * Issues a single-factor verification challenge within an auth attempt.
1484
+ * Issues a challenge, a request to prove one factor, within an authentication attempt.
1358
1485
  *
1359
- * This advances the authentication state machine by requesting a specific factor method
1360
- * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
1361
- * including method, metadata, and any UI hints. The client then verifies the proof
1362
- * by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
1486
+ * A challenge names one factor method, such as password, passkey, TOTP or OTP
1487
+ * via SMS. The response carries the challenge's `challenge_id`, method,
1488
+ * metadata and any UI hints. The client then submits the proof with
1489
+ * `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
1363
1490
  * @summary Issue a factor challenge
1364
1491
  */
1365
1492
  export const issueChallenge = async (attemptId: string,
@@ -1400,17 +1527,22 @@ export const getVerifyChallengeProofUrl = (attemptId: string,
1400
1527
  }
1401
1528
 
1402
1529
  /**
1403
- * Submits a proof (credential, code, assertion) to verify a factor challenge.
1530
+ * Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.
1404
1531
  *
1405
1532
  * The proof format depends on the challenge method. For example:
1533
+ *
1406
1534
  * - `password` method: { password: "…" }
1407
1535
  * - `totp` method: { totp: { code: "123456" } }
1408
1536
  * - `passkey` method: { passkey: { assertion: "…" } }
1409
1537
  * - `recovery_code` method: { recovery_code: "…" }
1410
1538
  *
1411
- * On successful verification, the factor is written to the auth attempt.
1412
- * The attempt moves to the next pending challenge or completes if all required factors are verified.
1413
- * @summary Verify a factor proof
1539
+ * On success, the factor is recorded on the authentication attempt. The
1540
+ * attempt moves to the next pending challenge, or completes when every required
1541
+ * factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
1542
+ *
1543
+ * A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
1544
+ * again. There is no retry limit: you can retry until the attempt expires.
1545
+ * @summary Verify a challenge proof
1414
1546
  */
1415
1547
  export const verifyChallengeProof = async (attemptId: string,
1416
1548
  challengeId: string,
@@ -1450,19 +1582,24 @@ export const getCreateHandoffUrl = (attemptId: string,) => {
1450
1582
  }
1451
1583
 
1452
1584
  /**
1453
- * Completes the authentication attempt and mints a `handoff_token`.
1585
+ * Completes an authentication attempt and mints a `handoff_token`.
1586
+ *
1587
+ * A handoff token is the short-lived credential that a completed attempt hands
1588
+ * to the session exchange. Call this after every required factor is verified and
1589
+ * the attempt is in `completed` state. Otherwise it answers `409` with
1590
+ * `att.not_completed`: verify the remaining factors, then call again.
1454
1591
  *
1455
- * Call this after all required factors have been verified and the attempt is in `completed` state.
1456
- * The handoff token is short-lived (≤60 seconds) and must be exchanged at
1457
- * POST /sessions/exchange to receive the final session and session_token.
1592
+ * Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60
1593
+ * seconds to receive the session and its `session_token`. The handoff token is:
1458
1594
  *
1459
- * The handoff token is:
1460
- * - Single-use (atomic exchange, no retry)
1461
- * - Audience-bound (requires matching project key for exchange)
1462
- * - Idempotency-safe within a 5-minute window (see conventions)
1595
+ * - Single-use: exchange it once, with no retry.
1596
+ * - Bound to the project: the exchange needs the same project's credential.
1597
+ * - Created once: a second call answers `409 att.already_handed_off`, even
1598
+ * with the same idempotency key.
1463
1599
  *
1464
- * Revoke refusal for a sealed release happens at handoff exchange, not here.
1465
- * @summary Complete authentication and create handoff token
1600
+ * A revoked release is refused when the handoff is exchanged, not here. A
1601
+ * release is the configuration that `zitadel deploy` publishes.
1602
+ * @summary Complete an authentication attempt and create a handoff token
1466
1603
  */
1467
1604
  export const createHandoff = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateHandoff200> => {
1468
1605
 
@@ -1489,10 +1626,13 @@ export const getCreateProjectUrl = () => {
1489
1626
  * Creates a project and returns its project secret and preview secret, which no
1490
1627
  * other endpoint returns.
1491
1628
  *
1492
- * The request needs no credential and is rate-limited. Unless `seed_defaults` is
1493
- * `false`, the project starts with a default user schema and flow; the CLI turns
1494
- * that off and uploads its own from `.zitadel/`.
1495
- * @summary Create project
1629
+ * A project is the top-level boundary that holds users, sessions and
1630
+ * configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).
1631
+ *
1632
+ * The request needs no credential and is rate-limited. On `429`, wait and retry.
1633
+ * Unless `seed_defaults` is `false`, the project starts with a default user schema
1634
+ * and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.
1635
+ * @summary Create a project
1496
1636
  */
1497
1637
  export const createProject = async (createProjectBody: CreateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateProject201> => {
1498
1638
 
@@ -1533,9 +1673,9 @@ export const getQueryProjectsUrl = () => {
1533
1673
  * Returns the project the project secret belongs to, as a page of at most one
1534
1674
  * project.
1535
1675
  *
1536
- * A credential is scoped to one project until ADR 036 widens it, so the filters
1537
- * and sorting apply to that project alone. The projects a signed-in person can
1538
- * act on are listed by `GET /users/me/projects`.
1676
+ * A credential is scoped to one project today, so the filters and sorting
1677
+ * apply to that project alone. A signed-in person lists the projects they can
1678
+ * act on with `GET /users/me/projects`.
1539
1679
  * @summary Query projects
1540
1680
  */
1541
1681
  export const queryProjects = async (queryProjectsBody: QueryProjectsBody, options?: Parameters<typeof customFetch>[1]): Promise<QueryProjects200> => {
@@ -1574,8 +1714,12 @@ export const getGetProjectUrl = (projectId: string,) => {
1574
1714
  }
1575
1715
 
1576
1716
  /**
1577
- * Returns the current state of a project.
1578
- * @summary Get project
1717
+ * Returns a project's current state: its name, origins, password hashing
1718
+ * method and owning team.
1719
+ *
1720
+ * Authenticate with the project secret, or with the session of a signed-in
1721
+ * person who holds a grant on the project.
1722
+ * @summary Get a project by ID
1579
1723
  */
1580
1724
  export const getProject = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetProject200> => {
1581
1725
 
@@ -1599,8 +1743,16 @@ export const getPatchProjectUrl = (projectId: string,) => {
1599
1743
  }
1600
1744
 
1601
1745
  /**
1602
- * Updates the state of a project.
1603
- * @summary Update project
1746
+ * Updates a project's name or password hashing method.
1747
+ *
1748
+ * Fields you leave out keep their value. Sending `password_hash: null` drops
1749
+ * the project's own method and returns to the server default. A change of
1750
+ * method rewrites no stored password: each moves to the new method when its
1751
+ * owner next signs in or sets a new password.
1752
+ *
1753
+ * Authenticate with the project secret, or with the session of a signed-in
1754
+ * person who can act on the project.
1755
+ * @summary Update a project
1604
1756
  */
1605
1757
  export const patchProject = async (projectId: string,
1606
1758
  patchProjectBody: PatchProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchProject200> => {
@@ -1647,35 +1799,35 @@ export const getListProjectAdminsUrl = (projectId: string,
1647
1799
  }
1648
1800
 
1649
1801
  /**
1650
- * Lists the people who can administer the project, and how each of them
1651
- * gets that access. A person appears once, with one entry in `sources` per
1652
- * way they hold it:
1653
- *
1654
- * - `owning_team`: an active member of the team that owns the project
1655
- * (ADR 054 §2). Removing a grant does not remove this access; it ends
1656
- * only when the person leaves the team or the project changes owner.
1657
- * - `grant`: an unexpired `admin` grant on the project, either to the
1658
- * person (`grant_id` only) or to a team they are an active member of
1659
- * (`grant_id` and `team`). Revoking that grant removes this source.
1660
- *
1661
- * The list follows the authorization check: team membership is read from
1662
- * the same membership projection the check expands, so a person who left a
1663
- * team, or whose team or user was deactivated, is not listed through it.
1664
- * Grants that expired or carry a lower role are left out. A person whose
1665
- * only access is a `viewer` or `editor` grant is not an admin and is not
1666
- * listed. Like the check, the list does not look at a person's user status
1667
- * beyond that, so a direct grant to a suspended person is listed.
1802
+ * Lists the people who can administer a project, and how each of them
1803
+ * holds that access.
1804
+ *
1805
+ * A person appears once, with one entry in `sources` per way they hold it:
1806
+ *
1807
+ * - `owning_team`: an active member of the team that owns the project, the
1808
+ * team a claim attaches the project to. Removing a grant does not remove
1809
+ * this access. It ends only when the person leaves the team or the
1810
+ * project changes owner.
1811
+ * - `grant`: an unexpired `admin` grant on the project, which is a role
1812
+ * given to the person (`grant_id` only) or to a team they are an active
1813
+ * member of (`grant_id` and `team`). Revoking that grant removes this
1814
+ * source.
1815
+ *
1816
+ * The list follows the authorization check. A person who left a team, or
1817
+ * whose team or user was deactivated, is not listed through it. Grants that
1818
+ * expired or carry a lower role are left out. A person whose only access is a
1819
+ * `viewer` or `editor` grant is not an admin and is not listed. Like the
1820
+ * check, the list does not look at a person's user status beyond that, so a
1821
+ * direct grant to a suspended person is listed.
1668
1822
  *
1669
1823
  * A person whose access comes only through teams the caller is not a
1670
- * member of is left out, and a team the caller is not in is named by
1671
- * `team_id` only. The grant to such a team still shows in the project's
1672
- * grants.
1824
+ * member of is left out. A team the caller is not in is named by `team_id`
1825
+ * only. The grant to such a team still shows in the project's grants.
1673
1826
  *
1674
- * Ordered by `user_id` and paginated with `page_token`.
1675
- *
1676
- * Accepts either a project secret (`oauth2`) or a user-bound Console
1677
- * session cookie (`sessionCookie`) that can read the project.
1678
- * @summary List project admins
1827
+ * The list is ordered by `user_id` and paginated with `page_token`.
1828
+ * Authenticate with a project secret (`oauth2`), or with the session cookie
1829
+ * (`sessionCookie`) of a signed-in person who can read the project.
1830
+ * @summary List the admins of a project
1679
1831
  */
1680
1832
  export const listProjectAdmins = async (projectId: string,
1681
1833
  params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectAdmins200> => {
@@ -1700,11 +1852,22 @@ export const getInitClaimUrl = (projectId: string,) => {
1700
1852
  }
1701
1853
 
1702
1854
  /**
1703
- * Starts a claim challenge for an unclaimed project. Authenticated by the
1704
- * project secret, this mints a single-use, short-lived challenge and returns
1705
- * the `claim_url` the developer opens in a browser to complete the claim,
1706
- * together with the `challenge_id` the CLI polls with. The exact expiry is
1707
- * carried by `expires_at` on the response.
1855
+ * Starts a claim, which attaches a project created before sign-in to a
1856
+ * team, and returns the `claim_url` to open in a browser.
1857
+ *
1858
+ * A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)
1859
+ * so that the team's members administer it. This operation mints a
1860
+ * single-use, short-lived challenge for an unclaimed project. The developer
1861
+ * opens `claim_url`, signs in and completes the claim in the browser; see
1862
+ * `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
1863
+ * as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
1864
+ *
1865
+ * Authenticate with the project secret that `createProject` (`POST /projects`) returns as
1866
+ * `project_secret`.
1867
+ *
1868
+ * A `409` means a team already claimed the project, and its details name
1869
+ * that team. A `410` means the project's 14-day claim window has closed,
1870
+ * which is final.
1708
1871
  * @summary Initialize a project claim
1709
1872
  */
1710
1873
  export const initClaim = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<InitClaim201> => {
@@ -1737,15 +1900,23 @@ export const getGetClaimStatusUrl = (projectId: string,
1737
1900
  }
1738
1901
 
1739
1902
  /**
1740
- * Polled by the CLI while a browser completes the claim. Authorized by the
1741
- * project secret that initiated the challenge. Returns `pending`, or
1742
- * `completed` with the owning team, the claim timestamp, and the dashboard
1743
- * URL once the project is claimed. The claim grant, not the polled
1744
- * challenge, is the source of truth: a project claimed through another
1745
- * concurrent challenge also reports `completed`, and a completed claim
1746
- * keeps reporting `completed` past this challenge's expiry and past the
1747
- * project's claim window.
1748
- * @summary Get claim status
1903
+ * Returns the status of a claim challenge, `pending` or `completed`, while a
1904
+ * browser completes the claim.
1905
+ *
1906
+ * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
1907
+ * `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
1908
+ * Once the project is claimed, the response is `completed` with the owning
1909
+ * team, the claim timestamp and the dashboard URL.
1910
+ *
1911
+ * The claim itself, not the polled challenge, decides the status. A project
1912
+ * claimed through another concurrent challenge also reports `completed`. A
1913
+ * completed claim keeps reporting `completed` past this challenge's expiry
1914
+ * and past the project's claim window.
1915
+ *
1916
+ * Pass the `challenge_id` that `initClaim` returns. Authenticate with the
1917
+ * project secret that started the challenge. On `410` with `proj.claim_expired`, call
1918
+ * `initClaim` again for a fresh challenge.
1919
+ * @summary Get the status of a project claim
1749
1920
  */
1750
1921
  export const getClaimStatus = async (projectId: string,
1751
1922
  params: GetClaimStatusParams, options?: Parameters<typeof customFetch>[1]): Promise<GetClaimStatus200> => {
@@ -1770,10 +1941,18 @@ export const getCompleteClaimUrl = (projectId: string,) => {
1770
1941
  }
1771
1942
 
1772
1943
  /**
1773
- * Called by the browser after the developer authenticates on the claim page.
1774
- * Authenticated by the session cookie, it attaches the project to
1775
- * the developer's personal team using the `challenge_id` from the claim URL as
1776
- * its single-use, browser-safe authorization.
1944
+ * Completes a claim by attaching the project to the signed-in developer's
1945
+ * personal team.
1946
+ *
1947
+ * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
1948
+ * so that the team's members administer it. The claim page in the browser
1949
+ * calls this operation after the developer signs in, with the session cookie.
1950
+ * The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the
1951
+ * request's single-use, browser-safe authorization.
1952
+ *
1953
+ * Claims are first-claim-wins and spend the challenge. If a team already
1954
+ * claimed the project, the request answers `409`. If the challenge lapsed
1955
+ * (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.
1777
1956
  * @summary Complete a project claim
1778
1957
  */
1779
1958
  export const completeClaim = async (projectId: string,
@@ -1821,12 +2000,18 @@ export const getGetClaimWindowUrl = (projectId: string,
1821
2000
  }
1822
2001
 
1823
2002
  /**
1824
- * Read by the claim page in the browser to show how long is left to claim the
1825
- * project. Unauthenticated by design: the claim page runs this before the
1826
- * developer has signed in, and holding the `challenge_id` from the claim URL
1827
- * is the authorization — the same capability `claim/complete` accepts. It
1828
- * reveals only the window, never the project itself, and unlike
1829
- * `claim/complete` it spends nothing, so a reload is free.
2003
+ * Returns when a project's claim window closes and whether it has already
2004
+ * closed.
2005
+ *
2006
+ * The claim window is the 14 days after a project is created during which a
2007
+ * team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page
2008
+ * in the browser calls this operation to show how long is left.
2009
+ *
2010
+ * The request needs no credential, because the claim page calls it before the
2011
+ * developer has signed in. Holding the `challenge_id` from the claim URL that
2012
+ * `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)
2013
+ * accepts. The response reveals only the window, never the project itself.
2014
+ * Unlike `completeClaim` it spends nothing, so reloading the page is safe.
1830
2015
  * @summary Get the claim window for a project
1831
2016
  */
1832
2017
  export const getClaimWindow = async (projectId: string,
@@ -1852,10 +2037,22 @@ export const getAddOriginUrl = (projectId: string,) => {
1852
2037
  }
1853
2038
 
1854
2039
  /**
1855
- * Adds one `{pattern, kind}` to the project's origins. A primary pattern
1856
- * must be an exact URL (no wildcard). Preview patterns may include a single
1857
- * DNS-label wildcard. Adding a pattern that already exists with the same
1858
- * kind is idempotent and answers 201 with the stored origin.
2040
+ * Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.
2041
+ *
2042
+ * An origin pattern says which web origins the project accepts. A `primary`
2043
+ * pattern must be an exact URL with no wildcard. A `preview` pattern may
2044
+ * include a single DNS-label wildcard.
2045
+ *
2046
+ * While the project has no patterns, it admits no origin except a loopback
2047
+ * origin, so the first pattern you add opens it to the origins that
2048
+ * pattern matches. Admitting an origin is not serving it: a new `primary`
2049
+ * origin answers `rel.not_deployed` until the next deploy to primary
2050
+ * (`zitadel deploy`).
2051
+ *
2052
+ * Adding a pattern that already exists with the same kind is idempotent and
2053
+ * answers `201` with the stored origin. If the pattern exists with the other
2054
+ * kind, the request is refused with `origin.kind_conflict`: remove it with
2055
+ * `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
1859
2056
  * @summary Add an origin pattern
1860
2057
  */
1861
2058
  export const addOrigin = async (projectId: string,
@@ -1895,10 +2092,15 @@ export const getRemoveOriginUrl = (projectId: string,) => {
1895
2092
  }
1896
2093
 
1897
2094
  /**
1898
- * Removes one pattern from the project's origins. Requests from URLs only
1899
- * that pattern admitted are refused from then on; live previews and
1900
- * deployment history are untouched. Removing a pattern that is already
1901
- * absent is idempotent and answers 204.
2095
+ * Removes one origin pattern from the project's origins.
2096
+ *
2097
+ * Requests from URLs only that pattern admitted are refused from then on.
2098
+ * Live previews and deployment history are untouched. Removing the last
2099
+ * pattern leaves an empty list, which admits no origin except a loopback
2100
+ * origin.
2101
+ * Removing a pattern that is already absent is idempotent and answers `204`.
2102
+ *
2103
+ * The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.
1902
2104
  * @summary Remove an origin pattern
1903
2105
  */
1904
2106
  export const removeOrigin = async (projectId: string,
@@ -1946,10 +2148,12 @@ export const getListPreviewsUrl = (projectId: string,
1946
2148
  }
1947
2149
 
1948
2150
  /**
1949
- * Lists the project's live previews, newest first by `created_at`. An
1950
- * expired or removed preview is not listed; what was deployed to it stays
2151
+ * Lists the project's live previews, newest first by `created_at`.
2152
+ *
2153
+ * A preview is a URL with a deployment on it, served until it expires.
2154
+ * An expired or removed preview is not listed. What was deployed to it stays
1951
2155
  * in `GET /deployments`.
1952
- * @summary List previews
2156
+ * @summary List a project's previews
1953
2157
  */
1954
2158
  export const listPreviews = async (projectId: string,
1955
2159
  params?: ListPreviewsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPreviews200> => {
@@ -1975,14 +2179,14 @@ export const getRemovePreviewUrl = (projectId: string,) => {
1975
2179
 
1976
2180
  /**
1977
2181
  * Ends a preview before it expires: the URL stops being served at once.
1978
- * The deployments to it stay in the history.
1979
2182
  *
1980
- * Idempotent: a URL with no live preview, including one that has already
1981
- * expired or was removed before, answers `204` too, so a cleanup that
1982
- * races the expiry still succeeds.
2183
+ * The deployments to it stay in the history. The call is idempotent.
2184
+ * A URL with no live preview answers `204` too. That includes one that
2185
+ * expired or was removed before, so a cleanup that races the expiry still
2186
+ * succeeds.
1983
2187
  *
1984
2188
  * The URL travels in the body rather than the path because an origin
1985
- * contains `/`.
2189
+ * contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
1986
2190
  * @summary Remove a preview
1987
2191
  */
1988
2192
  export const removePreview = async (projectId: string,
@@ -2022,29 +2226,36 @@ export const getCreateSessionUrl = () => {
2022
2226
  }
2023
2227
 
2024
2228
  /**
2025
- * Creates an anonymous session shell with no user and no factors (`state: building`).
2229
+ * Creates an anonymous session with no user and no factors (`state: building`).
2230
+ *
2231
+ * A session is the durable record of a signed-in user. This call is optional: an
2232
+ * authentication attempt creates a session implicitly if none is provided.
2233
+ * Create one explicitly when you want to:
2026
2234
  *
2027
- * This is optional — an `auth_attempt` will create a session implicitly if none is provided.
2028
- * Use this explicitly when you want to:
2029
- * - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
2235
+ * - Pre-allocate a `session_id` before the user is known, so device and telemetry signals
2030
2236
  * can be correlated with the eventual authenticated session from the start.
2031
2237
  * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
2032
2238
  *
2033
- * Creating a session is an app-plane operation on the project credential
2034
- * (`session.write`). The returned `session_token` is a session credential for the
2035
- * end-user client, not a management scope: it is delivered as the
2036
- * `__Host-zitadel_session` cookie (`zitadel_session` over plain http to a
2037
- * loopback host) and authorises the self-service operations
2038
- * `GET /sessions/me` and `DELETE /sessions/me` (`sessionCookie` scheme). The
2039
- * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
2040
- * are operator endpoints and require `session.read` / `session.delete` instead.
2041
- *
2042
- * The `session_token` is superseded when a handoff exchange completes — clients must
2043
- * replace it at that point.
2044
- *
2045
- * Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
2046
- * full session TTL when the first authentication factor is written via a completing `auth_attempt`.
2047
- * @summary Create an anonymous session shell
2239
+ * The session belongs to the project of the project secret. A `project_id` that
2240
+ * names another project answers `403` with `proj.mismatch` and creates nothing:
2241
+ * send the credential's own project.
2242
+ *
2243
+ * Creating a session runs on the project credential (`session.write`). The returned
2244
+ * `session_token` is a session credential for the end-user client, not a
2245
+ * management scope. It is delivered as the `__Host-zitadel_session` cookie
2246
+ * (`zitadel_session` over plain http to a loopback host) and authorises the
2247
+ * self-service operations `GET /sessions/me` and `DELETE /sessions/me`
2248
+ * (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`
2249
+ * and `DELETE /sessions/{session_id}` are operator endpoints and require
2250
+ * `session.read` / `session.delete` instead.
2251
+ *
2252
+ * The `session_token` is superseded when a handoff exchange completes. Clients
2253
+ * must replace it at that point.
2254
+ *
2255
+ * Anonymous sessions expire after 10 minutes. The lifetime resets to the
2256
+ * configured full session lifetime when a completing authentication attempt
2257
+ * writes the first authentication factor.
2258
+ * @summary Create an anonymous session
2048
2259
  */
2049
2260
  export const createSession = async (createSessionBody: CreateSessionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateSession201> => {
2050
2261
 
@@ -2089,9 +2300,10 @@ export const getQuerySessionsUrl = (params: QuerySessionsParams,) => {
2089
2300
  }
2090
2301
 
2091
2302
  /**
2092
- * Returns the sessions of a project, paginated with a cursor.
2303
+ * Returns a page of a project's sessions.
2304
+ *
2093
2305
  * Sessions of every lifecycle state are returned; each carries its `state`.
2094
- * Requires `session.read` permission.
2306
+ * Requires the `session.read` scope.
2095
2307
  * @summary Query sessions
2096
2308
  */
2097
2309
  export const querySessions = async (querySessionsBody: QuerySessionsBody,
@@ -2138,31 +2350,38 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {
2138
2350
  }
2139
2351
 
2140
2352
  /**
2141
- * Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
2142
- * and returns the resulting session and a `session_token`.
2353
+ * Exchanges a handoff token for a session and a `session_token`.
2354
+ *
2355
+ * A handoff token is the short-lived, single-use credential that
2356
+ * `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
2357
+ * complete. This call consumes it. It is the last step of the sign-in sequence:
2358
+ * create the attempt, issue a challenge, verify the proof, create the handoff,
2359
+ * exchange it.
2143
2360
  *
2144
- * The server resolves the originating `auth_attempt` from the token and then:
2361
+ * The server resolves the originating authentication attempt from the token and then:
2145
2362
  *
2146
- * | Originating auth_attempt | Outcome |
2363
+ * | Originating authentication attempt | Outcome |
2147
2364
  * |---|---|
2148
2365
  * | No `session_id` | A new authenticated session is **created**. |
2149
- * | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
2150
- * | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
2366
+ * | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |
2367
+ * | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |
2151
2368
  *
2152
2369
  * The response shape is identical in all three cases.
2153
2370
  *
2154
- * The `session_token` supersedes any previously issued `session_token` for the same session.
2155
- * Clients must replace their stored token at this point.
2371
+ * The `session_token` supersedes any previously issued `session_token` for the
2372
+ * same session. Clients must replace their stored token at this point.
2156
2373
  *
2157
- * Requires a project service key (OAuth2 client credentials).
2374
+ * Requires a project service key (OAuth2 client credentials). The project comes
2375
+ * from the project secret. A query `project_id` that disagrees answers `403`
2376
+ * with `proj.mismatch`.
2158
2377
  *
2159
- * The project comes from the project secret. A query `project_id` that
2160
- * disagrees answers `403` with `proj.mismatch`. The exchange resolves a
2161
- * deployment the same way as other runtime operations; with no browser
2162
- * `Origin` and nothing deployed to the resolved target the response is
2163
- * `409` with `rel.not_deployed`. A revoked release answers `409` with
2164
- * `rel.revoked`.
2165
- * @summary Exchange handoff token for a session
2378
+ * The exchange resolves a deployment the same way as other runtime operations.
2379
+ * A deployment makes a release live, and a release is the configuration that
2380
+ * `zitadel deploy` publishes. With no browser `Origin` and
2381
+ * nothing deployed to the resolved target, the response is `409` with
2382
+ * `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release
2383
+ * answers `409` with `rel.revoked`.
2384
+ * @summary Exchange a handoff token for a session
2166
2385
  */
2167
2386
  export const exchangeHandoff = async (exchangeHandoffBody: ExchangeHandoffBody,
2168
2387
  params: ExchangeHandoffParams, options?: Parameters<typeof customFetch>[1]): Promise<ExchangeHandoff200> => {
@@ -2201,13 +2420,14 @@ export const getGetSessionUrl = (sessionId: string,) => {
2201
2420
  }
2202
2421
 
2203
2422
  /**
2204
- * Returns the current state of a session including its factors and all currently
2205
- * satisfied assurance levels.
2206
- *
2207
- * `assurance_levels[]` may shrink over time as factor freshness windows expire,
2208
- * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
2209
- * against the same `session_id`) to restore a dropped assurance level.
2210
- * @summary Get session state
2423
+ * Returns the current state of a session, including its factors and all currently satisfied assurance levels.
2424
+ *
2425
+ * An assurance level is a profile, such as `urn:nist:aal:2`, that the
2426
+ * session's verified factors satisfy. `assurance_levels[]` may shrink over time
2427
+ * as factor freshness windows expire, without the session itself expiring.
2428
+ * To restore a dropped level, use step-up authentication: create an
2429
+ * authentication attempt with the same `session_id`.
2430
+ * @summary Get a session by ID
2211
2431
  */
2212
2432
  export const getSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetSession200> => {
2213
2433
 
@@ -2231,16 +2451,17 @@ export const getRevokeSessionUrl = (sessionId: string,) => {
2231
2451
  }
2232
2452
 
2233
2453
  /**
2234
- * Permanently deletes the session, terminating it immediately.
2454
+ * Revokes a session by deleting it, immediately and for good. A later
2455
+ * `getSession` (`GET /sessions/{session_id}`) for it answers `404`.
2235
2456
  *
2236
- * This is the operator revoke path and requires the `session.delete` scope on a
2237
- * project-bound credential. End-user logout with the session cookie is
2457
+ * This is the operator revoke path. It requires the `session.delete` scope on a
2458
+ * project-bound credential. End-user sign-out with the session cookie is
2238
2459
  * `DELETE /sessions/me` (`sessionCookie` scheme).
2239
2460
  *
2240
- * Idempotent: deleting a session that does not exist (or was already deleted)
2241
- * still returns 204. After deletion, any tokens derived from the session are
2461
+ * Idempotent: revoking a session that does not exist, or was already revoked,
2462
+ * still returns `204`. After revocation, any tokens derived from the session are
2242
2463
  * invalidated.
2243
- * @summary Revoke session
2464
+ * @summary Revoke a session
2244
2465
  */
2245
2466
  export const revokeSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
2246
2467
 
@@ -2271,15 +2492,16 @@ export const getGetMySessionUrl = (params?: GetMySessionParams,) => {
2271
2492
  }
2272
2493
 
2273
2494
  /**
2274
- * Returns the current state of the current session including its factors and all currently
2275
- * satisfied assurance levels.
2495
+ * Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
2276
2496
  *
2277
2497
  * With `project_id`, the session is returned only when it belongs to that project.
2278
2498
  *
2279
- * `assurance_levels[]` may shrink over time as factor freshness windows expire,
2280
- * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
2281
- * against the same `session_id`) to restore a dropped assurance level.
2282
- * @summary Get my session state
2499
+ * An assurance level is a profile, such as `urn:nist:aal:2`, that the
2500
+ * session's verified factors satisfy. `assurance_levels[]` may shrink over time
2501
+ * as factor freshness windows expire, without the session itself expiring.
2502
+ * To restore a dropped level, use step-up authentication: create an
2503
+ * authentication attempt with the same `session_id`.
2504
+ * @summary Get my session
2283
2505
  */
2284
2506
  export const getMySession = async (params?: GetMySessionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMySession200> => {
2285
2507
 
@@ -2310,15 +2532,15 @@ export const getRevokeMySessionUrl = (params?: RevokeMySessionParams,) => {
2310
2532
  }
2311
2533
 
2312
2534
  /**
2313
- * Logs out by permanently deleting the session.
2535
+ * Revokes the caller's own session by deleting it, which signs the user out.
2314
2536
  *
2315
- * The session cookie issued at creation (or superseded by a handoff
2316
- * exchange) is required, with the session's token from `GET /sessions/me/csrf`
2317
- * in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
2318
- * this still returns 204. Any tokens derived from the session are invalidated,
2319
- * and the cookie itself is cleared in the response.
2537
+ * The request needs the session cookie issued at creation (or superseded by a
2538
+ * handoff exchange). It also needs the session's CSRF token from
2539
+ * `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,
2540
+ * this still returns `204`. Any tokens derived from the session are
2541
+ * invalidated, and the response clears the cookie.
2320
2542
  *
2321
- * With `project_id`, only a session of that project is deleted. A session of
2543
+ * With `project_id`, only a session of that project is revoked. A session of
2322
2544
  * another project is left alone, and so is its cookie.
2323
2545
  * @summary Revoke my session
2324
2546
  */
@@ -2351,13 +2573,13 @@ export const getGetMySessionCsrfTokenUrl = (params?: GetMySessionCsrfTokenParams
2351
2573
  }
2352
2574
 
2353
2575
  /**
2354
- * Returns the session-bound token for cross-site request forgery protection
2355
- * (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the
2356
- * state-changing requests the session cookie authenticates that require it
2357
- * — see the `sessionCookie` scheme. It authorizes nothing on its own: the
2358
- * HttpOnly cookie is still the credential, and a cross-site page cannot
2359
- * read this response. It stays the same for the life of the session, so a
2360
- * client fetches it once per session.
2576
+ * Returns the session-bound token that protects against cross-site request
2577
+ * forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the
2578
+ * state-changing requests that the session cookie authenticates and that
2579
+ * require it; see the `sessionCookie` scheme. It authorizes nothing on its
2580
+ * own: the HttpOnly cookie is still the credential, and a cross-site page
2581
+ * cannot read this response. It stays the same for the life of the session,
2582
+ * so a client fetches it once per session.
2361
2583
  *
2362
2584
  * With `project_id`, the token is returned only when the session belongs to
2363
2585
  * that project.
@@ -2392,16 +2614,21 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams,) => {
2392
2614
  }
2393
2615
 
2394
2616
  /**
2395
- * Create a new schema. The optional `$id` field is the JSON Schema document
2396
- * URI used to identify the schema in future requests (GitOps-stable identity,
2397
- * not a free-form resource primary key). When `$id` is omitted, the server
2398
- * generates a `sch_*` URL. When provided, `$id` must be unique within the
2399
- * project and should ideally be a valid URI pointing at where the schema can
2400
- * be accessed.
2401
- *
2402
- * The schema can either be a concrete schema, e.g. a user schema, or a
2403
- * schema-url which will be resolved by the server.
2404
- * @summary Create new schema
2617
+ * Creates a user schema, the JSON Schema that says which attributes a user
2618
+ * has and which attribute identifies the user.
2619
+ *
2620
+ * The request is either a user schema (`kind: user-schema`) or a schema URL
2621
+ * (`kind: schema-url`) that the server resolves. The response's `id` is what
2622
+ * `createUser` (`POST /users`) takes as `schema`.
2623
+ *
2624
+ * The optional `$id` is the JSON Schema document URI that identifies the
2625
+ * schema in later requests. It is a stable identity for GitOps, not a
2626
+ * free-form resource key. When `$id` is omitted, the server generates a
2627
+ * `sch_*` URL. When provided, `$id` must be unique within the project and
2628
+ * should ideally be a valid URI pointing at where the schema can be accessed.
2629
+ * A `$id` that already exists in the project is refused; pick another or
2630
+ * omit it.
2631
+ * @summary Create a schema
2405
2632
  */
2406
2633
  export const createSchema = async (createSchemaBody: CreateSchemaBody,
2407
2634
  params: CreateSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateSchema201> => {
@@ -2455,9 +2682,12 @@ export const getListSchemasUrl = (params: ListSchemasParams,) => {
2455
2682
  }
2456
2683
 
2457
2684
  /**
2458
- * Retrieve a list of all schemas available in the system. This endpoint
2459
- * supports pagination and filtering based on schema attributes.
2460
- * @summary List all schemas
2685
+ * Lists the schemas of a project, newest first, paginated with a cursor.
2686
+ * Filter by `object_type` or `kind`, and choose which revisions to return
2687
+ * with `revisions`.
2688
+ *
2689
+ * A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.
2690
+ * @summary List schemas
2461
2691
  */
2462
2692
  export const listSchemas = async (params: ListSchemasParams, options?: Parameters<typeof customFetch>[1]): Promise<ListSchemas200> => {
2463
2693
 
@@ -2489,17 +2719,17 @@ export const getGetSchemaByIdUrl = (id: string,
2489
2719
  }
2490
2720
 
2491
2721
  /**
2492
- * Get a schema by its ID. A schema ID identifies one immutable revision, so
2722
+ * Returns a schema by ID. A schema ID identifies one immutable revision, so
2493
2723
  * this returns exactly that revision. To find the current revision of an
2494
- * object type, list with `revisions=latest`.
2724
+ * object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
2495
2725
  *
2496
2726
  * Schema IDs are unique within a project, not across projects (the seeded
2497
- * default schema carries the same `$id` in every project). A Console
2727
+ * default schema carries the same `$id` in every project). A console
2498
2728
  * session that manages more than one project names the project with
2499
2729
  * `project_id`; without it, the ID is resolved in the credential's own
2500
2730
  * project when it is ambiguous. A project secret always resolves in its
2501
2731
  * own project and ignores `project_id`.
2502
- * @summary Get schema by ID
2732
+ * @summary Get a schema by ID
2503
2733
  */
2504
2734
  export const getSchemaById = async (id: string,
2505
2735
  params?: GetSchemaByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetSchemaById200> => {
@@ -2524,17 +2754,22 @@ export const getCreateFlowDefinitionUrl = () => {
2524
2754
  }
2525
2755
 
2526
2756
  /**
2527
- * Publishes a new flow definition revision.
2528
- * Flow definitions are templates that define the sequence of steps (capabilities)
2529
- * for a particular user journey (e.g., registration, login, password reset).
2530
- *
2531
- * Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
2532
- *
2533
- * Every call allocates a new opaque id. Revisions of one flow share its
2534
- * `name`; posting a definition under an existing `name` publishes a new
2535
- * revision of that flow, it is not a conflict. List with `name` to see a
2536
- * flow's revisions, newest by creation time first.
2537
- * @summary Create a new flow definition
2757
+ * Creates a flow definition by publishing a new revision of it. It records a
2758
+ * `flowdef.created` event.
2759
+ *
2760
+ * A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
2761
+ * defines the sequence of steps (capabilities) for one user journey, such as
2762
+ * registration, login or password reset. The body follows the flow
2763
+ * definition schema, which includes the flow's purpose, audience and steps.
2764
+ *
2765
+ * Every call allocates a new opaque ID. That `id` is the `revision_id` a
2766
+ * release pins for `kind: flow_definition`.
2767
+ *
2768
+ * Revisions of one flow share its `name`. Posting a definition under an
2769
+ * existing `name` publishes a new revision of that flow, which is not a
2770
+ * conflict. List with `name` to see a flow's revisions, newest by creation
2771
+ * time first.
2772
+ * @summary Create a flow definition
2538
2773
  */
2539
2774
  export const createFlowDefinition = async (createFlowDefinitionBody: CreateFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlowDefinition201> => {
2540
2775
 
@@ -2587,9 +2822,12 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams,) =>
2587
2822
  }
2588
2823
 
2589
2824
  /**
2590
- * Retrieves a list of all flow definitions, newest by creation time first.
2591
- * This endpoint can be used to view existing flow definitions and their configurations.
2592
- * Filter by `name` to list the revisions of one flow.
2825
+ * Lists the project's flow definitions with their configurations, newest by
2826
+ * creation time first. A flow definition sets which step of a sign-in
2827
+ * renders when, and which fields each step collects.
2828
+ *
2829
+ * The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)
2830
+ * takes. Filter by `name` to list the revisions of one flow.
2593
2831
  * @summary List flow definitions
2594
2832
  */
2595
2833
  export const listFlowDefinitions = async (params: ListFlowDefinitionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListFlowDefinitions200> => {
@@ -2614,8 +2852,9 @@ export const getGetFlowDefinitionUrl = (id: string,) => {
2614
2852
  }
2615
2853
 
2616
2854
  /**
2617
- * Get a flow definition by id
2618
- * @summary Get a flow definition by id
2855
+ * Returns one flow definition revision. Pass the `id` that
2856
+ * `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
2857
+ * @summary Get a flow definition by ID
2619
2858
  */
2620
2859
  export const getFlowDefinition = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowDefinition200> => {
2621
2860
 
@@ -2648,9 +2887,10 @@ export const getCreateTeamUrl = (params: CreateTeamParams,) => {
2648
2887
  /**
2649
2888
  * Creates a team in the project, with a name no other team in the project has.
2650
2889
  *
2651
- * A taken name is refused with `409 team.already_exists`. The new team has no
2652
- * members yet.
2653
- * @summary Create team
2890
+ * A team groups users inside a project and can represent a customer. A taken
2891
+ * name is refused with `409 team.already_exists`: choose another name. The
2892
+ * new team has no members yet.
2893
+ * @summary Create a team
2654
2894
  */
2655
2895
  export const createTeam = async (createTeamBody: CreateTeamBody,
2656
2896
  params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateTeam201> => {
@@ -2696,10 +2936,11 @@ export const getQueryTeamsUrl = (params?: QueryTeamsParams,) => {
2696
2936
  }
2697
2937
 
2698
2938
  /**
2699
- * Returns the teams of a project, paginated with a cursor.
2939
+ * Returns a page of a project's teams.
2700
2940
  *
2701
- * `project_id` names the project to list; without it, the credential's own
2702
- * project is listed.
2941
+ * Pass the response's `next_page_token` as `page_token` to fetch the next
2942
+ * page. `project_id` names the project to list; without it, the credential's
2943
+ * own project is listed.
2703
2944
  * @summary Query teams
2704
2945
  */
2705
2946
  export const queryTeams = async (queryTeamsBody: QueryTeamsBody,
@@ -2739,8 +2980,10 @@ export const getGetTeamUrl = (teamId: string,) => {
2739
2980
  }
2740
2981
 
2741
2982
  /**
2742
- * Returns a Team by its id.
2743
- * @summary Get team
2983
+ * Returns a team, a group of users inside a project, by ID.
2984
+ *
2985
+ * A deactivated team is still returned, with status `deactivated`.
2986
+ * @summary Get a team by ID
2744
2987
  */
2745
2988
  export const getTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetTeam200> => {
2746
2989
 
@@ -2764,20 +3007,20 @@ export const getDeleteTeamUrl = (teamId: string,) => {
2764
3007
  }
2765
3008
 
2766
3009
  /**
2767
- * Deactivates the team.
3010
+ * Deactivates a team and removes its memberships.
2768
3011
  *
2769
- * The team is tombstoned rather than erased: it stays readable through
2770
- * getTeam with status `deactivated`. Its memberships are removed and the
2771
- * users whose lifecycle it owns are deactivated with it.
3012
+ * The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with
3013
+ * status `deactivated`. The users whose lifecycle the team owns are
3014
+ * deactivated with it.
2772
3015
  *
2773
3016
  * The request is idempotent. Deleting a team that is already deactivated
2774
- * or doesn't exist succeeds without changing anything.
3017
+ * or does not exist succeeds without changing anything.
2775
3018
  *
2776
- * A team that still owns a project is refused with `409
2777
- * team.owns_project`: deactivating it would leave the project owned by a
2778
- * dead team and so unmanageable. No endpoint releases that ownership yet,
2779
- * so such a team cannot currently be deactivated through the API.
2780
- * @summary Delete team
3019
+ * A team that still owns a project is refused with `409 team.owns_project`.
3020
+ * Deactivating it would leave the project owned by a deactivated team and so
3021
+ * unmanageable. No endpoint ends a team's ownership of a project yet, so for
3022
+ * now such a team cannot be deactivated through the API.
3023
+ * @summary Deactivate a team
2781
3024
  */
2782
3025
  export const deleteTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
2783
3026
 
@@ -2801,8 +3044,12 @@ export const getUpdateTeamUrl = (teamId: string,) => {
2801
3044
  }
2802
3045
 
2803
3046
  /**
2804
- * Update team. Only active teams can be updated.
2805
- * @summary Update team
3047
+ * Renames an active team.
3048
+ *
3049
+ * Only active teams can be updated. A deactivated team answers `404`. The new
3050
+ * name must be unique within the project, and a taken name answers `409`:
3051
+ * choose another name.
3052
+ * @summary Update a team
2806
3053
  */
2807
3054
  export const updateTeam = async (teamId: string,
2808
3055
  updateTeamBody: UpdateTeamBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateTeam200> => {
@@ -2832,6 +3079,89 @@ return customFetch<UpdateTeam200>(getUpdateTeamUrl(teamId),
2832
3079
 
2833
3080
 
2834
3081
 
3082
+ export const getSearchUrl = (params?: SearchParams,) => {
3083
+ const normalizedParams = new URLSearchParams();
3084
+
3085
+ Object.entries(params || {}).forEach(([key, value]) => {
3086
+
3087
+ if (value !== undefined) {
3088
+ normalizedParams.append(key, value === null ? 'null' : String(value))
3089
+ }
3090
+ });
3091
+
3092
+ const stringifiedParams = normalizedParams.toString();
3093
+
3094
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/search?${stringifiedParams}` : `${getApiBaseUrl()}/search`
3095
+ }
3096
+
3097
+ /**
3098
+ * Finds the resources of a project that match a text, across resource types.
3099
+ *
3100
+ * `query` is what the person typed and `types` names the kinds of result to
3101
+ * look for; only those are searched. Each result is a reference: its `type`,
3102
+ * its `id`, a `title` and sometimes a `subtitle`. Read the resource itself
3103
+ * with the type's own operation, for example `GetUserByID`
3104
+ * (`GET /users/{user_id}`) or `getTeam` (`GET /teams/{team_id}`).
3105
+ *
3106
+ * What a type matches on:
3107
+ * - `user`: the start of the value they carry as `identifier` or of a part
3108
+ * of their `display` name, from three characters on
3109
+ * - `team`: its name
3110
+ * - `schema`: the `title` and the `objectType` of a user schema
3111
+ * - `flow_definition`: its name
3112
+ * - `idp`: the `slug` and the `display_name` of an identity provider
3113
+ * connection
3114
+ *
3115
+ * A user matches from the start of the value; every other type matches the
3116
+ * text anywhere in it. Matching ignores case. A `query` that is the `id` of
3117
+ * a resource of a requested type finds that one. A schema and a flow
3118
+ * definition are found at their newest revision. `project_id` names the
3119
+ * project to search; without it, the credential's own project is searched. A
3120
+ * caller with access to part of the project finds only what that access
3121
+ * covers.
3122
+ *
3123
+ * Authenticate with the project secret (`oauth2`) or a console session cookie
3124
+ * (`sessionCookie`). A preview secret is refused, as on every management
3125
+ * operation.
3126
+ *
3127
+ * Results come best match first, at most `limit_per_type` of each type, and
3128
+ * types can be mixed in the order. `incomplete_types` lists the types that
3129
+ * have more to show: page those with the type's own list, such as
3130
+ * `queryUsers` (`POST /users/query`) or `queryTeams` (`POST /teams/query`).
3131
+ *
3132
+ * How text is matched and ranked can change, and later versions can match
3133
+ * more of a resource. Treat the results as suggestions; to filter by an exact
3134
+ * rule, use the type's own list.
3135
+ * @summary Search a project
3136
+ */
3137
+ export const search = async (searchBody: SearchBody,
3138
+ params?: SearchParams, options?: Parameters<typeof customFetch>[1]): Promise<Search200> => {
3139
+
3140
+ const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
3141
+ if (!h) return {};
3142
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
3143
+ if (Symbol.iterator in h) {
3144
+ return Object.fromEntries(
3145
+ Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
3146
+ );
3147
+ }
3148
+ const headers: Record<string, string | readonly string[]> = {};
3149
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
3150
+ if (value !== undefined) headers[name] = value;
3151
+ }
3152
+ return headers;
3153
+ };
3154
+ return customFetch<Search200>(getSearchUrl(params),
3155
+ {
3156
+ ...options,
3157
+ method: 'POST',
3158
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
3159
+ body: JSON.stringify(searchBody)
3160
+ }
3161
+ );}
3162
+
3163
+
3164
+
2835
3165
  export const getCreateBrandingUrl = (params: CreateBrandingParams,) => {
2836
3166
  const normalizedParams = new URLSearchParams();
2837
3167
 
@@ -2848,15 +3178,19 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams,) => {
2848
3178
  }
2849
3179
 
2850
3180
  /**
2851
- * Publishes a new immutable branding revision for the project. Branding
2852
- * revisions cannot be updated or deleted; every edit publishes a new
2853
- * revision, and flow responses resolve the latest revision per project.
3181
+ * Publishes a new immutable branding revision for the project, and records a
3182
+ * `branding.created` event. Branding revisions cannot be updated or deleted.
3183
+ * Every edit publishes a new revision. Flow responses carry the branding
3184
+ * revision the request's release pins.
3185
+ *
3186
+ * The `id` of the new revision is the revision ID a release pins for
3187
+ * `kind: branding`.
2854
3188
  *
2855
3189
  * The `liquid_template` is validated lexically on save (size, encoding,
2856
3190
  * banned patterns such as `<script>` tags, inline event handlers, and the
2857
3191
  * `| raw` filter). Authoritative LiquidJS validation runs at authoring
2858
- * time via `zitadel plan` / `zitadel apply`.
2859
- * @summary Publish a new branding revision
3192
+ * time, in `zitadel deploy` and `zitadel deploy --dry-run`.
3193
+ * @summary Publish a branding revision
2860
3194
  */
2861
3195
  export const createBranding = async (createBrandingBody: CreateBrandingBody,
2862
3196
  params: CreateBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateBranding201> => {
@@ -2902,11 +3236,11 @@ export const getListBrandingUrl = (params: ListBrandingParams,) => {
2902
3236
  }
2903
3237
 
2904
3238
  /**
2905
- * Lists branding revisions for the project, newest first, capped at the
2906
- * 100 most recent. The first entry is the revision flow responses
2907
- * currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
2908
- * real query mechanism together; advertising pagination parameters the
2909
- * server ignores would be worse than none.
3239
+ * Lists a project's branding revisions, newest first, capped at the 100 most
3240
+ * recent and not paginated. The first entry is the newest revision.
3241
+ *
3242
+ * The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and
3243
+ * that a release pins for `kind: branding`.
2910
3244
  * @summary List branding revisions
2911
3245
  */
2912
3246
  export const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<ListBranding200Item[]> => {
@@ -2931,7 +3265,8 @@ export const getGetBrandingByIdUrl = (id: string,) => {
2931
3265
  }
2932
3266
 
2933
3267
  /**
2934
- * Retrieves a single branding revision, including its stored configuration.
3268
+ * Returns one branding revision, including its stored configuration. Pass the
3269
+ * `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
2935
3270
  * @summary Get a branding revision by ID
2936
3271
  */
2937
3272
  export const getBrandingById = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetBrandingById200> => {
@@ -2963,17 +3298,19 @@ export const getCreateIdpUrl = (params: CreateIdpParams,) => {
2963
3298
  }
2964
3299
 
2965
3300
  /**
2966
- * Creates or revises a connection document. If the slug does not already
2967
- * exist, a new connection is created. If a connection with that slug already
2968
- * exists, a revision is created.
2969
- *
2970
- * A revision gets a new `revision_id` and does not modify the connection
2971
- * `id`, so identity links that reference the connection keep resolving while
2972
- * releases and auth attempts stay pinned to the revision they captured.
2973
- *
2974
- * Identity fields are fixed for the life of the connection and a revision
2975
- * that changes one is rejected: `protocol`, `subject_claim`, and `issuer`,
2976
- * the field that names the authority. Their values decide which provider
3301
+ * Creates or revises an identity provider, an external sign-in such as
3302
+ * Google, from its connection document. If the slug does not already exist,
3303
+ * a new identity provider is created. If one with that slug already exists,
3304
+ * a revision is created.
3305
+ *
3306
+ * A revision gets a new `revision_id` and does not modify the identity
3307
+ * provider's `id`. Identity links, which tie a user to an account at the
3308
+ * provider, keep resolving. Releases and authentication attempts stay pinned
3309
+ * to the revision they captured.
3310
+ *
3311
+ * Identity fields are fixed for the life of the identity provider and a
3312
+ * revision that changes one is rejected: `protocol`, `subject_claim`, and
3313
+ * `issuer`, the field that names the authority. Their values decide which provider
2977
3314
  * account a stored subject belongs to, so changing one would silently
2978
3315
  * repoint existing identities at a different provider.
2979
3316
  *
@@ -2984,18 +3321,18 @@ export const getCreateIdpUrl = (params: CreateIdpParams,) => {
2984
3321
  * OIDC is the only protocol.
2985
3322
  *
2986
3323
  * The document is validated against the `idp-connection.json` schema before
2987
- * anything is stored. The rules the engine applies when it starts a sign-in
2988
- * then run on the document, so a connection that could never start one is
2989
- * refused here instead with `idp.endpoints_partial`: the OIDC block sets an
2990
- * endpoint without the others. It either sets no endpoint, and discovery
2991
- * fills them, or sets `authorization_endpoint`, `token_endpoint`, `jwks_uri`,
2992
- * and `userinfo_endpoint`. `userinfo_endpoint` may be left out when
3324
+ * anything is stored. The rules the server applies when it starts a sign-in
3325
+ * then run on the document, so a document that could never start one is
3326
+ * refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint
3327
+ * without the others. Set no endpoint, and discovery fills them, or set
3328
+ * `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and
3329
+ * `userinfo_endpoint`. `userinfo_endpoint` may be left out when
2993
3330
  * `id_token_mapping` is on, but setting it alone still counts as setting an
2994
3331
  * endpoint. The details list the missing endpoints.
2995
3332
  *
2996
3333
  * A refused document stores nothing, and on a revise the current revision
2997
3334
  * stays unchanged.
2998
- * @summary Create or revise an identity provider connection
3335
+ * @summary Create or revise an identity provider
2999
3336
  */
3000
3337
  export const createIdp = async (createIdpBody: CreateIdpBody,
3001
3338
  params: CreateIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateIdp200 | CreateIdp201> => {
@@ -3041,9 +3378,10 @@ export const getQueryIdpsUrl = (params: QueryIdpsParams,) => {
3041
3378
  }
3042
3379
 
3043
3380
  /**
3044
- * Returns the identity provider connections of a project, paginated with a
3045
- * cursor. One row per connection, carrying its newest revision.
3046
- * @summary Query identity provider connections
3381
+ * Returns the identity providers of a project, external sign-ins such as
3382
+ * Google, paginated with a cursor. Each identity provider appears once, with
3383
+ * its newest revision.
3384
+ * @summary Query identity providers
3047
3385
  */
3048
3386
  export const queryIdps = async (queryIdpsBody: QueryIdpsBody,
3049
3387
  params: QueryIdpsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryIdps200> => {
@@ -3090,11 +3428,12 @@ export const getGetIdpByIdUrl = (id: string,
3090
3428
  }
3091
3429
 
3092
3430
  /**
3093
- * Reads a connection by its id, at its newest revision.
3094
- * `GET /idps/{id}/revisions` lists every revision of the connection.
3431
+ * Returns an identity provider, an external sign-in such as Google, by ID at
3432
+ * its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists
3433
+ * every revision of it.
3095
3434
  *
3096
3435
  * The lookup is scoped to the project in `project_id`.
3097
- * @summary Get an identity provider connection by id
3436
+ * @summary Get an identity provider by ID
3098
3437
  */
3099
3438
  export const getIdpById = async (id: string,
3100
3439
  params: GetIdpByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpById200> => {
@@ -3127,11 +3466,12 @@ export const getListIdpRevisionsUrl = (id: string,
3127
3466
  }
3128
3467
 
3129
3468
  /**
3130
- * Returns every revision of one connection, newest first, paginated with a
3131
- * cursor. The order is fixed, so there is no `sorting`.
3469
+ * Lists every revision of one identity provider, an external sign-in such as
3470
+ * Google, newest first, paginated with a cursor. The order is fixed, so there
3471
+ * is no `sorting`.
3132
3472
  *
3133
3473
  * The lookup is scoped to the project in `project_id`.
3134
- * @summary List the revisions of an identity provider connection
3474
+ * @summary List the revisions of an identity provider
3135
3475
  */
3136
3476
  export const listIdpRevisions = async (id: string,
3137
3477
  params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListIdpRevisions200> => {
@@ -3164,11 +3504,12 @@ export const getGetIdpRevisionByIdUrl = (revisionId: string,
3164
3504
  }
3165
3505
 
3166
3506
  /**
3167
- * Reads one revision of a connection by its `revision_id`, the value an auth
3168
- * attempt or a release pins.
3507
+ * Returns one revision of an identity provider, an external sign-in such as
3508
+ * Google, by its `revision_id`, the value an authentication attempt or a
3509
+ * release pins.
3169
3510
  *
3170
3511
  * The lookup is scoped to the project in `project_id`.
3171
- * @summary Get one revision of an identity provider connection
3512
+ * @summary Get a revision of an identity provider
3172
3513
  */
3173
3514
  export const getIdpRevisionById = async (revisionId: string,
3174
3515
  params: GetIdpRevisionByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpRevisionById200> => {
@@ -3184,6 +3525,122 @@ export const getIdpRevisionById = async (revisionId: string,
3184
3525
 
3185
3526
 
3186
3527
 
3528
+ export const getCreateApplicationUrl = (params: CreateApplicationParams,) => {
3529
+ const normalizedParams = new URLSearchParams();
3530
+
3531
+ Object.entries(params || {}).forEach(([key, value]) => {
3532
+
3533
+ if (value !== undefined) {
3534
+ normalizedParams.append(key, value === null ? 'null' : String(value))
3535
+ }
3536
+ });
3537
+
3538
+ const stringifiedParams = normalizedParams.toString();
3539
+
3540
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/applications?${stringifiedParams}` : `${getApiBaseUrl()}/applications`
3541
+ }
3542
+
3543
+ /**
3544
+ * Creates or revises a registered application that authenticates its users
3545
+ * via Zitadel. If the slug does not already exist in the project, a new
3546
+ * application is created. If one with that slug already exists, a revision
3547
+ * is created.
3548
+ *
3549
+ * A revision gets a new `revision_id` and does not modify the application's
3550
+ * `id`. Sending an unchanged document also creates a revision. Each client
3551
+ * is matched to the stored one by its slug and keeps its `client_id`: a
3552
+ * revision that changes a client's `client_id` is rejected with
3553
+ * `application.field_immutable`. A revision keeps every client of the
3554
+ * stored document: one that omits a client is also rejected with
3555
+ * `application.field_immutable`, since removing a client is not available
3556
+ * yet. A client with a new slug is a new client. It takes the `client_id`
3557
+ * the document supplies, or the server generates one, and every response
3558
+ * carries it in `definition`. A `client_id` another client of the project
3559
+ * holds, or ever held, is rejected with `application.client_id_taken`.
3560
+ *
3561
+ * Every new client gets a secret, generated by the server and returned once
3562
+ * in `client_secrets`. The server stores only its hash, so no later read
3563
+ * returns it.
3564
+ *
3565
+ * The document is validated against the `application.json` schema before
3566
+ * anything is stored, and then against the rules the authorization server
3567
+ * applies: `refresh_token` comes with `authorization_code`, a client with
3568
+ * `authorization_code` has at least one redirect URI, and each redirect
3569
+ * URI meets the rules `redirect_uris` states. A document that breaks one
3570
+ * is refused with `application.invalid`, whose details identify the
3571
+ * setting.
3572
+ *
3573
+ * If the document is refused, no change is stored and an existing
3574
+ * application keeps its current revision.
3575
+ * @summary Create or revise a registered application
3576
+ */
3577
+ export const createApplication = async (createApplicationBody: CreateApplicationBody,
3578
+ params: CreateApplicationParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateApplication200 | CreateApplication201> => {
3579
+
3580
+ const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
3581
+ if (!h) return {};
3582
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
3583
+ if (Symbol.iterator in h) {
3584
+ return Object.fromEntries(
3585
+ Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
3586
+ );
3587
+ }
3588
+ const headers: Record<string, string | readonly string[]> = {};
3589
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
3590
+ if (value !== undefined) headers[name] = value;
3591
+ }
3592
+ return headers;
3593
+ };
3594
+ return customFetch<CreateApplication200 | CreateApplication201>(getCreateApplicationUrl(params),
3595
+ {
3596
+ ...options,
3597
+ method: 'POST',
3598
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
3599
+ body: JSON.stringify(createApplicationBody)
3600
+ }
3601
+ );}
3602
+
3603
+
3604
+
3605
+ export const getGetApplicationByIdUrl = (id: string,
3606
+ params: GetApplicationByIdParams,) => {
3607
+ const normalizedParams = new URLSearchParams();
3608
+
3609
+ Object.entries(params || {}).forEach(([key, value]) => {
3610
+
3611
+ if (value !== undefined) {
3612
+ normalizedParams.append(key, value === null ? 'null' : String(value))
3613
+ }
3614
+ });
3615
+
3616
+ const stringifiedParams = normalizedParams.toString();
3617
+
3618
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/applications/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/applications/${encodeURIComponent(String(id))}`
3619
+ }
3620
+
3621
+ /**
3622
+ * Returns an application that authenticates its users via Zitadel, by ID
3623
+ * at its newest revision, with each client's `client_id` in `definition`. It
3624
+ * never returns a client secret: `createApplication` (`POST /applications`)
3625
+ * shows one once, when it creates the client.
3626
+ *
3627
+ * The lookup is scoped to the project in `project_id`.
3628
+ * @summary Get an application by ID
3629
+ */
3630
+ export const getApplicationById = async (id: string,
3631
+ params: GetApplicationByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetApplicationById200> => {
3632
+
3633
+ return customFetch<GetApplicationById200>(getGetApplicationByIdUrl(id,params),
3634
+ {
3635
+ ...options,
3636
+ method: 'GET'
3637
+
3638
+
3639
+ }
3640
+ );}
3641
+
3642
+
3643
+
3187
3644
  export const getListPoliciesUrl = (params: ListPoliciesParams,) => {
3188
3645
  const normalizedParams = new URLSearchParams();
3189
3646
 
@@ -3201,9 +3658,12 @@ export const getListPoliciesUrl = (params: ListPoliciesParams,) => {
3201
3658
 
3202
3659
  /**
3203
3660
  * Lists the project's policies, one per operation, each as its newest
3204
- * revision, ordered by `created_at` (first publish) and then `id`. Filter
3205
- * by `operation` to read the policy of one operation; a project that never
3206
- * published one gets an empty list.
3661
+ * revision.
3662
+ *
3663
+ * A policy holds a project's rules for one operation, such as setting a
3664
+ * password. The list is ordered by `created_at` (first publish) and then
3665
+ * `id`. Filter by `operation` to read the policy of one operation; a project
3666
+ * that never published one gets an empty list.
3207
3667
  *
3208
3668
  * The lookup is scoped to the project in `project_id`.
3209
3669
  * @summary List policies
@@ -3238,22 +3698,31 @@ export const getPublishPolicyUrl = (params: PublishPolicyParams,) => {
3238
3698
 
3239
3699
  /**
3240
3700
  * Publishes the project's policy for an operation as a new immutable
3241
- * revision, creating the policy on its first publish. The newest revision
3242
- * applies to the next time the operation runs; nothing already stored is
3701
+ * revision, creating the policy on its first publish. A revision applies
3702
+ * once a deployed release pins it. Nothing already stored is
3243
3703
  * re-evaluated, so a stricter password policy applies the next time a
3244
3704
  * password is set.
3245
3705
  *
3246
- * The request is typed by `operation`: an unknown operation or setting, or
3706
+ * A policy holds a project's rules for one operation, such as setting a
3707
+ * password. The first publish records a `policy.created` event and every
3708
+ * later one a `policy.updated` event.
3709
+ *
3710
+ * The request is typed by `operation`. An unknown operation or setting, or
3247
3711
  * a value of the wrong type or outside its bounds, answers `req.invalid`
3248
- * like any malformed request. The operation's template then checks the
3249
- * config again, together with the rules that relate settings to each other
3250
- * (a `min_length` above `max_length`), and answers `pol.invalid`. Its
3251
- * `details.details.violations` lists everything that failed, settings
3252
- * first, then rules: `{"setting": "min_length"}` for one setting, or
3253
- * `{"config_rule": "min_length_not_above_max_length", "settings":
3254
- * ["min_length", "max_length"]}` for a rule across settings, with the
3255
- * settings it reads. A setting left out is off, and `{}` switches every
3256
- * rule off; there are no defaults.
3712
+ * like any malformed request.
3713
+ *
3714
+ * The operation's template then checks the config again, together with the
3715
+ * rules that relate settings to each other (a `min_length` above
3716
+ * `max_length`), and answers `pol.invalid`. Its `details.details.violations`
3717
+ * lists everything that failed, settings first, then rules.
3718
+ * `{"setting": "min_length"}` names one setting. `{"config_rule":
3719
+ * "min_length_not_above_max_length", "settings": ["min_length",
3720
+ * "max_length"]}` names a rule across settings, with the settings it reads.
3721
+ * Fix what the violations list and publish again. To check a config without
3722
+ * publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).
3723
+ *
3724
+ * A setting left out is off, and `{}` switches every rule off; there are no
3725
+ * defaults.
3257
3726
  * @summary Publish a policy
3258
3727
  */
3259
3728
  export const publishPolicy = async (publishPolicyBody: PublishPolicyBody,
@@ -3301,24 +3770,27 @@ export const getEvaluatePolicyUrl = (params: EvaluatePolicyParams,) => {
3301
3770
 
3302
3771
  /**
3303
3772
  * Evaluates a policy config against one request, without side effects, and
3304
- * answers the decision the operation would reach. Nothing is read from or
3305
- * written to the project: the config is the one in the body, checked
3306
- * exactly as a publish checks it, so an invalid config answers `pol.invalid`
3307
- * with the same violations.
3773
+ * answers the decision the operation would reach. A policy holds a
3774
+ * project's rules for one operation, such as setting a password.
3775
+ *
3776
+ * Nothing is read from or written to the project. The config is the one in
3777
+ * the body, checked exactly as a publish checks it, so an invalid config
3778
+ * answers `pol.invalid` with the same violations. Fix the settings the
3779
+ * violations list and send the request again.
3308
3780
  *
3309
3781
  * `input` is what the operation's request carries, in the operation's own
3310
- * terms (a password, not its length): the server derives what the policy
3782
+ * terms (a password, not its length). The server derives what the policy
3311
3783
  * checks with the code the live operation runs, guards included. `facts`
3312
3784
  * states what the operation would look up at runtime, such as whether the
3313
3785
  * candidate matches one of the user's kept passwords.
3314
3786
  *
3315
3787
  * The decision and the names of the failed rules hold wherever the
3316
- * operation runs. `code` and `violations` are what an API call answers; a
3788
+ * operation runs. `code` and `violations` are what an API call answers. A
3317
3789
  * login flow shows the same rules as field errors on the password field
3318
3790
  * (`error.x-auth-methods#password_<rule>` in `step.error`).
3319
3791
  *
3320
- * Which policy a project or release applies is not decided here: read it
3321
- * and pass its config.
3792
+ * This operation does not choose which policy a project or release applies.
3793
+ * Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.
3322
3794
  *
3323
3795
  * The caller needs read access to the project in `project_id`.
3324
3796
  * @summary Evaluate a policy
@@ -3368,12 +3840,15 @@ export const getGetPolicyUrl = (policyId: string,
3368
3840
  }
3369
3841
 
3370
3842
  /**
3371
- * Reads a policy as its newest revision, the one that applies the next time
3372
- * its operation runs.
3843
+ * Returns a policy as its newest revision. A revision applies once a deployed
3844
+ * release pins it.
3845
+ *
3846
+ * A policy holds a project's rules for one operation, such as setting a
3847
+ * password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
3373
3848
  *
3374
3849
  * The lookup is scoped to the project in `project_id`: a policy of another
3375
- * project answers not found exactly as an unknown id does.
3376
- * @summary Get a policy
3850
+ * project answers not found exactly as an unknown ID does.
3851
+ * @summary Get a policy by ID
3377
3852
  */
3378
3853
  export const getPolicy = async (policyId: string,
3379
3854
  params: GetPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicy200> => {
@@ -3406,11 +3881,14 @@ export const getListPolicyRevisionsUrl = (policyId: string,
3406
3881
  }
3407
3882
 
3408
3883
  /**
3409
- * Returns every revision of one policy, newest first, paginated with a
3410
- * cursor. The order is fixed, so there is no `sorting`.
3884
+ * Lists every revision of one policy, newest first, one page at a time. The
3885
+ * order is fixed, so there is no `sorting`.
3886
+ *
3887
+ * Each publish of a policy adds a revision. Pass the policy `id` that
3888
+ * `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
3411
3889
  *
3412
3890
  * The lookup is scoped to the project in `project_id`: a policy of another
3413
- * project answers not found exactly as an unknown id does.
3891
+ * project answers not found exactly as an unknown ID does.
3414
3892
  * @summary List the revisions of a policy
3415
3893
  */
3416
3894
  export const listPolicyRevisions = async (policyId: string,
@@ -3444,11 +3922,14 @@ export const getGetPolicyRevisionUrl = (revisionId: string,
3444
3922
  }
3445
3923
 
3446
3924
  /**
3447
- * Reads one revision of a policy, newest or not.
3925
+ * Returns one revision of a policy, the newest or an older one.
3926
+ *
3927
+ * Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)
3928
+ * returns.
3448
3929
  *
3449
3930
  * The lookup is scoped to the project in `project_id`: a revision of another
3450
- * project answers not found exactly as an unknown id does.
3451
- * @summary Get a policy revision
3931
+ * project answers not found exactly as an unknown ID does.
3932
+ * @summary Get a policy revision by ID
3452
3933
  */
3453
3934
  export const getPolicyRevision = async (revisionId: string,
3454
3935
  params: GetPolicyRevisionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicyRevision200> => {
@@ -3480,25 +3961,34 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams,) => {
3480
3961
  }
3481
3962
 
3482
3963
  /**
3483
- * Assembles a release from existing revisions, given as
3484
- * `(kind, revision_id)` pairs. To build one from files on disk, use
3485
- * `POST /releases/build`.
3964
+ * Creates a release from existing revisions, given as `(kind, revision_id)`
3965
+ * pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)
3966
+ * (`POST /releases/build`).
3967
+ *
3968
+ * A release is a snapshot of the project's configuration: it pins one
3969
+ * revision of each resource it includes, and it is not tied to an origin.
3970
+ * Take each `revision_id` from the operation that created the revision, for
3971
+ * example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.
3486
3972
  *
3487
3973
  * Each revision must exist in the project and is recorded under the handle
3488
3974
  * it declares. The release must be complete and consistent:
3489
3975
  *
3490
3976
  * - Every handle its revisions name must be in the release: a flow's
3491
- * `user_schema`, and the IDP connections named by a flow step's
3492
- * `sso_providers` or a schema's `x-auth-methods.sso.providers`. A missing
3493
- * one answers `rel.unresolved_reference`, naming the resource and the
3494
- * handle, e.g. `flow_definition default-login: user_schema human-user not found`.
3495
- * - Every flow is validated as on save, against the user schema revision
3496
- * in the release. A flow that fails answers `rel.invalid`, with the
3497
- * reason in `details`.
3498
- *
3499
- * Idempotent on the set of revisions: the same revisions with a different
3500
- * `message` answer `200` with the existing release. A new release answers
3501
- * `201`. Creating a release does not deploy it.
3977
+ * `user_schema`, and the identity provider (IdP) connections named by a
3978
+ * flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.
3979
+ * A missing one answers `rel.unresolved_reference`, naming the resource and
3980
+ * the handle, for example `flow_definition default-login: user_schema
3981
+ * human-user not found`. Add the missing revision to the request.
3982
+ * - Every flow is validated as on save, against the user schema revision in
3983
+ * the release. A flow that fails answers `rel.invalid`, with the reason in
3984
+ * `details`. Fix the flow and send the request again.
3985
+ *
3986
+ * The call is idempotent on the set of revisions: the same revisions with a
3987
+ * different `message` answer `200` with the existing release. A new release
3988
+ * answers `201`.
3989
+ *
3990
+ * Creating a release does not deploy it. Pass the returned `id` to
3991
+ * `createDeployment` (`POST /deployments`) to make the release live.
3502
3992
  * @summary Create a release
3503
3993
  */
3504
3994
  export const createRelease = async (createReleaseBody: CreateReleaseBody,
@@ -3545,17 +4035,20 @@ export const getListReleasesUrl = (params: ListReleasesParams,) => {
3545
4035
  }
3546
4036
 
3547
4037
  /**
3548
- * Lists the project's releases, newest first.
4038
+ * Lists the project's releases, newest first. A release is a snapshot of the
4039
+ * project's configuration.
3549
4040
  *
3550
- * Entries carry the digest, the metadata and `revoked_at` — the pinned set
3551
- * is omitted.
3552
- * Read one release with `GET /releases/{release_id}` to get its pointers.
4041
+ * Entries carry the digest, the metadata and `revoked_at`. The pinned set is
4042
+ * omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.
4043
+ *
4044
+ * The `id` of an entry is the release ID that `getReleaseById`,
4045
+ * `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
3553
4046
  *
3554
4047
  * `content_hash` looks a release up by its content, as the CLI does when a
3555
4048
  * person types the digest a transcript printed. The project holds at most
3556
- * one release per digest, so the filtered list has one entry or none, and
3557
- * an unknown digest is an empty list rather than an error. Paths take the
3558
- * `rel_` id only; the matched entry's `id` is what to use there.
4049
+ * one release per digest, so the filtered list has one entry or none. An
4050
+ * unknown digest is an empty list rather than an error. Paths take the
4051
+ * `rel_` ID only, so use the matched entry's `id` there.
3559
4052
  * @summary List releases
3560
4053
  */
3561
4054
  export const listReleases = async (params: ListReleasesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListReleases200> => {
@@ -3587,38 +4080,44 @@ export const getBuildReleaseUrl = (params: BuildReleaseParams,) => {
3587
4080
  }
3588
4081
 
3589
4082
  /**
3590
- * Builds a release from the resources of `.zitadel/` as authored on disk,
3591
- * grouped by kind, in one transaction: a failure anywhere leaves no
3592
- * revision and no release. The caller records nothing.
4083
+ * Builds a release from the resources in `.zitadel/` as authored on disk,
4084
+ * grouped by kind, in one transaction.
4085
+ *
4086
+ * A release is a snapshot of the project's configuration. A failure anywhere
4087
+ * leaves no revision and no release. The caller records nothing. The CLI's
4088
+ * `deploy` command builds its release with this operation.
3593
4089
  *
3594
4090
  * If the project already holds a release with the same content, the same
3595
- * `content_hash`, the request answers `200` with that release and
3596
- * allocates nothing, however long ago it was built. Otherwise every resource is compared against the
3597
- * project's newest revision of the same handle: unchanged content reuses
3598
- * that revision, changed content allocates a new one, and the request
3599
- * answers `201` with the new release. A policy whose config matches only an
3600
- * older revision allocates a new one too, so a request that resolves no
3601
- * release, which reads the newest revision, applies it as well. Metadata is excluded from the
4091
+ * `content_hash`, the request answers `200` with that release and allocates
4092
+ * nothing, however long ago it was built. Metadata is excluded from the
3602
4093
  * comparison, so the same content under a different `message` is the same
3603
4094
  * release.
3604
4095
  *
4096
+ * Otherwise every resource is compared with the project's newest revision of
4097
+ * the same handle. Unchanged content reuses that revision, and changed
4098
+ * content allocates a new one. The request answers `201` with the new
4099
+ * release. A policy whose config matches only an older revision allocates a
4100
+ * new one too, so the policy reads back as the config the build carried.
4101
+ *
3605
4102
  * A structurally malformed request is refused while decoding with
3606
4103
  * `req.invalid`, naming the offending fields. A well-formed bundle is then
3607
4104
  * checked resource by resource, as each kind's create endpoint checks it,
3608
- * and every failure is reported at once: the request answers `400` with
4105
+ * and every failure is reported at once. The request answers `400` with
3609
4106
  * `rel.invalid`, and `details.resources` lists each resource that failed.
3610
- * A handle that resolves neither in the bundle nor in the project answers
3611
- * `rel.unresolved_reference`, naming the pointer and the handle.
4107
+ * Fix each listed resource and build again. A handle that resolves neither
4108
+ * in the bundle nor in the project answers `rel.unresolved_reference`,
4109
+ * naming the pointer and the handle. Add the missing resource to the bundle.
3612
4110
  *
3613
4111
  * Building writes revisions, so besides `release.write` it needs the write
3614
4112
  * scope of every kind the bundle carries a resource of: `schema.write`,
3615
- * `flow_definition.write`, `branding.write`, `idp.write` and
3616
- * `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
3617
- * naming the kind. An empty kind needs no scope.
3618
- *
3619
- * Building a release does not deploy it. A release is not tied to an
3620
- * origin, and the same release can later be deployed to any number of
3621
- * origins unchanged.
4113
+ * `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,
4114
+ * as the per-kind create endpoints do. A missing scope answers `403` with
4115
+ * `rel.permission_denied`, naming the kind. Request a token with that scope.
4116
+ * An empty kind needs no scope.
4117
+ *
4118
+ * Building a release does not deploy it. A release is not tied to an origin,
4119
+ * and the same release can later be deployed to any number of origins
4120
+ * unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).
3622
4121
  * @summary Build a release from files
3623
4122
  */
3624
4123
  export const buildRelease = async (buildReleaseBody: BuildReleaseBody,
@@ -3666,20 +4165,23 @@ export const getGetReleaseByIdUrl = (releaseId: string,
3666
4165
  }
3667
4166
 
3668
4167
  /**
3669
- * Reads one release: its digest, its metadata, whether it was revoked, and
3670
- * the `(kind, handle, revision_id)` tuples it pins.
3671
- *
3672
- * The path takes the `rel_` id only. To find a release from its digest,
3673
- * list with the `content_hash` filter and read the matched entry's `id`.
3674
- *
3675
- * Does not embed resource content. Resolve each `revision_id` through the
3676
- * per-kind read endpoints when the bytes are needed.
3677
- *
3678
- * The lookup is scoped to the project in `project_id`: a release id belonging
3679
- * to another project answers not found exactly as an unknown id does, so the
3680
- * endpoint cannot be used to probe for releases in projects the caller cannot
3681
- * read.
3682
- * @summary Get a release by id
4168
+ * Returns one release: its digest, its metadata, whether it was revoked, and
4169
+ * the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot
4170
+ * of the project's configuration.
4171
+ *
4172
+ * The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),
4173
+ * `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its
4174
+ * digest, list with the `content_hash` filter and read the matched entry's
4175
+ * `id`.
4176
+ *
4177
+ * The response does not embed resource content. Resolve each `revision_id`
4178
+ * through the per-kind read endpoints when the bytes are needed.
4179
+ *
4180
+ * The lookup is scoped to the project in `project_id`. A release ID
4181
+ * belonging to another project answers not found exactly as an unknown ID
4182
+ * does, so the endpoint cannot be used to probe for releases in projects the
4183
+ * caller cannot read.
4184
+ * @summary Get a release by ID
3683
4185
  */
3684
4186
  export const getReleaseById = async (releaseId: string,
3685
4187
  params: GetReleaseByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetReleaseById200> => {
@@ -3712,25 +4214,30 @@ export const getRevokeReleaseUrl = (releaseId: string,
3712
4214
  }
3713
4215
 
3714
4216
  /**
3715
- * Marks the release revoked, so that its content is never served again.
3716
- * From then on the release cannot be deployed and is refused on every path
3717
- * that would serve it, including to a build that pins its digest, with
3718
- * `rel.revoked`.
3719
- *
3720
- * A release that any origin still serves cannot be revoked. An origin
3721
- * serves the release of the newest deployment to it, so the call answers
3722
- * `409` with `rel.in_use`, naming each such origin and that deployment.
3723
- * Deploy another release there or roll back first, then revoke. Revoking
3724
- * therefore never takes an origin down. Deployments that named the release
3725
- * earlier stay in the history.
3726
- *
3727
- * Idempotent: revoking a release that is already revoked answers `200`
3728
- * with the release unchanged, `revoked_at` still naming the first
3729
- * revocation. There is no un-revoke; build a new release instead.
3730
- *
3731
- * Takes no body. The lookup is scoped to the project in `project_id`, so a
3732
- * release id of another project answers not found exactly as an unknown id
3733
- * does.
4217
+ * Revokes a release, so that its content is never served again. Pass the
4218
+ * `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It
4219
+ * records a `release.revoked` event.
4220
+ *
4221
+ * From then on the release cannot be deployed. Every path that would serve
4222
+ * it refuses it with `rel.revoked`, including a build that pins its digest.
4223
+ *
4224
+ * A release that any origin still serves cannot be revoked. An origin serves
4225
+ * the release of the newest deployment to it, so the call answers `409` with
4226
+ * `rel.in_use`, naming each such origin, that deployment and whether the
4227
+ * origin is primary or a preview. Deploy another release to a primary origin
4228
+ * or roll it back, and remove a preview, then revoke. Revoking therefore
4229
+ * never takes an origin down. Deployments that named the release earlier stay in
4230
+ * the history.
4231
+ *
4232
+ * The call is idempotent: revoking a release that is already revoked answers
4233
+ * `200` with the release unchanged, and `revoked_at` still names the first
4234
+ * revocation. There is no un-revoke. To serve that configuration again,
4235
+ * change it and build a new release: rebuilding unchanged content returns
4236
+ * the same revoked release.
4237
+ *
4238
+ * The call takes no body. The lookup is scoped to the project in
4239
+ * `project_id`, so a release ID of another project answers not found exactly
4240
+ * as an unknown ID does.
3734
4241
  * @summary Revoke a release
3735
4242
  */
3736
4243
  export const revokeRelease = async (releaseId: string,
@@ -3763,26 +4270,32 @@ export const getCreateGrantUrl = (params: CreateGrantParams,) => {
3763
4270
  }
3764
4271
 
3765
4272
  /**
3766
- * Bind a user or team to `project.viewer`, `project.editor`, or
3767
- * `project.admin` on the project identified by the `project-id` header.
3768
- * Name the principal with `user` (`user_id` or `identifier`) or `team`
3769
- * (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
3770
- * (`project.team`) grants are not created here — claim owns that path. An
3771
- * unrevoked grant with the same principal and relation occupies the unique
3772
- * key even after `expires_at`; DELETE it before re-creating.
3773
- * Create does not accept `expand`. The `user_id` and team locators
3774
- * return 201, whose `user` / `team` carry only `user_id` / `team_id`,
3775
- * and still 404 / 409 when the principal is missing or the tuple
3776
- * already exists. Creating by `user.identifier` answers 202 with no
3777
- * body on every outcome. Granting the session caller's own user is
3778
- * `grant.invalid` on either user locator. Read the grant back for
3779
- * identifier and display.
3780
- *
3781
- * Accepts either a project secret (`oauth2`) or a user-bound Console
3782
- * session cookie (`sessionCookie`). Session callers are authorized as
3783
- * the human against the target project (home may differ). Cookie-authenticated
3784
- * requests follow the scheme's CSRF rules (`sessionCookie`).
3785
- * @summary Create grant
4273
+ * Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.
4274
+ *
4275
+ * The project is the one named by the `project_id` query parameter. Name the
4276
+ * principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
4277
+ * `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
4278
+ * `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not
4279
+ * created here: a claim, which attaches a project to a team, creates them.
4280
+ *
4281
+ * An unrevoked grant with the same principal and relation holds that binding
4282
+ * even after `expires_at`. Revoke it with `deleteGrant` before you create it
4283
+ * again.
4284
+ *
4285
+ * Create does not accept `expand`. The `user_id` and team locators return `201`,
4286
+ * whose `user` and `team` carry only `user_id` and `team_id`. They still answer
4287
+ * `404` or `409` when the principal is missing or the grant already exists.
4288
+ * Creating by `user.identifier` answers `202` with no body on every outcome.
4289
+ * Granting the session caller's own user is `grant.invalid` on either user
4290
+ * locator. A `201` grant names its user or team by ID only: read it back
4291
+ * with `getGrant` for the identifier and display name. A `202` returns no
4292
+ * grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.
4293
+ *
4294
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4295
+ * (`sessionCookie`). A session caller is authorized as the signed-in person
4296
+ * against the target project, even when the session belongs to another project.
4297
+ * Cookie requests follow that scheme's CSRF rules.
4298
+ * @summary Create a grant
3786
4299
  */
3787
4300
  export const createGrant = async (createGrantBody: CreateGrantBody,
3788
4301
  params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateGrant201 | void> => {
@@ -3828,22 +4341,20 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams,) => {
3828
4341
  }
3829
4342
 
3830
4343
  /**
3831
- * Returns the collaboration grants of a project, paginated with a cursor.
3832
- * Only unrevoked grants this API manages are listed (user or team bound to
3833
- * viewer, editor, or admin), including expired grants so a client can
3834
- * DELETE before re-granting. Project-secret setup (`sk_proj`) and
3835
- * owning-team (`relation=team`) rows are not returned. Grants are not in
3836
- * `resource_scope_index`; project scope is required on the query (same as
3837
- * get). Requires `project.read`. `expand: ["principal"]` adds envelope
3838
- * fields on `user` / `team` and additionally requires `user.read` and
3839
- * `team.read` for project secrets (documented on the expand enum; those
3840
- * scopes cannot be ANDed onto this security block because they are
3841
- * body-conditional). A user-bound Console session that already passed
3842
- * the project Check may expand without those scopes.
3843
- *
3844
- * Accepts either a project secret (`oauth2`) or a user-bound Console
3845
- * session cookie (`sessionCookie`). Cookie-authenticated requests
3846
- * follow the scheme's CSRF rules (`sessionCookie`).
4344
+ * Returns a page of a project's grants.
4345
+ *
4346
+ * Only unrevoked grants this API manages are listed, which bind a user or team
4347
+ * to the viewer, editor or admin role. Expired grants are included, so a client
4348
+ * can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.
4349
+ * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
4350
+ * not returned. Requires `project.read`.
4351
+ *
4352
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
4353
+ * secrets it additionally requires `user.read` and `team.read`. A user-bound
4354
+ * console session that already passed the project check may expand without those scopes.
4355
+ *
4356
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4357
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
3847
4358
  * @summary Query grants
3848
4359
  */
3849
4360
  export const queryGrants = async (queryGrantsBody: QueryGrantsBody,
@@ -3899,23 +4410,23 @@ export const getGetGrantUrl = (id: string,
3899
4410
  }
3900
4411
 
3901
4412
  /**
3902
- * Loads a grant by `(project_id, id)` that this API manages (user or team
3903
- * bound to viewer, editor, or admin) and that has not been revoked.
3904
- * "Active" here means not revoked: expired grants stay visible so the
3905
- * client can DELETE before re-granting the same binding. Authorization
3906
- * still ignores expired grants. Grants are not registered in
3907
- * `resource_scope_index`; project scope is required on the query (same as
3908
- * events). Misses, revoked rows, project-secret setup (`sk_proj`),
3909
- * owning-team (`relation=team`) rows, and cross-project ids return 404.
3910
- * `expand=principal` adds envelope fields on `user` or `team` and requires
3911
- * `user.read` and `team.read` in addition to `project.read` for project
3912
- * secrets. A user-bound Console session that already passed the project
3913
- * Check may expand without those scopes.
3914
- *
3915
- * Accepts either a project secret (`oauth2`) or a user-bound Console
3916
- * session cookie (`sessionCookie`). Cookie-authenticated requests
3917
- * follow the scheme's CSRF rules (`sessionCookie`).
3918
- * @summary Get grant
4413
+ * Returns a grant by ID, when this API manages it and it has not been revoked.
4414
+ *
4415
+ * This API manages grants that bind a user or team to the viewer, editor or
4416
+ * admin role. An expired grant is still returned, so you can revoke it with
4417
+ * `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still
4418
+ * ignores expired grants. Send `project_id` as well as the grant ID.
4419
+ * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
4420
+ * (`relation=team`) rows and grants of another project all return `404`.
4421
+ *
4422
+ * `expand=principal` adds envelope fields on `user` or `team`. For project
4423
+ * secrets it requires `user.read` and `team.read` in addition to `project.read`.
4424
+ * A user-bound console session that already passed the project check may expand
4425
+ * without those scopes.
4426
+ *
4427
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4428
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
4429
+ * @summary Get a grant by ID
3919
4430
  */
3920
4431
  export const getGrant = async (id: string,
3921
4432
  params: GetGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<GetGrant200> => {
@@ -3948,15 +4459,15 @@ export const getDeleteGrantUrl = (id: string,
3948
4459
  }
3949
4460
 
3950
4461
  /**
3951
- * Soft-revokes a grant this API manages and emits `authz.revoked`.
3952
- * Already-revoked, missing, project-secret setup, and owning-team grants
3953
- * return 404. The row is not un-revoked. Expired grants can still be
3954
- * revoked so the unique binding can be reused.
4462
+ * Revokes a grant this API manages and emits `authz.revoked`.
3955
4463
  *
3956
- * Accepts either a project secret (`oauth2`) or a user-bound Console
3957
- * session cookie (`sessionCookie`). Cookie-authenticated requests
3958
- * follow the scheme's CSRF rules (`sessionCookie`).
3959
- * @summary Revoke grant
4464
+ * A revoked grant cannot be restored: create a new one. Already-revoked, missing,
4465
+ * project-secret setup and owning-team grants return `404`. Expired grants can
4466
+ * still be revoked, so the binding can be reused.
4467
+ *
4468
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4469
+ * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
4470
+ * @summary Revoke a grant
3960
4471
  */
3961
4472
  export const deleteGrant = async (id: string,
3962
4473
  params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
@@ -3972,11 +4483,337 @@ export const deleteGrant = async (id: string,
3972
4483
 
3973
4484
 
3974
4485
 
4486
+ export const getCreateInvitationUrl = (params: CreateInvitationParams,) => {
4487
+ const normalizedParams = new URLSearchParams();
4488
+
4489
+ Object.entries(params || {}).forEach(([key, value]) => {
4490
+
4491
+ if (value !== undefined) {
4492
+ normalizedParams.append(key, value === null ? 'null' : String(value))
4493
+ }
4494
+ });
4495
+
4496
+ const stringifiedParams = normalizedParams.toString();
4497
+
4498
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations?${stringifiedParams}` : `${getApiBaseUrl()}/invitations`
4499
+ }
4500
+
4501
+ /**
4502
+ * Creates an invitation for a project, or replaces an existing one, and
4503
+ * returns the invitation and its one-shot link.
4504
+ *
4505
+ * Send `type` and the object named after it. `project_member` takes
4506
+ * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
4507
+ * and `role`, and answers `501` `not_implemented` until team invitations
4508
+ * ship. Optional `metadata.name` labels who the link is for. Optional
4509
+ * `replaces_invitation_id` replaces that invitation: the new row keeps the
4510
+ * original's `journey_id`, and a pending original is deleted in the same
4511
+ * transaction.
4512
+ *
4513
+ * The `link` appears only in this response. Share it out of band; whoever
4514
+ * opens it and is signed in can redeem the role. It expires in 72 hours.
4515
+ * Refused for an unclaimed project, on a server without a platform project,
4516
+ * and when the project's pending-invitation cap is reached.
4517
+ *
4518
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4519
+ * (`sessionCookie`). Creation needs the same project `admin` check as
4520
+ * `createGrant` (`POST /grants`). Cookie requests follow that scheme's CSRF
4521
+ * rules.
4522
+ * @summary Create an invitation
4523
+ */
4524
+ export const createInvitation = async (createInvitationBody: CreateInvitationBody,
4525
+ params: CreateInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateInvitation201> => {
4526
+
4527
+ const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
4528
+ if (!h) return {};
4529
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
4530
+ if (Symbol.iterator in h) {
4531
+ return Object.fromEntries(
4532
+ Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
4533
+ );
4534
+ }
4535
+ const headers: Record<string, string | readonly string[]> = {};
4536
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
4537
+ if (value !== undefined) headers[name] = value;
4538
+ }
4539
+ return headers;
4540
+ };
4541
+ return customFetch<CreateInvitation201>(getCreateInvitationUrl(params),
4542
+ {
4543
+ ...options,
4544
+ method: 'POST',
4545
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
4546
+ body: JSON.stringify(createInvitationBody)
4547
+ }
4548
+ );}
4549
+
4550
+
4551
+
4552
+ export const getListInvitationsUrl = (params: ListInvitationsParams,) => {
4553
+ const normalizedParams = new URLSearchParams();
4554
+
4555
+ Object.entries(params || {}).forEach(([key, value]) => {
4556
+
4557
+ if (value !== undefined) {
4558
+ normalizedParams.append(key, value === null ? 'null' : String(value))
4559
+ }
4560
+ });
4561
+
4562
+ const stringifiedParams = normalizedParams.toString();
4563
+
4564
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations?${stringifiedParams}` : `${getApiBaseUrl()}/invitations`
4565
+ }
4566
+
4567
+ /**
4568
+ * Lists a project's invitations, newest first, in any status, paginated with
4569
+ * `limit` and `page_token`.
4570
+ *
4571
+ * Optional `status` and `type` filters narrow the page. `expired` is derived
4572
+ * on read from `expires_at`. Authenticate with a project secret (`oauth2`) or
4573
+ * a console session cookie (`sessionCookie`). Listing needs the same project
4574
+ * `admin` check as `createGrant` (`POST /grants`).
4575
+ * @summary List invitations
4576
+ */
4577
+ export const listInvitations = async (params: ListInvitationsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListInvitations200> => {
4578
+
4579
+ return customFetch<ListInvitations200>(getListInvitationsUrl(params),
4580
+ {
4581
+ ...options,
4582
+ method: 'GET'
4583
+
4584
+
4585
+ }
4586
+ );}
4587
+
4588
+
4589
+
4590
+ export const getLookupInvitationUrl = () => {
4591
+
4592
+
4593
+
4594
+
4595
+ return `${getApiBaseUrl()}/invitations/lookup`
4596
+ }
4597
+
4598
+ /**
4599
+ * Returns a lean view of the invitation for the signed-in accept page:
4600
+ * project, role, inviter and expiry.
4601
+ *
4602
+ * Send the plaintext token from the invitation link fragment. Every unknown
4603
+ * or finished token answers the same opaque `404`. Authenticate with a
4604
+ * platform-project user session cookie (`sessionCookie`). Lookup is a read:
4605
+ * same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
4606
+ * reject still do). The call is rate-limited.
4607
+ * @summary Look up an invitation by token
4608
+ */
4609
+ export const lookupInvitation = async (lookupInvitationBody: LookupInvitationBody, options?: Parameters<typeof customFetch>[1]): Promise<LookupInvitation200> => {
4610
+
4611
+ const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
4612
+ if (!h) return {};
4613
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
4614
+ if (Symbol.iterator in h) {
4615
+ return Object.fromEntries(
4616
+ Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
4617
+ );
4618
+ }
4619
+ const headers: Record<string, string | readonly string[]> = {};
4620
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
4621
+ if (value !== undefined) headers[name] = value;
4622
+ }
4623
+ return headers;
4624
+ };
4625
+ return customFetch<LookupInvitation200>(getLookupInvitationUrl(),
4626
+ {
4627
+ ...options,
4628
+ method: 'POST',
4629
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
4630
+ body: JSON.stringify(lookupInvitationBody)
4631
+ }
4632
+ );}
4633
+
4634
+
4635
+
4636
+ export const getAcceptInvitationUrl = () => {
4637
+
4638
+
4639
+
4640
+
4641
+ return `${getApiBaseUrl()}/invitations/accept`
4642
+ }
4643
+
4644
+ /**
4645
+ * Accepts a pending invitation for the signed-in user and returns the updated
4646
+ * invitation.
4647
+ *
4648
+ * Send the plaintext token from the invitation link fragment. Acceptance
4649
+ * grants the invitation's role (a project grant for `project_member`) when
4650
+ * the invitation is pending and unexpired, the project is active and claimed,
4651
+ * and the creator still holds `admin` unless `created_by` is null. The
4652
+ * inviter cannot accept their own invitation. Every unknown or finished token
4653
+ * answers the same opaque `404`.
4654
+ *
4655
+ * Authenticate with a platform-project user session cookie (`sessionCookie`).
4656
+ * Cookie requests follow that scheme's CSRF rules. The call is rate-limited.
4657
+ * @summary Accept an invitation
4658
+ */
4659
+ export const acceptInvitation = async (acceptInvitationBody: AcceptInvitationBody, options?: Parameters<typeof customFetch>[1]): Promise<AcceptInvitation200> => {
4660
+
4661
+ const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
4662
+ if (!h) return {};
4663
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
4664
+ if (Symbol.iterator in h) {
4665
+ return Object.fromEntries(
4666
+ Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
4667
+ );
4668
+ }
4669
+ const headers: Record<string, string | readonly string[]> = {};
4670
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
4671
+ if (value !== undefined) headers[name] = value;
4672
+ }
4673
+ return headers;
4674
+ };
4675
+ return customFetch<AcceptInvitation200>(getAcceptInvitationUrl(),
4676
+ {
4677
+ ...options,
4678
+ method: 'POST',
4679
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
4680
+ body: JSON.stringify(acceptInvitationBody)
4681
+ }
4682
+ );}
4683
+
4684
+
4685
+
4686
+ export const getRejectInvitationUrl = () => {
4687
+
4688
+
4689
+
4690
+
4691
+ return `${getApiBaseUrl()}/invitations/reject`
4692
+ }
4693
+
4694
+ /**
4695
+ * Declines a pending invitation for the signed-in user and returns the
4696
+ * updated invitation with status `rejected`.
4697
+ *
4698
+ * Send the plaintext token from the invitation link fragment. Metadata is
4699
+ * cleared. Every unknown or finished token answers the same opaque `404`.
4700
+ * Authenticate with a platform-project user session cookie (`sessionCookie`).
4701
+ * Cookie requests follow that scheme's CSRF rules. The call is rate-limited.
4702
+ * @summary Decline an invitation
4703
+ */
4704
+ export const rejectInvitation = async (rejectInvitationBody: RejectInvitationBody, options?: Parameters<typeof customFetch>[1]): Promise<RejectInvitation200> => {
4705
+
4706
+ const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
4707
+ if (!h) return {};
4708
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
4709
+ if (Symbol.iterator in h) {
4710
+ return Object.fromEntries(
4711
+ Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
4712
+ );
4713
+ }
4714
+ const headers: Record<string, string | readonly string[]> = {};
4715
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
4716
+ if (value !== undefined) headers[name] = value;
4717
+ }
4718
+ return headers;
4719
+ };
4720
+ return customFetch<RejectInvitation200>(getRejectInvitationUrl(),
4721
+ {
4722
+ ...options,
4723
+ method: 'POST',
4724
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
4725
+ body: JSON.stringify(rejectInvitationBody)
4726
+ }
4727
+ );}
4728
+
4729
+
4730
+
4731
+ export const getGetInvitationUrl = (id: string,
4732
+ params: GetInvitationParams,) => {
4733
+ const normalizedParams = new URLSearchParams();
4734
+
4735
+ Object.entries(params || {}).forEach(([key, value]) => {
4736
+
4737
+ if (value !== undefined) {
4738
+ normalizedParams.append(key, value === null ? 'null' : String(value))
4739
+ }
4740
+ });
4741
+
4742
+ const stringifiedParams = normalizedParams.toString();
4743
+
4744
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(id))}`
4745
+ }
4746
+
4747
+ /**
4748
+ * Returns one invitation by ID for the project named by `project_id`.
4749
+ *
4750
+ * The response never includes the redeem token or the create-time `link`.
4751
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4752
+ * (`sessionCookie`). Reading needs the same project `admin` check as
4753
+ * `createGrant` (`POST /grants`).
4754
+ * @summary Get an invitation
4755
+ */
4756
+ export const getInvitation = async (id: string,
4757
+ params: GetInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<GetInvitation200> => {
4758
+
4759
+ return customFetch<GetInvitation200>(getGetInvitationUrl(id,params),
4760
+ {
4761
+ ...options,
4762
+ method: 'GET'
4763
+
4764
+
4765
+ }
4766
+ );}
4767
+
4768
+
4769
+
4770
+ export const getCancelInvitationUrl = (id: string,
4771
+ params: CancelInvitationParams,) => {
4772
+ const normalizedParams = new URLSearchParams();
4773
+
4774
+ Object.entries(params || {}).forEach(([key, value]) => {
4775
+
4776
+ if (value !== undefined) {
4777
+ normalizedParams.append(key, value === null ? 'null' : String(value))
4778
+ }
4779
+ });
4780
+
4781
+ const stringifiedParams = normalizedParams.toString();
4782
+
4783
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(id))}`
4784
+ }
4785
+
4786
+ /**
4787
+ * Deletes a pending invitation. Its link can no longer be redeemed. Only a
4788
+ * `pending` invitation can be cancelled; a finished invitation answers the
4789
+ * same opaque `404` as a miss. Expired invitations keep their row until a
4790
+ * later cleanup job removes them.
4791
+ *
4792
+ * Authenticate with a project secret (`oauth2`) or a console session cookie
4793
+ * (`sessionCookie`). Cancelling needs the same project `admin` check as
4794
+ * `createGrant` (`POST /grants`). Cookie requests follow that scheme's CSRF
4795
+ * rules.
4796
+ * @summary Cancel an invitation
4797
+ */
4798
+ export const cancelInvitation = async (id: string,
4799
+ params: CancelInvitationParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
4800
+
4801
+ return customFetch<void>(getCancelInvitationUrl(id,params),
4802
+ {
4803
+ ...options,
4804
+ method: 'DELETE'
4805
+
4806
+
4807
+ }
4808
+ );}
4809
+
4810
+
4811
+
3975
4812
  export const getListEventsUrl = (params: ListEventsParams,) => {
3976
4813
  const normalizedParams = new URLSearchParams();
3977
4814
 
3978
4815
  Object.entries(params || {}).forEach(([key, value]) => {
3979
- const explodeParameters = ["category","event_type"];
4816
+ const explodeParameters = ["category","event_type","operation_id","status_class"];
3980
4817
 
3981
4818
  if (Array.isArray(value) && explodeParameters.includes(key)) {
3982
4819
  value.forEach((v) => {
@@ -3996,17 +4833,28 @@ export const getListEventsUrl = (params: ListEventsParams,) => {
3996
4833
  }
3997
4834
 
3998
4835
  /**
3999
- * Returns project-scoped audit events, newest-first by keyset on
4000
- * `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
4001
- * Requires `events.read`.
4002
- *
4003
- * Pre-claim projects return an empty list (events are stored but not
4004
- * visible until claim succeeds). Team-scoped credentials see only events
4005
- * whose emit-time `team_id` matches the credential team (enforced when
4006
- * team-scoped tokens exist).
4007
- *
4008
- * Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
4009
- * see docs/design/api/events-catalog.md.
4836
+ * Lists a project's audit events, newest first. Pass `order=asc` for oldest
4837
+ * first. Requires `events.read`.
4838
+ *
4839
+ * A project that is not claimed yet returns an empty list: its events are
4840
+ * stored but stay invisible until the
4841
+ * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds. The deployment's
4842
+ * platform operators read them from the start.
4843
+ *
4844
+ * Team-scoped credentials see only the events whose `team_id` matches the
4845
+ * credential's team. Team-scoped credentials are not issued today.
4846
+ *
4847
+ * Each item carries an `event_type` that says which type of event it is, and
4848
+ * the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).
4849
+ *
4850
+ * Filters combine. These are answered from an index and fill their pages: no
4851
+ * filter, `category`, `event_type`, `status_class`, `operation_id` with or
4852
+ * without `status_class`, `request_id`, `flow_id`, and `session_id`,
4853
+ * `entity_id`, `actor_id` or `entity_type` with or without `category`, each
4854
+ * with or without the time bounds. Any other filter or combination is
4855
+ * matched event by event, over at most a few thousand events per request.
4856
+ * Such a page can hold fewer events than `limit`, or none, and still carry
4857
+ * `next_page_token`: keep passing the token until a response has none.
4010
4858
  * @summary List events
4011
4859
  */
4012
4860
  export const listEvents = async (params: ListEventsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListEvents200> => {
@@ -4039,12 +4887,17 @@ export const getGetEventUrl = (id: string,
4039
4887
  }
4040
4888
 
4041
4889
  /**
4042
- * Loads a single event by `(project_id, id)`. Requires `events.read`.
4043
- * Events are not registered in `resource_scope_index`; project scope is
4044
- * required on the query (ADR 049). Misses and cross-project ids return 404.
4890
+ * Returns one event of a project by its ID. Requires `events.read`.
4045
4891
  *
4046
- * Pre-claim projects return 404 (stored events stay invisible until claim).
4047
- * @summary Get event by ID
4892
+ * Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its
4893
+ * `project_id`. An unknown ID and the ID of another project's event both
4894
+ * answer `404`.
4895
+ *
4896
+ * A project that is not claimed yet also answers `404`: its events are
4897
+ * stored but stay invisible until the
4898
+ * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds. The deployment's
4899
+ * platform operators read them from the start.
4900
+ * @summary Get an event by ID
4048
4901
  */
4049
4902
  export const getEvent = async (id: string,
4050
4903
  params: GetEventParams, options?: Parameters<typeof customFetch>[1]): Promise<GetEvent200> => {
@@ -4076,12 +4929,13 @@ export const getGetVariablesUrl = (params: GetVariablesParams,) => {
4076
4929
  }
4077
4930
 
4078
4931
  /**
4079
- * Returns the project's variables, keyed by name, each with its value per
4080
- * kind. With `kind`, only that kind's values are returned.
4932
+ * Returns the project's variables, keyed by name, each with its value for
4933
+ * each kind: `primary` for primary origins and `preview` for preview URLs.
4934
+ * With `kind`, only that kind's values are returned.
4081
4935
  *
4082
4936
  * Secret values are not returned. A secret appears as `{"secret": true}`,
4083
4937
  * which says a value is held without disclosing it.
4084
- * @summary Get variables
4938
+ * @summary Get a project's variables
4085
4939
  */
4086
4940
  export const getVariables = async (params: GetVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariables200> => {
4087
4941
 
@@ -4112,25 +4966,29 @@ export const getUpdateVariablesUrl = (params: UpdateVariablesParams,) => {
4112
4966
  }
4113
4967
 
4114
4968
  /**
4115
- * Enters, replaces and removes the project's variables for the requested
4116
- * kind. Names not in the body are untouched. Existing deployments keep the
4117
- * values they froze.
4118
- *
4119
- * Without `kind`, a plain value is written for both kinds. A secret is
4120
- * written for `primary` only and removes the name's `preview` value, so a
4121
- * preview never keeps a plaintext copy; set a preview secret with
4122
- * `kind=preview`. `null` removes the name from both.
4969
+ * Sets, replaces and removes the project's variables for the requested
4970
+ * kind, in one request. Names not in the body are untouched. Existing
4971
+ * deployments keep the values they froze.
4123
4972
  *
4124
4973
  * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
4125
4974
  * stores the value encrypted under the project's active `secret` key, after
4126
4975
  * which it can be referenced but not read back. `null` removes the name
4127
- * (RFC 7386), which is how several variables are removed in one request;
4128
- * removing a name the project does not hold is a no-op rather than an error.
4976
+ * (RFC 7386), which is how several variables are removed in one request.
4977
+ * Removing a name the project does not hold is a no-op rather than an error.
4978
+ *
4979
+ * Without `kind`, a plain value is written for both kinds. A secret is
4980
+ * written for `primary` only and removes the name's `preview` value, so a
4981
+ * preview never keeps a plaintext copy. Set a preview secret with
4982
+ * `kind=preview`. `null` removes the name from both kinds.
4129
4983
  *
4130
4984
  * The body is applied whole or not at all, so a rejected request leaves the
4131
- * project's variables exactly as they were. Writing the same name twice
4132
- * replaces the value rather than duplicating it, which makes a retry safe.
4133
- * @summary Update variables
4985
+ * project's variables exactly as they were. Fix what the error reports and
4986
+ * send the request again. Writing the same name twice replaces the value
4987
+ * rather than duplicating it, which makes a retry safe.
4988
+ *
4989
+ * Each kind written records a `variable.set` event, and each kind removed a
4990
+ * `variable.removed` event. The value never appears in either.
4991
+ * @summary Update a project's variables
4134
4992
  */
4135
4993
  export const updateVariables = async (updateVariablesBody: UpdateVariablesBody,
4136
4994
  params: UpdateVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<UpdateVariables200> => {
@@ -4177,10 +5035,14 @@ export const getGetVariableUrl = (variableName: string,
4177
5035
  }
4178
5036
 
4179
5037
  /**
4180
- * Reads one variable by name, with its value per kind. A name with no
4181
- * value for the requested kind answers `var.not_found`. A secret reads
4182
- * back as `{"secret": true}`.
4183
- * @summary Get a variable
5038
+ * Returns one variable by name, with its value for each kind. A variable
5039
+ * holds a value per kind: `primary` for primary origins and `preview` for
5040
+ * preview URLs.
5041
+ *
5042
+ * Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists
5043
+ * it. A name with no value for the requested kind answers `var.not_found`;
5044
+ * set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
5045
+ * @summary Get a variable by name
4184
5046
  */
4185
5047
  export const getVariable = async (variableName: string,
4186
5048
  params: GetVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariable200> => {
@@ -4213,10 +5075,15 @@ export const getDeleteVariableUrl = (variableName: string,
4213
5075
  }
4214
5076
 
4215
5077
  /**
4216
- * Removes a variable for the requested kind, or for both kinds without
4217
- * `kind`. A name with no value for that kind answers `var.not_found`.
4218
- * Existing deployments keep the values they froze.
4219
- * @summary Delete a variable
5078
+ * Deletes a variable for the requested kind, or for both kinds without
5079
+ * `kind`. Existing deployments keep the values they froze. Each kind removed
5080
+ * records a `variable.removed` event.
5081
+ *
5082
+ * A name with no value for that kind answers `var.not_found`: there is
5083
+ * nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To
5084
+ * remove several names in one request, or to remove a name that may already
5085
+ * be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).
5086
+ * @summary Delete a variable by name
4220
5087
  */
4221
5088
  export const deleteVariable = async (variableName: string,
4222
5089
  params: DeleteVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {
@@ -4248,34 +5115,58 @@ export const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {
4248
5115
  }
4249
5116
 
4250
5117
  /**
4251
- * Makes a release live on its targets by recording a deployment,
4252
- * atomically: on success every target serves the release and the record
4253
- * exists; on failure nothing changes and no record is written.
4254
- *
4255
- * Name the release by exactly one of `release_id` or `content_hash`; it
4256
- * must already exist in the project. `targets` is `primary` or preview
4257
- * URLs. The deployment freezes the project's variable values for its kind,
4258
- * with no fallback between primary and preview values.
5118
+ * Creates a deployment: it makes a release live on the project's primary
5119
+ * origins or on preview URLs.
5120
+ *
5121
+ * A release is a snapshot of the project's configuration. A deployment makes
5122
+ * a release live on origins and freezes the project's variable values for
5123
+ * its kind, with no fallback between primary and preview values. The call is
5124
+ * atomic: on success every target serves the release and the deployment is
5125
+ * recorded, and it records a `deployment.created` event. On failure nothing
5126
+ * changes and nothing is recorded.
5127
+ *
5128
+ * Name the release by exactly one of `release_id` or `content_hash`. Take the
5129
+ * release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or
5130
+ * `listReleases` (`GET /releases`) returns. The release must already exist in the project.
5131
+ * `targets` is `primary`, which means every primary origin, or a list of
5132
+ * preview URLs. `["primary"]`, which clients released before this shape
5133
+ * send, still deploys to every primary origin until 1.0.0; its answer
5134
+ * carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.
5135
+ *
5136
+ * The project's newest primary deployment also serves every request with no
5137
+ * `Origin`, such as a backend, a native app or the CLI, and the console's
5138
+ * login preview of a project that does not list the console's origin. A
5139
+ * preview URL serves only itself.
5140
+ *
5141
+ * `primary` records the project's current primary origins. One added later
5142
+ * serves nothing until the next deployment to `primary`; one removed stops
5143
+ * being served at once.
4259
5144
  *
4260
5145
  * A deployment to `primary` changes nothing when the project's newest
4261
5146
  * primary deployment has the same release and frozen values and covers
4262
- * exactly the current primary origins: the call answers `200` with that
4263
- * deployment. Any other request writes a new deployment and answers `201`;
4264
- * for preview URLs that record renews their previews.
4265
- *
4266
- * Failures:
4267
- * - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;
4268
- * a primary origin named exactly; `primary` mixed with preview URLs;
4269
- * `primary` on a project with no primary origin; `ttl` with `primary`;
4270
- * `ttl` above 365 days (`P365D`).
4271
- * - `400 dep.variables_missing`: a referenced variable has no value for
4272
- * the kind; `details` names the kind and every missing variable.
4273
- * - `403 proj.origin_not_allowed`: a preview URL matches no preview
4274
- * pattern, or is a loopback URL.
4275
- * - `404 rel.not_found`: the release id or digest names no release here.
4276
- * - `409 dep.conflict`: `expected_deployment_id` is not the deployment
4277
- * this write replaces; `details.deployment` is that deployment.
4278
- * - `409 rel.revoked`: the release is revoked.
5147
+ * exactly the current primary origins. The call then answers `200` with that
5148
+ * deployment. Any other request writes a new deployment and answers `201`.
5149
+ * For preview URLs, that deployment renews their previews.
5150
+ *
5151
+ * If the request is refused, fix the cause and send it again:
5152
+ * - `400 dep.invalid`: the request names both or neither of `release_id` and
5153
+ * `content_hash`, names a primary origin among the preview URLs, sends
5154
+ * `primary` for a project with no primary origin, sends
5155
+ * `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct
5156
+ * the request.
5157
+ * - `400 dep.variables_missing`: a variable the release references has no
5158
+ * value for the kind. `details` names the kind and every missing variable.
5159
+ * Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.
5160
+ * - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
5161
+ * of the project, or is a loopback URL. Use a URL that matches a pattern.
5162
+ * - `404 rel.not_found`: the release ID or digest names no release in this
5163
+ * project. List the project's releases with `listReleases`.
5164
+ * - `409 dep.conflict`: `expected_deployment_id` is not the deployment this
5165
+ * write replaces, and `details.deployment` is that deployment. Inspect it,
5166
+ * then retry with its ID as `expected_deployment_id`, or stop.
5167
+ * - `409 rel.revoked`: the release is revoked and cannot be deployed. Change
5168
+ * the configuration and build a new release, or deploy a release that is
5169
+ * not revoked. Rebuilding unchanged content returns the same revoked release.
4279
5170
  * @summary Create a deployment
4280
5171
  */
4281
5172
  export const createDeployment = async (createDeploymentBody: CreateDeploymentBody,
@@ -4330,19 +5221,26 @@ export const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {
4330
5221
  }
4331
5222
 
4332
5223
  /**
4333
- * Lists what ran where, and when.
4334
- *
4335
- * By default the list is the history, newest first: every deployment of
4336
- * the project with every target it made the release live on. With
4337
- * `origin`, the history of that origin alone.
4338
- *
4339
- * With `live=true`, the list is what is served now, newest first: the
4340
- * project's newest primary deployment, narrowed to origins that are still
4341
- * primary, and the newest deployment to each live preview URL, narrowed to
4342
- * the URLs it still serves. Combined with `origin`, it is the one
4343
- * deployment that origin serves, or empty.
4344
- *
4345
- * `expand: ["release"]` embeds the release each deployment made live; it
5224
+ * Lists the project's deployments: the history of what ran where and when,
5225
+ * or with `live=true` what is served now.
5226
+ *
5227
+ * A deployment makes a release live on origins. By default the list is the
5228
+ * history, newest first: every deployment of the project, with every target
5229
+ * it made the release live on. With `origin`, it is the history of that
5230
+ * origin alone.
5231
+ *
5232
+ * With `live=true`, the list is what is served now, newest first. It holds
5233
+ * the project's newest primary deployment with every origin it names, an
5234
+ * origin the project no longer lists included: that deployment also serves
5235
+ * requests with no `Origin`, so it stays live. It also holds the newest
5236
+ * deployment to each live preview URL, narrowed to the URLs it still
5237
+ * serves. Combined with `origin`, it is the one deployment that origin
5238
+ * serves, or empty, as it is for an origin the project no longer lists.
5239
+ *
5240
+ * The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),
5241
+ * `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
5242
+ *
5243
+ * `expand: ["release"]` embeds the release each deployment made live. It
4346
5244
  * requires `release.read` and does not change the ordering or the page
4347
5245
  * tokens.
4348
5246
  * @summary List deployments
@@ -4377,13 +5275,17 @@ export const getGetDeploymentByIdUrl = (deploymentId: string,
4377
5275
  }
4378
5276
 
4379
5277
  /**
4380
- * Reads one deployment record.
5278
+ * Returns one deployment: the release it made live, the origins it made it
5279
+ * live on, and whether they still serve it.
5280
+ *
5281
+ * Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or
5282
+ * `listDeployments` (`GET /deployments`) returns.
4381
5283
  *
4382
- * The lookup is scoped to the project in `project_id`: a deployment id
4383
- * belonging to another project answers not found exactly as an unknown id
5284
+ * The lookup is scoped to the project in `project_id`. A deployment ID
5285
+ * belonging to another project answers not found exactly as an unknown ID
4384
5286
  * does, so the endpoint cannot be used to probe for deployments in projects
4385
5287
  * the caller cannot read.
4386
- * @summary Get a deployment by id
5288
+ * @summary Get a deployment by ID
4387
5289
  */
4388
5290
  export const getDeploymentById = async (deploymentId: string,
4389
5291
  params: GetDeploymentByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeploymentById200> => {
@@ -4416,20 +5318,44 @@ export const getRollbackDeploymentUrl = (deploymentId: string,
4416
5318
  }
4417
5319
 
4418
5320
  /**
4419
- * Re-deploys the release of the deployment named in the path to `primary`,
4420
- * with the variable values it froze: a new deployment with `reason:
4421
- * rollback` and `rollback_to` naming it. Like any deployment to `primary`,
4422
- * it covers every current primary origin. Idempotent like a deployment to
4423
- * `primary`: when nothing would change it answers `200` with the newest
4424
- * primary deployment.
4425
- *
4426
- * Failures:
4427
- * - `400 dep.invalid`: the deployment went to preview URLs (deploy to the
4428
- * preview again instead), or the project has no primary origin.
4429
- * - `404 dep.not_found`: no deployment of the project has that id.
5321
+ * Rolls back to an earlier deployment by deploying its release again to the
5322
+ * same origins, with the same variable values. A listed primary origin that
5323
+ * deployment left out serves nothing until the next deployment to `primary`,
5324
+ * and one it named serves its release again, even when the live deployment
5325
+ * left it out.
5326
+ *
5327
+ * A release is a snapshot of the project's configuration. A deployment makes
5328
+ * a release live on origins and freezes the project's variable values with
5329
+ * it.
5330
+ *
5331
+ * The deployment ID in the path is the deployment to return to, not the one
5332
+ * to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists
5333
+ * the newest deployment first.
5334
+ *
5335
+ * A rollback is a new deployment, not an undo. It has `reason: rollback`,
5336
+ * and its `rollback_to` names the deployment you returned to. It uses the
5337
+ * variable values that deployment froze, not the project's current ones, and
5338
+ * creates no release.
5339
+ *
5340
+ * To guard against a deployment that landed since you looked, set
5341
+ * `expected_deployment_id` in the request body to the newest primary
5342
+ * deployment, the one live now. The call then fails with `409 dep.conflict`
5343
+ * if another deployment has replaced it.
5344
+ *
5345
+ * A rollback is idempotent like a deployment to `primary`. When nothing
5346
+ * would change, it answers `200` with the newest primary deployment.
5347
+ *
5348
+ * If the request is refused:
5349
+ * - `400 dep.invalid`: the deployment went to preview URLs, which cannot be
5350
+ * rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`).
5351
+ * - `404 dep.not_found`: no deployment of the project has that ID, or that
5352
+ * deployment recorded no variables to restore, so it cannot be a rollback
5353
+ * target. List them with `listDeployments` and pick another.
4430
5354
  * - `409 dep.conflict`: `expected_deployment_id` is not the project's
4431
- * newest primary deployment; `details.deployment` is that deployment.
4432
- * - `409 rel.revoked`: the release is revoked.
5355
+ * newest primary deployment, and `details.deployment` is that deployment.
5356
+ * Inspect it, then retry with its ID, or stop.
5357
+ * - `409 rel.revoked`: the release of that deployment is revoked and cannot
5358
+ * be deployed. Roll back to a deployment of a release that is not revoked.
4433
5359
  * @summary Roll back to a deployment
4434
5360
  */
4435
5361
  export const rollbackDeployment = async (deploymentId: string,
@@ -4481,6 +5407,8 @@ export const getGetDeploymentVariablesUrl = (deploymentId: string,
4481
5407
  * Returns the variable values the deployment froze when it was made. Later
4482
5408
  * changes to the project's variables do not affect them. A secret reads
4483
5409
  * back as `{"secret": true}`.
5410
+ *
5411
+ * Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
4484
5412
  * @summary Get a deployment's variables
4485
5413
  */
4486
5414
  export const getDeploymentVariables = async (deploymentId: string,