@zitadel/api 0.2.0 → 0.4.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 (89) hide show
  1. package/README.md +17 -3
  2. package/dist/api-factory-C5b1Gqwv.mjs +357 -0
  3. package/dist/api-factory-C5b1Gqwv.mjs.map +1 -0
  4. package/dist/api-factory-Dt5lUjyu.d.mts +212 -0
  5. package/dist/api-factory-Dt5lUjyu.d.mts.map +1 -0
  6. package/dist/{fetch-CtYe0OvX.d.mts → fetch-B-lgjlrf.d.mts} +22 -12
  7. package/dist/fetch-B-lgjlrf.d.mts.map +1 -0
  8. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  9. package/dist/generated/endpoints/zitadelNextGen.mjs +192 -124
  10. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +3 -1
  12. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +40 -7
  14. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  15. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +104 -28
  16. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  17. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +117 -37
  18. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  19. package/dist/generated/model/index.d.mts +2 -2
  20. package/dist/generated/model/index.mjs +5 -1
  21. package/dist/generated/model/index.mjs.map +1 -1
  22. package/dist/generated/operations.mjs +22 -1
  23. package/dist/generated/operations.mjs.map +1 -1
  24. package/dist/{index-D7-l5LV6.d.mts → index-DGQY1rfH.d.mts} +398 -10
  25. package/dist/index-DGQY1rfH.d.mts.map +1 -0
  26. package/dist/runtime/api-factory.d.mts +2 -51
  27. package/dist/runtime/api-factory.mjs +3 -62
  28. package/dist/runtime/auth.mjs +1 -1
  29. package/dist/runtime/auth.mjs.map +1 -1
  30. package/dist/runtime/base-url.d.mts +14 -0
  31. package/dist/runtime/base-url.d.mts.map +1 -1
  32. package/dist/runtime/base-url.mjs +22 -1
  33. package/dist/runtime/base-url.mjs.map +1 -1
  34. package/dist/runtime/config.d.mts +1 -1
  35. package/dist/runtime/config.mjs +1 -1
  36. package/dist/runtime/fetch.d.mts +2 -2
  37. package/dist/runtime/fetch.mjs +41 -17
  38. package/dist/runtime/fetch.mjs.map +1 -1
  39. package/dist/runtime/paging.d.mts +35 -0
  40. package/dist/runtime/paging.d.mts.map +1 -0
  41. package/dist/runtime/paging.mjs +38 -0
  42. package/dist/runtime/paging.mjs.map +1 -0
  43. package/dist/{zitadelNextGen-Cw3DrCn1.d.mts → zitadelNextGen-BVO4sdKD.d.mts} +69 -34
  44. package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +1 -0
  45. package/package.json +7 -1
  46. package/src/generated/endpoints/zitadelNextGen.faker.ts +9 -6
  47. package/src/generated/endpoints/zitadelNextGen.msw.ts +16 -1
  48. package/src/generated/endpoints/zitadelNextGen.ts +212 -125
  49. package/src/generated/endpoints/zitadelNextGen.zod.ts +120 -36
  50. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +5 -0
  51. package/src/generated/model/deleteUserByID409.ts +20 -0
  52. package/src/generated/model/deleteUserByID409Details.ts +12 -0
  53. package/src/generated/model/deleteUserByIDDefault.ts +9 -0
  54. package/src/generated/model/evaluatePolicy200.ts +30 -0
  55. package/src/generated/model/evaluatePolicy200Violations.ts +14 -0
  56. package/src/generated/model/evaluatePolicyBody.ts +82 -0
  57. package/src/generated/model/evaluatePolicyDefault.ts +90 -0
  58. package/src/generated/model/evaluatePolicyParams.ts +15 -0
  59. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +5 -0
  60. package/src/generated/model/getFlowStepDefault.ts +9 -0
  61. package/src/generated/model/getMyUserSchema200Metadata.ts +5 -0
  62. package/src/generated/model/getSchemaById200Metadata.ts +5 -0
  63. package/src/generated/model/index.ts +8 -0
  64. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +5 -0
  65. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +5 -0
  66. package/src/generated/model/listSchemasExpandItem.ts +28 -0
  67. package/src/generated/model/listSchemasParams.ts +5 -0
  68. package/src/generated/model/queryTeamsParams.ts +3 -2
  69. package/src/generated/model/queryUsersBodyFilterItem.ts +11 -3
  70. package/src/generated/model/queryUsersBodyFilterItemField.ts +12 -3
  71. package/src/generated/model/submitFlowStepDefault.ts +9 -0
  72. package/src/generated/operations.ts +24 -1
  73. package/src/generated/paging.ts +128 -0
  74. package/src/runtime/api-factory.spec.ts +278 -0
  75. package/src/runtime/api-factory.ts +93 -12
  76. package/src/runtime/auth.ts +1 -1
  77. package/src/runtime/base-url.spec.ts +40 -4
  78. package/src/runtime/base-url.ts +28 -0
  79. package/src/runtime/fetch.spec.ts +51 -0
  80. package/src/runtime/fetch.ts +69 -30
  81. package/src/runtime/paged.spec.ts +104 -0
  82. package/src/runtime/paged.ts +61 -0
  83. package/src/runtime/paging.spec.ts +94 -0
  84. package/src/runtime/paging.ts +58 -0
  85. package/dist/fetch-CtYe0OvX.d.mts.map +0 -1
  86. package/dist/index-D7-l5LV6.d.mts.map +0 -1
  87. package/dist/runtime/api-factory.d.mts.map +0 -1
  88. package/dist/runtime/api-factory.mjs.map +0 -1
  89. package/dist/zitadelNextGen-Cw3DrCn1.d.mts.map +0 -1
@@ -1,15 +1,16 @@
1
- import { $c as ListMyPasskeysParams, $f as GetMySessionParams, $r as QuerySessionsBody, $u as InitClaim201, $v as CreateReleaseParams, $y as CreateIdp200, Af as GetPolicy200, Ao as PatchProject200, Bh as GetDeploymentVariables200, Bv as CreateSession201, C as UpdateTeamBody, Cc as ListPoliciesParams, Cl as ListIdpRevisions200, Cy as CreateIdpParams, Df as GetPolicyRevision200, Ds as ListUserIdentityLinksParams, Ec as ListPolicies200, Fa as QueryGrants200, Fg as GetAuthAttempt200, GC as BuildReleaseParams, Gc as ListMyProjects200, Gf as GetMyUser200, Gi as QueryIdpsParams, Gs as ListSchemas200, H_ as DeleteGrantParams, Hu as IssueChallenge201, If as GetMyUserSchema200, Iu as ListBranding200Item, Iv as CreateSessionBody, Jr as QueryTeams200, KS as CreateBrandingBody, Kg as FinishUserPasskeyRegistrationBody, L as SubmitFlowStepBody, Lc as ListMyProjectsParams, Lh as GetEvent200, Li as QueryProjects200, MC as CompleteClaimBody, MS as CreateDeployment200, No as PatchMyUserBody, Np as GetIdpRevisionById200, Nv as CreateTeam201, Oc as ListMyTeamsParams, Od as GetUserByID200, Of as GetPolicyParams, P as UpdateTeam200, Pc as ListMyTeams200, Pl as ListFlowDefinitionsParams, Pm as GetFlowStep200, Pu as ListBrandingParams, Px as CreateFlow201, Q_ as CreateUserBody, Qa as PatchUserByIDBody, Qo as ListUserTeamsParams, Qv as CreateSchema201, Rh as GetDeploymentVariablesParams, Ru as IssueChallengeBody, Rw as BuildRelease201, Sd as GetUserByIDParams, Sg as GetBrandingById200, Si as QueryProjectsBody, Sn as RollbackDeployment200, Sp as GetLiveDefault, T_ as DeleteVariableParams, Tf as GetPolicyRevisionParams, Tp as GetIdpRevisionByIdParams, Ts as ListUserPasskeys200, Tx as CreateFlowBody, Ty as CreateIdpBody, Ub as CreateFlowDefinitionBody, Uh as GetDeploymentById200, Up as GetIdpByIdParams, Uw as BuildRelease200, Uy as CreateIdp201, Vd as GetTeam200, Vh as GetDeploymentByIdParams, Vl as ListFlowDefinitions200, Vs as ListSchemasParams, WC as CompleteClaim200, WS as CreateBrandingParams, Wn as RevokeRelease200, Wo as PatchMyUser200, X_ as CreateUserParams, Xa as PublishPolicy201, Xd as GetSession200, Ya as PublishPolicyBody, Yn as RevokeMySessionParams, Ys as ListReleasesParams, Yv as CreateSchemaParams, Yw as BeginUserPasskeyRegistrationBody, Zp as GetIdpById200, Zr as QuerySessionsParams, Zs as ListReleases200, Zt as SetUserPasswordBody, Zv as CreateSchemaBody, _c as ListPreviews200, _p as GetMyPasswordStateParams, a as VerifyChallengeProof200, aC as CreateBranding201, a_ as ExchangeHandoffParams, al as ListMyPasskeys200, ap as GetMySessionCsrfToken200, bS as CreateDeployment201, br as QueryUsers200, bt as SubmitFlowStep200, bv as CreateTeamBody, by as CreateProject201, ca as QueryIdps200, cg as GetClaimStatusParams, dT as AddOrigin201, dc as ListProjectAdmins200, df as GetReleaseById200, dh as GetFlowDefinition200, ed as GetVariablesParams, fS as CreateDeploymentBody, fb as CreateHandoff200, fi as QuerySessions200, g_ as ExchangeHandoff200, gf as GetReadyDefault, gm as GetGrant200, gu as ListEvents200, h as UpdateVariablesParams, hb as CreateGrantBody, hc as ListPreviewsParams, hl as ListIdpRevisionsParams, hy as CreateProjectBody, i_ as FinishUserPasskeyRegistration201, if as GetSchemaByIdParams, in as RollbackDeploymentParams, ir as QueryUsersParams, iy as CreateRelease201, jb as CreateGrant201, jf as GetMyUserSchemaParams, jo as PatchMyUserParams, jr as QueryTeamsBody, kh as GetEventParams, kr as QueryTeamsParams, lT as AddOriginBody, ld as GetVariable200, lf as GetReleaseByIdParams, lp as GetMySession200, ly as CreateRelease200, n as VerifyChallengeProofBody, oT as BeginUserPasskeyRegistration201, od as GetVariableParams, of as GetSchemaById200, on as RollbackDeploymentBody, or as QueryUsersBody, ou as ListEventsParams, ox as CreateFlowDefinition201, pb as CreateGrantParams, pl as ListMyIdentityLinks200, ps as ListUserPasskeysParams, qC as BuildReleaseBody, qa as PublishPolicyParams, qi as QueryIdpsBody, rd as GetVariables200, rr as RemoveOriginBody, s_ as ExchangeHandoffBody, sg as GetClaimWindow200, sl as ListMyIdentityLinksParams, sm as GetGrantParams, tc as ListProjectAdminsParams, tg as GetClaimWindowParams, tp as GetMySessionCsrfTokenParams, tr as RemovePreviewBody, ty as CreateReleaseBody, uS as CreateDeploymentParams, un as RollbackDeployment201, uo as PatchUserByID200, us as ListUserTeams200, uv as CreateUser201, v as UpdateVariablesBody, vC as CreateAuthAttemptBody, vg as GetClaimStatus200, vu as ListDeploymentsParams, vv as CreateTeamParams, wf as GetProject200, xC as CreateAuthAttempt201, xa as QueryGrantsBody, xc as ListPolicyRevisions200, xd as GetUserPasswordState200, xp as GetMyPasswordState200, xu as ListDeployments200, y as UpdateVariables200, ya as QueryGrantsParams, yc as ListPolicyRevisionsParams, yo as PatchProjectBody, zf as GetMyUserParams, zn as RevokeReleaseParams, zs as ListUserIdentityLinks200 } from "./index-D7-l5LV6.mjs";
2
- import { s as customFetch } from "./fetch-CtYe0OvX.mjs";
1
+ import { $C as BuildReleaseParams, $r as QuerySessionsBody, Ah as GetEventParams, Ao as PatchProject200, BC as CompleteClaimBody, BS as CreateDeployment200, Bf as GetMyUserParams, C as UpdateTeamBody, Cb as CreateGrantBody, Cd as GetUserByIDParams, Cg as GetBrandingById200, Cp as GetLiveDefault, Cy as CreateProjectBody, Dc as ListPolicies200, Ds as ListUserIdentityLinksParams, EC as CreateAuthAttemptBody, E_ as EvaluatePolicyParams, Ef as GetPolicyRevisionParams, Ep as GetIdpRevisionByIdParams, Ev as CreateTeamParams, 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, Hx as CreateFlow201, Ig as GetAuthAttempt200, Jr as QueryTeams200, Jv as CreateSession201, Kc as ListMyProjects200, Kf as GetMyUser200, Ks as ListSchemas200, Kw as BuildRelease201, L as SubmitFlowStepBody, Lf as GetMyUserSchema200, Li as QueryProjects200, Lu as ListBranding200Item, Mf as GetMyUserSchemaParams, No as PatchMyUserBody, Nx as CreateFlowBody, Ny as CreateIdpBody, OS as CreateDeployment201, O_ as EvaluatePolicyBody, Of as GetPolicyRevision200, Ov as CreateTeamBody, Oy as CreateProject201, P as UpdateTeam200, Pp as GetIdpRevisionById200, QC as CompleteClaim200, QS as CreateBrandingParams, Qa as PatchUserByIDBody, Qo as ListUserTeamsParams, Qp as GetIdpById200, Qs as ListReleases200, 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, Vv as CreateTeam201, Wh as GetDeploymentById200, Wn as RevokeRelease200, Wo as PatchMyUser200, Wp as GetIdpByIdParams, Wv as CreateSessionBody, X_ as DeleteGrantParams, Xa as PublishPolicy201, Xs as ListReleasesParams, Ya as PublishPolicyBody, Yn as RevokeMySessionParams, Zb as CreateFlowDefinitionBody, Zd as GetSession200, Zr as QuerySessionsParams, Zt as SetUserPasswordBody, Zw as BuildRelease200, Zy as CreateIdp201, _T as AddOriginBody, __ as ExchangeHandoff200, _f as GetReadyDefault, _m as GetGrant200, _u as ListEvents200, _y as CreateRelease200, a as VerifyChallengeProof200, a_ as FinishUserPasskeyRegistration201, af as GetSchemaByIdParams, ay as CreateSchemaBody, bS as CreateDeploymentBody, bb as CreateHandoff200, bc as ListPolicyRevisionsParams, br as QueryUsers200, bt as SubmitFlowStep200, c_ as ExchangeHandoffBody, ca as QueryIdps200, cg as GetClaimWindow200, cl as ListMyIdentityLinksParams, cm as GetGrantParams, eC as CreateBrandingBody, ed as InitClaim201, el as ListMyPasskeysParams, ep as GetMySessionParams, fc as ListProjectAdmins200, ff as GetReleaseById200, fh as GetFlowDefinition200, fi as QuerySessions200, fy as CreateRelease201, gc as ListPreviewsParams, gl as ListIdpRevisionsParams, h as UpdateVariablesParams, id as GetVariables200, in as RollbackDeploymentParams, ir as QueryUsersParams, iv as CreateUserParams, j_ as DeleteVariableParams, jf as GetPolicy200, jo as PatchMyUserParams, jr as QueryTeamsBody, jy as CreateIdpParams, kC as CreateAuthAttempt201, k_ as EvaluatePolicy200, kc as ListMyTeamsParams, kd as GetUserByID200, kf as GetPolicyParams, kr as QueryTeamsParams, lg as GetClaimStatusParams, ly as CreateReleaseBody, mT as BeginUserPasskeyRegistration201, ml as ListMyIdentityLinks200, mx as CreateFlowDefinition201, n as VerifyChallengeProofBody, nc as ListProjectAdminsParams, ng as GetClaimWindowParams, np as GetMySessionCsrfTokenParams, o_ as ExchangeHandoffParams, ol as ListMyPasskeys200, on as RollbackDeploymentBody, op as GetMySessionCsrfToken200, or as QueryUsersBody, ov as CreateUserBody, oy as CreateSchema201, pC as CreateBranding201, ps as ListUserPasskeysParams, qa as PublishPolicyParams, qg as FinishUserPasskeyRegistrationBody, qi as QueryIdpsBody, rT as BeginUserPasskeyRegistrationBody, rr as RemoveOriginBody, ry as CreateSchemaParams, sb as CreateIdp200, sd as GetVariableParams, sf as GetSchemaById200, su as ListEventsParams, sy as CreateReleaseParams, td as GetVariablesParams, tr as RemovePreviewBody, tw as BuildReleaseBody, ud as GetVariable200, uf as GetReleaseByIdParams, un as RollbackDeployment201, uo as PatchUserByID200, up as GetMySession200, us as ListUserTeams200, v as UpdateVariablesBody, vS as CreateDeploymentParams, vc as ListPreviews200, vp as GetMyPasswordStateParams, vv as CreateUser201, wc as ListPoliciesParams, wl as ListIdpRevisions200, xa as QueryGrantsBody, xb as CreateGrantParams, y as UpdateVariables200, yT as AddOrigin201, ya as QueryGrantsParams, yg as GetClaimStatus200, yo as PatchProjectBody, yu as ListDeploymentsParams, zb as CreateGrant201, zh as GetDeploymentVariablesParams, zn as RevokeReleaseParams, zs as ListUserIdentityLinks200, zu as IssueChallengeBody } from "./index-DGQY1rfH.mjs";
2
+ import { c as customFetch } from "./fetch-B-lgjlrf.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, 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 };
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
6
  declare const getGetLiveUrl: () => string;
7
7
  /**
8
8
  * Answers `ok` while the server process serves HTTP, and checks nothing behind it.
9
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.
10
+ * Point a liveness probe at `/livez` at the root, where the probes stay,
11
+ * not under `/api/v1`. It never checks the database, so an outage of the
12
+ * database does not restart every instance; `GET /readyz` takes an instance
13
+ * out of rotation instead.
13
14
  * @summary Check server liveness
14
15
  */
15
16
  declare const getLive: (options?: Parameters<typeof customFetch>[1]) => Promise<GetLiveDefault>;
@@ -17,9 +18,9 @@ declare const getGetReadyUrl: () => string;
17
18
  /**
18
19
  * Answers whether the server can serve requests, which takes its database answering within a second.
19
20
  *
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
+ * Point a readiness probe at `/readyz` at the root, where the probes stay,
22
+ * not under `/api/v1`, so that a server whose database does not answer gets
23
+ * no requests until it does. The check is one round trip to the database.
23
24
  * @summary Check server readiness
24
25
  */
25
26
  declare const getReady: (options?: Parameters<typeof customFetch>[1]) => Promise<GetReadyDefault>;
@@ -41,8 +42,8 @@ declare const getQueryUsersUrl: (params?: QueryUsersParams) => string;
41
42
  * project is listed.
42
43
  *
43
44
  * Accepts either a project secret (`oauth2`) or a user-bound Console
44
- * session cookie (`nextgenSession`). Cookie-authenticated requests
45
- * follow the scheme's CSRF rules (`nextgenSession`).
45
+ * session cookie (`sessionCookie`). Cookie-authenticated requests
46
+ * follow the scheme's CSRF rules (`sessionCookie`).
46
47
  * @summary Query users
47
48
  */
48
49
  declare const queryUsers: (queryUsersBody: QueryUsersBody, params?: QueryUsersParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryUsers200>;
@@ -66,11 +67,15 @@ declare const getPatchUserByIDUrl: (userId: string) => string;
66
67
  declare const patchUserByID: (userId: string, patchUserByIDBody: PatchUserByIDBody, options?: Parameters<typeof customFetch>[1]) => Promise<PatchUserByID200>;
67
68
  declare const getDeleteUserByIDUrl: (userId: string) => string;
68
69
  /**
69
- * Deletes a user and removes them from every team they belong to.
70
+ * Deletes a user, removes them from every team they belong to, and revokes
71
+ * every grant they hold, on any project.
70
72
  *
71
- * The user is removed, not deactivated, and the deletion emits `user.deleted`.
73
+ * The user is removed, not deactivated, and the deletion emits `user.deleted`,
74
+ * plus `authz.revoked` for each grant on that grant's project.
72
75
  * With a project secret the request is idempotent: deleting a user that exists
73
- * in no project succeeds without changing anything.
76
+ * in no project succeeds without changing anything. Deleting the last active
77
+ * member of a project's owning team returns 409 `proj.last_owner` and changes
78
+ * nothing.
74
79
  * @summary Delete user by ID
75
80
  */
76
81
  declare const deleteUserByID: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
@@ -473,7 +478,7 @@ declare const getListProjectAdminsUrl: (projectId: string, params?: ListProjectA
473
478
  * Ordered by `user_id` and paginated with `page_token`.
474
479
  *
475
480
  * Accepts either a project secret (`oauth2`) or a user-bound Console
476
- * session cookie (`nextgenSession`) that can read the project.
481
+ * session cookie (`sessionCookie`) that can read the project.
477
482
  * @summary List project admins
478
483
  */
479
484
  declare const listProjectAdmins: (projectId: string, params?: ListProjectAdminsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListProjectAdmins200>;
@@ -503,7 +508,7 @@ declare const getClaimStatus: (projectId: string, params: GetClaimStatusParams,
503
508
  declare const getCompleteClaimUrl: (projectId: string) => string;
504
509
  /**
505
510
  * Called by the browser after the developer authenticates on the claim page.
506
- * Authenticated by the `__nextgen_session` cookie, it attaches the project to
511
+ * Authenticated by the session cookie, it attaches the project to
507
512
  * the developer's personal team using the `challenge_id` from the claim URL as
508
513
  * its single-use, browser-safe authorization.
509
514
  * @summary Complete a project claim
@@ -573,8 +578,9 @@ declare const getCreateSessionUrl: () => string;
573
578
  * Creating a session is an app-plane operation on the project credential
574
579
  * (`session.write`). The returned `session_token` is a session credential for the
575
580
  * end-user client, not a management scope: it is delivered as the
576
- * `__nextgen_session` cookie and authorises the self-service operations
577
- * `GET /sessions/me` and `DELETE /sessions/me` (`nextgenSession` scheme). The
581
+ * `__Host-zitadel_session` cookie (`zitadel_session` over plain http to a
582
+ * loopback host) and authorises the self-service operations
583
+ * `GET /sessions/me` and `DELETE /sessions/me` (`sessionCookie` scheme). The
578
584
  * by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
579
585
  * are operator endpoints and require `session.read` / `session.delete` instead.
580
586
  *
@@ -639,8 +645,8 @@ declare const getRevokeSessionUrl: (sessionId: string) => string;
639
645
  * Permanently deletes the session, terminating it immediately.
640
646
  *
641
647
  * This is the operator revoke path and requires the `session.delete` scope on a
642
- * project-bound credential. End-user logout with the `__nextgen_session` cookie is
643
- * `DELETE /sessions/me` (`nextgenSession` scheme).
648
+ * project-bound credential. End-user logout with the session cookie is
649
+ * `DELETE /sessions/me` (`sessionCookie` scheme).
644
650
  *
645
651
  * Idempotent: deleting a session that does not exist (or was already deleted)
646
652
  * still returns 204. After deletion, any tokens derived from the session are
@@ -665,7 +671,7 @@ declare const getRevokeMySessionUrl: (params?: RevokeMySessionParams) => string;
665
671
  /**
666
672
  * Logs out by permanently deleting the session.
667
673
  *
668
- * The `__nextgen_session` cookie issued at creation (or superseded by a handoff
674
+ * The session cookie issued at creation (or superseded by a handoff
669
675
  * exchange) is required, with the session's token from `GET /sessions/me/csrf`
670
676
  * in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
671
677
  * this still returns 204. Any tokens derived from the session are invalidated,
@@ -681,7 +687,7 @@ declare const getGetMySessionCsrfTokenUrl: (params?: GetMySessionCsrfTokenParams
681
687
  * Returns the session-bound token for cross-site request forgery protection
682
688
  * (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the
683
689
  * state-changing requests the session cookie authenticates that require it
684
- * — see the `nextgenSession` scheme. It authorizes nothing on its own: the
690
+ * — see the `sessionCookie` scheme. It authorizes nothing on its own: the
685
691
  * HttpOnly cookie is still the credential, and a cross-site page cannot
686
692
  * read this response. It stays the same for the life of the session, so a
687
693
  * client fetches it once per session.
@@ -765,12 +771,15 @@ declare const getCreateTeamUrl: (params: CreateTeamParams) => string;
765
771
  * @summary Create team
766
772
  */
767
773
  declare const createTeam: (createTeamBody: CreateTeamBody, params: CreateTeamParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateTeam201>;
768
- declare const getQueryTeamsUrl: (params: QueryTeamsParams) => string;
774
+ declare const getQueryTeamsUrl: (params?: QueryTeamsParams) => string;
769
775
  /**
770
776
  * Returns the teams of a project, paginated with a cursor.
777
+ *
778
+ * `project_id` names the project to list; without it, the credential's own
779
+ * project is listed.
771
780
  * @summary Query teams
772
781
  */
773
- declare const queryTeams: (queryTeamsBody: QueryTeamsBody, params: QueryTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryTeams200>;
782
+ declare const queryTeams: (queryTeamsBody: QueryTeamsBody, params?: QueryTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryTeams200>;
774
783
  declare const getGetTeamUrl: (teamId: string) => string;
775
784
  /**
776
785
  * Returns a Team by its id.
@@ -934,6 +943,32 @@ declare const getPublishPolicyUrl: (params: PublishPolicyParams) => string;
934
943
  * @summary Publish a policy
935
944
  */
936
945
  declare const publishPolicy: (publishPolicyBody: PublishPolicyBody, params: PublishPolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<PublishPolicy201>;
946
+ declare const getEvaluatePolicyUrl: (params: EvaluatePolicyParams) => string;
947
+ /**
948
+ * Evaluates a policy config against one request, without side effects, and
949
+ * answers the decision the operation would reach. Nothing is read from or
950
+ * written to the project: the config is the one in the body, checked
951
+ * exactly as a publish checks it, so an invalid config answers `pol.invalid`
952
+ * with the same violations.
953
+ *
954
+ * `input` is what the operation's request carries, in the operation's own
955
+ * terms (a password, not its length): the server derives what the policy
956
+ * checks with the code the live operation runs, guards included. `facts`
957
+ * states what the operation would look up at runtime, such as whether the
958
+ * candidate matches one of the user's kept passwords.
959
+ *
960
+ * The decision and the names of the failed rules hold wherever the
961
+ * operation runs. `code` and `violations` are what an API call answers; a
962
+ * login flow shows the same rules as field errors on the password field
963
+ * (`error.x-auth-methods#password_<rule>` in `step.error`).
964
+ *
965
+ * Which policy a project or release applies is not decided here: read it
966
+ * and pass its config.
967
+ *
968
+ * The caller needs read access to the project in `project_id`.
969
+ * @summary Evaluate a policy
970
+ */
971
+ declare const evaluatePolicy: (evaluatePolicyBody: EvaluatePolicyBody, params: EvaluatePolicyParams, options?: Parameters<typeof customFetch>[1]) => Promise<EvaluatePolicy200>;
937
972
  declare const getGetPolicyUrl: (policyId: string, params: GetPolicyParams) => string;
938
973
  /**
939
974
  * Reads a policy as its newest revision, the one that applies the next time
@@ -1100,9 +1135,9 @@ declare const getCreateGrantUrl: (params: CreateGrantParams) => string;
1100
1135
  * identifier and display.
1101
1136
  *
1102
1137
  * Accepts either a project secret (`oauth2`) or a user-bound Console
1103
- * session cookie (`nextgenSession`). Session callers are authorized as
1138
+ * session cookie (`sessionCookie`). Session callers are authorized as
1104
1139
  * the human against the target project (home may differ). Cookie-authenticated
1105
- * requests follow the scheme's CSRF rules (`nextgenSession`).
1140
+ * requests follow the scheme's CSRF rules (`sessionCookie`).
1106
1141
  * @summary Create grant
1107
1142
  */
1108
1143
  declare const createGrant: (createGrantBody: CreateGrantBody, params: CreateGrantParams, options?: Parameters<typeof customFetch>[1]) => Promise<CreateGrant201 | void>;
@@ -1122,8 +1157,8 @@ declare const getQueryGrantsUrl: (params: QueryGrantsParams) => string;
1122
1157
  * the project Check may expand without those scopes.
1123
1158
  *
1124
1159
  * Accepts either a project secret (`oauth2`) or a user-bound Console
1125
- * session cookie (`nextgenSession`). Cookie-authenticated requests
1126
- * follow the scheme's CSRF rules (`nextgenSession`).
1160
+ * session cookie (`sessionCookie`). Cookie-authenticated requests
1161
+ * follow the scheme's CSRF rules (`sessionCookie`).
1127
1162
  * @summary Query grants
1128
1163
  */
1129
1164
  declare const queryGrants: (queryGrantsBody: QueryGrantsBody, params: QueryGrantsParams, options?: Parameters<typeof customFetch>[1]) => Promise<QueryGrants200>;
@@ -1143,8 +1178,8 @@ declare const getGetGrantUrl: (id: string, params: GetGrantParams) => string;
1143
1178
  * Check may expand without those scopes.
1144
1179
  *
1145
1180
  * Accepts either a project secret (`oauth2`) or a user-bound Console
1146
- * session cookie (`nextgenSession`). Cookie-authenticated requests
1147
- * follow the scheme's CSRF rules (`nextgenSession`).
1181
+ * session cookie (`sessionCookie`). Cookie-authenticated requests
1182
+ * follow the scheme's CSRF rules (`sessionCookie`).
1148
1183
  * @summary Get grant
1149
1184
  */
1150
1185
  declare const getGrant: (id: string, params: GetGrantParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetGrant200>;
@@ -1156,8 +1191,8 @@ declare const getDeleteGrantUrl: (id: string, params: DeleteGrantParams) => stri
1156
1191
  * revoked so the unique binding can be reused.
1157
1192
  *
1158
1193
  * Accepts either a project secret (`oauth2`) or a user-bound Console
1159
- * session cookie (`nextgenSession`). Cookie-authenticated requests
1160
- * follow the scheme's CSRF rules (`nextgenSession`).
1194
+ * session cookie (`sessionCookie`). Cookie-authenticated requests
1195
+ * follow the scheme's CSRF rules (`sessionCookie`).
1161
1196
  * @summary Revoke grant
1162
1197
  */
1163
1198
  declare const deleteGrant: (id: string, params: DeleteGrantParams, options?: Parameters<typeof customFetch>[1]) => Promise<void>;
@@ -1328,5 +1363,5 @@ declare const getGetDeploymentVariablesUrl: (deploymentId: string, params: GetDe
1328
1363
  */
1329
1364
  declare const getDeploymentVariables: (deploymentId: string, params: GetDeploymentVariablesParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetDeploymentVariables200>;
1330
1365
  //#endregion
1331
- export { getEvent as $, listPolicies as $n, getListSchemasUrl as $t, getClaimStatus as A, getSchemaById as An, getGetUserByIDUrl as At, getCreateIdpUrl as B, getVariables as Bn, getListDeploymentsUrl as Bt, exchangeHandoff as C, getReleaseById as Cn, rollbackDeployment as Cr, getGetPolicyUrl as Ct, getBeginUserPasskeyRegistrationUrl as D, getRevokeReleaseUrl as Dn, updateVariables as Dr, getGetSchemaByIdUrl as Dt, getAuthAttempt as E, getRevokeMySessionUrl as En, updateTeam as Er, getGetReleaseByIdUrl as Et, getCreateDeploymentUrl as F, getUpdateTeamUrl as Fn, getIdpById as Ft, getCreateTeamUrl as G, listDeployments as Gn, getListMyPasskeysUrl as Gt, getCreateReleaseUrl as H, initClaim as Hn, getListFlowDefinitionsUrl as Ht, getCreateFlowDefinitionUrl as I, getUpdateVariablesUrl as In, getIdpRevisionById as It, getDeleteTeamUrl as J, listIdpRevisions as Jn, getListPoliciesUrl as Jt, getCreateUserUrl as K, listEvents as Kn, getListMyProjectsUrl as Kt, getCreateFlowUrl as L, getUserByID as Ln, getInitClaimUrl as Lt, getCompleteClaimUrl as M, getSetUserPasswordUrl as Mn, getGetVariableUrl as Mt, getCreateAuthAttemptUrl as N, getSubmitFlowStepUrl as Nn, getGetVariablesUrl as Nt, getBrandingById as O, getRevokeSessionUrl as On, verifyChallengeProof as Or, getGetSessionUrl as Ot, getCreateBrandingUrl as P, getTeam as Pn, getGrant as Pt, getDeploymentVariables as Q, listMyTeams as Qn, getListReleasesUrl as Qt, getCreateGrantUrl as R, getUserPasswordState as Rn, getIssueChallengeUrl as Rt, deleteVariable as S, getReady as Sn, revokeSession as Sr, getGetPolicyRevisionUrl as St, getAddOriginUrl as T, getRemovePreviewUrl as Tn, submitFlowStep as Tr, getGetReadyUrl as Tt, getCreateSchemaUrl as U, issueChallenge as Un, getListIdpRevisionsUrl as Ut, getCreateProjectUrl as V, getVerifyChallengeProofUrl as Vn, getListEventsUrl as Vt, getCreateSessionUrl as W, listBranding as Wn, getListMyIdentityLinksUrl as Wt, getDeleteVariableUrl as X, listMyPasskeys as Xn, getListPreviewsUrl as Xt, getDeleteUserByIDUrl as Y, listMyIdentityLinks as Yn, getListPolicyRevisionsUrl as Yt, getDeploymentById as Z, listMyProjects as Zn, getListProjectAdminsUrl as Zt, createTeam as _, getQueryIdpsUrl as _n, queryUsers as _r, getGetMyPasswordStateUrl as _t, createAuthAttempt as a, getMySession as an, listUserIdentityLinks as ar, getGetBrandingByIdUrl as at, deleteTeam as b, getQueryTeamsUrl as bn, revokeMySession as br, getGetMyUserSchemaUrl as bt, createFlow as c, getMyUserSchema as cn, patchMyUser as cr, getGetDeploymentByIdUrl as ct, createHandoff as d, getPatchUserByIDUrl as dn, publishPolicy as dr, getGetFlowDefinitionUrl as dt, getListUserIdentityLinksUrl as en, listPolicyRevisions as er, getExchangeHandoffUrl as et, createIdp as f, getPolicy as fn, queryGrants as fr, getGetFlowStepUrl as ft, createSession as g, getQueryGrantsUrl as gn, queryTeams as gr, getGetLiveUrl as gt, createSchema as h, getPublishPolicyUrl as hn, querySessions as hr, getGetIdpRevisionByIdUrl as ht, completeClaim as i, getMyPasswordState as in, listSchemas as ir, getGetAuthAttemptUrl as it, getClaimWindow as j, getSession as jn, getGetUserPasswordStateUrl as jt, getBuildReleaseUrl as k, getRollbackDeploymentUrl as kn, zitadelNextGen_d_exports as kr, getGetTeamUrl as kt, createFlowDefinition as l, getPatchMyUserUrl as ln, patchProject as lr, getGetDeploymentVariablesUrl as lt, createRelease as m, getProject as mn, queryProjects as mr, getGetIdpByIdUrl as mt, beginUserPasskeyRegistration as n, getListUserTeamsUrl as nn, listProjectAdmins as nr, getFlowDefinition as nt, createBranding as o, getMySessionCsrfToken as on, listUserPasskeys as or, getGetClaimStatusUrl as ot, createProject as p, getPolicyRevision as pn, queryIdps as pr, getGetGrantUrl as pt, getDeleteGrantUrl as q, listFlowDefinitions as qn, getListMyTeamsUrl as qt, buildRelease as r, getLive as rn, listReleases as rr, getFlowStep as rt, createDeployment as s, getMyUser as sn, listUserTeams as sr, getGetClaimWindowUrl as st, addOrigin as t, getListUserPasskeysUrl as tn, listPreviews as tr, getFinishUserPasskeyRegistrationUrl as tt, createGrant as u, getPatchProjectUrl as un, patchUserByID as ur, getGetEventUrl as ut, createUser as v, getQueryProjectsUrl as vn, removeOrigin as vr, getGetMySessionCsrfTokenUrl as vt, finishUserPasskeyRegistration as w, getRemoveOriginUrl as wn, setUserPassword as wr, getGetProjectUrl as wt, deleteUserByID as x, getQueryUsersUrl as xn, revokeRelease as xr, getGetMyUserUrl as xt, deleteGrant as y, getQuerySessionsUrl as yn, removePreview as yr, getGetMySessionUrl as yt, getCreateHandoffUrl as z, getVariable as zn, getListBrandingUrl as zt };
1332
- //# sourceMappingURL=zitadelNextGen-Cw3DrCn1.d.mts.map
1366
+ 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 };
1367
+ //# sourceMappingURL=zitadelNextGen-BVO4sdKD.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zitadelNextGen-BVO4sdKD.d.mts","names":[],"sources":["../src/generated/endpoints/zitadelNextGen.ts"],"mappings":";;;;;cAiNa;;;;;;;;;;cAiBA,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,gBAC9B,SAAS,mBAAmB,UAAU,kBAAkB,oBAAkB,QAAQ;cAazE,sBAAuB;;;;;;;;cAevB,gBAAuB,gBAChC,mBAAmB,mBAAmB,UAAU,kBAAkB,oBAAkB,QAAQ;cA2BnF,uBAAwB;;;;;;;;;;;;;cAoBxB,iBAAwB,gBAAgB,UAAU,kBAAkB,oBAAkB;cAatF,8BAA+B,gBACxC,SAAS;;;;;;cAoBA,wBAA+B,gBACxC,SAAS,6BAA6B,UAAU,kBAAkB,oBAAkB,QAAQ;cAanF,yBAA0B,gBACnC,SAAS;;;;;;;;;cAuBA,mBAA0B,gBACnC,SAAS,wBAAwB,UAAU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AU,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.2.0",
3
+ "version": "0.4.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": {
@@ -57,6 +57,11 @@
57
57
  "types": "./dist/runtime/auth.d.mts",
58
58
  "import": "./dist/runtime/auth.mjs"
59
59
  },
60
+ "./runtime/paging": {
61
+ "@zitadel/source": "./src/runtime/paging.ts",
62
+ "types": "./dist/runtime/paging.d.mts",
63
+ "import": "./dist/runtime/paging.mjs"
64
+ },
60
65
  "./runtime/fetch": {
61
66
  "@zitadel/source": "./src/runtime/fetch.ts",
62
67
  "types": "./dist/runtime/fetch.d.mts",
@@ -77,6 +82,7 @@
77
82
  "@faker-js/faker": "^10.5.0",
78
83
  "@redocly/openapi-core": "2.31.5",
79
84
  "@types/node": "^24.19.1",
85
+ "@zitadel/vitest-config": "0.0.0",
80
86
  "msw": "^2.14.6",
81
87
  "orval": "^8.42.0",
82
88
  "tsdown": "^0.23.0",
@@ -32,6 +32,7 @@ import type {
32
32
  CreateSession201,
33
33
  CreateTeam201,
34
34
  CreateUser201,
35
+ EvaluatePolicy200,
35
36
  ExchangeHandoff200,
36
37
  FinishUserPasskeyRegistration201,
37
38
  GetAuthAttempt200,
@@ -136,7 +137,7 @@ export const getListMyProjectsResponseMock = (overrideResponse: Partial<Extract<
136
137
 
137
138
  export const getGetMyUserSchemaResponseMock = (overrideResponse: Partial<Extract<GetMyUserSchema200, object>> = {}): GetMyUserSchema200 => ({id: faker.string.alpha({length: {min: 10, max: 20}}), schema: faker.helpers.arrayElement([{objectType: faker.string.alpha({length: {min: 10, max: 256}}), kind: "user-schema", metaSchema: faker.internet.url(), 'x-auth-methods': {password: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), passkey: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), magic_link: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), sso: faker.helpers.arrayElement([{enabled: faker.datatype.boolean(), providers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.fromRegExp("^[a-z0-9][a-z0-9_-]*$"))), undefined])}, undefined]), otp: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined])}, 'x-identifier': faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 20}}), undefined]), 'x-display': faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 1, max: 20}}))), undefined]), properties: faker.helpers.arrayElement([{
138
139
  [faker.string.alphanumeric(5)]: {'x-unique': faker.helpers.arrayElement([faker.helpers.arrayElement(['unspecified','project','team'] as const),null,]), 'x-claim': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), 'x-audit': faker.datatype.boolean(), properties: faker.helpers.arrayElement([{}, undefined])}
139
- }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}, ...overrideResponse})
140
+ }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', in_use: faker.helpers.arrayElement([faker.datatype.boolean(), undefined])}, ...overrideResponse})
140
141
 
141
142
  export const getListMyTeamsResponseMock = (overrideResponse: Partial<Extract<ListMyTeams200, object>> = {}): ListMyTeams200 => ({teams: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({id: faker.string.alpha({length: {min: 10, max: 20}}), name: faker.string.alpha({length: {min: 10, max: 20}}), membership_status: faker.helpers.arrayElement(['pending','active','inactive'] as const), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z'})), next_page_token: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), ...overrideResponse})
142
143
 
@@ -200,11 +201,11 @@ export const getCreateSchemaResponseMock = (overrideResponse: Partial<Extract<Cr
200
201
 
201
202
  export const getListSchemasResponseMock = (overrideResponse: Partial<Extract<ListSchemas200, object>> = {}): ListSchemas200 => ({schemas: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({id: faker.string.alpha({length: {min: 10, max: 20}}), schema: faker.helpers.arrayElement([{objectType: faker.string.alpha({length: {min: 10, max: 256}}), kind: "user-schema", metaSchema: faker.internet.url(), 'x-auth-methods': {password: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), passkey: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), magic_link: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), sso: faker.helpers.arrayElement([{enabled: faker.datatype.boolean(), providers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.fromRegExp("^[a-z0-9][a-z0-9_-]*$"))), undefined])}, undefined]), otp: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined])}, 'x-identifier': faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 20}}), undefined]), 'x-display': faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 1, max: 20}}))), undefined]), properties: faker.helpers.arrayElement([{
202
203
  [faker.string.alphanumeric(5)]: {'x-unique': faker.helpers.arrayElement([faker.helpers.arrayElement(['unspecified','project','team'] as const),null,]), 'x-claim': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), 'x-audit': faker.datatype.boolean(), properties: faker.helpers.arrayElement([{}, undefined])}
203
- }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}})), next_page_token: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), ...overrideResponse})
204
+ }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', in_use: faker.helpers.arrayElement([faker.datatype.boolean(), undefined])}})), next_page_token: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), ...overrideResponse})
204
205
 
205
206
  export const getGetSchemaByIdResponseMock = (overrideResponse: Partial<Extract<GetSchemaById200, object>> = {}): GetSchemaById200 => ({id: faker.string.alpha({length: {min: 10, max: 20}}), schema: faker.helpers.arrayElement([{objectType: faker.string.alpha({length: {min: 10, max: 256}}), kind: "user-schema", metaSchema: faker.internet.url(), 'x-auth-methods': {password: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), passkey: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), magic_link: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), sso: faker.helpers.arrayElement([{enabled: faker.datatype.boolean(), providers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.fromRegExp("^[a-z0-9][a-z0-9_-]*$"))), undefined])}, undefined]), otp: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined])}, 'x-identifier': faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 20}}), undefined]), 'x-display': faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 1, max: 20}}))), undefined]), properties: faker.helpers.arrayElement([{
206
207
  [faker.string.alphanumeric(5)]: {'x-unique': faker.helpers.arrayElement([faker.helpers.arrayElement(['unspecified','project','team'] as const),null,]), 'x-claim': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), 'x-audit': faker.datatype.boolean(), properties: faker.helpers.arrayElement([{}, undefined])}
207
- }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}, ...overrideResponse})
208
+ }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', in_use: faker.helpers.arrayElement([faker.datatype.boolean(), undefined])}, ...overrideResponse})
208
209
 
209
210
  export const getCreateFlowDefinitionResponseMock = (overrideResponse: Partial<Extract<CreateFlowDefinition201, object>> = {}): CreateFlowDefinition201 => ({id: faker.string.alpha({length: {min: 10, max: 20}}), project_id: faker.string.alpha({length: {min: 10, max: 20}}), flow_definition: {name: faker.helpers.fromRegExp("^[a-z][a-z0-9-]*$"), status: faker.helpers.arrayElement(['active','draft'] as const), user_schema: faker.string.alpha({length: {min: 10, max: 20}}), purposes: {
210
211
  [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})
@@ -214,7 +215,7 @@ export const getCreateFlowDefinitionResponseMock = (overrideResponse: Partial<Ex
214
215
  [faker.string.alphanumeric(5)]: {target: faker.string.alpha({length: {min: 10, max: 20}}), action: faker.helpers.arrayElement([faker.helpers.arrayElement(['switch','pivot'] as const),null,]), purpose: faker.helpers.arrayElement([faker.helpers.arrayElement(['login','register','recovery','profiling','reauth','link_account'] as const),null,])}
215
216
  }, undefined])}))}, user_schema: faker.helpers.arrayElement([{id: faker.string.alpha({length: {min: 10, max: 20}}), schema: faker.helpers.arrayElement([{objectType: faker.string.alpha({length: {min: 10, max: 256}}), kind: "user-schema", metaSchema: faker.internet.url(), 'x-auth-methods': {password: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), passkey: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), magic_link: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), sso: faker.helpers.arrayElement([{enabled: faker.datatype.boolean(), providers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.fromRegExp("^[a-z0-9][a-z0-9_-]*$"))), undefined])}, undefined]), otp: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined])}, 'x-identifier': faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 20}}), undefined]), 'x-display': faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 1, max: 20}}))), undefined]), properties: faker.helpers.arrayElement([{
216
217
  [faker.string.alphanumeric(5)]: {'x-unique': faker.helpers.arrayElement([faker.helpers.arrayElement(['unspecified','project','team'] as const),null,]), 'x-claim': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), 'x-audit': faker.datatype.boolean(), properties: faker.helpers.arrayElement([{}, undefined])}
217
- }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}},null,]), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', ...overrideResponse})
218
+ }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', in_use: faker.helpers.arrayElement([faker.datatype.boolean(), undefined])}},null,]), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', ...overrideResponse})
218
219
 
219
220
  export const getListFlowDefinitionsResponseMock = (overrideResponse: Partial<Extract<ListFlowDefinitions200, object>> = {}): ListFlowDefinitions200 => ({flow_definitions: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({id: faker.string.alpha({length: {min: 10, max: 20}}), project_id: faker.string.alpha({length: {min: 10, max: 20}}), flow_definition: {name: faker.helpers.fromRegExp("^[a-z][a-z0-9-]*$"), status: faker.helpers.arrayElement(['active','draft'] as const), user_schema: faker.string.alpha({length: {min: 10, max: 20}}), purposes: {
220
221
  [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})
@@ -224,7 +225,7 @@ export const getListFlowDefinitionsResponseMock = (overrideResponse: Partial<Ext
224
225
  [faker.string.alphanumeric(5)]: {target: faker.string.alpha({length: {min: 10, max: 20}}), action: faker.helpers.arrayElement([faker.helpers.arrayElement(['switch','pivot'] as const),null,]), purpose: faker.helpers.arrayElement([faker.helpers.arrayElement(['login','register','recovery','profiling','reauth','link_account'] as const),null,])}
225
226
  }, undefined])}))}, user_schema: faker.helpers.arrayElement([{id: faker.string.alpha({length: {min: 10, max: 20}}), schema: faker.helpers.arrayElement([{objectType: faker.string.alpha({length: {min: 10, max: 256}}), kind: "user-schema", metaSchema: faker.internet.url(), 'x-auth-methods': {password: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), passkey: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), magic_link: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), sso: faker.helpers.arrayElement([{enabled: faker.datatype.boolean(), providers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.fromRegExp("^[a-z0-9][a-z0-9_-]*$"))), undefined])}, undefined]), otp: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined])}, 'x-identifier': faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 20}}), undefined]), 'x-display': faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 1, max: 20}}))), undefined]), properties: faker.helpers.arrayElement([{
226
227
  [faker.string.alphanumeric(5)]: {'x-unique': faker.helpers.arrayElement([faker.helpers.arrayElement(['unspecified','project','team'] as const),null,]), 'x-claim': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), 'x-audit': faker.datatype.boolean(), properties: faker.helpers.arrayElement([{}, undefined])}
227
- }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}},null,]), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z'})), next_page_token: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), ...overrideResponse})
228
+ }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', in_use: faker.helpers.arrayElement([faker.datatype.boolean(), undefined])}},null,]), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z'})), next_page_token: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), ...overrideResponse})
228
229
 
229
230
  export const getGetFlowDefinitionResponseMock = (overrideResponse: Partial<Extract<GetFlowDefinition200, object>> = {}): GetFlowDefinition200 => ({id: faker.string.alpha({length: {min: 10, max: 20}}), project_id: faker.string.alpha({length: {min: 10, max: 20}}), flow_definition: {name: faker.helpers.fromRegExp("^[a-z][a-z0-9-]*$"), status: faker.helpers.arrayElement(['active','draft'] as const), user_schema: faker.string.alpha({length: {min: 10, max: 20}}), purposes: {
230
231
  [faker.string.alphanumeric(5)]: faker.string.alpha({length: {min: 10, max: 20}})
@@ -234,7 +235,7 @@ export const getGetFlowDefinitionResponseMock = (overrideResponse: Partial<Extra
234
235
  [faker.string.alphanumeric(5)]: {target: faker.string.alpha({length: {min: 10, max: 20}}), action: faker.helpers.arrayElement([faker.helpers.arrayElement(['switch','pivot'] as const),null,]), purpose: faker.helpers.arrayElement([faker.helpers.arrayElement(['login','register','recovery','profiling','reauth','link_account'] as const),null,])}
235
236
  }, undefined])}))}, user_schema: faker.helpers.arrayElement([{id: faker.string.alpha({length: {min: 10, max: 20}}), schema: faker.helpers.arrayElement([{objectType: faker.string.alpha({length: {min: 10, max: 256}}), kind: "user-schema", metaSchema: faker.internet.url(), 'x-auth-methods': {password: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), passkey: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), magic_link: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined]), sso: faker.helpers.arrayElement([{enabled: faker.datatype.boolean(), providers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.fromRegExp("^[a-z0-9][a-z0-9_-]*$"))), undefined])}, undefined]), otp: faker.helpers.arrayElement([{enabled: faker.datatype.boolean()}, undefined])}, 'x-identifier': faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 20}}), undefined]), 'x-display': faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.string.alpha({length: {min: 1, max: 20}}))), undefined]), properties: faker.helpers.arrayElement([{
236
237
  [faker.string.alphanumeric(5)]: {'x-unique': faker.helpers.arrayElement([faker.helpers.arrayElement(['unspecified','project','team'] as const),null,]), 'x-claim': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), 'x-audit': faker.datatype.boolean(), properties: faker.helpers.arrayElement([{}, undefined])}
237
- }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}},null,]), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', ...overrideResponse})
238
+ }, undefined])},]), metadata: {created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', in_use: faker.helpers.arrayElement([faker.datatype.boolean(), undefined])}},null,]), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', ...overrideResponse})
238
239
 
239
240
  export const getCreateTeamResponseMock = (overrideResponse: Partial<Extract<CreateTeam201, object>> = {}): CreateTeam201 => ({id: faker.string.alpha({length: {min: 10, max: 20}}), name: faker.string.alpha({length: {min: 10, max: 20}}), status: faker.helpers.arrayElement(['active','deactivated'] as const), created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', ...overrideResponse})
240
241
 
@@ -300,6 +301,8 @@ export const getListPoliciesResponseMock = (overrideResponse: Partial<Extract<Li
300
301
 
301
302
  export const getPublishPolicyResponseMock = (): PublishPolicy201 => (faker.helpers.arrayElement([{id: faker.helpers.fromRegExp("^pol_[a-zA-Z0-9_-]+$"), revision_id: faker.helpers.fromRegExp("^polrev_[a-zA-Z0-9_-]+$"), project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"), operation: faker.helpers.arrayElement(['auth.factor.password.set'] as const), config: {min_length: faker.helpers.arrayElement([faker.number.int({min: 1, max: 64}), undefined]), max_length: faker.helpers.arrayElement([faker.number.int({min: 1, max: 64}), undefined]), history_depth: faker.helpers.arrayElement([faker.number.int({min: 1, max: 4}), undefined])}, created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z'},]))
302
303
 
304
+ export const getEvaluatePolicyResponseMock = (overrideResponse: Partial<Extract<EvaluatePolicy200, object>> = {}): EvaluatePolicy200 => ({allowed: faker.datatype.boolean(), code: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), violations: faker.helpers.arrayElement([{}, undefined]), ...overrideResponse})
305
+
303
306
  export const getGetPolicyResponseMock = (): GetPolicy200 => (faker.helpers.arrayElement([{id: faker.helpers.fromRegExp("^pol_[a-zA-Z0-9_-]+$"), revision_id: faker.helpers.fromRegExp("^polrev_[a-zA-Z0-9_-]+$"), project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"), operation: faker.helpers.arrayElement(['auth.factor.password.set'] as const), config: {min_length: faker.helpers.arrayElement([faker.number.int({min: 1, max: 64}), undefined]), max_length: faker.helpers.arrayElement([faker.number.int({min: 1, max: 64}), undefined]), history_depth: faker.helpers.arrayElement([faker.number.int({min: 1, max: 4}), undefined])}, created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z'},]))
304
307
 
305
308
  export const getListPolicyRevisionsResponseMock = (overrideResponse: Partial<Extract<ListPolicyRevisions200, object>> = {}): ListPolicyRevisions200 => ({revisions: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => (faker.helpers.arrayElement([{id: faker.helpers.fromRegExp("^pol_[a-zA-Z0-9_-]+$"), revision_id: faker.helpers.fromRegExp("^polrev_[a-zA-Z0-9_-]+$"), project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"), operation: faker.helpers.arrayElement(['auth.factor.password.set'] as const), config: {min_length: faker.helpers.arrayElement([faker.number.int({min: 1, max: 64}), undefined]), max_length: faker.helpers.arrayElement([faker.number.int({min: 1, max: 64}), undefined]), history_depth: faker.helpers.arrayElement([faker.number.int({min: 1, max: 4}), undefined])}, created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z'},]))), next_page_token: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}),null,]), ...overrideResponse})
@@ -36,6 +36,7 @@ import type {
36
36
  CreateSession201,
37
37
  CreateTeam201,
38
38
  CreateUser201,
39
+ EvaluatePolicy200,
39
40
  ExchangeHandoff200,
40
41
  FinishUserPasskeyRegistration201,
41
42
  GetAuthAttempt200,
@@ -126,6 +127,7 @@ import {
126
127
  getCreateSessionResponseMock,
127
128
  getCreateTeamResponseMock,
128
129
  getCreateUserResponseMock,
130
+ getEvaluatePolicyResponseMock,
129
131
  getExchangeHandoffResponseMock,
130
132
  getFinishUserPasskeyRegistrationResponseMock,
131
133
  getGetAuthAttemptResponseMock,
@@ -194,7 +196,7 @@ import {
194
196
  getVerifyChallengeProofResponseMock
195
197
  } from './zitadelNextGen.faker.ts';
196
198
 
197
- export { getCreateUserResponseMock, getQueryUsersResponseMock, getGetUserByIDResponseMock, getPatchUserByIDResponseMock, getListUserIdentityLinksResponseMock, getListUserPasskeysResponseMock, getBeginUserPasskeyRegistrationResponseMock, getFinishUserPasskeyRegistrationResponseMock, getGetUserPasswordStateResponseMock, getListUserTeamsResponseMock, getGetMyUserResponseMock, getPatchMyUserResponseMock, getListMyIdentityLinksResponseMock, getListMyPasskeysResponseMock, getGetMyPasswordStateResponseMock, getListMyProjectsResponseMock, getGetMyUserSchemaResponseMock, getListMyTeamsResponseMock, getCreateFlowResponseMock, getGetFlowStepResponseMock, getSubmitFlowStepResponseMock, getCreateAuthAttemptResponseMock, getGetAuthAttemptResponseMock, getIssueChallengeResponseMock, getVerifyChallengeProofResponseMock, getCreateHandoffResponseMock, getCreateProjectResponseMock, getQueryProjectsResponseMock, getGetProjectResponseMock, getPatchProjectResponseMock, getListProjectAdminsResponseMock, getInitClaimResponseMock, getGetClaimStatusResponseMock, getCompleteClaimResponseMock, getGetClaimWindowResponseMock, getAddOriginResponseMock, getListPreviewsResponseMock, getCreateSessionResponseMock, getQuerySessionsResponseMock, getExchangeHandoffResponseMock, getGetSessionResponseMock, getGetMySessionResponseMock, getGetMySessionCsrfTokenResponseMock, getCreateSchemaResponseMock, getListSchemasResponseMock, getGetSchemaByIdResponseMock, getCreateFlowDefinitionResponseMock, getListFlowDefinitionsResponseMock, getGetFlowDefinitionResponseMock, getCreateTeamResponseMock, getQueryTeamsResponseMock, getGetTeamResponseMock, getUpdateTeamResponseMock, getCreateBrandingResponseMock, getListBrandingResponseMock, getGetBrandingByIdResponseMock, getCreateIdpResponseMock, getQueryIdpsResponseMock, getGetIdpByIdResponseMock, getListIdpRevisionsResponseMock, getGetIdpRevisionByIdResponseMock, getListPoliciesResponseMock, getPublishPolicyResponseMock, getGetPolicyResponseMock, getListPolicyRevisionsResponseMock, getGetPolicyRevisionResponseMock, getCreateReleaseResponseMock, getListReleasesResponseMock, getBuildReleaseResponseMock, getGetReleaseByIdResponseMock, getRevokeReleaseResponseMock, getCreateGrantResponseMock, getQueryGrantsResponseMock, getGetGrantResponseMock, getListEventsResponseMock, getGetEventResponseMock, getGetVariablesResponseMock, getUpdateVariablesResponseMock, getGetVariableResponseMock, getCreateDeploymentResponseMock, getListDeploymentsResponseMock, getGetDeploymentByIdResponseMock, getRollbackDeploymentResponseMock, getGetDeploymentVariablesResponseMock } from './zitadelNextGen.faker.ts';
199
+ export { getCreateUserResponseMock, getQueryUsersResponseMock, getGetUserByIDResponseMock, getPatchUserByIDResponseMock, getListUserIdentityLinksResponseMock, getListUserPasskeysResponseMock, getBeginUserPasskeyRegistrationResponseMock, getFinishUserPasskeyRegistrationResponseMock, getGetUserPasswordStateResponseMock, getListUserTeamsResponseMock, getGetMyUserResponseMock, getPatchMyUserResponseMock, getListMyIdentityLinksResponseMock, getListMyPasskeysResponseMock, getGetMyPasswordStateResponseMock, getListMyProjectsResponseMock, getGetMyUserSchemaResponseMock, getListMyTeamsResponseMock, getCreateFlowResponseMock, getGetFlowStepResponseMock, getSubmitFlowStepResponseMock, getCreateAuthAttemptResponseMock, getGetAuthAttemptResponseMock, getIssueChallengeResponseMock, getVerifyChallengeProofResponseMock, getCreateHandoffResponseMock, getCreateProjectResponseMock, getQueryProjectsResponseMock, getGetProjectResponseMock, getPatchProjectResponseMock, getListProjectAdminsResponseMock, getInitClaimResponseMock, getGetClaimStatusResponseMock, getCompleteClaimResponseMock, getGetClaimWindowResponseMock, getAddOriginResponseMock, getListPreviewsResponseMock, getCreateSessionResponseMock, getQuerySessionsResponseMock, getExchangeHandoffResponseMock, getGetSessionResponseMock, getGetMySessionResponseMock, getGetMySessionCsrfTokenResponseMock, getCreateSchemaResponseMock, getListSchemasResponseMock, getGetSchemaByIdResponseMock, getCreateFlowDefinitionResponseMock, getListFlowDefinitionsResponseMock, getGetFlowDefinitionResponseMock, getCreateTeamResponseMock, getQueryTeamsResponseMock, getGetTeamResponseMock, getUpdateTeamResponseMock, getCreateBrandingResponseMock, getListBrandingResponseMock, getGetBrandingByIdResponseMock, getCreateIdpResponseMock, getQueryIdpsResponseMock, getGetIdpByIdResponseMock, getListIdpRevisionsResponseMock, getGetIdpRevisionByIdResponseMock, getListPoliciesResponseMock, getPublishPolicyResponseMock, getEvaluatePolicyResponseMock, getGetPolicyResponseMock, getListPolicyRevisionsResponseMock, getGetPolicyRevisionResponseMock, getCreateReleaseResponseMock, getListReleasesResponseMock, getBuildReleaseResponseMock, getGetReleaseByIdResponseMock, getRevokeReleaseResponseMock, getCreateGrantResponseMock, getQueryGrantsResponseMock, getGetGrantResponseMock, getListEventsResponseMock, getGetEventResponseMock, getGetVariablesResponseMock, getUpdateVariablesResponseMock, getGetVariableResponseMock, getCreateDeploymentResponseMock, getListDeploymentsResponseMock, getGetDeploymentByIdResponseMock, getRollbackDeploymentResponseMock, getGetDeploymentVariablesResponseMock } from './zitadelNextGen.faker.ts';
198
200
 
199
201
 
200
202
  export const getGetLiveMockHandler = (overrideResponse?: GetLiveDefault | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<GetLiveDefault> | GetLiveDefault), options?: RequestHandlerOptions) => {
@@ -1043,6 +1045,18 @@ export const getPublishPolicyMockHandler = (overrideResponse?: PublishPolicy201
1043
1045
  }, options)
1044
1046
  }
1045
1047
 
1048
+ export const getEvaluatePolicyMockHandler = (overrideResponse?: EvaluatePolicy200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<EvaluatePolicy200> | EvaluatePolicy200), options?: RequestHandlerOptions) => {
1049
+ return http.post('*/policies/evaluate', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {
1050
+
1051
+
1052
+ return HttpResponse.json(overrideResponse !== undefined
1053
+ ? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
1054
+ : getEvaluatePolicyResponseMock(),
1055
+ { status: 200
1056
+ })
1057
+ }, options)
1058
+ }
1059
+
1046
1060
  export const getGetPolicyMockHandler = (overrideResponse?: GetPolicy200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<GetPolicy200> | GetPolicy200), options?: RequestHandlerOptions) => {
1047
1061
  return http.get('*/policies/:policyId', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {
1048
1062
 
@@ -1387,6 +1401,7 @@ export const getZitadelNextGenMock = () => [
1387
1401
  getGetIdpRevisionByIdMockHandler(),
1388
1402
  getListPoliciesMockHandler(),
1389
1403
  getPublishPolicyMockHandler(),
1404
+ getEvaluatePolicyMockHandler(),
1390
1405
  getGetPolicyMockHandler(),
1391
1406
  getListPolicyRevisionsMockHandler(),
1392
1407
  getGetPolicyRevisionMockHandler(),