@zitadel/api 0.1.0 → 0.3.0

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 (232) hide show
  1. package/dist/{fetch-DD3lSbnp.d.mts → fetch-CtYe0OvX.d.mts} +8 -2
  2. package/dist/fetch-CtYe0OvX.d.mts.map +1 -0
  3. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  4. package/dist/generated/endpoints/zitadelNextGen.mjs +291 -44
  5. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +17 -4
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3184 -1471
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1342 -85
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  12. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1865 -648
  13. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  14. package/dist/generated/model/index.d.mts +2 -2
  15. package/dist/generated/model/index.mjs +76 -65
  16. package/dist/generated/model/index.mjs.map +1 -1
  17. package/dist/generated/operations.mjs +202 -29
  18. package/dist/generated/operations.mjs.map +1 -1
  19. package/dist/{index-DuuFQkA8.d.mts → index-DAm3tCA7.d.mts} +6562 -1257
  20. package/dist/index-DAm3tCA7.d.mts.map +1 -0
  21. package/dist/runtime/api-factory.d.mts +1 -1
  22. package/dist/runtime/fetch.d.mts +1 -1
  23. package/dist/runtime/fetch.mjs +9 -2
  24. package/dist/runtime/fetch.mjs.map +1 -1
  25. package/dist/{zitadelNextGen-BdUDEEuX.d.mts → zitadelNextGen-B_VRpP2W.d.mts} +165 -39
  26. package/dist/zitadelNextGen-B_VRpP2W.d.mts.map +1 -0
  27. package/package.json +3 -2
  28. package/src/generated/endpoints/zitadelNextGen.faker.ts +46 -25
  29. package/src/generated/endpoints/zitadelNextGen.msw.ts +106 -13
  30. package/src/generated/endpoints/zitadelNextGen.ts +404 -54
  31. package/src/generated/endpoints/zitadelNextGen.zod.ts +1159 -133
  32. package/src/generated/model/addOriginDefault.ts +27 -0
  33. package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +18 -0
  34. package/src/generated/model/buildRelease200PointersItem.ts +2 -0
  35. package/src/generated/model/buildRelease200PointersItemKind.ts +1 -0
  36. package/src/generated/model/buildRelease201PointersItem.ts +2 -0
  37. package/src/generated/model/buildRelease201PointersItemKind.ts +1 -0
  38. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +1 -0
  39. package/src/generated/model/buildReleaseBody.ts +3 -3
  40. package/src/generated/model/buildReleaseBodyBundle.ts +20 -3
  41. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +47 -0
  42. package/src/generated/model/buildReleaseDefault.ts +36 -0
  43. package/src/generated/model/createAuthAttemptDefault.ts +27 -0
  44. package/src/generated/model/createBrandingDefault.ts +18 -0
  45. package/src/generated/model/createDeployment200ReleasePointersItem.ts +2 -0
  46. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +1 -0
  47. package/src/generated/model/createDeployment201ReleasePointersItem.ts +2 -0
  48. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +1 -0
  49. package/src/generated/model/createDeployment409.ts +3 -1
  50. package/src/generated/model/createDeploymentBody.ts +2 -4
  51. package/src/generated/model/createDeploymentDefault.ts +54 -0
  52. package/src/generated/model/createFlow201Step.ts +19 -0
  53. package/src/generated/model/createFlow201StepPurpose.ts +26 -0
  54. package/src/generated/model/createFlowDefault.ts +18 -0
  55. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +5 -0
  56. package/src/generated/model/createFlowDefinitionDefault.ts +18 -0
  57. package/src/generated/model/createGrant201Team.ts +4 -1
  58. package/src/generated/model/createGrantDefault.ts +18 -0
  59. package/src/generated/model/createHandoffDefault.ts +18 -0
  60. package/src/generated/model/createIdpDefault.ts +18 -0
  61. package/src/generated/model/createRelease200PointersItem.ts +2 -0
  62. package/src/generated/model/createRelease200PointersItemKind.ts +1 -0
  63. package/src/generated/model/createRelease201PointersItem.ts +2 -0
  64. package/src/generated/model/createRelease201PointersItemKind.ts +1 -0
  65. package/src/generated/model/createReleaseBodyPointersItemKind.ts +1 -0
  66. package/src/generated/model/createReleaseDefault.ts +18 -0
  67. package/src/generated/model/createSchemaDefault.ts +18 -0
  68. package/src/generated/model/createSessionDefault.ts +18 -0
  69. package/src/generated/model/createTeamDefault.ts +18 -0
  70. package/src/generated/model/createUserDefault.ts +18 -0
  71. package/src/generated/model/deleteGrantDefault.ts +18 -0
  72. package/src/generated/model/deleteTeamDefault.ts +18 -0
  73. package/src/generated/model/deleteUserByIDDefault.ts +18 -0
  74. package/src/generated/model/deleteVariableDefault.ts +18 -0
  75. package/src/generated/model/evaluatePolicy200.ts +30 -0
  76. package/src/generated/model/evaluatePolicy200Violations.ts +14 -0
  77. package/src/generated/model/evaluatePolicyBody.ts +82 -0
  78. package/src/generated/model/evaluatePolicyDefault.ts +90 -0
  79. package/src/generated/model/evaluatePolicyParams.ts +15 -0
  80. package/src/generated/model/exchangeHandoffDefault.ts +36 -0
  81. package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +18 -0
  82. package/src/generated/model/getAuthAttemptDefault.ts +18 -0
  83. package/src/generated/model/getBrandingByIdDefault.ts +18 -0
  84. package/src/generated/model/getClaimStatusDefault.ts +18 -0
  85. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +2 -0
  86. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +1 -0
  87. package/src/generated/model/getDeploymentByIdDefault.ts +18 -0
  88. package/src/generated/model/getDeploymentVariablesDefault.ts +9 -0
  89. package/src/generated/model/getEvent200.ts +788 -0
  90. package/src/generated/model/getEventDefault.ts +18 -0
  91. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +5 -0
  92. package/src/generated/model/getFlowDefinitionDefault.ts +18 -0
  93. package/src/generated/model/getFlowStep200Step.ts +19 -0
  94. package/src/generated/model/getFlowStep200StepPurpose.ts +26 -0
  95. package/src/generated/model/getFlowStepDefault.ts +36 -0
  96. package/src/generated/model/getGrant200Team.ts +4 -1
  97. package/src/generated/model/getGrantDefault.ts +18 -0
  98. package/src/generated/model/getIdpByIdDefault.ts +18 -0
  99. package/src/generated/model/getIdpRevisionByIdDefault.ts +18 -0
  100. package/src/generated/model/getMyPasswordStateDefault.ts +18 -0
  101. package/src/generated/model/getMySessionCsrfTokenDefault.ts +18 -0
  102. package/src/generated/model/getMySessionDefault.ts +18 -0
  103. package/src/generated/model/getMyUserDefault.ts +18 -0
  104. package/src/generated/model/getMyUserSchema200Metadata.ts +5 -0
  105. package/src/generated/model/getMyUserSchemaDefault.ts +18 -0
  106. package/src/generated/model/getPolicy200.ts +62 -0
  107. package/src/generated/model/getPolicyDefault.ts +72 -0
  108. package/src/generated/model/getPolicyParams.ts +15 -0
  109. package/src/generated/model/getPolicyRevision200.ts +62 -0
  110. package/src/generated/model/getPolicyRevisionDefault.ts +72 -0
  111. package/src/generated/model/getPolicyRevisionParams.ts +15 -0
  112. package/src/generated/model/getProject200.ts +64 -6
  113. package/src/generated/model/getReleaseById200PointersItem.ts +2 -0
  114. package/src/generated/model/getReleaseById200PointersItemKind.ts +1 -0
  115. package/src/generated/model/getReleaseByIdDefault.ts +18 -0
  116. package/src/generated/model/getSchemaById200Metadata.ts +5 -0
  117. package/src/generated/model/getSchemaByIdDefault.ts +18 -0
  118. package/src/generated/model/getSessionDefault.ts +18 -0
  119. package/src/generated/model/getTeamDefault.ts +18 -0
  120. package/src/generated/model/getUserByIDDefault.ts +18 -0
  121. package/src/generated/model/getUserPasswordStateDefault.ts +18 -0
  122. package/src/generated/model/getVariableDefault.ts +18 -0
  123. package/src/generated/model/getVariablesDefault.ts +18 -0
  124. package/src/generated/model/index.ts +44 -21
  125. package/src/generated/model/initClaimDefault.ts +18 -0
  126. package/src/generated/model/issueChallengeDefault.ts +18 -0
  127. package/src/generated/model/listBrandingDefault.ts +18 -0
  128. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +2 -0
  129. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +1 -0
  130. package/src/generated/model/listDeploymentsDefault.ts +18 -0
  131. package/src/generated/model/listEvents200DataItem.ts +788 -0
  132. package/src/generated/model/listEventsDefault.ts +18 -0
  133. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +5 -0
  134. package/src/generated/model/listFlowDefinitionsDefault.ts +18 -0
  135. package/src/generated/model/listIdpRevisionsDefault.ts +18 -0
  136. package/src/generated/model/listMyIdentityLinksDefault.ts +18 -0
  137. package/src/generated/model/listMyPasskeysDefault.ts +18 -0
  138. package/src/generated/model/listMyProjectsDefault.ts +18 -0
  139. package/src/generated/model/listMyProjectsParams.ts +8 -0
  140. package/src/generated/model/listMyTeamsDefault.ts +18 -0
  141. package/src/generated/model/listPolicies200.ts +21 -0
  142. package/src/generated/model/listPolicies200PoliciesItem.ts +62 -0
  143. package/src/generated/model/listPoliciesDefault.ts +72 -0
  144. package/src/generated/model/listPoliciesOperation.ts +14 -0
  145. package/src/generated/model/listPoliciesParams.ts +33 -0
  146. package/src/generated/model/listPolicyRevisions200.ts +20 -0
  147. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +62 -0
  148. package/src/generated/model/listPolicyRevisionsDefault.ts +72 -0
  149. package/src/generated/model/listPolicyRevisionsParams.ts +28 -0
  150. package/src/generated/model/listPreviewsDefault.ts +9 -0
  151. package/src/generated/model/listProjectAdmins200.ts +20 -0
  152. package/src/generated/model/listProjectAdmins200AdminsItem.ts +31 -0
  153. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +57 -0
  154. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +40 -0
  155. package/src/generated/model/{createAuthAttempt409.ts → listProjectAdmins400.ts} +3 -3
  156. package/src/generated/model/{createAuthAttempt409Details.ts → listProjectAdmins400Details.ts} +1 -1
  157. package/src/generated/model/{issueChallenge409.ts → listProjectAdmins401.ts} +3 -3
  158. package/src/generated/model/{issueChallenge409Details.ts → listProjectAdmins401Details.ts} +1 -1
  159. package/src/generated/model/{getAuthAttempt409.ts → listProjectAdmins403.ts} +3 -3
  160. package/src/generated/model/{getHealth4xxDetails.ts → listProjectAdmins403Details.ts} +1 -1
  161. package/src/generated/model/{getHealth4xx.ts → listProjectAdmins404.ts} +3 -3
  162. package/src/generated/model/{getAuthAttempt409Details.ts → listProjectAdmins404Details.ts} +1 -1
  163. package/src/generated/model/listProjectAdminsDefault.ts +81 -0
  164. package/src/generated/model/listProjectAdminsParams.ts +23 -0
  165. package/src/generated/model/listReleasesDefault.ts +18 -0
  166. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +5 -0
  167. package/src/generated/model/listSchemasDefault.ts +18 -0
  168. package/src/generated/model/listSchemasExpandItem.ts +28 -0
  169. package/src/generated/model/listSchemasParams.ts +5 -0
  170. package/src/generated/model/listUserIdentityLinksDefault.ts +18 -0
  171. package/src/generated/model/listUserPasskeysDefault.ts +18 -0
  172. package/src/generated/model/listUserTeamsDefault.ts +18 -0
  173. package/src/generated/model/patchMyUserDefault.ts +18 -0
  174. package/src/generated/model/patchProject200.ts +64 -6
  175. package/src/generated/model/patchProjectDefault.ts +18 -0
  176. package/src/generated/model/patchUserByIDDefault.ts +18 -0
  177. package/src/generated/model/publishPolicy201.ts +62 -0
  178. package/src/generated/model/publishPolicyBody.ts +47 -0
  179. package/src/generated/model/publishPolicyDefault.ts +99 -0
  180. package/src/generated/model/publishPolicyParams.ts +15 -0
  181. package/src/generated/model/queryGrants200GrantsItemTeam.ts +4 -1
  182. package/src/generated/model/queryGrantsDefault.ts +9 -0
  183. package/src/generated/model/queryIdpsDefault.ts +9 -0
  184. package/src/generated/model/queryProjectsDefault.ts +9 -0
  185. package/src/generated/model/querySessionsDefault.ts +9 -0
  186. package/src/generated/model/queryTeamsDefault.ts +9 -0
  187. package/src/generated/model/queryUsersBodyFilterItem.ts +11 -3
  188. package/src/generated/model/queryUsersBodyFilterItemField.ts +12 -3
  189. package/src/generated/model/queryUsersDefault.ts +9 -0
  190. package/src/generated/model/removeOriginDefault.ts +27 -0
  191. package/src/generated/model/removePreviewDefault.ts +18 -0
  192. package/src/generated/model/revokeMySessionDefault.ts +18 -0
  193. package/src/generated/model/revokeRelease200PointersItem.ts +2 -0
  194. package/src/generated/model/revokeRelease200PointersItemKind.ts +1 -0
  195. package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +9 -1
  196. package/src/generated/model/revokeReleaseDefault.ts +63 -0
  197. package/src/generated/model/revokeSessionDefault.ts +18 -0
  198. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +2 -0
  199. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +1 -0
  200. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +2 -0
  201. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +1 -0
  202. package/src/generated/model/rollbackDeployment409.ts +3 -1
  203. package/src/generated/model/rollbackDeploymentDefault.ts +99 -0
  204. package/src/generated/model/setUserPasswordDefault.ts +18 -0
  205. package/src/generated/model/submitFlowStep200Step.ts +19 -0
  206. package/src/generated/model/submitFlowStep200StepPurpose.ts +26 -0
  207. package/src/generated/model/submitFlowStep400Step.ts +19 -0
  208. package/src/generated/model/submitFlowStep400StepPurpose.ts +26 -0
  209. package/src/generated/model/submitFlowStepDefault.ts +36 -0
  210. package/src/generated/model/updateTeamDefault.ts +18 -0
  211. package/src/generated/model/updateVariablesDefault.ts +18 -0
  212. package/src/generated/model/verifyChallengeProofDefault.ts +18 -0
  213. package/src/generated/operations.ts +212 -29
  214. package/src/runtime/config.spec.ts +2 -2
  215. package/src/runtime/fetch.spec.ts +13 -1
  216. package/src/runtime/fetch.ts +15 -2
  217. package/dist/fetch-DD3lSbnp.d.mts.map +0 -1
  218. package/dist/index-DuuFQkA8.d.mts.map +0 -1
  219. package/dist/zitadelNextGen-BdUDEEuX.d.mts.map +0 -1
  220. package/src/generated/model/getHealthDefault.ts +0 -27
  221. package/src/generated/model/getProject200OriginsItem.ts +0 -23
  222. package/src/generated/model/getProject200OriginsItemKind.ts +0 -15
  223. package/src/generated/model/getProject200PasswordHash.ts +0 -42
  224. package/src/generated/model/getProject200PasswordHashAlgorithm.ts +0 -24
  225. package/src/generated/model/getProject200PasswordHashParams.ts +0 -47
  226. package/src/generated/model/getProject200PasswordHashParamsHash.ts +0 -24
  227. package/src/generated/model/patchProject200OriginsItem.ts +0 -23
  228. package/src/generated/model/patchProject200OriginsItemKind.ts +0 -15
  229. package/src/generated/model/patchProject200PasswordHash.ts +0 -42
  230. package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +0 -24
  231. package/src/generated/model/patchProject200PasswordHashParams.ts +0 -47
  232. package/src/generated/model/patchProject200PasswordHashParamsHash.ts +0 -24
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.mjs","names":[],"sources":["../../src/runtime/fetch.ts"],"sourcesContent":["import { apiCsrfRejectionHandlerFor, apiCsrfTokenFor, getApiAuthToken } from \"./auth\";\n\n/** The header the session-bound CSRF token travels in (ADR 053 §5). */\nexport const CSRF_HEADER = \"X-Zitadel-CSRF\";\n\n// Mirrors the server's list (`httputil.IsSafeMethod` in `internal/httputil`).\nconst SAFE_METHODS = new Set([\"GET\", \"HEAD\", \"OPTIONS\"]);\n\n/** The code the server answers a refused CSRF check with. */\nconst CSRF_INVALID = \"auth.csrf_invalid\";\n\n/**\n * Framework-neutral failure type the orval-generated client throws on\n * any non-2xx response. Carries the HTTP status, the parsed error body\n * (the spec's `{code, message, details?}` envelope when the server\n * returned one), and the request URL — enough for callers to map to\n * their own error taxonomy without re-implementing the fetch layer.\n *\n * Callers that don't care about the distinction can catch `ApiError`\n * generically; callers that do (the CLI's `toZitadelError`) read\n * `status` and decide.\n */\nexport class ApiError extends Error {\n readonly status: number;\n readonly url: string;\n readonly body: unknown;\n\n constructor(status: number, url: string, body: unknown, message: string) {\n super(message);\n this.name = \"ApiError\";\n this.status = status;\n this.url = url;\n this.body = body;\n }\n}\n\n/**\n * Thrown when a request got no response at all: the connection was refused or\n * reset, the host did not resolve, or the server accepted the connection but\n * did not answer in time. The counterpart to {@link ApiError}, which is a\n * response that came back with a failing status.\n *\n * `fetch` only rejects when no response arrived, so this is decided by the\n * fact that it rejected, never by how a runtime words the failure. The\n * runtime's own error stays on `cause` for debugging.\n */\nexport class NetworkError extends Error {\n readonly url: string;\n /** `timeout` when a deadline cut the request off, `unreachable` otherwise. */\n readonly reason: \"unreachable\" | \"timeout\";\n\n constructor(\n url: string,\n reason: \"unreachable\" | \"timeout\",\n message: string,\n options?: ErrorOptions,\n ) {\n super(message, options);\n this.name = \"NetworkError\";\n this.url = url;\n this.reason = reason;\n }\n}\n\n/**\n * What every request a client makes is bound by. Set per call by\n * `createZitadelClient`, the same way as the base URL and token, and read at\n * the top of {@link customFetch} before its first `await`.\n */\nexport type RequestPolicy = {\n /** Aborts every request made while it is set; its reason is rethrown as is. */\n signal?: AbortSignal;\n /** Per-request deadline, covering the response body as well as the headers. */\n timeoutMs?: number;\n};\n\nlet requestPolicy: RequestPolicy = {};\n\nexport function setRequestPolicy(policy: RequestPolicy): void {\n requestPolicy = policy;\n}\n\n/**\n * The orval `mutator` for the fetch client. Every generated operation\n * routes its request through this function instead of the global\n * `fetch`. We pin three concerns here so generated call sites stay\n * focused on the shape of one HTTP call:\n *\n * - bearer auth — read from `runtime/auth.ts` and attached automatically;\n * - the CSRF header — the session-bound token from `runtime/auth.ts`, on\n * unsafe methods to the origin it was issued for, when a first-party surface\n * has set one; an unsafe request to that origin refused with\n * `403 auth.csrf_invalid` asks the registered rejection handler for a fresh\n * token and is retried once with it, only if the handler returns one (the\n * session still belongs to the same person);\n * - non-2xx → throw — orval's stock client parses the body regardless\n * of status, so callers would have to inspect every response. Throw\n * `ApiError` on `!res.ok` so failures interrupt control flow;\n * - body parsing — return the parsed JSON typed as `T` (the operation's\n * return type, threaded through by orval), or `undefined` for the\n * spec's `204`/`205`/`304` no-body responses;\n * - no response → throw {@link NetworkError}, or the abort reason when the\n * caller cancelled (see {@link request}).\n */\nexport async function customFetch<T>(url: string, options: RequestInit): Promise<T> {\n // The client sets the policy per call, so it is read before the first await;\n // the retry below runs under the same policy as the first attempt.\n const policy = requestPolicy;\n const token = getApiAuthToken();\n const headers = new Headers(options.headers);\n if (token && !headers.has(\"authorization\")) {\n headers.set(\"authorization\", `Bearer ${token}`);\n }\n const method = (options.method ?? \"GET\").toUpperCase();\n const unsafe = !SAFE_METHODS.has(method) && !headers.has(CSRF_HEADER);\n // The token and the rejection handler belong to one server: a request to\n // any other origin gets neither.\n const target = originOf(url);\n const csrfToken = apiCsrfTokenFor(target);\n if (unsafe && csrfToken) {\n headers.set(CSRF_HEADER, csrfToken);\n }\n\n let { res, rawBody: parsed } = await request(url, { ...options, headers }, policy, readBody);\n\n // The token was stale (the session cookie changed under this page) or never\n // loaded. The app re-checks the session and hands back a fresh token only if\n // it still belongs to the same person; then the request is retried once. A\n // body that can be read only once cannot be sent again, so it is not retried.\n const onRejected = apiCsrfRejectionHandlerFor(target);\n if (\n unsafe &&\n onRejected &&\n res.status === 403 &&\n apiErrorCode(parsed) === CSRF_INVALID &&\n !isStream(options.body)\n ) {\n const fresh = await onRejected().catch(() => undefined);\n if (fresh && fresh !== csrfToken) {\n headers.set(CSRF_HEADER, fresh);\n ({ res, rawBody: parsed } = await request(url, { ...options, headers }, policy, readBody));\n }\n }\n\n if (!res.ok) {\n const message = `${options.method ?? \"GET\"} ${url} returned ${res.status}`;\n throw new ApiError(res.status, url, parsed, message);\n }\n\n return parsed as T;\n}\n\n/** The parsed body, or `undefined` for the spec's no-body responses. */\nasync function readBody(res: Response): Promise<unknown> {\n if ([204, 205, 304].includes(res.status)) return undefined;\n const rawBody = await res.text();\n return rawBody ? (safeJsonParse(rawBody) as unknown) : undefined;\n}\n\n/** The request's origin, resolved against the page for a relative URL. */\nfunction originOf(url: string): string | undefined {\n try {\n return new URL(url, (globalThis as { location?: { href?: string } }).location?.href).origin;\n } catch {\n return undefined;\n }\n}\n\nfunction isStream(body: RequestInit[\"body\"]): boolean {\n return typeof ReadableStream !== \"undefined\" && body instanceof ReadableStream;\n}\n\n/**\n * `fetch` bound by a {@link RequestPolicy}, with its failures typed.\n *\n * The policy's signal, its deadline and any signal on `init` are combined, and\n * `read` runs under them too, so a server that sends headers and then stalls\n * mid-body is cut off as well. When the request does not complete:\n *\n * - a deadline fired → {@link NetworkError} with reason `timeout`;\n * - any other abort → the signal's own reason, rethrown untouched, because a\n * cancellation is the caller's decision and the caller knows what it means;\n * - anything else → {@link NetworkError} with reason `unreachable`.\n *\n * Exported for the few callers that need the raw {@link Response} (a\n * `Set-Cookie` header the generated client does not expose).\n */\nexport async function request<R = undefined>(\n url: string,\n init: RequestInit,\n policy: RequestPolicy = {},\n read?: (res: Response) => Promise<R>,\n): Promise<{ res: Response; rawBody: R }> {\n const signals = [init.signal, policy.signal].filter((signal) => signal != null);\n if (policy.timeoutMs !== undefined) {\n signals.push(AbortSignal.timeout(policy.timeoutMs));\n }\n const signal = signals.length > 0 ? AbortSignal.any(signals) : undefined;\n const method = init.method ?? \"GET\";\n try {\n const res = await fetch(url, { ...init, signal });\n return { res, rawBody: (read ? await read(res) : undefined) as R };\n } catch (error) {\n if (signal?.aborted) {\n const reason: unknown = signal.reason;\n if (reason instanceof DOMException && reason.name === \"TimeoutError\") {\n throw new NetworkError(url, \"timeout\", `${method} ${url} timed out`, { cause: reason });\n }\n throw reason;\n }\n const code = errnoOf(error);\n throw new NetworkError(\n url,\n \"unreachable\",\n `${method} ${url} got no response${code ? ` (${code})` : \"\"}`,\n { cause: error },\n );\n }\n}\n\n/**\n * The errno a runtime attached to a failed request, if any, for the message.\n * Undici nests it on `cause`, inside an `AggregateError` when it tried more\n * than one address. Only ever used to describe the failure, never to decide\n * that it was one.\n */\nfunction errnoOf(error: unknown): string | undefined {\n let node: unknown = error;\n for (let depth = 0; depth < 4 && typeof node === \"object\" && node !== null; depth += 1) {\n const { code, errors } = node as { code?: unknown; errors?: unknown };\n if (typeof code === \"string\") {\n return code;\n }\n node = Array.isArray(errors) ? errors[0] : (node as { cause?: unknown }).cause;\n }\n return undefined;\n}\n\n/**\n * `JSON.parse` wrapped so a non-JSON body (e.g. an HTML 502 from a\n * proxy) becomes `{ raw: \"<text>\" }` instead of throwing inside\n * `customFetch`. The thrown `ApiError` then carries something useful\n * for the user to see.\n */\nfunction safeJsonParse(text: string): unknown {\n try {\n return JSON.parse(text);\n } catch {\n return { raw: text };\n }\n}\n\n/**\n * The `code` of the server's `{code, message, details}` error envelope: from an\n * {@link ApiError}, or from a parsed response body. `undefined` when there is\n * none, e.g. an HTML error page from a proxy.\n */\nexport function apiErrorCode(errorOrBody: unknown): string | undefined {\n const body = errorOrBody instanceof ApiError ? errorOrBody.body : errorOrBody;\n return isRecord(body) && typeof body.code === \"string\" ? body.code : undefined;\n}\n\n/**\n * Extracts the server's `{code, message, details}` envelope from an\n * {@link ApiError} into a display string. Falls back to the fetch layer's\n * `\"METHOD url returned N\"` when the body isn't shaped like an envelope, so\n * transport-level failures (HTML from a proxy, empty 5xx) still say\n * something.\n */\nexport function apiErrorMessage(error: ApiError): string {\n const body = error.body;\n if (!isRecord(body)) {\n return error.message;\n }\n const serverMessage = typeof body.message === \"string\" ? body.message : undefined;\n const detail = pickDetailString(body.details);\n if (!serverMessage) {\n return error.message;\n }\n return detail ? `${serverMessage}: ${detail}` : serverMessage;\n}\n\n/**\n * Reads the innermost human-readable string out of the spec's error\n * `details` field. Handles both `details: \"...\"` and the nested\n * `details: { details: \"...\" }` shape the platform emits for validation\n * failures.\n */\nfunction pickDetailString(details: unknown): string | undefined {\n if (typeof details === \"string\") {\n return details;\n }\n if (isRecord(details)) {\n if (typeof details.details === \"string\") {\n return details.details;\n }\n if (typeof details.message === \"string\") {\n return details.message;\n }\n }\n return undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n"],"mappings":";;;AAGA,MAAa,cAAc;AAG3B,MAAM,+BAAe,IAAI,IAAI;CAAC;CAAO;CAAQ;AAAS,CAAC;;AAGvD,MAAM,eAAe;;;;;;;;;;;;AAarB,IAAa,WAAb,cAA8B,MAAM;CAClC;CACA;CACA;CAEA,YAAY,QAAgB,KAAa,MAAe,SAAiB;EACvE,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,MAAM;EACX,KAAK,OAAO;CACd;AACF;;;;;;;;;;;AAYA,IAAa,eAAb,cAAkC,MAAM;CACtC;;CAEA;CAEA,YACE,KACA,QACA,SACA,SACA;EACA,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO;EACZ,KAAK,MAAM;EACX,KAAK,SAAS;CAChB;AACF;AAcA,IAAI,gBAA+B,CAAC;AAEpC,SAAgB,iBAAiB,QAA6B;CAC5D,gBAAgB;AAClB;;;;;;;;;;;;;;;;;;;;;;;AAwBA,eAAsB,YAAe,KAAa,SAAkC;CAGlF,MAAM,SAAS;CACf,MAAM,QAAQ,gBAAgB;CAC9B,MAAM,UAAU,IAAI,QAAQ,QAAQ,OAAO;CAC3C,IAAI,SAAS,CAAC,QAAQ,IAAI,eAAe,GACvC,QAAQ,IAAI,iBAAiB,UAAU,OAAO;CAEhD,MAAM,UAAU,QAAQ,UAAU,MAAA,CAAO,YAAY;CACrD,MAAM,SAAS,CAAC,aAAa,IAAI,MAAM,KAAK,CAAC,QAAQ,IAAA,gBAAe;CAGpE,MAAM,SAAS,SAAS,GAAG;CAC3B,MAAM,YAAY,gBAAgB,MAAM;CACxC,IAAI,UAAU,WACZ,QAAQ,IAAI,aAAa,SAAS;CAGpC,IAAI,EAAE,KAAK,SAAS,WAAW,MAAM,QAAQ,KAAK;EAAE,GAAG;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AAI,CAAC,SAAS,IAAI,GAChB,OAAO,MAAM;CAEf,MAAM,gBAAgB,OAAO,KAAK,YAAY,WAAW,KAAK,UAAU,KAAA;CACxE,MAAM,SAAS,iBAAiB,KAAK,OAAO;CAC5C,IAAI,CAAC,eACH,OAAO,MAAM;CAEf,OAAO,SAAS,GAAG,cAAc,IAAI,WAAW;AAClD;;;;;;;AAQA,SAAS,iBAAiB,SAAsC;CAC9D,IAAI,OAAO,YAAY,UACrB,OAAO;CAET,IAAI,SAAS,OAAO,GAAG;EACrB,IAAI,OAAO,QAAQ,YAAY,UAC7B,OAAO,QAAQ;EAEjB,IAAI,OAAO,QAAQ,YAAY,UAC7B,OAAO,QAAQ;CAEnB;AAEF;AAEA,SAAS,SAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E"}
1
+ {"version":3,"file":"fetch.mjs","names":[],"sources":["../../src/runtime/fetch.ts"],"sourcesContent":["import { apiCsrfRejectionHandlerFor, apiCsrfTokenFor, getApiAuthToken } from \"./auth\";\n\n/** The header the session-bound CSRF token travels in (ADR 053 §5). */\nexport const CSRF_HEADER = \"X-Zitadel-CSRF\";\n\n// Mirrors the server's list (`httputil.IsSafeMethod` in `internal/httputil`).\nconst SAFE_METHODS = new Set([\"GET\", \"HEAD\", \"OPTIONS\"]);\n\n/** The code the server answers a refused CSRF check with. */\nconst CSRF_INVALID = \"auth.csrf_invalid\";\n\n/**\n * Framework-neutral failure type the orval-generated client throws on\n * any non-2xx response. Carries the HTTP status, the parsed error body\n * (the spec's `{code, message, details?}` envelope when the server\n * returned one), and the request URL — enough for callers to map to\n * their own error taxonomy without re-implementing the fetch layer.\n *\n * Callers that don't care about the distinction can catch `ApiError`\n * generically; callers that do (the CLI's `toZitadelError`) read\n * `status` and decide.\n */\nexport class ApiError extends Error {\n readonly status: number;\n readonly url: string;\n readonly body: unknown;\n /**\n * The server's ID for the request, from its `X-Request-Id` header: the\n * reference that finds the request in the server's logs, to show beside the\n * error. `undefined` when the response carried none, as from a proxy.\n */\n readonly requestId: string | undefined;\n\n constructor(status: number, url: string, body: unknown, message: string, requestId?: string) {\n super(message);\n this.name = \"ApiError\";\n this.status = status;\n this.url = url;\n this.body = body;\n this.requestId = requestId;\n }\n}\n\n/**\n * Thrown when a request got no response at all: the connection was refused or\n * reset, the host did not resolve, or the server accepted the connection but\n * did not answer in time. The counterpart to {@link ApiError}, which is a\n * response that came back with a failing status.\n *\n * `fetch` only rejects when no response arrived, so this is decided by the\n * fact that it rejected, never by how a runtime words the failure. The\n * runtime's own error stays on `cause` for debugging.\n */\nexport class NetworkError extends Error {\n readonly url: string;\n /** `timeout` when a deadline cut the request off, `unreachable` otherwise. */\n readonly reason: \"unreachable\" | \"timeout\";\n\n constructor(\n url: string,\n reason: \"unreachable\" | \"timeout\",\n message: string,\n options?: ErrorOptions,\n ) {\n super(message, options);\n this.name = \"NetworkError\";\n this.url = url;\n this.reason = reason;\n }\n}\n\n/**\n * What every request a client makes is bound by. Set per call by\n * `createZitadelClient`, the same way as the base URL and token, and read at\n * the top of {@link customFetch} before its first `await`.\n */\nexport type RequestPolicy = {\n /** Aborts every request made while it is set; its reason is rethrown as is. */\n signal?: AbortSignal;\n /** Per-request deadline, covering the response body as well as the headers. */\n timeoutMs?: number;\n};\n\nlet requestPolicy: RequestPolicy = {};\n\nexport function setRequestPolicy(policy: RequestPolicy): void {\n requestPolicy = policy;\n}\n\n/**\n * The orval `mutator` for the fetch client. Every generated operation\n * routes its request through this function instead of the global\n * `fetch`. We pin three concerns here so generated call sites stay\n * focused on the shape of one HTTP call:\n *\n * - bearer auth — read from `runtime/auth.ts` and attached automatically;\n * - the CSRF header — the session-bound token from `runtime/auth.ts`, on\n * unsafe methods to the origin it was issued for, when a first-party surface\n * has set one; an unsafe request to that origin refused with\n * `403 auth.csrf_invalid` asks the registered rejection handler for a fresh\n * token and is retried once with it, only if the handler returns one (the\n * session still belongs to the same person);\n * - non-2xx → throw — orval's stock client parses the body regardless\n * of status, so callers would have to inspect every response. Throw\n * `ApiError` on `!res.ok` so failures interrupt control flow;\n * - body parsing — return the parsed JSON typed as `T` (the operation's\n * return type, threaded through by orval), or `undefined` for the\n * spec's `204`/`205`/`304` no-body responses;\n * - no response → throw {@link NetworkError}, or the abort reason when the\n * caller cancelled (see {@link request}).\n */\nexport async function customFetch<T>(url: string, options: RequestInit): Promise<T> {\n // The client sets the policy per call, so it is read before the first await;\n // the retry below runs under the same policy as the first attempt.\n const policy = requestPolicy;\n const token = getApiAuthToken();\n const headers = new Headers(options.headers);\n if (token && !headers.has(\"authorization\")) {\n headers.set(\"authorization\", `Bearer ${token}`);\n }\n const method = (options.method ?? \"GET\").toUpperCase();\n const unsafe = !SAFE_METHODS.has(method) && !headers.has(CSRF_HEADER);\n // The token and the rejection handler belong to one server: a request to\n // any other origin gets neither.\n const target = originOf(url);\n const csrfToken = apiCsrfTokenFor(target);\n if (unsafe && csrfToken) {\n headers.set(CSRF_HEADER, csrfToken);\n }\n\n let { res, rawBody: parsed } = await request(url, { ...options, headers }, policy, readBody);\n\n // The token was stale (the session cookie changed under this page) or never\n // loaded. The app re-checks the session and hands back a fresh token only if\n // it still belongs to the same person; then the request is retried once. A\n // body that can be read only once cannot be sent again, so it is not retried.\n const onRejected = apiCsrfRejectionHandlerFor(target);\n if (\n unsafe &&\n onRejected &&\n res.status === 403 &&\n apiErrorCode(parsed) === CSRF_INVALID &&\n !isStream(options.body)\n ) {\n const fresh = await onRejected().catch(() => undefined);\n if (fresh && fresh !== csrfToken) {\n headers.set(CSRF_HEADER, fresh);\n ({ res, rawBody: parsed } = await request(url, { ...options, headers }, policy, readBody));\n }\n }\n\n if (!res.ok) {\n const message = `${options.method ?? \"GET\"} ${url} returned ${res.status}`;\n throw new ApiError(\n res.status,\n url,\n parsed,\n message,\n res.headers.get(\"x-request-id\") || undefined,\n );\n }\n\n return parsed as T;\n}\n\n/** The parsed body, or `undefined` for the spec's no-body responses. */\nasync function readBody(res: Response): Promise<unknown> {\n if ([204, 205, 304].includes(res.status)) return undefined;\n const rawBody = await res.text();\n return rawBody ? (safeJsonParse(rawBody) as unknown) : undefined;\n}\n\n/** The request's origin, resolved against the page for a relative URL. */\nfunction originOf(url: string): string | undefined {\n try {\n return new URL(url, (globalThis as { location?: { href?: string } }).location?.href).origin;\n } catch {\n return undefined;\n }\n}\n\nfunction isStream(body: RequestInit[\"body\"]): boolean {\n return typeof ReadableStream !== \"undefined\" && body instanceof ReadableStream;\n}\n\n/**\n * `fetch` bound by a {@link RequestPolicy}, with its failures typed.\n *\n * The policy's signal, its deadline and any signal on `init` are combined, and\n * `read` runs under them too, so a server that sends headers and then stalls\n * mid-body is cut off as well. When the request does not complete:\n *\n * - a deadline fired → {@link NetworkError} with reason `timeout`;\n * - any other abort → the signal's own reason, rethrown untouched, because a\n * cancellation is the caller's decision and the caller knows what it means;\n * - anything else → {@link NetworkError} with reason `unreachable`.\n *\n * Exported for the few callers that need the raw {@link Response} (a\n * `Set-Cookie` header the generated client does not expose).\n */\nexport async function request<R = undefined>(\n url: string,\n init: RequestInit,\n policy: RequestPolicy = {},\n read?: (res: Response) => Promise<R>,\n): Promise<{ res: Response; rawBody: R }> {\n const signals = [init.signal, policy.signal].filter((signal) => signal != null);\n if (policy.timeoutMs !== undefined) {\n signals.push(AbortSignal.timeout(policy.timeoutMs));\n }\n const signal = signals.length > 0 ? AbortSignal.any(signals) : undefined;\n const method = init.method ?? \"GET\";\n try {\n const res = await fetch(url, { ...init, signal });\n return { res, rawBody: (read ? await read(res) : undefined) as R };\n } catch (error) {\n if (signal?.aborted) {\n const reason: unknown = signal.reason;\n if (reason instanceof DOMException && reason.name === \"TimeoutError\") {\n throw new NetworkError(url, \"timeout\", `${method} ${url} timed out`, { cause: reason });\n }\n throw reason;\n }\n const code = errnoOf(error);\n throw new NetworkError(\n url,\n \"unreachable\",\n `${method} ${url} got no response${code ? ` (${code})` : \"\"}`,\n { cause: error },\n );\n }\n}\n\n/**\n * The errno a runtime attached to a failed request, if any, for the message.\n * Undici nests it on `cause`, inside an `AggregateError` when it tried more\n * than one address. Only ever used to describe the failure, never to decide\n * that it was one.\n */\nfunction errnoOf(error: unknown): string | undefined {\n let node: unknown = error;\n for (let depth = 0; depth < 4 && typeof node === \"object\" && node !== null; depth += 1) {\n const { code, errors } = node as { code?: unknown; errors?: unknown };\n if (typeof code === \"string\") {\n return code;\n }\n node = Array.isArray(errors) ? errors[0] : (node as { cause?: unknown }).cause;\n }\n return undefined;\n}\n\n/**\n * `JSON.parse` wrapped so a non-JSON body (e.g. an HTML 502 from a\n * proxy) becomes `{ raw: \"<text>\" }` instead of throwing inside\n * `customFetch`. The thrown `ApiError` then carries something useful\n * for the user to see.\n */\nfunction safeJsonParse(text: string): unknown {\n try {\n return JSON.parse(text);\n } catch {\n return { raw: text };\n }\n}\n\n/**\n * The `code` of the server's `{code, message, details}` error envelope: from an\n * {@link ApiError}, or from a parsed response body. `undefined` when there is\n * none, e.g. an HTML error page from a proxy.\n */\nexport function apiErrorCode(errorOrBody: unknown): string | undefined {\n const body = errorOrBody instanceof ApiError ? errorOrBody.body : errorOrBody;\n return isRecord(body) && typeof body.code === \"string\" ? body.code : undefined;\n}\n\n/**\n * Extracts the server's `{code, message, details}` envelope from an\n * {@link ApiError} into a display string. Falls back to the fetch layer's\n * `\"METHOD url returned N\"` when the body isn't shaped like an envelope, so\n * transport-level failures (HTML from a proxy, empty 5xx) still say\n * something.\n */\nexport function apiErrorMessage(error: ApiError): string {\n const body = error.body;\n if (!isRecord(body)) {\n return error.message;\n }\n const serverMessage = typeof body.message === \"string\" ? body.message : undefined;\n const detail = pickDetailString(body.details);\n if (!serverMessage) {\n return error.message;\n }\n return detail ? `${serverMessage}: ${detail}` : serverMessage;\n}\n\n/**\n * Reads the innermost human-readable string out of the spec's error\n * `details` field. Handles both `details: \"...\"` and the nested\n * `details: { details: \"...\" }` shape the platform emits for validation\n * failures.\n */\nfunction pickDetailString(details: unknown): string | undefined {\n if (typeof details === \"string\") {\n return details;\n }\n if (isRecord(details)) {\n if (typeof details.details === \"string\") {\n return details.details;\n }\n if (typeof details.message === \"string\") {\n return details.message;\n }\n }\n return undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n"],"mappings":";;;AAGA,MAAa,cAAc;AAG3B,MAAM,+BAAe,IAAI,IAAI;CAAC;CAAO;CAAQ;AAAS,CAAC;;AAGvD,MAAM,eAAe;;;;;;;;;;;;AAarB,IAAa,WAAb,cAA8B,MAAM;CAClC;CACA;CACA;;;;;;CAMA;CAEA,YAAY,QAAgB,KAAa,MAAe,SAAiB,WAAoB;EAC3F,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,MAAM;EACX,KAAK,OAAO;EACZ,KAAK,YAAY;CACnB;AACF;;;;;;;;;;;AAYA,IAAa,eAAb,cAAkC,MAAM;CACtC;;CAEA;CAEA,YACE,KACA,QACA,SACA,SACA;EACA,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO;EACZ,KAAK,MAAM;EACX,KAAK,SAAS;CAChB;AACF;AAcA,IAAI,gBAA+B,CAAC;AAEpC,SAAgB,iBAAiB,QAA6B;CAC5D,gBAAgB;AAClB;;;;;;;;;;;;;;;;;;;;;;;AAwBA,eAAsB,YAAe,KAAa,SAAkC;CAGlF,MAAM,SAAS;CACf,MAAM,QAAQ,gBAAgB;CAC9B,MAAM,UAAU,IAAI,QAAQ,QAAQ,OAAO;CAC3C,IAAI,SAAS,CAAC,QAAQ,IAAI,eAAe,GACvC,QAAQ,IAAI,iBAAiB,UAAU,OAAO;CAEhD,MAAM,UAAU,QAAQ,UAAU,MAAA,CAAO,YAAY;CACrD,MAAM,SAAS,CAAC,aAAa,IAAI,MAAM,KAAK,CAAC,QAAQ,IAAA,gBAAe;CAGpE,MAAM,SAAS,SAAS,GAAG;CAC3B,MAAM,YAAY,gBAAgB,MAAM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Y,OAAO;CAClE,OAAO,SAAS,IAAI,KAAK,OAAO,KAAK,SAAS,WAAW,KAAK,OAAO,KAAA;AACvE;;;;;;;;AASA,SAAgB,gBAAgB,OAAyB;CACvD,MAAM,OAAO,MAAM;CACnB,IAAI,CAAC,SAAS,IAAI,GAChB,OAAO,MAAM;CAEf,MAAM,gBAAgB,OAAO,KAAK,YAAY,WAAW,KAAK,UAAU,KAAA;CACxE,MAAM,SAAS,iBAAiB,KAAK,OAAO;CAC5C,IAAI,CAAC,eACH,OAAO,MAAM;CAEf,OAAO,SAAS,GAAG,cAAc,IAAI,WAAW;AAClD;;;;;;;AAQA,SAAS,iBAAiB,SAAsC;CAC9D,IAAI,OAAO,YAAY,UACrB,OAAO;CAET,IAAI,SAAS,OAAO,GAAG;EACrB,IAAI,OAAO,QAAQ,YAAY,UAC7B,OAAO,QAAQ;EAEjB,IAAI,OAAO,QAAQ,YAAY,UAC7B,OAAO,QAAQ;CAEnB;AAEF;AAEA,SAAS,SAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E"}
@@ -1,23 +1,25 @@
1
- import { $g as ExchangeHandoff200, $h as GetClaimStatus200, $n as RemovePreviewBody, Ac as ListMyPasskeysParams, Ap as GetIdpById200, Bp as GetHealthDefault, C as UpdateTeamBody, Cv as CreateSession201, Dr as QueryTeamsParams, Ds as ListUserIdentityLinksParams, ES as CreateBrandingParams, Eb as CreateFlowDefinitionBody, Ew as BuildRelease200, Ey as CreateIdp201, F_ as CreateUserBody, Fi as QueryProjects200, Fv as CreateSchema201, Gi as QueryIdpsBody, Gs as ListSchemas200, Hd as GetReleaseByIdParams, Hf as GetMySession200, Hg as ExchangeHandoffParams, Hh as GetClaimWindow200, Hn as RevokeRelease200, Hu as GetVariable200, Ic as ListMyPasskeys200, Ih as GetClaimWindowParams, Iu as GetVariables200, Iv as CreateReleaseParams, Iy as CreateIdp200, Jw as AddOrigin201, Jx as CreateDeploymentBody, Ka as PatchUserByIDBody, Kc as ListIdpRevisionsParams, Km as GetFlowDefinition200, Kr as QueryTeams200, Kv as CreateRelease200, Kw as AddOriginBody, Kx as CreateDeploymentParams, L as SubmitFlowStepBody, Ld as GetSchemaByIdParams, Ll as ListEventsParams, Ln as RevokeReleaseParams, Mf as GetMySessionParams, Mu as InitClaim201, Mv as CreateSchemaParams, Mw as BeginUserPasskeyRegistrationBody, N_ as CreateUserParams, Na as QueryGrants200, No as PatchMyUserBody, Nu as GetVariablesParams, OC as CompleteClaim200, OS as CreateBrandingBody, P as UpdateTeam200, Pf as GetMySessionCsrfTokenParams, Pv as CreateSchemaBody, Ql as ListDeployments200, Qo as ListUserTeamsParams, Qp as GetGrant200, Qv as CreateProjectBody, Qy as CreateGrantBody, Rc as ListMyIdentityLinksParams, Rf as GetMySessionCsrfToken200, Rv as CreateReleaseBody, Sc as ListMyProjects200, Sh as GetDeploymentByIdParams, Sp as GetIdpByIdParams, T_ as DeleteGrantParams, Ts as ListUserPasskeys200, Ub as CreateFlowDefinition201, Uh as GetClaimStatusParams, Ui as QueryIdpsParams, Up as GetGrantParams, Uw as BeginUserPasskeyRegistration201, VS as CreateBranding201, Vg as FinishUserPasskeyRegistration201, Vs as ListSchemasParams, Vv as CreateRelease201, Wc as ListMyIdentityLinks200, Wd as GetReleaseById200, Wg as ExchangeHandoffBody, Wo as PatchMyUser200, Xf as GetMyPasswordStateParams, Xy as CreateGrantParams, Yd as GetReadyDefault, Yl as ListDeploymentsParams, Yr as QuerySessionsParams, Ys as ListReleasesParams, Yt as SetUserPasswordBody, Yy as CreateHandoff200, Zr as QuerySessionsBody, Zs as ListReleases200, _a as QueryGrantsParams, _x as CreateFlow201, a as VerifyChallengeProof200, aC as CreateAuthAttempt201, ac as ListMyTeamsParams, bd as GetTeam200, bi as QueryProjectsBody, bn as RollbackDeployment200, c_ as DeleteVariableParams, cn as RollbackDeployment201, cx as CreateFlowBody, cy as CreateIdpBody, dc as ListMyTeams200, dl as ListFlowDefinitionsParams, du as ListBrandingParams, eC as CreateAuthAttemptBody, ed as GetUserPasswordState200, el as ListIdpRevisions200, ep as GetMyPasswordState200, fp as GetIdpRevisionById200, gC as CompleteClaimBody, gm as GetFlowStep200, gv as CreateTeam201, h as UpdateVariablesParams, hf as GetMyUserSchema200, hu as IssueChallengeBody, in as RollbackDeploymentBody, io as PatchUserByID200, ip as GetIdpRevisionByIdParams, ir as QueryUsersBody, jC as BuildReleaseBody, jo as PatchMyUserParams, kC as BuildReleaseParams, kd as GetSession200, kg as FinishUserPasskeyRegistrationBody, kr as QueryTeamsBody, mS as CreateDeployment200, mb as CreateGrant201, mc as ListMyProjectsParams, n as VerifyChallengeProofBody, nS as CreateDeployment201, nn as RollbackDeploymentParams, nr as QueryUsersParams, oa as QueryIdps200, oy as CreateIdpParams, po as PatchProjectBody, ps as ListUserPasskeysParams, pu as ListBranding200Item, q_ as CreateUser201, ql as ListEvents200, qn as RevokeMySessionParams, rc as ListPreviews200, rf as GetProject200, rg as GetBrandingById200, rv as CreateTeamBody, ry as CreateProject201, sd as GetUserByID200, tc as ListPreviewsParams, td as GetUserByIDParams, tp as GetLiveDefault, tr as RemoveOriginBody, tv as CreateTeamParams, uf as GetMyUserSchemaParams, uh as GetEventParams, ui as QuerySessions200, us as ListUserTeams200, v as UpdateVariablesBody, vf as GetMyUserParams, vg as GetAuthAttempt200, vh as GetEvent200, vl as ListFlowDefinitions200, vr as QueryUsers200, wf as GetMyUser200, wh as GetDeploymentById200, wo as PatchProject200, xh as GetDeploymentVariables200, xu as IssueChallenge201, xw as BuildRelease201, y as UpdateVariables200, ya as QueryGrantsBody, yh as GetDeploymentVariablesParams, yt as SubmitFlowStep200, yv as CreateSessionBody, zd as GetSchemaById200, zs as ListUserIdentityLinks200, zu as GetVariableParams } from "./index-DuuFQkA8.mjs";
2
- import { s as customFetch } from "./fetch-DD3lSbnp.mjs";
1
+ import { $C as BuildReleaseBody, $r as QuerySessionsBody, Ah as GetEventParams, Ao as PatchProject200, Bf as GetMyUserParams, Bx as CreateFlow201, C as UpdateTeamBody, Cd as GetUserByIDParams, Cg as GetBrandingById200, Cp as GetLiveDefault, DC as CreateAuthAttempt201, Dc as ListPolicies200, Ds as ListUserIdentityLinksParams, ES as CreateDeployment201, E_ as EvaluatePolicyParams, Ef as GetPolicyRevisionParams, Ep as GetIdpRevisionByIdParams, Ev as CreateTeamBody, Ey as CreateProject201, Fa as QueryGrants200, Fc as ListMyTeams200, Fl as ListFlowDefinitionsParams, Fm as GetFlowStep200, Fu as ListBrandingParams, Gi as QueryIdpsParams, Hd as GetTeam200, Hh as GetDeploymentByIdParams, Hl as ListFlowDefinitions200, Hv as CreateSessionBody, Ig as GetAuthAttempt200, J_ as DeleteGrantParams, Jr as QueryTeams200, Kc as ListMyProjects200, Kf as GetMyUser200, Ks as ListSchemas200, Kv as CreateSession201, L as SubmitFlowStepBody, Lb as CreateGrant201, Lf as GetMyUserSchema200, Li as QueryProjects200, Lu as ListBranding200Item, Mf as GetMyUserSchemaParams, No as PatchMyUserBody, O_ as EvaluatePolicyBody, Of as GetPolicyRevision200, P as UpdateTeam200, Pp as GetIdpRevisionById200, QS as CreateBrandingBody, Qa as PatchUserByIDBody, Qo as ListUserTeamsParams, Qp as GetIdpById200, Qs as ListReleases200, RC as CompleteClaimBody, RS as CreateDeployment200, Rc as ListMyProjectsParams, Rh as GetEvent200, Sc as ListPolicyRevisions200, Sd as GetUserPasswordState200, Si as QueryProjectsBody, Sn as RollbackDeployment200, Sp as GetMyPasswordState200, Su as ListDeployments200, Tf as GetProject200, Ts as ListUserPasskeys200, Uu as IssueChallenge201, Vh as GetDeploymentVariables200, Vs as ListSchemasParams, Wh as GetDeploymentById200, Wn as RevokeRelease200, Wo as PatchMyUser200, Wp as GetIdpByIdParams, Ww as BuildRelease201, XC as CompleteClaim200, XS as CreateBrandingParams, Xa as PublishPolicy201, Xs as ListReleasesParams, Ya as PublishPolicyBody, Yb as CreateFlowDefinitionBody, Yn as RevokeMySessionParams, Yw as BuildRelease200, Yy as CreateIdp201, ZC as BuildReleaseParams, Zd as GetSession200, Zr as QuerySessionsParams, Zt as SetUserPasswordBody, _T as AddOrigin201, __ as ExchangeHandoff200, _f as GetReadyDefault, _m as GetGrant200, _u as ListEvents200, a as VerifyChallengeProof200, a_ as FinishUserPasskeyRegistration201, ab as CreateIdp200, af as GetSchemaByIdParams, ay as CreateReleaseParams, bc as ListPolicyRevisionsParams, br as QueryUsers200, bt as SubmitFlowStep200, c_ as ExchangeHandoffBody, ca as QueryIdps200, cg as GetClaimWindow200, cl as ListMyIdentityLinksParams, cm as GetGrantParams, dC as CreateBranding201, ed as InitClaim201, el as ListMyPasskeysParams, ep as GetMySessionParams, fT as BeginUserPasskeyRegistration201, fc as ListProjectAdmins200, ff as GetReleaseById200, fh as GetFlowDefinition200, fi as QuerySessions200, fx as CreateFlowDefinition201, gS as CreateDeploymentParams, gc as ListPreviewsParams, gl as ListIdpRevisionsParams, gv as CreateUser201, h as UpdateVariablesParams, hT as AddOriginBody, hy as CreateRelease200, id as GetVariables200, in as RollbackDeploymentParams, ir as QueryUsersParams, iv as CreateUserBody, iy as CreateSchema201, j_ as DeleteVariableParams, jf as GetPolicy200, jo as PatchMyUserParams, jr as QueryTeamsBody, jx as CreateFlowBody, jy as CreateIdpBody, k_ as EvaluatePolicy200, kc as ListMyTeamsParams, kd as GetUserByID200, kf as GetPolicyParams, kr as QueryTeamsParams, ky as CreateIdpParams, lg as GetClaimStatusParams, ml as ListMyIdentityLinks200, n as VerifyChallengeProofBody, nc as ListProjectAdminsParams, ng as GetClaimWindowParams, np as GetMySessionCsrfTokenParams, nv as CreateUserParams, o_ as ExchangeHandoffParams, ol as ListMyPasskeys200, on as RollbackDeploymentBody, op as GetMySessionCsrfToken200, or as QueryUsersBody, ps as ListUserPasskeysParams, qa as PublishPolicyParams, qg as FinishUserPasskeyRegistrationBody, qi as QueryIdpsBody, rr as RemoveOriginBody, ry as CreateSchemaBody, sd as GetVariableParams, sf as GetSchemaById200, su as ListEventsParams, sy as CreateReleaseBody, tT as BeginUserPasskeyRegistrationBody, td as GetVariablesParams, tr as RemovePreviewBody, ty as CreateSchemaParams, ud as GetVariable200, uf as GetReleaseByIdParams, un as RollbackDeployment201, uo as PatchUserByID200, up as GetMySession200, us as ListUserTeams200, uy as CreateRelease201, v as UpdateVariablesBody, vS as CreateDeploymentBody, vb as CreateHandoff200, vc as ListPreviews200, vp as GetMyPasswordStateParams, wC as CreateAuthAttemptBody, wc as ListPoliciesParams, wl as ListIdpRevisions200, wv as CreateTeamParams, xa as QueryGrantsBody, xb as CreateGrantBody, xy as CreateProjectBody, y as UpdateVariables200, ya as QueryGrantsParams, yb as CreateGrantParams, yg as GetClaimStatus200, yo as PatchProjectBody, yu as ListDeploymentsParams, zh as GetDeploymentVariablesParams, zn as RevokeReleaseParams, zs as ListUserIdentityLinks200, zu as IssueChallengeBody, zv as CreateTeam201 } from "./index-DAm3tCA7.mjs";
2
+ import { s as customFetch } from "./fetch-CtYe0OvX.mjs";
3
3
  declare namespace zitadelNextGen_d_exports {
4
- export { addOrigin, beginUserPasskeyRegistration, buildRelease, completeClaim, createAuthAttempt, createBranding, createDeployment, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, exchangeHandoff, finishUserPasskeyRegistration, getAddOriginUrl, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getBuildReleaseUrl, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateDeploymentUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getDeploymentById, getDeploymentVariables, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetDeploymentByIdUrl, getGetDeploymentVariablesUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetHealthUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMyPasswordStateUrl, getGetMySessionCsrfTokenUrl, getGetMySessionUrl, getGetMyUserSchemaUrl, getGetMyUserUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetUserPasswordStateUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getHealth, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListDeploymentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyIdentityLinksUrl, getListMyPasskeysUrl, getListMyProjectsUrl, getListMyTeamsUrl, getListPreviewsUrl, getListReleasesUrl, getListSchemasUrl, getListUserIdentityLinksUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMyPasswordState, getMySession, getMySessionCsrfToken, getMyUser, getMyUserSchema, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getProject, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRemoveOriginUrl, getRemovePreviewUrl, getRevokeMySessionUrl, getRevokeReleaseUrl, getRevokeSessionUrl, getRollbackDeploymentUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getUserPasswordState, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listDeployments, listEvents, listFlowDefinitions, listIdpRevisions, listMyIdentityLinks, listMyPasskeys, listMyProjects, listMyTeams, listPreviews, listReleases, listSchemas, listUserIdentityLinks, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, removeOrigin, removePreview, revokeMySession, revokeRelease, revokeSession, rollbackDeployment, setUserPassword, submitFlowStep, updateTeam, updateVariables, verifyChallengeProof };
4
+ export { addOrigin, beginUserPasskeyRegistration, buildRelease, completeClaim, createAuthAttempt, createBranding, createDeployment, createFlow, createFlowDefinition, createGrant, createHandoff, createIdp, createProject, createRelease, createSchema, createSession, createTeam, createUser, deleteGrant, deleteTeam, deleteUserByID, deleteVariable, evaluatePolicy, exchangeHandoff, finishUserPasskeyRegistration, getAddOriginUrl, getAuthAttempt, getBeginUserPasskeyRegistrationUrl, getBrandingById, getBuildReleaseUrl, getClaimStatus, getClaimWindow, getCompleteClaimUrl, getCreateAuthAttemptUrl, getCreateBrandingUrl, getCreateDeploymentUrl, getCreateFlowDefinitionUrl, getCreateFlowUrl, getCreateGrantUrl, getCreateHandoffUrl, getCreateIdpUrl, getCreateProjectUrl, getCreateReleaseUrl, getCreateSchemaUrl, getCreateSessionUrl, getCreateTeamUrl, getCreateUserUrl, getDeleteGrantUrl, getDeleteTeamUrl, getDeleteUserByIDUrl, getDeleteVariableUrl, getDeploymentById, getDeploymentVariables, getEvaluatePolicyUrl, getEvent, getExchangeHandoffUrl, getFinishUserPasskeyRegistrationUrl, getFlowDefinition, getFlowStep, getGetAuthAttemptUrl, getGetBrandingByIdUrl, getGetClaimStatusUrl, getGetClaimWindowUrl, getGetDeploymentByIdUrl, getGetDeploymentVariablesUrl, getGetEventUrl, getGetFlowDefinitionUrl, getGetFlowStepUrl, getGetGrantUrl, getGetIdpByIdUrl, getGetIdpRevisionByIdUrl, getGetLiveUrl, getGetMyPasswordStateUrl, getGetMySessionCsrfTokenUrl, getGetMySessionUrl, getGetMyUserSchemaUrl, getGetMyUserUrl, getGetPolicyRevisionUrl, getGetPolicyUrl, getGetProjectUrl, getGetReadyUrl, getGetReleaseByIdUrl, getGetSchemaByIdUrl, getGetSessionUrl, getGetTeamUrl, getGetUserByIDUrl, getGetUserPasswordStateUrl, getGetVariableUrl, getGetVariablesUrl, getGrant, getIdpById, getIdpRevisionById, getInitClaimUrl, getIssueChallengeUrl, getListBrandingUrl, getListDeploymentsUrl, getListEventsUrl, getListFlowDefinitionsUrl, getListIdpRevisionsUrl, getListMyIdentityLinksUrl, getListMyPasskeysUrl, getListMyProjectsUrl, getListMyTeamsUrl, getListPoliciesUrl, getListPolicyRevisionsUrl, getListPreviewsUrl, getListProjectAdminsUrl, getListReleasesUrl, getListSchemasUrl, getListUserIdentityLinksUrl, getListUserPasskeysUrl, getListUserTeamsUrl, getLive, getMyPasswordState, getMySession, getMySessionCsrfToken, getMyUser, getMyUserSchema, getPatchMyUserUrl, getPatchProjectUrl, getPatchUserByIDUrl, getPolicy, getPolicyRevision, getProject, getPublishPolicyUrl, getQueryGrantsUrl, getQueryIdpsUrl, getQueryProjectsUrl, getQuerySessionsUrl, getQueryTeamsUrl, getQueryUsersUrl, getReady, getReleaseById, getRemoveOriginUrl, getRemovePreviewUrl, getRevokeMySessionUrl, getRevokeReleaseUrl, getRevokeSessionUrl, getRollbackDeploymentUrl, getSchemaById, getSession, getSetUserPasswordUrl, getSubmitFlowStepUrl, getTeam, getUpdateTeamUrl, getUpdateVariablesUrl, getUserByID, getUserPasswordState, getVariable, getVariables, getVerifyChallengeProofUrl, initClaim, issueChallenge, listBranding, listDeployments, listEvents, listFlowDefinitions, listIdpRevisions, listMyIdentityLinks, listMyPasskeys, listMyProjects, listMyTeams, listPolicies, listPolicyRevisions, listPreviews, listProjectAdmins, listReleases, listSchemas, listUserIdentityLinks, listUserPasskeys, listUserTeams, patchMyUser, patchProject, patchUserByID, publishPolicy, queryGrants, queryIdps, queryProjects, querySessions, queryTeams, queryUsers, removeOrigin, removePreview, revokeMySession, revokeRelease, revokeSession, rollbackDeployment, setUserPassword, submitFlowStep, updateTeam, updateVariables, verifyChallengeProof };
5
5
  }
6
- declare const getGetHealthUrl: () => string;
7
- /**
8
- * Check whether the server is healthy
9
- * @summary Check server health
10
- */
11
- declare const getHealth: (options?: Parameters<typeof customFetch>[1]) => Promise<GetHealthDefault>;
12
6
  declare const getGetLiveUrl: () => string;
13
7
  /**
14
- * Check whether the server is started
8
+ * Answers `ok` while the server process serves HTTP, and checks nothing behind it.
9
+ *
10
+ * Point a liveness probe here. It never checks the database, so an outage
11
+ * of the database does not restart every instance; `GET /readyz` takes an
12
+ * instance out of rotation instead.
15
13
  * @summary Check server liveness
16
14
  */
17
15
  declare const getLive: (options?: Parameters<typeof customFetch>[1]) => Promise<GetLiveDefault>;
18
16
  declare const getGetReadyUrl: () => string;
19
17
  /**
20
- * Check whether the server is ready to accept requests
18
+ * Answers whether the server can serve requests, which takes its database answering within a second.
19
+ *
20
+ * Point a readiness probe here, so that a server whose database does not
21
+ * answer gets no requests until it does. The check is one round trip to the
22
+ * database.
21
23
  * @summary Check server readiness
22
24
  */
23
25
  declare const getReady: (options?: Parameters<typeof customFetch>[1]) => Promise<GetReadyDefault>;
@@ -64,9 +66,11 @@ declare const getPatchUserByIDUrl: (userId: string) => string;
64
66
  declare const patchUserByID: (userId: string, patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]) => Promise<PatchUserByID200>;
65
67
  declare const getDeleteUserByIDUrl: (userId: string) => string;
66
68
  /**
67
- * Deletes a user and removes them from every team they belong to.
69
+ * Deletes a user, removes them from every team they belong to, and revokes
70
+ * every grant they hold, on any project.
68
71
  *
69
- * The user is removed, not deactivated, and the deletion emits `user.deleted`.
72
+ * The user is removed, not deactivated, and the deletion emits `user.deleted`,
73
+ * plus `authz.revoked` for each grant on that grant's project.
70
74
  * With a project secret the request is idempotent: deleting a user that exists
71
75
  * in no project succeeds without changing anything.
72
76
  * @summary Delete user by ID
@@ -197,14 +201,20 @@ declare const getGetMyPasswordStateUrl: (params?: GetMyPasswordStateParams) => s
197
201
  declare const getMyPasswordState: (params?: GetMyPasswordStateParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetMyPasswordState200>;
198
202
  declare const getListMyProjectsUrl: (params?: ListMyProjectsParams) => string;
199
203
  /**
200
- * The projects the signed-in user holds an active grant on, either directly or
201
- * through a team they are a member of. Ordered by project id and paged with an
202
- * opaque cursor.
204
+ * The projects the signed-in user can act on: those they hold an active grant
205
+ * on, either directly or through a team they are a member of. For a platform
206
+ * operator (ADR 075) that is every project of the deployment. Ordered by
207
+ * project id and paged with an opaque cursor.
203
208
  *
204
209
  * This is not the same question as `queryProjects`, which answers with the one
205
210
  * project the calling credential is bound to. Here the session is the caller
206
211
  * and the grants are the answer, so the list spans projects.
207
212
  *
213
+ * With `name_contains`, only the projects whose name contains that text are
214
+ * listed. The search runs on the server together with the grants, so it
215
+ * reaches every project the user can act on, however many there are, and
216
+ * pages like the full list.
217
+ *
208
218
  * With `project_id`, the projects are listed only when the session belongs to
209
219
  * that project. It names the project the session was signed in to, not one to
210
220
  * list.
@@ -246,7 +256,10 @@ declare const getCreateFlowUrl: () => string;
246
256
  * pattern with no live preview answers `403` with `proj.preview_not_live`;
247
257
  * nothing deployed to the target answers `409` with `rel.not_deployed`; a
248
258
  * revoked release answers `409` with `rel.revoked`. A request with no
249
- * `Origin` passes the gate and still needs a deployment target.
259
+ * `Origin` passes the gate and still needs a deployment target. A loopback
260
+ * origin passes it too, and so does the server's own origin, from which its
261
+ * console previews a project's login; a step submitted from the server's
262
+ * own origin is still refused unless the project lists it.
250
263
  *
251
264
  * The response contains an `id` field — the flow handle. Use it as the path
252
265
  * parameter for all subsequent `/flow/{id}/submit` calls.
@@ -337,10 +350,10 @@ declare const getCreateAuthAttemptUrl: () => string;
337
350
  * also include session_id and that session's session_token to add factors to an existing session.
338
351
  *
339
352
  * The project comes from the project secret. A body `project_id` that disagrees
340
- * answers `403` with `proj.mismatch`. The attempt resolves a deployment the
341
- * same way as other runtime operations and seals it; with no browser `Origin`
342
- * and nothing deployed to the resolved target the response is `409` with
343
- * `rel.not_deployed`. A revoked release answers `409` with `rel.revoked`.
353
+ * answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are
354
+ * filled only when create runs with a runtime resolution already on the
355
+ * context (the flow create path); this HTTP entry point does not resolve
356
+ * Origin or refuse a revoked release itself.
344
357
  * @summary Create a new authentication attempt
345
358
  */
346
359
  declare const createAuthAttempt: (createAuthAttemptBody: CreateAuthAttemptBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateAuthAttempt201>;
@@ -353,9 +366,6 @@ declare const getGetAuthAttemptUrl: (attemptId: string) => string;
353
366
  *
354
367
  * Use this for polling during long-running factor verifications (e.g., waiting for
355
368
  * a federated IdP callback or a device flow).
356
- *
357
- * Reuses the deployment sealed when the attempt was created. If that release
358
- * was revoked since, the response is `409` with `rel.revoked`.
359
369
  * @summary Get authentication attempt state
360
370
  */
361
371
  declare const getAuthAttempt: (attemptId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAuthAttempt200>;
@@ -367,9 +377,6 @@ declare const getIssueChallengeUrl: (attemptId: string) => string;
367
377
  * (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
368
378
  * including method, metadata, and any UI hints. The client then verifies the proof
369
379
  * by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
370
- *
371
- * Reuses the deployment sealed when the attempt was created. If that release
372
- * was revoked since, the response is `409` with `rel.revoked`.
373
380
  * @summary Issue a factor challenge
374
381
  */
375
382
  declare const issueChallenge: (attemptId: string, issueChallengeBody: IssueChallengeBody, options?: Parameters<typeof customFetch>[1]) => Promise<IssueChallenge201>;
@@ -385,9 +392,6 @@ declare const getVerifyChallengeProofUrl: (attemptId: string, challengeId: strin
385
392
  *
386
393
  * On successful verification, the factor is written to the auth attempt.
387
394
  * The attempt moves to the next pending challenge or completes if all required factors are verified.
388
- *
389
- * Reuses the deployment sealed when the attempt was created. If that release
390
- * was revoked since, the response is `409` with `rel.revoked`.
391
395
  * @summary Verify a factor proof
392
396
  */
393
397
  declare const verifyChallengeProof: (attemptId: string, challengeId: string, verifyChallengeProofBody: VerifyChallengeProofBody, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyChallengeProof200>;
@@ -404,8 +408,7 @@ declare const getCreateHandoffUrl: (attemptId: string) => string;
404
408
  * - Audience-bound (requires matching project key for exchange)
405
409
  * - Idempotency-safe within a 5-minute window (see conventions)
406
410
  *
407
- * Reuses the deployment sealed when the attempt was created. If that release
408
- * was revoked since, the response is `409` with `rel.revoked`.
411
+ * Revoke refusal for a sealed release happens at handoff exchange, not here.
409
412
  * @summary Complete authentication and create handoff token
410
413
  */
411
414
  declare const createHandoff: (attemptId: string, options?: Parameters<typeof customFetch>[1]) => Promise<CreateHandoff200>;
@@ -443,6 +446,39 @@ declare const getPatchProjectUrl: (projectId: string) => string;
443
446
  * @summary Update project
444
447
  */
445
448
  declare const patchProject: (projectId: string, patchProjectBody: PatchProjectBody, options?: Parameters<typeof customFetch>[1]) => Promise<PatchProject200>;
449
+ declare const getListProjectAdminsUrl: (projectId: string, params?: ListProjectAdminsParams) => string;
450
+ /**
451
+ * Lists the people who can administer the project, and how each of them
452
+ * gets that access. A person appears once, with one entry in `sources` per
453
+ * way they hold it:
454
+ *
455
+ * - `owning_team`: an active member of the team that owns the project
456
+ * (ADR 054 §2). Removing a grant does not remove this access; it ends
457
+ * only when the person leaves the team or the project changes owner.
458
+ * - `grant`: an unexpired `admin` grant on the project, either to the
459
+ * person (`grant_id` only) or to a team they are an active member of
460
+ * (`grant_id` and `team`). Revoking that grant removes this source.
461
+ *
462
+ * The list follows the authorization check: team membership is read from
463
+ * the same membership projection the check expands, so a person who left a
464
+ * team, or whose team or user was deactivated, is not listed through it.
465
+ * Grants that expired or carry a lower role are left out. A person whose
466
+ * only access is a `viewer` or `editor` grant is not an admin and is not
467
+ * listed. Like the check, the list does not look at a person's user status
468
+ * beyond that, so a direct grant to a suspended person is listed.
469
+ *
470
+ * A person whose access comes only through teams the caller is not a
471
+ * member of is left out, and a team the caller is not in is named by
472
+ * `team_id` only. The grant to such a team still shows in the project's
473
+ * grants.
474
+ *
475
+ * Ordered by `user_id` and paginated with `page_token`.
476
+ *
477
+ * Accepts either a project secret (`oauth2`) or a user-bound Console
478
+ * session cookie (`nextgenSession`) that can read the project.
479
+ * @summary List project admins
480
+ */
481
+ declare const listProjectAdmins: (projectId: string, params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListProjectAdmins200>;
446
482
  declare const getInitClaimUrl: (projectId: string) => string;
447
483
  /**
448
484
  * Starts a claim challenge for an unclaimed project. Authenticated by the
@@ -867,6 +903,94 @@ declare const getGetIdpRevisionByIdUrl: (revisionId: string, params: GetIdpRevis
867
903
  * @summary Get one revision of an identity provider connection
868
904
  */
869
905
  declare const getIdpRevisionById: (revisionId: string, params: GetIdpRevisionByIdParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetIdpRevisionById200>;
906
+ declare const getListPoliciesUrl: (params: ListPoliciesParams) => string;
907
+ /**
908
+ * Lists the project's policies, one per operation, each as its newest
909
+ * revision, ordered by `created_at` (first publish) and then `id`. Filter
910
+ * by `operation` to read the policy of one operation; a project that never
911
+ * published one gets an empty list.
912
+ *
913
+ * The lookup is scoped to the project in `project_id`.
914
+ * @summary List policies
915
+ */
916
+ declare const listPolicies: (params: ListPoliciesParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListPolicies200>;
917
+ declare const getPublishPolicyUrl: (params: PublishPolicyParams) => string;
918
+ /**
919
+ * Publishes the project's policy for an operation as a new immutable
920
+ * revision, creating the policy on its first publish. The newest revision
921
+ * applies to the next time the operation runs; nothing already stored is
922
+ * re-evaluated, so a stricter password policy applies the next time a
923
+ * password is set.
924
+ *
925
+ * The request is typed by `operation`: an unknown operation or setting, or
926
+ * a value of the wrong type or outside its bounds, answers `req.invalid`
927
+ * like any malformed request. The operation's template then checks the
928
+ * config again, together with the rules that relate settings to each other
929
+ * (a `min_length` above `max_length`), and answers `pol.invalid`. Its
930
+ * `details.details.violations` lists everything that failed, settings
931
+ * first, then rules: `{"setting": "min_length"}` for one setting, or
932
+ * `{"config_rule": "min_length_not_above_max_length", "settings":
933
+ * ["min_length", "max_length"]}` for a rule across settings, with the
934
+ * settings it reads. A setting left out is off, and `{}` switches every
935
+ * rule off; there are no defaults.
936
+ * @summary Publish a policy
937
+ */
938
+ declare const publishPolicy: (publishPolicyBody: PublishPolicyBody, params: PublishPolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<PublishPolicy201>;
939
+ declare const getEvaluatePolicyUrl: (params: EvaluatePolicyParams) => string;
940
+ /**
941
+ * Evaluates a policy config against one request, without side effects, and
942
+ * answers the decision the operation would reach. Nothing is read from or
943
+ * written to the project: the config is the one in the body, checked
944
+ * exactly as a publish checks it, so an invalid config answers `pol.invalid`
945
+ * with the same violations.
946
+ *
947
+ * `input` is what the operation's request carries, in the operation's own
948
+ * terms (a password, not its length): the server derives what the policy
949
+ * checks with the code the live operation runs, guards included. `facts`
950
+ * states what the operation would look up at runtime, such as whether the
951
+ * candidate matches one of the user's kept passwords.
952
+ *
953
+ * The decision and the names of the failed rules hold wherever the
954
+ * operation runs. `code` and `violations` are what an API call answers; a
955
+ * login flow shows the same rules as field errors on the password field
956
+ * (`error.x-auth-methods#password_<rule>` in `step.error`).
957
+ *
958
+ * Which policy a project or release applies is not decided here: read it
959
+ * and pass its config.
960
+ *
961
+ * The caller needs read access to the project in `project_id`.
962
+ * @summary Evaluate a policy
963
+ */
964
+ declare const evaluatePolicy: (evaluatePolicyBody: EvaluatePolicyBody, params: EvaluatePolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<EvaluatePolicy200>;
965
+ declare const getGetPolicyUrl: (policyId: string, params: GetPolicyParams) => string;
966
+ /**
967
+ * Reads a policy as its newest revision, the one that applies the next time
968
+ * its operation runs.
969
+ *
970
+ * The lookup is scoped to the project in `project_id`: a policy of another
971
+ * project answers not found exactly as an unknown id does.
972
+ * @summary Get a policy
973
+ */
974
+ declare const getPolicy: (policyId: string, params: GetPolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetPolicy200>;
975
+ declare const getListPolicyRevisionsUrl: (policyId: string, params: ListPolicyRevisionsParams) => string;
976
+ /**
977
+ * Returns every revision of one policy, newest first, paginated with a
978
+ * cursor. The order is fixed, so there is no `sorting`.
979
+ *
980
+ * The lookup is scoped to the project in `project_id`: a policy of another
981
+ * project answers not found exactly as an unknown id does.
982
+ * @summary List the revisions of a policy
983
+ */
984
+ declare const listPolicyRevisions: (policyId: string, params: ListPolicyRevisionsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListPolicyRevisions200>;
985
+ declare const getGetPolicyRevisionUrl: (revisionId: string, params: GetPolicyRevisionParams) => string;
986
+ /**
987
+ * Reads one revision of a policy, newest or not.
988
+ *
989
+ * The lookup is scoped to the project in `project_id`: a revision of another
990
+ * project answers not found exactly as an unknown id does.
991
+ * @summary Get a policy revision
992
+ */
993
+ declare const getPolicyRevision: (revisionId: string, params: GetPolicyRevisionParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetPolicyRevision200>;
870
994
  declare const getCreateReleaseUrl: (params: CreateReleaseParams) => string;
871
995
  /**
872
996
  * Assembles a release from existing revisions, given as
@@ -918,7 +1042,9 @@ declare const getBuildReleaseUrl: (params: BuildReleaseParams) => string;
918
1042
  * allocates nothing, however long ago it was built. Otherwise every resource is compared against the
919
1043
  * project's newest revision of the same handle: unchanged content reuses
920
1044
  * that revision, changed content allocates a new one, and the request
921
- * answers `201` with the new release. Metadata is excluded from the
1045
+ * answers `201` with the new release. A policy whose config matches only an
1046
+ * older revision allocates a new one too, so a request that resolves no
1047
+ * release, which reads the newest revision, applies it as well. Metadata is excluded from the
922
1048
  * comparison, so the same content under a different `message` is the same
923
1049
  * release.
924
1050
  *
@@ -932,8 +1058,8 @@ declare const getBuildReleaseUrl: (params: BuildReleaseParams) => string;
932
1058
  *
933
1059
  * Building writes revisions, so besides `release.write` it needs the write
934
1060
  * scope of every kind the bundle carries a resource of: `schema.write`,
935
- * `flow_definition.write`, `branding.write` and `idp.write`, as the
936
- * per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
1061
+ * `flow_definition.write`, `branding.write`, `idp.write` and
1062
+ * `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
937
1063
  * naming the kind. An empty kind needs no scope.
938
1064
  *
939
1065
  * Building a release does not deploy it. A release is not tied to an
@@ -1159,11 +1285,11 @@ declare const getCreateDeploymentUrl: (params: CreateDeploymentParams) => string
1159
1285
  * - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;
1160
1286
  * a primary origin named exactly; `primary` mixed with preview URLs;
1161
1287
  * `primary` on a project with no primary origin; `ttl` with `primary`;
1162
- * `ttl` above the project's maximum.
1288
+ * `ttl` above 365 days (`P365D`).
1163
1289
  * - `400 dep.variables_missing`: a referenced variable has no value for
1164
1290
  * the kind; `details` names the kind and every missing variable.
1165
1291
  * - `403 proj.origin_not_allowed`: a preview URL matches no preview
1166
- * pattern.
1292
+ * pattern, or is a loopback URL.
1167
1293
  * - `404 rel.not_found`: the release id or digest names no release here.
1168
1294
  * - `409 dep.conflict`: `expected_deployment_id` is not the deployment
1169
1295
  * this write replaces; `details.deployment` is that deployment.
@@ -1230,5 +1356,5 @@ declare const getGetDeploymentVariablesUrl: (deploymentId: string, params: GetDe
1230
1356
  */
1231
1357
  declare const getDeploymentVariables: (deploymentId: string, params: GetDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetDeploymentVariables200>;
1232
1358
  //#endregion
1233
- export { getEvent as $, patchMyUser as $n, getListUserTeamsUrl as $t, getClaimStatus as A, getUpdateVariablesUrl as An, getGetUserPasswordStateUrl as At, getCreateIdpUrl as B, listEvents as Bn, getListDeploymentsUrl as Bt, exchangeHandoff as C, getRollbackDeploymentUrl as Cn, getGetProjectUrl as Ct, getBeginUserPasskeyRegistrationUrl as D, getSubmitFlowStepUrl as Dn, getGetSessionUrl as Dt, getAuthAttempt as E, getSetUserPasswordUrl as En, getGetSchemaByIdUrl as Et, getCreateDeploymentUrl as F, getVerifyChallengeProofUrl as Fn, getIdpById as Ft, getCreateTeamUrl as G, listMyProjects as Gn, getListMyPasskeysUrl as Gt, getCreateReleaseUrl as H, listIdpRevisions as Hn, getListFlowDefinitionsUrl as Ht, getCreateFlowDefinitionUrl as I, initClaim as In, getIdpRevisionById as It, getDeleteTeamUrl as J, listReleases as Jn, getListPreviewsUrl as Jt, getCreateUserUrl as K, listMyTeams as Kn, getListMyProjectsUrl as Kt, getCreateFlowUrl as L, issueChallenge as Ln, getInitClaimUrl as Lt, getCompleteClaimUrl as M, getUserPasswordState as Mn, getGetVariablesUrl as Mt, getCreateAuthAttemptUrl as N, getVariable as Nn, getGrant as Nt, getBrandingById as O, getTeam as On, getGetTeamUrl as Ot, getCreateBrandingUrl as P, getVariables as Pn, getHealth as Pt, getDeploymentVariables as Q, listUserTeams as Qn, getListUserPasskeysUrl as Qt, getCreateGrantUrl as R, listBranding as Rn, getIssueChallengeUrl as Rt, deleteVariable as S, getRevokeSessionUrl as Sn, getGetMyUserUrl as St, getAddOriginUrl as T, getSession as Tn, getGetReleaseByIdUrl as Tt, getCreateSchemaUrl as U, listMyIdentityLinks as Un, getListIdpRevisionsUrl as Ut, getCreateProjectUrl as V, listFlowDefinitions as Vn, getListEventsUrl as Vt, getCreateSessionUrl as W, listMyPasskeys as Wn, getListMyIdentityLinksUrl as Wt, getDeleteVariableUrl as X, listUserIdentityLinks as Xn, getListSchemasUrl as Xt, getDeleteUserByIDUrl as Y, listSchemas as Yn, getListReleasesUrl as Yt, getDeploymentById as Z, listUserPasskeys as Zn, getListUserIdentityLinksUrl as Zt, createTeam as _, getReleaseById as _n, updateVariables as _r, getGetLiveUrl as _t, createAuthAttempt as a, getMyUserSchema as an, querySessions as ar, getGetBrandingByIdUrl as at, deleteTeam as b, getRevokeMySessionUrl as bn, getGetMySessionUrl as bt, createFlow as c, getPatchUserByIDUrl as cn, removeOrigin as cr, getGetDeploymentByIdUrl as ct, createHandoff as d, getQueryIdpsUrl as dn, revokeRelease as dr, getGetFlowDefinitionUrl as dt, getLive as en, patchProject as er, getExchangeHandoffUrl as et, createIdp as f, getQueryProjectsUrl as fn, revokeSession as fr, getGetFlowStepUrl as ft, createSession as g, getReady as gn, updateTeam as gr, getGetIdpRevisionByIdUrl as gt, createSchema as h, getQueryUsersUrl as hn, submitFlowStep as hr, getGetIdpByIdUrl as ht, completeClaim as i, getMyUser as in, queryProjects as ir, getGetAuthAttemptUrl as it, getClaimWindow as j, getUserByID as jn, getGetVariableUrl as jt, getBuildReleaseUrl as k, getUpdateTeamUrl as kn, getGetUserByIDUrl as kt, createFlowDefinition as l, getProject as ln, removePreview as lr, getGetDeploymentVariablesUrl as lt, createRelease as m, getQueryTeamsUrl as mn, setUserPassword as mr, getGetHealthUrl as mt, beginUserPasskeyRegistration as n, getMySession as nn, queryGrants as nr, getFlowDefinition as nt, createBranding as o, getPatchMyUserUrl as on, queryTeams as or, getGetClaimStatusUrl as ot, createProject as p, getQuerySessionsUrl as pn, rollbackDeployment as pr, getGetGrantUrl as pt, getDeleteGrantUrl as q, listPreviews as qn, getListMyTeamsUrl as qt, buildRelease as r, getMySessionCsrfToken as rn, queryIdps as rr, getFlowStep as rt, createDeployment as s, getPatchProjectUrl as sn, queryUsers as sr, getGetClaimWindowUrl as st, addOrigin as t, getMyPasswordState as tn, patchUserByID as tr, getFinishUserPasskeyRegistrationUrl as tt, createGrant as u, getQueryGrantsUrl as un, revokeMySession as ur, getGetEventUrl as ut, createUser as v, getRemoveOriginUrl as vn, verifyChallengeProof as vr, getGetMyPasswordStateUrl as vt, finishUserPasskeyRegistration as w, getSchemaById as wn, getGetReadyUrl as wt, deleteUserByID as x, getRevokeReleaseUrl as xn, getGetMyUserSchemaUrl as xt, deleteGrant as y, getRemovePreviewUrl as yn, zitadelNextGen_d_exports as yr, getGetMySessionCsrfTokenUrl as yt, getCreateHandoffUrl as z, listDeployments as zn, getListBrandingUrl as zt };
1234
- //# sourceMappingURL=zitadelNextGen-BdUDEEuX.d.mts.map
1359
+ export { getDeploymentVariables as $, listMyProjects as $n, getListProjectAdminsUrl as $t, getBuildReleaseUrl as A, getRevokeSessionUrl as An, verifyChallengeProof as Ar, getGetSessionUrl as At, getCreateHandoffUrl as B, getUserPasswordState as Bn, getIssueChallengeUrl as Bt, evaluatePolicy as C, getQueryUsersUrl as Cn, revokeRelease as Cr, getGetMyUserUrl as Ct, getAuthAttempt as D, getRemovePreviewUrl as Dn, submitFlowStep as Dr, getGetReadyUrl as Dt, getAddOriginUrl as E, getRemoveOriginUrl as En, setUserPassword as Er, getGetProjectUrl as Et, getCreateBrandingUrl as F, getSubmitFlowStepUrl as Fn, getGetVariablesUrl as Ft, getCreateSessionUrl as G, issueChallenge as Gn, getListIdpRevisionsUrl as Gt, getCreateProjectUrl as H, getVariables as Hn, getListDeploymentsUrl as Ht, getCreateDeploymentUrl as I, getTeam as In, getGrant as It, getDeleteGrantUrl as J, listEvents as Jn, getListMyProjectsUrl as Jt, getCreateTeamUrl as K, listBranding as Kn, getListMyIdentityLinksUrl as Kt, getCreateFlowDefinitionUrl as L, getUpdateTeamUrl as Ln, getIdpById as Lt, getClaimWindow as M, getSchemaById as Mn, getGetUserByIDUrl as Mt, getCompleteClaimUrl as N, getSession as Nn, getGetUserPasswordStateUrl as Nt, getBeginUserPasskeyRegistrationUrl as O, getRevokeMySessionUrl as On, updateTeam as Or, getGetReleaseByIdUrl as Ot, getCreateAuthAttemptUrl as P, getSetUserPasswordUrl as Pn, getGetVariableUrl as Pt, getDeploymentById as Q, listMyPasskeys as Qn, getListPreviewsUrl as Qt, getCreateFlowUrl as R, getUpdateVariablesUrl as Rn, getIdpRevisionById as Rt, deleteVariable as S, getQueryTeamsUrl as Sn, revokeMySession as Sr, getGetMyUserSchemaUrl as St, finishUserPasskeyRegistration as T, getReleaseById as Tn, rollbackDeployment as Tr, getGetPolicyUrl as Tt, getCreateReleaseUrl as U, getVerifyChallengeProofUrl as Un, getListEventsUrl as Ut, getCreateIdpUrl as V, getVariable as Vn, getListBrandingUrl as Vt, getCreateSchemaUrl as W, initClaim as Wn, getListFlowDefinitionsUrl as Wt, getDeleteUserByIDUrl as X, listIdpRevisions as Xn, getListPoliciesUrl as Xt, getDeleteTeamUrl as Y, listFlowDefinitions as Yn, getListMyTeamsUrl as Yt, getDeleteVariableUrl as Z, listMyIdentityLinks as Zn, getListPolicyRevisionsUrl as Zt, createTeam as _, getPublishPolicyUrl as _n, querySessions as _r, getGetIdpRevisionByIdUrl as _t, createAuthAttempt as a, getLive as an, listReleases as ar, getFlowStep as at, deleteTeam as b, getQueryProjectsUrl as bn, removeOrigin as br, getGetMySessionCsrfTokenUrl as bt, createFlow as c, getMySessionCsrfToken as cn, listUserPasskeys as cr, getGetClaimStatusUrl as ct, createHandoff as d, getPatchMyUserUrl as dn, patchProject as dr, getGetDeploymentVariablesUrl as dt, getListReleasesUrl as en, listMyTeams as er, getEvaluatePolicyUrl as et, createIdp as f, getPatchProjectUrl as fn, patchUserByID as fr, getGetEventUrl as ft, createSession as g, getProject as gn, queryProjects as gr, getGetIdpByIdUrl as gt, createSchema as h, getPolicyRevision as hn, queryIdps as hr, getGetGrantUrl as ht, completeClaim as i, getListUserTeamsUrl as in, listProjectAdmins as ir, getFlowDefinition as it, getClaimStatus as j, getRollbackDeploymentUrl as jn, zitadelNextGen_d_exports as jr, getGetTeamUrl as jt, getBrandingById as k, getRevokeReleaseUrl as kn, updateVariables as kr, getGetSchemaByIdUrl as kt, createFlowDefinition as l, getMyUser as ln, listUserTeams as lr, getGetClaimWindowUrl as lt, createRelease as m, getPolicy as mn, queryGrants as mr, getGetFlowStepUrl as mt, beginUserPasskeyRegistration as n, getListUserIdentityLinksUrl as nn, listPolicyRevisions as nr, getExchangeHandoffUrl as nt, createBranding as o, getMyPasswordState as on, listSchemas as or, getGetAuthAttemptUrl as ot, createProject as p, getPatchUserByIDUrl as pn, publishPolicy as pr, getGetFlowDefinitionUrl as pt, getCreateUserUrl as q, listDeployments as qn, getListMyPasskeysUrl as qt, buildRelease as r, getListUserPasskeysUrl as rn, listPreviews as rr, getFinishUserPasskeyRegistrationUrl as rt, createDeployment as s, getMySession as sn, listUserIdentityLinks as sr, getGetBrandingByIdUrl as st, addOrigin as t, getListSchemasUrl as tn, listPolicies as tr, getEvent as tt, createGrant as u, getMyUserSchema as un, patchMyUser as ur, getGetDeploymentByIdUrl as ut, createUser as v, getQueryGrantsUrl as vn, queryTeams as vr, getGetLiveUrl as vt, exchangeHandoff as w, getReady as wn, revokeSession as wr, getGetPolicyRevisionUrl as wt, deleteUserByID as x, getQuerySessionsUrl as xn, removePreview as xr, getGetMySessionUrl as xt, deleteGrant as y, getQueryIdpsUrl as yn, queryUsers as yr, getGetMyPasswordStateUrl as yt, getCreateGrantUrl as z, getUserByID as zn, getInitClaimUrl as zt };
1360
+ //# sourceMappingURL=zitadelNextGen-B_VRpP2W.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zitadelNextGen-B_VRpP2W.d.mts","names":[],"sources":["../src/generated/endpoints/zitadelNextGen.ts"],"mappings":";;;;;cAiNa;;;;;;;;;cAgBA,UAAkB,UAAU,kBAAkB,oBAAkB,QAAQ;cAaxE;;;;;;;;;cAgBA,WAAmB,UAAU,kBAAkB,oBAAkB,QAAQ;cAazE,mBAAoB,QAAQ;;;;;;;;;cAuB5B,aAAoB,gBAAgB,gBAC7C,QAAQ,kBAAkB,UAAU,kBAAkB,oBAAkB,QAAQ;cA2BvE,mBAAoB,SAAS;;;;;;;;;;;;cA0B7B,aAAoB,gBAAgB,gBAC7C,SAAS,kBAAkB,UAAU,kBAAkB,oBAAkB,QAAQ;cA2BxE,oBAAqB,gBAC9B,SAAS;;;;;;;;cAsBA,cAAqB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;;;;;;cAqBC,cAAqB,sBAC9B,QAAQ,mBAAmB,UAAU,kBAAkB,oBAAkB,QAAQ;cAaxE,uBAAwB,sBACjC,QAAQ;;;;;;;cAqBC,iBAAwB,sBACjC,QAAQ,sBAAsB,UAAU,kBAAkB,oBAAkB;cAanE,yBAA0B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8ClC,mBAA0B,sBAAsB,sBACzD,QAAQ,wBAAwB,UAAU,kBAAkB,oBAAkB,QAAQ,sBAAsB;cA2BnG,wBAAyB,QAAQ;;;;;;;;;;;;;;;;;;;cAyCjC,kBAAyB,QAAQ,uBAAuB,UAAU,kBAAkB,oBAAkB,QAAQ;cAa9G,0BAA2B,sBACpC,QAAQ;;;;;;;;;;cAwBC,oBAA2B,sBACpC,QAAQ,yBAAyB,UAAU,kBAAkB,oBAAkB,QAAQ;cAa9E,2BAA4B,sBACrC,QAAQ;;;;;;;;;;;;;;;;;;cAgCC,qBAA4B,sBACrC,QAAQ,0BACR,yBAAyB,wBAAwB,UAAU,kBAAkB,oBAAkB,QAAQ,wBAAwB;cA2BtH,+BAAgC,sBACzC,QAAQ;;;;;;;cAqBC,yBAAgC,sBACzC,QAAQ,8BAA8B,UAAU,kBAAkB,oBAAkB,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zitadel/api",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Generated TypeScript API client for the pre-release Zitadel preview.",
5
5
  "homepage": "https://github.com/zitadel/nextgen/tree/main/packages/api#readme",
6
6
  "bugs": {
@@ -77,6 +77,7 @@
77
77
  "@faker-js/faker": "^10.5.0",
78
78
  "@redocly/openapi-core": "2.31.5",
79
79
  "@types/node": "^24.19.1",
80
+ "@zitadel/vitest-config": "0.0.0",
80
81
  "msw": "^2.14.6",
81
82
  "orval": "^8.42.0",
82
83
  "tsdown": "^0.23.0",
@@ -101,7 +102,7 @@
101
102
  },
102
103
  "scripts": {
103
104
  "generate": "node ../../scripts/task-guard.mjs --mutex generated-sources -- orval --config orval.config.ts --clean",
104
- "build": "tsdown",
105
+ "build": "tsdown && attw --pack . --profile=esm-only",
105
106
  "test": "vitest run",
106
107
  "test:all": "pnpm run test",
107
108
  "typecheck": "tsc --noEmit -p tsconfig.lib.json && tsc --noEmit -p tsconfig.spec.json",