@zitadel/api 1.0.0-alpha.23 → 1.0.0-alpha.25

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 (1211) hide show
  1. package/README.md +26 -1
  2. package/dist/fetch-DD3lSbnp.d.mts +107 -0
  3. package/dist/fetch-DD3lSbnp.d.mts.map +1 -0
  4. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  5. package/dist/generated/endpoints/zitadelNextGen.mjs +937 -569
  6. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +148 -141
  8. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3888 -1539
  10. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +3787 -1639
  12. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +5612 -3559
  14. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  15. package/dist/generated/model/index.d.mts +2 -2
  16. package/dist/generated/model/index.mjs +428 -16
  17. package/dist/generated/model/index.mjs.map +1 -1
  18. package/dist/index-C1weUrQx.d.mts +39898 -0
  19. package/dist/index-C1weUrQx.d.mts.map +1 -0
  20. package/dist/runtime/api-factory.d.mts +19 -9
  21. package/dist/runtime/api-factory.d.mts.map +1 -1
  22. package/dist/runtime/api-factory.mjs +5 -0
  23. package/dist/runtime/api-factory.mjs.map +1 -1
  24. package/dist/runtime/auth.d.mts +27 -3
  25. package/dist/runtime/auth.d.mts.map +1 -1
  26. package/dist/runtime/auth.mjs +75 -1
  27. package/dist/runtime/auth.mjs.map +1 -1
  28. package/dist/runtime/base-url.d.mts +2 -3
  29. package/dist/runtime/base-url.d.mts.map +1 -1
  30. package/dist/runtime/base-url.mjs.map +1 -1
  31. package/dist/runtime/config.d.mts +7 -8
  32. package/dist/runtime/config.d.mts.map +1 -1
  33. package/dist/runtime/config.mjs.map +1 -1
  34. package/dist/runtime/fetch.d.mts +2 -44
  35. package/dist/runtime/fetch.mjs +147 -11
  36. package/dist/runtime/fetch.mjs.map +1 -1
  37. package/dist/zitadelNextGen-KWjI2Uyj.d.mts +925 -0
  38. package/dist/zitadelNextGen-KWjI2Uyj.d.mts.map +1 -0
  39. package/package.json +11 -5
  40. package/src/generated/endpoints/zitadelNextGen.faker.ts +323 -0
  41. package/src/generated/endpoints/zitadelNextGen.msw.ts +997 -13564
  42. package/src/generated/endpoints/zitadelNextGen.ts +2356 -1417
  43. package/src/generated/endpoints/zitadelNextGen.zod.ts +7110 -15489
  44. package/src/generated/model/beginUserPasskeyRegistration201.ts +11 -9
  45. package/src/generated/model/beginUserPasskeyRegistration201Options.ts +2 -3
  46. package/src/generated/model/beginUserPasskeyRegistration400.ts +2 -2
  47. package/src/generated/model/beginUserPasskeyRegistration400Details.ts +1 -1
  48. package/src/generated/model/beginUserPasskeyRegistration401.ts +2 -2
  49. package/src/generated/model/beginUserPasskeyRegistration401Details.ts +1 -1
  50. package/src/generated/model/beginUserPasskeyRegistration403.ts +2 -2
  51. package/src/generated/model/beginUserPasskeyRegistration403Details.ts +1 -1
  52. package/src/generated/model/beginUserPasskeyRegistration404.ts +2 -2
  53. package/src/generated/model/beginUserPasskeyRegistration404Details.ts +1 -1
  54. package/src/generated/model/beginUserPasskeyRegistration500.ts +2 -2
  55. package/src/generated/model/beginUserPasskeyRegistration500Details.ts +1 -1
  56. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +14 -14
  57. package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +101 -112
  58. package/src/generated/model/completeClaim200.ts +1 -1
  59. package/src/generated/model/completeClaim400.ts +2 -2
  60. package/src/generated/model/completeClaim400Details.ts +1 -1
  61. package/src/generated/model/completeClaim401.ts +4 -5
  62. package/src/generated/model/completeClaim403.ts +29 -22
  63. package/src/generated/model/completeClaim404.ts +2 -2
  64. package/src/generated/model/completeClaim404Details.ts +1 -1
  65. package/src/generated/model/completeClaim409.ts +4 -5
  66. package/src/generated/model/completeClaim409Details.ts +1 -1
  67. package/src/generated/model/completeClaim410.ts +20 -22
  68. package/src/generated/model/completeClaim429.ts +2 -2
  69. package/src/generated/model/completeClaim429Details.ts +1 -1
  70. package/src/generated/model/completeClaimBody.ts +4 -4
  71. package/src/generated/model/completeClaimDefault.ts +2 -2
  72. package/src/generated/model/completeClaimDefaultDetails.ts +1 -1
  73. package/src/generated/model/createAuthAttempt201.ts +49 -44
  74. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +26 -22
  75. package/src/generated/model/createAuthAttempt201ChallengesItemMethod.ts +8 -7
  76. package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +24 -26
  77. package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +9 -10
  78. package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +11 -10
  79. package/src/generated/model/createAuthAttempt201CompletedFactorsItemMethod.ts +7 -6
  80. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +27 -30
  81. package/src/generated/model/createAuthAttempt201RequiredFactorsItem.ts +7 -6
  82. package/src/generated/model/createAuthAttempt201State.ts +11 -12
  83. package/src/generated/model/createAuthAttemptBody.ts +10 -8
  84. package/src/generated/model/createAuthAttemptDefault.ts +47 -52
  85. package/src/generated/model/createBranding201.ts +15 -15
  86. package/src/generated/model/createBranding201Branding.ts +49 -46
  87. package/src/generated/model/createBranding201BrandingLayout.ts +14 -14
  88. package/src/generated/model/createBranding201BrandingShape.ts +10 -11
  89. package/src/generated/model/createBranding201BrandingShapeDensity.ts +6 -6
  90. package/src/generated/model/createBranding201BrandingTheme.ts +28 -22
  91. package/src/generated/model/createBranding201BrandingThemeDark.ts +15 -14
  92. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +113 -126
  93. package/src/generated/model/createBranding201BrandingThemeLight.ts +15 -14
  94. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +113 -126
  95. package/src/generated/model/createBranding201BrandingThemeMode.ts +6 -7
  96. package/src/generated/model/createBranding201BrandingTypography.ts +20 -22
  97. package/src/generated/model/createBranding400.ts +2 -2
  98. package/src/generated/model/createBranding400Details.ts +1 -1
  99. package/src/generated/model/createBrandingBody.ts +49 -46
  100. package/src/generated/model/createBrandingBodyLayout.ts +14 -14
  101. package/src/generated/model/createBrandingBodyShape.ts +10 -11
  102. package/src/generated/model/createBrandingBodyShapeDensity.ts +6 -6
  103. package/src/generated/model/createBrandingBodyTheme.ts +28 -22
  104. package/src/generated/model/createBrandingBodyThemeDark.ts +15 -14
  105. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +113 -126
  106. package/src/generated/model/createBrandingBodyThemeLight.ts +15 -14
  107. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +113 -126
  108. package/src/generated/model/createBrandingBodyThemeMode.ts +6 -7
  109. package/src/generated/model/createBrandingBodyTypography.ts +20 -22
  110. package/src/generated/model/createBrandingDefault.ts +2 -2
  111. package/src/generated/model/createBrandingDefaultDetails.ts +1 -1
  112. package/src/generated/model/createBrandingParams.ts +6 -6
  113. package/src/generated/model/createDeployment200.ts +62 -0
  114. package/src/generated/model/createDeployment200Metadata.ts +58 -0
  115. package/src/generated/model/createDeployment200MetadataDeployedByType.ts +20 -0
  116. package/src/generated/model/createDeployment200MetadataReason.ts +26 -0
  117. package/src/generated/model/createDeployment200Release.ts +44 -0
  118. package/src/generated/model/createDeployment200ReleaseMetadata.ts +43 -0
  119. package/src/generated/model/createDeployment200ReleaseMetadataCreatedByType.ts +20 -0
  120. package/src/generated/model/createDeployment200ReleasePointersItem.ts +56 -0
  121. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +26 -0
  122. package/src/generated/model/createDeployment201.ts +62 -0
  123. package/src/generated/model/createDeployment201Metadata.ts +58 -0
  124. package/src/generated/model/createDeployment201MetadataDeployedByType.ts +20 -0
  125. package/src/generated/model/createDeployment201MetadataReason.ts +26 -0
  126. package/src/generated/model/createDeployment201Release.ts +44 -0
  127. package/src/generated/model/createDeployment201ReleaseMetadata.ts +43 -0
  128. package/src/generated/model/createDeployment201ReleaseMetadataCreatedByType.ts +20 -0
  129. package/src/generated/model/createDeployment201ReleasePointersItem.ts +56 -0
  130. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +26 -0
  131. package/src/generated/model/createDeploymentBody.ts +71 -0
  132. package/src/generated/model/createDeploymentBodyReason.ts +26 -0
  133. package/src/generated/model/createDeploymentDefault.ts +99 -0
  134. package/src/generated/model/createDeploymentParams.ts +15 -0
  135. package/src/generated/model/createFlow201.ts +34 -29
  136. package/src/generated/model/createFlow201Branding.ts +49 -46
  137. package/src/generated/model/createFlow201BrandingLayout.ts +14 -14
  138. package/src/generated/model/createFlow201BrandingShape.ts +10 -11
  139. package/src/generated/model/createFlow201BrandingShapeDensity.ts +6 -6
  140. package/src/generated/model/createFlow201BrandingTheme.ts +28 -22
  141. package/src/generated/model/createFlow201BrandingThemeDark.ts +15 -14
  142. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +113 -126
  143. package/src/generated/model/createFlow201BrandingThemeLight.ts +15 -14
  144. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +113 -126
  145. package/src/generated/model/createFlow201BrandingThemeMode.ts +6 -7
  146. package/src/generated/model/createFlow201BrandingTypography.ts +20 -22
  147. package/src/generated/model/createFlow201Step.ts +90 -50
  148. package/src/generated/model/createFlow201StepActionsItem.ts +24 -22
  149. package/src/generated/model/createFlow201StepActionsItemKind.ts +14 -15
  150. package/src/generated/model/createFlow201StepChallenge.ts +19 -18
  151. package/src/generated/model/createFlow201StepChallengeMethod.ts +5 -5
  152. package/src/generated/model/createFlow201StepChallengeOptions.ts +4 -5
  153. package/src/generated/model/createFlow201StepComplete.ts +7 -8
  154. package/src/generated/model/createFlow201StepFieldsItem.ts +54 -26
  155. package/src/generated/model/createFlow201StepFieldsItemType.ts +17 -18
  156. package/src/generated/model/createFlow201StepFieldsItemValidation.ts +28 -27
  157. package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +11 -12
  158. package/src/generated/model/createFlow201StepGates.ts +24 -24
  159. package/src/generated/model/createFlow201StepGatesConfig.ts +2 -3
  160. package/src/generated/model/createFlow201StepGatesKind.ts +6 -7
  161. package/src/generated/model/createFlow201StepIdentifier.ts +53 -0
  162. package/src/generated/model/createFlow201StepSsoProvidersItem.ts +1 -1
  163. package/src/generated/model/createFlow201StepTexts.ts +2 -3
  164. package/src/generated/model/createFlow400.ts +2 -2
  165. package/src/generated/model/createFlow400Details.ts +1 -1
  166. package/src/generated/model/createFlowBody.ts +20 -19
  167. package/src/generated/model/createFlowBodyHint.ts +1 -1
  168. package/src/generated/model/createFlowBodyPurpose.ts +9 -9
  169. package/src/generated/model/createFlowDefault.ts +128 -142
  170. package/src/generated/model/createFlowDefinition201.ts +19 -17
  171. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +45 -46
  172. package/src/generated/model/createFlowDefinition201FlowDefinitionAudience.ts +4 -5
  173. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +10 -11
  174. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +68 -54
  175. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +30 -28
  176. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +16 -17
  177. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemComplete.ts +7 -8
  178. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +25 -25
  179. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesConfig.ts +2 -3
  180. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +6 -7
  181. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +13 -8
  182. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +38 -36
  183. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +25 -0
  184. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +30 -0
  185. package/src/generated/model/createFlowDefinition201UserSchema.ts +12 -97
  186. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +12 -0
  187. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +97 -0
  188. package/src/generated/model/createFlowDefinition400.ts +2 -2
  189. package/src/generated/model/createFlowDefinition400Details.ts +1 -1
  190. package/src/generated/model/createFlowDefinitionBody.ts +19 -18
  191. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +45 -46
  192. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionAudience.ts +4 -5
  193. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +10 -11
  194. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +68 -54
  195. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +30 -28
  196. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +16 -17
  197. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +7 -8
  198. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +25 -25
  199. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +2 -3
  200. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +6 -7
  201. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +13 -8
  202. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +38 -36
  203. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +25 -0
  204. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +30 -0
  205. package/src/generated/model/createFlowDefinitionDefault.ts +92 -102
  206. package/src/generated/model/createGrant201.ts +24 -22
  207. package/src/generated/model/createGrant201ObjectType.ts +4 -4
  208. package/src/generated/model/createGrant201Relation.ts +6 -6
  209. package/src/generated/model/createGrant201Team.ts +13 -15
  210. package/src/generated/model/createGrant201TeamStatus.ts +8 -9
  211. package/src/generated/model/createGrant201User.ts +31 -27
  212. package/src/generated/model/createGrant201UserAttributes.ts +2 -3
  213. package/src/generated/model/createGrant201UserMetadata.ts +28 -26
  214. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +24 -23
  215. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +21 -0
  216. package/src/generated/model/createGrant201UserMetadataStatus.ts +7 -7
  217. package/src/generated/model/createGrant400.ts +2 -2
  218. package/src/generated/model/createGrant400Details.ts +1 -1
  219. package/src/generated/model/createGrant401.ts +2 -2
  220. package/src/generated/model/createGrant401Details.ts +1 -1
  221. package/src/generated/model/createGrant403.ts +2 -2
  222. package/src/generated/model/createGrant403Details.ts +1 -1
  223. package/src/generated/model/createGrant404.ts +2 -2
  224. package/src/generated/model/createGrant404Details.ts +1 -1
  225. package/src/generated/model/createGrant409.ts +2 -2
  226. package/src/generated/model/createGrant409Details.ts +1 -1
  227. package/src/generated/model/createGrant429.ts +2 -2
  228. package/src/generated/model/createGrant429Details.ts +1 -1
  229. package/src/generated/model/createGrantBody.ts +21 -19
  230. package/src/generated/model/createGrantBodyRelation.ts +6 -6
  231. package/src/generated/model/createGrantBodyTeam.ts +4 -6
  232. package/src/generated/model/createGrantBodyUser.ts +8 -10
  233. package/src/generated/model/createGrantDefault.ts +92 -92
  234. package/src/generated/model/createGrantParams.ts +6 -6
  235. package/src/generated/model/createHandoff200.ts +16 -16
  236. package/src/generated/model/createHandoffDefault.ts +74 -82
  237. package/src/generated/model/createIdp200.ts +19 -16
  238. package/src/generated/model/createIdp200Definition.ts +19 -19
  239. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +2 -2
  240. package/src/generated/model/createIdp200DefinitionOauth2.ts +24 -21
  241. package/src/generated/model/createIdp200DefinitionOauth2StaticAuthorizeParameters.ts +2 -2
  242. package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +4 -4
  243. package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +5 -5
  244. package/src/generated/model/createIdp200DefinitionOidc.ts +30 -29
  245. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +2 -2
  246. package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +5 -5
  247. package/src/generated/model/createIdp200DefinitionProtocol.ts +5 -5
  248. package/src/generated/model/createIdp200DefinitionProvisioning.ts +2 -2
  249. package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +5 -5
  250. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +2 -2
  251. package/src/generated/model/createIdp201.ts +19 -16
  252. package/src/generated/model/createIdp201Definition.ts +19 -19
  253. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +2 -2
  254. package/src/generated/model/createIdp201DefinitionOauth2.ts +24 -21
  255. package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +2 -2
  256. package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +4 -4
  257. package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +5 -5
  258. package/src/generated/model/createIdp201DefinitionOidc.ts +30 -29
  259. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +2 -2
  260. package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +5 -5
  261. package/src/generated/model/createIdp201DefinitionProtocol.ts +5 -5
  262. package/src/generated/model/createIdp201DefinitionProvisioning.ts +2 -2
  263. package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +5 -5
  264. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +2 -2
  265. package/src/generated/model/createIdp400.ts +2 -2
  266. package/src/generated/model/createIdp400Details.ts +1 -1
  267. package/src/generated/model/createIdp401.ts +2 -2
  268. package/src/generated/model/createIdp401Details.ts +1 -1
  269. package/src/generated/model/createIdp403.ts +2 -2
  270. package/src/generated/model/createIdp403Details.ts +1 -1
  271. package/src/generated/model/createIdp404.ts +2 -2
  272. package/src/generated/model/createIdp404Details.ts +1 -1
  273. package/src/generated/model/createIdpBody.ts +2 -2
  274. package/src/generated/model/createIdpBodyIdp.ts +19 -19
  275. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +2 -2
  276. package/src/generated/model/createIdpBodyIdpOauth2.ts +24 -21
  277. package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +2 -2
  278. package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +4 -4
  279. package/src/generated/model/createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts +5 -5
  280. package/src/generated/model/createIdpBodyIdpOidc.ts +30 -29
  281. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +2 -2
  282. package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +5 -5
  283. package/src/generated/model/createIdpBodyIdpProtocol.ts +5 -5
  284. package/src/generated/model/createIdpBodyIdpProvisioning.ts +2 -2
  285. package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +5 -5
  286. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +2 -2
  287. package/src/generated/model/createIdpDefault.ts +74 -32
  288. package/src/generated/model/createIdpParams.ts +6 -6
  289. package/src/generated/model/createProject201.ts +4 -7
  290. package/src/generated/model/createProject429.ts +2 -2
  291. package/src/generated/model/createProject429Details.ts +1 -1
  292. package/src/generated/model/createProjectBody.ts +7 -7
  293. package/src/generated/model/createProjectDefault.ts +110 -122
  294. package/src/generated/model/createRelease200.ts +21 -22
  295. package/src/generated/model/createRelease200Metadata.ts +24 -20
  296. package/src/generated/model/createRelease200MetadataCreatedByType.ts +20 -0
  297. package/src/generated/model/createRelease200PointersItem.ts +31 -33
  298. package/src/generated/model/createRelease200PointersItemKind.ts +13 -14
  299. package/src/generated/model/createRelease201.ts +21 -22
  300. package/src/generated/model/createRelease201Metadata.ts +24 -20
  301. package/src/generated/model/createRelease201MetadataCreatedByType.ts +20 -0
  302. package/src/generated/model/createRelease201PointersItem.ts +31 -33
  303. package/src/generated/model/createRelease201PointersItemKind.ts +13 -14
  304. package/src/generated/model/createReleaseBody.ts +28 -30
  305. package/src/generated/model/createReleaseBodyPointersItem.ts +19 -20
  306. package/src/generated/model/createReleaseBodyPointersItemKind.ts +13 -14
  307. package/src/generated/model/createReleaseDefault.ts +92 -102
  308. package/src/generated/model/createReleaseParams.ts +6 -6
  309. package/src/generated/model/createSchema201.ts +1 -1
  310. package/src/generated/model/createSchemaBody.ts +83 -84
  311. package/src/generated/model/createSchemaDefault.ts +128 -142
  312. package/src/generated/model/createSchemaParams.ts +11 -11
  313. package/src/generated/model/createSession201.ts +16 -15
  314. package/src/generated/model/createSession201Session.ts +48 -43
  315. package/src/generated/model/createSession201SessionFactorsItem.ts +11 -10
  316. package/src/generated/model/createSession201SessionFactorsItemMethod.ts +7 -6
  317. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +27 -30
  318. package/src/generated/model/createSession201SessionMetadata.ts +1 -1
  319. package/src/generated/model/createSession201SessionState.ts +9 -10
  320. package/src/generated/model/createSession201SessionUser.ts +23 -21
  321. package/src/generated/model/createSession201SessionUserAgent.ts +2 -2
  322. package/src/generated/model/createSession400.ts +2 -2
  323. package/src/generated/model/createSession400Details.ts +1 -1
  324. package/src/generated/model/createSessionBody.ts +7 -6
  325. package/src/generated/model/createSessionBodyUserAgent.ts +4 -5
  326. package/src/generated/model/createSessionDefault.ts +92 -102
  327. package/src/generated/model/createTeam201.ts +8 -7
  328. package/src/generated/model/createTeam201Status.ts +8 -8
  329. package/src/generated/model/createTeam400.ts +2 -2
  330. package/src/generated/model/createTeam400Details.ts +1 -1
  331. package/src/generated/model/createTeam401.ts +2 -2
  332. package/src/generated/model/createTeam401Details.ts +1 -1
  333. package/src/generated/model/createTeam403.ts +2 -2
  334. package/src/generated/model/createTeam403Details.ts +1 -1
  335. package/src/generated/model/createTeam404.ts +2 -2
  336. package/src/generated/model/createTeam404Details.ts +1 -1
  337. package/src/generated/model/createTeam409.ts +2 -2
  338. package/src/generated/model/createTeam409Details.ts +1 -1
  339. package/src/generated/model/createTeam429.ts +2 -2
  340. package/src/generated/model/createTeam429Details.ts +1 -1
  341. package/src/generated/model/createTeamBody.ts +5 -5
  342. package/src/generated/model/createTeamDefault.ts +2 -2
  343. package/src/generated/model/createTeamDefaultDetails.ts +1 -1
  344. package/src/generated/model/createTeamParams.ts +6 -6
  345. package/src/generated/model/createUser201.ts +55 -49
  346. package/src/generated/model/createUser201Attributes.ts +2 -3
  347. package/src/generated/model/createUser201Metadata.ts +28 -26
  348. package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +24 -23
  349. package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +21 -0
  350. package/src/generated/model/createUser201MetadataStatus.ts +7 -7
  351. package/src/generated/model/createUser201TeamsItem.ts +12 -12
  352. package/src/generated/model/createUser201TeamsItemMembershipStatus.ts +7 -8
  353. package/src/generated/model/createUser400.ts +2 -2
  354. package/src/generated/model/createUser400Details.ts +1 -1
  355. package/src/generated/model/createUser401.ts +2 -2
  356. package/src/generated/model/createUser401Details.ts +1 -1
  357. package/src/generated/model/createUser403.ts +2 -2
  358. package/src/generated/model/createUser403Details.ts +1 -1
  359. package/src/generated/model/createUser409.ts +2 -2
  360. package/src/generated/model/createUser409Details.ts +1 -1
  361. package/src/generated/model/createUser500.ts +2 -2
  362. package/src/generated/model/createUser500Details.ts +1 -1
  363. package/src/generated/model/createUserBody.ts +17 -18
  364. package/src/generated/model/createUserBodyAttributes.ts +2 -3
  365. package/src/generated/model/createUserDefault.ts +83 -82
  366. package/src/generated/model/createUserParams.ts +19 -20
  367. package/src/generated/model/deleteGrant401.ts +2 -2
  368. package/src/generated/model/deleteGrant401Details.ts +1 -1
  369. package/src/generated/model/deleteGrant403.ts +2 -2
  370. package/src/generated/model/deleteGrant403Details.ts +1 -1
  371. package/src/generated/model/deleteGrant404.ts +2 -2
  372. package/src/generated/model/deleteGrant404Details.ts +1 -1
  373. package/src/generated/model/deleteGrantDefault.ts +65 -62
  374. package/src/generated/model/deleteGrantParams.ts +6 -6
  375. package/src/generated/model/deleteTeam400.ts +2 -2
  376. package/src/generated/model/deleteTeam400Details.ts +1 -1
  377. package/src/generated/model/deleteTeam401.ts +2 -2
  378. package/src/generated/model/deleteTeam401Details.ts +1 -1
  379. package/src/generated/model/deleteTeam403.ts +2 -2
  380. package/src/generated/model/deleteTeam403Details.ts +1 -1
  381. package/src/generated/model/deleteTeam409.ts +2 -2
  382. package/src/generated/model/deleteTeam409Details.ts +1 -1
  383. package/src/generated/model/deleteTeamDefault.ts +2 -2
  384. package/src/generated/model/deleteTeamDefaultDetails.ts +1 -1
  385. package/src/generated/model/deleteUserByID401.ts +2 -2
  386. package/src/generated/model/deleteUserByID401Details.ts +1 -1
  387. package/src/generated/model/deleteUserByID404.ts +2 -2
  388. package/src/generated/model/deleteUserByID404Details.ts +1 -1
  389. package/src/generated/model/deleteUserByIDDefault.ts +65 -62
  390. package/src/generated/model/deleteVariableDefault.ts +56 -62
  391. package/src/generated/model/deleteVariableParams.ts +12 -13
  392. package/src/generated/model/exchangeHandoff200.ts +16 -15
  393. package/src/generated/model/exchangeHandoff200Session.ts +48 -43
  394. package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +11 -10
  395. package/src/generated/model/exchangeHandoff200SessionFactorsItemMethod.ts +7 -6
  396. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +27 -30
  397. package/src/generated/model/exchangeHandoff200SessionMetadata.ts +1 -1
  398. package/src/generated/model/exchangeHandoff200SessionState.ts +9 -10
  399. package/src/generated/model/exchangeHandoff200SessionUser.ts +23 -21
  400. package/src/generated/model/exchangeHandoff200SessionUserAgent.ts +2 -2
  401. package/src/generated/model/exchangeHandoff400.ts +2 -2
  402. package/src/generated/model/exchangeHandoff400Details.ts +1 -1
  403. package/src/generated/model/exchangeHandoff401.ts +2 -2
  404. package/src/generated/model/exchangeHandoff401Details.ts +1 -1
  405. package/src/generated/model/exchangeHandoff410.ts +2 -2
  406. package/src/generated/model/exchangeHandoff410Details.ts +1 -1
  407. package/src/generated/model/exchangeHandoffBody.ts +9 -7
  408. package/src/generated/model/exchangeHandoffDefault.ts +137 -152
  409. package/src/generated/model/exchangeHandoffParams.ts +6 -6
  410. package/src/generated/model/finishUserPasskeyRegistration201.ts +1 -1
  411. package/src/generated/model/finishUserPasskeyRegistration400.ts +2 -2
  412. package/src/generated/model/finishUserPasskeyRegistration400Details.ts +1 -1
  413. package/src/generated/model/finishUserPasskeyRegistration401.ts +2 -2
  414. package/src/generated/model/finishUserPasskeyRegistration401Details.ts +1 -1
  415. package/src/generated/model/finishUserPasskeyRegistration403.ts +2 -2
  416. package/src/generated/model/finishUserPasskeyRegistration403Details.ts +1 -1
  417. package/src/generated/model/finishUserPasskeyRegistration404.ts +2 -2
  418. package/src/generated/model/finishUserPasskeyRegistration404Details.ts +1 -1
  419. package/src/generated/model/finishUserPasskeyRegistration500.ts +2 -2
  420. package/src/generated/model/finishUserPasskeyRegistration500Details.ts +1 -1
  421. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +6 -5
  422. package/src/generated/model/finishUserPasskeyRegistrationBodyAttestation.ts +1 -1
  423. package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +146 -142
  424. package/src/generated/model/getAuthAttempt200.ts +49 -44
  425. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +26 -22
  426. package/src/generated/model/getAuthAttempt200ChallengesItemMethod.ts +8 -7
  427. package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +24 -26
  428. package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +9 -10
  429. package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +11 -10
  430. package/src/generated/model/getAuthAttempt200CompletedFactorsItemMethod.ts +7 -6
  431. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +27 -30
  432. package/src/generated/model/getAuthAttempt200RequiredFactorsItem.ts +7 -6
  433. package/src/generated/model/getAuthAttempt200State.ts +11 -12
  434. package/src/generated/model/getAuthAttemptDefault.ts +38 -42
  435. package/src/generated/model/getBrandingById200.ts +15 -15
  436. package/src/generated/model/getBrandingById200Branding.ts +49 -46
  437. package/src/generated/model/getBrandingById200BrandingLayout.ts +14 -14
  438. package/src/generated/model/getBrandingById200BrandingShape.ts +10 -11
  439. package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +6 -6
  440. package/src/generated/model/getBrandingById200BrandingTheme.ts +28 -22
  441. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +15 -14
  442. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +113 -126
  443. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +15 -14
  444. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +113 -126
  445. package/src/generated/model/getBrandingById200BrandingThemeMode.ts +6 -7
  446. package/src/generated/model/getBrandingById200BrandingTypography.ts +20 -22
  447. package/src/generated/model/getBrandingById404.ts +2 -2
  448. package/src/generated/model/getBrandingById404Details.ts +1 -1
  449. package/src/generated/model/getBrandingByIdDefault.ts +2 -2
  450. package/src/generated/model/getBrandingByIdDefaultDetails.ts +1 -1
  451. package/src/generated/model/getClaimStatus200.ts +18 -21
  452. package/src/generated/model/getClaimStatus401.ts +2 -2
  453. package/src/generated/model/getClaimStatus401Details.ts +1 -1
  454. package/src/generated/model/getClaimStatus403.ts +4 -5
  455. package/src/generated/model/getClaimStatus404.ts +2 -2
  456. package/src/generated/model/getClaimStatus404Details.ts +1 -1
  457. package/src/generated/model/getClaimStatus410.ts +20 -22
  458. package/src/generated/model/getClaimStatus429.ts +2 -2
  459. package/src/generated/model/getClaimStatus429Details.ts +1 -1
  460. package/src/generated/model/getClaimStatusDefault.ts +2 -2
  461. package/src/generated/model/getClaimStatusDefaultDetails.ts +1 -1
  462. package/src/generated/model/getClaimStatusParams.ts +6 -6
  463. package/src/generated/model/getClaimWindow200.ts +8 -8
  464. package/src/generated/model/getClaimWindow404.ts +2 -2
  465. package/src/generated/model/getClaimWindow404Details.ts +1 -1
  466. package/src/generated/model/getClaimWindow429.ts +2 -2
  467. package/src/generated/model/getClaimWindow429Details.ts +1 -1
  468. package/src/generated/model/getClaimWindowDefault.ts +2 -2
  469. package/src/generated/model/getClaimWindowDefaultDetails.ts +1 -1
  470. package/src/generated/model/getClaimWindowParams.ts +6 -6
  471. package/src/generated/model/getDeploymentById200.ts +62 -0
  472. package/src/generated/model/getDeploymentById200Metadata.ts +58 -0
  473. package/src/generated/model/getDeploymentById200MetadataDeployedByType.ts +20 -0
  474. package/src/generated/model/getDeploymentById200MetadataReason.ts +26 -0
  475. package/src/generated/model/getDeploymentById200Release.ts +44 -0
  476. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +43 -0
  477. package/src/generated/model/getDeploymentById200ReleaseMetadataCreatedByType.ts +20 -0
  478. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +56 -0
  479. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +26 -0
  480. package/src/generated/model/getDeploymentByIdDefault.ts +54 -0
  481. package/src/generated/model/getDeploymentByIdParams.ts +15 -0
  482. package/src/generated/model/getEnvironmentByName200.ts +17 -13
  483. package/src/generated/model/getEnvironmentByName200CurrentDeployment.ts +38 -0
  484. package/src/generated/model/getEnvironmentByName200CurrentDeploymentReason.ts +26 -0
  485. package/src/generated/model/getEnvironmentByNameDefault.ts +47 -52
  486. package/src/generated/model/getEnvironmentByNameParams.ts +6 -6
  487. package/src/generated/model/getEvent200.ts +2596 -1943
  488. package/src/generated/model/getEvent401.ts +2 -2
  489. package/src/generated/model/getEvent401Details.ts +1 -1
  490. package/src/generated/model/getEvent403.ts +2 -2
  491. package/src/generated/model/getEvent403Details.ts +1 -1
  492. package/src/generated/model/getEvent404.ts +2 -2
  493. package/src/generated/model/getEvent404Details.ts +1 -1
  494. package/src/generated/model/getEventDefault.ts +2 -2
  495. package/src/generated/model/getEventDefaultDetails.ts +1 -1
  496. package/src/generated/model/getEventParams.ts +6 -6
  497. package/src/generated/model/getFlowDefinition200.ts +19 -17
  498. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +45 -46
  499. package/src/generated/model/getFlowDefinition200FlowDefinitionAudience.ts +4 -5
  500. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +10 -11
  501. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +68 -54
  502. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +30 -28
  503. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +16 -17
  504. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemComplete.ts +7 -8
  505. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +25 -25
  506. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +2 -3
  507. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +6 -7
  508. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +13 -8
  509. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +38 -36
  510. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +25 -0
  511. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +30 -0
  512. package/src/generated/model/getFlowDefinition200UserSchema.ts +12 -97
  513. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +12 -0
  514. package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +97 -0
  515. package/src/generated/model/getFlowDefinitionDefault.ts +65 -72
  516. package/src/generated/model/getFlowStep200.ts +34 -29
  517. package/src/generated/model/getFlowStep200Branding.ts +49 -46
  518. package/src/generated/model/getFlowStep200BrandingLayout.ts +14 -14
  519. package/src/generated/model/getFlowStep200BrandingShape.ts +10 -11
  520. package/src/generated/model/getFlowStep200BrandingShapeDensity.ts +6 -6
  521. package/src/generated/model/getFlowStep200BrandingTheme.ts +28 -22
  522. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +15 -14
  523. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +113 -126
  524. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +15 -14
  525. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +113 -126
  526. package/src/generated/model/getFlowStep200BrandingThemeMode.ts +6 -7
  527. package/src/generated/model/getFlowStep200BrandingTypography.ts +20 -22
  528. package/src/generated/model/getFlowStep200Step.ts +90 -50
  529. package/src/generated/model/getFlowStep200StepActionsItem.ts +24 -22
  530. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +14 -15
  531. package/src/generated/model/getFlowStep200StepChallenge.ts +19 -18
  532. package/src/generated/model/getFlowStep200StepChallengeMethod.ts +5 -5
  533. package/src/generated/model/getFlowStep200StepChallengeOptions.ts +4 -5
  534. package/src/generated/model/getFlowStep200StepComplete.ts +7 -8
  535. package/src/generated/model/getFlowStep200StepFieldsItem.ts +54 -26
  536. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +17 -18
  537. package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +28 -27
  538. package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +11 -12
  539. package/src/generated/model/getFlowStep200StepGates.ts +24 -24
  540. package/src/generated/model/getFlowStep200StepGatesConfig.ts +2 -3
  541. package/src/generated/model/getFlowStep200StepGatesKind.ts +6 -7
  542. package/src/generated/model/getFlowStep200StepIdentifier.ts +53 -0
  543. package/src/generated/model/getFlowStep200StepSsoProvidersItem.ts +1 -1
  544. package/src/generated/model/getFlowStep200StepTexts.ts +2 -3
  545. package/src/generated/model/getFlowStep404.ts +2 -2
  546. package/src/generated/model/getFlowStep404Details.ts +1 -1
  547. package/src/generated/model/getFlowStep409.ts +20 -0
  548. package/src/generated/model/getFlowStep409Details.ts +12 -0
  549. package/src/generated/model/getFlowStep410.ts +2 -2
  550. package/src/generated/model/getFlowStep410Details.ts +1 -1
  551. package/src/generated/model/getFlowStepDefault.ts +272 -112
  552. package/src/generated/model/getGrant200.ts +24 -22
  553. package/src/generated/model/getGrant200ObjectType.ts +4 -4
  554. package/src/generated/model/getGrant200Relation.ts +6 -5
  555. package/src/generated/model/getGrant200Team.ts +13 -15
  556. package/src/generated/model/getGrant200TeamStatus.ts +8 -9
  557. package/src/generated/model/getGrant200User.ts +31 -27
  558. package/src/generated/model/getGrant200UserAttributes.ts +2 -3
  559. package/src/generated/model/getGrant200UserMetadata.ts +28 -26
  560. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +24 -23
  561. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +21 -0
  562. package/src/generated/model/getGrant200UserMetadataStatus.ts +7 -7
  563. package/src/generated/model/getGrant401.ts +2 -2
  564. package/src/generated/model/getGrant401Details.ts +1 -1
  565. package/src/generated/model/getGrant403.ts +2 -2
  566. package/src/generated/model/getGrant403Details.ts +1 -1
  567. package/src/generated/model/getGrant404.ts +2 -2
  568. package/src/generated/model/getGrant404Details.ts +1 -1
  569. package/src/generated/model/getGrantDefault.ts +65 -72
  570. package/src/generated/model/getGrantExpandItem.ts +16 -16
  571. package/src/generated/model/getGrantParams.ts +10 -11
  572. package/src/generated/model/getHealth4xx.ts +2 -2
  573. package/src/generated/model/getHealth4xxDetails.ts +1 -1
  574. package/src/generated/model/getHealthDefault.ts +2 -2
  575. package/src/generated/model/getHealthDefaultDetails.ts +1 -1
  576. package/src/generated/model/getIdpById200.ts +19 -16
  577. package/src/generated/model/getIdpById200Definition.ts +19 -19
  578. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +2 -2
  579. package/src/generated/model/getIdpById200DefinitionOauth2.ts +24 -21
  580. package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +2 -2
  581. package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +4 -4
  582. package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +5 -5
  583. package/src/generated/model/getIdpById200DefinitionOidc.ts +30 -29
  584. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +2 -2
  585. package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +5 -5
  586. package/src/generated/model/getIdpById200DefinitionProtocol.ts +5 -5
  587. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +2 -2
  588. package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +5 -5
  589. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +2 -2
  590. package/src/generated/model/getIdpById401.ts +2 -2
  591. package/src/generated/model/getIdpById401Details.ts +1 -1
  592. package/src/generated/model/getIdpById403.ts +2 -2
  593. package/src/generated/model/getIdpById403Details.ts +1 -1
  594. package/src/generated/model/getIdpById404.ts +2 -2
  595. package/src/generated/model/getIdpById404Details.ts +1 -1
  596. package/src/generated/model/getIdpByIdDefault.ts +47 -32
  597. package/src/generated/model/getIdpByIdParams.ts +6 -6
  598. package/src/generated/model/getIdpRevisionById200.ts +19 -16
  599. package/src/generated/model/getIdpRevisionById200Definition.ts +19 -19
  600. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +2 -2
  601. package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +24 -21
  602. package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +2 -4
  603. package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +4 -4
  604. package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +5 -5
  605. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +30 -29
  606. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +2 -4
  607. package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +5 -5
  608. package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +5 -5
  609. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +2 -2
  610. package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +5 -5
  611. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +2 -2
  612. package/src/generated/model/getIdpRevisionById401.ts +2 -2
  613. package/src/generated/model/getIdpRevisionById401Details.ts +1 -1
  614. package/src/generated/model/getIdpRevisionById403.ts +2 -2
  615. package/src/generated/model/getIdpRevisionById403Details.ts +1 -1
  616. package/src/generated/model/getIdpRevisionById404.ts +2 -2
  617. package/src/generated/model/getIdpRevisionById404Details.ts +1 -1
  618. package/src/generated/model/getIdpRevisionByIdDefault.ts +47 -32
  619. package/src/generated/model/getIdpRevisionByIdParams.ts +6 -6
  620. package/src/generated/model/getLive4xx.ts +2 -2
  621. package/src/generated/model/getLive4xxDetails.ts +1 -1
  622. package/src/generated/model/getLiveDefault.ts +2 -2
  623. package/src/generated/model/getLiveDefaultDetails.ts +1 -1
  624. package/src/generated/model/getMySession200.ts +48 -43
  625. package/src/generated/model/getMySession200FactorsItem.ts +11 -10
  626. package/src/generated/model/getMySession200FactorsItemMethod.ts +7 -6
  627. package/src/generated/model/getMySession200FactorsItemPayload.ts +27 -30
  628. package/src/generated/model/getMySession200Metadata.ts +1 -1
  629. package/src/generated/model/getMySession200State.ts +9 -9
  630. package/src/generated/model/getMySession200User.ts +23 -21
  631. package/src/generated/model/getMySession200UserAgent.ts +2 -2
  632. package/src/generated/model/getMySession401.ts +4 -5
  633. package/src/generated/model/getMySession404.ts +4 -5
  634. package/src/generated/model/getMySessionCsrfToken200.ts +18 -0
  635. package/src/generated/model/getMySessionCsrfToken401.ts +23 -0
  636. package/src/generated/model/getMySessionDefault.ts +38 -42
  637. package/src/generated/model/getMyUser200.ts +55 -49
  638. package/src/generated/model/getMyUser200Attributes.ts +2 -3
  639. package/src/generated/model/getMyUser200Metadata.ts +28 -26
  640. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +24 -23
  641. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  642. package/src/generated/model/getMyUser200MetadataStatus.ts +7 -7
  643. package/src/generated/model/getMyUser200TeamsItem.ts +12 -12
  644. package/src/generated/model/getMyUser200TeamsItemMembershipStatus.ts +7 -8
  645. package/src/generated/model/getMyUser401.ts +2 -2
  646. package/src/generated/model/getMyUser401Details.ts +1 -1
  647. package/src/generated/model/getMyUser404.ts +4 -5
  648. package/src/generated/model/getMyUserDefault.ts +47 -52
  649. package/src/generated/model/getProject200.ts +8 -3
  650. package/src/generated/model/getProject200PasswordHash.ts +42 -0
  651. package/src/generated/model/getProject200PasswordHashAlgorithm.ts +24 -0
  652. package/src/generated/model/getProject200PasswordHashParams.ts +47 -0
  653. package/src/generated/model/getProject200PasswordHashParamsHash.ts +24 -0
  654. package/src/generated/model/getProject401.ts +2 -2
  655. package/src/generated/model/getProject401Details.ts +1 -1
  656. package/src/generated/model/getProject404.ts +2 -2
  657. package/src/generated/model/getProject404Details.ts +1 -1
  658. package/src/generated/model/getProjectDefault.ts +65 -72
  659. package/src/generated/model/getReady4xx.ts +2 -2
  660. package/src/generated/model/getReady4xxDetails.ts +1 -1
  661. package/src/generated/model/getReadyDefault.ts +2 -2
  662. package/src/generated/model/getReadyDefaultDetails.ts +1 -1
  663. package/src/generated/model/getReleaseById200.ts +21 -22
  664. package/src/generated/model/getReleaseById200Metadata.ts +24 -20
  665. package/src/generated/model/getReleaseById200MetadataCreatedByType.ts +20 -0
  666. package/src/generated/model/getReleaseById200PointersItem.ts +31 -33
  667. package/src/generated/model/getReleaseById200PointersItemKind.ts +13 -14
  668. package/src/generated/model/getReleaseByIdDefault.ts +47 -52
  669. package/src/generated/model/getReleaseByIdParams.ts +6 -6
  670. package/src/generated/model/getSchemaById200.ts +15 -15
  671. package/src/generated/model/getSchemaById200Metadata.ts +1 -1
  672. package/src/generated/model/getSchemaById200Schema.ts +68 -67
  673. package/src/generated/model/getSchemaByIdDefault.ts +47 -52
  674. package/src/generated/model/getSchemaByIdParams.ts +12 -6
  675. package/src/generated/model/getSession200.ts +48 -43
  676. package/src/generated/model/getSession200FactorsItem.ts +11 -10
  677. package/src/generated/model/getSession200FactorsItemMethod.ts +7 -6
  678. package/src/generated/model/getSession200FactorsItemPayload.ts +27 -30
  679. package/src/generated/model/getSession200Metadata.ts +1 -1
  680. package/src/generated/model/getSession200State.ts +9 -9
  681. package/src/generated/model/getSession200User.ts +23 -21
  682. package/src/generated/model/getSession200UserAgent.ts +2 -2
  683. package/src/generated/model/getSession401.ts +2 -2
  684. package/src/generated/model/getSession401Details.ts +1 -1
  685. package/src/generated/model/getSession403.ts +2 -2
  686. package/src/generated/model/getSession403Details.ts +1 -1
  687. package/src/generated/model/getSession404.ts +2 -2
  688. package/src/generated/model/getSession404Details.ts +1 -1
  689. package/src/generated/model/getSessionDefault.ts +47 -52
  690. package/src/generated/model/getTeam200.ts +8 -7
  691. package/src/generated/model/getTeam200Status.ts +8 -8
  692. package/src/generated/model/getTeam401.ts +2 -2
  693. package/src/generated/model/getTeam401Details.ts +1 -1
  694. package/src/generated/model/getTeam404.ts +2 -2
  695. package/src/generated/model/getTeam404Details.ts +1 -1
  696. package/src/generated/model/getTeamDefault.ts +2 -2
  697. package/src/generated/model/getTeamDefaultDetails.ts +1 -1
  698. package/src/generated/model/getUserByID200.ts +55 -49
  699. package/src/generated/model/getUserByID200Attributes.ts +2 -3
  700. package/src/generated/model/getUserByID200Metadata.ts +28 -26
  701. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +24 -23
  702. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  703. package/src/generated/model/getUserByID200MetadataStatus.ts +7 -7
  704. package/src/generated/model/getUserByID200TeamsItem.ts +12 -12
  705. package/src/generated/model/getUserByID200TeamsItemMembershipStatus.ts +7 -8
  706. package/src/generated/model/getUserByID401.ts +2 -2
  707. package/src/generated/model/getUserByID401Details.ts +1 -1
  708. package/src/generated/model/getUserByID404.ts +2 -2
  709. package/src/generated/model/getUserByID404Details.ts +1 -1
  710. package/src/generated/model/getUserByIDDefault.ts +47 -52
  711. package/src/generated/model/getUserByIDParams.ts +18 -14
  712. package/src/generated/model/getVariable200.ts +10 -15
  713. package/src/generated/model/getVariableDefault.ts +56 -62
  714. package/src/generated/model/getVariableParams.ts +12 -13
  715. package/src/generated/model/getVariables200.ts +12 -19
  716. package/src/generated/model/getVariablesDefault.ts +56 -62
  717. package/src/generated/model/getVariablesParams.ts +12 -13
  718. package/src/generated/model/index.ts +1156 -1050
  719. package/src/generated/model/initClaim201.ts +8 -7
  720. package/src/generated/model/initClaim401.ts +2 -2
  721. package/src/generated/model/initClaim401Details.ts +1 -1
  722. package/src/generated/model/initClaim404.ts +4 -5
  723. package/src/generated/model/initClaim409.ts +4 -5
  724. package/src/generated/model/initClaim409Details.ts +1 -1
  725. package/src/generated/model/initClaim410.ts +4 -5
  726. package/src/generated/model/initClaimDefault.ts +2 -2
  727. package/src/generated/model/initClaimDefaultDetails.ts +1 -1
  728. package/src/generated/model/issueChallenge201.ts +26 -22
  729. package/src/generated/model/issueChallenge201Method.ts +8 -7
  730. package/src/generated/model/issueChallenge201Payload.ts +24 -26
  731. package/src/generated/model/issueChallenge201State.ts +9 -10
  732. package/src/generated/model/issueChallengeBody.ts +13 -11
  733. package/src/generated/model/issueChallengeBodyMethod.ts +8 -7
  734. package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +2 -2
  735. package/src/generated/model/issueChallengeBodyPasskeyOptionsUserVerification.ts +6 -6
  736. package/src/generated/model/issueChallengeDefault.ts +65 -72
  737. package/src/generated/model/listBranding200Item.ts +1 -1
  738. package/src/generated/model/listBrandingDefault.ts +2 -2
  739. package/src/generated/model/listBrandingDefaultDetails.ts +1 -1
  740. package/src/generated/model/listBrandingParams.ts +6 -6
  741. package/src/generated/model/listDeployments200.ts +25 -0
  742. package/src/generated/model/listDeployments200DeploymentsItem.ts +62 -0
  743. package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +58 -0
  744. package/src/generated/model/listDeployments200DeploymentsItemMetadataDeployedByType.ts +20 -0
  745. package/src/generated/model/listDeployments200DeploymentsItemMetadataReason.ts +26 -0
  746. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +44 -0
  747. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +43 -0
  748. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadataCreatedByType.ts +20 -0
  749. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +56 -0
  750. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +26 -0
  751. package/src/generated/model/listDeploymentsDefault.ts +63 -0
  752. package/src/generated/model/listDeploymentsExpandItem.ts +25 -0
  753. package/src/generated/model/listDeploymentsParams.ts +43 -0
  754. package/src/generated/model/listEnvironments200.ts +6 -5
  755. package/src/generated/model/listEnvironments200EnvironmentsItem.ts +17 -13
  756. package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeployment.ts +38 -0
  757. package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeploymentReason.ts +26 -0
  758. package/src/generated/model/listEnvironmentsDefault.ts +47 -52
  759. package/src/generated/model/listEnvironmentsParams.ts +17 -18
  760. package/src/generated/model/listEvents200.ts +6 -5
  761. package/src/generated/model/listEvents200DataItem.ts +2596 -1943
  762. package/src/generated/model/listEvents400.ts +2 -2
  763. package/src/generated/model/listEvents400Details.ts +1 -1
  764. package/src/generated/model/listEvents401.ts +2 -2
  765. package/src/generated/model/listEvents401Details.ts +1 -1
  766. package/src/generated/model/listEvents403.ts +2 -2
  767. package/src/generated/model/listEvents403Details.ts +1 -1
  768. package/src/generated/model/listEventsCategoryItem.ts +9 -9
  769. package/src/generated/model/listEventsDefault.ts +2 -2
  770. package/src/generated/model/listEventsDefaultDetails.ts +1 -1
  771. package/src/generated/model/listEventsOrder.ts +5 -4
  772. package/src/generated/model/listEventsParams.ts +46 -50
  773. package/src/generated/model/listFlowDefinitions200.ts +2 -2
  774. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +19 -17
  775. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +45 -46
  776. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionAudience.ts +4 -5
  777. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +10 -11
  778. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +68 -54
  779. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +30 -28
  780. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +16 -17
  781. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemComplete.ts +7 -8
  782. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +25 -25
  783. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +3 -6
  784. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +6 -7
  785. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemOnSuccess.ts +13 -8
  786. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +38 -36
  787. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +25 -0
  788. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +30 -0
  789. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +12 -97
  790. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +12 -0
  791. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +97 -0
  792. package/src/generated/model/listFlowDefinitions400.ts +2 -2
  793. package/src/generated/model/listFlowDefinitions400Details.ts +1 -1
  794. package/src/generated/model/listFlowDefinitionsDefault.ts +83 -92
  795. package/src/generated/model/listFlowDefinitionsExpandItem.ts +11 -12
  796. package/src/generated/model/listFlowDefinitionsParams.ts +43 -46
  797. package/src/generated/model/listFlowDefinitionsPurpose.ts +9 -9
  798. package/src/generated/model/listFlowDefinitionsRevisions.ts +5 -5
  799. package/src/generated/model/listIdpRevisions200.ts +7 -7
  800. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +19 -16
  801. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +19 -19
  802. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +2 -2
  803. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +24 -21
  804. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +2 -4
  805. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +4 -4
  806. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +5 -5
  807. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +30 -29
  808. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +2 -4
  809. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcTokenEndpointAuthMethod.ts +5 -5
  810. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +5 -5
  811. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +2 -2
  812. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioningCreation.ts +5 -5
  813. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +2 -4
  814. package/src/generated/model/listIdpRevisions401.ts +2 -2
  815. package/src/generated/model/listIdpRevisions401Details.ts +1 -1
  816. package/src/generated/model/listIdpRevisions403.ts +2 -2
  817. package/src/generated/model/listIdpRevisions403Details.ts +1 -1
  818. package/src/generated/model/listIdpRevisions404.ts +2 -2
  819. package/src/generated/model/listIdpRevisions404Details.ts +1 -1
  820. package/src/generated/model/listIdpRevisionsDefault.ts +47 -32
  821. package/src/generated/model/listIdpRevisionsParams.ts +17 -18
  822. package/src/generated/model/listMyProjects200.ts +7 -6
  823. package/src/generated/model/listMyProjects200ProjectsItem.ts +8 -3
  824. package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +42 -0
  825. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +24 -0
  826. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +47 -0
  827. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +24 -0
  828. package/src/generated/model/listMyProjects400.ts +2 -2
  829. package/src/generated/model/listMyProjects400Details.ts +1 -1
  830. package/src/generated/model/listMyProjects401.ts +4 -5
  831. package/src/generated/model/listMyProjects500.ts +2 -2
  832. package/src/generated/model/listMyProjects500Details.ts +1 -1
  833. package/src/generated/model/listMyProjectsDefault.ts +29 -32
  834. package/src/generated/model/listMyProjectsParams.ts +12 -13
  835. package/src/generated/model/listReleases200.ts +6 -5
  836. package/src/generated/model/listReleases200ReleasesItem.ts +13 -13
  837. package/src/generated/model/listReleases200ReleasesItemMetadata.ts +24 -20
  838. package/src/generated/model/listReleases200ReleasesItemMetadataCreatedByType.ts +20 -0
  839. package/src/generated/model/listReleasesDefault.ts +47 -52
  840. package/src/generated/model/listReleasesParams.ts +17 -18
  841. package/src/generated/model/listSchemas200.ts +6 -5
  842. package/src/generated/model/listSchemas200SchemasItem.ts +15 -15
  843. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +1 -1
  844. package/src/generated/model/listSchemas200SchemasItemSchema.ts +68 -67
  845. package/src/generated/model/listSchemasDefault.ts +47 -52
  846. package/src/generated/model/listSchemasKind.ts +4 -3
  847. package/src/generated/model/listSchemasParams.ts +47 -50
  848. package/src/generated/model/listSchemasRevisions.ts +5 -4
  849. package/src/generated/model/listUserPasskeys200.ts +6 -5
  850. package/src/generated/model/listUserPasskeys200PasskeysItem.ts +1 -1
  851. package/src/generated/model/listUserPasskeys400.ts +2 -2
  852. package/src/generated/model/listUserPasskeys400Details.ts +1 -1
  853. package/src/generated/model/listUserPasskeys401.ts +2 -2
  854. package/src/generated/model/listUserPasskeys401Details.ts +1 -1
  855. package/src/generated/model/listUserPasskeys403.ts +2 -2
  856. package/src/generated/model/listUserPasskeys403Details.ts +1 -1
  857. package/src/generated/model/listUserPasskeys404.ts +2 -2
  858. package/src/generated/model/listUserPasskeys404Details.ts +1 -1
  859. package/src/generated/model/listUserPasskeys500.ts +2 -2
  860. package/src/generated/model/listUserPasskeys500Details.ts +1 -1
  861. package/src/generated/model/listUserPasskeysDefault.ts +47 -52
  862. package/src/generated/model/listUserPasskeysParams.ts +12 -13
  863. package/src/generated/model/listUserTeams200.ts +6 -5
  864. package/src/generated/model/listUserTeams200TeamsItem.ts +12 -12
  865. package/src/generated/model/listUserTeams200TeamsItemMembershipStatus.ts +7 -8
  866. package/src/generated/model/listUserTeams400.ts +2 -2
  867. package/src/generated/model/listUserTeams400Details.ts +1 -1
  868. package/src/generated/model/listUserTeams401.ts +2 -2
  869. package/src/generated/model/listUserTeams401Details.ts +1 -1
  870. package/src/generated/model/listUserTeams403.ts +2 -2
  871. package/src/generated/model/listUserTeams403Details.ts +1 -1
  872. package/src/generated/model/listUserTeams404.ts +2 -2
  873. package/src/generated/model/listUserTeams404Details.ts +1 -1
  874. package/src/generated/model/listUserTeams500.ts +2 -2
  875. package/src/generated/model/listUserTeams500Details.ts +1 -1
  876. package/src/generated/model/listUserTeamsDefault.ts +47 -52
  877. package/src/generated/model/listUserTeamsParams.ts +12 -13
  878. package/src/generated/model/patchMyUser200.ts +55 -49
  879. package/src/generated/model/patchMyUser200Attributes.ts +2 -3
  880. package/src/generated/model/patchMyUser200Metadata.ts +28 -26
  881. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +24 -23
  882. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  883. package/src/generated/model/patchMyUser200MetadataStatus.ts +7 -7
  884. package/src/generated/model/patchMyUser200TeamsItem.ts +12 -12
  885. package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +7 -8
  886. package/src/generated/model/patchMyUser400.ts +2 -2
  887. package/src/generated/model/patchMyUser400Details.ts +1 -1
  888. package/src/generated/model/patchMyUser401.ts +2 -2
  889. package/src/generated/model/patchMyUser401Details.ts +1 -1
  890. package/src/generated/model/patchMyUser404.ts +4 -5
  891. package/src/generated/model/patchMyUser409.ts +2 -2
  892. package/src/generated/model/patchMyUser409Details.ts +1 -1
  893. package/src/generated/model/patchMyUserBody.ts +12 -12
  894. package/src/generated/model/patchMyUserBodyAttributes.ts +2 -3
  895. package/src/generated/model/patchMyUserDefault.ts +92 -82
  896. package/src/generated/model/patchProject200.ts +8 -3
  897. package/src/generated/model/patchProject200PasswordHash.ts +42 -0
  898. package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +24 -0
  899. package/src/generated/model/patchProject200PasswordHashParams.ts +47 -0
  900. package/src/generated/model/patchProject200PasswordHashParamsHash.ts +24 -0
  901. package/src/generated/model/patchProject400.ts +2 -2
  902. package/src/generated/model/patchProject400Details.ts +1 -1
  903. package/src/generated/model/patchProject401.ts +2 -2
  904. package/src/generated/model/patchProject401Details.ts +1 -1
  905. package/src/generated/model/patchProject404.ts +2 -2
  906. package/src/generated/model/patchProject404Details.ts +1 -1
  907. package/src/generated/model/patchProjectBody.ts +8 -1
  908. package/src/generated/model/patchProjectBodyPasswordHash.ts +43 -0
  909. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +24 -0
  910. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +47 -0
  911. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +24 -0
  912. package/src/generated/model/patchProjectDefault.ts +92 -82
  913. package/src/generated/model/patchUserByID200.ts +55 -49
  914. package/src/generated/model/patchUserByID200Attributes.ts +2 -3
  915. package/src/generated/model/patchUserByID200Metadata.ts +28 -26
  916. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +24 -23
  917. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +21 -0
  918. package/src/generated/model/patchUserByID200MetadataStatus.ts +7 -7
  919. package/src/generated/model/patchUserByID200TeamsItem.ts +12 -12
  920. package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +7 -8
  921. package/src/generated/model/patchUserByID400.ts +2 -2
  922. package/src/generated/model/patchUserByID400Details.ts +1 -1
  923. package/src/generated/model/patchUserByID401.ts +2 -2
  924. package/src/generated/model/patchUserByID401Details.ts +1 -1
  925. package/src/generated/model/patchUserByID403.ts +2 -2
  926. package/src/generated/model/patchUserByID403Details.ts +1 -1
  927. package/src/generated/model/patchUserByID404.ts +2 -2
  928. package/src/generated/model/patchUserByID404Details.ts +1 -1
  929. package/src/generated/model/patchUserByID409.ts +2 -2
  930. package/src/generated/model/patchUserByID409Details.ts +1 -1
  931. package/src/generated/model/patchUserByIDBody.ts +20 -21
  932. package/src/generated/model/patchUserByIDBodyAttributes.ts +2 -3
  933. package/src/generated/model/patchUserByIDDefault.ts +83 -82
  934. package/src/generated/model/queryGrants200.ts +7 -6
  935. package/src/generated/model/queryGrants200GrantsItem.ts +24 -22
  936. package/src/generated/model/queryGrants200GrantsItemObjectType.ts +4 -4
  937. package/src/generated/model/queryGrants200GrantsItemRelation.ts +6 -6
  938. package/src/generated/model/queryGrants200GrantsItemTeam.ts +13 -15
  939. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +8 -9
  940. package/src/generated/model/queryGrants200GrantsItemUser.ts +31 -27
  941. package/src/generated/model/queryGrants200GrantsItemUserAttributes.ts +2 -3
  942. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +28 -26
  943. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +24 -23
  944. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +21 -0
  945. package/src/generated/model/queryGrants200GrantsItemUserMetadataStatus.ts +7 -7
  946. package/src/generated/model/queryGrants400.ts +2 -2
  947. package/src/generated/model/queryGrants400Details.ts +1 -1
  948. package/src/generated/model/queryGrants401.ts +2 -2
  949. package/src/generated/model/queryGrants401Details.ts +1 -1
  950. package/src/generated/model/queryGrants403.ts +2 -2
  951. package/src/generated/model/queryGrants403Details.ts +1 -1
  952. package/src/generated/model/queryGrantsBody.ts +17 -15
  953. package/src/generated/model/queryGrantsBodyExpandItem.ts +16 -17
  954. package/src/generated/model/queryGrantsBodyFilterItem.ts +24 -21
  955. package/src/generated/model/queryGrantsBodyFilterItemField.ts +13 -14
  956. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +16 -17
  957. package/src/generated/model/queryGrantsBodySorting.ts +7 -6
  958. package/src/generated/model/queryGrantsBodySortingDirection.ts +5 -5
  959. package/src/generated/model/queryGrantsBodySortingField.ts +7 -8
  960. package/src/generated/model/queryGrantsDefault.ts +92 -92
  961. package/src/generated/model/queryGrantsParams.ts +6 -6
  962. package/src/generated/model/queryIdps200.ts +7 -7
  963. package/src/generated/model/queryIdps200IdpsItem.ts +19 -16
  964. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +19 -19
  965. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +2 -2
  966. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +24 -21
  967. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +2 -4
  968. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +4 -4
  969. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +5 -5
  970. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +30 -29
  971. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +2 -2
  972. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcTokenEndpointAuthMethod.ts +5 -5
  973. package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +5 -5
  974. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +2 -2
  975. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioningCreation.ts +5 -5
  976. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +2 -2
  977. package/src/generated/model/queryIdps400.ts +2 -2
  978. package/src/generated/model/queryIdps400Details.ts +1 -1
  979. package/src/generated/model/queryIdps401.ts +2 -2
  980. package/src/generated/model/queryIdps401Details.ts +1 -1
  981. package/src/generated/model/queryIdps403.ts +2 -2
  982. package/src/generated/model/queryIdps403Details.ts +1 -1
  983. package/src/generated/model/queryIdps404.ts +2 -2
  984. package/src/generated/model/queryIdps404Details.ts +1 -1
  985. package/src/generated/model/queryIdpsBody.ts +11 -10
  986. package/src/generated/model/queryIdpsBodyFilterItem.ts +22 -19
  987. package/src/generated/model/queryIdpsBodyFilterItemField.ts +8 -9
  988. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +16 -17
  989. package/src/generated/model/queryIdpsBodySorting.ts +9 -8
  990. package/src/generated/model/queryIdpsBodySortingDirection.ts +5 -5
  991. package/src/generated/model/queryIdpsBodySortingField.ts +8 -9
  992. package/src/generated/model/queryIdpsDefault.ts +56 -32
  993. package/src/generated/model/queryIdpsParams.ts +6 -6
  994. package/src/generated/model/queryProjects200.ts +7 -6
  995. package/src/generated/model/queryProjects200ProjectsItem.ts +8 -3
  996. package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +42 -0
  997. package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +24 -0
  998. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +47 -0
  999. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +24 -0
  1000. package/src/generated/model/queryProjects400.ts +2 -2
  1001. package/src/generated/model/queryProjects400Details.ts +1 -1
  1002. package/src/generated/model/queryProjects401.ts +2 -2
  1003. package/src/generated/model/queryProjects401Details.ts +1 -1
  1004. package/src/generated/model/queryProjects403.ts +2 -2
  1005. package/src/generated/model/queryProjects403Details.ts +1 -1
  1006. package/src/generated/model/queryProjects429.ts +2 -2
  1007. package/src/generated/model/queryProjects429Details.ts +1 -1
  1008. package/src/generated/model/queryProjectsBody.ts +11 -10
  1009. package/src/generated/model/queryProjectsBodyFilterItem.ts +16 -14
  1010. package/src/generated/model/queryProjectsBodyFilterItemField.ts +4 -4
  1011. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +16 -17
  1012. package/src/generated/model/queryProjectsBodySorting.ts +3 -3
  1013. package/src/generated/model/queryProjectsBodySortingDirection.ts +5 -5
  1014. package/src/generated/model/queryProjectsBodySortingField.ts +4 -4
  1015. package/src/generated/model/queryProjectsDefault.ts +65 -72
  1016. package/src/generated/model/querySessions200.ts +6 -5
  1017. package/src/generated/model/querySessions200SessionsItem.ts +48 -43
  1018. package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +11 -10
  1019. package/src/generated/model/querySessions200SessionsItemFactorsItemMethod.ts +7 -6
  1020. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +27 -30
  1021. package/src/generated/model/querySessions200SessionsItemMetadata.ts +1 -1
  1022. package/src/generated/model/querySessions200SessionsItemState.ts +9 -10
  1023. package/src/generated/model/querySessions200SessionsItemUser.ts +23 -21
  1024. package/src/generated/model/querySessions200SessionsItemUserAgent.ts +2 -2
  1025. package/src/generated/model/querySessions400.ts +2 -2
  1026. package/src/generated/model/querySessions400Details.ts +1 -1
  1027. package/src/generated/model/querySessions401.ts +2 -2
  1028. package/src/generated/model/querySessions401Details.ts +1 -1
  1029. package/src/generated/model/querySessions403.ts +2 -2
  1030. package/src/generated/model/querySessions403Details.ts +1 -1
  1031. package/src/generated/model/querySessionsBody.ts +6 -6
  1032. package/src/generated/model/querySessionsBodyFilterItem.ts +31 -28
  1033. package/src/generated/model/querySessionsBodyFilterItemField.ts +19 -20
  1034. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +16 -17
  1035. package/src/generated/model/querySessionsBodySorting.ts +8 -7
  1036. package/src/generated/model/querySessionsBodySortingDirection.ts +5 -5
  1037. package/src/generated/model/querySessionsBodySortingField.ts +7 -8
  1038. package/src/generated/model/querySessionsDefault.ts +65 -72
  1039. package/src/generated/model/querySessionsParams.ts +6 -6
  1040. package/src/generated/model/queryTeams200.ts +7 -6
  1041. package/src/generated/model/queryTeams200TeamsItem.ts +8 -7
  1042. package/src/generated/model/queryTeams200TeamsItemStatus.ts +8 -9
  1043. package/src/generated/model/queryTeams400.ts +2 -2
  1044. package/src/generated/model/queryTeams400Details.ts +1 -1
  1045. package/src/generated/model/queryTeams401.ts +2 -2
  1046. package/src/generated/model/queryTeams401Details.ts +1 -1
  1047. package/src/generated/model/queryTeams403.ts +2 -2
  1048. package/src/generated/model/queryTeams403Details.ts +1 -1
  1049. package/src/generated/model/queryTeams404.ts +2 -2
  1050. package/src/generated/model/queryTeams404Details.ts +1 -1
  1051. package/src/generated/model/queryTeams429.ts +2 -2
  1052. package/src/generated/model/queryTeams429Details.ts +1 -1
  1053. package/src/generated/model/queryTeamsBody.ts +11 -10
  1054. package/src/generated/model/queryTeamsBodyFilterItem.ts +22 -19
  1055. package/src/generated/model/queryTeamsBodyFilterItemField.ts +9 -10
  1056. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +16 -17
  1057. package/src/generated/model/queryTeamsBodySorting.ts +9 -8
  1058. package/src/generated/model/queryTeamsBodySortingDirection.ts +5 -5
  1059. package/src/generated/model/queryTeamsBodySortingField.ts +9 -10
  1060. package/src/generated/model/queryTeamsDefault.ts +2 -2
  1061. package/src/generated/model/queryTeamsDefaultDetails.ts +1 -1
  1062. package/src/generated/model/queryTeamsParams.ts +6 -6
  1063. package/src/generated/model/queryUsers200.ts +6 -5
  1064. package/src/generated/model/queryUsers200UsersItem.ts +55 -49
  1065. package/src/generated/model/queryUsers200UsersItemAttributes.ts +2 -3
  1066. package/src/generated/model/queryUsers200UsersItemMetadata.ts +28 -26
  1067. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +24 -23
  1068. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +21 -0
  1069. package/src/generated/model/queryUsers200UsersItemMetadataStatus.ts +7 -7
  1070. package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +12 -12
  1071. package/src/generated/model/queryUsers200UsersItemTeamsItemMembershipStatus.ts +7 -8
  1072. package/src/generated/model/queryUsers400.ts +2 -2
  1073. package/src/generated/model/queryUsers400Details.ts +1 -1
  1074. package/src/generated/model/queryUsers401.ts +2 -2
  1075. package/src/generated/model/queryUsers401Details.ts +1 -1
  1076. package/src/generated/model/queryUsers403.ts +2 -2
  1077. package/src/generated/model/queryUsers403Details.ts +1 -1
  1078. package/src/generated/model/queryUsersBody.ts +16 -14
  1079. package/src/generated/model/queryUsersBodyExpandItem.ts +35 -30
  1080. package/src/generated/model/queryUsersBodyFilterItem.ts +47 -41
  1081. package/src/generated/model/queryUsersBodyFilterItemField.ts +37 -35
  1082. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +16 -17
  1083. package/src/generated/model/queryUsersBodySorting.ts +11 -10
  1084. package/src/generated/model/queryUsersBodySortingDirection.ts +5 -5
  1085. package/src/generated/model/queryUsersBodySortingField.ts +13 -14
  1086. package/src/generated/model/queryUsersDefault.ts +65 -62
  1087. package/src/generated/model/queryUsersParams.ts +16 -0
  1088. package/src/generated/model/revokeMySession401.ts +4 -5
  1089. package/src/generated/model/revokeMySessionDefault.ts +56 -52
  1090. package/src/generated/model/revokeSession401.ts +2 -2
  1091. package/src/generated/model/revokeSession401Details.ts +1 -1
  1092. package/src/generated/model/revokeSession403.ts +2 -2
  1093. package/src/generated/model/revokeSession403Details.ts +1 -1
  1094. package/src/generated/model/revokeSessionDefault.ts +56 -62
  1095. package/src/generated/model/setUserPassword400.ts +2 -2
  1096. package/src/generated/model/setUserPassword400Details.ts +1 -1
  1097. package/src/generated/model/setUserPassword404.ts +2 -2
  1098. package/src/generated/model/setUserPassword404Details.ts +1 -1
  1099. package/src/generated/model/setUserPassword500.ts +2 -2
  1100. package/src/generated/model/setUserPassword500Details.ts +1 -1
  1101. package/src/generated/model/setUserPasswordBody.ts +1 -5
  1102. package/src/generated/model/setUserPasswordDefault.ts +83 -72
  1103. package/src/generated/model/submitFlowStep200.ts +34 -29
  1104. package/src/generated/model/submitFlowStep200Branding.ts +49 -46
  1105. package/src/generated/model/submitFlowStep200BrandingLayout.ts +14 -14
  1106. package/src/generated/model/submitFlowStep200BrandingShape.ts +10 -11
  1107. package/src/generated/model/submitFlowStep200BrandingShapeDensity.ts +6 -6
  1108. package/src/generated/model/submitFlowStep200BrandingTheme.ts +28 -22
  1109. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +15 -14
  1110. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +113 -126
  1111. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +15 -14
  1112. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +113 -126
  1113. package/src/generated/model/submitFlowStep200BrandingThemeMode.ts +6 -7
  1114. package/src/generated/model/submitFlowStep200BrandingTypography.ts +20 -22
  1115. package/src/generated/model/submitFlowStep200Step.ts +90 -50
  1116. package/src/generated/model/submitFlowStep200StepActionsItem.ts +24 -22
  1117. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +14 -15
  1118. package/src/generated/model/submitFlowStep200StepChallenge.ts +19 -18
  1119. package/src/generated/model/submitFlowStep200StepChallengeMethod.ts +5 -5
  1120. package/src/generated/model/submitFlowStep200StepChallengeOptions.ts +4 -5
  1121. package/src/generated/model/submitFlowStep200StepComplete.ts +7 -8
  1122. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +54 -26
  1123. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +17 -18
  1124. package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +28 -27
  1125. package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +11 -12
  1126. package/src/generated/model/submitFlowStep200StepGates.ts +24 -24
  1127. package/src/generated/model/submitFlowStep200StepGatesConfig.ts +2 -3
  1128. package/src/generated/model/submitFlowStep200StepGatesKind.ts +6 -7
  1129. package/src/generated/model/submitFlowStep200StepIdentifier.ts +53 -0
  1130. package/src/generated/model/submitFlowStep200StepSsoProvidersItem.ts +1 -1
  1131. package/src/generated/model/submitFlowStep200StepTexts.ts +2 -3
  1132. package/src/generated/model/submitFlowStep400.ts +34 -29
  1133. package/src/generated/model/submitFlowStep400Branding.ts +49 -46
  1134. package/src/generated/model/submitFlowStep400BrandingLayout.ts +14 -14
  1135. package/src/generated/model/submitFlowStep400BrandingShape.ts +10 -11
  1136. package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +6 -6
  1137. package/src/generated/model/submitFlowStep400BrandingTheme.ts +28 -22
  1138. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +15 -14
  1139. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +113 -126
  1140. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +15 -14
  1141. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +113 -126
  1142. package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +6 -7
  1143. package/src/generated/model/submitFlowStep400BrandingTypography.ts +20 -22
  1144. package/src/generated/model/submitFlowStep400Step.ts +90 -50
  1145. package/src/generated/model/submitFlowStep400StepActionsItem.ts +24 -22
  1146. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +14 -15
  1147. package/src/generated/model/submitFlowStep400StepChallenge.ts +19 -18
  1148. package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +5 -5
  1149. package/src/generated/model/submitFlowStep400StepChallengeOptions.ts +4 -5
  1150. package/src/generated/model/submitFlowStep400StepComplete.ts +7 -8
  1151. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +54 -26
  1152. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +17 -18
  1153. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +28 -27
  1154. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +11 -12
  1155. package/src/generated/model/submitFlowStep400StepGates.ts +24 -24
  1156. package/src/generated/model/submitFlowStep400StepGatesConfig.ts +2 -3
  1157. package/src/generated/model/submitFlowStep400StepGatesKind.ts +6 -7
  1158. package/src/generated/model/submitFlowStep400StepIdentifier.ts +53 -0
  1159. package/src/generated/model/submitFlowStep400StepSsoProvidersItem.ts +1 -1
  1160. package/src/generated/model/submitFlowStep400StepTexts.ts +2 -3
  1161. package/src/generated/model/submitFlowStep409.ts +2 -2
  1162. package/src/generated/model/submitFlowStep409Details.ts +1 -1
  1163. package/src/generated/model/submitFlowStepBody.ts +35 -20
  1164. package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +12 -11
  1165. package/src/generated/model/submitFlowStepBodyChallengeResponseProof.ts +2 -3
  1166. package/src/generated/model/submitFlowStepBodyFields.ts +1 -2
  1167. package/src/generated/model/submitFlowStepBodyGateProofs.ts +3 -4
  1168. package/src/generated/model/submitFlowStepDefault.ts +263 -262
  1169. package/src/generated/model/updateTeam200.ts +8 -7
  1170. package/src/generated/model/updateTeam200Status.ts +8 -8
  1171. package/src/generated/model/updateTeam400.ts +2 -2
  1172. package/src/generated/model/updateTeam400Details.ts +1 -1
  1173. package/src/generated/model/updateTeam401.ts +2 -2
  1174. package/src/generated/model/updateTeam401Details.ts +1 -1
  1175. package/src/generated/model/updateTeam403.ts +2 -2
  1176. package/src/generated/model/updateTeam403Details.ts +1 -1
  1177. package/src/generated/model/updateTeam404.ts +2 -2
  1178. package/src/generated/model/updateTeam404Details.ts +1 -1
  1179. package/src/generated/model/updateTeam409.ts +2 -2
  1180. package/src/generated/model/updateTeam409Details.ts +1 -1
  1181. package/src/generated/model/updateTeamBody.ts +5 -5
  1182. package/src/generated/model/updateTeamDefault.ts +2 -2
  1183. package/src/generated/model/updateTeamDefaultDetails.ts +1 -1
  1184. package/src/generated/model/updateVariables200.ts +12 -19
  1185. package/src/generated/model/updateVariablesBody.ts +44 -50
  1186. package/src/generated/model/updateVariablesDefault.ts +119 -132
  1187. package/src/generated/model/updateVariablesParams.ts +12 -13
  1188. package/src/generated/model/verifyChallengeProof200.ts +49 -44
  1189. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +26 -22
  1190. package/src/generated/model/verifyChallengeProof200ChallengesItemMethod.ts +8 -7
  1191. package/src/generated/model/verifyChallengeProof200ChallengesItemPayload.ts +24 -26
  1192. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +9 -10
  1193. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +11 -10
  1194. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemMethod.ts +7 -6
  1195. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +27 -30
  1196. package/src/generated/model/verifyChallengeProof200RequiredFactorsItem.ts +7 -6
  1197. package/src/generated/model/verifyChallengeProof200State.ts +11 -12
  1198. package/src/generated/model/verifyChallengeProofBody.ts +17 -21
  1199. package/src/generated/model/verifyChallengeProofDefault.ts +146 -142
  1200. package/src/runtime/api-factory.ts +13 -0
  1201. package/src/runtime/auth.ts +95 -0
  1202. package/src/runtime/base-url.spec.ts +33 -2
  1203. package/src/runtime/config.spec.ts +5 -7
  1204. package/src/runtime/fetch.spec.ts +358 -0
  1205. package/src/runtime/fetch.ts +192 -6
  1206. package/dist/index-ruwZ9xDe.d.mts +0 -30023
  1207. package/dist/index-ruwZ9xDe.d.mts.map +0 -1
  1208. package/dist/runtime/fetch.d.mts.map +0 -1
  1209. package/dist/zitadelNextGen-DPyZep6V.d.mts +0 -893
  1210. package/dist/zitadelNextGen-DPyZep6V.d.mts.map +0 -1
  1211. /package/dist/{chunk-CfYAbeIz.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -0
@@ -1,9 +1,9 @@
1
- import { t as __exportAll } from "../../chunk-CfYAbeIz.mjs";
1
+ import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { getProxyPath } from "../../runtime/base-url.mjs";
3
3
  import { customFetch } from "../../runtime/fetch.mjs";
4
4
  //#region src/generated/endpoints/zitadelNextGen.ts
5
5
  /**
6
- * Generated by orval v8.10.0 🍺
6
+ * Generated by orval 🍺
7
7
  * Do not edit manually.
8
8
  * Zitadel NextGen
9
9
  * This is the next generation of the Zitadel identity platform.
@@ -14,6 +14,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
14
14
  completeClaim: () => completeClaim,
15
15
  createAuthAttempt: () => createAuthAttempt,
16
16
  createBranding: () => createBranding,
17
+ createDeployment: () => createDeployment,
17
18
  createFlow: () => createFlow,
18
19
  createFlowDefinition: () => createFlowDefinition,
19
20
  createGrant: () => createGrant,
@@ -39,6 +40,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
39
40
  getCompleteClaimUrl: () => getCompleteClaimUrl,
40
41
  getCreateAuthAttemptUrl: () => getCreateAuthAttemptUrl,
41
42
  getCreateBrandingUrl: () => getCreateBrandingUrl,
43
+ getCreateDeploymentUrl: () => getCreateDeploymentUrl,
42
44
  getCreateFlowDefinitionUrl: () => getCreateFlowDefinitionUrl,
43
45
  getCreateFlowUrl: () => getCreateFlowUrl,
44
46
  getCreateGrantUrl: () => getCreateGrantUrl,
@@ -54,6 +56,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
54
56
  getDeleteTeamUrl: () => getDeleteTeamUrl,
55
57
  getDeleteUserByIDUrl: () => getDeleteUserByIDUrl,
56
58
  getDeleteVariableUrl: () => getDeleteVariableUrl,
59
+ getDeploymentById: () => getDeploymentById,
57
60
  getEnvironmentByName: () => getEnvironmentByName,
58
61
  getEvent: () => getEvent,
59
62
  getExchangeHandoffUrl: () => getExchangeHandoffUrl,
@@ -64,6 +67,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
64
67
  getGetBrandingByIdUrl: () => getGetBrandingByIdUrl,
65
68
  getGetClaimStatusUrl: () => getGetClaimStatusUrl,
66
69
  getGetClaimWindowUrl: () => getGetClaimWindowUrl,
70
+ getGetDeploymentByIdUrl: () => getGetDeploymentByIdUrl,
67
71
  getGetEnvironmentByNameUrl: () => getGetEnvironmentByNameUrl,
68
72
  getGetEventUrl: () => getGetEventUrl,
69
73
  getGetFlowDefinitionUrl: () => getGetFlowDefinitionUrl,
@@ -73,6 +77,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
73
77
  getGetIdpByIdUrl: () => getGetIdpByIdUrl,
74
78
  getGetIdpRevisionByIdUrl: () => getGetIdpRevisionByIdUrl,
75
79
  getGetLiveUrl: () => getGetLiveUrl,
80
+ getGetMySessionCsrfTokenUrl: () => getGetMySessionCsrfTokenUrl,
76
81
  getGetMySessionUrl: () => getGetMySessionUrl,
77
82
  getGetMyUserUrl: () => getGetMyUserUrl,
78
83
  getGetProjectUrl: () => getGetProjectUrl,
@@ -91,6 +96,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
91
96
  getInitClaimUrl: () => getInitClaimUrl,
92
97
  getIssueChallengeUrl: () => getIssueChallengeUrl,
93
98
  getListBrandingUrl: () => getListBrandingUrl,
99
+ getListDeploymentsUrl: () => getListDeploymentsUrl,
94
100
  getListEnvironmentsUrl: () => getListEnvironmentsUrl,
95
101
  getListEventsUrl: () => getListEventsUrl,
96
102
  getListFlowDefinitionsUrl: () => getListFlowDefinitionsUrl,
@@ -102,6 +108,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
102
108
  getListUserTeamsUrl: () => getListUserTeamsUrl,
103
109
  getLive: () => getLive,
104
110
  getMySession: () => getMySession,
111
+ getMySessionCsrfToken: () => getMySessionCsrfToken,
105
112
  getMyUser: () => getMyUser,
106
113
  getPatchMyUserUrl: () => getPatchMyUserUrl,
107
114
  getPatchProjectUrl: () => getPatchProjectUrl,
@@ -131,6 +138,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
131
138
  initClaim: () => initClaim,
132
139
  issueChallenge: () => issueChallenge,
133
140
  listBranding: () => listBranding,
141
+ listDeployments: () => listDeployments,
134
142
  listEnvironments: () => listEnvironments,
135
143
  listEvents: () => listEvents,
136
144
  listFlowDefinitions: () => listFlowDefinitions,
@@ -199,7 +207,7 @@ const getReady = async (options) => {
199
207
  const getCreateUserUrl = (params) => {
200
208
  const normalizedParams = new URLSearchParams();
201
209
  Object.entries(params || {}).forEach(([key, value]) => {
202
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
210
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
203
211
  });
204
212
  const stringifiedParams = normalizedParams.toString();
205
213
  return stringifiedParams.length > 0 ? `${getProxyPath()}/users?${stringifiedParams}` : `${getProxyPath()}/users`;
@@ -208,40 +216,58 @@ const getCreateUserUrl = (params) => {
208
216
  * @summary Create user
209
217
  */
210
218
  const createUser = async (createUserBody, params, options) => {
219
+ const getHeaders = (h) => {
220
+ if (!h) return {};
221
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
222
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
223
+ const headers = {};
224
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
225
+ return headers;
226
+ };
211
227
  return customFetch(getCreateUserUrl(params), {
212
228
  ...options,
213
229
  method: "POST",
214
230
  headers: {
215
231
  "Content-Type": "application/json",
216
- ...options?.headers
232
+ ...getHeaders(options?.headers)
217
233
  },
218
234
  body: JSON.stringify(createUserBody)
219
235
  });
220
236
  };
221
- const getQueryUsersUrl = () => {
222
- return `${getProxyPath()}/users/query`;
237
+ const getQueryUsersUrl = (params) => {
238
+ const normalizedParams = new URLSearchParams();
239
+ Object.entries(params || {}).forEach(([key, value]) => {
240
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
241
+ });
242
+ const stringifiedParams = normalizedParams.toString();
243
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/users/query?${stringifiedParams}` : `${getProxyPath()}/users/query`;
223
244
  };
224
245
  /**
225
246
  * Returns the users of a project, paginated with a cursor.
226
-
227
- The project comes from the credential, not from a parameter: the
228
- operation is bound to the credential's home project by construction
229
- (oauth2 secret or user-bound session). This is why it takes no
230
- `project_id`, unlike the other query endpoints.
231
-
232
- Accepts either a project secret (`oauth2`) or a user-bound Console
233
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
234
- is a follow-up (#1140).
235
-
247
+ *
248
+ * `project_id` names the project to list; without it, the credential's own
249
+ * project is listed.
250
+ *
251
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
252
+ * session cookie (`nextgenSession`). Cookie-authenticated requests
253
+ * follow the scheme's CSRF rules (`nextgenSession`).
236
254
  * @summary Query users
237
255
  */
238
- const queryUsers = async (queryUsersBody, options) => {
239
- return customFetch(getQueryUsersUrl(), {
256
+ const queryUsers = async (queryUsersBody, params, options) => {
257
+ const getHeaders = (h) => {
258
+ if (!h) return {};
259
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
260
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
261
+ const headers = {};
262
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
263
+ return headers;
264
+ };
265
+ return customFetch(getQueryUsersUrl(params), {
240
266
  ...options,
241
267
  method: "POST",
242
268
  headers: {
243
269
  "Content-Type": "application/json",
244
- ...options?.headers
270
+ ...getHeaders(options?.headers)
245
271
  },
246
272
  body: JSON.stringify(queryUsersBody)
247
273
  });
@@ -249,10 +275,10 @@ const queryUsers = async (queryUsersBody, options) => {
249
275
  const getGetUserByIDUrl = (userId, params) => {
250
276
  const normalizedParams = new URLSearchParams();
251
277
  Object.entries(params || {}).forEach(([key, value]) => {
252
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
278
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
253
279
  });
254
280
  const stringifiedParams = normalizedParams.toString();
255
- return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}?${stringifiedParams}` : `${getProxyPath()}/users/${userId}`;
281
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}?${stringifiedParams}` : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
256
282
  };
257
283
  /**
258
284
  * @summary Get user by ID
@@ -264,29 +290,36 @@ const getUserByID = async (userId, params, options) => {
264
290
  });
265
291
  };
266
292
  const getPatchUserByIDUrl = (userId) => {
267
- return `${getProxyPath()}/users/${userId}`;
293
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
268
294
  };
269
295
  /**
270
296
  * Partially updates a user's schema-defined attributes, and optionally
271
- moves the user to another registered schema. The merged result is
272
- validated against the schema before commit. Concurrent writes are
273
- last-write-wins.
274
-
297
+ * moves the user to another registered schema. The merged result is
298
+ * validated against the schema before commit. Concurrent writes are
299
+ * last-write-wins.
275
300
  * @summary Update user by ID
276
301
  */
277
302
  const patchUserByID = async (userId, patchUserByIDBody, options) => {
303
+ const getHeaders = (h) => {
304
+ if (!h) return {};
305
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
306
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
307
+ const headers = {};
308
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
309
+ return headers;
310
+ };
278
311
  return customFetch(getPatchUserByIDUrl(userId), {
279
312
  ...options,
280
313
  method: "PATCH",
281
314
  headers: {
282
315
  "Content-Type": "application/json",
283
- ...options?.headers
316
+ ...getHeaders(options?.headers)
284
317
  },
285
318
  body: JSON.stringify(patchUserByIDBody)
286
319
  });
287
320
  };
288
321
  const getDeleteUserByIDUrl = (userId) => {
289
- return `${getProxyPath()}/users/${userId}`;
322
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
290
323
  };
291
324
  /**
292
325
  * @summary Delete user by ID
@@ -300,10 +333,10 @@ const deleteUserByID = async (userId, options) => {
300
333
  const getListUserPasskeysUrl = (userId, params) => {
301
334
  const normalizedParams = new URLSearchParams();
302
335
  Object.entries(params || {}).forEach(([key, value]) => {
303
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
336
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
304
337
  });
305
338
  const stringifiedParams = normalizedParams.toString();
306
- return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/passkeys?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/passkeys`;
339
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys?${stringifiedParams}` : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys`;
307
340
  };
308
341
  /**
309
342
  * @summary List user passkeys
@@ -315,65 +348,87 @@ const listUserPasskeys = async (userId, params, options) => {
315
348
  });
316
349
  };
317
350
  const getBeginUserPasskeyRegistrationUrl = (userId) => {
318
- return `${getProxyPath()}/users/${userId}/passkeys/registrations`;
351
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations`;
319
352
  };
320
353
  /**
321
354
  * Starts a WebAuthn registration ceremony for the user and returns the
322
- creation options for `navigator.credentials.create()`. Complete the
323
- ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
324
- five minutes. Credentials already registered for the user are excluded
325
- automatically.
326
-
355
+ * creation options for `navigator.credentials.create()`. Complete the
356
+ * ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
357
+ * five minutes. Credentials already registered for the user are excluded
358
+ * automatically.
327
359
  * @summary Begin passkey registration
328
360
  */
329
361
  const beginUserPasskeyRegistration = async (userId, beginUserPasskeyRegistrationBody, options) => {
362
+ const getHeaders = (h) => {
363
+ if (!h) return {};
364
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
365
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
366
+ const headers = {};
367
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
368
+ return headers;
369
+ };
330
370
  return customFetch(getBeginUserPasskeyRegistrationUrl(userId), {
331
371
  ...options,
332
372
  method: "POST",
333
373
  headers: {
334
374
  "Content-Type": "application/json",
335
- ...options?.headers
375
+ ...getHeaders(options?.headers)
336
376
  },
337
377
  body: JSON.stringify(beginUserPasskeyRegistrationBody)
338
378
  });
339
379
  };
340
380
  const getFinishUserPasskeyRegistrationUrl = (userId, registrationId) => {
341
- return `${getProxyPath()}/users/${userId}/passkeys/registrations/${registrationId}`;
381
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations/${encodeURIComponent(String(registrationId))}`;
342
382
  };
343
383
  /**
344
384
  * Verifies the attestation against the ceremony started by
345
- `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
346
- rejected attestation counts against the ceremony's failure budget and the
347
- ceremony stays open for a retry. An expired ceremony surfaces as
348
- `att.stale_challenge`; an unknown or already-consumed registration id
349
- surfaces as `att.not_found`.
350
-
385
+ * `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
386
+ * rejected attestation counts against the ceremony's failure budget and the
387
+ * ceremony stays open for a retry. An expired ceremony surfaces as
388
+ * `att.stale_challenge`; an unknown or already-consumed registration id
389
+ * surfaces as `att.not_found`.
351
390
  * @summary Finish passkey registration
352
391
  */
353
392
  const finishUserPasskeyRegistration = async (userId, registrationId, finishUserPasskeyRegistrationBody, options) => {
393
+ const getHeaders = (h) => {
394
+ if (!h) return {};
395
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
396
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
397
+ const headers = {};
398
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
399
+ return headers;
400
+ };
354
401
  return customFetch(getFinishUserPasskeyRegistrationUrl(userId, registrationId), {
355
402
  ...options,
356
403
  method: "POST",
357
404
  headers: {
358
405
  "Content-Type": "application/json",
359
- ...options?.headers
406
+ ...getHeaders(options?.headers)
360
407
  },
361
408
  body: JSON.stringify(finishUserPasskeyRegistrationBody)
362
409
  });
363
410
  };
364
411
  const getSetUserPasswordUrl = (userId) => {
365
- return `${getProxyPath()}/users/${userId}/password`;
412
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/password`;
366
413
  };
367
414
  /**
368
415
  * @summary Set user password
369
416
  */
370
417
  const setUserPassword = async (userId, setUserPasswordBody, options) => {
418
+ const getHeaders = (h) => {
419
+ if (!h) return {};
420
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
421
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
422
+ const headers = {};
423
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
424
+ return headers;
425
+ };
371
426
  return customFetch(getSetUserPasswordUrl(userId), {
372
427
  ...options,
373
428
  method: "PUT",
374
429
  headers: {
375
430
  "Content-Type": "application/json",
376
- ...options?.headers
431
+ ...getHeaders(options?.headers)
377
432
  },
378
433
  body: JSON.stringify(setUserPasswordBody)
379
434
  });
@@ -381,20 +436,19 @@ const setUserPassword = async (userId, setUserPasswordBody, options) => {
381
436
  const getListUserTeamsUrl = (userId, params) => {
382
437
  const normalizedParams = new URLSearchParams();
383
438
  Object.entries(params || {}).forEach(([key, value]) => {
384
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
439
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
385
440
  });
386
441
  const stringifiedParams = normalizedParams.toString();
387
- return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/teams?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/teams`;
442
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/teams?${stringifiedParams}` : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/teams`;
388
443
  };
389
444
  /**
390
445
  * The user's team roster, ordered by team name. Each entry carries the
391
- team's name, so a client renders a page without resolving ids one by one.
392
-
393
- This is the N:N roster and it is not lifecycle ownership: the single team
394
- that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
395
- on the user read endpoints. Memberships the user was removed from are not
396
- returned.
397
-
446
+ * team's name, so a client renders a page without resolving ids one by one.
447
+ *
448
+ * This is the N:N roster and it is not lifecycle ownership: the single team
449
+ * that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
450
+ * on the user read endpoints. Memberships the user was removed from are not
451
+ * returned.
398
452
  * @summary List the teams a user belongs to
399
453
  */
400
454
  const listUserTeams = async (userId, params, options) => {
@@ -420,18 +474,25 @@ const getPatchMyUserUrl = () => {
420
474
  };
421
475
  /**
422
476
  * Partially updates the caller's own schema-defined attributes. The merged
423
- result is validated against the user's schema before commit. Concurrent
424
- writes are last-write-wins.
425
-
477
+ * result is validated against the user's schema before commit. Concurrent
478
+ * writes are last-write-wins.
426
479
  * @summary Update my user information
427
480
  */
428
481
  const patchMyUser = async (patchMyUserBody, options) => {
482
+ const getHeaders = (h) => {
483
+ if (!h) return {};
484
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
485
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
486
+ const headers = {};
487
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
488
+ return headers;
489
+ };
429
490
  return customFetch(getPatchMyUserUrl(), {
430
491
  ...options,
431
492
  method: "PATCH",
432
493
  headers: {
433
494
  "Content-Type": "application/json",
434
- ...options?.headers
495
+ ...getHeaders(options?.headers)
435
496
  },
436
497
  body: JSON.stringify(patchMyUserBody)
437
498
  });
@@ -439,20 +500,19 @@ const patchMyUser = async (patchMyUserBody, options) => {
439
500
  const getListMyProjectsUrl = (params) => {
440
501
  const normalizedParams = new URLSearchParams();
441
502
  Object.entries(params || {}).forEach(([key, value]) => {
442
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
503
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
443
504
  });
444
505
  const stringifiedParams = normalizedParams.toString();
445
506
  return stringifiedParams.length > 0 ? `${getProxyPath()}/users/me/projects?${stringifiedParams}` : `${getProxyPath()}/users/me/projects`;
446
507
  };
447
508
  /**
448
509
  * The projects the signed-in user holds an active grant on, either directly or
449
- through a team they are a member of. Ordered by project id and paged with an
450
- opaque cursor.
451
-
452
- This is not the same question as `queryProjects`, which answers with the one
453
- project the calling credential is bound to. Here the session is the caller
454
- and the grants are the answer, so the list spans projects.
455
-
510
+ * through a team they are a member of. Ordered by project id and paged with an
511
+ * opaque cursor.
512
+ *
513
+ * This is not the same question as `queryProjects`, which answers with the one
514
+ * project the calling credential is bound to. Here the session is the caller
515
+ * and the grants are the answer, so the list spans projects.
456
516
  * @summary List the projects I can act on
457
517
  */
458
518
  const listMyProjects = async (params, options) => {
@@ -466,37 +526,43 @@ const getCreateFlowUrl = () => {
466
526
  };
467
527
  /**
468
528
  * Resolves a flow definition based on purpose + audience context and returns
469
- the first capability step. Creates a new session implicitly unless
470
- `session_id` is provided (for step-up / reauth on an existing session).
471
-
472
- The response contains an `id` field — the flow handle. Use it as the path
473
- parameter for all subsequent `/flow/{id}/submit` calls.
474
-
475
- The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
476
- the flow's orchestration state (current step, collected data, history).
477
- The server is stateless between requests — all flow state lives in this
478
- cookie. The browser sends it automatically on subsequent requests.
479
-
529
+ * the first capability step. Creates a new session implicitly unless
530
+ * `session_id` is provided (for step-up / reauth on an existing session).
531
+ *
532
+ * The response contains an `id` field — the flow handle. Use it as the path
533
+ * parameter for all subsequent `/flow/{id}/submit` calls.
534
+ *
535
+ * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
536
+ * the flow's orchestration state (current step, collected data, history).
537
+ * The server is stateless between requests — all flow state lives in this
538
+ * cookie. The browser sends it automatically on subsequent requests.
480
539
  * @summary Start a new flow
481
540
  */
482
541
  const createFlow = async (createFlowBody, options) => {
542
+ const getHeaders = (h) => {
543
+ if (!h) return {};
544
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
545
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
546
+ const headers = {};
547
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
548
+ return headers;
549
+ };
483
550
  return customFetch(getCreateFlowUrl(), {
484
551
  ...options,
485
552
  method: "POST",
486
553
  headers: {
487
554
  "Content-Type": "application/json",
488
- ...options?.headers
555
+ ...getHeaders(options?.headers)
489
556
  },
490
557
  body: JSON.stringify(createFlowBody)
491
558
  });
492
559
  };
493
560
  const getGetFlowStepUrl = (id) => {
494
- return `${getProxyPath()}/flow/${id}`;
561
+ return `${getProxyPath()}/flow/${encodeURIComponent(String(id))}`;
495
562
  };
496
563
  /**
497
564
  * Returns the current capability step without advancing the state machine.
498
- Useful for page reloads or re-rendering after a network error.
499
-
565
+ * Useful for page reloads or re-rendering after a network error.
500
566
  * @summary Get current step (re-render)
501
567
  */
502
568
  const getFlowStep = async (id, options) => {
@@ -506,46 +572,74 @@ const getFlowStep = async (id, options) => {
506
572
  });
507
573
  };
508
574
  const getSubmitFlowStepUrl = (id) => {
509
- return `${getProxyPath()}/flow/${id}/submit`;
575
+ return `${getProxyPath()}/flow/${encodeURIComponent(String(id))}/submit`;
510
576
  };
511
577
  /**
512
578
  * Submits user input for the current step. The server validates,
513
- processes (e.g., verifies a credential), advances the state machine
514
- through any invisible steps, and returns the next visible step.
515
-
516
- The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
517
- with the new flow state. The server is stateless — all orchestration
518
- state is carried in this cookie between requests.
519
-
520
- **Important:** The `id` in the response may differ from the `id` used in
521
- the request. This happens when a flow pivots (pushes a new flow onto the
522
- stack) or when a stacked flow completes (auto-pops to the parent flow).
523
- Always use the `id` from the latest response for the next request.
524
-
525
- ## Flow completion
526
-
527
- When `step.type` is `complete`, the flow is terminal. The `step.behavior`
528
- field tells the frontend what to do:
529
-
530
- | `behavior` | Action |
531
- |------------- |------------------------------------------------------------|
532
- | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
533
- | `show` | Render the step as a success screen (e.g., registration). |
534
-
535
- A `complete` step is only returned when the **entire flow stack** is done.
536
- If a stacked flow (e.g., recovery pivoted from login) finishes, the server
537
- auto-pops to the parent flow and returns the parent's next step — the
538
- frontend never sees a `complete` for intermediate flows.
539
-
579
+ * processes (e.g., verifies a credential), advances the state machine
580
+ * through any invisible steps, and returns the next visible step.
581
+ *
582
+ * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
583
+ * with the new flow state. The server is stateless — all orchestration
584
+ * state is carried in this cookie between requests.
585
+ *
586
+ * **Important:** The `id` in the response may differ from the `id` used in
587
+ * the request. This happens when a flow pivots (pushes a new flow onto the
588
+ * stack) or when a stacked flow completes (auto-pops to the parent flow).
589
+ * Always use the `id` from the latest response for the next request.
590
+ *
591
+ * ## Flow completion
592
+ *
593
+ * When `step.type` is `complete`, the flow is terminal. The `step.behavior`
594
+ * field tells the frontend what to do:
595
+ *
596
+ * | `behavior` | Action |
597
+ * |------------- |------------------------------------------------------------|
598
+ * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
599
+ * | `show` | Render the step as a success screen (e.g., registration). |
600
+ *
601
+ * A `complete` step is only returned when the **entire flow stack** is done.
602
+ * If a stacked flow (e.g., recovery pivoted from login) finishes, the server
603
+ * auto-pops to the parent flow and returns the parent's next step — the
604
+ * frontend never sees a `complete` for intermediate flows.
605
+ *
606
+ * ## External sign-in
607
+ *
608
+ * `{action: "sso", sso_provider_id, return_target}` on a step that offers
609
+ * `sso_providers` returns the engine-emitted `sso-redirect` step, whose
610
+ * `redirect_url` the frontend navigates to.
611
+ *
612
+ * - The flow state does not change, but `_zflow` is re-sealed like on
613
+ * every response, so its ten-minute window restarts at this submission;
614
+ * the external sign-in and the return must complete within it.
615
+ * - A second `Set-Cookie` line carries the browser-binding cookie the
616
+ * callback checks: `HttpOnly`, `Path=/`, `SameSite=Lax`.
617
+ * - On every host except http loopback it is `__Host-_zsso` with `Secure`.
618
+ * - When the request host is http loopback (local development, where
619
+ * Safari rejects `Secure`), it is `_zsso` with no `Secure`; the
620
+ * `__Host-` prefix is dropped because it requires `Secure`.
621
+ *
622
+ * A connection whose `client_id` is a `${{ NAME }}` reference has it filled
623
+ * from the project's variables. A provider the engine cannot start a
624
+ * sign-in with, including a reference with no variable behind it,
625
+ * re-renders the step with `error.sso_unavailable`.
540
626
  * @summary Submit step data and advance
541
627
  */
542
628
  const submitFlowStep = async (id, submitFlowStepBody, options) => {
629
+ const getHeaders = (h) => {
630
+ if (!h) return {};
631
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
632
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
633
+ const headers = {};
634
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
635
+ return headers;
636
+ };
543
637
  return customFetch(getSubmitFlowStepUrl(id), {
544
638
  ...options,
545
639
  method: "POST",
546
640
  headers: {
547
641
  "Content-Type": "application/json",
548
- ...options?.headers
642
+ ...getHeaders(options?.headers)
549
643
  },
550
644
  body: JSON.stringify(submitFlowStepBody)
551
645
  });
@@ -555,38 +649,44 @@ const getCreateAuthAttemptUrl = () => {
555
649
  };
556
650
  /**
557
651
  * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
558
-
559
- An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
560
- It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
561
-
562
- Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
563
- also include session_id to add factors to an existing session.
564
-
652
+ *
653
+ * An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
654
+ * It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
655
+ *
656
+ * Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
657
+ * also include session_id to add factors to an existing session.
565
658
  * @summary Create a new authentication attempt
566
659
  */
567
660
  const createAuthAttempt = async (createAuthAttemptBody, options) => {
661
+ const getHeaders = (h) => {
662
+ if (!h) return {};
663
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
664
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
665
+ const headers = {};
666
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
667
+ return headers;
668
+ };
568
669
  return customFetch(getCreateAuthAttemptUrl(), {
569
670
  ...options,
570
671
  method: "POST",
571
672
  headers: {
572
673
  "Content-Type": "application/json",
573
- ...options?.headers
674
+ ...getHeaders(options?.headers)
574
675
  },
575
676
  body: JSON.stringify(createAuthAttemptBody)
576
677
  });
577
678
  };
578
679
  const getGetAuthAttemptUrl = (attemptId) => {
579
- return `${getProxyPath()}/auth_attempts/${attemptId}`;
680
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}`;
580
681
  };
581
682
  /**
582
683
  * Polls the current state of an authentication attempt.
583
-
584
- Returns the attempt's state, available factors for the next challenge,
585
- challenges issued so far, and any errors preventing progress.
586
-
587
- Use this for polling during long-running factor verifications (e.g., waiting for
588
- a federated IdP callback or a device flow).
589
-
684
+ *
685
+ * Returns the attempt's state, available factors for the next challenge,
686
+ * challenges issued so far, and any errors preventing progress.
687
+ *
688
+ * Use this for polling during long-running factor verifications (e.g., waiting for
689
+ * a federated IdP callback or a device flow).
590
690
  * @summary Get authentication attempt state
591
691
  */
592
692
  const getAuthAttempt = async (attemptId, options) => {
@@ -596,72 +696,85 @@ const getAuthAttempt = async (attemptId, options) => {
596
696
  });
597
697
  };
598
698
  const getIssueChallengeUrl = (attemptId) => {
599
- return `${getProxyPath()}/auth_attempts/${attemptId}/challenges`;
699
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges`;
600
700
  };
601
701
  /**
602
702
  * Issues a single-factor verification challenge within an auth attempt.
603
-
604
- This advances the authentication state machine by requesting a specific factor method
605
- (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
606
- including method, metadata, and any UI hints. The client then verifies the proof
607
- by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
608
-
703
+ *
704
+ * This advances the authentication state machine by requesting a specific factor method
705
+ * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
706
+ * including method, metadata, and any UI hints. The client then verifies the proof
707
+ * by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
609
708
  * @summary Issue a factor challenge
610
709
  */
611
710
  const issueChallenge = async (attemptId, issueChallengeBody, options) => {
711
+ const getHeaders = (h) => {
712
+ if (!h) return {};
713
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
714
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
715
+ const headers = {};
716
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
717
+ return headers;
718
+ };
612
719
  return customFetch(getIssueChallengeUrl(attemptId), {
613
720
  ...options,
614
721
  method: "POST",
615
722
  headers: {
616
723
  "Content-Type": "application/json",
617
- ...options?.headers
724
+ ...getHeaders(options?.headers)
618
725
  },
619
726
  body: JSON.stringify(issueChallengeBody)
620
727
  });
621
728
  };
622
729
  const getVerifyChallengeProofUrl = (attemptId, challengeId) => {
623
- return `${getProxyPath()}/auth_attempts/${attemptId}/challenges/${challengeId}/verify`;
730
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges/${encodeURIComponent(String(challengeId))}/verify`;
624
731
  };
625
732
  /**
626
733
  * Submits a proof (credential, code, assertion) to verify a factor challenge.
627
-
628
- The proof format depends on the challenge method. For example:
629
- - `password` method: { password: "…" }
630
- - `totp` method: { totp: { code: "123456" } }
631
- - `passkey` method: { passkey: { assertion: "…" } }
632
- - `recovery_code` method: { recovery_code: "…" }
633
-
634
- On successful verification, the factor is written to the auth attempt.
635
- The attempt moves to the next pending challenge or completes if all required factors are verified.
636
-
734
+ *
735
+ * The proof format depends on the challenge method. For example:
736
+ * - `password` method: { password: "…" }
737
+ * - `totp` method: { totp: { code: "123456" } }
738
+ * - `passkey` method: { passkey: { assertion: "…" } }
739
+ * - `recovery_code` method: { recovery_code: "…" }
740
+ *
741
+ * On successful verification, the factor is written to the auth attempt.
742
+ * The attempt moves to the next pending challenge or completes if all required factors are verified.
637
743
  * @summary Verify a factor proof
638
744
  */
639
745
  const verifyChallengeProof = async (attemptId, challengeId, verifyChallengeProofBody, options) => {
746
+ const getHeaders = (h) => {
747
+ if (!h) return {};
748
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
749
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
750
+ const headers = {};
751
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
752
+ return headers;
753
+ };
640
754
  return customFetch(getVerifyChallengeProofUrl(attemptId, challengeId), {
641
755
  ...options,
642
756
  method: "POST",
643
757
  headers: {
644
758
  "Content-Type": "application/json",
645
- ...options?.headers
759
+ ...getHeaders(options?.headers)
646
760
  },
647
761
  body: JSON.stringify(verifyChallengeProofBody)
648
762
  });
649
763
  };
650
764
  const getCreateHandoffUrl = (attemptId) => {
651
- return `${getProxyPath()}/auth_attempts/${attemptId}/handoff`;
765
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/handoff`;
652
766
  };
653
767
  /**
654
768
  * Completes the authentication attempt and mints a `handoff_token`.
655
-
656
- Call this after all required factors have been verified and the attempt is in `completed` state.
657
- The handoff token is short-lived (≤60 seconds) and must be exchanged at
658
- POST /sessions/exchange to receive the final session and session_token.
659
-
660
- The handoff token is:
661
- - Single-use (atomic exchange, no retry)
662
- - Audience-bound (requires matching project key for exchange)
663
- - Idempotency-safe within a 5-minute window (see conventions)
664
-
769
+ *
770
+ * Call this after all required factors have been verified and the attempt is in `completed` state.
771
+ * The handoff token is short-lived (≤60 seconds) and must be exchanged at
772
+ * POST /sessions/exchange to receive the final session and session_token.
773
+ *
774
+ * The handoff token is:
775
+ * - Single-use (atomic exchange, no retry)
776
+ * - Audience-bound (requires matching project key for exchange)
777
+ * - Idempotency-safe within a 5-minute window (see conventions)
665
778
  * @summary Complete authentication and create handoff token
666
779
  */
667
780
  const createHandoff = async (attemptId, options) => {
@@ -677,12 +790,20 @@ const getCreateProjectUrl = () => {
677
790
  * @summary Create project
678
791
  */
679
792
  const createProject = async (createProjectBody, options) => {
793
+ const getHeaders = (h) => {
794
+ if (!h) return {};
795
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
796
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
797
+ const headers = {};
798
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
799
+ return headers;
800
+ };
680
801
  return customFetch(getCreateProjectUrl(), {
681
802
  ...options,
682
803
  method: "POST",
683
804
  headers: {
684
805
  "Content-Type": "application/json",
685
- ...options?.headers
806
+ ...getHeaders(options?.headers)
686
807
  },
687
808
  body: JSON.stringify(createProjectBody)
688
809
  });
@@ -694,22 +815,29 @@ const getQueryProjectsUrl = () => {
694
815
  * @summary Query projects
695
816
  */
696
817
  const queryProjects = async (queryProjectsBody, options) => {
818
+ const getHeaders = (h) => {
819
+ if (!h) return {};
820
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
821
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
822
+ const headers = {};
823
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
824
+ return headers;
825
+ };
697
826
  return customFetch(getQueryProjectsUrl(), {
698
827
  ...options,
699
828
  method: "POST",
700
829
  headers: {
701
830
  "Content-Type": "application/json",
702
- ...options?.headers
831
+ ...getHeaders(options?.headers)
703
832
  },
704
833
  body: JSON.stringify(queryProjectsBody)
705
834
  });
706
835
  };
707
836
  const getGetProjectUrl = (projectId) => {
708
- return `${getProxyPath()}/projects/${projectId}`;
837
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}`;
709
838
  };
710
839
  /**
711
840
  * Returns the current state of a project.
712
-
713
841
  * @summary Get project
714
842
  */
715
843
  const getProject = async (projectId, options) => {
@@ -719,34 +847,40 @@ const getProject = async (projectId, options) => {
719
847
  });
720
848
  };
721
849
  const getPatchProjectUrl = (projectId) => {
722
- return `${getProxyPath()}/projects/${projectId}`;
850
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}`;
723
851
  };
724
852
  /**
725
853
  * Updates the state of a project.
726
-
727
854
  * @summary Update project
728
855
  */
729
856
  const patchProject = async (projectId, patchProjectBody, options) => {
857
+ const getHeaders = (h) => {
858
+ if (!h) return {};
859
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
860
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
861
+ const headers = {};
862
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
863
+ return headers;
864
+ };
730
865
  return customFetch(getPatchProjectUrl(projectId), {
731
866
  ...options,
732
867
  method: "PATCH",
733
868
  headers: {
734
869
  "Content-Type": "application/json",
735
- ...options?.headers
870
+ ...getHeaders(options?.headers)
736
871
  },
737
872
  body: JSON.stringify(patchProjectBody)
738
873
  });
739
874
  };
740
875
  const getInitClaimUrl = (projectId) => {
741
- return `${getProxyPath()}/projects/${projectId}/claim/init`;
876
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/init`;
742
877
  };
743
878
  /**
744
879
  * Starts a claim challenge for an unclaimed project. Authenticated by the
745
- project secret, this mints a single-use, short-lived challenge and returns
746
- the `claim_url` the developer opens in a browser to complete the claim,
747
- together with the `challenge_id` the CLI polls with. The exact expiry is
748
- carried by `expires_at` on the response.
749
-
880
+ * project secret, this mints a single-use, short-lived challenge and returns
881
+ * the `claim_url` the developer opens in a browser to complete the claim,
882
+ * together with the `challenge_id` the CLI polls with. The exact expiry is
883
+ * carried by `expires_at` on the response.
750
884
  * @summary Initialize a project claim
751
885
  */
752
886
  const initClaim = async (projectId, options) => {
@@ -758,21 +892,20 @@ const initClaim = async (projectId, options) => {
758
892
  const getGetClaimStatusUrl = (projectId, params) => {
759
893
  const normalizedParams = new URLSearchParams();
760
894
  Object.entries(params || {}).forEach(([key, value]) => {
761
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
895
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
762
896
  });
763
897
  const stringifiedParams = normalizedParams.toString();
764
- return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${projectId}/claim/status?${stringifiedParams}` : `${getProxyPath()}/projects/${projectId}/claim/status`;
898
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/status?${stringifiedParams}` : `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/status`;
765
899
  };
766
900
  /**
767
901
  * Polled by the CLI while a browser completes the claim. Authorized by the
768
- project secret that initiated the challenge. Returns `pending`, or
769
- `completed` with the owning team, the claim timestamp, and the dashboard
770
- URL once the project is claimed. The claim grant, not the polled
771
- challenge, is the source of truth: a project claimed through another
772
- concurrent challenge also reports `completed`, and a completed claim
773
- keeps reporting `completed` past this challenge's expiry and past the
774
- project's claim window.
775
-
902
+ * project secret that initiated the challenge. Returns `pending`, or
903
+ * `completed` with the owning team, the claim timestamp, and the dashboard
904
+ * URL once the project is claimed. The claim grant, not the polled
905
+ * challenge, is the source of truth: a project claimed through another
906
+ * concurrent challenge also reports `completed`, and a completed claim
907
+ * keeps reporting `completed` past this challenge's expiry and past the
908
+ * project's claim window.
776
909
  * @summary Get claim status
777
910
  */
778
911
  const getClaimStatus = async (projectId, params, options) => {
@@ -782,23 +915,30 @@ const getClaimStatus = async (projectId, params, options) => {
782
915
  });
783
916
  };
784
917
  const getCompleteClaimUrl = (projectId) => {
785
- return `${getProxyPath()}/projects/${projectId}/claim/complete`;
918
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/complete`;
786
919
  };
787
920
  /**
788
921
  * Called by the browser after the developer authenticates on the claim page.
789
- Authenticated by the `__nextgen_session` cookie, it attaches the project to
790
- the developer's personal team using the `challenge_id` from the claim URL as
791
- its single-use, browser-safe authorization.
792
-
922
+ * Authenticated by the `__nextgen_session` cookie, it attaches the project to
923
+ * the developer's personal team using the `challenge_id` from the claim URL as
924
+ * its single-use, browser-safe authorization.
793
925
  * @summary Complete a project claim
794
926
  */
795
927
  const completeClaim = async (projectId, completeClaimBody, options) => {
928
+ const getHeaders = (h) => {
929
+ if (!h) return {};
930
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
931
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
932
+ const headers = {};
933
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
934
+ return headers;
935
+ };
796
936
  return customFetch(getCompleteClaimUrl(projectId), {
797
937
  ...options,
798
938
  method: "POST",
799
939
  headers: {
800
940
  "Content-Type": "application/json",
801
- ...options?.headers
941
+ ...getHeaders(options?.headers)
802
942
  },
803
943
  body: JSON.stringify(completeClaimBody)
804
944
  });
@@ -806,19 +946,18 @@ const completeClaim = async (projectId, completeClaimBody, options) => {
806
946
  const getGetClaimWindowUrl = (projectId, params) => {
807
947
  const normalizedParams = new URLSearchParams();
808
948
  Object.entries(params || {}).forEach(([key, value]) => {
809
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
949
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
810
950
  });
811
951
  const stringifiedParams = normalizedParams.toString();
812
- return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${projectId}/claim/window?${stringifiedParams}` : `${getProxyPath()}/projects/${projectId}/claim/window`;
952
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/window?${stringifiedParams}` : `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/window`;
813
953
  };
814
954
  /**
815
955
  * Read by the claim page in the browser to show how long is left to claim the
816
- project. Unauthenticated by design: the claim page runs this before the
817
- developer has signed in, and holding the `challenge_id` from the claim URL
818
- is the authorization — the same capability `claim/complete` accepts. It
819
- reveals only the window, never the project itself, and unlike
820
- `claim/complete` it spends nothing, so a reload is free.
821
-
956
+ * project. Unauthenticated by design: the claim page runs this before the
957
+ * developer has signed in, and holding the `challenge_id` from the claim URL
958
+ * is the authorization — the same capability `claim/complete` accepts. It
959
+ * reveals only the window, never the project itself, and unlike
960
+ * `claim/complete` it spends nothing, so a reload is free.
822
961
  * @summary Get the claim window for a project
823
962
  */
824
963
  const getClaimWindow = async (projectId, params, options) => {
@@ -832,36 +971,43 @@ const getCreateSessionUrl = () => {
832
971
  };
833
972
  /**
834
973
  * Creates an anonymous session shell with no user and no factors (`state: building`).
835
-
836
- This is optional — an `auth_attempt` will create a session implicitly if none is provided.
837
- Use this explicitly when you want to:
838
- - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
839
- can be correlated with the eventual authenticated session from the start.
840
- - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
841
-
842
- Creating a session is an app-plane operation on the project credential
843
- (`session.write`). The returned `session_token` is a session credential for the
844
- end-user client, not a management scope: it is delivered as the
845
- `__nextgen_session` cookie and authorises the self-service operations
846
- `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
847
- by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
848
- are operator endpoints and require `session.read` / `session.delete` instead.
849
-
850
- The `session_token` is superseded when a handoff exchange completes — clients must
851
- replace it at that point.
852
-
853
- Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
854
- full session TTL when the first authentication factor is written via a completing `auth_attempt`.
855
-
974
+ *
975
+ * This is optional — an `auth_attempt` will create a session implicitly if none is provided.
976
+ * Use this explicitly when you want to:
977
+ * - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
978
+ * can be correlated with the eventual authenticated session from the start.
979
+ * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
980
+ *
981
+ * Creating a session is an app-plane operation on the project credential
982
+ * (`session.write`). The returned `session_token` is a session credential for the
983
+ * end-user client, not a management scope: it is delivered as the
984
+ * `__nextgen_session` cookie and authorises the self-service operations
985
+ * `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
986
+ * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
987
+ * are operator endpoints and require `session.read` / `session.delete` instead.
988
+ *
989
+ * The `session_token` is superseded when a handoff exchange completes — clients must
990
+ * replace it at that point.
991
+ *
992
+ * Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
993
+ * full session TTL when the first authentication factor is written via a completing `auth_attempt`.
856
994
  * @summary Create an anonymous session shell
857
995
  */
858
996
  const createSession = async (createSessionBody, options) => {
997
+ const getHeaders = (h) => {
998
+ if (!h) return {};
999
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1000
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1001
+ const headers = {};
1002
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1003
+ return headers;
1004
+ };
859
1005
  return customFetch(getCreateSessionUrl(), {
860
1006
  ...options,
861
1007
  method: "POST",
862
1008
  headers: {
863
1009
  "Content-Type": "application/json",
864
- ...options?.headers
1010
+ ...getHeaders(options?.headers)
865
1011
  },
866
1012
  body: JSON.stringify(createSessionBody)
867
1013
  });
@@ -869,25 +1015,32 @@ const createSession = async (createSessionBody, options) => {
869
1015
  const getQuerySessionsUrl = (params) => {
870
1016
  const normalizedParams = new URLSearchParams();
871
1017
  Object.entries(params || {}).forEach(([key, value]) => {
872
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1018
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
873
1019
  });
874
1020
  const stringifiedParams = normalizedParams.toString();
875
1021
  return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/query?${stringifiedParams}` : `${getProxyPath()}/sessions/query`;
876
1022
  };
877
1023
  /**
878
1024
  * Returns the sessions of a project, paginated with a cursor.
879
- Sessions of every lifecycle state are returned; each carries its `state`.
880
- Requires `session.read` permission.
881
-
1025
+ * Sessions of every lifecycle state are returned; each carries its `state`.
1026
+ * Requires `session.read` permission.
882
1027
  * @summary Query sessions
883
1028
  */
884
1029
  const querySessions = async (querySessionsBody, params, 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
+ };
885
1038
  return customFetch(getQuerySessionsUrl(params), {
886
1039
  ...options,
887
1040
  method: "POST",
888
1041
  headers: {
889
1042
  "Content-Type": "application/json",
890
- ...options?.headers
1043
+ ...getHeaders(options?.headers)
891
1044
  },
892
1045
  body: JSON.stringify(querySessionsBody)
893
1046
  });
@@ -895,54 +1048,60 @@ const querySessions = async (querySessionsBody, params, options) => {
895
1048
  const getExchangeHandoffUrl = (params) => {
896
1049
  const normalizedParams = new URLSearchParams();
897
1050
  Object.entries(params || {}).forEach(([key, value]) => {
898
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1051
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
899
1052
  });
900
1053
  const stringifiedParams = normalizedParams.toString();
901
1054
  return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/exchange?${stringifiedParams}` : `${getProxyPath()}/sessions/exchange`;
902
1055
  };
903
1056
  /**
904
1057
  * Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
905
- and returns the resulting session and a `session_token`.
906
-
907
- The server resolves the originating `auth_attempt` from the token and then:
908
-
909
- | Originating auth_attempt | Outcome |
910
- |---|---|
911
- | No `session_id` | A new authenticated session is **created**. |
912
- | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
913
- | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
914
-
915
- The response shape is identical in all three cases.
916
-
917
- The `session_token` supersedes any previously issued `session_token` for the same session.
918
- Clients must replace their stored token at this point.
919
-
920
- Requires a project service key (OAuth2 client credentials).
921
-
1058
+ * and returns the resulting session and a `session_token`.
1059
+ *
1060
+ * The server resolves the originating `auth_attempt` from the token and then:
1061
+ *
1062
+ * | Originating auth_attempt | Outcome |
1063
+ * |---|---|
1064
+ * | No `session_id` | A new authenticated session is **created**. |
1065
+ * | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
1066
+ * | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
1067
+ *
1068
+ * The response shape is identical in all three cases.
1069
+ *
1070
+ * The `session_token` supersedes any previously issued `session_token` for the same session.
1071
+ * Clients must replace their stored token at this point.
1072
+ *
1073
+ * Requires a project service key (OAuth2 client credentials).
922
1074
  * @summary Exchange handoff token for a session
923
1075
  */
924
1076
  const exchangeHandoff = async (exchangeHandoffBody, params, options) => {
1077
+ const getHeaders = (h) => {
1078
+ if (!h) return {};
1079
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1080
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1081
+ const headers = {};
1082
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1083
+ return headers;
1084
+ };
925
1085
  return customFetch(getExchangeHandoffUrl(params), {
926
1086
  ...options,
927
1087
  method: "POST",
928
1088
  headers: {
929
1089
  "Content-Type": "application/json",
930
- ...options?.headers
1090
+ ...getHeaders(options?.headers)
931
1091
  },
932
1092
  body: JSON.stringify(exchangeHandoffBody)
933
1093
  });
934
1094
  };
935
1095
  const getGetSessionUrl = (sessionId) => {
936
- return `${getProxyPath()}/sessions/${sessionId}`;
1096
+ return `${getProxyPath()}/sessions/${encodeURIComponent(String(sessionId))}`;
937
1097
  };
938
1098
  /**
939
1099
  * Returns the current state of a session including its factors and all currently
940
- satisfied assurance levels.
941
-
942
- `assurance_levels[]` may shrink over time as factor freshness windows expire,
943
- without the session itself expiring. Use step-up authentication (a new `auth_attempt`
944
- against the same `session_id`) to restore a dropped assurance level.
945
-
1100
+ * satisfied assurance levels.
1101
+ *
1102
+ * `assurance_levels[]` may shrink over time as factor freshness windows expire,
1103
+ * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
1104
+ * against the same `session_id`) to restore a dropped assurance level.
946
1105
  * @summary Get session state
947
1106
  */
948
1107
  const getSession = async (sessionId, options) => {
@@ -952,19 +1111,18 @@ const getSession = async (sessionId, options) => {
952
1111
  });
953
1112
  };
954
1113
  const getRevokeSessionUrl = (sessionId) => {
955
- return `${getProxyPath()}/sessions/${sessionId}`;
1114
+ return `${getProxyPath()}/sessions/${encodeURIComponent(String(sessionId))}`;
956
1115
  };
957
1116
  /**
958
1117
  * Permanently deletes the session, terminating it immediately.
959
-
960
- This is the operator revoke path and requires the `session.delete` scope on a
961
- project-bound credential. End-user logout with the `__nextgen_session` cookie is
962
- `DELETE /sessions/me` (`nextgenSession` scheme).
963
-
964
- Idempotent: deleting a session that does not exist (or was already deleted)
965
- still returns 204. After deletion, any tokens derived from the session are
966
- invalidated.
967
-
1118
+ *
1119
+ * This is the operator revoke path and requires the `session.delete` scope on a
1120
+ * project-bound credential. End-user logout with the `__nextgen_session` cookie is
1121
+ * `DELETE /sessions/me` (`nextgenSession` scheme).
1122
+ *
1123
+ * Idempotent: deleting a session that does not exist (or was already deleted)
1124
+ * still returns 204. After deletion, any tokens derived from the session are
1125
+ * invalidated.
968
1126
  * @summary Revoke session
969
1127
  */
970
1128
  const revokeSession = async (sessionId, options) => {
@@ -978,12 +1136,11 @@ const getGetMySessionUrl = () => {
978
1136
  };
979
1137
  /**
980
1138
  * Returns the current state of the current session including its factors and all currently
981
- satisfied assurance levels.
982
-
983
- `assurance_levels[]` may shrink over time as factor freshness windows expire,
984
- without the session itself expiring. Use step-up authentication (a new `auth_attempt`
985
- against the same `session_id`) to restore a dropped assurance level.
986
-
1139
+ * satisfied assurance levels.
1140
+ *
1141
+ * `assurance_levels[]` may shrink over time as factor freshness windows expire,
1142
+ * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
1143
+ * against the same `session_id`) to restore a dropped assurance level.
987
1144
  * @summary Get my session state
988
1145
  */
989
1146
  const getMySession = async (options) => {
@@ -997,12 +1154,11 @@ const getRevokeMySessionUrl = () => {
997
1154
  };
998
1155
  /**
999
1156
  * Logs out by permanently deleting the session.
1000
-
1001
- The `__nextgen_session` cookie issued at creation (or superseded by a handoff
1002
- exchange) is required. Idempotent: if the session is already gone this still
1003
- returns 204. Any tokens derived from the session are invalidated, and the
1004
- cookie itself is cleared in the response.
1005
-
1157
+ *
1158
+ * The `__nextgen_session` cookie issued at creation (or superseded by a handoff
1159
+ * exchange) is required. Idempotent: if the session is already gone this still
1160
+ * returns 204. Any tokens derived from the session are invalidated, and the
1161
+ * cookie itself is cleared in the response.
1006
1162
  * @summary Revoke my session
1007
1163
  */
1008
1164
  const revokeMySession = async (options) => {
@@ -1011,34 +1167,60 @@ const revokeMySession = async (options) => {
1011
1167
  method: "DELETE"
1012
1168
  });
1013
1169
  };
1170
+ const getGetMySessionCsrfTokenUrl = () => {
1171
+ return `${getProxyPath()}/sessions/me/csrf`;
1172
+ };
1173
+ /**
1174
+ * Returns the session-bound token for cross-site request forgery protection
1175
+ * (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the
1176
+ * state-changing requests the session cookie authenticates that require it
1177
+ * — see the `nextgenSession` scheme. It authorizes nothing on its own: the
1178
+ * HttpOnly cookie is still the credential, and a cross-site page cannot
1179
+ * read this response. It stays the same for the life of the session, so a
1180
+ * client fetches it once per session.
1181
+ * @summary Get my session's CSRF token
1182
+ */
1183
+ const getMySessionCsrfToken = async (options) => {
1184
+ return customFetch(getGetMySessionCsrfTokenUrl(), {
1185
+ ...options,
1186
+ method: "GET"
1187
+ });
1188
+ };
1014
1189
  const getCreateSchemaUrl = (params) => {
1015
1190
  const normalizedParams = new URLSearchParams();
1016
1191
  Object.entries(params || {}).forEach(([key, value]) => {
1017
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1192
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1018
1193
  });
1019
1194
  const stringifiedParams = normalizedParams.toString();
1020
1195
  return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas?${stringifiedParams}` : `${getProxyPath()}/schemas`;
1021
1196
  };
1022
1197
  /**
1023
1198
  * Create a new schema. The optional `$id` field is the JSON Schema document
1024
- URI used to identify the schema in future requests (GitOps-stable identity,
1025
- not a free-form resource primary key). When `$id` is omitted, the server
1026
- generates a `sch_*` URL. When provided, `$id` must be unique within the
1027
- project and should ideally be a valid URI pointing at where the schema can
1028
- be accessed.
1029
-
1030
- The schema can either be a concrete schema, e.g. a user schema, or a
1031
- schema-url which will be resolved by the server.
1032
-
1199
+ * URI used to identify the schema in future requests (GitOps-stable identity,
1200
+ * not a free-form resource primary key). When `$id` is omitted, the server
1201
+ * generates a `sch_*` URL. When provided, `$id` must be unique within the
1202
+ * project and should ideally be a valid URI pointing at where the schema can
1203
+ * be accessed.
1204
+ *
1205
+ * The schema can either be a concrete schema, e.g. a user schema, or a
1206
+ * schema-url which will be resolved by the server.
1033
1207
  * @summary Create new schema
1034
1208
  */
1035
1209
  const createSchema = async (createSchemaBody, params, options) => {
1210
+ const getHeaders = (h) => {
1211
+ if (!h) return {};
1212
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1213
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1214
+ const headers = {};
1215
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1216
+ return headers;
1217
+ };
1036
1218
  return customFetch(getCreateSchemaUrl(params), {
1037
1219
  ...options,
1038
1220
  method: "POST",
1039
1221
  headers: {
1040
1222
  "Content-Type": "application/json",
1041
- ...options?.headers
1223
+ ...getHeaders(options?.headers)
1042
1224
  },
1043
1225
  body: JSON.stringify(createSchemaBody)
1044
1226
  });
@@ -1046,15 +1228,14 @@ const createSchema = async (createSchemaBody, params, options) => {
1046
1228
  const getListSchemasUrl = (params) => {
1047
1229
  const normalizedParams = new URLSearchParams();
1048
1230
  Object.entries(params || {}).forEach(([key, value]) => {
1049
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1231
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1050
1232
  });
1051
1233
  const stringifiedParams = normalizedParams.toString();
1052
1234
  return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas?${stringifiedParams}` : `${getProxyPath()}/schemas`;
1053
1235
  };
1054
1236
  /**
1055
1237
  * Retrieve a list of all schemas available in the system. This endpoint
1056
- supports pagination and filtering based on schema attributes.
1057
-
1238
+ * supports pagination and filtering based on schema attributes.
1058
1239
  * @summary List all schemas
1059
1240
  */
1060
1241
  const listSchemas = async (params, options) => {
@@ -1066,16 +1247,22 @@ const listSchemas = async (params, options) => {
1066
1247
  const getGetSchemaByIdUrl = (id, params) => {
1067
1248
  const normalizedParams = new URLSearchParams();
1068
1249
  Object.entries(params || {}).forEach(([key, value]) => {
1069
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1250
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1070
1251
  });
1071
1252
  const stringifiedParams = normalizedParams.toString();
1072
- return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas/${id}?${stringifiedParams}` : `${getProxyPath()}/schemas/${id}`;
1253
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/schemas/${encodeURIComponent(String(id))}`;
1073
1254
  };
1074
1255
  /**
1075
1256
  * Get a schema by its ID. A schema ID identifies one immutable revision, so
1076
- this returns exactly that revision. To find the current revision of an
1077
- object type, list with `revisions=latest`.
1078
-
1257
+ * this returns exactly that revision. To find the current revision of an
1258
+ * object type, list with `revisions=latest`.
1259
+ *
1260
+ * Schema IDs are unique within a project, not across projects (the seeded
1261
+ * default schema carries the same `$id` in every project). A Console
1262
+ * session that manages more than one project names the project with
1263
+ * `project_id`; without it, the ID is resolved in the credential's own
1264
+ * project when it is ambiguous. A project secret always resolves in its
1265
+ * own project and ignores `project_id`.
1079
1266
  * @summary Get schema by ID
1080
1267
  */
1081
1268
  const getSchemaById = async (id, params, options) => {
@@ -1089,25 +1276,32 @@ const getCreateFlowDefinitionUrl = () => {
1089
1276
  };
1090
1277
  /**
1091
1278
  * Publishes a new flow definition revision.
1092
- Flow definitions are templates that define the sequence of steps (capabilities)
1093
- for a particular user journey (e.g., registration, login, password reset).
1094
-
1095
- Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
1096
-
1097
- Every call allocates a new opaque id. Revisions of one flow share its
1098
- `name`; posting a definition under an existing `name` publishes a new
1099
- revision of that flow, it is not a conflict. List with `name` to see a
1100
- flow's revisions, newest by creation time first.
1101
-
1279
+ * Flow definitions are templates that define the sequence of steps (capabilities)
1280
+ * for a particular user journey (e.g., registration, login, password reset).
1281
+ *
1282
+ * Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
1283
+ *
1284
+ * Every call allocates a new opaque id. Revisions of one flow share its
1285
+ * `name`; posting a definition under an existing `name` publishes a new
1286
+ * revision of that flow, it is not a conflict. List with `name` to see a
1287
+ * flow's revisions, newest by creation time first.
1102
1288
  * @summary Create a new flow definition
1103
1289
  */
1104
1290
  const createFlowDefinition = async (createFlowDefinitionBody, options) => {
1291
+ const getHeaders = (h) => {
1292
+ if (!h) return {};
1293
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1294
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1295
+ const headers = {};
1296
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1297
+ return headers;
1298
+ };
1105
1299
  return customFetch(getCreateFlowDefinitionUrl(), {
1106
1300
  ...options,
1107
1301
  method: "POST",
1108
1302
  headers: {
1109
1303
  "Content-Type": "application/json",
1110
- ...options?.headers
1304
+ ...getHeaders(options?.headers)
1111
1305
  },
1112
1306
  body: JSON.stringify(createFlowDefinitionBody)
1113
1307
  });
@@ -1115,16 +1309,21 @@ const createFlowDefinition = async (createFlowDefinitionBody, options) => {
1115
1309
  const getListFlowDefinitionsUrl = (params) => {
1116
1310
  const normalizedParams = new URLSearchParams();
1117
1311
  Object.entries(params || {}).forEach(([key, value]) => {
1118
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1312
+ if (Array.isArray(value) && ["expand"].includes(key)) {
1313
+ value.forEach((v) => {
1314
+ normalizedParams.append(key, v === null ? "null" : String(v));
1315
+ });
1316
+ return;
1317
+ }
1318
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1119
1319
  });
1120
1320
  const stringifiedParams = normalizedParams.toString();
1121
1321
  return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions?${stringifiedParams}` : `${getProxyPath()}/flow_definitions`;
1122
1322
  };
1123
1323
  /**
1124
1324
  * Retrieves a list of all flow definitions, newest by creation time first.
1125
- This endpoint can be used to view existing flow definitions and their configurations.
1126
- Filter by `name` to list the revisions of one flow.
1127
-
1325
+ * This endpoint can be used to view existing flow definitions and their configurations.
1326
+ * Filter by `name` to list the revisions of one flow.
1128
1327
  * @summary List flow definitions
1129
1328
  */
1130
1329
  const listFlowDefinitions = async (params, options) => {
@@ -1134,7 +1333,7 @@ const listFlowDefinitions = async (params, options) => {
1134
1333
  });
1135
1334
  };
1136
1335
  const getGetFlowDefinitionUrl = (id) => {
1137
- return `${getProxyPath()}/flow_definitions/${id}`;
1336
+ return `${getProxyPath()}/flow_definitions/${encodeURIComponent(String(id))}`;
1138
1337
  };
1139
1338
  /**
1140
1339
  * Get a flow definition by id
@@ -1149,7 +1348,7 @@ const getFlowDefinition = async (id, options) => {
1149
1348
  const getCreateTeamUrl = (params) => {
1150
1349
  const normalizedParams = new URLSearchParams();
1151
1350
  Object.entries(params || {}).forEach(([key, value]) => {
1152
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1351
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1153
1352
  });
1154
1353
  const stringifiedParams = normalizedParams.toString();
1155
1354
  return stringifiedParams.length > 0 ? `${getProxyPath()}/teams?${stringifiedParams}` : `${getProxyPath()}/teams`;
@@ -1158,12 +1357,20 @@ const getCreateTeamUrl = (params) => {
1158
1357
  * @summary Create team
1159
1358
  */
1160
1359
  const createTeam = async (createTeamBody, params, options) => {
1360
+ const getHeaders = (h) => {
1361
+ if (!h) return {};
1362
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1363
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1364
+ const headers = {};
1365
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1366
+ return headers;
1367
+ };
1161
1368
  return customFetch(getCreateTeamUrl(params), {
1162
1369
  ...options,
1163
1370
  method: "POST",
1164
1371
  headers: {
1165
1372
  "Content-Type": "application/json",
1166
- ...options?.headers
1373
+ ...getHeaders(options?.headers)
1167
1374
  },
1168
1375
  body: JSON.stringify(createTeamBody)
1169
1376
  });
@@ -1171,33 +1378,39 @@ const createTeam = async (createTeamBody, params, options) => {
1171
1378
  const getQueryTeamsUrl = (params) => {
1172
1379
  const normalizedParams = new URLSearchParams();
1173
1380
  Object.entries(params || {}).forEach(([key, value]) => {
1174
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1381
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1175
1382
  });
1176
1383
  const stringifiedParams = normalizedParams.toString();
1177
1384
  return stringifiedParams.length > 0 ? `${getProxyPath()}/teams/query?${stringifiedParams}` : `${getProxyPath()}/teams/query`;
1178
1385
  };
1179
1386
  /**
1180
1387
  * Returns the teams of a project, paginated with a cursor.
1181
-
1182
1388
  * @summary Query teams
1183
1389
  */
1184
1390
  const queryTeams = async (queryTeamsBody, params, options) => {
1391
+ const getHeaders = (h) => {
1392
+ if (!h) return {};
1393
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1394
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1395
+ const headers = {};
1396
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1397
+ return headers;
1398
+ };
1185
1399
  return customFetch(getQueryTeamsUrl(params), {
1186
1400
  ...options,
1187
1401
  method: "POST",
1188
1402
  headers: {
1189
1403
  "Content-Type": "application/json",
1190
- ...options?.headers
1404
+ ...getHeaders(options?.headers)
1191
1405
  },
1192
1406
  body: JSON.stringify(queryTeamsBody)
1193
1407
  });
1194
1408
  };
1195
1409
  const getGetTeamUrl = (teamId) => {
1196
- return `${getProxyPath()}/teams/${teamId}`;
1410
+ return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
1197
1411
  };
1198
1412
  /**
1199
1413
  * Returns a Team by its id.
1200
-
1201
1414
  * @summary Get team
1202
1415
  */
1203
1416
  const getTeam = async (teamId, options) => {
@@ -1207,23 +1420,22 @@ const getTeam = async (teamId, options) => {
1207
1420
  });
1208
1421
  };
1209
1422
  const getDeleteTeamUrl = (teamId) => {
1210
- return `${getProxyPath()}/teams/${teamId}`;
1423
+ return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
1211
1424
  };
1212
1425
  /**
1213
1426
  * Deactivates the team.
1214
-
1215
- The team is tombstoned rather than erased: it stays readable through
1216
- getTeam with status `deactivated`. Its memberships are removed and the
1217
- users whose lifecycle it owns are deactivated with it.
1218
-
1219
- The request is idempotent. Deleting a team that is already deactivated
1220
- or doesn't exist succeeds without changing anything.
1221
-
1222
- A team that still owns a project is refused with `409
1223
- team.owns_project`: deactivating it would leave the project owned by a
1224
- dead team and so unmanageable. No endpoint releases that ownership yet,
1225
- so such a team cannot currently be deactivated through the API.
1226
-
1427
+ *
1428
+ * The team is tombstoned rather than erased: it stays readable through
1429
+ * getTeam with status `deactivated`. Its memberships are removed and the
1430
+ * users whose lifecycle it owns are deactivated with it.
1431
+ *
1432
+ * The request is idempotent. Deleting a team that is already deactivated
1433
+ * or doesn't exist succeeds without changing anything.
1434
+ *
1435
+ * A team that still owns a project is refused with `409
1436
+ * team.owns_project`: deactivating it would leave the project owned by a
1437
+ * dead team and so unmanageable. No endpoint releases that ownership yet,
1438
+ * so such a team cannot currently be deactivated through the API.
1227
1439
  * @summary Delete team
1228
1440
  */
1229
1441
  const deleteTeam = async (teamId, options) => {
@@ -1233,20 +1445,27 @@ const deleteTeam = async (teamId, options) => {
1233
1445
  });
1234
1446
  };
1235
1447
  const getUpdateTeamUrl = (teamId) => {
1236
- return `${getProxyPath()}/teams/${teamId}`;
1448
+ return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
1237
1449
  };
1238
1450
  /**
1239
1451
  * Update team. Only active teams can be updated.
1240
-
1241
1452
  * @summary Update team
1242
1453
  */
1243
1454
  const updateTeam = async (teamId, updateTeamBody, options) => {
1455
+ const getHeaders = (h) => {
1456
+ if (!h) return {};
1457
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1458
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1459
+ const headers = {};
1460
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1461
+ return headers;
1462
+ };
1244
1463
  return customFetch(getUpdateTeamUrl(teamId), {
1245
1464
  ...options,
1246
1465
  method: "PATCH",
1247
1466
  headers: {
1248
1467
  "Content-Type": "application/json",
1249
- ...options?.headers
1468
+ ...getHeaders(options?.headers)
1250
1469
  },
1251
1470
  body: JSON.stringify(updateTeamBody)
1252
1471
  });
@@ -1254,14 +1473,13 @@ const updateTeam = async (teamId, updateTeamBody, options) => {
1254
1473
  const getListEnvironmentsUrl = (params) => {
1255
1474
  const normalizedParams = new URLSearchParams();
1256
1475
  Object.entries(params || {}).forEach(([key, value]) => {
1257
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1476
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1258
1477
  });
1259
1478
  const stringifiedParams = normalizedParams.toString();
1260
1479
  return stringifiedParams.length > 0 ? `${getProxyPath()}/environments?${stringifiedParams}` : `${getProxyPath()}/environments`;
1261
1480
  };
1262
1481
  /**
1263
1482
  * Lists the project's environments ordered by name.
1264
-
1265
1483
  * @summary List environments
1266
1484
  */
1267
1485
  const listEnvironments = async (params, options) => {
@@ -1273,17 +1491,16 @@ const listEnvironments = async (params, options) => {
1273
1491
  const getGetEnvironmentByNameUrl = (name, params) => {
1274
1492
  const normalizedParams = new URLSearchParams();
1275
1493
  Object.entries(params || {}).forEach(([key, value]) => {
1276
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1494
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1277
1495
  });
1278
1496
  const stringifiedParams = normalizedParams.toString();
1279
- return stringifiedParams.length > 0 ? `${getProxyPath()}/environments/${name}?${stringifiedParams}` : `${getProxyPath()}/environments/${name}`;
1497
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/environments/${encodeURIComponent(String(name))}?${stringifiedParams}` : `${getProxyPath()}/environments/${encodeURIComponent(String(name))}`;
1280
1498
  };
1281
1499
  /**
1282
1500
  * Reads one environment of the project by its name.
1283
-
1284
- The lookup is scoped to the project in `project_id`: a name that exists in
1285
- another project answers `env.not_found` exactly as an unused name does.
1286
-
1501
+ *
1502
+ * The lookup is scoped to the project in `project_id`: a name that exists in
1503
+ * another project answers `env.not_found` exactly as an unused name does.
1287
1504
  * @summary Get an environment by name
1288
1505
  */
1289
1506
  const getEnvironmentByName = async (name, params, options) => {
@@ -1295,30 +1512,37 @@ const getEnvironmentByName = async (name, params, options) => {
1295
1512
  const getCreateBrandingUrl = (params) => {
1296
1513
  const normalizedParams = new URLSearchParams();
1297
1514
  Object.entries(params || {}).forEach(([key, value]) => {
1298
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1515
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1299
1516
  });
1300
1517
  const stringifiedParams = normalizedParams.toString();
1301
1518
  return stringifiedParams.length > 0 ? `${getProxyPath()}/branding?${stringifiedParams}` : `${getProxyPath()}/branding`;
1302
1519
  };
1303
1520
  /**
1304
1521
  * Publishes a new immutable branding revision for the project. Branding
1305
- revisions cannot be updated or deleted; every edit publishes a new
1306
- revision, and flow responses resolve the latest revision per project.
1307
-
1308
- The `liquid_template` is validated lexically on save (size, encoding,
1309
- banned patterns such as `<script>` tags, inline event handlers, and the
1310
- `| raw` filter). Authoritative LiquidJS validation runs at authoring
1311
- time via `zitadel plan` / `zitadel apply`.
1312
-
1522
+ * revisions cannot be updated or deleted; every edit publishes a new
1523
+ * revision, and flow responses resolve the latest revision per project.
1524
+ *
1525
+ * The `liquid_template` is validated lexically on save (size, encoding,
1526
+ * banned patterns such as `<script>` tags, inline event handlers, and the
1527
+ * `| raw` filter). Authoritative LiquidJS validation runs at authoring
1528
+ * time via `zitadel plan` / `zitadel apply`.
1313
1529
  * @summary Publish a new branding revision
1314
1530
  */
1315
1531
  const createBranding = async (createBrandingBody, params, options) => {
1532
+ const getHeaders = (h) => {
1533
+ if (!h) return {};
1534
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1535
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1536
+ const headers = {};
1537
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1538
+ return headers;
1539
+ };
1316
1540
  return customFetch(getCreateBrandingUrl(params), {
1317
1541
  ...options,
1318
1542
  method: "POST",
1319
1543
  headers: {
1320
1544
  "Content-Type": "application/json",
1321
- ...options?.headers
1545
+ ...getHeaders(options?.headers)
1322
1546
  },
1323
1547
  body: JSON.stringify(createBrandingBody)
1324
1548
  });
@@ -1326,18 +1550,17 @@ const createBranding = async (createBrandingBody, params, options) => {
1326
1550
  const getListBrandingUrl = (params) => {
1327
1551
  const normalizedParams = new URLSearchParams();
1328
1552
  Object.entries(params || {}).forEach(([key, value]) => {
1329
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1553
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1330
1554
  });
1331
1555
  const stringifiedParams = normalizedParams.toString();
1332
1556
  return stringifiedParams.length > 0 ? `${getProxyPath()}/branding?${stringifiedParams}` : `${getProxyPath()}/branding`;
1333
1557
  };
1334
1558
  /**
1335
1559
  * Lists branding revisions for the project, newest first, capped at the
1336
- 100 most recent. The first entry is the revision flow responses
1337
- currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
1338
- real query mechanism together; advertising pagination parameters the
1339
- server ignores would be worse than none.
1340
-
1560
+ * 100 most recent. The first entry is the revision flow responses
1561
+ * currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
1562
+ * real query mechanism together; advertising pagination parameters the
1563
+ * server ignores would be worse than none.
1341
1564
  * @summary List branding revisions
1342
1565
  */
1343
1566
  const listBranding = async (params, options) => {
@@ -1347,7 +1570,7 @@ const listBranding = async (params, options) => {
1347
1570
  });
1348
1571
  };
1349
1572
  const getGetBrandingByIdUrl = (id) => {
1350
- return `${getProxyPath()}/branding/${id}`;
1573
+ return `${getProxyPath()}/branding/${encodeURIComponent(String(id))}`;
1351
1574
  };
1352
1575
  /**
1353
1576
  * Retrieves a single branding revision, including its stored configuration.
@@ -1362,44 +1585,51 @@ const getBrandingById = async (id, options) => {
1362
1585
  const getCreateIdpUrl = (params) => {
1363
1586
  const normalizedParams = new URLSearchParams();
1364
1587
  Object.entries(params || {}).forEach(([key, value]) => {
1365
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1588
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1366
1589
  });
1367
1590
  const stringifiedParams = normalizedParams.toString();
1368
1591
  return stringifiedParams.length > 0 ? `${getProxyPath()}/idps?${stringifiedParams}` : `${getProxyPath()}/idps`;
1369
1592
  };
1370
1593
  /**
1371
1594
  * Creates or revises a connection document. If the slug does not already
1372
- exist, a new connection is created. If a connection with that slug already
1373
- exists, a revision is created.
1374
-
1375
- A revision gets a new `revision_id` and does not modify the connection
1376
- `id`, so identity links that reference the connection keep resolving while
1377
- releases and auth attempts stay pinned to the revision they captured.
1378
-
1379
- Identity fields are fixed for the life of the connection and a revision
1380
- that changes one is rejected: `protocol`, `subject_claim`, and the
1381
- endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
1382
- and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
1383
- account a stored subject belongs to, so changing one would silently
1384
- repoint existing identities at a different provider.
1385
-
1386
- `subject_claim` is optional for OIDC and required for OAuth 2.0. For an
1387
- OIDC connection, `sub` is used as the default value. If a revision updates
1388
- `subject_claim` to a different value than the one set during creation, the
1389
- request is rejected.
1390
-
1391
- The document is validated against the `idp-connection.json` schema before
1392
- anything is stored.
1393
-
1595
+ * exist, a new connection is created. If a connection with that slug already
1596
+ * exists, a revision is created.
1597
+ *
1598
+ * A revision gets a new `revision_id` and does not modify the connection
1599
+ * `id`, so identity links that reference the connection keep resolving while
1600
+ * releases and auth attempts stay pinned to the revision they captured.
1601
+ *
1602
+ * Identity fields are fixed for the life of the connection and a revision
1603
+ * that changes one is rejected: `protocol`, `subject_claim`, and the
1604
+ * endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
1605
+ * and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
1606
+ * account a stored subject belongs to, so changing one would silently
1607
+ * repoint existing identities at a different provider.
1608
+ *
1609
+ * `subject_claim` is optional for OIDC and required for OAuth 2.0. For an
1610
+ * OIDC connection, `sub` is used as the default value. If a revision updates
1611
+ * `subject_claim` to a different value than the one set during creation, the
1612
+ * request is rejected.
1613
+ *
1614
+ * The document is validated against the `idp-connection.json` schema before
1615
+ * anything is stored.
1394
1616
  * @summary Create or revise an identity provider connection
1395
1617
  */
1396
1618
  const createIdp = async (createIdpBody, params, options) => {
1619
+ const getHeaders = (h) => {
1620
+ if (!h) return {};
1621
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1622
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1623
+ const headers = {};
1624
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1625
+ return headers;
1626
+ };
1397
1627
  return customFetch(getCreateIdpUrl(params), {
1398
1628
  ...options,
1399
1629
  method: "POST",
1400
1630
  headers: {
1401
1631
  "Content-Type": "application/json",
1402
- ...options?.headers
1632
+ ...getHeaders(options?.headers)
1403
1633
  },
1404
1634
  body: JSON.stringify(createIdpBody)
1405
1635
  });
@@ -1407,24 +1637,31 @@ const createIdp = async (createIdpBody, params, options) => {
1407
1637
  const getQueryIdpsUrl = (params) => {
1408
1638
  const normalizedParams = new URLSearchParams();
1409
1639
  Object.entries(params || {}).forEach(([key, value]) => {
1410
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1640
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1411
1641
  });
1412
1642
  const stringifiedParams = normalizedParams.toString();
1413
1643
  return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/query?${stringifiedParams}` : `${getProxyPath()}/idps/query`;
1414
1644
  };
1415
1645
  /**
1416
1646
  * Returns the identity provider connections of a project, paginated with a
1417
- cursor. One row per connection, carrying its newest revision.
1418
-
1647
+ * cursor. One row per connection, carrying its newest revision.
1419
1648
  * @summary Query identity provider connections
1420
1649
  */
1421
1650
  const queryIdps = async (queryIdpsBody, params, options) => {
1651
+ const getHeaders = (h) => {
1652
+ if (!h) return {};
1653
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1654
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1655
+ const headers = {};
1656
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1657
+ return headers;
1658
+ };
1422
1659
  return customFetch(getQueryIdpsUrl(params), {
1423
1660
  ...options,
1424
1661
  method: "POST",
1425
1662
  headers: {
1426
1663
  "Content-Type": "application/json",
1427
- ...options?.headers
1664
+ ...getHeaders(options?.headers)
1428
1665
  },
1429
1666
  body: JSON.stringify(queryIdpsBody)
1430
1667
  });
@@ -1432,17 +1669,16 @@ const queryIdps = async (queryIdpsBody, params, options) => {
1432
1669
  const getGetIdpByIdUrl = (id, params) => {
1433
1670
  const normalizedParams = new URLSearchParams();
1434
1671
  Object.entries(params || {}).forEach(([key, value]) => {
1435
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1672
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1436
1673
  });
1437
1674
  const stringifiedParams = normalizedParams.toString();
1438
- return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/${id}?${stringifiedParams}` : `${getProxyPath()}/idps/${id}`;
1675
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/idps/${encodeURIComponent(String(id))}`;
1439
1676
  };
1440
1677
  /**
1441
1678
  * Reads a connection by its id, at its newest revision.
1442
- `GET /idps/{id}/revisions` lists every revision of the connection.
1443
-
1444
- The lookup is scoped to the project in `project_id`.
1445
-
1679
+ * `GET /idps/{id}/revisions` lists every revision of the connection.
1680
+ *
1681
+ * The lookup is scoped to the project in `project_id`.
1446
1682
  * @summary Get an identity provider connection by id
1447
1683
  */
1448
1684
  const getIdpById = async (id, params, options) => {
@@ -1454,17 +1690,16 @@ const getIdpById = async (id, params, options) => {
1454
1690
  const getListIdpRevisionsUrl = (id, params) => {
1455
1691
  const normalizedParams = new URLSearchParams();
1456
1692
  Object.entries(params || {}).forEach(([key, value]) => {
1457
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1693
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1458
1694
  });
1459
1695
  const stringifiedParams = normalizedParams.toString();
1460
- return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/${id}/revisions?${stringifiedParams}` : `${getProxyPath()}/idps/${id}/revisions`;
1696
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/${encodeURIComponent(String(id))}/revisions?${stringifiedParams}` : `${getProxyPath()}/idps/${encodeURIComponent(String(id))}/revisions`;
1461
1697
  };
1462
1698
  /**
1463
1699
  * Returns every revision of one connection, newest first, paginated with a
1464
- cursor. The order is fixed, so there is no `sorting`.
1465
-
1466
- The lookup is scoped to the project in `project_id`.
1467
-
1700
+ * cursor. The order is fixed, so there is no `sorting`.
1701
+ *
1702
+ * The lookup is scoped to the project in `project_id`.
1468
1703
  * @summary List the revisions of an identity provider connection
1469
1704
  */
1470
1705
  const listIdpRevisions = async (id, params, options) => {
@@ -1476,17 +1711,16 @@ const listIdpRevisions = async (id, params, options) => {
1476
1711
  const getGetIdpRevisionByIdUrl = (revisionId, params) => {
1477
1712
  const normalizedParams = new URLSearchParams();
1478
1713
  Object.entries(params || {}).forEach(([key, value]) => {
1479
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1714
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1480
1715
  });
1481
1716
  const stringifiedParams = normalizedParams.toString();
1482
- return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/revisions/${revisionId}?${stringifiedParams}` : `${getProxyPath()}/idps/revisions/${revisionId}`;
1717
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/idps/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}` : `${getProxyPath()}/idps/revisions/${encodeURIComponent(String(revisionId))}`;
1483
1718
  };
1484
1719
  /**
1485
1720
  * Reads one revision of a connection by its `revision_id`, the value an auth
1486
- attempt or a release pins.
1487
-
1488
- The lookup is scoped to the project in `project_id`.
1489
-
1721
+ * attempt or a release pins.
1722
+ *
1723
+ * The lookup is scoped to the project in `project_id`.
1490
1724
  * @summary Get one revision of an identity provider connection
1491
1725
  */
1492
1726
  const getIdpRevisionById = async (revisionId, params, options) => {
@@ -1498,37 +1732,44 @@ const getIdpRevisionById = async (revisionId, params, options) => {
1498
1732
  const getCreateReleaseUrl = (params) => {
1499
1733
  const normalizedParams = new URLSearchParams();
1500
1734
  Object.entries(params || {}).forEach(([key, value]) => {
1501
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1735
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1502
1736
  });
1503
1737
  const stringifiedParams = normalizedParams.toString();
1504
1738
  return stringifiedParams.length > 0 ? `${getProxyPath()}/releases?${stringifiedParams}` : `${getProxyPath()}/releases`;
1505
1739
  };
1506
1740
  /**
1507
1741
  * Bundles a release from revisions that already exist, supplied as
1508
- `(kind, revision_id)` pairs. No new revisions are allocated — use the
1509
- per-kind create endpoints for that, then pin the ids here.
1510
-
1511
- Every referenced `revision_id` must exist in the project. Each one's handle
1512
- is read from the revision itself and recorded on the release, so a resource
1513
- is always pinned under the identity it declares.
1514
-
1515
- Creating a release does not deploy it. A release is environment-agnostic
1516
- and the same release can later be deployed to any number of environments
1517
- unchanged.
1518
-
1519
- Idempotent on the pinned set: metadata is excluded from the comparison, so
1520
- re-submitting the same revisions with a different `message` returns the
1521
- release that already pins them rather than creating a second one.
1522
-
1742
+ * `(kind, revision_id)` pairs. No new revisions are allocated — use the
1743
+ * per-kind create endpoints for that, then pin the ids here.
1744
+ *
1745
+ * Every referenced `revision_id` must exist in the project. Each one's handle
1746
+ * is read from the revision itself and recorded on the release, so a resource
1747
+ * is always pinned under the identity it declares.
1748
+ *
1749
+ * Creating a release does not deploy it. A release is environment-agnostic
1750
+ * and the same release can later be deployed to any number of environments
1751
+ * unchanged.
1752
+ *
1753
+ * Idempotent on the pinned set: metadata is excluded from the comparison, so
1754
+ * re-submitting the same revisions with a different `message` returns the
1755
+ * release that already pins them rather than creating a second one.
1523
1756
  * @summary Create a release
1524
1757
  */
1525
1758
  const createRelease = async (createReleaseBody, params, options) => {
1759
+ const getHeaders = (h) => {
1760
+ if (!h) return {};
1761
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1762
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1763
+ const headers = {};
1764
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1765
+ return headers;
1766
+ };
1526
1767
  return customFetch(getCreateReleaseUrl(params), {
1527
1768
  ...options,
1528
1769
  method: "POST",
1529
1770
  headers: {
1530
1771
  "Content-Type": "application/json",
1531
- ...options?.headers
1772
+ ...getHeaders(options?.headers)
1532
1773
  },
1533
1774
  body: JSON.stringify(createReleaseBody)
1534
1775
  });
@@ -1536,17 +1777,16 @@ const createRelease = async (createReleaseBody, params, options) => {
1536
1777
  const getListReleasesUrl = (params) => {
1537
1778
  const normalizedParams = new URLSearchParams();
1538
1779
  Object.entries(params || {}).forEach(([key, value]) => {
1539
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1780
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1540
1781
  });
1541
1782
  const stringifiedParams = normalizedParams.toString();
1542
1783
  return stringifiedParams.length > 0 ? `${getProxyPath()}/releases?${stringifiedParams}` : `${getProxyPath()}/releases`;
1543
1784
  };
1544
1785
  /**
1545
1786
  * Lists the project's releases, newest first.
1546
-
1547
- Entries carry metadata only — the pinned set is omitted. Read one release
1548
- with `GET /releases/{release_id}` to get its pointers.
1549
-
1787
+ *
1788
+ * Entries carry metadata only — the pinned set is omitted. Read one release
1789
+ * with `GET /releases/{release_id}` to get its pointers.
1550
1790
  * @summary List releases
1551
1791
  */
1552
1792
  const listReleases = async (params, options) => {
@@ -1558,23 +1798,22 @@ const listReleases = async (params, options) => {
1558
1798
  const getGetReleaseByIdUrl = (releaseId, params) => {
1559
1799
  const normalizedParams = new URLSearchParams();
1560
1800
  Object.entries(params || {}).forEach(([key, value]) => {
1561
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1801
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1562
1802
  });
1563
1803
  const stringifiedParams = normalizedParams.toString();
1564
- return stringifiedParams.length > 0 ? `${getProxyPath()}/releases/${releaseId}?${stringifiedParams}` : `${getProxyPath()}/releases/${releaseId}`;
1804
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/releases/${encodeURIComponent(String(releaseId))}?${stringifiedParams}` : `${getProxyPath()}/releases/${encodeURIComponent(String(releaseId))}`;
1565
1805
  };
1566
1806
  /**
1567
1807
  * Reads one release: its metadata and the `(kind, handle, revision_id)`
1568
- tuples it pins.
1569
-
1570
- Does not embed resource content. Resolve each `revision_id` through the
1571
- per-kind read endpoints when the bytes are needed.
1572
-
1573
- The lookup is scoped to the project in `project_id`: a release id belonging
1574
- to another project answers not found exactly as an unknown id does, so the
1575
- endpoint cannot be used to probe for releases in projects the caller cannot
1576
- read.
1577
-
1808
+ * tuples it pins.
1809
+ *
1810
+ * Does not embed resource content. Resolve each `revision_id` through the
1811
+ * per-kind read endpoints when the bytes are needed.
1812
+ *
1813
+ * The lookup is scoped to the project in `project_id`: a release id belonging
1814
+ * to another project answers not found exactly as an unknown id does, so the
1815
+ * endpoint cannot be used to probe for releases in projects the caller cannot
1816
+ * read.
1578
1817
  * @summary Get a release by id
1579
1818
  */
1580
1819
  const getReleaseById = async (releaseId, params, options) => {
@@ -1586,41 +1825,48 @@ const getReleaseById = async (releaseId, params, options) => {
1586
1825
  const getCreateGrantUrl = (params) => {
1587
1826
  const normalizedParams = new URLSearchParams();
1588
1827
  Object.entries(params || {}).forEach(([key, value]) => {
1589
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1828
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1590
1829
  });
1591
1830
  const stringifiedParams = normalizedParams.toString();
1592
1831
  return stringifiedParams.length > 0 ? `${getProxyPath()}/grants?${stringifiedParams}` : `${getProxyPath()}/grants`;
1593
1832
  };
1594
1833
  /**
1595
1834
  * Bind a user or team to `project.viewer`, `project.editor`, or
1596
- `project.admin` on the project identified by the `project-id` header.
1597
- Name the principal with `user` (`user_id` or `identifier`) or `team`
1598
- (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
1599
- (`project.team`) grants are not created here — claim owns that path. An
1600
- unrevoked grant with the same principal and relation occupies the unique
1601
- key even after `expires_at`; DELETE it before re-creating.
1602
- Create does not accept `expand`. The `user_id` and team locators
1603
- return 201, whose `user` / `team` carry only `user_id` / `team_id`,
1604
- and still 404 / 409 when the principal is missing or the tuple
1605
- already exists. Creating by `user.identifier` answers 202 with no
1606
- body on every outcome. Granting the session caller's own user is
1607
- `grant.invalid` on either user locator. Read the grant back for
1608
- identifier and display.
1609
-
1610
- Accepts either a project secret (`oauth2`) or a user-bound Console
1611
- session cookie (`nextgenSession`). Session callers are authorized as
1612
- the human against the target project (home may differ). CSRF/Origin
1613
- for cookie mutations is a follow-up (#1140).
1614
-
1835
+ * `project.admin` on the project identified by the `project-id` header.
1836
+ * Name the principal with `user` (`user_id` or `identifier`) or `team`
1837
+ * (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
1838
+ * (`project.team`) grants are not created here — claim owns that path. An
1839
+ * unrevoked grant with the same principal and relation occupies the unique
1840
+ * key even after `expires_at`; DELETE it before re-creating.
1841
+ * Create does not accept `expand`. The `user_id` and team locators
1842
+ * return 201, whose `user` / `team` carry only `user_id` / `team_id`,
1843
+ * and still 404 / 409 when the principal is missing or the tuple
1844
+ * already exists. Creating by `user.identifier` answers 202 with no
1845
+ * body on every outcome. Granting the session caller's own user is
1846
+ * `grant.invalid` on either user locator. Read the grant back for
1847
+ * identifier and display.
1848
+ *
1849
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
1850
+ * session cookie (`nextgenSession`). Session callers are authorized as
1851
+ * the human against the target project (home may differ). Cookie-authenticated
1852
+ * requests follow the scheme's CSRF rules (`nextgenSession`).
1615
1853
  * @summary Create grant
1616
1854
  */
1617
1855
  const createGrant = async (createGrantBody, params, options) => {
1856
+ const getHeaders = (h) => {
1857
+ if (!h) return {};
1858
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1859
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1860
+ const headers = {};
1861
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1862
+ return headers;
1863
+ };
1618
1864
  return customFetch(getCreateGrantUrl(params), {
1619
1865
  ...options,
1620
1866
  method: "POST",
1621
1867
  headers: {
1622
1868
  "Content-Type": "application/json",
1623
- ...options?.headers
1869
+ ...getHeaders(options?.headers)
1624
1870
  },
1625
1871
  body: JSON.stringify(createGrantBody)
1626
1872
  });
@@ -1628,38 +1874,45 @@ const createGrant = async (createGrantBody, params, options) => {
1628
1874
  const getQueryGrantsUrl = (params) => {
1629
1875
  const normalizedParams = new URLSearchParams();
1630
1876
  Object.entries(params || {}).forEach(([key, value]) => {
1631
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1877
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1632
1878
  });
1633
1879
  const stringifiedParams = normalizedParams.toString();
1634
1880
  return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/query?${stringifiedParams}` : `${getProxyPath()}/grants/query`;
1635
1881
  };
1636
1882
  /**
1637
1883
  * Returns the collaboration grants of a project, paginated with a cursor.
1638
- Only unrevoked grants this API manages are listed (user or team bound to
1639
- viewer, editor, or admin), including expired grants so a client can
1640
- DELETE before re-granting. Project-secret setup (`sk_proj`) and
1641
- owning-team (`relation=team`) rows are not returned. Grants are not in
1642
- `resource_scope_index`; project scope is required on the query (same as
1643
- get). Requires `project.read`. `expand: ["principal"]` adds envelope
1644
- fields on `user` / `team` and additionally requires `user.read` and
1645
- `team.read` for project secrets (documented on the expand enum; those
1646
- scopes cannot be ANDed onto this security block because they are
1647
- body-conditional). A user-bound Console session that already passed
1648
- the project Check may expand without those scopes.
1649
-
1650
- Accepts either a project secret (`oauth2`) or a user-bound Console
1651
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
1652
- is a follow-up (#1140).
1653
-
1884
+ * Only unrevoked grants this API manages are listed (user or team bound to
1885
+ * viewer, editor, or admin), including expired grants so a client can
1886
+ * DELETE before re-granting. Project-secret setup (`sk_proj`) and
1887
+ * owning-team (`relation=team`) rows are not returned. Grants are not in
1888
+ * `resource_scope_index`; project scope is required on the query (same as
1889
+ * get). Requires `project.read`. `expand: ["principal"]` adds envelope
1890
+ * fields on `user` / `team` and additionally requires `user.read` and
1891
+ * `team.read` for project secrets (documented on the expand enum; those
1892
+ * scopes cannot be ANDed onto this security block because they are
1893
+ * body-conditional). A user-bound Console session that already passed
1894
+ * the project Check may expand without those scopes.
1895
+ *
1896
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
1897
+ * session cookie (`nextgenSession`). Cookie-authenticated requests
1898
+ * follow the scheme's CSRF rules (`nextgenSession`).
1654
1899
  * @summary Query grants
1655
1900
  */
1656
1901
  const queryGrants = async (queryGrantsBody, params, options) => {
1902
+ const getHeaders = (h) => {
1903
+ if (!h) return {};
1904
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1905
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1906
+ const headers = {};
1907
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1908
+ return headers;
1909
+ };
1657
1910
  return customFetch(getQueryGrantsUrl(params), {
1658
1911
  ...options,
1659
1912
  method: "POST",
1660
1913
  headers: {
1661
1914
  "Content-Type": "application/json",
1662
- ...options?.headers
1915
+ ...getHeaders(options?.headers)
1663
1916
  },
1664
1917
  body: JSON.stringify(queryGrantsBody)
1665
1918
  });
@@ -1667,29 +1920,34 @@ const queryGrants = async (queryGrantsBody, params, options) => {
1667
1920
  const getGetGrantUrl = (id, params) => {
1668
1921
  const normalizedParams = new URLSearchParams();
1669
1922
  Object.entries(params || {}).forEach(([key, value]) => {
1670
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1923
+ if (Array.isArray(value) && ["expand"].includes(key)) {
1924
+ value.forEach((v) => {
1925
+ normalizedParams.append(key, v === null ? "null" : String(v));
1926
+ });
1927
+ return;
1928
+ }
1929
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1671
1930
  });
1672
1931
  const stringifiedParams = normalizedParams.toString();
1673
- return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${id}?${stringifiedParams}` : `${getProxyPath()}/grants/${id}`;
1932
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/grants/${encodeURIComponent(String(id))}`;
1674
1933
  };
1675
1934
  /**
1676
1935
  * Loads a grant by `(project_id, id)` that this API manages (user or team
1677
- bound to viewer, editor, or admin) and that has not been revoked.
1678
- "Active" here means not revoked: expired grants stay visible so the
1679
- client can DELETE before re-granting the same binding. Authorization
1680
- still ignores expired grants. Grants are not registered in
1681
- `resource_scope_index`; project scope is required on the query (same as
1682
- events). Misses, revoked rows, project-secret setup (`sk_proj`),
1683
- owning-team (`relation=team`) rows, and cross-project ids return 404.
1684
- `expand=principal` adds envelope fields on `user` or `team` and requires
1685
- `user.read` and `team.read` in addition to `project.read` for project
1686
- secrets. A user-bound Console session that already passed the project
1687
- Check may expand without those scopes.
1688
-
1689
- Accepts either a project secret (`oauth2`) or a user-bound Console
1690
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
1691
- is a follow-up (#1140).
1692
-
1936
+ * bound to viewer, editor, or admin) and that has not been revoked.
1937
+ * "Active" here means not revoked: expired grants stay visible so the
1938
+ * client can DELETE before re-granting the same binding. Authorization
1939
+ * still ignores expired grants. Grants are not registered in
1940
+ * `resource_scope_index`; project scope is required on the query (same as
1941
+ * events). Misses, revoked rows, project-secret setup (`sk_proj`),
1942
+ * owning-team (`relation=team`) rows, and cross-project ids return 404.
1943
+ * `expand=principal` adds envelope fields on `user` or `team` and requires
1944
+ * `user.read` and `team.read` in addition to `project.read` for project
1945
+ * secrets. A user-bound Console session that already passed the project
1946
+ * Check may expand without those scopes.
1947
+ *
1948
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
1949
+ * session cookie (`nextgenSession`). Cookie-authenticated requests
1950
+ * follow the scheme's CSRF rules (`nextgenSession`).
1693
1951
  * @summary Get grant
1694
1952
  */
1695
1953
  const getGrant = async (id, params, options) => {
@@ -1701,21 +1959,20 @@ const getGrant = async (id, params, options) => {
1701
1959
  const getDeleteGrantUrl = (id, params) => {
1702
1960
  const normalizedParams = new URLSearchParams();
1703
1961
  Object.entries(params || {}).forEach(([key, value]) => {
1704
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1962
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1705
1963
  });
1706
1964
  const stringifiedParams = normalizedParams.toString();
1707
- return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${id}?${stringifiedParams}` : `${getProxyPath()}/grants/${id}`;
1965
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/grants/${encodeURIComponent(String(id))}`;
1708
1966
  };
1709
1967
  /**
1710
1968
  * Soft-revokes a grant this API manages and emits `authz.revoked`.
1711
- Already-revoked, missing, project-secret setup, and owning-team grants
1712
- return 404. The row is not un-revoked. Expired grants can still be
1713
- revoked so the unique binding can be reused.
1714
-
1715
- Accepts either a project secret (`oauth2`) or a user-bound Console
1716
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
1717
- is a follow-up (#1140).
1718
-
1969
+ * Already-revoked, missing, project-secret setup, and owning-team grants
1970
+ * return 404. The row is not un-revoked. Expired grants can still be
1971
+ * revoked so the unique binding can be reused.
1972
+ *
1973
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
1974
+ * session cookie (`nextgenSession`). Cookie-authenticated requests
1975
+ * follow the scheme's CSRF rules (`nextgenSession`).
1719
1976
  * @summary Revoke grant
1720
1977
  */
1721
1978
  const deleteGrant = async (id, params, options) => {
@@ -1729,28 +1986,27 @@ const getListEventsUrl = (params) => {
1729
1986
  Object.entries(params || {}).forEach(([key, value]) => {
1730
1987
  if (Array.isArray(value) && ["category", "event_type"].includes(key)) {
1731
1988
  value.forEach((v) => {
1732
- normalizedParams.append(key, v === null ? "null" : v.toString());
1989
+ normalizedParams.append(key, v === null ? "null" : String(v));
1733
1990
  });
1734
1991
  return;
1735
1992
  }
1736
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1993
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1737
1994
  });
1738
1995
  const stringifiedParams = normalizedParams.toString();
1739
1996
  return stringifiedParams.length > 0 ? `${getProxyPath()}/events?${stringifiedParams}` : `${getProxyPath()}/events`;
1740
1997
  };
1741
1998
  /**
1742
1999
  * Returns project-scoped audit events, newest-first by keyset on
1743
- `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
1744
- Requires `events.read`.
1745
-
1746
- Pre-claim projects return an empty list (events are stored but not
1747
- visible until claim succeeds). Team-scoped credentials see only events
1748
- whose emit-time `team_id` matches the credential team (enforced when
1749
- team-scoped tokens exist).
1750
-
1751
- Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
1752
- see docs/design/api/events-catalog.md.
1753
-
2000
+ * `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
2001
+ * Requires `events.read`.
2002
+ *
2003
+ * Pre-claim projects return an empty list (events are stored but not
2004
+ * visible until claim succeeds). Team-scoped credentials see only events
2005
+ * whose emit-time `team_id` matches the credential team (enforced when
2006
+ * team-scoped tokens exist).
2007
+ *
2008
+ * Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
2009
+ * see docs/design/api/events-catalog.md.
1754
2010
  * @summary List events
1755
2011
  */
1756
2012
  const listEvents = async (params, options) => {
@@ -1762,18 +2018,17 @@ const listEvents = async (params, options) => {
1762
2018
  const getGetEventUrl = (id, params) => {
1763
2019
  const normalizedParams = new URLSearchParams();
1764
2020
  Object.entries(params || {}).forEach(([key, value]) => {
1765
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
2021
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1766
2022
  });
1767
2023
  const stringifiedParams = normalizedParams.toString();
1768
- return stringifiedParams.length > 0 ? `${getProxyPath()}/events/${id}?${stringifiedParams}` : `${getProxyPath()}/events/${id}`;
2024
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/events/${encodeURIComponent(String(id))}?${stringifiedParams}` : `${getProxyPath()}/events/${encodeURIComponent(String(id))}`;
1769
2025
  };
1770
2026
  /**
1771
2027
  * Loads a single event by `(project_id, id)`. Requires `events.read`.
1772
- Events are not registered in `resource_scope_index`; project scope is
1773
- required on the query (ADR 049). Misses and cross-project ids return 404.
1774
-
1775
- Pre-claim projects return 404 (stored events stay invisible until claim).
1776
-
2028
+ * Events are not registered in `resource_scope_index`; project scope is
2029
+ * required on the query (ADR 049). Misses and cross-project ids return 404.
2030
+ *
2031
+ * Pre-claim projects return 404 (stored events stay invisible until claim).
1777
2032
  * @summary Get event by ID
1778
2033
  */
1779
2034
  const getEvent = async (id, params, options) => {
@@ -1785,23 +2040,22 @@ const getEvent = async (id, params, options) => {
1785
2040
  const getGetVariablesUrl = (params) => {
1786
2041
  const normalizedParams = new URLSearchParams();
1787
2042
  Object.entries(params || {}).forEach(([key, value]) => {
1788
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
2043
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1789
2044
  });
1790
2045
  const stringifiedParams = normalizedParams.toString();
1791
2046
  return stringifiedParams.length > 0 ? `${getProxyPath()}/variables?${stringifiedParams}` : `${getProxyPath()}/variables`;
1792
2047
  };
1793
2048
  /**
1794
2049
  * Returns the variables entered at the owner this request addresses, keyed by
1795
- name — one environment of the project with `environment_name`, the project
1796
- level itself without it.
1797
-
1798
- Owners are separate, not a ladder: an environment does not inherit the
1799
- project's variables and the project does not see its environments'. Reading
1800
- everything a project holds therefore means reading each owner in turn.
1801
-
1802
- Secret values are not returned. A secret appears as `{"secret": true}`,
1803
- which says a value is held without disclosing it.
1804
-
2050
+ * name — one environment of the project with `environment_name`, the project
2051
+ * level itself without it.
2052
+ *
2053
+ * Owners are separate, not a ladder: an environment does not inherit the
2054
+ * project's variables and the project does not see its environments'. Reading
2055
+ * everything a project holds therefore means reading each owner in turn.
2056
+ *
2057
+ * Secret values are not returned. A secret appears as `{"secret": true}`,
2058
+ * which says a value is held without disclosing it.
1805
2059
  * @summary Get variables
1806
2060
  */
1807
2061
  const getVariables = async (params, options) => {
@@ -1813,39 +2067,46 @@ const getVariables = async (params, options) => {
1813
2067
  const getUpdateVariablesUrl = (params) => {
1814
2068
  const normalizedParams = new URLSearchParams();
1815
2069
  Object.entries(params || {}).forEach(([key, value]) => {
1816
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
2070
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1817
2071
  });
1818
2072
  const stringifiedParams = normalizedParams.toString();
1819
2073
  return stringifiedParams.length > 0 ? `${getProxyPath()}/variables?${stringifiedParams}` : `${getProxyPath()}/variables`;
1820
2074
  };
1821
2075
  /**
1822
2076
  * Enters, replaces and removes variables at the owner this request
1823
- addresses.
1824
-
1825
- Every name in the body is applied at exactly that owner — the project, or
1826
- the environment named by `environment_name` — and reaches no other. Names
1827
- not in the body are untouched.
1828
-
1829
- A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
1830
- stores the value encrypted under the project's active `secret` key, after
1831
- which it can be referenced but not read back. `null` removes the name from
1832
- this owner (RFC 7386), which is how several variables are removed in one
1833
- request; removing a name this owner does not hold is a no-op rather than an
1834
- error.
1835
-
1836
- The body is applied whole or not at all, so a rejected request leaves the
1837
- owner exactly as it was. Writing the same name and owner twice replaces the
1838
- value rather than duplicating it, which makes a retry safe.
1839
-
2077
+ * addresses.
2078
+ *
2079
+ * Every name in the body is applied at exactly that owner — the project, or
2080
+ * the environment named by `environment_name` — and reaches no other. Names
2081
+ * not in the body are untouched.
2082
+ *
2083
+ * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
2084
+ * stores the value encrypted under the project's active `secret` key, after
2085
+ * which it can be referenced but not read back. `null` removes the name from
2086
+ * this owner (RFC 7386), which is how several variables are removed in one
2087
+ * request; removing a name this owner does not hold is a no-op rather than an
2088
+ * error.
2089
+ *
2090
+ * The body is applied whole or not at all, so a rejected request leaves the
2091
+ * owner exactly as it was. Writing the same name and owner twice replaces the
2092
+ * value rather than duplicating it, which makes a retry safe.
1840
2093
  * @summary Update variables
1841
2094
  */
1842
2095
  const updateVariables = async (updateVariablesBody, params, options) => {
2096
+ const getHeaders = (h) => {
2097
+ if (!h) return {};
2098
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2099
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2100
+ const headers = {};
2101
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2102
+ return headers;
2103
+ };
1843
2104
  return customFetch(getUpdateVariablesUrl(params), {
1844
2105
  ...options,
1845
2106
  method: "PATCH",
1846
2107
  headers: {
1847
2108
  "Content-Type": "application/json",
1848
- ...options?.headers
2109
+ ...getHeaders(options?.headers)
1849
2110
  },
1850
2111
  body: JSON.stringify(updateVariablesBody)
1851
2112
  });
@@ -1853,20 +2114,19 @@ const updateVariables = async (updateVariablesBody, params, options) => {
1853
2114
  const getGetVariableUrl = (variableName, params) => {
1854
2115
  const normalizedParams = new URLSearchParams();
1855
2116
  Object.entries(params || {}).forEach(([key, value]) => {
1856
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
2117
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1857
2118
  });
1858
2119
  const stringifiedParams = normalizedParams.toString();
1859
- return stringifiedParams.length > 0 ? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}` : `${getProxyPath()}/variables/${variableName}`;
2120
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}`;
1860
2121
  };
1861
2122
  /**
1862
2123
  * Reads one variable by name from the owner this request addresses — one
1863
- environment of the project with `environment_name`, the project level
1864
- itself without it.
1865
-
1866
- A name that owner has not entered answers `var.not_found`, even when
1867
- another owner of the same project holds it: nothing is inherited. A secret
1868
- is found but not disclosed: the response is `{"secret": true}`.
1869
-
2124
+ * environment of the project with `environment_name`, the project level
2125
+ * itself without it.
2126
+ *
2127
+ * A name that owner has not entered answers `var.not_found`, even when
2128
+ * another owner of the same project holds it: nothing is inherited. A secret
2129
+ * is found but not disclosed: the response is `{"secret": true}`.
1870
2130
  * @summary Get a variable
1871
2131
  */
1872
2132
  const getVariable = async (variableName, params, options) => {
@@ -1878,18 +2138,17 @@ const getVariable = async (variableName, params, options) => {
1878
2138
  const getDeleteVariableUrl = (variableName, params) => {
1879
2139
  const normalizedParams = new URLSearchParams();
1880
2140
  Object.entries(params || {}).forEach(([key, value]) => {
1881
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
2141
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1882
2142
  });
1883
2143
  const stringifiedParams = normalizedParams.toString();
1884
- return stringifiedParams.length > 0 ? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}` : `${getProxyPath()}/variables/${variableName}`;
2144
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}` : `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}`;
1885
2145
  };
1886
2146
  /**
1887
2147
  * Removes the variable this owner entered under this name.
1888
-
1889
- A variable is deletable only by the owner that entered it. Deleting a name
1890
- another owner of the same project holds answers `var.not_found` and leaves
1891
- that owner's value standing.
1892
-
2148
+ *
2149
+ * A variable is deletable only by the owner that entered it. Deleting a name
2150
+ * another owner of the same project holds answers `var.not_found` and leaves
2151
+ * that owner's value standing.
1893
2152
  * @summary Delete a variable
1894
2153
  */
1895
2154
  const deleteVariable = async (variableName, params, options) => {
@@ -1898,7 +2157,116 @@ const deleteVariable = async (variableName, params, options) => {
1898
2157
  method: "DELETE"
1899
2158
  });
1900
2159
  };
2160
+ const getCreateDeploymentUrl = (params) => {
2161
+ const normalizedParams = new URLSearchParams();
2162
+ Object.entries(params || {}).forEach(([key, value]) => {
2163
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2164
+ });
2165
+ const stringifiedParams = normalizedParams.toString();
2166
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/deployments?${stringifiedParams}` : `${getProxyPath()}/deployments`;
2167
+ };
2168
+ /**
2169
+ * Makes a release live on an environment by recording a deployment. The two
2170
+ * happen atomically: when the call returns, the environment runs the named
2171
+ * release and the record exists; on any failure the environment keeps
2172
+ * running what it ran and no record is written.
2173
+ *
2174
+ * Deploying, promoting and rolling back are all this call — `reason` says
2175
+ * which. None of them assembles a release: the release must already exist,
2176
+ * and rolling back means deploying a release the environment ran earlier,
2177
+ * chosen from its deployment history.
2178
+ *
2179
+ * Idempotent on the running release: deploying the release the environment
2180
+ * already runs changes nothing and answers `200` with the deployment that
2181
+ * made it live, so a re-run of `zitadel deploy` on unchanged content is a
2182
+ * no-op end to end — matching `POST /releases`, which resolves the same
2183
+ * content to the same release first. Anything else writes a new record,
2184
+ * including the same release returning after something else ran in between:
2185
+ * the log is append-only, and each row is one act of making a release live.
2186
+ *
2187
+ * `expected_current_deployment_id` guards against racing another deploy:
2188
+ * when present, the swap only happens if the environment's current
2189
+ * deployment still is the one named, and a mismatch answers `409` with the
2190
+ * actual `current_deployment_id` and `current_release_id` in the details.
2191
+ * @summary Create a deployment
2192
+ */
2193
+ const createDeployment = async (createDeploymentBody, params, options) => {
2194
+ const getHeaders = (h) => {
2195
+ if (!h) return {};
2196
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2197
+ if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2198
+ const headers = {};
2199
+ for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2200
+ return headers;
2201
+ };
2202
+ return customFetch(getCreateDeploymentUrl(params), {
2203
+ ...options,
2204
+ method: "POST",
2205
+ headers: {
2206
+ "Content-Type": "application/json",
2207
+ ...getHeaders(options?.headers)
2208
+ },
2209
+ body: JSON.stringify(createDeploymentBody)
2210
+ });
2211
+ };
2212
+ const getListDeploymentsUrl = (params) => {
2213
+ const normalizedParams = new URLSearchParams();
2214
+ Object.entries(params || {}).forEach(([key, value]) => {
2215
+ if (Array.isArray(value) && ["expand"].includes(key)) {
2216
+ value.forEach((v) => {
2217
+ normalizedParams.append(key, v === null ? "null" : String(v));
2218
+ });
2219
+ return;
2220
+ }
2221
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2222
+ });
2223
+ const stringifiedParams = normalizedParams.toString();
2224
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/deployments?${stringifiedParams}` : `${getProxyPath()}/deployments`;
2225
+ };
2226
+ /**
2227
+ * Lists deployments newest first: what ran where, and when.
2228
+ *
2229
+ * With `environment_name`, the list is that environment's history and its
2230
+ * first row is the environment's current deployment. Without it, the list
2231
+ * interleaves every environment of the project — a project-wide audit view
2232
+ * in which the first row is only the most recent deployment anywhere.
2233
+ *
2234
+ * `expand: ["release"]` embeds the release each deployment made live, so a
2235
+ * history renders with each entry's content without resolving `release_id`
2236
+ * one by one. Expanding requires `release.read` and does not affect the
2237
+ * ordering or the page tokens.
2238
+ * @summary List deployments
2239
+ */
2240
+ const listDeployments = async (params, options) => {
2241
+ return customFetch(getListDeploymentsUrl(params), {
2242
+ ...options,
2243
+ method: "GET"
2244
+ });
2245
+ };
2246
+ const getGetDeploymentByIdUrl = (deploymentId, params) => {
2247
+ const normalizedParams = new URLSearchParams();
2248
+ Object.entries(params || {}).forEach(([key, value]) => {
2249
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
2250
+ });
2251
+ const stringifiedParams = normalizedParams.toString();
2252
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/deployments/${encodeURIComponent(String(deploymentId))}?${stringifiedParams}` : `${getProxyPath()}/deployments/${encodeURIComponent(String(deploymentId))}`;
2253
+ };
2254
+ /**
2255
+ * Reads one deployment record.
2256
+ *
2257
+ * The lookup is scoped to the project in `project_id`: a deployment id
2258
+ * belonging to another project answers not found exactly as an unknown id
2259
+ * does, so the endpoint cannot be used to probe for deployments in projects
2260
+ * the caller cannot read.
2261
+ * @summary Get a deployment by id
2262
+ */
2263
+ const getDeploymentById = async (deploymentId, params, options) => {
2264
+ return customFetch(getGetDeploymentByIdUrl(deploymentId, params), {
2265
+ ...options,
2266
+ method: "GET"
2267
+ });
2268
+ };
1901
2269
  //#endregion
1902
- export { beginUserPasskeyRegistration, completeClaim, createAuthAttempt, createBranding, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, exchangeHandoff, finishUserPasskeyRegistration, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getEnvironmentByName, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetEnvironmentByNameUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetHealthUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMySessionUrl, getGetMyUserUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getHealth, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListEnvironmentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyProjectsUrl, getListReleasesUrl, getListSchemasUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMySession, getMyUser, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getProject, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRevokeMySessionUrl, getRevokeSessionUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listEnvironments, listEvents, listFlowDefinitions, listIdpRevisions, listMyProjects, listReleases, listSchemas, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, revokeMySession, revokeSession, setUserPassword, submitFlowStep, zitadelNextGen_exports as t, updateTeam, updateVariables, verifyChallengeProof };
2270
+ export { beginUserPasskeyRegistration, completeClaim, createAuthAttempt, createBranding, createDeployment, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, exchangeHandoff, finishUserPasskeyRegistration, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateDeploymentUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getDeploymentById, getEnvironmentByName, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetDeploymentByIdUrl, getGetEnvironmentByNameUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetHealthUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMySessionCsrfTokenUrl, getGetMySessionUrl, getGetMyUserUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getHealth, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListDeploymentsUrl, getListEnvironmentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyProjectsUrl, getListReleasesUrl, getListSchemasUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMySession, getMySessionCsrfToken, getMyUser, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getProject, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRevokeMySessionUrl, getRevokeSessionUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listDeployments, listEnvironments, listEvents, listFlowDefinitions, listIdpRevisions, listMyProjects, listReleases, listSchemas, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, revokeMySession, revokeSession, setUserPassword, submitFlowStep, zitadelNextGen_exports as t, updateTeam, updateVariables, verifyChallengeProof };
1903
2271
 
1904
2272
  //# sourceMappingURL=zitadelNextGen.mjs.map