@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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v8.10.0 🍺
2
+ * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Zitadel NextGen
5
5
  * This is the next generation of the Zitadel identity platform.
@@ -17,6 +17,10 @@ import type {
17
17
  CreateBranding201,
18
18
  CreateBrandingBody,
19
19
  CreateBrandingParams,
20
+ CreateDeployment200,
21
+ CreateDeployment201,
22
+ CreateDeploymentBody,
23
+ CreateDeploymentParams,
20
24
  CreateFlow201,
21
25
  CreateFlowBody,
22
26
  CreateFlowDefinition201,
@@ -59,6 +63,8 @@ import type {
59
63
  GetClaimStatusParams,
60
64
  GetClaimWindow200,
61
65
  GetClaimWindowParams,
66
+ GetDeploymentById200,
67
+ GetDeploymentByIdParams,
62
68
  GetEnvironmentByName200,
63
69
  GetEnvironmentByNameParams,
64
70
  GetEvent200,
@@ -94,6 +100,8 @@ import type {
94
100
  IssueChallengeBody,
95
101
  ListBranding200Item,
96
102
  ListBrandingParams,
103
+ ListDeployments200,
104
+ ListDeploymentsParams,
97
105
  ListEnvironments200,
98
106
  ListEnvironmentsParams,
99
107
  ListEvents200,
@@ -134,6 +142,7 @@ import type {
134
142
  QueryTeamsParams,
135
143
  QueryUsers200,
136
144
  QueryUsersBody,
145
+ QueryUsersParams,
137
146
  SetUserPasswordBody,
138
147
  SubmitFlowStep200,
139
148
  SubmitFlowStepBody,
@@ -154,7 +163,9 @@ export const getGetHealthUrl = () => {
154
163
  * Check whether the server is healthy
155
164
  * @summary Check server health
156
165
  */
157
- export const getHealth = async (options?: RequestInit): Promise<GetHealthDefault> => {
166
+ export const getHealth = async (
167
+ options?: Parameters<typeof customFetch>[1],
168
+ ): Promise<GetHealthDefault> => {
158
169
  return customFetch<GetHealthDefault>(getGetHealthUrl(), {
159
170
  ...options,
160
171
  method: "GET",
@@ -169,7 +180,9 @@ export const getGetLiveUrl = () => {
169
180
  * Check whether the server is started
170
181
  * @summary Check server liveness
171
182
  */
172
- export const getLive = async (options?: RequestInit): Promise<GetLiveDefault> => {
183
+ export const getLive = async (
184
+ options?: Parameters<typeof customFetch>[1],
185
+ ): Promise<GetLiveDefault> => {
173
186
  return customFetch<GetLiveDefault>(getGetLiveUrl(), {
174
187
  ...options,
175
188
  method: "GET",
@@ -184,7 +197,9 @@ export const getGetReadyUrl = () => {
184
197
  * Check whether the server is ready to accept requests
185
198
  * @summary Check server readiness
186
199
  */
187
- export const getReady = async (options?: RequestInit): Promise<GetReadyDefault> => {
200
+ export const getReady = async (
201
+ options?: Parameters<typeof customFetch>[1],
202
+ ): Promise<GetReadyDefault> => {
188
203
  return customFetch<GetReadyDefault>(getGetReadyUrl(), {
189
204
  ...options,
190
205
  method: "GET",
@@ -196,7 +211,7 @@ export const getCreateUserUrl = (params: CreateUserParams) => {
196
211
 
197
212
  Object.entries(params || {}).forEach(([key, value]) => {
198
213
  if (value !== undefined) {
199
- normalizedParams.append(key, value === null ? "null" : value.toString());
214
+ normalizedParams.append(key, value === null ? "null" : String(value));
200
215
  }
201
216
  });
202
217
 
@@ -213,42 +228,90 @@ export const getCreateUserUrl = (params: CreateUserParams) => {
213
228
  export const createUser = async (
214
229
  createUserBody: CreateUserBody,
215
230
  params: CreateUserParams,
216
- options?: RequestInit,
231
+ options?: Parameters<typeof customFetch>[1],
217
232
  ): Promise<CreateUser201> => {
233
+ const getHeaders = (
234
+ h?: NonNullable<RequestInit["headers"]>,
235
+ ): Record<string, string | readonly string[]> => {
236
+ if (!h) return {};
237
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
238
+ if (Symbol.iterator in h) {
239
+ return Object.fromEntries(
240
+ Array.from(
241
+ h as Iterable<Iterable<string>>,
242
+ (entry) => Array.from(entry) as [string, string],
243
+ ),
244
+ );
245
+ }
246
+ const headers: Record<string, string | readonly string[]> = {};
247
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
248
+ if (value !== undefined) headers[name] = value;
249
+ }
250
+ return headers;
251
+ };
218
252
  return customFetch<CreateUser201>(getCreateUserUrl(params), {
219
253
  ...options,
220
254
  method: "POST",
221
- headers: { "Content-Type": "application/json", ...options?.headers },
255
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
222
256
  body: JSON.stringify(createUserBody),
223
257
  });
224
258
  };
225
259
 
226
- export const getQueryUsersUrl = () => {
227
- return `${getProxyPath()}/users/query`;
228
- };
260
+ export const getQueryUsersUrl = (params?: QueryUsersParams) => {
261
+ const normalizedParams = new URLSearchParams();
229
262
 
230
- /**
231
- * Returns the users of a project, paginated with a cursor.
263
+ Object.entries(params || {}).forEach(([key, value]) => {
264
+ if (value !== undefined) {
265
+ normalizedParams.append(key, value === null ? "null" : String(value));
266
+ }
267
+ });
232
268
 
233
- The project comes from the credential, not from a parameter: the
234
- operation is bound to the credential's home project by construction
235
- (oauth2 secret or user-bound session). This is why it takes no
236
- `project_id`, unlike the other query endpoints.
269
+ const stringifiedParams = normalizedParams.toString();
237
270
 
238
- Accepts either a project secret (`oauth2`) or a user-bound Console
239
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
240
- is a follow-up (#1140).
271
+ return stringifiedParams.length > 0
272
+ ? `${getProxyPath()}/users/query?${stringifiedParams}`
273
+ : `${getProxyPath()}/users/query`;
274
+ };
241
275
 
276
+ /**
277
+ * Returns the users of a project, paginated with a cursor.
278
+ *
279
+ * `project_id` names the project to list; without it, the credential's own
280
+ * project is listed.
281
+ *
282
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
283
+ * session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
284
+ * is a follow-up (#1140).
242
285
  * @summary Query users
243
286
  */
244
287
  export const queryUsers = async (
245
288
  queryUsersBody: QueryUsersBody,
246
- options?: RequestInit,
289
+ params?: QueryUsersParams,
290
+ options?: Parameters<typeof customFetch>[1],
247
291
  ): Promise<QueryUsers200> => {
248
- return customFetch<QueryUsers200>(getQueryUsersUrl(), {
292
+ const getHeaders = (
293
+ h?: NonNullable<RequestInit["headers"]>,
294
+ ): Record<string, string | readonly string[]> => {
295
+ if (!h) return {};
296
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
297
+ if (Symbol.iterator in h) {
298
+ return Object.fromEntries(
299
+ Array.from(
300
+ h as Iterable<Iterable<string>>,
301
+ (entry) => Array.from(entry) as [string, string],
302
+ ),
303
+ );
304
+ }
305
+ const headers: Record<string, string | readonly string[]> = {};
306
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
307
+ if (value !== undefined) headers[name] = value;
308
+ }
309
+ return headers;
310
+ };
311
+ return customFetch<QueryUsers200>(getQueryUsersUrl(params), {
249
312
  ...options,
250
313
  method: "POST",
251
- headers: { "Content-Type": "application/json", ...options?.headers },
314
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
252
315
  body: JSON.stringify(queryUsersBody),
253
316
  });
254
317
  };
@@ -258,15 +321,15 @@ export const getGetUserByIDUrl = (userId: string, params?: GetUserByIDParams) =>
258
321
 
259
322
  Object.entries(params || {}).forEach(([key, value]) => {
260
323
  if (value !== undefined) {
261
- normalizedParams.append(key, value === null ? "null" : value.toString());
324
+ normalizedParams.append(key, value === null ? "null" : String(value));
262
325
  }
263
326
  });
264
327
 
265
328
  const stringifiedParams = normalizedParams.toString();
266
329
 
267
330
  return stringifiedParams.length > 0
268
- ? `${getProxyPath()}/users/${userId}?${stringifiedParams}`
269
- : `${getProxyPath()}/users/${userId}`;
331
+ ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}?${stringifiedParams}`
332
+ : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
270
333
  };
271
334
 
272
335
  /**
@@ -275,7 +338,7 @@ export const getGetUserByIDUrl = (userId: string, params?: GetUserByIDParams) =>
275
338
  export const getUserByID = async (
276
339
  userId: string,
277
340
  params?: GetUserByIDParams,
278
- options?: RequestInit,
341
+ options?: Parameters<typeof customFetch>[1],
279
342
  ): Promise<GetUserByID200> => {
280
343
  return customFetch<GetUserByID200>(getGetUserByIDUrl(userId, params), {
281
344
  ...options,
@@ -284,38 +347,59 @@ export const getUserByID = async (
284
347
  };
285
348
 
286
349
  export const getPatchUserByIDUrl = (userId: string) => {
287
- return `${getProxyPath()}/users/${userId}`;
350
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
288
351
  };
289
352
 
290
353
  /**
291
354
  * Partially updates a user's schema-defined attributes, and optionally
292
- moves the user to another registered schema. The merged result is
293
- validated against the schema before commit. Concurrent writes are
294
- last-write-wins.
295
-
355
+ * moves the user to another registered schema. The merged result is
356
+ * validated against the schema before commit. Concurrent writes are
357
+ * last-write-wins.
296
358
  * @summary Update user by ID
297
359
  */
298
360
  export const patchUserByID = async (
299
361
  userId: string,
300
362
  patchUserByIDBody: PatchUserByIDBody,
301
- options?: RequestInit,
363
+ options?: Parameters<typeof customFetch>[1],
302
364
  ): Promise<PatchUserByID200> => {
365
+ const getHeaders = (
366
+ h?: NonNullable<RequestInit["headers"]>,
367
+ ): Record<string, string | readonly string[]> => {
368
+ if (!h) return {};
369
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
370
+ if (Symbol.iterator in h) {
371
+ return Object.fromEntries(
372
+ Array.from(
373
+ h as Iterable<Iterable<string>>,
374
+ (entry) => Array.from(entry) as [string, string],
375
+ ),
376
+ );
377
+ }
378
+ const headers: Record<string, string | readonly string[]> = {};
379
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
380
+ if (value !== undefined) headers[name] = value;
381
+ }
382
+ return headers;
383
+ };
303
384
  return customFetch<PatchUserByID200>(getPatchUserByIDUrl(userId), {
304
385
  ...options,
305
386
  method: "PATCH",
306
- headers: { "Content-Type": "application/json", ...options?.headers },
387
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
307
388
  body: JSON.stringify(patchUserByIDBody),
308
389
  });
309
390
  };
310
391
 
311
392
  export const getDeleteUserByIDUrl = (userId: string) => {
312
- return `${getProxyPath()}/users/${userId}`;
393
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}`;
313
394
  };
314
395
 
315
396
  /**
316
397
  * @summary Delete user by ID
317
398
  */
318
- export const deleteUserByID = async (userId: string, options?: RequestInit): Promise<void> => {
399
+ export const deleteUserByID = async (
400
+ userId: string,
401
+ options?: Parameters<typeof customFetch>[1],
402
+ ): Promise<void> => {
319
403
  return customFetch<void>(getDeleteUserByIDUrl(userId), {
320
404
  ...options,
321
405
  method: "DELETE",
@@ -327,15 +411,15 @@ export const getListUserPasskeysUrl = (userId: string, params?: ListUserPasskeys
327
411
 
328
412
  Object.entries(params || {}).forEach(([key, value]) => {
329
413
  if (value !== undefined) {
330
- normalizedParams.append(key, value === null ? "null" : value.toString());
414
+ normalizedParams.append(key, value === null ? "null" : String(value));
331
415
  }
332
416
  });
333
417
 
334
418
  const stringifiedParams = normalizedParams.toString();
335
419
 
336
420
  return stringifiedParams.length > 0
337
- ? `${getProxyPath()}/users/${userId}/passkeys?${stringifiedParams}`
338
- : `${getProxyPath()}/users/${userId}/passkeys`;
421
+ ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys?${stringifiedParams}`
422
+ : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys`;
339
423
  };
340
424
 
341
425
  /**
@@ -344,7 +428,7 @@ export const getListUserPasskeysUrl = (userId: string, params?: ListUserPasskeys
344
428
  export const listUserPasskeys = async (
345
429
  userId: string,
346
430
  params?: ListUserPasskeysParams,
347
- options?: RequestInit,
431
+ options?: Parameters<typeof customFetch>[1],
348
432
  ): Promise<ListUserPasskeys200> => {
349
433
  return customFetch<ListUserPasskeys200>(getListUserPasskeysUrl(userId, params), {
350
434
  ...options,
@@ -353,64 +437,100 @@ export const listUserPasskeys = async (
353
437
  };
354
438
 
355
439
  export const getBeginUserPasskeyRegistrationUrl = (userId: string) => {
356
- return `${getProxyPath()}/users/${userId}/passkeys/registrations`;
440
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations`;
357
441
  };
358
442
 
359
443
  /**
360
444
  * Starts a WebAuthn registration ceremony for the user and returns the
361
- creation options for `navigator.credentials.create()`. Complete the
362
- ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
363
- five minutes. Credentials already registered for the user are excluded
364
- automatically.
365
-
445
+ * creation options for `navigator.credentials.create()`. Complete the
446
+ * ceremony with `POST /users/{user_id}/passkeys/registrations/{registration_id}` within
447
+ * five minutes. Credentials already registered for the user are excluded
448
+ * automatically.
366
449
  * @summary Begin passkey registration
367
450
  */
368
451
  export const beginUserPasskeyRegistration = async (
369
452
  userId: string,
370
453
  beginUserPasskeyRegistrationBody: BeginUserPasskeyRegistrationBody,
371
- options?: RequestInit,
454
+ options?: Parameters<typeof customFetch>[1],
372
455
  ): Promise<BeginUserPasskeyRegistration201> => {
456
+ const getHeaders = (
457
+ h?: NonNullable<RequestInit["headers"]>,
458
+ ): Record<string, string | readonly string[]> => {
459
+ if (!h) return {};
460
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
461
+ if (Symbol.iterator in h) {
462
+ return Object.fromEntries(
463
+ Array.from(
464
+ h as Iterable<Iterable<string>>,
465
+ (entry) => Array.from(entry) as [string, string],
466
+ ),
467
+ );
468
+ }
469
+ const headers: Record<string, string | readonly string[]> = {};
470
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
471
+ if (value !== undefined) headers[name] = value;
472
+ }
473
+ return headers;
474
+ };
373
475
  return customFetch<BeginUserPasskeyRegistration201>(getBeginUserPasskeyRegistrationUrl(userId), {
374
476
  ...options,
375
477
  method: "POST",
376
- headers: { "Content-Type": "application/json", ...options?.headers },
478
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
377
479
  body: JSON.stringify(beginUserPasskeyRegistrationBody),
378
480
  });
379
481
  };
380
482
 
381
483
  export const getFinishUserPasskeyRegistrationUrl = (userId: string, registrationId: string) => {
382
- return `${getProxyPath()}/users/${userId}/passkeys/registrations/${registrationId}`;
484
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/passkeys/registrations/${encodeURIComponent(String(registrationId))}`;
383
485
  };
384
486
 
385
487
  /**
386
488
  * Verifies the attestation against the ceremony started by
387
- `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
388
- rejected attestation counts against the ceremony's failure budget and the
389
- ceremony stays open for a retry. An expired ceremony surfaces as
390
- `att.stale_challenge`; an unknown or already-consumed registration id
391
- surfaces as `att.not_found`.
392
-
489
+ * `POST /users/{user_id}/passkeys/registrations` and persists the new credential. A
490
+ * rejected attestation counts against the ceremony's failure budget and the
491
+ * ceremony stays open for a retry. An expired ceremony surfaces as
492
+ * `att.stale_challenge`; an unknown or already-consumed registration id
493
+ * surfaces as `att.not_found`.
393
494
  * @summary Finish passkey registration
394
495
  */
395
496
  export const finishUserPasskeyRegistration = async (
396
497
  userId: string,
397
498
  registrationId: string,
398
499
  finishUserPasskeyRegistrationBody: FinishUserPasskeyRegistrationBody,
399
- options?: RequestInit,
500
+ options?: Parameters<typeof customFetch>[1],
400
501
  ): Promise<FinishUserPasskeyRegistration201> => {
502
+ const getHeaders = (
503
+ h?: NonNullable<RequestInit["headers"]>,
504
+ ): Record<string, string | readonly string[]> => {
505
+ if (!h) return {};
506
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
507
+ if (Symbol.iterator in h) {
508
+ return Object.fromEntries(
509
+ Array.from(
510
+ h as Iterable<Iterable<string>>,
511
+ (entry) => Array.from(entry) as [string, string],
512
+ ),
513
+ );
514
+ }
515
+ const headers: Record<string, string | readonly string[]> = {};
516
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
517
+ if (value !== undefined) headers[name] = value;
518
+ }
519
+ return headers;
520
+ };
401
521
  return customFetch<FinishUserPasskeyRegistration201>(
402
522
  getFinishUserPasskeyRegistrationUrl(userId, registrationId),
403
523
  {
404
524
  ...options,
405
525
  method: "POST",
406
- headers: { "Content-Type": "application/json", ...options?.headers },
526
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
407
527
  body: JSON.stringify(finishUserPasskeyRegistrationBody),
408
528
  },
409
529
  );
410
530
  };
411
531
 
412
532
  export const getSetUserPasswordUrl = (userId: string) => {
413
- return `${getProxyPath()}/users/${userId}/password`;
533
+ return `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/password`;
414
534
  };
415
535
 
416
536
  /**
@@ -419,12 +539,31 @@ export const getSetUserPasswordUrl = (userId: string) => {
419
539
  export const setUserPassword = async (
420
540
  userId: string,
421
541
  setUserPasswordBody: SetUserPasswordBody,
422
- options?: RequestInit,
542
+ options?: Parameters<typeof customFetch>[1],
423
543
  ): Promise<void> => {
544
+ const getHeaders = (
545
+ h?: NonNullable<RequestInit["headers"]>,
546
+ ): Record<string, string | readonly string[]> => {
547
+ if (!h) return {};
548
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
549
+ if (Symbol.iterator in h) {
550
+ return Object.fromEntries(
551
+ Array.from(
552
+ h as Iterable<Iterable<string>>,
553
+ (entry) => Array.from(entry) as [string, string],
554
+ ),
555
+ );
556
+ }
557
+ const headers: Record<string, string | readonly string[]> = {};
558
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
559
+ if (value !== undefined) headers[name] = value;
560
+ }
561
+ return headers;
562
+ };
424
563
  return customFetch<void>(getSetUserPasswordUrl(userId), {
425
564
  ...options,
426
565
  method: "PUT",
427
- headers: { "Content-Type": "application/json", ...options?.headers },
566
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
428
567
  body: JSON.stringify(setUserPasswordBody),
429
568
  });
430
569
  };
@@ -434,32 +573,31 @@ export const getListUserTeamsUrl = (userId: string, params?: ListUserTeamsParams
434
573
 
435
574
  Object.entries(params || {}).forEach(([key, value]) => {
436
575
  if (value !== undefined) {
437
- normalizedParams.append(key, value === null ? "null" : value.toString());
576
+ normalizedParams.append(key, value === null ? "null" : String(value));
438
577
  }
439
578
  });
440
579
 
441
580
  const stringifiedParams = normalizedParams.toString();
442
581
 
443
582
  return stringifiedParams.length > 0
444
- ? `${getProxyPath()}/users/${userId}/teams?${stringifiedParams}`
445
- : `${getProxyPath()}/users/${userId}/teams`;
583
+ ? `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/teams?${stringifiedParams}`
584
+ : `${getProxyPath()}/users/${encodeURIComponent(String(userId))}/teams`;
446
585
  };
447
586
 
448
587
  /**
449
588
  * The user's team roster, ordered by team name. Each entry carries the
450
- team's name, so a client renders a page without resolving ids one by one.
451
-
452
- This is the N:N roster and it is not lifecycle ownership: the single team
453
- that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
454
- on the user read endpoints. Memberships the user was removed from are not
455
- returned.
456
-
589
+ * team's name, so a client renders a page without resolving ids one by one.
590
+ *
591
+ * This is the N:N roster and it is not lifecycle ownership: the single team
592
+ * that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
593
+ * on the user read endpoints. Memberships the user was removed from are not
594
+ * returned.
457
595
  * @summary List the teams a user belongs to
458
596
  */
459
597
  export const listUserTeams = async (
460
598
  userId: string,
461
599
  params?: ListUserTeamsParams,
462
- options?: RequestInit,
600
+ options?: Parameters<typeof customFetch>[1],
463
601
  ): Promise<ListUserTeams200> => {
464
602
  return customFetch<ListUserTeams200>(getListUserTeamsUrl(userId, params), {
465
603
  ...options,
@@ -474,7 +612,9 @@ export const getGetMyUserUrl = () => {
474
612
  /**
475
613
  * @summary Get my user information
476
614
  */
477
- export const getMyUser = async (options?: RequestInit): Promise<GetMyUser200> => {
615
+ export const getMyUser = async (
616
+ options?: Parameters<typeof customFetch>[1],
617
+ ): Promise<GetMyUser200> => {
478
618
  return customFetch<GetMyUser200>(getGetMyUserUrl(), {
479
619
  ...options,
480
620
  method: "GET",
@@ -487,19 +627,37 @@ export const getPatchMyUserUrl = () => {
487
627
 
488
628
  /**
489
629
  * Partially updates the caller's own schema-defined attributes. The merged
490
- result is validated against the user's schema before commit. Concurrent
491
- writes are last-write-wins.
492
-
630
+ * result is validated against the user's schema before commit. Concurrent
631
+ * writes are last-write-wins.
493
632
  * @summary Update my user information
494
633
  */
495
634
  export const patchMyUser = async (
496
635
  patchMyUserBody: PatchMyUserBody,
497
- options?: RequestInit,
636
+ options?: Parameters<typeof customFetch>[1],
498
637
  ): Promise<PatchMyUser200> => {
638
+ const getHeaders = (
639
+ h?: NonNullable<RequestInit["headers"]>,
640
+ ): Record<string, string | readonly string[]> => {
641
+ if (!h) return {};
642
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
643
+ if (Symbol.iterator in h) {
644
+ return Object.fromEntries(
645
+ Array.from(
646
+ h as Iterable<Iterable<string>>,
647
+ (entry) => Array.from(entry) as [string, string],
648
+ ),
649
+ );
650
+ }
651
+ const headers: Record<string, string | readonly string[]> = {};
652
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
653
+ if (value !== undefined) headers[name] = value;
654
+ }
655
+ return headers;
656
+ };
499
657
  return customFetch<PatchMyUser200>(getPatchMyUserUrl(), {
500
658
  ...options,
501
659
  method: "PATCH",
502
- headers: { "Content-Type": "application/json", ...options?.headers },
660
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
503
661
  body: JSON.stringify(patchMyUserBody),
504
662
  });
505
663
  };
@@ -509,7 +667,7 @@ export const getListMyProjectsUrl = (params?: ListMyProjectsParams) => {
509
667
 
510
668
  Object.entries(params || {}).forEach(([key, value]) => {
511
669
  if (value !== undefined) {
512
- normalizedParams.append(key, value === null ? "null" : value.toString());
670
+ normalizedParams.append(key, value === null ? "null" : String(value));
513
671
  }
514
672
  });
515
673
 
@@ -522,18 +680,17 @@ export const getListMyProjectsUrl = (params?: ListMyProjectsParams) => {
522
680
 
523
681
  /**
524
682
  * The projects the signed-in user holds an active grant on, either directly or
525
- through a team they are a member of. Ordered by project id and paged with an
526
- opaque cursor.
527
-
528
- This is not the same question as `queryProjects`, which answers with the one
529
- project the calling credential is bound to. Here the session is the caller
530
- and the grants are the answer, so the list spans projects.
531
-
683
+ * through a team they are a member of. Ordered by project id and paged with an
684
+ * opaque cursor.
685
+ *
686
+ * This is not the same question as `queryProjects`, which answers with the one
687
+ * project the calling credential is bound to. Here the session is the caller
688
+ * and the grants are the answer, so the list spans projects.
532
689
  * @summary List the projects I can act on
533
690
  */
534
691
  export const listMyProjects = async (
535
692
  params?: ListMyProjectsParams,
536
- options?: RequestInit,
693
+ options?: Parameters<typeof customFetch>[1],
537
694
  ): Promise<ListMyProjects200> => {
538
695
  return customFetch<ListMyProjects200>(getListMyProjectsUrl(params), {
539
696
  ...options,
@@ -547,42 +704,62 @@ export const getCreateFlowUrl = () => {
547
704
 
548
705
  /**
549
706
  * Resolves a flow definition based on purpose + audience context and returns
550
- the first capability step. Creates a new session implicitly unless
551
- `session_id` is provided (for step-up / reauth on an existing session).
552
-
553
- The response contains an `id` field — the flow handle. Use it as the path
554
- parameter for all subsequent `/flow/{id}/submit` calls.
555
-
556
- The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
557
- the flow's orchestration state (current step, collected data, history).
558
- The server is stateless between requests — all flow state lives in this
559
- cookie. The browser sends it automatically on subsequent requests.
560
-
707
+ * the first capability step. Creates a new session implicitly unless
708
+ * `session_id` is provided (for step-up / reauth on an existing session).
709
+ *
710
+ * The response contains an `id` field — the flow handle. Use it as the path
711
+ * parameter for all subsequent `/flow/{id}/submit` calls.
712
+ *
713
+ * The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
714
+ * the flow's orchestration state (current step, collected data, history).
715
+ * The server is stateless between requests — all flow state lives in this
716
+ * cookie. The browser sends it automatically on subsequent requests.
561
717
  * @summary Start a new flow
562
718
  */
563
719
  export const createFlow = async (
564
720
  createFlowBody: CreateFlowBody,
565
- options?: RequestInit,
721
+ options?: Parameters<typeof customFetch>[1],
566
722
  ): Promise<CreateFlow201> => {
723
+ const getHeaders = (
724
+ h?: NonNullable<RequestInit["headers"]>,
725
+ ): Record<string, string | readonly string[]> => {
726
+ if (!h) return {};
727
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
728
+ if (Symbol.iterator in h) {
729
+ return Object.fromEntries(
730
+ Array.from(
731
+ h as Iterable<Iterable<string>>,
732
+ (entry) => Array.from(entry) as [string, string],
733
+ ),
734
+ );
735
+ }
736
+ const headers: Record<string, string | readonly string[]> = {};
737
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
738
+ if (value !== undefined) headers[name] = value;
739
+ }
740
+ return headers;
741
+ };
567
742
  return customFetch<CreateFlow201>(getCreateFlowUrl(), {
568
743
  ...options,
569
744
  method: "POST",
570
- headers: { "Content-Type": "application/json", ...options?.headers },
745
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
571
746
  body: JSON.stringify(createFlowBody),
572
747
  });
573
748
  };
574
749
 
575
750
  export const getGetFlowStepUrl = (id: string) => {
576
- return `${getProxyPath()}/flow/${id}`;
751
+ return `${getProxyPath()}/flow/${encodeURIComponent(String(id))}`;
577
752
  };
578
753
 
579
754
  /**
580
755
  * Returns the current capability step without advancing the state machine.
581
- Useful for page reloads or re-rendering after a network error.
582
-
756
+ * Useful for page reloads or re-rendering after a network error.
583
757
  * @summary Get current step (re-render)
584
758
  */
585
- export const getFlowStep = async (id: string, options?: RequestInit): Promise<GetFlowStep200> => {
759
+ export const getFlowStep = async (
760
+ id: string,
761
+ options?: Parameters<typeof customFetch>[1],
762
+ ): Promise<GetFlowStep200> => {
586
763
  return customFetch<GetFlowStep200>(getGetFlowStepUrl(id), {
587
764
  ...options,
588
765
  method: "GET",
@@ -590,49 +767,67 @@ export const getFlowStep = async (id: string, options?: RequestInit): Promise<Ge
590
767
  };
591
768
 
592
769
  export const getSubmitFlowStepUrl = (id: string) => {
593
- return `${getProxyPath()}/flow/${id}/submit`;
770
+ return `${getProxyPath()}/flow/${encodeURIComponent(String(id))}/submit`;
594
771
  };
595
772
 
596
773
  /**
597
774
  * Submits user input for the current step. The server validates,
598
- processes (e.g., verifies a credential), advances the state machine
599
- through any invisible steps, and returns the next visible step.
600
-
601
- The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
602
- with the new flow state. The server is stateless — all orchestration
603
- state is carried in this cookie between requests.
604
-
605
- **Important:** The `id` in the response may differ from the `id` used in
606
- the request. This happens when a flow pivots (pushes a new flow onto the
607
- stack) or when a stacked flow completes (auto-pops to the parent flow).
608
- Always use the `id` from the latest response for the next request.
609
-
610
- ## Flow completion
611
-
612
- When `step.type` is `complete`, the flow is terminal. The `step.behavior`
613
- field tells the frontend what to do:
614
-
615
- | `behavior` | Action |
616
- |------------- |------------------------------------------------------------|
617
- | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
618
- | `show` | Render the step as a success screen (e.g., registration). |
619
-
620
- A `complete` step is only returned when the **entire flow stack** is done.
621
- If a stacked flow (e.g., recovery pivoted from login) finishes, the server
622
- auto-pops to the parent flow and returns the parent's next step — the
623
- frontend never sees a `complete` for intermediate flows.
624
-
775
+ * processes (e.g., verifies a credential), advances the state machine
776
+ * through any invisible steps, and returns the next visible step.
777
+ *
778
+ * The response sets an updated encrypted `HttpOnly` cookie (`_zflow`)
779
+ * with the new flow state. The server is stateless — all orchestration
780
+ * state is carried in this cookie between requests.
781
+ *
782
+ * **Important:** The `id` in the response may differ from the `id` used in
783
+ * the request. This happens when a flow pivots (pushes a new flow onto the
784
+ * stack) or when a stacked flow completes (auto-pops to the parent flow).
785
+ * Always use the `id` from the latest response for the next request.
786
+ *
787
+ * ## Flow completion
788
+ *
789
+ * When `step.type` is `complete`, the flow is terminal. The `step.behavior`
790
+ * field tells the frontend what to do:
791
+ *
792
+ * | `behavior` | Action |
793
+ * |------------- |------------------------------------------------------------|
794
+ * | `redirect` | Navigate to `redirect_uri` (OIDC/SAML auth request done). |
795
+ * | `show` | Render the step as a success screen (e.g., registration). |
796
+ *
797
+ * A `complete` step is only returned when the **entire flow stack** is done.
798
+ * If a stacked flow (e.g., recovery pivoted from login) finishes, the server
799
+ * auto-pops to the parent flow and returns the parent's next step — the
800
+ * frontend never sees a `complete` for intermediate flows.
625
801
  * @summary Submit step data and advance
626
802
  */
627
803
  export const submitFlowStep = async (
628
804
  id: string,
629
805
  submitFlowStepBody: SubmitFlowStepBody,
630
- options?: RequestInit,
806
+ options?: Parameters<typeof customFetch>[1],
631
807
  ): Promise<SubmitFlowStep200> => {
808
+ const getHeaders = (
809
+ h?: NonNullable<RequestInit["headers"]>,
810
+ ): Record<string, string | readonly string[]> => {
811
+ if (!h) return {};
812
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
813
+ if (Symbol.iterator in h) {
814
+ return Object.fromEntries(
815
+ Array.from(
816
+ h as Iterable<Iterable<string>>,
817
+ (entry) => Array.from(entry) as [string, string],
818
+ ),
819
+ );
820
+ }
821
+ const headers: Record<string, string | readonly string[]> = {};
822
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
823
+ if (value !== undefined) headers[name] = value;
824
+ }
825
+ return headers;
826
+ };
632
827
  return customFetch<SubmitFlowStep200>(getSubmitFlowStepUrl(id), {
633
828
  ...options,
634
829
  method: "POST",
635
- headers: { "Content-Type": "application/json", ...options?.headers },
830
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
636
831
  body: JSON.stringify(submitFlowStepBody),
637
832
  });
638
833
  };
@@ -643,45 +838,62 @@ export const getCreateAuthAttemptUrl = () => {
643
838
 
644
839
  /**
645
840
  * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
646
-
647
- An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
648
- It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
649
-
650
- Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
651
- also include session_id to add factors to an existing session.
652
-
841
+ *
842
+ * An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
843
+ * It accepts factor challenges, verifies proofs, and completes into a session or handoff token.
844
+ *
845
+ * Accepts a project_id and challenge_nonce (from POST /bootstrap/challenge). For step-up re-auth,
846
+ * also include session_id to add factors to an existing session.
653
847
  * @summary Create a new authentication attempt
654
848
  */
655
849
  export const createAuthAttempt = async (
656
850
  createAuthAttemptBody: CreateAuthAttemptBody,
657
- options?: RequestInit,
851
+ options?: Parameters<typeof customFetch>[1],
658
852
  ): Promise<CreateAuthAttempt201> => {
853
+ const getHeaders = (
854
+ h?: NonNullable<RequestInit["headers"]>,
855
+ ): Record<string, string | readonly string[]> => {
856
+ if (!h) return {};
857
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
858
+ if (Symbol.iterator in h) {
859
+ return Object.fromEntries(
860
+ Array.from(
861
+ h as Iterable<Iterable<string>>,
862
+ (entry) => Array.from(entry) as [string, string],
863
+ ),
864
+ );
865
+ }
866
+ const headers: Record<string, string | readonly string[]> = {};
867
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
868
+ if (value !== undefined) headers[name] = value;
869
+ }
870
+ return headers;
871
+ };
659
872
  return customFetch<CreateAuthAttempt201>(getCreateAuthAttemptUrl(), {
660
873
  ...options,
661
874
  method: "POST",
662
- headers: { "Content-Type": "application/json", ...options?.headers },
875
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
663
876
  body: JSON.stringify(createAuthAttemptBody),
664
877
  });
665
878
  };
666
879
 
667
880
  export const getGetAuthAttemptUrl = (attemptId: string) => {
668
- return `${getProxyPath()}/auth_attempts/${attemptId}`;
881
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}`;
669
882
  };
670
883
 
671
884
  /**
672
885
  * Polls the current state of an authentication attempt.
673
-
674
- Returns the attempt's state, available factors for the next challenge,
675
- challenges issued so far, and any errors preventing progress.
676
-
677
- Use this for polling during long-running factor verifications (e.g., waiting for
678
- a federated IdP callback or a device flow).
679
-
886
+ *
887
+ * Returns the attempt's state, available factors for the next challenge,
888
+ * challenges issued so far, and any errors preventing progress.
889
+ *
890
+ * Use this for polling during long-running factor verifications (e.g., waiting for
891
+ * a federated IdP callback or a device flow).
680
892
  * @summary Get authentication attempt state
681
893
  */
682
894
  export const getAuthAttempt = async (
683
895
  attemptId: string,
684
- options?: RequestInit,
896
+ options?: Parameters<typeof customFetch>[1],
685
897
  ): Promise<GetAuthAttempt200> => {
686
898
  return customFetch<GetAuthAttempt200>(getGetAuthAttemptUrl(attemptId), {
687
899
  ...options,
@@ -690,85 +902,120 @@ export const getAuthAttempt = async (
690
902
  };
691
903
 
692
904
  export const getIssueChallengeUrl = (attemptId: string) => {
693
- return `${getProxyPath()}/auth_attempts/${attemptId}/challenges`;
905
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges`;
694
906
  };
695
907
 
696
908
  /**
697
909
  * Issues a single-factor verification challenge within an auth attempt.
698
-
699
- This advances the authentication state machine by requesting a specific factor method
700
- (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
701
- including method, metadata, and any UI hints. The client then verifies the proof
702
- by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
703
-
910
+ *
911
+ * This advances the authentication state machine by requesting a specific factor method
912
+ * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
913
+ * including method, metadata, and any UI hints. The client then verifies the proof
914
+ * by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
704
915
  * @summary Issue a factor challenge
705
916
  */
706
917
  export const issueChallenge = async (
707
918
  attemptId: string,
708
919
  issueChallengeBody: IssueChallengeBody,
709
- options?: RequestInit,
920
+ options?: Parameters<typeof customFetch>[1],
710
921
  ): Promise<IssueChallenge201> => {
922
+ const getHeaders = (
923
+ h?: NonNullable<RequestInit["headers"]>,
924
+ ): Record<string, string | readonly string[]> => {
925
+ if (!h) return {};
926
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
927
+ if (Symbol.iterator in h) {
928
+ return Object.fromEntries(
929
+ Array.from(
930
+ h as Iterable<Iterable<string>>,
931
+ (entry) => Array.from(entry) as [string, string],
932
+ ),
933
+ );
934
+ }
935
+ const headers: Record<string, string | readonly string[]> = {};
936
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
937
+ if (value !== undefined) headers[name] = value;
938
+ }
939
+ return headers;
940
+ };
711
941
  return customFetch<IssueChallenge201>(getIssueChallengeUrl(attemptId), {
712
942
  ...options,
713
943
  method: "POST",
714
- headers: { "Content-Type": "application/json", ...options?.headers },
944
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
715
945
  body: JSON.stringify(issueChallengeBody),
716
946
  });
717
947
  };
718
948
 
719
949
  export const getVerifyChallengeProofUrl = (attemptId: string, challengeId: string) => {
720
- return `${getProxyPath()}/auth_attempts/${attemptId}/challenges/${challengeId}/verify`;
950
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/challenges/${encodeURIComponent(String(challengeId))}/verify`;
721
951
  };
722
952
 
723
953
  /**
724
954
  * Submits a proof (credential, code, assertion) to verify a factor challenge.
725
-
726
- The proof format depends on the challenge method. For example:
727
- - `password` method: { password: "…" }
728
- - `totp` method: { totp: { code: "123456" } }
729
- - `passkey` method: { passkey: { assertion: "…" } }
730
- - `recovery_code` method: { recovery_code: "…" }
731
-
732
- On successful verification, the factor is written to the auth attempt.
733
- The attempt moves to the next pending challenge or completes if all required factors are verified.
734
-
955
+ *
956
+ * The proof format depends on the challenge method. For example:
957
+ * - `password` method: { password: "…" }
958
+ * - `totp` method: { totp: { code: "123456" } }
959
+ * - `passkey` method: { passkey: { assertion: "…" } }
960
+ * - `recovery_code` method: { recovery_code: "…" }
961
+ *
962
+ * On successful verification, the factor is written to the auth attempt.
963
+ * The attempt moves to the next pending challenge or completes if all required factors are verified.
735
964
  * @summary Verify a factor proof
736
965
  */
737
966
  export const verifyChallengeProof = async (
738
967
  attemptId: string,
739
968
  challengeId: string,
740
969
  verifyChallengeProofBody: VerifyChallengeProofBody,
741
- options?: RequestInit,
970
+ options?: Parameters<typeof customFetch>[1],
742
971
  ): Promise<VerifyChallengeProof200> => {
972
+ const getHeaders = (
973
+ h?: NonNullable<RequestInit["headers"]>,
974
+ ): Record<string, string | readonly string[]> => {
975
+ if (!h) return {};
976
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
977
+ if (Symbol.iterator in h) {
978
+ return Object.fromEntries(
979
+ Array.from(
980
+ h as Iterable<Iterable<string>>,
981
+ (entry) => Array.from(entry) as [string, string],
982
+ ),
983
+ );
984
+ }
985
+ const headers: Record<string, string | readonly string[]> = {};
986
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
987
+ if (value !== undefined) headers[name] = value;
988
+ }
989
+ return headers;
990
+ };
743
991
  return customFetch<VerifyChallengeProof200>(getVerifyChallengeProofUrl(attemptId, challengeId), {
744
992
  ...options,
745
993
  method: "POST",
746
- headers: { "Content-Type": "application/json", ...options?.headers },
994
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
747
995
  body: JSON.stringify(verifyChallengeProofBody),
748
996
  });
749
997
  };
750
998
 
751
999
  export const getCreateHandoffUrl = (attemptId: string) => {
752
- return `${getProxyPath()}/auth_attempts/${attemptId}/handoff`;
1000
+ return `${getProxyPath()}/auth_attempts/${encodeURIComponent(String(attemptId))}/handoff`;
753
1001
  };
754
1002
 
755
1003
  /**
756
1004
  * Completes the authentication attempt and mints a `handoff_token`.
757
-
758
- Call this after all required factors have been verified and the attempt is in `completed` state.
759
- The handoff token is short-lived (≤60 seconds) and must be exchanged at
760
- POST /sessions/exchange to receive the final session and session_token.
761
-
762
- The handoff token is:
763
- - Single-use (atomic exchange, no retry)
764
- - Audience-bound (requires matching project key for exchange)
765
- - Idempotency-safe within a 5-minute window (see conventions)
766
-
1005
+ *
1006
+ * Call this after all required factors have been verified and the attempt is in `completed` state.
1007
+ * The handoff token is short-lived (≤60 seconds) and must be exchanged at
1008
+ * POST /sessions/exchange to receive the final session and session_token.
1009
+ *
1010
+ * The handoff token is:
1011
+ * - Single-use (atomic exchange, no retry)
1012
+ * - Audience-bound (requires matching project key for exchange)
1013
+ * - Idempotency-safe within a 5-minute window (see conventions)
767
1014
  * @summary Complete authentication and create handoff token
768
1015
  */
769
1016
  export const createHandoff = async (
770
1017
  attemptId: string,
771
- options?: RequestInit,
1018
+ options?: Parameters<typeof customFetch>[1],
772
1019
  ): Promise<CreateHandoff200> => {
773
1020
  return customFetch<CreateHandoff200>(getCreateHandoffUrl(attemptId), {
774
1021
  ...options,
@@ -785,12 +1032,31 @@ export const getCreateProjectUrl = () => {
785
1032
  */
786
1033
  export const createProject = async (
787
1034
  createProjectBody: CreateProjectBody,
788
- options?: RequestInit,
1035
+ options?: Parameters<typeof customFetch>[1],
789
1036
  ): Promise<CreateProject201> => {
1037
+ const getHeaders = (
1038
+ h?: NonNullable<RequestInit["headers"]>,
1039
+ ): Record<string, string | readonly string[]> => {
1040
+ if (!h) return {};
1041
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1042
+ if (Symbol.iterator in h) {
1043
+ return Object.fromEntries(
1044
+ Array.from(
1045
+ h as Iterable<Iterable<string>>,
1046
+ (entry) => Array.from(entry) as [string, string],
1047
+ ),
1048
+ );
1049
+ }
1050
+ const headers: Record<string, string | readonly string[]> = {};
1051
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1052
+ if (value !== undefined) headers[name] = value;
1053
+ }
1054
+ return headers;
1055
+ };
790
1056
  return customFetch<CreateProject201>(getCreateProjectUrl(), {
791
1057
  ...options,
792
1058
  method: "POST",
793
- headers: { "Content-Type": "application/json", ...options?.headers },
1059
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
794
1060
  body: JSON.stringify(createProjectBody),
795
1061
  });
796
1062
  };
@@ -804,28 +1070,46 @@ export const getQueryProjectsUrl = () => {
804
1070
  */
805
1071
  export const queryProjects = async (
806
1072
  queryProjectsBody: QueryProjectsBody,
807
- options?: RequestInit,
1073
+ options?: Parameters<typeof customFetch>[1],
808
1074
  ): Promise<QueryProjects200> => {
1075
+ const getHeaders = (
1076
+ h?: NonNullable<RequestInit["headers"]>,
1077
+ ): Record<string, string | readonly string[]> => {
1078
+ if (!h) return {};
1079
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1080
+ if (Symbol.iterator in h) {
1081
+ return Object.fromEntries(
1082
+ Array.from(
1083
+ h as Iterable<Iterable<string>>,
1084
+ (entry) => Array.from(entry) as [string, string],
1085
+ ),
1086
+ );
1087
+ }
1088
+ const headers: Record<string, string | readonly string[]> = {};
1089
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1090
+ if (value !== undefined) headers[name] = value;
1091
+ }
1092
+ return headers;
1093
+ };
809
1094
  return customFetch<QueryProjects200>(getQueryProjectsUrl(), {
810
1095
  ...options,
811
1096
  method: "POST",
812
- headers: { "Content-Type": "application/json", ...options?.headers },
1097
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
813
1098
  body: JSON.stringify(queryProjectsBody),
814
1099
  });
815
1100
  };
816
1101
 
817
1102
  export const getGetProjectUrl = (projectId: string) => {
818
- return `${getProxyPath()}/projects/${projectId}`;
1103
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}`;
819
1104
  };
820
1105
 
821
1106
  /**
822
1107
  * Returns the current state of a project.
823
-
824
1108
  * @summary Get project
825
1109
  */
826
1110
  export const getProject = async (
827
1111
  projectId: string,
828
- options?: RequestInit,
1112
+ options?: Parameters<typeof customFetch>[1],
829
1113
  ): Promise<GetProject200> => {
830
1114
  return customFetch<GetProject200>(getGetProjectUrl(projectId), {
831
1115
  ...options,
@@ -834,43 +1118,60 @@ export const getProject = async (
834
1118
  };
835
1119
 
836
1120
  export const getPatchProjectUrl = (projectId: string) => {
837
- return `${getProxyPath()}/projects/${projectId}`;
1121
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}`;
838
1122
  };
839
1123
 
840
1124
  /**
841
1125
  * Updates the state of a project.
842
-
843
1126
  * @summary Update project
844
1127
  */
845
1128
  export const patchProject = async (
846
1129
  projectId: string,
847
1130
  patchProjectBody: PatchProjectBody,
848
- options?: RequestInit,
1131
+ options?: Parameters<typeof customFetch>[1],
849
1132
  ): Promise<PatchProject200> => {
1133
+ const getHeaders = (
1134
+ h?: NonNullable<RequestInit["headers"]>,
1135
+ ): Record<string, string | readonly string[]> => {
1136
+ if (!h) return {};
1137
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1138
+ if (Symbol.iterator in h) {
1139
+ return Object.fromEntries(
1140
+ Array.from(
1141
+ h as Iterable<Iterable<string>>,
1142
+ (entry) => Array.from(entry) as [string, string],
1143
+ ),
1144
+ );
1145
+ }
1146
+ const headers: Record<string, string | readonly string[]> = {};
1147
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1148
+ if (value !== undefined) headers[name] = value;
1149
+ }
1150
+ return headers;
1151
+ };
850
1152
  return customFetch<PatchProject200>(getPatchProjectUrl(projectId), {
851
1153
  ...options,
852
1154
  method: "PATCH",
853
- headers: { "Content-Type": "application/json", ...options?.headers },
1155
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
854
1156
  body: JSON.stringify(patchProjectBody),
855
1157
  });
856
1158
  };
857
1159
 
858
1160
  export const getInitClaimUrl = (projectId: string) => {
859
- return `${getProxyPath()}/projects/${projectId}/claim/init`;
1161
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/init`;
860
1162
  };
861
1163
 
862
1164
  /**
863
1165
  * Starts a claim challenge for an unclaimed project. Authenticated by the
864
- project secret, this mints a single-use, short-lived challenge and returns
865
- the `claim_url` the developer opens in a browser to complete the claim,
866
- together with the `challenge_id` the CLI polls with. The exact expiry is
867
- carried by `expires_at` on the response.
868
-
1166
+ * project secret, this mints a single-use, short-lived challenge and returns
1167
+ * the `claim_url` the developer opens in a browser to complete the claim,
1168
+ * together with the `challenge_id` the CLI polls with. The exact expiry is
1169
+ * carried by `expires_at` on the response.
869
1170
  * @summary Initialize a project claim
870
1171
  */
871
1172
  export const initClaim = async (
872
1173
  projectId: string,
873
- options?: RequestInit,
1174
+ options?: Parameters<typeof customFetch>[1],
874
1175
  ): Promise<InitClaim201> => {
875
1176
  return customFetch<InitClaim201>(getInitClaimUrl(projectId), {
876
1177
  ...options,
@@ -883,33 +1184,32 @@ export const getGetClaimStatusUrl = (projectId: string, params: GetClaimStatusPa
883
1184
 
884
1185
  Object.entries(params || {}).forEach(([key, value]) => {
885
1186
  if (value !== undefined) {
886
- normalizedParams.append(key, value === null ? "null" : value.toString());
1187
+ normalizedParams.append(key, value === null ? "null" : String(value));
887
1188
  }
888
1189
  });
889
1190
 
890
1191
  const stringifiedParams = normalizedParams.toString();
891
1192
 
892
1193
  return stringifiedParams.length > 0
893
- ? `${getProxyPath()}/projects/${projectId}/claim/status?${stringifiedParams}`
894
- : `${getProxyPath()}/projects/${projectId}/claim/status`;
1194
+ ? `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/status?${stringifiedParams}`
1195
+ : `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/status`;
895
1196
  };
896
1197
 
897
1198
  /**
898
1199
  * Polled by the CLI while a browser completes the claim. Authorized by the
899
- project secret that initiated the challenge. Returns `pending`, or
900
- `completed` with the owning team, the claim timestamp, and the dashboard
901
- URL once the project is claimed. The claim grant, not the polled
902
- challenge, is the source of truth: a project claimed through another
903
- concurrent challenge also reports `completed`, and a completed claim
904
- keeps reporting `completed` past this challenge's expiry and past the
905
- project's claim window.
906
-
1200
+ * project secret that initiated the challenge. Returns `pending`, or
1201
+ * `completed` with the owning team, the claim timestamp, and the dashboard
1202
+ * URL once the project is claimed. The claim grant, not the polled
1203
+ * challenge, is the source of truth: a project claimed through another
1204
+ * concurrent challenge also reports `completed`, and a completed claim
1205
+ * keeps reporting `completed` past this challenge's expiry and past the
1206
+ * project's claim window.
907
1207
  * @summary Get claim status
908
1208
  */
909
1209
  export const getClaimStatus = async (
910
1210
  projectId: string,
911
1211
  params: GetClaimStatusParams,
912
- options?: RequestInit,
1212
+ options?: Parameters<typeof customFetch>[1],
913
1213
  ): Promise<GetClaimStatus200> => {
914
1214
  return customFetch<GetClaimStatus200>(getGetClaimStatusUrl(projectId, params), {
915
1215
  ...options,
@@ -918,26 +1218,44 @@ export const getClaimStatus = async (
918
1218
  };
919
1219
 
920
1220
  export const getCompleteClaimUrl = (projectId: string) => {
921
- return `${getProxyPath()}/projects/${projectId}/claim/complete`;
1221
+ return `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/complete`;
922
1222
  };
923
1223
 
924
1224
  /**
925
1225
  * Called by the browser after the developer authenticates on the claim page.
926
- Authenticated by the `__nextgen_session` cookie, it attaches the project to
927
- the developer's personal team using the `challenge_id` from the claim URL as
928
- its single-use, browser-safe authorization.
929
-
1226
+ * Authenticated by the `__nextgen_session` cookie, it attaches the project to
1227
+ * the developer's personal team using the `challenge_id` from the claim URL as
1228
+ * its single-use, browser-safe authorization.
930
1229
  * @summary Complete a project claim
931
1230
  */
932
1231
  export const completeClaim = async (
933
1232
  projectId: string,
934
1233
  completeClaimBody: CompleteClaimBody,
935
- options?: RequestInit,
1234
+ options?: Parameters<typeof customFetch>[1],
936
1235
  ): Promise<CompleteClaim200> => {
1236
+ const getHeaders = (
1237
+ h?: NonNullable<RequestInit["headers"]>,
1238
+ ): Record<string, string | readonly string[]> => {
1239
+ if (!h) return {};
1240
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1241
+ if (Symbol.iterator in h) {
1242
+ return Object.fromEntries(
1243
+ Array.from(
1244
+ h as Iterable<Iterable<string>>,
1245
+ (entry) => Array.from(entry) as [string, string],
1246
+ ),
1247
+ );
1248
+ }
1249
+ const headers: Record<string, string | readonly string[]> = {};
1250
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1251
+ if (value !== undefined) headers[name] = value;
1252
+ }
1253
+ return headers;
1254
+ };
937
1255
  return customFetch<CompleteClaim200>(getCompleteClaimUrl(projectId), {
938
1256
  ...options,
939
1257
  method: "POST",
940
- headers: { "Content-Type": "application/json", ...options?.headers },
1258
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
941
1259
  body: JSON.stringify(completeClaimBody),
942
1260
  });
943
1261
  };
@@ -947,31 +1265,30 @@ export const getGetClaimWindowUrl = (projectId: string, params: GetClaimWindowPa
947
1265
 
948
1266
  Object.entries(params || {}).forEach(([key, value]) => {
949
1267
  if (value !== undefined) {
950
- normalizedParams.append(key, value === null ? "null" : value.toString());
1268
+ normalizedParams.append(key, value === null ? "null" : String(value));
951
1269
  }
952
1270
  });
953
1271
 
954
1272
  const stringifiedParams = normalizedParams.toString();
955
1273
 
956
1274
  return stringifiedParams.length > 0
957
- ? `${getProxyPath()}/projects/${projectId}/claim/window?${stringifiedParams}`
958
- : `${getProxyPath()}/projects/${projectId}/claim/window`;
1275
+ ? `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/window?${stringifiedParams}`
1276
+ : `${getProxyPath()}/projects/${encodeURIComponent(String(projectId))}/claim/window`;
959
1277
  };
960
1278
 
961
1279
  /**
962
1280
  * Read by the claim page in the browser to show how long is left to claim the
963
- project. Unauthenticated by design: the claim page runs this before the
964
- developer has signed in, and holding the `challenge_id` from the claim URL
965
- is the authorization — the same capability `claim/complete` accepts. It
966
- reveals only the window, never the project itself, and unlike
967
- `claim/complete` it spends nothing, so a reload is free.
968
-
1281
+ * project. Unauthenticated by design: the claim page runs this before the
1282
+ * developer has signed in, and holding the `challenge_id` from the claim URL
1283
+ * is the authorization — the same capability `claim/complete` accepts. It
1284
+ * reveals only the window, never the project itself, and unlike
1285
+ * `claim/complete` it spends nothing, so a reload is free.
969
1286
  * @summary Get the claim window for a project
970
1287
  */
971
1288
  export const getClaimWindow = async (
972
1289
  projectId: string,
973
1290
  params: GetClaimWindowParams,
974
- options?: RequestInit,
1291
+ options?: Parameters<typeof customFetch>[1],
975
1292
  ): Promise<GetClaimWindow200> => {
976
1293
  return customFetch<GetClaimWindow200>(getGetClaimWindowUrl(projectId, params), {
977
1294
  ...options,
@@ -985,37 +1302,55 @@ export const getCreateSessionUrl = () => {
985
1302
 
986
1303
  /**
987
1304
  * Creates an anonymous session shell with no user and no factors (`state: building`).
988
-
989
- This is optional — an `auth_attempt` will create a session implicitly if none is provided.
990
- Use this explicitly when you want to:
991
- - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
992
- can be correlated with the eventual authenticated session from the start.
993
- - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
994
-
995
- Creating a session is an app-plane operation on the project credential
996
- (`session.write`). The returned `session_token` is a session credential for the
997
- end-user client, not a management scope: it is delivered as the
998
- `__nextgen_session` cookie and authorises the self-service operations
999
- `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
1000
- by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
1001
- are operator endpoints and require `session.read` / `session.delete` instead.
1002
-
1003
- The `session_token` is superseded when a handoff exchange completes — clients must
1004
- replace it at that point.
1005
-
1006
- Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
1007
- full session TTL when the first authentication factor is written via a completing `auth_attempt`.
1008
-
1305
+ *
1306
+ * This is optional — an `auth_attempt` will create a session implicitly if none is provided.
1307
+ * Use this explicitly when you want to:
1308
+ * - Pre-allocate a `session_id` before the user is known, so device/telemetry signals
1309
+ * can be correlated with the eventual authenticated session from the start.
1310
+ * - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
1311
+ *
1312
+ * Creating a session is an app-plane operation on the project credential
1313
+ * (`session.write`). The returned `session_token` is a session credential for the
1314
+ * end-user client, not a management scope: it is delivered as the
1315
+ * `__nextgen_session` cookie and authorises the self-service operations
1316
+ * `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
1317
+ * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
1318
+ * are operator endpoints and require `session.read` / `session.delete` instead.
1319
+ *
1320
+ * The `session_token` is superseded when a handoff exchange completes — clients must
1321
+ * replace it at that point.
1322
+ *
1323
+ * Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
1324
+ * full session TTL when the first authentication factor is written via a completing `auth_attempt`.
1009
1325
  * @summary Create an anonymous session shell
1010
1326
  */
1011
1327
  export const createSession = async (
1012
1328
  createSessionBody: CreateSessionBody,
1013
- options?: RequestInit,
1329
+ options?: Parameters<typeof customFetch>[1],
1014
1330
  ): Promise<CreateSession201> => {
1331
+ const getHeaders = (
1332
+ h?: NonNullable<RequestInit["headers"]>,
1333
+ ): Record<string, string | readonly string[]> => {
1334
+ if (!h) return {};
1335
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1336
+ if (Symbol.iterator in h) {
1337
+ return Object.fromEntries(
1338
+ Array.from(
1339
+ h as Iterable<Iterable<string>>,
1340
+ (entry) => Array.from(entry) as [string, string],
1341
+ ),
1342
+ );
1343
+ }
1344
+ const headers: Record<string, string | readonly string[]> = {};
1345
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1346
+ if (value !== undefined) headers[name] = value;
1347
+ }
1348
+ return headers;
1349
+ };
1015
1350
  return customFetch<CreateSession201>(getCreateSessionUrl(), {
1016
1351
  ...options,
1017
1352
  method: "POST",
1018
- headers: { "Content-Type": "application/json", ...options?.headers },
1353
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1019
1354
  body: JSON.stringify(createSessionBody),
1020
1355
  });
1021
1356
  };
@@ -1025,7 +1360,7 @@ export const getQuerySessionsUrl = (params: QuerySessionsParams) => {
1025
1360
 
1026
1361
  Object.entries(params || {}).forEach(([key, value]) => {
1027
1362
  if (value !== undefined) {
1028
- normalizedParams.append(key, value === null ? "null" : value.toString());
1363
+ normalizedParams.append(key, value === null ? "null" : String(value));
1029
1364
  }
1030
1365
  });
1031
1366
 
@@ -1038,20 +1373,38 @@ export const getQuerySessionsUrl = (params: QuerySessionsParams) => {
1038
1373
 
1039
1374
  /**
1040
1375
  * Returns the sessions of a project, paginated with a cursor.
1041
- Sessions of every lifecycle state are returned; each carries its `state`.
1042
- Requires `session.read` permission.
1043
-
1376
+ * Sessions of every lifecycle state are returned; each carries its `state`.
1377
+ * Requires `session.read` permission.
1044
1378
  * @summary Query sessions
1045
1379
  */
1046
1380
  export const querySessions = async (
1047
1381
  querySessionsBody: QuerySessionsBody,
1048
1382
  params: QuerySessionsParams,
1049
- options?: RequestInit,
1383
+ options?: Parameters<typeof customFetch>[1],
1050
1384
  ): Promise<QuerySessions200> => {
1385
+ const getHeaders = (
1386
+ h?: NonNullable<RequestInit["headers"]>,
1387
+ ): Record<string, string | readonly string[]> => {
1388
+ if (!h) return {};
1389
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1390
+ if (Symbol.iterator in h) {
1391
+ return Object.fromEntries(
1392
+ Array.from(
1393
+ h as Iterable<Iterable<string>>,
1394
+ (entry) => Array.from(entry) as [string, string],
1395
+ ),
1396
+ );
1397
+ }
1398
+ const headers: Record<string, string | readonly string[]> = {};
1399
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1400
+ if (value !== undefined) headers[name] = value;
1401
+ }
1402
+ return headers;
1403
+ };
1051
1404
  return customFetch<QuerySessions200>(getQuerySessionsUrl(params), {
1052
1405
  ...options,
1053
1406
  method: "POST",
1054
- headers: { "Content-Type": "application/json", ...options?.headers },
1407
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1055
1408
  body: JSON.stringify(querySessionsBody),
1056
1409
  });
1057
1410
  };
@@ -1061,7 +1414,7 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams) => {
1061
1414
 
1062
1415
  Object.entries(params || {}).forEach(([key, value]) => {
1063
1416
  if (value !== undefined) {
1064
- normalizedParams.append(key, value === null ? "null" : value.toString());
1417
+ normalizedParams.append(key, value === null ? "null" : String(value));
1065
1418
  }
1066
1419
  });
1067
1420
 
@@ -1074,55 +1427,72 @@ export const getExchangeHandoffUrl = (params: ExchangeHandoffParams) => {
1074
1427
 
1075
1428
  /**
1076
1429
  * Consumes a one-time `handoff_token` minted by `POST /auth_attempts/{id}/handoff`
1077
- and returns the resulting session and a `session_token`.
1078
-
1079
- The server resolves the originating `auth_attempt` from the token and then:
1080
-
1081
- | Originating auth_attempt | Outcome |
1082
- |---|---|
1083
- | No `session_id` | A new authenticated session is **created**. |
1084
- | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
1085
- | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
1086
-
1087
- The response shape is identical in all three cases.
1088
-
1089
- The `session_token` supersedes any previously issued `session_token` for the same session.
1090
- Clients must replace their stored token at this point.
1091
-
1092
- Requires a project service key (OAuth2 client credentials).
1093
-
1430
+ * and returns the resulting session and a `session_token`.
1431
+ *
1432
+ * The server resolves the originating `auth_attempt` from the token and then:
1433
+ *
1434
+ * | Originating auth_attempt | Outcome |
1435
+ * |---|---|
1436
+ * | No `session_id` | A new authenticated session is **created**. |
1437
+ * | `session_id` points to an anonymous shell | Existing session is **upgraded** — user and factors written in, TTL reset to full session TTL. |
1438
+ * | `session_id` points to an active session (step-up) | Existing session is **upgraded** — new factors merged, `assurance_levels[]` expanded. |
1439
+ *
1440
+ * The response shape is identical in all three cases.
1441
+ *
1442
+ * The `session_token` supersedes any previously issued `session_token` for the same session.
1443
+ * Clients must replace their stored token at this point.
1444
+ *
1445
+ * Requires a project service key (OAuth2 client credentials).
1094
1446
  * @summary Exchange handoff token for a session
1095
1447
  */
1096
1448
  export const exchangeHandoff = async (
1097
1449
  exchangeHandoffBody: ExchangeHandoffBody,
1098
1450
  params: ExchangeHandoffParams,
1099
- options?: RequestInit,
1451
+ options?: Parameters<typeof customFetch>[1],
1100
1452
  ): Promise<ExchangeHandoff200> => {
1453
+ const getHeaders = (
1454
+ h?: NonNullable<RequestInit["headers"]>,
1455
+ ): Record<string, string | readonly string[]> => {
1456
+ if (!h) return {};
1457
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1458
+ if (Symbol.iterator in h) {
1459
+ return Object.fromEntries(
1460
+ Array.from(
1461
+ h as Iterable<Iterable<string>>,
1462
+ (entry) => Array.from(entry) as [string, string],
1463
+ ),
1464
+ );
1465
+ }
1466
+ const headers: Record<string, string | readonly string[]> = {};
1467
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1468
+ if (value !== undefined) headers[name] = value;
1469
+ }
1470
+ return headers;
1471
+ };
1101
1472
  return customFetch<ExchangeHandoff200>(getExchangeHandoffUrl(params), {
1102
1473
  ...options,
1103
1474
  method: "POST",
1104
- headers: { "Content-Type": "application/json", ...options?.headers },
1475
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1105
1476
  body: JSON.stringify(exchangeHandoffBody),
1106
1477
  });
1107
1478
  };
1108
1479
 
1109
1480
  export const getGetSessionUrl = (sessionId: string) => {
1110
- return `${getProxyPath()}/sessions/${sessionId}`;
1481
+ return `${getProxyPath()}/sessions/${encodeURIComponent(String(sessionId))}`;
1111
1482
  };
1112
1483
 
1113
1484
  /**
1114
1485
  * Returns the current state of a session including its factors and all currently
1115
- satisfied assurance levels.
1116
-
1117
- `assurance_levels[]` may shrink over time as factor freshness windows expire,
1118
- without the session itself expiring. Use step-up authentication (a new `auth_attempt`
1119
- against the same `session_id`) to restore a dropped assurance level.
1120
-
1486
+ * satisfied assurance levels.
1487
+ *
1488
+ * `assurance_levels[]` may shrink over time as factor freshness windows expire,
1489
+ * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
1490
+ * against the same `session_id`) to restore a dropped assurance level.
1121
1491
  * @summary Get session state
1122
1492
  */
1123
1493
  export const getSession = async (
1124
1494
  sessionId: string,
1125
- options?: RequestInit,
1495
+ options?: Parameters<typeof customFetch>[1],
1126
1496
  ): Promise<GetSession200> => {
1127
1497
  return customFetch<GetSession200>(getGetSessionUrl(sessionId), {
1128
1498
  ...options,
@@ -1131,23 +1501,25 @@ export const getSession = async (
1131
1501
  };
1132
1502
 
1133
1503
  export const getRevokeSessionUrl = (sessionId: string) => {
1134
- return `${getProxyPath()}/sessions/${sessionId}`;
1504
+ return `${getProxyPath()}/sessions/${encodeURIComponent(String(sessionId))}`;
1135
1505
  };
1136
1506
 
1137
1507
  /**
1138
1508
  * Permanently deletes the session, terminating it immediately.
1139
-
1140
- This is the operator revoke path and requires the `session.delete` scope on a
1141
- project-bound credential. End-user logout with the `__nextgen_session` cookie is
1142
- `DELETE /sessions/me` (`nextgenSession` scheme).
1143
-
1144
- Idempotent: deleting a session that does not exist (or was already deleted)
1145
- still returns 204. After deletion, any tokens derived from the session are
1146
- invalidated.
1147
-
1509
+ *
1510
+ * This is the operator revoke path and requires the `session.delete` scope on a
1511
+ * project-bound credential. End-user logout with the `__nextgen_session` cookie is
1512
+ * `DELETE /sessions/me` (`nextgenSession` scheme).
1513
+ *
1514
+ * Idempotent: deleting a session that does not exist (or was already deleted)
1515
+ * still returns 204. After deletion, any tokens derived from the session are
1516
+ * invalidated.
1148
1517
  * @summary Revoke session
1149
1518
  */
1150
- export const revokeSession = async (sessionId: string, options?: RequestInit): Promise<void> => {
1519
+ export const revokeSession = async (
1520
+ sessionId: string,
1521
+ options?: Parameters<typeof customFetch>[1],
1522
+ ): Promise<void> => {
1151
1523
  return customFetch<void>(getRevokeSessionUrl(sessionId), {
1152
1524
  ...options,
1153
1525
  method: "DELETE",
@@ -1160,15 +1532,16 @@ export const getGetMySessionUrl = () => {
1160
1532
 
1161
1533
  /**
1162
1534
  * Returns the current state of the current session including its factors and all currently
1163
- satisfied assurance levels.
1164
-
1165
- `assurance_levels[]` may shrink over time as factor freshness windows expire,
1166
- without the session itself expiring. Use step-up authentication (a new `auth_attempt`
1167
- against the same `session_id`) to restore a dropped assurance level.
1168
-
1535
+ * satisfied assurance levels.
1536
+ *
1537
+ * `assurance_levels[]` may shrink over time as factor freshness windows expire,
1538
+ * without the session itself expiring. Use step-up authentication (a new `auth_attempt`
1539
+ * against the same `session_id`) to restore a dropped assurance level.
1169
1540
  * @summary Get my session state
1170
1541
  */
1171
- export const getMySession = async (options?: RequestInit): Promise<GetMySession200> => {
1542
+ export const getMySession = async (
1543
+ options?: Parameters<typeof customFetch>[1],
1544
+ ): Promise<GetMySession200> => {
1172
1545
  return customFetch<GetMySession200>(getGetMySessionUrl(), {
1173
1546
  ...options,
1174
1547
  method: "GET",
@@ -1181,15 +1554,16 @@ export const getRevokeMySessionUrl = () => {
1181
1554
 
1182
1555
  /**
1183
1556
  * Logs out by permanently deleting the session.
1184
-
1185
- The `__nextgen_session` cookie issued at creation (or superseded by a handoff
1186
- exchange) is required. Idempotent: if the session is already gone this still
1187
- returns 204. Any tokens derived from the session are invalidated, and the
1188
- cookie itself is cleared in the response.
1189
-
1557
+ *
1558
+ * The `__nextgen_session` cookie issued at creation (or superseded by a handoff
1559
+ * exchange) is required. Idempotent: if the session is already gone this still
1560
+ * returns 204. Any tokens derived from the session are invalidated, and the
1561
+ * cookie itself is cleared in the response.
1190
1562
  * @summary Revoke my session
1191
1563
  */
1192
- export const revokeMySession = async (options?: RequestInit): Promise<void> => {
1564
+ export const revokeMySession = async (
1565
+ options?: Parameters<typeof customFetch>[1],
1566
+ ): Promise<void> => {
1193
1567
  return customFetch<void>(getRevokeMySessionUrl(), {
1194
1568
  ...options,
1195
1569
  method: "DELETE",
@@ -1201,7 +1575,7 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams) => {
1201
1575
 
1202
1576
  Object.entries(params || {}).forEach(([key, value]) => {
1203
1577
  if (value !== undefined) {
1204
- normalizedParams.append(key, value === null ? "null" : value.toString());
1578
+ normalizedParams.append(key, value === null ? "null" : String(value));
1205
1579
  }
1206
1580
  });
1207
1581
 
@@ -1214,26 +1588,44 @@ export const getCreateSchemaUrl = (params: CreateSchemaParams) => {
1214
1588
 
1215
1589
  /**
1216
1590
  * Create a new schema. The optional `$id` field is the JSON Schema document
1217
- URI used to identify the schema in future requests (GitOps-stable identity,
1218
- not a free-form resource primary key). When `$id` is omitted, the server
1219
- generates a `sch_*` URL. When provided, `$id` must be unique within the
1220
- project and should ideally be a valid URI pointing at where the schema can
1221
- be accessed.
1222
-
1223
- The schema can either be a concrete schema, e.g. a user schema, or a
1224
- schema-url which will be resolved by the server.
1225
-
1591
+ * URI used to identify the schema in future requests (GitOps-stable identity,
1592
+ * not a free-form resource primary key). When `$id` is omitted, the server
1593
+ * generates a `sch_*` URL. When provided, `$id` must be unique within the
1594
+ * project and should ideally be a valid URI pointing at where the schema can
1595
+ * be accessed.
1596
+ *
1597
+ * The schema can either be a concrete schema, e.g. a user schema, or a
1598
+ * schema-url which will be resolved by the server.
1226
1599
  * @summary Create new schema
1227
1600
  */
1228
1601
  export const createSchema = async (
1229
1602
  createSchemaBody: CreateSchemaBody,
1230
1603
  params: CreateSchemaParams,
1231
- options?: RequestInit,
1604
+ options?: Parameters<typeof customFetch>[1],
1232
1605
  ): Promise<CreateSchema201> => {
1606
+ const getHeaders = (
1607
+ h?: NonNullable<RequestInit["headers"]>,
1608
+ ): Record<string, string | readonly string[]> => {
1609
+ if (!h) return {};
1610
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1611
+ if (Symbol.iterator in h) {
1612
+ return Object.fromEntries(
1613
+ Array.from(
1614
+ h as Iterable<Iterable<string>>,
1615
+ (entry) => Array.from(entry) as [string, string],
1616
+ ),
1617
+ );
1618
+ }
1619
+ const headers: Record<string, string | readonly string[]> = {};
1620
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1621
+ if (value !== undefined) headers[name] = value;
1622
+ }
1623
+ return headers;
1624
+ };
1233
1625
  return customFetch<CreateSchema201>(getCreateSchemaUrl(params), {
1234
1626
  ...options,
1235
1627
  method: "POST",
1236
- headers: { "Content-Type": "application/json", ...options?.headers },
1628
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1237
1629
  body: JSON.stringify(createSchemaBody),
1238
1630
  });
1239
1631
  };
@@ -1243,7 +1635,7 @@ export const getListSchemasUrl = (params: ListSchemasParams) => {
1243
1635
 
1244
1636
  Object.entries(params || {}).forEach(([key, value]) => {
1245
1637
  if (value !== undefined) {
1246
- normalizedParams.append(key, value === null ? "null" : value.toString());
1638
+ normalizedParams.append(key, value === null ? "null" : String(value));
1247
1639
  }
1248
1640
  });
1249
1641
 
@@ -1256,13 +1648,12 @@ export const getListSchemasUrl = (params: ListSchemasParams) => {
1256
1648
 
1257
1649
  /**
1258
1650
  * Retrieve a list of all schemas available in the system. This endpoint
1259
- supports pagination and filtering based on schema attributes.
1260
-
1651
+ * supports pagination and filtering based on schema attributes.
1261
1652
  * @summary List all schemas
1262
1653
  */
1263
1654
  export const listSchemas = async (
1264
1655
  params: ListSchemasParams,
1265
- options?: RequestInit,
1656
+ options?: Parameters<typeof customFetch>[1],
1266
1657
  ): Promise<ListSchemas200> => {
1267
1658
  return customFetch<ListSchemas200>(getListSchemasUrl(params), {
1268
1659
  ...options,
@@ -1275,28 +1666,34 @@ export const getGetSchemaByIdUrl = (id: string, params?: GetSchemaByIdParams) =>
1275
1666
 
1276
1667
  Object.entries(params || {}).forEach(([key, value]) => {
1277
1668
  if (value !== undefined) {
1278
- normalizedParams.append(key, value === null ? "null" : value.toString());
1669
+ normalizedParams.append(key, value === null ? "null" : String(value));
1279
1670
  }
1280
1671
  });
1281
1672
 
1282
1673
  const stringifiedParams = normalizedParams.toString();
1283
1674
 
1284
1675
  return stringifiedParams.length > 0
1285
- ? `${getProxyPath()}/schemas/${id}?${stringifiedParams}`
1286
- : `${getProxyPath()}/schemas/${id}`;
1676
+ ? `${getProxyPath()}/schemas/${encodeURIComponent(String(id))}?${stringifiedParams}`
1677
+ : `${getProxyPath()}/schemas/${encodeURIComponent(String(id))}`;
1287
1678
  };
1288
1679
 
1289
1680
  /**
1290
1681
  * Get a schema by its ID. A schema ID identifies one immutable revision, so
1291
- this returns exactly that revision. To find the current revision of an
1292
- object type, list with `revisions=latest`.
1293
-
1682
+ * this returns exactly that revision. To find the current revision of an
1683
+ * object type, list with `revisions=latest`.
1684
+ *
1685
+ * Schema IDs are unique within a project, not across projects (the seeded
1686
+ * default schema carries the same `$id` in every project). A Console
1687
+ * session that manages more than one project names the project with
1688
+ * `project_id`; without it, the ID is resolved in the credential's own
1689
+ * project when it is ambiguous. A project secret always resolves in its
1690
+ * own project and ignores `project_id`.
1294
1691
  * @summary Get schema by ID
1295
1692
  */
1296
1693
  export const getSchemaById = async (
1297
1694
  id: string,
1298
1695
  params?: GetSchemaByIdParams,
1299
- options?: RequestInit,
1696
+ options?: Parameters<typeof customFetch>[1],
1300
1697
  ): Promise<GetSchemaById200> => {
1301
1698
  return customFetch<GetSchemaById200>(getGetSchemaByIdUrl(id, params), {
1302
1699
  ...options,
@@ -1310,26 +1707,44 @@ export const getCreateFlowDefinitionUrl = () => {
1310
1707
 
1311
1708
  /**
1312
1709
  * Publishes a new flow definition revision.
1313
- Flow definitions are templates that define the sequence of steps (capabilities)
1314
- for a particular user journey (e.g., registration, login, password reset).
1315
-
1316
- Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
1317
-
1318
- Every call allocates a new opaque id. Revisions of one flow share its
1319
- `name`; posting a definition under an existing `name` publishes a new
1320
- revision of that flow, it is not a conflict. List with `name` to see a
1321
- flow's revisions, newest by creation time first.
1322
-
1710
+ * Flow definitions are templates that define the sequence of steps (capabilities)
1711
+ * for a particular user journey (e.g., registration, login, password reset).
1712
+ *
1713
+ * Flow definitions are created based on the flow definition schema, which includes the flow's purpose, audience, and the steps involved.
1714
+ *
1715
+ * Every call allocates a new opaque id. Revisions of one flow share its
1716
+ * `name`; posting a definition under an existing `name` publishes a new
1717
+ * revision of that flow, it is not a conflict. List with `name` to see a
1718
+ * flow's revisions, newest by creation time first.
1323
1719
  * @summary Create a new flow definition
1324
1720
  */
1325
1721
  export const createFlowDefinition = async (
1326
1722
  createFlowDefinitionBody: CreateFlowDefinitionBody,
1327
- options?: RequestInit,
1723
+ options?: Parameters<typeof customFetch>[1],
1328
1724
  ): Promise<CreateFlowDefinition201> => {
1725
+ const getHeaders = (
1726
+ h?: NonNullable<RequestInit["headers"]>,
1727
+ ): Record<string, string | readonly string[]> => {
1728
+ if (!h) return {};
1729
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1730
+ if (Symbol.iterator in h) {
1731
+ return Object.fromEntries(
1732
+ Array.from(
1733
+ h as Iterable<Iterable<string>>,
1734
+ (entry) => Array.from(entry) as [string, string],
1735
+ ),
1736
+ );
1737
+ }
1738
+ const headers: Record<string, string | readonly string[]> = {};
1739
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1740
+ if (value !== undefined) headers[name] = value;
1741
+ }
1742
+ return headers;
1743
+ };
1329
1744
  return customFetch<CreateFlowDefinition201>(getCreateFlowDefinitionUrl(), {
1330
1745
  ...options,
1331
1746
  method: "POST",
1332
- headers: { "Content-Type": "application/json", ...options?.headers },
1747
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1333
1748
  body: JSON.stringify(createFlowDefinitionBody),
1334
1749
  });
1335
1750
  };
@@ -1338,8 +1753,17 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams) =>
1338
1753
  const normalizedParams = new URLSearchParams();
1339
1754
 
1340
1755
  Object.entries(params || {}).forEach(([key, value]) => {
1756
+ const explodeParameters = ["expand"];
1757
+
1758
+ if (Array.isArray(value) && explodeParameters.includes(key)) {
1759
+ value.forEach((v) => {
1760
+ normalizedParams.append(key, v === null ? "null" : String(v));
1761
+ });
1762
+ return;
1763
+ }
1764
+
1341
1765
  if (value !== undefined) {
1342
- normalizedParams.append(key, value === null ? "null" : value.toString());
1766
+ normalizedParams.append(key, value === null ? "null" : String(value));
1343
1767
  }
1344
1768
  });
1345
1769
 
@@ -1352,14 +1776,13 @@ export const getListFlowDefinitionsUrl = (params: ListFlowDefinitionsParams) =>
1352
1776
 
1353
1777
  /**
1354
1778
  * Retrieves a list of all flow definitions, newest by creation time first.
1355
- This endpoint can be used to view existing flow definitions and their configurations.
1356
- Filter by `name` to list the revisions of one flow.
1357
-
1779
+ * This endpoint can be used to view existing flow definitions and their configurations.
1780
+ * Filter by `name` to list the revisions of one flow.
1358
1781
  * @summary List flow definitions
1359
1782
  */
1360
1783
  export const listFlowDefinitions = async (
1361
1784
  params: ListFlowDefinitionsParams,
1362
- options?: RequestInit,
1785
+ options?: Parameters<typeof customFetch>[1],
1363
1786
  ): Promise<ListFlowDefinitions200> => {
1364
1787
  return customFetch<ListFlowDefinitions200>(getListFlowDefinitionsUrl(params), {
1365
1788
  ...options,
@@ -1368,7 +1791,7 @@ export const listFlowDefinitions = async (
1368
1791
  };
1369
1792
 
1370
1793
  export const getGetFlowDefinitionUrl = (id: string) => {
1371
- return `${getProxyPath()}/flow_definitions/${id}`;
1794
+ return `${getProxyPath()}/flow_definitions/${encodeURIComponent(String(id))}`;
1372
1795
  };
1373
1796
 
1374
1797
  /**
@@ -1377,7 +1800,7 @@ export const getGetFlowDefinitionUrl = (id: string) => {
1377
1800
  */
1378
1801
  export const getFlowDefinition = async (
1379
1802
  id: string,
1380
- options?: RequestInit,
1803
+ options?: Parameters<typeof customFetch>[1],
1381
1804
  ): Promise<GetFlowDefinition200> => {
1382
1805
  return customFetch<GetFlowDefinition200>(getGetFlowDefinitionUrl(id), {
1383
1806
  ...options,
@@ -1390,7 +1813,7 @@ export const getCreateTeamUrl = (params: CreateTeamParams) => {
1390
1813
 
1391
1814
  Object.entries(params || {}).forEach(([key, value]) => {
1392
1815
  if (value !== undefined) {
1393
- normalizedParams.append(key, value === null ? "null" : value.toString());
1816
+ normalizedParams.append(key, value === null ? "null" : String(value));
1394
1817
  }
1395
1818
  });
1396
1819
 
@@ -1407,12 +1830,31 @@ export const getCreateTeamUrl = (params: CreateTeamParams) => {
1407
1830
  export const createTeam = async (
1408
1831
  createTeamBody: CreateTeamBody,
1409
1832
  params: CreateTeamParams,
1410
- options?: RequestInit,
1833
+ options?: Parameters<typeof customFetch>[1],
1411
1834
  ): Promise<CreateTeam201> => {
1835
+ const getHeaders = (
1836
+ h?: NonNullable<RequestInit["headers"]>,
1837
+ ): Record<string, string | readonly string[]> => {
1838
+ if (!h) return {};
1839
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1840
+ if (Symbol.iterator in h) {
1841
+ return Object.fromEntries(
1842
+ Array.from(
1843
+ h as Iterable<Iterable<string>>,
1844
+ (entry) => Array.from(entry) as [string, string],
1845
+ ),
1846
+ );
1847
+ }
1848
+ const headers: Record<string, string | readonly string[]> = {};
1849
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1850
+ if (value !== undefined) headers[name] = value;
1851
+ }
1852
+ return headers;
1853
+ };
1412
1854
  return customFetch<CreateTeam201>(getCreateTeamUrl(params), {
1413
1855
  ...options,
1414
1856
  method: "POST",
1415
- headers: { "Content-Type": "application/json", ...options?.headers },
1857
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1416
1858
  body: JSON.stringify(createTeamBody),
1417
1859
  });
1418
1860
  };
@@ -1422,7 +1864,7 @@ export const getQueryTeamsUrl = (params: QueryTeamsParams) => {
1422
1864
 
1423
1865
  Object.entries(params || {}).forEach(([key, value]) => {
1424
1866
  if (value !== undefined) {
1425
- normalizedParams.append(key, value === null ? "null" : value.toString());
1867
+ normalizedParams.append(key, value === null ? "null" : String(value));
1426
1868
  }
1427
1869
  });
1428
1870
 
@@ -1435,32 +1877,52 @@ export const getQueryTeamsUrl = (params: QueryTeamsParams) => {
1435
1877
 
1436
1878
  /**
1437
1879
  * Returns the teams of a project, paginated with a cursor.
1438
-
1439
1880
  * @summary Query teams
1440
1881
  */
1441
1882
  export const queryTeams = async (
1442
1883
  queryTeamsBody: QueryTeamsBody,
1443
1884
  params: QueryTeamsParams,
1444
- options?: RequestInit,
1885
+ options?: Parameters<typeof customFetch>[1],
1445
1886
  ): Promise<QueryTeams200> => {
1887
+ const getHeaders = (
1888
+ h?: NonNullable<RequestInit["headers"]>,
1889
+ ): Record<string, string | readonly string[]> => {
1890
+ if (!h) return {};
1891
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1892
+ if (Symbol.iterator in h) {
1893
+ return Object.fromEntries(
1894
+ Array.from(
1895
+ h as Iterable<Iterable<string>>,
1896
+ (entry) => Array.from(entry) as [string, string],
1897
+ ),
1898
+ );
1899
+ }
1900
+ const headers: Record<string, string | readonly string[]> = {};
1901
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1902
+ if (value !== undefined) headers[name] = value;
1903
+ }
1904
+ return headers;
1905
+ };
1446
1906
  return customFetch<QueryTeams200>(getQueryTeamsUrl(params), {
1447
1907
  ...options,
1448
1908
  method: "POST",
1449
- headers: { "Content-Type": "application/json", ...options?.headers },
1909
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1450
1910
  body: JSON.stringify(queryTeamsBody),
1451
1911
  });
1452
1912
  };
1453
1913
 
1454
1914
  export const getGetTeamUrl = (teamId: string) => {
1455
- return `${getProxyPath()}/teams/${teamId}`;
1915
+ return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
1456
1916
  };
1457
1917
 
1458
1918
  /**
1459
1919
  * Returns a Team by its id.
1460
-
1461
1920
  * @summary Get team
1462
1921
  */
1463
- export const getTeam = async (teamId: string, options?: RequestInit): Promise<GetTeam200> => {
1922
+ export const getTeam = async (
1923
+ teamId: string,
1924
+ options?: Parameters<typeof customFetch>[1],
1925
+ ): Promise<GetTeam200> => {
1464
1926
  return customFetch<GetTeam200>(getGetTeamUrl(teamId), {
1465
1927
  ...options,
1466
1928
  method: "GET",
@@ -1468,27 +1930,29 @@ export const getTeam = async (teamId: string, options?: RequestInit): Promise<Ge
1468
1930
  };
1469
1931
 
1470
1932
  export const getDeleteTeamUrl = (teamId: string) => {
1471
- return `${getProxyPath()}/teams/${teamId}`;
1933
+ return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
1472
1934
  };
1473
1935
 
1474
1936
  /**
1475
1937
  * Deactivates the team.
1476
-
1477
- The team is tombstoned rather than erased: it stays readable through
1478
- getTeam with status `deactivated`. Its memberships are removed and the
1479
- users whose lifecycle it owns are deactivated with it.
1480
-
1481
- The request is idempotent. Deleting a team that is already deactivated
1482
- or doesn't exist succeeds without changing anything.
1483
-
1484
- A team that still owns a project is refused with `409
1485
- team.owns_project`: deactivating it would leave the project owned by a
1486
- dead team and so unmanageable. No endpoint releases that ownership yet,
1487
- so such a team cannot currently be deactivated through the API.
1488
-
1938
+ *
1939
+ * The team is tombstoned rather than erased: it stays readable through
1940
+ * getTeam with status `deactivated`. Its memberships are removed and the
1941
+ * users whose lifecycle it owns are deactivated with it.
1942
+ *
1943
+ * The request is idempotent. Deleting a team that is already deactivated
1944
+ * or doesn't exist succeeds without changing anything.
1945
+ *
1946
+ * A team that still owns a project is refused with `409
1947
+ * team.owns_project`: deactivating it would leave the project owned by a
1948
+ * dead team and so unmanageable. No endpoint releases that ownership yet,
1949
+ * so such a team cannot currently be deactivated through the API.
1489
1950
  * @summary Delete team
1490
1951
  */
1491
- export const deleteTeam = async (teamId: string, options?: RequestInit): Promise<void> => {
1952
+ export const deleteTeam = async (
1953
+ teamId: string,
1954
+ options?: Parameters<typeof customFetch>[1],
1955
+ ): Promise<void> => {
1492
1956
  return customFetch<void>(getDeleteTeamUrl(teamId), {
1493
1957
  ...options,
1494
1958
  method: "DELETE",
@@ -1496,23 +1960,41 @@ export const deleteTeam = async (teamId: string, options?: RequestInit): Promise
1496
1960
  };
1497
1961
 
1498
1962
  export const getUpdateTeamUrl = (teamId: string) => {
1499
- return `${getProxyPath()}/teams/${teamId}`;
1963
+ return `${getProxyPath()}/teams/${encodeURIComponent(String(teamId))}`;
1500
1964
  };
1501
1965
 
1502
1966
  /**
1503
1967
  * Update team. Only active teams can be updated.
1504
-
1505
1968
  * @summary Update team
1506
1969
  */
1507
1970
  export const updateTeam = async (
1508
1971
  teamId: string,
1509
1972
  updateTeamBody: UpdateTeamBody,
1510
- options?: RequestInit,
1973
+ options?: Parameters<typeof customFetch>[1],
1511
1974
  ): Promise<UpdateTeam200> => {
1975
+ const getHeaders = (
1976
+ h?: NonNullable<RequestInit["headers"]>,
1977
+ ): Record<string, string | readonly string[]> => {
1978
+ if (!h) return {};
1979
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
1980
+ if (Symbol.iterator in h) {
1981
+ return Object.fromEntries(
1982
+ Array.from(
1983
+ h as Iterable<Iterable<string>>,
1984
+ (entry) => Array.from(entry) as [string, string],
1985
+ ),
1986
+ );
1987
+ }
1988
+ const headers: Record<string, string | readonly string[]> = {};
1989
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
1990
+ if (value !== undefined) headers[name] = value;
1991
+ }
1992
+ return headers;
1993
+ };
1512
1994
  return customFetch<UpdateTeam200>(getUpdateTeamUrl(teamId), {
1513
1995
  ...options,
1514
1996
  method: "PATCH",
1515
- headers: { "Content-Type": "application/json", ...options?.headers },
1997
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1516
1998
  body: JSON.stringify(updateTeamBody),
1517
1999
  });
1518
2000
  };
@@ -1522,7 +2004,7 @@ export const getListEnvironmentsUrl = (params: ListEnvironmentsParams) => {
1522
2004
 
1523
2005
  Object.entries(params || {}).forEach(([key, value]) => {
1524
2006
  if (value !== undefined) {
1525
- normalizedParams.append(key, value === null ? "null" : value.toString());
2007
+ normalizedParams.append(key, value === null ? "null" : String(value));
1526
2008
  }
1527
2009
  });
1528
2010
 
@@ -1535,12 +2017,11 @@ export const getListEnvironmentsUrl = (params: ListEnvironmentsParams) => {
1535
2017
 
1536
2018
  /**
1537
2019
  * Lists the project's environments ordered by name.
1538
-
1539
2020
  * @summary List environments
1540
2021
  */
1541
2022
  export const listEnvironments = async (
1542
2023
  params: ListEnvironmentsParams,
1543
- options?: RequestInit,
2024
+ options?: Parameters<typeof customFetch>[1],
1544
2025
  ): Promise<ListEnvironments200> => {
1545
2026
  return customFetch<ListEnvironments200>(getListEnvironmentsUrl(params), {
1546
2027
  ...options,
@@ -1553,29 +2034,28 @@ export const getGetEnvironmentByNameUrl = (name: string, params: GetEnvironmentB
1553
2034
 
1554
2035
  Object.entries(params || {}).forEach(([key, value]) => {
1555
2036
  if (value !== undefined) {
1556
- normalizedParams.append(key, value === null ? "null" : value.toString());
2037
+ normalizedParams.append(key, value === null ? "null" : String(value));
1557
2038
  }
1558
2039
  });
1559
2040
 
1560
2041
  const stringifiedParams = normalizedParams.toString();
1561
2042
 
1562
2043
  return stringifiedParams.length > 0
1563
- ? `${getProxyPath()}/environments/${name}?${stringifiedParams}`
1564
- : `${getProxyPath()}/environments/${name}`;
2044
+ ? `${getProxyPath()}/environments/${encodeURIComponent(String(name))}?${stringifiedParams}`
2045
+ : `${getProxyPath()}/environments/${encodeURIComponent(String(name))}`;
1565
2046
  };
1566
2047
 
1567
2048
  /**
1568
2049
  * Reads one environment of the project by its name.
1569
-
1570
- The lookup is scoped to the project in `project_id`: a name that exists in
1571
- another project answers `env.not_found` exactly as an unused name does.
1572
-
2050
+ *
2051
+ * The lookup is scoped to the project in `project_id`: a name that exists in
2052
+ * another project answers `env.not_found` exactly as an unused name does.
1573
2053
  * @summary Get an environment by name
1574
2054
  */
1575
2055
  export const getEnvironmentByName = async (
1576
2056
  name: string,
1577
2057
  params: GetEnvironmentByNameParams,
1578
- options?: RequestInit,
2058
+ options?: Parameters<typeof customFetch>[1],
1579
2059
  ): Promise<GetEnvironmentByName200> => {
1580
2060
  return customFetch<GetEnvironmentByName200>(getGetEnvironmentByNameUrl(name, params), {
1581
2061
  ...options,
@@ -1588,7 +2068,7 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams) => {
1588
2068
 
1589
2069
  Object.entries(params || {}).forEach(([key, value]) => {
1590
2070
  if (value !== undefined) {
1591
- normalizedParams.append(key, value === null ? "null" : value.toString());
2071
+ normalizedParams.append(key, value === null ? "null" : String(value));
1592
2072
  }
1593
2073
  });
1594
2074
 
@@ -1601,25 +2081,43 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams) => {
1601
2081
 
1602
2082
  /**
1603
2083
  * Publishes a new immutable branding revision for the project. Branding
1604
- revisions cannot be updated or deleted; every edit publishes a new
1605
- revision, and flow responses resolve the latest revision per project.
1606
-
1607
- The `liquid_template` is validated lexically on save (size, encoding,
1608
- banned patterns such as `<script>` tags, inline event handlers, and the
1609
- `| raw` filter). Authoritative LiquidJS validation runs at authoring
1610
- time via `zitadel plan` / `zitadel apply`.
1611
-
2084
+ * revisions cannot be updated or deleted; every edit publishes a new
2085
+ * revision, and flow responses resolve the latest revision per project.
2086
+ *
2087
+ * The `liquid_template` is validated lexically on save (size, encoding,
2088
+ * banned patterns such as `<script>` tags, inline event handlers, and the
2089
+ * `| raw` filter). Authoritative LiquidJS validation runs at authoring
2090
+ * time via `zitadel plan` / `zitadel apply`.
1612
2091
  * @summary Publish a new branding revision
1613
2092
  */
1614
2093
  export const createBranding = async (
1615
2094
  createBrandingBody: CreateBrandingBody,
1616
2095
  params: CreateBrandingParams,
1617
- options?: RequestInit,
2096
+ options?: Parameters<typeof customFetch>[1],
1618
2097
  ): Promise<CreateBranding201> => {
2098
+ const getHeaders = (
2099
+ h?: NonNullable<RequestInit["headers"]>,
2100
+ ): Record<string, string | readonly string[]> => {
2101
+ if (!h) return {};
2102
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2103
+ if (Symbol.iterator in h) {
2104
+ return Object.fromEntries(
2105
+ Array.from(
2106
+ h as Iterable<Iterable<string>>,
2107
+ (entry) => Array.from(entry) as [string, string],
2108
+ ),
2109
+ );
2110
+ }
2111
+ const headers: Record<string, string | readonly string[]> = {};
2112
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2113
+ if (value !== undefined) headers[name] = value;
2114
+ }
2115
+ return headers;
2116
+ };
1619
2117
  return customFetch<CreateBranding201>(getCreateBrandingUrl(params), {
1620
2118
  ...options,
1621
2119
  method: "POST",
1622
- headers: { "Content-Type": "application/json", ...options?.headers },
2120
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1623
2121
  body: JSON.stringify(createBrandingBody),
1624
2122
  });
1625
2123
  };
@@ -1629,7 +2127,7 @@ export const getListBrandingUrl = (params: ListBrandingParams) => {
1629
2127
 
1630
2128
  Object.entries(params || {}).forEach(([key, value]) => {
1631
2129
  if (value !== undefined) {
1632
- normalizedParams.append(key, value === null ? "null" : value.toString());
2130
+ normalizedParams.append(key, value === null ? "null" : String(value));
1633
2131
  }
1634
2132
  });
1635
2133
 
@@ -1642,16 +2140,15 @@ export const getListBrandingUrl = (params: ListBrandingParams) => {
1642
2140
 
1643
2141
  /**
1644
2142
  * Lists branding revisions for the project, newest first, capped at the
1645
- 100 most recent. The first entry is the revision flow responses
1646
- currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
1647
- real query mechanism together; advertising pagination parameters the
1648
- server ignores would be worse than none.
1649
-
2143
+ * 100 most recent. The first entry is the revision flow responses
2144
+ * currently resolve. Deliberately unpaginated in v1 — list endpoints gain a
2145
+ * real query mechanism together; advertising pagination parameters the
2146
+ * server ignores would be worse than none.
1650
2147
  * @summary List branding revisions
1651
2148
  */
1652
2149
  export const listBranding = async (
1653
2150
  params: ListBrandingParams,
1654
- options?: RequestInit,
2151
+ options?: Parameters<typeof customFetch>[1],
1655
2152
  ): Promise<ListBranding200Item[]> => {
1656
2153
  return customFetch<ListBranding200Item[]>(getListBrandingUrl(params), {
1657
2154
  ...options,
@@ -1660,7 +2157,7 @@ export const listBranding = async (
1660
2157
  };
1661
2158
 
1662
2159
  export const getGetBrandingByIdUrl = (id: string) => {
1663
- return `${getProxyPath()}/branding/${id}`;
2160
+ return `${getProxyPath()}/branding/${encodeURIComponent(String(id))}`;
1664
2161
  };
1665
2162
 
1666
2163
  /**
@@ -1669,7 +2166,7 @@ export const getGetBrandingByIdUrl = (id: string) => {
1669
2166
  */
1670
2167
  export const getBrandingById = async (
1671
2168
  id: string,
1672
- options?: RequestInit,
2169
+ options?: Parameters<typeof customFetch>[1],
1673
2170
  ): Promise<GetBrandingById200> => {
1674
2171
  return customFetch<GetBrandingById200>(getGetBrandingByIdUrl(id), {
1675
2172
  ...options,
@@ -1682,7 +2179,7 @@ export const getCreateIdpUrl = (params: CreateIdpParams) => {
1682
2179
 
1683
2180
  Object.entries(params || {}).forEach(([key, value]) => {
1684
2181
  if (value !== undefined) {
1685
- normalizedParams.append(key, value === null ? "null" : value.toString());
2182
+ normalizedParams.append(key, value === null ? "null" : String(value));
1686
2183
  }
1687
2184
  });
1688
2185
 
@@ -1695,39 +2192,57 @@ export const getCreateIdpUrl = (params: CreateIdpParams) => {
1695
2192
 
1696
2193
  /**
1697
2194
  * Creates or revises a connection document. If the slug does not already
1698
- exist, a new connection is created. If a connection with that slug already
1699
- exists, a revision is created.
1700
-
1701
- A revision gets a new `revision_id` and does not modify the connection
1702
- `id`, so identity links that reference the connection keep resolving while
1703
- releases and auth attempts stay pinned to the revision they captured.
1704
-
1705
- Identity fields are fixed for the life of the connection and a revision
1706
- that changes one is rejected: `protocol`, `subject_claim`, and the
1707
- endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
1708
- and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
1709
- account a stored subject belongs to, so changing one would silently
1710
- repoint existing identities at a different provider.
1711
-
1712
- `subject_claim` is optional for OIDC and required for OAuth 2.0. For an
1713
- OIDC connection, `sub` is used as the default value. If a revision updates
1714
- `subject_claim` to a different value than the one set during creation, the
1715
- request is rejected.
1716
-
1717
- The document is validated against the `idp-connection.json` schema before
1718
- anything is stored.
1719
-
2195
+ * exist, a new connection is created. If a connection with that slug already
2196
+ * exists, a revision is created.
2197
+ *
2198
+ * A revision gets a new `revision_id` and does not modify the connection
2199
+ * `id`, so identity links that reference the connection keep resolving while
2200
+ * releases and auth attempts stay pinned to the revision they captured.
2201
+ *
2202
+ * Identity fields are fixed for the life of the connection and a revision
2203
+ * that changes one is rejected: `protocol`, `subject_claim`, and the
2204
+ * endpoints that name the authority (`issuer` for OIDC, `token_endpoint`
2205
+ * and `userinfo_endpoint` for OAuth 2.0). Their values decide which provider
2206
+ * account a stored subject belongs to, so changing one would silently
2207
+ * repoint existing identities at a different provider.
2208
+ *
2209
+ * `subject_claim` is optional for OIDC and required for OAuth 2.0. For an
2210
+ * OIDC connection, `sub` is used as the default value. If a revision updates
2211
+ * `subject_claim` to a different value than the one set during creation, the
2212
+ * request is rejected.
2213
+ *
2214
+ * The document is validated against the `idp-connection.json` schema before
2215
+ * anything is stored.
1720
2216
  * @summary Create or revise an identity provider connection
1721
2217
  */
1722
2218
  export const createIdp = async (
1723
2219
  createIdpBody: CreateIdpBody,
1724
2220
  params: CreateIdpParams,
1725
- options?: RequestInit,
2221
+ options?: Parameters<typeof customFetch>[1],
1726
2222
  ): Promise<CreateIdp200 | CreateIdp201> => {
2223
+ const getHeaders = (
2224
+ h?: NonNullable<RequestInit["headers"]>,
2225
+ ): Record<string, string | readonly string[]> => {
2226
+ if (!h) return {};
2227
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2228
+ if (Symbol.iterator in h) {
2229
+ return Object.fromEntries(
2230
+ Array.from(
2231
+ h as Iterable<Iterable<string>>,
2232
+ (entry) => Array.from(entry) as [string, string],
2233
+ ),
2234
+ );
2235
+ }
2236
+ const headers: Record<string, string | readonly string[]> = {};
2237
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2238
+ if (value !== undefined) headers[name] = value;
2239
+ }
2240
+ return headers;
2241
+ };
1727
2242
  return customFetch<CreateIdp200 | CreateIdp201>(getCreateIdpUrl(params), {
1728
2243
  ...options,
1729
2244
  method: "POST",
1730
- headers: { "Content-Type": "application/json", ...options?.headers },
2245
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1731
2246
  body: JSON.stringify(createIdpBody),
1732
2247
  });
1733
2248
  };
@@ -1737,7 +2252,7 @@ export const getQueryIdpsUrl = (params: QueryIdpsParams) => {
1737
2252
 
1738
2253
  Object.entries(params || {}).forEach(([key, value]) => {
1739
2254
  if (value !== undefined) {
1740
- normalizedParams.append(key, value === null ? "null" : value.toString());
2255
+ normalizedParams.append(key, value === null ? "null" : String(value));
1741
2256
  }
1742
2257
  });
1743
2258
 
@@ -1750,19 +2265,37 @@ export const getQueryIdpsUrl = (params: QueryIdpsParams) => {
1750
2265
 
1751
2266
  /**
1752
2267
  * Returns the identity provider connections of a project, paginated with a
1753
- cursor. One row per connection, carrying its newest revision.
1754
-
2268
+ * cursor. One row per connection, carrying its newest revision.
1755
2269
  * @summary Query identity provider connections
1756
2270
  */
1757
2271
  export const queryIdps = async (
1758
2272
  queryIdpsBody: QueryIdpsBody,
1759
2273
  params: QueryIdpsParams,
1760
- options?: RequestInit,
2274
+ options?: Parameters<typeof customFetch>[1],
1761
2275
  ): Promise<QueryIdps200> => {
2276
+ const getHeaders = (
2277
+ h?: NonNullable<RequestInit["headers"]>,
2278
+ ): Record<string, string | readonly string[]> => {
2279
+ if (!h) return {};
2280
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2281
+ if (Symbol.iterator in h) {
2282
+ return Object.fromEntries(
2283
+ Array.from(
2284
+ h as Iterable<Iterable<string>>,
2285
+ (entry) => Array.from(entry) as [string, string],
2286
+ ),
2287
+ );
2288
+ }
2289
+ const headers: Record<string, string | readonly string[]> = {};
2290
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2291
+ if (value !== undefined) headers[name] = value;
2292
+ }
2293
+ return headers;
2294
+ };
1762
2295
  return customFetch<QueryIdps200>(getQueryIdpsUrl(params), {
1763
2296
  ...options,
1764
2297
  method: "POST",
1765
- headers: { "Content-Type": "application/json", ...options?.headers },
2298
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1766
2299
  body: JSON.stringify(queryIdpsBody),
1767
2300
  });
1768
2301
  };
@@ -1772,29 +2305,28 @@ export const getGetIdpByIdUrl = (id: string, params: GetIdpByIdParams) => {
1772
2305
 
1773
2306
  Object.entries(params || {}).forEach(([key, value]) => {
1774
2307
  if (value !== undefined) {
1775
- normalizedParams.append(key, value === null ? "null" : value.toString());
2308
+ normalizedParams.append(key, value === null ? "null" : String(value));
1776
2309
  }
1777
2310
  });
1778
2311
 
1779
2312
  const stringifiedParams = normalizedParams.toString();
1780
2313
 
1781
2314
  return stringifiedParams.length > 0
1782
- ? `${getProxyPath()}/idps/${id}?${stringifiedParams}`
1783
- : `${getProxyPath()}/idps/${id}`;
2315
+ ? `${getProxyPath()}/idps/${encodeURIComponent(String(id))}?${stringifiedParams}`
2316
+ : `${getProxyPath()}/idps/${encodeURIComponent(String(id))}`;
1784
2317
  };
1785
2318
 
1786
2319
  /**
1787
2320
  * Reads a connection by its id, at its newest revision.
1788
- `GET /idps/{id}/revisions` lists every revision of the connection.
1789
-
1790
- The lookup is scoped to the project in `project_id`.
1791
-
2321
+ * `GET /idps/{id}/revisions` lists every revision of the connection.
2322
+ *
2323
+ * The lookup is scoped to the project in `project_id`.
1792
2324
  * @summary Get an identity provider connection by id
1793
2325
  */
1794
2326
  export const getIdpById = async (
1795
2327
  id: string,
1796
2328
  params: GetIdpByIdParams,
1797
- options?: RequestInit,
2329
+ options?: Parameters<typeof customFetch>[1],
1798
2330
  ): Promise<GetIdpById200> => {
1799
2331
  return customFetch<GetIdpById200>(getGetIdpByIdUrl(id, params), {
1800
2332
  ...options,
@@ -1807,29 +2339,28 @@ export const getListIdpRevisionsUrl = (id: string, params: ListIdpRevisionsParam
1807
2339
 
1808
2340
  Object.entries(params || {}).forEach(([key, value]) => {
1809
2341
  if (value !== undefined) {
1810
- normalizedParams.append(key, value === null ? "null" : value.toString());
2342
+ normalizedParams.append(key, value === null ? "null" : String(value));
1811
2343
  }
1812
2344
  });
1813
2345
 
1814
2346
  const stringifiedParams = normalizedParams.toString();
1815
2347
 
1816
2348
  return stringifiedParams.length > 0
1817
- ? `${getProxyPath()}/idps/${id}/revisions?${stringifiedParams}`
1818
- : `${getProxyPath()}/idps/${id}/revisions`;
2349
+ ? `${getProxyPath()}/idps/${encodeURIComponent(String(id))}/revisions?${stringifiedParams}`
2350
+ : `${getProxyPath()}/idps/${encodeURIComponent(String(id))}/revisions`;
1819
2351
  };
1820
2352
 
1821
2353
  /**
1822
2354
  * Returns every revision of one connection, newest first, paginated with a
1823
- cursor. The order is fixed, so there is no `sorting`.
1824
-
1825
- The lookup is scoped to the project in `project_id`.
1826
-
2355
+ * cursor. The order is fixed, so there is no `sorting`.
2356
+ *
2357
+ * The lookup is scoped to the project in `project_id`.
1827
2358
  * @summary List the revisions of an identity provider connection
1828
2359
  */
1829
2360
  export const listIdpRevisions = async (
1830
2361
  id: string,
1831
2362
  params: ListIdpRevisionsParams,
1832
- options?: RequestInit,
2363
+ options?: Parameters<typeof customFetch>[1],
1833
2364
  ): Promise<ListIdpRevisions200> => {
1834
2365
  return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(id, params), {
1835
2366
  ...options,
@@ -1842,29 +2373,28 @@ export const getGetIdpRevisionByIdUrl = (revisionId: string, params: GetIdpRevis
1842
2373
 
1843
2374
  Object.entries(params || {}).forEach(([key, value]) => {
1844
2375
  if (value !== undefined) {
1845
- normalizedParams.append(key, value === null ? "null" : value.toString());
2376
+ normalizedParams.append(key, value === null ? "null" : String(value));
1846
2377
  }
1847
2378
  });
1848
2379
 
1849
2380
  const stringifiedParams = normalizedParams.toString();
1850
2381
 
1851
2382
  return stringifiedParams.length > 0
1852
- ? `${getProxyPath()}/idps/revisions/${revisionId}?${stringifiedParams}`
1853
- : `${getProxyPath()}/idps/revisions/${revisionId}`;
2383
+ ? `${getProxyPath()}/idps/revisions/${encodeURIComponent(String(revisionId))}?${stringifiedParams}`
2384
+ : `${getProxyPath()}/idps/revisions/${encodeURIComponent(String(revisionId))}`;
1854
2385
  };
1855
2386
 
1856
2387
  /**
1857
2388
  * Reads one revision of a connection by its `revision_id`, the value an auth
1858
- attempt or a release pins.
1859
-
1860
- The lookup is scoped to the project in `project_id`.
1861
-
2389
+ * attempt or a release pins.
2390
+ *
2391
+ * The lookup is scoped to the project in `project_id`.
1862
2392
  * @summary Get one revision of an identity provider connection
1863
2393
  */
1864
2394
  export const getIdpRevisionById = async (
1865
2395
  revisionId: string,
1866
2396
  params: GetIdpRevisionByIdParams,
1867
- options?: RequestInit,
2397
+ options?: Parameters<typeof customFetch>[1],
1868
2398
  ): Promise<GetIdpRevisionById200> => {
1869
2399
  return customFetch<GetIdpRevisionById200>(getGetIdpRevisionByIdUrl(revisionId, params), {
1870
2400
  ...options,
@@ -1877,7 +2407,7 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams) => {
1877
2407
 
1878
2408
  Object.entries(params || {}).forEach(([key, value]) => {
1879
2409
  if (value !== undefined) {
1880
- normalizedParams.append(key, value === null ? "null" : value.toString());
2410
+ normalizedParams.append(key, value === null ? "null" : String(value));
1881
2411
  }
1882
2412
  });
1883
2413
 
@@ -1890,32 +2420,50 @@ export const getCreateReleaseUrl = (params: CreateReleaseParams) => {
1890
2420
 
1891
2421
  /**
1892
2422
  * Bundles a release from revisions that already exist, supplied as
1893
- `(kind, revision_id)` pairs. No new revisions are allocated — use the
1894
- per-kind create endpoints for that, then pin the ids here.
1895
-
1896
- Every referenced `revision_id` must exist in the project. Each one's handle
1897
- is read from the revision itself and recorded on the release, so a resource
1898
- is always pinned under the identity it declares.
1899
-
1900
- Creating a release does not deploy it. A release is environment-agnostic
1901
- and the same release can later be deployed to any number of environments
1902
- unchanged.
1903
-
1904
- Idempotent on the pinned set: metadata is excluded from the comparison, so
1905
- re-submitting the same revisions with a different `message` returns the
1906
- release that already pins them rather than creating a second one.
1907
-
2423
+ * `(kind, revision_id)` pairs. No new revisions are allocated — use the
2424
+ * per-kind create endpoints for that, then pin the ids here.
2425
+ *
2426
+ * Every referenced `revision_id` must exist in the project. Each one's handle
2427
+ * is read from the revision itself and recorded on the release, so a resource
2428
+ * is always pinned under the identity it declares.
2429
+ *
2430
+ * Creating a release does not deploy it. A release is environment-agnostic
2431
+ * and the same release can later be deployed to any number of environments
2432
+ * unchanged.
2433
+ *
2434
+ * Idempotent on the pinned set: metadata is excluded from the comparison, so
2435
+ * re-submitting the same revisions with a different `message` returns the
2436
+ * release that already pins them rather than creating a second one.
1908
2437
  * @summary Create a release
1909
2438
  */
1910
2439
  export const createRelease = async (
1911
2440
  createReleaseBody: CreateReleaseBody,
1912
2441
  params: CreateReleaseParams,
1913
- options?: RequestInit,
2442
+ options?: Parameters<typeof customFetch>[1],
1914
2443
  ): Promise<CreateRelease200 | CreateRelease201> => {
2444
+ const getHeaders = (
2445
+ h?: NonNullable<RequestInit["headers"]>,
2446
+ ): Record<string, string | readonly string[]> => {
2447
+ if (!h) return {};
2448
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2449
+ if (Symbol.iterator in h) {
2450
+ return Object.fromEntries(
2451
+ Array.from(
2452
+ h as Iterable<Iterable<string>>,
2453
+ (entry) => Array.from(entry) as [string, string],
2454
+ ),
2455
+ );
2456
+ }
2457
+ const headers: Record<string, string | readonly string[]> = {};
2458
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2459
+ if (value !== undefined) headers[name] = value;
2460
+ }
2461
+ return headers;
2462
+ };
1915
2463
  return customFetch<CreateRelease200 | CreateRelease201>(getCreateReleaseUrl(params), {
1916
2464
  ...options,
1917
2465
  method: "POST",
1918
- headers: { "Content-Type": "application/json", ...options?.headers },
2466
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1919
2467
  body: JSON.stringify(createReleaseBody),
1920
2468
  });
1921
2469
  };
@@ -1925,7 +2473,7 @@ export const getListReleasesUrl = (params: ListReleasesParams) => {
1925
2473
 
1926
2474
  Object.entries(params || {}).forEach(([key, value]) => {
1927
2475
  if (value !== undefined) {
1928
- normalizedParams.append(key, value === null ? "null" : value.toString());
2476
+ normalizedParams.append(key, value === null ? "null" : String(value));
1929
2477
  }
1930
2478
  });
1931
2479
 
@@ -1938,15 +2486,14 @@ export const getListReleasesUrl = (params: ListReleasesParams) => {
1938
2486
 
1939
2487
  /**
1940
2488
  * Lists the project's releases, newest first.
1941
-
1942
- Entries carry metadata only — the pinned set is omitted. Read one release
1943
- with `GET /releases/{release_id}` to get its pointers.
1944
-
2489
+ *
2490
+ * Entries carry metadata only — the pinned set is omitted. Read one release
2491
+ * with `GET /releases/{release_id}` to get its pointers.
1945
2492
  * @summary List releases
1946
2493
  */
1947
2494
  export const listReleases = async (
1948
2495
  params: ListReleasesParams,
1949
- options?: RequestInit,
2496
+ options?: Parameters<typeof customFetch>[1],
1950
2497
  ): Promise<ListReleases200> => {
1951
2498
  return customFetch<ListReleases200>(getListReleasesUrl(params), {
1952
2499
  ...options,
@@ -1959,35 +2506,34 @@ export const getGetReleaseByIdUrl = (releaseId: string, params: GetReleaseByIdPa
1959
2506
 
1960
2507
  Object.entries(params || {}).forEach(([key, value]) => {
1961
2508
  if (value !== undefined) {
1962
- normalizedParams.append(key, value === null ? "null" : value.toString());
2509
+ normalizedParams.append(key, value === null ? "null" : String(value));
1963
2510
  }
1964
2511
  });
1965
2512
 
1966
2513
  const stringifiedParams = normalizedParams.toString();
1967
2514
 
1968
2515
  return stringifiedParams.length > 0
1969
- ? `${getProxyPath()}/releases/${releaseId}?${stringifiedParams}`
1970
- : `${getProxyPath()}/releases/${releaseId}`;
2516
+ ? `${getProxyPath()}/releases/${encodeURIComponent(String(releaseId))}?${stringifiedParams}`
2517
+ : `${getProxyPath()}/releases/${encodeURIComponent(String(releaseId))}`;
1971
2518
  };
1972
2519
 
1973
2520
  /**
1974
2521
  * Reads one release: its metadata and the `(kind, handle, revision_id)`
1975
- tuples it pins.
1976
-
1977
- Does not embed resource content. Resolve each `revision_id` through the
1978
- per-kind read endpoints when the bytes are needed.
1979
-
1980
- The lookup is scoped to the project in `project_id`: a release id belonging
1981
- to another project answers not found exactly as an unknown id does, so the
1982
- endpoint cannot be used to probe for releases in projects the caller cannot
1983
- read.
1984
-
2522
+ * tuples it pins.
2523
+ *
2524
+ * Does not embed resource content. Resolve each `revision_id` through the
2525
+ * per-kind read endpoints when the bytes are needed.
2526
+ *
2527
+ * The lookup is scoped to the project in `project_id`: a release id belonging
2528
+ * to another project answers not found exactly as an unknown id does, so the
2529
+ * endpoint cannot be used to probe for releases in projects the caller cannot
2530
+ * read.
1985
2531
  * @summary Get a release by id
1986
2532
  */
1987
2533
  export const getReleaseById = async (
1988
2534
  releaseId: string,
1989
2535
  params: GetReleaseByIdParams,
1990
- options?: RequestInit,
2536
+ options?: Parameters<typeof customFetch>[1],
1991
2537
  ): Promise<GetReleaseById200> => {
1992
2538
  return customFetch<GetReleaseById200>(getGetReleaseByIdUrl(releaseId, params), {
1993
2539
  ...options,
@@ -2000,7 +2546,7 @@ export const getCreateGrantUrl = (params: CreateGrantParams) => {
2000
2546
 
2001
2547
  Object.entries(params || {}).forEach(([key, value]) => {
2002
2548
  if (value !== undefined) {
2003
- normalizedParams.append(key, value === null ? "null" : value.toString());
2549
+ normalizedParams.append(key, value === null ? "null" : String(value));
2004
2550
  }
2005
2551
  });
2006
2552
 
@@ -2013,36 +2559,54 @@ export const getCreateGrantUrl = (params: CreateGrantParams) => {
2013
2559
 
2014
2560
  /**
2015
2561
  * Bind a user or team to `project.viewer`, `project.editor`, or
2016
- `project.admin` on the project identified by the `project-id` header.
2017
- Name the principal with `user` (`user_id` or `identifier`) or `team`
2018
- (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
2019
- (`project.team`) grants are not created here — claim owns that path. An
2020
- unrevoked grant with the same principal and relation occupies the unique
2021
- key even after `expires_at`; DELETE it before re-creating.
2022
- Create does not accept `expand`. The `user_id` and team locators
2023
- return 201, whose `user` / `team` carry only `user_id` / `team_id`,
2024
- and still 404 / 409 when the principal is missing or the tuple
2025
- already exists. Creating by `user.identifier` answers 202 with no
2026
- body on every outcome. Granting the session caller's own user is
2027
- `grant.invalid` on either user locator. Read the grant back for
2028
- identifier and display.
2029
-
2030
- Accepts either a project secret (`oauth2`) or a user-bound Console
2031
- session cookie (`nextgenSession`). Session callers are authorized as
2032
- the human against the target project (home may differ). CSRF/Origin
2033
- for cookie mutations is a follow-up (#1140).
2034
-
2562
+ * `project.admin` on the project identified by the `project-id` header.
2563
+ * Name the principal with `user` (`user_id` or `identifier`) or `team`
2564
+ * (`team_id` or `name`). IDs are `asgn_<opaque>`. Owning-team
2565
+ * (`project.team`) grants are not created here — claim owns that path. An
2566
+ * unrevoked grant with the same principal and relation occupies the unique
2567
+ * key even after `expires_at`; DELETE it before re-creating.
2568
+ * Create does not accept `expand`. The `user_id` and team locators
2569
+ * return 201, whose `user` / `team` carry only `user_id` / `team_id`,
2570
+ * and still 404 / 409 when the principal is missing or the tuple
2571
+ * already exists. Creating by `user.identifier` answers 202 with no
2572
+ * body on every outcome. Granting the session caller's own user is
2573
+ * `grant.invalid` on either user locator. Read the grant back for
2574
+ * identifier and display.
2575
+ *
2576
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
2577
+ * session cookie (`nextgenSession`). Session callers are authorized as
2578
+ * the human against the target project (home may differ). CSRF/Origin
2579
+ * for cookie mutations is a follow-up (#1140).
2035
2580
  * @summary Create grant
2036
2581
  */
2037
2582
  export const createGrant = async (
2038
2583
  createGrantBody: CreateGrantBody,
2039
2584
  params: CreateGrantParams,
2040
- options?: RequestInit,
2585
+ options?: Parameters<typeof customFetch>[1],
2041
2586
  ): Promise<CreateGrant201 | void> => {
2587
+ const getHeaders = (
2588
+ h?: NonNullable<RequestInit["headers"]>,
2589
+ ): Record<string, string | readonly string[]> => {
2590
+ if (!h) return {};
2591
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2592
+ if (Symbol.iterator in h) {
2593
+ return Object.fromEntries(
2594
+ Array.from(
2595
+ h as Iterable<Iterable<string>>,
2596
+ (entry) => Array.from(entry) as [string, string],
2597
+ ),
2598
+ );
2599
+ }
2600
+ const headers: Record<string, string | readonly string[]> = {};
2601
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2602
+ if (value !== undefined) headers[name] = value;
2603
+ }
2604
+ return headers;
2605
+ };
2042
2606
  return customFetch<CreateGrant201 | void>(getCreateGrantUrl(params), {
2043
2607
  ...options,
2044
2608
  method: "POST",
2045
- headers: { "Content-Type": "application/json", ...options?.headers },
2609
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
2046
2610
  body: JSON.stringify(createGrantBody),
2047
2611
  });
2048
2612
  };
@@ -2052,7 +2616,7 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams) => {
2052
2616
 
2053
2617
  Object.entries(params || {}).forEach(([key, value]) => {
2054
2618
  if (value !== undefined) {
2055
- normalizedParams.append(key, value === null ? "null" : value.toString());
2619
+ normalizedParams.append(key, value === null ? "null" : String(value));
2056
2620
  }
2057
2621
  });
2058
2622
 
@@ -2065,33 +2629,51 @@ export const getQueryGrantsUrl = (params: QueryGrantsParams) => {
2065
2629
 
2066
2630
  /**
2067
2631
  * Returns the collaboration grants of a project, paginated with a cursor.
2068
- Only unrevoked grants this API manages are listed (user or team bound to
2069
- viewer, editor, or admin), including expired grants so a client can
2070
- DELETE before re-granting. Project-secret setup (`sk_proj`) and
2071
- owning-team (`relation=team`) rows are not returned. Grants are not in
2072
- `resource_scope_index`; project scope is required on the query (same as
2073
- get). Requires `project.read`. `expand: ["principal"]` adds envelope
2074
- fields on `user` / `team` and additionally requires `user.read` and
2075
- `team.read` for project secrets (documented on the expand enum; those
2076
- scopes cannot be ANDed onto this security block because they are
2077
- body-conditional). A user-bound Console session that already passed
2078
- the project Check may expand without those scopes.
2079
-
2080
- Accepts either a project secret (`oauth2`) or a user-bound Console
2081
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
2082
- is a follow-up (#1140).
2083
-
2632
+ * Only unrevoked grants this API manages are listed (user or team bound to
2633
+ * viewer, editor, or admin), including expired grants so a client can
2634
+ * DELETE before re-granting. Project-secret setup (`sk_proj`) and
2635
+ * owning-team (`relation=team`) rows are not returned. Grants are not in
2636
+ * `resource_scope_index`; project scope is required on the query (same as
2637
+ * get). Requires `project.read`. `expand: ["principal"]` adds envelope
2638
+ * fields on `user` / `team` and additionally requires `user.read` and
2639
+ * `team.read` for project secrets (documented on the expand enum; those
2640
+ * scopes cannot be ANDed onto this security block because they are
2641
+ * body-conditional). A user-bound Console session that already passed
2642
+ * the project Check may expand without those scopes.
2643
+ *
2644
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
2645
+ * session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
2646
+ * is a follow-up (#1140).
2084
2647
  * @summary Query grants
2085
2648
  */
2086
2649
  export const queryGrants = async (
2087
2650
  queryGrantsBody: QueryGrantsBody,
2088
2651
  params: QueryGrantsParams,
2089
- options?: RequestInit,
2652
+ options?: Parameters<typeof customFetch>[1],
2090
2653
  ): Promise<QueryGrants200> => {
2654
+ const getHeaders = (
2655
+ h?: NonNullable<RequestInit["headers"]>,
2656
+ ): Record<string, string | readonly string[]> => {
2657
+ if (!h) return {};
2658
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2659
+ if (Symbol.iterator in h) {
2660
+ return Object.fromEntries(
2661
+ Array.from(
2662
+ h as Iterable<Iterable<string>>,
2663
+ (entry) => Array.from(entry) as [string, string],
2664
+ ),
2665
+ );
2666
+ }
2667
+ const headers: Record<string, string | readonly string[]> = {};
2668
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2669
+ if (value !== undefined) headers[name] = value;
2670
+ }
2671
+ return headers;
2672
+ };
2091
2673
  return customFetch<QueryGrants200>(getQueryGrantsUrl(params), {
2092
2674
  ...options,
2093
2675
  method: "POST",
2094
- headers: { "Content-Type": "application/json", ...options?.headers },
2676
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
2095
2677
  body: JSON.stringify(queryGrantsBody),
2096
2678
  });
2097
2679
  };
@@ -2100,42 +2682,50 @@ export const getGetGrantUrl = (id: string, params: GetGrantParams) => {
2100
2682
  const normalizedParams = new URLSearchParams();
2101
2683
 
2102
2684
  Object.entries(params || {}).forEach(([key, value]) => {
2685
+ const explodeParameters = ["expand"];
2686
+
2687
+ if (Array.isArray(value) && explodeParameters.includes(key)) {
2688
+ value.forEach((v) => {
2689
+ normalizedParams.append(key, v === null ? "null" : String(v));
2690
+ });
2691
+ return;
2692
+ }
2693
+
2103
2694
  if (value !== undefined) {
2104
- normalizedParams.append(key, value === null ? "null" : value.toString());
2695
+ normalizedParams.append(key, value === null ? "null" : String(value));
2105
2696
  }
2106
2697
  });
2107
2698
 
2108
2699
  const stringifiedParams = normalizedParams.toString();
2109
2700
 
2110
2701
  return stringifiedParams.length > 0
2111
- ? `${getProxyPath()}/grants/${id}?${stringifiedParams}`
2112
- : `${getProxyPath()}/grants/${id}`;
2702
+ ? `${getProxyPath()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}`
2703
+ : `${getProxyPath()}/grants/${encodeURIComponent(String(id))}`;
2113
2704
  };
2114
2705
 
2115
2706
  /**
2116
2707
  * Loads a grant by `(project_id, id)` that this API manages (user or team
2117
- bound to viewer, editor, or admin) and that has not been revoked.
2118
- "Active" here means not revoked: expired grants stay visible so the
2119
- client can DELETE before re-granting the same binding. Authorization
2120
- still ignores expired grants. Grants are not registered in
2121
- `resource_scope_index`; project scope is required on the query (same as
2122
- events). Misses, revoked rows, project-secret setup (`sk_proj`),
2123
- owning-team (`relation=team`) rows, and cross-project ids return 404.
2124
- `expand=principal` adds envelope fields on `user` or `team` and requires
2125
- `user.read` and `team.read` in addition to `project.read` for project
2126
- secrets. A user-bound Console session that already passed the project
2127
- Check may expand without those scopes.
2128
-
2129
- Accepts either a project secret (`oauth2`) or a user-bound Console
2130
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
2131
- is a follow-up (#1140).
2132
-
2708
+ * bound to viewer, editor, or admin) and that has not been revoked.
2709
+ * "Active" here means not revoked: expired grants stay visible so the
2710
+ * client can DELETE before re-granting the same binding. Authorization
2711
+ * still ignores expired grants. Grants are not registered in
2712
+ * `resource_scope_index`; project scope is required on the query (same as
2713
+ * events). Misses, revoked rows, project-secret setup (`sk_proj`),
2714
+ * owning-team (`relation=team`) rows, and cross-project ids return 404.
2715
+ * `expand=principal` adds envelope fields on `user` or `team` and requires
2716
+ * `user.read` and `team.read` in addition to `project.read` for project
2717
+ * secrets. A user-bound Console session that already passed the project
2718
+ * Check may expand without those scopes.
2719
+ *
2720
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
2721
+ * session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
2722
+ * is a follow-up (#1140).
2133
2723
  * @summary Get grant
2134
2724
  */
2135
2725
  export const getGrant = async (
2136
2726
  id: string,
2137
2727
  params: GetGrantParams,
2138
- options?: RequestInit,
2728
+ options?: Parameters<typeof customFetch>[1],
2139
2729
  ): Promise<GetGrant200> => {
2140
2730
  return customFetch<GetGrant200>(getGetGrantUrl(id, params), {
2141
2731
  ...options,
@@ -2148,33 +2738,32 @@ export const getDeleteGrantUrl = (id: string, params: DeleteGrantParams) => {
2148
2738
 
2149
2739
  Object.entries(params || {}).forEach(([key, value]) => {
2150
2740
  if (value !== undefined) {
2151
- normalizedParams.append(key, value === null ? "null" : value.toString());
2741
+ normalizedParams.append(key, value === null ? "null" : String(value));
2152
2742
  }
2153
2743
  });
2154
2744
 
2155
2745
  const stringifiedParams = normalizedParams.toString();
2156
2746
 
2157
2747
  return stringifiedParams.length > 0
2158
- ? `${getProxyPath()}/grants/${id}?${stringifiedParams}`
2159
- : `${getProxyPath()}/grants/${id}`;
2748
+ ? `${getProxyPath()}/grants/${encodeURIComponent(String(id))}?${stringifiedParams}`
2749
+ : `${getProxyPath()}/grants/${encodeURIComponent(String(id))}`;
2160
2750
  };
2161
2751
 
2162
2752
  /**
2163
2753
  * Soft-revokes a grant this API manages and emits `authz.revoked`.
2164
- Already-revoked, missing, project-secret setup, and owning-team grants
2165
- return 404. The row is not un-revoked. Expired grants can still be
2166
- revoked so the unique binding can be reused.
2167
-
2168
- Accepts either a project secret (`oauth2`) or a user-bound Console
2169
- session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
2170
- is a follow-up (#1140).
2171
-
2754
+ * Already-revoked, missing, project-secret setup, and owning-team grants
2755
+ * return 404. The row is not un-revoked. Expired grants can still be
2756
+ * revoked so the unique binding can be reused.
2757
+ *
2758
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
2759
+ * session cookie (`nextgenSession`). CSRF/Origin for cookie mutations
2760
+ * is a follow-up (#1140).
2172
2761
  * @summary Revoke grant
2173
2762
  */
2174
2763
  export const deleteGrant = async (
2175
2764
  id: string,
2176
2765
  params: DeleteGrantParams,
2177
- options?: RequestInit,
2766
+ options?: Parameters<typeof customFetch>[1],
2178
2767
  ): Promise<void> => {
2179
2768
  return customFetch<void>(getDeleteGrantUrl(id, params), {
2180
2769
  ...options,
@@ -2190,13 +2779,13 @@ export const getListEventsUrl = (params: ListEventsParams) => {
2190
2779
 
2191
2780
  if (Array.isArray(value) && explodeParameters.includes(key)) {
2192
2781
  value.forEach((v) => {
2193
- normalizedParams.append(key, v === null ? "null" : v.toString());
2782
+ normalizedParams.append(key, v === null ? "null" : String(v));
2194
2783
  });
2195
2784
  return;
2196
2785
  }
2197
2786
 
2198
2787
  if (value !== undefined) {
2199
- normalizedParams.append(key, value === null ? "null" : value.toString());
2788
+ normalizedParams.append(key, value === null ? "null" : String(value));
2200
2789
  }
2201
2790
  });
2202
2791
 
@@ -2209,22 +2798,21 @@ export const getListEventsUrl = (params: ListEventsParams) => {
2209
2798
 
2210
2799
  /**
2211
2800
  * Returns project-scoped audit events, newest-first by keyset on
2212
- `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
2213
- Requires `events.read`.
2214
-
2215
- Pre-claim projects return an empty list (events are stored but not
2216
- visible until claim succeeds). Team-scoped credentials see only events
2217
- whose emit-time `team_id` matches the credential team (enforced when
2218
- team-scoped tokens exist).
2219
-
2220
- Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
2221
- see docs/design/api/events-catalog.md.
2222
-
2801
+ * `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
2802
+ * Requires `events.read`.
2803
+ *
2804
+ * Pre-claim projects return an empty list (events are stored but not
2805
+ * visible until claim succeeds). Team-scoped credentials see only events
2806
+ * whose emit-time `team_id` matches the credential team (enforced when
2807
+ * team-scoped tokens exist).
2808
+ *
2809
+ * Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
2810
+ * see docs/design/api/events-catalog.md.
2223
2811
  * @summary List events
2224
2812
  */
2225
2813
  export const listEvents = async (
2226
2814
  params: ListEventsParams,
2227
- options?: RequestInit,
2815
+ options?: Parameters<typeof customFetch>[1],
2228
2816
  ): Promise<ListEvents200> => {
2229
2817
  return customFetch<ListEvents200>(getListEventsUrl(params), {
2230
2818
  ...options,
@@ -2237,30 +2825,29 @@ export const getGetEventUrl = (id: string, params: GetEventParams) => {
2237
2825
 
2238
2826
  Object.entries(params || {}).forEach(([key, value]) => {
2239
2827
  if (value !== undefined) {
2240
- normalizedParams.append(key, value === null ? "null" : value.toString());
2828
+ normalizedParams.append(key, value === null ? "null" : String(value));
2241
2829
  }
2242
2830
  });
2243
2831
 
2244
2832
  const stringifiedParams = normalizedParams.toString();
2245
2833
 
2246
2834
  return stringifiedParams.length > 0
2247
- ? `${getProxyPath()}/events/${id}?${stringifiedParams}`
2248
- : `${getProxyPath()}/events/${id}`;
2835
+ ? `${getProxyPath()}/events/${encodeURIComponent(String(id))}?${stringifiedParams}`
2836
+ : `${getProxyPath()}/events/${encodeURIComponent(String(id))}`;
2249
2837
  };
2250
2838
 
2251
2839
  /**
2252
2840
  * Loads a single event by `(project_id, id)`. Requires `events.read`.
2253
- Events are not registered in `resource_scope_index`; project scope is
2254
- required on the query (ADR 049). Misses and cross-project ids return 404.
2255
-
2256
- Pre-claim projects return 404 (stored events stay invisible until claim).
2257
-
2841
+ * Events are not registered in `resource_scope_index`; project scope is
2842
+ * required on the query (ADR 049). Misses and cross-project ids return 404.
2843
+ *
2844
+ * Pre-claim projects return 404 (stored events stay invisible until claim).
2258
2845
  * @summary Get event by ID
2259
2846
  */
2260
2847
  export const getEvent = async (
2261
2848
  id: string,
2262
2849
  params: GetEventParams,
2263
- options?: RequestInit,
2850
+ options?: Parameters<typeof customFetch>[1],
2264
2851
  ): Promise<GetEvent200> => {
2265
2852
  return customFetch<GetEvent200>(getGetEventUrl(id, params), {
2266
2853
  ...options,
@@ -2273,7 +2860,7 @@ export const getGetVariablesUrl = (params: GetVariablesParams) => {
2273
2860
 
2274
2861
  Object.entries(params || {}).forEach(([key, value]) => {
2275
2862
  if (value !== undefined) {
2276
- normalizedParams.append(key, value === null ? "null" : value.toString());
2863
+ normalizedParams.append(key, value === null ? "null" : String(value));
2277
2864
  }
2278
2865
  });
2279
2866
 
@@ -2286,21 +2873,20 @@ export const getGetVariablesUrl = (params: GetVariablesParams) => {
2286
2873
 
2287
2874
  /**
2288
2875
  * Returns the variables entered at the owner this request addresses, keyed by
2289
- name — one environment of the project with `environment_name`, the project
2290
- level itself without it.
2291
-
2292
- Owners are separate, not a ladder: an environment does not inherit the
2293
- project's variables and the project does not see its environments'. Reading
2294
- everything a project holds therefore means reading each owner in turn.
2295
-
2296
- Secret values are not returned. A secret appears as `{"secret": true}`,
2297
- which says a value is held without disclosing it.
2298
-
2876
+ * name — one environment of the project with `environment_name`, the project
2877
+ * level itself without it.
2878
+ *
2879
+ * Owners are separate, not a ladder: an environment does not inherit the
2880
+ * project's variables and the project does not see its environments'. Reading
2881
+ * everything a project holds therefore means reading each owner in turn.
2882
+ *
2883
+ * Secret values are not returned. A secret appears as `{"secret": true}`,
2884
+ * which says a value is held without disclosing it.
2299
2885
  * @summary Get variables
2300
2886
  */
2301
2887
  export const getVariables = async (
2302
2888
  params: GetVariablesParams,
2303
- options?: RequestInit,
2889
+ options?: Parameters<typeof customFetch>[1],
2304
2890
  ): Promise<GetVariables200> => {
2305
2891
  return customFetch<GetVariables200>(getGetVariablesUrl(params), {
2306
2892
  ...options,
@@ -2313,7 +2899,7 @@ export const getUpdateVariablesUrl = (params: UpdateVariablesParams) => {
2313
2899
 
2314
2900
  Object.entries(params || {}).forEach(([key, value]) => {
2315
2901
  if (value !== undefined) {
2316
- normalizedParams.append(key, value === null ? "null" : value.toString());
2902
+ normalizedParams.append(key, value === null ? "null" : String(value));
2317
2903
  }
2318
2904
  });
2319
2905
 
@@ -2326,34 +2912,52 @@ export const getUpdateVariablesUrl = (params: UpdateVariablesParams) => {
2326
2912
 
2327
2913
  /**
2328
2914
  * Enters, replaces and removes variables at the owner this request
2329
- addresses.
2330
-
2331
- Every name in the body is applied at exactly that owner — the project, or
2332
- the environment named by `environment_name` — and reaches no other. Names
2333
- not in the body are untouched.
2334
-
2335
- A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
2336
- stores the value encrypted under the project's active `secret` key, after
2337
- which it can be referenced but not read back. `null` removes the name from
2338
- this owner (RFC 7386), which is how several variables are removed in one
2339
- request; removing a name this owner does not hold is a no-op rather than an
2340
- error.
2341
-
2342
- The body is applied whole or not at all, so a rejected request leaves the
2343
- owner exactly as it was. Writing the same name and owner twice replaces the
2344
- value rather than duplicating it, which makes a retry safe.
2345
-
2915
+ * addresses.
2916
+ *
2917
+ * Every name in the body is applied at exactly that owner — the project, or
2918
+ * the environment named by `environment_name` — and reaches no other. Names
2919
+ * not in the body are untouched.
2920
+ *
2921
+ * A bare scalar enters a non-secret value. `{"value": …, "secret": true}`
2922
+ * stores the value encrypted under the project's active `secret` key, after
2923
+ * which it can be referenced but not read back. `null` removes the name from
2924
+ * this owner (RFC 7386), which is how several variables are removed in one
2925
+ * request; removing a name this owner does not hold is a no-op rather than an
2926
+ * error.
2927
+ *
2928
+ * The body is applied whole or not at all, so a rejected request leaves the
2929
+ * owner exactly as it was. Writing the same name and owner twice replaces the
2930
+ * value rather than duplicating it, which makes a retry safe.
2346
2931
  * @summary Update variables
2347
2932
  */
2348
2933
  export const updateVariables = async (
2349
2934
  updateVariablesBody: UpdateVariablesBody,
2350
2935
  params: UpdateVariablesParams,
2351
- options?: RequestInit,
2936
+ options?: Parameters<typeof customFetch>[1],
2352
2937
  ): Promise<UpdateVariables200> => {
2938
+ const getHeaders = (
2939
+ h?: NonNullable<RequestInit["headers"]>,
2940
+ ): Record<string, string | readonly string[]> => {
2941
+ if (!h) return {};
2942
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
2943
+ if (Symbol.iterator in h) {
2944
+ return Object.fromEntries(
2945
+ Array.from(
2946
+ h as Iterable<Iterable<string>>,
2947
+ (entry) => Array.from(entry) as [string, string],
2948
+ ),
2949
+ );
2950
+ }
2951
+ const headers: Record<string, string | readonly string[]> = {};
2952
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
2953
+ if (value !== undefined) headers[name] = value;
2954
+ }
2955
+ return headers;
2956
+ };
2353
2957
  return customFetch<UpdateVariables200>(getUpdateVariablesUrl(params), {
2354
2958
  ...options,
2355
2959
  method: "PATCH",
2356
- headers: { "Content-Type": "application/json", ...options?.headers },
2960
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
2357
2961
  body: JSON.stringify(updateVariablesBody),
2358
2962
  });
2359
2963
  };
@@ -2363,32 +2967,31 @@ export const getGetVariableUrl = (variableName: string, params: GetVariableParam
2363
2967
 
2364
2968
  Object.entries(params || {}).forEach(([key, value]) => {
2365
2969
  if (value !== undefined) {
2366
- normalizedParams.append(key, value === null ? "null" : value.toString());
2970
+ normalizedParams.append(key, value === null ? "null" : String(value));
2367
2971
  }
2368
2972
  });
2369
2973
 
2370
2974
  const stringifiedParams = normalizedParams.toString();
2371
2975
 
2372
2976
  return stringifiedParams.length > 0
2373
- ? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}`
2374
- : `${getProxyPath()}/variables/${variableName}`;
2977
+ ? `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}`
2978
+ : `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}`;
2375
2979
  };
2376
2980
 
2377
2981
  /**
2378
2982
  * Reads one variable by name from the owner this request addresses — one
2379
- environment of the project with `environment_name`, the project level
2380
- itself without it.
2381
-
2382
- A name that owner has not entered answers `var.not_found`, even when
2383
- another owner of the same project holds it: nothing is inherited. A secret
2384
- is found but not disclosed: the response is `{"secret": true}`.
2385
-
2983
+ * environment of the project with `environment_name`, the project level
2984
+ * itself without it.
2985
+ *
2986
+ * A name that owner has not entered answers `var.not_found`, even when
2987
+ * another owner of the same project holds it: nothing is inherited. A secret
2988
+ * is found but not disclosed: the response is `{"secret": true}`.
2386
2989
  * @summary Get a variable
2387
2990
  */
2388
2991
  export const getVariable = async (
2389
2992
  variableName: string,
2390
2993
  params: GetVariableParams,
2391
- options?: RequestInit,
2994
+ options?: Parameters<typeof customFetch>[1],
2392
2995
  ): Promise<GetVariable200> => {
2393
2996
  return customFetch<GetVariable200>(getGetVariableUrl(variableName, params), {
2394
2997
  ...options,
@@ -2401,33 +3004,190 @@ export const getDeleteVariableUrl = (variableName: string, params: DeleteVariabl
2401
3004
 
2402
3005
  Object.entries(params || {}).forEach(([key, value]) => {
2403
3006
  if (value !== undefined) {
2404
- normalizedParams.append(key, value === null ? "null" : value.toString());
3007
+ normalizedParams.append(key, value === null ? "null" : String(value));
2405
3008
  }
2406
3009
  });
2407
3010
 
2408
3011
  const stringifiedParams = normalizedParams.toString();
2409
3012
 
2410
3013
  return stringifiedParams.length > 0
2411
- ? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}`
2412
- : `${getProxyPath()}/variables/${variableName}`;
3014
+ ? `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}?${stringifiedParams}`
3015
+ : `${getProxyPath()}/variables/${encodeURIComponent(String(variableName))}`;
2413
3016
  };
2414
3017
 
2415
3018
  /**
2416
3019
  * Removes the variable this owner entered under this name.
2417
-
2418
- A variable is deletable only by the owner that entered it. Deleting a name
2419
- another owner of the same project holds answers `var.not_found` and leaves
2420
- that owner's value standing.
2421
-
3020
+ *
3021
+ * A variable is deletable only by the owner that entered it. Deleting a name
3022
+ * another owner of the same project holds answers `var.not_found` and leaves
3023
+ * that owner's value standing.
2422
3024
  * @summary Delete a variable
2423
3025
  */
2424
3026
  export const deleteVariable = async (
2425
3027
  variableName: string,
2426
3028
  params: DeleteVariableParams,
2427
- options?: RequestInit,
3029
+ options?: Parameters<typeof customFetch>[1],
2428
3030
  ): Promise<void> => {
2429
3031
  return customFetch<void>(getDeleteVariableUrl(variableName, params), {
2430
3032
  ...options,
2431
3033
  method: "DELETE",
2432
3034
  });
2433
3035
  };
3036
+
3037
+ export const getCreateDeploymentUrl = (params: CreateDeploymentParams) => {
3038
+ const normalizedParams = new URLSearchParams();
3039
+
3040
+ Object.entries(params || {}).forEach(([key, value]) => {
3041
+ if (value !== undefined) {
3042
+ normalizedParams.append(key, value === null ? "null" : String(value));
3043
+ }
3044
+ });
3045
+
3046
+ const stringifiedParams = normalizedParams.toString();
3047
+
3048
+ return stringifiedParams.length > 0
3049
+ ? `${getProxyPath()}/deployments?${stringifiedParams}`
3050
+ : `${getProxyPath()}/deployments`;
3051
+ };
3052
+
3053
+ /**
3054
+ * Makes a release live on an environment by recording a deployment. The two
3055
+ * happen atomically: when the call returns, the environment runs the named
3056
+ * release and the record exists; on any failure the environment keeps
3057
+ * running what it ran and no record is written.
3058
+ *
3059
+ * Deploying, promoting and rolling back are all this call — `reason` says
3060
+ * which. None of them assembles a release: the release must already exist,
3061
+ * and rolling back means deploying a release the environment ran earlier,
3062
+ * chosen from its deployment history.
3063
+ *
3064
+ * Idempotent on the running release: deploying the release the environment
3065
+ * already runs changes nothing and answers `200` with the deployment that
3066
+ * made it live, so a re-run of `zitadel deploy` on unchanged content is a
3067
+ * no-op end to end — matching `POST /releases`, which resolves the same
3068
+ * content to the same release first. Anything else writes a new record,
3069
+ * including the same release returning after something else ran in between:
3070
+ * the log is append-only, and each row is one act of making a release live.
3071
+ *
3072
+ * `expected_current_deployment_id` guards against racing another deploy:
3073
+ * when present, the swap only happens if the environment's current
3074
+ * deployment still is the one named, and a mismatch answers `409` with the
3075
+ * actual `current_deployment_id` and `current_release_id` in the details.
3076
+ * @summary Create a deployment
3077
+ */
3078
+ export const createDeployment = async (
3079
+ createDeploymentBody: CreateDeploymentBody,
3080
+ params: CreateDeploymentParams,
3081
+ options?: Parameters<typeof customFetch>[1],
3082
+ ): Promise<CreateDeployment200 | CreateDeployment201> => {
3083
+ const getHeaders = (
3084
+ h?: NonNullable<RequestInit["headers"]>,
3085
+ ): Record<string, string | readonly string[]> => {
3086
+ if (!h) return {};
3087
+ if (h instanceof Headers) return Object.fromEntries(h.entries());
3088
+ if (Symbol.iterator in h) {
3089
+ return Object.fromEntries(
3090
+ Array.from(
3091
+ h as Iterable<Iterable<string>>,
3092
+ (entry) => Array.from(entry) as [string, string],
3093
+ ),
3094
+ );
3095
+ }
3096
+ const headers: Record<string, string | readonly string[]> = {};
3097
+ for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
3098
+ if (value !== undefined) headers[name] = value;
3099
+ }
3100
+ return headers;
3101
+ };
3102
+ return customFetch<CreateDeployment200 | CreateDeployment201>(getCreateDeploymentUrl(params), {
3103
+ ...options,
3104
+ method: "POST",
3105
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
3106
+ body: JSON.stringify(createDeploymentBody),
3107
+ });
3108
+ };
3109
+
3110
+ export const getListDeploymentsUrl = (params: ListDeploymentsParams) => {
3111
+ const normalizedParams = new URLSearchParams();
3112
+
3113
+ Object.entries(params || {}).forEach(([key, value]) => {
3114
+ const explodeParameters = ["expand"];
3115
+
3116
+ if (Array.isArray(value) && explodeParameters.includes(key)) {
3117
+ value.forEach((v) => {
3118
+ normalizedParams.append(key, v === null ? "null" : String(v));
3119
+ });
3120
+ return;
3121
+ }
3122
+
3123
+ if (value !== undefined) {
3124
+ normalizedParams.append(key, value === null ? "null" : String(value));
3125
+ }
3126
+ });
3127
+
3128
+ const stringifiedParams = normalizedParams.toString();
3129
+
3130
+ return stringifiedParams.length > 0
3131
+ ? `${getProxyPath()}/deployments?${stringifiedParams}`
3132
+ : `${getProxyPath()}/deployments`;
3133
+ };
3134
+
3135
+ /**
3136
+ * Lists deployments newest first: what ran where, and when.
3137
+ *
3138
+ * With `environment_name`, the list is that environment's history and its
3139
+ * first row is the environment's current deployment. Without it, the list
3140
+ * interleaves every environment of the project — a project-wide audit view
3141
+ * in which the first row is only the most recent deployment anywhere.
3142
+ *
3143
+ * `expand: ["release"]` embeds the release each deployment made live, so a
3144
+ * history renders with each entry's content without resolving `release_id`
3145
+ * one by one. Expanding requires `release.read` and does not affect the
3146
+ * ordering or the page tokens.
3147
+ * @summary List deployments
3148
+ */
3149
+ export const listDeployments = async (
3150
+ params: ListDeploymentsParams,
3151
+ options?: Parameters<typeof customFetch>[1],
3152
+ ): Promise<ListDeployments200> => {
3153
+ return customFetch<ListDeployments200>(getListDeploymentsUrl(params), {
3154
+ ...options,
3155
+ method: "GET",
3156
+ });
3157
+ };
3158
+
3159
+ export const getGetDeploymentByIdUrl = (deploymentId: string, params: GetDeploymentByIdParams) => {
3160
+ const normalizedParams = new URLSearchParams();
3161
+
3162
+ Object.entries(params || {}).forEach(([key, value]) => {
3163
+ if (value !== undefined) {
3164
+ normalizedParams.append(key, value === null ? "null" : String(value));
3165
+ }
3166
+ });
3167
+
3168
+ const stringifiedParams = normalizedParams.toString();
3169
+
3170
+ return stringifiedParams.length > 0
3171
+ ? `${getProxyPath()}/deployments/${encodeURIComponent(String(deploymentId))}?${stringifiedParams}`
3172
+ : `${getProxyPath()}/deployments/${encodeURIComponent(String(deploymentId))}`;
3173
+ };
3174
+
3175
+ /**
3176
+ * Reads one deployment record.
3177
+ *
3178
+ * The lookup is scoped to the project in `project_id`: a deployment id
3179
+ * belonging to another project answers not found exactly as an unknown id
3180
+ * does, so the endpoint cannot be used to probe for deployments in projects
3181
+ * the caller cannot read.
3182
+ * @summary Get a deployment by id
3183
+ */
3184
+ export const getDeploymentById = async (
3185
+ deploymentId: string,
3186
+ params: GetDeploymentByIdParams,
3187
+ options?: Parameters<typeof customFetch>[1],
3188
+ ): Promise<GetDeploymentById200> => {
3189
+ return customFetch<GetDeploymentById200>(getGetDeploymentByIdUrl(deploymentId, params), {
3190
+ ...options,
3191
+ method: "GET",
3192
+ });
3193
+ };