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

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 (458) hide show
  1. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  2. package/dist/generated/endpoints/zitadelNextGen.mjs +401 -57
  3. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  4. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +26 -6
  5. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +1440 -555
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1681 -442
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1551 -378
  11. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  12. package/dist/generated/model/index.d.mts +2 -2
  13. package/dist/generated/model/index.mjs +403 -87
  14. package/dist/generated/model/index.mjs.map +1 -1
  15. package/dist/{index-DtExHu2p.d.mts → index-ruwZ9xDe.d.mts} +20373 -12622
  16. package/dist/index-ruwZ9xDe.d.mts.map +1 -0
  17. package/dist/runtime/api-factory.d.mts +1 -1
  18. package/dist/{zitadelNextGen-C79YSuEo.d.mts → zitadelNextGen-DPyZep6V.d.mts} +222 -38
  19. package/dist/zitadelNextGen-DPyZep6V.d.mts.map +1 -0
  20. package/package.json +1 -1
  21. package/src/generated/endpoints/zitadelNextGen.msw.ts +2807 -699
  22. package/src/generated/endpoints/zitadelNextGen.ts +529 -61
  23. package/src/generated/endpoints/zitadelNextGen.zod.ts +8492 -4460
  24. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +8 -1
  25. package/src/generated/model/createBranding201.ts +8 -7
  26. package/src/generated/model/createBranding201Branding.ts +50 -24
  27. package/src/generated/model/createBranding201BrandingLayout.ts +8 -4
  28. package/src/generated/model/createBranding201BrandingShape.ts +31 -0
  29. package/src/generated/model/createBranding201BrandingShapeDensity.ts +19 -0
  30. package/src/generated/model/createBranding201BrandingTheme.ts +37 -0
  31. package/src/generated/model/createBranding201BrandingThemeDark.ts +33 -0
  32. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +222 -0
  33. package/src/generated/model/createBranding201BrandingThemeLight.ts +33 -0
  34. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +222 -0
  35. package/src/generated/model/createBranding201BrandingThemeMode.ts +20 -0
  36. package/src/generated/model/createBranding201BrandingTypography.ts +49 -0
  37. package/src/generated/model/createBrandingBody.ts +50 -24
  38. package/src/generated/model/createBrandingBodyLayout.ts +8 -4
  39. package/src/generated/model/createBrandingBodyShape.ts +31 -0
  40. package/src/generated/model/createBrandingBodyShapeDensity.ts +19 -0
  41. package/src/generated/model/createBrandingBodyTheme.ts +37 -0
  42. package/src/generated/model/createBrandingBodyThemeDark.ts +33 -0
  43. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +222 -0
  44. package/src/generated/model/createBrandingBodyThemeLight.ts +33 -0
  45. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +222 -0
  46. package/src/generated/model/createBrandingBodyThemeMode.ts +20 -0
  47. package/src/generated/model/createBrandingBodyTypography.ts +49 -0
  48. package/src/generated/model/createFlow201.ts +8 -7
  49. package/src/generated/model/createFlow201Branding.ts +50 -24
  50. package/src/generated/model/createFlow201BrandingLayout.ts +8 -4
  51. package/src/generated/model/createFlow201BrandingShape.ts +31 -0
  52. package/src/generated/model/createFlow201BrandingShapeDensity.ts +19 -0
  53. package/src/generated/model/createFlow201BrandingTheme.ts +37 -0
  54. package/src/generated/model/createFlow201BrandingThemeDark.ts +33 -0
  55. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +222 -0
  56. package/src/generated/model/createFlow201BrandingThemeLight.ts +33 -0
  57. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +222 -0
  58. package/src/generated/model/createFlow201BrandingThemeMode.ts +20 -0
  59. package/src/generated/model/createFlow201BrandingTypography.ts +49 -0
  60. package/src/generated/model/createFlow201StepActionsItem.ts +17 -20
  61. package/src/generated/model/createFlow201StepActionsItemKind.ts +7 -10
  62. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +1 -3
  63. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +1 -3
  64. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +12 -5
  65. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +10 -7
  66. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +3 -4
  67. package/src/generated/model/createFlowDefinition201UserSchema.ts +9 -1
  68. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +1 -3
  69. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +1 -3
  70. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +12 -5
  71. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +10 -7
  72. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +3 -4
  73. package/src/generated/model/createFlowDefinitionDefault.ts +10 -0
  74. package/src/generated/model/createGrant201.ts +13 -32
  75. package/src/generated/model/createGrant201Team.ts +18 -5
  76. package/src/generated/model/createGrant201TeamStatus.ts +22 -0
  77. package/src/generated/model/createGrant201User.ts +16 -6
  78. package/src/generated/model/createGrant201UserAttributes.ts +14 -0
  79. package/src/generated/model/createGrant201UserMetadata.ts +43 -0
  80. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +43 -0
  81. package/src/generated/model/createGrant201UserMetadataStatus.ts +20 -0
  82. package/src/generated/model/createGrantBody.ts +18 -10
  83. package/src/generated/model/createGrantBodyTeam.ts +25 -0
  84. package/src/generated/model/createGrantBodyUser.ts +29 -0
  85. package/src/generated/model/createIdp200.ts +35 -0
  86. package/src/generated/model/createIdp200Definition.ts +47 -0
  87. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +12 -0
  88. package/src/generated/model/createIdp200DefinitionOauth2.ts +52 -0
  89. package/src/generated/model/createIdp200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
  90. package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +17 -0
  91. package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
  92. package/src/generated/model/createIdp200DefinitionOidc.ts +64 -0
  93. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  94. package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  95. package/src/generated/model/createIdp200DefinitionProtocol.ts +18 -0
  96. package/src/generated/model/createIdp200DefinitionProvisioning.ts +15 -0
  97. package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +15 -0
  98. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +12 -0
  99. package/src/generated/model/createIdp201.ts +35 -0
  100. package/src/generated/model/createIdp201Definition.ts +47 -0
  101. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +12 -0
  102. package/src/generated/model/createIdp201DefinitionOauth2.ts +52 -0
  103. package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
  104. package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +17 -0
  105. package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
  106. package/src/generated/model/createIdp201DefinitionOidc.ts +64 -0
  107. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  108. package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  109. package/src/generated/model/createIdp201DefinitionProtocol.ts +18 -0
  110. package/src/generated/model/createIdp201DefinitionProvisioning.ts +15 -0
  111. package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +15 -0
  112. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +12 -0
  113. package/src/generated/model/{createSchema400.ts → createIdp400.ts} +3 -3
  114. package/src/generated/model/{createSchema409Details.ts → createIdp400Details.ts} +1 -1
  115. package/src/generated/model/{createSchema409.ts → createIdp401.ts} +3 -3
  116. package/src/generated/model/{createSchema400Details.ts → createIdp401Details.ts} +1 -1
  117. package/src/generated/model/createIdp403.ts +20 -0
  118. package/src/generated/model/createIdp403Details.ts +12 -0
  119. package/src/generated/model/createIdp404.ts +20 -0
  120. package/src/generated/model/createIdp404Details.ts +12 -0
  121. package/src/generated/model/createIdpBody.ts +15 -0
  122. package/src/generated/model/createIdpBodyIdp.ts +47 -0
  123. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +12 -0
  124. package/src/generated/model/createIdpBodyIdpOauth2.ts +52 -0
  125. package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +12 -0
  126. package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +17 -0
  127. package/src/generated/model/createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts +18 -0
  128. package/src/generated/model/createIdpBodyIdpOidc.ts +64 -0
  129. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +12 -0
  130. package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +18 -0
  131. package/src/generated/model/createIdpBodyIdpProtocol.ts +18 -0
  132. package/src/generated/model/createIdpBodyIdpProvisioning.ts +15 -0
  133. package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +15 -0
  134. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +12 -0
  135. package/src/generated/model/createIdpDefault.ts +39 -0
  136. package/src/generated/model/{deleteFlowDefinition409Details.ts → createIdpParams.ts} +7 -4
  137. package/src/generated/model/createRelease200.ts +3 -1
  138. package/src/generated/model/createRelease201.ts +3 -1
  139. package/src/generated/model/createReleaseBody.ts +8 -0
  140. package/src/generated/model/createReleaseDefault.ts +70 -0
  141. package/src/generated/model/createSchemaBody.ts +9 -1
  142. package/src/generated/model/createSchemaDefault.ts +141 -12
  143. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +8 -1
  144. package/src/generated/model/deleteTeam409.ts +20 -0
  145. package/src/generated/model/deleteTeam409Details.ts +12 -0
  146. package/src/generated/model/deleteVariableDefault.ts +69 -0
  147. package/src/generated/model/deleteVariableParams.ts +26 -0
  148. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +8 -1
  149. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +8 -1
  150. package/src/generated/model/getBrandingById200.ts +8 -7
  151. package/src/generated/model/getBrandingById200Branding.ts +50 -24
  152. package/src/generated/model/getBrandingById200BrandingLayout.ts +8 -4
  153. package/src/generated/model/getBrandingById200BrandingShape.ts +31 -0
  154. package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +19 -0
  155. package/src/generated/model/getBrandingById200BrandingTheme.ts +37 -0
  156. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +33 -0
  157. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +222 -0
  158. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +33 -0
  159. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +222 -0
  160. package/src/generated/model/getBrandingById200BrandingThemeMode.ts +20 -0
  161. package/src/generated/model/getBrandingById200BrandingTypography.ts +49 -0
  162. package/src/generated/model/getEvent200.ts +4 -4
  163. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +1 -3
  164. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +1 -3
  165. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +12 -5
  166. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +10 -7
  167. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +3 -4
  168. package/src/generated/model/getFlowDefinition200UserSchema.ts +9 -1
  169. package/src/generated/model/getFlowStep200.ts +8 -7
  170. package/src/generated/model/getFlowStep200Branding.ts +50 -24
  171. package/src/generated/model/getFlowStep200BrandingLayout.ts +8 -4
  172. package/src/generated/model/getFlowStep200BrandingShape.ts +31 -0
  173. package/src/generated/model/getFlowStep200BrandingShapeDensity.ts +19 -0
  174. package/src/generated/model/getFlowStep200BrandingTheme.ts +37 -0
  175. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +33 -0
  176. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +222 -0
  177. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +33 -0
  178. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +222 -0
  179. package/src/generated/model/getFlowStep200BrandingThemeMode.ts +20 -0
  180. package/src/generated/model/getFlowStep200BrandingTypography.ts +49 -0
  181. package/src/generated/model/getFlowStep200StepActionsItem.ts +17 -20
  182. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +7 -10
  183. package/src/generated/model/getGrant200.ts +13 -32
  184. package/src/generated/model/getGrant200Team.ts +18 -5
  185. package/src/generated/model/getGrant200TeamStatus.ts +22 -0
  186. package/src/generated/model/getGrant200User.ts +16 -6
  187. package/src/generated/model/getGrant200UserAttributes.ts +14 -0
  188. package/src/generated/model/getGrant200UserMetadata.ts +43 -0
  189. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +43 -0
  190. package/src/generated/model/getGrant200UserMetadataStatus.ts +20 -0
  191. package/src/generated/model/getGrantDefault.ts +20 -0
  192. package/src/generated/model/getGrantExpandItem.ts +29 -0
  193. package/src/generated/model/getGrantParams.ts +7 -0
  194. package/src/generated/model/getIdpById200.ts +35 -0
  195. package/src/generated/model/getIdpById200Definition.ts +47 -0
  196. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +12 -0
  197. package/src/generated/model/getIdpById200DefinitionOauth2.ts +52 -0
  198. package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +12 -0
  199. package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +17 -0
  200. package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
  201. package/src/generated/model/getIdpById200DefinitionOidc.ts +64 -0
  202. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +12 -0
  203. package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  204. package/src/generated/model/getIdpById200DefinitionProtocol.ts +18 -0
  205. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +15 -0
  206. package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +15 -0
  207. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +12 -0
  208. package/src/generated/model/getIdpById401.ts +20 -0
  209. package/src/generated/model/getIdpById401Details.ts +12 -0
  210. package/src/generated/model/getIdpById403.ts +20 -0
  211. package/src/generated/model/getIdpById403Details.ts +12 -0
  212. package/src/generated/model/getIdpById404.ts +20 -0
  213. package/src/generated/model/getIdpById404Details.ts +12 -0
  214. package/src/generated/model/getIdpByIdDefault.ts +39 -0
  215. package/src/generated/model/getIdpByIdParams.ts +15 -0
  216. package/src/generated/model/getIdpRevisionById200.ts +35 -0
  217. package/src/generated/model/getIdpRevisionById200Definition.ts +47 -0
  218. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +12 -0
  219. package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +52 -0
  220. package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +14 -0
  221. package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +17 -0
  222. package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
  223. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +64 -0
  224. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +14 -0
  225. package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  226. package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +18 -0
  227. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +15 -0
  228. package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +15 -0
  229. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +12 -0
  230. package/src/generated/model/getIdpRevisionById401.ts +20 -0
  231. package/src/generated/model/getIdpRevisionById401Details.ts +12 -0
  232. package/src/generated/model/getIdpRevisionById403.ts +20 -0
  233. package/src/generated/model/getIdpRevisionById403Details.ts +12 -0
  234. package/src/generated/model/getIdpRevisionById404.ts +20 -0
  235. package/src/generated/model/getIdpRevisionById404Details.ts +12 -0
  236. package/src/generated/model/getIdpRevisionByIdDefault.ts +39 -0
  237. package/src/generated/model/getIdpRevisionByIdParams.ts +15 -0
  238. package/src/generated/model/getMySession200FactorsItemPayload.ts +8 -1
  239. package/src/generated/model/getReleaseById200.ts +3 -1
  240. package/src/generated/model/getReleaseByIdDefault.ts +20 -0
  241. package/src/generated/model/getSchemaById200Schema.ts +9 -1
  242. package/src/generated/model/getSchemaByIdDefault.ts +51 -12
  243. package/src/generated/model/getSession200FactorsItemPayload.ts +8 -1
  244. package/src/generated/model/getVariable200.ts +25 -0
  245. package/src/generated/model/getVariableDefault.ts +69 -0
  246. package/src/generated/model/getVariableParams.ts +26 -0
  247. package/src/generated/model/getVariables200.ts +29 -0
  248. package/src/generated/model/getVariablesDefault.ts +69 -0
  249. package/src/generated/model/getVariablesParams.ts +26 -0
  250. package/src/generated/model/index.ts +293 -59
  251. package/src/generated/model/listEvents200DataItem.ts +4 -4
  252. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +1 -3
  253. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +1 -3
  254. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +12 -5
  255. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +10 -7
  256. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +3 -4
  257. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +9 -1
  258. package/src/generated/model/listFlowDefinitionsParams.ts +15 -0
  259. package/src/generated/model/listFlowDefinitionsRevisions.ts +15 -0
  260. package/src/generated/model/listIdpRevisions200.ts +21 -0
  261. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +35 -0
  262. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +47 -0
  263. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +12 -0
  264. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +52 -0
  265. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
  266. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
  267. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
  268. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +64 -0
  269. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +14 -0
  270. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  271. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +18 -0
  272. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +15 -0
  273. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioningCreation.ts +15 -0
  274. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +14 -0
  275. package/src/generated/model/listIdpRevisions401.ts +20 -0
  276. package/src/generated/model/{createSchemaDefaultDetails.ts → listIdpRevisions401Details.ts} +1 -1
  277. package/src/generated/model/listIdpRevisions403.ts +20 -0
  278. package/src/generated/model/listIdpRevisions403Details.ts +12 -0
  279. package/src/generated/model/listIdpRevisions404.ts +20 -0
  280. package/src/generated/model/listIdpRevisions404Details.ts +12 -0
  281. package/src/generated/model/listIdpRevisionsDefault.ts +39 -0
  282. package/src/generated/model/listIdpRevisionsParams.ts +29 -0
  283. package/src/generated/model/listMyProjects200.ts +20 -0
  284. package/src/generated/model/listMyProjects200ProjectsItem.ts +24 -0
  285. package/src/generated/model/listMyProjects400.ts +20 -0
  286. package/src/generated/model/listMyProjects400Details.ts +12 -0
  287. package/src/generated/model/listMyProjects401.ts +24 -0
  288. package/src/generated/model/listMyProjects500.ts +20 -0
  289. package/src/generated/model/listMyProjects500Details.ts +12 -0
  290. package/src/generated/model/listMyProjectsDefault.ts +39 -0
  291. package/src/generated/model/listMyProjectsParams.ts +24 -0
  292. package/src/generated/model/listReleasesDefault.ts +20 -0
  293. package/src/generated/model/listSchemas200SchemasItemSchema.ts +9 -1
  294. package/src/generated/model/listSchemasDefault.ts +51 -12
  295. package/src/generated/model/patchMyUser200.ts +71 -0
  296. package/src/generated/model/patchMyUser200Attributes.ts +14 -0
  297. package/src/generated/model/patchMyUser200Metadata.ts +43 -0
  298. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +43 -0
  299. package/src/generated/model/patchMyUser200MetadataStatus.ts +20 -0
  300. package/src/generated/model/patchMyUser200TeamsItem.ts +33 -0
  301. package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +21 -0
  302. package/src/generated/model/patchMyUser400.ts +20 -0
  303. package/src/generated/model/patchMyUser400Details.ts +12 -0
  304. package/src/generated/model/patchMyUser401.ts +20 -0
  305. package/src/generated/model/patchMyUser401Details.ts +12 -0
  306. package/src/generated/model/patchMyUser404.ts +24 -0
  307. package/src/generated/model/patchMyUser409.ts +20 -0
  308. package/src/generated/model/patchMyUser409Details.ts +12 -0
  309. package/src/generated/model/patchMyUserBody.ts +25 -0
  310. package/src/generated/model/{listSchemasDefaultDetails.ts → patchMyUserBodyAttributes.ts} +4 -2
  311. package/src/generated/model/{deleteFlowDefinitionDefault.ts → patchMyUserDefault.ts} +8 -8
  312. package/src/generated/model/patchUserByID200.ts +71 -0
  313. package/src/generated/model/patchUserByID200Attributes.ts +14 -0
  314. package/src/generated/model/patchUserByID200Metadata.ts +43 -0
  315. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +43 -0
  316. package/src/generated/model/patchUserByID200MetadataStatus.ts +20 -0
  317. package/src/generated/model/patchUserByID200TeamsItem.ts +33 -0
  318. package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +21 -0
  319. package/src/generated/model/{getSchemaById404.ts → patchUserByID400.ts} +3 -3
  320. package/src/generated/model/{getSchemaById400Details.ts → patchUserByID400Details.ts} +1 -1
  321. package/src/generated/model/{getSchemaById400.ts → patchUserByID401.ts} +3 -3
  322. package/src/generated/model/{getSchemaById404Details.ts → patchUserByID401Details.ts} +1 -1
  323. package/src/generated/model/patchUserByID403.ts +20 -0
  324. package/src/generated/model/patchUserByID403Details.ts +12 -0
  325. package/src/generated/model/patchUserByID404.ts +20 -0
  326. package/src/generated/model/patchUserByID404Details.ts +12 -0
  327. package/src/generated/model/patchUserByID409.ts +20 -0
  328. package/src/generated/model/patchUserByID409Details.ts +12 -0
  329. package/src/generated/model/patchUserByIDBody.ts +39 -0
  330. package/src/generated/model/{getSchemaByIdDefaultDetails.ts → patchUserByIDBodyAttributes.ts} +4 -2
  331. package/src/generated/model/patchUserByIDDefault.ts +89 -0
  332. package/src/generated/model/queryGrants200GrantsItem.ts +13 -32
  333. package/src/generated/model/queryGrants200GrantsItemTeam.ts +18 -5
  334. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +22 -0
  335. package/src/generated/model/queryGrants200GrantsItemUser.ts +16 -6
  336. package/src/generated/model/queryGrants200GrantsItemUserAttributes.ts +14 -0
  337. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +43 -0
  338. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +43 -0
  339. package/src/generated/model/queryGrants200GrantsItemUserMetadataStatus.ts +20 -0
  340. package/src/generated/model/queryGrantsBody.ts +3 -2
  341. package/src/generated/model/queryGrantsBodyExpandItem.ts +11 -11
  342. package/src/generated/model/queryGrantsBodyFilterItem.ts +2 -2
  343. package/src/generated/model/queryGrantsBodyFilterItemField.ts +4 -4
  344. package/src/generated/model/queryIdps200.ts +21 -0
  345. package/src/generated/model/queryIdps200IdpsItem.ts +35 -0
  346. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +47 -0
  347. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +12 -0
  348. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +52 -0
  349. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +14 -0
  350. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +17 -0
  351. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +18 -0
  352. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +64 -0
  353. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +12 -0
  354. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcTokenEndpointAuthMethod.ts +18 -0
  355. package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +18 -0
  356. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +15 -0
  357. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioningCreation.ts +15 -0
  358. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +12 -0
  359. package/src/generated/model/queryIdps400.ts +20 -0
  360. package/src/generated/model/queryIdps400Details.ts +12 -0
  361. package/src/generated/model/queryIdps401.ts +20 -0
  362. package/src/generated/model/queryIdps401Details.ts +12 -0
  363. package/src/generated/model/queryIdps403.ts +20 -0
  364. package/src/generated/model/queryIdps403Details.ts +12 -0
  365. package/src/generated/model/queryIdps404.ts +20 -0
  366. package/src/generated/model/queryIdps404Details.ts +12 -0
  367. package/src/generated/model/queryIdpsBody.ts +29 -0
  368. package/src/generated/model/queryIdpsBodyFilterItem.ts +31 -0
  369. package/src/generated/model/queryIdpsBodyFilterItemField.ts +22 -0
  370. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +30 -0
  371. package/src/generated/model/queryIdpsBodySorting.ts +22 -0
  372. package/src/generated/model/queryIdpsBodySortingDirection.ts +15 -0
  373. package/src/generated/model/queryIdpsBodySortingField.ts +22 -0
  374. package/src/generated/model/queryIdpsDefault.ts +39 -0
  375. package/src/generated/model/queryIdpsParams.ts +15 -0
  376. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +8 -1
  377. package/src/generated/model/submitFlowStep200.ts +8 -7
  378. package/src/generated/model/submitFlowStep200Branding.ts +50 -24
  379. package/src/generated/model/submitFlowStep200BrandingLayout.ts +8 -4
  380. package/src/generated/model/submitFlowStep200BrandingShape.ts +31 -0
  381. package/src/generated/model/submitFlowStep200BrandingShapeDensity.ts +19 -0
  382. package/src/generated/model/submitFlowStep200BrandingTheme.ts +37 -0
  383. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +33 -0
  384. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +222 -0
  385. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +33 -0
  386. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +222 -0
  387. package/src/generated/model/submitFlowStep200BrandingThemeMode.ts +20 -0
  388. package/src/generated/model/submitFlowStep200BrandingTypography.ts +49 -0
  389. package/src/generated/model/submitFlowStep200StepActionsItem.ts +17 -20
  390. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +7 -10
  391. package/src/generated/model/submitFlowStep400.ts +8 -7
  392. package/src/generated/model/submitFlowStep400Branding.ts +50 -24
  393. package/src/generated/model/submitFlowStep400BrandingLayout.ts +8 -4
  394. package/src/generated/model/submitFlowStep400BrandingShape.ts +31 -0
  395. package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +19 -0
  396. package/src/generated/model/submitFlowStep400BrandingTheme.ts +37 -0
  397. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +33 -0
  398. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +222 -0
  399. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +33 -0
  400. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +222 -0
  401. package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +20 -0
  402. package/src/generated/model/submitFlowStep400BrandingTypography.ts +49 -0
  403. package/src/generated/model/submitFlowStep400StepActionsItem.ts +17 -20
  404. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +7 -10
  405. package/src/generated/model/updateVariables200.ts +29 -0
  406. package/src/generated/model/updateVariablesBody.ts +60 -0
  407. package/src/generated/model/{updateFlowDefinitionDefault.ts → updateVariablesDefault.ts} +22 -12
  408. package/src/generated/model/updateVariablesParams.ts +26 -0
  409. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +8 -1
  410. package/src/generated/model/verifyChallengeProofBody.ts +1 -1
  411. package/src/generated/model/verifyChallengeProofDefault.ts +10 -0
  412. package/dist/index-DtExHu2p.d.mts.map +0 -1
  413. package/dist/zitadelNextGen-C79YSuEo.d.mts.map +0 -1
  414. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
  415. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
  416. package/src/generated/model/createGrant201Principal.ts +0 -147
  417. package/src/generated/model/createGrant201PrincipalType.ts +0 -18
  418. package/src/generated/model/createGrantBodyPrincipalType.ts +0 -18
  419. package/src/generated/model/deleteFlowDefinition409.ts +0 -20
  420. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
  421. package/src/generated/model/getGrant200Principal.ts +0 -147
  422. package/src/generated/model/getGrant200PrincipalType.ts +0 -18
  423. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
  424. package/src/generated/model/queryGrants200GrantsItemPrincipal.ts +0 -147
  425. package/src/generated/model/queryGrants200GrantsItemPrincipalType.ts +0 -18
  426. package/src/generated/model/updateFlowDefinition200.ts +0 -34
  427. package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +0 -73
  428. package/src/generated/model/updateFlowDefinition200FlowDefinitionAudience.ts +0 -21
  429. package/src/generated/model/updateFlowDefinition200FlowDefinitionStatus.ts +0 -26
  430. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItem.ts +0 -71
  431. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +0 -42
  432. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +0 -31
  433. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemComplete.ts +0 -21
  434. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGates.ts +0 -35
  435. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesConfig.ts +0 -14
  436. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +0 -20
  437. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +0 -21
  438. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
  439. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemTransitions.ts +0 -46
  440. package/src/generated/model/updateFlowDefinition200UserSchema.ts +0 -103
  441. package/src/generated/model/updateFlowDefinition400.ts +0 -20
  442. package/src/generated/model/updateFlowDefinition400Details.ts +0 -12
  443. package/src/generated/model/updateFlowDefinition404.ts +0 -20
  444. package/src/generated/model/updateFlowDefinition404Details.ts +0 -12
  445. package/src/generated/model/updateFlowDefinitionBody.ts +0 -30
  446. package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +0 -73
  447. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionAudience.ts +0 -21
  448. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStatus.ts +0 -26
  449. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItem.ts +0 -71
  450. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +0 -42
  451. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +0 -31
  452. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +0 -21
  453. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +0 -35
  454. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts +0 -14
  455. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +0 -20
  456. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +0 -21
  457. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts +0 -19
  458. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +0 -46
@@ -25,6 +25,10 @@ import type {
25
25
  CreateGrantBody,
26
26
  CreateGrantParams,
27
27
  CreateHandoff200,
28
+ CreateIdp200,
29
+ CreateIdp201,
30
+ CreateIdpBody,
31
+ CreateIdpParams,
28
32
  CreateProject201,
29
33
  CreateProjectBody,
30
34
  CreateRelease200,
@@ -43,6 +47,7 @@ import type {
43
47
  CreateUserBody,
44
48
  CreateUserParams,
45
49
  DeleteGrantParams,
50
+ DeleteVariableParams,
46
51
  ExchangeHandoff200,
47
52
  ExchangeHandoffBody,
48
53
  ExchangeHandoffParams,
@@ -63,6 +68,10 @@ import type {
63
68
  GetGrant200,
64
69
  GetGrantParams,
65
70
  GetHealthDefault,
71
+ GetIdpById200,
72
+ GetIdpByIdParams,
73
+ GetIdpRevisionById200,
74
+ GetIdpRevisionByIdParams,
66
75
  GetLiveDefault,
67
76
  GetMySession200,
68
77
  GetMyUser200,
@@ -76,6 +85,10 @@ import type {
76
85
  GetTeam200,
77
86
  GetUserByID200,
78
87
  GetUserByIDParams,
88
+ GetVariable200,
89
+ GetVariableParams,
90
+ GetVariables200,
91
+ GetVariablesParams,
79
92
  InitClaim201,
80
93
  IssueChallenge201,
81
94
  IssueChallengeBody,
@@ -87,6 +100,10 @@ import type {
87
100
  ListEventsParams,
88
101
  ListFlowDefinitions200,
89
102
  ListFlowDefinitionsParams,
103
+ ListIdpRevisions200,
104
+ ListIdpRevisionsParams,
105
+ ListMyProjects200,
106
+ ListMyProjectsParams,
90
107
  ListReleases200,
91
108
  ListReleasesParams,
92
109
  ListSchemas200,
@@ -95,11 +112,18 @@ import type {
95
112
  ListUserPasskeysParams,
96
113
  ListUserTeams200,
97
114
  ListUserTeamsParams,
115
+ PatchMyUser200,
116
+ PatchMyUserBody,
98
117
  PatchProject200,
99
118
  PatchProjectBody,
119
+ PatchUserByID200,
120
+ PatchUserByIDBody,
100
121
  QueryGrants200,
101
122
  QueryGrantsBody,
102
123
  QueryGrantsParams,
124
+ QueryIdps200,
125
+ QueryIdpsBody,
126
+ QueryIdpsParams,
103
127
  QueryProjects200,
104
128
  QueryProjectsBody,
105
129
  QuerySessions200,
@@ -113,10 +137,11 @@ import type {
113
137
  SetUserPasswordBody,
114
138
  SubmitFlowStep200,
115
139
  SubmitFlowStepBody,
116
- UpdateFlowDefinition200,
117
- UpdateFlowDefinitionBody,
118
140
  UpdateTeam200,
119
141
  UpdateTeamBody,
142
+ UpdateVariables200,
143
+ UpdateVariablesBody,
144
+ UpdateVariablesParams,
120
145
  VerifyChallengeProof200,
121
146
  VerifyChallengeProofBody,
122
147
  } from "../model";
@@ -205,9 +230,14 @@ export const getQueryUsersUrl = () => {
205
230
  /**
206
231
  * Returns the users of a project, paginated with a cursor.
207
232
 
208
- The project comes from the credential, not from a parameter: the operation
209
- is bound to the token's own project by construction. This is why it takes
210
- no `project_id`, unlike the other query endpoints.
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.
237
+
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).
211
241
 
212
242
  * @summary Query users
213
243
  */
@@ -253,6 +283,31 @@ export const getUserByID = async (
253
283
  });
254
284
  };
255
285
 
286
+ export const getPatchUserByIDUrl = (userId: string) => {
287
+ return `${getProxyPath()}/users/${userId}`;
288
+ };
289
+
290
+ /**
291
+ * 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
+
296
+ * @summary Update user by ID
297
+ */
298
+ export const patchUserByID = async (
299
+ userId: string,
300
+ patchUserByIDBody: PatchUserByIDBody,
301
+ options?: RequestInit,
302
+ ): Promise<PatchUserByID200> => {
303
+ return customFetch<PatchUserByID200>(getPatchUserByIDUrl(userId), {
304
+ ...options,
305
+ method: "PATCH",
306
+ headers: { "Content-Type": "application/json", ...options?.headers },
307
+ body: JSON.stringify(patchUserByIDBody),
308
+ });
309
+ };
310
+
256
311
  export const getDeleteUserByIDUrl = (userId: string) => {
257
312
  return `${getProxyPath()}/users/${userId}`;
258
313
  };
@@ -426,6 +481,66 @@ export const getMyUser = async (options?: RequestInit): Promise<GetMyUser200> =>
426
481
  });
427
482
  };
428
483
 
484
+ export const getPatchMyUserUrl = () => {
485
+ return `${getProxyPath()}/users/me`;
486
+ };
487
+
488
+ /**
489
+ * 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
+
493
+ * @summary Update my user information
494
+ */
495
+ export const patchMyUser = async (
496
+ patchMyUserBody: PatchMyUserBody,
497
+ options?: RequestInit,
498
+ ): Promise<PatchMyUser200> => {
499
+ return customFetch<PatchMyUser200>(getPatchMyUserUrl(), {
500
+ ...options,
501
+ method: "PATCH",
502
+ headers: { "Content-Type": "application/json", ...options?.headers },
503
+ body: JSON.stringify(patchMyUserBody),
504
+ });
505
+ };
506
+
507
+ export const getListMyProjectsUrl = (params?: ListMyProjectsParams) => {
508
+ const normalizedParams = new URLSearchParams();
509
+
510
+ Object.entries(params || {}).forEach(([key, value]) => {
511
+ if (value !== undefined) {
512
+ normalizedParams.append(key, value === null ? "null" : value.toString());
513
+ }
514
+ });
515
+
516
+ const stringifiedParams = normalizedParams.toString();
517
+
518
+ return stringifiedParams.length > 0
519
+ ? `${getProxyPath()}/users/me/projects?${stringifiedParams}`
520
+ : `${getProxyPath()}/users/me/projects`;
521
+ };
522
+
523
+ /**
524
+ * 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
+
532
+ * @summary List the projects I can act on
533
+ */
534
+ export const listMyProjects = async (
535
+ params?: ListMyProjectsParams,
536
+ options?: RequestInit,
537
+ ): Promise<ListMyProjects200> => {
538
+ return customFetch<ListMyProjects200>(getListMyProjectsUrl(params), {
539
+ ...options,
540
+ method: "GET",
541
+ });
542
+ };
543
+
429
544
  export const getCreateFlowUrl = () => {
430
545
  return `${getProxyPath()}/flow`;
431
546
  };
@@ -1270,47 +1385,6 @@ export const getFlowDefinition = async (
1270
1385
  });
1271
1386
  };
1272
1387
 
1273
- export const getUpdateFlowDefinitionUrl = (id: string) => {
1274
- return `${getProxyPath()}/flow_definitions/${id}`;
1275
- };
1276
-
1277
- /**
1278
- * Update a flow definition by id. This endpoint replaces the existing flow definition.
1279
- If `flow_definition.status` is omitted, the current status is preserved
1280
-
1281
- * @summary Update a flow definition by id
1282
- */
1283
- export const updateFlowDefinition = async (
1284
- id: string,
1285
- updateFlowDefinitionBody: UpdateFlowDefinitionBody,
1286
- options?: RequestInit,
1287
- ): Promise<UpdateFlowDefinition200> => {
1288
- return customFetch<UpdateFlowDefinition200>(getUpdateFlowDefinitionUrl(id), {
1289
- ...options,
1290
- method: "PUT",
1291
- headers: { "Content-Type": "application/json", ...options?.headers },
1292
- body: JSON.stringify(updateFlowDefinitionBody),
1293
- });
1294
- };
1295
-
1296
- export const getDeleteFlowDefinitionUrl = (id: string) => {
1297
- return `${getProxyPath()}/flow_definitions/${id}`;
1298
- };
1299
-
1300
- /**
1301
- * Delete a flow definition by id.
1302
- If the flow definition is currently being used by a flow, the deletion will fail.
1303
- If the flow definition is the last active flow definition for a given purpose, the deletion will fail to prevent disruption of new flows being started for that purpose.
1304
-
1305
- * @summary Delete a flow definition by id
1306
- */
1307
- export const deleteFlowDefinition = async (id: string, options?: RequestInit): Promise<void> => {
1308
- return customFetch<void>(getDeleteFlowDefinitionUrl(id), {
1309
- ...options,
1310
- method: "DELETE",
1311
- });
1312
- };
1313
-
1314
1388
  export const getCreateTeamUrl = (params: CreateTeamParams) => {
1315
1389
  const normalizedParams = new URLSearchParams();
1316
1390
 
@@ -1407,6 +1481,11 @@ users whose lifecycle it owns are deactivated with it.
1407
1481
  The request is idempotent. Deleting a team that is already deactivated
1408
1482
  or doesn't exist succeeds without changing anything.
1409
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
+
1410
1489
  * @summary Delete team
1411
1490
  */
1412
1491
  export const deleteTeam = async (teamId: string, options?: RequestInit): Promise<void> => {
@@ -1523,8 +1602,7 @@ export const getCreateBrandingUrl = (params: CreateBrandingParams) => {
1523
1602
  /**
1524
1603
  * Publishes a new immutable branding revision for the project. Branding
1525
1604
  revisions cannot be updated or deleted; every edit publishes a new
1526
- revision, and flow responses resolve the latest revision per project
1527
- (see ADR 040).
1605
+ revision, and flow responses resolve the latest revision per project.
1528
1606
 
1529
1607
  The `liquid_template` is validated lexically on save (size, encoding,
1530
1608
  banned patterns such as `<script>` tags, inline event handlers, and the
@@ -1565,9 +1643,9 @@ export const getListBrandingUrl = (params: ListBrandingParams) => {
1565
1643
  /**
1566
1644
  * Lists branding revisions for the project, newest first, capped at the
1567
1645
  100 most recent. The first entry is the revision flow responses
1568
- currently resolve. Deliberately unpaginated in v1 — list endpoints
1569
- gain a real query mechanism together (ADR 031); advertising pagination
1570
- parameters the server ignores would be worse than none.
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.
1571
1649
 
1572
1650
  * @summary List branding revisions
1573
1651
  */
@@ -1599,6 +1677,201 @@ export const getBrandingById = async (
1599
1677
  });
1600
1678
  };
1601
1679
 
1680
+ export const getCreateIdpUrl = (params: CreateIdpParams) => {
1681
+ const normalizedParams = new URLSearchParams();
1682
+
1683
+ Object.entries(params || {}).forEach(([key, value]) => {
1684
+ if (value !== undefined) {
1685
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1686
+ }
1687
+ });
1688
+
1689
+ const stringifiedParams = normalizedParams.toString();
1690
+
1691
+ return stringifiedParams.length > 0
1692
+ ? `${getProxyPath()}/idps?${stringifiedParams}`
1693
+ : `${getProxyPath()}/idps`;
1694
+ };
1695
+
1696
+ /**
1697
+ * 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
+
1720
+ * @summary Create or revise an identity provider connection
1721
+ */
1722
+ export const createIdp = async (
1723
+ createIdpBody: CreateIdpBody,
1724
+ params: CreateIdpParams,
1725
+ options?: RequestInit,
1726
+ ): Promise<CreateIdp200 | CreateIdp201> => {
1727
+ return customFetch<CreateIdp200 | CreateIdp201>(getCreateIdpUrl(params), {
1728
+ ...options,
1729
+ method: "POST",
1730
+ headers: { "Content-Type": "application/json", ...options?.headers },
1731
+ body: JSON.stringify(createIdpBody),
1732
+ });
1733
+ };
1734
+
1735
+ export const getQueryIdpsUrl = (params: QueryIdpsParams) => {
1736
+ const normalizedParams = new URLSearchParams();
1737
+
1738
+ Object.entries(params || {}).forEach(([key, value]) => {
1739
+ if (value !== undefined) {
1740
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1741
+ }
1742
+ });
1743
+
1744
+ const stringifiedParams = normalizedParams.toString();
1745
+
1746
+ return stringifiedParams.length > 0
1747
+ ? `${getProxyPath()}/idps/query?${stringifiedParams}`
1748
+ : `${getProxyPath()}/idps/query`;
1749
+ };
1750
+
1751
+ /**
1752
+ * Returns the identity provider connections of a project, paginated with a
1753
+ cursor. One row per connection, carrying its newest revision.
1754
+
1755
+ * @summary Query identity provider connections
1756
+ */
1757
+ export const queryIdps = async (
1758
+ queryIdpsBody: QueryIdpsBody,
1759
+ params: QueryIdpsParams,
1760
+ options?: RequestInit,
1761
+ ): Promise<QueryIdps200> => {
1762
+ return customFetch<QueryIdps200>(getQueryIdpsUrl(params), {
1763
+ ...options,
1764
+ method: "POST",
1765
+ headers: { "Content-Type": "application/json", ...options?.headers },
1766
+ body: JSON.stringify(queryIdpsBody),
1767
+ });
1768
+ };
1769
+
1770
+ export const getGetIdpByIdUrl = (id: string, params: GetIdpByIdParams) => {
1771
+ const normalizedParams = new URLSearchParams();
1772
+
1773
+ Object.entries(params || {}).forEach(([key, value]) => {
1774
+ if (value !== undefined) {
1775
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1776
+ }
1777
+ });
1778
+
1779
+ const stringifiedParams = normalizedParams.toString();
1780
+
1781
+ return stringifiedParams.length > 0
1782
+ ? `${getProxyPath()}/idps/${id}?${stringifiedParams}`
1783
+ : `${getProxyPath()}/idps/${id}`;
1784
+ };
1785
+
1786
+ /**
1787
+ * 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
+
1792
+ * @summary Get an identity provider connection by id
1793
+ */
1794
+ export const getIdpById = async (
1795
+ id: string,
1796
+ params: GetIdpByIdParams,
1797
+ options?: RequestInit,
1798
+ ): Promise<GetIdpById200> => {
1799
+ return customFetch<GetIdpById200>(getGetIdpByIdUrl(id, params), {
1800
+ ...options,
1801
+ method: "GET",
1802
+ });
1803
+ };
1804
+
1805
+ export const getListIdpRevisionsUrl = (id: string, params: ListIdpRevisionsParams) => {
1806
+ const normalizedParams = new URLSearchParams();
1807
+
1808
+ Object.entries(params || {}).forEach(([key, value]) => {
1809
+ if (value !== undefined) {
1810
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1811
+ }
1812
+ });
1813
+
1814
+ const stringifiedParams = normalizedParams.toString();
1815
+
1816
+ return stringifiedParams.length > 0
1817
+ ? `${getProxyPath()}/idps/${id}/revisions?${stringifiedParams}`
1818
+ : `${getProxyPath()}/idps/${id}/revisions`;
1819
+ };
1820
+
1821
+ /**
1822
+ * 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
+
1827
+ * @summary List the revisions of an identity provider connection
1828
+ */
1829
+ export const listIdpRevisions = async (
1830
+ id: string,
1831
+ params: ListIdpRevisionsParams,
1832
+ options?: RequestInit,
1833
+ ): Promise<ListIdpRevisions200> => {
1834
+ return customFetch<ListIdpRevisions200>(getListIdpRevisionsUrl(id, params), {
1835
+ ...options,
1836
+ method: "GET",
1837
+ });
1838
+ };
1839
+
1840
+ export const getGetIdpRevisionByIdUrl = (revisionId: string, params: GetIdpRevisionByIdParams) => {
1841
+ const normalizedParams = new URLSearchParams();
1842
+
1843
+ Object.entries(params || {}).forEach(([key, value]) => {
1844
+ if (value !== undefined) {
1845
+ normalizedParams.append(key, value === null ? "null" : value.toString());
1846
+ }
1847
+ });
1848
+
1849
+ const stringifiedParams = normalizedParams.toString();
1850
+
1851
+ return stringifiedParams.length > 0
1852
+ ? `${getProxyPath()}/idps/revisions/${revisionId}?${stringifiedParams}`
1853
+ : `${getProxyPath()}/idps/revisions/${revisionId}`;
1854
+ };
1855
+
1856
+ /**
1857
+ * 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
+
1862
+ * @summary Get one revision of an identity provider connection
1863
+ */
1864
+ export const getIdpRevisionById = async (
1865
+ revisionId: string,
1866
+ params: GetIdpRevisionByIdParams,
1867
+ options?: RequestInit,
1868
+ ): Promise<GetIdpRevisionById200> => {
1869
+ return customFetch<GetIdpRevisionById200>(getGetIdpRevisionByIdUrl(revisionId, params), {
1870
+ ...options,
1871
+ method: "GET",
1872
+ });
1873
+ };
1874
+
1602
1875
  export const getCreateReleaseUrl = (params: CreateReleaseParams) => {
1603
1876
  const normalizedParams = new URLSearchParams();
1604
1877
 
@@ -1741,10 +2014,23 @@ export const getCreateGrantUrl = (params: CreateGrantParams) => {
1741
2014
  /**
1742
2015
  * Bind a user or team to `project.viewer`, `project.editor`, or
1743
2016
  `project.admin` on the project identified by the `project-id` header.
1744
- IDs are `asgn_<opaque>`. Owning-team (`project.team`) grants are not
1745
- created here — claim owns that path. An unrevoked grant with the same
1746
- principal and relation occupies the unique key even after `expires_at`;
1747
- DELETE it before re-creating.
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).
1748
2034
 
1749
2035
  * @summary Create grant
1750
2036
  */
@@ -1752,8 +2038,8 @@ export const createGrant = async (
1752
2038
  createGrantBody: CreateGrantBody,
1753
2039
  params: CreateGrantParams,
1754
2040
  options?: RequestInit,
1755
- ): Promise<CreateGrant201> => {
1756
- return customFetch<CreateGrant201>(getCreateGrantUrl(params), {
2041
+ ): Promise<CreateGrant201 | void> => {
2042
+ return customFetch<CreateGrant201 | void>(getCreateGrantUrl(params), {
1757
2043
  ...options,
1758
2044
  method: "POST",
1759
2045
  headers: { "Content-Type": "application/json", ...options?.headers },
@@ -1784,10 +2070,16 @@ viewer, editor, or admin), including expired grants so a client can
1784
2070
  DELETE before re-granting. Project-secret setup (`sk_proj`) and
1785
2071
  owning-team (`relation=team`) rows are not returned. Grants are not in
1786
2072
  `resource_scope_index`; project scope is required on the query (same as
1787
- get). Requires `project.read`. `expand: ["principal"]` additionally
1788
- requires `user.read` and `team.read` (documented on the expand enum;
1789
- those scopes cannot be ANDed onto this security block because they are
1790
- body-conditional).
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).
1791
2083
 
1792
2084
  * @summary Query grants
1793
2085
  */
@@ -1829,6 +2121,14 @@ still ignores expired grants. Grants are not registered in
1829
2121
  `resource_scope_index`; project scope is required on the query (same as
1830
2122
  events). Misses, revoked rows, project-secret setup (`sk_proj`),
1831
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).
1832
2132
 
1833
2133
  * @summary Get grant
1834
2134
  */
@@ -1865,6 +2165,10 @@ Already-revoked, missing, project-secret setup, and owning-team grants
1865
2165
  return 404. The row is not un-revoked. Expired grants can still be
1866
2166
  revoked so the unique binding can be reused.
1867
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
+
1868
2172
  * @summary Revoke grant
1869
2173
  */
1870
2174
  export const deleteGrant = async (
@@ -1963,3 +2267,167 @@ export const getEvent = async (
1963
2267
  method: "GET",
1964
2268
  });
1965
2269
  };
2270
+
2271
+ export const getGetVariablesUrl = (params: GetVariablesParams) => {
2272
+ const normalizedParams = new URLSearchParams();
2273
+
2274
+ Object.entries(params || {}).forEach(([key, value]) => {
2275
+ if (value !== undefined) {
2276
+ normalizedParams.append(key, value === null ? "null" : value.toString());
2277
+ }
2278
+ });
2279
+
2280
+ const stringifiedParams = normalizedParams.toString();
2281
+
2282
+ return stringifiedParams.length > 0
2283
+ ? `${getProxyPath()}/variables?${stringifiedParams}`
2284
+ : `${getProxyPath()}/variables`;
2285
+ };
2286
+
2287
+ /**
2288
+ * 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
+
2299
+ * @summary Get variables
2300
+ */
2301
+ export const getVariables = async (
2302
+ params: GetVariablesParams,
2303
+ options?: RequestInit,
2304
+ ): Promise<GetVariables200> => {
2305
+ return customFetch<GetVariables200>(getGetVariablesUrl(params), {
2306
+ ...options,
2307
+ method: "GET",
2308
+ });
2309
+ };
2310
+
2311
+ export const getUpdateVariablesUrl = (params: UpdateVariablesParams) => {
2312
+ const normalizedParams = new URLSearchParams();
2313
+
2314
+ Object.entries(params || {}).forEach(([key, value]) => {
2315
+ if (value !== undefined) {
2316
+ normalizedParams.append(key, value === null ? "null" : value.toString());
2317
+ }
2318
+ });
2319
+
2320
+ const stringifiedParams = normalizedParams.toString();
2321
+
2322
+ return stringifiedParams.length > 0
2323
+ ? `${getProxyPath()}/variables?${stringifiedParams}`
2324
+ : `${getProxyPath()}/variables`;
2325
+ };
2326
+
2327
+ /**
2328
+ * 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
+
2346
+ * @summary Update variables
2347
+ */
2348
+ export const updateVariables = async (
2349
+ updateVariablesBody: UpdateVariablesBody,
2350
+ params: UpdateVariablesParams,
2351
+ options?: RequestInit,
2352
+ ): Promise<UpdateVariables200> => {
2353
+ return customFetch<UpdateVariables200>(getUpdateVariablesUrl(params), {
2354
+ ...options,
2355
+ method: "PATCH",
2356
+ headers: { "Content-Type": "application/json", ...options?.headers },
2357
+ body: JSON.stringify(updateVariablesBody),
2358
+ });
2359
+ };
2360
+
2361
+ export const getGetVariableUrl = (variableName: string, params: GetVariableParams) => {
2362
+ const normalizedParams = new URLSearchParams();
2363
+
2364
+ Object.entries(params || {}).forEach(([key, value]) => {
2365
+ if (value !== undefined) {
2366
+ normalizedParams.append(key, value === null ? "null" : value.toString());
2367
+ }
2368
+ });
2369
+
2370
+ const stringifiedParams = normalizedParams.toString();
2371
+
2372
+ return stringifiedParams.length > 0
2373
+ ? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}`
2374
+ : `${getProxyPath()}/variables/${variableName}`;
2375
+ };
2376
+
2377
+ /**
2378
+ * 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
+
2386
+ * @summary Get a variable
2387
+ */
2388
+ export const getVariable = async (
2389
+ variableName: string,
2390
+ params: GetVariableParams,
2391
+ options?: RequestInit,
2392
+ ): Promise<GetVariable200> => {
2393
+ return customFetch<GetVariable200>(getGetVariableUrl(variableName, params), {
2394
+ ...options,
2395
+ method: "GET",
2396
+ });
2397
+ };
2398
+
2399
+ export const getDeleteVariableUrl = (variableName: string, params: DeleteVariableParams) => {
2400
+ const normalizedParams = new URLSearchParams();
2401
+
2402
+ Object.entries(params || {}).forEach(([key, value]) => {
2403
+ if (value !== undefined) {
2404
+ normalizedParams.append(key, value === null ? "null" : value.toString());
2405
+ }
2406
+ });
2407
+
2408
+ const stringifiedParams = normalizedParams.toString();
2409
+
2410
+ return stringifiedParams.length > 0
2411
+ ? `${getProxyPath()}/variables/${variableName}?${stringifiedParams}`
2412
+ : `${getProxyPath()}/variables/${variableName}`;
2413
+ };
2414
+
2415
+ /**
2416
+ * 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
+
2422
+ * @summary Delete a variable
2423
+ */
2424
+ export const deleteVariable = async (
2425
+ variableName: string,
2426
+ params: DeleteVariableParams,
2427
+ options?: RequestInit,
2428
+ ): Promise<void> => {
2429
+ return customFetch<void>(getDeleteVariableUrl(variableName, params), {
2430
+ ...options,
2431
+ method: "DELETE",
2432
+ });
2433
+ };