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

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