@zitadel/api 0.8.0 → 0.9.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.
@@ -1,2 +1,2 @@
1
- import { a as ZitadelApi, c as createApi, i as PagedOperation, l as createZitadelClient, n as PageOf, o as ZitadelClient, r as Paged, s as ZitadelClientOptions, t as ItemOf, u as paging } from "../api-factory-DW48-EMM.mjs";
1
+ import { a as ZitadelApi, c as createApi, i as PagedOperation, l as createZitadelClient, n as PageOf, o as ZitadelClient, r as Paged, s as ZitadelClientOptions, t as ItemOf, u as paging } from "../api-factory-DOg9w_Du.mjs";
2
2
  export { ItemOf, PageOf, Paged, PagedOperation, ZitadelApi, ZitadelClient, ZitadelClientOptions, createApi, createZitadelClient, paging as pagedFunctions };
@@ -1,2 +1,2 @@
1
1
  import "./base-url.mjs";
2
- export { t as createApi, n as createZitadelClient, r as pagedFunctions } from "../api-factory-B2kd991F.mjs";
2
+ export { t as createApi, n as createZitadelClient, r as pagedFunctions } from "../api-factory-ConF3NN2.mjs";
@@ -1,4 +1,4 @@
1
- import { a as ZitadelApi } from "../api-factory-DW48-EMM.mjs";
1
+ import { a as ZitadelApi } from "../api-factory-DOg9w_Du.mjs";
2
2
  /**
3
3
  * Input options for {@link configureZitadel}.
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { setProxyPath } from "./base-url.mjs";
2
- import { n as createZitadelClient } from "../api-factory-B2kd991F.mjs";
2
+ import { n as createZitadelClient } from "../api-factory-ConF3NN2.mjs";
3
3
  // src/runtime/config.ts
4
4
  /**
5
5
  * Slot for the configured project, stored on `globalThis` under a
@@ -2816,9 +2816,10 @@ const getQueryGrantsUrl = (params) => {
2816
2816
  * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
2817
2817
  * not returned. Requires `project.read`.
2818
2818
  *
2819
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
2820
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
2821
- * console session that already passed the project check may expand without those scopes.
2819
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. Expanding
2820
+ * requires read access to the principal's home project (the platform project
2821
+ * when the server has one), for project secrets and for console sessions alike.
2822
+ * A caller without it gets `403` `user.permission_denied`.
2822
2823
  *
2823
2824
  * Authenticate with a project secret (`oauth2`) or a console session cookie
2824
2825
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -2856,10 +2857,10 @@ const getGetGrantUrl = (grantId, params) => {
2856
2857
  * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
2857
2858
  * (`relation=team`) rows and grants of another project all return `404`.
2858
2859
  *
2859
- * `expand=principal` adds envelope fields on `user` or `team`. For project
2860
- * secrets it requires `user.read` and `team.read` in addition to `project.read`.
2861
- * A user-bound console session that already passed the project check may expand
2862
- * without those scopes.
2860
+ * `expand=principal` adds envelope fields on `user` or `team`. Expanding
2861
+ * requires read access to the principal's home project (the platform project
2862
+ * when the server has one), for project secrets and for console sessions alike.
2863
+ * A caller without it gets `403` `user.permission_denied`.
2863
2864
  *
2864
2865
  * Authenticate with a project secret (`oauth2`) or a console session cookie
2865
2866
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -2911,15 +2912,15 @@ const getCreateInvitationUrl = (params) => {
2911
2912
  * Send `type` and the object named after it. `project_member` takes
2912
2913
  * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
2913
2914
  * and `role`, and answers `501` `not_implemented` until team invitations
2914
- * ship. Optional `metadata.name` labels who the link is for. Optional
2915
- * `replaces_invitation_id` replaces that invitation: the new row keeps the
2916
- * original's `journey_id`, and the original is deleted in the same
2917
- * transaction unless it was accepted.
2915
+ * ship. Optional `metadata.name` (1–200 characters) labels who the link is
2916
+ * for. Optional `replaces_invitation_id` replaces that invitation: the new
2917
+ * row keeps the original's `journey_id`, and the original is deleted in the
2918
+ * same transaction unless it was accepted.
2918
2919
  *
2919
2920
  * The `link` appears only in this response. Share it out of band; whoever
2920
2921
  * opens it and is signed in can redeem the role. It expires in 72 hours.
2921
2922
  * Refused for an unclaimed project, on a server without a platform project,
2922
- * and when the project's pending-invitation cap is reached.
2923
+ * and when the project already has 100 pending unexpired invitations.
2923
2924
  *
2924
2925
  * Authenticate with a project secret (`oauth2`) or a console session cookie
2925
2926
  * (`sessionCookie`). Creation needs the same project `admin` check as
@@ -3506,4 +3507,4 @@ const listDeploymentVariables = async (deploymentId, params, options) => {
3506
3507
  };
3507
3508
  export { getDeleteVariableUrl as $, getUpdateUserUrl as $n, updateUser as $r, getListPolicyRevisionsUrl as $t, getAuthAttempt as A, getQueryProjectsUrl as An, publishIdp as Ar, getGetReleaseUrl as At, getCreateFlowUrl as B, getRevokeReleaseUrl as Bn, removeProjectOrigin as Br, getInvitation as Bt, deleteUser as C, getPublishBrandingUrl as Cn, listUserPasskeys as Cr, getGetOAuthSettingsUrl as Ct, getAcceptInvitationUrl as D, getPublishSchemaUrl as Dn, publishApplication as Dr, getGetProjectClaimWindowUrl as Dt, exchangeHandoff as E, getPublishPolicyUrl as En, lookupInvitation as Er, getGetProjectClaimStatusUrl as Et, getCompleteUserPasskeyRegistrationUrl as F, getRejectInvitationUrl as Fn, queryProjects as Fr, getGetUserUrl as Ft, getCreateReleaseUrl as G, getSession as Gn, rollbackDeployment as Gr, getListFlowDefinitionsUrl as Gt, getCreateInvitationUrl as H, getRollbackDeploymentUrl as Hn, revokeMySession as Hr, getListDeploymentVariablesUrl as Ht, getCreateAuthAttemptChallengeUrl as I, getRelease as In, querySessions as Ir, getGetVariableUrl as It, getCreateUserPasskeyRegistrationUrl as J, getSubmitFlowStepUrl as Jn, setVariables as Jr, getListMyIdentityLinksUrl as Jt, getCreateSessionUrl as K, getSetUserPasswordUrl as Kn, search as Kr, getListIdpRevisionsUrl as Kt, getCreateAuthAttemptHandoffUrl as L, getRemoveProjectOriginUrl as Ln, queryTeams as Lr, getGrant as Lt, getBuildReleaseUrl as M, getQueryTeamsUrl as Mn, publishSchema as Mr, getGetSessionUrl as Mt, getCancelInvitationUrl as N, getQueryUsersUrl as Nn, queryGrants as Nr, getGetTeamUrl as Nt, getAddProjectOriginUrl as O, getQueryGrantsUrl as On, publishBranding as Or, getGetProjectUrl as Ot, getCompleteProjectClaimUrl as P, getReady as Pn, queryIdps as Pr, getGetUserPasswordStateUrl as Pt, getDeleteUserUrl as Q, getUpdateTeamUrl as Qn, updateTeam as Qr, getListPoliciesUrl as Qt, getCreateAuthAttemptUrl as R, getRemoveProjectPreviewUrl as Rn, queryUsers as Rr, getIdp as Rt, deleteGrant as S, getPublishApplicationUrl as Sn, listUserIdentityLinks as Sr, getGetMyUserUrl as St, evaluatePolicy as T, getPublishIdpUrl as Tn, listVariables as Tr, getGetPolicyUrl as Tt, getCreateProjectClaimUrl as U, getSchema as Un, revokeRelease as Ur, getListDeploymentsUrl as Ut, getCreateGrantUrl as V, getRevokeSessionUrl as Vn, removeProjectPreview as Vr, getListBrandingUrl as Vt, getCreateProjectUrl as W, getSearchUrl as Wn, revokeSession as Wr, getListEventsUrl as Wt, getDeactivateTeamUrl as X, getUpdateMyUserUrl as Xn, updateMyUser as Xr, getListMyProjectsUrl as Xt, getCreateUserUrl as Y, getTeam as Yn, submitFlowStep as Yr, getListMyPasskeysUrl as Yt, getDeleteGrantUrl as Z, getUpdateProjectUrl as Zn, updateProject as Zr, getListMyTeamsUrl as Zt, createSession as _, getPolicy as _n, listProjectAdmins as _r, getGetLiveUrl as _t, completeProjectClaim as a, getListUserIdentityLinksUrl as an, listDeploymentVariables as ar, getFlowStep as at, createUserPasskeyRegistration as b, getProjectClaimStatus as bn, listReleases as br, getGetMySessionUrl as bt, createAuthAttemptChallenge as c, getListVariablesUrl as cn, listFlowDefinitions as cr, getGetBrandingUrl as ct, createFlow as d, getMyPasswordState as dn, listMyIdentityLinks as dr, getGetFlowDefinitionUrl as dt, verifyAuthAttemptChallenge as ei, getListProjectAdminsUrl as en, getUser as er, getDeployment as et, createGrant as f, getMySession as fn, listMyPasskeys as fr, getGetFlowStepUrl as ft, createRelease as g, getOAuthSettings as gn, listPolicyRevisions as gr, getGetInvitationUrl as gt, createProjectClaim as h, getMyUserSchema as hn, listPolicies as hr, getGetIdpUrl as ht, cancelInvitation as i, getListSchemasUrl as in, listBranding as ir, getFlowDefinition as it, getBranding as j, getQuerySessionsUrl as jn, publishPolicy as jr, getGetSchemaUrl as jt, getApplication as k, getQueryIdpsUrl as kn, publishFlowDefinition as kr, getGetReadyUrl as kt, createAuthAttemptHandoff as l, getLive as ln, listIdpRevisions as lr, getGetDeploymentUrl as lt, createProject as m, getMyUser as mn, listMyTeams as mr, getGetIdpRevisionUrl as mt, addProjectOrigin as n, getListProjectPreviewsUrl as nn, getVariable as nr, getEvent as nt, completeUserPasskeyRegistration as o, getListUserPasskeysUrl as on, listDeployments as or, getGetApplicationUrl as ot, createInvitation as p, getMySessionCsrfToken as pn, listMyProjects as pr, getGetGrantUrl as pt, getCreateTeamUrl as q, getSetVariablesUrl as qn, setUserPassword as qr, getListInvitationsUrl as qt, buildRelease as r, getListReleasesUrl as rn, getVerifyAuthAttemptChallengeUrl as rr, getExchangeHandoffUrl as rt, createAuthAttempt as s, getListUserTeamsUrl as sn, listEvents as sr, getGetAuthAttemptUrl as st, acceptInvitation as t, zitadelNextGen_exports as ti, getListProjectMembersUrl as tn, getUserPasswordState as tr, getEvaluatePolicyUrl as tt, createDeployment as u, getLookupInvitationUrl as un, listInvitations as ur, getGetEventUrl as ut, createTeam as v, getPolicyRevision as vn, listProjectMembers as vr, getGetMyPasswordStateUrl as vt, deleteVariable as w, getPublishFlowDefinitionUrl as wn, listUserTeams as wr, getGetPolicyRevisionUrl as wt, deactivateTeam as x, getProjectClaimWindow as xn, listSchemas as xr, getGetMyUserSchemaUrl as xt, createUser as y, getProject as yn, listProjectPreviews as yr, getGetMySessionCsrfTokenUrl as yt, getCreateDeploymentUrl as z, getRevokeMySessionUrl as zn, rejectInvitation as zr, getIdpRevision as zt };
3508
3509
 
3509
- //# sourceMappingURL=zitadelNextGen-CDqt2m_4.mjs.map
3510
+ //# sourceMappingURL=zitadelNextGen-CVFzR-dx.mjs.map