@zitadel/api 0.1.0-alpha.16 → 0.1.0-alpha.18

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 (385) hide show
  1. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  2. package/dist/generated/endpoints/zitadelNextGen.mjs +328 -251
  3. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  4. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +30 -26
  5. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +325 -469
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +480 -286
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +470 -325
  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 +144 -70
  14. package/dist/generated/model/index.mjs.map +1 -1
  15. package/dist/{index-oloR8wb4.d.mts → index-D6qIOslB.d.mts} +6221 -3481
  16. package/dist/index-D6qIOslB.d.mts.map +1 -0
  17. package/dist/runtime/api-factory.d.mts +2 -2
  18. package/dist/runtime/api-factory.d.mts.map +1 -1
  19. package/dist/runtime/api-factory.mjs +3 -2
  20. package/dist/runtime/api-factory.mjs.map +1 -1
  21. package/dist/runtime/config.d.mts +12 -0
  22. package/dist/runtime/config.d.mts.map +1 -1
  23. package/dist/runtime/config.mjs +8 -4
  24. package/dist/runtime/config.mjs.map +1 -1
  25. package/dist/{zitadelNextGen-CXFZoHGo.d.mts → zitadelNextGen-BCljAZpG.d.mts} +157 -95
  26. package/dist/zitadelNextGen-BCljAZpG.d.mts.map +1 -0
  27. package/package.json +1 -1
  28. package/src/generated/endpoints/zitadelNextGen.msw.ts +538 -648
  29. package/src/generated/endpoints/zitadelNextGen.ts +449 -343
  30. package/src/generated/endpoints/zitadelNextGen.zod.ts +884 -698
  31. package/src/generated/model/completeClaim200.ts +19 -0
  32. package/src/generated/model/{revokeSession404.ts → completeClaim400.ts} +3 -3
  33. package/src/generated/model/{getMyUserDefaultDetails.ts → completeClaim400Details.ts} +1 -1
  34. package/src/generated/model/completeClaim401.ts +24 -0
  35. package/src/generated/model/{revokeSession409.ts → completeClaim404.ts} +3 -3
  36. package/src/generated/model/{listUsersDefaultDetails.ts → completeClaim404Details.ts} +1 -1
  37. package/src/generated/model/completeClaim409.ts +26 -0
  38. package/src/generated/model/completeClaim409Details.ts +14 -0
  39. package/src/generated/model/completeClaim410.ts +24 -0
  40. package/src/generated/model/{authorizeGet400.ts → completeClaim429.ts} +3 -3
  41. package/src/generated/model/{revokeSession404Details.ts → completeClaim429Details.ts} +1 -1
  42. package/src/generated/model/completeClaimBody.ts +18 -0
  43. package/src/generated/model/completeClaimDefault.ts +20 -0
  44. package/src/generated/model/{createProjectDefaultDetails.ts → completeClaimDefaultDetails.ts} +1 -1
  45. package/src/generated/model/createAuthAttempt201.ts +2 -2
  46. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +2 -2
  47. package/src/generated/model/createAuthAttemptDefault.ts +20 -0
  48. package/src/generated/model/createBranding201.ts +31 -0
  49. package/src/generated/model/createBranding201Branding.ts +49 -0
  50. package/src/generated/model/createBranding201BrandingLayout.ts +22 -0
  51. package/src/generated/model/createBranding400.ts +20 -0
  52. package/src/generated/model/{createUserDefaultDetails.ts → createBranding400Details.ts} +1 -1
  53. package/src/generated/model/createBrandingBody.ts +49 -0
  54. package/src/generated/model/createBrandingBodyLayout.ts +22 -0
  55. package/src/generated/model/createBrandingDefault.ts +20 -0
  56. package/src/generated/model/{submitFlowStepDefaultDetails.ts → createBrandingDefaultDetails.ts} +1 -1
  57. package/src/generated/model/{activateFlowDefinitionParams.ts → createBrandingParams.ts} +1 -1
  58. package/src/generated/model/createFlow201.ts +8 -3
  59. package/src/generated/model/createFlow201Branding.ts +23 -7
  60. package/src/generated/model/createFlow201BrandingLayout.ts +2 -1
  61. package/src/generated/model/createFlow201Step.ts +5 -3
  62. package/src/generated/model/createFlowDefault.ts +131 -12
  63. package/src/generated/model/createFlowDefinitionDefault.ts +91 -12
  64. package/src/generated/model/createHandoffDefault.ts +31 -1
  65. package/src/generated/model/createProject201.ts +4 -4
  66. package/src/generated/model/createProjectBody.ts +2 -2
  67. package/src/generated/model/createProjectDefault.ts +101 -12
  68. package/src/generated/model/createSchemaBody.ts +5 -2
  69. package/src/generated/model/createSession201Session.ts +2 -3
  70. package/src/generated/model/createSession201SessionState.ts +0 -2
  71. package/src/generated/model/createSessionDefault.ts +81 -12
  72. package/src/generated/model/createTeam201.ts +15 -1
  73. package/src/generated/model/createTeam201Status.ts +21 -0
  74. package/src/generated/model/{introspect400.ts → createTeam401.ts} +3 -3
  75. package/src/generated/model/{getToken4xxDetails.ts → createTeam401Details.ts} +1 -1
  76. package/src/generated/model/{endSession400.ts → createTeam403.ts} +3 -3
  77. package/src/generated/model/{introspect400Details.ts → createTeam403Details.ts} +1 -1
  78. package/src/generated/model/{getToken4xx.ts → createTeam404.ts} +3 -3
  79. package/src/generated/model/{endSession400Details.ts → createTeam404Details.ts} +1 -1
  80. package/src/generated/model/createTeam409.ts +20 -0
  81. package/src/generated/model/createTeam409Details.ts +12 -0
  82. package/src/generated/model/createTeamBody.ts +8 -1
  83. package/src/generated/model/createUserBody.ts +10 -1
  84. package/src/generated/model/createUserBodyMetadata.ts +24 -0
  85. package/src/generated/model/createUserBodyMetadataStatus.ts +20 -0
  86. package/src/generated/model/createUserDefault.ts +71 -12
  87. package/src/generated/model/deleteFlowDefinitionDefault.ts +71 -12
  88. package/src/generated/model/deleteTeam400.ts +20 -0
  89. package/src/generated/model/deleteTeam400Details.ts +12 -0
  90. package/src/generated/model/deleteTeam401.ts +20 -0
  91. package/src/generated/model/deleteTeam401Details.ts +12 -0
  92. package/src/generated/model/deleteTeam403.ts +20 -0
  93. package/src/generated/model/deleteTeam403Details.ts +12 -0
  94. package/src/generated/model/{endSessionDefault.ts → deleteTeamDefault.ts} +3 -3
  95. package/src/generated/model/{endSessionDefaultDetails.ts → deleteTeamDefaultDetails.ts} +1 -1
  96. package/src/generated/model/{deactivateFlowDefinitionParams.ts → deleteTeamParams.ts} +1 -1
  97. package/src/generated/model/deleteUserByID401.ts +20 -0
  98. package/src/generated/model/{createFlowDefaultDetails.ts → deleteUserByID401Details.ts} +1 -1
  99. package/src/generated/model/deleteUserByID404.ts +20 -0
  100. package/src/generated/model/{getProjectDefaultDetails.ts → deleteUserByID404Details.ts} +1 -1
  101. package/src/generated/model/deleteUserByIDDefault.ts +59 -0
  102. package/src/generated/model/deleteUserByIDParams.ts +15 -0
  103. package/src/generated/model/exchangeHandoff200Session.ts +2 -3
  104. package/src/generated/model/exchangeHandoff200SessionState.ts +0 -2
  105. package/src/generated/model/exchangeHandoffDefault.ts +141 -12
  106. package/src/generated/model/getAuthAttempt200.ts +2 -2
  107. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +2 -2
  108. package/src/generated/model/getAuthAttemptDefault.ts +20 -0
  109. package/src/generated/model/getBrandingById200.ts +31 -0
  110. package/src/generated/model/getBrandingById200Branding.ts +49 -0
  111. package/src/generated/model/getBrandingById200BrandingLayout.ts +22 -0
  112. package/src/generated/model/{authorizeDevice400.ts → getBrandingById404.ts} +3 -3
  113. package/src/generated/model/{getFlowStepDefaultDetails.ts → getBrandingById404Details.ts} +1 -1
  114. package/src/generated/model/{authorizeDeviceDefault.ts → getBrandingByIdDefault.ts} +3 -3
  115. package/src/generated/model/{exchangeHandoffDefaultDetails.ts → getBrandingByIdDefaultDetails.ts} +1 -1
  116. package/src/generated/model/getBrandingByIdParams.ts +15 -0
  117. package/src/generated/model/getClaimStatus200.ts +31 -0
  118. package/src/generated/model/getClaimStatus401.ts +20 -0
  119. package/src/generated/model/getClaimStatus401Details.ts +12 -0
  120. package/src/generated/model/getClaimStatus403.ts +24 -0
  121. package/src/generated/model/getClaimStatus404.ts +20 -0
  122. package/src/generated/model/getClaimStatus404Details.ts +12 -0
  123. package/src/generated/model/getClaimStatus410.ts +24 -0
  124. package/src/generated/model/getClaimStatus429.ts +20 -0
  125. package/src/generated/model/getClaimStatus429Details.ts +12 -0
  126. package/src/generated/model/getClaimStatusDefault.ts +20 -0
  127. package/src/generated/model/{authorizeGet400Details.ts → getClaimStatusDefaultDetails.ts} +1 -1
  128. package/src/generated/model/getClaimStatusParams.ts +15 -0
  129. package/src/generated/model/getFlowDefinitionDefault.ts +71 -12
  130. package/src/generated/model/getFlowStep200.ts +8 -3
  131. package/src/generated/model/getFlowStep200Branding.ts +23 -7
  132. package/src/generated/model/getFlowStep200BrandingLayout.ts +2 -1
  133. package/src/generated/model/getFlowStep200Step.ts +5 -3
  134. package/src/generated/model/getFlowStepDefault.ts +111 -12
  135. package/src/generated/model/getMySession200.ts +2 -3
  136. package/src/generated/model/getMySession200State.ts +0 -2
  137. package/src/generated/model/getMySession401.ts +7 -3
  138. package/src/generated/model/getMySession404.ts +7 -3
  139. package/src/generated/model/getMySessionDefault.ts +21 -1
  140. package/src/generated/model/getMyUser200.ts +17 -1
  141. package/src/generated/model/getMyUser200Metadata.ts +24 -0
  142. package/src/generated/model/getMyUser200MetadataStatus.ts +20 -0
  143. package/src/generated/model/getMyUserDefault.ts +51 -12
  144. package/src/generated/model/getProject200.ts +3 -3
  145. package/src/generated/model/getProjectDefault.ts +71 -12
  146. package/src/generated/model/getSchemaById200.ts +5 -2
  147. package/src/generated/model/getSession200.ts +2 -3
  148. package/src/generated/model/getSession200State.ts +0 -2
  149. package/src/generated/model/getSession403.ts +20 -0
  150. package/src/generated/model/getSession403Details.ts +12 -0
  151. package/src/generated/model/getSessionDefault.ts +31 -1
  152. package/src/generated/model/getTeam200.ts +12 -3
  153. package/src/generated/model/getTeam200Status.ts +21 -0
  154. package/src/generated/model/getUserByID200.ts +17 -1
  155. package/src/generated/model/getUserByID200Metadata.ts +24 -0
  156. package/src/generated/model/getUserByID200MetadataStatus.ts +20 -0
  157. package/src/generated/model/getUserByIDDefault.ts +51 -12
  158. package/src/generated/model/index.ts +186 -126
  159. package/src/generated/model/initClaim201.ts +24 -0
  160. package/src/generated/model/{getKeys4xx.ts → initClaim401.ts} +3 -3
  161. package/src/generated/model/{getKeys4xxDetails.ts → initClaim401Details.ts} +1 -1
  162. package/src/generated/model/initClaim404.ts +24 -0
  163. package/src/generated/model/{activateFlowDefinition400.ts → initClaim409.ts} +10 -4
  164. package/src/generated/model/initClaim409Details.ts +14 -0
  165. package/src/generated/model/initClaimDefault.ts +20 -0
  166. package/src/generated/model/{revokeSession409Details.ts → initClaimDefaultDetails.ts} +1 -1
  167. package/src/generated/model/issueChallenge201.ts +2 -2
  168. package/src/generated/model/issueChallengeDefault.ts +22 -2
  169. package/src/generated/model/listBranding200Item.ts +14 -0
  170. package/src/generated/model/{authorizeGetDefault.ts → listBrandingDefault.ts} +3 -3
  171. package/src/generated/model/{authorizeGetDefaultDetails.ts → listBrandingDefaultDetails.ts} +1 -1
  172. package/src/generated/model/listBrandingParams.ts +15 -0
  173. package/src/generated/model/listFlowDefinitionsDefault.ts +71 -12
  174. package/src/generated/model/listSchemas200Item.ts +1 -1
  175. package/src/generated/model/listUserPasskeys200.ts +19 -0
  176. package/src/generated/model/listUserPasskeys200PasskeysItem.ts +16 -0
  177. package/src/generated/model/listUserPasskeys400.ts +20 -0
  178. package/src/generated/model/{listSessionsDefaultDetails.ts → listUserPasskeys400Details.ts} +1 -1
  179. package/src/generated/model/listUserPasskeys401.ts +20 -0
  180. package/src/generated/model/{patchProjectDefaultDetails.ts → listUserPasskeys401Details.ts} +1 -1
  181. package/src/generated/model/listUserPasskeys403.ts +20 -0
  182. package/src/generated/model/{authorizeDevice400Details.ts → listUserPasskeys403Details.ts} +1 -1
  183. package/src/generated/model/listUserPasskeys404.ts +20 -0
  184. package/src/generated/model/listUserPasskeys404Details.ts +12 -0
  185. package/src/generated/model/listUserPasskeys500.ts +20 -0
  186. package/src/generated/model/listUserPasskeys500Details.ts +12 -0
  187. package/src/generated/model/listUserPasskeysDefault.ts +59 -0
  188. package/src/generated/model/{listSessionsParams.ts → listUserPasskeysParams.ts} +1 -11
  189. package/src/generated/model/listUserTeams200.ts +19 -0
  190. package/src/generated/model/listUserTeams200TeamsItem.ts +33 -0
  191. package/src/generated/model/listUserTeams200TeamsItemMembershipStatus.ts +21 -0
  192. package/src/generated/model/listUserTeams400.ts +20 -0
  193. package/src/generated/model/listUserTeams400Details.ts +12 -0
  194. package/src/generated/model/listUserTeams401.ts +20 -0
  195. package/src/generated/model/listUserTeams401Details.ts +12 -0
  196. package/src/generated/model/listUserTeams403.ts +20 -0
  197. package/src/generated/model/listUserTeams403Details.ts +12 -0
  198. package/src/generated/model/listUserTeams404.ts +20 -0
  199. package/src/generated/model/listUserTeams404Details.ts +12 -0
  200. package/src/generated/model/listUserTeams500.ts +20 -0
  201. package/src/generated/model/listUserTeams500Details.ts +12 -0
  202. package/src/generated/model/listUserTeamsDefault.ts +79 -0
  203. package/src/generated/model/listUserTeamsParams.ts +29 -0
  204. package/src/generated/model/listUsers200.ts +19 -0
  205. package/src/generated/model/listUsers200UsersItem.ts +25 -0
  206. package/src/generated/model/listUsers200UsersItemMetadata.ts +24 -0
  207. package/src/generated/model/listUsers200UsersItemMetadataStatus.ts +20 -0
  208. package/src/generated/model/listUsersDefault.ts +51 -12
  209. package/src/generated/model/listUsersParams.ts +8 -5
  210. package/src/generated/model/patchProject200.ts +3 -3
  211. package/src/generated/model/patchProjectDefault.ts +71 -12
  212. package/src/generated/model/queryProjects200.ts +2 -1
  213. package/src/generated/model/queryProjects200ProjectsItem.ts +3 -3
  214. package/src/generated/model/queryProjectsBody.ts +4 -1
  215. package/src/generated/model/queryProjectsBodyFilterItemField.ts +1 -2
  216. package/src/generated/model/queryProjectsBodySortingField.ts +1 -2
  217. package/src/generated/model/queryProjectsDefault.ts +71 -12
  218. package/src/generated/model/{listSessions200.ts → querySessions200.ts} +3 -3
  219. package/src/generated/model/{listSessions200SessionsItem.ts → querySessions200SessionsItem.ts} +11 -12
  220. package/src/generated/model/{listSessions200SessionsItemFactorsItem.ts → querySessions200SessionsItemFactorsItem.ts} +5 -5
  221. package/src/generated/model/{listSessions200SessionsItemFactorsItemMethod.ts → querySessions200SessionsItemFactorsItemMethod.ts} +3 -3
  222. package/src/generated/model/{listSessions200SessionsItemFactorsItemPayload.ts → querySessions200SessionsItemFactorsItemPayload.ts} +1 -1
  223. package/src/generated/model/{listSessions200SessionsItemMetadata.ts → querySessions200SessionsItemMetadata.ts} +1 -1
  224. package/src/generated/model/{listSessions200SessionsItemState.ts → querySessions200SessionsItemState.ts} +3 -5
  225. package/src/generated/model/{listSessions200SessionsItemUserAgent.ts → querySessions200SessionsItemUserAgent.ts} +1 -1
  226. package/src/generated/model/querySessions400.ts +20 -0
  227. package/src/generated/model/querySessions400Details.ts +12 -0
  228. package/src/generated/model/querySessions401.ts +20 -0
  229. package/src/generated/model/querySessions401Details.ts +12 -0
  230. package/src/generated/model/querySessions403.ts +20 -0
  231. package/src/generated/model/querySessions403Details.ts +12 -0
  232. package/src/generated/model/querySessionsBody.ts +25 -0
  233. package/src/generated/model/querySessionsBodyFilterItem.ts +27 -0
  234. package/src/generated/model/querySessionsBodyFilterItemField.ts +23 -0
  235. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +26 -0
  236. package/src/generated/model/querySessionsBodySorting.ts +18 -0
  237. package/src/generated/model/querySessionsBodySortingDirection.ts +15 -0
  238. package/src/generated/model/querySessionsBodySortingField.ts +21 -0
  239. package/src/generated/model/querySessionsDefault.ts +69 -0
  240. package/src/generated/model/querySessionsParams.ts +15 -0
  241. package/src/generated/model/queryTeams200.ts +20 -0
  242. package/src/generated/model/queryTeams200TeamsItem.ts +28 -0
  243. package/src/generated/model/queryTeams200TeamsItemStatus.ts +22 -0
  244. package/src/generated/model/queryTeams400.ts +20 -0
  245. package/src/generated/model/queryTeams400Details.ts +12 -0
  246. package/src/generated/model/queryTeams401.ts +20 -0
  247. package/src/generated/model/queryTeams401Details.ts +12 -0
  248. package/src/generated/model/queryTeams403.ts +20 -0
  249. package/src/generated/model/queryTeams403Details.ts +12 -0
  250. package/src/generated/model/queryTeams404.ts +20 -0
  251. package/src/generated/model/queryTeams404Details.ts +12 -0
  252. package/src/generated/model/queryTeams429.ts +20 -0
  253. package/src/generated/model/queryTeams429Details.ts +12 -0
  254. package/src/generated/model/queryTeamsBody.ts +28 -0
  255. package/src/generated/model/queryTeamsBodyFilterItem.ts +22 -0
  256. package/src/generated/model/queryTeamsBodyFilterItemField.ts +14 -0
  257. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +26 -0
  258. package/src/generated/model/queryTeamsBodySorting.ts +14 -0
  259. package/src/generated/model/queryTeamsBodySortingDirection.ts +15 -0
  260. package/src/generated/model/queryTeamsBodySortingField.ts +14 -0
  261. package/src/generated/model/{introspectDefault.ts → queryTeamsDefault.ts} +3 -3
  262. package/src/generated/model/queryTeamsDefaultDetails.ts +12 -0
  263. package/src/generated/model/queryTeamsParams.ts +15 -0
  264. package/src/generated/model/revokeMySession401.ts +7 -3
  265. package/src/generated/model/revokeMySessionDefault.ts +41 -12
  266. package/src/generated/model/revokeSession403.ts +20 -0
  267. package/src/generated/model/revokeSession403Details.ts +12 -0
  268. package/src/generated/model/revokeSessionDefault.ts +51 -12
  269. package/src/generated/model/setUserPasswordBody.ts +1 -1
  270. package/src/generated/model/setUserPasswordDefault.ts +61 -12
  271. package/src/generated/model/submitFlowStep200.ts +8 -3
  272. package/src/generated/model/submitFlowStep200Branding.ts +23 -7
  273. package/src/generated/model/submitFlowStep200BrandingLayout.ts +2 -1
  274. package/src/generated/model/submitFlowStep200Step.ts +5 -3
  275. package/src/generated/model/submitFlowStep400.ts +8 -3
  276. package/src/generated/model/submitFlowStep400Branding.ts +23 -7
  277. package/src/generated/model/submitFlowStep400BrandingLayout.ts +2 -1
  278. package/src/generated/model/submitFlowStep400Step.ts +5 -3
  279. package/src/generated/model/submitFlowStepDefault.ts +261 -12
  280. package/src/generated/model/updateFlowDefinitionDefault.ts +111 -12
  281. package/src/generated/model/updateTeam200.ts +28 -0
  282. package/src/generated/model/updateTeam200Status.ts +21 -0
  283. package/src/generated/model/updateTeam400.ts +20 -0
  284. package/src/generated/model/updateTeam400Details.ts +12 -0
  285. package/src/generated/model/updateTeam401.ts +20 -0
  286. package/src/generated/model/updateTeam401Details.ts +12 -0
  287. package/src/generated/model/updateTeam403.ts +20 -0
  288. package/src/generated/model/updateTeam403Details.ts +12 -0
  289. package/src/generated/model/updateTeam404.ts +20 -0
  290. package/src/generated/model/updateTeam404Details.ts +12 -0
  291. package/src/generated/model/updateTeam409.ts +20 -0
  292. package/src/generated/model/updateTeam409Details.ts +12 -0
  293. package/src/generated/model/updateTeamBody.ts +16 -0
  294. package/src/generated/model/updateTeamDefault.ts +20 -0
  295. package/src/generated/model/updateTeamDefaultDetails.ts +12 -0
  296. package/src/generated/model/updateTeamParams.ts +15 -0
  297. package/src/generated/model/verifyChallengeProof200.ts +2 -2
  298. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +2 -2
  299. package/src/generated/model/verifyChallengeProofDefault.ts +34 -4
  300. package/src/runtime/api-factory.ts +5 -2
  301. package/src/runtime/config.spec.ts +31 -1
  302. package/src/runtime/config.ts +22 -3
  303. package/dist/index-oloR8wb4.d.mts.map +0 -1
  304. package/dist/zitadelNextGen-CXFZoHGo.d.mts.map +0 -1
  305. package/src/generated/model/activateFlowDefinition400Details.ts +0 -12
  306. package/src/generated/model/activateFlowDefinitionDefault.ts +0 -20
  307. package/src/generated/model/activateFlowDefinitionDefaultDetails.ts +0 -12
  308. package/src/generated/model/authorizeDevice200.ts +0 -30
  309. package/src/generated/model/authorizeDeviceDefaultDetails.ts +0 -12
  310. package/src/generated/model/authorizeDeviceParams.ts +0 -25
  311. package/src/generated/model/authorizeGetParams.ts +0 -136
  312. package/src/generated/model/createFlowDefinitionDefaultDetails.ts +0 -12
  313. package/src/generated/model/createSessionDefaultDetails.ts +0 -12
  314. package/src/generated/model/deactivateFlowDefinition400.ts +0 -20
  315. package/src/generated/model/deactivateFlowDefinition400Details.ts +0 -12
  316. package/src/generated/model/deactivateFlowDefinition409.ts +0 -20
  317. package/src/generated/model/deactivateFlowDefinition409Details.ts +0 -12
  318. package/src/generated/model/deactivateFlowDefinitionDefault.ts +0 -20
  319. package/src/generated/model/deactivateFlowDefinitionDefaultDetails.ts +0 -12
  320. package/src/generated/model/deleteFlowDefinitionDefaultDetails.ts +0 -12
  321. package/src/generated/model/endSessionParams.ts +0 -57
  322. package/src/generated/model/getFlowDefinitionDefaultDetails.ts +0 -12
  323. package/src/generated/model/getKeys200.ts +0 -12
  324. package/src/generated/model/getKeys200KeysItem.ts +0 -30
  325. package/src/generated/model/getKeysDefault.ts +0 -20
  326. package/src/generated/model/getKeysDefaultDetails.ts +0 -12
  327. package/src/generated/model/getMySession401Details.ts +0 -12
  328. package/src/generated/model/getMySession404Details.ts +0 -12
  329. package/src/generated/model/getOpenIDConfiguration200.ts +0 -87
  330. package/src/generated/model/getOpenIDConfiguration200ClaimTypesSupportedItem.ts +0 -16
  331. package/src/generated/model/getOpenIDConfiguration200DisplayValuesSupportedItem.ts +0 -17
  332. package/src/generated/model/getOpenIDConfiguration200SubjectTypesSupportedItem.ts +0 -15
  333. package/src/generated/model/getOpenIDConfiguration200TokenEndpointAuthMethodsSupportedItem.ts +0 -17
  334. package/src/generated/model/getOpenIDConfiguration4xx.ts +0 -20
  335. package/src/generated/model/getOpenIDConfiguration4xxDetails.ts +0 -12
  336. package/src/generated/model/getOpenIDConfigurationDefault.ts +0 -20
  337. package/src/generated/model/getOpenIDConfigurationDefaultDetails.ts +0 -12
  338. package/src/generated/model/getToken200.ts +0 -18
  339. package/src/generated/model/getTokenBody.ts +0 -40
  340. package/src/generated/model/getTokenBodyGrantType.ts +0 -20
  341. package/src/generated/model/getTokenDefault.ts +0 -20
  342. package/src/generated/model/getTokenDefaultDetails.ts +0 -12
  343. package/src/generated/model/getUserByIDDefaultDetails.ts +0 -12
  344. package/src/generated/model/getUserInfo200.ts +0 -24
  345. package/src/generated/model/getUserInfo4xx.ts +0 -20
  346. package/src/generated/model/getUserInfo4xxDetails.ts +0 -12
  347. package/src/generated/model/getUserInfoDefault.ts +0 -20
  348. package/src/generated/model/getUserInfoDefaultDetails.ts +0 -12
  349. package/src/generated/model/introspect200.ts +0 -34
  350. package/src/generated/model/introspectBody.ts +0 -14
  351. package/src/generated/model/introspectDefaultDetails.ts +0 -12
  352. package/src/generated/model/listFlowDefinitionsDefaultDetails.ts +0 -12
  353. package/src/generated/model/listSessions400.ts +0 -20
  354. package/src/generated/model/listSessions400Details.ts +0 -12
  355. package/src/generated/model/listSessions401.ts +0 -20
  356. package/src/generated/model/listSessions401Details.ts +0 -12
  357. package/src/generated/model/listSessions403.ts +0 -20
  358. package/src/generated/model/listSessions403Details.ts +0 -12
  359. package/src/generated/model/listSessionsDefault.ts +0 -20
  360. package/src/generated/model/listSessionsState.ts +0 -16
  361. package/src/generated/model/listUsers200Item.ts +0 -9
  362. package/src/generated/model/queryProjectsDefaultDetails.ts +0 -12
  363. package/src/generated/model/revokeMySession401Details.ts +0 -12
  364. package/src/generated/model/revokeMySession404.ts +0 -20
  365. package/src/generated/model/revokeMySession404Details.ts +0 -12
  366. package/src/generated/model/revokeMySession409.ts +0 -20
  367. package/src/generated/model/revokeMySession409Details.ts +0 -12
  368. package/src/generated/model/revokeMySessionDefaultDetails.ts +0 -12
  369. package/src/generated/model/revokeSessionDefaultDetails.ts +0 -12
  370. package/src/generated/model/revokeToken4xx.ts +0 -20
  371. package/src/generated/model/revokeToken4xxDetails.ts +0 -12
  372. package/src/generated/model/revokeTokenBody.ts +0 -14
  373. package/src/generated/model/revokeTokenDefault.ts +0 -20
  374. package/src/generated/model/revokeTokenDefaultDetails.ts +0 -12
  375. package/src/generated/model/setUserPasswordDefaultDetails.ts +0 -12
  376. package/src/generated/model/submitFlowEvent400.ts +0 -20
  377. package/src/generated/model/submitFlowEvent400Details.ts +0 -12
  378. package/src/generated/model/submitFlowEvent404.ts +0 -20
  379. package/src/generated/model/submitFlowEvent404Details.ts +0 -12
  380. package/src/generated/model/submitFlowEventBody.ts +0 -17
  381. package/src/generated/model/submitFlowEventBodyPayload.ts +0 -12
  382. package/src/generated/model/submitFlowEventBodyType.ts +0 -15
  383. package/src/generated/model/submitFlowEventDefault.ts +0 -20
  384. package/src/generated/model/submitFlowEventDefaultDetails.ts +0 -12
  385. package/src/generated/model/updateFlowDefinitionDefaultDetails.ts +0 -12
@@ -8,175 +8,6 @@ import * as zod from "zod";
8
8
  * OpenAPI spec version: 0.0.1
9
9
  */
10
10
  /**
11
- * Retrieve the OpenID Connect configuration
12
- * @summary Get OpenID Connect configuration
13
- */
14
- const getOpenIDConfigurationResponseClaimsParameterSupportedDefault = false;
15
- const getOpenIDConfigurationResponseRequestParameterSupportedDefault = false;
16
- const getOpenIDConfigurationResponseRequestUriParameterSupportedDefault = true;
17
- const getOpenIDConfigurationResponseRequireRequestUriRegistrationDefault = false;
18
- const GetOpenIDConfigurationResponse = zod.object({
19
- issuer: zod.url().describe("REQUIRED. URL using the https scheme with no query or fragment components that the OP asserts as its Issuer Identifier."),
20
- authorization_endpoint: zod.url().describe("REQUIRED. URL of the OP's OAuth 2.0 Authorization Endpoint."),
21
- token_endpoint: zod.url().optional().describe("URL of the OP's OAuth 2.0 Token Endpoint. REQUIRED unless only the Implicit Flow is used."),
22
- userinfo_endpoint: zod.url().optional().describe("RECOMMENDED. URL of the OP's UserInfo Endpoint."),
23
- jwks_uri: zod.url().describe("REQUIRED. URL of the OP's JWK Set document containing the signing key(s) the RP uses to validate signatures from the OP."),
24
- registration_endpoint: zod.url().optional().describe("RECOMMENDED. URL of the OP's Dynamic Client Registration Endpoint."),
25
- scopes_supported: zod.array(zod.string()).optional().describe("RECOMMENDED. JSON array containing a list of the OAuth 2.0 scope values that this server supports. The server MUST support the openid scope value."),
26
- response_types_supported: zod.array(zod.string()).describe("REQUIRED. JSON array containing a list of the OAuth 2.0 response_type values that this OP supports."),
27
- response_modes_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports. Default is [\"query\", \"fragment\"]."),
28
- grant_types_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports. Default is [\"authorization_code\", \"implicit\"]."),
29
- acr_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the Authentication Context Class References that this OP supports."),
30
- subject_types_supported: zod.array(zod.enum(["public", "pairwise"])).describe("REQUIRED. JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public."),
31
- id_token_signing_alg_values_supported: zod.array(zod.string()).describe("REQUIRED. JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token. The algorithm RS256 MUST be included."),
32
- id_token_encryption_alg_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token."),
33
- id_token_encryption_enc_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token."),
34
- userinfo_signing_alg_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values) supported by the UserInfo Endpoint."),
35
- userinfo_encryption_alg_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by the UserInfo Endpoint."),
36
- userinfo_encryption_enc_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by the UserInfo Endpoint."),
37
- request_object_signing_alg_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects. Servers SHOULD support none and RS256."),
38
- request_object_encryption_alg_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects."),
39
- request_object_encryption_enc_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects."),
40
- token_endpoint_auth_methods_supported: zod.array(zod.enum([
41
- "client_secret_post",
42
- "client_secret_basic",
43
- "client_secret_jwt",
44
- "private_key_jwt"
45
- ])).optional().describe("OPTIONAL. JSON array containing a list of Client Authentication methods supported by the Token Endpoint. Default is client_secret_basic."),
46
- token_endpoint_auth_signing_alg_values_supported: zod.array(zod.string()).optional().describe("OPTIONAL. JSON array containing a list of the JWS signing algorithms supported by the Token Endpoint for private_key_jwt and client_secret_jwt authentication. The value none MUST NOT be used."),
47
- display_values_supported: zod.array(zod.enum([
48
- "page",
49
- "popup",
50
- "touch",
51
- "wap"
52
- ])).optional().describe("OPTIONAL. JSON array containing a list of the display parameter values that the OpenID Provider supports."),
53
- claim_types_supported: zod.array(zod.enum([
54
- "normal",
55
- "aggregated",
56
- "distributed"
57
- ])).optional().describe("OPTIONAL. JSON array containing a list of the Claim Types that the OpenID Provider supports. Default is normal."),
58
- claims_supported: zod.array(zod.string()).optional().describe("RECOMMENDED. JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for."),
59
- service_documentation: zod.url().optional().describe("OPTIONAL. URL of a page containing human-readable information for developers using the OpenID Provider."),
60
- claims_locales_supported: zod.array(zod.string()).optional().describe("OPTIONAL. Languages and scripts supported for values in Claims being returned, as BCP47 language tag values."),
61
- ui_locales_supported: zod.array(zod.string()).optional().describe("OPTIONAL. Languages and scripts supported for the user interface, as BCP47 language tag values."),
62
- claims_parameter_supported: zod.boolean().default(false).describe("OPTIONAL. Boolean value specifying whether the OP supports use of the claims parameter. Default is false."),
63
- request_parameter_supported: zod.boolean().default(false).describe("OPTIONAL. Boolean value specifying whether the OP supports use of the request parameter. Default is false."),
64
- request_uri_parameter_supported: zod.boolean().default(true).describe("OPTIONAL. Boolean value specifying whether the OP supports use of the request_uri parameter. Default is true."),
65
- require_request_uri_registration: zod.boolean().default(false).describe("OPTIONAL. Boolean value specifying whether the OP requires any request_uri values used to be pre-registered. Default is false."),
66
- op_policy_uri: zod.url().optional().describe("OPTIONAL. URL the OP provides to the person registering the Client about the OP's requirements on how the Relying Party can use the data provided."),
67
- op_tos_uri: zod.url().optional().describe("OPTIONAL. URL the OP provides to the person registering the Client about the OpenID Provider's terms of service.")
68
- }).describe("OpenID Connect configuration according to the OpenID Connect Discovery 1.0 specification.");
69
- /**
70
- * @summary Authorize a user
71
- */
72
- const AuthorizeGetQueryParams = zod.strictObject({
73
- acr_values: zod.string().optional().describe("A space delimited list of Authentication Class References. This can be\nused to specify certain authentication methods or level of assurance \nthat is required for the authentication. For example, you could use \nthis to require multi-factor authentication.\n"),
74
- client_id: zod.string().describe("The client ID of the application that is requesting authorization. \nThis is a required parameter and must match the client ID of a \nregistered application.\n"),
75
- code_challenge: zod.string().optional().describe("The code challenge is a cryptographic string used in the PKCE (Proof \nKey for Code Exchange) flow to enhance security.\n"),
76
- code_challenge_method: zod.string().optional().describe("The code challenge method is used in conjunction with the code challenge \nin the PKCE flow. It specifies the method used to generate the code \nchallenge. Common values are \"S256\" for SHA-256 hashing and \"plain\" \nfor no hashing.\n"),
77
- display: zod.string().optional().describe("The display parameter is used to specify how the authorization server \nshould display the authentication and consent user interface. Common \nvalues include \"page\" for a full-page display, \"popup\" for a popup \nwindow, and \"touch\" for a mobile-optimized display.\n"),
78
- id_token_hint: zod.string().optional().describe("The ID token hint is a previously issued ID token that can be used to \npre-fill the authentication form or to provide information about the \nuser to the authorization server. This can be useful for single sign-on \nscenarios or for providing a smoother user experience.\n"),
79
- login_hint: zod.string().optional().describe("The login hint is a hint to the authorization server about the login \nidentifier of the user. This can be used to pre-fill the username or \nemail field in the authentication form, making it easier for the user \nto log in.\n"),
80
- max_age: zod.number().optional().describe("The max age parameter specifies the maximum amount of time in seconds \nthat has passed since the user last authenticated. If the user has not \nauthenticated within this time frame, they will be required to re-authenticate.\n"),
81
- nonce: zod.string().optional().describe("The nonce parameter is a random string that is used to associate a client \nsession with an ID token and to mitigate replay attacks. The authorization \nserver should include this value in the ID token that it issues, and the \nclient should verify that the value in the ID token matches the value it \nsent in the authorization request.\n"),
82
- prompt: zod.string().optional().describe("The prompt parameter is used to specify whether the authorization server \nshould prompt the user for re-authentication and consent. Common values \ninclude \"none\" for no prompts, \"login\" to prompt for re-authentication, \n\"consent\" to prompt for user consent, and \"select_account\" to prompt \nthe user to select an account if they are logged in with multiple accounts.\n"),
83
- redirect_uri: zod.string().optional().describe("The redirect URI is the URI to which the authorization server will redirect \nthe user after they have authorized or denied the request. This must match \none of the redirect URIs registered for the client application.\n"),
84
- response_mode: zod.string().optional().describe("The response mode parameter specifies how the authorization server should \nreturn the authorization response. Common values include \"query\" to return \nparameters in the query string, \"fragment\" to return parameters in the URL \nfragment, and \"form_post\" to return parameters in an HTTP POST request.\n"),
85
- response_type: zod.string().describe("The response type parameter specifies the type of response that the client \nis expecting from the authorization server. Common values include \"code\" \nfor the authorization code flow, \"token\" for the implicit flow, and \"id_token\" \nfor OpenID Connect authentication.\n"),
86
- scope: zod.string().optional().describe("The scope parameter is used to specify the permissions that the client is \nrequesting from the user. This is a space-delimited list of scope values, \nand the authorization server will use this information to determine what \naccess to grant to the client application.\n"),
87
- state: zod.string().optional().describe("The state parameter is a random string that is used to maintain state between \nthe authorization request and the callback. It is used to prevent cross-site \nrequest forgery (CSRF) attacks by ensuring that the response received from the \nauthorization server corresponds to the request that was sent.\n"),
88
- ui_locales: zod.string().optional().describe("The ui_locales parameter is used to specify the preferred languages and scripts \nfor the user interface that the authorization server should display. This is a \nspace-delimited list of BCP47 language tag values, and it can be used to provide \na localized user experience for users from different regions and language \npreferences.\n")
89
- });
90
- /**
91
- * @summary Authorize a device
92
- */
93
- const AuthorizeDeviceQueryParams = zod.strictObject({
94
- client_id: zod.string().describe("The client ID of the application that is requesting authorization. \nThis is a required parameter and must match the client ID of a \nregistered application.\n"),
95
- scope: zod.string().optional().describe("The scope parameter is used to specify the permissions that the client\nis requesting. This is a space delimited list of scopes. For example,\nyou could use this to request access to the user's profile information or\nto request permission to access certain APIs on behalf of the user.\n")
96
- });
97
- const AuthorizeDeviceResponse = zod.object({
98
- device_code: zod.string().optional().describe("The device code that the client will use to poll for authorization.\n"),
99
- expires_in: zod.number().optional().describe("The number of seconds until the device code expires.\n"),
100
- interval: zod.number().optional().describe("The minimum amount of time in seconds that the client should wait \nbetween polling requests.\n"),
101
- user_code: zod.string().optional().describe("The user code that the user will enter to authorize the device.\n"),
102
- verification_uri: zod.string().optional().describe("The URI where the user will enter the user code to authorize the device.\n"),
103
- verification_uri_complete: zod.string().optional().describe("The complete URI with the user code included, which the user can visit\nto authorize the device.\n")
104
- });
105
- /**
106
- * @summary End a session
107
- */
108
- const EndSessionQueryParams = zod.strictObject({
109
- client_id: zod.string().optional().describe("The client ID is the identifier for the client application that is making \nthe request. This is used by the authorization server to identify the \nclient and to determine whether it is authorized to perform the requested \naction.\n"),
110
- id_token_hint: zod.string().optional().describe("The ID token hint is a previously issued ID token that can be used to \npre-fill the authentication form or to provide information about the \nuser to the authorization server. This can be useful for single sign-on \nscenarios or for providing a smoother user experience.\n"),
111
- logout_hint: zod.string().optional().describe("The logout hint is a hint to the authorization server about the login \nidentifier of the user. This can be used to pre-fill the username or email\nfield in the logout form, making it easier for the user to log out.\n"),
112
- post_logout_redirect_uri: zod.string().optional().describe("The post logout redirect URI is the URI to which the user will be \nredirected after they have logged out. This must be a registered URI \nfor the client application and is used to ensure that the user is \nredirected to a safe location after logging out.\n"),
113
- state: zod.string().optional().describe("The state parameter is an opaque value that is used by the client to\nmaintain state between the request and the callback. It is typically used\nto prevent cross-site request forgery (CSRF) attacks by including a unique\nvalue in the request that the client can verify when it receives the callback.\n"),
114
- ui_locales: zod.string().optional().describe("The ui_locales parameter is a space-separated list of BCP47 language tags\nthat are used to indicate the preferred languages and scripts for the user\ninterface. This can be used by the authorization server to display the logout\npage in the user's preferred language.\n")
115
- });
116
- /**
117
- * @summary Introspect a token
118
- */
119
- const IntrospectResponse = zod.object({
120
- active: zod.boolean().optional().describe("Indicates whether the token is active"),
121
- aud: zod.string().optional().describe("The audience of the token (if applicable)"),
122
- client_id: zod.string().optional().describe("The client ID associated with the token"),
123
- exp: zod.number().optional().describe("The expiration time of the token (in seconds since epoch)"),
124
- iat: zod.number().optional().describe("The time the token was issued (in seconds since epoch)"),
125
- iss: zod.string().optional().describe("The issuer of the token (if applicable)"),
126
- jti: zod.string().optional().describe("The unique identifier for the token (if applicable)"),
127
- nbf: zod.number().optional().describe("The time before which the token is not valid (in seconds since epoch)"),
128
- scope: zod.string().optional().describe("The scopes associated with the token"),
129
- sub: zod.string().optional().describe("The subject of the token (if applicable)"),
130
- token_type: zod.string().optional().describe("The type of the token (access_token or refresh_token)"),
131
- username: zod.string().optional().describe("The username associated with the token (if applicable)")
132
- });
133
- /**
134
- * @summary Get public keys
135
- */
136
- const GetKeysResponse = zod.object({ keys: zod.array(zod.object({
137
- use: zod.string().optional(),
138
- kty: zod.string().optional(),
139
- kid: zod.string().optional(),
140
- crv: zod.string().optional(),
141
- alg: zod.string().optional(),
142
- k: zod.string().optional(),
143
- x: zod.string().optional(),
144
- y: zod.string().optional(),
145
- n: zod.string().optional(),
146
- e: zod.string().optional(),
147
- d: zod.string().optional(),
148
- p: zod.string().optional(),
149
- q: zod.string().optional(),
150
- dp: zod.string().optional(),
151
- dq: zod.string().optional(),
152
- qi: zod.string().optional(),
153
- x5c: zod.array(zod.string()).optional(),
154
- x5u: zod.string().optional(),
155
- x5t: zod.string().optional(),
156
- x5tS256: zod.string().optional()
157
- })).optional() });
158
- /**
159
- * @summary Get access token
160
- */
161
- const GetTokenResponse = zod.object({
162
- access_token: zod.string().optional().describe("The access token issued by the authorization server."),
163
- token_type: zod.string().optional().describe("The type of the token issued (e.g., Bearer)."),
164
- expires_in: zod.number().optional().describe("The lifetime in seconds of the access token."),
165
- refresh_token: zod.string().optional().describe("The refresh token which can be used to obtain new access tokens.")
166
- });
167
- /**
168
- * @summary Get user info
169
- */
170
- const GetUserInfoResponse = zod.object({
171
- sub: zod.string().optional().describe("The unique identifier for the user."),
172
- name: zod.string().optional().describe("The full name of the user."),
173
- email: zod.email().optional().describe("The email address of the user."),
174
- preferred_username: zod.string().optional().describe("The preferred username of the user."),
175
- picture: zod.url().optional().describe("The URL of the user's profile picture."),
176
- given_name: zod.string().optional().describe("The given name of the user."),
177
- family_name: zod.string().optional().describe("The family name of the user.")
178
- });
179
- /**
180
11
  * @summary Create user
181
12
  */
182
13
  const createUserQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
@@ -185,20 +16,48 @@ const CreateUserQueryParams = zod.strictObject({
185
16
  project_id: zod.string().regex(createUserQueryProjectIdRegExp).describe("The unique identifier of the project"),
186
17
  team_id: zod.string().regex(createUserQueryTeamIdRegExp).optional().describe("The unique identifier of the team")
187
18
  });
188
- const CreateUserBody = zod.record(zod.string(), zod.unknown()).describe("A user represents an individual identity in the system. It can be used to \nrepresent a human user, but also a service account or any other type of \nidentity. The content of a user is determined by the configured schema for \nusers, this is only a base schema.\n");
19
+ const createUserBodyIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
20
+ const CreateUserBody = zod.object({
21
+ id: zod.string().regex(createUserBodyIdRegExp).optional(),
22
+ metadata: zod.object({
23
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
24
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
25
+ status: zod.enum([
26
+ "active",
27
+ "suspended",
28
+ "deactivated",
29
+ "pending_purge"
30
+ ]).describe("The status of the user."),
31
+ lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team roster: it decides who may deprovision the user, not\nwhich teams the user collaborates in. The roster is its own paginated\nresource — `GET /users/{user_id}/teams`.\n")
32
+ }).optional()
33
+ }).describe("A user represents an individual identity in the system. It can be used to \nrepresent a human user, but also a service account or any other type of \nidentity. The content of a user is determined by the configured schema for \nusers, this is only a base schema.\n\nThe server assigns the resource primary key (`id`) on create. Clients must\nnot send `id` in the create body; it is returned in the create response.\n");
189
34
  /**
190
35
  * @summary List users
191
36
  */
192
- const listUsersQueryOffsetDefault = 0;
193
- const listUsersQueryOffsetMin = 0;
194
37
  const listUsersQueryLimitDefault = 20;
195
38
  const listUsersQueryLimitMax = 100;
196
39
  const ListUsersQueryParams = zod.strictObject({
197
- offset: zod.number().min(0).default(0).describe("Number of items to skip before returning results."),
198
- limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return.")
40
+ limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
41
+ page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n")
199
42
  });
200
- const ListUsersResponseItem = zod.record(zod.string(), zod.unknown());
201
- const ListUsersResponse = zod.array(ListUsersResponseItem);
43
+ const listUsersResponseUsersItemIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
44
+ const ListUsersResponse = zod.object({
45
+ users: zod.array(zod.object({
46
+ id: zod.string().regex(listUsersResponseUsersItemIdRegExp).optional(),
47
+ metadata: zod.object({
48
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
49
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
50
+ status: zod.enum([
51
+ "active",
52
+ "suspended",
53
+ "deactivated",
54
+ "pending_purge"
55
+ ]).describe("The status of the user."),
56
+ lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team roster: it decides who may deprovision the user, not\nwhich teams the user collaborates in. The roster is its own paginated\nresource — `GET /users/{user_id}/teams`.\n")
57
+ }).optional()
58
+ }).describe("A user represents an individual identity in the system. It can be used to \nrepresent a human user, but also a service account or any other type of \nidentity. The content of a user is determined by the configured schema for \nusers, this is only a base schema.\n\nThe server assigns the resource primary key (`id`) on create. Clients must\nnot send `id` in the create body; it is returned in the create response.\n")),
59
+ next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
60
+ }).describe("Paginated list of users.");
202
61
  /**
203
62
  * @summary Get user by ID
204
63
  */
@@ -210,7 +69,49 @@ const GetUserByIDQueryParams = zod.strictObject({
210
69
  project_id: zod.string().regex(getUserByIDQueryProjectIdRegExp).describe("The unique identifier of the project"),
211
70
  team_id: zod.string().regex(getUserByIDQueryTeamIdRegExp).optional().describe("The unique identifier of the team")
212
71
  });
213
- const GetUserByIDResponse = zod.record(zod.string(), zod.unknown());
72
+ const getUserByIDResponseIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
73
+ const GetUserByIDResponse = zod.object({
74
+ id: zod.string().regex(getUserByIDResponseIdRegExp).optional(),
75
+ metadata: zod.object({
76
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
77
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
78
+ status: zod.enum([
79
+ "active",
80
+ "suspended",
81
+ "deactivated",
82
+ "pending_purge"
83
+ ]).describe("The status of the user."),
84
+ lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team roster: it decides who may deprovision the user, not\nwhich teams the user collaborates in. The roster is its own paginated\nresource — `GET /users/{user_id}/teams`.\n")
85
+ }).optional()
86
+ }).describe("A user represents an individual identity in the system. It can be used to \nrepresent a human user, but also a service account or any other type of \nidentity. The content of a user is determined by the configured schema for \nusers, this is only a base schema.\n\nThe server assigns the resource primary key (`id`) on create. Clients must\nnot send `id` in the create body; it is returned in the create response.\n");
87
+ /**
88
+ * @summary Delete user by ID
89
+ */
90
+ const deleteUserByIDPathUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
91
+ const DeleteUserByIDParams = zod.object({ user_id: zod.string().regex(deleteUserByIDPathUserIdRegExp) });
92
+ const deleteUserByIDQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
93
+ const DeleteUserByIDQueryParams = zod.strictObject({ project_id: zod.string().regex(deleteUserByIDQueryProjectIdRegExp).describe("The unique identifier of the project") });
94
+ /**
95
+ * @summary List user passkeys
96
+ */
97
+ const listUserPasskeysPathUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
98
+ const ListUserPasskeysParams = zod.object({ user_id: zod.string().regex(listUserPasskeysPathUserIdRegExp) });
99
+ const listUserPasskeysQueryLimitDefault = 20;
100
+ const listUserPasskeysQueryLimitMax = 100;
101
+ const listUserPasskeysQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
102
+ const ListUserPasskeysQueryParams = zod.strictObject({
103
+ limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
104
+ page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n"),
105
+ project_id: zod.string().regex(listUserPasskeysQueryProjectIdRegExp).describe("The unique identifier of the project")
106
+ });
107
+ const ListUserPasskeysResponse = zod.object({
108
+ passkeys: zod.array(zod.object({
109
+ id: zod.string().describe("The unique identifier of the passkey."),
110
+ name: zod.string().describe("The name of the passkey."),
111
+ created_at: zod.iso.datetime({ offset: true }).describe("The timestamp when the passkey was created.")
112
+ })),
113
+ next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
114
+ }).describe("Response containing the user's passkeys.");
214
115
  /**
215
116
  * @summary Set user password
216
117
  */
@@ -220,19 +121,68 @@ const setUserPasswordQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z
220
121
  const SetUserPasswordQueryParams = zod.strictObject({ project_id: zod.string().regex(setUserPasswordQueryProjectIdRegExp).describe("The unique identifier of the project") });
221
122
  const SetUserPasswordBody = zod.object({
222
123
  password: zod.string().describe("The new password for the user."),
223
- isChangeRequired: zod.boolean().optional().describe("Whether the user is required to change their password on the next login.\nIf not provided, it will default to false.\n")
124
+ is_change_required: zod.boolean().optional().describe("Whether the user is required to change their password on the next login.\nIf not provided, it will default to false.\n")
224
125
  }).describe("Request to update the user's password.");
225
126
  /**
127
+ * The user's team roster, ordered by team name. Each entry carries the
128
+ team's name, so a client renders a page without resolving ids one by one.
129
+
130
+ This is the N:N roster and it is not lifecycle ownership: the single team
131
+ that owns the user's lifecycle is reported as `metadata.lifecycle_owner_team_id`
132
+ on the user read endpoints. Memberships the user was removed from are not
133
+ returned.
134
+
135
+ * @summary List the teams a user belongs to
136
+ */
137
+ const listUserTeamsPathUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
138
+ const ListUserTeamsParams = zod.object({ user_id: zod.string().regex(listUserTeamsPathUserIdRegExp) });
139
+ const listUserTeamsQueryLimitDefault = 20;
140
+ const listUserTeamsQueryLimitMax = 100;
141
+ const listUserTeamsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
142
+ const ListUserTeamsQueryParams = zod.strictObject({
143
+ limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
144
+ page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n"),
145
+ project_id: zod.string().regex(listUserTeamsQueryProjectIdRegExp).describe("The unique identifier of the project")
146
+ });
147
+ const ListUserTeamsResponse = zod.object({
148
+ teams: zod.array(zod.object({
149
+ id: zod.string().describe("The unique identifier of the team."),
150
+ name: zod.string().describe("The name of the team."),
151
+ membership_status: zod.enum([
152
+ "pending",
153
+ "active",
154
+ "inactive"
155
+ ]).describe("The user's participation state on this team. Memberships the user was\nremoved from are not returned.\n"),
156
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the user joined this team."),
157
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when this membership was last changed.")
158
+ }).describe("One entry of a user's team roster: a team the user belongs to, with the\nmembership's participation state. The team's `name` travels with the entry, so\na page renders without a follow-up `POST /teams/query` per row.\n\nRoster membership is not lifecycle ownership. A user can belong to many teams\nwhile still owning their own lifecycle — that single owning team is reported\nas `metadata.lifecycle_owner_team_id` on the user itself.\n")),
159
+ next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
160
+ }).describe("Paginated list of the teams a user belongs to.");
161
+ /**
226
162
  * @summary Get my user information
227
163
  */
228
- const GetMyUserResponse = zod.record(zod.string(), zod.unknown());
164
+ const getMyUserResponseIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
165
+ const GetMyUserResponse = zod.object({
166
+ id: zod.string().regex(getMyUserResponseIdRegExp).optional(),
167
+ metadata: zod.object({
168
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the user was created."),
169
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the user was last updated."),
170
+ status: zod.enum([
171
+ "active",
172
+ "suspended",
173
+ "deactivated",
174
+ "pending_purge"
175
+ ]).describe("The status of the user."),
176
+ lifecycle_owner_team_id: zod.union([zod.string(), zod.null()]).optional().describe("The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team roster: it decides who may deprovision the user, not\nwhich teams the user collaborates in. The roster is its own paginated\nresource — `GET /users/{user_id}/teams`.\n")
177
+ }).optional()
178
+ }).describe("A user represents an individual identity in the system. It can be used to \nrepresent a human user, but also a service account or any other type of \nidentity. The content of a user is determined by the configured schema for \nusers, this is only a base schema.\n\nThe server assigns the resource primary key (`id`) on create. Clients must\nnot send `id` in the create body; it is returned in the create response.\n");
229
179
  /**
230
180
  * Resolves a flow definition based on purpose + audience context and returns
231
181
  the first capability step. Creates a new session implicitly unless
232
182
  `session_id` is provided (for step-up / reauth on an existing session).
233
183
 
234
184
  The response contains an `id` field — the flow handle. Use it as the path
235
- parameter for all subsequent `/flow/{id}/submit` and `/flow/{id}/event` calls.
185
+ parameter for all subsequent `/flow/{id}/submit` calls.
236
186
 
237
187
  The response also sets an encrypted `HttpOnly` cookie (`_zflow`) containing
238
188
  the flow's orchestration state (current step, collected data, history).
@@ -285,6 +235,7 @@ const getFlowStepResponseStepActionsDefault = [];
285
235
  const getFlowStepResponseStepGatesDefault = {};
286
236
  const getFlowStepResponseStepSsoProvidersDefault = [];
287
237
  const getFlowStepResponseBrandingLayoutDefault = `centered`;
238
+ const getFlowStepResponseBrandingLiquidTemplateMax = 131072;
288
239
  const GetFlowStepResponse = zod.object({
289
240
  id: zod.string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
290
241
  session_id: zod.string().describe("Underlying session ID. Stable across all stacked flows."),
@@ -295,7 +246,7 @@ const GetFlowStepResponse = zod.object({
295
246
  title_key: zod.string().optional().describe("Localization key for the step heading."),
296
247
  description_key: zod.union([zod.string(), zod.null()]).optional().describe("Localization key for explanatory text.")
297
248
  }).optional().describe("Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n"),
298
- error: zod.union([zod.string(), zod.null()]).optional().describe("Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `\"; \"`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other failures\ncarry a verbatim diagnostic token instead (e.g. `user_not_found`,\n`auth_attempt.password_invalid`).\n"),
249
+ error: zod.union([zod.string(), zod.null()]).optional().describe("Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `\"; \"`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`); a\nnon-`error.` payload is an outcome token (e.g. `user_not_found`)\nthat clients keep verbatim.\n"),
299
250
  complete: zod.enum(["redirect", "show"]).optional().describe("Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n"),
300
251
  redirect_url: zod.url().optional().describe("URL to navigate to (e.g., SSO provider redirect)."),
301
252
  fields: zod.array(zod.object({
@@ -356,12 +307,12 @@ const GetFlowStepResponse = zod.object({
356
307
  }).optional().describe("A pending authentication challenge issued by the server. Present when the\nflow engine has issued a challenge via auth_attempts (e.g., after the user\nsubmits `action: \"passkey\"`). The `<zl-passkey>` component reads this and\ntriggers the appropriate WebAuthn ceremony.\n\nThe challenge is NOT present on the initial step — it appears only after\nthe user explicitly selects a ceremony-based action.\n")
357
308
  }).describe("A step contains ordered capability arrays: what to collect (fields),\nwhat the user can do (actions), and what security gates must be satisfied (gates).\nThe LiquidJS template in `branding.liquid_template` iterates these arrays in order\nand builds name-keyed indexes locally for lookup.\n"),
358
309
  branding: zod.object({
359
- layout: zod.enum(["centered", "split"]).default(getFlowStepResponseBrandingLayoutDefault).describe("Layout preset selector. The default.liquid master template uses this\nto branch into layout variants. Customers who eject the template\ncan ignore this field entirely.\n"),
360
- liquid_template: zod.string().optional().describe("The LiquidJS template string for rendering this step. The orchestrator\nparses this template, injects the capability dictionaries as context,\nand renders the output HTML into its Shadow DOM.\n"),
310
+ layout: zod.enum(["centered", "split"]).default(getFlowStepResponseBrandingLayoutDefault).describe("Layout preset selector. The default.liquid master template uses this\nto branch into layout variants. Customers who eject the template\ncan ignore this field entirely; it also serves as the degrade target\nwhen a custom template fails component-side validation.\n"),
311
+ liquid_template: zod.string().max(getFlowStepResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template string for rendering this step. The orchestrator\nparses this template, injects the capability dictionaries as context,\nand renders the output HTML into its Shadow DOM.\n"),
361
312
  logo_url: zod.url().optional().describe("Team logo URL."),
362
- font_url: zod.url().optional().describe("Custom font URL (e.g., Google Fonts CSS)."),
313
+ font_url: zod.url().optional().describe("Custom font stylesheet URL (e.g., Google Fonts CSS). Read-only in\nv1: `POST /branding` rejects a non-empty value, because the login\ncomponent loads this stylesheet at document level (shadow-scoped\n`@font-face` rules never register faces) and an arbitrary URL would\ngrant `branding.write` page-wide CSS control over the embedding\napplication. Safe tenant font delivery is an ADR 040 follow-up;\nuntil then, load fonts from the embedding page.\n"),
363
314
  hero_url: zod.url().optional().describe("Hero/background image URL (used by split layout).")
364
- }).optional().describe("Resolved branding configuration. Inherited from the app team project\nhierarchy at flow creation time (most specific wins). Read-only projection —\nbranding is configured via the Team/App Branding API, not the Flow API.\n"),
315
+ }).optional().describe("Branding configuration. Appears in two places with one shape:\n\n- On flow responses as a read-only projection: the server resolves the\n latest branding revision for the project per step response (falling\n back to built-in defaults when none is stored). Branding is configured\n via the Branding API / `zitadel apply`, not the Flow API.\n- As the request body of `POST /branding`, which publishes the same\n shape as a new immutable revision (see ADR 040).\n"),
365
316
  redirect_uri: zod.url().optional().describe("Present when `step.complete` is `redirect`."),
366
317
  handoff_token: zod.string().optional().describe("Short-lived, audience-bound token produced on flow completion.\nExchange it for a session via `POST /sessions/exchange`.\nOnly present when `step.complete` is set.\n"),
367
318
  handoff_token_expires_at: zod.iso.datetime({ offset: true }).optional().describe("Expiry timestamp for `handoff_token`. Only present when\n`handoff_token` is set.\n")
@@ -420,6 +371,7 @@ const submitFlowStepResponseStepActionsDefault = [];
420
371
  const submitFlowStepResponseStepGatesDefault = {};
421
372
  const submitFlowStepResponseStepSsoProvidersDefault = [];
422
373
  const submitFlowStepResponseBrandingLayoutDefault = `centered`;
374
+ const submitFlowStepResponseBrandingLiquidTemplateMax = 131072;
423
375
  const SubmitFlowStepResponse = zod.object({
424
376
  id: zod.string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
425
377
  session_id: zod.string().describe("Underlying session ID. Stable across all stacked flows."),
@@ -430,7 +382,7 @@ const SubmitFlowStepResponse = zod.object({
430
382
  title_key: zod.string().optional().describe("Localization key for the step heading."),
431
383
  description_key: zod.union([zod.string(), zod.null()]).optional().describe("Localization key for explanatory text.")
432
384
  }).optional().describe("Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n"),
433
- error: zod.union([zod.string(), zod.null()]).optional().describe("Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `\"; \"`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other failures\ncarry a verbatim diagnostic token instead (e.g. `user_not_found`,\n`auth_attempt.password_invalid`).\n"),
385
+ error: zod.union([zod.string(), zod.null()]).optional().describe("Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `\"; \"`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`); a\nnon-`error.` payload is an outcome token (e.g. `user_not_found`)\nthat clients keep verbatim.\n"),
434
386
  complete: zod.enum(["redirect", "show"]).optional().describe("Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n"),
435
387
  redirect_url: zod.url().optional().describe("URL to navigate to (e.g., SSO provider redirect)."),
436
388
  fields: zod.array(zod.object({
@@ -491,29 +443,17 @@ const SubmitFlowStepResponse = zod.object({
491
443
  }).optional().describe("A pending authentication challenge issued by the server. Present when the\nflow engine has issued a challenge via auth_attempts (e.g., after the user\nsubmits `action: \"passkey\"`). The `<zl-passkey>` component reads this and\ntriggers the appropriate WebAuthn ceremony.\n\nThe challenge is NOT present on the initial step — it appears only after\nthe user explicitly selects a ceremony-based action.\n")
492
444
  }).describe("A step contains ordered capability arrays: what to collect (fields),\nwhat the user can do (actions), and what security gates must be satisfied (gates).\nThe LiquidJS template in `branding.liquid_template` iterates these arrays in order\nand builds name-keyed indexes locally for lookup.\n"),
493
445
  branding: zod.object({
494
- layout: zod.enum(["centered", "split"]).default(submitFlowStepResponseBrandingLayoutDefault).describe("Layout preset selector. The default.liquid master template uses this\nto branch into layout variants. Customers who eject the template\ncan ignore this field entirely.\n"),
495
- liquid_template: zod.string().optional().describe("The LiquidJS template string for rendering this step. The orchestrator\nparses this template, injects the capability dictionaries as context,\nand renders the output HTML into its Shadow DOM.\n"),
446
+ layout: zod.enum(["centered", "split"]).default(submitFlowStepResponseBrandingLayoutDefault).describe("Layout preset selector. The default.liquid master template uses this\nto branch into layout variants. Customers who eject the template\ncan ignore this field entirely; it also serves as the degrade target\nwhen a custom template fails component-side validation.\n"),
447
+ liquid_template: zod.string().max(submitFlowStepResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template string for rendering this step. The orchestrator\nparses this template, injects the capability dictionaries as context,\nand renders the output HTML into its Shadow DOM.\n"),
496
448
  logo_url: zod.url().optional().describe("Team logo URL."),
497
- font_url: zod.url().optional().describe("Custom font URL (e.g., Google Fonts CSS)."),
449
+ font_url: zod.url().optional().describe("Custom font stylesheet URL (e.g., Google Fonts CSS). Read-only in\nv1: `POST /branding` rejects a non-empty value, because the login\ncomponent loads this stylesheet at document level (shadow-scoped\n`@font-face` rules never register faces) and an arbitrary URL would\ngrant `branding.write` page-wide CSS control over the embedding\napplication. Safe tenant font delivery is an ADR 040 follow-up;\nuntil then, load fonts from the embedding page.\n"),
498
450
  hero_url: zod.url().optional().describe("Hero/background image URL (used by split layout).")
499
- }).optional().describe("Resolved branding configuration. Inherited from the app team project\nhierarchy at flow creation time (most specific wins). Read-only projection —\nbranding is configured via the Team/App Branding API, not the Flow API.\n"),
451
+ }).optional().describe("Branding configuration. Appears in two places with one shape:\n\n- On flow responses as a read-only projection: the server resolves the\n latest branding revision for the project per step response (falling\n back to built-in defaults when none is stored). Branding is configured\n via the Branding API / `zitadel apply`, not the Flow API.\n- As the request body of `POST /branding`, which publishes the same\n shape as a new immutable revision (see ADR 040).\n"),
500
452
  redirect_uri: zod.url().optional().describe("Present when `step.complete` is `redirect`."),
501
453
  handoff_token: zod.string().optional().describe("Short-lived, audience-bound token produced on flow completion.\nExchange it for a session via `POST /sessions/exchange`.\nOnly present when `step.complete` is set.\n"),
502
454
  handoff_token_expires_at: zod.iso.datetime({ offset: true }).optional().describe("Expiry timestamp for `handoff_token`. Only present when\n`handoff_token` is set.\n")
503
455
  });
504
456
  /**
505
- * Submits telemetry or fingerprint data from the frontend.
506
- Does not advance the state machine. Used for risk evaluation.
507
-
508
- * @summary Submit client-side event
509
- */
510
- const SubmitFlowEventParams = zod.object({ id: zod.string().describe("Flow ID returned by POST /flow or the latest POST /flow/{id}/submit.\nUsed to look up the correct flow state from the encrypted cookie,\nwhich can hold multiple concurrent flows. May change between responses\nwhen a flow pivot or pop occurs — always use the `id` from the latest response.\n") });
511
- const SubmitFlowEventBody = zod.object({
512
- session_token: zod.string().optional().describe("Reserved for future rotation. The sealed `_zflow` cookie carries the flow state today."),
513
- type: zod.enum(["fingerprint", "telemetry"]),
514
- payload: zod.record(zod.string(), zod.unknown()).optional().describe("Event payload (fingerprint hash, timing data, etc.).")
515
- });
516
- /**
517
457
  * Starts a new authentication attempt. This is the entry point for the auth_attempts state machine.
518
458
 
519
459
  An attempt is an ephemeral (15-minute TTL) state machine that drives a single authentication round.
@@ -525,11 +465,11 @@ also include session_id to add factors to an existing session.
525
465
  * @summary Create a new authentication attempt
526
466
  */
527
467
  const createAuthAttemptBodyProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
528
- const createAuthAttemptBodySessionIdOneRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
468
+ const createAuthAttemptBodySessionIdOneRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
529
469
  const CreateAuthAttemptBody = zod.object({
530
470
  project_id: zod.string().regex(createAuthAttemptBodyProjectIdRegExp),
531
471
  challenge_nonce: zod.string().optional().describe("Origin-bound, single-use nonce obtained from `POST /bootstrap/challenge`.\nBinds the request to the browser that initiated the flow, preventing\ncross-origin replay.\n"),
532
- session_id: zod.union([zod.string().regex(createAuthAttemptBodySessionIdOneRegExp).describe("Unique identifier for this session."), zod.null()]).optional().describe("Optional. If provided, this attempt adds factors to an existing session (step-up auth).\nIf omitted, a new session is created implicitly on successful handoff.\n")
472
+ session_id: zod.union([zod.string().regex(createAuthAttemptBodySessionIdOneRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."), zod.null()]).optional().describe("Optional. If provided, this attempt adds factors to an existing session (step-up auth).\nIf omitted, a new session is created implicitly on successful handoff.\n")
533
473
  }).describe("Request to create a new authentication attempt");
534
474
  /**
535
475
  * Polls the current state of an authentication attempt.
@@ -542,16 +482,16 @@ a federated IdP callback or a device flow).
542
482
 
543
483
  * @summary Get authentication attempt state
544
484
  */
545
- const getAuthAttemptPathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
485
+ const getAuthAttemptPathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^att_[a-zA-Z0-9_-]+$");
546
486
  const GetAuthAttemptParams = zod.object({ attempt_id: zod.string().regex(getAuthAttemptPathAttemptIdRegExp).describe("The unique identifier of the authentication attempt") });
547
- const getAuthAttemptResponseAttemptIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
487
+ const getAuthAttemptResponseAttemptIdRegExp = /* @__PURE__ */ new RegExp("^att_[a-zA-Z0-9_-]+$");
548
488
  const getAuthAttemptResponseProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
549
- const getAuthAttemptResponseSessionIdOneRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
489
+ const getAuthAttemptResponseSessionIdOneRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
550
490
  const getAuthAttemptResponseUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
551
491
  const getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
552
- const getAuthAttemptResponseChallengesItemChallengeIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
492
+ const getAuthAttemptResponseChallengesItemChallengeIdRegExp = /* @__PURE__ */ new RegExp("^ch_[a-zA-Z0-9_-]+$");
553
493
  const GetAuthAttemptResponse = zod.object({
554
- attempt_id: zod.string().regex(getAuthAttemptResponseAttemptIdRegExp).describe("Unique identifier for this authentication attempt"),
494
+ attempt_id: zod.string().regex(getAuthAttemptResponseAttemptIdRegExp).describe("Unique identifier for this authentication attempt (dialect-minted prefixed opaque string)."),
555
495
  project_id: zod.string().regex(getAuthAttemptResponseProjectIdRegExp),
556
496
  state: zod.enum([
557
497
  "in_progress",
@@ -559,7 +499,7 @@ const GetAuthAttemptResponse = zod.object({
559
499
  "failed",
560
500
  "expired"
561
501
  ]).describe("Overall state of the authentication attempt:\n- `in_progress`: factors are still being collected; continue issuing challenges.\n- `completed`: all required factors have been verified; the attempt is ready for handoff.\n- `failed`: the attempt has failed (e.g. too many failed proofs) and cannot be continued.\n- `expired`: the 15-minute TTL has been exceeded.\n"),
562
- session_id: zod.union([zod.string().regex(getAuthAttemptResponseSessionIdOneRegExp).describe("Unique identifier for this session."), zod.null()]).optional().describe("The session being authenticated into. Either newly created or passed in on POST.\nFor step-up (re-auth), this is the existing session_id provided on creation.\n"),
502
+ session_id: zod.union([zod.string().regex(getAuthAttemptResponseSessionIdOneRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."), zod.null()]).optional().describe("The session being authenticated into. Either newly created or passed in on POST.\nFor step-up (re-auth), this is the existing session_id provided on creation.\n"),
563
503
  user_id: zod.union([zod.string().regex(getAuthAttemptResponseUserIdOneRegExp), zod.null()]).optional().describe("The user ID, if known at this point in the flow.\nNull until an identifier challenge has been verified.\n"),
564
504
  required_factors: zod.array(zod.enum([
565
505
  "identifier",
@@ -586,7 +526,7 @@ const GetAuthAttemptResponse = zod.object({
586
526
  ]).optional().describe("Method-specific factor metadata. Structure depends on the `method` field.\n- `identifier`: includes user_id\n- `password`: no additional data\n- `passkey`: includes credential details and verification flags\n")
587
527
  }).describe("A successfully verified authentication factor with verification metadata.\nMethod-specific details are included in the `payload` field.\n")).optional().describe("The factors that have been successfully verified in this attempt so far.\nEach item includes method-specific metadata in the payload field.\n\nThe flow engine uses verified_at timestamps to enforce time-based policies, such as\nrequiring password verification within the last 5 minutes for step-up auth to\naccess sensitive operations.\n\nA factor appears here once its challenge reaches `verified` state.\n"),
588
528
  challenges: zod.array(zod.object({
589
- challenge_id: zod.string().regex(getAuthAttemptResponseChallengesItemChallengeIdRegExp).describe("Unique identifier for this challenge"),
529
+ challenge_id: zod.string().regex(getAuthAttemptResponseChallengesItemChallengeIdRegExp).describe("Unique identifier for this challenge (dialect-minted prefixed opaque string)."),
590
530
  method: zod.enum([
591
531
  "identifier",
592
532
  "password",
@@ -630,7 +570,7 @@ by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
630
570
 
631
571
  * @summary Issue a factor challenge
632
572
  */
633
- const issueChallengePathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
573
+ const issueChallengePathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^att_[a-zA-Z0-9_-]+$");
634
574
  const IssueChallengeParams = zod.object({ attempt_id: zod.string().regex(issueChallengePathAttemptIdRegExp).describe("The unique identifier of the authentication attempt") });
635
575
  const IssueChallengeBody = zod.object({
636
576
  method: zod.enum([
@@ -662,8 +602,8 @@ The attempt moves to the next pending challenge or completes if all required fac
662
602
 
663
603
  * @summary Verify a factor proof
664
604
  */
665
- const verifyChallengeProofPathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
666
- const verifyChallengeProofPathChallengeIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
605
+ const verifyChallengeProofPathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^att_[a-zA-Z0-9_-]+$");
606
+ const verifyChallengeProofPathChallengeIdRegExp = /* @__PURE__ */ new RegExp("^ch_[a-zA-Z0-9_-]+$");
667
607
  const VerifyChallengeProofParams = zod.object({
668
608
  attempt_id: zod.string().regex(verifyChallengeProofPathAttemptIdRegExp).describe("The unique identifier of the authentication attempt"),
669
609
  challenge_id: zod.string().regex(verifyChallengeProofPathChallengeIdRegExp).describe("The unique identifier of this challenge.")
@@ -674,14 +614,14 @@ const VerifyChallengeProofBody = zod.union([
674
614
  zod.object({ password: zod.string().describe("The password being verified") }).describe("Proof for `password` method"),
675
615
  zod.object({ passkey: zod.object({ assertion: zod.record(zod.string(), zod.unknown()).describe("The WebAuthn AssertionResponse object") }).describe("WebAuthn passkey assertion") }).describe("Proof for `passkey` method")
676
616
  ]).describe("Proof for verifying a factor challenge.\n\nThe exact format depends on the challenge method. The proof object should contain\nonly the credential/code/assertion relevant to the challenge method being verified.\n");
677
- const verifyChallengeProofResponseAttemptIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
617
+ const verifyChallengeProofResponseAttemptIdRegExp = /* @__PURE__ */ new RegExp("^att_[a-zA-Z0-9_-]+$");
678
618
  const verifyChallengeProofResponseProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
679
- const verifyChallengeProofResponseSessionIdOneRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
619
+ const verifyChallengeProofResponseSessionIdOneRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
680
620
  const verifyChallengeProofResponseUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
681
621
  const verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
682
- const verifyChallengeProofResponseChallengesItemChallengeIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
622
+ const verifyChallengeProofResponseChallengesItemChallengeIdRegExp = /* @__PURE__ */ new RegExp("^ch_[a-zA-Z0-9_-]+$");
683
623
  const VerifyChallengeProofResponse = zod.object({
684
- attempt_id: zod.string().regex(verifyChallengeProofResponseAttemptIdRegExp).describe("Unique identifier for this authentication attempt"),
624
+ attempt_id: zod.string().regex(verifyChallengeProofResponseAttemptIdRegExp).describe("Unique identifier for this authentication attempt (dialect-minted prefixed opaque string)."),
685
625
  project_id: zod.string().regex(verifyChallengeProofResponseProjectIdRegExp),
686
626
  state: zod.enum([
687
627
  "in_progress",
@@ -689,7 +629,7 @@ const VerifyChallengeProofResponse = zod.object({
689
629
  "failed",
690
630
  "expired"
691
631
  ]).describe("Overall state of the authentication attempt:\n- `in_progress`: factors are still being collected; continue issuing challenges.\n- `completed`: all required factors have been verified; the attempt is ready for handoff.\n- `failed`: the attempt has failed (e.g. too many failed proofs) and cannot be continued.\n- `expired`: the 15-minute TTL has been exceeded.\n"),
692
- session_id: zod.union([zod.string().regex(verifyChallengeProofResponseSessionIdOneRegExp).describe("Unique identifier for this session."), zod.null()]).optional().describe("The session being authenticated into. Either newly created or passed in on POST.\nFor step-up (re-auth), this is the existing session_id provided on creation.\n"),
632
+ session_id: zod.union([zod.string().regex(verifyChallengeProofResponseSessionIdOneRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."), zod.null()]).optional().describe("The session being authenticated into. Either newly created or passed in on POST.\nFor step-up (re-auth), this is the existing session_id provided on creation.\n"),
693
633
  user_id: zod.union([zod.string().regex(verifyChallengeProofResponseUserIdOneRegExp), zod.null()]).optional().describe("The user ID, if known at this point in the flow.\nNull until an identifier challenge has been verified.\n"),
694
634
  required_factors: zod.array(zod.enum([
695
635
  "identifier",
@@ -716,7 +656,7 @@ const VerifyChallengeProofResponse = zod.object({
716
656
  ]).optional().describe("Method-specific factor metadata. Structure depends on the `method` field.\n- `identifier`: includes user_id\n- `password`: no additional data\n- `passkey`: includes credential details and verification flags\n")
717
657
  }).describe("A successfully verified authentication factor with verification metadata.\nMethod-specific details are included in the `payload` field.\n")).optional().describe("The factors that have been successfully verified in this attempt so far.\nEach item includes method-specific metadata in the payload field.\n\nThe flow engine uses verified_at timestamps to enforce time-based policies, such as\nrequiring password verification within the last 5 minutes for step-up auth to\naccess sensitive operations.\n\nA factor appears here once its challenge reaches `verified` state.\n"),
718
658
  challenges: zod.array(zod.object({
719
- challenge_id: zod.string().regex(verifyChallengeProofResponseChallengesItemChallengeIdRegExp).describe("Unique identifier for this challenge"),
659
+ challenge_id: zod.string().regex(verifyChallengeProofResponseChallengesItemChallengeIdRegExp).describe("Unique identifier for this challenge (dialect-minted prefixed opaque string)."),
720
660
  method: zod.enum([
721
661
  "identifier",
722
662
  "password",
@@ -764,7 +704,7 @@ The handoff token is:
764
704
 
765
705
  * @summary Complete authentication and create handoff token
766
706
  */
767
- const createHandoffPathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
707
+ const createHandoffPathAttemptIdRegExp = /* @__PURE__ */ new RegExp("^att_[a-zA-Z0-9_-]+$");
768
708
  const CreateHandoffParams = zod.object({ attempt_id: zod.string().regex(createHandoffPathAttemptIdRegExp).describe("The unique identifier of the authentication attempt") });
769
709
  const CreateHandoffHeader = zod.strictObject({ "Idempotency-Key": zod.string().optional().describe("Optional retry key for safe retries of the call.\nRetries carrying the same key within the call window return the cached\npayload without creating a new resource. See details in the endpoint description.\n") });
770
710
  const CreateHandoffResponse = zod.object({
@@ -777,8 +717,8 @@ const CreateHandoffResponse = zod.object({
777
717
  const createProjectBodySeedDefaultsDefault = true;
778
718
  const CreateProjectBody = zod.object({
779
719
  name: zod.string().describe("The name of the project."),
780
- previewOrigins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
781
- seedDefaults: zod.boolean().default(true).describe("Whether the server should provision fallback default user schema and flow\nresources for the project. CLI-managed projects set this to false and\nupload their local .zitadel config files through the schema and flow APIs.\n")
720
+ preview_origins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
721
+ seed_defaults: zod.boolean().default(true).describe("Whether the server should provision fallback default user schema and flow\nresources for the project. CLI-managed projects set this to false and\nupload their local .zitadel config files through the schema and flow APIs.\n")
782
722
  });
783
723
  /**
784
724
  * @summary Query projects
@@ -787,13 +727,13 @@ const queryProjectsBodyLimitDefault = 20;
787
727
  const queryProjectsBodyLimitMax = 100;
788
728
  const QueryProjectsBody = zod.object({
789
729
  limit: zod.number().min(1).max(100).default(20),
790
- page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to retrieve the next page of results."),
730
+ page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n"),
791
731
  sorting: zod.object({
792
- field: zod.enum(["name", "createdAt"]),
732
+ field: zod.enum(["created_at"]),
793
733
  direction: zod.enum(["asc", "desc"])
794
734
  }).optional(),
795
735
  filter: zod.array(zod.object({
796
- field: zod.enum(["name", "createdAt"]),
736
+ field: zod.enum(["created_at"]),
797
737
  value: zod.union([
798
738
  zod.string(),
799
739
  zod.number(),
@@ -816,11 +756,11 @@ const QueryProjectsResponse = zod.object({
816
756
  projects: zod.array(zod.object({
817
757
  id: zod.string().describe("The unique identifier of the project."),
818
758
  name: zod.string().describe("The name of the project."),
819
- previewOrigins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
820
- createdAt: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
821
- updatedAt: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
759
+ preview_origins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
760
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
761
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
822
762
  }).describe("The current state of a project.")),
823
- next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
763
+ next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n")
824
764
  }).describe("Paginated list of projects.");
825
765
  /**
826
766
  * Returns the current state of a project.
@@ -832,9 +772,9 @@ const GetProjectParams = zod.object({ project_id: zod.string().regex(getProjectP
832
772
  const GetProjectResponse = zod.object({
833
773
  id: zod.string().describe("The unique identifier of the project."),
834
774
  name: zod.string().describe("The name of the project."),
835
- previewOrigins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
836
- createdAt: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
837
- updatedAt: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
775
+ preview_origins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
776
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
777
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
838
778
  }).describe("The current state of a project.");
839
779
  /**
840
780
  * Updates the state of a project.
@@ -847,11 +787,60 @@ const PatchProjectBody = zod.object({ name: zod.union([zod.null(), zod.string()]
847
787
  const PatchProjectResponse = zod.object({
848
788
  id: zod.string().describe("The unique identifier of the project."),
849
789
  name: zod.string().describe("The name of the project."),
850
- previewOrigins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
851
- createdAt: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
852
- updatedAt: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
790
+ preview_origins: zod.array(zod.string()).optional().describe("Origins which are allowed for previewing and testing the project.\n"),
791
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the project was created."),
792
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the project was last updated.")
853
793
  }).describe("The current state of a project.");
854
794
  /**
795
+ * Starts a claim challenge for an unclaimed project. Authenticated by the
796
+ project secret, this mints a single-use, short-lived challenge and returns
797
+ the `claim_url` the developer opens in a browser to complete the claim,
798
+ together with the `challenge_id` the CLI polls with. The exact expiry is
799
+ carried by `expires_at` on the response.
800
+
801
+ * @summary Initialize a project claim
802
+ */
803
+ const initClaimPathProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
804
+ const InitClaimParams = zod.object({ project_id: zod.string().regex(initClaimPathProjectIdRegExp) });
805
+ /**
806
+ * Polled by the CLI while a browser completes the claim. Authorized by the
807
+ project secret that initiated the challenge. Returns `pending`, or
808
+ `completed` with the owning team, the claim timestamp, and the dashboard
809
+ URL once the browser leg has finished.
810
+
811
+ * @summary Get claim status
812
+ */
813
+ const getClaimStatusPathProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
814
+ const GetClaimStatusParams = zod.object({ project_id: zod.string().regex(getClaimStatusPathProjectIdRegExp) });
815
+ const getClaimStatusQueryChallengeIdRegExp = /* @__PURE__ */ new RegExp("^ch_[a-zA-Z0-9_-]+$");
816
+ const GetClaimStatusQueryParams = zod.strictObject({ challenge_id: zod.string().regex(getClaimStatusQueryChallengeIdRegExp).describe("The challenge minted by the matching claim init.") });
817
+ const getClaimStatusResponseTwoTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
818
+ const GetClaimStatusResponse = zod.union([zod.object({ status: zod.enum(["pending"]).describe("The claim has not completed yet.") }).describe("A claim challenge that is still awaiting the browser leg."), zod.object({
819
+ status: zod.enum(["completed"]).describe("The claim has completed."),
820
+ team_id: zod.string().regex(getClaimStatusResponseTwoTeamIdRegExp),
821
+ claimed_at: zod.iso.datetime({ offset: true }).describe("The time when the project was claimed."),
822
+ dashboard_url: zod.url().describe("The dashboard URL for the owning team.")
823
+ }).describe("A completed claim. Carries the owning team, when the claim landed, and the\ndashboard where it can be managed, so a generated client can rely on those\nfields being present whenever `status` is `completed`.\n")]).describe("The state of a claim challenge. While pending it carries only `status`; once\ncompleted it also carries the owning team, the claim timestamp, and the\ndashboard URL. Modelled as discriminated variants so a `pending` response can\nnever carry stale completion fields and a `completed` response always carries\nthem.\n");
824
+ /**
825
+ * Called by the browser after the developer authenticates on the claim page.
826
+ Authenticated by the `__nextgen_session` cookie, it attaches the project to
827
+ the developer's personal team using the `challenge_id` from the claim URL as
828
+ its single-use, browser-safe authorization.
829
+
830
+ * @summary Complete a project claim
831
+ */
832
+ const completeClaimPathProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
833
+ const CompleteClaimParams = zod.object({ project_id: zod.string().regex(completeClaimPathProjectIdRegExp) });
834
+ const completeClaimBodyChallengeIdRegExp = /* @__PURE__ */ new RegExp("^ch_[a-zA-Z0-9_-]+$");
835
+ const CompleteClaimBody = zod.object({ challenge_id: zod.string().regex(completeClaimBodyChallengeIdRegExp).describe("Unique identifier for this challenge (dialect-minted prefixed opaque string).") }).describe("The request to complete a project claim.");
836
+ const completeClaimResponseProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
837
+ const completeClaimResponseTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
838
+ const CompleteClaimResponse = zod.object({
839
+ project_id: zod.string().regex(completeClaimResponseProjectIdRegExp),
840
+ team_id: zod.string().regex(completeClaimResponseTeamIdRegExp),
841
+ claimed_at: zod.iso.datetime({ offset: true }).describe("The time when the project was claimed.")
842
+ }).describe("The result of a completed project claim.");
843
+ /**
855
844
  * Creates an anonymous session shell with no user and no factors (`state: building`).
856
845
 
857
846
  This is optional — an `auth_attempt` will create a session implicitly if none is provided.
@@ -860,8 +849,16 @@ Use this explicitly when you want to:
860
849
  can be correlated with the eventual authenticated session from the start.
861
850
  - Track anonymous state (bot detection, device fingerprint) that survives until authentication.
862
851
 
863
- The returned `session_token` authorises GET and DELETE on this session.
864
- It is superseded when a handoff exchange completes — clients must replace it at that point.
852
+ Creating a session is an app-plane operation on the project credential
853
+ (`session.write`). The returned `session_token` is a session credential for the
854
+ end-user client, not a management scope: it is delivered as the
855
+ `__nextgen_session` cookie and authorises the self-service operations
856
+ `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
857
+ by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
858
+ are operator endpoints and require `session.read` / `session.delete` instead.
859
+
860
+ The `session_token` is superseded when a handoff exchange completes — clients must
861
+ replace it at that point.
865
862
 
866
863
  Anonymous sessions expire aggressively (10-minute TTL). The TTL resets to the configured
867
864
  full session TTL when the first authentication factor is written via a completing `auth_attempt`.
@@ -877,42 +874,61 @@ const CreateSessionBody = zod.object({
877
874
  }).optional().describe("Optional user agent / device context to attach to the session.\nUseful for correlating telemetry and device signals with the eventual\nauthenticated session from the start.\n")
878
875
  }).describe("Request to create an anonymous session shell.");
879
876
  /**
880
- * Returns a paginated list of sessions for a project.
881
- Requires a project service key (OAuth2 client credentials).
877
+ * Returns the sessions of a project, paginated with a cursor.
878
+ Sessions of every lifecycle state are returned; each carries its `state`.
879
+ Requires `session.read` permission.
882
880
 
883
- * @summary List sessions
881
+ * @summary Query sessions
884
882
  */
885
- const listSessionsQueryLimitDefault = 20;
886
- const listSessionsQueryLimitMax = 100;
887
- const listSessionsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
888
- const listSessionsQueryUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
889
- const ListSessionsQueryParams = zod.strictObject({
890
- limit: zod.number().min(1).max(100).default(20).describe("Maximum number of items to return."),
891
- page_token: zod.string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n"),
892
- project_id: zod.string().regex(listSessionsQueryProjectIdRegExp).describe("The unique identifier of the project"),
893
- state: zod.enum([
894
- "building",
895
- "active",
896
- "expired",
897
- "revoked"
898
- ]).optional().describe("Filter sessions by lifecycle state."),
899
- user_id: zod.string().regex(listSessionsQueryUserIdRegExp).optional().describe("Filter sessions by user.")
900
- });
901
- const listSessionsResponseSessionsItemSessionIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
902
- const listSessionsResponseSessionsItemProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
903
- const listSessionsResponseSessionsItemUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
904
- const listSessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
905
- const ListSessionsResponse = zod.object({
883
+ const querySessionsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
884
+ const QuerySessionsQueryParams = zod.strictObject({ project_id: zod.string().regex(querySessionsQueryProjectIdRegExp).describe("The unique identifier of the project") });
885
+ const querySessionsBodyLimitDefault = 20;
886
+ const querySessionsBodyLimitMax = 100;
887
+ const QuerySessionsBody = zod.object({
888
+ limit: zod.number().min(1).max(100).default(20),
889
+ page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to retrieve the next page of results."),
890
+ sorting: zod.object({
891
+ field: zod.enum(["created_at", "user_id"]).describe("Field to sort sessions by. Only stored columns are sortable: the keyset\ncursor holds the last row's sort values, so a computed value such as\n`state` would skip or duplicate rows between pages.\n"),
892
+ direction: zod.enum(["asc", "desc"])
893
+ }).optional(),
894
+ filter: zod.array(zod.object({
895
+ field: zod.enum([
896
+ "created_at",
897
+ "user_id",
898
+ "state"
899
+ ]).describe("Field to filter sessions by:\n- `created_at`: RFC3339 timestamp\n- `user_id`: user id\n- `state`: one of `building`, `active`, `expired`\n"),
900
+ value: zod.union([
901
+ zod.string(),
902
+ zod.number(),
903
+ zod.boolean(),
904
+ zod.null()
905
+ ]).optional().describe("Filter-value specifies which values can be filtered by a query endpoint. This\nis a union of types. When a value is specified which is not assignable to the\nfield which is being filtered, a 400 error will be returned.\n"),
906
+ operation: zod.enum([
907
+ "equals",
908
+ "not_equals",
909
+ "contains",
910
+ "not_contains",
911
+ "less_than",
912
+ "less_than_or_equal",
913
+ "greater_than",
914
+ "greater_than_or_equal"
915
+ ]).describe("Filter operation defines the operations which can be used when filtering on a\nquery endpoint.\n")
916
+ })).optional().describe("Filter criteria for querying sessions.")
917
+ }).describe("Request to query the sessions of a project.");
918
+ const querySessionsResponseSessionsItemSessionIdRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
919
+ const querySessionsResponseSessionsItemProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
920
+ const querySessionsResponseSessionsItemUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
921
+ const querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
922
+ const QuerySessionsResponse = zod.object({
906
923
  sessions: zod.array(zod.object({
907
- session_id: zod.string().regex(listSessionsResponseSessionsItemSessionIdRegExp).describe("Unique identifier for this session."),
908
- project_id: zod.string().regex(listSessionsResponseSessionsItemProjectIdRegExp),
924
+ session_id: zod.string().regex(querySessionsResponseSessionsItemSessionIdRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."),
925
+ project_id: zod.string().regex(querySessionsResponseSessionsItemProjectIdRegExp),
909
926
  state: zod.enum([
910
927
  "building",
911
928
  "active",
912
- "expired",
913
- "revoked"
914
- ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n- `revoked`: explicitly revoked via DELETE\n"),
915
- user_id: zod.union([zod.string().regex(listSessionsResponseSessionsItemUserIdOneRegExp), zod.null()]).optional().describe("The authenticated user. Null for anonymous sessions and until the `user`\nfactor has been verified through an `auth_attempt`.\n"),
929
+ "expired"
930
+ ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n"),
931
+ user_id: zod.union([zod.string().regex(querySessionsResponseSessionsItemUserIdOneRegExp), zod.null()]).optional().describe("The authenticated user. Null for anonymous sessions and until the `user`\nfactor has been verified through an `auth_attempt`.\n"),
916
932
  name: zod.string().optional().describe("Human-readable name of the authenticated user, resolved from the\nconventional user-schema properties: `name` when defined, otherwise\nthe given and family name parts joined — `givenName`/`familyName`\n(the shipped presets' spelling) or `given_name`/`family_name`. Only\npresent on reads that hydrate the user's identity\n(`GET /sessions/me`) and only when the session has an authenticated\nuser whose schema carries those properties; clients fall back to\n`email`, then `user_id`.\n"),
917
933
  email: zod.string().optional().describe("Email address of the authenticated user, resolved from the\nconventional `email` user-schema property. Only present on reads\nthat hydrate the user's identity (`GET /sessions/me`) and only when\nthe session has an authenticated user whose schema carries that\nproperty.\n"),
918
934
  factors: zod.array(zod.object({
@@ -923,7 +939,7 @@ const ListSessionsResponse = zod.object({
923
939
  ]).describe("An authentication factor method."),
924
940
  verified_at: zod.iso.datetime({ offset: true }).describe("When this factor was successfully verified"),
925
941
  payload: zod.union([
926
- zod.object({ user_id: zod.string().regex(listSessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
942
+ zod.object({ user_id: zod.string().regex(querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp) }).describe("Identifier-specific factor metadata"),
927
943
  zod.object({}).describe("Password authentication has no additional metadata beyond the base factor fields"),
928
944
  zod.object({
929
945
  credential_id: zod.string().describe("The credential ID that was used"),
@@ -973,20 +989,19 @@ const ExchangeHandoffBody = zod.object({
973
989
  handoff_token: zod.string().describe("The one-time handoff token minted by `POST /auth_attempts/{id}/handoff`.\nSingle-use — replaying it after a successful exchange returns `410 Gone`.\n"),
974
990
  ttl: zod.string().optional().describe("Optional session lifetime after exchange as an ISO-8601 duration. When omitted, the server\nuses the configured default. Must not exceed the configured maximum.\n")
975
991
  }).describe("Request to exchange a handoff token for a session and session_token.");
976
- const exchangeHandoffResponseSessionSessionIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
992
+ const exchangeHandoffResponseSessionSessionIdRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
977
993
  const exchangeHandoffResponseSessionProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
978
994
  const exchangeHandoffResponseSessionUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
979
995
  const exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
980
996
  const ExchangeHandoffResponse = zod.object({
981
997
  session: zod.object({
982
- session_id: zod.string().regex(exchangeHandoffResponseSessionSessionIdRegExp).describe("Unique identifier for this session."),
998
+ session_id: zod.string().regex(exchangeHandoffResponseSessionSessionIdRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."),
983
999
  project_id: zod.string().regex(exchangeHandoffResponseSessionProjectIdRegExp),
984
1000
  state: zod.enum([
985
1001
  "building",
986
1002
  "active",
987
- "expired",
988
- "revoked"
989
- ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n- `revoked`: explicitly revoked via DELETE\n"),
1003
+ "expired"
1004
+ ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n"),
990
1005
  user_id: zod.union([zod.string().regex(exchangeHandoffResponseSessionUserIdOneRegExp), zod.null()]).optional().describe("The authenticated user. Null for anonymous sessions and until the `user`\nfactor has been verified through an `auth_attempt`.\n"),
991
1006
  name: zod.string().optional().describe("Human-readable name of the authenticated user, resolved from the\nconventional user-schema properties: `name` when defined, otherwise\nthe given and family name parts joined — `givenName`/`familyName`\n(the shipped presets' spelling) or `given_name`/`family_name`. Only\npresent on reads that hydrate the user's identity\n(`GET /sessions/me`) and only when the session has an authenticated\nuser whose schema carries those properties; clients fall back to\n`email`, then `user_id`.\n"),
992
1007
  email: zod.string().optional().describe("Email address of the authenticated user, resolved from the\nconventional `email` user-schema property. Only present on reads\nthat hydrate the user's identity (`GET /sessions/me`) and only when\nthe session has an authenticated user whose schema carries that\nproperty.\n"),
@@ -1030,23 +1045,22 @@ against the same `session_id`) to restore a dropped assurance level.
1030
1045
 
1031
1046
  * @summary Get session state
1032
1047
  */
1033
- const getSessionPathSessionIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1048
+ const getSessionPathSessionIdRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
1034
1049
  const GetSessionParams = zod.object({ session_id: zod.string().regex(getSessionPathSessionIdRegExp).describe("The unique identifier of the session.") });
1035
1050
  const getSessionQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1036
1051
  const GetSessionQueryParams = zod.strictObject({ project_id: zod.string().regex(getSessionQueryProjectIdRegExp).describe("The unique identifier of the project") });
1037
- const getSessionResponseSessionIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1052
+ const getSessionResponseSessionIdRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
1038
1053
  const getSessionResponseProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1039
1054
  const getSessionResponseUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
1040
1055
  const getSessionResponseFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
1041
1056
  const GetSessionResponse = zod.object({
1042
- session_id: zod.string().regex(getSessionResponseSessionIdRegExp).describe("Unique identifier for this session."),
1057
+ session_id: zod.string().regex(getSessionResponseSessionIdRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."),
1043
1058
  project_id: zod.string().regex(getSessionResponseProjectIdRegExp),
1044
1059
  state: zod.enum([
1045
1060
  "building",
1046
1061
  "active",
1047
- "expired",
1048
- "revoked"
1049
- ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n- `revoked`: explicitly revoked via DELETE\n"),
1062
+ "expired"
1063
+ ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n"),
1050
1064
  user_id: zod.union([zod.string().regex(getSessionResponseUserIdOneRegExp), zod.null()]).optional().describe("The authenticated user. Null for anonymous sessions and until the `user`\nfactor has been verified through an `auth_attempt`.\n"),
1051
1065
  name: zod.string().optional().describe("Human-readable name of the authenticated user, resolved from the\nconventional user-schema properties: `name` when defined, otherwise\nthe given and family name parts joined — `givenName`/`familyName`\n(the shipped presets' spelling) or `given_name`/`family_name`. Only\npresent on reads that hydrate the user's identity\n(`GET /sessions/me`) and only when the session has an authenticated\nuser whose schema carries those properties; clients fall back to\n`email`, then `user_id`.\n"),
1052
1066
  email: zod.string().optional().describe("Email address of the authenticated user, resolved from the\nconventional `email` user-schema property. Only present on reads\nthat hydrate the user's identity (`GET /sessions/me`) and only when\nthe session has an authenticated user whose schema carries that\nproperty.\n"),
@@ -1079,14 +1093,19 @@ const GetSessionResponse = zod.object({
1079
1093
  expires_at: zod.iso.datetime({ offset: true }).describe("When this session expires. Short TTL (10 min) for anonymous sessions;\nreset to the full configured session TTL once the first authentication factor is written.\n")
1080
1094
  }).describe("The current state of a session.\n\nA session is the durable post-auth primitive. It accumulates verified authentication\nfactors and exposes `assurance_levels[]` — the set of assurance profiles its current\nfactors satisfy. Sessions are read-only from the client's perspective: factors flow\nin through `auth_attempts`.\n");
1081
1095
  /**
1082
- * Revokes the session immediately (`state: revoked`). This is the logout operation.
1096
+ * Permanently deletes the session, terminating it immediately.
1083
1097
 
1084
- The session_token issued at creation (or superseded by a handoff exchange) is required.
1085
- After revocation, any tokens derived from this session are invalidated.
1098
+ This is the operator revoke path and requires the `session.delete` scope on a
1099
+ project-bound credential. End-user logout with the `__nextgen_session` cookie is
1100
+ `DELETE /sessions/me` (`nextgenSession` scheme).
1101
+
1102
+ Idempotent: deleting a session that does not exist (or was already deleted)
1103
+ still returns 204. After deletion, any tokens derived from the session are
1104
+ invalidated.
1086
1105
 
1087
1106
  * @summary Revoke session
1088
1107
  */
1089
- const revokeSessionPathSessionIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1108
+ const revokeSessionPathSessionIdRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
1090
1109
  const RevokeSessionParams = zod.object({ session_id: zod.string().regex(revokeSessionPathSessionIdRegExp).describe("The unique identifier of the session.") });
1091
1110
  const revokeSessionQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1092
1111
  const RevokeSessionQueryParams = zod.strictObject({ project_id: zod.string().regex(revokeSessionQueryProjectIdRegExp).describe("The unique identifier of the project") });
@@ -1100,19 +1119,18 @@ against the same `session_id`) to restore a dropped assurance level.
1100
1119
 
1101
1120
  * @summary Get my session state
1102
1121
  */
1103
- const getMySessionResponseSessionIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1122
+ const getMySessionResponseSessionIdRegExp = /* @__PURE__ */ new RegExp("^sess_[a-zA-Z0-9_-]+$");
1104
1123
  const getMySessionResponseProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1105
1124
  const getMySessionResponseUserIdOneRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
1106
1125
  const getMySessionResponseFactorsItemPayloadOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
1107
1126
  const GetMySessionResponse = zod.object({
1108
- session_id: zod.string().regex(getMySessionResponseSessionIdRegExp).describe("Unique identifier for this session."),
1127
+ session_id: zod.string().regex(getMySessionResponseSessionIdRegExp).describe("Unique identifier for this session (dialect-minted prefixed opaque string)."),
1109
1128
  project_id: zod.string().regex(getMySessionResponseProjectIdRegExp),
1110
1129
  state: zod.enum([
1111
1130
  "building",
1112
1131
  "active",
1113
- "expired",
1114
- "revoked"
1115
- ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n- `revoked`: explicitly revoked via DELETE\n"),
1132
+ "expired"
1133
+ ]).describe("Current lifecycle state of the session:\n- `building`: has a user factor but is still gathering authentication factors\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: TTL elapsed\n"),
1116
1134
  user_id: zod.union([zod.string().regex(getMySessionResponseUserIdOneRegExp), zod.null()]).optional().describe("The authenticated user. Null for anonymous sessions and until the `user`\nfactor has been verified through an `auth_attempt`.\n"),
1117
1135
  name: zod.string().optional().describe("Human-readable name of the authenticated user, resolved from the\nconventional user-schema properties: `name` when defined, otherwise\nthe given and family name parts joined — `givenName`/`familyName`\n(the shipped presets' spelling) or `given_name`/`family_name`. Only\npresent on reads that hydrate the user's identity\n(`GET /sessions/me`) and only when the session has an authenticated\nuser whose schema carries those properties; clients fall back to\n`email`, then `user_id`.\n"),
1118
1136
  email: zod.string().optional().describe("Email address of the authenticated user, resolved from the\nconventional `email` user-schema property. Only present on reads\nthat hydrate the user's identity (`GET /sessions/me`) and only when\nthe session has an authenticated user whose schema carries that\nproperty.\n"),
@@ -1145,10 +1163,12 @@ const GetMySessionResponse = zod.object({
1145
1163
  expires_at: zod.iso.datetime({ offset: true }).describe("When this session expires. Short TTL (10 min) for anonymous sessions;\nreset to the full configured session TTL once the first authentication factor is written.\n")
1146
1164
  }).describe("The current state of a session.\n\nA session is the durable post-auth primitive. It accumulates verified authentication\nfactors and exposes `assurance_levels[]` — the set of assurance profiles its current\nfactors satisfy. Sessions are read-only from the client's perspective: factors flow\nin through `auth_attempts`.\n");
1147
1165
  /**
1148
- * Create a new schema. The schema definition must include a unique $id field,
1149
- which will be used to identify the schema in future requests. The $id must
1150
- be a valid URI and should ideally point to the location where the schema
1151
- can be accessed.
1166
+ * Create a new schema. The optional `$id` field is the JSON Schema document
1167
+ URI used to identify the schema in future requests (GitOps-stable identity,
1168
+ not a free-form resource primary key). When `$id` is omitted, the server
1169
+ generates a `sch_*` URL. When provided, `$id` must be unique within the
1170
+ project and should ideally be a valid URI pointing at where the schema can
1171
+ be accessed.
1152
1172
 
1153
1173
  The schema can either be a concrete schema, e.g. a user schema, or a
1154
1174
  schema-url which will be resolved by the server.
@@ -1206,9 +1226,9 @@ const CreateSchemaBody = zod.union([zod.object({
1206
1226
  "x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
1207
1227
  "x-editable": zod.boolean().default(true).describe("Whether this property is editable by the user or not"),
1208
1228
  "x-sensitive": zod.boolean().default(false).describe("Whether this property contains sensitive information or not"),
1209
- "x-mfa": zod.boolean().default(false).describe("Whether this property is used for multi-factor authentication or not"),
1210
- properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is the property name and the value is the property schema")
1211
- }).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
1229
+ "x-mfa": zod.boolean().default(false).describe("Whether this property is used for multi-factor authentication or not\n"),
1230
+ properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
1231
+ }).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n\nA few properties are reserved:\n- id: is used to return the id of the user \n- metadata: is used to embed metadata of the user, like creation date, \n status,... in a return object\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
1212
1232
  }).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n"), zod.object({
1213
1233
  kind: zod.literal("schema-url").describe("Discriminator value for a user schema create request."),
1214
1234
  url: zod.url().describe("URL to the schema definition.")
@@ -1231,7 +1251,7 @@ const ListSchemasQueryParams = zod.strictObject({
1231
1251
  });
1232
1252
  const ListSchemasResponseItem = zod.object({
1233
1253
  id: zod.string().describe("The unique identifier for this schema."),
1234
- createdAt: zod.iso.datetime({ offset: true })
1254
+ created_at: zod.iso.datetime({ offset: true })
1235
1255
  });
1236
1256
  const ListSchemasResponse = zod.array(ListSchemasResponseItem);
1237
1257
  /**
@@ -1290,9 +1310,9 @@ const GetSchemaByIdResponse = zod.object({
1290
1310
  "x-claim": zod.union([zod.string(), zod.null()]).optional().describe("The claim name for this property, if applicable"),
1291
1311
  "x-editable": zod.boolean().default(true).describe("Whether this property is editable by the user or not"),
1292
1312
  "x-sensitive": zod.boolean().default(false).describe("Whether this property contains sensitive information or not"),
1293
- "x-mfa": zod.boolean().default(false).describe("Whether this property is used for multi-factor authentication or not"),
1294
- properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is the property name and the value is the property schema")
1295
- }).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
1313
+ "x-mfa": zod.boolean().default(false).describe("Whether this property is used for multi-factor authentication or not\n"),
1314
+ properties: zod.record(zod.string(), zod.unknown()).optional().describe("A map of additional properties for the user definition, where the key is\nthe property name and the value is the property schema.\n")
1315
+ }).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n\nA few properties are reserved:\n- id: is used to return the id of the user \n- metadata: is used to embed metadata of the user, like creation date, \n status,... in a return object\n")).optional().describe("A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n")
1296
1316
  }).describe("This schema is missing `\"allOf\": [{\"$ref\": \"https://json-schema.org/draft/2020-12/schema\"}],`. \nThis is done because a lot of code generators cannot handle that.\n");
1297
1317
  /**
1298
1318
  * Creates a new flow definition.
@@ -1577,32 +1597,61 @@ const DeleteFlowDefinitionParams = zod.object({ id: zod.string().describe("The i
1577
1597
  const deleteFlowDefinitionQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1578
1598
  const DeleteFlowDefinitionQueryParams = zod.strictObject({ project_id: zod.string().regex(deleteFlowDefinitionQueryProjectIdRegExp).describe("The project id to filter by.") });
1579
1599
  /**
1580
- * Activate a flow definition by transitioning it from a `draft` state to an `active` state.
1581
- 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.
1582
-
1583
- * @summary Activate a flow definition by ID.
1584
- */
1585
- const ActivateFlowDefinitionParams = zod.object({ id: zod.string().describe("The id returned by the POST /flow_definitions endpoint.\n") });
1586
- const activateFlowDefinitionQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1587
- const ActivateFlowDefinitionQueryParams = zod.strictObject({ project_id: zod.string().regex(activateFlowDefinitionQueryProjectIdRegExp).describe("The unique identifier of the project") });
1588
- /**
1589
- * Deactivates a flow definition in the `active` state by transitioning it to the `draft` state.
1590
- Flow definitions in `draft` state cannot be used to start new flows. Existing flows that use the deactivated flow definition must gracefully handle this.
1591
- 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.
1592
-
1593
- * @summary Deactivate a flow definition by ID.
1594
- */
1595
- const DeactivateFlowDefinitionParams = zod.object({ id: zod.string().describe("The id returned by the POST /flow_definitions endpoint.\n") });
1596
- const deactivateFlowDefinitionQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1597
- const DeactivateFlowDefinitionQueryParams = zod.strictObject({ project_id: zod.string().regex(deactivateFlowDefinitionQueryProjectIdRegExp).describe("The unique identifier of the project") });
1598
- /**
1599
1600
  * @summary Create team
1600
1601
  */
1601
1602
  const createTeamQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1602
1603
  const CreateTeamQueryParams = zod.strictObject({ project_id: zod.string().regex(createTeamQueryProjectIdRegExp).describe("The unique identifier of the project") });
1603
- const CreateTeamBody = zod.looseObject({});
1604
+ const createTeamBodyNameMax = 200;
1605
+ const CreateTeamBody = zod.object({ name: zod.string().min(1).max(200).describe("The name of the team. Must be unique within the project.") });
1604
1606
  /**
1605
- * Returns the current state of a team.
1607
+ * Returns the teams of a project, paginated with a cursor.
1608
+ Teams of every lifecycle status are returned; each carries its `status`.
1609
+
1610
+ * @summary Query teams
1611
+ */
1612
+ const queryTeamsQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1613
+ const QueryTeamsQueryParams = zod.strictObject({ project_id: zod.string().regex(queryTeamsQueryProjectIdRegExp).describe("The unique identifier of the project") });
1614
+ const queryTeamsBodyLimitDefault = 20;
1615
+ const queryTeamsBodyLimitMax = 100;
1616
+ const QueryTeamsBody = zod.object({
1617
+ limit: zod.number().min(1).max(100).default(20),
1618
+ page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n"),
1619
+ sorting: zod.object({
1620
+ field: zod.enum(["created_at"]),
1621
+ direction: zod.enum(["asc", "desc"])
1622
+ }).optional(),
1623
+ filter: zod.array(zod.object({
1624
+ field: zod.enum(["created_at"]),
1625
+ value: zod.union([
1626
+ zod.string(),
1627
+ zod.number(),
1628
+ zod.boolean(),
1629
+ zod.null()
1630
+ ]).optional().describe("Filter-value specifies which values can be filtered by a query endpoint. This\nis a union of types. When a value is specified which is not assignable to the\nfield which is being filtered, a 400 error will be returned.\n"),
1631
+ operation: zod.enum([
1632
+ "equals",
1633
+ "not_equals",
1634
+ "contains",
1635
+ "not_contains",
1636
+ "less_than",
1637
+ "less_than_or_equal",
1638
+ "greater_than",
1639
+ "greater_than_or_equal"
1640
+ ]).describe("Filter operation defines the operations which can be used when filtering on a\nquery endpoint.\n")
1641
+ })).optional().describe("Filter criteria for querying teams.")
1642
+ }).describe("Request to query the teams of a project.");
1643
+ const QueryTeamsResponse = zod.object({
1644
+ teams: zod.array(zod.object({
1645
+ id: zod.string().describe("The unique identifier of the team."),
1646
+ name: zod.string().describe("The name of the team."),
1647
+ status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
1648
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
1649
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
1650
+ }).describe("Details of a team.")),
1651
+ next_page_token: zod.union([zod.string(), zod.null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n")
1652
+ }).describe("Paginated list of teams.");
1653
+ /**
1654
+ * Returns a Team by its id.
1606
1655
 
1607
1656
  * @summary Get team
1608
1657
  */
@@ -1612,10 +1661,106 @@ const getTeamQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$
1612
1661
  const GetTeamQueryParams = zod.strictObject({ project_id: zod.string().regex(getTeamQueryProjectIdRegExp).describe("The unique identifier of the project") });
1613
1662
  const GetTeamResponse = zod.object({
1614
1663
  id: zod.string().describe("The unique identifier of the team."),
1615
- createdAt: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
1616
- updatedAt: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
1617
- }).describe("The current state of a team.");
1664
+ name: zod.string().describe("The name of the team."),
1665
+ status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
1666
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
1667
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
1668
+ }).describe("Details of a team.");
1669
+ /**
1670
+ * Deactivates the team.
1671
+
1672
+ The team is tombstoned rather than erased: it stays readable through
1673
+ getTeam with status `deactivated`. Its memberships are removed and the
1674
+ users whose lifecycle it owns are deactivated with it.
1675
+
1676
+ The request is idempotent. Deleting a team that is already deactivated
1677
+ or doesn't exist succeeds without changing anything.
1678
+
1679
+ * @summary Delete team
1680
+ */
1681
+ const deleteTeamPathTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1682
+ const DeleteTeamParams = zod.object({ team_id: zod.string().regex(deleteTeamPathTeamIdRegExp) });
1683
+ const deleteTeamQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1684
+ const DeleteTeamQueryParams = zod.strictObject({ project_id: zod.string().regex(deleteTeamQueryProjectIdRegExp).describe("The unique identifier of the project") });
1685
+ /**
1686
+ * Update team. Only active teams can be updated.
1687
+
1688
+ * @summary Update team
1689
+ */
1690
+ const updateTeamPathTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1691
+ const UpdateTeamParams = zod.object({ team_id: zod.string().regex(updateTeamPathTeamIdRegExp) });
1692
+ const updateTeamQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1693
+ const UpdateTeamQueryParams = zod.strictObject({ project_id: zod.string().regex(updateTeamQueryProjectIdRegExp).describe("The unique identifier of the project") });
1694
+ const updateTeamBodyNameMax = 200;
1695
+ const UpdateTeamBody = zod.object({ name: zod.string().min(1).max(200).optional().describe("The name of the team. Must be unique within the project.") });
1696
+ const UpdateTeamResponse = zod.object({
1697
+ id: zod.string().describe("The unique identifier of the team."),
1698
+ name: zod.string().describe("The name of the team."),
1699
+ status: zod.enum(["active", "deactivated"]).describe("The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n"),
1700
+ created_at: zod.iso.datetime({ offset: true }).describe("The time when the team was created."),
1701
+ updated_at: zod.iso.datetime({ offset: true }).describe("The time when the team was last updated.")
1702
+ }).describe("Details of a team.");
1703
+ /**
1704
+ * Publishes a new immutable branding revision for the project. Branding
1705
+ revisions cannot be updated or deleted; every edit publishes a new
1706
+ revision, and flow responses resolve the latest revision per project
1707
+ (see ADR 040).
1708
+
1709
+ The `liquid_template` is validated lexically on save (size, encoding,
1710
+ banned patterns such as `<script>` tags, inline event handlers, and the
1711
+ `| raw` filter). Authoritative LiquidJS validation runs at authoring
1712
+ time via `zitadel plan` / `zitadel apply`.
1713
+
1714
+ * @summary Publish a new branding revision
1715
+ */
1716
+ const createBrandingQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1717
+ const CreateBrandingQueryParams = zod.strictObject({ project_id: zod.string().regex(createBrandingQueryProjectIdRegExp).describe("The unique identifier of the project") });
1718
+ const createBrandingBodyLayoutDefault = `centered`;
1719
+ const createBrandingBodyLiquidTemplateMax = 131072;
1720
+ const CreateBrandingBody = zod.object({
1721
+ layout: zod.enum(["centered", "split"]).default(createBrandingBodyLayoutDefault).describe("Layout preset selector. The default.liquid master template uses this\nto branch into layout variants. Customers who eject the template\ncan ignore this field entirely; it also serves as the degrade target\nwhen a custom template fails component-side validation.\n"),
1722
+ liquid_template: zod.string().max(createBrandingBodyLiquidTemplateMax).optional().describe("The LiquidJS template string for rendering this step. The orchestrator\nparses this template, injects the capability dictionaries as context,\nand renders the output HTML into its Shadow DOM.\n"),
1723
+ logo_url: zod.url().optional().describe("Team logo URL."),
1724
+ font_url: zod.url().optional().describe("Custom font stylesheet URL (e.g., Google Fonts CSS). Read-only in\nv1: `POST /branding` rejects a non-empty value, because the login\ncomponent loads this stylesheet at document level (shadow-scoped\n`@font-face` rules never register faces) and an arbitrary URL would\ngrant `branding.write` page-wide CSS control over the embedding\napplication. Safe tenant font delivery is an ADR 040 follow-up;\nuntil then, load fonts from the embedding page.\n"),
1725
+ hero_url: zod.url().optional().describe("Hero/background image URL (used by split layout).")
1726
+ }).describe("Branding configuration. Appears in two places with one shape:\n\n- On flow responses as a read-only projection: the server resolves the\n latest branding revision for the project per step response (falling\n back to built-in defaults when none is stored). Branding is configured\n via the Branding API / `zitadel apply`, not the Flow API.\n- As the request body of `POST /branding`, which publishes the same\n shape as a new immutable revision (see ADR 040).\n");
1727
+ /**
1728
+ * Lists branding revisions for the project, newest first, capped at the
1729
+ 100 most recent. The first entry is the revision flow responses
1730
+ currently resolve. Deliberately unpaginated in v1 — list endpoints
1731
+ gain a real query mechanism together (ADR 031); advertising pagination
1732
+ parameters the server ignores would be worse than none.
1733
+
1734
+ * @summary List branding revisions
1735
+ */
1736
+ const listBrandingQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1737
+ const ListBrandingQueryParams = zod.strictObject({ project_id: zod.string().regex(listBrandingQueryProjectIdRegExp).describe("The unique identifier of the project") });
1738
+ const ListBrandingResponseItem = zod.object({
1739
+ id: zod.string().describe("The unique identifier of this branding revision."),
1740
+ created_at: zod.iso.datetime({ offset: true }).describe("When this revision was published.")
1741
+ });
1742
+ const ListBrandingResponse = zod.array(ListBrandingResponseItem);
1743
+ /**
1744
+ * Retrieves a single branding revision, including its stored configuration.
1745
+ * @summary Get a branding revision by ID
1746
+ */
1747
+ const GetBrandingByIdParams = zod.object({ id: zod.string() });
1748
+ const getBrandingByIdQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
1749
+ const GetBrandingByIdQueryParams = zod.strictObject({ project_id: zod.string().regex(getBrandingByIdQueryProjectIdRegExp).describe("The unique identifier of the project") });
1750
+ const getBrandingByIdResponseBrandingLayoutDefault = `centered`;
1751
+ const getBrandingByIdResponseBrandingLiquidTemplateMax = 131072;
1752
+ const GetBrandingByIdResponse = zod.object({
1753
+ id: zod.string().describe("The unique identifier of this branding revision."),
1754
+ created_at: zod.iso.datetime({ offset: true }).describe("When this revision was published."),
1755
+ branding: zod.object({
1756
+ layout: zod.enum(["centered", "split"]).default(getBrandingByIdResponseBrandingLayoutDefault).describe("Layout preset selector. The default.liquid master template uses this\nto branch into layout variants. Customers who eject the template\ncan ignore this field entirely; it also serves as the degrade target\nwhen a custom template fails component-side validation.\n"),
1757
+ liquid_template: zod.string().max(getBrandingByIdResponseBrandingLiquidTemplateMax).optional().describe("The LiquidJS template string for rendering this step. The orchestrator\nparses this template, injects the capability dictionaries as context,\nand renders the output HTML into its Shadow DOM.\n"),
1758
+ logo_url: zod.url().optional().describe("Team logo URL."),
1759
+ font_url: zod.url().optional().describe("Custom font stylesheet URL (e.g., Google Fonts CSS). Read-only in\nv1: `POST /branding` rejects a non-empty value, because the login\ncomponent loads this stylesheet at document level (shadow-scoped\n`@font-face` rules never register faces) and an arbitrary URL would\ngrant `branding.write` page-wide CSS control over the embedding\napplication. Safe tenant font delivery is an ADR 040 follow-up;\nuntil then, load fonts from the embedding page.\n"),
1760
+ hero_url: zod.url().optional().describe("Hero/background image URL (used by split layout).")
1761
+ }).describe("Branding configuration. Appears in two places with one shape:\n\n- On flow responses as a read-only projection: the server resolves the\n latest branding revision for the project per step response (falling\n back to built-in defaults when none is stored). Branding is configured\n via the Branding API / `zitadel apply`, not the Flow API.\n- As the request body of `POST /branding`, which publishes the same\n shape as a new immutable revision (see ADR 040).\n")
1762
+ }).describe("A stored branding revision. `branding` echoes the canonical stored\nconfiguration so clients (e.g. the CLI sync engine) can reconcile local\nfiles with the server's stored state.\n");
1618
1763
  //#endregion
1619
- export { ActivateFlowDefinitionParams, ActivateFlowDefinitionQueryParams, AuthorizeDeviceQueryParams, AuthorizeDeviceResponse, AuthorizeGetQueryParams, CreateAuthAttemptBody, CreateFlowBody, CreateFlowDefinitionBody, CreateHandoffHeader, CreateHandoffParams, CreateHandoffResponse, CreateProjectBody, CreateSchemaBody, CreateSchemaQueryParams, CreateSessionBody, CreateTeamBody, CreateTeamQueryParams, CreateUserBody, CreateUserQueryParams, DeactivateFlowDefinitionParams, DeactivateFlowDefinitionQueryParams, DeleteFlowDefinitionParams, DeleteFlowDefinitionQueryParams, EndSessionQueryParams, ExchangeHandoffBody, ExchangeHandoffHeader, ExchangeHandoffQueryParams, ExchangeHandoffResponse, GetAuthAttemptParams, GetAuthAttemptResponse, GetFlowDefinitionParams, GetFlowDefinitionQueryParams, GetFlowDefinitionResponse, GetFlowStepParams, GetFlowStepResponse, GetKeysResponse, GetMySessionResponse, GetMyUserResponse, GetOpenIDConfigurationResponse, GetProjectParams, GetProjectResponse, GetSchemaByIdParams, GetSchemaByIdQueryParams, GetSchemaByIdResponse, GetSessionParams, GetSessionQueryParams, GetSessionResponse, GetTeamParams, GetTeamQueryParams, GetTeamResponse, GetTokenResponse, GetUserByIDParams, GetUserByIDQueryParams, GetUserByIDResponse, GetUserInfoResponse, IntrospectResponse, IssueChallengeBody, IssueChallengeParams, ListFlowDefinitionsQueryParams, ListFlowDefinitionsResponse, ListSchemasQueryParams, ListSchemasResponse, ListSchemasResponseItem, ListSessionsQueryParams, ListSessionsResponse, ListUsersQueryParams, ListUsersResponse, ListUsersResponseItem, PatchProjectBody, PatchProjectParams, PatchProjectResponse, QueryProjectsBody, QueryProjectsResponse, RevokeSessionParams, RevokeSessionQueryParams, SetUserPasswordBody, SetUserPasswordParams, SetUserPasswordQueryParams, SubmitFlowEventBody, SubmitFlowEventParams, SubmitFlowStepBody, SubmitFlowStepHeader, SubmitFlowStepParams, SubmitFlowStepResponse, UpdateFlowDefinitionBody, UpdateFlowDefinitionParams, UpdateFlowDefinitionQueryParams, UpdateFlowDefinitionResponse, VerifyChallengeProofBody, VerifyChallengeProofHeader, VerifyChallengeProofParams, VerifyChallengeProofResponse, activateFlowDefinitionQueryProjectIdRegExp, createAuthAttemptBodyProjectIdRegExp, createAuthAttemptBodySessionIdOneRegExp, createFlowBodyDryRunDefault, createFlowBodyFlowDefinitionNameRegExp, createFlowBodyProjectIdRegExp, createFlowBodySchemaVersionRegExp, createFlowDefinitionBodyFlowDefinitionNameRegExp, createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, createFlowDefinitionBodyProjectIdRegExp, createHandoffPathAttemptIdRegExp, createProjectBodySeedDefaultsDefault, createSchemaBodyOneObjectTypeMax, createSchemaBodyOnePropertiesXEditableDefault, createSchemaBodyOnePropertiesXMfaDefault, createSchemaBodyOnePropertiesXSensitiveDefault, createSchemaBodyOneXAuthMethodsMagicLinkPositionMin, createSchemaBodyOneXAuthMethodsOtpPositionMin, createSchemaBodyOneXAuthMethodsPasskeyPositionMin, createSchemaBodyOneXAuthMethodsPasswordPositionMin, createSchemaBodyOneXAuthMethodsSsoPositionMin, createSchemaQueryProjectIdRegExp, createSchemaQueryTeamIdRegExp, createSessionBodyProjectIdRegExp, createTeamQueryProjectIdRegExp, createUserQueryProjectIdRegExp, createUserQueryTeamIdRegExp, deactivateFlowDefinitionQueryProjectIdRegExp, deleteFlowDefinitionQueryProjectIdRegExp, exchangeHandoffQueryProjectIdRegExp, exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp, exchangeHandoffResponseSessionProjectIdRegExp, exchangeHandoffResponseSessionSessionIdRegExp, exchangeHandoffResponseSessionUserIdOneRegExp, getAuthAttemptPathAttemptIdRegExp, getAuthAttemptResponseAttemptIdRegExp, getAuthAttemptResponseChallengesItemChallengeIdRegExp, getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp, getAuthAttemptResponseProjectIdRegExp, getAuthAttemptResponseSessionIdOneRegExp, getAuthAttemptResponseUserIdOneRegExp, getFlowDefinitionQueryProjectIdRegExp, getFlowDefinitionResponseFlowDefinitionNameRegExp, getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, getFlowStepResponseBrandingLayoutDefault, getFlowStepResponseStepActionsDefault, getFlowStepResponseStepActionsItemPrimaryDefault, getFlowStepResponseStepFieldsDefault, getFlowStepResponseStepFieldsItemRequiredDefault, getFlowStepResponseStepFieldsItemValidationMaxLengthMin, getFlowStepResponseStepFieldsItemValidationMinLengthMin, getFlowStepResponseStepGatesDefault, getFlowStepResponseStepSsoProvidersDefault, getMySessionResponseFactorsItemPayloadOneUserIdRegExp, getMySessionResponseProjectIdRegExp, getMySessionResponseSessionIdRegExp, getMySessionResponseUserIdOneRegExp, getOpenIDConfigurationResponseClaimsParameterSupportedDefault, getOpenIDConfigurationResponseRequestParameterSupportedDefault, getOpenIDConfigurationResponseRequestUriParameterSupportedDefault, getOpenIDConfigurationResponseRequireRequestUriRegistrationDefault, getProjectPathProjectIdRegExp, getSchemaByIdQueryProjectIdRegExp, getSchemaByIdQueryTeamIdRegExp, getSchemaByIdResponseOneObjectTypeMax, getSchemaByIdResponseOnePropertiesXEditableDefault, getSchemaByIdResponseOnePropertiesXMfaDefault, getSchemaByIdResponseOnePropertiesXSensitiveDefault, getSchemaByIdResponseOneXAuthMethodsMagicLinkPositionMin, getSchemaByIdResponseOneXAuthMethodsOtpPositionMin, getSchemaByIdResponseOneXAuthMethodsPasskeyPositionMin, getSchemaByIdResponseOneXAuthMethodsPasswordPositionMin, getSchemaByIdResponseOneXAuthMethodsSsoPositionMin, getSessionPathSessionIdRegExp, getSessionQueryProjectIdRegExp, getSessionResponseFactorsItemPayloadOneUserIdRegExp, getSessionResponseProjectIdRegExp, getSessionResponseSessionIdRegExp, getSessionResponseUserIdOneRegExp, getTeamPathTeamIdRegExp, getTeamQueryProjectIdRegExp, getUserByIDPathUserIdRegExp, getUserByIDQueryProjectIdRegExp, getUserByIDQueryTeamIdRegExp, issueChallengePathAttemptIdRegExp, listFlowDefinitionsQueryLimitDefault, listFlowDefinitionsQueryLimitMax, listFlowDefinitionsQueryProjectIdRegExp, listFlowDefinitionsResponseFlowDefinitionsItemNameRegExp, listSchemasQueryObjectTypeMax, listSchemasQueryOffsetDefault, listSchemasQueryOffsetMin, listSchemasQueryProjectIdRegExp, listSessionsQueryLimitDefault, listSessionsQueryLimitMax, listSessionsQueryProjectIdRegExp, listSessionsQueryUserIdRegExp, listSessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp, listSessionsResponseSessionsItemProjectIdRegExp, listSessionsResponseSessionsItemSessionIdRegExp, listSessionsResponseSessionsItemUserIdOneRegExp, listUsersQueryLimitDefault, listUsersQueryLimitMax, listUsersQueryOffsetDefault, listUsersQueryOffsetMin, patchProjectPathProjectIdRegExp, queryProjectsBodyLimitDefault, queryProjectsBodyLimitMax, revokeSessionPathSessionIdRegExp, revokeSessionQueryProjectIdRegExp, setUserPasswordPathUserIdRegExp, setUserPasswordQueryProjectIdRegExp, submitFlowStepResponseBrandingLayoutDefault, submitFlowStepResponseStepActionsDefault, submitFlowStepResponseStepActionsItemPrimaryDefault, submitFlowStepResponseStepFieldsDefault, submitFlowStepResponseStepFieldsItemRequiredDefault, submitFlowStepResponseStepFieldsItemValidationMaxLengthMin, submitFlowStepResponseStepFieldsItemValidationMinLengthMin, submitFlowStepResponseStepGatesDefault, submitFlowStepResponseStepSsoProvidersDefault, updateFlowDefinitionBodyFlowDefinitionNameRegExp, updateFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, updateFlowDefinitionQueryProjectIdRegExp, updateFlowDefinitionResponseFlowDefinitionNameRegExp, updateFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, verifyChallengeProofPathAttemptIdRegExp, verifyChallengeProofPathChallengeIdRegExp, verifyChallengeProofResponseAttemptIdRegExp, verifyChallengeProofResponseChallengesItemChallengeIdRegExp, verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp, verifyChallengeProofResponseProjectIdRegExp, verifyChallengeProofResponseSessionIdOneRegExp, verifyChallengeProofResponseUserIdOneRegExp };
1764
+ export { CompleteClaimBody, CompleteClaimParams, CompleteClaimResponse, CreateAuthAttemptBody, CreateBrandingBody, CreateBrandingQueryParams, CreateFlowBody, CreateFlowDefinitionBody, CreateHandoffHeader, CreateHandoffParams, CreateHandoffResponse, CreateProjectBody, CreateSchemaBody, CreateSchemaQueryParams, CreateSessionBody, CreateTeamBody, CreateTeamQueryParams, CreateUserBody, CreateUserQueryParams, DeleteFlowDefinitionParams, DeleteFlowDefinitionQueryParams, DeleteTeamParams, DeleteTeamQueryParams, DeleteUserByIDParams, DeleteUserByIDQueryParams, ExchangeHandoffBody, ExchangeHandoffHeader, ExchangeHandoffQueryParams, ExchangeHandoffResponse, GetAuthAttemptParams, GetAuthAttemptResponse, GetBrandingByIdParams, GetBrandingByIdQueryParams, GetBrandingByIdResponse, GetClaimStatusParams, GetClaimStatusQueryParams, GetClaimStatusResponse, GetFlowDefinitionParams, GetFlowDefinitionQueryParams, GetFlowDefinitionResponse, GetFlowStepParams, GetFlowStepResponse, GetMySessionResponse, GetMyUserResponse, GetProjectParams, GetProjectResponse, GetSchemaByIdParams, GetSchemaByIdQueryParams, GetSchemaByIdResponse, GetSessionParams, GetSessionQueryParams, GetSessionResponse, GetTeamParams, GetTeamQueryParams, GetTeamResponse, GetUserByIDParams, GetUserByIDQueryParams, GetUserByIDResponse, InitClaimParams, IssueChallengeBody, IssueChallengeParams, ListBrandingQueryParams, ListBrandingResponse, ListBrandingResponseItem, ListFlowDefinitionsQueryParams, ListFlowDefinitionsResponse, ListSchemasQueryParams, ListSchemasResponse, ListSchemasResponseItem, ListUserPasskeysParams, ListUserPasskeysQueryParams, ListUserPasskeysResponse, ListUserTeamsParams, ListUserTeamsQueryParams, ListUserTeamsResponse, ListUsersQueryParams, ListUsersResponse, PatchProjectBody, PatchProjectParams, PatchProjectResponse, QueryProjectsBody, QueryProjectsResponse, QuerySessionsBody, QuerySessionsQueryParams, QuerySessionsResponse, QueryTeamsBody, QueryTeamsQueryParams, QueryTeamsResponse, RevokeSessionParams, RevokeSessionQueryParams, SetUserPasswordBody, SetUserPasswordParams, SetUserPasswordQueryParams, SubmitFlowStepBody, SubmitFlowStepHeader, SubmitFlowStepParams, SubmitFlowStepResponse, UpdateFlowDefinitionBody, UpdateFlowDefinitionParams, UpdateFlowDefinitionQueryParams, UpdateFlowDefinitionResponse, UpdateTeamBody, UpdateTeamParams, UpdateTeamQueryParams, UpdateTeamResponse, VerifyChallengeProofBody, VerifyChallengeProofHeader, VerifyChallengeProofParams, VerifyChallengeProofResponse, completeClaimBodyChallengeIdRegExp, completeClaimPathProjectIdRegExp, completeClaimResponseProjectIdRegExp, completeClaimResponseTeamIdRegExp, createAuthAttemptBodyProjectIdRegExp, createAuthAttemptBodySessionIdOneRegExp, createBrandingBodyLayoutDefault, createBrandingBodyLiquidTemplateMax, createBrandingQueryProjectIdRegExp, createFlowBodyDryRunDefault, createFlowBodyFlowDefinitionNameRegExp, createFlowBodyProjectIdRegExp, createFlowBodySchemaVersionRegExp, createFlowDefinitionBodyFlowDefinitionNameRegExp, createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, createFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, createFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, createFlowDefinitionBodyProjectIdRegExp, createHandoffPathAttemptIdRegExp, createProjectBodySeedDefaultsDefault, createSchemaBodyOneObjectTypeMax, createSchemaBodyOnePropertiesXEditableDefault, createSchemaBodyOnePropertiesXMfaDefault, createSchemaBodyOnePropertiesXSensitiveDefault, createSchemaBodyOneXAuthMethodsMagicLinkPositionMin, createSchemaBodyOneXAuthMethodsOtpPositionMin, createSchemaBodyOneXAuthMethodsPasskeyPositionMin, createSchemaBodyOneXAuthMethodsPasswordPositionMin, createSchemaBodyOneXAuthMethodsSsoPositionMin, createSchemaQueryProjectIdRegExp, createSchemaQueryTeamIdRegExp, createSessionBodyProjectIdRegExp, createTeamBodyNameMax, createTeamQueryProjectIdRegExp, createUserBodyIdRegExp, createUserQueryProjectIdRegExp, createUserQueryTeamIdRegExp, deleteFlowDefinitionQueryProjectIdRegExp, deleteTeamPathTeamIdRegExp, deleteTeamQueryProjectIdRegExp, deleteUserByIDPathUserIdRegExp, deleteUserByIDQueryProjectIdRegExp, exchangeHandoffQueryProjectIdRegExp, exchangeHandoffResponseSessionFactorsItemPayloadOneUserIdRegExp, exchangeHandoffResponseSessionProjectIdRegExp, exchangeHandoffResponseSessionSessionIdRegExp, exchangeHandoffResponseSessionUserIdOneRegExp, getAuthAttemptPathAttemptIdRegExp, getAuthAttemptResponseAttemptIdRegExp, getAuthAttemptResponseChallengesItemChallengeIdRegExp, getAuthAttemptResponseCompletedFactorsItemPayloadOneUserIdRegExp, getAuthAttemptResponseProjectIdRegExp, getAuthAttemptResponseSessionIdOneRegExp, getAuthAttemptResponseUserIdOneRegExp, getBrandingByIdQueryProjectIdRegExp, getBrandingByIdResponseBrandingLayoutDefault, getBrandingByIdResponseBrandingLiquidTemplateMax, getClaimStatusPathProjectIdRegExp, getClaimStatusQueryChallengeIdRegExp, getClaimStatusResponseTwoTeamIdRegExp, getFlowDefinitionQueryProjectIdRegExp, getFlowDefinitionResponseFlowDefinitionNameRegExp, getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, getFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, getFlowStepResponseBrandingLayoutDefault, getFlowStepResponseBrandingLiquidTemplateMax, getFlowStepResponseStepActionsDefault, getFlowStepResponseStepActionsItemPrimaryDefault, getFlowStepResponseStepFieldsDefault, getFlowStepResponseStepFieldsItemRequiredDefault, getFlowStepResponseStepFieldsItemValidationMaxLengthMin, getFlowStepResponseStepFieldsItemValidationMinLengthMin, getFlowStepResponseStepGatesDefault, getFlowStepResponseStepSsoProvidersDefault, getMySessionResponseFactorsItemPayloadOneUserIdRegExp, getMySessionResponseProjectIdRegExp, getMySessionResponseSessionIdRegExp, getMySessionResponseUserIdOneRegExp, getMyUserResponseIdRegExp, getProjectPathProjectIdRegExp, getSchemaByIdQueryProjectIdRegExp, getSchemaByIdQueryTeamIdRegExp, getSchemaByIdResponseOneObjectTypeMax, getSchemaByIdResponseOnePropertiesXEditableDefault, getSchemaByIdResponseOnePropertiesXMfaDefault, getSchemaByIdResponseOnePropertiesXSensitiveDefault, getSchemaByIdResponseOneXAuthMethodsMagicLinkPositionMin, getSchemaByIdResponseOneXAuthMethodsOtpPositionMin, getSchemaByIdResponseOneXAuthMethodsPasskeyPositionMin, getSchemaByIdResponseOneXAuthMethodsPasswordPositionMin, getSchemaByIdResponseOneXAuthMethodsSsoPositionMin, getSessionPathSessionIdRegExp, getSessionQueryProjectIdRegExp, getSessionResponseFactorsItemPayloadOneUserIdRegExp, getSessionResponseProjectIdRegExp, getSessionResponseSessionIdRegExp, getSessionResponseUserIdOneRegExp, getTeamPathTeamIdRegExp, getTeamQueryProjectIdRegExp, getUserByIDPathUserIdRegExp, getUserByIDQueryProjectIdRegExp, getUserByIDQueryTeamIdRegExp, getUserByIDResponseIdRegExp, initClaimPathProjectIdRegExp, issueChallengePathAttemptIdRegExp, listBrandingQueryProjectIdRegExp, listFlowDefinitionsQueryLimitDefault, listFlowDefinitionsQueryLimitMax, listFlowDefinitionsQueryProjectIdRegExp, listFlowDefinitionsResponseFlowDefinitionsItemNameRegExp, listSchemasQueryObjectTypeMax, listSchemasQueryOffsetDefault, listSchemasQueryOffsetMin, listSchemasQueryProjectIdRegExp, listUserPasskeysPathUserIdRegExp, listUserPasskeysQueryLimitDefault, listUserPasskeysQueryLimitMax, listUserPasskeysQueryProjectIdRegExp, listUserTeamsPathUserIdRegExp, listUserTeamsQueryLimitDefault, listUserTeamsQueryLimitMax, listUserTeamsQueryProjectIdRegExp, listUsersQueryLimitDefault, listUsersQueryLimitMax, listUsersResponseUsersItemIdRegExp, patchProjectPathProjectIdRegExp, queryProjectsBodyLimitDefault, queryProjectsBodyLimitMax, querySessionsBodyLimitDefault, querySessionsBodyLimitMax, querySessionsQueryProjectIdRegExp, querySessionsResponseSessionsItemFactorsItemPayloadOneUserIdRegExp, querySessionsResponseSessionsItemProjectIdRegExp, querySessionsResponseSessionsItemSessionIdRegExp, querySessionsResponseSessionsItemUserIdOneRegExp, queryTeamsBodyLimitDefault, queryTeamsBodyLimitMax, queryTeamsQueryProjectIdRegExp, revokeSessionPathSessionIdRegExp, revokeSessionQueryProjectIdRegExp, setUserPasswordPathUserIdRegExp, setUserPasswordQueryProjectIdRegExp, submitFlowStepResponseBrandingLayoutDefault, submitFlowStepResponseBrandingLiquidTemplateMax, submitFlowStepResponseStepActionsDefault, submitFlowStepResponseStepActionsItemPrimaryDefault, submitFlowStepResponseStepFieldsDefault, submitFlowStepResponseStepFieldsItemRequiredDefault, submitFlowStepResponseStepFieldsItemValidationMaxLengthMin, submitFlowStepResponseStepFieldsItemValidationMinLengthMin, submitFlowStepResponseStepGatesDefault, submitFlowStepResponseStepSsoProvidersDefault, updateFlowDefinitionBodyFlowDefinitionNameRegExp, updateFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemGatesDefault, updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersDefault, updateFlowDefinitionQueryProjectIdRegExp, updateFlowDefinitionResponseFlowDefinitionNameRegExp, updateFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemGatesDefault, updateFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault, updateTeamBodyNameMax, updateTeamPathTeamIdRegExp, updateTeamQueryProjectIdRegExp, verifyChallengeProofPathAttemptIdRegExp, verifyChallengeProofPathChallengeIdRegExp, verifyChallengeProofResponseAttemptIdRegExp, verifyChallengeProofResponseChallengesItemChallengeIdRegExp, verifyChallengeProofResponseCompletedFactorsItemPayloadOneUserIdRegExp, verifyChallengeProofResponseProjectIdRegExp, verifyChallengeProofResponseSessionIdOneRegExp, verifyChallengeProofResponseUserIdOneRegExp };
1620
1765
 
1621
1766
  //# sourceMappingURL=zitadelNextGen.zod.mjs.map