@zitadel/api 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (715) hide show
  1. package/README.md +1 -1
  2. package/dist/{api-factory-C5b1Gqwv.mjs → api-factory-32Zz3s86.mjs} +8 -6
  3. package/dist/api-factory-32Zz3s86.mjs.map +1 -0
  4. package/dist/{api-factory-Dt5lUjyu.d.mts → api-factory-DbVEEqxe.d.mts} +8 -3
  5. package/dist/{api-factory-Dt5lUjyu.d.mts.map → api-factory-DbVEEqxe.d.mts.map} +1 -1
  6. package/dist/{fetch-B-lgjlrf.d.mts → fetch-BzLvdm6C.d.mts} +14 -1
  7. package/dist/fetch-BzLvdm6C.d.mts.map +1 -0
  8. package/dist/generated/endpoints/zitadelNextGen.d.mts +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.mjs +984 -625
  10. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +1 -1
  12. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +9 -9
  13. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  14. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1024 -659
  15. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  16. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +4797 -4436
  17. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  18. package/dist/generated/model/index.d.mts +1 -1
  19. package/dist/generated/model/index.mjs.map +1 -1
  20. package/dist/generated/operations.d.mts +9 -0
  21. package/dist/generated/operations.d.mts.map +1 -1
  22. package/dist/generated/operations.mjs +266 -153
  23. package/dist/generated/operations.mjs.map +1 -1
  24. package/dist/{index-DGQY1rfH.d.mts → index-BX80Kl-8.d.mts} +9071 -7707
  25. package/dist/{index-DGQY1rfH.d.mts.map → index-BX80Kl-8.d.mts.map} +1 -1
  26. package/dist/runtime/api-factory.d.mts +1 -1
  27. package/dist/runtime/api-factory.mjs +1 -1
  28. package/dist/runtime/config.d.mts +1 -1
  29. package/dist/runtime/config.mjs +1 -1
  30. package/dist/runtime/fetch.d.mts +1 -1
  31. package/dist/runtime/fetch.mjs +1 -0
  32. package/dist/runtime/fetch.mjs.map +1 -1
  33. package/dist/runtime/paging.d.mts +106 -23
  34. package/dist/runtime/paging.d.mts.map +1 -1
  35. package/dist/runtime/paging.mjs +132 -32
  36. package/dist/runtime/paging.mjs.map +1 -1
  37. package/dist/zitadelNextGen-CFrFhq_h.d.mts +1726 -0
  38. package/dist/zitadelNextGen-CFrFhq_h.d.mts.map +1 -0
  39. package/package.json +3 -3
  40. package/src/generated/endpoints/zitadelNextGen.faker.ts +3 -3
  41. package/src/generated/endpoints/zitadelNextGen.ts +1009 -650
  42. package/src/generated/endpoints/zitadelNextGen.zod.ts +4812 -4443
  43. package/src/generated/model/addOrigin201.ts +5 -0
  44. package/src/generated/model/addOrigin201Kind.ts +3 -0
  45. package/src/generated/model/addOriginBody.ts +17 -5
  46. package/src/generated/model/addOriginBodyKind.ts +4 -0
  47. package/src/generated/model/beginUserPasskeyRegistration201.ts +3 -3
  48. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +6 -6
  49. package/src/generated/model/buildRelease200.ts +15 -15
  50. package/src/generated/model/buildRelease200Metadata.ts +8 -8
  51. package/src/generated/model/buildRelease200PointersItem.ts +13 -12
  52. package/src/generated/model/buildRelease200PointersItemKind.ts +3 -3
  53. package/src/generated/model/buildRelease201.ts +15 -15
  54. package/src/generated/model/buildRelease201Metadata.ts +8 -8
  55. package/src/generated/model/buildRelease201PointersItem.ts +13 -12
  56. package/src/generated/model/buildRelease201PointersItemKind.ts +3 -3
  57. package/src/generated/model/buildRelease400.ts +1 -3
  58. package/src/generated/model/buildRelease400DetailsResourcesItem.ts +3 -3
  59. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +3 -3
  60. package/src/generated/model/buildReleaseBody.ts +19 -16
  61. package/src/generated/model/buildReleaseBodyBundle.ts +31 -28
  62. package/src/generated/model/buildReleaseBodyBundleBranding.ts +24 -22
  63. package/src/generated/model/buildReleaseBodyBundleBrandingLayout.ts +8 -7
  64. package/src/generated/model/buildReleaseBodyBundleBrandingShape.ts +1 -1
  65. package/src/generated/model/buildReleaseBodyBundleBrandingTheme.ts +5 -7
  66. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +7 -7
  67. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDarkPalette.ts +63 -62
  68. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +7 -7
  69. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLightPalette.ts +63 -62
  70. package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +4 -4
  71. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +47 -26
  72. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemAudience.ts +1 -1
  73. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +2 -2
  74. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItem.ts +46 -28
  75. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItem.ts +9 -7
  76. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemActionsItemKind.ts +2 -2
  77. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +11 -10
  78. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -1
  79. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesKind.ts +4 -3
  80. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitions.ts +40 -20
  81. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsAction.ts +8 -5
  82. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemTransitionsPurpose.ts +7 -8
  83. package/src/generated/model/buildReleaseBodyBundleIdpsItem.ts +7 -7
  84. package/src/generated/model/buildReleaseBodyBundleIdpsItemClaimMapping.ts +1 -1
  85. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidc.ts +7 -7
  86. package/src/generated/model/buildReleaseBodyBundleIdpsItemOidcStaticAuthorizeParameters.ts +1 -1
  87. package/src/generated/model/buildReleaseBodyBundleIdpsItemProvisioning.ts +1 -1
  88. package/src/generated/model/buildReleaseBodyBundleIdpsItemVerifiedClaims.ts +1 -1
  89. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +3 -3
  90. package/src/generated/model/buildReleaseBodyBundleSchemasItem.ts +23 -22
  91. package/src/generated/model/buildReleaseParams.ts +3 -1
  92. package/src/generated/model/completeClaim409.ts +2 -2
  93. package/src/generated/model/completeClaimBody.ts +1 -1
  94. package/src/generated/model/createAuthAttempt201.ts +23 -22
  95. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +9 -7
  96. package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +1 -1
  97. package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +2 -2
  98. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +5 -5
  99. package/src/generated/model/createAuthAttempt201State.ts +2 -2
  100. package/src/generated/model/createAuthAttemptBody.ts +3 -3
  101. package/src/generated/model/createAuthAttemptDefault.ts +63 -0
  102. package/src/generated/model/createBranding201.ts +10 -10
  103. package/src/generated/model/createBranding201Branding.ts +24 -22
  104. package/src/generated/model/createBranding201BrandingLayout.ts +8 -7
  105. package/src/generated/model/createBranding201BrandingShape.ts +1 -1
  106. package/src/generated/model/createBranding201BrandingTheme.ts +5 -7
  107. package/src/generated/model/createBranding201BrandingThemeDark.ts +7 -7
  108. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +63 -62
  109. package/src/generated/model/createBranding201BrandingThemeLight.ts +7 -7
  110. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +63 -62
  111. package/src/generated/model/createBranding201BrandingTypography.ts +4 -4
  112. package/src/generated/model/createBrandingBody.ts +24 -22
  113. package/src/generated/model/createBrandingBodyLayout.ts +8 -7
  114. package/src/generated/model/createBrandingBodyShape.ts +1 -1
  115. package/src/generated/model/createBrandingBodyTheme.ts +5 -7
  116. package/src/generated/model/createBrandingBodyThemeDark.ts +7 -7
  117. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +63 -62
  118. package/src/generated/model/createBrandingBodyThemeLight.ts +7 -7
  119. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +63 -62
  120. package/src/generated/model/createBrandingBodyTypography.ts +4 -4
  121. package/src/generated/model/createBrandingParams.ts +3 -1
  122. package/src/generated/model/createDeployment200.ts +16 -14
  123. package/src/generated/model/createDeployment200Metadata.ts +1 -1
  124. package/src/generated/model/createDeployment200Release.ts +15 -15
  125. package/src/generated/model/createDeployment200ReleaseMetadata.ts +8 -8
  126. package/src/generated/model/createDeployment200ReleasePointersItem.ts +13 -12
  127. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +3 -3
  128. package/src/generated/model/createDeployment200Status.ts +3 -3
  129. package/src/generated/model/createDeployment201.ts +16 -14
  130. package/src/generated/model/createDeployment201Metadata.ts +1 -1
  131. package/src/generated/model/createDeployment201Release.ts +15 -15
  132. package/src/generated/model/createDeployment201ReleaseMetadata.ts +8 -8
  133. package/src/generated/model/createDeployment201ReleasePointersItem.ts +13 -12
  134. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +3 -3
  135. package/src/generated/model/createDeployment201Status.ts +3 -3
  136. package/src/generated/model/createDeployment409.ts +41 -40
  137. package/src/generated/model/createDeploymentBody.ts +4 -10
  138. package/src/generated/model/createDeploymentParams.ts +3 -1
  139. package/src/generated/model/createFlow201.ts +16 -12
  140. package/src/generated/model/createFlow201Branding.ts +24 -22
  141. package/src/generated/model/createFlow201BrandingLayout.ts +8 -7
  142. package/src/generated/model/createFlow201BrandingShape.ts +1 -1
  143. package/src/generated/model/createFlow201BrandingTheme.ts +5 -7
  144. package/src/generated/model/createFlow201BrandingThemeDark.ts +7 -7
  145. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +63 -62
  146. package/src/generated/model/createFlow201BrandingThemeLight.ts +7 -7
  147. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +63 -62
  148. package/src/generated/model/createFlow201BrandingTypography.ts +4 -4
  149. package/src/generated/model/createFlow201Step.ts +36 -31
  150. package/src/generated/model/createFlow201StepActionsItem.ts +3 -3
  151. package/src/generated/model/createFlow201StepActionsItemKind.ts +1 -1
  152. package/src/generated/model/createFlow201StepChallenge.ts +4 -3
  153. package/src/generated/model/createFlow201StepComplete.ts +1 -1
  154. package/src/generated/model/createFlow201StepFieldsItem.ts +14 -13
  155. package/src/generated/model/createFlow201StepFieldsItemType.ts +1 -1
  156. package/src/generated/model/createFlow201StepFieldsItemValidation.ts +2 -2
  157. package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +1 -1
  158. package/src/generated/model/createFlow201StepGates.ts +10 -8
  159. package/src/generated/model/createFlow201StepGatesConfig.ts +1 -1
  160. package/src/generated/model/createFlow201StepGatesKind.ts +4 -3
  161. package/src/generated/model/createFlow201StepIdentifier.ts +6 -6
  162. package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
  163. package/src/generated/model/createFlow201StepTexts.ts +1 -1
  164. package/src/generated/model/createFlowBody.ts +7 -2
  165. package/src/generated/model/createFlowBodyHint.ts +4 -1
  166. package/src/generated/model/createFlowBodyPurpose.ts +3 -0
  167. package/src/generated/model/createFlowDefault.ts +9 -0
  168. package/src/generated/model/createFlowDefinition201.ts +22 -10
  169. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +47 -26
  170. package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +1 -1
  171. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +2 -2
  172. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +46 -28
  173. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +9 -7
  174. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  175. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +11 -10
  176. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +1 -1
  177. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +4 -3
  178. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +40 -20
  179. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  180. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  181. package/src/generated/model/createFlowDefinition201UserSchema.ts +2 -2
  182. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +2 -1
  183. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +21 -20
  184. package/src/generated/model/createFlowDefinitionBody.ts +22 -12
  185. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +47 -26
  186. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +1 -1
  187. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +2 -2
  188. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +46 -28
  189. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +9 -7
  190. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  191. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +11 -10
  192. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +1 -1
  193. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +4 -3
  194. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +40 -20
  195. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  196. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  197. package/src/generated/model/createGrant201.ts +14 -14
  198. package/src/generated/model/createGrant201ObjectType.ts +1 -1
  199. package/src/generated/model/createGrant201Relation.ts +1 -1
  200. package/src/generated/model/createGrant201Team.ts +7 -7
  201. package/src/generated/model/createGrant201TeamStatus.ts +2 -2
  202. package/src/generated/model/createGrant201User.ts +5 -5
  203. package/src/generated/model/createGrant201UserMetadata.ts +10 -11
  204. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +11 -12
  205. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  206. package/src/generated/model/createGrantBody.ts +12 -12
  207. package/src/generated/model/createGrantBodyRelation.ts +1 -1
  208. package/src/generated/model/createGrantBodyTeam.ts +3 -3
  209. package/src/generated/model/createGrantBodyUser.ts +5 -5
  210. package/src/generated/model/createGrantDefault.ts +9 -0
  211. package/src/generated/model/createGrantParams.ts +3 -1
  212. package/src/generated/model/createHandoff200.ts +9 -10
  213. package/src/generated/model/createIdp200.ts +10 -9
  214. package/src/generated/model/createIdp200Definition.ts +7 -7
  215. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
  216. package/src/generated/model/createIdp200DefinitionOidc.ts +7 -7
  217. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  218. package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
  219. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
  220. package/src/generated/model/createIdp201.ts +10 -9
  221. package/src/generated/model/createIdp201Definition.ts +7 -7
  222. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
  223. package/src/generated/model/createIdp201DefinitionOidc.ts +7 -7
  224. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  225. package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
  226. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
  227. package/src/generated/model/createIdpBody.ts +1 -1
  228. package/src/generated/model/createIdpBodyIdp.ts +7 -7
  229. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
  230. package/src/generated/model/createIdpBodyIdpOidc.ts +7 -7
  231. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +1 -1
  232. package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
  233. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
  234. package/src/generated/model/createIdpParams.ts +3 -1
  235. package/src/generated/model/createProject201.ts +10 -5
  236. package/src/generated/model/createProject201OriginsItem.ts +17 -5
  237. package/src/generated/model/createProject201OriginsItemKind.ts +4 -0
  238. package/src/generated/model/createProjectBody.ts +5 -6
  239. package/src/generated/model/createProjectBodyOriginsItem.ts +17 -5
  240. package/src/generated/model/createProjectBodyOriginsItemKind.ts +4 -0
  241. package/src/generated/model/createRelease200.ts +15 -15
  242. package/src/generated/model/createRelease200Metadata.ts +8 -8
  243. package/src/generated/model/createRelease200PointersItem.ts +13 -12
  244. package/src/generated/model/createRelease200PointersItemKind.ts +3 -3
  245. package/src/generated/model/createRelease201.ts +15 -15
  246. package/src/generated/model/createRelease201Metadata.ts +8 -8
  247. package/src/generated/model/createRelease201PointersItem.ts +13 -12
  248. package/src/generated/model/createRelease201PointersItemKind.ts +3 -3
  249. package/src/generated/model/createReleaseBody.ts +7 -11
  250. package/src/generated/model/createReleaseBodyPointersItem.ts +8 -8
  251. package/src/generated/model/createReleaseBodyPointersItemKind.ts +3 -3
  252. package/src/generated/model/createReleaseParams.ts +3 -1
  253. package/src/generated/model/createSchema201.ts +1 -1
  254. package/src/generated/model/createSchemaBody.ts +23 -22
  255. package/src/generated/model/createSchemaParams.ts +4 -2
  256. package/src/generated/model/createSession201.ts +8 -8
  257. package/src/generated/model/createSession201Session.ts +16 -16
  258. package/src/generated/model/createSession201SessionFactorsItem.ts +2 -2
  259. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +5 -5
  260. package/src/generated/model/createSession201SessionState.ts +1 -1
  261. package/src/generated/model/createSession201SessionUser.ts +5 -5
  262. package/src/generated/model/createSessionBody.ts +1 -1
  263. package/src/generated/model/createTeam201.ts +2 -2
  264. package/src/generated/model/createTeam201Status.ts +2 -2
  265. package/src/generated/model/createTeamBody.ts +1 -1
  266. package/src/generated/model/createTeamParams.ts +3 -1
  267. package/src/generated/model/createUser201.ts +28 -29
  268. package/src/generated/model/createUser201Metadata.ts +10 -11
  269. package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +11 -12
  270. package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +2 -2
  271. package/src/generated/model/createUser201TeamsItem.ts +4 -4
  272. package/src/generated/model/createUserBody.ts +9 -8
  273. package/src/generated/model/createUserParams.ts +4 -2
  274. package/src/generated/model/deleteGrantParams.ts +3 -1
  275. package/src/generated/model/deleteVariableParams.ts +3 -1
  276. package/src/generated/model/evaluatePolicy200.ts +5 -4
  277. package/src/generated/model/evaluatePolicy200Violations.ts +4 -3
  278. package/src/generated/model/evaluatePolicyBody.ts +8 -9
  279. package/src/generated/model/evaluatePolicyParams.ts +3 -1
  280. package/src/generated/model/exchangeHandoff200.ts +8 -8
  281. package/src/generated/model/exchangeHandoff200Session.ts +16 -16
  282. package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +2 -2
  283. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +5 -5
  284. package/src/generated/model/exchangeHandoff200SessionState.ts +1 -1
  285. package/src/generated/model/exchangeHandoff200SessionUser.ts +5 -5
  286. package/src/generated/model/exchangeHandoffBody.ts +7 -5
  287. package/src/generated/model/exchangeHandoffParams.ts +3 -1
  288. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +1 -1
  289. package/src/generated/model/getAuthAttempt200.ts +23 -22
  290. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +9 -7
  291. package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +1 -1
  292. package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +2 -2
  293. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +5 -5
  294. package/src/generated/model/getAuthAttempt200State.ts +2 -2
  295. package/src/generated/model/getBrandingById200.ts +10 -10
  296. package/src/generated/model/getBrandingById200Branding.ts +24 -22
  297. package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -7
  298. package/src/generated/model/getBrandingById200BrandingShape.ts +1 -1
  299. package/src/generated/model/getBrandingById200BrandingTheme.ts +5 -7
  300. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +7 -7
  301. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +63 -62
  302. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +7 -7
  303. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +63 -62
  304. package/src/generated/model/getBrandingById200BrandingTypography.ts +4 -4
  305. package/src/generated/model/getClaimStatus200.ts +4 -5
  306. package/src/generated/model/getClaimStatusParams.ts +1 -1
  307. package/src/generated/model/getClaimWindow200.ts +6 -6
  308. package/src/generated/model/getClaimWindowParams.ts +1 -1
  309. package/src/generated/model/getDeploymentById200.ts +16 -14
  310. package/src/generated/model/getDeploymentById200Metadata.ts +1 -1
  311. package/src/generated/model/getDeploymentById200Release.ts +15 -15
  312. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +8 -8
  313. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +13 -12
  314. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +3 -3
  315. package/src/generated/model/getDeploymentById200Status.ts +3 -3
  316. package/src/generated/model/getDeploymentByIdParams.ts +3 -1
  317. package/src/generated/model/getDeploymentVariablesParams.ts +3 -1
  318. package/src/generated/model/getEvent200.ts +1574 -1323
  319. package/src/generated/model/getEventParams.ts +3 -1
  320. package/src/generated/model/getFlowDefinition200.ts +22 -10
  321. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +47 -26
  322. package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +1 -1
  323. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +2 -2
  324. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +46 -28
  325. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +9 -7
  326. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +2 -2
  327. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +11 -10
  328. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -1
  329. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +4 -3
  330. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +40 -20
  331. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +8 -5
  332. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  333. package/src/generated/model/getFlowDefinition200UserSchema.ts +2 -2
  334. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +2 -1
  335. package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +21 -20
  336. package/src/generated/model/getFlowStep200.ts +16 -12
  337. package/src/generated/model/getFlowStep200Branding.ts +24 -22
  338. package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -7
  339. package/src/generated/model/getFlowStep200BrandingShape.ts +1 -1
  340. package/src/generated/model/getFlowStep200BrandingTheme.ts +5 -7
  341. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +7 -7
  342. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +63 -62
  343. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +7 -7
  344. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +63 -62
  345. package/src/generated/model/getFlowStep200BrandingTypography.ts +4 -4
  346. package/src/generated/model/getFlowStep200Step.ts +36 -31
  347. package/src/generated/model/getFlowStep200StepActionsItem.ts +3 -3
  348. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +1 -1
  349. package/src/generated/model/getFlowStep200StepChallenge.ts +4 -3
  350. package/src/generated/model/getFlowStep200StepComplete.ts +1 -1
  351. package/src/generated/model/getFlowStep200StepFieldsItem.ts +14 -13
  352. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +1 -1
  353. package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +2 -2
  354. package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  355. package/src/generated/model/getFlowStep200StepGates.ts +10 -8
  356. package/src/generated/model/getFlowStep200StepGatesConfig.ts +1 -1
  357. package/src/generated/model/getFlowStep200StepGatesKind.ts +4 -3
  358. package/src/generated/model/getFlowStep200StepIdentifier.ts +6 -6
  359. package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
  360. package/src/generated/model/getFlowStep200StepTexts.ts +1 -1
  361. package/src/generated/model/getFlowStepDefault.ts +18 -0
  362. package/src/generated/model/getGrant200.ts +14 -14
  363. package/src/generated/model/getGrant200ObjectType.ts +1 -1
  364. package/src/generated/model/getGrant200Relation.ts +1 -1
  365. package/src/generated/model/getGrant200Team.ts +7 -7
  366. package/src/generated/model/getGrant200TeamStatus.ts +2 -2
  367. package/src/generated/model/getGrant200User.ts +5 -5
  368. package/src/generated/model/getGrant200UserMetadata.ts +10 -11
  369. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +11 -12
  370. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  371. package/src/generated/model/getGrantDefault.ts +0 -9
  372. package/src/generated/model/getGrantExpandItem.ts +8 -5
  373. package/src/generated/model/getGrantParams.ts +6 -3
  374. package/src/generated/model/getIdpById200.ts +10 -9
  375. package/src/generated/model/getIdpById200Definition.ts +7 -7
  376. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
  377. package/src/generated/model/getIdpById200DefinitionOidc.ts +7 -7
  378. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  379. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
  380. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
  381. package/src/generated/model/getIdpByIdParams.ts +3 -1
  382. package/src/generated/model/getIdpRevisionById200.ts +10 -9
  383. package/src/generated/model/getIdpRevisionById200Definition.ts +7 -7
  384. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
  385. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +7 -7
  386. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  387. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
  388. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
  389. package/src/generated/model/getIdpRevisionByIdParams.ts +3 -1
  390. package/src/generated/model/getMyPasswordState200.ts +2 -2
  391. package/src/generated/model/getMySession200.ts +16 -16
  392. package/src/generated/model/getMySession200FactorsItem.ts +2 -2
  393. package/src/generated/model/getMySession200FactorsItemPayload.ts +5 -5
  394. package/src/generated/model/getMySession200State.ts +1 -1
  395. package/src/generated/model/getMySession200User.ts +5 -5
  396. package/src/generated/model/getMySessionCsrfToken200.ts +1 -1
  397. package/src/generated/model/getMyUser200.ts +28 -29
  398. package/src/generated/model/getMyUser200Metadata.ts +10 -11
  399. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  400. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  401. package/src/generated/model/getMyUser200TeamsItem.ts +4 -4
  402. package/src/generated/model/getMyUserSchema200.ts +4 -4
  403. package/src/generated/model/getMyUserSchema200Metadata.ts +2 -1
  404. package/src/generated/model/getMyUserSchema200Schema.ts +21 -20
  405. package/src/generated/model/getPolicy200.ts +3 -3
  406. package/src/generated/model/getPolicyParams.ts +3 -1
  407. package/src/generated/model/getPolicyRevision200.ts +3 -3
  408. package/src/generated/model/getPolicyRevisionParams.ts +3 -1
  409. package/src/generated/model/getProject200.ts +34 -30
  410. package/src/generated/model/getReleaseById200.ts +15 -15
  411. package/src/generated/model/getReleaseById200Metadata.ts +8 -8
  412. package/src/generated/model/getReleaseById200PointersItem.ts +13 -12
  413. package/src/generated/model/getReleaseById200PointersItemKind.ts +3 -3
  414. package/src/generated/model/getReleaseByIdParams.ts +3 -1
  415. package/src/generated/model/getSchemaById200.ts +4 -4
  416. package/src/generated/model/getSchemaById200Metadata.ts +2 -1
  417. package/src/generated/model/getSchemaById200Schema.ts +21 -20
  418. package/src/generated/model/getSchemaByIdParams.ts +3 -3
  419. package/src/generated/model/getSession200.ts +16 -16
  420. package/src/generated/model/getSession200FactorsItem.ts +2 -2
  421. package/src/generated/model/getSession200FactorsItemPayload.ts +5 -5
  422. package/src/generated/model/getSession200State.ts +1 -1
  423. package/src/generated/model/getSession200User.ts +5 -5
  424. package/src/generated/model/getTeam200.ts +2 -2
  425. package/src/generated/model/getTeam200Status.ts +2 -2
  426. package/src/generated/model/getUserByID200.ts +28 -29
  427. package/src/generated/model/getUserByID200Metadata.ts +10 -11
  428. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  429. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  430. package/src/generated/model/getUserByID200TeamsItem.ts +4 -4
  431. package/src/generated/model/getUserByIDParams.ts +4 -3
  432. package/src/generated/model/getUserPasswordState200.ts +2 -2
  433. package/src/generated/model/getVariable200.ts +4 -4
  434. package/src/generated/model/getVariable200Preview.ts +2 -2
  435. package/src/generated/model/getVariable200Primary.ts +2 -2
  436. package/src/generated/model/getVariableParams.ts +3 -1
  437. package/src/generated/model/getVariables200.ts +4 -4
  438. package/src/generated/model/getVariables200Preview.ts +2 -2
  439. package/src/generated/model/getVariables200Primary.ts +2 -2
  440. package/src/generated/model/getVariablesParams.ts +3 -1
  441. package/src/generated/model/initClaim201.ts +3 -3
  442. package/src/generated/model/initClaim409.ts +2 -2
  443. package/src/generated/model/issueChallenge201.ts +9 -7
  444. package/src/generated/model/issueChallenge201State.ts +1 -1
  445. package/src/generated/model/issueChallengeBody.ts +2 -2
  446. package/src/generated/model/listBrandingParams.ts +3 -1
  447. package/src/generated/model/listDeployments200DeploymentsItem.ts +16 -14
  448. package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +1 -1
  449. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +15 -15
  450. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +8 -8
  451. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +13 -12
  452. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +3 -3
  453. package/src/generated/model/listDeployments200DeploymentsItemStatus.ts +3 -3
  454. package/src/generated/model/listDeploymentsExpandItem.ts +4 -4
  455. package/src/generated/model/listDeploymentsParams.ts +3 -1
  456. package/src/generated/model/listEvents200.ts +1 -1
  457. package/src/generated/model/listEvents200DataItem.ts +1574 -1323
  458. package/src/generated/model/listEventsParams.ts +34 -6
  459. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +22 -10
  460. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +47 -26
  461. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +1 -1
  462. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +2 -2
  463. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +46 -28
  464. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +9 -7
  465. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +2 -2
  466. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +11 -10
  467. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -1
  468. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +4 -3
  469. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +40 -20
  470. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +8 -5
  471. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +7 -8
  472. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +2 -2
  473. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +2 -1
  474. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +21 -20
  475. package/src/generated/model/listFlowDefinitionsExpandItem.ts +2 -2
  476. package/src/generated/model/listFlowDefinitionsParams.ts +8 -6
  477. package/src/generated/model/listIdpRevisions200.ts +1 -2
  478. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +10 -9
  479. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +7 -7
  480. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
  481. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +7 -7
  482. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  483. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
  484. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -1
  485. package/src/generated/model/listIdpRevisionsParams.ts +3 -1
  486. package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +2 -2
  487. package/src/generated/model/listMyProjects200.ts +1 -1
  488. package/src/generated/model/listMyProjects200ProjectsItem.ts +2 -3
  489. package/src/generated/model/listMyProjects200ProjectsItemOriginsItem.ts +17 -5
  490. package/src/generated/model/listMyProjects200ProjectsItemOriginsItemKind.ts +4 -0
  491. package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +12 -15
  492. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  493. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +15 -18
  494. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  495. package/src/generated/model/listMyTeams200TeamsItem.ts +4 -4
  496. package/src/generated/model/listPolicies200.ts +2 -2
  497. package/src/generated/model/listPolicies200PoliciesItem.ts +3 -3
  498. package/src/generated/model/listPoliciesParams.ts +3 -1
  499. package/src/generated/model/listPolicyRevisions200.ts +1 -1
  500. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +3 -3
  501. package/src/generated/model/listPolicyRevisionsParams.ts +3 -1
  502. package/src/generated/model/listPreviews200PreviewsItem.ts +4 -5
  503. package/src/generated/model/listProjectAdmins200AdminsItem.ts +3 -3
  504. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +13 -15
  505. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +5 -5
  506. package/src/generated/model/listReleases200.ts +1 -1
  507. package/src/generated/model/listReleases200ReleasesItem.ts +4 -4
  508. package/src/generated/model/listReleases200ReleasesItemMetadata.ts +8 -8
  509. package/src/generated/model/listReleasesParams.ts +4 -2
  510. package/src/generated/model/listSchemas200.ts +1 -1
  511. package/src/generated/model/listSchemas200SchemasItem.ts +4 -4
  512. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +2 -1
  513. package/src/generated/model/listSchemas200SchemasItemSchema.ts +21 -20
  514. package/src/generated/model/listSchemasExpandItem.ts +2 -2
  515. package/src/generated/model/listSchemasParams.ts +7 -5
  516. package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +2 -2
  517. package/src/generated/model/listUserTeams200TeamsItem.ts +4 -4
  518. package/src/generated/model/patchMyUser200.ts +28 -29
  519. package/src/generated/model/patchMyUser200Metadata.ts +10 -11
  520. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +11 -12
  521. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  522. package/src/generated/model/patchMyUser200TeamsItem.ts +4 -4
  523. package/src/generated/model/patchMyUserBody.ts +2 -2
  524. package/src/generated/model/patchProject200.ts +34 -30
  525. package/src/generated/model/patchProjectBody.ts +3 -3
  526. package/src/generated/model/patchProjectBodyPasswordHash.ts +15 -18
  527. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +1 -1
  528. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +15 -18
  529. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +4 -4
  530. package/src/generated/model/patchUserByID200.ts +28 -29
  531. package/src/generated/model/patchUserByID200Metadata.ts +10 -11
  532. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +11 -12
  533. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +2 -2
  534. package/src/generated/model/patchUserByID200TeamsItem.ts +4 -4
  535. package/src/generated/model/patchUserByIDBody.ts +21 -13
  536. package/src/generated/model/publishPolicy201.ts +3 -3
  537. package/src/generated/model/publishPolicyBody.ts +3 -3
  538. package/src/generated/model/publishPolicyParams.ts +3 -1
  539. package/src/generated/model/queryGrants200GrantsItem.ts +14 -14
  540. package/src/generated/model/queryGrants200GrantsItemObjectType.ts +1 -1
  541. package/src/generated/model/queryGrants200GrantsItemRelation.ts +1 -1
  542. package/src/generated/model/queryGrants200GrantsItemTeam.ts +7 -7
  543. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +2 -2
  544. package/src/generated/model/queryGrants200GrantsItemUser.ts +5 -5
  545. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +10 -11
  546. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +11 -12
  547. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +2 -2
  548. package/src/generated/model/queryGrantsBody.ts +2 -3
  549. package/src/generated/model/queryGrantsBodyExpandItem.ts +8 -5
  550. package/src/generated/model/queryGrantsBodyFilterItem.ts +3 -5
  551. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +1 -2
  552. package/src/generated/model/queryGrantsDefault.ts +0 -9
  553. package/src/generated/model/queryGrantsParams.ts +3 -1
  554. package/src/generated/model/queryIdps200.ts +1 -1
  555. package/src/generated/model/queryIdps200IdpsItem.ts +10 -9
  556. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +7 -7
  557. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
  558. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +7 -7
  559. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  560. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
  561. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
  562. package/src/generated/model/queryIdpsBody.ts +2 -2
  563. package/src/generated/model/queryIdpsBodyFilterItem.ts +5 -7
  564. package/src/generated/model/queryIdpsBodyFilterItemField.ts +2 -2
  565. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +1 -2
  566. package/src/generated/model/queryIdpsBodySorting.ts +2 -2
  567. package/src/generated/model/queryIdpsBodySortingField.ts +2 -2
  568. package/src/generated/model/queryIdpsParams.ts +3 -1
  569. package/src/generated/model/queryProjects200ProjectsItem.ts +2 -3
  570. package/src/generated/model/queryProjects200ProjectsItemOriginsItem.ts +17 -5
  571. package/src/generated/model/queryProjects200ProjectsItemOriginsItemKind.ts +4 -0
  572. package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +12 -15
  573. package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +1 -1
  574. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +15 -18
  575. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +4 -4
  576. package/src/generated/model/queryProjectsBodyFilterItem.ts +3 -5
  577. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +1 -2
  578. package/src/generated/model/querySessions200SessionsItem.ts +16 -16
  579. package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +2 -2
  580. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +5 -5
  581. package/src/generated/model/querySessions200SessionsItemState.ts +1 -1
  582. package/src/generated/model/querySessions200SessionsItemUser.ts +5 -5
  583. package/src/generated/model/querySessionsBodyFilterItem.ts +4 -6
  584. package/src/generated/model/querySessionsBodyFilterItemField.ts +1 -1
  585. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +1 -2
  586. package/src/generated/model/querySessionsBodySorting.ts +2 -3
  587. package/src/generated/model/querySessionsBodySortingField.ts +2 -3
  588. package/src/generated/model/querySessionsParams.ts +3 -1
  589. package/src/generated/model/queryTeams200TeamsItem.ts +2 -2
  590. package/src/generated/model/queryTeams200TeamsItemStatus.ts +2 -2
  591. package/src/generated/model/queryTeamsBodyFilterItem.ts +3 -5
  592. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +1 -2
  593. package/src/generated/model/queryTeamsParams.ts +2 -2
  594. package/src/generated/model/queryUsers200UsersItem.ts +28 -29
  595. package/src/generated/model/queryUsers200UsersItemMetadata.ts +10 -11
  596. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +11 -12
  597. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +2 -2
  598. package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +4 -4
  599. package/src/generated/model/queryUsersBody.ts +2 -2
  600. package/src/generated/model/queryUsersBodyExpandItem.ts +8 -8
  601. package/src/generated/model/queryUsersBodyFilterItem.ts +13 -16
  602. package/src/generated/model/queryUsersBodyFilterItemField.ts +10 -11
  603. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +1 -2
  604. package/src/generated/model/queryUsersBodySorting.ts +4 -5
  605. package/src/generated/model/queryUsersBodySortingField.ts +4 -5
  606. package/src/generated/model/queryUsersParams.ts +2 -2
  607. package/src/generated/model/removeOriginBody.ts +2 -2
  608. package/src/generated/model/revokeRelease200.ts +15 -15
  609. package/src/generated/model/revokeRelease200Metadata.ts +8 -8
  610. package/src/generated/model/revokeRelease200PointersItem.ts +13 -12
  611. package/src/generated/model/revokeRelease200PointersItemKind.ts +3 -3
  612. package/src/generated/model/revokeReleaseParams.ts +3 -1
  613. package/src/generated/model/rollbackDeployment200.ts +16 -14
  614. package/src/generated/model/rollbackDeployment200Metadata.ts +1 -1
  615. package/src/generated/model/rollbackDeployment200Release.ts +15 -15
  616. package/src/generated/model/rollbackDeployment200ReleaseMetadata.ts +8 -8
  617. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +13 -12
  618. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +3 -3
  619. package/src/generated/model/rollbackDeployment200Status.ts +3 -3
  620. package/src/generated/model/rollbackDeployment201.ts +16 -14
  621. package/src/generated/model/rollbackDeployment201Metadata.ts +1 -1
  622. package/src/generated/model/rollbackDeployment201Release.ts +15 -15
  623. package/src/generated/model/rollbackDeployment201ReleaseMetadata.ts +8 -8
  624. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +13 -12
  625. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +3 -3
  626. package/src/generated/model/rollbackDeployment201Status.ts +3 -3
  627. package/src/generated/model/rollbackDeployment409.ts +41 -40
  628. package/src/generated/model/rollbackDeploymentParams.ts +3 -1
  629. package/src/generated/model/setUserPasswordBody.ts +1 -1
  630. package/src/generated/model/setUserPasswordDefault.ts +63 -0
  631. package/src/generated/model/submitFlowStep200.ts +16 -12
  632. package/src/generated/model/submitFlowStep200Branding.ts +24 -22
  633. package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -7
  634. package/src/generated/model/submitFlowStep200BrandingShape.ts +1 -1
  635. package/src/generated/model/submitFlowStep200BrandingTheme.ts +5 -7
  636. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +7 -7
  637. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +63 -62
  638. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +7 -7
  639. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +63 -62
  640. package/src/generated/model/submitFlowStep200BrandingTypography.ts +4 -4
  641. package/src/generated/model/submitFlowStep200Step.ts +36 -31
  642. package/src/generated/model/submitFlowStep200StepActionsItem.ts +3 -3
  643. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +1 -1
  644. package/src/generated/model/submitFlowStep200StepChallenge.ts +4 -3
  645. package/src/generated/model/submitFlowStep200StepComplete.ts +1 -1
  646. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +14 -13
  647. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +1 -1
  648. package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +2 -2
  649. package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +1 -1
  650. package/src/generated/model/submitFlowStep200StepGates.ts +10 -8
  651. package/src/generated/model/submitFlowStep200StepGatesConfig.ts +1 -1
  652. package/src/generated/model/submitFlowStep200StepGatesKind.ts +4 -3
  653. package/src/generated/model/submitFlowStep200StepIdentifier.ts +6 -6
  654. package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
  655. package/src/generated/model/submitFlowStep200StepTexts.ts +1 -1
  656. package/src/generated/model/submitFlowStep400.ts +16 -12
  657. package/src/generated/model/submitFlowStep400Branding.ts +24 -22
  658. package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -7
  659. package/src/generated/model/submitFlowStep400BrandingShape.ts +1 -1
  660. package/src/generated/model/submitFlowStep400BrandingTheme.ts +5 -7
  661. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +7 -7
  662. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +63 -62
  663. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +7 -7
  664. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +63 -62
  665. package/src/generated/model/submitFlowStep400BrandingTypography.ts +4 -4
  666. package/src/generated/model/submitFlowStep400Step.ts +36 -31
  667. package/src/generated/model/submitFlowStep400StepActionsItem.ts +3 -3
  668. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +1 -1
  669. package/src/generated/model/submitFlowStep400StepChallenge.ts +4 -3
  670. package/src/generated/model/submitFlowStep400StepComplete.ts +1 -1
  671. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +14 -13
  672. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +1 -1
  673. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +2 -2
  674. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +1 -1
  675. package/src/generated/model/submitFlowStep400StepGates.ts +10 -8
  676. package/src/generated/model/submitFlowStep400StepGatesConfig.ts +1 -1
  677. package/src/generated/model/submitFlowStep400StepGatesKind.ts +4 -3
  678. package/src/generated/model/submitFlowStep400StepIdentifier.ts +6 -6
  679. package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
  680. package/src/generated/model/submitFlowStep400StepTexts.ts +1 -1
  681. package/src/generated/model/submitFlowStepBody.ts +10 -7
  682. package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +2 -2
  683. package/src/generated/model/submitFlowStepBodyGateProofs.ts +1 -1
  684. package/src/generated/model/submitFlowStepDefault.ts +18 -0
  685. package/src/generated/model/updateTeam200.ts +2 -2
  686. package/src/generated/model/updateTeam200Status.ts +2 -2
  687. package/src/generated/model/updateTeamBody.ts +1 -1
  688. package/src/generated/model/updateVariables200.ts +4 -4
  689. package/src/generated/model/updateVariables200Preview.ts +2 -2
  690. package/src/generated/model/updateVariables200Primary.ts +2 -2
  691. package/src/generated/model/updateVariablesBody.ts +14 -14
  692. package/src/generated/model/updateVariablesParams.ts +3 -1
  693. package/src/generated/model/userProperty.ts +5 -8
  694. package/src/generated/model/userPropertyProperties.ts +2 -2
  695. package/src/generated/model/userPropertyXUnique.ts +1 -1
  696. package/src/generated/model/verifyChallengeProof200.ts +23 -22
  697. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +9 -7
  698. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +1 -1
  699. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +2 -2
  700. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +5 -5
  701. package/src/generated/model/verifyChallengeProof200State.ts +2 -2
  702. package/src/generated/model/verifyChallengeProofBody.ts +2 -2
  703. package/src/generated/operations.ts +277 -152
  704. package/src/runtime/api-factory.spec.ts +50 -0
  705. package/src/runtime/api-factory.ts +11 -2
  706. package/src/runtime/base-url.spec.ts +1 -1
  707. package/src/runtime/fetch.ts +16 -0
  708. package/src/runtime/paged.spec.ts +11 -0
  709. package/src/runtime/paged.ts +9 -8
  710. package/src/runtime/paging.spec.ts +164 -39
  711. package/src/runtime/paging.ts +162 -43
  712. package/dist/api-factory-C5b1Gqwv.mjs.map +0 -1
  713. package/dist/fetch-B-lgjlrf.d.mts.map +0 -1
  714. package/dist/zitadelNextGen-BVO4sdKD.d.mts +0 -1367
  715. package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"zitadelNextGen.mjs","names":[],"sources":["../../../src/generated/endpoints/zitadelNextGen.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Zitadel NextGen\n * This is the next generation of the Zitadel identity platform.\n * OpenAPI spec version: 0.0.1\n */\nimport {\n getApiBaseUrl\n} from '../../runtime/base-url';\n\nimport type {\n AddOrigin201,\n AddOriginBody,\n BeginUserPasskeyRegistration201,\n BeginUserPasskeyRegistrationBody,\n BuildRelease200,\n BuildRelease201,\n BuildReleaseBody,\n BuildReleaseParams,\n CompleteClaim200,\n CompleteClaimBody,\n CreateAuthAttempt201,\n CreateAuthAttemptBody,\n CreateBranding201,\n CreateBrandingBody,\n CreateBrandingParams,\n CreateDeployment200,\n CreateDeployment201,\n CreateDeploymentBody,\n CreateDeploymentParams,\n CreateFlow201,\n CreateFlowBody,\n CreateFlowDefinition201,\n CreateFlowDefinitionBody,\n CreateGrant201,\n CreateGrantBody,\n CreateGrantParams,\n CreateHandoff200,\n CreateIdp200,\n CreateIdp201,\n CreateIdpBody,\n CreateIdpParams,\n CreateProject201,\n CreateProjectBody,\n CreateRelease200,\n CreateRelease201,\n CreateReleaseBody,\n CreateReleaseParams,\n CreateSchema201,\n CreateSchemaBody,\n CreateSchemaParams,\n CreateSession201,\n CreateSessionBody,\n CreateTeam201,\n CreateTeamBody,\n CreateTeamParams,\n CreateUser201,\n CreateUserBody,\n CreateUserParams,\n DeleteGrantParams,\n DeleteVariableParams,\n EvaluatePolicy200,\n EvaluatePolicyBody,\n EvaluatePolicyParams,\n ExchangeHandoff200,\n ExchangeHandoffBody,\n ExchangeHandoffParams,\n FinishUserPasskeyRegistration201,\n FinishUserPasskeyRegistrationBody,\n GetAuthAttempt200,\n GetBrandingById200,\n GetClaimStatus200,\n GetClaimStatusParams,\n GetClaimWindow200,\n GetClaimWindowParams,\n GetDeploymentById200,\n GetDeploymentByIdParams,\n GetDeploymentVariables200,\n GetDeploymentVariablesParams,\n GetEvent200,\n GetEventParams,\n GetFlowDefinition200,\n GetFlowStep200,\n GetGrant200,\n GetGrantParams,\n GetIdpById200,\n GetIdpByIdParams,\n GetIdpRevisionById200,\n GetIdpRevisionByIdParams,\n GetLiveDefault,\n GetMyPasswordState200,\n GetMyPasswordStateParams,\n GetMySession200,\n GetMySessionCsrfToken200,\n GetMySessionCsrfTokenParams,\n GetMySessionParams,\n GetMyUser200,\n GetMyUserParams,\n GetMyUserSchema200,\n GetMyUserSchemaParams,\n GetPolicy200,\n GetPolicyParams,\n GetPolicyRevision200,\n GetPolicyRevisionParams,\n GetProject200,\n GetReadyDefault,\n GetReleaseById200,\n GetReleaseByIdParams,\n GetSchemaById200,\n GetSchemaByIdParams,\n GetSession200,\n GetTeam200,\n GetUserByID200,\n GetUserByIDParams,\n GetUserPasswordState200,\n GetVariable200,\n GetVariableParams,\n GetVariables200,\n GetVariablesParams,\n InitClaim201,\n IssueChallenge201,\n IssueChallengeBody,\n ListBranding200Item,\n ListBrandingParams,\n ListDeployments200,\n ListDeploymentsParams,\n ListEvents200,\n ListEventsParams,\n ListFlowDefinitions200,\n ListFlowDefinitionsParams,\n ListIdpRevisions200,\n ListIdpRevisionsParams,\n ListMyIdentityLinks200,\n ListMyIdentityLinksParams,\n ListMyPasskeys200,\n ListMyPasskeysParams,\n ListMyProjects200,\n ListMyProjectsParams,\n ListMyTeams200,\n ListMyTeamsParams,\n ListPolicies200,\n ListPoliciesParams,\n ListPolicyRevisions200,\n ListPolicyRevisionsParams,\n ListPreviews200,\n ListPreviewsParams,\n ListProjectAdmins200,\n ListProjectAdminsParams,\n ListReleases200,\n ListReleasesParams,\n ListSchemas200,\n ListSchemasParams,\n ListUserIdentityLinks200,\n ListUserIdentityLinksParams,\n ListUserPasskeys200,\n ListUserPasskeysParams,\n ListUserTeams200,\n ListUserTeamsParams,\n PatchMyUser200,\n PatchMyUserBody,\n PatchMyUserParams,\n PatchProject200,\n PatchProjectBody,\n PatchUserByID200,\n PatchUserByIDBody,\n PublishPolicy201,\n PublishPolicyBody,\n PublishPolicyParams,\n QueryGrants200,\n QueryGrantsBody,\n QueryGrantsParams,\n QueryIdps200,\n QueryIdpsBody,\n QueryIdpsParams,\n QueryProjects200,\n QueryProjectsBody,\n QuerySessions200,\n QuerySessionsBody,\n QuerySessionsParams,\n QueryTeams200,\n QueryTeamsBody,\n QueryTeamsParams,\n QueryUsers200,\n QueryUsersBody,\n QueryUsersParams,\n RemoveOriginBody,\n RemovePreviewBody,\n RevokeMySessionParams,\n RevokeRelease200,\n RevokeReleaseParams,\n RollbackDeployment200,\n RollbackDeployment201,\n RollbackDeploymentBody,\n RollbackDeploymentParams,\n SetUserPasswordBody,\n SubmitFlowStep200,\n SubmitFlowStepBody,\n UpdateTeam200,\n UpdateTeamBody,\n UpdateVariables200,\n UpdateVariablesBody,\n UpdateVariablesParams,\n VerifyChallengeProof200,\n VerifyChallengeProofBody\n} from '../model';\n\nimport { customFetch } from '../../runtime/fetch.ts';\n\nexport const getGetLiveUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/livez`\n}\n\n/**\n * Answers `ok` while the server process serves HTTP, and checks nothing behind it.\n *\n * Point a liveness probe at `/livez` at the root, where the probes stay,\n * not under `/api/v1`. It never checks the database, so an outage of the\n * database does not restart every instance; `GET /readyz` takes an instance\n * out of rotation instead.\n * @summary Check server liveness\n */\nexport const getLive = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetLiveDefault> => {\n\n return customFetch<GetLiveDefault>(getGetLiveUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetReadyUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/readyz`\n}\n\n/**\n * Answers whether the server can serve requests, which takes its database answering within a second.\n *\n * Point a readiness probe at `/readyz` at the root, where the probes stay,\n * not under `/api/v1`, so that a server whose database does not answer gets\n * no requests until it does. The check is one round trip to the database.\n * @summary Check server readiness\n */\nexport const getReady = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetReadyDefault> => {\n\n return customFetch<GetReadyDefault>(getGetReadyUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateUserUrl = (params: CreateUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users?${stringifiedParams}` : `${getApiBaseUrl()}/users`\n}\n\n/**\n * Creates a user whose attributes satisfy the user schema the request names.\n *\n * The server assigns the user's id. With `team_id`, the user also becomes an\n * active member of that team. A value the schema marks unique that another\n * user already holds is refused with `409`.\n * @summary Create user\n */\nexport const createUser = async (createUserBody: CreateUserBody,\n params: CreateUserParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateUser201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateUser201>(getCreateUserUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createUserBody)\n }\n);}\n\n\n\nexport const getQueryUsersUrl = (params?: QueryUsersParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/query?${stringifiedParams}` : `${getApiBaseUrl()}/users/query`\n}\n\n/**\n * Returns the users of a project, paginated with a cursor.\n *\n * `project_id` names the project to list; without it, the credential's own\n * project is listed.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound Console\n * session cookie (`sessionCookie`). Cookie-authenticated requests\n * follow the scheme's CSRF rules (`sessionCookie`).\n * @summary Query users\n */\nexport const queryUsers = async (queryUsersBody: QueryUsersBody,\n params?: QueryUsersParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryUsers200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryUsers200>(getQueryUsersUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryUsersBody)\n }\n);}\n\n\n\nexport const getGetUserByIDUrl = (userId: string,\n params?: GetUserByIDParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`\n}\n\n/**\n * Returns a user by its id, with the attributes its schema defines.\n *\n * With `team_id`, the user is returned only while they are an active member of\n * that team.\n * @summary Get user by ID\n */\nexport const getUserByID = async (userId: string,\n params?: GetUserByIDParams, options?: Parameters<typeof customFetch>[1]): Promise<GetUserByID200> => {\n\n return customFetch<GetUserByID200>(getGetUserByIDUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPatchUserByIDUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`\n}\n\n/**\n * Partially updates a user's schema-defined attributes, and optionally\n * moves the user to another registered schema. The merged result is\n * validated against the schema before commit. Concurrent writes are\n * last-write-wins.\n * @summary Update user by ID\n */\nexport const patchUserByID = async (userId: string,\n patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchUserByID200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PatchUserByID200>(getPatchUserByIDUrl(userId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(patchUserByIDBody)\n }\n);}\n\n\n\nexport const getDeleteUserByIDUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`\n}\n\n/**\n * Deletes a user, removes them from every team they belong to, and revokes\n * every grant they hold, on any project.\n *\n * The user is removed, not deactivated, and the deletion emits `user.deleted`,\n * plus `authz.revoked` for each grant on that grant's project.\n * With a project secret the request is idempotent: deleting a user that exists\n * in no project succeeds without changing anything. Deleting the last active\n * member of a project's owning team returns 409 `proj.last_owner` and changes\n * nothing.\n * @summary Delete user by ID\n */\nexport const deleteUserByID = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteUserByIDUrl(userId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getListUserIdentityLinksUrl = (userId: string,\n params?: ListUserIdentityLinksParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/identity_links?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/identity_links`\n}\n\n/**\n * The identity provider accounts a sign-in linked to the user, oldest first.\n * The provider's subject and claims are never returned.\n * @summary List the provider accounts linked to a user\n */\nexport const listUserIdentityLinks = async (userId: string,\n params?: ListUserIdentityLinksParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserIdentityLinks200> => {\n\n return customFetch<ListUserIdentityLinks200>(getListUserIdentityLinksUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListUserPasskeysUrl = (userId: string,\n params?: ListUserPasskeysParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys`\n}\n\n/**\n * Returns the passkeys registered for a user, newest first, paginated with a\n * cursor.\n *\n * Each passkey carries its id, its name and when it was registered, never the\n * credential itself.\n * @summary List user passkeys\n */\nexport const listUserPasskeys = async (userId: string,\n params?: ListUserPasskeysParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserPasskeys200> => {\n\n return customFetch<ListUserPasskeys200>(getListUserPasskeysUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations`\n}\n\n/**\n * Starts a WebAuthn registration ceremony for the user and returns the\n * creation options for `navigator.credentials.create()`. Complete the\n * ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within\n * five minutes. Credentials already registered for the user are excluded\n * automatically.\n * @summary Begin passkey registration\n */\nexport const beginUserPasskeyRegistration = async (userId: string,\n beginUserPasskeyRegistrationBody: BeginUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<BeginUserPasskeyRegistration201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<BeginUserPasskeyRegistration201>(getBeginUserPasskeyRegistrationUrl(userId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(beginUserPasskeyRegistrationBody)\n }\n);}\n\n\n\nexport const getFinishUserPasskeyRegistrationUrl = (userId: string,\n registrationId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations/${encodeURIComponent(String(registrationId))}`\n}\n\n/**\n * Verifies the attestation against the ceremony started by\n * `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A\n * rejected attestation counts against the ceremony's failure budget and the\n * ceremony stays open for a retry. An expired ceremony surfaces as\n * `att.stale_challenge`; an unknown or already-consumed registration id\n * surfaces as `att.not_found`.\n * @summary Finish passkey registration\n */\nexport const finishUserPasskeyRegistration = async (userId: string,\n registrationId: string,\n finishUserPasskeyRegistrationBody: FinishUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<FinishUserPasskeyRegistration201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<FinishUserPasskeyRegistration201>(getFinishUserPasskeyRegistrationUrl(userId,registrationId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(finishUserPasskeyRegistrationBody)\n }\n);}\n\n\n\nexport const getGetUserPasswordStateUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/password`\n}\n\n/**\n * Reports when the user's current password was set, and leaves `set_at` out\n * when the user has none. The password and its hash are never returned;\n * setting one is `PUT` on the same path.\n * @summary Get user password state\n */\nexport const getUserPasswordState = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetUserPasswordState200> => {\n\n return customFetch<GetUserPasswordState200>(getGetUserPasswordStateUrl(userId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getSetUserPasswordUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/password`\n}\n\n/**\n * Sets a user's password, hashed with the project's current password hashing\n * policy.\n *\n * The new password replaces the current one, and setting it emits\n * `auth.factor.password.set`.\n * @summary Set user password\n */\nexport const setUserPassword = async (userId: string,\n setUserPasswordBody: SetUserPasswordBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<void>(getSetUserPasswordUrl(userId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(setUserPasswordBody)\n }\n);}\n\n\n\nexport const getListUserTeamsUrl = (userId: string,\n params?: ListUserTeamsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/teams?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/teams`\n}\n\n/**\n * The user's team roster, ordered by team name. Each entry carries the\n * team's name, so a client renders a page without resolving ids one by one.\n *\n * This is the N:N roster and it is not lifecycle ownership: the single team\n * that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`\n * on the user read endpoints. Memberships the user was removed from are not\n * returned.\n * @summary List the teams a user belongs to\n */\nexport const listUserTeams = async (userId: string,\n params?: ListUserTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserTeams200> => {\n\n return customFetch<ListUserTeams200>(getListUserTeamsUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetMyUserUrl = (params?: GetMyUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me?${stringifiedParams}` : `${getApiBaseUrl()}/users/me`\n}\n\n/**\n * Returns the user signed in to the session that authenticates the request.\n *\n * The project and the user both come from the session cookie, so a caller only\n * ever reads their own user.\n *\n * With `project_id`, the user is returned only when the session belongs to\n * that project.\n * @summary Get my user information\n */\nexport const getMyUser = async (params?: GetMyUserParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMyUser200> => {\n\n return customFetch<GetMyUser200>(getGetMyUserUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPatchMyUserUrl = (params?: PatchMyUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me?${stringifiedParams}` : `${getApiBaseUrl()}/users/me`\n}\n\n/**\n * Partially updates the caller's own schema-defined attributes. The merged\n * result is validated against the user's schema before commit. Concurrent\n * writes are last-write-wins.\n *\n * With `project_id`, the user is updated only when the session belongs to\n * that project.\n * @summary Update my user information\n */\nexport const patchMyUser = async (patchMyUserBody: PatchMyUserBody,\n params?: PatchMyUserParams, options?: Parameters<typeof customFetch>[1]): Promise<PatchMyUser200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PatchMyUser200>(getPatchMyUserUrl(params),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(patchMyUserBody)\n }\n);}\n\n\n\nexport const getListMyIdentityLinksUrl = (params?: ListMyIdentityLinksParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/identity_links?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/identity_links`\n}\n\n/**\n * The identity provider accounts a sign-in linked to the signed-in user,\n * oldest first. The provider's subject and claims are never returned.\n *\n * With `project_id`, the links are listed only when the session belongs to\n * that project.\n * @summary List the provider accounts linked to me\n */\nexport const listMyIdentityLinks = async (params?: ListMyIdentityLinksParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyIdentityLinks200> => {\n\n return customFetch<ListMyIdentityLinks200>(getListMyIdentityLinksUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListMyPasskeysUrl = (params?: ListMyPasskeysParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/passkeys?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/passkeys`\n}\n\n/**\n * The signed-in user's own passkeys, newest first, paginated with a cursor.\n * Each passkey carries its id, its name and when it was registered, never the\n * credential itself.\n *\n * With `project_id`, the passkeys are listed only when the session belongs to\n * that project.\n * @summary List my passkeys\n */\nexport const listMyPasskeys = async (params?: ListMyPasskeysParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyPasskeys200> => {\n\n return customFetch<ListMyPasskeys200>(getListMyPasskeysUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetMyPasswordStateUrl = (params?: GetMyPasswordStateParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/password?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/password`\n}\n\n/**\n * Reports when the signed-in user's current password was set, and leaves\n * `set_at` out when they have none. The password and its hash are never\n * returned.\n *\n * With `project_id`, the state is read only when the session belongs to that\n * project.\n * @summary Get my password state\n */\nexport const getMyPasswordState = async (params?: GetMyPasswordStateParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMyPasswordState200> => {\n\n return customFetch<GetMyPasswordState200>(getGetMyPasswordStateUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListMyProjectsUrl = (params?: ListMyProjectsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/projects?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/projects`\n}\n\n/**\n * The projects the signed-in user can act on: those they hold an active grant\n * on, either directly or through a team they are a member of. For a platform\n * operator (ADR 075) that is every project of the deployment. Ordered by\n * project id and paged with an opaque cursor.\n *\n * This is not the same question as `queryProjects`, which answers with the one\n * project the calling credential is bound to. Here the session is the caller\n * and the grants are the answer, so the list spans projects.\n *\n * With `name_contains`, only the projects whose name contains that text are\n * listed. The search runs on the server together with the grants, so it\n * reaches every project the user can act on, however many there are, and\n * pages like the full list.\n *\n * With `project_id`, the projects are listed only when the session belongs to\n * that project. It names the project the session was signed in to, not one to\n * list.\n * @summary List the projects I can act on\n */\nexport const listMyProjects = async (params?: ListMyProjectsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyProjects200> => {\n\n return customFetch<ListMyProjects200>(getListMyProjectsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetMyUserSchemaUrl = (params?: GetMyUserSchemaParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/schema?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/schema`\n}\n\n/**\n * The schema the signed-in user's own record is validated against.\n *\n * With `project_id`, the schema is returned only when the session belongs to\n * that project.\n * @summary Get my user schema\n */\nexport const getMyUserSchema = async (params?: GetMyUserSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMyUserSchema200> => {\n\n return customFetch<GetMyUserSchema200>(getGetMyUserSchemaUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListMyTeamsUrl = (params?: ListMyTeamsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/teams?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/teams`\n}\n\n/**\n * The signed-in user's own team roster, ordered by team name.\n *\n * With `project_id`, the teams are listed only when the session belongs to\n * that project.\n * @summary List the teams I belong to\n */\nexport const listMyTeams = async (params?: ListMyTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyTeams200> => {\n\n return customFetch<ListMyTeams200>(getListMyTeamsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateFlowUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/flow`\n}\n\n/**\n * Resolves a flow definition based on purpose + audience context and returns\n * the first capability step. Creates a new session implicitly unless\n * `session_id` is provided, together with that session's `session_token`\n * (for step-up / reauth on an existing session).\n *\n * The browser `Origin` header selects which deployment serves this attempt:\n * the gate admits the origin against the project's origin patterns and live\n * previews, the newest deployment to that exact origin is the target, and\n * that deployment's release supplies flow definitions, user schemas and\n * branding. The resolved deployment is sealed into the `_zflow` cookie so\n * later steps keep the same configuration. An origin that matches no pattern\n * answers `403` with `proj.origin_not_allowed`; one that matches a preview\n * pattern with no live preview answers `403` with `proj.preview_not_live`;\n * nothing deployed to the target answers `409` with `rel.not_deployed`; a\n * revoked release answers `409` with `rel.revoked`. A request with no\n * `Origin` passes the gate and still needs a deployment target. A loopback\n * origin passes it too, and so does the server's own origin, from which its\n * console previews a project's login; a step submitted from the server's\n * own origin is still refused unless the project lists it.\n *\n * The response contains an `id` field — the flow handle. Use it as the path\n * parameter for all subsequent `/flow/{id}/submit` calls.\n *\n * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing\n * the flow's orchestration state (current step, collected data, history).\n * The server is stateless between requests — all flow state lives in this\n * cookie. The browser sends it automatically on subsequent requests.\n * @summary Start a new flow\n */\nexport const createFlow = async (createFlowBody: CreateFlowBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlow201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateFlow201>(getCreateFlowUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createFlowBody)\n }\n);}\n\n\n\nexport const getGetFlowStepUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/flow/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns the current capability step without advancing the state machine.\n * Useful for page reloads or re-rendering after a network error.\n *\n * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not\n * re-resolve from `Origin`. If that release was revoked since the attempt\n * started, the response is `409` with `rel.revoked`.\n * @summary Get current step (re-render)\n */\nexport const getFlowStep = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowStep200> => {\n\n return customFetch<GetFlowStep200>(getGetFlowStepUrl(id),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getSubmitFlowStepUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/flow/${encodeURIComponent(String(id))}/submit`\n}\n\n/**\n * Submits user input for the current step. The server validates,\n * processes (e.g., verifies a credential), advances the state machine\n * through any invisible steps, and returns the next visible step.\n *\n * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)\n * with the new flow state. The server is stateless — all orchestration\n * state is carried in this cookie between requests.\n *\n * **Important:** The `id` in the response may differ from the `id` used in\n * the request. This happens when a flow pivots (pushes a new flow onto the\n * stack) or when a stacked flow completes (auto-pops to the parent flow).\n * Always use the `id` from the latest response for the next request.\n *\n * ## Flow completion\n *\n * When `step.type` is `complete`, the flow is terminal. The `step.behavior`\n * field tells the frontend what to do:\n *\n * | `behavior` | Action |\n * |------------- |------------------------------------------------------------|\n * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |\n * | `show` | Render the step as a success screen (e.g., registration). |\n *\n * A `complete` step is only returned when the **entire flow stack** is done.\n * If a stacked flow (e.g., recovery pivoted from login) finishes, the server\n * auto-pops to the parent flow and returns the parent's next step — the\n * frontend never sees a `complete` for intermediate flows.\n *\n * ## External sign-in\n *\n * `{action: \"sso\", sso_provider_id, return_target}` on a step that offers\n * `sso_providers` returns the engine-emitted `sso-redirect` step, whose\n * `redirect_url` the frontend navigates to.\n *\n * - The flow state does not change, but `_zflow` is re-sealed like on\n * every response, so its ten-minute window restarts at this submission;\n * the external sign-in and the return must complete within it.\n * - A second `Set-Cookie` line carries the browser-binding cookie the\n * callback checks: `HttpOnly`, `Path=/`, `SameSite=Lax`.\n * - On every host except http loopback it is `__Host-_zsso` with `Secure`.\n * - When the request host is http loopback (local development, where\n * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the\n * `__Host-` prefix is dropped because it requires `Secure`.\n *\n * A connection whose `client_id` is a `${{ NAME }}` reference has it filled\n * from the project's variables. A provider the engine cannot start a\n * sign-in with, including a reference with no variable behind it,\n * re-renders the step with `error.sso_unavailable`.\n *\n * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not\n * re-resolve from `Origin`. If that release was revoked since the attempt\n * started, the response is `409` with `rel.revoked`.\n * @summary Submit step data and advance\n */\nexport const submitFlowStep = async (id: string,\n submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]): Promise<SubmitFlowStep200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(id),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(submitFlowStepBody)\n }\n);}\n\n\n\nexport const getCreateAuthAttemptUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts`\n}\n\n/**\n * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.\n *\n * An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.\n * It accepts factor challenges, verifies proofs, and completes into a session or handoff token.\n *\n * Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,\n * also include session_id and that session's session_token to add factors to an existing session.\n *\n * The project comes from the project secret. A body `project_id` that disagrees\n * answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are\n * filled only when create runs with a runtime resolution already on the\n * context (the flow create path); this HTTP entry point does not resolve\n * Origin or refuse a revoked release itself.\n * @summary Create a new authentication attempt\n */\nexport const createAuthAttempt = async (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttempt201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateAuthAttempt201>(getCreateAuthAttemptUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createAuthAttemptBody)\n }\n);}\n\n\n\nexport const getGetAuthAttemptUrl = (attemptId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}`\n}\n\n/**\n * Polls the current state of an authentication attempt.\n *\n * Returns the attempt's state, available factors for the next challenge,\n * challenges issued so far, and any errors preventing progress.\n *\n * Use this for polling during long-running factor verifications (e.g., waiting for\n * a federated IdP callback or a device flow).\n * @summary Get authentication attempt state\n */\nexport const getAuthAttempt = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetAuthAttempt200> => {\n\n return customFetch<GetAuthAttempt200>(getGetAuthAttemptUrl(attemptId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getIssueChallengeUrl = (attemptId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges`\n}\n\n/**\n * Issues a single-factor verification challenge within an auth attempt.\n *\n * This advances the authentication state machine by requesting a specific factor method\n * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details\n * including method, metadata, and any UI hints. The client then verifies the proof\n * by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.\n * @summary Issue a factor challenge\n */\nexport const issueChallenge = async (attemptId: string,\n issueChallengeBody: IssueChallengeBody, options?: Parameters<typeof customFetch>[1]): Promise<IssueChallenge201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<IssueChallenge201>(getIssueChallengeUrl(attemptId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(issueChallengeBody)\n }\n);}\n\n\n\nexport const getVerifyChallengeProofUrl = (attemptId: string,\n challengeId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges/${encodeURIComponent(String(challengeId))}/verify`\n}\n\n/**\n * Submits a proof (credential, code, assertion) to verify a factor challenge.\n *\n * The proof format depends on the challenge method. For example:\n * - `password` method: { password: \"…\" }\n * - `totp` method: { totp: { code: \"123456\" } }\n * - `passkey` method: { passkey: { assertion: \"…\" } }\n * - `recovery_code` method: { recovery_code: \"…\" }\n *\n * On successful verification, the factor is written to the auth attempt.\n * The attempt moves to the next pending challenge or completes if all required factors are verified.\n * @summary Verify a factor proof\n */\nexport const verifyChallengeProof = async (attemptId: string,\n challengeId: string,\n verifyChallengeProofBody: VerifyChallengeProofBody, options?: Parameters<typeof customFetch>[1]): Promise<VerifyChallengeProof200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<VerifyChallengeProof200>(getVerifyChallengeProofUrl(attemptId,challengeId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(verifyChallengeProofBody)\n }\n);}\n\n\n\nexport const getCreateHandoffUrl = (attemptId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/handoff`\n}\n\n/**\n * Completes the authentication attempt and mints a `handoff_token`.\n *\n * Call this after all required factors have been verified and the attempt is in `completed` state.\n * The handoff token is short-lived (≤60 seconds) and must be exchanged at\n * POST /sessions/exchange to receive the final session and session_token.\n *\n * The handoff token is:\n * - Single-use (atomic exchange, no retry)\n * - Audience-bound (requires matching project key for exchange)\n * - Idempotency-safe within a 5-minute window (see conventions)\n *\n * Revoke refusal for a sealed release happens at handoff exchange, not here.\n * @summary Complete authentication and create handoff token\n */\nexport const createHandoff = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateHandoff200> => {\n\n return customFetch<CreateHandoff200>(getCreateHandoffUrl(attemptId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\nexport const getCreateProjectUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/projects`\n}\n\n/**\n * Creates a project and returns its project secret and preview secret, which no\n * other endpoint returns.\n *\n * The request needs no credential and is rate-limited. Unless `seed_defaults` is\n * `false`, the project starts with a default user schema and flow; the CLI turns\n * that off and uploads its own from `.zitadel/`.\n * @summary Create project\n */\nexport const createProject = async (createProjectBody: CreateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateProject201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateProject201>(getCreateProjectUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createProjectBody)\n }\n);}\n\n\n\nexport const getQueryProjectsUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/query`\n}\n\n/**\n * Returns the project the project secret belongs to, as a page of at most one\n * project.\n *\n * A credential is scoped to one project until ADR 036 widens it, so the filters\n * and sorting apply to that project alone. The projects a signed-in person can\n * act on are listed by `GET /users/me/projects`.\n * @summary Query projects\n */\nexport const queryProjects = async (queryProjectsBody: QueryProjectsBody, options?: Parameters<typeof customFetch>[1]): Promise<QueryProjects200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryProjects200>(getQueryProjectsUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryProjectsBody)\n }\n);}\n\n\n\nexport const getGetProjectUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}`\n}\n\n/**\n * Returns the current state of a project.\n * @summary Get project\n */\nexport const getProject = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetProject200> => {\n\n return customFetch<GetProject200>(getGetProjectUrl(projectId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPatchProjectUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}`\n}\n\n/**\n * Updates the state of a project.\n * @summary Update project\n */\nexport const patchProject = async (projectId: string,\n patchProjectBody: PatchProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchProject200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PatchProject200>(getPatchProjectUrl(projectId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(patchProjectBody)\n }\n);}\n\n\n\nexport const getListProjectAdminsUrl = (projectId: string,\n params?: ListProjectAdminsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/admins?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/admins`\n}\n\n/**\n * Lists the people who can administer the project, and how each of them\n * gets that access. A person appears once, with one entry in `sources` per\n * way they hold it:\n *\n * - `owning_team`: an active member of the team that owns the project\n * (ADR 054 §2). Removing a grant does not remove this access; it ends\n * only when the person leaves the team or the project changes owner.\n * - `grant`: an unexpired `admin` grant on the project, either to the\n * person (`grant_id` only) or to a team they are an active member of\n * (`grant_id` and `team`). Revoking that grant removes this source.\n *\n * The list follows the authorization check: team membership is read from\n * the same membership projection the check expands, so a person who left a\n * team, or whose team or user was deactivated, is not listed through it.\n * Grants that expired or carry a lower role are left out. A person whose\n * only access is a `viewer` or `editor` grant is not an admin and is not\n * listed. Like the check, the list does not look at a person's user status\n * beyond that, so a direct grant to a suspended person is listed.\n *\n * A person whose access comes only through teams the caller is not a\n * member of is left out, and a team the caller is not in is named by\n * `team_id` only. The grant to such a team still shows in the project's\n * grants.\n *\n * Ordered by `user_id` and paginated with `page_token`.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound Console\n * session cookie (`sessionCookie`) that can read the project.\n * @summary List project admins\n */\nexport const listProjectAdmins = async (projectId: string,\n params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectAdmins200> => {\n\n return customFetch<ListProjectAdmins200>(getListProjectAdminsUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getInitClaimUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/init`\n}\n\n/**\n * Starts a claim challenge for an unclaimed project. Authenticated by the\n * project secret, this mints a single-use, short-lived challenge and returns\n * the `claim_url` the developer opens in a browser to complete the claim,\n * together with the `challenge_id` the CLI polls with. The exact expiry is\n * carried by `expires_at` on the response.\n * @summary Initialize a project claim\n */\nexport const initClaim = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<InitClaim201> => {\n\n return customFetch<InitClaim201>(getInitClaimUrl(projectId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\nexport const getGetClaimStatusUrl = (projectId: string,\n params: GetClaimStatusParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/status?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/status`\n}\n\n/**\n * Polled by the CLI while a browser completes the claim. Authorized by the\n * project secret that initiated the challenge. Returns `pending`, or\n * `completed` with the owning team, the claim timestamp, and the dashboard\n * URL once the project is claimed. The claim grant, not the polled\n * challenge, is the source of truth: a project claimed through another\n * concurrent challenge also reports `completed`, and a completed claim\n * keeps reporting `completed` past this challenge's expiry and past the\n * project's claim window.\n * @summary Get claim status\n */\nexport const getClaimStatus = async (projectId: string,\n params: GetClaimStatusParams, options?: Parameters<typeof customFetch>[1]): Promise<GetClaimStatus200> => {\n\n return customFetch<GetClaimStatus200>(getGetClaimStatusUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCompleteClaimUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/complete`\n}\n\n/**\n * Called by the browser after the developer authenticates on the claim page.\n * Authenticated by the session cookie, it attaches the project to\n * the developer's personal team using the `challenge_id` from the claim URL as\n * its single-use, browser-safe authorization.\n * @summary Complete a project claim\n */\nexport const completeClaim = async (projectId: string,\n completeClaimBody: CompleteClaimBody, options?: Parameters<typeof customFetch>[1]): Promise<CompleteClaim200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CompleteClaim200>(getCompleteClaimUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(completeClaimBody)\n }\n);}\n\n\n\nexport const getGetClaimWindowUrl = (projectId: string,\n params: GetClaimWindowParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/window?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/window`\n}\n\n/**\n * Read by the claim page in the browser to show how long is left to claim the\n * project. Unauthenticated by design: the claim page runs this before the\n * developer has signed in, and holding the `challenge_id` from the claim URL\n * is the authorization — the same capability `claim/complete` accepts. It\n * reveals only the window, never the project itself, and unlike\n * `claim/complete` it spends nothing, so a reload is free.\n * @summary Get the claim window for a project\n */\nexport const getClaimWindow = async (projectId: string,\n params: GetClaimWindowParams, options?: Parameters<typeof customFetch>[1]): Promise<GetClaimWindow200> => {\n\n return customFetch<GetClaimWindow200>(getGetClaimWindowUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getAddOriginUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/origins`\n}\n\n/**\n * Adds one `{pattern, kind}` to the project's origins. A primary pattern\n * must be an exact URL (no wildcard). Preview patterns may include a single\n * DNS-label wildcard. Adding a pattern that already exists with the same\n * kind is idempotent and answers 201 with the stored origin.\n * @summary Add an origin pattern\n */\nexport const addOrigin = async (projectId: string,\n addOriginBody: AddOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<AddOrigin201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<AddOrigin201>(getAddOriginUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(addOriginBody)\n }\n);}\n\n\n\nexport const getRemoveOriginUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/origins/remove`\n}\n\n/**\n * Removes one pattern from the project's origins. Requests from URLs only\n * that pattern admitted are refused from then on; live previews and\n * deployment history are untouched. Removing a pattern that is already\n * absent is idempotent and answers 204.\n * @summary Remove an origin pattern\n */\nexport const removeOrigin = async (projectId: string,\n removeOriginBody: RemoveOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<void>(getRemoveOriginUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(removeOriginBody)\n }\n);}\n\n\n\nexport const getListPreviewsUrl = (projectId: string,\n params?: ListPreviewsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews`\n}\n\n/**\n * Lists the project's live previews, newest first by `created_at`. An\n * expired or removed preview is not listed; what was deployed to it stays\n * in `GET /deployments`.\n * @summary List previews\n */\nexport const listPreviews = async (projectId: string,\n params?: ListPreviewsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPreviews200> => {\n\n return customFetch<ListPreviews200>(getListPreviewsUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRemovePreviewUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews/remove`\n}\n\n/**\n * Ends a preview before it expires: the URL stops being served at once.\n * The deployments to it stay in the history.\n *\n * Idempotent: a URL with no live preview, including one that has already\n * expired or was removed before, answers `204` too, so a cleanup that\n * races the expiry still succeeds.\n *\n * The URL travels in the body rather than the path because an origin\n * contains `/`.\n * @summary Remove a preview\n */\nexport const removePreview = async (projectId: string,\n removePreviewBody: RemovePreviewBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<void>(getRemovePreviewUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(removePreviewBody)\n }\n);}\n\n\n\nexport const getCreateSessionUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/sessions`\n}\n\n/**\n * Creates an anonymous session shell with no user and no factors (`state: building`).\n *\n * This is optional — an `auth_attempt` will create a session implicitly if none is provided.\n * Use this explicitly when you want to:\n * - Pre-allocate a `session_id` before the user is known, so device/telemetry signals\n * can be correlated with the eventual authenticated session from the start.\n * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.\n *\n * Creating a session is an app-plane operation on the project credential\n * (`session.write`). The returned `session_token` is a session credential for the\n * end-user client, not a management scope: it is delivered as the\n * `__Host-zitadel_session` cookie (`zitadel_session` over plain http to a\n * loopback host) and authorises the self-service operations\n * `GET /sessions/me` and `DELETE /sessions/me` (`sessionCookie` scheme). The\n * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`\n * are operator endpoints and require `session.read` / `session.delete` instead.\n *\n * The `session_token` is superseded when a handoff exchange completes — clients must\n * replace it at that point.\n *\n * Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured\n * full session TTL when the first authentication factor is written via a completing `auth_attempt`.\n * @summary Create an anonymous session shell\n */\nexport const createSession = async (createSessionBody: CreateSessionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateSession201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateSession201>(getCreateSessionUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createSessionBody)\n }\n);}\n\n\n\nexport const getQuerySessionsUrl = (params: QuerySessionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/query?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/query`\n}\n\n/**\n * Returns the sessions of a project, paginated with a cursor.\n * Sessions of every lifecycle state are returned; each carries its `state`.\n * Requires `session.read` permission.\n * @summary Query sessions\n */\nexport const querySessions = async (querySessionsBody: QuerySessionsBody,\n params: QuerySessionsParams, options?: Parameters<typeof customFetch>[1]): Promise<QuerySessions200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QuerySessions200>(getQuerySessionsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(querySessionsBody)\n }\n);}\n\n\n\nexport const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/exchange?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/exchange`\n}\n\n/**\n * Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`\n * and returns the resulting session and a `session_token`.\n *\n * The server resolves the originating `auth_attempt` from the token and then:\n *\n * | Originating auth_attempt | Outcome |\n * |---|---|\n * | No `session_id` | A new authenticated session is **created**. |\n * | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |\n * | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |\n *\n * The response shape is identical in all three cases.\n *\n * The `session_token` supersedes any previously issued `session_token` for the same session.\n * Clients must replace their stored token at this point.\n *\n * Requires a project service key (OAuth2 client credentials).\n *\n * The project comes from the project secret. A query `project_id` that\n * disagrees answers `403` with `proj.mismatch`. The exchange resolves a\n * deployment the same way as other runtime operations; with no browser\n * `Origin` and nothing deployed to the resolved target the response is\n * `409` with `rel.not_deployed`. A revoked release answers `409` with\n * `rel.revoked`.\n * @summary Exchange handoff token for a session\n */\nexport const exchangeHandoff = async (exchangeHandoffBody: ExchangeHandoffBody,\n params: ExchangeHandoffParams, options?: Parameters<typeof customFetch>[1]): Promise<ExchangeHandoff200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<ExchangeHandoff200>(getExchangeHandoffUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(exchangeHandoffBody)\n }\n);}\n\n\n\nexport const getGetSessionUrl = (sessionId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/sessions/${encodeURIComponent(String(sessionId))}`\n}\n\n/**\n * Returns the current state of a session including its factors and all currently\n * satisfied assurance levels.\n *\n * `assurance_levels[]` may shrink over time as factor freshness windows expire,\n * without the session itself expiring. Use step-up authentication (a new `auth_attempt`\n * against the same `session_id`) to restore a dropped assurance level.\n * @summary Get session state\n */\nexport const getSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetSession200> => {\n\n return customFetch<GetSession200>(getGetSessionUrl(sessionId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRevokeSessionUrl = (sessionId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/sessions/${encodeURIComponent(String(sessionId))}`\n}\n\n/**\n * Permanently deletes the session, terminating it immediately.\n *\n * This is the operator revoke path and requires the `session.delete` scope on a\n * project-bound credential. End-user logout with the session cookie is\n * `DELETE /sessions/me` (`sessionCookie` scheme).\n *\n * Idempotent: deleting a session that does not exist (or was already deleted)\n * still returns 204. After deletion, any tokens derived from the session are\n * invalidated.\n * @summary Revoke session\n */\nexport const revokeSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getRevokeSessionUrl(sessionId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getGetMySessionUrl = (params?: GetMySessionParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me`\n}\n\n/**\n * Returns the current state of the current session including its factors and all currently\n * satisfied assurance levels.\n *\n * With `project_id`, the session is returned only when it belongs to that project.\n *\n * `assurance_levels[]` may shrink over time as factor freshness windows expire,\n * without the session itself expiring. Use step-up authentication (a new `auth_attempt`\n * against the same `session_id`) to restore a dropped assurance level.\n * @summary Get my session state\n */\nexport const getMySession = async (params?: GetMySessionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMySession200> => {\n\n return customFetch<GetMySession200>(getGetMySessionUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRevokeMySessionUrl = (params?: RevokeMySessionParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me`\n}\n\n/**\n * Logs out by permanently deleting the session.\n *\n * The session cookie issued at creation (or superseded by a handoff\n * exchange) is required, with the session's token from `GET /sessions/me/csrf`\n * in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone\n * this still returns 204. Any tokens derived from the session are invalidated,\n * and the cookie itself is cleared in the response.\n *\n * With `project_id`, only a session of that project is deleted. A session of\n * another project is left alone, and so is its cookie.\n * @summary Revoke my session\n */\nexport const revokeMySession = async (params?: RevokeMySessionParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getRevokeMySessionUrl(params),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getGetMySessionCsrfTokenUrl = (params?: GetMySessionCsrfTokenParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me/csrf?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me/csrf`\n}\n\n/**\n * Returns the session-bound token for cross-site request forgery protection\n * (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the\n * state-changing requests the session cookie authenticates that require it\n * — see the `sessionCookie` scheme. It authorizes nothing on its own: the\n * HttpOnly cookie is still the credential, and a cross-site page cannot\n * read this response. It stays the same for the life of the session, so a\n * client fetches it once per session.\n *\n * With `project_id`, the token is returned only when the session belongs to\n * that project.\n * @summary Get my session's CSRF token\n */\nexport const getMySessionCsrfToken = async (params?: GetMySessionCsrfTokenParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMySessionCsrfToken200> => {\n\n return customFetch<GetMySessionCsrfToken200>(getGetMySessionCsrfTokenUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateSchemaUrl = (params: CreateSchemaParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas?${stringifiedParams}` : `${getApiBaseUrl()}/schemas`\n}\n\n/**\n * Create a new schema. The optional `$id` field is the JSON Schema document\n * URI used to identify the schema in future requests (GitOps-stable identity,\n * not a free-form resource primary key). When `$id` is omitted, the server\n * generates a `sch_*` URL. When provided, `$id` must be unique within the\n * project and should ideally be a valid URI pointing at where the schema can\n * be accessed.\n *\n * The schema can either be a concrete schema, e.g. a user schema, or a\n * schema-url which will be resolved by the server.\n * @summary Create new schema\n */\nexport const createSchema = async (createSchemaBody: CreateSchemaBody,\n params: CreateSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateSchema201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateSchema201>(getCreateSchemaUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createSchemaBody)\n }\n);}\n\n\n\nexport const getListSchemasUrl = (params: ListSchemasParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas?${stringifiedParams}` : `${getApiBaseUrl()}/schemas`\n}\n\n/**\n * Retrieve a list of all schemas available in the system. This endpoint\n * supports pagination and filtering based on schema attributes.\n * @summary List all schemas\n */\nexport const listSchemas = async (params: ListSchemasParams, options?: Parameters<typeof customFetch>[1]): Promise<ListSchemas200> => {\n\n return customFetch<ListSchemas200>(getListSchemasUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetSchemaByIdUrl = (id: string,\n params?: GetSchemaByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Get a schema by its ID. A schema ID identifies one immutable revision, so\n * this returns exactly that revision. To find the current revision of an\n * object type, list with `revisions=latest`.\n *\n * Schema IDs are unique within a project, not across projects (the seeded\n * default schema carries the same `$id` in every project). A Console\n * session that manages more than one project names the project with\n * `project_id`; without it, the ID is resolved in the credential's own\n * project when it is ambiguous. A project secret always resolves in its\n * own project and ignores `project_id`.\n * @summary Get schema by ID\n */\nexport const getSchemaById = async (id: string,\n params?: GetSchemaByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetSchemaById200> => {\n\n return customFetch<GetSchemaById200>(getGetSchemaByIdUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateFlowDefinitionUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/flow_definitions`\n}\n\n/**\n * Publishes a new flow definition revision.\n * Flow definitions are templates that define the sequence of steps (capabilities)\n * for a particular user journey (e.g., registration, login, password reset).\n *\n * Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.\n *\n * Every call allocates a new opaque id. Revisions of one flow share its\n * `name`; posting a definition under an existing `name` publishes a new\n * revision of that flow, it is not a conflict. List with `name` to see a\n * flow's revisions, newest by creation time first.\n * @summary Create a new flow definition\n */\nexport const createFlowDefinition = async (createFlowDefinitionBody: CreateFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlowDefinition201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateFlowDefinition201>(getCreateFlowDefinitionUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createFlowDefinitionBody)\n }\n);}\n\n\n\nexport const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/flow_definitions?${stringifiedParams}` : `${getApiBaseUrl()}/flow_definitions`\n}\n\n/**\n * Retrieves a list of all flow definitions, newest by creation time first.\n * This endpoint can be used to view existing flow definitions and their configurations.\n * Filter by `name` to list the revisions of one flow.\n * @summary List flow definitions\n */\nexport const listFlowDefinitions = async (params: ListFlowDefinitionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListFlowDefinitions200> => {\n\n return customFetch<ListFlowDefinitions200>(getListFlowDefinitionsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetFlowDefinitionUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Get a flow definition by id\n * @summary Get a flow definition by id\n */\nexport const getFlowDefinition = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowDefinition200> => {\n\n return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(id),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateTeamUrl = (params: CreateTeamParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/teams?${stringifiedParams}` : `${getApiBaseUrl()}/teams`\n}\n\n/**\n * Creates a team in the project, with a name no other team in the project has.\n *\n * A taken name is refused with `409 team.already_exists`. The new team has no\n * members yet.\n * @summary Create team\n */\nexport const createTeam = async (createTeamBody: CreateTeamBody,\n params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateTeam201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateTeam201>(getCreateTeamUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createTeamBody)\n }\n);}\n\n\n\nexport const getQueryTeamsUrl = (params?: QueryTeamsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/teams/query?${stringifiedParams}` : `${getApiBaseUrl()}/teams/query`\n}\n\n/**\n * Returns the teams of a project, paginated with a cursor.\n *\n * `project_id` names the project to list; without it, the credential's own\n * project is listed.\n * @summary Query teams\n */\nexport const queryTeams = async (queryTeamsBody: QueryTeamsBody,\n params?: QueryTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryTeams200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryTeams200>(getQueryTeamsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryTeamsBody)\n }\n);}\n\n\n\nexport const getGetTeamUrl = (teamId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`\n}\n\n/**\n * Returns a Team by its id.\n * @summary Get team\n */\nexport const getTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetTeam200> => {\n\n return customFetch<GetTeam200>(getGetTeamUrl(teamId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getDeleteTeamUrl = (teamId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`\n}\n\n/**\n * Deactivates the team.\n *\n * The team is tombstoned rather than erased: it stays readable through\n * getTeam with status `deactivated`. Its memberships are removed and the\n * users whose lifecycle it owns are deactivated with it.\n *\n * The request is idempotent. Deleting a team that is already deactivated\n * or doesn't exist succeeds without changing anything.\n *\n * A team that still owns a project is refused with `409\n * team.owns_project`: deactivating it would leave the project owned by a\n * dead team and so unmanageable. No endpoint releases that ownership yet,\n * so such a team cannot currently be deactivated through the API.\n * @summary Delete team\n */\nexport const deleteTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteTeamUrl(teamId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getUpdateTeamUrl = (teamId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`\n}\n\n/**\n * Update team. Only active teams can be updated.\n * @summary Update team\n */\nexport const updateTeam = async (teamId: string,\n updateTeamBody: UpdateTeamBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateTeam200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<UpdateTeam200>(getUpdateTeamUrl(teamId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(updateTeamBody)\n }\n);}\n\n\n\nexport const getCreateBrandingUrl = (params: CreateBrandingParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/branding?${stringifiedParams}` : `${getApiBaseUrl()}/branding`\n}\n\n/**\n * Publishes a new immutable branding revision for the project. Branding\n * revisions cannot be updated or deleted; every edit publishes a new\n * revision, and flow responses resolve the latest revision per project.\n *\n * The `liquid_template` is validated lexically on save (size, encoding,\n * banned patterns such as `<script>` tags, inline event handlers, and the\n * `| raw` filter). Authoritative LiquidJS validation runs at authoring\n * time via `zitadel plan` / `zitadel apply`.\n * @summary Publish a new branding revision\n */\nexport const createBranding = async (createBrandingBody: CreateBrandingBody,\n params: CreateBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateBranding201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateBranding201>(getCreateBrandingUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createBrandingBody)\n }\n);}\n\n\n\nexport const getListBrandingUrl = (params: ListBrandingParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/branding?${stringifiedParams}` : `${getApiBaseUrl()}/branding`\n}\n\n/**\n * Lists branding revisions for the project, newest first, capped at the\n * 100 most recent. The first entry is the revision flow responses\n * currently resolve. Deliberately unpaginated in v1 — list endpoints gain a\n * real query mechanism together; advertising pagination parameters the\n * server ignores would be worse than none.\n * @summary List branding revisions\n */\nexport const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<ListBranding200Item[]> => {\n\n return customFetch<ListBranding200Item[]>(getListBrandingUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetBrandingByIdUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Retrieves a single branding revision, including its stored configuration.\n * @summary Get a branding revision by ID\n */\nexport const getBrandingById = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetBrandingById200> => {\n\n return customFetch<GetBrandingById200>(getGetBrandingByIdUrl(id),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateIdpUrl = (params: CreateIdpParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps?${stringifiedParams}` : `${getApiBaseUrl()}/idps`\n}\n\n/**\n * Creates or revises a connection document. If the slug does not already\n * exist, a new connection is created. If a connection with that slug already\n * exists, a revision is created.\n *\n * A revision gets a new `revision_id` and does not modify the connection\n * `id`, so identity links that reference the connection keep resolving while\n * releases and auth attempts stay pinned to the revision they captured.\n *\n * Identity fields are fixed for the life of the connection and a revision\n * that changes one is rejected: `protocol`, `subject_claim`, and `issuer`,\n * the field that names the authority. Their values decide which provider\n * account a stored subject belongs to, so changing one would silently\n * repoint existing identities at a different provider.\n *\n * `subject_claim` is optional, and `sub` is used as the default value. If a\n * revision updates `subject_claim` to a different value than the one set\n * during creation, the request is rejected.\n *\n * OIDC is the only protocol.\n *\n * The document is validated against the `idp-connection.json` schema before\n * anything is stored. The rules the engine applies when it starts a sign-in\n * then run on the document, so a connection that could never start one is\n * refused here instead with `idp.endpoints_partial`: the OIDC block sets an\n * endpoint without the others. It either sets no endpoint, and discovery\n * fills them, or sets `authorization_endpoint`, `token_endpoint`, `jwks_uri`,\n * and `userinfo_endpoint`. `userinfo_endpoint` may be left out when\n * `id_token_mapping` is on, but setting it alone still counts as setting an\n * endpoint. The details list the missing endpoints.\n *\n * A refused document stores nothing, and on a revise the current revision\n * stays unchanged.\n * @summary Create or revise an identity provider connection\n */\nexport const createIdp = async (createIdpBody: CreateIdpBody,\n params: CreateIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateIdp200 | CreateIdp201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateIdp200 | CreateIdp201>(getCreateIdpUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createIdpBody)\n }\n);}\n\n\n\nexport const getQueryIdpsUrl = (params: QueryIdpsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/query?${stringifiedParams}` : `${getApiBaseUrl()}/idps/query`\n}\n\n/**\n * Returns the identity provider connections of a project, paginated with a\n * cursor. One row per connection, carrying its newest revision.\n * @summary Query identity provider connections\n */\nexport const queryIdps = async (queryIdpsBody: QueryIdpsBody,\n params: QueryIdpsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryIdps200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryIdps200>(getQueryIdpsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryIdpsBody)\n }\n);}\n\n\n\nexport const getGetIdpByIdUrl = (id: string,\n params: GetIdpByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Reads a connection by its id, at its newest revision.\n * `GET /idps/{id}/revisions` lists every revision of the connection.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary Get an identity provider connection by id\n */\nexport const getIdpById = async (id: string,\n params: GetIdpByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpById200> => {\n\n return customFetch<GetIdpById200>(getGetIdpByIdUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListIdpRevisionsUrl = (id: string,\n params: ListIdpRevisionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}/revisions`\n}\n\n/**\n * Returns every revision of one connection, newest first, paginated with a\n * cursor. The order is fixed, so there is no `sorting`.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary List the revisions of an identity provider connection\n */\nexport const listIdpRevisions = async (id: string,\n params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListIdpRevisions200> => {\n\n return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetIdpRevisionByIdUrl = (revisionId: string,\n params: GetIdpRevisionByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/revisions/${encodeURIComponent(String(revisionId))}`\n}\n\n/**\n * Reads one revision of a connection by its `revision_id`, the value an auth\n * attempt or a release pins.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary Get one revision of an identity provider connection\n */\nexport const getIdpRevisionById = async (revisionId: string,\n params: GetIdpRevisionByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpRevisionById200> => {\n\n return customFetch<GetIdpRevisionById200>(getGetIdpRevisionByIdUrl(revisionId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListPoliciesUrl = (params: ListPoliciesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies?${stringifiedParams}` : `${getApiBaseUrl()}/policies`\n}\n\n/**\n * Lists the project's policies, one per operation, each as its newest\n * revision, ordered by `created_at` (first publish) and then `id`. Filter\n * by `operation` to read the policy of one operation; a project that never\n * published one gets an empty list.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary List policies\n */\nexport const listPolicies = async (params: ListPoliciesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPolicies200> => {\n\n return customFetch<ListPolicies200>(getListPoliciesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPublishPolicyUrl = (params: PublishPolicyParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies?${stringifiedParams}` : `${getApiBaseUrl()}/policies`\n}\n\n/**\n * Publishes the project's policy for an operation as a new immutable\n * revision, creating the policy on its first publish. The newest revision\n * applies to the next time the operation runs; nothing already stored is\n * re-evaluated, so a stricter password policy applies the next time a\n * password is set.\n *\n * The request is typed by `operation`: an unknown operation or setting, or\n * a value of the wrong type or outside its bounds, answers `req.invalid`\n * like any malformed request. The operation's template then checks the\n * config again, together with the rules that relate settings to each other\n * (a `min_length` above `max_length`), and answers `pol.invalid`. Its\n * `details.details.violations` lists everything that failed, settings\n * first, then rules: `{\"setting\": \"min_length\"}` for one setting, or\n * `{\"config_rule\": \"min_length_not_above_max_length\", \"settings\":\n * [\"min_length\", \"max_length\"]}` for a rule across settings, with the\n * settings it reads. A setting left out is off, and `{}` switches every\n * rule off; there are no defaults.\n * @summary Publish a policy\n */\nexport const publishPolicy = async (publishPolicyBody: PublishPolicyBody,\n params: PublishPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishPolicy201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PublishPolicy201>(getPublishPolicyUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(publishPolicyBody)\n }\n);}\n\n\n\nexport const getEvaluatePolicyUrl = (params: EvaluatePolicyParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/evaluate?${stringifiedParams}` : `${getApiBaseUrl()}/policies/evaluate`\n}\n\n/**\n * Evaluates a policy config against one request, without side effects, and\n * answers the decision the operation would reach. Nothing is read from or\n * written to the project: the config is the one in the body, checked\n * exactly as a publish checks it, so an invalid config answers `pol.invalid`\n * with the same violations.\n *\n * `input` is what the operation's request carries, in the operation's own\n * terms (a password, not its length): the server derives what the policy\n * checks with the code the live operation runs, guards included. `facts`\n * states what the operation would look up at runtime, such as whether the\n * candidate matches one of the user's kept passwords.\n *\n * The decision and the names of the failed rules hold wherever the\n * operation runs. `code` and `violations` are what an API call answers; a\n * login flow shows the same rules as field errors on the password field\n * (`error.x-auth-methods#password_<rule>` in `step.error`).\n *\n * Which policy a project or release applies is not decided here: read it\n * and pass its config.\n *\n * The caller needs read access to the project in `project_id`.\n * @summary Evaluate a policy\n */\nexport const evaluatePolicy = async (evaluatePolicyBody: EvaluatePolicyBody,\n params: EvaluatePolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<EvaluatePolicy200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<EvaluatePolicy200>(getEvaluatePolicyUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(evaluatePolicyBody)\n }\n);}\n\n\n\nexport const getGetPolicyUrl = (policyId: string,\n params: GetPolicyParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}?${stringifiedParams}` : `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}`\n}\n\n/**\n * Reads a policy as its newest revision, the one that applies the next time\n * its operation runs.\n *\n * The lookup is scoped to the project in `project_id`: a policy of another\n * project answers not found exactly as an unknown id does.\n * @summary Get a policy\n */\nexport const getPolicy = async (policyId: string,\n params: GetPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicy200> => {\n\n return customFetch<GetPolicy200>(getGetPolicyUrl(policyId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListPolicyRevisionsUrl = (policyId: string,\n params: ListPolicyRevisionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}/revisions`\n}\n\n/**\n * Returns every revision of one policy, newest first, paginated with a\n * cursor. The order is fixed, so there is no `sorting`.\n *\n * The lookup is scoped to the project in `project_id`: a policy of another\n * project answers not found exactly as an unknown id does.\n * @summary List the revisions of a policy\n */\nexport const listPolicyRevisions = async (policyId: string,\n params: ListPolicyRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPolicyRevisions200> => {\n\n return customFetch<ListPolicyRevisions200>(getListPolicyRevisionsUrl(policyId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetPolicyRevisionUrl = (revisionId: string,\n params: GetPolicyRevisionParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getApiBaseUrl()}/policies/revisions/${encodeURIComponent(String(revisionId))}`\n}\n\n/**\n * Reads one revision of a policy, newest or not.\n *\n * The lookup is scoped to the project in `project_id`: a revision of another\n * project answers not found exactly as an unknown id does.\n * @summary Get a policy revision\n */\nexport const getPolicyRevision = async (revisionId: string,\n params: GetPolicyRevisionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicyRevision200> => {\n\n return customFetch<GetPolicyRevision200>(getGetPolicyRevisionUrl(revisionId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateReleaseUrl = (params: CreateReleaseParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases?${stringifiedParams}` : `${getApiBaseUrl()}/releases`\n}\n\n/**\n * Assembles a release from existing revisions, given as\n * `(kind, revision_id)` pairs. To build one from files on disk, use\n * `POST /releases/build`.\n *\n * Each revision must exist in the project and is recorded under the handle\n * it declares. The release must be complete and consistent:\n *\n * - Every handle its revisions name must be in the release: a flow's\n * `user_schema`, and the IDP connections named by a flow step's\n * `sso_providers` or a schema's `x-auth-methods.sso.providers`. A missing\n * one answers `rel.unresolved_reference`, naming the resource and the\n * handle, e.g. `flow_definition default-login: user_schema human-user not found`.\n * - Every flow is validated as on save, against the user schema revision\n * in the release. A flow that fails answers `rel.invalid`, with the\n * reason in `details`.\n *\n * Idempotent on the set of revisions: the same revisions with a different\n * `message` answer `200` with the existing release. A new release answers\n * `201`. Creating a release does not deploy it.\n * @summary Create a release\n */\nexport const createRelease = async (createReleaseBody: CreateReleaseBody,\n params: CreateReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateRelease200 | CreateRelease201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateRelease200 | CreateRelease201>(getCreateReleaseUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createReleaseBody)\n }\n);}\n\n\n\nexport const getListReleasesUrl = (params: ListReleasesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases?${stringifiedParams}` : `${getApiBaseUrl()}/releases`\n}\n\n/**\n * Lists the project's releases, newest first.\n *\n * Entries carry the digest, the metadata and `revoked_at` — the pinned set\n * is omitted.\n * Read one release with `GET /releases/{release_id}` to get its pointers.\n *\n * `content_hash` looks a release up by its content, as the CLI does when a\n * person types the digest a transcript printed. The project holds at most\n * one release per digest, so the filtered list has one entry or none, and\n * an unknown digest is an empty list rather than an error. Paths take the\n * `rel_` id only; the matched entry's `id` is what to use there.\n * @summary List releases\n */\nexport const listReleases = async (params: ListReleasesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListReleases200> => {\n\n return customFetch<ListReleases200>(getListReleasesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBuildReleaseUrl = (params: BuildReleaseParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/build?${stringifiedParams}` : `${getApiBaseUrl()}/releases/build`\n}\n\n/**\n * Builds a release from the resources of `.zitadel/` as authored on disk,\n * grouped by kind, in one transaction: a failure anywhere leaves no\n * revision and no release. The caller records nothing.\n *\n * If the project already holds a release with the same content, the same\n * `content_hash`, the request answers `200` with that release and\n * allocates nothing, however long ago it was built. Otherwise every resource is compared against the\n * project's newest revision of the same handle: unchanged content reuses\n * that revision, changed content allocates a new one, and the request\n * answers `201` with the new release. A policy whose config matches only an\n * older revision allocates a new one too, so a request that resolves no\n * release, which reads the newest revision, applies it as well. Metadata is excluded from the\n * comparison, so the same content under a different `message` is the same\n * release.\n *\n * A structurally malformed request is refused while decoding with\n * `req.invalid`, naming the offending fields. A well-formed bundle is then\n * checked resource by resource, as each kind's create endpoint checks it,\n * and every failure is reported at once: the request answers `400` with\n * `rel.invalid`, and `details.resources` lists each resource that failed.\n * A handle that resolves neither in the bundle nor in the project answers\n * `rel.unresolved_reference`, naming the pointer and the handle.\n *\n * Building writes revisions, so besides `release.write` it needs the write\n * scope of every kind the bundle carries a resource of: `schema.write`,\n * `flow_definition.write`, `branding.write`, `idp.write` and\n * `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,\n * naming the kind. An empty kind needs no scope.\n *\n * Building a release does not deploy it. A release is not tied to an\n * origin, and the same release can later be deployed to any number of\n * origins unchanged.\n * @summary Build a release from files\n */\nexport const buildRelease = async (buildReleaseBody: BuildReleaseBody,\n params: BuildReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<BuildRelease200 | BuildRelease201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<BuildRelease200 | BuildRelease201>(getBuildReleaseUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(buildReleaseBody)\n }\n);}\n\n\n\nexport const getGetReleaseByIdUrl = (releaseId: string,\n params: GetReleaseByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}?${stringifiedParams}` : `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}`\n}\n\n/**\n * Reads one release: its digest, its metadata, whether it was revoked, and\n * the `(kind, handle, revision_id)` tuples it pins.\n *\n * The path takes the `rel_` id only. To find a release from its digest,\n * list with the `content_hash` filter and read the matched entry's `id`.\n *\n * Does not embed resource content. Resolve each `revision_id` through the\n * per-kind read endpoints when the bytes are needed.\n *\n * The lookup is scoped to the project in `project_id`: a release id belonging\n * to another project answers not found exactly as an unknown id does, so the\n * endpoint cannot be used to probe for releases in projects the caller cannot\n * read.\n * @summary Get a release by id\n */\nexport const getReleaseById = async (releaseId: string,\n params: GetReleaseByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetReleaseById200> => {\n\n return customFetch<GetReleaseById200>(getGetReleaseByIdUrl(releaseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRevokeReleaseUrl = (releaseId: string,\n params: RevokeReleaseParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}/revoke?${stringifiedParams}` : `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}/revoke`\n}\n\n/**\n * Marks the release revoked, so that its content is never served again.\n * From then on the release cannot be deployed and is refused on every path\n * that would serve it, including to a build that pins its digest, with\n * `rel.revoked`.\n *\n * A release that any origin still serves cannot be revoked. An origin\n * serves the release of the newest deployment to it, so the call answers\n * `409` with `rel.in_use`, naming each such origin and that deployment.\n * Deploy another release there or roll back first, then revoke. Revoking\n * therefore never takes an origin down. Deployments that named the release\n * earlier stay in the history.\n *\n * Idempotent: revoking a release that is already revoked answers `200`\n * with the release unchanged, `revoked_at` still naming the first\n * revocation. There is no un-revoke; build a new release instead.\n *\n * Takes no body. The lookup is scoped to the project in `project_id`, so a\n * release id of another project answers not found exactly as an unknown id\n * does.\n * @summary Revoke a release\n */\nexport const revokeRelease = async (releaseId: string,\n params: RevokeReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<RevokeRelease200> => {\n\n return customFetch<RevokeRelease200>(getRevokeReleaseUrl(releaseId,params),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\nexport const getCreateGrantUrl = (params: CreateGrantParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants?${stringifiedParams}` : `${getApiBaseUrl()}/grants`\n}\n\n/**\n * Bind a user or team to `project.viewer`, `project.editor`, or\n * `project.admin` on the project identified by the `project-id` header.\n * Name the principal with `user` (`user_id` or `identifier`) or `team`\n * (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team\n * (`project.team`) grants are not created here — claim owns that path. An\n * unrevoked grant with the same principal and relation occupies the unique\n * key even after `expires_at`; DELETE it before re-creating.\n * Create does not accept `expand`. The `user_id` and team locators\n * return 201, whose `user` / `team` carry only `user_id` / `team_id`,\n * and still 404 / 409 when the principal is missing or the tuple\n * already exists. Creating by `user.identifier` answers 202 with no\n * body on every outcome. Granting the session caller's own user is\n * `grant.invalid` on either user locator. Read the grant back for\n * identifier and display.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound Console\n * session cookie (`sessionCookie`). Session callers are authorized as\n * the human against the target project (home may differ). Cookie-authenticated\n * requests follow the scheme's CSRF rules (`sessionCookie`).\n * @summary Create grant\n */\nexport const createGrant = async (createGrantBody: CreateGrantBody,\n params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateGrant201 | void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateGrant201 | void>(getCreateGrantUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createGrantBody)\n }\n);}\n\n\n\nexport const getQueryGrantsUrl = (params: QueryGrantsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/query?${stringifiedParams}` : `${getApiBaseUrl()}/grants/query`\n}\n\n/**\n * Returns the collaboration grants of a project, paginated with a cursor.\n * Only unrevoked grants this API manages are listed (user or team bound to\n * viewer, editor, or admin), including expired grants so a client can\n * DELETE before re-granting. Project-secret setup (`sk_proj`) and\n * owning-team (`relation=team`) rows are not returned. Grants are not in\n * `resource_scope_index`; project scope is required on the query (same as\n * get). Requires `project.read`. `expand: [\"principal\"]` adds envelope\n * fields on `user` / `team` and additionally requires `user.read` and\n * `team.read` for project secrets (documented on the expand enum; those\n * scopes cannot be ANDed onto this security block because they are\n * body-conditional). A user-bound Console session that already passed\n * the project Check may expand without those scopes.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound Console\n * session cookie (`sessionCookie`). Cookie-authenticated requests\n * follow the scheme's CSRF rules (`sessionCookie`).\n * @summary Query grants\n */\nexport const queryGrants = async (queryGrantsBody: QueryGrantsBody,\n params: QueryGrantsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryGrants200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryGrants200>(getQueryGrantsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryGrantsBody)\n }\n);}\n\n\n\nexport const getGetGrantUrl = (id: string,\n params: GetGrantParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Loads a grant by `(project_id, id)` that this API manages (user or team\n * bound to viewer, editor, or admin) and that has not been revoked.\n * \"Active\" here means not revoked: expired grants stay visible so the\n * client can DELETE before re-granting the same binding. Authorization\n * still ignores expired grants. Grants are not registered in\n * `resource_scope_index`; project scope is required on the query (same as\n * events). Misses, revoked rows, project-secret setup (`sk_proj`),\n * owning-team (`relation=team`) rows, and cross-project ids return 404.\n * `expand=principal` adds envelope fields on `user` or `team` and requires\n * `user.read` and `team.read` in addition to `project.read` for project\n * secrets. A user-bound Console session that already passed the project\n * Check may expand without those scopes.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound Console\n * session cookie (`sessionCookie`). Cookie-authenticated requests\n * follow the scheme's CSRF rules (`sessionCookie`).\n * @summary Get grant\n */\nexport const getGrant = async (id: string,\n params: GetGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<GetGrant200> => {\n\n return customFetch<GetGrant200>(getGetGrantUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getDeleteGrantUrl = (id: string,\n params: DeleteGrantParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Soft-revokes a grant this API manages and emits `authz.revoked`.\n * Already-revoked, missing, project-secret setup, and owning-team grants\n * return 404. The row is not un-revoked. Expired grants can still be\n * revoked so the unique binding can be reused.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound Console\n * session cookie (`sessionCookie`). Cookie-authenticated requests\n * follow the scheme's CSRF rules (`sessionCookie`).\n * @summary Revoke grant\n */\nexport const deleteGrant = async (id: string,\n params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteGrantUrl(id,params),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getListEventsUrl = (params: ListEventsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"category\",\"event_type\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events?${stringifiedParams}` : `${getApiBaseUrl()}/events`\n}\n\n/**\n * Returns project-scoped audit events, newest-first by keyset on\n * `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.\n * Requires `events.read`.\n *\n * Pre-claim projects return an empty list (events are stored but not\n * visible until claim succeeds). Team-scoped credentials see only events\n * whose emit-time `team_id` matches the credential team (enforced when\n * team-scoped tokens exist).\n *\n * Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —\n * see docs/design/api/events-catalog.md.\n * @summary List events\n */\nexport const listEvents = async (params: ListEventsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListEvents200> => {\n\n return customFetch<ListEvents200>(getListEventsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetEventUrl = (id: string,\n params: GetEventParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/events/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Loads a single event by `(project_id, id)`. Requires `events.read`.\n * Events are not registered in `resource_scope_index`; project scope is\n * required on the query (ADR 049). Misses and cross-project ids return 404.\n *\n * Pre-claim projects return 404 (stored events stay invisible until claim).\n * @summary Get event by ID\n */\nexport const getEvent = async (id: string,\n params: GetEventParams, options?: Parameters<typeof customFetch>[1]): Promise<GetEvent200> => {\n\n return customFetch<GetEvent200>(getGetEventUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetVariablesUrl = (params: GetVariablesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/variables`\n}\n\n/**\n * Returns the project's variables, keyed by name, each with its value per\n * kind. With `kind`, only that kind's values are returned.\n *\n * Secret values are not returned. A secret appears as `{\"secret\": true}`,\n * which says a value is held without disclosing it.\n * @summary Get variables\n */\nexport const getVariables = async (params: GetVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariables200> => {\n\n return customFetch<GetVariables200>(getGetVariablesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getUpdateVariablesUrl = (params: UpdateVariablesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/variables`\n}\n\n/**\n * Enters, replaces and removes the project's variables for the requested\n * kind. Names not in the body are untouched. Existing deployments keep the\n * values they froze.\n *\n * Without `kind`, a plain value is written for both kinds. A secret is\n * written for `primary` only and removes the name's `preview` value, so a\n * preview never keeps a plaintext copy; set a preview secret with\n * `kind=preview`. `null` removes the name from both.\n *\n * A bare scalar enters a non-secret value. `{\"value\": …, \"secret\": true}`\n * stores the value encrypted under the project's active `secret` key, after\n * which it can be referenced but not read back. `null` removes the name\n * (RFC 7386), which is how several variables are removed in one request;\n * removing a name the project does not hold is a no-op rather than an error.\n *\n * The body is applied whole or not at all, so a rejected request leaves the\n * project's variables exactly as they were. Writing the same name twice\n * replaces the value rather than duplicating it, which makes a retry safe.\n * @summary Update variables\n */\nexport const updateVariables = async (updateVariablesBody: UpdateVariablesBody,\n params: UpdateVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<UpdateVariables200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<UpdateVariables200>(getUpdateVariablesUrl(params),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(updateVariablesBody)\n }\n);}\n\n\n\nexport const getGetVariableUrl = (variableName: string,\n params: GetVariableParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}`\n}\n\n/**\n * Reads one variable by name, with its value per kind. A name with no\n * value for the requested kind answers `var.not_found`. A secret reads\n * back as `{\"secret\": true}`.\n * @summary Get a variable\n */\nexport const getVariable = async (variableName: string,\n params: GetVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariable200> => {\n\n return customFetch<GetVariable200>(getGetVariableUrl(variableName,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getDeleteVariableUrl = (variableName: string,\n params: DeleteVariableParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}`\n}\n\n/**\n * Removes a variable for the requested kind, or for both kinds without\n * `kind`. A name with no value for that kind answers `var.not_found`.\n * Existing deployments keep the values they froze.\n * @summary Delete a variable\n */\nexport const deleteVariable = async (variableName: string,\n params: DeleteVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteVariableUrl(variableName,params),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments?${stringifiedParams}` : `${getApiBaseUrl()}/deployments`\n}\n\n/**\n * Makes a release live on its targets by recording a deployment,\n * atomically: on success every target serves the release and the record\n * exists; on failure nothing changes and no record is written.\n *\n * Name the release by exactly one of `release_id` or `content_hash`; it\n * must already exist in the project. `targets` is `primary` or preview\n * URLs. The deployment freezes the project's variable values for its kind,\n * with no fallback between primary and preview values.\n *\n * A deployment to `primary` changes nothing when the project's newest\n * primary deployment has the same release and frozen values and covers\n * exactly the current primary origins: the call answers `200` with that\n * deployment. Any other request writes a new deployment and answers `201`;\n * for preview URLs that record renews their previews.\n *\n * Failures:\n * - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;\n * a primary origin named exactly; `primary` mixed with preview URLs;\n * `primary` on a project with no primary origin; `ttl` with `primary`;\n * `ttl` above 365 days (`P365D`).\n * - `400 dep.variables_missing`: a referenced variable has no value for\n * the kind; `details` names the kind and every missing variable.\n * - `403 proj.origin_not_allowed`: a preview URL matches no preview\n * pattern, or is a loopback URL.\n * - `404 rel.not_found`: the release id or digest names no release here.\n * - `409 dep.conflict`: `expected_deployment_id` is not the deployment\n * this write replaces; `details.deployment` is that deployment.\n * - `409 rel.revoked`: the release is revoked.\n * @summary Create a deployment\n */\nexport const createDeployment = async (createDeploymentBody: CreateDeploymentBody,\n params: CreateDeploymentParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateDeployment200 | CreateDeployment201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateDeployment200 | CreateDeployment201>(getCreateDeploymentUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createDeploymentBody)\n }\n);}\n\n\n\nexport const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments?${stringifiedParams}` : `${getApiBaseUrl()}/deployments`\n}\n\n/**\n * Lists what ran where, and when.\n *\n * By default the list is the history, newest first: every deployment of\n * the project with every target it made the release live on. With\n * `origin`, the history of that origin alone.\n *\n * With `live=true`, the list is what is served now, newest first: the\n * project's newest primary deployment, narrowed to origins that are still\n * primary, and the newest deployment to each live preview URL, narrowed to\n * the URLs it still serves. Combined with `origin`, it is the one\n * deployment that origin serves, or empty.\n *\n * `expand: [\"release\"]` embeds the release each deployment made live; it\n * requires `release.read` and does not change the ordering or the page\n * tokens.\n * @summary List deployments\n */\nexport const listDeployments = async (params: ListDeploymentsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListDeployments200> => {\n\n return customFetch<ListDeployments200>(getListDeploymentsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetDeploymentByIdUrl = (deploymentId: string,\n params: GetDeploymentByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}`\n}\n\n/**\n * Reads one deployment record.\n *\n * The lookup is scoped to the project in `project_id`: a deployment id\n * belonging to another project answers not found exactly as an unknown id\n * does, so the endpoint cannot be used to probe for deployments in projects\n * the caller cannot read.\n * @summary Get a deployment by id\n */\nexport const getDeploymentById = async (deploymentId: string,\n params: GetDeploymentByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeploymentById200> => {\n\n return customFetch<GetDeploymentById200>(getGetDeploymentByIdUrl(deploymentId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRollbackDeploymentUrl = (deploymentId: string,\n params: RollbackDeploymentParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/rollback?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/rollback`\n}\n\n/**\n * Re-deploys the release of the deployment named in the path to `primary`,\n * with the variable values it froze: a new deployment with `reason:\n * rollback` and `rollback_to` naming it. Like any deployment to `primary`,\n * it covers every current primary origin. Idempotent like a deployment to\n * `primary`: when nothing would change it answers `200` with the newest\n * primary deployment.\n *\n * Failures:\n * - `400 dep.invalid`: the deployment went to preview URLs (deploy to the\n * preview again instead), or the project has no primary origin.\n * - `404 dep.not_found`: no deployment of the project has that id.\n * - `409 dep.conflict`: `expected_deployment_id` is not the project's\n * newest primary deployment; `details.deployment` is that deployment.\n * - `409 rel.revoked`: the release is revoked.\n * @summary Roll back to a deployment\n */\nexport const rollbackDeployment = async (deploymentId: string,\n params: RollbackDeploymentParams,\n rollbackDeploymentBody?: RollbackDeploymentBody, options?: Parameters<typeof customFetch>[1]): Promise<RollbackDeployment200 | RollbackDeployment201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<RollbackDeployment200 | RollbackDeployment201>(getRollbackDeploymentUrl(deploymentId,params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(rollbackDeploymentBody)\n }\n);}\n\n\n\nexport const getGetDeploymentVariablesUrl = (deploymentId: string,\n params: GetDeploymentVariablesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/variables`\n}\n\n/**\n * Returns the variable values the deployment froze when it was made. Later\n * changes to the project's variables do not affect them. A secret reads\n * back as `{\"secret\": true}`.\n * @summary Get a deployment's variables\n */\nexport const getDeploymentVariables = async (deploymentId: string,\n params: GetDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeploymentVariables200> => {\n\n return customFetch<GetDeploymentVariables200>(getGetDeploymentVariablesUrl(deploymentId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiNA,MAAa,sBAAsB;CAKjC,OAAO,GAAG,cAAc,EAAE;AAC5B;;;;;;;;;;AAWA,MAAa,UAAU,OAAQ,YAAyE;CAEtG,OAAO,YAA4B,cAAc,GACjD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,uBAAuB;CAKlC,OAAO,GAAG,cAAc,EAAE;AAC5B;;;;;;;;;AAUA,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,EAAE,QAAQ,CAAC;EAC/D,IAAI,OAAO,YAAY,GACrB,OAAO,OAAO,YACZ,MAAM,KAAK,IAAkC,UAAU,MAAM,KAAK,KAAK,CAAqB,CAC9F;EAEF,MAAM,UAAsD,CAAC;EAC7D,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAgD,CAAC,GAClF,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAE3C,OAAO;CACT;CACF,OAAO,YAA2D,yBAAyB,cAAa,MAAM,GAC5G;EACE,GAAG;EACH,QAAQ;EACR,SAAS;GAAE,gBAAgB;GAAoB,GAAG,WAAW,SAAS,OAAO;EAAE;EAC/E,MAAM,KAAK,UAAU,sBAAsB;CAC7C,CACF;AAAE;AAIF,MAAa,gCAAgC,cACzC,WAA0C;CAC5C,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EAErD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,GAAG,cAAc,EAAE,eAAe,mBAAmB,OAAO,YAAY,CAAC,EAAE,aAAa,sBAAsB,GAAG,cAAc,EAAE,eAAe,mBAAmB,OAAO,YAAY,CAAC,EAAE;AACjO;;;;;;;AAQA,MAAa,yBAAyB,OAAO,cACzC,QAAsC,YAAoF;CAE5H,OAAO,YAAuC,6BAA6B,cAAa,MAAM,GAC9F;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
1
+ {"version":3,"file":"zitadelNextGen.mjs","names":[],"sources":["../../../src/generated/endpoints/zitadelNextGen.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Zitadel NextGen\n * This is the next generation of the Zitadel identity platform.\n * OpenAPI spec version: 0.0.1\n */\nimport {\n getApiBaseUrl\n} from '../../runtime/base-url';\n\nimport type {\n AddOrigin201,\n AddOriginBody,\n BeginUserPasskeyRegistration201,\n BeginUserPasskeyRegistrationBody,\n BuildRelease200,\n BuildRelease201,\n BuildReleaseBody,\n BuildReleaseParams,\n CompleteClaim200,\n CompleteClaimBody,\n CreateAuthAttempt201,\n CreateAuthAttemptBody,\n CreateBranding201,\n CreateBrandingBody,\n CreateBrandingParams,\n CreateDeployment200,\n CreateDeployment201,\n CreateDeploymentBody,\n CreateDeploymentParams,\n CreateFlow201,\n CreateFlowBody,\n CreateFlowDefinition201,\n CreateFlowDefinitionBody,\n CreateGrant201,\n CreateGrantBody,\n CreateGrantParams,\n CreateHandoff200,\n CreateIdp200,\n CreateIdp201,\n CreateIdpBody,\n CreateIdpParams,\n CreateProject201,\n CreateProjectBody,\n CreateRelease200,\n CreateRelease201,\n CreateReleaseBody,\n CreateReleaseParams,\n CreateSchema201,\n CreateSchemaBody,\n CreateSchemaParams,\n CreateSession201,\n CreateSessionBody,\n CreateTeam201,\n CreateTeamBody,\n CreateTeamParams,\n CreateUser201,\n CreateUserBody,\n CreateUserParams,\n DeleteGrantParams,\n DeleteVariableParams,\n EvaluatePolicy200,\n EvaluatePolicyBody,\n EvaluatePolicyParams,\n ExchangeHandoff200,\n ExchangeHandoffBody,\n ExchangeHandoffParams,\n FinishUserPasskeyRegistration201,\n FinishUserPasskeyRegistrationBody,\n GetAuthAttempt200,\n GetBrandingById200,\n GetClaimStatus200,\n GetClaimStatusParams,\n GetClaimWindow200,\n GetClaimWindowParams,\n GetDeploymentById200,\n GetDeploymentByIdParams,\n GetDeploymentVariables200,\n GetDeploymentVariablesParams,\n GetEvent200,\n GetEventParams,\n GetFlowDefinition200,\n GetFlowStep200,\n GetGrant200,\n GetGrantParams,\n GetIdpById200,\n GetIdpByIdParams,\n GetIdpRevisionById200,\n GetIdpRevisionByIdParams,\n GetLiveDefault,\n GetMyPasswordState200,\n GetMyPasswordStateParams,\n GetMySession200,\n GetMySessionCsrfToken200,\n GetMySessionCsrfTokenParams,\n GetMySessionParams,\n GetMyUser200,\n GetMyUserParams,\n GetMyUserSchema200,\n GetMyUserSchemaParams,\n GetPolicy200,\n GetPolicyParams,\n GetPolicyRevision200,\n GetPolicyRevisionParams,\n GetProject200,\n GetReadyDefault,\n GetReleaseById200,\n GetReleaseByIdParams,\n GetSchemaById200,\n GetSchemaByIdParams,\n GetSession200,\n GetTeam200,\n GetUserByID200,\n GetUserByIDParams,\n GetUserPasswordState200,\n GetVariable200,\n GetVariableParams,\n GetVariables200,\n GetVariablesParams,\n InitClaim201,\n IssueChallenge201,\n IssueChallengeBody,\n ListBranding200Item,\n ListBrandingParams,\n ListDeployments200,\n ListDeploymentsParams,\n ListEvents200,\n ListEventsParams,\n ListFlowDefinitions200,\n ListFlowDefinitionsParams,\n ListIdpRevisions200,\n ListIdpRevisionsParams,\n ListMyIdentityLinks200,\n ListMyIdentityLinksParams,\n ListMyPasskeys200,\n ListMyPasskeysParams,\n ListMyProjects200,\n ListMyProjectsParams,\n ListMyTeams200,\n ListMyTeamsParams,\n ListPolicies200,\n ListPoliciesParams,\n ListPolicyRevisions200,\n ListPolicyRevisionsParams,\n ListPreviews200,\n ListPreviewsParams,\n ListProjectAdmins200,\n ListProjectAdminsParams,\n ListReleases200,\n ListReleasesParams,\n ListSchemas200,\n ListSchemasParams,\n ListUserIdentityLinks200,\n ListUserIdentityLinksParams,\n ListUserPasskeys200,\n ListUserPasskeysParams,\n ListUserTeams200,\n ListUserTeamsParams,\n PatchMyUser200,\n PatchMyUserBody,\n PatchMyUserParams,\n PatchProject200,\n PatchProjectBody,\n PatchUserByID200,\n PatchUserByIDBody,\n PublishPolicy201,\n PublishPolicyBody,\n PublishPolicyParams,\n QueryGrants200,\n QueryGrantsBody,\n QueryGrantsParams,\n QueryIdps200,\n QueryIdpsBody,\n QueryIdpsParams,\n QueryProjects200,\n QueryProjectsBody,\n QuerySessions200,\n QuerySessionsBody,\n QuerySessionsParams,\n QueryTeams200,\n QueryTeamsBody,\n QueryTeamsParams,\n QueryUsers200,\n QueryUsersBody,\n QueryUsersParams,\n RemoveOriginBody,\n RemovePreviewBody,\n RevokeMySessionParams,\n RevokeRelease200,\n RevokeReleaseParams,\n RollbackDeployment200,\n RollbackDeployment201,\n RollbackDeploymentBody,\n RollbackDeploymentParams,\n SetUserPasswordBody,\n SubmitFlowStep200,\n SubmitFlowStepBody,\n UpdateTeam200,\n UpdateTeamBody,\n UpdateVariables200,\n UpdateVariablesBody,\n UpdateVariablesParams,\n VerifyChallengeProof200,\n VerifyChallengeProofBody\n} from '../model';\n\nimport { customFetch } from '../../runtime/fetch.ts';\n\nexport const getGetLiveUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/livez`\n}\n\n/**\n * Answers `ok` while the server process serves HTTP, and checks nothing\n * behind it.\n *\n * A liveness probe tells an orchestrator such as Kubernetes whether to\n * restart the process. Point it at `/livez` at the root, where the probes\n * stay, not under `/api/v1`. It never checks the database, so an outage of\n * the database does not restart every instance. `GET /readyz` takes an\n * instance out of rotation instead.\n * @summary Check the server's liveness\n */\nexport const getLive = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetLiveDefault> => {\n\n return customFetch<GetLiveDefault>(getGetLiveUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetReadyUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/readyz`\n}\n\n/**\n * Answers `ok` when the server can serve requests, which takes its database\n * answering within a second, and `fail` with `503` otherwise.\n *\n * A readiness probe tells an orchestrator such as Kubernetes whether to send\n * the instance requests. Point it at `/readyz` at the root, where the probes\n * stay, not under `/api/v1`, so that a server whose database does not answer\n * gets no requests until it does. The check is one round trip to the\n * database.\n * @summary Check the server's readiness\n */\nexport const getReady = async ( options?: Parameters<typeof customFetch>[1]): Promise<GetReadyDefault> => {\n\n return customFetch<GetReadyDefault>(getGetReadyUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateUserUrl = (params: CreateUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users?${stringifiedParams}` : `${getApiBaseUrl()}/users`\n}\n\n/**\n * Creates a user whose attributes satisfy the user schema named in the request.\n *\n * The server assigns the user's ID and returns it. `schema` is the `id` of a\n * schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With\n * `team_id`, the user also becomes an active member of that team. A value the\n * schema marks unique that another user already holds is refused with `409`;\n * send a different value.\n * @summary Create a user\n */\nexport const createUser = async (createUserBody: CreateUserBody,\n params: CreateUserParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateUser201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateUser201>(getCreateUserUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createUserBody)\n }\n);}\n\n\n\nexport const getQueryUsersUrl = (params?: QueryUsersParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/query?${stringifiedParams}` : `${getApiBaseUrl()}/users/query`\n}\n\n/**\n * Returns the users of a project, paginated with a cursor.\n *\n * `project_id` names the project to list; without it, the credential's own\n * project is listed.\n *\n * Accepts either a project secret (`oauth2`) or a user-bound console\n * session cookie (`sessionCookie`). Cookie-authenticated requests\n * follow the scheme's CSRF rules (`sessionCookie`).\n *\n * With a project secret, embedding `teams` with `expand`, or filtering by\n * `team_id`, also needs `team_membership.read`. Embedding\n * `lifecycle_owner_team` needs `team.read`. A console session carries no\n * scopes: it may do both when it may read the whole project, and gets\n * `403 user.permission_denied` otherwise.\n * @summary Query users\n */\nexport const queryUsers = async (queryUsersBody: QueryUsersBody,\n params?: QueryUsersParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryUsers200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryUsers200>(getQueryUsersUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryUsersBody)\n }\n);}\n\n\n\nexport const getGetUserByIDUrl = (userId: string,\n params?: GetUserByIDParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`\n}\n\n/**\n * Returns a user by ID, with the attributes its schema defines.\n *\n * With `team_id`, the user is returned only while they are an active member\n * of that team.\n * @summary Get a user by ID\n */\nexport const getUserByID = async (userId: string,\n params?: GetUserByIDParams, options?: Parameters<typeof customFetch>[1]): Promise<GetUserByID200> => {\n\n return customFetch<GetUserByID200>(getGetUserByIDUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPatchUserByIDUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`\n}\n\n/**\n * Partially updates a user's schema-defined attributes, and optionally\n * moves the user to another registered schema. The merged result is\n * validated against the schema before commit. Concurrent writes are\n * last-write-wins.\n *\n * To move the user, send `schema` with the `id` of a registered schema, as\n * `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.\n *\n * To ask whether a patch would succeed, send it with `\"dry_run\": true`. It takes\n * the same permission and answers the same status and `details` as the real\n * request, and it changes nothing and emits no `user.updated`. The request\n * itself is still recorded as `request.api`, like any other API call. A `200`\n * holds for the moment of the check: a unique value that is free then can be\n * taken before the real request, which then answers `409`.\n *\n * `dry_run` is a body field so that a server from before it refuses the\n * request as malformed (`400 req.invalid`) instead of applying the patch.\n * @summary Update a user by ID\n */\nexport const patchUserByID = async (userId: string,\n patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchUserByID200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PatchUserByID200>(getPatchUserByIDUrl(userId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(patchUserByIDBody)\n }\n);}\n\n\n\nexport const getDeleteUserByIDUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`\n}\n\n/**\n * Deletes a user, removes them from every team they belong to, and revokes\n * every grant they hold, on any project.\n *\n * The user is removed, not deactivated, and the deletion emits `user.deleted`,\n * plus `authz.revoked` for each grant on that grant's project.\n * With a project secret the request is idempotent: deleting a user that exists\n * in no project succeeds without changing anything. Deleting the last active\n * member of a project's owning team returns 409 `proj.last_owner` and changes\n * nothing.\n * @summary Delete a user by ID\n */\nexport const deleteUserByID = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteUserByIDUrl(userId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getListUserIdentityLinksUrl = (userId: string,\n params?: ListUserIdentityLinksParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/identity_links?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/identity_links`\n}\n\n/**\n * Lists the identity provider accounts a sign-in linked to the user, oldest\n * first. The provider's subject and claims, the data it asserts about the\n * account, are never returned.\n * @summary List the provider accounts linked to a user\n */\nexport const listUserIdentityLinks = async (userId: string,\n params?: ListUserIdentityLinksParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserIdentityLinks200> => {\n\n return customFetch<ListUserIdentityLinks200>(getListUserIdentityLinksUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListUserPasskeysUrl = (userId: string,\n params?: ListUserPasskeysParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys`\n}\n\n/**\n * Lists the passkeys registered for a user, newest first, paginated with a\n * cursor. A passkey is a WebAuthn credential that signs a user in without a\n * password.\n *\n * Each passkey carries its ID, its name and when it was registered, never the\n * credential itself.\n * @summary List a user's passkeys\n */\nexport const listUserPasskeys = async (userId: string,\n params?: ListUserPasskeysParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserPasskeys200> => {\n\n return customFetch<ListUserPasskeys200>(getListUserPasskeysUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBeginUserPasskeyRegistrationUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations`\n}\n\n/**\n * Starts a WebAuthn registration ceremony for the user and returns the\n * creation options for `navigator.credentials.create()`. A passkey is\n * registered in two steps: this one returns options for the browser, and\n * `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.\n *\n * Complete the ceremony with\n * `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five\n * minutes, using the `registration_id` this response returns. Credentials\n * already registered for the user are excluded automatically.\n * @summary Begin a passkey registration\n */\nexport const beginUserPasskeyRegistration = async (userId: string,\n beginUserPasskeyRegistrationBody: BeginUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<BeginUserPasskeyRegistration201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<BeginUserPasskeyRegistration201>(getBeginUserPasskeyRegistrationUrl(userId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(beginUserPasskeyRegistrationBody)\n }\n);}\n\n\n\nexport const getFinishUserPasskeyRegistrationUrl = (userId: string,\n registrationId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations/${encodeURIComponent(String(registrationId))}`\n}\n\n/**\n * Verifies the attestation against the registration ceremony and stores\n * the new passkey for the user. `registration_id` is the one that\n * `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)\n * returned when it started the ceremony. The attestation is\n * the browser's answer from `navigator.credentials.create()`.\n *\n * A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers\n * `att.stale_challenge`: begin a new registration. An unknown or\n * already-consumed registration ID answers `att.not_found`.\n * @summary Finish a passkey registration\n */\nexport const finishUserPasskeyRegistration = async (userId: string,\n registrationId: string,\n finishUserPasskeyRegistrationBody: FinishUserPasskeyRegistrationBody, options?: Parameters<typeof customFetch>[1]): Promise<FinishUserPasskeyRegistration201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<FinishUserPasskeyRegistration201>(getFinishUserPasskeyRegistrationUrl(userId,registrationId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(finishUserPasskeyRegistrationBody)\n }\n);}\n\n\n\nexport const getGetUserPasswordStateUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/password`\n}\n\n/**\n * Returns when the user's current password was set, and leaves `set_at` out\n * when the user has none. The password and its hash are never returned;\n * `setUserPassword` (`PUT` on the same path) sets one.\n * @summary Get a user's password state\n */\nexport const getUserPasswordState = async (userId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetUserPasswordState200> => {\n\n return customFetch<GetUserPasswordState200>(getGetUserPasswordStateUrl(userId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getSetUserPasswordUrl = (userId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/password`\n}\n\n/**\n * Sets a user's password, hashed with the project's current password hashing\n * policy.\n *\n * The new password replaces the current one, and setting it emits\n * `auth.factor.password.set`. A password the project's password policy\n * refuses answers `user.password_policy_violation`; send one that meets the\n * policy.\n *\n * The password policy is the one in the release that serves the caller's\n * `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a\n * preview URL gets that preview's policy, and one on a primary origin the\n * newest primary deployment's. A request with no `Origin`, or from the\n * console when the project does not list the console's origin, gets the\n * project's newest primary deployment.\n *\n * If the request is refused:\n * - `403 proj.origin_not_allowed`: the project admits no such origin. Add it\n * with `zitadel origin add`.\n * - `403 proj.preview_not_live`: the origin matches a preview pattern but has\n * no live preview. Run `zitadel preview` on the branch.\n * - `409 rel.not_deployed`: nothing is deployed to the origin. Run\n * `zitadel deploy`.\n * - `409 rel.no_default`: the request names no origin and the project has no\n * primary deployment. Run `zitadel deploy`.\n * - `409 rel.revoked`: the release that serves the origin is revoked.\n * @summary Set a user's password\n */\nexport const setUserPassword = async (userId: string,\n setUserPasswordBody: SetUserPasswordBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<void>(getSetUserPasswordUrl(userId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(setUserPasswordBody)\n }\n);}\n\n\n\nexport const getListUserTeamsUrl = (userId: string,\n params?: ListUserTeamsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/teams?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/teams`\n}\n\n/**\n * Lists the teams a user belongs to, ordered by team name. Each entry carries\n * the team's name, so a client renders a page without resolving IDs one by\n * one.\n *\n * This is the user's team memberships, not lifecycle ownership: the single\n * team that owns the user's lifecycle is reported as\n * `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships\n * the user was removed from are not returned.\n * @summary List the teams a user belongs to\n */\nexport const listUserTeams = async (userId: string,\n params?: ListUserTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListUserTeams200> => {\n\n return customFetch<ListUserTeams200>(getListUserTeamsUrl(userId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetMyUserUrl = (params?: GetMyUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me?${stringifiedParams}` : `${getApiBaseUrl()}/users/me`\n}\n\n/**\n * Returns the user signed in to the session that authenticates the request.\n *\n * The project and the user both come from the session cookie, so a caller only\n * ever reads their own user.\n *\n * With `project_id`, the user is returned only when the session belongs to\n * that project.\n * @summary Get my user information\n */\nexport const getMyUser = async (params?: GetMyUserParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMyUser200> => {\n\n return customFetch<GetMyUser200>(getGetMyUserUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPatchMyUserUrl = (params?: PatchMyUserParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me?${stringifiedParams}` : `${getApiBaseUrl()}/users/me`\n}\n\n/**\n * Partially updates the caller's own schema-defined attributes. The merged\n * result is validated against the user's schema before commit. Concurrent\n * writes are last-write-wins.\n *\n * With `project_id`, the user is updated only when the session belongs to\n * that project.\n * @summary Update my user information\n */\nexport const patchMyUser = async (patchMyUserBody: PatchMyUserBody,\n params?: PatchMyUserParams, options?: Parameters<typeof customFetch>[1]): Promise<PatchMyUser200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PatchMyUser200>(getPatchMyUserUrl(params),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(patchMyUserBody)\n }\n);}\n\n\n\nexport const getListMyIdentityLinksUrl = (params?: ListMyIdentityLinksParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/identity_links?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/identity_links`\n}\n\n/**\n * Lists the identity provider accounts a sign-in linked to the signed-in user,\n * oldest first. The provider's subject and claims, the data it asserts about\n * the account, are never returned.\n *\n * With `project_id`, the links are listed only when the session belongs to\n * that project.\n * @summary List the provider accounts linked to me\n */\nexport const listMyIdentityLinks = async (params?: ListMyIdentityLinksParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyIdentityLinks200> => {\n\n return customFetch<ListMyIdentityLinks200>(getListMyIdentityLinksUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListMyPasskeysUrl = (params?: ListMyPasskeysParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/passkeys?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/passkeys`\n}\n\n/**\n * Lists the signed-in user's own passkeys, newest first, paginated with a\n * cursor. A passkey is a WebAuthn credential that signs a user in without a\n * password. Each passkey carries its ID, its name and when it was registered,\n * never the credential itself.\n *\n * With `project_id`, the passkeys are listed only when the session belongs to\n * that project.\n * @summary List my passkeys\n */\nexport const listMyPasskeys = async (params?: ListMyPasskeysParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyPasskeys200> => {\n\n return customFetch<ListMyPasskeys200>(getListMyPasskeysUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetMyPasswordStateUrl = (params?: GetMyPasswordStateParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/password?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/password`\n}\n\n/**\n * Returns when the signed-in user's current password was set, and leaves\n * `set_at` out when they have none. The password and its hash are never\n * returned.\n *\n * With `project_id`, the state is read only when the session belongs to that\n * project.\n * @summary Get my password state\n */\nexport const getMyPasswordState = async (params?: GetMyPasswordStateParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMyPasswordState200> => {\n\n return customFetch<GetMyPasswordState200>(getGetMyPasswordStateUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListMyProjectsUrl = (params?: ListMyProjectsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/projects?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/projects`\n}\n\n/**\n * Lists the projects the signed-in user can act on: those they hold an active\n * grant on, either directly or through a team they are a member of. For a\n * platform operator, someone who runs the deployment, that is every project of\n * the deployment. Ordered by project ID and paged with an opaque cursor.\n *\n * This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one\n * project the calling credential is bound to. Here the session is the caller\n * and the grants are the answer, so the list spans projects.\n *\n * With `name_contains`, only the projects whose name contains that text are\n * listed. The search runs on the server together with the grants, so it\n * reaches every project the user can act on, however many there are, and\n * pages like the full list.\n *\n * With `project_id`, the projects are listed only when the session belongs to\n * that project. It names the project the session was signed in to, not one to\n * list.\n * @summary List the projects I can act on\n */\nexport const listMyProjects = async (params?: ListMyProjectsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyProjects200> => {\n\n return customFetch<ListMyProjects200>(getListMyProjectsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetMyUserSchemaUrl = (params?: GetMyUserSchemaParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/schema?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/schema`\n}\n\n/**\n * Returns the schema that validates the signed-in user's own record.\n *\n * With `project_id`, the schema is returned only when the session belongs to\n * that project.\n * @summary Get my user schema\n */\nexport const getMyUserSchema = async (params?: GetMyUserSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMyUserSchema200> => {\n\n return customFetch<GetMyUserSchema200>(getGetMyUserSchemaUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListMyTeamsUrl = (params?: ListMyTeamsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/teams?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/teams`\n}\n\n/**\n * Lists the teams the signed-in user belongs to, ordered by team name.\n *\n * With `project_id`, the teams are listed only when the session belongs to\n * that project.\n * @summary List the teams I belong to\n */\nexport const listMyTeams = async (params?: ListMyTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListMyTeams200> => {\n\n return customFetch<ListMyTeams200>(getListMyTeamsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateFlowUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/flow`\n}\n\n/**\n * Starts a flow: resolves a flow definition from the request's purpose and\n * audience, and returns the first step.\n *\n * The flow endpoints are the runtime calls the login component\n * (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the\n * step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to\n * get the next step. This call creates a new session implicitly, unless\n * `session_id` is provided together with that session's `session_token`\n * (for step-up or reauthentication on an existing session).\n *\n * The browser `Origin` header selects which deployment serves this attempt.\n * The server checks the origin against the project's origin patterns and live\n * previews, and the deployment that origin serves is the target: the\n * project's newest primary deployment when it names a primary origin, or the\n * newest live deployment to a preview URL. A\n * deployment is a release, the immutable bundle of the project's\n * configuration, made live at an origin. The deployment's release supplies\n * flow definitions, user schemas and branding. The resolved deployment is\n * sealed into the `_zflow` cookie so later steps keep the same\n * configuration.\n *\n * - An origin that matches no pattern answers `403` with\n * `proj.origin_not_allowed`, including when the project lists no origins.\n * Add the origin with `zitadel origin add`.\n * - An origin that matches a preview pattern with no live preview answers\n * `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.\n * - Nothing deployed to a listed origin or a live preview answers `409`\n * with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added\n * since the last deploy serves nothing until the next one.\n * - A loopback origin the project does not list answers `409` with\n * `rel.not_deployed` too, as no deployment can name it. Add it with\n * `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.\n * - A revoked release answers `409` with `rel.revoked`.\n *\n * A request with no `Origin` passes the check, and so does the server's own\n * origin, from which its console previews a project's login. Both are served\n * the project's newest primary deployment unless the project lists that\n * origin; with no primary deployment they answer `409` with\n * `rel.no_default`. A loopback origin passes the check and is its own\n * target. A step submitted from the server's own origin is still refused\n * unless the project lists it.\n *\n * The response contains an `id` field, the flow handle. Use it as the path\n * parameter for all subsequent `/flow/{id}/submit` calls.\n *\n * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing\n * the flow's orchestration state (current step, collected data, history).\n * The server is stateless between requests: all flow state lives in this\n * cookie. The browser sends it automatically on subsequent requests.\n * @summary Start a flow\n */\nexport const createFlow = async (createFlowBody: CreateFlowBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlow201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateFlow201>(getCreateFlowUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createFlowBody)\n }\n);}\n\n\n\nexport const getGetFlowStepUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/flow/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns the current step of a flow without advancing it. Use it to render\n * the step again after a page reload or a network error.\n *\n * The flow endpoints are the runtime calls the login component\n * (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and\n * `submitFlowStep` (`POST /flow/{id}/submit`) advances it.\n *\n * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not\n * re-resolve from `Origin`. If that release was revoked since the attempt\n * started, the response is `409` with `rel.revoked`.\n * @summary Get the current step of a flow\n */\nexport const getFlowStep = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowStep200> => {\n\n return customFetch<GetFlowStep200>(getGetFlowStepUrl(id),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getSubmitFlowStepUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/flow/${encodeURIComponent(String(id))}/submit`\n}\n\n/**\n * Submits the user's input for the current step of a flow. The server\n * validates it, processes it (for example, verifies a credential), advances\n * the flow through any invisible steps, and returns the next visible step.\n * The flow endpoints are the runtime calls the login component\n * (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.\n *\n * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)\n * with the new flow state. The server is stateless: all orchestration\n * state is carried in this cookie between requests.\n *\n * **Important:** The `id` in the response may differ from the `id` used in\n * the request. This happens when a flow pivots (pushes a new flow onto the\n * stack) or when a stacked flow completes (auto-pops to the parent flow).\n * Always use the `id` from the latest response for the next request.\n *\n * ## Flow completion\n *\n * When `step.type` is `complete`, the flow is terminal. The `step.behavior`\n * field tells the frontend what to do:\n *\n * | `behavior` | Action |\n * |------------- |------------------------------------------------------------|\n * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |\n * | `show` | Render the step as a success screen, such as registration. |\n *\n * A `complete` step is only returned when the **entire flow stack** is done.\n * If a stacked flow (for example, recovery pivoted from login) finishes, the\n * server auto-pops to the parent flow and returns the parent's next step.\n * The frontend never sees a `complete` for intermediate flows.\n *\n * ## External sign-in\n *\n * `{action: \"sso\", sso_provider_id, return_target}` on a step that offers\n * `sso_providers` returns the server-emitted `sso-redirect` step, whose\n * `redirect_url` the frontend navigates to.\n *\n * - The flow state does not change, but `_zflow` is re-sealed like on\n * every response, so its ten-minute window restarts at this submission;\n * the external sign-in and the return must complete within it.\n * - A second `Set-Cookie` line carries the browser-binding cookie the\n * callback checks: `HttpOnly`, `Path=/`, `SameSite=Lax`.\n * - On every host except http loopback it is `__Host-_zsso` with `Secure`.\n * - When the request host is http loopback (local development, where\n * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the\n * `__Host-` prefix is dropped because it requires `Secure`.\n *\n * An identity provider (an external sign-in such as Google) whose\n * `client_id` is a `${{ NAME }}` reference has it filled from the project's\n * variables. A provider the server cannot start a sign-in with, including a\n * reference with no variable behind it, re-renders the step with\n * `error.sso_unavailable`.\n *\n * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not\n * re-resolve from `Origin`. If that release was revoked since the attempt\n * started, the response is `409` with `rel.revoked`.\n * @summary Submit a flow step\n */\nexport const submitFlowStep = async (id: string,\n submitFlowStepBody: SubmitFlowStepBody, options?: Parameters<typeof customFetch>[1]): Promise<SubmitFlowStep200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(id),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(submitFlowStepBody)\n }\n);}\n\n\n\nexport const getCreateAuthAttemptUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts`\n}\n\n/**\n * Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.\n *\n * An authentication attempt collects the proofs for one sign-in and ends in a\n * handoff token. A handoff token is the short-lived, single-use credential that\n * a completed attempt hands to the session exchange. A client makes these calls\n * in order:\n *\n * 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.\n * 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as\n * `identifier`, `password` or `passkey`.\n * 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the\n * credential, code or assertion. Repeat steps 2 and 3 until\n * `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in\n * `required_factors` is verified.\n * 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.\n * 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token\n * for the session and its `session_token`.\n *\n * The body takes a `project_id` and a `challenge_nonce` (from\n * `POST /bootstrap/challenge`). For step-up authentication, which adds factors\n * to an existing session, also send that session's `session_id` and its\n * `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.\n * The attempt's `attempt_id` in the response is the ID every later call takes.\n *\n * The project comes from the project secret. A body `project_id` that names\n * another project answers `403` with `proj.mismatch`: send the credential's own\n * project. The attempt seals the project's newest primary deployment, whatever\n * the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a\n * revoked release answers `409` with `rel.revoked`.\n * @summary Create an authentication attempt\n */\nexport const createAuthAttempt = async (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateAuthAttempt201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateAuthAttempt201>(getCreateAuthAttemptUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createAuthAttemptBody)\n }\n);}\n\n\n\nexport const getGetAuthAttemptUrl = (attemptId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}`\n}\n\n/**\n * Returns the current state of an authentication attempt, one sign-in round.\n *\n * The response holds the attempt's state, available factors for the next\n * challenge, challenges issued so far, and any errors preventing progress.\n *\n * Use it to poll during long-running factor verifications, for example waiting\n * for a federated identity provider (IdP) callback or a device flow.\n * @summary Get an authentication attempt by ID\n */\nexport const getAuthAttempt = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetAuthAttempt200> => {\n\n return customFetch<GetAuthAttempt200>(getGetAuthAttemptUrl(attemptId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getIssueChallengeUrl = (attemptId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges`\n}\n\n/**\n * Issues a challenge, a request to prove one factor, within an authentication attempt.\n *\n * A challenge names one factor method, such as password, passkey, TOTP or OTP\n * via SMS. The response carries the challenge's `challenge_id`, method,\n * metadata and any UI hints. The client then submits the proof with\n * `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.\n * @summary Issue a factor challenge\n */\nexport const issueChallenge = async (attemptId: string,\n issueChallengeBody: IssueChallengeBody, options?: Parameters<typeof customFetch>[1]): Promise<IssueChallenge201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<IssueChallenge201>(getIssueChallengeUrl(attemptId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(issueChallengeBody)\n }\n);}\n\n\n\nexport const getVerifyChallengeProofUrl = (attemptId: string,\n challengeId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges/${encodeURIComponent(String(challengeId))}/verify`\n}\n\n/**\n * Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.\n *\n * The proof format depends on the challenge method. For example:\n *\n * - `password` method: { password: \"…\" }\n * - `totp` method: { totp: { code: \"123456\" } }\n * - `passkey` method: { passkey: { assertion: \"…\" } }\n * - `recovery_code` method: { recovery_code: \"…\" }\n *\n * On success, the factor is recorded on the authentication attempt. The\n * attempt moves to the next pending challenge, or completes when every required\n * factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).\n *\n * A `409` with `att.proof_rejected` means the proof was wrong. Check it and try\n * again. There is no retry limit: you can retry until the attempt expires.\n * @summary Verify a challenge proof\n */\nexport const verifyChallengeProof = async (attemptId: string,\n challengeId: string,\n verifyChallengeProofBody: VerifyChallengeProofBody, options?: Parameters<typeof customFetch>[1]): Promise<VerifyChallengeProof200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<VerifyChallengeProof200>(getVerifyChallengeProofUrl(attemptId,challengeId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(verifyChallengeProofBody)\n }\n);}\n\n\n\nexport const getCreateHandoffUrl = (attemptId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/handoff`\n}\n\n/**\n * Completes an authentication attempt and mints a `handoff_token`.\n *\n * A handoff token is the short-lived credential that a completed attempt hands\n * to the session exchange. Call this after every required factor is verified and\n * the attempt is in `completed` state. Otherwise it answers `409` with\n * `att.not_completed`: verify the remaining factors, then call again.\n *\n * Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60\n * seconds to receive the session and its `session_token`. The handoff token is:\n *\n * - Single-use: exchange it once, with no retry.\n * - Bound to the project: the exchange needs the same project's credential.\n * - Created once: a second call answers `409 att.already_handed_off`, even\n * with the same idempotency key.\n *\n * A revoked release is refused when the handoff is exchanged, not here. A\n * release is the configuration that `zitadel deploy` publishes.\n * @summary Complete an authentication attempt and create a handoff token\n */\nexport const createHandoff = async (attemptId: string, options?: Parameters<typeof customFetch>[1]): Promise<CreateHandoff200> => {\n\n return customFetch<CreateHandoff200>(getCreateHandoffUrl(attemptId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\nexport const getCreateProjectUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/projects`\n}\n\n/**\n * Creates a project and returns its project secret and preview secret, which no\n * other endpoint returns.\n *\n * A project is the top-level boundary that holds users, sessions and\n * configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).\n *\n * The request needs no credential and is rate-limited. On `429`, wait and retry.\n * Unless `seed_defaults` is `false`, the project starts with a default user schema\n * and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.\n * @summary Create a project\n */\nexport const createProject = async (createProjectBody: CreateProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateProject201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateProject201>(getCreateProjectUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createProjectBody)\n }\n);}\n\n\n\nexport const getQueryProjectsUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/query`\n}\n\n/**\n * Returns the project the project secret belongs to, as a page of at most one\n * project.\n *\n * A credential is scoped to one project today, so the filters and sorting\n * apply to that project alone. A signed-in person lists the projects they can\n * act on with `GET /users/me/projects`.\n * @summary Query projects\n */\nexport const queryProjects = async (queryProjectsBody: QueryProjectsBody, options?: Parameters<typeof customFetch>[1]): Promise<QueryProjects200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryProjects200>(getQueryProjectsUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryProjectsBody)\n }\n);}\n\n\n\nexport const getGetProjectUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}`\n}\n\n/**\n * Returns a project's current state: its name, origins, password hashing\n * method and owning team.\n *\n * Authenticate with the project secret, or with the session of a signed-in\n * person who holds a grant on the project.\n * @summary Get a project by ID\n */\nexport const getProject = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetProject200> => {\n\n return customFetch<GetProject200>(getGetProjectUrl(projectId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPatchProjectUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}`\n}\n\n/**\n * Updates a project's name or password hashing method.\n *\n * Fields you leave out keep their value. Sending `password_hash: null` drops\n * the project's own method and returns to the server default. A change of\n * method rewrites no stored password: each moves to the new method when its\n * owner next signs in or sets a new password.\n *\n * Authenticate with the project secret, or with the session of a signed-in\n * person who can act on the project.\n * @summary Update a project\n */\nexport const patchProject = async (projectId: string,\n patchProjectBody: PatchProjectBody, options?: Parameters<typeof customFetch>[1]): Promise<PatchProject200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PatchProject200>(getPatchProjectUrl(projectId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(patchProjectBody)\n }\n);}\n\n\n\nexport const getListProjectAdminsUrl = (projectId: string,\n params?: ListProjectAdminsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/admins?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/admins`\n}\n\n/**\n * Lists the people who can administer a project, and how each of them\n * holds that access.\n *\n * A person appears once, with one entry in `sources` per way they hold it:\n *\n * - `owning_team`: an active member of the team that owns the project, the\n * team a claim attaches the project to. Removing a grant does not remove\n * this access. It ends only when the person leaves the team or the\n * project changes owner.\n * - `grant`: an unexpired `admin` grant on the project, which is a role\n * given to the person (`grant_id` only) or to a team they are an active\n * member of (`grant_id` and `team`). Revoking that grant removes this\n * source.\n *\n * The list follows the authorization check. A person who left a team, or\n * whose team or user was deactivated, is not listed through it. Grants that\n * expired or carry a lower role are left out. A person whose only access is a\n * `viewer` or `editor` grant is not an admin and is not listed. Like the\n * check, the list does not look at a person's user status beyond that, so a\n * direct grant to a suspended person is listed.\n *\n * A person whose access comes only through teams the caller is not a\n * member of is left out. A team the caller is not in is named by `team_id`\n * only. The grant to such a team still shows in the project's grants.\n *\n * The list is ordered by `user_id` and paginated with `page_token`.\n * Authenticate with a project secret (`oauth2`), or with the session cookie\n * (`sessionCookie`) of a signed-in person who can read the project.\n * @summary List the admins of a project\n */\nexport const listProjectAdmins = async (projectId: string,\n params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListProjectAdmins200> => {\n\n return customFetch<ListProjectAdmins200>(getListProjectAdminsUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getInitClaimUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/init`\n}\n\n/**\n * Starts a claim, which attaches a project created before sign-in to a\n * team, and returns the `claim_url` to open in a browser.\n *\n * A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)\n * so that the team's members administer it. This operation mints a\n * single-use, short-lived challenge for an unclaimed project. The developer\n * opens `claim_url`, signs in and completes the claim in the browser; see\n * `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,\n * as `zitadel claim` does. The response's `expires_at` carries the exact expiry.\n *\n * Authenticate with the project secret that `createProject` (`POST /projects`) returns as\n * `project_secret`.\n *\n * A `409` means a team already claimed the project, and its details name\n * that team. A `410` means the project's 14-day claim window has closed,\n * which is final.\n * @summary Initialize a project claim\n */\nexport const initClaim = async (projectId: string, options?: Parameters<typeof customFetch>[1]): Promise<InitClaim201> => {\n\n return customFetch<InitClaim201>(getInitClaimUrl(projectId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\nexport const getGetClaimStatusUrl = (projectId: string,\n params: GetClaimStatusParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/status?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/status`\n}\n\n/**\n * Returns the status of a claim challenge, `pending` or `completed`, while a\n * browser completes the claim.\n *\n * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).\n * `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.\n * Once the project is claimed, the response is `completed` with the owning\n * team, the claim timestamp and the dashboard URL.\n *\n * The claim itself, not the polled challenge, decides the status. A project\n * claimed through another concurrent challenge also reports `completed`. A\n * completed claim keeps reporting `completed` past this challenge's expiry\n * and past the project's claim window.\n *\n * Pass the `challenge_id` that `initClaim` returns. Authenticate with the\n * project secret that started the challenge. On `410` with `proj.claim_expired`, call\n * `initClaim` again for a fresh challenge.\n * @summary Get the status of a project claim\n */\nexport const getClaimStatus = async (projectId: string,\n params: GetClaimStatusParams, options?: Parameters<typeof customFetch>[1]): Promise<GetClaimStatus200> => {\n\n return customFetch<GetClaimStatus200>(getGetClaimStatusUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCompleteClaimUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/complete`\n}\n\n/**\n * Completes a claim by attaching the project to the signed-in developer's\n * personal team.\n *\n * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),\n * so that the team's members administer it. The claim page in the browser\n * calls this operation after the developer signs in, with the session cookie.\n * The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the\n * request's single-use, browser-safe authorization.\n *\n * Claims are first-claim-wins and spend the challenge. If a team already\n * claimed the project, the request answers `409`. If the challenge lapsed\n * (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.\n * @summary Complete a project claim\n */\nexport const completeClaim = async (projectId: string,\n completeClaimBody: CompleteClaimBody, options?: Parameters<typeof customFetch>[1]): Promise<CompleteClaim200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CompleteClaim200>(getCompleteClaimUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(completeClaimBody)\n }\n);}\n\n\n\nexport const getGetClaimWindowUrl = (projectId: string,\n params: GetClaimWindowParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/window?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/window`\n}\n\n/**\n * Returns when a project's claim window closes and whether it has already\n * closed.\n *\n * The claim window is the 14 days after a project is created during which a\n * team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page\n * in the browser calls this operation to show how long is left.\n *\n * The request needs no credential, because the claim page calls it before the\n * developer has signed in. Holding the `challenge_id` from the claim URL that\n * `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)\n * accepts. The response reveals only the window, never the project itself.\n * Unlike `completeClaim` it spends nothing, so reloading the page is safe.\n * @summary Get the claim window for a project\n */\nexport const getClaimWindow = async (projectId: string,\n params: GetClaimWindowParams, options?: Parameters<typeof customFetch>[1]): Promise<GetClaimWindow200> => {\n\n return customFetch<GetClaimWindow200>(getGetClaimWindowUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getAddOriginUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/origins`\n}\n\n/**\n * Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.\n *\n * An origin pattern says which web origins the project accepts. A `primary`\n * pattern must be an exact URL with no wildcard. A `preview` pattern may\n * include a single DNS-label wildcard.\n *\n * While the project has no patterns, it admits no origin except a loopback\n * origin, so the first pattern you add opens it to the origins that\n * pattern matches. Admitting an origin is not serving it: a new `primary`\n * origin answers `rel.not_deployed` until the next deploy to primary\n * (`zitadel deploy`).\n *\n * Adding a pattern that already exists with the same kind is idempotent and\n * answers `201` with the stored origin. If the pattern exists with the other\n * kind, the request is refused with `origin.kind_conflict`: remove it with\n * `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.\n * @summary Add an origin pattern\n */\nexport const addOrigin = async (projectId: string,\n addOriginBody: AddOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<AddOrigin201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<AddOrigin201>(getAddOriginUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(addOriginBody)\n }\n);}\n\n\n\nexport const getRemoveOriginUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/origins/remove`\n}\n\n/**\n * Removes one origin pattern from the project's origins.\n *\n * Requests from URLs only that pattern admitted are refused from then on.\n * Live previews and deployment history are untouched. Removing the last\n * pattern leaves an empty list, which admits no origin except a loopback\n * origin.\n * Removing a pattern that is already absent is idempotent and answers `204`.\n *\n * The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.\n * @summary Remove an origin pattern\n */\nexport const removeOrigin = async (projectId: string,\n removeOriginBody: RemoveOriginBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<void>(getRemoveOriginUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(removeOriginBody)\n }\n);}\n\n\n\nexport const getListPreviewsUrl = (projectId: string,\n params?: ListPreviewsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews`\n}\n\n/**\n * Lists the project's live previews, newest first by `created_at`.\n *\n * A preview is a URL with a deployment on it, served until it expires.\n * An expired or removed preview is not listed. What was deployed to it stays\n * in `GET /deployments`.\n * @summary List a project's previews\n */\nexport const listPreviews = async (projectId: string,\n params?: ListPreviewsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPreviews200> => {\n\n return customFetch<ListPreviews200>(getListPreviewsUrl(projectId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRemovePreviewUrl = (projectId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews/remove`\n}\n\n/**\n * Ends a preview before it expires: the URL stops being served at once.\n *\n * The deployments to it stay in the history. The call is idempotent.\n * A URL with no live preview answers `204` too. That includes one that\n * expired or was removed before, so a cleanup that races the expiry still\n * succeeds.\n *\n * The URL travels in the body rather than the path because an origin\n * contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).\n * @summary Remove a preview\n */\nexport const removePreview = async (projectId: string,\n removePreviewBody: RemovePreviewBody, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<void>(getRemovePreviewUrl(projectId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(removePreviewBody)\n }\n);}\n\n\n\nexport const getCreateSessionUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/sessions`\n}\n\n/**\n * Creates an anonymous session with no user and no factors (`state: building`).\n *\n * A session is the durable record of a signed-in user. This call is optional: an\n * authentication attempt creates a session implicitly if none is provided.\n * Create one explicitly when you want to:\n *\n * - Pre-allocate a `session_id` before the user is known, so device and telemetry signals\n * can be correlated with the eventual authenticated session from the start.\n * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.\n *\n * Creating a session runs on the project credential (`session.write`). The returned\n * `session_token` is a session credential for the end-user client, not a\n * management scope. It is delivered as the `__Host-zitadel_session` cookie\n * (`zitadel_session` over plain http to a loopback host) and authorises the\n * self-service operations `GET /sessions/me` and `DELETE /sessions/me`\n * (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`\n * and `DELETE /sessions/{session_id}` are operator endpoints and require\n * `session.read` / `session.delete` instead.\n *\n * The `session_token` is superseded when a handoff exchange completes. Clients\n * must replace it at that point.\n *\n * Anonymous sessions expire after 10 minutes. The lifetime resets to the\n * configured full session lifetime when a completing authentication attempt\n * writes the first authentication factor.\n * @summary Create an anonymous session\n */\nexport const createSession = async (createSessionBody: CreateSessionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateSession201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateSession201>(getCreateSessionUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createSessionBody)\n }\n);}\n\n\n\nexport const getQuerySessionsUrl = (params: QuerySessionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/query?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/query`\n}\n\n/**\n * Returns a page of a project's sessions.\n *\n * Sessions of every lifecycle state are returned; each carries its `state`.\n * Requires the `session.read` scope.\n * @summary Query sessions\n */\nexport const querySessions = async (querySessionsBody: QuerySessionsBody,\n params: QuerySessionsParams, options?: Parameters<typeof customFetch>[1]): Promise<QuerySessions200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QuerySessions200>(getQuerySessionsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(querySessionsBody)\n }\n);}\n\n\n\nexport const getExchangeHandoffUrl = (params: ExchangeHandoffParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/exchange?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/exchange`\n}\n\n/**\n * Exchanges a handoff token for a session and a `session_token`.\n *\n * A handoff token is the short-lived, single-use credential that\n * `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is\n * complete. This call consumes it. It is the last step of the sign-in sequence:\n * create the attempt, issue a challenge, verify the proof, create the handoff,\n * exchange it.\n *\n * The server resolves the originating authentication attempt from the token and then:\n *\n * | Originating authentication attempt | Outcome |\n * |---|---|\n * | No `session_id` | A new authenticated session is **created**. |\n * | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |\n * | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |\n *\n * The response shape is identical in all three cases.\n *\n * The `session_token` supersedes any previously issued `session_token` for the\n * same session. Clients must replace their stored token at this point.\n *\n * Requires a project service key (OAuth2 client credentials). The project comes\n * from the project secret. A query `project_id` that disagrees answers `403`\n * with `proj.mismatch`.\n *\n * The exchange resolves a deployment the same way as other runtime operations.\n * A deployment makes a release live, and a release is the configuration that\n * `zitadel deploy` publishes. With no browser `Origin` and\n * nothing deployed to the resolved target, the response is `409` with\n * `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release\n * answers `409` with `rel.revoked`.\n * @summary Exchange a handoff token for a session\n */\nexport const exchangeHandoff = async (exchangeHandoffBody: ExchangeHandoffBody,\n params: ExchangeHandoffParams, options?: Parameters<typeof customFetch>[1]): Promise<ExchangeHandoff200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<ExchangeHandoff200>(getExchangeHandoffUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(exchangeHandoffBody)\n }\n);}\n\n\n\nexport const getGetSessionUrl = (sessionId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/sessions/${encodeURIComponent(String(sessionId))}`\n}\n\n/**\n * Returns the current state of a session, including its factors and all currently satisfied assurance levels.\n *\n * An assurance level is a profile, such as `urn:nist:aal:2`, that the\n * session's verified factors satisfy. `assurance_levels[]` may shrink over time\n * as factor freshness windows expire, without the session itself expiring.\n * To restore a dropped level, use step-up authentication: create an\n * authentication attempt with the same `session_id`.\n * @summary Get a session by ID\n */\nexport const getSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetSession200> => {\n\n return customFetch<GetSession200>(getGetSessionUrl(sessionId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRevokeSessionUrl = (sessionId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/sessions/${encodeURIComponent(String(sessionId))}`\n}\n\n/**\n * Revokes a session by deleting it, immediately and for good. A later\n * `getSession` (`GET /sessions/{session_id}`) for it answers `404`.\n *\n * This is the operator revoke path. It requires the `session.delete` scope on a\n * project-bound credential. End-user sign-out with the session cookie is\n * `DELETE /sessions/me` (`sessionCookie` scheme).\n *\n * Idempotent: revoking a session that does not exist, or was already revoked,\n * still returns `204`. After revocation, any tokens derived from the session are\n * invalidated.\n * @summary Revoke a session\n */\nexport const revokeSession = async (sessionId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getRevokeSessionUrl(sessionId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getGetMySessionUrl = (params?: GetMySessionParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me`\n}\n\n/**\n * Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.\n *\n * With `project_id`, the session is returned only when it belongs to that project.\n *\n * An assurance level is a profile, such as `urn:nist:aal:2`, that the\n * session's verified factors satisfy. `assurance_levels[]` may shrink over time\n * as factor freshness windows expire, without the session itself expiring.\n * To restore a dropped level, use step-up authentication: create an\n * authentication attempt with the same `session_id`.\n * @summary Get my session\n */\nexport const getMySession = async (params?: GetMySessionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMySession200> => {\n\n return customFetch<GetMySession200>(getGetMySessionUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRevokeMySessionUrl = (params?: RevokeMySessionParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me`\n}\n\n/**\n * Revokes the caller's own session by deleting it, which signs the user out.\n *\n * The request needs the session cookie issued at creation (or superseded by a\n * handoff exchange). It also needs the session's CSRF token from\n * `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,\n * this still returns `204`. Any tokens derived from the session are\n * invalidated, and the response clears the cookie.\n *\n * With `project_id`, only a session of that project is revoked. A session of\n * another project is left alone, and so is its cookie.\n * @summary Revoke my session\n */\nexport const revokeMySession = async (params?: RevokeMySessionParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getRevokeMySessionUrl(params),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getGetMySessionCsrfTokenUrl = (params?: GetMySessionCsrfTokenParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me/csrf?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me/csrf`\n}\n\n/**\n * Returns the session-bound token that protects against cross-site request\n * forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the\n * state-changing requests that the session cookie authenticates and that\n * require it; see the `sessionCookie` scheme. It authorizes nothing on its\n * own: the HttpOnly cookie is still the credential, and a cross-site page\n * cannot read this response. It stays the same for the life of the session,\n * so a client fetches it once per session.\n *\n * With `project_id`, the token is returned only when the session belongs to\n * that project.\n * @summary Get my session's CSRF token\n */\nexport const getMySessionCsrfToken = async (params?: GetMySessionCsrfTokenParams, options?: Parameters<typeof customFetch>[1]): Promise<GetMySessionCsrfToken200> => {\n\n return customFetch<GetMySessionCsrfToken200>(getGetMySessionCsrfTokenUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateSchemaUrl = (params: CreateSchemaParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas?${stringifiedParams}` : `${getApiBaseUrl()}/schemas`\n}\n\n/**\n * Creates a user schema, the JSON Schema that says which attributes a user\n * has and which attribute identifies the user.\n *\n * The request is either a user schema (`kind: user-schema`) or a schema URL\n * (`kind: schema-url`) that the server resolves. The response's `id` is what\n * `createUser` (`POST /users`) takes as `schema`.\n *\n * The optional `$id` is the JSON Schema document URI that identifies the\n * schema in later requests. It is a stable identity for GitOps, not a\n * free-form resource key. When `$id` is omitted, the server generates a\n * `sch_*` URL. When provided, `$id` must be unique within the project and\n * should ideally be a valid URI pointing at where the schema can be accessed.\n * A `$id` that already exists in the project is refused; pick another or\n * omit it.\n * @summary Create a schema\n */\nexport const createSchema = async (createSchemaBody: CreateSchemaBody,\n params: CreateSchemaParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateSchema201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateSchema201>(getCreateSchemaUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createSchemaBody)\n }\n);}\n\n\n\nexport const getListSchemasUrl = (params: ListSchemasParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas?${stringifiedParams}` : `${getApiBaseUrl()}/schemas`\n}\n\n/**\n * Lists the schemas of a project, newest first, paginated with a cursor.\n * Filter by `object_type` or `kind`, and choose which revisions to return\n * with `revisions`.\n *\n * A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.\n * @summary List schemas\n */\nexport const listSchemas = async (params: ListSchemasParams, options?: Parameters<typeof customFetch>[1]): Promise<ListSchemas200> => {\n\n return customFetch<ListSchemas200>(getListSchemasUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetSchemaByIdUrl = (id: string,\n params?: GetSchemaByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns a schema by ID. A schema ID identifies one immutable revision, so\n * this returns exactly that revision. To find the current revision of an\n * object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.\n *\n * Schema IDs are unique within a project, not across projects (the seeded\n * default schema carries the same `$id` in every project). A console\n * session that manages more than one project names the project with\n * `project_id`; without it, the ID is resolved in the credential's own\n * project when it is ambiguous. A project secret always resolves in its\n * own project and ignores `project_id`.\n * @summary Get a schema by ID\n */\nexport const getSchemaById = async (id: string,\n params?: GetSchemaByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetSchemaById200> => {\n\n return customFetch<GetSchemaById200>(getGetSchemaByIdUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateFlowDefinitionUrl = () => {\n\n\n\n\n return `${getApiBaseUrl()}/flow_definitions`\n}\n\n/**\n * Creates a flow definition by publishing a new revision of it. It records a\n * `flowdef.created` event.\n *\n * A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that\n * defines the sequence of steps (capabilities) for one user journey, such as\n * registration, login or password reset. The body follows the flow\n * definition schema, which includes the flow's purpose, audience and steps.\n *\n * Every call allocates a new opaque ID. That `id` is the `revision_id` a\n * release pins for `kind: flow_definition`.\n *\n * Revisions of one flow share its `name`. Posting a definition under an\n * existing `name` publishes a new revision of that flow, which is not a\n * conflict. List with `name` to see a flow's revisions, newest by creation\n * time first.\n * @summary Create a flow definition\n */\nexport const createFlowDefinition = async (createFlowDefinitionBody: CreateFlowDefinitionBody, options?: Parameters<typeof customFetch>[1]): Promise<CreateFlowDefinition201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateFlowDefinition201>(getCreateFlowDefinitionUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createFlowDefinitionBody)\n }\n);}\n\n\n\nexport const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/flow_definitions?${stringifiedParams}` : `${getApiBaseUrl()}/flow_definitions`\n}\n\n/**\n * Lists the project's flow definitions with their configurations, newest by\n * creation time first. A flow definition sets which step of a sign-in\n * renders when, and which fields each step collects.\n *\n * The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)\n * takes. Filter by `name` to list the revisions of one flow.\n * @summary List flow definitions\n */\nexport const listFlowDefinitions = async (params: ListFlowDefinitionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListFlowDefinitions200> => {\n\n return customFetch<ListFlowDefinitions200>(getListFlowDefinitionsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetFlowDefinitionUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns one flow definition revision. Pass the `id` that\n * `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.\n * @summary Get a flow definition by ID\n */\nexport const getFlowDefinition = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetFlowDefinition200> => {\n\n return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(id),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateTeamUrl = (params: CreateTeamParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/teams?${stringifiedParams}` : `${getApiBaseUrl()}/teams`\n}\n\n/**\n * Creates a team in the project, with a name no other team in the project has.\n *\n * A team groups users inside a project and can represent a customer. A taken\n * name is refused with `409 team.already_exists`: choose another name. The\n * new team has no members yet.\n * @summary Create a team\n */\nexport const createTeam = async (createTeamBody: CreateTeamBody,\n params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateTeam201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateTeam201>(getCreateTeamUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createTeamBody)\n }\n);}\n\n\n\nexport const getQueryTeamsUrl = (params?: QueryTeamsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/teams/query?${stringifiedParams}` : `${getApiBaseUrl()}/teams/query`\n}\n\n/**\n * Returns a page of a project's teams.\n *\n * Pass the response's `next_page_token` as `page_token` to fetch the next\n * page. `project_id` names the project to list; without it, the credential's\n * own project is listed.\n * @summary Query teams\n */\nexport const queryTeams = async (queryTeamsBody: QueryTeamsBody,\n params?: QueryTeamsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryTeams200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryTeams200>(getQueryTeamsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryTeamsBody)\n }\n);}\n\n\n\nexport const getGetTeamUrl = (teamId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`\n}\n\n/**\n * Returns a team, a group of users inside a project, by ID.\n *\n * A deactivated team is still returned, with status `deactivated`.\n * @summary Get a team by ID\n */\nexport const getTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<GetTeam200> => {\n\n return customFetch<GetTeam200>(getGetTeamUrl(teamId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getDeleteTeamUrl = (teamId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`\n}\n\n/**\n * Deactivates a team and removes its memberships.\n *\n * The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with\n * status `deactivated`. The users whose lifecycle the team owns are\n * deactivated with it.\n *\n * The request is idempotent. Deleting a team that is already deactivated\n * or does not exist succeeds without changing anything.\n *\n * A team that still owns a project is refused with `409 team.owns_project`.\n * Deactivating it would leave the project owned by a deactivated team and so\n * unmanageable. No endpoint ends a team's ownership of a project yet, so for\n * now such a team cannot be deactivated through the API.\n * @summary Deactivate a team\n */\nexport const deleteTeam = async (teamId: string, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteTeamUrl(teamId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getUpdateTeamUrl = (teamId: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`\n}\n\n/**\n * Renames an active team.\n *\n * Only active teams can be updated. A deactivated team answers `404`. The new\n * name must be unique within the project, and a taken name answers `409`:\n * choose another name.\n * @summary Update a team\n */\nexport const updateTeam = async (teamId: string,\n updateTeamBody: UpdateTeamBody, options?: Parameters<typeof customFetch>[1]): Promise<UpdateTeam200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<UpdateTeam200>(getUpdateTeamUrl(teamId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(updateTeamBody)\n }\n);}\n\n\n\nexport const getCreateBrandingUrl = (params: CreateBrandingParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/branding?${stringifiedParams}` : `${getApiBaseUrl()}/branding`\n}\n\n/**\n * Publishes a new immutable branding revision for the project, and records a\n * `branding.created` event. Branding revisions cannot be updated or deleted.\n * Every edit publishes a new revision. Flow responses carry the branding\n * revision the request's release pins.\n *\n * The `id` of the new revision is the revision ID a release pins for\n * `kind: branding`.\n *\n * The `liquid_template` is validated lexically on save (size, encoding,\n * banned patterns such as `<script>` tags, inline event handlers, and the\n * `| raw` filter). Authoritative LiquidJS validation runs at authoring\n * time, in `zitadel deploy` and `zitadel deploy --dry-run`.\n * @summary Publish a branding revision\n */\nexport const createBranding = async (createBrandingBody: CreateBrandingBody,\n params: CreateBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateBranding201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateBranding201>(getCreateBrandingUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createBrandingBody)\n }\n);}\n\n\n\nexport const getListBrandingUrl = (params: ListBrandingParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/branding?${stringifiedParams}` : `${getApiBaseUrl()}/branding`\n}\n\n/**\n * Lists a project's branding revisions, newest first, capped at the 100 most\n * recent and not paginated. The first entry is the newest revision.\n *\n * The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and\n * that a release pins for `kind: branding`.\n * @summary List branding revisions\n */\nexport const listBranding = async (params: ListBrandingParams, options?: Parameters<typeof customFetch>[1]): Promise<ListBranding200Item[]> => {\n\n return customFetch<ListBranding200Item[]>(getListBrandingUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetBrandingByIdUrl = (id: string,) => {\n\n\n\n\n return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns one branding revision, including its stored configuration. Pass the\n * `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.\n * @summary Get a branding revision by ID\n */\nexport const getBrandingById = async (id: string, options?: Parameters<typeof customFetch>[1]): Promise<GetBrandingById200> => {\n\n return customFetch<GetBrandingById200>(getGetBrandingByIdUrl(id),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateIdpUrl = (params: CreateIdpParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps?${stringifiedParams}` : `${getApiBaseUrl()}/idps`\n}\n\n/**\n * Creates or revises an identity provider, an external sign-in such as\n * Google, from its connection document. If the slug does not already exist,\n * a new identity provider is created. If one with that slug already exists,\n * a revision is created.\n *\n * A revision gets a new `revision_id` and does not modify the identity\n * provider's `id`. Identity links, which tie a user to an account at the\n * provider, keep resolving. Releases and authentication attempts stay pinned\n * to the revision they captured.\n *\n * Identity fields are fixed for the life of the identity provider and a\n * revision that changes one is rejected: `protocol`, `subject_claim`, and\n * `issuer`, the field that names the authority. Their values decide which provider\n * account a stored subject belongs to, so changing one would silently\n * repoint existing identities at a different provider.\n *\n * `subject_claim` is optional, and `sub` is used as the default value. If a\n * revision updates `subject_claim` to a different value than the one set\n * during creation, the request is rejected.\n *\n * OIDC is the only protocol.\n *\n * The document is validated against the `idp-connection.json` schema before\n * anything is stored. The rules the server applies when it starts a sign-in\n * then run on the document, so a document that could never start one is\n * refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint\n * without the others. Set no endpoint, and discovery fills them, or set\n * `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and\n * `userinfo_endpoint`. `userinfo_endpoint` may be left out when\n * `id_token_mapping` is on, but setting it alone still counts as setting an\n * endpoint. The details list the missing endpoints.\n *\n * A refused document stores nothing, and on a revise the current revision\n * stays unchanged.\n * @summary Create or revise an identity provider\n */\nexport const createIdp = async (createIdpBody: CreateIdpBody,\n params: CreateIdpParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateIdp200 | CreateIdp201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateIdp200 | CreateIdp201>(getCreateIdpUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createIdpBody)\n }\n);}\n\n\n\nexport const getQueryIdpsUrl = (params: QueryIdpsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/query?${stringifiedParams}` : `${getApiBaseUrl()}/idps/query`\n}\n\n/**\n * Returns the identity providers of a project, external sign-ins such as\n * Google, paginated with a cursor. Each identity provider appears once, with\n * its newest revision.\n * @summary Query identity providers\n */\nexport const queryIdps = async (queryIdpsBody: QueryIdpsBody,\n params: QueryIdpsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryIdps200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryIdps200>(getQueryIdpsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryIdpsBody)\n }\n);}\n\n\n\nexport const getGetIdpByIdUrl = (id: string,\n params: GetIdpByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns an identity provider, an external sign-in such as Google, by ID at\n * its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists\n * every revision of it.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary Get an identity provider by ID\n */\nexport const getIdpById = async (id: string,\n params: GetIdpByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpById200> => {\n\n return customFetch<GetIdpById200>(getGetIdpByIdUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListIdpRevisionsUrl = (id: string,\n params: ListIdpRevisionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}/revisions`\n}\n\n/**\n * Lists every revision of one identity provider, an external sign-in such as\n * Google, newest first, paginated with a cursor. The order is fixed, so there\n * is no `sorting`.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary List the revisions of an identity provider\n */\nexport const listIdpRevisions = async (id: string,\n params: ListIdpRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListIdpRevisions200> => {\n\n return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetIdpRevisionByIdUrl = (revisionId: string,\n params: GetIdpRevisionByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/revisions/${encodeURIComponent(String(revisionId))}`\n}\n\n/**\n * Returns one revision of an identity provider, an external sign-in such as\n * Google, by its `revision_id`, the value an authentication attempt or a\n * release pins.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary Get a revision of an identity provider\n */\nexport const getIdpRevisionById = async (revisionId: string,\n params: GetIdpRevisionByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetIdpRevisionById200> => {\n\n return customFetch<GetIdpRevisionById200>(getGetIdpRevisionByIdUrl(revisionId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListPoliciesUrl = (params: ListPoliciesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies?${stringifiedParams}` : `${getApiBaseUrl()}/policies`\n}\n\n/**\n * Lists the project's policies, one per operation, each as its newest\n * revision.\n *\n * A policy holds a project's rules for one operation, such as setting a\n * password. The list is ordered by `created_at` (first publish) and then\n * `id`. Filter by `operation` to read the policy of one operation; a project\n * that never published one gets an empty list.\n *\n * The lookup is scoped to the project in `project_id`.\n * @summary List policies\n */\nexport const listPolicies = async (params: ListPoliciesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPolicies200> => {\n\n return customFetch<ListPolicies200>(getListPoliciesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPublishPolicyUrl = (params: PublishPolicyParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies?${stringifiedParams}` : `${getApiBaseUrl()}/policies`\n}\n\n/**\n * Publishes the project's policy for an operation as a new immutable\n * revision, creating the policy on its first publish. A revision applies\n * once a deployed release pins it. Nothing already stored is\n * re-evaluated, so a stricter password policy applies the next time a\n * password is set.\n *\n * A policy holds a project's rules for one operation, such as setting a\n * password. The first publish records a `policy.created` event and every\n * later one a `policy.updated` event.\n *\n * The request is typed by `operation`. An unknown operation or setting, or\n * a value of the wrong type or outside its bounds, answers `req.invalid`\n * like any malformed request.\n *\n * The operation's template then checks the config again, together with the\n * rules that relate settings to each other (a `min_length` above\n * `max_length`), and answers `pol.invalid`. Its `details.details.violations`\n * lists everything that failed, settings first, then rules.\n * `{\"setting\": \"min_length\"}` names one setting. `{\"config_rule\":\n * \"min_length_not_above_max_length\", \"settings\": [\"min_length\",\n * \"max_length\"]}` names a rule across settings, with the settings it reads.\n * Fix what the violations list and publish again. To check a config without\n * publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).\n *\n * A setting left out is off, and `{}` switches every rule off; there are no\n * defaults.\n * @summary Publish a policy\n */\nexport const publishPolicy = async (publishPolicyBody: PublishPolicyBody,\n params: PublishPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<PublishPolicy201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<PublishPolicy201>(getPublishPolicyUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(publishPolicyBody)\n }\n);}\n\n\n\nexport const getEvaluatePolicyUrl = (params: EvaluatePolicyParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/evaluate?${stringifiedParams}` : `${getApiBaseUrl()}/policies/evaluate`\n}\n\n/**\n * Evaluates a policy config against one request, without side effects, and\n * answers the decision the operation would reach. A policy holds a\n * project's rules for one operation, such as setting a password.\n *\n * Nothing is read from or written to the project. The config is the one in\n * the body, checked exactly as a publish checks it, so an invalid config\n * answers `pol.invalid` with the same violations. Fix the settings the\n * violations list and send the request again.\n *\n * `input` is what the operation's request carries, in the operation's own\n * terms (a password, not its length). The server derives what the policy\n * checks with the code the live operation runs, guards included. `facts`\n * states what the operation would look up at runtime, such as whether the\n * candidate matches one of the user's kept passwords.\n *\n * The decision and the names of the failed rules hold wherever the\n * operation runs. `code` and `violations` are what an API call answers. A\n * login flow shows the same rules as field errors on the password field\n * (`error.x-auth-methods#password_<rule>` in `step.error`).\n *\n * This operation does not choose which policy a project or release applies.\n * Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.\n *\n * The caller needs read access to the project in `project_id`.\n * @summary Evaluate a policy\n */\nexport const evaluatePolicy = async (evaluatePolicyBody: EvaluatePolicyBody,\n params: EvaluatePolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<EvaluatePolicy200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<EvaluatePolicy200>(getEvaluatePolicyUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(evaluatePolicyBody)\n }\n);}\n\n\n\nexport const getGetPolicyUrl = (policyId: string,\n params: GetPolicyParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}?${stringifiedParams}` : `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}`\n}\n\n/**\n * Returns a policy as its newest revision. A revision applies once a deployed\n * release pins it.\n *\n * A policy holds a project's rules for one operation, such as setting a\n * password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.\n *\n * The lookup is scoped to the project in `project_id`: a policy of another\n * project answers not found exactly as an unknown ID does.\n * @summary Get a policy by ID\n */\nexport const getPolicy = async (policyId: string,\n params: GetPolicyParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicy200> => {\n\n return customFetch<GetPolicy200>(getGetPolicyUrl(policyId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getListPolicyRevisionsUrl = (policyId: string,\n params: ListPolicyRevisionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}/revisions`\n}\n\n/**\n * Lists every revision of one policy, newest first, one page at a time. The\n * order is fixed, so there is no `sorting`.\n *\n * Each publish of a policy adds a revision. Pass the policy `id` that\n * `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.\n *\n * The lookup is scoped to the project in `project_id`: a policy of another\n * project answers not found exactly as an unknown ID does.\n * @summary List the revisions of a policy\n */\nexport const listPolicyRevisions = async (policyId: string,\n params: ListPolicyRevisionsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListPolicyRevisions200> => {\n\n return customFetch<ListPolicyRevisions200>(getListPolicyRevisionsUrl(policyId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetPolicyRevisionUrl = (revisionId: string,\n params: GetPolicyRevisionParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getApiBaseUrl()}/policies/revisions/${encodeURIComponent(String(revisionId))}`\n}\n\n/**\n * Returns one revision of a policy, the newest or an older one.\n *\n * Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)\n * returns.\n *\n * The lookup is scoped to the project in `project_id`: a revision of another\n * project answers not found exactly as an unknown ID does.\n * @summary Get a policy revision by ID\n */\nexport const getPolicyRevision = async (revisionId: string,\n params: GetPolicyRevisionParams, options?: Parameters<typeof customFetch>[1]): Promise<GetPolicyRevision200> => {\n\n return customFetch<GetPolicyRevision200>(getGetPolicyRevisionUrl(revisionId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getCreateReleaseUrl = (params: CreateReleaseParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases?${stringifiedParams}` : `${getApiBaseUrl()}/releases`\n}\n\n/**\n * Creates a release from existing revisions, given as `(kind, revision_id)`\n * pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)\n * (`POST /releases/build`).\n *\n * A release is a snapshot of the project's configuration: it pins one\n * revision of each resource it includes, and it is not tied to an origin.\n * Take each `revision_id` from the operation that created the revision, for\n * example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.\n *\n * Each revision must exist in the project and is recorded under the handle\n * it declares. The release must be complete and consistent:\n *\n * - Every handle its revisions name must be in the release: a flow's\n * `user_schema`, and the identity provider (IdP) connections named by a\n * flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.\n * A missing one answers `rel.unresolved_reference`, naming the resource and\n * the handle, for example `flow_definition default-login: user_schema\n * human-user not found`. Add the missing revision to the request.\n * - Every flow is validated as on save, against the user schema revision in\n * the release. A flow that fails answers `rel.invalid`, with the reason in\n * `details`. Fix the flow and send the request again.\n *\n * The call is idempotent on the set of revisions: the same revisions with a\n * different `message` answer `200` with the existing release. A new release\n * answers `201`.\n *\n * Creating a release does not deploy it. Pass the returned `id` to\n * `createDeployment` (`POST /deployments`) to make the release live.\n * @summary Create a release\n */\nexport const createRelease = async (createReleaseBody: CreateReleaseBody,\n params: CreateReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateRelease200 | CreateRelease201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateRelease200 | CreateRelease201>(getCreateReleaseUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createReleaseBody)\n }\n);}\n\n\n\nexport const getListReleasesUrl = (params: ListReleasesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases?${stringifiedParams}` : `${getApiBaseUrl()}/releases`\n}\n\n/**\n * Lists the project's releases, newest first. A release is a snapshot of the\n * project's configuration.\n *\n * Entries carry the digest, the metadata and `revoked_at`. The pinned set is\n * omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.\n *\n * The `id` of an entry is the release ID that `getReleaseById`,\n * `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.\n *\n * `content_hash` looks a release up by its content, as the CLI does when a\n * person types the digest a transcript printed. The project holds at most\n * one release per digest, so the filtered list has one entry or none. An\n * unknown digest is an empty list rather than an error. Paths take the\n * `rel_` ID only, so use the matched entry's `id` there.\n * @summary List releases\n */\nexport const listReleases = async (params: ListReleasesParams, options?: Parameters<typeof customFetch>[1]): Promise<ListReleases200> => {\n\n return customFetch<ListReleases200>(getListReleasesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBuildReleaseUrl = (params: BuildReleaseParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/build?${stringifiedParams}` : `${getApiBaseUrl()}/releases/build`\n}\n\n/**\n * Builds a release from the resources in `.zitadel/` as authored on disk,\n * grouped by kind, in one transaction.\n *\n * A release is a snapshot of the project's configuration. A failure anywhere\n * leaves no revision and no release. The caller records nothing. The CLI's\n * `deploy` command builds its release with this operation.\n *\n * If the project already holds a release with the same content, the same\n * `content_hash`, the request answers `200` with that release and allocates\n * nothing, however long ago it was built. Metadata is excluded from the\n * comparison, so the same content under a different `message` is the same\n * release.\n *\n * Otherwise every resource is compared with the project's newest revision of\n * the same handle. Unchanged content reuses that revision, and changed\n * content allocates a new one. The request answers `201` with the new\n * release. A policy whose config matches only an older revision allocates a\n * new one too, so the policy reads back as the config the build carried.\n *\n * A structurally malformed request is refused while decoding with\n * `req.invalid`, naming the offending fields. A well-formed bundle is then\n * checked resource by resource, as each kind's create endpoint checks it,\n * and every failure is reported at once. The request answers `400` with\n * `rel.invalid`, and `details.resources` lists each resource that failed.\n * Fix each listed resource and build again. A handle that resolves neither\n * in the bundle nor in the project answers `rel.unresolved_reference`,\n * naming the pointer and the handle. Add the missing resource to the bundle.\n *\n * Building writes revisions, so besides `release.write` it needs the write\n * scope of every kind the bundle carries a resource of: `schema.write`,\n * `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,\n * as the per-kind create endpoints do. A missing scope answers `403` with\n * `rel.permission_denied`, naming the kind. Request a token with that scope.\n * An empty kind needs no scope.\n *\n * Building a release does not deploy it. A release is not tied to an origin,\n * and the same release can later be deployed to any number of origins\n * unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).\n * @summary Build a release from files\n */\nexport const buildRelease = async (buildReleaseBody: BuildReleaseBody,\n params: BuildReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<BuildRelease200 | BuildRelease201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<BuildRelease200 | BuildRelease201>(getBuildReleaseUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(buildReleaseBody)\n }\n);}\n\n\n\nexport const getGetReleaseByIdUrl = (releaseId: string,\n params: GetReleaseByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}?${stringifiedParams}` : `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}`\n}\n\n/**\n * Returns one release: its digest, its metadata, whether it was revoked, and\n * the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot\n * of the project's configuration.\n *\n * The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),\n * `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its\n * digest, list with the `content_hash` filter and read the matched entry's\n * `id`.\n *\n * The response does not embed resource content. Resolve each `revision_id`\n * through the per-kind read endpoints when the bytes are needed.\n *\n * The lookup is scoped to the project in `project_id`. A release ID\n * belonging to another project answers not found exactly as an unknown ID\n * does, so the endpoint cannot be used to probe for releases in projects the\n * caller cannot read.\n * @summary Get a release by ID\n */\nexport const getReleaseById = async (releaseId: string,\n params: GetReleaseByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetReleaseById200> => {\n\n return customFetch<GetReleaseById200>(getGetReleaseByIdUrl(releaseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRevokeReleaseUrl = (releaseId: string,\n params: RevokeReleaseParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}/revoke?${stringifiedParams}` : `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}/revoke`\n}\n\n/**\n * Revokes a release, so that its content is never served again. Pass the\n * `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It\n * records a `release.revoked` event.\n *\n * From then on the release cannot be deployed. Every path that would serve\n * it refuses it with `rel.revoked`, including a build that pins its digest.\n *\n * A release that any origin still serves cannot be revoked. An origin serves\n * the release of the newest deployment to it, so the call answers `409` with\n * `rel.in_use`, naming each such origin and that deployment. Deploy another\n * release there or roll back first, then revoke. Revoking therefore never\n * takes an origin down. Deployments that named the release earlier stay in\n * the history.\n *\n * The call is idempotent: revoking a release that is already revoked answers\n * `200` with the release unchanged, and `revoked_at` still names the first\n * revocation. There is no un-revoke. To serve that configuration again,\n * change it and build a new release: rebuilding unchanged content returns\n * the same revoked release.\n *\n * The call takes no body. The lookup is scoped to the project in\n * `project_id`, so a release ID of another project answers not found exactly\n * as an unknown ID does.\n * @summary Revoke a release\n */\nexport const revokeRelease = async (releaseId: string,\n params: RevokeReleaseParams, options?: Parameters<typeof customFetch>[1]): Promise<RevokeRelease200> => {\n\n return customFetch<RevokeRelease200>(getRevokeReleaseUrl(releaseId,params),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\nexport const getCreateGrantUrl = (params: CreateGrantParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants?${stringifiedParams}` : `${getApiBaseUrl()}/grants`\n}\n\n/**\n * Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.\n *\n * The project is the one named by the `project_id` query parameter. Name the\n * principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or\n * `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that\n * `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not\n * created here: a claim, which attaches a project to a team, creates them.\n *\n * An unrevoked grant with the same principal and relation holds that binding\n * even after `expires_at`. Revoke it with `deleteGrant` before you create it\n * again.\n *\n * Create does not accept `expand`. The `user_id` and team locators return `201`,\n * whose `user` and `team` carry only `user_id` and `team_id`. They still answer\n * `404` or `409` when the principal is missing or the grant already exists.\n * Creating by `user.identifier` answers `202` with no body on every outcome.\n * Granting the session caller's own user is `grant.invalid` on either user\n * locator. A `201` grant names its user or team by ID only: read it back\n * with `getGrant` for the identifier and display name. A `202` returns no\n * grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.\n *\n * Authenticate with a project secret (`oauth2`) or a console session cookie\n * (`sessionCookie`). A session caller is authorized as the signed-in person\n * against the target project, even when the session belongs to another project.\n * Cookie requests follow that scheme's CSRF rules.\n * @summary Create a grant\n */\nexport const createGrant = async (createGrantBody: CreateGrantBody,\n params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateGrant201 | void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateGrant201 | void>(getCreateGrantUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createGrantBody)\n }\n);}\n\n\n\nexport const getQueryGrantsUrl = (params: QueryGrantsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/query?${stringifiedParams}` : `${getApiBaseUrl()}/grants/query`\n}\n\n/**\n * Returns a page of a project's grants.\n *\n * Only unrevoked grants this API manages are listed, which bind a user or team\n * to the viewer, editor or admin role. Expired grants are included, so a client\n * can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.\n * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are\n * not returned. Requires `project.read`.\n *\n * `expand: [\"principal\"]` adds envelope fields on `user` and `team`. For project\n * secrets it additionally requires `user.read` and `team.read`. A user-bound\n * console session that already passed the project check may expand without those scopes.\n *\n * Authenticate with a project secret (`oauth2`) or a console session cookie\n * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.\n * @summary Query grants\n */\nexport const queryGrants = async (queryGrantsBody: QueryGrantsBody,\n params: QueryGrantsParams, options?: Parameters<typeof customFetch>[1]): Promise<QueryGrants200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<QueryGrants200>(getQueryGrantsUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(queryGrantsBody)\n }\n);}\n\n\n\nexport const getGetGrantUrl = (id: string,\n params: GetGrantParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns a grant by ID, when this API manages it and it has not been revoked.\n *\n * This API manages grants that bind a user or team to the viewer, editor or\n * admin role. An expired grant is still returned, so you can revoke it with\n * `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still\n * ignores expired grants. Send `project_id` as well as the grant ID.\n * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team\n * (`relation=team`) rows and grants of another project all return `404`.\n *\n * `expand=principal` adds envelope fields on `user` or `team`. For project\n * secrets it requires `user.read` and `team.read` in addition to `project.read`.\n * A user-bound console session that already passed the project check may expand\n * without those scopes.\n *\n * Authenticate with a project secret (`oauth2`) or a console session cookie\n * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.\n * @summary Get a grant by ID\n */\nexport const getGrant = async (id: string,\n params: GetGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<GetGrant200> => {\n\n return customFetch<GetGrant200>(getGetGrantUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getDeleteGrantUrl = (id: string,\n params: DeleteGrantParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Revokes a grant this API manages and emits `authz.revoked`.\n *\n * A revoked grant cannot be restored: create a new one. Already-revoked, missing,\n * project-secret setup and owning-team grants return `404`. Expired grants can\n * still be revoked, so the binding can be reused.\n *\n * Authenticate with a project secret (`oauth2`) or a console session cookie\n * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.\n * @summary Revoke a grant\n */\nexport const deleteGrant = async (id: string,\n params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteGrantUrl(id,params),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getListEventsUrl = (params: ListEventsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"category\",\"event_type\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events?${stringifiedParams}` : `${getApiBaseUrl()}/events`\n}\n\n/**\n * Lists a project's audit events, newest first. Pass `order=asc` for oldest\n * first. Requires `events.read`.\n *\n * A project that is not claimed yet returns an empty list: its events are\n * stored but stay invisible until the\n * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.\n *\n * Team-scoped credentials see only the events whose `team_id` matches the\n * credential's team. Team-scoped credentials are not issued today.\n *\n * Each item carries an `event_type` that says which type of event it is, and\n * the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).\n * @summary List events\n */\nexport const listEvents = async (params: ListEventsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListEvents200> => {\n\n return customFetch<ListEvents200>(getListEventsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetEventUrl = (id: string,\n params: GetEventParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/events/${encodeURIComponent(String(id))}`\n}\n\n/**\n * Returns one event of a project by its ID. Requires `events.read`.\n *\n * Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its\n * `project_id`. An unknown ID and the ID of another project's event both\n * answer `404`.\n *\n * A project that is not claimed yet also answers `404`: its events are\n * stored but stay invisible until the\n * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.\n * @summary Get an event by ID\n */\nexport const getEvent = async (id: string,\n params: GetEventParams, options?: Parameters<typeof customFetch>[1]): Promise<GetEvent200> => {\n\n return customFetch<GetEvent200>(getGetEventUrl(id,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetVariablesUrl = (params: GetVariablesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/variables`\n}\n\n/**\n * Returns the project's variables, keyed by name, each with its value for\n * each kind: `primary` for primary origins and `preview` for preview URLs.\n * With `kind`, only that kind's values are returned.\n *\n * Secret values are not returned. A secret appears as `{\"secret\": true}`,\n * which says a value is held without disclosing it.\n * @summary Get a project's variables\n */\nexport const getVariables = async (params: GetVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariables200> => {\n\n return customFetch<GetVariables200>(getGetVariablesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getUpdateVariablesUrl = (params: UpdateVariablesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/variables`\n}\n\n/**\n * Sets, replaces and removes the project's variables for the requested\n * kind, in one request. Names not in the body are untouched. Existing\n * deployments keep the values they froze.\n *\n * A bare scalar enters a non-secret value. `{\"value\": …, \"secret\": true}`\n * stores the value encrypted under the project's active `secret` key, after\n * which it can be referenced but not read back. `null` removes the name\n * (RFC 7386), which is how several variables are removed in one request.\n * Removing a name the project does not hold is a no-op rather than an error.\n *\n * Without `kind`, a plain value is written for both kinds. A secret is\n * written for `primary` only and removes the name's `preview` value, so a\n * preview never keeps a plaintext copy. Set a preview secret with\n * `kind=preview`. `null` removes the name from both kinds.\n *\n * The body is applied whole or not at all, so a rejected request leaves the\n * project's variables exactly as they were. Fix what the error reports and\n * send the request again. Writing the same name twice replaces the value\n * rather than duplicating it, which makes a retry safe.\n *\n * Each kind written records a `variable.set` event, and each kind removed a\n * `variable.removed` event. The value never appears in either.\n * @summary Update a project's variables\n */\nexport const updateVariables = async (updateVariablesBody: UpdateVariablesBody,\n params: UpdateVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<UpdateVariables200> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<UpdateVariables200>(getUpdateVariablesUrl(params),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(updateVariablesBody)\n }\n);}\n\n\n\nexport const getGetVariableUrl = (variableName: string,\n params: GetVariableParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}`\n}\n\n/**\n * Returns one variable by name, with its value for each kind. A variable\n * holds a value per kind: `primary` for primary origins and `preview` for\n * preview URLs.\n *\n * Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists\n * it. A name with no value for the requested kind answers `var.not_found`;\n * set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{\"secret\": true}`.\n * @summary Get a variable by name\n */\nexport const getVariable = async (variableName: string,\n params: GetVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<GetVariable200> => {\n\n return customFetch<GetVariable200>(getGetVariableUrl(variableName,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getDeleteVariableUrl = (variableName: string,\n params: DeleteVariableParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}`\n}\n\n/**\n * Deletes a variable for the requested kind, or for both kinds without\n * `kind`. Existing deployments keep the values they froze. Each kind removed\n * records a `variable.removed` event.\n *\n * A name with no value for that kind answers `var.not_found`: there is\n * nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To\n * remove several names in one request, or to remove a name that may already\n * be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).\n * @summary Delete a variable by name\n */\nexport const deleteVariable = async (variableName: string,\n params: DeleteVariableParams, options?: Parameters<typeof customFetch>[1]): Promise<void> => {\n\n return customFetch<void>(getDeleteVariableUrl(variableName,params),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getCreateDeploymentUrl = (params: CreateDeploymentParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments?${stringifiedParams}` : `${getApiBaseUrl()}/deployments`\n}\n\n/**\n * Creates a deployment: it makes a release live on the project's primary\n * origins or on preview URLs.\n *\n * A release is a snapshot of the project's configuration. A deployment makes\n * a release live on origins and freezes the project's variable values for\n * its kind, with no fallback between primary and preview values. The call is\n * atomic: on success every target serves the release and the deployment is\n * recorded, and it records a `deployment.created` event. On failure nothing\n * changes and nothing is recorded.\n *\n * Name the release by exactly one of `release_id` or `content_hash`. Take the\n * release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or\n * `listReleases` (`GET /releases`) returns. The release must already exist in the project.\n * `targets` is `primary`, which means every primary origin, or a list of\n * preview URLs. `[\"primary\"]`, which clients released before this shape\n * send, still deploys to every primary origin until 1.0.0; its answer\n * carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.\n *\n * The project's newest primary deployment also serves every request with no\n * `Origin`, such as a backend, a native app or the CLI, and the console's\n * login preview of a project that does not list the console's origin. A\n * preview URL serves only itself.\n *\n * A deployment to `primary` changes nothing when the project's newest\n * primary deployment has the same release and frozen values and covers\n * exactly the current primary origins. The call then answers `200` with that\n * deployment. Any other request writes a new deployment and answers `201`.\n * For preview URLs, that deployment renews their previews.\n *\n * If the request is refused, fix the cause and send it again:\n * - `400 dep.invalid`: the request names both or neither of `release_id` and\n * `content_hash`, names a primary origin among the preview URLs, sends\n * `primary` for a project with no primary origin, sends\n * `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct\n * the request.\n * - `400 dep.variables_missing`: a variable the release references has no\n * value for the kind. `details` names the kind and every missing variable.\n * Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.\n * - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern\n * of the project, or is a loopback URL. Use a URL that matches a pattern.\n * - `404 rel.not_found`: the release ID or digest names no release in this\n * project. List the project's releases with `listReleases`.\n * - `409 dep.conflict`: `expected_deployment_id` is not the deployment this\n * write replaces, and `details.deployment` is that deployment. Inspect it,\n * then retry with its ID as `expected_deployment_id`, or stop.\n * - `409 rel.revoked`: the release is revoked and cannot be deployed. Change\n * the configuration and build a new release, or deploy a release that is\n * not revoked. Rebuilding unchanged content returns the same revoked release.\n * @summary Create a deployment\n */\nexport const createDeployment = async (createDeploymentBody: CreateDeploymentBody,\n params: CreateDeploymentParams, options?: Parameters<typeof customFetch>[1]): Promise<CreateDeployment200 | CreateDeployment201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<CreateDeployment200 | CreateDeployment201>(getCreateDeploymentUrl(params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createDeploymentBody)\n }\n);}\n\n\n\nexport const getListDeploymentsUrl = (params: ListDeploymentsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"expand\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments?${stringifiedParams}` : `${getApiBaseUrl()}/deployments`\n}\n\n/**\n * Lists the project's deployments: the history of what ran where and when,\n * or with `live=true` what is served now.\n *\n * A deployment makes a release live on origins. By default the list is the\n * history, newest first: every deployment of the project, with every target\n * it made the release live on. With `origin`, it is the history of that\n * origin alone.\n *\n * With `live=true`, the list is what is served now, newest first. It holds\n * the project's newest primary deployment with every origin it names, an\n * origin the project no longer lists included: that deployment also serves\n * requests with no `Origin`, so it stays live. It also holds the newest\n * deployment to each live preview URL, narrowed to the URLs it still\n * serves. Combined with `origin`, it is the one deployment that origin\n * serves, or empty, as it is for an origin the project no longer lists.\n *\n * The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),\n * `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.\n *\n * `expand: [\"release\"]` embeds the release each deployment made live. It\n * requires `release.read` and does not change the ordering or the page\n * tokens.\n * @summary List deployments\n */\nexport const listDeployments = async (params: ListDeploymentsParams, options?: Parameters<typeof customFetch>[1]): Promise<ListDeployments200> => {\n\n return customFetch<ListDeployments200>(getListDeploymentsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getGetDeploymentByIdUrl = (deploymentId: string,\n params: GetDeploymentByIdParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}`\n}\n\n/**\n * Returns one deployment: the release it made live, the origins it made it\n * live on, and whether they still serve it.\n *\n * Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or\n * `listDeployments` (`GET /deployments`) returns.\n *\n * The lookup is scoped to the project in `project_id`. A deployment ID\n * belonging to another project answers not found exactly as an unknown ID\n * does, so the endpoint cannot be used to probe for deployments in projects\n * the caller cannot read.\n * @summary Get a deployment by ID\n */\nexport const getDeploymentById = async (deploymentId: string,\n params: GetDeploymentByIdParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeploymentById200> => {\n\n return customFetch<GetDeploymentById200>(getGetDeploymentByIdUrl(deploymentId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getRollbackDeploymentUrl = (deploymentId: string,\n params: RollbackDeploymentParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/rollback?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/rollback`\n}\n\n/**\n * Rolls back to an earlier deployment by deploying its release again to\n * every current primary origin, with the variable values that deployment\n * froze.\n *\n * A release is a snapshot of the project's configuration. A deployment makes\n * a release live on origins and freezes the project's variable values with\n * it.\n *\n * The deployment ID in the path is the deployment to return to, not the one\n * to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists\n * the newest deployment first.\n *\n * A rollback is a new deployment, not an undo. It has `reason: rollback`,\n * and its `rollback_to` names the deployment you returned to. It uses the\n * variable values that deployment froze, not the project's current ones, and\n * creates no release.\n *\n * To guard against a deployment that landed since you looked, set\n * `expected_deployment_id` in the request body to the newest primary\n * deployment, the one live now. The call then fails with `409 dep.conflict`\n * if another deployment has replaced it.\n *\n * A rollback is idempotent like a deployment to `primary`. When nothing\n * would change, it answers `200` with the newest primary deployment.\n *\n * If the request is refused:\n * - `400 dep.invalid`: the deployment went to preview URLs, which cannot be\n * rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`). The\n * error also appears when the project has no primary origin. Add one with\n * `zitadel origin add`.\n * - `404 dep.not_found`: no deployment of the project has that ID, or that\n * deployment recorded no variables to restore, so it cannot be a rollback\n * target. List them with `listDeployments` and pick another.\n * - `409 dep.conflict`: `expected_deployment_id` is not the project's\n * newest primary deployment, and `details.deployment` is that deployment.\n * Inspect it, then retry with its ID, or stop.\n * - `409 rel.revoked`: the release of that deployment is revoked and cannot\n * be deployed. Roll back to a deployment of a release that is not revoked.\n * @summary Roll back to a deployment\n */\nexport const rollbackDeployment = async (deploymentId: string,\n params: RollbackDeploymentParams,\n rollbackDeploymentBody?: RollbackDeploymentBody, options?: Parameters<typeof customFetch>[1]): Promise<RollbackDeployment200 | RollbackDeployment201> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn customFetch<RollbackDeployment200 | RollbackDeployment201>(getRollbackDeploymentUrl(deploymentId,params),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(rollbackDeploymentBody)\n }\n);}\n\n\n\nexport const getGetDeploymentVariablesUrl = (deploymentId: string,\n params: GetDeploymentVariablesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/variables`\n}\n\n/**\n * Returns the variable values the deployment froze when it was made. Later\n * changes to the project's variables do not affect them. A secret reads\n * back as `{\"secret\": true}`.\n *\n * Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.\n * @summary Get a deployment's variables\n */\nexport const getDeploymentVariables = async (deploymentId: string,\n params: GetDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]): Promise<GetDeploymentVariables200> => {\n\n return customFetch<GetDeploymentVariables200>(getGetDeploymentVariablesUrl(deploymentId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiNA,MAAa,sBAAsB;CAKjC,OAAO,GAAG,cAAc,EAAE;AAC5B;;;;;;;;;;;;AAaA,MAAa,UAAU,OAAQ,YAAyE;CAEtG,OAAO,YAA4B,cAAc,GACjD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,uBAAuB;CAKlC,OAAO,GAAG,cAAc,EAAE;AAC5B;;;;;;;;;;;;AAaA,MAAa,WAAW,OAAQ,YAA0E;CAExG,OAAO,YAA6B,eAAe,GACnD;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,oBAAoB,WAA8B;CAC7D,MAAM,mBAAmB,IAAI,gBAAgB;CAE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