@zitadel/api 0.1.0-alpha.17 → 0.1.0-alpha.19

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 (416) hide show
  1. package/README.md +38 -3
  2. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  3. package/dist/generated/endpoints/zitadelNextGen.mjs +384 -301
  4. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  5. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +34 -26
  6. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +5349 -623
  8. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +2967 -360
  10. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +2996 -413
  12. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  13. package/dist/generated/model/index.d.mts +2 -2
  14. package/dist/generated/model/index.mjs +167 -69
  15. package/dist/generated/model/index.mjs.map +1 -1
  16. package/dist/{index-C4jNq61U.d.mts → index-Dt_0fSH9.d.mts} +8284 -3183
  17. package/dist/index-Dt_0fSH9.d.mts.map +1 -0
  18. package/dist/runtime/api-factory.d.mts +2 -2
  19. package/dist/runtime/api-factory.d.mts.map +1 -1
  20. package/dist/runtime/api-factory.mjs +3 -2
  21. package/dist/runtime/api-factory.mjs.map +1 -1
  22. package/dist/runtime/config.d.mts +12 -0
  23. package/dist/runtime/config.d.mts.map +1 -1
  24. package/dist/runtime/config.mjs +8 -4
  25. package/dist/runtime/config.mjs.map +1 -1
  26. package/dist/zitadelNextGen-BkDpEAS9.d.mts +539 -0
  27. package/dist/zitadelNextGen-BkDpEAS9.d.mts.map +1 -0
  28. package/package.json +1 -1
  29. package/src/generated/endpoints/zitadelNextGen.msw.ts +5710 -731
  30. package/src/generated/endpoints/zitadelNextGen.ts +466 -440
  31. package/src/generated/endpoints/zitadelNextGen.zod.ts +5527 -1042
  32. package/src/generated/model/completeClaim200.ts +19 -0
  33. package/src/generated/model/{revokeSession404.ts → completeClaim400.ts} +3 -3
  34. package/src/generated/model/{getMyUserDefaultDetails.ts → completeClaim400Details.ts} +1 -1
  35. package/src/generated/model/completeClaim401.ts +24 -0
  36. package/src/generated/model/{revokeSession409.ts → completeClaim404.ts} +3 -3
  37. package/src/generated/model/{listUsersDefaultDetails.ts → completeClaim404Details.ts} +1 -1
  38. package/src/generated/model/completeClaim409.ts +26 -0
  39. package/src/generated/model/completeClaim409Details.ts +14 -0
  40. package/src/generated/model/completeClaim410.ts +24 -0
  41. package/src/generated/model/{authorizeGet400.ts → completeClaim429.ts} +3 -3
  42. package/src/generated/model/{revokeSession404Details.ts → completeClaim429Details.ts} +1 -1
  43. package/src/generated/model/completeClaimBody.ts +18 -0
  44. package/src/generated/model/completeClaimDefault.ts +20 -0
  45. package/src/generated/model/{createProjectDefaultDetails.ts → completeClaimDefaultDetails.ts} +1 -1
  46. package/src/generated/model/createAuthAttempt201.ts +2 -2
  47. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +2 -2
  48. package/src/generated/model/createAuthAttemptDefault.ts +30 -0
  49. package/src/generated/model/createBranding201.ts +31 -0
  50. package/src/generated/model/createBranding201Branding.ts +49 -0
  51. package/src/generated/model/createBranding201BrandingLayout.ts +22 -0
  52. package/src/generated/model/createBranding400.ts +20 -0
  53. package/src/generated/model/{createUserDefaultDetails.ts → createBranding400Details.ts} +1 -1
  54. package/src/generated/model/createBrandingBody.ts +49 -0
  55. package/src/generated/model/createBrandingBodyLayout.ts +22 -0
  56. package/src/generated/model/createBrandingDefault.ts +20 -0
  57. package/src/generated/model/{submitFlowStepDefaultDetails.ts → createBrandingDefaultDetails.ts} +1 -1
  58. package/src/generated/model/{setUserPasswordParams.ts → createBrandingParams.ts} +1 -1
  59. package/src/generated/model/createFlow201.ts +8 -3
  60. package/src/generated/model/createFlow201Branding.ts +23 -7
  61. package/src/generated/model/createFlow201BrandingLayout.ts +2 -1
  62. package/src/generated/model/createFlowDefault.ts +141 -12
  63. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +11 -0
  64. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +11 -0
  65. package/src/generated/model/createFlowDefinitionDefault.ts +101 -12
  66. package/src/generated/model/createHandoffDefault.ts +41 -1
  67. package/src/generated/model/createProject201.ts +4 -4
  68. package/src/generated/model/createProjectBody.ts +2 -2
  69. package/src/generated/model/createProjectDefault.ts +121 -12
  70. package/src/generated/model/createSchemaBody.ts +8 -34
  71. package/src/generated/model/createSession201Session.ts +3 -4
  72. package/src/generated/model/createSession201SessionState.ts +1 -3
  73. package/src/generated/model/createSessionDefault.ts +101 -12
  74. package/src/generated/model/createTeam201.ts +15 -1
  75. package/src/generated/model/createTeam201Status.ts +21 -0
  76. package/src/generated/model/{introspect400.ts → createTeam401.ts} +3 -3
  77. package/src/generated/model/{introspect400Details.ts → createTeam401Details.ts} +1 -1
  78. package/src/generated/model/{endSession400.ts → createTeam403.ts} +3 -3
  79. package/src/generated/model/{endSession400Details.ts → createTeam403Details.ts} +1 -1
  80. package/src/generated/model/createTeam404.ts +20 -0
  81. package/src/generated/model/createTeam404Details.ts +12 -0
  82. package/src/generated/model/createTeam409.ts +20 -0
  83. package/src/generated/model/createTeam409Details.ts +12 -0
  84. package/src/generated/model/createTeamBody.ts +8 -1
  85. package/src/generated/model/createUser201.ts +24 -4
  86. package/src/generated/model/createUser201Attributes.ts +14 -0
  87. package/src/generated/model/createUser201Metadata.ts +24 -0
  88. package/src/generated/model/createUser201MetadataStatus.ts +20 -0
  89. package/src/generated/model/createUser500.ts +20 -0
  90. package/src/generated/model/createUser500Details.ts +12 -0
  91. package/src/generated/model/createUserBody.ts +25 -5
  92. package/src/generated/model/createUserBodyAttributes.ts +14 -0
  93. package/src/generated/model/createUserDefault.ts +81 -12
  94. package/src/generated/model/deleteFlowDefinitionDefault.ts +81 -12
  95. package/src/generated/model/deleteTeam400.ts +20 -0
  96. package/src/generated/model/deleteTeam400Details.ts +12 -0
  97. package/src/generated/model/deleteTeam401.ts +20 -0
  98. package/src/generated/model/deleteTeam401Details.ts +12 -0
  99. package/src/generated/model/deleteTeam403.ts +20 -0
  100. package/src/generated/model/deleteTeam403Details.ts +12 -0
  101. package/src/generated/model/{endSessionDefault.ts → deleteTeamDefault.ts} +3 -3
  102. package/src/generated/model/{endSessionDefaultDetails.ts → deleteTeamDefaultDetails.ts} +1 -1
  103. package/src/generated/model/deleteUserByID401.ts +20 -0
  104. package/src/generated/model/{createFlowDefaultDetails.ts → deleteUserByID401Details.ts} +1 -1
  105. package/src/generated/model/deleteUserByID404.ts +20 -0
  106. package/src/generated/model/{getProjectDefaultDetails.ts → deleteUserByID404Details.ts} +1 -1
  107. package/src/generated/model/deleteUserByIDDefault.ts +69 -0
  108. package/src/generated/model/exchangeHandoff200Session.ts +3 -4
  109. package/src/generated/model/exchangeHandoff200SessionState.ts +1 -3
  110. package/src/generated/model/exchangeHandoffDefault.ts +151 -12
  111. package/src/generated/model/getAuthAttempt200.ts +2 -2
  112. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +2 -2
  113. package/src/generated/model/getAuthAttemptDefault.ts +20 -0
  114. package/src/generated/model/getBrandingById200.ts +31 -0
  115. package/src/generated/model/getBrandingById200Branding.ts +49 -0
  116. package/src/generated/model/getBrandingById200BrandingLayout.ts +22 -0
  117. package/src/generated/model/{authorizeDevice400.ts → getBrandingById404.ts} +3 -3
  118. package/src/generated/model/{getFlowStepDefaultDetails.ts → getBrandingById404Details.ts} +1 -1
  119. package/src/generated/model/{authorizeDeviceDefault.ts → getBrandingByIdDefault.ts} +3 -3
  120. package/src/generated/model/{exchangeHandoffDefaultDetails.ts → getBrandingByIdDefaultDetails.ts} +1 -1
  121. package/src/generated/model/getClaimStatus200.ts +31 -0
  122. package/src/generated/model/getClaimStatus401.ts +20 -0
  123. package/src/generated/model/getClaimStatus401Details.ts +12 -0
  124. package/src/generated/model/getClaimStatus403.ts +24 -0
  125. package/src/generated/model/getClaimStatus404.ts +20 -0
  126. package/src/generated/model/getClaimStatus404Details.ts +12 -0
  127. package/src/generated/model/getClaimStatus410.ts +24 -0
  128. package/src/generated/model/getClaimStatus429.ts +20 -0
  129. package/src/generated/model/getClaimStatus429Details.ts +12 -0
  130. package/src/generated/model/getClaimStatusDefault.ts +20 -0
  131. package/src/generated/model/{authorizeGet400Details.ts → getClaimStatusDefaultDetails.ts} +1 -1
  132. package/src/generated/model/{getFlowDefinitionParams.ts → getClaimStatusParams.ts} +4 -4
  133. package/src/generated/model/getEvent200.ts +1372 -0
  134. package/src/generated/model/{getKeys4xx.ts → getEvent401.ts} +3 -3
  135. package/src/generated/model/{getKeys4xxDetails.ts → getEvent401Details.ts} +1 -1
  136. package/src/generated/model/{getToken4xx.ts → getEvent403.ts} +3 -3
  137. package/src/generated/model/{getToken4xxDetails.ts → getEvent403Details.ts} +1 -1
  138. package/src/generated/model/getEvent404.ts +20 -0
  139. package/src/generated/model/getEvent404Details.ts +12 -0
  140. package/src/generated/model/{getTokenDefault.ts → getEventDefault.ts} +3 -3
  141. package/src/generated/model/{getMySession401Details.ts → getEventDefaultDetails.ts} +1 -1
  142. package/src/generated/model/{getTeamParams.ts → getEventParams.ts} +1 -1
  143. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +11 -0
  144. package/src/generated/model/getFlowDefinitionDefault.ts +71 -12
  145. package/src/generated/model/getFlowStep200.ts +8 -3
  146. package/src/generated/model/getFlowStep200Branding.ts +23 -7
  147. package/src/generated/model/getFlowStep200BrandingLayout.ts +2 -1
  148. package/src/generated/model/getFlowStepDefault.ts +111 -12
  149. package/src/generated/model/getMySession200.ts +3 -4
  150. package/src/generated/model/getMySession200State.ts +1 -3
  151. package/src/generated/model/getMySession401.ts +7 -3
  152. package/src/generated/model/getMySession404.ts +7 -3
  153. package/src/generated/model/getMySessionDefault.ts +21 -1
  154. package/src/generated/model/getMyUser200.ts +30 -1
  155. package/src/generated/model/getMyUser200Attributes.ts +14 -0
  156. package/src/generated/model/getMyUser200Metadata.ts +24 -0
  157. package/src/generated/model/getMyUser200MetadataStatus.ts +20 -0
  158. package/src/generated/model/getMyUserDefault.ts +51 -12
  159. package/src/generated/model/getProject200.ts +3 -3
  160. package/src/generated/model/getProjectDefault.ts +71 -12
  161. package/src/generated/model/getSchemaById200.ts +8 -34
  162. package/src/generated/model/getSchemaByIdParams.ts +0 -5
  163. package/src/generated/model/getSession200.ts +3 -4
  164. package/src/generated/model/getSession200State.ts +1 -3
  165. package/src/generated/model/getSession403.ts +20 -0
  166. package/src/generated/model/getSession403Details.ts +12 -0
  167. package/src/generated/model/getSessionDefault.ts +31 -1
  168. package/src/generated/model/getTeam200.ts +12 -3
  169. package/src/generated/model/getTeam200Status.ts +21 -0
  170. package/src/generated/model/getUserByID200.ts +30 -1
  171. package/src/generated/model/getUserByID200Attributes.ts +14 -0
  172. package/src/generated/model/getUserByID200Metadata.ts +24 -0
  173. package/src/generated/model/getUserByID200MetadataStatus.ts +20 -0
  174. package/src/generated/model/getUserByIDDefault.ts +51 -12
  175. package/src/generated/model/getUserByIDParams.ts +0 -5
  176. package/src/generated/model/index.ts +212 -133
  177. package/src/generated/model/initClaim201.ts +24 -0
  178. package/src/generated/model/initClaim401.ts +20 -0
  179. package/src/generated/model/initClaim401Details.ts +12 -0
  180. package/src/generated/model/initClaim404.ts +24 -0
  181. package/src/generated/model/{activateFlowDefinition400.ts → initClaim409.ts} +10 -4
  182. package/src/generated/model/{deactivateFlowDefinitionParams.ts → initClaim409Details.ts} +5 -6
  183. package/src/generated/model/initClaimDefault.ts +20 -0
  184. package/src/generated/model/{revokeSession409Details.ts → initClaimDefaultDetails.ts} +1 -1
  185. package/src/generated/model/issueChallenge201.ts +2 -2
  186. package/src/generated/model/issueChallengeDefault.ts +22 -2
  187. package/src/generated/model/{activateFlowDefinitionParams.ts → listBranding200Item.ts} +5 -6
  188. package/src/generated/model/{authorizeGetDefault.ts → listBrandingDefault.ts} +3 -3
  189. package/src/generated/model/{authorizeGetDefaultDetails.ts → listBrandingDefaultDetails.ts} +1 -1
  190. package/src/generated/model/{revokeSessionParams.ts → listBrandingParams.ts} +1 -1
  191. package/src/generated/model/listEvents200.ts +19 -0
  192. package/src/generated/model/listEvents200DataItem.ts +1372 -0
  193. package/src/generated/model/listEvents400.ts +20 -0
  194. package/src/generated/model/listEvents400Details.ts +12 -0
  195. package/src/generated/model/listEvents401.ts +20 -0
  196. package/src/generated/model/listEvents401Details.ts +12 -0
  197. package/src/generated/model/listEvents403.ts +20 -0
  198. package/src/generated/model/listEvents403Details.ts +12 -0
  199. package/src/generated/model/listEventsCategoryItem.ts +19 -0
  200. package/src/generated/model/{introspectDefault.ts → listEventsDefault.ts} +3 -3
  201. package/src/generated/model/listEventsDefaultDetails.ts +12 -0
  202. package/src/generated/model/{getMySession404Details.ts → listEventsOrder.ts} +6 -4
  203. package/src/generated/model/listEventsParams.ts +67 -0
  204. package/src/generated/model/listFlowDefinitionsDefault.ts +71 -12
  205. package/src/generated/model/listSchemas200Item.ts +1 -1
  206. package/src/generated/model/listUserPasskeys200.ts +19 -0
  207. package/src/generated/model/listUserPasskeys200PasskeysItem.ts +16 -0
  208. package/src/generated/model/listUserPasskeys400.ts +20 -0
  209. package/src/generated/model/{listSessionsDefaultDetails.ts → listUserPasskeys400Details.ts} +1 -1
  210. package/src/generated/model/listUserPasskeys401.ts +20 -0
  211. package/src/generated/model/{patchProjectDefaultDetails.ts → listUserPasskeys401Details.ts} +1 -1
  212. package/src/generated/model/listUserPasskeys403.ts +20 -0
  213. package/src/generated/model/{authorizeDevice400Details.ts → listUserPasskeys403Details.ts} +1 -1
  214. package/src/generated/model/listUserPasskeys404.ts +20 -0
  215. package/src/generated/model/listUserPasskeys404Details.ts +12 -0
  216. package/src/generated/model/listUserPasskeys500.ts +20 -0
  217. package/src/generated/model/listUserPasskeys500Details.ts +12 -0
  218. package/src/generated/model/listUserPasskeysDefault.ts +59 -0
  219. package/src/generated/model/{listSessionsParams.ts → listUserPasskeysParams.ts} +1 -16
  220. package/src/generated/model/listUserTeams200.ts +19 -0
  221. package/src/generated/model/listUserTeams200TeamsItem.ts +33 -0
  222. package/src/generated/model/listUserTeams200TeamsItemMembershipStatus.ts +21 -0
  223. package/src/generated/model/listUserTeams400.ts +20 -0
  224. package/src/generated/model/listUserTeams400Details.ts +12 -0
  225. package/src/generated/model/listUserTeams401.ts +20 -0
  226. package/src/generated/model/listUserTeams401Details.ts +12 -0
  227. package/src/generated/model/listUserTeams403.ts +20 -0
  228. package/src/generated/model/listUserTeams403Details.ts +12 -0
  229. package/src/generated/model/listUserTeams404.ts +20 -0
  230. package/src/generated/model/listUserTeams404Details.ts +12 -0
  231. package/src/generated/model/listUserTeams500.ts +20 -0
  232. package/src/generated/model/listUserTeams500Details.ts +12 -0
  233. package/src/generated/model/listUserTeamsDefault.ts +59 -0
  234. package/src/generated/model/listUserTeamsParams.ts +24 -0
  235. package/src/generated/model/listUsers200.ts +19 -0
  236. package/src/generated/model/listUsers200UsersItem.ts +38 -0
  237. package/src/generated/model/{getFlowDefinitionDefaultDetails.ts → listUsers200UsersItemAttributes.ts} +4 -2
  238. package/src/generated/model/listUsers200UsersItemMetadata.ts +24 -0
  239. package/src/generated/model/listUsers200UsersItemMetadataStatus.ts +20 -0
  240. package/src/generated/model/listUsersDefault.ts +51 -12
  241. package/src/generated/model/listUsersParams.ts +8 -5
  242. package/src/generated/model/patchProject200.ts +3 -3
  243. package/src/generated/model/patchProjectDefault.ts +81 -12
  244. package/src/generated/model/queryProjects200.ts +2 -1
  245. package/src/generated/model/queryProjects200ProjectsItem.ts +3 -3
  246. package/src/generated/model/queryProjectsBody.ts +4 -1
  247. package/src/generated/model/queryProjectsBodyFilterItem.ts +4 -0
  248. package/src/generated/model/queryProjectsBodyFilterItemField.ts +1 -2
  249. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +4 -0
  250. package/src/generated/model/queryProjectsBodySortingField.ts +1 -2
  251. package/src/generated/model/queryProjectsDefault.ts +71 -12
  252. package/src/generated/model/{listSessions200.ts → querySessions200.ts} +3 -3
  253. package/src/generated/model/{listSessions200SessionsItem.ts → querySessions200SessionsItem.ts} +12 -13
  254. package/src/generated/model/{listSessions200SessionsItemFactorsItem.ts → querySessions200SessionsItemFactorsItem.ts} +5 -5
  255. package/src/generated/model/{listSessions200SessionsItemFactorsItemMethod.ts → querySessions200SessionsItemFactorsItemMethod.ts} +3 -3
  256. package/src/generated/model/{listSessions200SessionsItemFactorsItemPayload.ts → querySessions200SessionsItemFactorsItemPayload.ts} +1 -1
  257. package/src/generated/model/{listSessions200SessionsItemMetadata.ts → querySessions200SessionsItemMetadata.ts} +1 -1
  258. package/src/generated/model/{listSessions200SessionsItemState.ts → querySessions200SessionsItemState.ts} +4 -6
  259. package/src/generated/model/{listSessions200SessionsItemUserAgent.ts → querySessions200SessionsItemUserAgent.ts} +1 -1
  260. package/src/generated/model/querySessions400.ts +20 -0
  261. package/src/generated/model/querySessions400Details.ts +12 -0
  262. package/src/generated/model/querySessions401.ts +20 -0
  263. package/src/generated/model/querySessions401Details.ts +12 -0
  264. package/src/generated/model/querySessions403.ts +20 -0
  265. package/src/generated/model/querySessions403Details.ts +12 -0
  266. package/src/generated/model/querySessionsBody.ts +25 -0
  267. package/src/generated/model/querySessionsBodyFilterItem.ts +32 -0
  268. package/src/generated/model/querySessionsBodyFilterItemField.ts +24 -0
  269. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +30 -0
  270. package/src/generated/model/querySessionsBodySorting.ts +18 -0
  271. package/src/generated/model/querySessionsBodySortingDirection.ts +15 -0
  272. package/src/generated/model/querySessionsBodySortingField.ts +21 -0
  273. package/src/generated/model/querySessionsDefault.ts +79 -0
  274. package/src/generated/model/querySessionsParams.ts +15 -0
  275. package/src/generated/model/queryTeams200.ts +20 -0
  276. package/src/generated/model/queryTeams200TeamsItem.ts +28 -0
  277. package/src/generated/model/queryTeams200TeamsItemStatus.ts +22 -0
  278. package/src/generated/model/queryTeams400.ts +20 -0
  279. package/src/generated/model/queryTeams400Details.ts +12 -0
  280. package/src/generated/model/queryTeams401.ts +20 -0
  281. package/src/generated/model/queryTeams401Details.ts +12 -0
  282. package/src/generated/model/queryTeams403.ts +20 -0
  283. package/src/generated/model/queryTeams403Details.ts +12 -0
  284. package/src/generated/model/queryTeams404.ts +20 -0
  285. package/src/generated/model/queryTeams404Details.ts +12 -0
  286. package/src/generated/model/queryTeams429.ts +20 -0
  287. package/src/generated/model/queryTeams429Details.ts +12 -0
  288. package/src/generated/model/queryTeamsBody.ts +28 -0
  289. package/src/generated/model/queryTeamsBodyFilterItem.ts +31 -0
  290. package/src/generated/model/queryTeamsBodyFilterItemField.ts +23 -0
  291. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +30 -0
  292. package/src/generated/model/queryTeamsBodySorting.ts +19 -0
  293. package/src/generated/model/queryTeamsBodySortingDirection.ts +15 -0
  294. package/src/generated/model/queryTeamsBodySortingField.ts +23 -0
  295. package/src/generated/model/queryTeamsDefault.ts +20 -0
  296. package/src/generated/model/queryTeamsDefaultDetails.ts +12 -0
  297. package/src/generated/model/{getSessionParams.ts → queryTeamsParams.ts} +1 -1
  298. package/src/generated/model/revokeMySession401.ts +7 -3
  299. package/src/generated/model/revokeMySessionDefault.ts +51 -12
  300. package/src/generated/model/revokeSession403.ts +20 -0
  301. package/src/generated/model/revokeSession403Details.ts +12 -0
  302. package/src/generated/model/revokeSessionDefault.ts +61 -12
  303. package/src/generated/model/setUserPasswordBody.ts +1 -1
  304. package/src/generated/model/setUserPasswordDefault.ts +71 -12
  305. package/src/generated/model/submitFlowStep200.ts +8 -3
  306. package/src/generated/model/submitFlowStep200Branding.ts +23 -7
  307. package/src/generated/model/submitFlowStep200BrandingLayout.ts +2 -1
  308. package/src/generated/model/submitFlowStep400.ts +8 -3
  309. package/src/generated/model/submitFlowStep400Branding.ts +23 -7
  310. package/src/generated/model/submitFlowStep400BrandingLayout.ts +2 -1
  311. package/src/generated/model/submitFlowStepDefault.ts +271 -12
  312. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemTransitions.ts +11 -0
  313. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +11 -0
  314. package/src/generated/model/updateFlowDefinitionDefault.ts +121 -12
  315. package/src/generated/model/updateTeam200.ts +28 -0
  316. package/src/generated/model/updateTeam200Status.ts +21 -0
  317. package/src/generated/model/updateTeam400.ts +20 -0
  318. package/src/generated/model/updateTeam400Details.ts +12 -0
  319. package/src/generated/model/updateTeam401.ts +20 -0
  320. package/src/generated/model/updateTeam401Details.ts +12 -0
  321. package/src/generated/model/updateTeam403.ts +20 -0
  322. package/src/generated/model/updateTeam403Details.ts +12 -0
  323. package/src/generated/model/updateTeam404.ts +20 -0
  324. package/src/generated/model/updateTeam404Details.ts +12 -0
  325. package/src/generated/model/updateTeam409.ts +20 -0
  326. package/src/generated/model/updateTeam409Details.ts +12 -0
  327. package/src/generated/model/{deleteFlowDefinitionParams.ts → updateTeamBody.ts} +5 -4
  328. package/src/generated/model/updateTeamDefault.ts +20 -0
  329. package/src/generated/model/updateTeamDefaultDetails.ts +12 -0
  330. package/src/generated/model/verifyChallengeProof200.ts +2 -2
  331. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +2 -2
  332. package/src/generated/model/verifyChallengeProofDefault.ts +44 -4
  333. package/src/runtime/api-factory.ts +5 -2
  334. package/src/runtime/config.spec.ts +31 -1
  335. package/src/runtime/config.ts +22 -3
  336. package/dist/index-C4jNq61U.d.mts.map +0 -1
  337. package/dist/zitadelNextGen-fcgWBw_N.d.mts +0 -450
  338. package/dist/zitadelNextGen-fcgWBw_N.d.mts.map +0 -1
  339. package/src/generated/model/activateFlowDefinition400Details.ts +0 -12
  340. package/src/generated/model/activateFlowDefinitionDefault.ts +0 -20
  341. package/src/generated/model/activateFlowDefinitionDefaultDetails.ts +0 -12
  342. package/src/generated/model/authorizeDevice200.ts +0 -30
  343. package/src/generated/model/authorizeDeviceDefaultDetails.ts +0 -12
  344. package/src/generated/model/authorizeDeviceParams.ts +0 -25
  345. package/src/generated/model/authorizeGetParams.ts +0 -136
  346. package/src/generated/model/createFlowDefinitionDefaultDetails.ts +0 -12
  347. package/src/generated/model/createSessionDefaultDetails.ts +0 -12
  348. package/src/generated/model/deactivateFlowDefinition400.ts +0 -20
  349. package/src/generated/model/deactivateFlowDefinition400Details.ts +0 -12
  350. package/src/generated/model/deactivateFlowDefinition409.ts +0 -20
  351. package/src/generated/model/deactivateFlowDefinition409Details.ts +0 -12
  352. package/src/generated/model/deactivateFlowDefinitionDefault.ts +0 -20
  353. package/src/generated/model/deactivateFlowDefinitionDefaultDetails.ts +0 -12
  354. package/src/generated/model/deleteFlowDefinitionDefaultDetails.ts +0 -12
  355. package/src/generated/model/endSessionParams.ts +0 -57
  356. package/src/generated/model/getKeys200.ts +0 -12
  357. package/src/generated/model/getKeys200KeysItem.ts +0 -30
  358. package/src/generated/model/getKeysDefault.ts +0 -20
  359. package/src/generated/model/getKeysDefaultDetails.ts +0 -12
  360. package/src/generated/model/getOpenIDConfiguration200.ts +0 -87
  361. package/src/generated/model/getOpenIDConfiguration200ClaimTypesSupportedItem.ts +0 -16
  362. package/src/generated/model/getOpenIDConfiguration200DisplayValuesSupportedItem.ts +0 -17
  363. package/src/generated/model/getOpenIDConfiguration200SubjectTypesSupportedItem.ts +0 -15
  364. package/src/generated/model/getOpenIDConfiguration200TokenEndpointAuthMethodsSupportedItem.ts +0 -17
  365. package/src/generated/model/getOpenIDConfiguration4xx.ts +0 -20
  366. package/src/generated/model/getOpenIDConfiguration4xxDetails.ts +0 -12
  367. package/src/generated/model/getOpenIDConfigurationDefault.ts +0 -20
  368. package/src/generated/model/getOpenIDConfigurationDefaultDetails.ts +0 -12
  369. package/src/generated/model/getToken200.ts +0 -18
  370. package/src/generated/model/getTokenBody.ts +0 -40
  371. package/src/generated/model/getTokenBodyGrantType.ts +0 -20
  372. package/src/generated/model/getTokenDefaultDetails.ts +0 -12
  373. package/src/generated/model/getUserByIDDefaultDetails.ts +0 -12
  374. package/src/generated/model/getUserInfo200.ts +0 -24
  375. package/src/generated/model/getUserInfo4xx.ts +0 -20
  376. package/src/generated/model/getUserInfo4xxDetails.ts +0 -12
  377. package/src/generated/model/getUserInfoDefault.ts +0 -20
  378. package/src/generated/model/getUserInfoDefaultDetails.ts +0 -12
  379. package/src/generated/model/introspect200.ts +0 -34
  380. package/src/generated/model/introspectBody.ts +0 -14
  381. package/src/generated/model/introspectDefaultDetails.ts +0 -12
  382. package/src/generated/model/listFlowDefinitionsDefaultDetails.ts +0 -12
  383. package/src/generated/model/listSessions400.ts +0 -20
  384. package/src/generated/model/listSessions400Details.ts +0 -12
  385. package/src/generated/model/listSessions401.ts +0 -20
  386. package/src/generated/model/listSessions401Details.ts +0 -12
  387. package/src/generated/model/listSessions403.ts +0 -20
  388. package/src/generated/model/listSessions403Details.ts +0 -12
  389. package/src/generated/model/listSessionsDefault.ts +0 -20
  390. package/src/generated/model/listSessionsState.ts +0 -16
  391. package/src/generated/model/listUsers200Item.ts +0 -9
  392. package/src/generated/model/queryProjectsDefaultDetails.ts +0 -12
  393. package/src/generated/model/revokeMySession401Details.ts +0 -12
  394. package/src/generated/model/revokeMySession404.ts +0 -20
  395. package/src/generated/model/revokeMySession404Details.ts +0 -12
  396. package/src/generated/model/revokeMySession409.ts +0 -20
  397. package/src/generated/model/revokeMySession409Details.ts +0 -12
  398. package/src/generated/model/revokeMySessionDefaultDetails.ts +0 -12
  399. package/src/generated/model/revokeSessionDefaultDetails.ts +0 -12
  400. package/src/generated/model/revokeToken4xx.ts +0 -20
  401. package/src/generated/model/revokeToken4xxDetails.ts +0 -12
  402. package/src/generated/model/revokeTokenBody.ts +0 -14
  403. package/src/generated/model/revokeTokenDefault.ts +0 -20
  404. package/src/generated/model/revokeTokenDefaultDetails.ts +0 -12
  405. package/src/generated/model/setUserPasswordDefaultDetails.ts +0 -12
  406. package/src/generated/model/submitFlowEvent400.ts +0 -20
  407. package/src/generated/model/submitFlowEvent400Details.ts +0 -12
  408. package/src/generated/model/submitFlowEvent404.ts +0 -20
  409. package/src/generated/model/submitFlowEvent404Details.ts +0 -12
  410. package/src/generated/model/submitFlowEventBody.ts +0 -17
  411. package/src/generated/model/submitFlowEventBodyPayload.ts +0 -12
  412. package/src/generated/model/submitFlowEventBodyType.ts +0 -15
  413. package/src/generated/model/submitFlowEventDefault.ts +0 -20
  414. package/src/generated/model/submitFlowEventDefaultDetails.ts +0 -12
  415. package/src/generated/model/updateFlowDefinitionDefaultDetails.ts +0 -12
  416. package/src/generated/model/updateFlowDefinitionParams.ts +0 -15
@@ -10,10 +10,9 @@ import { customFetch } from "../../runtime/fetch.mjs";
10
10
  * OpenAPI spec version: 0.0.1
11
11
  */
12
12
  var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
13
- activateFlowDefinition: () => activateFlowDefinition,
14
- authorizeDevice: () => authorizeDevice,
15
- authorizeGet: () => authorizeGet,
13
+ completeClaim: () => completeClaim,
16
14
  createAuthAttempt: () => createAuthAttempt,
15
+ createBranding: () => createBranding,
17
16
  createFlow: () => createFlow,
18
17
  createFlowDefinition: () => createFlowDefinition,
19
18
  createHandoff: () => createHandoff,
@@ -22,15 +21,16 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
22
21
  createSession: () => createSession,
23
22
  createTeam: () => createTeam,
24
23
  createUser: () => createUser,
25
- deactivateFlowDefinition: () => deactivateFlowDefinition,
26
24
  deleteFlowDefinition: () => deleteFlowDefinition,
27
- endSession: () => endSession,
25
+ deleteTeam: () => deleteTeam,
26
+ deleteUserByID: () => deleteUserByID,
28
27
  exchangeHandoff: () => exchangeHandoff,
29
- getActivateFlowDefinitionUrl: () => getActivateFlowDefinitionUrl,
30
28
  getAuthAttempt: () => getAuthAttempt,
31
- getAuthorizeDeviceUrl: () => getAuthorizeDeviceUrl,
32
- getAuthorizeGetUrl: () => getAuthorizeGetUrl,
29
+ getBrandingById: () => getBrandingById,
30
+ getClaimStatus: () => getClaimStatus,
31
+ getCompleteClaimUrl: () => getCompleteClaimUrl,
33
32
  getCreateAuthAttemptUrl: () => getCreateAuthAttemptUrl,
33
+ getCreateBrandingUrl: () => getCreateBrandingUrl,
34
34
  getCreateFlowDefinitionUrl: () => getCreateFlowDefinitionUrl,
35
35
  getCreateFlowUrl: () => getCreateFlowUrl,
36
36
  getCreateHandoffUrl: () => getCreateHandoffUrl,
@@ -39,230 +39,80 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
39
39
  getCreateSessionUrl: () => getCreateSessionUrl,
40
40
  getCreateTeamUrl: () => getCreateTeamUrl,
41
41
  getCreateUserUrl: () => getCreateUserUrl,
42
- getDeactivateFlowDefinitionUrl: () => getDeactivateFlowDefinitionUrl,
43
42
  getDeleteFlowDefinitionUrl: () => getDeleteFlowDefinitionUrl,
44
- getEndSessionUrl: () => getEndSessionUrl,
43
+ getDeleteTeamUrl: () => getDeleteTeamUrl,
44
+ getDeleteUserByIDUrl: () => getDeleteUserByIDUrl,
45
+ getEvent: () => getEvent,
45
46
  getExchangeHandoffUrl: () => getExchangeHandoffUrl,
46
47
  getFlowDefinition: () => getFlowDefinition,
47
48
  getFlowStep: () => getFlowStep,
48
49
  getGetAuthAttemptUrl: () => getGetAuthAttemptUrl,
50
+ getGetBrandingByIdUrl: () => getGetBrandingByIdUrl,
51
+ getGetClaimStatusUrl: () => getGetClaimStatusUrl,
52
+ getGetEventUrl: () => getGetEventUrl,
49
53
  getGetFlowDefinitionUrl: () => getGetFlowDefinitionUrl,
50
54
  getGetFlowStepUrl: () => getGetFlowStepUrl,
51
55
  getGetHealthUrl: () => getGetHealthUrl,
52
- getGetKeysUrl: () => getGetKeysUrl,
53
56
  getGetLiveUrl: () => getGetLiveUrl,
54
57
  getGetMySessionUrl: () => getGetMySessionUrl,
55
58
  getGetMyUserUrl: () => getGetMyUserUrl,
56
- getGetOpenIDConfigurationUrl: () => getGetOpenIDConfigurationUrl,
57
59
  getGetProjectUrl: () => getGetProjectUrl,
58
60
  getGetReadyUrl: () => getGetReadyUrl,
59
61
  getGetSchemaByIdUrl: () => getGetSchemaByIdUrl,
60
62
  getGetSessionUrl: () => getGetSessionUrl,
61
63
  getGetTeamUrl: () => getGetTeamUrl,
62
- getGetTokenUrl: () => getGetTokenUrl,
63
64
  getGetUserByIDUrl: () => getGetUserByIDUrl,
64
- getGetUserInfoUrl: () => getGetUserInfoUrl,
65
65
  getHealth: () => getHealth,
66
- getIntrospectUrl: () => getIntrospectUrl,
66
+ getInitClaimUrl: () => getInitClaimUrl,
67
67
  getIssueChallengeUrl: () => getIssueChallengeUrl,
68
- getKeys: () => getKeys,
68
+ getListBrandingUrl: () => getListBrandingUrl,
69
+ getListEventsUrl: () => getListEventsUrl,
69
70
  getListFlowDefinitionsUrl: () => getListFlowDefinitionsUrl,
70
71
  getListSchemasUrl: () => getListSchemasUrl,
71
- getListSessionsUrl: () => getListSessionsUrl,
72
+ getListUserPasskeysUrl: () => getListUserPasskeysUrl,
73
+ getListUserTeamsUrl: () => getListUserTeamsUrl,
72
74
  getListUsersUrl: () => getListUsersUrl,
73
75
  getLive: () => getLive,
74
76
  getMySession: () => getMySession,
75
77
  getMyUser: () => getMyUser,
76
- getOpenIDConfiguration: () => getOpenIDConfiguration,
77
78
  getPatchProjectUrl: () => getPatchProjectUrl,
78
79
  getProject: () => getProject,
79
80
  getQueryProjectsUrl: () => getQueryProjectsUrl,
81
+ getQuerySessionsUrl: () => getQuerySessionsUrl,
82
+ getQueryTeamsUrl: () => getQueryTeamsUrl,
80
83
  getReady: () => getReady,
81
84
  getRevokeMySessionUrl: () => getRevokeMySessionUrl,
82
85
  getRevokeSessionUrl: () => getRevokeSessionUrl,
83
- getRevokeTokenUrl: () => getRevokeTokenUrl,
84
86
  getSchemaById: () => getSchemaById,
85
87
  getSession: () => getSession,
86
88
  getSetUserPasswordUrl: () => getSetUserPasswordUrl,
87
- getSubmitFlowEventUrl: () => getSubmitFlowEventUrl,
88
89
  getSubmitFlowStepUrl: () => getSubmitFlowStepUrl,
89
90
  getTeam: () => getTeam,
90
- getToken: () => getToken,
91
91
  getUpdateFlowDefinitionUrl: () => getUpdateFlowDefinitionUrl,
92
+ getUpdateTeamUrl: () => getUpdateTeamUrl,
92
93
  getUserByID: () => getUserByID,
93
- getUserInfo: () => getUserInfo,
94
94
  getVerifyChallengeProofUrl: () => getVerifyChallengeProofUrl,
95
- introspect: () => introspect,
95
+ initClaim: () => initClaim,
96
96
  issueChallenge: () => issueChallenge,
97
+ listBranding: () => listBranding,
98
+ listEvents: () => listEvents,
97
99
  listFlowDefinitions: () => listFlowDefinitions,
98
100
  listSchemas: () => listSchemas,
99
- listSessions: () => listSessions,
101
+ listUserPasskeys: () => listUserPasskeys,
102
+ listUserTeams: () => listUserTeams,
100
103
  listUsers: () => listUsers,
101
104
  patchProject: () => patchProject,
102
105
  queryProjects: () => queryProjects,
106
+ querySessions: () => querySessions,
107
+ queryTeams: () => queryTeams,
103
108
  revokeMySession: () => revokeMySession,
104
109
  revokeSession: () => revokeSession,
105
- revokeToken: () => revokeToken,
106
110
  setUserPassword: () => setUserPassword,
107
- submitFlowEvent: () => submitFlowEvent,
108
111
  submitFlowStep: () => submitFlowStep,
109
112
  updateFlowDefinition: () => updateFlowDefinition,
113
+ updateTeam: () => updateTeam,
110
114
  verifyChallengeProof: () => verifyChallengeProof
111
115
  });
112
- const getGetOpenIDConfigurationUrl = () => {
113
- return `${getProxyPath()}/.well-known/openid-configuration`;
114
- };
115
- /**
116
- * Retrieve the OpenID Connect configuration
117
- * @summary Get OpenID Connect configuration
118
- */
119
- const getOpenIDConfiguration = async (options) => {
120
- return customFetch(getGetOpenIDConfigurationUrl(), {
121
- ...options,
122
- method: "GET"
123
- });
124
- };
125
- const getAuthorizeGetUrl = (params) => {
126
- const normalizedParams = new URLSearchParams();
127
- Object.entries(params || {}).forEach(([key, value]) => {
128
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
129
- });
130
- const stringifiedParams = normalizedParams.toString();
131
- return stringifiedParams.length > 0 ? `${getProxyPath()}/auth/authorize?${stringifiedParams}` : `${getProxyPath()}/auth/authorize`;
132
- };
133
- /**
134
- * @summary Authorize a user
135
- */
136
- const authorizeGet = async (params, options) => {
137
- return customFetch(getAuthorizeGetUrl(params), {
138
- ...options,
139
- method: "GET"
140
- });
141
- };
142
- const getAuthorizeDeviceUrl = (params) => {
143
- const normalizedParams = new URLSearchParams();
144
- Object.entries(params || {}).forEach(([key, value]) => {
145
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
146
- });
147
- const stringifiedParams = normalizedParams.toString();
148
- return stringifiedParams.length > 0 ? `${getProxyPath()}/auth/device-authorization?${stringifiedParams}` : `${getProxyPath()}/auth/device-authorization`;
149
- };
150
- /**
151
- * @summary Authorize a device
152
- */
153
- const authorizeDevice = async (params, options) => {
154
- return customFetch(getAuthorizeDeviceUrl(params), {
155
- ...options,
156
- method: "GET"
157
- });
158
- };
159
- const getEndSessionUrl = (params) => {
160
- const normalizedParams = new URLSearchParams();
161
- Object.entries(params || {}).forEach(([key, value]) => {
162
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
163
- });
164
- const stringifiedParams = normalizedParams.toString();
165
- return stringifiedParams.length > 0 ? `${getProxyPath()}/auth/end-session?${stringifiedParams}` : `${getProxyPath()}/auth/end-session`;
166
- };
167
- /**
168
- * @summary End a session
169
- */
170
- const endSession = async (params, options) => {
171
- return customFetch(getEndSessionUrl(params), {
172
- ...options,
173
- method: "GET"
174
- });
175
- };
176
- const getIntrospectUrl = () => {
177
- return `${getProxyPath()}/auth/introspect`;
178
- };
179
- /**
180
- * @summary Introspect a token
181
- */
182
- const introspect = async (introspectBody, options) => {
183
- const formUrlEncoded = new URLSearchParams();
184
- formUrlEncoded.append(`token`, introspectBody.token);
185
- if (introspectBody.token_type_hint !== void 0) formUrlEncoded.append(`token_type_hint`, introspectBody.token_type_hint);
186
- return customFetch(getIntrospectUrl(), {
187
- ...options,
188
- method: "POST",
189
- headers: {
190
- "Content-Type": "application/x-www-form-urlencoded",
191
- ...options?.headers
192
- },
193
- body: formUrlEncoded
194
- });
195
- };
196
- const getGetKeysUrl = () => {
197
- return `${getProxyPath()}/auth/keys`;
198
- };
199
- /**
200
- * @summary Get public keys
201
- */
202
- const getKeys = async (options) => {
203
- return customFetch(getGetKeysUrl(), {
204
- ...options,
205
- method: "GET"
206
- });
207
- };
208
- const getRevokeTokenUrl = () => {
209
- return `${getProxyPath()}/auth/revoke`;
210
- };
211
- /**
212
- * @summary Revoke an access token or refresh token
213
- */
214
- const revokeToken = async (revokeTokenBody, options) => {
215
- const formUrlEncoded = new URLSearchParams();
216
- if (revokeTokenBody.token !== void 0) formUrlEncoded.append(`token`, revokeTokenBody.token);
217
- if (revokeTokenBody.token_type_hint !== void 0) formUrlEncoded.append(`token_type_hint`, revokeTokenBody.token_type_hint);
218
- return customFetch(getRevokeTokenUrl(), {
219
- ...options,
220
- method: "POST",
221
- headers: {
222
- "Content-Type": "application/x-www-form-urlencoded",
223
- ...options?.headers
224
- },
225
- body: formUrlEncoded
226
- });
227
- };
228
- const getGetTokenUrl = () => {
229
- return `${getProxyPath()}/auth/token`;
230
- };
231
- /**
232
- * @summary Get access token
233
- */
234
- const getToken = async (getTokenBody, options) => {
235
- const formUrlEncoded = new URLSearchParams();
236
- if (getTokenBody.code !== void 0) formUrlEncoded.append(`code`, getTokenBody.code);
237
- if (getTokenBody.client_assertion !== void 0) formUrlEncoded.append(`client_assertion`, getTokenBody.client_assertion);
238
- if (getTokenBody.client_assertion_type !== void 0) formUrlEncoded.append(`client_assertion_type`, getTokenBody.client_assertion_type);
239
- if (getTokenBody.client_id !== void 0) formUrlEncoded.append(`client_id`, getTokenBody.client_id);
240
- if (getTokenBody.client_secret !== void 0) formUrlEncoded.append(`client_secret`, getTokenBody.client_secret);
241
- if (getTokenBody.code_verifier !== void 0) formUrlEncoded.append(`code_verifier`, getTokenBody.code_verifier);
242
- if (getTokenBody.grant_type !== void 0) formUrlEncoded.append(`grant_type`, getTokenBody.grant_type);
243
- if (getTokenBody.redirect_uri !== void 0) formUrlEncoded.append(`redirect_uri`, getTokenBody.redirect_uri);
244
- return customFetch(getGetTokenUrl(), {
245
- ...options,
246
- method: "POST",
247
- headers: {
248
- "Content-Type": "application/x-www-form-urlencoded",
249
- ...options?.headers
250
- },
251
- body: formUrlEncoded
252
- });
253
- };
254
- const getGetUserInfoUrl = () => {
255
- return `${getProxyPath()}/auth/userinfo`;
256
- };
257
- /**
258
- * @summary Get user info
259
- */
260
- const getUserInfo = async (options) => {
261
- return customFetch(getGetUserInfoUrl(), {
262
- ...options,
263
- method: "GET"
264
- });
265
- };
266
116
  const getGetHealthUrl = () => {
267
117
  return `${getProxyPath()}/healthz`;
268
118
  };
@@ -358,19 +208,43 @@ const getUserByID = async (userId, params, options) => {
358
208
  method: "GET"
359
209
  });
360
210
  };
361
- const getSetUserPasswordUrl = (userId, params) => {
211
+ const getDeleteUserByIDUrl = (userId) => {
212
+ return `${getProxyPath()}/users/${userId}`;
213
+ };
214
+ /**
215
+ * @summary Delete user by ID
216
+ */
217
+ const deleteUserByID = async (userId, options) => {
218
+ return customFetch(getDeleteUserByIDUrl(userId), {
219
+ ...options,
220
+ method: "DELETE"
221
+ });
222
+ };
223
+ const getListUserPasskeysUrl = (userId, params) => {
362
224
  const normalizedParams = new URLSearchParams();
363
225
  Object.entries(params || {}).forEach(([key, value]) => {
364
226
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
365
227
  });
366
228
  const stringifiedParams = normalizedParams.toString();
367
- return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/password?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/password`;
229
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/passkeys?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/passkeys`;
230
+ };
231
+ /**
232
+ * @summary List user passkeys
233
+ */
234
+ const listUserPasskeys = async (userId, params, options) => {
235
+ return customFetch(getListUserPasskeysUrl(userId, params), {
236
+ ...options,
237
+ method: "GET"
238
+ });
239
+ };
240
+ const getSetUserPasswordUrl = (userId) => {
241
+ return `${getProxyPath()}/users/${userId}/password`;
368
242
  };
369
243
  /**
370
244
  * @summary Set user password
371
245
  */
372
- const setUserPassword = async (userId, setUserPasswordBody, params, options) => {
373
- return customFetch(getSetUserPasswordUrl(userId, params), {
246
+ const setUserPassword = async (userId, setUserPasswordBody, options) => {
247
+ return customFetch(getSetUserPasswordUrl(userId), {
374
248
  ...options,
375
249
  method: "PUT",
376
250
  headers: {
@@ -380,6 +254,31 @@ const setUserPassword = async (userId, setUserPasswordBody, params, options) =>
380
254
  body: JSON.stringify(setUserPasswordBody)
381
255
  });
382
256
  };
257
+ const getListUserTeamsUrl = (userId, params) => {
258
+ const normalizedParams = new URLSearchParams();
259
+ Object.entries(params || {}).forEach(([key, value]) => {
260
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
261
+ });
262
+ const stringifiedParams = normalizedParams.toString();
263
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/users/${userId}/teams?${stringifiedParams}` : `${getProxyPath()}/users/${userId}/teams`;
264
+ };
265
+ /**
266
+ * The user's team roster, ordered by team name. Each entry carries the
267
+ team's name, so a client renders a page without resolving ids one by one.
268
+
269
+ This is the N:N roster and it is not lifecycle ownership: the single team
270
+ that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
271
+ on the user read endpoints. Memberships the user was removed from are not
272
+ returned.
273
+
274
+ * @summary List the teams a user belongs to
275
+ */
276
+ const listUserTeams = async (userId, params, options) => {
277
+ return customFetch(getListUserTeamsUrl(userId, params), {
278
+ ...options,
279
+ method: "GET"
280
+ });
281
+ };
383
282
  const getGetMyUserUrl = () => {
384
283
  return `${getProxyPath()}/users/me`;
385
284
  };
@@ -401,7 +300,7 @@ the first capability step. Creates a new session implicitly unless
401
300
  `session_id` is provided (for step-up / reauth on an existing session).
402
301
 
403
302
  The response contains an `id` field — the flow handle. Use it as the path
404
- parameter for all subsequent `/flow/{id}/submit` and `/flow/{id}/event` calls.
303
+ parameter for all subsequent `/flow/{id}/submit` calls.
405
304
 
406
305
  The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
407
306
  the flow's orchestration state (current step, collected data, history).
@@ -481,26 +380,6 @@ const submitFlowStep = async (id, submitFlowStepBody, options) => {
481
380
  body: JSON.stringify(submitFlowStepBody)
482
381
  });
483
382
  };
484
- const getSubmitFlowEventUrl = (id) => {
485
- return `${getProxyPath()}/flow/${id}/event`;
486
- };
487
- /**
488
- * Submits telemetry or fingerprint data from the frontend.
489
- Does not advance the state machine. Used for risk evaluation.
490
-
491
- * @summary Submit client-side event
492
- */
493
- const submitFlowEvent = async (id, submitFlowEventBody, options) => {
494
- return customFetch(getSubmitFlowEventUrl(id), {
495
- ...options,
496
- method: "POST",
497
- headers: {
498
- "Content-Type": "application/json",
499
- ...options?.headers
500
- },
501
- body: JSON.stringify(submitFlowEventBody)
502
- });
503
- };
504
383
  const getCreateAuthAttemptUrl = () => {
505
384
  return `${getProxyPath()}/auth_attempts`;
506
385
  };
@@ -688,6 +567,68 @@ const patchProject = async (projectId, patchProjectBody, options) => {
688
567
  body: JSON.stringify(patchProjectBody)
689
568
  });
690
569
  };
570
+ const getInitClaimUrl = (projectId) => {
571
+ return `${getProxyPath()}/projects/${projectId}/claim/init`;
572
+ };
573
+ /**
574
+ * Starts a claim challenge for an unclaimed project. Authenticated by the
575
+ project secret, this mints a single-use, short-lived challenge and returns
576
+ the `claim_url` the developer opens in a browser to complete the claim,
577
+ together with the `challenge_id` the CLI polls with. The exact expiry is
578
+ carried by `expires_at` on the response.
579
+
580
+ * @summary Initialize a project claim
581
+ */
582
+ const initClaim = async (projectId, options) => {
583
+ return customFetch(getInitClaimUrl(projectId), {
584
+ ...options,
585
+ method: "POST"
586
+ });
587
+ };
588
+ const getGetClaimStatusUrl = (projectId, params) => {
589
+ const normalizedParams = new URLSearchParams();
590
+ Object.entries(params || {}).forEach(([key, value]) => {
591
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
592
+ });
593
+ const stringifiedParams = normalizedParams.toString();
594
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/projects/${projectId}/claim/status?${stringifiedParams}` : `${getProxyPath()}/projects/${projectId}/claim/status`;
595
+ };
596
+ /**
597
+ * Polled by the CLI while a browser completes the claim. Authorized by the
598
+ project secret that initiated the challenge. Returns `pending`, or
599
+ `completed` with the owning team, the claim timestamp, and the dashboard
600
+ URL once the browser leg has finished.
601
+
602
+ * @summary Get claim status
603
+ */
604
+ const getClaimStatus = async (projectId, params, options) => {
605
+ return customFetch(getGetClaimStatusUrl(projectId, params), {
606
+ ...options,
607
+ method: "GET"
608
+ });
609
+ };
610
+ const getCompleteClaimUrl = (projectId) => {
611
+ return `${getProxyPath()}/projects/${projectId}/claim/complete`;
612
+ };
613
+ /**
614
+ * Called by the browser after the developer authenticates on the claim page.
615
+ Authenticated by the `__nextgen_session` cookie, it attaches the project to
616
+ the developer's personal team using the `challenge_id` from the claim URL as
617
+ its single-use, browser-safe authorization.
618
+
619
+ * @summary Complete a project claim
620
+ */
621
+ const completeClaim = async (projectId, completeClaimBody, options) => {
622
+ return customFetch(getCompleteClaimUrl(projectId), {
623
+ ...options,
624
+ method: "POST",
625
+ headers: {
626
+ "Content-Type": "application/json",
627
+ ...options?.headers
628
+ },
629
+ body: JSON.stringify(completeClaimBody)
630
+ });
631
+ };
691
632
  const getCreateSessionUrl = () => {
692
633
  return `${getProxyPath()}/sessions`;
693
634
  };
@@ -700,8 +641,16 @@ Use this explicitly when you want to:
700
641
  can be correlated with the eventual authenticated session from the start.
701
642
  - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
702
643
 
703
- The returned `session_token` authorises GET and DELETE on this session.
704
- It is superseded when a handoff exchange completes — clients must replace it at that point.
644
+ Creating a session is an app-plane operation on the project credential
645
+ (`session.write`). The returned `session_token` is a session credential for the
646
+ end-user client, not a management scope: it is delivered as the
647
+ `__nextgen_session` cookie and authorises the self-service operations
648
+ `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
649
+ by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
650
+ are operator endpoints and require `session.read` / `session.delete` instead.
651
+
652
+ The `session_token` is superseded when a handoff exchange completes — clients must
653
+ replace it at that point.
705
654
 
706
655
  Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
707
656
  full session TTL when the first authentication factor is written via a completing `auth_attempt`.
@@ -719,24 +668,30 @@ const createSession = async (createSessionBody, options) => {
719
668
  body: JSON.stringify(createSessionBody)
720
669
  });
721
670
  };
722
- const getListSessionsUrl = (params) => {
671
+ const getQuerySessionsUrl = (params) => {
723
672
  const normalizedParams = new URLSearchParams();
724
673
  Object.entries(params || {}).forEach(([key, value]) => {
725
674
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
726
675
  });
727
676
  const stringifiedParams = normalizedParams.toString();
728
- return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions?${stringifiedParams}` : `${getProxyPath()}/sessions`;
677
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/query?${stringifiedParams}` : `${getProxyPath()}/sessions/query`;
729
678
  };
730
679
  /**
731
- * Returns a paginated list of sessions for a project.
732
- Requires a project service key (OAuth2 client credentials).
680
+ * Returns the sessions of a project, paginated with a cursor.
681
+ Sessions of every lifecycle state are returned; each carries its `state`.
682
+ Requires `session.read` permission.
733
683
 
734
- * @summary List sessions
684
+ * @summary Query sessions
735
685
  */
736
- const listSessions = async (params, options) => {
737
- return customFetch(getListSessionsUrl(params), {
686
+ const querySessions = async (querySessionsBody, params, options) => {
687
+ return customFetch(getQuerySessionsUrl(params), {
738
688
  ...options,
739
- method: "GET"
689
+ method: "POST",
690
+ headers: {
691
+ "Content-Type": "application/json",
692
+ ...options?.headers
693
+ },
694
+ body: JSON.stringify(querySessionsBody)
740
695
  });
741
696
  };
742
697
  const getExchangeHandoffUrl = (params) => {
@@ -779,13 +734,8 @@ const exchangeHandoff = async (exchangeHandoffBody, params, options) => {
779
734
  body: JSON.stringify(exchangeHandoffBody)
780
735
  });
781
736
  };
782
- const getGetSessionUrl = (sessionId, params) => {
783
- const normalizedParams = new URLSearchParams();
784
- Object.entries(params || {}).forEach(([key, value]) => {
785
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
786
- });
787
- const stringifiedParams = normalizedParams.toString();
788
- return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/${sessionId}?${stringifiedParams}` : `${getProxyPath()}/sessions/${sessionId}`;
737
+ const getGetSessionUrl = (sessionId) => {
738
+ return `${getProxyPath()}/sessions/${sessionId}`;
789
739
  };
790
740
  /**
791
741
  * Returns the current state of a session including its factors and all currently
@@ -797,30 +747,30 @@ against the same `session_id`) to restore a dropped assurance level.
797
747
 
798
748
  * @summary Get session state
799
749
  */
800
- const getSession = async (sessionId, params, options) => {
801
- return customFetch(getGetSessionUrl(sessionId, params), {
750
+ const getSession = async (sessionId, options) => {
751
+ return customFetch(getGetSessionUrl(sessionId), {
802
752
  ...options,
803
753
  method: "GET"
804
754
  });
805
755
  };
806
- const getRevokeSessionUrl = (sessionId, params) => {
807
- const normalizedParams = new URLSearchParams();
808
- Object.entries(params || {}).forEach(([key, value]) => {
809
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
810
- });
811
- const stringifiedParams = normalizedParams.toString();
812
- return stringifiedParams.length > 0 ? `${getProxyPath()}/sessions/${sessionId}?${stringifiedParams}` : `${getProxyPath()}/sessions/${sessionId}`;
756
+ const getRevokeSessionUrl = (sessionId) => {
757
+ return `${getProxyPath()}/sessions/${sessionId}`;
813
758
  };
814
759
  /**
815
- * Revokes the session immediately (`state: revoked`). This is the logout operation.
760
+ * Permanently deletes the session, terminating it immediately.
816
761
 
817
- The session_token issued at creation (or superseded by a handoff exchange) is required.
818
- After revocation, any tokens derived from this session are invalidated.
762
+ This is the operator revoke path and requires the `session.delete` scope on a
763
+ project-bound credential. End-user logout with the `__nextgen_session` cookie is
764
+ `DELETE /sessions/me` (`nextgenSession` scheme).
765
+
766
+ Idempotent: deleting a session that does not exist (or was already deleted)
767
+ still returns 204. After deletion, any tokens derived from the session are
768
+ invalidated.
819
769
 
820
770
  * @summary Revoke session
821
771
  */
822
- const revokeSession = async (sessionId, params, options) => {
823
- return customFetch(getRevokeSessionUrl(sessionId, params), {
772
+ const revokeSession = async (sessionId, options) => {
773
+ return customFetch(getRevokeSessionUrl(sessionId), {
824
774
  ...options,
825
775
  method: "DELETE"
826
776
  });
@@ -848,10 +798,12 @@ const getRevokeMySessionUrl = () => {
848
798
  return `${getProxyPath()}/sessions/me`;
849
799
  };
850
800
  /**
851
- * Revokes the session immediately (`state: revoked`). This is the logout operation.
801
+ * Logs out by permanently deleting the session.
852
802
 
853
- The __nextgen_session cookie issued at creation (or superseded by a handoff exchange) is required.
854
- After revocation, any tokens derived from this session are invalidated including the cookie itself, which is cleared in the response.
803
+ The `__nextgen_session` cookie issued at creation (or superseded by a handoff
804
+ exchange) is required. Idempotent: if the session is already gone this still
805
+ returns 204. Any tokens derived from the session are invalidated, and the
806
+ cookie itself is cleared in the response.
855
807
 
856
808
  * @summary Revoke my session
857
809
  */
@@ -870,10 +822,12 @@ const getCreateSchemaUrl = (params) => {
870
822
  return stringifiedParams.length > 0 ? `${getProxyPath()}/schemas?${stringifiedParams}` : `${getProxyPath()}/schemas`;
871
823
  };
872
824
  /**
873
- * Create a new schema. The schema definition must include a unique $id field,
874
- which will be used to identify the schema in future requests. The $id must
875
- be a valid URI and should ideally point to the location where the schema
876
- can be accessed.
825
+ * Create a new schema. The optional `$id` field is the JSON Schema document
826
+ URI used to identify the schema in future requests (GitOps-stable identity,
827
+ not a free-form resource primary key). When `$id` is omitted, the server
828
+ generates a `sch_*` URL. When provided, `$id` must be unique within the
829
+ project and should ideally be a valid URI pointing at where the schema can
830
+ be accessed.
877
831
 
878
832
  The schema can either be a concrete schema, e.g. a user schema, or a
879
833
  schema-url which will be resolved by the server.
@@ -972,31 +926,21 @@ const listFlowDefinitions = async (params, options) => {
972
926
  method: "GET"
973
927
  });
974
928
  };
975
- const getGetFlowDefinitionUrl = (id, params) => {
976
- const normalizedParams = new URLSearchParams();
977
- Object.entries(params || {}).forEach(([key, value]) => {
978
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
979
- });
980
- const stringifiedParams = normalizedParams.toString();
981
- return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions/${id}?${stringifiedParams}` : `${getProxyPath()}/flow_definitions/${id}`;
929
+ const getGetFlowDefinitionUrl = (id) => {
930
+ return `${getProxyPath()}/flow_definitions/${id}`;
982
931
  };
983
932
  /**
984
933
  * Get a flow definition by id
985
934
  * @summary Get a flow definition by id
986
935
  */
987
- const getFlowDefinition = async (id, params, options) => {
988
- return customFetch(getGetFlowDefinitionUrl(id, params), {
936
+ const getFlowDefinition = async (id, options) => {
937
+ return customFetch(getGetFlowDefinitionUrl(id), {
989
938
  ...options,
990
939
  method: "GET"
991
940
  });
992
941
  };
993
- const getUpdateFlowDefinitionUrl = (id, params) => {
994
- const normalizedParams = new URLSearchParams();
995
- Object.entries(params || {}).forEach(([key, value]) => {
996
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
997
- });
998
- const stringifiedParams = normalizedParams.toString();
999
- return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions/${id}?${stringifiedParams}` : `${getProxyPath()}/flow_definitions/${id}`;
942
+ const getUpdateFlowDefinitionUrl = (id) => {
943
+ return `${getProxyPath()}/flow_definitions/${id}`;
1000
944
  };
1001
945
  /**
1002
946
  * Update a flow definition by id. This endpoint replaces the existing flow definition.
@@ -1004,8 +948,8 @@ If `flow_definition.status` is omitted, the current status is preserved
1004
948
 
1005
949
  * @summary Update a flow definition by id
1006
950
  */
1007
- const updateFlowDefinition = async (id, updateFlowDefinitionBody, params, options) => {
1008
- return customFetch(getUpdateFlowDefinitionUrl(id, params), {
951
+ const updateFlowDefinition = async (id, updateFlowDefinitionBody, options) => {
952
+ return customFetch(getUpdateFlowDefinitionUrl(id), {
1009
953
  ...options,
1010
954
  method: "PUT",
1011
955
  headers: {
@@ -1015,13 +959,8 @@ const updateFlowDefinition = async (id, updateFlowDefinitionBody, params, option
1015
959
  body: JSON.stringify(updateFlowDefinitionBody)
1016
960
  });
1017
961
  };
1018
- const getDeleteFlowDefinitionUrl = (id, params) => {
1019
- const normalizedParams = new URLSearchParams();
1020
- Object.entries(params || {}).forEach(([key, value]) => {
1021
- if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1022
- });
1023
- const stringifiedParams = normalizedParams.toString();
1024
- return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions/${id}?${stringifiedParams}` : `${getProxyPath()}/flow_definitions/${id}`;
962
+ const getDeleteFlowDefinitionUrl = (id) => {
963
+ return `${getProxyPath()}/flow_definitions/${id}`;
1025
964
  };
1026
965
  /**
1027
966
  * Delete a flow definition by id.
@@ -1030,95 +969,239 @@ If the flow definition is the last active flow definition for a given purpose, t
1030
969
 
1031
970
  * @summary Delete a flow definition by id
1032
971
  */
1033
- const deleteFlowDefinition = async (id, params, options) => {
1034
- return customFetch(getDeleteFlowDefinitionUrl(id, params), {
972
+ const deleteFlowDefinition = async (id, options) => {
973
+ return customFetch(getDeleteFlowDefinitionUrl(id), {
1035
974
  ...options,
1036
975
  method: "DELETE"
1037
976
  });
1038
977
  };
1039
- const getActivateFlowDefinitionUrl = (id, params) => {
978
+ const getCreateTeamUrl = (params) => {
1040
979
  const normalizedParams = new URLSearchParams();
1041
980
  Object.entries(params || {}).forEach(([key, value]) => {
1042
981
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1043
982
  });
1044
983
  const stringifiedParams = normalizedParams.toString();
1045
- return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions/${id}/activate?${stringifiedParams}` : `${getProxyPath()}/flow_definitions/${id}/activate`;
984
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/teams?${stringifiedParams}` : `${getProxyPath()}/teams`;
1046
985
  };
1047
986
  /**
1048
- * Activate a flow definition by transitioning it from a `draft` state to an `active` state.
1049
- Alternatively, the status of a flow definition can also be set via the `POST /flow_definitions` and `PUT /flow_definitions/{id}` endpoints by setting the `status` attribute in the flow definition payload.
1050
-
1051
- * @summary Activate a flow definition by ID.
987
+ * @summary Create team
1052
988
  */
1053
- const activateFlowDefinition = async (id, params, options) => {
1054
- return customFetch(getActivateFlowDefinitionUrl(id, params), {
989
+ const createTeam = async (createTeamBody, params, options) => {
990
+ return customFetch(getCreateTeamUrl(params), {
1055
991
  ...options,
1056
- method: "POST"
992
+ method: "POST",
993
+ headers: {
994
+ "Content-Type": "application/json",
995
+ ...options?.headers
996
+ },
997
+ body: JSON.stringify(createTeamBody)
1057
998
  });
1058
999
  };
1059
- const getDeactivateFlowDefinitionUrl = (id, params) => {
1000
+ const getQueryTeamsUrl = (params) => {
1060
1001
  const normalizedParams = new URLSearchParams();
1061
1002
  Object.entries(params || {}).forEach(([key, value]) => {
1062
1003
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1063
1004
  });
1064
1005
  const stringifiedParams = normalizedParams.toString();
1065
- return stringifiedParams.length > 0 ? `${getProxyPath()}/flow_definitions/${id}/deactivate?${stringifiedParams}` : `${getProxyPath()}/flow_definitions/${id}/deactivate`;
1006
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/teams/query?${stringifiedParams}` : `${getProxyPath()}/teams/query`;
1066
1007
  };
1067
1008
  /**
1068
- * Deactivates a flow definition in the `active` state by transitioning it to the `draft` state.
1069
- Flow definitions in `draft` state cannot be used to start new flows. Existing flows that use the deactivated flow definition must gracefully handle this.
1070
- Alternatively, the status of a flow definition can also be set via the `POST /flow_definitions` and `PUT /flow_definitions/{id}` endpoints by setting the `status` attribute in the flow definition payload.
1009
+ * Returns the teams of a project, paginated with a cursor.
1071
1010
 
1072
- * @summary Deactivate a flow definition by ID.
1011
+ * @summary Query teams
1073
1012
  */
1074
- const deactivateFlowDefinition = async (id, params, options) => {
1075
- return customFetch(getDeactivateFlowDefinitionUrl(id, params), {
1013
+ const queryTeams = async (queryTeamsBody, params, options) => {
1014
+ return customFetch(getQueryTeamsUrl(params), {
1076
1015
  ...options,
1077
- method: "POST"
1016
+ method: "POST",
1017
+ headers: {
1018
+ "Content-Type": "application/json",
1019
+ ...options?.headers
1020
+ },
1021
+ body: JSON.stringify(queryTeamsBody)
1078
1022
  });
1079
1023
  };
1080
- const getCreateTeamUrl = (params) => {
1024
+ const getGetTeamUrl = (teamId) => {
1025
+ return `${getProxyPath()}/teams/${teamId}`;
1026
+ };
1027
+ /**
1028
+ * Returns a Team by its id.
1029
+
1030
+ * @summary Get team
1031
+ */
1032
+ const getTeam = async (teamId, options) => {
1033
+ return customFetch(getGetTeamUrl(teamId), {
1034
+ ...options,
1035
+ method: "GET"
1036
+ });
1037
+ };
1038
+ const getDeleteTeamUrl = (teamId) => {
1039
+ return `${getProxyPath()}/teams/${teamId}`;
1040
+ };
1041
+ /**
1042
+ * Deactivates the team.
1043
+
1044
+ The team is tombstoned rather than erased: it stays readable through
1045
+ getTeam with status `deactivated`. Its memberships are removed and the
1046
+ users whose lifecycle it owns are deactivated with it.
1047
+
1048
+ The request is idempotent. Deleting a team that is already deactivated
1049
+ or doesn't exist succeeds without changing anything.
1050
+
1051
+ * @summary Delete team
1052
+ */
1053
+ const deleteTeam = async (teamId, options) => {
1054
+ return customFetch(getDeleteTeamUrl(teamId), {
1055
+ ...options,
1056
+ method: "DELETE"
1057
+ });
1058
+ };
1059
+ const getUpdateTeamUrl = (teamId) => {
1060
+ return `${getProxyPath()}/teams/${teamId}`;
1061
+ };
1062
+ /**
1063
+ * Update team. Only active teams can be updated.
1064
+
1065
+ * @summary Update team
1066
+ */
1067
+ const updateTeam = async (teamId, updateTeamBody, options) => {
1068
+ return customFetch(getUpdateTeamUrl(teamId), {
1069
+ ...options,
1070
+ method: "PATCH",
1071
+ headers: {
1072
+ "Content-Type": "application/json",
1073
+ ...options?.headers
1074
+ },
1075
+ body: JSON.stringify(updateTeamBody)
1076
+ });
1077
+ };
1078
+ const getCreateBrandingUrl = (params) => {
1081
1079
  const normalizedParams = new URLSearchParams();
1082
1080
  Object.entries(params || {}).forEach(([key, value]) => {
1083
1081
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1084
1082
  });
1085
1083
  const stringifiedParams = normalizedParams.toString();
1086
- return stringifiedParams.length > 0 ? `${getProxyPath()}/teams?${stringifiedParams}` : `${getProxyPath()}/teams`;
1084
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/branding?${stringifiedParams}` : `${getProxyPath()}/branding`;
1087
1085
  };
1088
1086
  /**
1089
- * @summary Create team
1087
+ * Publishes a new immutable branding revision for the project. Branding
1088
+ revisions cannot be updated or deleted; every edit publishes a new
1089
+ revision, and flow responses resolve the latest revision per project
1090
+ (see ADR 040).
1091
+
1092
+ The `liquid_template` is validated lexically on save (size, encoding,
1093
+ banned patterns such as `<script>` tags, inline event handlers, and the
1094
+ `| raw` filter). Authoritative LiquidJS validation runs at authoring
1095
+ time via `zitadel plan` / `zitadel apply`.
1096
+
1097
+ * @summary Publish a new branding revision
1090
1098
  */
1091
- const createTeam = async (params, createTeamBody, options) => {
1092
- return customFetch(getCreateTeamUrl(params), {
1099
+ const createBranding = async (createBrandingBody, params, options) => {
1100
+ return customFetch(getCreateBrandingUrl(params), {
1093
1101
  ...options,
1094
1102
  method: "POST",
1095
1103
  headers: {
1096
1104
  "Content-Type": "application/json",
1097
1105
  ...options?.headers
1098
1106
  },
1099
- body: JSON.stringify(createTeamBody)
1107
+ body: JSON.stringify(createBrandingBody)
1100
1108
  });
1101
1109
  };
1102
- const getGetTeamUrl = (teamId, params) => {
1110
+ const getListBrandingUrl = (params) => {
1103
1111
  const normalizedParams = new URLSearchParams();
1104
1112
  Object.entries(params || {}).forEach(([key, value]) => {
1105
1113
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1106
1114
  });
1107
1115
  const stringifiedParams = normalizedParams.toString();
1108
- return stringifiedParams.length > 0 ? `${getProxyPath()}/teams/${teamId}?${stringifiedParams}` : `${getProxyPath()}/teams/${teamId}`;
1116
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/branding?${stringifiedParams}` : `${getProxyPath()}/branding`;
1109
1117
  };
1110
1118
  /**
1111
- * Returns the current state of a team.
1119
+ * Lists branding revisions for the project, newest first, capped at the
1120
+ 100 most recent. The first entry is the revision flow responses
1121
+ currently resolve. Deliberately unpaginated in v1 — list endpoints
1122
+ gain a real query mechanism together (ADR 031); advertising pagination
1123
+ parameters the server ignores would be worse than none.
1112
1124
 
1113
- * @summary Get team
1125
+ * @summary List branding revisions
1126
+ */
1127
+ const listBranding = async (params, options) => {
1128
+ return customFetch(getListBrandingUrl(params), {
1129
+ ...options,
1130
+ method: "GET"
1131
+ });
1132
+ };
1133
+ const getGetBrandingByIdUrl = (id) => {
1134
+ return `${getProxyPath()}/branding/${id}`;
1135
+ };
1136
+ /**
1137
+ * Retrieves a single branding revision, including its stored configuration.
1138
+ * @summary Get a branding revision by ID
1139
+ */
1140
+ const getBrandingById = async (id, options) => {
1141
+ return customFetch(getGetBrandingByIdUrl(id), {
1142
+ ...options,
1143
+ method: "GET"
1144
+ });
1145
+ };
1146
+ const getListEventsUrl = (params) => {
1147
+ const normalizedParams = new URLSearchParams();
1148
+ Object.entries(params || {}).forEach(([key, value]) => {
1149
+ if (Array.isArray(value) && ["category", "event_type"].includes(key)) {
1150
+ value.forEach((v) => {
1151
+ normalizedParams.append(key, v === null ? "null" : v.toString());
1152
+ });
1153
+ return;
1154
+ }
1155
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1156
+ });
1157
+ const stringifiedParams = normalizedParams.toString();
1158
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/events?${stringifiedParams}` : `${getProxyPath()}/events`;
1159
+ };
1160
+ /**
1161
+ * Returns project-scoped audit events, newest-first by keyset on
1162
+ `(created_at, id)` (ADR 027 / ADR 049). Pass `order=asc` for oldest-first.
1163
+ Requires `events.read`.
1164
+
1165
+ Pre-claim projects return an empty list (events are stored but not
1166
+ visible until claim succeeds). Team-scoped credentials see only events
1167
+ whose emit-time `team_id` matches the credential team (enforced when
1168
+ team-scoped tokens exist).
1169
+
1170
+ Clients discriminate each item via `event_type` (OpenAPI Event oneOf) —
1171
+ see docs/design/api/events-catalog.md.
1172
+
1173
+ * @summary List events
1174
+ */
1175
+ const listEvents = async (params, options) => {
1176
+ return customFetch(getListEventsUrl(params), {
1177
+ ...options,
1178
+ method: "GET"
1179
+ });
1180
+ };
1181
+ const getGetEventUrl = (id, params) => {
1182
+ const normalizedParams = new URLSearchParams();
1183
+ Object.entries(params || {}).forEach(([key, value]) => {
1184
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
1185
+ });
1186
+ const stringifiedParams = normalizedParams.toString();
1187
+ return stringifiedParams.length > 0 ? `${getProxyPath()}/events/${id}?${stringifiedParams}` : `${getProxyPath()}/events/${id}`;
1188
+ };
1189
+ /**
1190
+ * Loads a single event by `(project_id, id)`. Requires `events.read`.
1191
+ Events are not registered in `resource_scope_index`; project scope is
1192
+ required on the query (ADR 049). Misses and cross-project ids return 404.
1193
+
1194
+ Pre-claim projects return 404 (stored events stay invisible until claim).
1195
+
1196
+ * @summary Get event by ID
1114
1197
  */
1115
- const getTeam = async (teamId, params, options) => {
1116
- return customFetch(getGetTeamUrl(teamId, params), {
1198
+ const getEvent = async (id, params, options) => {
1199
+ return customFetch(getGetEventUrl(id, params), {
1117
1200
  ...options,
1118
1201
  method: "GET"
1119
1202
  });
1120
1203
  };
1121
1204
  //#endregion
1122
- export { activateFlowDefinition, authorizeDevice, authorizeGet, createAuthAttempt, createFlow, createFlowDefinition, createHandoff, createProject, createSchema, createSession, createTeam, createUser, deactivateFlowDefinition, deleteFlowDefinition, endSession, exchangeHandoff, getActivateFlowDefinitionUrl, getAuthAttempt, getAuthorizeDeviceUrl, getAuthorizeGetUrl, getCreateAuthAttemptUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateHandoffUrl, getCreateProjectUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeactivateFlowDefinitionUrl, getDeleteFlowDefinitionUrl, getEndSessionUrl, getExchangeHandoffUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetHealthUrl, getGetKeysUrl, getGetLiveUrl, getGetMySessionUrl, getGetMyUserUrl, getGetOpenIDConfigurationUrl, getGetProjectUrl, getGetReadyUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetTokenUrl, getGetUserByIDUrl, getGetUserInfoUrl, getHealth, getIntrospectUrl, getIssueChallengeUrl, getKeys, getListFlowDefinitionsUrl, getListSchemasUrl, getListSessionsUrl, getListUsersUrl, getLive, getMySession, getMyUser, getOpenIDConfiguration, getPatchProjectUrl, getProject, getQueryProjectsUrl, getReady, getRevokeMySessionUrl, getRevokeSessionUrl, getRevokeTokenUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowEventUrl, getSubmitFlowStepUrl, getTeam, getToken, getUpdateFlowDefinitionUrl, getUserByID, getUserInfo, getVerifyChallengeProofUrl, introspect, issueChallenge, listFlowDefinitions, listSchemas, listSessions, listUsers, patchProject, queryProjects, revokeMySession, revokeSession, revokeToken, setUserPassword, submitFlowEvent, submitFlowStep, zitadelNextGen_exports as t, updateFlowDefinition, verifyChallengeProof };
1205
+ export { completeClaim, createAuthAttempt, createBranding, createFlow, createFlowDefinition, createHandoff, createProject, createSchema, createSession, createTeam, createUser, deleteFlowDefinition, deleteTeam, deleteUserByID, exchangeHandoff, getAuthAttempt, getBrandingById, getClaimStatus, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateHandoffUrl, getCreateProjectUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteFlowDefinitionUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getEvent, getExchangeHandoffUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetHealthUrl, getGetLiveUrl, getGetMySessionUrl, getGetMyUserUrl, getGetProjectUrl, getGetReadyUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getHealth, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListSchemasUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getListUsersUrl, getLive, getMySession, getMyUser, getPatchProjectUrl, getProject, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getReady, getRevokeMySessionUrl, getRevokeSessionUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateFlowDefinitionUrl, getUpdateTeamUrl, getUserByID, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listEvents, listFlowDefinitions, listSchemas, listUserPasskeys, listUserTeams, listUsers, patchProject, queryProjects, querySessions, queryTeams, revokeMySession, revokeSession, setUserPassword, submitFlowStep, zitadelNextGen_exports as t, updateFlowDefinition, updateTeam, verifyChallengeProof };
1123
1206
 
1124
1207
  //# sourceMappingURL=zitadelNextGen.mjs.map