@zitadel/testing 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.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("./src-DZ46zEll.cjs");
2
+ const require_src = require("./src-CpLJQquS.cjs");
3
3
  const require_handshake = require("./handshake-BEhxJx4Z.cjs");
4
4
  exports.SESSION_COOKIE_NAME = require_src.SESSION_COOKIE_NAME;
5
5
  exports.applyAppEnvTemplate = require_handshake.applyAppEnvTemplate;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_handshake = require("./handshake-BEhxJx4Z.cjs");
3
- const require_src = require("./src-DZ46zEll.cjs");
3
+ const require_src = require("./src-CpLJQquS.cjs");
4
4
  const require_orchestration = require("./orchestration-SELq6dmD.cjs");
5
5
  let node_fs = require("node:fs");
6
6
  let node_url = require("node:url");
@@ -342,7 +342,7 @@ function apiErrorCode(errorOrBody) {
342
342
  function isRecord(value) {
343
343
  return typeof value === "object" && value !== null && !Array.isArray(value);
344
344
  }
345
- // ../api/dist/zitadelNextGen-CDqt2m_4.mjs
345
+ // ../api/dist/zitadelNextGen-CVFzR-dx.mjs
346
346
  /**
347
347
  * Generated by orval 🍺
348
348
  * Do not edit manually.
@@ -3157,9 +3157,10 @@ const getQueryGrantsUrl = (params) => {
3157
3157
  * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
3158
3158
  * not returned. Requires `project.read`.
3159
3159
  *
3160
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
3161
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
3162
- * console session that already passed the project check may expand without those scopes.
3160
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. Expanding
3161
+ * requires read access to the principal's home project (the platform project
3162
+ * when the server has one), for project secrets and for console sessions alike.
3163
+ * A caller without it gets `403` `user.permission_denied`.
3163
3164
  *
3164
3165
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3165
3166
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -3197,10 +3198,10 @@ const getGetGrantUrl = (grantId, params) => {
3197
3198
  * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
3198
3199
  * (`relation=team`) rows and grants of another project all return `404`.
3199
3200
  *
3200
- * `expand=principal` adds envelope fields on `user` or `team`. For project
3201
- * secrets it requires `user.read` and `team.read` in addition to `project.read`.
3202
- * A user-bound console session that already passed the project check may expand
3203
- * without those scopes.
3201
+ * `expand=principal` adds envelope fields on `user` or `team`. Expanding
3202
+ * requires read access to the principal's home project (the platform project
3203
+ * when the server has one), for project secrets and for console sessions alike.
3204
+ * A caller without it gets `403` `user.permission_denied`.
3204
3205
  *
3205
3206
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3206
3207
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -3252,15 +3253,15 @@ const getCreateInvitationUrl = (params) => {
3252
3253
  * Send `type` and the object named after it. `project_member` takes
3253
3254
  * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
3254
3255
  * and `role`, and answers `501` `not_implemented` until team invitations
3255
- * ship. Optional `metadata.name` labels who the link is for. Optional
3256
- * `replaces_invitation_id` replaces that invitation: the new row keeps the
3257
- * original's `journey_id`, and the original is deleted in the same
3258
- * transaction unless it was accepted.
3256
+ * ship. Optional `metadata.name` (1–200 characters) labels who the link is
3257
+ * for. Optional `replaces_invitation_id` replaces that invitation: the new
3258
+ * row keeps the original's `journey_id`, and the original is deleted in the
3259
+ * same transaction unless it was accepted.
3259
3260
  *
3260
3261
  * The `link` appears only in this response. Share it out of band; whoever
3261
3262
  * opens it and is signed in can redeem the role. It expires in 72 hours.
3262
3263
  * Refused for an unclaimed project, on a server without a platform project,
3263
- * and when the project's pending-invitation cap is reached.
3264
+ * and when the project already has 100 pending unexpired invitations.
3264
3265
  *
3265
3266
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3266
3267
  * (`sessionCookie`). Creation needs the same project `admin` check as
@@ -3979,7 +3980,7 @@ var Paging = class Paging {
3979
3980
  return list;
3980
3981
  }
3981
3982
  };
3982
- // ../api/dist/api-factory-B2kd991F.mjs
3983
+ // ../api/dist/api-factory-ConF3NN2.mjs
3983
3984
  /**
3984
3985
  * The client functions that page (ADR 027), by name: a page's items and its
3985
3986
  * cursor to the next one, each read off the page as the function's response
@@ -15348,9 +15349,10 @@ object({
15348
15349
  * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
15349
15350
  * not returned. Requires `project.read`.
15350
15351
  *
15351
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
15352
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
15353
- * console session that already passed the project check may expand without those scopes.
15352
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. Expanding
15353
+ * requires read access to the principal's home project (the platform project
15354
+ * when the server has one), for project secrets and for console sessions alike.
15355
+ * A caller without it gets `403` `user.permission_denied`.
15354
15356
  *
15355
15357
  * Authenticate with a project secret (`oauth2`) or a console session cookie
15356
15358
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -15512,15 +15514,15 @@ strictObject({ "project_id": string().regex(deleteGrantQueryProjectIdRegExp, "mu
15512
15514
  * Send `type` and the object named after it. `project_member` takes
15513
15515
  * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
15514
15516
  * and `role`, and answers `501` `not_implemented` until team invitations
15515
- * ship. Optional `metadata.name` labels who the link is for. Optional
15516
- * `replaces_invitation_id` replaces that invitation: the new row keeps the
15517
- * original's `journey_id`, and the original is deleted in the same
15518
- * transaction unless it was accepted.
15517
+ * ship. Optional `metadata.name` (1–200 characters) labels who the link is
15518
+ * for. Optional `replaces_invitation_id` replaces that invitation: the new
15519
+ * row keeps the original's `journey_id`, and the original is deleted in the
15520
+ * same transaction unless it was accepted.
15519
15521
  *
15520
15522
  * The `link` appears only in this response. Share it out of band; whoever
15521
15523
  * opens it and is signed in can redeem the role. It expires in 72 hours.
15522
15524
  * Refused for an unclaimed project, on a server without a platform project,
15523
- * and when the project's pending-invitation cap is reached.
15525
+ * and when the project already has 100 pending unexpired invitations.
15524
15526
  *
15525
15527
  * Authenticate with a project secret (`oauth2`) or a console session cookie
15526
15528
  * (`sessionCookie`). Creation needs the same project `admin` check as
@@ -24133,4 +24135,4 @@ Object.defineProperty(exports, "startLocalZitadel", {
24133
24135
  }
24134
24136
  });
24135
24137
 
24136
- //# sourceMappingURL=src-DZ46zEll.cjs.map
24138
+ //# sourceMappingURL=src-CpLJQquS.cjs.map