@zitadel/api 0.5.0 → 0.7.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 (1199) hide show
  1. package/dist/api-factory-BPmRCU7u.mjs +372 -0
  2. package/dist/api-factory-BPmRCU7u.mjs.map +1 -0
  3. package/dist/api-factory-DCzYxpdV.d.mts +223 -0
  4. package/dist/api-factory-DCzYxpdV.d.mts.map +1 -0
  5. package/dist/fetch-BLgYBrzi.d.mts +134 -0
  6. package/dist/fetch-BLgYBrzi.d.mts.map +1 -0
  7. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  8. package/dist/generated/endpoints/zitadelNextGen.mjs +1 -3446
  9. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +84 -67
  10. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +4201 -959
  12. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +3480 -1169
  14. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  15. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +4016 -1948
  16. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  17. package/dist/generated/model/index.d.mts +2 -2
  18. package/dist/generated/model/index.mjs +573 -856
  19. package/dist/generated/model/index.mjs.map +1 -1
  20. package/dist/generated/operations.d.mts +1 -3
  21. package/dist/generated/operations.d.mts.map +1 -1
  22. package/dist/generated/operations.mjs +360 -99
  23. package/dist/generated/operations.mjs.map +1 -1
  24. package/dist/index-BwYxe7Dw.d.mts +59554 -0
  25. package/dist/index-BwYxe7Dw.d.mts.map +1 -0
  26. package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
  27. package/dist/runtime/api-factory.d.mts +1 -1
  28. package/dist/runtime/api-factory.mjs +1 -2
  29. package/dist/runtime/auth.d.mts +0 -2
  30. package/dist/runtime/auth.d.mts.map +1 -1
  31. package/dist/runtime/auth.mjs +1 -2
  32. package/dist/runtime/base-url.d.mts +0 -2
  33. package/dist/runtime/base-url.d.mts.map +1 -1
  34. package/dist/runtime/base-url.mjs +1 -2
  35. package/dist/runtime/config.d.mts +1 -3
  36. package/dist/runtime/config.d.mts.map +1 -1
  37. package/dist/runtime/config.mjs +2 -3
  38. package/dist/runtime/fetch.d.mts +1 -1
  39. package/dist/runtime/fetch.mjs +2 -3
  40. package/dist/runtime/paging.d.mts +0 -2
  41. package/dist/runtime/paging.d.mts.map +1 -1
  42. package/dist/runtime/paging.mjs +1 -2
  43. package/dist/zitadelNextGen-DsPFGqLs.mjs +3926 -0
  44. package/dist/zitadelNextGen-DsPFGqLs.mjs.map +1 -0
  45. package/dist/zitadelNextGen-SGK-fW1x.d.mts +1989 -0
  46. package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +1 -0
  47. package/package.json +7 -9
  48. package/src/generated/endpoints/zitadelNextGen.faker.ts +117 -84
  49. package/src/generated/endpoints/zitadelNextGen.msw.ts +325 -163
  50. package/src/generated/endpoints/zitadelNextGen.ts +954 -315
  51. package/src/generated/endpoints/zitadelNextGen.zod.ts +3571 -1718
  52. package/src/generated/model/acceptInvitation200.ts +126 -0
  53. package/src/generated/model/acceptInvitation400.ts +20 -0
  54. package/src/generated/model/acceptInvitation400Details.ts +12 -0
  55. package/src/generated/model/acceptInvitation401.ts +20 -0
  56. package/src/generated/model/acceptInvitation401Details.ts +12 -0
  57. package/src/generated/model/acceptInvitation403.ts +20 -0
  58. package/src/generated/model/acceptInvitation403Details.ts +12 -0
  59. package/src/generated/model/acceptInvitation404.ts +20 -0
  60. package/src/generated/model/acceptInvitation404Details.ts +12 -0
  61. package/src/generated/model/acceptInvitation409.ts +20 -0
  62. package/src/generated/model/acceptInvitation409Details.ts +12 -0
  63. package/src/generated/model/acceptInvitation429.ts +20 -0
  64. package/src/generated/model/acceptInvitation429Details.ts +12 -0
  65. package/src/generated/model/acceptInvitationBody.ts +19 -0
  66. package/src/generated/model/acceptInvitationDefault.ts +99 -0
  67. package/src/generated/model/addProjectOrigin201.ts +18 -0
  68. package/src/generated/model/addProjectOrigin201Kind.ts +18 -0
  69. package/src/generated/model/addProjectOriginBody.ts +35 -0
  70. package/src/generated/model/addProjectOriginBodyKind.ts +19 -0
  71. package/src/generated/model/addProjectOriginDefault.ts +135 -0
  72. package/src/generated/model/buildRelease200.ts +4 -4
  73. package/src/generated/model/buildRelease200PointersItem.ts +3 -1
  74. package/src/generated/model/buildRelease200PointersItemKind.ts +2 -1
  75. package/src/generated/model/buildRelease201.ts +4 -4
  76. package/src/generated/model/buildRelease201PointersItem.ts +3 -1
  77. package/src/generated/model/buildRelease201PointersItemKind.ts +2 -1
  78. package/src/generated/model/buildRelease400DetailsResourcesItem.ts +2 -2
  79. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +2 -1
  80. package/src/generated/model/buildReleaseBody.ts +7 -5
  81. package/src/generated/model/buildReleaseBodyBundle.ts +23 -6
  82. package/src/generated/model/buildReleaseBodyBundleBranding.ts +3 -3
  83. package/src/generated/model/buildReleaseBodyBundleBrandingThemeDark.ts +1 -1
  84. package/src/generated/model/buildReleaseBodyBundleBrandingThemeLight.ts +1 -1
  85. package/src/generated/model/buildReleaseBodyBundleBrandingTypography.ts +1 -1
  86. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItem.ts +2 -12
  87. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGates.ts +2 -9
  88. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStepsItemGatesConfig.ts +1 -2
  89. package/src/generated/model/buildReleaseBodyBundleOauth.ts +30 -0
  90. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +20 -0
  91. package/src/generated/model/cancelInvitation401.ts +20 -0
  92. package/src/generated/model/cancelInvitation401Details.ts +12 -0
  93. package/src/generated/model/cancelInvitation403.ts +20 -0
  94. package/src/generated/model/cancelInvitation403Details.ts +12 -0
  95. package/src/generated/model/cancelInvitation404.ts +20 -0
  96. package/src/generated/model/cancelInvitation404Details.ts +12 -0
  97. package/src/generated/model/cancelInvitationDefault.ts +90 -0
  98. package/src/generated/model/cancelInvitationParams.ts +17 -0
  99. package/src/generated/model/completeProjectClaim200.ts +19 -0
  100. package/src/generated/model/completeProjectClaim400.ts +20 -0
  101. package/src/generated/model/completeProjectClaim400Details.ts +12 -0
  102. package/src/generated/model/completeProjectClaim401.ts +23 -0
  103. package/src/generated/model/completeProjectClaim403.ts +36 -0
  104. package/src/generated/model/completeProjectClaim404.ts +20 -0
  105. package/src/generated/model/completeProjectClaim404Details.ts +12 -0
  106. package/src/generated/model/completeProjectClaim409.ts +25 -0
  107. package/src/generated/model/completeProjectClaim409Details.ts +14 -0
  108. package/src/generated/model/completeProjectClaim410.ts +27 -0
  109. package/src/generated/model/completeProjectClaim429.ts +20 -0
  110. package/src/generated/model/completeProjectClaim429Details.ts +12 -0
  111. package/src/generated/model/completeProjectClaimBody.ts +18 -0
  112. package/src/generated/model/completeProjectClaimDefault.ts +144 -0
  113. package/src/generated/model/completeUserPasskeyRegistration201.ts +19 -0
  114. package/src/generated/model/completeUserPasskeyRegistration400.ts +20 -0
  115. package/src/generated/model/completeUserPasskeyRegistration400Details.ts +12 -0
  116. package/src/generated/model/completeUserPasskeyRegistration401.ts +20 -0
  117. package/src/generated/model/completeUserPasskeyRegistration401Details.ts +12 -0
  118. package/src/generated/model/completeUserPasskeyRegistration403.ts +20 -0
  119. package/src/generated/model/completeUserPasskeyRegistration403Details.ts +12 -0
  120. package/src/generated/model/completeUserPasskeyRegistration404.ts +20 -0
  121. package/src/generated/model/completeUserPasskeyRegistration404Details.ts +12 -0
  122. package/src/generated/model/completeUserPasskeyRegistration429.ts +23 -0
  123. package/src/generated/model/completeUserPasskeyRegistration500.ts +20 -0
  124. package/src/generated/model/completeUserPasskeyRegistration500Details.ts +12 -0
  125. package/src/generated/model/completeUserPasskeyRegistrationBody.ts +21 -0
  126. package/src/generated/model/completeUserPasskeyRegistrationBodyAttestation.ts +12 -0
  127. package/src/generated/model/completeUserPasskeyRegistrationDefault.ts +189 -0
  128. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +1 -1
  129. package/src/generated/model/createAuthAttemptChallenge201.ts +49 -0
  130. package/src/generated/model/createAuthAttemptChallenge201Method.ts +20 -0
  131. package/src/generated/model/createAuthAttemptChallenge201Payload.ts +34 -0
  132. package/src/generated/model/createAuthAttemptChallenge201State.ts +22 -0
  133. package/src/generated/model/createAuthAttemptChallengeBody.ts +28 -0
  134. package/src/generated/model/createAuthAttemptChallengeBodyMethod.ts +20 -0
  135. package/src/generated/model/createAuthAttemptChallengeBodyPasskeyOptions.ts +19 -0
  136. package/src/generated/model/createAuthAttemptChallengeBodyPasskeyOptionsUserVerification.ts +16 -0
  137. package/src/generated/model/createAuthAttemptChallengeDefault.ts +90 -0
  138. package/src/generated/model/createAuthAttemptHandoff200.ts +30 -0
  139. package/src/generated/model/createAuthAttemptHandoff409.ts +20 -0
  140. package/src/generated/model/createAuthAttemptHandoff409Details.ts +12 -0
  141. package/src/generated/model/createAuthAttemptHandoffDefault.ts +99 -0
  142. package/src/generated/model/createDeployment200.ts +9 -7
  143. package/src/generated/model/createDeployment200Release.ts +4 -4
  144. package/src/generated/model/createDeployment200ReleasePointersItem.ts +3 -1
  145. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +2 -1
  146. package/src/generated/model/createDeployment200Status.ts +4 -3
  147. package/src/generated/model/createDeployment200TargetsItem.ts +0 -5
  148. package/src/generated/model/createDeployment201.ts +9 -7
  149. package/src/generated/model/createDeployment201Release.ts +4 -4
  150. package/src/generated/model/createDeployment201ReleasePointersItem.ts +3 -1
  151. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +2 -1
  152. package/src/generated/model/createDeployment201Status.ts +4 -3
  153. package/src/generated/model/createDeployment201TargetsItem.ts +0 -5
  154. package/src/generated/model/createDeployment409.ts +12 -14
  155. package/src/generated/model/createDeploymentBody.ts +2 -2
  156. package/src/generated/model/createFlow201.ts +1 -1
  157. package/src/generated/model/createFlow201Branding.ts +3 -3
  158. package/src/generated/model/createFlow201BrandingThemeDark.ts +1 -1
  159. package/src/generated/model/createFlow201BrandingThemeLight.ts +1 -1
  160. package/src/generated/model/createFlow201BrandingTypography.ts +1 -1
  161. package/src/generated/model/createFlow201StepFieldsItem.ts +6 -3
  162. package/src/generated/model/createFlow201StepFieldsItemType.ts +7 -3
  163. package/src/generated/model/createFlow201StepGates.ts +22 -9
  164. package/src/generated/model/createFlow201StepGatesChallenge.ts +30 -0
  165. package/src/generated/model/createFlow201StepGatesConfig.ts +2 -2
  166. package/src/generated/model/createFlow201StepGatesKind.ts +3 -4
  167. package/src/generated/model/createInvitation201.ts +136 -0
  168. package/src/generated/model/createInvitation400.ts +20 -0
  169. package/src/generated/model/createInvitation400Details.ts +12 -0
  170. package/src/generated/model/createInvitation401.ts +20 -0
  171. package/src/generated/model/createInvitation401Details.ts +12 -0
  172. package/src/generated/model/createInvitation403.ts +20 -0
  173. package/src/generated/model/createInvitation403Details.ts +12 -0
  174. package/src/generated/model/createInvitation404.ts +20 -0
  175. package/src/generated/model/createInvitation404Details.ts +12 -0
  176. package/src/generated/model/createInvitation409.ts +20 -0
  177. package/src/generated/model/createInvitation409Details.ts +12 -0
  178. package/src/generated/model/createInvitation501.ts +23 -0
  179. package/src/generated/model/createInvitationBody.ts +72 -0
  180. package/src/generated/model/createInvitationDefault.ts +171 -0
  181. package/src/generated/model/createInvitationParams.ts +17 -0
  182. package/src/generated/model/createProjectClaim201.ts +25 -0
  183. package/src/generated/model/createProjectClaim401.ts +20 -0
  184. package/src/generated/model/createProjectClaim401Details.ts +12 -0
  185. package/src/generated/model/createProjectClaim404.ts +23 -0
  186. package/src/generated/model/createProjectClaim409.ts +25 -0
  187. package/src/generated/model/createProjectClaim409Details.ts +14 -0
  188. package/src/generated/model/createProjectClaim410.ts +23 -0
  189. package/src/generated/model/createProjectClaimDefault.ts +99 -0
  190. package/src/generated/model/createRelease200.ts +4 -4
  191. package/src/generated/model/createRelease200PointersItem.ts +3 -1
  192. package/src/generated/model/createRelease200PointersItemKind.ts +2 -1
  193. package/src/generated/model/createRelease201.ts +4 -4
  194. package/src/generated/model/createRelease201PointersItem.ts +3 -1
  195. package/src/generated/model/createRelease201PointersItemKind.ts +2 -1
  196. package/src/generated/model/createReleaseBodyPointersItem.ts +1 -1
  197. package/src/generated/model/createReleaseBodyPointersItemKind.ts +2 -1
  198. package/src/generated/model/createSessionDefault.ts +9 -0
  199. package/src/generated/model/createUser201.ts +1 -1
  200. package/src/generated/model/createUserBody.ts +1 -1
  201. package/src/generated/model/createUserPasskeyRegistration201.ts +25 -0
  202. package/src/generated/model/createUserPasskeyRegistration201Options.ts +13 -0
  203. package/src/generated/model/createUserPasskeyRegistration400.ts +20 -0
  204. package/src/generated/model/createUserPasskeyRegistration400Details.ts +12 -0
  205. package/src/generated/model/createUserPasskeyRegistration401.ts +20 -0
  206. package/src/generated/model/createUserPasskeyRegistration401Details.ts +12 -0
  207. package/src/generated/model/createUserPasskeyRegistration403.ts +20 -0
  208. package/src/generated/model/createUserPasskeyRegistration403Details.ts +12 -0
  209. package/src/generated/model/createUserPasskeyRegistration404.ts +20 -0
  210. package/src/generated/model/createUserPasskeyRegistration404Details.ts +12 -0
  211. package/src/generated/model/createUserPasskeyRegistration500.ts +20 -0
  212. package/src/generated/model/createUserPasskeyRegistration500Details.ts +12 -0
  213. package/src/generated/model/createUserPasskeyRegistrationBody.ts +33 -0
  214. package/src/generated/model/createUserPasskeyRegistrationDefault.ts +126 -0
  215. package/src/generated/model/deactivateTeam400.ts +20 -0
  216. package/src/generated/model/deactivateTeam400Details.ts +12 -0
  217. package/src/generated/model/deactivateTeam401.ts +20 -0
  218. package/src/generated/model/deactivateTeam401Details.ts +12 -0
  219. package/src/generated/model/deactivateTeam403.ts +20 -0
  220. package/src/generated/model/deactivateTeam403Details.ts +12 -0
  221. package/src/generated/model/deactivateTeam409.ts +20 -0
  222. package/src/generated/model/deactivateTeam409Details.ts +12 -0
  223. package/src/generated/model/deactivateTeamDefault.ts +90 -0
  224. package/src/generated/model/deleteUser401.ts +20 -0
  225. package/src/generated/model/deleteUser401Details.ts +12 -0
  226. package/src/generated/model/deleteUser404.ts +20 -0
  227. package/src/generated/model/deleteUser404Details.ts +12 -0
  228. package/src/generated/model/deleteUser409.ts +20 -0
  229. package/src/generated/model/deleteUser409Details.ts +12 -0
  230. package/src/generated/model/deleteUserDefault.ts +99 -0
  231. package/src/generated/model/evaluatePolicy200.ts +2 -2
  232. package/src/generated/model/evaluatePolicyBody.ts +31 -0
  233. package/src/generated/model/exchangeHandoffBody.ts +2 -2
  234. package/src/generated/model/getApplication200.ts +43 -0
  235. package/src/generated/model/getApplication200Definition.ts +35 -0
  236. package/src/generated/model/getApplication200DefinitionClientsItem.ts +84 -0
  237. package/src/generated/model/getApplication200DefinitionClientsItemGrantTypesItem.ts +15 -0
  238. package/src/generated/model/getApplication200DefinitionClientsItemType.ts +19 -0
  239. package/src/generated/model/getApplication401.ts +20 -0
  240. package/src/generated/model/getApplication401Details.ts +12 -0
  241. package/src/generated/model/getApplication403.ts +20 -0
  242. package/src/generated/model/getApplication403Details.ts +12 -0
  243. package/src/generated/model/getApplication404.ts +20 -0
  244. package/src/generated/model/getApplication404Details.ts +12 -0
  245. package/src/generated/model/getApplicationDefault.ts +72 -0
  246. package/src/generated/model/getApplicationParams.ts +17 -0
  247. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +1 -1
  248. package/src/generated/model/getBranding200.ts +32 -0
  249. package/src/generated/model/getBranding200Branding.ts +80 -0
  250. package/src/generated/model/getBranding200BrandingLayout.ts +27 -0
  251. package/src/generated/model/getBranding200BrandingShape.ts +30 -0
  252. package/src/generated/model/getBranding200BrandingShapeDensity.ts +19 -0
  253. package/src/generated/model/getBranding200BrandingTheme.ts +41 -0
  254. package/src/generated/model/getBranding200BrandingThemeDark.ts +34 -0
  255. package/src/generated/model/getBranding200BrandingThemeDarkPalette.ts +210 -0
  256. package/src/generated/model/getBranding200BrandingThemeLight.ts +34 -0
  257. package/src/generated/model/getBranding200BrandingThemeLightPalette.ts +210 -0
  258. package/src/generated/model/getBranding200BrandingThemeMode.ts +19 -0
  259. package/src/generated/model/getBranding200BrandingTypography.ts +47 -0
  260. package/src/generated/model/getBranding404.ts +20 -0
  261. package/src/generated/model/getBranding404Details.ts +12 -0
  262. package/src/generated/model/getBrandingDefault.ts +72 -0
  263. package/src/generated/model/getDeployment200.ts +78 -0
  264. package/src/generated/model/getDeployment200Kind.ts +18 -0
  265. package/src/generated/model/getDeployment200Metadata.ts +35 -0
  266. package/src/generated/model/getDeployment200MetadataDeployedByType.ts +20 -0
  267. package/src/generated/model/getDeployment200MetadataReason.ts +20 -0
  268. package/src/generated/model/getDeployment200Release.ts +96 -0
  269. package/src/generated/model/getDeployment200ReleaseMetadata.ts +43 -0
  270. package/src/generated/model/getDeployment200ReleaseMetadataCreatedByType.ts +20 -0
  271. package/src/generated/model/getDeployment200ReleasePointersItem.ts +63 -0
  272. package/src/generated/model/getDeployment200ReleasePointersItemKind.ts +29 -0
  273. package/src/generated/model/getDeployment200Status.ts +23 -0
  274. package/src/generated/model/getDeployment200TargetsItem.ts +23 -0
  275. package/src/generated/model/getDeploymentDefault.ts +72 -0
  276. package/src/generated/model/getDeploymentParams.ts +17 -0
  277. package/src/generated/model/getEvent200.ts +1275 -193
  278. package/src/generated/model/getFlowDefinition200.ts +2 -2
  279. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +2 -12
  280. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +2 -9
  281. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +1 -2
  282. package/src/generated/model/getFlowDefinition200UserSchema.ts +1 -1
  283. package/src/generated/model/getFlowStep200.ts +1 -1
  284. package/src/generated/model/getFlowStep200Branding.ts +3 -3
  285. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +1 -1
  286. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +1 -1
  287. package/src/generated/model/getFlowStep200BrandingTypography.ts +1 -1
  288. package/src/generated/model/getFlowStep200StepFieldsItem.ts +6 -3
  289. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +7 -3
  290. package/src/generated/model/getFlowStep200StepGates.ts +22 -9
  291. package/src/generated/model/getFlowStep200StepGatesChallenge.ts +30 -0
  292. package/src/generated/model/getFlowStep200StepGatesConfig.ts +2 -2
  293. package/src/generated/model/getFlowStep200StepGatesKind.ts +3 -4
  294. package/src/generated/model/getFlowStep429.ts +23 -0
  295. package/src/generated/model/getFlowStepDefault.ts +18 -0
  296. package/src/generated/model/getIdp200.ts +39 -0
  297. package/src/generated/model/getIdp200Definition.ts +44 -0
  298. package/src/generated/model/getIdp200DefinitionClaimMapping.ts +12 -0
  299. package/src/generated/model/getIdp200DefinitionOidc.ts +65 -0
  300. package/src/generated/model/getIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  301. package/src/generated/model/getIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  302. package/src/generated/model/getIdp200DefinitionProtocol.ts +17 -0
  303. package/src/generated/model/getIdp200DefinitionProvisioning.ts +15 -0
  304. package/src/generated/model/getIdp200DefinitionProvisioningCreation.ts +15 -0
  305. package/src/generated/model/getIdp200DefinitionVerifiedClaims.ts +12 -0
  306. package/src/generated/model/getIdp401.ts +20 -0
  307. package/src/generated/model/getIdp401Details.ts +12 -0
  308. package/src/generated/model/getIdp403.ts +20 -0
  309. package/src/generated/model/getIdp403Details.ts +12 -0
  310. package/src/generated/model/getIdp404.ts +20 -0
  311. package/src/generated/model/getIdp404Details.ts +12 -0
  312. package/src/generated/model/getIdpDefault.ts +72 -0
  313. package/src/generated/model/getIdpParams.ts +17 -0
  314. package/src/generated/model/getIdpRevision200.ts +39 -0
  315. package/src/generated/model/getIdpRevision200Definition.ts +44 -0
  316. package/src/generated/model/getIdpRevision200DefinitionClaimMapping.ts +12 -0
  317. package/src/generated/model/getIdpRevision200DefinitionOidc.ts +65 -0
  318. package/src/generated/model/getIdpRevision200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  319. package/src/generated/model/getIdpRevision200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  320. package/src/generated/model/getIdpRevision200DefinitionProtocol.ts +17 -0
  321. package/src/generated/model/getIdpRevision200DefinitionProvisioning.ts +15 -0
  322. package/src/generated/model/getIdpRevision200DefinitionProvisioningCreation.ts +15 -0
  323. package/src/generated/model/getIdpRevision200DefinitionVerifiedClaims.ts +12 -0
  324. package/src/generated/model/getIdpRevision401.ts +20 -0
  325. package/src/generated/model/getIdpRevision401Details.ts +12 -0
  326. package/src/generated/model/getIdpRevision403.ts +20 -0
  327. package/src/generated/model/getIdpRevision403Details.ts +12 -0
  328. package/src/generated/model/getIdpRevision404.ts +20 -0
  329. package/src/generated/model/getIdpRevision404Details.ts +12 -0
  330. package/src/generated/model/getIdpRevisionDefault.ts +72 -0
  331. package/src/generated/model/getIdpRevisionParams.ts +17 -0
  332. package/src/generated/model/getInvitation200.ts +126 -0
  333. package/src/generated/model/getInvitation401.ts +20 -0
  334. package/src/generated/model/getInvitation401Details.ts +12 -0
  335. package/src/generated/model/getInvitation403.ts +20 -0
  336. package/src/generated/model/getInvitation403Details.ts +12 -0
  337. package/src/generated/model/getInvitation404.ts +20 -0
  338. package/src/generated/model/getInvitation404Details.ts +12 -0
  339. package/src/generated/model/getInvitationDefault.ts +72 -0
  340. package/src/generated/model/getInvitationParams.ts +17 -0
  341. package/src/generated/model/getMyUser200.ts +1 -1
  342. package/src/generated/model/getOAuthSettings200.ts +34 -0
  343. package/src/generated/model/getOAuthSettings200Oauth.ts +30 -0
  344. package/src/generated/model/getOAuthSettings404.ts +20 -0
  345. package/src/generated/model/getOAuthSettings404Details.ts +12 -0
  346. package/src/generated/model/getOAuthSettingsDefault.ts +54 -0
  347. package/src/generated/model/getPolicy200.ts +36 -0
  348. package/src/generated/model/getPolicyRevision200.ts +36 -0
  349. package/src/generated/model/getProjectClaimStatus200.ts +27 -0
  350. package/src/generated/model/getProjectClaimStatus401.ts +20 -0
  351. package/src/generated/model/getProjectClaimStatus401Details.ts +12 -0
  352. package/src/generated/model/getProjectClaimStatus403.ts +23 -0
  353. package/src/generated/model/getProjectClaimStatus404.ts +20 -0
  354. package/src/generated/model/getProjectClaimStatus404Details.ts +12 -0
  355. package/src/generated/model/getProjectClaimStatus410.ts +27 -0
  356. package/src/generated/model/getProjectClaimStatus429.ts +20 -0
  357. package/src/generated/model/getProjectClaimStatus429Details.ts +12 -0
  358. package/src/generated/model/getProjectClaimStatusDefault.ts +99 -0
  359. package/src/generated/model/getProjectClaimStatusParams.ts +15 -0
  360. package/src/generated/model/getProjectClaimWindow200.ts +23 -0
  361. package/src/generated/model/getProjectClaimWindow404.ts +20 -0
  362. package/src/generated/model/getProjectClaimWindow404Details.ts +12 -0
  363. package/src/generated/model/getProjectClaimWindow429.ts +20 -0
  364. package/src/generated/model/getProjectClaimWindow429Details.ts +12 -0
  365. package/src/generated/model/getProjectClaimWindowDefault.ts +36 -0
  366. package/src/generated/model/getProjectClaimWindowParams.ts +15 -0
  367. package/src/generated/model/getRelease200.ts +96 -0
  368. package/src/generated/model/getRelease200Metadata.ts +43 -0
  369. package/src/generated/model/getRelease200MetadataCreatedByType.ts +20 -0
  370. package/src/generated/model/getRelease200PointersItem.ts +63 -0
  371. package/src/generated/model/getRelease200PointersItemKind.ts +29 -0
  372. package/src/generated/model/getReleaseDefault.ts +72 -0
  373. package/src/generated/model/getReleaseParams.ts +17 -0
  374. package/src/generated/model/getSchema200.ts +31 -0
  375. package/src/generated/model/getSchema200Metadata.ts +18 -0
  376. package/src/generated/model/getSchema200Schema.ts +84 -0
  377. package/src/generated/model/getSchemaDefault.ts +72 -0
  378. package/src/generated/model/getSchemaParams.ts +21 -0
  379. package/src/generated/model/getUser200.ts +76 -0
  380. package/src/generated/model/getUser200Attributes.ts +13 -0
  381. package/src/generated/model/getUser200Metadata.ts +44 -0
  382. package/src/generated/model/getUser200MetadataLifecycleOwnerTeam.ts +43 -0
  383. package/src/generated/model/getUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  384. package/src/generated/model/getUser200MetadataStatus.ts +20 -0
  385. package/src/generated/model/getUser200TeamsItem.ts +33 -0
  386. package/src/generated/model/getUser200TeamsItemMembershipStatus.ts +20 -0
  387. package/src/generated/model/getUser401.ts +20 -0
  388. package/src/generated/model/getUser401Details.ts +12 -0
  389. package/src/generated/model/getUser404.ts +20 -0
  390. package/src/generated/model/getUser404Details.ts +12 -0
  391. package/src/generated/model/getUserDefault.ts +72 -0
  392. package/src/generated/model/getUserParams.ts +31 -0
  393. package/src/generated/model/index.ts +548 -427
  394. package/src/generated/model/listBranding200.ts +20 -0
  395. package/src/generated/model/listBranding200BrandingItem.ts +18 -0
  396. package/src/generated/model/listBrandingParams.ts +13 -0
  397. package/src/generated/model/listDeploymentVariables200.ts +17 -0
  398. package/src/generated/model/listDeploymentVariablesDefault.ts +90 -0
  399. package/src/generated/model/listDeploymentVariablesParams.ts +17 -0
  400. package/src/generated/model/listDeployments200DeploymentsItem.ts +9 -7
  401. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +4 -4
  402. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +3 -1
  403. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +2 -1
  404. package/src/generated/model/listDeployments200DeploymentsItemStatus.ts +4 -3
  405. package/src/generated/model/listDeployments200DeploymentsItemTargetsItem.ts +0 -5
  406. package/src/generated/model/listDeploymentsParams.ts +5 -0
  407. package/src/generated/model/listEvents200.ts +10 -3
  408. package/src/generated/model/listEvents200EventsItem.ts +5038 -0
  409. package/src/generated/model/listEventsParams.ts +28 -1
  410. package/src/generated/model/listEventsStatusClassItem.ts +18 -0
  411. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +2 -2
  412. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +2 -12
  413. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +2 -9
  414. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -2
  415. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +1 -1
  416. package/src/generated/model/listFlowDefinitionsExpandItem.ts +1 -1
  417. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +2 -2
  418. package/src/generated/model/listInvitations200.ts +20 -0
  419. package/src/generated/model/listInvitations200InvitationsItem.ts +126 -0
  420. package/src/generated/model/listInvitations400.ts +20 -0
  421. package/src/generated/model/listInvitations400Details.ts +12 -0
  422. package/src/generated/model/listInvitations401.ts +20 -0
  423. package/src/generated/model/listInvitations401Details.ts +12 -0
  424. package/src/generated/model/listInvitations403.ts +20 -0
  425. package/src/generated/model/listInvitations403Details.ts +12 -0
  426. package/src/generated/model/listInvitations404.ts +20 -0
  427. package/src/generated/model/listInvitations404Details.ts +12 -0
  428. package/src/generated/model/listInvitationsDefault.ts +72 -0
  429. package/src/generated/model/listInvitationsParams.ts +42 -0
  430. package/src/generated/model/listInvitationsStatus.ts +17 -0
  431. package/src/generated/model/listInvitationsType.ts +15 -0
  432. package/src/generated/model/listMyIdentityLinks200IdentityLinksItem.ts +1 -1
  433. package/src/generated/model/listMyProjectsOrder.ts +15 -0
  434. package/src/generated/model/listMyProjectsParams.ts +16 -0
  435. package/src/generated/model/listPolicies200PoliciesItem.ts +36 -0
  436. package/src/generated/model/listPoliciesOperation.ts +1 -0
  437. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +36 -0
  438. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +1 -1
  439. package/src/generated/model/listProjectPreviews200.ts +20 -0
  440. package/src/generated/model/listProjectPreviews200PreviewsItem.ts +37 -0
  441. package/src/generated/model/listProjectPreviewsDefault.ts +72 -0
  442. package/src/generated/model/listProjectPreviewsParams.ts +23 -0
  443. package/src/generated/model/listReleases200ReleasesItem.ts +2 -2
  444. package/src/generated/model/listReleasesParams.ts +2 -2
  445. package/src/generated/model/listUserIdentityLinks200IdentityLinksItem.ts +1 -1
  446. package/src/generated/model/listVariables200.ts +35 -0
  447. package/src/generated/model/listVariables200Preview.ts +20 -0
  448. package/src/generated/model/listVariables200Primary.ts +20 -0
  449. package/src/generated/model/listVariablesDefault.ts +72 -0
  450. package/src/generated/model/listVariablesKind.ts +15 -0
  451. package/src/generated/model/listVariablesParams.ts +23 -0
  452. package/src/generated/model/lookupInvitation200.ts +63 -0
  453. package/src/generated/model/lookupInvitation400.ts +20 -0
  454. package/src/generated/model/lookupInvitation400Details.ts +12 -0
  455. package/src/generated/model/lookupInvitation401.ts +20 -0
  456. package/src/generated/model/lookupInvitation401Details.ts +12 -0
  457. package/src/generated/model/lookupInvitation404.ts +20 -0
  458. package/src/generated/model/lookupInvitation404Details.ts +12 -0
  459. package/src/generated/model/lookupInvitation429.ts +20 -0
  460. package/src/generated/model/lookupInvitation429Details.ts +12 -0
  461. package/src/generated/model/lookupInvitationBody.ts +19 -0
  462. package/src/generated/model/lookupInvitationDefault.ts +72 -0
  463. package/src/generated/model/publishApplication200.ts +137 -0
  464. package/src/generated/model/publishApplication200ClientSecretsItem.ts +19 -0
  465. package/src/generated/model/publishApplication201.ts +137 -0
  466. package/src/generated/model/publishApplication201ClientSecretsItem.ts +19 -0
  467. package/src/generated/model/publishApplication400.ts +20 -0
  468. package/src/generated/model/publishApplication400Details.ts +12 -0
  469. package/src/generated/model/publishApplication401.ts +20 -0
  470. package/src/generated/model/publishApplication401Details.ts +12 -0
  471. package/src/generated/model/publishApplication403.ts +20 -0
  472. package/src/generated/model/publishApplication403Details.ts +12 -0
  473. package/src/generated/model/publishApplication404.ts +20 -0
  474. package/src/generated/model/publishApplication404Details.ts +12 -0
  475. package/src/generated/model/publishApplication409.ts +20 -0
  476. package/src/generated/model/publishApplication409Details.ts +12 -0
  477. package/src/generated/model/publishApplicationBody.ts +20 -0
  478. package/src/generated/model/publishApplicationBodyApplication.ts +35 -0
  479. package/src/generated/model/publishApplicationBodyApplicationClientsItem.ts +84 -0
  480. package/src/generated/model/publishApplicationBodyApplicationClientsItemGrantTypesItem.ts +15 -0
  481. package/src/generated/model/publishApplicationBodyApplicationClientsItemType.ts +19 -0
  482. package/src/generated/model/publishApplicationDefault.ts +117 -0
  483. package/src/generated/model/publishApplicationParams.ts +17 -0
  484. package/src/generated/model/publishBranding201.ts +32 -0
  485. package/src/generated/model/publishBranding201Branding.ts +80 -0
  486. package/src/generated/model/publishBranding201BrandingLayout.ts +27 -0
  487. package/src/generated/model/publishBranding201BrandingShape.ts +30 -0
  488. package/src/generated/model/publishBranding201BrandingShapeDensity.ts +19 -0
  489. package/src/generated/model/publishBranding201BrandingTheme.ts +41 -0
  490. package/src/generated/model/publishBranding201BrandingThemeDark.ts +34 -0
  491. package/src/generated/model/publishBranding201BrandingThemeDarkPalette.ts +210 -0
  492. package/src/generated/model/publishBranding201BrandingThemeLight.ts +34 -0
  493. package/src/generated/model/publishBranding201BrandingThemeLightPalette.ts +210 -0
  494. package/src/generated/model/publishBranding201BrandingThemeMode.ts +19 -0
  495. package/src/generated/model/publishBranding201BrandingTypography.ts +47 -0
  496. package/src/generated/model/publishBranding400.ts +20 -0
  497. package/src/generated/model/publishBranding400Details.ts +12 -0
  498. package/src/generated/model/publishBrandingBody.ts +80 -0
  499. package/src/generated/model/publishBrandingBodyLayout.ts +27 -0
  500. package/src/generated/model/publishBrandingBodyShape.ts +30 -0
  501. package/src/generated/model/publishBrandingBodyShapeDensity.ts +19 -0
  502. package/src/generated/model/publishBrandingBodyTheme.ts +41 -0
  503. package/src/generated/model/publishBrandingBodyThemeDark.ts +34 -0
  504. package/src/generated/model/publishBrandingBodyThemeDarkPalette.ts +210 -0
  505. package/src/generated/model/publishBrandingBodyThemeLight.ts +34 -0
  506. package/src/generated/model/publishBrandingBodyThemeLightPalette.ts +210 -0
  507. package/src/generated/model/publishBrandingBodyThemeMode.ts +19 -0
  508. package/src/generated/model/publishBrandingBodyTypography.ts +47 -0
  509. package/src/generated/model/publishBrandingDefault.ts +99 -0
  510. package/src/generated/model/publishBrandingParams.ts +17 -0
  511. package/src/generated/model/publishFlowDefinition201.ts +48 -0
  512. package/src/generated/model/publishFlowDefinition201FlowDefinition.ts +85 -0
  513. package/src/generated/model/publishFlowDefinition201FlowDefinitionAudience.ts +20 -0
  514. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItem.ts +109 -0
  515. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +49 -0
  516. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +29 -0
  517. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemComplete.ts +20 -0
  518. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGates.ts +29 -0
  519. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +12 -0
  520. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +20 -0
  521. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +25 -0
  522. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitions.ts +68 -0
  523. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +28 -0
  524. package/src/generated/model/publishFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +29 -0
  525. package/src/generated/model/publishFlowDefinition201UserSchema.ts +26 -0
  526. package/src/generated/model/publishFlowDefinition201UserSchemaMetadata.ts +18 -0
  527. package/src/generated/model/publishFlowDefinition201UserSchemaSchema.ts +84 -0
  528. package/src/generated/model/publishFlowDefinition400.ts +20 -0
  529. package/src/generated/model/publishFlowDefinition400Details.ts +12 -0
  530. package/src/generated/model/publishFlowDefinitionBody.ts +43 -0
  531. package/src/generated/model/publishFlowDefinitionBodyFlowDefinition.ts +85 -0
  532. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionAudience.ts +20 -0
  533. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItem.ts +109 -0
  534. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +49 -0
  535. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +29 -0
  536. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +20 -0
  537. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +29 -0
  538. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +12 -0
  539. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +20 -0
  540. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +25 -0
  541. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +68 -0
  542. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +28 -0
  543. package/src/generated/model/publishFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +29 -0
  544. package/src/generated/model/publishFlowDefinitionDefault.ts +117 -0
  545. package/src/generated/model/publishIdp200.ts +39 -0
  546. package/src/generated/model/publishIdp200Definition.ts +44 -0
  547. package/src/generated/model/publishIdp200DefinitionClaimMapping.ts +12 -0
  548. package/src/generated/model/publishIdp200DefinitionOidc.ts +65 -0
  549. package/src/generated/model/publishIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  550. package/src/generated/model/publishIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  551. package/src/generated/model/publishIdp200DefinitionProtocol.ts +17 -0
  552. package/src/generated/model/publishIdp200DefinitionProvisioning.ts +15 -0
  553. package/src/generated/model/publishIdp200DefinitionProvisioningCreation.ts +15 -0
  554. package/src/generated/model/publishIdp200DefinitionVerifiedClaims.ts +12 -0
  555. package/src/generated/model/publishIdp201.ts +39 -0
  556. package/src/generated/model/publishIdp201Definition.ts +44 -0
  557. package/src/generated/model/publishIdp201DefinitionClaimMapping.ts +12 -0
  558. package/src/generated/model/publishIdp201DefinitionOidc.ts +65 -0
  559. package/src/generated/model/publishIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  560. package/src/generated/model/publishIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  561. package/src/generated/model/publishIdp201DefinitionProtocol.ts +17 -0
  562. package/src/generated/model/publishIdp201DefinitionProvisioning.ts +15 -0
  563. package/src/generated/model/publishIdp201DefinitionProvisioningCreation.ts +15 -0
  564. package/src/generated/model/publishIdp201DefinitionVerifiedClaims.ts +12 -0
  565. package/src/generated/model/publishIdp400.ts +20 -0
  566. package/src/generated/model/publishIdp400Details.ts +12 -0
  567. package/src/generated/model/publishIdp401.ts +20 -0
  568. package/src/generated/model/publishIdp401Details.ts +12 -0
  569. package/src/generated/model/publishIdp403.ts +20 -0
  570. package/src/generated/model/publishIdp403Details.ts +12 -0
  571. package/src/generated/model/publishIdp404.ts +20 -0
  572. package/src/generated/model/publishIdp404Details.ts +12 -0
  573. package/src/generated/model/publishIdpBody.ts +15 -0
  574. package/src/generated/model/publishIdpBodyIdp.ts +44 -0
  575. package/src/generated/model/publishIdpBodyIdpClaimMapping.ts +12 -0
  576. package/src/generated/model/publishIdpBodyIdpOidc.ts +65 -0
  577. package/src/generated/model/publishIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
  578. package/src/generated/model/publishIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
  579. package/src/generated/model/publishIdpBodyIdpProtocol.ts +17 -0
  580. package/src/generated/model/publishIdpBodyIdpProvisioning.ts +15 -0
  581. package/src/generated/model/publishIdpBodyIdpProvisioningCreation.ts +15 -0
  582. package/src/generated/model/publishIdpBodyIdpVerifiedClaims.ts +12 -0
  583. package/src/generated/model/publishIdpDefault.ts +108 -0
  584. package/src/generated/model/publishIdpParams.ts +17 -0
  585. package/src/generated/model/publishPolicy201.ts +36 -0
  586. package/src/generated/model/publishPolicyBody.ts +20 -0
  587. package/src/generated/model/publishSchema201.ts +31 -0
  588. package/src/generated/model/publishSchema201Metadata.ts +18 -0
  589. package/src/generated/model/publishSchema201Schema.ts +84 -0
  590. package/src/generated/model/publishSchemaBody.ts +86 -0
  591. package/src/generated/model/publishSchemaDefault.ts +153 -0
  592. package/src/generated/model/publishSchemaParams.ts +22 -0
  593. package/src/generated/model/queryGrantsBodyFilterItem.ts +2 -1
  594. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +3 -1
  595. package/src/generated/model/queryIdps200IdpsItem.ts +2 -2
  596. package/src/generated/model/queryIdpsBodyFilterItem.ts +2 -1
  597. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +3 -1
  598. package/src/generated/model/queryProjectsBodyFilterItem.ts +2 -1
  599. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +3 -1
  600. package/src/generated/model/querySessionsBodyFilterItem.ts +2 -1
  601. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +3 -1
  602. package/src/generated/model/queryTeamsBodyFilterItem.ts +2 -1
  603. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +3 -1
  604. package/src/generated/model/queryUsers200UsersItem.ts +1 -1
  605. package/src/generated/model/queryUsersBodyFilterItem.ts +12 -3
  606. package/src/generated/model/queryUsersBodyFilterItemField.ts +11 -2
  607. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +3 -1
  608. package/src/generated/model/rejectInvitation200.ts +126 -0
  609. package/src/generated/model/rejectInvitation400.ts +20 -0
  610. package/src/generated/model/rejectInvitation400Details.ts +12 -0
  611. package/src/generated/model/rejectInvitation401.ts +20 -0
  612. package/src/generated/model/rejectInvitation401Details.ts +12 -0
  613. package/src/generated/model/rejectInvitation403.ts +20 -0
  614. package/src/generated/model/rejectInvitation403Details.ts +12 -0
  615. package/src/generated/model/rejectInvitation404.ts +20 -0
  616. package/src/generated/model/rejectInvitation404Details.ts +12 -0
  617. package/src/generated/model/rejectInvitation429.ts +20 -0
  618. package/src/generated/model/rejectInvitation429Details.ts +12 -0
  619. package/src/generated/model/rejectInvitationBody.ts +19 -0
  620. package/src/generated/model/rejectInvitationDefault.ts +72 -0
  621. package/src/generated/model/removeProjectOriginBody.ts +15 -0
  622. package/src/generated/model/removeProjectOriginDefault.ts +108 -0
  623. package/src/generated/model/removeProjectPreviewBody.ts +23 -0
  624. package/src/generated/model/removeProjectPreviewDefault.ts +90 -0
  625. package/src/generated/model/revokeRelease200.ts +4 -4
  626. package/src/generated/model/revokeRelease200PointersItem.ts +3 -1
  627. package/src/generated/model/revokeRelease200PointersItemKind.ts +2 -1
  628. package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +3 -0
  629. package/src/generated/model/revokeRelease409DetailsOriginsItemKind.ts +18 -0
  630. package/src/generated/model/rollbackDeployment200.ts +9 -7
  631. package/src/generated/model/rollbackDeployment200Release.ts +4 -4
  632. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +3 -1
  633. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +2 -1
  634. package/src/generated/model/rollbackDeployment200Status.ts +4 -3
  635. package/src/generated/model/rollbackDeployment200TargetsItem.ts +0 -5
  636. package/src/generated/model/rollbackDeployment201.ts +9 -7
  637. package/src/generated/model/rollbackDeployment201Release.ts +4 -4
  638. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +3 -1
  639. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +2 -1
  640. package/src/generated/model/rollbackDeployment201Status.ts +4 -3
  641. package/src/generated/model/rollbackDeployment201TargetsItem.ts +0 -5
  642. package/src/generated/model/rollbackDeployment409.ts +12 -14
  643. package/src/generated/model/rollbackDeploymentDefault.ts +0 -9
  644. package/src/generated/model/search200.ts +34 -0
  645. package/src/generated/model/search200IncompleteTypesItem.ts +30 -0
  646. package/src/generated/model/search200ResultsItem.ts +54 -0
  647. package/src/generated/model/search200ResultsItemType.ts +30 -0
  648. package/src/generated/model/search400.ts +20 -0
  649. package/src/generated/model/search400Details.ts +12 -0
  650. package/src/generated/model/search401.ts +20 -0
  651. package/src/generated/model/search401Details.ts +12 -0
  652. package/src/generated/model/search403.ts +20 -0
  653. package/src/generated/model/search403Details.ts +12 -0
  654. package/src/generated/model/search404.ts +20 -0
  655. package/src/generated/model/search404Details.ts +12 -0
  656. package/src/generated/model/searchBody.ts +33 -0
  657. package/src/generated/model/searchBodyTypesItem.ts +30 -0
  658. package/src/generated/model/searchDefault.ts +126 -0
  659. package/src/generated/model/searchParams.ts +17 -0
  660. package/src/generated/model/setUserPassword429.ts +23 -0
  661. package/src/generated/model/setUserPasswordDefault.ts +9 -0
  662. package/src/generated/model/setVariables200.ts +35 -0
  663. package/src/generated/model/setVariables200Preview.ts +20 -0
  664. package/src/generated/model/setVariables200Primary.ts +20 -0
  665. package/src/generated/model/setVariablesBody.ts +48 -0
  666. package/src/generated/model/setVariablesDefault.ts +162 -0
  667. package/src/generated/model/setVariablesKind.ts +15 -0
  668. package/src/generated/model/setVariablesParams.ts +23 -0
  669. package/src/generated/model/submitFlowStep200.ts +1 -1
  670. package/src/generated/model/submitFlowStep200Branding.ts +3 -3
  671. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +1 -1
  672. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +1 -1
  673. package/src/generated/model/submitFlowStep200BrandingTypography.ts +1 -1
  674. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +6 -3
  675. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +7 -3
  676. package/src/generated/model/submitFlowStep200StepGates.ts +22 -9
  677. package/src/generated/model/submitFlowStep200StepGatesChallenge.ts +30 -0
  678. package/src/generated/model/submitFlowStep200StepGatesConfig.ts +2 -2
  679. package/src/generated/model/submitFlowStep200StepGatesKind.ts +3 -4
  680. package/src/generated/model/submitFlowStep400.ts +885 -8
  681. package/src/generated/model/submitFlowStep429.ts +23 -0
  682. package/src/generated/model/submitFlowStepBody.ts +5 -2
  683. package/src/generated/model/submitFlowStepBodyGateProofs.ts +4 -1
  684. package/src/generated/model/submitFlowStepDefault.ts +27 -0
  685. package/src/generated/model/updateMyUser200.ts +76 -0
  686. package/src/generated/model/updateMyUser200Attributes.ts +13 -0
  687. package/src/generated/model/updateMyUser200Metadata.ts +44 -0
  688. package/src/generated/model/updateMyUser200MetadataLifecycleOwnerTeam.ts +43 -0
  689. package/src/generated/model/updateMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  690. package/src/generated/model/updateMyUser200MetadataStatus.ts +20 -0
  691. package/src/generated/model/updateMyUser200TeamsItem.ts +33 -0
  692. package/src/generated/model/updateMyUser200TeamsItemMembershipStatus.ts +20 -0
  693. package/src/generated/model/updateMyUser400.ts +20 -0
  694. package/src/generated/model/updateMyUser400Details.ts +12 -0
  695. package/src/generated/model/updateMyUser401.ts +20 -0
  696. package/src/generated/model/updateMyUser401Details.ts +12 -0
  697. package/src/generated/model/updateMyUser403.ts +20 -0
  698. package/src/generated/model/updateMyUser403Details.ts +12 -0
  699. package/src/generated/model/updateMyUser404.ts +23 -0
  700. package/src/generated/model/updateMyUser409.ts +20 -0
  701. package/src/generated/model/updateMyUser409Details.ts +12 -0
  702. package/src/generated/model/updateMyUserBody.ts +25 -0
  703. package/src/generated/model/updateMyUserBodyAttributes.ts +13 -0
  704. package/src/generated/model/updateMyUserDefault.ts +117 -0
  705. package/src/generated/model/updateMyUserParams.ts +26 -0
  706. package/src/generated/model/updateProject200.ts +96 -0
  707. package/src/generated/model/updateProject400.ts +20 -0
  708. package/src/generated/model/updateProject400Details.ts +12 -0
  709. package/src/generated/model/updateProject401.ts +20 -0
  710. package/src/generated/model/updateProject401Details.ts +12 -0
  711. package/src/generated/model/updateProject404.ts +20 -0
  712. package/src/generated/model/updateProject404Details.ts +12 -0
  713. package/src/generated/model/updateProjectBody.ts +19 -0
  714. package/src/generated/model/updateProjectBodyPasswordHash.ts +40 -0
  715. package/src/generated/model/updateProjectBodyPasswordHashAlgorithm.ts +24 -0
  716. package/src/generated/model/updateProjectBodyPasswordHashParams.ts +44 -0
  717. package/src/generated/model/updateProjectBodyPasswordHashParamsHash.ts +24 -0
  718. package/src/generated/model/updateProjectDefault.ts +117 -0
  719. package/src/generated/model/updateUser200.ts +76 -0
  720. package/src/generated/model/updateUser200Attributes.ts +13 -0
  721. package/src/generated/model/updateUser200Metadata.ts +44 -0
  722. package/src/generated/model/updateUser200MetadataLifecycleOwnerTeam.ts +43 -0
  723. package/src/generated/model/updateUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  724. package/src/generated/model/updateUser200MetadataStatus.ts +20 -0
  725. package/src/generated/model/updateUser200TeamsItem.ts +33 -0
  726. package/src/generated/model/updateUser200TeamsItemMembershipStatus.ts +20 -0
  727. package/src/generated/model/updateUser400.ts +20 -0
  728. package/src/generated/model/updateUser400Details.ts +12 -0
  729. package/src/generated/model/updateUser401.ts +20 -0
  730. package/src/generated/model/updateUser401Details.ts +12 -0
  731. package/src/generated/model/updateUser403.ts +20 -0
  732. package/src/generated/model/updateUser403Details.ts +12 -0
  733. package/src/generated/model/updateUser404.ts +20 -0
  734. package/src/generated/model/updateUser404Details.ts +12 -0
  735. package/src/generated/model/updateUser409.ts +20 -0
  736. package/src/generated/model/updateUser409Details.ts +12 -0
  737. package/src/generated/model/updateUserBody.ts +53 -0
  738. package/src/generated/model/updateUserBodyAttributes.ts +13 -0
  739. package/src/generated/model/updateUserDefault.ts +117 -0
  740. package/src/generated/model/userProperty.ts +6 -1
  741. package/src/generated/model/verifyAuthAttemptChallenge200.ts +76 -0
  742. package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItem.ts +49 -0
  743. package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemMethod.ts +20 -0
  744. package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +34 -0
  745. package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemState.ts +22 -0
  746. package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItem.ts +28 -0
  747. package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItemMethod.ts +20 -0
  748. package/src/generated/model/verifyAuthAttemptChallenge200CompletedFactorsItemPayload.ts +37 -0
  749. package/src/generated/model/verifyAuthAttemptChallenge200RequiredFactorsItem.ts +20 -0
  750. package/src/generated/model/verifyAuthAttemptChallenge200State.ts +24 -0
  751. package/src/generated/model/verifyAuthAttemptChallenge409.ts +20 -0
  752. package/src/generated/model/verifyAuthAttemptChallenge409Details.ts +12 -0
  753. package/src/generated/model/verifyAuthAttemptChallenge429.ts +23 -0
  754. package/src/generated/model/verifyAuthAttemptChallengeBody.ts +27 -0
  755. package/src/generated/model/verifyAuthAttemptChallengeDefault.ts +189 -0
  756. package/src/generated/operations.ts +371 -93
  757. package/src/generated/paging.ts +17 -7
  758. package/src/runtime/api-factory.spec.ts +3 -3
  759. package/src/runtime/api-factory.ts +1 -1
  760. package/src/runtime/base-url.spec.ts +5 -5
  761. package/dist/api-factory-32Zz3s86.mjs +0 -359
  762. package/dist/api-factory-32Zz3s86.mjs.map +0 -1
  763. package/dist/api-factory-DbVEEqxe.d.mts +0 -217
  764. package/dist/api-factory-DbVEEqxe.d.mts.map +0 -1
  765. package/dist/fetch-BzLvdm6C.d.mts +0 -136
  766. package/dist/fetch-BzLvdm6C.d.mts.map +0 -1
  767. package/dist/generated/endpoints/zitadelNextGen.mjs.map +0 -1
  768. package/dist/index-BX80Kl-8.d.mts +0 -55692
  769. package/dist/index-BX80Kl-8.d.mts.map +0 -1
  770. package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
  771. package/dist/zitadelNextGen-CFrFhq_h.d.mts +0 -1726
  772. package/dist/zitadelNextGen-CFrFhq_h.d.mts.map +0 -1
  773. package/src/generated/model/addOrigin201.ts +0 -18
  774. package/src/generated/model/addOrigin201Kind.ts +0 -18
  775. package/src/generated/model/addOriginBody.ts +0 -35
  776. package/src/generated/model/addOriginBodyKind.ts +0 -19
  777. package/src/generated/model/addOriginDefault.ts +0 -135
  778. package/src/generated/model/beginUserPasskeyRegistration201.ts +0 -25
  779. package/src/generated/model/beginUserPasskeyRegistration201Options.ts +0 -13
  780. package/src/generated/model/beginUserPasskeyRegistration400.ts +0 -20
  781. package/src/generated/model/beginUserPasskeyRegistration400Details.ts +0 -12
  782. package/src/generated/model/beginUserPasskeyRegistration401.ts +0 -20
  783. package/src/generated/model/beginUserPasskeyRegistration401Details.ts +0 -12
  784. package/src/generated/model/beginUserPasskeyRegistration403.ts +0 -20
  785. package/src/generated/model/beginUserPasskeyRegistration403Details.ts +0 -12
  786. package/src/generated/model/beginUserPasskeyRegistration404.ts +0 -20
  787. package/src/generated/model/beginUserPasskeyRegistration404Details.ts +0 -12
  788. package/src/generated/model/beginUserPasskeyRegistration500.ts +0 -20
  789. package/src/generated/model/beginUserPasskeyRegistration500Details.ts +0 -12
  790. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +0 -33
  791. package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +0 -126
  792. package/src/generated/model/buildReleaseBodyBundleFlowDefinitionsItemStatus.ts +0 -23
  793. package/src/generated/model/completeClaim200.ts +0 -19
  794. package/src/generated/model/completeClaim400.ts +0 -20
  795. package/src/generated/model/completeClaim400Details.ts +0 -12
  796. package/src/generated/model/completeClaim401.ts +0 -23
  797. package/src/generated/model/completeClaim403.ts +0 -36
  798. package/src/generated/model/completeClaim404.ts +0 -20
  799. package/src/generated/model/completeClaim404Details.ts +0 -12
  800. package/src/generated/model/completeClaim409.ts +0 -25
  801. package/src/generated/model/completeClaim409Details.ts +0 -14
  802. package/src/generated/model/completeClaim410.ts +0 -27
  803. package/src/generated/model/completeClaim429.ts +0 -20
  804. package/src/generated/model/completeClaim429Details.ts +0 -12
  805. package/src/generated/model/completeClaimBody.ts +0 -18
  806. package/src/generated/model/completeClaimDefault.ts +0 -144
  807. package/src/generated/model/createBranding201.ts +0 -32
  808. package/src/generated/model/createBranding201Branding.ts +0 -80
  809. package/src/generated/model/createBranding201BrandingLayout.ts +0 -27
  810. package/src/generated/model/createBranding201BrandingShape.ts +0 -30
  811. package/src/generated/model/createBranding201BrandingShapeDensity.ts +0 -19
  812. package/src/generated/model/createBranding201BrandingTheme.ts +0 -41
  813. package/src/generated/model/createBranding201BrandingThemeDark.ts +0 -34
  814. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +0 -210
  815. package/src/generated/model/createBranding201BrandingThemeLight.ts +0 -34
  816. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +0 -210
  817. package/src/generated/model/createBranding201BrandingThemeMode.ts +0 -19
  818. package/src/generated/model/createBranding201BrandingTypography.ts +0 -47
  819. package/src/generated/model/createBranding400.ts +0 -20
  820. package/src/generated/model/createBranding400Details.ts +0 -12
  821. package/src/generated/model/createBrandingBody.ts +0 -80
  822. package/src/generated/model/createBrandingBodyLayout.ts +0 -27
  823. package/src/generated/model/createBrandingBodyShape.ts +0 -30
  824. package/src/generated/model/createBrandingBodyShapeDensity.ts +0 -19
  825. package/src/generated/model/createBrandingBodyTheme.ts +0 -41
  826. package/src/generated/model/createBrandingBodyThemeDark.ts +0 -34
  827. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +0 -210
  828. package/src/generated/model/createBrandingBodyThemeLight.ts +0 -34
  829. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +0 -210
  830. package/src/generated/model/createBrandingBodyThemeMode.ts +0 -19
  831. package/src/generated/model/createBrandingBodyTypography.ts +0 -47
  832. package/src/generated/model/createBrandingDefault.ts +0 -99
  833. package/src/generated/model/createBrandingParams.ts +0 -17
  834. package/src/generated/model/createFlowDefinition201.ts +0 -48
  835. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +0 -95
  836. package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +0 -20
  837. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +0 -23
  838. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +0 -109
  839. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +0 -49
  840. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +0 -29
  841. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemComplete.ts +0 -20
  842. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +0 -36
  843. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +0 -13
  844. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +0 -20
  845. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +0 -25
  846. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +0 -68
  847. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +0 -28
  848. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +0 -29
  849. package/src/generated/model/createFlowDefinition201UserSchema.ts +0 -26
  850. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +0 -18
  851. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +0 -84
  852. package/src/generated/model/createFlowDefinition400.ts +0 -20
  853. package/src/generated/model/createFlowDefinition400Details.ts +0 -12
  854. package/src/generated/model/createFlowDefinitionBody.ts +0 -45
  855. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +0 -95
  856. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +0 -20
  857. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +0 -23
  858. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -109
  859. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -49
  860. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -29
  861. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -20
  862. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -36
  863. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -13
  864. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
  865. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -25
  866. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -68
  867. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +0 -28
  868. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +0 -29
  869. package/src/generated/model/createFlowDefinitionDefault.ts +0 -117
  870. package/src/generated/model/createHandoff200.ts +0 -30
  871. package/src/generated/model/createHandoff409.ts +0 -20
  872. package/src/generated/model/createHandoff409Details.ts +0 -12
  873. package/src/generated/model/createHandoffDefault.ts +0 -99
  874. package/src/generated/model/createIdp200.ts +0 -39
  875. package/src/generated/model/createIdp200Definition.ts +0 -44
  876. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +0 -12
  877. package/src/generated/model/createIdp200DefinitionOidc.ts +0 -65
  878. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
  879. package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
  880. package/src/generated/model/createIdp200DefinitionProtocol.ts +0 -17
  881. package/src/generated/model/createIdp200DefinitionProvisioning.ts +0 -15
  882. package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +0 -15
  883. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +0 -12
  884. package/src/generated/model/createIdp201.ts +0 -39
  885. package/src/generated/model/createIdp201Definition.ts +0 -44
  886. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +0 -12
  887. package/src/generated/model/createIdp201DefinitionOidc.ts +0 -65
  888. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +0 -12
  889. package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
  890. package/src/generated/model/createIdp201DefinitionProtocol.ts +0 -17
  891. package/src/generated/model/createIdp201DefinitionProvisioning.ts +0 -15
  892. package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +0 -15
  893. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +0 -12
  894. package/src/generated/model/createIdp400.ts +0 -20
  895. package/src/generated/model/createIdp400Details.ts +0 -12
  896. package/src/generated/model/createIdp401.ts +0 -20
  897. package/src/generated/model/createIdp401Details.ts +0 -12
  898. package/src/generated/model/createIdp403.ts +0 -20
  899. package/src/generated/model/createIdp403Details.ts +0 -12
  900. package/src/generated/model/createIdp404.ts +0 -20
  901. package/src/generated/model/createIdp404Details.ts +0 -12
  902. package/src/generated/model/createIdpBody.ts +0 -15
  903. package/src/generated/model/createIdpBodyIdp.ts +0 -44
  904. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +0 -12
  905. package/src/generated/model/createIdpBodyIdpOidc.ts +0 -65
  906. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +0 -12
  907. package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +0 -18
  908. package/src/generated/model/createIdpBodyIdpProtocol.ts +0 -17
  909. package/src/generated/model/createIdpBodyIdpProvisioning.ts +0 -15
  910. package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +0 -15
  911. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +0 -12
  912. package/src/generated/model/createIdpDefault.ts +0 -108
  913. package/src/generated/model/createIdpParams.ts +0 -17
  914. package/src/generated/model/createSchema201.ts +0 -12
  915. package/src/generated/model/createSchemaBody.ts +0 -86
  916. package/src/generated/model/createSchemaDefault.ts +0 -153
  917. package/src/generated/model/createSchemaParams.ts +0 -22
  918. package/src/generated/model/deleteTeam400.ts +0 -20
  919. package/src/generated/model/deleteTeam400Details.ts +0 -12
  920. package/src/generated/model/deleteTeam401.ts +0 -20
  921. package/src/generated/model/deleteTeam401Details.ts +0 -12
  922. package/src/generated/model/deleteTeam403.ts +0 -20
  923. package/src/generated/model/deleteTeam403Details.ts +0 -12
  924. package/src/generated/model/deleteTeam409.ts +0 -20
  925. package/src/generated/model/deleteTeam409Details.ts +0 -12
  926. package/src/generated/model/deleteTeamDefault.ts +0 -90
  927. package/src/generated/model/deleteUserByID401.ts +0 -20
  928. package/src/generated/model/deleteUserByID401Details.ts +0 -12
  929. package/src/generated/model/deleteUserByID404.ts +0 -20
  930. package/src/generated/model/deleteUserByID404Details.ts +0 -12
  931. package/src/generated/model/deleteUserByID409.ts +0 -20
  932. package/src/generated/model/deleteUserByID409Details.ts +0 -12
  933. package/src/generated/model/deleteUserByIDDefault.ts +0 -99
  934. package/src/generated/model/finishUserPasskeyRegistration201.ts +0 -19
  935. package/src/generated/model/finishUserPasskeyRegistration400.ts +0 -20
  936. package/src/generated/model/finishUserPasskeyRegistration400Details.ts +0 -12
  937. package/src/generated/model/finishUserPasskeyRegistration401.ts +0 -20
  938. package/src/generated/model/finishUserPasskeyRegistration401Details.ts +0 -12
  939. package/src/generated/model/finishUserPasskeyRegistration403.ts +0 -20
  940. package/src/generated/model/finishUserPasskeyRegistration403Details.ts +0 -12
  941. package/src/generated/model/finishUserPasskeyRegistration404.ts +0 -20
  942. package/src/generated/model/finishUserPasskeyRegistration404Details.ts +0 -12
  943. package/src/generated/model/finishUserPasskeyRegistration500.ts +0 -20
  944. package/src/generated/model/finishUserPasskeyRegistration500Details.ts +0 -12
  945. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +0 -21
  946. package/src/generated/model/finishUserPasskeyRegistrationBodyAttestation.ts +0 -12
  947. package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +0 -180
  948. package/src/generated/model/getBrandingById200.ts +0 -32
  949. package/src/generated/model/getBrandingById200Branding.ts +0 -80
  950. package/src/generated/model/getBrandingById200BrandingLayout.ts +0 -27
  951. package/src/generated/model/getBrandingById200BrandingShape.ts +0 -30
  952. package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +0 -19
  953. package/src/generated/model/getBrandingById200BrandingTheme.ts +0 -41
  954. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +0 -34
  955. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +0 -210
  956. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +0 -34
  957. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +0 -210
  958. package/src/generated/model/getBrandingById200BrandingThemeMode.ts +0 -19
  959. package/src/generated/model/getBrandingById200BrandingTypography.ts +0 -47
  960. package/src/generated/model/getBrandingById404.ts +0 -20
  961. package/src/generated/model/getBrandingById404Details.ts +0 -12
  962. package/src/generated/model/getBrandingByIdDefault.ts +0 -72
  963. package/src/generated/model/getClaimStatus200.ts +0 -27
  964. package/src/generated/model/getClaimStatus401.ts +0 -20
  965. package/src/generated/model/getClaimStatus401Details.ts +0 -12
  966. package/src/generated/model/getClaimStatus403.ts +0 -23
  967. package/src/generated/model/getClaimStatus404.ts +0 -20
  968. package/src/generated/model/getClaimStatus404Details.ts +0 -12
  969. package/src/generated/model/getClaimStatus410.ts +0 -27
  970. package/src/generated/model/getClaimStatus429.ts +0 -20
  971. package/src/generated/model/getClaimStatus429Details.ts +0 -12
  972. package/src/generated/model/getClaimStatusDefault.ts +0 -99
  973. package/src/generated/model/getClaimStatusParams.ts +0 -15
  974. package/src/generated/model/getClaimWindow200.ts +0 -23
  975. package/src/generated/model/getClaimWindow404.ts +0 -20
  976. package/src/generated/model/getClaimWindow404Details.ts +0 -12
  977. package/src/generated/model/getClaimWindow429.ts +0 -20
  978. package/src/generated/model/getClaimWindow429Details.ts +0 -12
  979. package/src/generated/model/getClaimWindowDefault.ts +0 -36
  980. package/src/generated/model/getClaimWindowParams.ts +0 -15
  981. package/src/generated/model/getDeploymentById200.ts +0 -76
  982. package/src/generated/model/getDeploymentById200Kind.ts +0 -18
  983. package/src/generated/model/getDeploymentById200Metadata.ts +0 -35
  984. package/src/generated/model/getDeploymentById200MetadataDeployedByType.ts +0 -20
  985. package/src/generated/model/getDeploymentById200MetadataReason.ts +0 -20
  986. package/src/generated/model/getDeploymentById200Release.ts +0 -96
  987. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +0 -43
  988. package/src/generated/model/getDeploymentById200ReleaseMetadataCreatedByType.ts +0 -20
  989. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +0 -61
  990. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +0 -28
  991. package/src/generated/model/getDeploymentById200Status.ts +0 -22
  992. package/src/generated/model/getDeploymentById200TargetsItem.ts +0 -28
  993. package/src/generated/model/getDeploymentByIdDefault.ts +0 -72
  994. package/src/generated/model/getDeploymentByIdParams.ts +0 -17
  995. package/src/generated/model/getDeploymentVariables200.ts +0 -17
  996. package/src/generated/model/getDeploymentVariablesDefault.ts +0 -90
  997. package/src/generated/model/getDeploymentVariablesParams.ts +0 -17
  998. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +0 -23
  999. package/src/generated/model/getIdpById200.ts +0 -39
  1000. package/src/generated/model/getIdpById200Definition.ts +0 -44
  1001. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +0 -12
  1002. package/src/generated/model/getIdpById200DefinitionOidc.ts +0 -65
  1003. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
  1004. package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
  1005. package/src/generated/model/getIdpById200DefinitionProtocol.ts +0 -17
  1006. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +0 -15
  1007. package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +0 -15
  1008. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +0 -12
  1009. package/src/generated/model/getIdpById401.ts +0 -20
  1010. package/src/generated/model/getIdpById401Details.ts +0 -12
  1011. package/src/generated/model/getIdpById403.ts +0 -20
  1012. package/src/generated/model/getIdpById403Details.ts +0 -12
  1013. package/src/generated/model/getIdpById404.ts +0 -20
  1014. package/src/generated/model/getIdpById404Details.ts +0 -12
  1015. package/src/generated/model/getIdpByIdDefault.ts +0 -72
  1016. package/src/generated/model/getIdpByIdParams.ts +0 -17
  1017. package/src/generated/model/getIdpRevisionById200.ts +0 -39
  1018. package/src/generated/model/getIdpRevisionById200Definition.ts +0 -44
  1019. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +0 -12
  1020. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +0 -65
  1021. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +0 -12
  1022. package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +0 -18
  1023. package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +0 -17
  1024. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +0 -15
  1025. package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +0 -15
  1026. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +0 -12
  1027. package/src/generated/model/getIdpRevisionById401.ts +0 -20
  1028. package/src/generated/model/getIdpRevisionById401Details.ts +0 -12
  1029. package/src/generated/model/getIdpRevisionById403.ts +0 -20
  1030. package/src/generated/model/getIdpRevisionById403Details.ts +0 -12
  1031. package/src/generated/model/getIdpRevisionById404.ts +0 -20
  1032. package/src/generated/model/getIdpRevisionById404Details.ts +0 -12
  1033. package/src/generated/model/getIdpRevisionByIdDefault.ts +0 -72
  1034. package/src/generated/model/getIdpRevisionByIdParams.ts +0 -17
  1035. package/src/generated/model/getReleaseById200.ts +0 -96
  1036. package/src/generated/model/getReleaseById200Metadata.ts +0 -43
  1037. package/src/generated/model/getReleaseById200MetadataCreatedByType.ts +0 -20
  1038. package/src/generated/model/getReleaseById200PointersItem.ts +0 -61
  1039. package/src/generated/model/getReleaseById200PointersItemKind.ts +0 -28
  1040. package/src/generated/model/getReleaseByIdDefault.ts +0 -72
  1041. package/src/generated/model/getReleaseByIdParams.ts +0 -17
  1042. package/src/generated/model/getSchemaById200.ts +0 -31
  1043. package/src/generated/model/getSchemaById200Metadata.ts +0 -18
  1044. package/src/generated/model/getSchemaById200Schema.ts +0 -84
  1045. package/src/generated/model/getSchemaByIdDefault.ts +0 -72
  1046. package/src/generated/model/getSchemaByIdParams.ts +0 -21
  1047. package/src/generated/model/getUserByID200.ts +0 -76
  1048. package/src/generated/model/getUserByID200Attributes.ts +0 -13
  1049. package/src/generated/model/getUserByID200Metadata.ts +0 -44
  1050. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +0 -43
  1051. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +0 -21
  1052. package/src/generated/model/getUserByID200MetadataStatus.ts +0 -20
  1053. package/src/generated/model/getUserByID200TeamsItem.ts +0 -33
  1054. package/src/generated/model/getUserByID200TeamsItemMembershipStatus.ts +0 -20
  1055. package/src/generated/model/getUserByID401.ts +0 -20
  1056. package/src/generated/model/getUserByID401Details.ts +0 -12
  1057. package/src/generated/model/getUserByID404.ts +0 -20
  1058. package/src/generated/model/getUserByID404Details.ts +0 -12
  1059. package/src/generated/model/getUserByIDDefault.ts +0 -72
  1060. package/src/generated/model/getUserByIDParams.ts +0 -31
  1061. package/src/generated/model/getVariables200.ts +0 -35
  1062. package/src/generated/model/getVariables200Preview.ts +0 -20
  1063. package/src/generated/model/getVariables200Primary.ts +0 -20
  1064. package/src/generated/model/getVariablesDefault.ts +0 -72
  1065. package/src/generated/model/getVariablesKind.ts +0 -15
  1066. package/src/generated/model/getVariablesParams.ts +0 -23
  1067. package/src/generated/model/initClaim201.ts +0 -25
  1068. package/src/generated/model/initClaim401.ts +0 -20
  1069. package/src/generated/model/initClaim401Details.ts +0 -12
  1070. package/src/generated/model/initClaim404.ts +0 -23
  1071. package/src/generated/model/initClaim409.ts +0 -25
  1072. package/src/generated/model/initClaim409Details.ts +0 -14
  1073. package/src/generated/model/initClaim410.ts +0 -23
  1074. package/src/generated/model/initClaimDefault.ts +0 -99
  1075. package/src/generated/model/issueChallenge201.ts +0 -49
  1076. package/src/generated/model/issueChallenge201Method.ts +0 -20
  1077. package/src/generated/model/issueChallenge201Payload.ts +0 -34
  1078. package/src/generated/model/issueChallenge201State.ts +0 -22
  1079. package/src/generated/model/issueChallengeBody.ts +0 -28
  1080. package/src/generated/model/issueChallengeBodyMethod.ts +0 -20
  1081. package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +0 -19
  1082. package/src/generated/model/issueChallengeBodyPasskeyOptionsUserVerification.ts +0 -16
  1083. package/src/generated/model/issueChallengeDefault.ts +0 -90
  1084. package/src/generated/model/listBranding200Item.ts +0 -14
  1085. package/src/generated/model/listEvents200DataItem.ts +0 -3956
  1086. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +0 -23
  1087. package/src/generated/model/listPreviews200.ts +0 -20
  1088. package/src/generated/model/listPreviews200PreviewsItem.ts +0 -37
  1089. package/src/generated/model/listPreviewsDefault.ts +0 -72
  1090. package/src/generated/model/listPreviewsParams.ts +0 -23
  1091. package/src/generated/model/patchMyUser200.ts +0 -76
  1092. package/src/generated/model/patchMyUser200Attributes.ts +0 -13
  1093. package/src/generated/model/patchMyUser200Metadata.ts +0 -44
  1094. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +0 -43
  1095. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +0 -21
  1096. package/src/generated/model/patchMyUser200MetadataStatus.ts +0 -20
  1097. package/src/generated/model/patchMyUser200TeamsItem.ts +0 -33
  1098. package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +0 -20
  1099. package/src/generated/model/patchMyUser400.ts +0 -20
  1100. package/src/generated/model/patchMyUser400Details.ts +0 -12
  1101. package/src/generated/model/patchMyUser401.ts +0 -20
  1102. package/src/generated/model/patchMyUser401Details.ts +0 -12
  1103. package/src/generated/model/patchMyUser403.ts +0 -20
  1104. package/src/generated/model/patchMyUser403Details.ts +0 -12
  1105. package/src/generated/model/patchMyUser404.ts +0 -23
  1106. package/src/generated/model/patchMyUser409.ts +0 -20
  1107. package/src/generated/model/patchMyUser409Details.ts +0 -12
  1108. package/src/generated/model/patchMyUserBody.ts +0 -25
  1109. package/src/generated/model/patchMyUserBodyAttributes.ts +0 -13
  1110. package/src/generated/model/patchMyUserDefault.ts +0 -117
  1111. package/src/generated/model/patchMyUserParams.ts +0 -26
  1112. package/src/generated/model/patchProject200.ts +0 -96
  1113. package/src/generated/model/patchProject400.ts +0 -20
  1114. package/src/generated/model/patchProject400Details.ts +0 -12
  1115. package/src/generated/model/patchProject401.ts +0 -20
  1116. package/src/generated/model/patchProject401Details.ts +0 -12
  1117. package/src/generated/model/patchProject404.ts +0 -20
  1118. package/src/generated/model/patchProject404Details.ts +0 -12
  1119. package/src/generated/model/patchProjectBody.ts +0 -19
  1120. package/src/generated/model/patchProjectBodyPasswordHash.ts +0 -40
  1121. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +0 -24
  1122. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +0 -44
  1123. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +0 -24
  1124. package/src/generated/model/patchProjectDefault.ts +0 -117
  1125. package/src/generated/model/patchUserByID200.ts +0 -76
  1126. package/src/generated/model/patchUserByID200Attributes.ts +0 -13
  1127. package/src/generated/model/patchUserByID200Metadata.ts +0 -44
  1128. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +0 -43
  1129. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +0 -21
  1130. package/src/generated/model/patchUserByID200MetadataStatus.ts +0 -20
  1131. package/src/generated/model/patchUserByID200TeamsItem.ts +0 -33
  1132. package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +0 -20
  1133. package/src/generated/model/patchUserByID400.ts +0 -20
  1134. package/src/generated/model/patchUserByID400Details.ts +0 -12
  1135. package/src/generated/model/patchUserByID401.ts +0 -20
  1136. package/src/generated/model/patchUserByID401Details.ts +0 -12
  1137. package/src/generated/model/patchUserByID403.ts +0 -20
  1138. package/src/generated/model/patchUserByID403Details.ts +0 -12
  1139. package/src/generated/model/patchUserByID404.ts +0 -20
  1140. package/src/generated/model/patchUserByID404Details.ts +0 -12
  1141. package/src/generated/model/patchUserByID409.ts +0 -20
  1142. package/src/generated/model/patchUserByID409Details.ts +0 -12
  1143. package/src/generated/model/patchUserByIDBody.ts +0 -53
  1144. package/src/generated/model/patchUserByIDBodyAttributes.ts +0 -13
  1145. package/src/generated/model/patchUserByIDDefault.ts +0 -117
  1146. package/src/generated/model/removeOriginBody.ts +0 -15
  1147. package/src/generated/model/removeOriginDefault.ts +0 -108
  1148. package/src/generated/model/removePreviewBody.ts +0 -23
  1149. package/src/generated/model/removePreviewDefault.ts +0 -90
  1150. package/src/generated/model/submitFlowStep400Branding.ts +0 -80
  1151. package/src/generated/model/submitFlowStep400BrandingLayout.ts +0 -27
  1152. package/src/generated/model/submitFlowStep400BrandingShape.ts +0 -30
  1153. package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +0 -19
  1154. package/src/generated/model/submitFlowStep400BrandingTheme.ts +0 -41
  1155. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +0 -34
  1156. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +0 -210
  1157. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +0 -34
  1158. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +0 -210
  1159. package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +0 -19
  1160. package/src/generated/model/submitFlowStep400BrandingTypography.ts +0 -47
  1161. package/src/generated/model/submitFlowStep400Step.ts +0 -142
  1162. package/src/generated/model/submitFlowStep400StepActionsItem.ts +0 -41
  1163. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +0 -27
  1164. package/src/generated/model/submitFlowStep400StepChallenge.ts +0 -36
  1165. package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +0 -18
  1166. package/src/generated/model/submitFlowStep400StepChallengeOptions.ts +0 -15
  1167. package/src/generated/model/submitFlowStep400StepComplete.ts +0 -20
  1168. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +0 -84
  1169. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +0 -30
  1170. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +0 -46
  1171. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +0 -24
  1172. package/src/generated/model/submitFlowStep400StepGates.ts +0 -36
  1173. package/src/generated/model/submitFlowStep400StepGatesConfig.ts +0 -13
  1174. package/src/generated/model/submitFlowStep400StepGatesKind.ts +0 -20
  1175. package/src/generated/model/submitFlowStep400StepIdentifier.ts +0 -58
  1176. package/src/generated/model/submitFlowStep400StepPurpose.ts +0 -26
  1177. package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +0 -19
  1178. package/src/generated/model/submitFlowStep400StepTexts.ts +0 -23
  1179. package/src/generated/model/updateVariables200.ts +0 -35
  1180. package/src/generated/model/updateVariables200Preview.ts +0 -20
  1181. package/src/generated/model/updateVariables200Primary.ts +0 -20
  1182. package/src/generated/model/updateVariablesBody.ts +0 -48
  1183. package/src/generated/model/updateVariablesDefault.ts +0 -162
  1184. package/src/generated/model/updateVariablesKind.ts +0 -15
  1185. package/src/generated/model/updateVariablesParams.ts +0 -23
  1186. package/src/generated/model/verifyChallengeProof200.ts +0 -76
  1187. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +0 -49
  1188. package/src/generated/model/verifyChallengeProof200ChallengesItemMethod.ts +0 -20
  1189. package/src/generated/model/verifyChallengeProof200ChallengesItemPayload.ts +0 -34
  1190. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +0 -22
  1191. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +0 -28
  1192. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemMethod.ts +0 -20
  1193. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +0 -37
  1194. package/src/generated/model/verifyChallengeProof200RequiredFactorsItem.ts +0 -20
  1195. package/src/generated/model/verifyChallengeProof200State.ts +0 -24
  1196. package/src/generated/model/verifyChallengeProof409.ts +0 -20
  1197. package/src/generated/model/verifyChallengeProof409Details.ts +0 -12
  1198. package/src/generated/model/verifyChallengeProofBody.ts +0 -27
  1199. package/src/generated/model/verifyChallengeProofDefault.ts +0 -180
@@ -1,3446 +1 @@
1
- import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.mjs";
2
- import { getApiBaseUrl } from "../../runtime/base-url.mjs";
3
- import { customFetch } from "../../runtime/fetch.mjs";
4
- //#region src/generated/endpoints/zitadelNextGen.ts
5
- /**
6
- * Generated by orval 🍺
7
- * Do not edit manually.
8
- * Zitadel NextGen
9
- * This is the next generation of the Zitadel identity platform.
10
- * OpenAPI spec version: 0.0.1
11
- */
12
- var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
13
- addOrigin: () => addOrigin,
14
- beginUserPasskeyRegistration: () => beginUserPasskeyRegistration,
15
- buildRelease: () => buildRelease,
16
- completeClaim: () => completeClaim,
17
- createAuthAttempt: () => createAuthAttempt,
18
- createBranding: () => createBranding,
19
- createDeployment: () => createDeployment,
20
- createFlow: () => createFlow,
21
- createFlowDefinition: () => createFlowDefinition,
22
- createGrant: () => createGrant,
23
- createHandoff: () => createHandoff,
24
- createIdp: () => createIdp,
25
- createProject: () => createProject,
26
- createRelease: () => createRelease,
27
- createSchema: () => createSchema,
28
- createSession: () => createSession,
29
- createTeam: () => createTeam,
30
- createUser: () => createUser,
31
- deleteGrant: () => deleteGrant,
32
- deleteTeam: () => deleteTeam,
33
- deleteUserByID: () => deleteUserByID,
34
- deleteVariable: () => deleteVariable,
35
- evaluatePolicy: () => evaluatePolicy,
36
- exchangeHandoff: () => exchangeHandoff,
37
- finishUserPasskeyRegistration: () => finishUserPasskeyRegistration,
38
- getAddOriginUrl: () => getAddOriginUrl,
39
- getAuthAttempt: () => getAuthAttempt,
40
- getBeginUserPasskeyRegistrationUrl: () => getBeginUserPasskeyRegistrationUrl,
41
- getBrandingById: () => getBrandingById,
42
- getBuildReleaseUrl: () => getBuildReleaseUrl,
43
- getClaimStatus: () => getClaimStatus,
44
- getClaimWindow: () => getClaimWindow,
45
- getCompleteClaimUrl: () => getCompleteClaimUrl,
46
- getCreateAuthAttemptUrl: () => getCreateAuthAttemptUrl,
47
- getCreateBrandingUrl: () => getCreateBrandingUrl,
48
- getCreateDeploymentUrl: () => getCreateDeploymentUrl,
49
- getCreateFlowDefinitionUrl: () => getCreateFlowDefinitionUrl,
50
- getCreateFlowUrl: () => getCreateFlowUrl,
51
- getCreateGrantUrl: () => getCreateGrantUrl,
52
- getCreateHandoffUrl: () => getCreateHandoffUrl,
53
- getCreateIdpUrl: () => getCreateIdpUrl,
54
- getCreateProjectUrl: () => getCreateProjectUrl,
55
- getCreateReleaseUrl: () => getCreateReleaseUrl,
56
- getCreateSchemaUrl: () => getCreateSchemaUrl,
57
- getCreateSessionUrl: () => getCreateSessionUrl,
58
- getCreateTeamUrl: () => getCreateTeamUrl,
59
- getCreateUserUrl: () => getCreateUserUrl,
60
- getDeleteGrantUrl: () => getDeleteGrantUrl,
61
- getDeleteTeamUrl: () => getDeleteTeamUrl,
62
- getDeleteUserByIDUrl: () => getDeleteUserByIDUrl,
63
- getDeleteVariableUrl: () => getDeleteVariableUrl,
64
- getDeploymentById: () => getDeploymentById,
65
- getDeploymentVariables: () => getDeploymentVariables,
66
- getEvaluatePolicyUrl: () => getEvaluatePolicyUrl,
67
- getEvent: () => getEvent,
68
- getExchangeHandoffUrl: () => getExchangeHandoffUrl,
69
- getFinishUserPasskeyRegistrationUrl: () => getFinishUserPasskeyRegistrationUrl,
70
- getFlowDefinition: () => getFlowDefinition,
71
- getFlowStep: () => getFlowStep,
72
- getGetAuthAttemptUrl: () => getGetAuthAttemptUrl,
73
- getGetBrandingByIdUrl: () => getGetBrandingByIdUrl,
74
- getGetClaimStatusUrl: () => getGetClaimStatusUrl,
75
- getGetClaimWindowUrl: () => getGetClaimWindowUrl,
76
- getGetDeploymentByIdUrl: () => getGetDeploymentByIdUrl,
77
- getGetDeploymentVariablesUrl: () => getGetDeploymentVariablesUrl,
78
- getGetEventUrl: () => getGetEventUrl,
79
- getGetFlowDefinitionUrl: () => getGetFlowDefinitionUrl,
80
- getGetFlowStepUrl: () => getGetFlowStepUrl,
81
- getGetGrantUrl: () => getGetGrantUrl,
82
- getGetIdpByIdUrl: () => getGetIdpByIdUrl,
83
- getGetIdpRevisionByIdUrl: () => getGetIdpRevisionByIdUrl,
84
- getGetLiveUrl: () => getGetLiveUrl,
85
- getGetMyPasswordStateUrl: () => getGetMyPasswordStateUrl,
86
- getGetMySessionCsrfTokenUrl: () => getGetMySessionCsrfTokenUrl,
87
- getGetMySessionUrl: () => getGetMySessionUrl,
88
- getGetMyUserSchemaUrl: () => getGetMyUserSchemaUrl,
89
- getGetMyUserUrl: () => getGetMyUserUrl,
90
- getGetPolicyRevisionUrl: () => getGetPolicyRevisionUrl,
91
- getGetPolicyUrl: () => getGetPolicyUrl,
92
- getGetProjectUrl: () => getGetProjectUrl,
93
- getGetReadyUrl: () => getGetReadyUrl,
94
- getGetReleaseByIdUrl: () => getGetReleaseByIdUrl,
95
- getGetSchemaByIdUrl: () => getGetSchemaByIdUrl,
96
- getGetSessionUrl: () => getGetSessionUrl,
97
- getGetTeamUrl: () => getGetTeamUrl,
98
- getGetUserByIDUrl: () => getGetUserByIDUrl,
99
- getGetUserPasswordStateUrl: () => getGetUserPasswordStateUrl,
100
- getGetVariableUrl: () => getGetVariableUrl,
101
- getGetVariablesUrl: () => getGetVariablesUrl,
102
- getGrant: () => getGrant,
103
- getIdpById: () => getIdpById,
104
- getIdpRevisionById: () => getIdpRevisionById,
105
- getInitClaimUrl: () => getInitClaimUrl,
106
- getIssueChallengeUrl: () => getIssueChallengeUrl,
107
- getListBrandingUrl: () => getListBrandingUrl,
108
- getListDeploymentsUrl: () => getListDeploymentsUrl,
109
- getListEventsUrl: () => getListEventsUrl,
110
- getListFlowDefinitionsUrl: () => getListFlowDefinitionsUrl,
111
- getListIdpRevisionsUrl: () => getListIdpRevisionsUrl,
112
- getListMyIdentityLinksUrl: () => getListMyIdentityLinksUrl,
113
- getListMyPasskeysUrl: () => getListMyPasskeysUrl,
114
- getListMyProjectsUrl: () => getListMyProjectsUrl,
115
- getListMyTeamsUrl: () => getListMyTeamsUrl,
116
- getListPoliciesUrl: () => getListPoliciesUrl,
117
- getListPolicyRevisionsUrl: () => getListPolicyRevisionsUrl,
118
- getListPreviewsUrl: () => getListPreviewsUrl,
119
- getListProjectAdminsUrl: () => getListProjectAdminsUrl,
120
- getListReleasesUrl: () => getListReleasesUrl,
121
- getListSchemasUrl: () => getListSchemasUrl,
122
- getListUserIdentityLinksUrl: () => getListUserIdentityLinksUrl,
123
- getListUserPasskeysUrl: () => getListUserPasskeysUrl,
124
- getListUserTeamsUrl: () => getListUserTeamsUrl,
125
- getLive: () => getLive,
126
- getMyPasswordState: () => getMyPasswordState,
127
- getMySession: () => getMySession,
128
- getMySessionCsrfToken: () => getMySessionCsrfToken,
129
- getMyUser: () => getMyUser,
130
- getMyUserSchema: () => getMyUserSchema,
131
- getPatchMyUserUrl: () => getPatchMyUserUrl,
132
- getPatchProjectUrl: () => getPatchProjectUrl,
133
- getPatchUserByIDUrl: () => getPatchUserByIDUrl,
134
- getPolicy: () => getPolicy,
135
- getPolicyRevision: () => getPolicyRevision,
136
- getProject: () => getProject,
137
- getPublishPolicyUrl: () => getPublishPolicyUrl,
138
- getQueryGrantsUrl: () => getQueryGrantsUrl,
139
- getQueryIdpsUrl: () => getQueryIdpsUrl,
140
- getQueryProjectsUrl: () => getQueryProjectsUrl,
141
- getQuerySessionsUrl: () => getQuerySessionsUrl,
142
- getQueryTeamsUrl: () => getQueryTeamsUrl,
143
- getQueryUsersUrl: () => getQueryUsersUrl,
144
- getReady: () => getReady,
145
- getReleaseById: () => getReleaseById,
146
- getRemoveOriginUrl: () => getRemoveOriginUrl,
147
- getRemovePreviewUrl: () => getRemovePreviewUrl,
148
- getRevokeMySessionUrl: () => getRevokeMySessionUrl,
149
- getRevokeReleaseUrl: () => getRevokeReleaseUrl,
150
- getRevokeSessionUrl: () => getRevokeSessionUrl,
151
- getRollbackDeploymentUrl: () => getRollbackDeploymentUrl,
152
- getSchemaById: () => getSchemaById,
153
- getSession: () => getSession,
154
- getSetUserPasswordUrl: () => getSetUserPasswordUrl,
155
- getSubmitFlowStepUrl: () => getSubmitFlowStepUrl,
156
- getTeam: () => getTeam,
157
- getUpdateTeamUrl: () => getUpdateTeamUrl,
158
- getUpdateVariablesUrl: () => getUpdateVariablesUrl,
159
- getUserByID: () => getUserByID,
160
- getUserPasswordState: () => getUserPasswordState,
161
- getVariable: () => getVariable,
162
- getVariables: () => getVariables,
163
- getVerifyChallengeProofUrl: () => getVerifyChallengeProofUrl,
164
- initClaim: () => initClaim,
165
- issueChallenge: () => issueChallenge,
166
- listBranding: () => listBranding,
167
- listDeployments: () => listDeployments,
168
- listEvents: () => listEvents,
169
- listFlowDefinitions: () => listFlowDefinitions,
170
- listIdpRevisions: () => listIdpRevisions,
171
- listMyIdentityLinks: () => listMyIdentityLinks,
172
- listMyPasskeys: () => listMyPasskeys,
173
- listMyProjects: () => listMyProjects,
174
- listMyTeams: () => listMyTeams,
175
- listPolicies: () => listPolicies,
176
- listPolicyRevisions: () => listPolicyRevisions,
177
- listPreviews: () => listPreviews,
178
- listProjectAdmins: () => listProjectAdmins,
179
- listReleases: () => listReleases,
180
- listSchemas: () => listSchemas,
181
- listUserIdentityLinks: () => listUserIdentityLinks,
182
- listUserPasskeys: () => listUserPasskeys,
183
- listUserTeams: () => listUserTeams,
184
- patchMyUser: () => patchMyUser,
185
- patchProject: () => patchProject,
186
- patchUserByID: () => patchUserByID,
187
- publishPolicy: () => publishPolicy,
188
- queryGrants: () => queryGrants,
189
- queryIdps: () => queryIdps,
190
- queryProjects: () => queryProjects,
191
- querySessions: () => querySessions,
192
- queryTeams: () => queryTeams,
193
- queryUsers: () => queryUsers,
194
- removeOrigin: () => removeOrigin,
195
- removePreview: () => removePreview,
196
- revokeMySession: () => revokeMySession,
197
- revokeRelease: () => revokeRelease,
198
- revokeSession: () => revokeSession,
199
- rollbackDeployment: () => rollbackDeployment,
200
- setUserPassword: () => setUserPassword,
201
- submitFlowStep: () => submitFlowStep,
202
- updateTeam: () => updateTeam,
203
- updateVariables: () => updateVariables,
204
- verifyChallengeProof: () => verifyChallengeProof
205
- });
206
- const getGetLiveUrl = () => {
207
- return `${getApiBaseUrl()}/livez`;
208
- };
209
- /**
210
- * Answers `ok` while the server process serves HTTP, and checks nothing
211
- * behind it.
212
- *
213
- * A liveness probe tells an orchestrator such as Kubernetes whether to
214
- * restart the process. Point it at `/livez` at the root, where the probes
215
- * stay, not under `/api/v1`. It never checks the database, so an outage of
216
- * the database does not restart every instance. `GET /readyz` takes an
217
- * instance out of rotation instead.
218
- * @summary Check the server's liveness
219
- */
220
- const getLive = async (options) => {
221
- return customFetch(getGetLiveUrl(), {
222
- ...options,
223
- method: "GET"
224
- });
225
- };
226
- const getGetReadyUrl = () => {
227
- return `${getApiBaseUrl()}/readyz`;
228
- };
229
- /**
230
- * Answers `ok` when the server can serve requests, which takes its database
231
- * answering within a second, and `fail` with `503` otherwise.
232
- *
233
- * A readiness probe tells an orchestrator such as Kubernetes whether to send
234
- * the instance requests. Point it at `/readyz` at the root, where the probes
235
- * stay, not under `/api/v1`, so that a server whose database does not answer
236
- * gets no requests until it does. The check is one round trip to the
237
- * database.
238
- * @summary Check the server's readiness
239
- */
240
- const getReady = async (options) => {
241
- return customFetch(getGetReadyUrl(), {
242
- ...options,
243
- method: "GET"
244
- });
245
- };
246
- const getCreateUserUrl = (params) => {
247
- const normalizedParams = new URLSearchParams();
248
- Object.entries(params || {}).forEach(([key, value]) => {
249
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
250
- });
251
- const stringifiedParams = normalizedParams.toString();
252
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users?${stringifiedParams}` : `${getApiBaseUrl()}/users`;
253
- };
254
- /**
255
- * Creates a user whose attributes satisfy the user schema named in the request.
256
- *
257
- * The server assigns the user's ID and returns it. `schema` is the `id` of a
258
- * schema, as `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With
259
- * `team_id`, the user also becomes an active member of that team. A value the
260
- * schema marks unique that another user already holds is refused with `409`;
261
- * send a different value.
262
- * @summary Create a user
263
- */
264
- const createUser = async (createUserBody, params, options) => {
265
- const getHeaders = (h) => {
266
- if (!h) return {};
267
- if (h instanceof Headers) return Object.fromEntries(h.entries());
268
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
269
- const headers = {};
270
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
271
- return headers;
272
- };
273
- return customFetch(getCreateUserUrl(params), {
274
- ...options,
275
- method: "POST",
276
- headers: {
277
- "Content-Type": "application/json",
278
- ...getHeaders(options?.headers)
279
- },
280
- body: JSON.stringify(createUserBody)
281
- });
282
- };
283
- const getQueryUsersUrl = (params) => {
284
- const normalizedParams = new URLSearchParams();
285
- Object.entries(params || {}).forEach(([key, value]) => {
286
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
287
- });
288
- const stringifiedParams = normalizedParams.toString();
289
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/query?${stringifiedParams}` : `${getApiBaseUrl()}/users/query`;
290
- };
291
- /**
292
- * Returns the users of a project, paginated with a cursor.
293
- *
294
- * `project_id` names the project to list; without it, the credential's own
295
- * project is listed.
296
- *
297
- * Accepts either a project secret (`oauth2`) or a user-bound console
298
- * session cookie (`sessionCookie`). Cookie-authenticated requests
299
- * follow the scheme's CSRF rules (`sessionCookie`).
300
- *
301
- * With a project secret, embedding `teams` with `expand`, or filtering by
302
- * `team_id`, also needs `team_membership.read`. Embedding
303
- * `lifecycle_owner_team` needs `team.read`. A console session carries no
304
- * scopes: it may do both when it may read the whole project, and gets
305
- * `403 user.permission_denied` otherwise.
306
- * @summary Query users
307
- */
308
- const queryUsers = async (queryUsersBody, params, options) => {
309
- const getHeaders = (h) => {
310
- if (!h) return {};
311
- if (h instanceof Headers) return Object.fromEntries(h.entries());
312
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
313
- const headers = {};
314
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
315
- return headers;
316
- };
317
- return customFetch(getQueryUsersUrl(params), {
318
- ...options,
319
- method: "POST",
320
- headers: {
321
- "Content-Type": "application/json",
322
- ...getHeaders(options?.headers)
323
- },
324
- body: JSON.stringify(queryUsersBody)
325
- });
326
- };
327
- const getGetUserByIDUrl = (userId, params) => {
328
- const normalizedParams = new URLSearchParams();
329
- Object.entries(params || {}).forEach(([key, value]) => {
330
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
331
- });
332
- const stringifiedParams = normalizedParams.toString();
333
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`;
334
- };
335
- /**
336
- * Returns a user by ID, with the attributes its schema defines.
337
- *
338
- * With `team_id`, the user is returned only while they are an active member
339
- * of that team.
340
- * @summary Get a user by ID
341
- */
342
- const getUserByID = async (userId, params, options) => {
343
- return customFetch(getGetUserByIDUrl(userId, params), {
344
- ...options,
345
- method: "GET"
346
- });
347
- };
348
- const getPatchUserByIDUrl = (userId) => {
349
- return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`;
350
- };
351
- /**
352
- * Partially updates a user's schema-defined attributes, and optionally
353
- * moves the user to another registered schema. The merged result is
354
- * validated against the schema before commit. Concurrent writes are
355
- * last-write-wins.
356
- *
357
- * To move the user, send `schema` with the `id` of a registered schema, as
358
- * `createSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.
359
- *
360
- * To ask whether a patch would succeed, send it with `"dry_run": true`. It takes
361
- * the same permission and answers the same status and `details` as the real
362
- * request, and it changes nothing and emits no `user.updated`. The request
363
- * itself is still recorded as `request.api`, like any other API call. A `200`
364
- * holds for the moment of the check: a unique value that is free then can be
365
- * taken before the real request, which then answers `409`.
366
- *
367
- * `dry_run` is a body field so that a server from before it refuses the
368
- * request as malformed (`400 req.invalid`) instead of applying the patch.
369
- * @summary Update a user by ID
370
- */
371
- const patchUserByID = async (userId, patchUserByIDBody, options) => {
372
- const getHeaders = (h) => {
373
- if (!h) return {};
374
- if (h instanceof Headers) return Object.fromEntries(h.entries());
375
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
376
- const headers = {};
377
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
378
- return headers;
379
- };
380
- return customFetch(getPatchUserByIDUrl(userId), {
381
- ...options,
382
- method: "PATCH",
383
- headers: {
384
- "Content-Type": "application/json",
385
- ...getHeaders(options?.headers)
386
- },
387
- body: JSON.stringify(patchUserByIDBody)
388
- });
389
- };
390
- const getDeleteUserByIDUrl = (userId) => {
391
- return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}`;
392
- };
393
- /**
394
- * Deletes a user, removes them from every team they belong to, and revokes
395
- * every grant they hold, on any project.
396
- *
397
- * The user is removed, not deactivated, and the deletion emits `user.deleted`,
398
- * plus `authz.revoked` for each grant on that grant's project.
399
- * With a project secret the request is idempotent: deleting a user that exists
400
- * in no project succeeds without changing anything. Deleting the last active
401
- * member of a project's owning team returns 409 `proj.last_owner` and changes
402
- * nothing.
403
- * @summary Delete a user by ID
404
- */
405
- const deleteUserByID = async (userId, options) => {
406
- return customFetch(getDeleteUserByIDUrl(userId), {
407
- ...options,
408
- method: "DELETE"
409
- });
410
- };
411
- const getListUserIdentityLinksUrl = (userId, params) => {
412
- const normalizedParams = new URLSearchParams();
413
- Object.entries(params || {}).forEach(([key, value]) => {
414
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
415
- });
416
- const stringifiedParams = normalizedParams.toString();
417
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/identity_links?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/identity_links`;
418
- };
419
- /**
420
- * Lists the identity provider accounts a sign-in linked to the user, oldest
421
- * first. The provider's subject and claims, the data it asserts about the
422
- * account, are never returned.
423
- * @summary List the provider accounts linked to a user
424
- */
425
- const listUserIdentityLinks = async (userId, params, options) => {
426
- return customFetch(getListUserIdentityLinksUrl(userId, params), {
427
- ...options,
428
- method: "GET"
429
- });
430
- };
431
- const getListUserPasskeysUrl = (userId, params) => {
432
- const normalizedParams = new URLSearchParams();
433
- Object.entries(params || {}).forEach(([key, value]) => {
434
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
435
- });
436
- const stringifiedParams = normalizedParams.toString();
437
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys`;
438
- };
439
- /**
440
- * Lists the passkeys registered for a user, newest first, paginated with a
441
- * cursor. A passkey is a WebAuthn credential that signs a user in without a
442
- * password.
443
- *
444
- * Each passkey carries its ID, its name and when it was registered, never the
445
- * credential itself.
446
- * @summary List a user's passkeys
447
- */
448
- const listUserPasskeys = async (userId, params, options) => {
449
- return customFetch(getListUserPasskeysUrl(userId, params), {
450
- ...options,
451
- method: "GET"
452
- });
453
- };
454
- const getBeginUserPasskeyRegistrationUrl = (userId) => {
455
- return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations`;
456
- };
457
- /**
458
- * Starts a WebAuthn registration ceremony for the user and returns the
459
- * creation options for `navigator.credentials.create()`. A passkey is
460
- * registered in two steps: this one returns options for the browser, and
461
- * `finishUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.
462
- *
463
- * Complete the ceremony with
464
- * `POST /users/{user_id}/passkeys/registrations/{registration_id}` within five
465
- * minutes, using the `registration_id` this response returns. Credentials
466
- * already registered for the user are excluded automatically.
467
- * @summary Begin a passkey registration
468
- */
469
- const beginUserPasskeyRegistration = async (userId, beginUserPasskeyRegistrationBody, options) => {
470
- const getHeaders = (h) => {
471
- if (!h) return {};
472
- if (h instanceof Headers) return Object.fromEntries(h.entries());
473
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
474
- const headers = {};
475
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
476
- return headers;
477
- };
478
- return customFetch(getBeginUserPasskeyRegistrationUrl(userId), {
479
- ...options,
480
- method: "POST",
481
- headers: {
482
- "Content-Type": "application/json",
483
- ...getHeaders(options?.headers)
484
- },
485
- body: JSON.stringify(beginUserPasskeyRegistrationBody)
486
- });
487
- };
488
- const getFinishUserPasskeyRegistrationUrl = (userId, registrationId) => {
489
- return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations/${encodeURIComponent(String(registrationId))}`;
490
- };
491
- /**
492
- * Verifies the attestation against the registration ceremony and stores
493
- * the new passkey for the user. `registration_id` is the one that
494
- * `beginUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)
495
- * returned when it started the ceremony. The attestation is
496
- * the browser's answer from `navigator.credentials.create()`.
497
- *
498
- * A rejected attestation leaves the ceremony open for a retry. An expired ceremony answers
499
- * `att.stale_challenge`: begin a new registration. An unknown or
500
- * already-consumed registration ID answers `att.not_found`.
501
- * @summary Finish a passkey registration
502
- */
503
- const finishUserPasskeyRegistration = async (userId, registrationId, finishUserPasskeyRegistrationBody, options) => {
504
- const getHeaders = (h) => {
505
- if (!h) return {};
506
- if (h instanceof Headers) return Object.fromEntries(h.entries());
507
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
508
- const headers = {};
509
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
510
- return headers;
511
- };
512
- return customFetch(getFinishUserPasskeyRegistrationUrl(userId, registrationId), {
513
- ...options,
514
- method: "POST",
515
- headers: {
516
- "Content-Type": "application/json",
517
- ...getHeaders(options?.headers)
518
- },
519
- body: JSON.stringify(finishUserPasskeyRegistrationBody)
520
- });
521
- };
522
- const getGetUserPasswordStateUrl = (userId) => {
523
- return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/password`;
524
- };
525
- /**
526
- * Returns when the user's current password was set, and leaves `set_at` out
527
- * when the user has none. The password and its hash are never returned;
528
- * `setUserPassword` (`PUT` on the same path) sets one.
529
- * @summary Get a user's password state
530
- */
531
- const getUserPasswordState = async (userId, options) => {
532
- return customFetch(getGetUserPasswordStateUrl(userId), {
533
- ...options,
534
- method: "GET"
535
- });
536
- };
537
- const getSetUserPasswordUrl = (userId) => {
538
- return `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/password`;
539
- };
540
- /**
541
- * Sets a user's password, hashed with the project's current password hashing
542
- * policy.
543
- *
544
- * The new password replaces the current one, and setting it emits
545
- * `auth.factor.password.set`. A password the project's password policy
546
- * refuses answers `user.password_policy_violation`; send one that meets the
547
- * policy.
548
- *
549
- * The password policy is the one in the release that serves the caller's
550
- * `Origin`, chosen as `createFlow` (`POST /flow`) chooses it. A frontend on a
551
- * preview URL gets that preview's policy, and one on a primary origin the
552
- * newest primary deployment's. A request with no `Origin`, or from the
553
- * console when the project does not list the console's origin, gets the
554
- * project's newest primary deployment.
555
- *
556
- * If the request is refused:
557
- * - `403 proj.origin_not_allowed`: the project admits no such origin. Add it
558
- * with `zitadel origin add`.
559
- * - `403 proj.preview_not_live`: the origin matches a preview pattern but has
560
- * no live preview. Run `zitadel preview` on the branch.
561
- * - `409 rel.not_deployed`: nothing is deployed to the origin. Run
562
- * `zitadel deploy`.
563
- * - `409 rel.no_default`: the request names no origin and the project has no
564
- * primary deployment. Run `zitadel deploy`.
565
- * - `409 rel.revoked`: the release that serves the origin is revoked.
566
- * @summary Set a user's password
567
- */
568
- const setUserPassword = async (userId, setUserPasswordBody, options) => {
569
- const getHeaders = (h) => {
570
- if (!h) return {};
571
- if (h instanceof Headers) return Object.fromEntries(h.entries());
572
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
573
- const headers = {};
574
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
575
- return headers;
576
- };
577
- return customFetch(getSetUserPasswordUrl(userId), {
578
- ...options,
579
- method: "PUT",
580
- headers: {
581
- "Content-Type": "application/json",
582
- ...getHeaders(options?.headers)
583
- },
584
- body: JSON.stringify(setUserPasswordBody)
585
- });
586
- };
587
- const getListUserTeamsUrl = (userId, params) => {
588
- const normalizedParams = new URLSearchParams();
589
- Object.entries(params || {}).forEach(([key, value]) => {
590
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
591
- });
592
- const stringifiedParams = normalizedParams.toString();
593
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/teams?${stringifiedParams}` : `${getApiBaseUrl()}/users/${encodeURIComponent(String(userId))}/teams`;
594
- };
595
- /**
596
- * Lists the teams a user belongs to, ordered by team name. Each entry carries
597
- * the team's name, so a client renders a page without resolving IDs one by
598
- * one.
599
- *
600
- * This is the user's team memberships, not lifecycle ownership: the single
601
- * team that owns the user's lifecycle is reported as
602
- * `metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships
603
- * the user was removed from are not returned.
604
- * @summary List the teams a user belongs to
605
- */
606
- const listUserTeams = async (userId, params, options) => {
607
- return customFetch(getListUserTeamsUrl(userId, params), {
608
- ...options,
609
- method: "GET"
610
- });
611
- };
612
- const getGetMyUserUrl = (params) => {
613
- const normalizedParams = new URLSearchParams();
614
- Object.entries(params || {}).forEach(([key, value]) => {
615
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
616
- });
617
- const stringifiedParams = normalizedParams.toString();
618
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me?${stringifiedParams}` : `${getApiBaseUrl()}/users/me`;
619
- };
620
- /**
621
- * Returns the user signed in to the session that authenticates the request.
622
- *
623
- * The project and the user both come from the session cookie, so a caller only
624
- * ever reads their own user.
625
- *
626
- * With `project_id`, the user is returned only when the session belongs to
627
- * that project.
628
- * @summary Get my user information
629
- */
630
- const getMyUser = async (params, options) => {
631
- return customFetch(getGetMyUserUrl(params), {
632
- ...options,
633
- method: "GET"
634
- });
635
- };
636
- const getPatchMyUserUrl = (params) => {
637
- const normalizedParams = new URLSearchParams();
638
- Object.entries(params || {}).forEach(([key, value]) => {
639
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
640
- });
641
- const stringifiedParams = normalizedParams.toString();
642
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me?${stringifiedParams}` : `${getApiBaseUrl()}/users/me`;
643
- };
644
- /**
645
- * Partially updates the caller's own schema-defined attributes. The merged
646
- * result is validated against the user's schema before commit. Concurrent
647
- * writes are last-write-wins.
648
- *
649
- * With `project_id`, the user is updated only when the session belongs to
650
- * that project.
651
- * @summary Update my user information
652
- */
653
- const patchMyUser = async (patchMyUserBody, params, options) => {
654
- const getHeaders = (h) => {
655
- if (!h) return {};
656
- if (h instanceof Headers) return Object.fromEntries(h.entries());
657
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
658
- const headers = {};
659
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
660
- return headers;
661
- };
662
- return customFetch(getPatchMyUserUrl(params), {
663
- ...options,
664
- method: "PATCH",
665
- headers: {
666
- "Content-Type": "application/json",
667
- ...getHeaders(options?.headers)
668
- },
669
- body: JSON.stringify(patchMyUserBody)
670
- });
671
- };
672
- const getListMyIdentityLinksUrl = (params) => {
673
- const normalizedParams = new URLSearchParams();
674
- Object.entries(params || {}).forEach(([key, value]) => {
675
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
676
- });
677
- const stringifiedParams = normalizedParams.toString();
678
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/identity_links?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/identity_links`;
679
- };
680
- /**
681
- * Lists the identity provider accounts a sign-in linked to the signed-in user,
682
- * oldest first. The provider's subject and claims, the data it asserts about
683
- * the account, are never returned.
684
- *
685
- * With `project_id`, the links are listed only when the session belongs to
686
- * that project.
687
- * @summary List the provider accounts linked to me
688
- */
689
- const listMyIdentityLinks = async (params, options) => {
690
- return customFetch(getListMyIdentityLinksUrl(params), {
691
- ...options,
692
- method: "GET"
693
- });
694
- };
695
- const getListMyPasskeysUrl = (params) => {
696
- const normalizedParams = new URLSearchParams();
697
- Object.entries(params || {}).forEach(([key, value]) => {
698
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
699
- });
700
- const stringifiedParams = normalizedParams.toString();
701
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/passkeys?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/passkeys`;
702
- };
703
- /**
704
- * Lists the signed-in user's own passkeys, newest first, paginated with a
705
- * cursor. A passkey is a WebAuthn credential that signs a user in without a
706
- * password. Each passkey carries its ID, its name and when it was registered,
707
- * never the credential itself.
708
- *
709
- * With `project_id`, the passkeys are listed only when the session belongs to
710
- * that project.
711
- * @summary List my passkeys
712
- */
713
- const listMyPasskeys = async (params, options) => {
714
- return customFetch(getListMyPasskeysUrl(params), {
715
- ...options,
716
- method: "GET"
717
- });
718
- };
719
- const getGetMyPasswordStateUrl = (params) => {
720
- const normalizedParams = new URLSearchParams();
721
- Object.entries(params || {}).forEach(([key, value]) => {
722
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
723
- });
724
- const stringifiedParams = normalizedParams.toString();
725
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/password?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/password`;
726
- };
727
- /**
728
- * Returns when the signed-in user's current password was set, and leaves
729
- * `set_at` out when they have none. The password and its hash are never
730
- * returned.
731
- *
732
- * With `project_id`, the state is read only when the session belongs to that
733
- * project.
734
- * @summary Get my password state
735
- */
736
- const getMyPasswordState = async (params, options) => {
737
- return customFetch(getGetMyPasswordStateUrl(params), {
738
- ...options,
739
- method: "GET"
740
- });
741
- };
742
- const getListMyProjectsUrl = (params) => {
743
- const normalizedParams = new URLSearchParams();
744
- Object.entries(params || {}).forEach(([key, value]) => {
745
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
746
- });
747
- const stringifiedParams = normalizedParams.toString();
748
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/projects?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/projects`;
749
- };
750
- /**
751
- * Lists the projects the signed-in user can act on: those they hold an active
752
- * grant on, either directly or through a team they are a member of. For a
753
- * platform operator, someone who runs the deployment, that is every project of
754
- * the deployment. Ordered by project ID and paged with an opaque cursor.
755
- *
756
- * This is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one
757
- * project the calling credential is bound to. Here the session is the caller
758
- * and the grants are the answer, so the list spans projects.
759
- *
760
- * With `name_contains`, only the projects whose name contains that text are
761
- * listed. The search runs on the server together with the grants, so it
762
- * reaches every project the user can act on, however many there are, and
763
- * pages like the full list.
764
- *
765
- * With `project_id`, the projects are listed only when the session belongs to
766
- * that project. It names the project the session was signed in to, not one to
767
- * list.
768
- * @summary List the projects I can act on
769
- */
770
- const listMyProjects = async (params, options) => {
771
- return customFetch(getListMyProjectsUrl(params), {
772
- ...options,
773
- method: "GET"
774
- });
775
- };
776
- const getGetMyUserSchemaUrl = (params) => {
777
- const normalizedParams = new URLSearchParams();
778
- Object.entries(params || {}).forEach(([key, value]) => {
779
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
780
- });
781
- const stringifiedParams = normalizedParams.toString();
782
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/schema?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/schema`;
783
- };
784
- /**
785
- * Returns the schema that validates the signed-in user's own record.
786
- *
787
- * With `project_id`, the schema is returned only when the session belongs to
788
- * that project.
789
- * @summary Get my user schema
790
- */
791
- const getMyUserSchema = async (params, options) => {
792
- return customFetch(getGetMyUserSchemaUrl(params), {
793
- ...options,
794
- method: "GET"
795
- });
796
- };
797
- const getListMyTeamsUrl = (params) => {
798
- const normalizedParams = new URLSearchParams();
799
- Object.entries(params || {}).forEach(([key, value]) => {
800
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
801
- });
802
- const stringifiedParams = normalizedParams.toString();
803
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/users/me/teams?${stringifiedParams}` : `${getApiBaseUrl()}/users/me/teams`;
804
- };
805
- /**
806
- * Lists the teams the signed-in user belongs to, ordered by team name.
807
- *
808
- * With `project_id`, the teams are listed only when the session belongs to
809
- * that project.
810
- * @summary List the teams I belong to
811
- */
812
- const listMyTeams = async (params, options) => {
813
- return customFetch(getListMyTeamsUrl(params), {
814
- ...options,
815
- method: "GET"
816
- });
817
- };
818
- const getCreateFlowUrl = () => {
819
- return `${getApiBaseUrl()}/flow`;
820
- };
821
- /**
822
- * Starts a flow: resolves a flow definition from the request's purpose and
823
- * audience, and returns the first step.
824
- *
825
- * The flow endpoints are the runtime calls the login component
826
- * (`<zitadel-login>`) makes, step by step. It starts a flow here, renders the
827
- * step it gets back, and submits the user's input with `submitFlowStep` (`POST /flow/{id}/submit`) to
828
- * get the next step. This call creates a new session implicitly, unless
829
- * `session_id` is provided together with that session's `session_token`
830
- * (for step-up or reauthentication on an existing session).
831
- *
832
- * The browser `Origin` header selects which deployment serves this attempt.
833
- * The server checks the origin against the project's origin patterns and live
834
- * previews, and the deployment that origin serves is the target: the
835
- * project's newest primary deployment when it names a primary origin, or the
836
- * newest live deployment to a preview URL. A
837
- * deployment is a release, the immutable bundle of the project's
838
- * configuration, made live at an origin. The deployment's release supplies
839
- * flow definitions, user schemas and branding. The resolved deployment is
840
- * sealed into the `_zflow` cookie so later steps keep the same
841
- * configuration.
842
- *
843
- * - An origin that matches no pattern answers `403` with
844
- * `proj.origin_not_allowed`, including when the project lists no origins.
845
- * Add the origin with `zitadel origin add`.
846
- * - An origin that matches a preview pattern with no live preview answers
847
- * `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.
848
- * - Nothing deployed to a listed origin or a live preview answers `409`
849
- * with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added
850
- * since the last deploy serves nothing until the next one.
851
- * - A loopback origin the project does not list answers `409` with
852
- * `rel.not_deployed` too, as no deployment can name it. Add it with
853
- * `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.
854
- * - A revoked release answers `409` with `rel.revoked`.
855
- *
856
- * A request with no `Origin` passes the check, and so does the server's own
857
- * origin, from which its console previews a project's login. Both are served
858
- * the project's newest primary deployment unless the project lists that
859
- * origin; with no primary deployment they answer `409` with
860
- * `rel.no_default`. A loopback origin passes the check and is its own
861
- * target. A step submitted from the server's own origin is still refused
862
- * unless the project lists it.
863
- *
864
- * The response contains an `id` field, the flow handle. Use it as the path
865
- * parameter for all subsequent `/flow/{id}/submit` calls.
866
- *
867
- * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
868
- * the flow's orchestration state (current step, collected data, history).
869
- * The server is stateless between requests: all flow state lives in this
870
- * cookie. The browser sends it automatically on subsequent requests.
871
- * @summary Start a flow
872
- */
873
- const createFlow = async (createFlowBody, options) => {
874
- const getHeaders = (h) => {
875
- if (!h) return {};
876
- if (h instanceof Headers) return Object.fromEntries(h.entries());
877
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
878
- const headers = {};
879
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
880
- return headers;
881
- };
882
- return customFetch(getCreateFlowUrl(), {
883
- ...options,
884
- method: "POST",
885
- headers: {
886
- "Content-Type": "application/json",
887
- ...getHeaders(options?.headers)
888
- },
889
- body: JSON.stringify(createFlowBody)
890
- });
891
- };
892
- const getGetFlowStepUrl = (id) => {
893
- return `${getApiBaseUrl()}/flow/${encodeURIComponent(String(id))}`;
894
- };
895
- /**
896
- * Returns the current step of a flow without advancing it. Use it to render
897
- * the step again after a page reload or a network error.
898
- *
899
- * The flow endpoints are the runtime calls the login component
900
- * (`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flow`) starts a flow, and
901
- * `submitFlowStep` (`POST /flow/{id}/submit`) advances it.
902
- *
903
- * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
904
- * re-resolve from `Origin`. If that release was revoked since the attempt
905
- * started, the response is `409` with `rel.revoked`.
906
- * @summary Get the current step of a flow
907
- */
908
- const getFlowStep = async (id, options) => {
909
- return customFetch(getGetFlowStepUrl(id), {
910
- ...options,
911
- method: "GET"
912
- });
913
- };
914
- const getSubmitFlowStepUrl = (id) => {
915
- return `${getApiBaseUrl()}/flow/${encodeURIComponent(String(id))}/submit`;
916
- };
917
- /**
918
- * Submits the user's input for the current step of a flow. The server
919
- * validates it, processes it (for example, verifies a credential), advances
920
- * the flow through any invisible steps, and returns the next visible step.
921
- * The flow endpoints are the runtime calls the login component
922
- * (`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flow`) starts a flow.
923
- *
924
- * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
925
- * with the new flow state. The server is stateless: all orchestration
926
- * state is carried in this cookie between requests.
927
- *
928
- * **Important:** The `id` in the response may differ from the `id` used in
929
- * the request. This happens when a flow pivots (pushes a new flow onto the
930
- * stack) or when a stacked flow completes (auto-pops to the parent flow).
931
- * Always use the `id` from the latest response for the next request.
932
- *
933
- * ## Flow completion
934
- *
935
- * When `step.type` is `complete`, the flow is terminal. The `step.behavior`
936
- * field tells the frontend what to do:
937
- *
938
- * | `behavior` | Action |
939
- * |------------- |------------------------------------------------------------|
940
- * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
941
- * | `show` | Render the step as a success screen, such as registration. |
942
- *
943
- * A `complete` step is only returned when the **entire flow stack** is done.
944
- * If a stacked flow (for example, recovery pivoted from login) finishes, the
945
- * server auto-pops to the parent flow and returns the parent's next step.
946
- * The frontend never sees a `complete` for intermediate flows.
947
- *
948
- * ## External sign-in
949
- *
950
- * `{action: "sso", sso_provider_id, return_target}` on a step that offers
951
- * `sso_providers` returns the server-emitted `sso-redirect` step, whose
952
- * `redirect_url` the frontend navigates to.
953
- *
954
- * - The flow state does not change, but `_zflow` is re-sealed like on
955
- * every response, so its ten-minute window restarts at this submission;
956
- * the external sign-in and the return must complete within it.
957
- * - A second `Set-Cookie` line carries the browser-binding cookie the
958
- * callback checks: `HttpOnly`, `Path=/`, `SameSite=Lax`.
959
- * - On every host except http loopback it is `__Host-_zsso` with `Secure`.
960
- * - When the request host is http loopback (local development, where
961
- * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
962
- * `__Host-` prefix is dropped because it requires `Secure`.
963
- *
964
- * An identity provider (an external sign-in such as Google) whose
965
- * `client_id` is a `${{ NAME }}` reference has it filled from the project's
966
- * variables. A provider the server cannot start a sign-in with, including a
967
- * reference with no variable behind it, re-renders the step with
968
- * `error.sso_unavailable`.
969
- *
970
- * Reuses the deployment sealed into `_zflow` at `createFlow`; it does not
971
- * re-resolve from `Origin`. If that release was revoked since the attempt
972
- * started, the response is `409` with `rel.revoked`.
973
- * @summary Submit a flow step
974
- */
975
- const submitFlowStep = async (id, submitFlowStepBody, options) => {
976
- const getHeaders = (h) => {
977
- if (!h) return {};
978
- if (h instanceof Headers) return Object.fromEntries(h.entries());
979
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
980
- const headers = {};
981
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
982
- return headers;
983
- };
984
- return customFetch(getSubmitFlowStepUrl(id), {
985
- ...options,
986
- method: "POST",
987
- headers: {
988
- "Content-Type": "application/json",
989
- ...getHeaders(options?.headers)
990
- },
991
- body: JSON.stringify(submitFlowStepBody)
992
- });
993
- };
994
- const getCreateAuthAttemptUrl = () => {
995
- return `${getApiBaseUrl()}/auth_attempts`;
996
- };
997
- /**
998
- * Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.
999
- *
1000
- * An authentication attempt collects the proofs for one sign-in and ends in a
1001
- * handoff token. A handoff token is the short-lived, single-use credential that
1002
- * a completed attempt hands to the session exchange. A client makes these calls
1003
- * in order:
1004
- *
1005
- * 1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.
1006
- * 2. `issueChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as
1007
- * `identifier`, `password` or `passkey`.
1008
- * 3. `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the
1009
- * credential, code or assertion. Repeat steps 2 and 3 until
1010
- * `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in
1011
- * `required_factors` is verified.
1012
- * 4. `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.
1013
- * 5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token
1014
- * for the session and its `session_token`.
1015
- *
1016
- * The body takes a `project_id` and a `challenge_nonce` (from
1017
- * `POST /bootstrap/challenge`). For step-up authentication, which adds factors
1018
- * to an existing session, also send that session's `session_id` and its
1019
- * `session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.
1020
- * The attempt's `attempt_id` in the response is the ID every later call takes.
1021
- *
1022
- * The project comes from the project secret. A body `project_id` that names
1023
- * another project answers `403` with `proj.mismatch`: send the credential's own
1024
- * project. The attempt seals the project's newest primary deployment, whatever
1025
- * the caller's `Origin`. With none it answers `409` with `rel.no_default`, and a
1026
- * revoked release answers `409` with `rel.revoked`.
1027
- * @summary Create an authentication attempt
1028
- */
1029
- const createAuthAttempt = async (createAuthAttemptBody, options) => {
1030
- const getHeaders = (h) => {
1031
- if (!h) return {};
1032
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1033
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1034
- const headers = {};
1035
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1036
- return headers;
1037
- };
1038
- return customFetch(getCreateAuthAttemptUrl(), {
1039
- ...options,
1040
- method: "POST",
1041
- headers: {
1042
- "Content-Type": "application/json",
1043
- ...getHeaders(options?.headers)
1044
- },
1045
- body: JSON.stringify(createAuthAttemptBody)
1046
- });
1047
- };
1048
- const getGetAuthAttemptUrl = (attemptId) => {
1049
- return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}`;
1050
- };
1051
- /**
1052
- * Returns the current state of an authentication attempt, one sign-in round.
1053
- *
1054
- * The response holds the attempt's state, available factors for the next
1055
- * challenge, challenges issued so far, and any errors preventing progress.
1056
- *
1057
- * Use it to poll during long-running factor verifications, for example waiting
1058
- * for a federated identity provider (IdP) callback or a device flow.
1059
- * @summary Get an authentication attempt by ID
1060
- */
1061
- const getAuthAttempt = async (attemptId, options) => {
1062
- return customFetch(getGetAuthAttemptUrl(attemptId), {
1063
- ...options,
1064
- method: "GET"
1065
- });
1066
- };
1067
- const getIssueChallengeUrl = (attemptId) => {
1068
- return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges`;
1069
- };
1070
- /**
1071
- * Issues a challenge, a request to prove one factor, within an authentication attempt.
1072
- *
1073
- * A challenge names one factor method, such as password, passkey, TOTP or OTP
1074
- * via SMS. The response carries the challenge's `challenge_id`, method,
1075
- * metadata and any UI hints. The client then submits the proof with
1076
- * `verifyChallengeProof` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.
1077
- * @summary Issue a factor challenge
1078
- */
1079
- const issueChallenge = async (attemptId, issueChallengeBody, options) => {
1080
- const getHeaders = (h) => {
1081
- if (!h) return {};
1082
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1083
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1084
- const headers = {};
1085
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1086
- return headers;
1087
- };
1088
- return customFetch(getIssueChallengeUrl(attemptId), {
1089
- ...options,
1090
- method: "POST",
1091
- headers: {
1092
- "Content-Type": "application/json",
1093
- ...getHeaders(options?.headers)
1094
- },
1095
- body: JSON.stringify(issueChallengeBody)
1096
- });
1097
- };
1098
- const getVerifyChallengeProofUrl = (attemptId, challengeId) => {
1099
- return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges/${encodeURIComponent(String(challengeId))}/verify`;
1100
- };
1101
- /**
1102
- * Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.
1103
- *
1104
- * The proof format depends on the challenge method. For example:
1105
- *
1106
- * - `password` method: { password: "…" }
1107
- * - `totp` method: { totp: { code: "123456" } }
1108
- * - `passkey` method: { passkey: { assertion: "…" } }
1109
- * - `recovery_code` method: { recovery_code: "…" }
1110
- *
1111
- * On success, the factor is recorded on the authentication attempt. The
1112
- * attempt moves to the next pending challenge, or completes when every required
1113
- * factor is verified. Then call `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).
1114
- *
1115
- * A `409` with `att.proof_rejected` means the proof was wrong. Check it and try
1116
- * again. There is no retry limit: you can retry until the attempt expires.
1117
- * @summary Verify a challenge proof
1118
- */
1119
- const verifyChallengeProof = async (attemptId, challengeId, verifyChallengeProofBody, options) => {
1120
- const getHeaders = (h) => {
1121
- if (!h) return {};
1122
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1123
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1124
- const headers = {};
1125
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1126
- return headers;
1127
- };
1128
- return customFetch(getVerifyChallengeProofUrl(attemptId, challengeId), {
1129
- ...options,
1130
- method: "POST",
1131
- headers: {
1132
- "Content-Type": "application/json",
1133
- ...getHeaders(options?.headers)
1134
- },
1135
- body: JSON.stringify(verifyChallengeProofBody)
1136
- });
1137
- };
1138
- const getCreateHandoffUrl = (attemptId) => {
1139
- return `${getApiBaseUrl()}/auth_attempts/${encodeURIComponent(String(attemptId))}/handoff`;
1140
- };
1141
- /**
1142
- * Completes an authentication attempt and mints a `handoff_token`.
1143
- *
1144
- * A handoff token is the short-lived credential that a completed attempt hands
1145
- * to the session exchange. Call this after every required factor is verified and
1146
- * the attempt is in `completed` state. Otherwise it answers `409` with
1147
- * `att.not_completed`: verify the remaining factors, then call again.
1148
- *
1149
- * Exchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60
1150
- * seconds to receive the session and its `session_token`. The handoff token is:
1151
- *
1152
- * - Single-use: exchange it once, with no retry.
1153
- * - Bound to the project: the exchange needs the same project's credential.
1154
- * - Created once: a second call answers `409 att.already_handed_off`, even
1155
- * with the same idempotency key.
1156
- *
1157
- * A revoked release is refused when the handoff is exchanged, not here. A
1158
- * release is the configuration that `zitadel deploy` publishes.
1159
- * @summary Complete an authentication attempt and create a handoff token
1160
- */
1161
- const createHandoff = async (attemptId, options) => {
1162
- return customFetch(getCreateHandoffUrl(attemptId), {
1163
- ...options,
1164
- method: "POST"
1165
- });
1166
- };
1167
- const getCreateProjectUrl = () => {
1168
- return `${getApiBaseUrl()}/projects`;
1169
- };
1170
- /**
1171
- * Creates a project and returns its project secret and preview secret, which no
1172
- * other endpoint returns.
1173
- *
1174
- * A project is the top-level boundary that holds users, sessions and
1175
- * configuration. It has no owning team until someone claims it; see `initClaim` (`POST /projects/{project_id}/claim/init`).
1176
- *
1177
- * The request needs no credential and is rate-limited. On `429`, wait and retry.
1178
- * Unless `seed_defaults` is `false`, the project starts with a default user schema
1179
- * and flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.
1180
- * @summary Create a project
1181
- */
1182
- const createProject = async (createProjectBody, options) => {
1183
- const getHeaders = (h) => {
1184
- if (!h) return {};
1185
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1186
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1187
- const headers = {};
1188
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1189
- return headers;
1190
- };
1191
- return customFetch(getCreateProjectUrl(), {
1192
- ...options,
1193
- method: "POST",
1194
- headers: {
1195
- "Content-Type": "application/json",
1196
- ...getHeaders(options?.headers)
1197
- },
1198
- body: JSON.stringify(createProjectBody)
1199
- });
1200
- };
1201
- const getQueryProjectsUrl = () => {
1202
- return `${getApiBaseUrl()}/projects/query`;
1203
- };
1204
- /**
1205
- * Returns the project the project secret belongs to, as a page of at most one
1206
- * project.
1207
- *
1208
- * A credential is scoped to one project today, so the filters and sorting
1209
- * apply to that project alone. A signed-in person lists the projects they can
1210
- * act on with `GET /users/me/projects`.
1211
- * @summary Query projects
1212
- */
1213
- const queryProjects = async (queryProjectsBody, options) => {
1214
- const getHeaders = (h) => {
1215
- if (!h) return {};
1216
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1217
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1218
- const headers = {};
1219
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1220
- return headers;
1221
- };
1222
- return customFetch(getQueryProjectsUrl(), {
1223
- ...options,
1224
- method: "POST",
1225
- headers: {
1226
- "Content-Type": "application/json",
1227
- ...getHeaders(options?.headers)
1228
- },
1229
- body: JSON.stringify(queryProjectsBody)
1230
- });
1231
- };
1232
- const getGetProjectUrl = (projectId) => {
1233
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}`;
1234
- };
1235
- /**
1236
- * Returns a project's current state: its name, origins, password hashing
1237
- * method and owning team.
1238
- *
1239
- * Authenticate with the project secret, or with the session of a signed-in
1240
- * person who holds a grant on the project.
1241
- * @summary Get a project by ID
1242
- */
1243
- const getProject = async (projectId, options) => {
1244
- return customFetch(getGetProjectUrl(projectId), {
1245
- ...options,
1246
- method: "GET"
1247
- });
1248
- };
1249
- const getPatchProjectUrl = (projectId) => {
1250
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}`;
1251
- };
1252
- /**
1253
- * Updates a project's name or password hashing method.
1254
- *
1255
- * Fields you leave out keep their value. Sending `password_hash: null` drops
1256
- * the project's own method and returns to the server default. A change of
1257
- * method rewrites no stored password: each moves to the new method when its
1258
- * owner next signs in or sets a new password.
1259
- *
1260
- * Authenticate with the project secret, or with the session of a signed-in
1261
- * person who can act on the project.
1262
- * @summary Update a project
1263
- */
1264
- const patchProject = async (projectId, patchProjectBody, options) => {
1265
- const getHeaders = (h) => {
1266
- if (!h) return {};
1267
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1268
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1269
- const headers = {};
1270
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1271
- return headers;
1272
- };
1273
- return customFetch(getPatchProjectUrl(projectId), {
1274
- ...options,
1275
- method: "PATCH",
1276
- headers: {
1277
- "Content-Type": "application/json",
1278
- ...getHeaders(options?.headers)
1279
- },
1280
- body: JSON.stringify(patchProjectBody)
1281
- });
1282
- };
1283
- const getListProjectAdminsUrl = (projectId, params) => {
1284
- const normalizedParams = new URLSearchParams();
1285
- Object.entries(params || {}).forEach(([key, value]) => {
1286
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1287
- });
1288
- const stringifiedParams = normalizedParams.toString();
1289
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/admins?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/admins`;
1290
- };
1291
- /**
1292
- * Lists the people who can administer a project, and how each of them
1293
- * holds that access.
1294
- *
1295
- * A person appears once, with one entry in `sources` per way they hold it:
1296
- *
1297
- * - `owning_team`: an active member of the team that owns the project, the
1298
- * team a claim attaches the project to. Removing a grant does not remove
1299
- * this access. It ends only when the person leaves the team or the
1300
- * project changes owner.
1301
- * - `grant`: an unexpired `admin` grant on the project, which is a role
1302
- * given to the person (`grant_id` only) or to a team they are an active
1303
- * member of (`grant_id` and `team`). Revoking that grant removes this
1304
- * source.
1305
- *
1306
- * The list follows the authorization check. A person who left a team, or
1307
- * whose team or user was deactivated, is not listed through it. Grants that
1308
- * expired or carry a lower role are left out. A person whose only access is a
1309
- * `viewer` or `editor` grant is not an admin and is not listed. Like the
1310
- * check, the list does not look at a person's user status beyond that, so a
1311
- * direct grant to a suspended person is listed.
1312
- *
1313
- * A person whose access comes only through teams the caller is not a
1314
- * member of is left out. A team the caller is not in is named by `team_id`
1315
- * only. The grant to such a team still shows in the project's grants.
1316
- *
1317
- * The list is ordered by `user_id` and paginated with `page_token`.
1318
- * Authenticate with a project secret (`oauth2`), or with the session cookie
1319
- * (`sessionCookie`) of a signed-in person who can read the project.
1320
- * @summary List the admins of a project
1321
- */
1322
- const listProjectAdmins = async (projectId, params, options) => {
1323
- return customFetch(getListProjectAdminsUrl(projectId, params), {
1324
- ...options,
1325
- method: "GET"
1326
- });
1327
- };
1328
- const getInitClaimUrl = (projectId) => {
1329
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/init`;
1330
- };
1331
- /**
1332
- * Starts a claim, which attaches a project created before sign-in to a
1333
- * team, and returns the `claim_url` to open in a browser.
1334
- *
1335
- * A claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)
1336
- * so that the team's members administer it. This operation mints a
1337
- * single-use, short-lived challenge for an unclaimed project. The developer
1338
- * opens `claim_url`, signs in and completes the claim in the browser; see
1339
- * `completeClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,
1340
- * as `zitadel claim` does. The response's `expires_at` carries the exact expiry.
1341
- *
1342
- * Authenticate with the project secret that `createProject` (`POST /projects`) returns as
1343
- * `project_secret`.
1344
- *
1345
- * A `409` means a team already claimed the project, and its details name
1346
- * that team. A `410` means the project's 14-day claim window has closed,
1347
- * which is final.
1348
- * @summary Initialize a project claim
1349
- */
1350
- const initClaim = async (projectId, options) => {
1351
- return customFetch(getInitClaimUrl(projectId), {
1352
- ...options,
1353
- method: "POST"
1354
- });
1355
- };
1356
- const getGetClaimStatusUrl = (projectId, params) => {
1357
- const normalizedParams = new URLSearchParams();
1358
- Object.entries(params || {}).forEach(([key, value]) => {
1359
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1360
- });
1361
- const stringifiedParams = normalizedParams.toString();
1362
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/status?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/status`;
1363
- };
1364
- /**
1365
- * Returns the status of a claim challenge, `pending` or `completed`, while a
1366
- * browser completes the claim.
1367
- *
1368
- * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).
1369
- * `zitadel claim` polls this operation after `initClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.
1370
- * Once the project is claimed, the response is `completed` with the owning
1371
- * team, the claim timestamp and the dashboard URL.
1372
- *
1373
- * The claim itself, not the polled challenge, decides the status. A project
1374
- * claimed through another concurrent challenge also reports `completed`. A
1375
- * completed claim keeps reporting `completed` past this challenge's expiry
1376
- * and past the project's claim window.
1377
- *
1378
- * Pass the `challenge_id` that `initClaim` returns. Authenticate with the
1379
- * project secret that started the challenge. On `410` with `proj.claim_expired`, call
1380
- * `initClaim` again for a fresh challenge.
1381
- * @summary Get the status of a project claim
1382
- */
1383
- const getClaimStatus = async (projectId, params, options) => {
1384
- return customFetch(getGetClaimStatusUrl(projectId, params), {
1385
- ...options,
1386
- method: "GET"
1387
- });
1388
- };
1389
- const getCompleteClaimUrl = (projectId) => {
1390
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/complete`;
1391
- };
1392
- /**
1393
- * Completes a claim by attaching the project to the signed-in developer's
1394
- * personal team.
1395
- *
1396
- * A [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),
1397
- * so that the team's members administer it. The claim page in the browser
1398
- * calls this operation after the developer signs in, with the session cookie.
1399
- * The `challenge_id` from the claim URL that `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the
1400
- * request's single-use, browser-safe authorization.
1401
- *
1402
- * Claims are first-claim-wins and spend the challenge. If a team already
1403
- * claimed the project, the request answers `409`. If the challenge lapsed
1404
- * (`410` with `proj.claim_expired`), call `initClaim` again for a fresh one.
1405
- * @summary Complete a project claim
1406
- */
1407
- const completeClaim = async (projectId, completeClaimBody, options) => {
1408
- const getHeaders = (h) => {
1409
- if (!h) return {};
1410
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1411
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1412
- const headers = {};
1413
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1414
- return headers;
1415
- };
1416
- return customFetch(getCompleteClaimUrl(projectId), {
1417
- ...options,
1418
- method: "POST",
1419
- headers: {
1420
- "Content-Type": "application/json",
1421
- ...getHeaders(options?.headers)
1422
- },
1423
- body: JSON.stringify(completeClaimBody)
1424
- });
1425
- };
1426
- const getGetClaimWindowUrl = (projectId, params) => {
1427
- const normalizedParams = new URLSearchParams();
1428
- Object.entries(params || {}).forEach(([key, value]) => {
1429
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1430
- });
1431
- const stringifiedParams = normalizedParams.toString();
1432
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/window?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/window`;
1433
- };
1434
- /**
1435
- * Returns when a project's claim window closes and whether it has already
1436
- * closed.
1437
- *
1438
- * The claim window is the 14 days after a project is created during which a
1439
- * team can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page
1440
- * in the browser calls this operation to show how long is left.
1441
- *
1442
- * The request needs no credential, because the claim page calls it before the
1443
- * developer has signed in. Holding the `challenge_id` from the claim URL that
1444
- * `initClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeClaim` (`POST /projects/{project_id}/claim/complete`)
1445
- * accepts. The response reveals only the window, never the project itself.
1446
- * Unlike `completeClaim` it spends nothing, so reloading the page is safe.
1447
- * @summary Get the claim window for a project
1448
- */
1449
- const getClaimWindow = async (projectId, params, options) => {
1450
- return customFetch(getGetClaimWindowUrl(projectId, params), {
1451
- ...options,
1452
- method: "GET"
1453
- });
1454
- };
1455
- const getAddOriginUrl = (projectId) => {
1456
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/origins`;
1457
- };
1458
- /**
1459
- * Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.
1460
- *
1461
- * An origin pattern says which web origins the project accepts. A `primary`
1462
- * pattern must be an exact URL with no wildcard. A `preview` pattern may
1463
- * include a single DNS-label wildcard.
1464
- *
1465
- * While the project has no patterns, it admits no origin except a loopback
1466
- * origin, so the first pattern you add opens it to the origins that
1467
- * pattern matches. Admitting an origin is not serving it: a new `primary`
1468
- * origin answers `rel.not_deployed` until the next deploy to primary
1469
- * (`zitadel deploy`).
1470
- *
1471
- * Adding a pattern that already exists with the same kind is idempotent and
1472
- * answers `201` with the stored origin. If the pattern exists with the other
1473
- * kind, the request is refused with `origin.kind_conflict`: remove it with
1474
- * `removeOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.
1475
- * @summary Add an origin pattern
1476
- */
1477
- const addOrigin = async (projectId, addOriginBody, options) => {
1478
- const getHeaders = (h) => {
1479
- if (!h) return {};
1480
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1481
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1482
- const headers = {};
1483
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1484
- return headers;
1485
- };
1486
- return customFetch(getAddOriginUrl(projectId), {
1487
- ...options,
1488
- method: "POST",
1489
- headers: {
1490
- "Content-Type": "application/json",
1491
- ...getHeaders(options?.headers)
1492
- },
1493
- body: JSON.stringify(addOriginBody)
1494
- });
1495
- };
1496
- const getRemoveOriginUrl = (projectId) => {
1497
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/origins/remove`;
1498
- };
1499
- /**
1500
- * Removes one origin pattern from the project's origins.
1501
- *
1502
- * Requests from URLs only that pattern admitted are refused from then on.
1503
- * Live previews and deployment history are untouched. Removing the last
1504
- * pattern leaves an empty list, which admits no origin except a loopback
1505
- * origin.
1506
- * Removing a pattern that is already absent is idempotent and answers `204`.
1507
- *
1508
- * The body's `pattern` is a pattern `addOrigin` (`POST /projects/{project_id}/origins`) stored.
1509
- * @summary Remove an origin pattern
1510
- */
1511
- const removeOrigin = async (projectId, removeOriginBody, options) => {
1512
- const getHeaders = (h) => {
1513
- if (!h) return {};
1514
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1515
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1516
- const headers = {};
1517
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1518
- return headers;
1519
- };
1520
- return customFetch(getRemoveOriginUrl(projectId), {
1521
- ...options,
1522
- method: "POST",
1523
- headers: {
1524
- "Content-Type": "application/json",
1525
- ...getHeaders(options?.headers)
1526
- },
1527
- body: JSON.stringify(removeOriginBody)
1528
- });
1529
- };
1530
- const getListPreviewsUrl = (projectId, params) => {
1531
- const normalizedParams = new URLSearchParams();
1532
- Object.entries(params || {}).forEach(([key, value]) => {
1533
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1534
- });
1535
- const stringifiedParams = normalizedParams.toString();
1536
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews`;
1537
- };
1538
- /**
1539
- * Lists the project's live previews, newest first by `created_at`.
1540
- *
1541
- * A preview is a URL with a deployment on it, served until it expires.
1542
- * An expired or removed preview is not listed. What was deployed to it stays
1543
- * in `GET /deployments`.
1544
- * @summary List a project's previews
1545
- */
1546
- const listPreviews = async (projectId, params, options) => {
1547
- return customFetch(getListPreviewsUrl(projectId, params), {
1548
- ...options,
1549
- method: "GET"
1550
- });
1551
- };
1552
- const getRemovePreviewUrl = (projectId) => {
1553
- return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/previews/remove`;
1554
- };
1555
- /**
1556
- * Ends a preview before it expires: the URL stops being served at once.
1557
- *
1558
- * The deployments to it stay in the history. The call is idempotent.
1559
- * A URL with no live preview answers `204` too. That includes one that
1560
- * expired or was removed before, so a cleanup that races the expiry still
1561
- * succeeds.
1562
- *
1563
- * The URL travels in the body rather than the path because an origin
1564
- * contains `/`. Take it from `listPreviews` (`GET /projects/{project_id}/previews`).
1565
- * @summary Remove a preview
1566
- */
1567
- const removePreview = async (projectId, removePreviewBody, options) => {
1568
- const getHeaders = (h) => {
1569
- if (!h) return {};
1570
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1571
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1572
- const headers = {};
1573
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1574
- return headers;
1575
- };
1576
- return customFetch(getRemovePreviewUrl(projectId), {
1577
- ...options,
1578
- method: "POST",
1579
- headers: {
1580
- "Content-Type": "application/json",
1581
- ...getHeaders(options?.headers)
1582
- },
1583
- body: JSON.stringify(removePreviewBody)
1584
- });
1585
- };
1586
- const getCreateSessionUrl = () => {
1587
- return `${getApiBaseUrl()}/sessions`;
1588
- };
1589
- /**
1590
- * Creates an anonymous session with no user and no factors (`state: building`).
1591
- *
1592
- * A session is the durable record of a signed-in user. This call is optional: an
1593
- * authentication attempt creates a session implicitly if none is provided.
1594
- * Create one explicitly when you want to:
1595
- *
1596
- * - Pre-allocate a `session_id` before the user is known, so device and telemetry signals
1597
- * can be correlated with the eventual authenticated session from the start.
1598
- * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
1599
- *
1600
- * Creating a session runs on the project credential (`session.write`). The returned
1601
- * `session_token` is a session credential for the end-user client, not a
1602
- * management scope. It is delivered as the `__Host-zitadel_session` cookie
1603
- * (`zitadel_session` over plain http to a loopback host) and authorises the
1604
- * self-service operations `GET /sessions/me` and `DELETE /sessions/me`
1605
- * (`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`
1606
- * and `DELETE /sessions/{session_id}` are operator endpoints and require
1607
- * `session.read` / `session.delete` instead.
1608
- *
1609
- * The `session_token` is superseded when a handoff exchange completes. Clients
1610
- * must replace it at that point.
1611
- *
1612
- * Anonymous sessions expire after 10 minutes. The lifetime resets to the
1613
- * configured full session lifetime when a completing authentication attempt
1614
- * writes the first authentication factor.
1615
- * @summary Create an anonymous session
1616
- */
1617
- const createSession = async (createSessionBody, options) => {
1618
- const getHeaders = (h) => {
1619
- if (!h) return {};
1620
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1621
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1622
- const headers = {};
1623
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1624
- return headers;
1625
- };
1626
- return customFetch(getCreateSessionUrl(), {
1627
- ...options,
1628
- method: "POST",
1629
- headers: {
1630
- "Content-Type": "application/json",
1631
- ...getHeaders(options?.headers)
1632
- },
1633
- body: JSON.stringify(createSessionBody)
1634
- });
1635
- };
1636
- const getQuerySessionsUrl = (params) => {
1637
- const normalizedParams = new URLSearchParams();
1638
- Object.entries(params || {}).forEach(([key, value]) => {
1639
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1640
- });
1641
- const stringifiedParams = normalizedParams.toString();
1642
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/query?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/query`;
1643
- };
1644
- /**
1645
- * Returns a page of a project's sessions.
1646
- *
1647
- * Sessions of every lifecycle state are returned; each carries its `state`.
1648
- * Requires the `session.read` scope.
1649
- * @summary Query sessions
1650
- */
1651
- const querySessions = async (querySessionsBody, params, options) => {
1652
- const getHeaders = (h) => {
1653
- if (!h) return {};
1654
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1655
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1656
- const headers = {};
1657
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1658
- return headers;
1659
- };
1660
- return customFetch(getQuerySessionsUrl(params), {
1661
- ...options,
1662
- method: "POST",
1663
- headers: {
1664
- "Content-Type": "application/json",
1665
- ...getHeaders(options?.headers)
1666
- },
1667
- body: JSON.stringify(querySessionsBody)
1668
- });
1669
- };
1670
- const getExchangeHandoffUrl = (params) => {
1671
- const normalizedParams = new URLSearchParams();
1672
- Object.entries(params || {}).forEach(([key, value]) => {
1673
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1674
- });
1675
- const stringifiedParams = normalizedParams.toString();
1676
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/exchange?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/exchange`;
1677
- };
1678
- /**
1679
- * Exchanges a handoff token for a session and a `session_token`.
1680
- *
1681
- * A handoff token is the short-lived, single-use credential that
1682
- * `createHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is
1683
- * complete. This call consumes it. It is the last step of the sign-in sequence:
1684
- * create the attempt, issue a challenge, verify the proof, create the handoff,
1685
- * exchange it.
1686
- *
1687
- * The server resolves the originating authentication attempt from the token and then:
1688
- *
1689
- * | Originating authentication attempt | Outcome |
1690
- * |---|---|
1691
- * | No `session_id` | A new authenticated session is **created**. |
1692
- * | `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |
1693
- * | `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |
1694
- *
1695
- * The response shape is identical in all three cases.
1696
- *
1697
- * The `session_token` supersedes any previously issued `session_token` for the
1698
- * same session. Clients must replace their stored token at this point.
1699
- *
1700
- * Requires a project service key (OAuth2 client credentials). The project comes
1701
- * from the project secret. A query `project_id` that disagrees answers `403`
1702
- * with `proj.mismatch`.
1703
- *
1704
- * The exchange resolves a deployment the same way as other runtime operations.
1705
- * A deployment makes a release live, and a release is the configuration that
1706
- * `zitadel deploy` publishes. With no browser `Origin` and
1707
- * nothing deployed to the resolved target, the response is `409` with
1708
- * `rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release
1709
- * answers `409` with `rel.revoked`.
1710
- * @summary Exchange a handoff token for a session
1711
- */
1712
- const exchangeHandoff = async (exchangeHandoffBody, params, options) => {
1713
- const getHeaders = (h) => {
1714
- if (!h) return {};
1715
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1716
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1717
- const headers = {};
1718
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1719
- return headers;
1720
- };
1721
- return customFetch(getExchangeHandoffUrl(params), {
1722
- ...options,
1723
- method: "POST",
1724
- headers: {
1725
- "Content-Type": "application/json",
1726
- ...getHeaders(options?.headers)
1727
- },
1728
- body: JSON.stringify(exchangeHandoffBody)
1729
- });
1730
- };
1731
- const getGetSessionUrl = (sessionId) => {
1732
- return `${getApiBaseUrl()}/sessions/${encodeURIComponent(String(sessionId))}`;
1733
- };
1734
- /**
1735
- * Returns the current state of a session, including its factors and all currently satisfied assurance levels.
1736
- *
1737
- * An assurance level is a profile, such as `urn:nist:aal:2`, that the
1738
- * session's verified factors satisfy. `assurance_levels[]` may shrink over time
1739
- * as factor freshness windows expire, without the session itself expiring.
1740
- * To restore a dropped level, use step-up authentication: create an
1741
- * authentication attempt with the same `session_id`.
1742
- * @summary Get a session by ID
1743
- */
1744
- const getSession = async (sessionId, options) => {
1745
- return customFetch(getGetSessionUrl(sessionId), {
1746
- ...options,
1747
- method: "GET"
1748
- });
1749
- };
1750
- const getRevokeSessionUrl = (sessionId) => {
1751
- return `${getApiBaseUrl()}/sessions/${encodeURIComponent(String(sessionId))}`;
1752
- };
1753
- /**
1754
- * Revokes a session by deleting it, immediately and for good. A later
1755
- * `getSession` (`GET /sessions/{session_id}`) for it answers `404`.
1756
- *
1757
- * This is the operator revoke path. It requires the `session.delete` scope on a
1758
- * project-bound credential. End-user sign-out with the session cookie is
1759
- * `DELETE /sessions/me` (`sessionCookie` scheme).
1760
- *
1761
- * Idempotent: revoking a session that does not exist, or was already revoked,
1762
- * still returns `204`. After revocation, any tokens derived from the session are
1763
- * invalidated.
1764
- * @summary Revoke a session
1765
- */
1766
- const revokeSession = async (sessionId, options) => {
1767
- return customFetch(getRevokeSessionUrl(sessionId), {
1768
- ...options,
1769
- method: "DELETE"
1770
- });
1771
- };
1772
- const getGetMySessionUrl = (params) => {
1773
- const normalizedParams = new URLSearchParams();
1774
- Object.entries(params || {}).forEach(([key, value]) => {
1775
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1776
- });
1777
- const stringifiedParams = normalizedParams.toString();
1778
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me`;
1779
- };
1780
- /**
1781
- * Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.
1782
- *
1783
- * With `project_id`, the session is returned only when it belongs to that project.
1784
- *
1785
- * An assurance level is a profile, such as `urn:nist:aal:2`, that the
1786
- * session's verified factors satisfy. `assurance_levels[]` may shrink over time
1787
- * as factor freshness windows expire, without the session itself expiring.
1788
- * To restore a dropped level, use step-up authentication: create an
1789
- * authentication attempt with the same `session_id`.
1790
- * @summary Get my session
1791
- */
1792
- const getMySession = async (params, options) => {
1793
- return customFetch(getGetMySessionUrl(params), {
1794
- ...options,
1795
- method: "GET"
1796
- });
1797
- };
1798
- const getRevokeMySessionUrl = (params) => {
1799
- const normalizedParams = new URLSearchParams();
1800
- Object.entries(params || {}).forEach(([key, value]) => {
1801
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1802
- });
1803
- const stringifiedParams = normalizedParams.toString();
1804
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me`;
1805
- };
1806
- /**
1807
- * Revokes the caller's own session by deleting it, which signs the user out.
1808
- *
1809
- * The request needs the session cookie issued at creation (or superseded by a
1810
- * handoff exchange). It also needs the session's CSRF token from
1811
- * `GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,
1812
- * this still returns `204`. Any tokens derived from the session are
1813
- * invalidated, and the response clears the cookie.
1814
- *
1815
- * With `project_id`, only a session of that project is revoked. A session of
1816
- * another project is left alone, and so is its cookie.
1817
- * @summary Revoke my session
1818
- */
1819
- const revokeMySession = async (params, options) => {
1820
- return customFetch(getRevokeMySessionUrl(params), {
1821
- ...options,
1822
- method: "DELETE"
1823
- });
1824
- };
1825
- const getGetMySessionCsrfTokenUrl = (params) => {
1826
- const normalizedParams = new URLSearchParams();
1827
- Object.entries(params || {}).forEach(([key, value]) => {
1828
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1829
- });
1830
- const stringifiedParams = normalizedParams.toString();
1831
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/sessions/me/csrf?${stringifiedParams}` : `${getApiBaseUrl()}/sessions/me/csrf`;
1832
- };
1833
- /**
1834
- * Returns the session-bound token that protects against cross-site request
1835
- * forgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the
1836
- * state-changing requests that the session cookie authenticates and that
1837
- * require it; see the `sessionCookie` scheme. It authorizes nothing on its
1838
- * own: the HttpOnly cookie is still the credential, and a cross-site page
1839
- * cannot read this response. It stays the same for the life of the session,
1840
- * so a client fetches it once per session.
1841
- *
1842
- * With `project_id`, the token is returned only when the session belongs to
1843
- * that project.
1844
- * @summary Get my session's CSRF token
1845
- */
1846
- const getMySessionCsrfToken = async (params, options) => {
1847
- return customFetch(getGetMySessionCsrfTokenUrl(params), {
1848
- ...options,
1849
- method: "GET"
1850
- });
1851
- };
1852
- const getCreateSchemaUrl = (params) => {
1853
- const normalizedParams = new URLSearchParams();
1854
- Object.entries(params || {}).forEach(([key, value]) => {
1855
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1856
- });
1857
- const stringifiedParams = normalizedParams.toString();
1858
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas?${stringifiedParams}` : `${getApiBaseUrl()}/schemas`;
1859
- };
1860
- /**
1861
- * Creates a user schema, the JSON Schema that says which attributes a user
1862
- * has and which attribute identifies the user.
1863
- *
1864
- * The request is either a user schema (`kind: user-schema`) or a schema URL
1865
- * (`kind: schema-url`) that the server resolves. The response's `id` is what
1866
- * `createUser` (`POST /users`) takes as `schema`.
1867
- *
1868
- * The optional `$id` is the JSON Schema document URI that identifies the
1869
- * schema in later requests. It is a stable identity for GitOps, not a
1870
- * free-form resource key. When `$id` is omitted, the server generates a
1871
- * `sch_*` URL. When provided, `$id` must be unique within the project and
1872
- * should ideally be a valid URI pointing at where the schema can be accessed.
1873
- * A `$id` that already exists in the project is refused; pick another or
1874
- * omit it.
1875
- * @summary Create a schema
1876
- */
1877
- const createSchema = async (createSchemaBody, params, options) => {
1878
- const getHeaders = (h) => {
1879
- if (!h) return {};
1880
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1881
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1882
- const headers = {};
1883
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1884
- return headers;
1885
- };
1886
- return customFetch(getCreateSchemaUrl(params), {
1887
- ...options,
1888
- method: "POST",
1889
- headers: {
1890
- "Content-Type": "application/json",
1891
- ...getHeaders(options?.headers)
1892
- },
1893
- body: JSON.stringify(createSchemaBody)
1894
- });
1895
- };
1896
- const getListSchemasUrl = (params) => {
1897
- const normalizedParams = new URLSearchParams();
1898
- Object.entries(params || {}).forEach(([key, value]) => {
1899
- if (Array.isArray(value) && ["expand"].includes(key)) {
1900
- value.forEach((v) => {
1901
- normalizedParams.append(key, v === null ? "null" : String(v));
1902
- });
1903
- return;
1904
- }
1905
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1906
- });
1907
- const stringifiedParams = normalizedParams.toString();
1908
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas?${stringifiedParams}` : `${getApiBaseUrl()}/schemas`;
1909
- };
1910
- /**
1911
- * Lists the schemas of a project, newest first, paginated with a cursor.
1912
- * Filter by `object_type` or `kind`, and choose which revisions to return
1913
- * with `revisions`.
1914
- *
1915
- * A schema's `id` is what `createUser` (`POST /users`) takes as `schema`.
1916
- * @summary List schemas
1917
- */
1918
- const listSchemas = async (params, options) => {
1919
- return customFetch(getListSchemasUrl(params), {
1920
- ...options,
1921
- method: "GET"
1922
- });
1923
- };
1924
- const getGetSchemaByIdUrl = (id, params) => {
1925
- const normalizedParams = new URLSearchParams();
1926
- Object.entries(params || {}).forEach(([key, value]) => {
1927
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1928
- });
1929
- const stringifiedParams = normalizedParams.toString();
1930
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/schemas/${encodeURIComponent(String(id))}`;
1931
- };
1932
- /**
1933
- * Returns a schema by ID. A schema ID identifies one immutable revision, so
1934
- * this returns exactly that revision. To find the current revision of an
1935
- * object type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.
1936
- *
1937
- * Schema IDs are unique within a project, not across projects (the seeded
1938
- * default schema carries the same `$id` in every project). A console
1939
- * session that manages more than one project names the project with
1940
- * `project_id`; without it, the ID is resolved in the credential's own
1941
- * project when it is ambiguous. A project secret always resolves in its
1942
- * own project and ignores `project_id`.
1943
- * @summary Get a schema by ID
1944
- */
1945
- const getSchemaById = async (id, params, options) => {
1946
- return customFetch(getGetSchemaByIdUrl(id, params), {
1947
- ...options,
1948
- method: "GET"
1949
- });
1950
- };
1951
- const getCreateFlowDefinitionUrl = () => {
1952
- return `${getApiBaseUrl()}/flow_definitions`;
1953
- };
1954
- /**
1955
- * Creates a flow definition by publishing a new revision of it. It records a
1956
- * `flowdef.created` event.
1957
- *
1958
- * A [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that
1959
- * defines the sequence of steps (capabilities) for one user journey, such as
1960
- * registration, login or password reset. The body follows the flow
1961
- * definition schema, which includes the flow's purpose, audience and steps.
1962
- *
1963
- * Every call allocates a new opaque ID. That `id` is the `revision_id` a
1964
- * release pins for `kind: flow_definition`.
1965
- *
1966
- * Revisions of one flow share its `name`. Posting a definition under an
1967
- * existing `name` publishes a new revision of that flow, which is not a
1968
- * conflict. List with `name` to see a flow's revisions, newest by creation
1969
- * time first.
1970
- * @summary Create a flow definition
1971
- */
1972
- const createFlowDefinition = async (createFlowDefinitionBody, options) => {
1973
- const getHeaders = (h) => {
1974
- if (!h) return {};
1975
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1976
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1977
- const headers = {};
1978
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1979
- return headers;
1980
- };
1981
- return customFetch(getCreateFlowDefinitionUrl(), {
1982
- ...options,
1983
- method: "POST",
1984
- headers: {
1985
- "Content-Type": "application/json",
1986
- ...getHeaders(options?.headers)
1987
- },
1988
- body: JSON.stringify(createFlowDefinitionBody)
1989
- });
1990
- };
1991
- const getListFlowDefinitionsUrl = (params) => {
1992
- const normalizedParams = new URLSearchParams();
1993
- Object.entries(params || {}).forEach(([key, value]) => {
1994
- if (Array.isArray(value) && ["expand"].includes(key)) {
1995
- value.forEach((v) => {
1996
- normalizedParams.append(key, v === null ? "null" : String(v));
1997
- });
1998
- return;
1999
- }
2000
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2001
- });
2002
- const stringifiedParams = normalizedParams.toString();
2003
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/flow_definitions?${stringifiedParams}` : `${getApiBaseUrl()}/flow_definitions`;
2004
- };
2005
- /**
2006
- * Lists the project's flow definitions with their configurations, newest by
2007
- * creation time first. A flow definition sets which step of a sign-in
2008
- * renders when, and which fields each step collects.
2009
- *
2010
- * The `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{id}`)
2011
- * takes. Filter by `name` to list the revisions of one flow.
2012
- * @summary List flow definitions
2013
- */
2014
- const listFlowDefinitions = async (params, options) => {
2015
- return customFetch(getListFlowDefinitionsUrl(params), {
2016
- ...options,
2017
- method: "GET"
2018
- });
2019
- };
2020
- const getGetFlowDefinitionUrl = (id) => {
2021
- return `${getApiBaseUrl()}/flow_definitions/${encodeURIComponent(String(id))}`;
2022
- };
2023
- /**
2024
- * Returns one flow definition revision. Pass the `id` that
2025
- * `createFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.
2026
- * @summary Get a flow definition by ID
2027
- */
2028
- const getFlowDefinition = async (id, options) => {
2029
- return customFetch(getGetFlowDefinitionUrl(id), {
2030
- ...options,
2031
- method: "GET"
2032
- });
2033
- };
2034
- const getCreateTeamUrl = (params) => {
2035
- const normalizedParams = new URLSearchParams();
2036
- Object.entries(params || {}).forEach(([key, value]) => {
2037
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2038
- });
2039
- const stringifiedParams = normalizedParams.toString();
2040
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/teams?${stringifiedParams}` : `${getApiBaseUrl()}/teams`;
2041
- };
2042
- /**
2043
- * Creates a team in the project, with a name no other team in the project has.
2044
- *
2045
- * A team groups users inside a project and can represent a customer. A taken
2046
- * name is refused with `409 team.already_exists`: choose another name. The
2047
- * new team has no members yet.
2048
- * @summary Create a team
2049
- */
2050
- const createTeam = async (createTeamBody, params, options) => {
2051
- const getHeaders = (h) => {
2052
- if (!h) return {};
2053
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2054
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2055
- const headers = {};
2056
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2057
- return headers;
2058
- };
2059
- return customFetch(getCreateTeamUrl(params), {
2060
- ...options,
2061
- method: "POST",
2062
- headers: {
2063
- "Content-Type": "application/json",
2064
- ...getHeaders(options?.headers)
2065
- },
2066
- body: JSON.stringify(createTeamBody)
2067
- });
2068
- };
2069
- const getQueryTeamsUrl = (params) => {
2070
- const normalizedParams = new URLSearchParams();
2071
- Object.entries(params || {}).forEach(([key, value]) => {
2072
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2073
- });
2074
- const stringifiedParams = normalizedParams.toString();
2075
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/teams/query?${stringifiedParams}` : `${getApiBaseUrl()}/teams/query`;
2076
- };
2077
- /**
2078
- * Returns a page of a project's teams.
2079
- *
2080
- * Pass the response's `next_page_token` as `page_token` to fetch the next
2081
- * page. `project_id` names the project to list; without it, the credential's
2082
- * own project is listed.
2083
- * @summary Query teams
2084
- */
2085
- const queryTeams = async (queryTeamsBody, params, options) => {
2086
- const getHeaders = (h) => {
2087
- if (!h) return {};
2088
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2089
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2090
- const headers = {};
2091
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2092
- return headers;
2093
- };
2094
- return customFetch(getQueryTeamsUrl(params), {
2095
- ...options,
2096
- method: "POST",
2097
- headers: {
2098
- "Content-Type": "application/json",
2099
- ...getHeaders(options?.headers)
2100
- },
2101
- body: JSON.stringify(queryTeamsBody)
2102
- });
2103
- };
2104
- const getGetTeamUrl = (teamId) => {
2105
- return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`;
2106
- };
2107
- /**
2108
- * Returns a team, a group of users inside a project, by ID.
2109
- *
2110
- * A deactivated team is still returned, with status `deactivated`.
2111
- * @summary Get a team by ID
2112
- */
2113
- const getTeam = async (teamId, options) => {
2114
- return customFetch(getGetTeamUrl(teamId), {
2115
- ...options,
2116
- method: "GET"
2117
- });
2118
- };
2119
- const getDeleteTeamUrl = (teamId) => {
2120
- return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`;
2121
- };
2122
- /**
2123
- * Deactivates a team and removes its memberships.
2124
- *
2125
- * The team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with
2126
- * status `deactivated`. The users whose lifecycle the team owns are
2127
- * deactivated with it.
2128
- *
2129
- * The request is idempotent. Deleting a team that is already deactivated
2130
- * or does not exist succeeds without changing anything.
2131
- *
2132
- * A team that still owns a project is refused with `409 team.owns_project`.
2133
- * Deactivating it would leave the project owned by a deactivated team and so
2134
- * unmanageable. No endpoint ends a team's ownership of a project yet, so for
2135
- * now such a team cannot be deactivated through the API.
2136
- * @summary Deactivate a team
2137
- */
2138
- const deleteTeam = async (teamId, options) => {
2139
- return customFetch(getDeleteTeamUrl(teamId), {
2140
- ...options,
2141
- method: "DELETE"
2142
- });
2143
- };
2144
- const getUpdateTeamUrl = (teamId) => {
2145
- return `${getApiBaseUrl()}/teams/${encodeURIComponent(String(teamId))}`;
2146
- };
2147
- /**
2148
- * Renames an active team.
2149
- *
2150
- * Only active teams can be updated. A deactivated team answers `404`. The new
2151
- * name must be unique within the project, and a taken name answers `409`:
2152
- * choose another name.
2153
- * @summary Update a team
2154
- */
2155
- const updateTeam = async (teamId, updateTeamBody, options) => {
2156
- const getHeaders = (h) => {
2157
- if (!h) return {};
2158
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2159
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2160
- const headers = {};
2161
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2162
- return headers;
2163
- };
2164
- return customFetch(getUpdateTeamUrl(teamId), {
2165
- ...options,
2166
- method: "PATCH",
2167
- headers: {
2168
- "Content-Type": "application/json",
2169
- ...getHeaders(options?.headers)
2170
- },
2171
- body: JSON.stringify(updateTeamBody)
2172
- });
2173
- };
2174
- const getCreateBrandingUrl = (params) => {
2175
- const normalizedParams = new URLSearchParams();
2176
- Object.entries(params || {}).forEach(([key, value]) => {
2177
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2178
- });
2179
- const stringifiedParams = normalizedParams.toString();
2180
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/branding?${stringifiedParams}` : `${getApiBaseUrl()}/branding`;
2181
- };
2182
- /**
2183
- * Publishes a new immutable branding revision for the project, and records a
2184
- * `branding.created` event. Branding revisions cannot be updated or deleted.
2185
- * Every edit publishes a new revision. Flow responses carry the branding
2186
- * revision the request's release pins.
2187
- *
2188
- * The `id` of the new revision is the revision ID a release pins for
2189
- * `kind: branding`.
2190
- *
2191
- * The `liquid_template` is validated lexically on save (size, encoding,
2192
- * banned patterns such as `<script>` tags, inline event handlers, and the
2193
- * `| raw` filter). Authoritative LiquidJS validation runs at authoring
2194
- * time, in `zitadel deploy` and `zitadel deploy --dry-run`.
2195
- * @summary Publish a branding revision
2196
- */
2197
- const createBranding = async (createBrandingBody, params, options) => {
2198
- const getHeaders = (h) => {
2199
- if (!h) return {};
2200
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2201
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2202
- const headers = {};
2203
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2204
- return headers;
2205
- };
2206
- return customFetch(getCreateBrandingUrl(params), {
2207
- ...options,
2208
- method: "POST",
2209
- headers: {
2210
- "Content-Type": "application/json",
2211
- ...getHeaders(options?.headers)
2212
- },
2213
- body: JSON.stringify(createBrandingBody)
2214
- });
2215
- };
2216
- const getListBrandingUrl = (params) => {
2217
- const normalizedParams = new URLSearchParams();
2218
- Object.entries(params || {}).forEach(([key, value]) => {
2219
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2220
- });
2221
- const stringifiedParams = normalizedParams.toString();
2222
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/branding?${stringifiedParams}` : `${getApiBaseUrl()}/branding`;
2223
- };
2224
- /**
2225
- * Lists a project's branding revisions, newest first, capped at the 100 most
2226
- * recent and not paginated. The first entry is the newest revision.
2227
- *
2228
- * The `id` of an entry is the revision ID that `getBrandingById` (`GET /branding/{id}`) takes and
2229
- * that a release pins for `kind: branding`.
2230
- * @summary List branding revisions
2231
- */
2232
- const listBranding = async (params, options) => {
2233
- return customFetch(getListBrandingUrl(params), {
2234
- ...options,
2235
- method: "GET"
2236
- });
2237
- };
2238
- const getGetBrandingByIdUrl = (id) => {
2239
- return `${getApiBaseUrl()}/branding/${encodeURIComponent(String(id))}`;
2240
- };
2241
- /**
2242
- * Returns one branding revision, including its stored configuration. Pass the
2243
- * `id` that `createBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.
2244
- * @summary Get a branding revision by ID
2245
- */
2246
- const getBrandingById = async (id, options) => {
2247
- return customFetch(getGetBrandingByIdUrl(id), {
2248
- ...options,
2249
- method: "GET"
2250
- });
2251
- };
2252
- const getCreateIdpUrl = (params) => {
2253
- const normalizedParams = new URLSearchParams();
2254
- Object.entries(params || {}).forEach(([key, value]) => {
2255
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2256
- });
2257
- const stringifiedParams = normalizedParams.toString();
2258
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps?${stringifiedParams}` : `${getApiBaseUrl()}/idps`;
2259
- };
2260
- /**
2261
- * Creates or revises an identity provider, an external sign-in such as
2262
- * Google, from its connection document. If the slug does not already exist,
2263
- * a new identity provider is created. If one with that slug already exists,
2264
- * a revision is created.
2265
- *
2266
- * A revision gets a new `revision_id` and does not modify the identity
2267
- * provider's `id`. Identity links, which tie a user to an account at the
2268
- * provider, keep resolving. Releases and authentication attempts stay pinned
2269
- * to the revision they captured.
2270
- *
2271
- * Identity fields are fixed for the life of the identity provider and a
2272
- * revision that changes one is rejected: `protocol`, `subject_claim`, and
2273
- * `issuer`, the field that names the authority. Their values decide which provider
2274
- * account a stored subject belongs to, so changing one would silently
2275
- * repoint existing identities at a different provider.
2276
- *
2277
- * `subject_claim` is optional, and `sub` is used as the default value. If a
2278
- * revision updates `subject_claim` to a different value than the one set
2279
- * during creation, the request is rejected.
2280
- *
2281
- * OIDC is the only protocol.
2282
- *
2283
- * The document is validated against the `idp-connection.json` schema before
2284
- * anything is stored. The rules the server applies when it starts a sign-in
2285
- * then run on the document, so a document that could never start one is
2286
- * refused here with `idp.endpoints_partial`: the OIDC block sets an endpoint
2287
- * without the others. Set no endpoint, and discovery fills them, or set
2288
- * `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and
2289
- * `userinfo_endpoint`. `userinfo_endpoint` may be left out when
2290
- * `id_token_mapping` is on, but setting it alone still counts as setting an
2291
- * endpoint. The details list the missing endpoints.
2292
- *
2293
- * A refused document stores nothing, and on a revise the current revision
2294
- * stays unchanged.
2295
- * @summary Create or revise an identity provider
2296
- */
2297
- const createIdp = async (createIdpBody, params, options) => {
2298
- const getHeaders = (h) => {
2299
- if (!h) return {};
2300
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2301
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2302
- const headers = {};
2303
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2304
- return headers;
2305
- };
2306
- return customFetch(getCreateIdpUrl(params), {
2307
- ...options,
2308
- method: "POST",
2309
- headers: {
2310
- "Content-Type": "application/json",
2311
- ...getHeaders(options?.headers)
2312
- },
2313
- body: JSON.stringify(createIdpBody)
2314
- });
2315
- };
2316
- const getQueryIdpsUrl = (params) => {
2317
- const normalizedParams = new URLSearchParams();
2318
- Object.entries(params || {}).forEach(([key, value]) => {
2319
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2320
- });
2321
- const stringifiedParams = normalizedParams.toString();
2322
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/query?${stringifiedParams}` : `${getApiBaseUrl()}/idps/query`;
2323
- };
2324
- /**
2325
- * Returns the identity providers of a project, external sign-ins such as
2326
- * Google, paginated with a cursor. Each identity provider appears once, with
2327
- * its newest revision.
2328
- * @summary Query identity providers
2329
- */
2330
- const queryIdps = async (queryIdpsBody, params, options) => {
2331
- const getHeaders = (h) => {
2332
- if (!h) return {};
2333
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2334
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2335
- const headers = {};
2336
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2337
- return headers;
2338
- };
2339
- return customFetch(getQueryIdpsUrl(params), {
2340
- ...options,
2341
- method: "POST",
2342
- headers: {
2343
- "Content-Type": "application/json",
2344
- ...getHeaders(options?.headers)
2345
- },
2346
- body: JSON.stringify(queryIdpsBody)
2347
- });
2348
- };
2349
- const getGetIdpByIdUrl = (id, params) => {
2350
- const normalizedParams = new URLSearchParams();
2351
- Object.entries(params || {}).forEach(([key, value]) => {
2352
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2353
- });
2354
- const stringifiedParams = normalizedParams.toString();
2355
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}`;
2356
- };
2357
- /**
2358
- * Returns an identity provider, an external sign-in such as Google, by ID at
2359
- * its newest revision. `listIdpRevisions` (`GET /idps/{id}/revisions`) lists
2360
- * every revision of it.
2361
- *
2362
- * The lookup is scoped to the project in `project_id`.
2363
- * @summary Get an identity provider by ID
2364
- */
2365
- const getIdpById = async (id, params, options) => {
2366
- return customFetch(getGetIdpByIdUrl(id, params), {
2367
- ...options,
2368
- method: "GET"
2369
- });
2370
- };
2371
- const getListIdpRevisionsUrl = (id, params) => {
2372
- const normalizedParams = new URLSearchParams();
2373
- Object.entries(params || {}).forEach(([key, value]) => {
2374
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2375
- });
2376
- const stringifiedParams = normalizedParams.toString();
2377
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/idps/${encodeURIComponent(String(id))}/revisions`;
2378
- };
2379
- /**
2380
- * Lists every revision of one identity provider, an external sign-in such as
2381
- * Google, newest first, paginated with a cursor. The order is fixed, so there
2382
- * is no `sorting`.
2383
- *
2384
- * The lookup is scoped to the project in `project_id`.
2385
- * @summary List the revisions of an identity provider
2386
- */
2387
- const listIdpRevisions = async (id, params, options) => {
2388
- return customFetch(getListIdpRevisionsUrl(id, params), {
2389
- ...options,
2390
- method: "GET"
2391
- });
2392
- };
2393
- const getGetIdpRevisionByIdUrl = (revisionId, params) => {
2394
- const normalizedParams = new URLSearchParams();
2395
- Object.entries(params || {}).forEach(([key, value]) => {
2396
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2397
- });
2398
- const stringifiedParams = normalizedParams.toString();
2399
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/idps/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getApiBaseUrl()}/idps/revisions/${encodeURIComponent(String(revisionId))}`;
2400
- };
2401
- /**
2402
- * Returns one revision of an identity provider, an external sign-in such as
2403
- * Google, by its `revision_id`, the value an authentication attempt or a
2404
- * release pins.
2405
- *
2406
- * The lookup is scoped to the project in `project_id`.
2407
- * @summary Get a revision of an identity provider
2408
- */
2409
- const getIdpRevisionById = async (revisionId, params, options) => {
2410
- return customFetch(getGetIdpRevisionByIdUrl(revisionId, params), {
2411
- ...options,
2412
- method: "GET"
2413
- });
2414
- };
2415
- const getListPoliciesUrl = (params) => {
2416
- const normalizedParams = new URLSearchParams();
2417
- Object.entries(params || {}).forEach(([key, value]) => {
2418
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2419
- });
2420
- const stringifiedParams = normalizedParams.toString();
2421
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies?${stringifiedParams}` : `${getApiBaseUrl()}/policies`;
2422
- };
2423
- /**
2424
- * Lists the project's policies, one per operation, each as its newest
2425
- * revision.
2426
- *
2427
- * A policy holds a project's rules for one operation, such as setting a
2428
- * password. The list is ordered by `created_at` (first publish) and then
2429
- * `id`. Filter by `operation` to read the policy of one operation; a project
2430
- * that never published one gets an empty list.
2431
- *
2432
- * The lookup is scoped to the project in `project_id`.
2433
- * @summary List policies
2434
- */
2435
- const listPolicies = async (params, options) => {
2436
- return customFetch(getListPoliciesUrl(params), {
2437
- ...options,
2438
- method: "GET"
2439
- });
2440
- };
2441
- const getPublishPolicyUrl = (params) => {
2442
- const normalizedParams = new URLSearchParams();
2443
- Object.entries(params || {}).forEach(([key, value]) => {
2444
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2445
- });
2446
- const stringifiedParams = normalizedParams.toString();
2447
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies?${stringifiedParams}` : `${getApiBaseUrl()}/policies`;
2448
- };
2449
- /**
2450
- * Publishes the project's policy for an operation as a new immutable
2451
- * revision, creating the policy on its first publish. A revision applies
2452
- * once a deployed release pins it. Nothing already stored is
2453
- * re-evaluated, so a stricter password policy applies the next time a
2454
- * password is set.
2455
- *
2456
- * A policy holds a project's rules for one operation, such as setting a
2457
- * password. The first publish records a `policy.created` event and every
2458
- * later one a `policy.updated` event.
2459
- *
2460
- * The request is typed by `operation`. An unknown operation or setting, or
2461
- * a value of the wrong type or outside its bounds, answers `req.invalid`
2462
- * like any malformed request.
2463
- *
2464
- * The operation's template then checks the config again, together with the
2465
- * rules that relate settings to each other (a `min_length` above
2466
- * `max_length`), and answers `pol.invalid`. Its `details.details.violations`
2467
- * lists everything that failed, settings first, then rules.
2468
- * `{"setting": "min_length"}` names one setting. `{"config_rule":
2469
- * "min_length_not_above_max_length", "settings": ["min_length",
2470
- * "max_length"]}` names a rule across settings, with the settings it reads.
2471
- * Fix what the violations list and publish again. To check a config without
2472
- * publishing it, call `evaluatePolicy` (`POST /policies/evaluate`).
2473
- *
2474
- * A setting left out is off, and `{}` switches every rule off; there are no
2475
- * defaults.
2476
- * @summary Publish a policy
2477
- */
2478
- const publishPolicy = async (publishPolicyBody, params, options) => {
2479
- const getHeaders = (h) => {
2480
- if (!h) return {};
2481
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2482
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2483
- const headers = {};
2484
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2485
- return headers;
2486
- };
2487
- return customFetch(getPublishPolicyUrl(params), {
2488
- ...options,
2489
- method: "POST",
2490
- headers: {
2491
- "Content-Type": "application/json",
2492
- ...getHeaders(options?.headers)
2493
- },
2494
- body: JSON.stringify(publishPolicyBody)
2495
- });
2496
- };
2497
- const getEvaluatePolicyUrl = (params) => {
2498
- const normalizedParams = new URLSearchParams();
2499
- Object.entries(params || {}).forEach(([key, value]) => {
2500
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2501
- });
2502
- const stringifiedParams = normalizedParams.toString();
2503
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/evaluate?${stringifiedParams}` : `${getApiBaseUrl()}/policies/evaluate`;
2504
- };
2505
- /**
2506
- * Evaluates a policy config against one request, without side effects, and
2507
- * answers the decision the operation would reach. A policy holds a
2508
- * project's rules for one operation, such as setting a password.
2509
- *
2510
- * Nothing is read from or written to the project. The config is the one in
2511
- * the body, checked exactly as a publish checks it, so an invalid config
2512
- * answers `pol.invalid` with the same violations. Fix the settings the
2513
- * violations list and send the request again.
2514
- *
2515
- * `input` is what the operation's request carries, in the operation's own
2516
- * terms (a password, not its length). The server derives what the policy
2517
- * checks with the code the live operation runs, guards included. `facts`
2518
- * states what the operation would look up at runtime, such as whether the
2519
- * candidate matches one of the user's kept passwords.
2520
- *
2521
- * The decision and the names of the failed rules hold wherever the
2522
- * operation runs. `code` and `violations` are what an API call answers. A
2523
- * login flow shows the same rules as field errors on the password field
2524
- * (`error.x-auth-methods#password_<rule>` in `step.error`).
2525
- *
2526
- * This operation does not choose which policy a project or release applies.
2527
- * Read that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.
2528
- *
2529
- * The caller needs read access to the project in `project_id`.
2530
- * @summary Evaluate a policy
2531
- */
2532
- const evaluatePolicy = async (evaluatePolicyBody, params, options) => {
2533
- const getHeaders = (h) => {
2534
- if (!h) return {};
2535
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2536
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2537
- const headers = {};
2538
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2539
- return headers;
2540
- };
2541
- return customFetch(getEvaluatePolicyUrl(params), {
2542
- ...options,
2543
- method: "POST",
2544
- headers: {
2545
- "Content-Type": "application/json",
2546
- ...getHeaders(options?.headers)
2547
- },
2548
- body: JSON.stringify(evaluatePolicyBody)
2549
- });
2550
- };
2551
- const getGetPolicyUrl = (policyId, params) => {
2552
- const normalizedParams = new URLSearchParams();
2553
- Object.entries(params || {}).forEach(([key, value]) => {
2554
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2555
- });
2556
- const stringifiedParams = normalizedParams.toString();
2557
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}?${stringifiedParams}` : `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}`;
2558
- };
2559
- /**
2560
- * Returns a policy as its newest revision. A revision applies once a deployed
2561
- * release pins it.
2562
- *
2563
- * A policy holds a project's rules for one operation, such as setting a
2564
- * password. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
2565
- *
2566
- * The lookup is scoped to the project in `project_id`: a policy of another
2567
- * project answers not found exactly as an unknown ID does.
2568
- * @summary Get a policy by ID
2569
- */
2570
- const getPolicy = async (policyId, params, options) => {
2571
- return customFetch(getGetPolicyUrl(policyId, params), {
2572
- ...options,
2573
- method: "GET"
2574
- });
2575
- };
2576
- const getListPolicyRevisionsUrl = (policyId, params) => {
2577
- const normalizedParams = new URLSearchParams();
2578
- Object.entries(params || {}).forEach(([key, value]) => {
2579
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2580
- });
2581
- const stringifiedParams = normalizedParams.toString();
2582
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}/revisions?${stringifiedParams}` : `${getApiBaseUrl()}/policies/${encodeURIComponent(String(policyId))}/revisions`;
2583
- };
2584
- /**
2585
- * Lists every revision of one policy, newest first, one page at a time. The
2586
- * order is fixed, so there is no `sorting`.
2587
- *
2588
- * Each publish of a policy adds a revision. Pass the policy `id` that
2589
- * `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.
2590
- *
2591
- * The lookup is scoped to the project in `project_id`: a policy of another
2592
- * project answers not found exactly as an unknown ID does.
2593
- * @summary List the revisions of a policy
2594
- */
2595
- const listPolicyRevisions = async (policyId, params, options) => {
2596
- return customFetch(getListPolicyRevisionsUrl(policyId, params), {
2597
- ...options,
2598
- method: "GET"
2599
- });
2600
- };
2601
- const getGetPolicyRevisionUrl = (revisionId, params) => {
2602
- const normalizedParams = new URLSearchParams();
2603
- Object.entries(params || {}).forEach(([key, value]) => {
2604
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2605
- });
2606
- const stringifiedParams = normalizedParams.toString();
2607
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/policies/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getApiBaseUrl()}/policies/revisions/${encodeURIComponent(String(revisionId))}`;
2608
- };
2609
- /**
2610
- * Returns one revision of a policy, the newest or an older one.
2611
- *
2612
- * Pass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)
2613
- * returns.
2614
- *
2615
- * The lookup is scoped to the project in `project_id`: a revision of another
2616
- * project answers not found exactly as an unknown ID does.
2617
- * @summary Get a policy revision by ID
2618
- */
2619
- const getPolicyRevision = async (revisionId, params, options) => {
2620
- return customFetch(getGetPolicyRevisionUrl(revisionId, params), {
2621
- ...options,
2622
- method: "GET"
2623
- });
2624
- };
2625
- const getCreateReleaseUrl = (params) => {
2626
- const normalizedParams = new URLSearchParams();
2627
- Object.entries(params || {}).forEach(([key, value]) => {
2628
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2629
- });
2630
- const stringifiedParams = normalizedParams.toString();
2631
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases?${stringifiedParams}` : `${getApiBaseUrl()}/releases`;
2632
- };
2633
- /**
2634
- * Creates a release from existing revisions, given as `(kind, revision_id)`
2635
- * pairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)
2636
- * (`POST /releases/build`).
2637
- *
2638
- * A release is a snapshot of the project's configuration: it pins one
2639
- * revision of each resource it includes, and it is not tied to an origin.
2640
- * Take each `revision_id` from the operation that created the revision, for
2641
- * example the `id` that `createBranding` (`POST /branding`) or `createFlowDefinition` (`POST /flow_definitions`) returns.
2642
- *
2643
- * Each revision must exist in the project and is recorded under the handle
2644
- * it declares. The release must be complete and consistent:
2645
- *
2646
- * - Every handle its revisions name must be in the release: a flow's
2647
- * `user_schema`, and the identity provider (IdP) connections named by a
2648
- * flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.
2649
- * A missing one answers `rel.unresolved_reference`, naming the resource and
2650
- * the handle, for example `flow_definition default-login: user_schema
2651
- * human-user not found`. Add the missing revision to the request.
2652
- * - Every flow is validated as on save, against the user schema revision in
2653
- * the release. A flow that fails answers `rel.invalid`, with the reason in
2654
- * `details`. Fix the flow and send the request again.
2655
- *
2656
- * The call is idempotent on the set of revisions: the same revisions with a
2657
- * different `message` answer `200` with the existing release. A new release
2658
- * answers `201`.
2659
- *
2660
- * Creating a release does not deploy it. Pass the returned `id` to
2661
- * `createDeployment` (`POST /deployments`) to make the release live.
2662
- * @summary Create a release
2663
- */
2664
- const createRelease = async (createReleaseBody, params, options) => {
2665
- const getHeaders = (h) => {
2666
- if (!h) return {};
2667
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2668
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2669
- const headers = {};
2670
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2671
- return headers;
2672
- };
2673
- return customFetch(getCreateReleaseUrl(params), {
2674
- ...options,
2675
- method: "POST",
2676
- headers: {
2677
- "Content-Type": "application/json",
2678
- ...getHeaders(options?.headers)
2679
- },
2680
- body: JSON.stringify(createReleaseBody)
2681
- });
2682
- };
2683
- const getListReleasesUrl = (params) => {
2684
- const normalizedParams = new URLSearchParams();
2685
- Object.entries(params || {}).forEach(([key, value]) => {
2686
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2687
- });
2688
- const stringifiedParams = normalizedParams.toString();
2689
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases?${stringifiedParams}` : `${getApiBaseUrl()}/releases`;
2690
- };
2691
- /**
2692
- * Lists the project's releases, newest first. A release is a snapshot of the
2693
- * project's configuration.
2694
- *
2695
- * Entries carry the digest, the metadata and `revoked_at`. The pinned set is
2696
- * omitted: read one release with `getReleaseById` (`GET /releases/{release_id}`) to get its pointers.
2697
- *
2698
- * The `id` of an entry is the release ID that `getReleaseById`,
2699
- * `revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.
2700
- *
2701
- * `content_hash` looks a release up by its content, as the CLI does when a
2702
- * person types the digest a transcript printed. The project holds at most
2703
- * one release per digest, so the filtered list has one entry or none. An
2704
- * unknown digest is an empty list rather than an error. Paths take the
2705
- * `rel_` ID only, so use the matched entry's `id` there.
2706
- * @summary List releases
2707
- */
2708
- const listReleases = async (params, options) => {
2709
- return customFetch(getListReleasesUrl(params), {
2710
- ...options,
2711
- method: "GET"
2712
- });
2713
- };
2714
- const getBuildReleaseUrl = (params) => {
2715
- const normalizedParams = new URLSearchParams();
2716
- Object.entries(params || {}).forEach(([key, value]) => {
2717
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2718
- });
2719
- const stringifiedParams = normalizedParams.toString();
2720
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/build?${stringifiedParams}` : `${getApiBaseUrl()}/releases/build`;
2721
- };
2722
- /**
2723
- * Builds a release from the resources in `.zitadel/` as authored on disk,
2724
- * grouped by kind, in one transaction.
2725
- *
2726
- * A release is a snapshot of the project's configuration. A failure anywhere
2727
- * leaves no revision and no release. The caller records nothing. The CLI's
2728
- * `deploy` command builds its release with this operation.
2729
- *
2730
- * If the project already holds a release with the same content, the same
2731
- * `content_hash`, the request answers `200` with that release and allocates
2732
- * nothing, however long ago it was built. Metadata is excluded from the
2733
- * comparison, so the same content under a different `message` is the same
2734
- * release.
2735
- *
2736
- * Otherwise every resource is compared with the project's newest revision of
2737
- * the same handle. Unchanged content reuses that revision, and changed
2738
- * content allocates a new one. The request answers `201` with the new
2739
- * release. A policy whose config matches only an older revision allocates a
2740
- * new one too, so the policy reads back as the config the build carried.
2741
- *
2742
- * A structurally malformed request is refused while decoding with
2743
- * `req.invalid`, naming the offending fields. A well-formed bundle is then
2744
- * checked resource by resource, as each kind's create endpoint checks it,
2745
- * and every failure is reported at once. The request answers `400` with
2746
- * `rel.invalid`, and `details.resources` lists each resource that failed.
2747
- * Fix each listed resource and build again. A handle that resolves neither
2748
- * in the bundle nor in the project answers `rel.unresolved_reference`,
2749
- * naming the pointer and the handle. Add the missing resource to the bundle.
2750
- *
2751
- * Building writes revisions, so besides `release.write` it needs the write
2752
- * scope of every kind the bundle carries a resource of: `schema.write`,
2753
- * `flow_definition.write`, `branding.write`, `idp.write` and `policy.write`,
2754
- * as the per-kind create endpoints do. A missing scope answers `403` with
2755
- * `rel.permission_denied`, naming the kind. Request a token with that scope.
2756
- * An empty kind needs no scope.
2757
- *
2758
- * Building a release does not deploy it. A release is not tied to an origin,
2759
- * and the same release can later be deployed to any number of origins
2760
- * unchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).
2761
- * @summary Build a release from files
2762
- */
2763
- const buildRelease = async (buildReleaseBody, params, options) => {
2764
- const getHeaders = (h) => {
2765
- if (!h) return {};
2766
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2767
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2768
- const headers = {};
2769
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2770
- return headers;
2771
- };
2772
- return customFetch(getBuildReleaseUrl(params), {
2773
- ...options,
2774
- method: "POST",
2775
- headers: {
2776
- "Content-Type": "application/json",
2777
- ...getHeaders(options?.headers)
2778
- },
2779
- body: JSON.stringify(buildReleaseBody)
2780
- });
2781
- };
2782
- const getGetReleaseByIdUrl = (releaseId, params) => {
2783
- const normalizedParams = new URLSearchParams();
2784
- Object.entries(params || {}).forEach(([key, value]) => {
2785
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2786
- });
2787
- const stringifiedParams = normalizedParams.toString();
2788
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}?${stringifiedParams}` : `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}`;
2789
- };
2790
- /**
2791
- * Returns one release: its digest, its metadata, whether it was revoked, and
2792
- * the `(kind, handle, revision_id)` tuples it pins. A release is a snapshot
2793
- * of the project's configuration.
2794
- *
2795
- * The path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),
2796
- * `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its
2797
- * digest, list with the `content_hash` filter and read the matched entry's
2798
- * `id`.
2799
- *
2800
- * The response does not embed resource content. Resolve each `revision_id`
2801
- * through the per-kind read endpoints when the bytes are needed.
2802
- *
2803
- * The lookup is scoped to the project in `project_id`. A release ID
2804
- * belonging to another project answers not found exactly as an unknown ID
2805
- * does, so the endpoint cannot be used to probe for releases in projects the
2806
- * caller cannot read.
2807
- * @summary Get a release by ID
2808
- */
2809
- const getReleaseById = async (releaseId, params, options) => {
2810
- return customFetch(getGetReleaseByIdUrl(releaseId, params), {
2811
- ...options,
2812
- method: "GET"
2813
- });
2814
- };
2815
- const getRevokeReleaseUrl = (releaseId, params) => {
2816
- const normalizedParams = new URLSearchParams();
2817
- Object.entries(params || {}).forEach(([key, value]) => {
2818
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2819
- });
2820
- const stringifiedParams = normalizedParams.toString();
2821
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}/revoke?${stringifiedParams}` : `${getApiBaseUrl()}/releases/${encodeURIComponent(String(releaseId))}/revoke`;
2822
- };
2823
- /**
2824
- * Revokes a release, so that its content is never served again. Pass the
2825
- * `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It
2826
- * records a `release.revoked` event.
2827
- *
2828
- * From then on the release cannot be deployed. Every path that would serve
2829
- * it refuses it with `rel.revoked`, including a build that pins its digest.
2830
- *
2831
- * A release that any origin still serves cannot be revoked. An origin serves
2832
- * the release of the newest deployment to it, so the call answers `409` with
2833
- * `rel.in_use`, naming each such origin and that deployment. Deploy another
2834
- * release there or roll back first, then revoke. Revoking therefore never
2835
- * takes an origin down. Deployments that named the release earlier stay in
2836
- * the history.
2837
- *
2838
- * The call is idempotent: revoking a release that is already revoked answers
2839
- * `200` with the release unchanged, and `revoked_at` still names the first
2840
- * revocation. There is no un-revoke. To serve that configuration again,
2841
- * change it and build a new release: rebuilding unchanged content returns
2842
- * the same revoked release.
2843
- *
2844
- * The call takes no body. The lookup is scoped to the project in
2845
- * `project_id`, so a release ID of another project answers not found exactly
2846
- * as an unknown ID does.
2847
- * @summary Revoke a release
2848
- */
2849
- const revokeRelease = async (releaseId, params, options) => {
2850
- return customFetch(getRevokeReleaseUrl(releaseId, params), {
2851
- ...options,
2852
- method: "POST"
2853
- });
2854
- };
2855
- const getCreateGrantUrl = (params) => {
2856
- const normalizedParams = new URLSearchParams();
2857
- Object.entries(params || {}).forEach(([key, value]) => {
2858
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2859
- });
2860
- const stringifiedParams = normalizedParams.toString();
2861
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants?${stringifiedParams}` : `${getApiBaseUrl()}/grants`;
2862
- };
2863
- /**
2864
- * Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.
2865
- *
2866
- * The project is the one named by the `project_id` query parameter. Name the
2867
- * principal with `user` (`user_id` or `identifier`) or `team` (`team_id` or
2868
- * `name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that
2869
- * `getGrant` (`GET /grants/{id}`) and `deleteGrant` (`DELETE /grants/{id}`) take. Owning-team (`project.team`) grants are not
2870
- * created here: a claim, which attaches a project to a team, creates them.
2871
- *
2872
- * An unrevoked grant with the same principal and relation holds that binding
2873
- * even after `expires_at`. Revoke it with `deleteGrant` before you create it
2874
- * again.
2875
- *
2876
- * Create does not accept `expand`. The `user_id` and team locators return `201`,
2877
- * whose `user` and `team` carry only `user_id` and `team_id`. They still answer
2878
- * `404` or `409` when the principal is missing or the grant already exists.
2879
- * Creating by `user.identifier` answers `202` with no body on every outcome.
2880
- * Granting the session caller's own user is `grant.invalid` on either user
2881
- * locator. A `201` grant names its user or team by ID only: read it back
2882
- * with `getGrant` for the identifier and display name. A `202` returns no
2883
- * grant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.
2884
- *
2885
- * Authenticate with a project secret (`oauth2`) or a console session cookie
2886
- * (`sessionCookie`). A session caller is authorized as the signed-in person
2887
- * against the target project, even when the session belongs to another project.
2888
- * Cookie requests follow that scheme's CSRF rules.
2889
- * @summary Create a grant
2890
- */
2891
- const createGrant = async (createGrantBody, params, options) => {
2892
- const getHeaders = (h) => {
2893
- if (!h) return {};
2894
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2895
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2896
- const headers = {};
2897
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2898
- return headers;
2899
- };
2900
- return customFetch(getCreateGrantUrl(params), {
2901
- ...options,
2902
- method: "POST",
2903
- headers: {
2904
- "Content-Type": "application/json",
2905
- ...getHeaders(options?.headers)
2906
- },
2907
- body: JSON.stringify(createGrantBody)
2908
- });
2909
- };
2910
- const getQueryGrantsUrl = (params) => {
2911
- const normalizedParams = new URLSearchParams();
2912
- Object.entries(params || {}).forEach(([key, value]) => {
2913
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2914
- });
2915
- const stringifiedParams = normalizedParams.toString();
2916
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/query?${stringifiedParams}` : `${getApiBaseUrl()}/grants/query`;
2917
- };
2918
- /**
2919
- * Returns a page of a project's grants.
2920
- *
2921
- * Only unrevoked grants this API manages are listed, which bind a user or team
2922
- * to the viewer, editor or admin role. Expired grants are included, so a client
2923
- * can revoke them with `deleteGrant` (`DELETE /grants/{id}`) before it grants the same binding again.
2924
- * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
2925
- * not returned. Requires `project.read`.
2926
- *
2927
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
2928
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
2929
- * console session that already passed the project check may expand without those scopes.
2930
- *
2931
- * Authenticate with a project secret (`oauth2`) or a console session cookie
2932
- * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
2933
- * @summary Query grants
2934
- */
2935
- const queryGrants = async (queryGrantsBody, params, options) => {
2936
- const getHeaders = (h) => {
2937
- if (!h) return {};
2938
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2939
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2940
- const headers = {};
2941
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2942
- return headers;
2943
- };
2944
- return customFetch(getQueryGrantsUrl(params), {
2945
- ...options,
2946
- method: "POST",
2947
- headers: {
2948
- "Content-Type": "application/json",
2949
- ...getHeaders(options?.headers)
2950
- },
2951
- body: JSON.stringify(queryGrantsBody)
2952
- });
2953
- };
2954
- const getGetGrantUrl = (id, params) => {
2955
- const normalizedParams = new URLSearchParams();
2956
- Object.entries(params || {}).forEach(([key, value]) => {
2957
- if (Array.isArray(value) && ["expand"].includes(key)) {
2958
- value.forEach((v) => {
2959
- normalizedParams.append(key, v === null ? "null" : String(v));
2960
- });
2961
- return;
2962
- }
2963
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2964
- });
2965
- const stringifiedParams = normalizedParams.toString();
2966
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}`;
2967
- };
2968
- /**
2969
- * Returns a grant by ID, when this API manages it and it has not been revoked.
2970
- *
2971
- * This API manages grants that bind a user or team to the viewer, editor or
2972
- * admin role. An expired grant is still returned, so you can revoke it with
2973
- * `deleteGrant` (`DELETE /grants/{id}`) before you grant the same binding again. Authorization still
2974
- * ignores expired grants. Send `project_id` as well as the grant ID.
2975
- * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
2976
- * (`relation=team`) rows and grants of another project all return `404`.
2977
- *
2978
- * `expand=principal` adds envelope fields on `user` or `team`. For project
2979
- * secrets it requires `user.read` and `team.read` in addition to `project.read`.
2980
- * A user-bound console session that already passed the project check may expand
2981
- * without those scopes.
2982
- *
2983
- * Authenticate with a project secret (`oauth2`) or a console session cookie
2984
- * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
2985
- * @summary Get a grant by ID
2986
- */
2987
- const getGrant = async (id, params, options) => {
2988
- return customFetch(getGetGrantUrl(id, params), {
2989
- ...options,
2990
- method: "GET"
2991
- });
2992
- };
2993
- const getDeleteGrantUrl = (id, params) => {
2994
- const normalizedParams = new URLSearchParams();
2995
- Object.entries(params || {}).forEach(([key, value]) => {
2996
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2997
- });
2998
- const stringifiedParams = normalizedParams.toString();
2999
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/grants/${encodeURIComponent(String(id))}`;
3000
- };
3001
- /**
3002
- * Revokes a grant this API manages and emits `authz.revoked`.
3003
- *
3004
- * A revoked grant cannot be restored: create a new one. Already-revoked, missing,
3005
- * project-secret setup and owning-team grants return `404`. Expired grants can
3006
- * still be revoked, so the binding can be reused.
3007
- *
3008
- * Authenticate with a project secret (`oauth2`) or a console session cookie
3009
- * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
3010
- * @summary Revoke a grant
3011
- */
3012
- const deleteGrant = async (id, params, options) => {
3013
- return customFetch(getDeleteGrantUrl(id, params), {
3014
- ...options,
3015
- method: "DELETE"
3016
- });
3017
- };
3018
- const getListEventsUrl = (params) => {
3019
- const normalizedParams = new URLSearchParams();
3020
- Object.entries(params || {}).forEach(([key, value]) => {
3021
- if (Array.isArray(value) && ["category", "event_type"].includes(key)) {
3022
- value.forEach((v) => {
3023
- normalizedParams.append(key, v === null ? "null" : String(v));
3024
- });
3025
- return;
3026
- }
3027
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3028
- });
3029
- const stringifiedParams = normalizedParams.toString();
3030
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events?${stringifiedParams}` : `${getApiBaseUrl()}/events`;
3031
- };
3032
- /**
3033
- * Lists a project's audit events, newest first. Pass `order=asc` for oldest
3034
- * first. Requires `events.read`.
3035
- *
3036
- * A project that is not claimed yet returns an empty list: its events are
3037
- * stored but stay invisible until the
3038
- * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
3039
- *
3040
- * Team-scoped credentials see only the events whose `team_id` matches the
3041
- * credential's team. Team-scoped credentials are not issued today.
3042
- *
3043
- * Each item carries an `event_type` that says which type of event it is, and
3044
- * the matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{id}`).
3045
- * @summary List events
3046
- */
3047
- const listEvents = async (params, options) => {
3048
- return customFetch(getListEventsUrl(params), {
3049
- ...options,
3050
- method: "GET"
3051
- });
3052
- };
3053
- const getGetEventUrl = (id, params) => {
3054
- const normalizedParams = new URLSearchParams();
3055
- Object.entries(params || {}).forEach(([key, value]) => {
3056
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3057
- });
3058
- const stringifiedParams = normalizedParams.toString();
3059
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/events/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getApiBaseUrl()}/events/${encodeURIComponent(String(id))}`;
3060
- };
3061
- /**
3062
- * Returns one event of a project by its ID. Requires `events.read`.
3063
- *
3064
- * Pass the `id` of an event that `listEvents` (`GET /events`) returns, with its
3065
- * `project_id`. An unknown ID and the ID of another project's event both
3066
- * answer `404`.
3067
- *
3068
- * A project that is not claimed yet also answers `404`: its events are
3069
- * stored but stay invisible until the
3070
- * [claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds.
3071
- * @summary Get an event by ID
3072
- */
3073
- const getEvent = async (id, params, options) => {
3074
- return customFetch(getGetEventUrl(id, params), {
3075
- ...options,
3076
- method: "GET"
3077
- });
3078
- };
3079
- const getGetVariablesUrl = (params) => {
3080
- const normalizedParams = new URLSearchParams();
3081
- Object.entries(params || {}).forEach(([key, value]) => {
3082
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3083
- });
3084
- const stringifiedParams = normalizedParams.toString();
3085
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/variables`;
3086
- };
3087
- /**
3088
- * Returns the project's variables, keyed by name, each with its value for
3089
- * each kind: `primary` for primary origins and `preview` for preview URLs.
3090
- * With `kind`, only that kind's values are returned.
3091
- *
3092
- * Secret values are not returned. A secret appears as `{"secret": true}`,
3093
- * which says a value is held without disclosing it.
3094
- * @summary Get a project's variables
3095
- */
3096
- const getVariables = async (params, options) => {
3097
- return customFetch(getGetVariablesUrl(params), {
3098
- ...options,
3099
- method: "GET"
3100
- });
3101
- };
3102
- const getUpdateVariablesUrl = (params) => {
3103
- const normalizedParams = new URLSearchParams();
3104
- Object.entries(params || {}).forEach(([key, value]) => {
3105
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3106
- });
3107
- const stringifiedParams = normalizedParams.toString();
3108
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/variables`;
3109
- };
3110
- /**
3111
- * Sets, replaces and removes the project's variables for the requested
3112
- * kind, in one request. Names not in the body are untouched. Existing
3113
- * deployments keep the values they froze.
3114
- *
3115
- * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
3116
- * stores the value encrypted under the project's active `secret` key, after
3117
- * which it can be referenced but not read back. `null` removes the name
3118
- * (RFC 7386), which is how several variables are removed in one request.
3119
- * Removing a name the project does not hold is a no-op rather than an error.
3120
- *
3121
- * Without `kind`, a plain value is written for both kinds. A secret is
3122
- * written for `primary` only and removes the name's `preview` value, so a
3123
- * preview never keeps a plaintext copy. Set a preview secret with
3124
- * `kind=preview`. `null` removes the name from both kinds.
3125
- *
3126
- * The body is applied whole or not at all, so a rejected request leaves the
3127
- * project's variables exactly as they were. Fix what the error reports and
3128
- * send the request again. Writing the same name twice replaces the value
3129
- * rather than duplicating it, which makes a retry safe.
3130
- *
3131
- * Each kind written records a `variable.set` event, and each kind removed a
3132
- * `variable.removed` event. The value never appears in either.
3133
- * @summary Update a project's variables
3134
- */
3135
- const updateVariables = async (updateVariablesBody, params, options) => {
3136
- const getHeaders = (h) => {
3137
- if (!h) return {};
3138
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3139
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3140
- const headers = {};
3141
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3142
- return headers;
3143
- };
3144
- return customFetch(getUpdateVariablesUrl(params), {
3145
- ...options,
3146
- method: "PATCH",
3147
- headers: {
3148
- "Content-Type": "application/json",
3149
- ...getHeaders(options?.headers)
3150
- },
3151
- body: JSON.stringify(updateVariablesBody)
3152
- });
3153
- };
3154
- const getGetVariableUrl = (variableName, params) => {
3155
- const normalizedParams = new URLSearchParams();
3156
- Object.entries(params || {}).forEach(([key, value]) => {
3157
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3158
- });
3159
- const stringifiedParams = normalizedParams.toString();
3160
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}`;
3161
- };
3162
- /**
3163
- * Returns one variable by name, with its value for each kind. A variable
3164
- * holds a value per kind: `primary` for primary origins and `preview` for
3165
- * preview URLs.
3166
- *
3167
- * Pass the name of a variable the project holds, as `getVariables` (`GET /variables`) lists
3168
- * it. A name with no value for the requested kind answers `var.not_found`;
3169
- * set it with `updateVariables` (`PATCH /variables`). A secret reads back as `{"secret": true}`.
3170
- * @summary Get a variable by name
3171
- */
3172
- const getVariable = async (variableName, params, options) => {
3173
- return customFetch(getGetVariableUrl(variableName, params), {
3174
- ...options,
3175
- method: "GET"
3176
- });
3177
- };
3178
- const getDeleteVariableUrl = (variableName, params) => {
3179
- const normalizedParams = new URLSearchParams();
3180
- Object.entries(params || {}).forEach(([key, value]) => {
3181
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3182
- });
3183
- const stringifiedParams = normalizedParams.toString();
3184
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getApiBaseUrl()}/variables/${encodeURIComponent(String(variableName))}`;
3185
- };
3186
- /**
3187
- * Deletes a variable for the requested kind, or for both kinds without
3188
- * `kind`. Existing deployments keep the values they froze. Each kind removed
3189
- * records a `variable.removed` event.
3190
- *
3191
- * A name with no value for that kind answers `var.not_found`: there is
3192
- * nothing to delete. `getVariables` (`GET /variables`) lists the names the project holds. To
3193
- * remove several names in one request, or to remove a name that may already
3194
- * be absent, send `null` for each name to `updateVariables` (`PATCH /variables`).
3195
- * @summary Delete a variable by name
3196
- */
3197
- const deleteVariable = async (variableName, params, options) => {
3198
- return customFetch(getDeleteVariableUrl(variableName, params), {
3199
- ...options,
3200
- method: "DELETE"
3201
- });
3202
- };
3203
- const getCreateDeploymentUrl = (params) => {
3204
- const normalizedParams = new URLSearchParams();
3205
- Object.entries(params || {}).forEach(([key, value]) => {
3206
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3207
- });
3208
- const stringifiedParams = normalizedParams.toString();
3209
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments?${stringifiedParams}` : `${getApiBaseUrl()}/deployments`;
3210
- };
3211
- /**
3212
- * Creates a deployment: it makes a release live on the project's primary
3213
- * origins or on preview URLs.
3214
- *
3215
- * A release is a snapshot of the project's configuration. A deployment makes
3216
- * a release live on origins and freezes the project's variable values for
3217
- * its kind, with no fallback between primary and preview values. The call is
3218
- * atomic: on success every target serves the release and the deployment is
3219
- * recorded, and it records a `deployment.created` event. On failure nothing
3220
- * changes and nothing is recorded.
3221
- *
3222
- * Name the release by exactly one of `release_id` or `content_hash`. Take the
3223
- * release ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or
3224
- * `listReleases` (`GET /releases`) returns. The release must already exist in the project.
3225
- * `targets` is `primary`, which means every primary origin, or a list of
3226
- * preview URLs. `["primary"]`, which clients released before this shape
3227
- * send, still deploys to every primary origin until 1.0.0; its answer
3228
- * carries a `Deprecation` header (RFC 9745) and a `Link` to these docs.
3229
- *
3230
- * The project's newest primary deployment also serves every request with no
3231
- * `Origin`, such as a backend, a native app or the CLI, and the console's
3232
- * login preview of a project that does not list the console's origin. A
3233
- * preview URL serves only itself.
3234
- *
3235
- * A deployment to `primary` changes nothing when the project's newest
3236
- * primary deployment has the same release and frozen values and covers
3237
- * exactly the current primary origins. The call then answers `200` with that
3238
- * deployment. Any other request writes a new deployment and answers `201`.
3239
- * For preview URLs, that deployment renews their previews.
3240
- *
3241
- * If the request is refused, fix the cause and send it again:
3242
- * - `400 dep.invalid`: the request names both or neither of `release_id` and
3243
- * `content_hash`, names a primary origin among the preview URLs, sends
3244
- * `primary` for a project with no primary origin, sends
3245
- * `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct
3246
- * the request.
3247
- * - `400 dep.variables_missing`: a variable the release references has no
3248
- * value for the kind. `details` names the kind and every missing variable.
3249
- * Set each one for that kind with `updateVariables` (`PATCH /variables`), then deploy again.
3250
- * - `403 proj.origin_not_allowed`: a preview URL matches no preview pattern
3251
- * of the project, or is a loopback URL. Use a URL that matches a pattern.
3252
- * - `404 rel.not_found`: the release ID or digest names no release in this
3253
- * project. List the project's releases with `listReleases`.
3254
- * - `409 dep.conflict`: `expected_deployment_id` is not the deployment this
3255
- * write replaces, and `details.deployment` is that deployment. Inspect it,
3256
- * then retry with its ID as `expected_deployment_id`, or stop.
3257
- * - `409 rel.revoked`: the release is revoked and cannot be deployed. Change
3258
- * the configuration and build a new release, or deploy a release that is
3259
- * not revoked. Rebuilding unchanged content returns the same revoked release.
3260
- * @summary Create a deployment
3261
- */
3262
- const createDeployment = async (createDeploymentBody, params, options) => {
3263
- const getHeaders = (h) => {
3264
- if (!h) return {};
3265
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3266
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3267
- const headers = {};
3268
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3269
- return headers;
3270
- };
3271
- return customFetch(getCreateDeploymentUrl(params), {
3272
- ...options,
3273
- method: "POST",
3274
- headers: {
3275
- "Content-Type": "application/json",
3276
- ...getHeaders(options?.headers)
3277
- },
3278
- body: JSON.stringify(createDeploymentBody)
3279
- });
3280
- };
3281
- const getListDeploymentsUrl = (params) => {
3282
- const normalizedParams = new URLSearchParams();
3283
- Object.entries(params || {}).forEach(([key, value]) => {
3284
- if (Array.isArray(value) && ["expand"].includes(key)) {
3285
- value.forEach((v) => {
3286
- normalizedParams.append(key, v === null ? "null" : String(v));
3287
- });
3288
- return;
3289
- }
3290
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3291
- });
3292
- const stringifiedParams = normalizedParams.toString();
3293
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments?${stringifiedParams}` : `${getApiBaseUrl()}/deployments`;
3294
- };
3295
- /**
3296
- * Lists the project's deployments: the history of what ran where and when,
3297
- * or with `live=true` what is served now.
3298
- *
3299
- * A deployment makes a release live on origins. By default the list is the
3300
- * history, newest first: every deployment of the project, with every target
3301
- * it made the release live on. With `origin`, it is the history of that
3302
- * origin alone.
3303
- *
3304
- * With `live=true`, the list is what is served now, newest first. It holds
3305
- * the project's newest primary deployment with every origin it names, an
3306
- * origin the project no longer lists included: that deployment also serves
3307
- * requests with no `Origin`, so it stays live. It also holds the newest
3308
- * deployment to each live preview URL, narrowed to the URLs it still
3309
- * serves. Combined with `origin`, it is the one deployment that origin
3310
- * serves, or empty, as it is for an origin the project no longer lists.
3311
- *
3312
- * The `id` of an entry is the deployment ID that `getDeploymentById` (`GET /deployments/{deployment_id}`),
3313
- * `getDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.
3314
- *
3315
- * `expand: ["release"]` embeds the release each deployment made live. It
3316
- * requires `release.read` and does not change the ordering or the page
3317
- * tokens.
3318
- * @summary List deployments
3319
- */
3320
- const listDeployments = async (params, options) => {
3321
- return customFetch(getListDeploymentsUrl(params), {
3322
- ...options,
3323
- method: "GET"
3324
- });
3325
- };
3326
- const getGetDeploymentByIdUrl = (deploymentId, params) => {
3327
- const normalizedParams = new URLSearchParams();
3328
- Object.entries(params || {}).forEach(([key, value]) => {
3329
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3330
- });
3331
- const stringifiedParams = normalizedParams.toString();
3332
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}`;
3333
- };
3334
- /**
3335
- * Returns one deployment: the release it made live, the origins it made it
3336
- * live on, and whether they still serve it.
3337
- *
3338
- * Pass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or
3339
- * `listDeployments` (`GET /deployments`) returns.
3340
- *
3341
- * The lookup is scoped to the project in `project_id`. A deployment ID
3342
- * belonging to another project answers not found exactly as an unknown ID
3343
- * does, so the endpoint cannot be used to probe for deployments in projects
3344
- * the caller cannot read.
3345
- * @summary Get a deployment by ID
3346
- */
3347
- const getDeploymentById = async (deploymentId, params, options) => {
3348
- return customFetch(getGetDeploymentByIdUrl(deploymentId, params), {
3349
- ...options,
3350
- method: "GET"
3351
- });
3352
- };
3353
- const getRollbackDeploymentUrl = (deploymentId, params) => {
3354
- const normalizedParams = new URLSearchParams();
3355
- Object.entries(params || {}).forEach(([key, value]) => {
3356
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3357
- });
3358
- const stringifiedParams = normalizedParams.toString();
3359
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/rollback?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/rollback`;
3360
- };
3361
- /**
3362
- * Rolls back to an earlier deployment by deploying its release again to
3363
- * every current primary origin, with the variable values that deployment
3364
- * froze.
3365
- *
3366
- * A release is a snapshot of the project's configuration. A deployment makes
3367
- * a release live on origins and freezes the project's variable values with
3368
- * it.
3369
- *
3370
- * The deployment ID in the path is the deployment to return to, not the one
3371
- * to undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists
3372
- * the newest deployment first.
3373
- *
3374
- * A rollback is a new deployment, not an undo. It has `reason: rollback`,
3375
- * and its `rollback_to` names the deployment you returned to. It uses the
3376
- * variable values that deployment froze, not the project's current ones, and
3377
- * creates no release.
3378
- *
3379
- * To guard against a deployment that landed since you looked, set
3380
- * `expected_deployment_id` in the request body to the newest primary
3381
- * deployment, the one live now. The call then fails with `409 dep.conflict`
3382
- * if another deployment has replaced it.
3383
- *
3384
- * A rollback is idempotent like a deployment to `primary`. When nothing
3385
- * would change, it answers `200` with the newest primary deployment.
3386
- *
3387
- * If the request is refused:
3388
- * - `400 dep.invalid`: the deployment went to preview URLs, which cannot be
3389
- * rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`). The
3390
- * error also appears when the project has no primary origin. Add one with
3391
- * `zitadel origin add`.
3392
- * - `404 dep.not_found`: no deployment of the project has that ID, or that
3393
- * deployment recorded no variables to restore, so it cannot be a rollback
3394
- * target. List them with `listDeployments` and pick another.
3395
- * - `409 dep.conflict`: `expected_deployment_id` is not the project's
3396
- * newest primary deployment, and `details.deployment` is that deployment.
3397
- * Inspect it, then retry with its ID, or stop.
3398
- * - `409 rel.revoked`: the release of that deployment is revoked and cannot
3399
- * be deployed. Roll back to a deployment of a release that is not revoked.
3400
- * @summary Roll back to a deployment
3401
- */
3402
- const rollbackDeployment = async (deploymentId, params, rollbackDeploymentBody, options) => {
3403
- const getHeaders = (h) => {
3404
- if (!h) return {};
3405
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3406
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3407
- const headers = {};
3408
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3409
- return headers;
3410
- };
3411
- return customFetch(getRollbackDeploymentUrl(deploymentId, params), {
3412
- ...options,
3413
- method: "POST",
3414
- headers: {
3415
- "Content-Type": "application/json",
3416
- ...getHeaders(options?.headers)
3417
- },
3418
- body: JSON.stringify(rollbackDeploymentBody)
3419
- });
3420
- };
3421
- const getGetDeploymentVariablesUrl = (deploymentId, params) => {
3422
- const normalizedParams = new URLSearchParams();
3423
- Object.entries(params || {}).forEach(([key, value]) => {
3424
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3425
- });
3426
- const stringifiedParams = normalizedParams.toString();
3427
- return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/variables?${stringifiedParams}` : `${getApiBaseUrl()}/deployments/${encodeURIComponent(String(deploymentId))}/variables`;
3428
- };
3429
- /**
3430
- * Returns the variable values the deployment froze when it was made. Later
3431
- * changes to the project's variables do not affect them. A secret reads
3432
- * back as `{"secret": true}`.
3433
- *
3434
- * Pass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.
3435
- * @summary Get a deployment's variables
3436
- */
3437
- const getDeploymentVariables = async (deploymentId, params, options) => {
3438
- return customFetch(getGetDeploymentVariablesUrl(deploymentId, params), {
3439
- ...options,
3440
- method: "GET"
3441
- });
3442
- };
3443
- //#endregion
3444
- export { addOrigin, beginUserPasskeyRegistration, buildRelease, completeClaim, createAuthAttempt, createBranding, createDeployment, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, evaluatePolicy, exchangeHandoff, finishUserPasskeyRegistration, getAddOriginUrl, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getBuildReleaseUrl, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateDeploymentUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getDeploymentById, getDeploymentVariables, getEvaluatePolicyUrl, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetDeploymentByIdUrl, getGetDeploymentVariablesUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMyPasswordStateUrl, getGetMySessionCsrfTokenUrl, getGetMySessionUrl, getGetMyUserSchemaUrl, getGetMyUserUrl, getGetPolicyRevisionUrl, getGetPolicyUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetUserPasswordStateUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListDeploymentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyIdentityLinksUrl, getListMyPasskeysUrl, getListMyProjectsUrl, getListMyTeamsUrl, getListPoliciesUrl, getListPolicyRevisionsUrl, getListPreviewsUrl, getListProjectAdminsUrl, getListReleasesUrl, getListSchemasUrl, getListUserIdentityLinksUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMyPasswordState, getMySession, getMySessionCsrfToken, getMyUser, getMyUserSchema, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getPolicy, getPolicyRevision, getProject, getPublishPolicyUrl, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRemoveOriginUrl, getRemovePreviewUrl, getRevokeMySessionUrl, getRevokeReleaseUrl, getRevokeSessionUrl, getRollbackDeploymentUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getUserPasswordState, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listDeployments, listEvents, listFlowDefinitions, listIdpRevisions, listMyIdentityLinks, listMyPasskeys, listMyProjects, listMyTeams, listPolicies, listPolicyRevisions, listPreviews, listProjectAdmins, listReleases, listSchemas, listUserIdentityLinks, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, publishPolicy, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, removeOrigin, removePreview, revokeMySession, revokeRelease, revokeSession, rollbackDeployment, setUserPassword, submitFlowStep, zitadelNextGen_exports as t, updateTeam, updateVariables, verifyChallengeProof };
3445
-
3446
- //# sourceMappingURL=zitadelNextGen.mjs.map
1
+ export { t as acceptInvitation, n as addProjectOrigin, r as buildRelease, i as cancelInvitation, a as completeProjectClaim, o as completeUserPasskeyRegistration, s as createAuthAttempt, c as createAuthAttemptChallenge, l as createAuthAttemptHandoff, u as createDeployment, d as createFlow, f as createGrant, p as createInvitation, m as createProject, h as createProjectClaim, g as createRelease, _ as createSession, v as createTeam, y as createUser, b as createUserPasskeyRegistration, x as deactivateTeam, S as deleteGrant, C as deleteUser, w as deleteVariable, T as evaluatePolicy, E as exchangeHandoff, D as getAcceptInvitationUrl, O as getAddProjectOriginUrl, k as getApplication, A as getAuthAttempt, j as getBranding, M as getBuildReleaseUrl, N as getCancelInvitationUrl, P as getCompleteProjectClaimUrl, F as getCompleteUserPasskeyRegistrationUrl, I as getCreateAuthAttemptChallengeUrl, L as getCreateAuthAttemptHandoffUrl, R as getCreateAuthAttemptUrl, z as getCreateDeploymentUrl, B as getCreateFlowUrl, V as getCreateGrantUrl, H as getCreateInvitationUrl, U as getCreateProjectClaimUrl, W as getCreateProjectUrl, G as getCreateReleaseUrl, K as getCreateSessionUrl, q as getCreateTeamUrl, J as getCreateUserPasskeyRegistrationUrl, Y as getCreateUserUrl, X as getDeactivateTeamUrl, Z as getDeleteGrantUrl, Q as getDeleteUserUrl, $ as getDeleteVariableUrl, et as getDeployment, tt as getEvaluatePolicyUrl, nt as getEvent, rt as getExchangeHandoffUrl, it as getFlowDefinition, at as getFlowStep, ot as getGetApplicationUrl, st as getGetAuthAttemptUrl, ct as getGetBrandingUrl, lt as getGetDeploymentUrl, ut as getGetEventUrl, dt as getGetFlowDefinitionUrl, ft as getGetFlowStepUrl, pt as getGetGrantUrl, mt as getGetIdpRevisionUrl, ht as getGetIdpUrl, gt as getGetInvitationUrl, _t as getGetLiveUrl, vt as getGetMyPasswordStateUrl, yt as getGetMySessionCsrfTokenUrl, bt as getGetMySessionUrl, xt as getGetMyUserSchemaUrl, St as getGetMyUserUrl, Ct as getGetOAuthSettingsUrl, wt as getGetPolicyRevisionUrl, Tt as getGetPolicyUrl, Et as getGetProjectClaimStatusUrl, Dt as getGetProjectClaimWindowUrl, Ot as getGetProjectUrl, kt as getGetReadyUrl, At as getGetReleaseUrl, jt as getGetSchemaUrl, Mt as getGetSessionUrl, Nt as getGetTeamUrl, Pt as getGetUserPasswordStateUrl, Ft as getGetUserUrl, It as getGetVariableUrl, Lt as getGrant, Rt as getIdp, zt as getIdpRevision, Bt as getInvitation, Vt as getListBrandingUrl, Ht as getListDeploymentVariablesUrl, Ut as getListDeploymentsUrl, Wt as getListEventsUrl, Gt as getListFlowDefinitionsUrl, Kt as getListIdpRevisionsUrl, qt as getListInvitationsUrl, Jt as getListMyIdentityLinksUrl, Yt as getListMyPasskeysUrl, Xt as getListMyProjectsUrl, Zt as getListMyTeamsUrl, Qt as getListPoliciesUrl, $t as getListPolicyRevisionsUrl, en as getListProjectAdminsUrl, tn as getListProjectPreviewsUrl, nn as getListReleasesUrl, rn as getListSchemasUrl, in as getListUserIdentityLinksUrl, an as getListUserPasskeysUrl, on as getListUserTeamsUrl, sn as getListVariablesUrl, cn as getLive, ln as getLookupInvitationUrl, un as getMyPasswordState, dn as getMySession, fn as getMySessionCsrfToken, pn as getMyUser, mn as getMyUserSchema, hn as getOAuthSettings, gn as getPolicy, _n as getPolicyRevision, vn as getProject, yn as getProjectClaimStatus, bn as getProjectClaimWindow, xn as getPublishApplicationUrl, Sn as getPublishBrandingUrl, Cn as getPublishFlowDefinitionUrl, wn as getPublishIdpUrl, Tn as getPublishPolicyUrl, En as getPublishSchemaUrl, Dn as getQueryGrantsUrl, On as getQueryIdpsUrl, kn as getQueryProjectsUrl, An as getQuerySessionsUrl, jn as getQueryTeamsUrl, Mn as getQueryUsersUrl, Nn as getReady, Pn as getRejectInvitationUrl, Fn as getRelease, In as getRemoveProjectOriginUrl, Ln as getRemoveProjectPreviewUrl, Rn as getRevokeMySessionUrl, zn as getRevokeReleaseUrl, Bn as getRevokeSessionUrl, Vn as getRollbackDeploymentUrl, Hn as getSchema, Un as getSearchUrl, Wn as getSession, Gn as getSetUserPasswordUrl, Kn as getSetVariablesUrl, qn as getSubmitFlowStepUrl, Jn as getTeam, Yn as getUpdateMyUserUrl, Xn as getUpdateProjectUrl, Zn as getUpdateTeamUrl, Qn as getUpdateUserUrl, $n as getUser, er as getUserPasswordState, tr as getVariable, nr as getVerifyAuthAttemptChallengeUrl, rr as listBranding, ir as listDeploymentVariables, ar as listDeployments, or as listEvents, sr as listFlowDefinitions, cr as listIdpRevisions, lr as listInvitations, ur as listMyIdentityLinks, dr as listMyPasskeys, fr as listMyProjects, pr as listMyTeams, mr as listPolicies, hr as listPolicyRevisions, gr as listProjectAdmins, _r as listProjectPreviews, vr as listReleases, yr as listSchemas, br as listUserIdentityLinks, xr as listUserPasskeys, Sr as listUserTeams, Cr as listVariables, wr as lookupInvitation, Tr as publishApplication, Er as publishBranding, Dr as publishFlowDefinition, Or as publishIdp, kr as publishPolicy, Ar as publishSchema, jr as queryGrants, Mr as queryIdps, Nr as queryProjects, Pr as querySessions, Fr as queryTeams, Ir as queryUsers, Lr as rejectInvitation, Rr as removeProjectOrigin, zr as removeProjectPreview, Br as revokeMySession, Vr as revokeRelease, Hr as revokeSession, Ur as rollbackDeployment, Wr as search, Gr as setUserPassword, Kr as setVariables, qr as submitFlowStep, Jr as updateMyUser, Yr as updateProject, Xr as updateTeam, Zr as updateUser, Qr as verifyAuthAttemptChallenge } from "../../zitadelNextGen-DsPFGqLs.mjs";