@zitadel/testing 0.7.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.
@@ -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-DsPFGqLs.mjs
345
+ // ../api/dist/zitadelNextGen-CVFzR-dx.mjs
346
346
  /**
347
347
  * Generated by orval 🍺
348
348
  * Do not edit manually.
@@ -459,6 +459,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
459
459
  getListPoliciesUrl: () => getListPoliciesUrl,
460
460
  getListPolicyRevisionsUrl: () => getListPolicyRevisionsUrl,
461
461
  getListProjectAdminsUrl: () => getListProjectAdminsUrl,
462
+ getListProjectMembersUrl: () => getListProjectMembersUrl,
462
463
  getListProjectPreviewsUrl: () => getListProjectPreviewsUrl,
463
464
  getListReleasesUrl: () => getListReleasesUrl,
464
465
  getListSchemasUrl: () => getListSchemasUrl,
@@ -529,6 +530,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
529
530
  listPolicies: () => listPolicies,
530
531
  listPolicyRevisions: () => listPolicyRevisions,
531
532
  listProjectAdmins: () => listProjectAdmins,
533
+ listProjectMembers: () => listProjectMembers,
532
534
  listProjectPreviews: () => listProjectPreviews,
533
535
  listReleases: () => listReleases,
534
536
  listSchemas: () => listSchemas,
@@ -566,6 +568,19 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
566
568
  updateUser: () => updateUser,
567
569
  verifyAuthAttemptChallenge: () => verifyAuthAttemptChallenge
568
570
  });
571
+ const getHeaders = (...sources) => {
572
+ const seen = /* @__PURE__ */ new Set();
573
+ const layers = [];
574
+ for (const source of sources.reverse()) {
575
+ if (!source) continue;
576
+ const entries = source instanceof Headers ? source.entries() : Symbol.iterator in source ? Array.from(source, (entry) => Array.from(entry)) : Object.entries(source);
577
+ const layer = [];
578
+ for (const [name, value] of entries) if (value !== void 0 && !seen.has(name.toLowerCase())) layer.push([name, value]);
579
+ for (const [name] of layer) seen.add(name.toLowerCase());
580
+ layers.push(layer);
581
+ }
582
+ return Object.fromEntries(layers.reverse().flat());
583
+ };
569
584
  const getGetLiveUrl = () => {
570
585
  return `${getApiBaseUrl()}/livez`;
571
586
  };
@@ -625,21 +640,10 @@ const getCreateUserUrl = (params) => {
625
640
  * @summary Create a user
626
641
  */
627
642
  const createUser = async (createUserBody, params, options) => {
628
- const getHeaders = (h) => {
629
- if (!h) return {};
630
- if (h instanceof Headers) return Object.fromEntries(h.entries());
631
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
632
- const headers = {};
633
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
634
- return headers;
635
- };
636
643
  return customFetch(getCreateUserUrl(params), {
637
644
  ...options,
638
645
  method: "POST",
639
- headers: {
640
- "Content-Type": "application/json",
641
- ...getHeaders(options?.headers)
642
- },
646
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
643
647
  body: JSON.stringify(createUserBody)
644
648
  });
645
649
  };
@@ -669,21 +673,10 @@ const getQueryUsersUrl = (params) => {
669
673
  * @summary Query users
670
674
  */
671
675
  const queryUsers = async (queryUsersBody, params, options) => {
672
- const getHeaders = (h) => {
673
- if (!h) return {};
674
- if (h instanceof Headers) return Object.fromEntries(h.entries());
675
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
676
- const headers = {};
677
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
678
- return headers;
679
- };
680
676
  return customFetch(getQueryUsersUrl(params), {
681
677
  ...options,
682
678
  method: "POST",
683
- headers: {
684
- "Content-Type": "application/json",
685
- ...getHeaders(options?.headers)
686
- },
679
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
687
680
  body: JSON.stringify(queryUsersBody)
688
681
  });
689
682
  };
@@ -732,21 +725,10 @@ const getUpdateUserUrl = (userId) => {
732
725
  * @summary Update a user by ID
733
726
  */
734
727
  const updateUser = async (userId, updateUserBody, options) => {
735
- const getHeaders = (h) => {
736
- if (!h) return {};
737
- if (h instanceof Headers) return Object.fromEntries(h.entries());
738
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
739
- const headers = {};
740
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
741
- return headers;
742
- };
743
728
  return customFetch(getUpdateUserUrl(userId), {
744
729
  ...options,
745
730
  method: "PATCH",
746
- headers: {
747
- "Content-Type": "application/json",
748
- ...getHeaders(options?.headers)
749
- },
731
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
750
732
  body: JSON.stringify(updateUserBody)
751
733
  });
752
734
  };
@@ -830,21 +812,10 @@ const getCreateUserPasskeyRegistrationUrl = (userId) => {
830
812
  * @summary Begin a passkey registration
831
813
  */
832
814
  const createUserPasskeyRegistration = async (userId, createUserPasskeyRegistrationBody, options) => {
833
- const getHeaders = (h) => {
834
- if (!h) return {};
835
- if (h instanceof Headers) return Object.fromEntries(h.entries());
836
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
837
- const headers = {};
838
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
839
- return headers;
840
- };
841
815
  return customFetch(getCreateUserPasskeyRegistrationUrl(userId), {
842
816
  ...options,
843
817
  method: "POST",
844
- headers: {
845
- "Content-Type": "application/json",
846
- ...getHeaders(options?.headers)
847
- },
818
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
848
819
  body: JSON.stringify(createUserPasskeyRegistrationBody)
849
820
  });
850
821
  };
@@ -864,21 +835,10 @@ const getCompleteUserPasskeyRegistrationUrl = (userId, registrationId) => {
864
835
  * @summary Finish a passkey registration
865
836
  */
866
837
  const completeUserPasskeyRegistration = async (userId, registrationId, completeUserPasskeyRegistrationBody, options) => {
867
- const getHeaders = (h) => {
868
- if (!h) return {};
869
- if (h instanceof Headers) return Object.fromEntries(h.entries());
870
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
871
- const headers = {};
872
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
873
- return headers;
874
- };
875
838
  return customFetch(getCompleteUserPasskeyRegistrationUrl(userId, registrationId), {
876
839
  ...options,
877
840
  method: "POST",
878
- headers: {
879
- "Content-Type": "application/json",
880
- ...getHeaders(options?.headers)
881
- },
841
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
882
842
  body: JSON.stringify(completeUserPasskeyRegistrationBody)
883
843
  });
884
844
  };
@@ -929,21 +889,10 @@ const getSetUserPasswordUrl = (userId) => {
929
889
  * @summary Set a user's password
930
890
  */
931
891
  const setUserPassword = async (userId, setUserPasswordBody, options) => {
932
- const getHeaders = (h) => {
933
- if (!h) return {};
934
- if (h instanceof Headers) return Object.fromEntries(h.entries());
935
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
936
- const headers = {};
937
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
938
- return headers;
939
- };
940
892
  return customFetch(getSetUserPasswordUrl(userId), {
941
893
  ...options,
942
894
  method: "PUT",
943
- headers: {
944
- "Content-Type": "application/json",
945
- ...getHeaders(options?.headers)
946
- },
895
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
947
896
  body: JSON.stringify(setUserPasswordBody)
948
897
  });
949
898
  };
@@ -1014,21 +963,10 @@ const getUpdateMyUserUrl = (params) => {
1014
963
  * @summary Update my user information
1015
964
  */
1016
965
  const updateMyUser = async (updateMyUserBody, params, options) => {
1017
- const getHeaders = (h) => {
1018
- if (!h) return {};
1019
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1020
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1021
- const headers = {};
1022
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1023
- return headers;
1024
- };
1025
966
  return customFetch(getUpdateMyUserUrl(params), {
1026
967
  ...options,
1027
968
  method: "PATCH",
1028
- headers: {
1029
- "Content-Type": "application/json",
1030
- ...getHeaders(options?.headers)
1031
- },
969
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1032
970
  body: JSON.stringify(updateMyUserBody)
1033
971
  });
1034
972
  };
@@ -1240,21 +1178,10 @@ const getCreateFlowUrl = () => {
1240
1178
  * @summary Start a flow
1241
1179
  */
1242
1180
  const createFlow = async (createFlowBody, options) => {
1243
- const getHeaders = (h) => {
1244
- if (!h) return {};
1245
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1246
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1247
- const headers = {};
1248
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1249
- return headers;
1250
- };
1251
1181
  return customFetch(getCreateFlowUrl(), {
1252
1182
  ...options,
1253
1183
  method: "POST",
1254
- headers: {
1255
- "Content-Type": "application/json",
1256
- ...getHeaders(options?.headers)
1257
- },
1184
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1258
1185
  body: JSON.stringify(createFlowBody)
1259
1186
  });
1260
1187
  };
@@ -1358,21 +1285,10 @@ const getSubmitFlowStepUrl = (flowId) => {
1358
1285
  * @summary Submit a flow step
1359
1286
  */
1360
1287
  const submitFlowStep = async (flowId, submitFlowStepBody, options) => {
1361
- const getHeaders = (h) => {
1362
- if (!h) return {};
1363
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1364
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1365
- const headers = {};
1366
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1367
- return headers;
1368
- };
1369
1288
  return customFetch(getSubmitFlowStepUrl(flowId), {
1370
1289
  ...options,
1371
1290
  method: "POST",
1372
- headers: {
1373
- "Content-Type": "application/json",
1374
- ...getHeaders(options?.headers)
1375
- },
1291
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1376
1292
  body: JSON.stringify(submitFlowStepBody)
1377
1293
  });
1378
1294
  };
@@ -1412,21 +1328,10 @@ const getCreateAuthAttemptUrl = () => {
1412
1328
  * @summary Create an authentication attempt
1413
1329
  */
1414
1330
  const createAuthAttempt = async (createAuthAttemptBody, options) => {
1415
- const getHeaders = (h) => {
1416
- if (!h) return {};
1417
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1418
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1419
- const headers = {};
1420
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1421
- return headers;
1422
- };
1423
1331
  return customFetch(getCreateAuthAttemptUrl(), {
1424
1332
  ...options,
1425
1333
  method: "POST",
1426
- headers: {
1427
- "Content-Type": "application/json",
1428
- ...getHeaders(options?.headers)
1429
- },
1334
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1430
1335
  body: JSON.stringify(createAuthAttemptBody)
1431
1336
  });
1432
1337
  };
@@ -1462,21 +1367,10 @@ const getCreateAuthAttemptChallengeUrl = (attemptId) => {
1462
1367
  * @summary Issue a factor challenge
1463
1368
  */
1464
1369
  const createAuthAttemptChallenge = async (attemptId, createAuthAttemptChallengeBody, options) => {
1465
- const getHeaders = (h) => {
1466
- if (!h) return {};
1467
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1468
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1469
- const headers = {};
1470
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1471
- return headers;
1472
- };
1473
1370
  return customFetch(getCreateAuthAttemptChallengeUrl(attemptId), {
1474
1371
  ...options,
1475
1372
  method: "POST",
1476
- headers: {
1477
- "Content-Type": "application/json",
1478
- ...getHeaders(options?.headers)
1479
- },
1373
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1480
1374
  body: JSON.stringify(createAuthAttemptChallengeBody)
1481
1375
  });
1482
1376
  };
@@ -1502,21 +1396,10 @@ const getVerifyAuthAttemptChallengeUrl = (attemptId, challengeId) => {
1502
1396
  * @summary Verify a challenge proof
1503
1397
  */
1504
1398
  const verifyAuthAttemptChallenge = async (attemptId, challengeId, verifyAuthAttemptChallengeBody, options) => {
1505
- const getHeaders = (h) => {
1506
- if (!h) return {};
1507
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1508
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1509
- const headers = {};
1510
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1511
- return headers;
1512
- };
1513
1399
  return customFetch(getVerifyAuthAttemptChallengeUrl(attemptId, challengeId), {
1514
1400
  ...options,
1515
1401
  method: "POST",
1516
- headers: {
1517
- "Content-Type": "application/json",
1518
- ...getHeaders(options?.headers)
1519
- },
1402
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1520
1403
  body: JSON.stringify(verifyAuthAttemptChallengeBody)
1521
1404
  });
1522
1405
  };
@@ -1565,21 +1448,10 @@ const getCreateProjectUrl = () => {
1565
1448
  * @summary Create a project
1566
1449
  */
1567
1450
  const createProject = async (createProjectBody, options) => {
1568
- const getHeaders = (h) => {
1569
- if (!h) return {};
1570
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1571
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1572
- const headers = {};
1573
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1574
- return headers;
1575
- };
1576
1451
  return customFetch(getCreateProjectUrl(), {
1577
1452
  ...options,
1578
1453
  method: "POST",
1579
- headers: {
1580
- "Content-Type": "application/json",
1581
- ...getHeaders(options?.headers)
1582
- },
1454
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1583
1455
  body: JSON.stringify(createProjectBody)
1584
1456
  });
1585
1457
  };
@@ -1596,21 +1468,10 @@ const getQueryProjectsUrl = () => {
1596
1468
  * @summary Query projects
1597
1469
  */
1598
1470
  const queryProjects = async (queryProjectsBody, options) => {
1599
- const getHeaders = (h) => {
1600
- if (!h) return {};
1601
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1602
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1603
- const headers = {};
1604
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1605
- return headers;
1606
- };
1607
1471
  return customFetch(getQueryProjectsUrl(), {
1608
1472
  ...options,
1609
1473
  method: "POST",
1610
- headers: {
1611
- "Content-Type": "application/json",
1612
- ...getHeaders(options?.headers)
1613
- },
1474
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1614
1475
  body: JSON.stringify(queryProjectsBody)
1615
1476
  });
1616
1477
  };
@@ -1647,21 +1508,10 @@ const getUpdateProjectUrl = (projectId) => {
1647
1508
  * @summary Update a project
1648
1509
  */
1649
1510
  const updateProject = async (projectId, updateProjectBody, options) => {
1650
- const getHeaders = (h) => {
1651
- if (!h) return {};
1652
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1653
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1654
- const headers = {};
1655
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1656
- return headers;
1657
- };
1658
1511
  return customFetch(getUpdateProjectUrl(projectId), {
1659
1512
  ...options,
1660
1513
  method: "PATCH",
1661
- headers: {
1662
- "Content-Type": "application/json",
1663
- ...getHeaders(options?.headers)
1664
- },
1514
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1665
1515
  body: JSON.stringify(updateProjectBody)
1666
1516
  });
1667
1517
  };
@@ -1692,12 +1542,12 @@ const getListProjectAdminsUrl = (projectId, params) => {
1692
1542
  * whose team or user was deactivated, is not listed through it. Grants that
1693
1543
  * expired or carry a lower role are left out. A person whose only access is a
1694
1544
  * `viewer` or `editor` grant is not an admin and is not listed. Like the
1695
- * check, the list does not look at a person's user status beyond that, so a
1696
- * direct grant to a suspended person is listed.
1545
+ * check, a direct user grant requires an active user, so a suspended
1546
+ * person's direct grant is not listed.
1697
1547
  *
1698
- * A person whose access comes only through teams the caller is not a
1699
- * member of is left out. A team the caller is not in is named by `team_id`
1700
- * only. The grant to such a team still shows in the project's grants.
1548
+ * Every caller who passes the project read check sees every listed admin
1549
+ * and every team name on `sources`. Co-membership no longer filters the
1550
+ * roster.
1701
1551
  *
1702
1552
  * The list is ordered by `user_id` and paginated with `page_token`.
1703
1553
  * Authenticate with a project secret (`oauth2`), or with the session cookie
@@ -1710,6 +1560,58 @@ const listProjectAdmins = async (projectId, params, options) => {
1710
1560
  method: "GET"
1711
1561
  });
1712
1562
  };
1563
+ const getListProjectMembersUrl = (projectId, params) => {
1564
+ const normalizedParams = new URLSearchParams();
1565
+ Object.entries(params || {}).forEach(([key, value]) => {
1566
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
1567
+ });
1568
+ const stringifiedParams = normalizedParams.toString();
1569
+ return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/members?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/members`;
1570
+ };
1571
+ /**
1572
+ * Lists the people who have a role on a project, with each person's strongest
1573
+ * role and how they hold it.
1574
+ *
1575
+ * A person appears once, with their strongest `relation` (`viewer`, `editor`
1576
+ * or `admin`; a stronger role includes the weaker ones) and one entry in
1577
+ * `sources` per way they hold that role:
1578
+ *
1579
+ * - `owning_team`: an active member of the team that owns the project, the
1580
+ * team a claim attaches the project to. It holds `admin`. Removing a grant
1581
+ * does not remove this access. It ends only when the person leaves the
1582
+ * team or the project changes owner.
1583
+ * - `grant`: an unexpired grant on the project, which is a role given to the
1584
+ * person (`grant_id` only) or to a team they are an active member of
1585
+ * (`grant_id` and `team`). Revoking that grant removes this source.
1586
+ *
1587
+ * Grants of a weaker role than the person's strongest are not in `sources`;
1588
+ * they still show in the project's grants (`queryGrants`,
1589
+ * `POST /grants/query`).
1590
+ *
1591
+ * Pass `relation` to list only the people whose strongest role is at least
1592
+ * that strong: `relation=admin` lists the people who can administer the
1593
+ * project.
1594
+ *
1595
+ * The list follows the authorization check. A person who left a team, or
1596
+ * whose team or user was deactivated, is not listed through it. Expired
1597
+ * grants are left out. Like the check, a direct user grant requires an
1598
+ * active user, so a suspended person's direct grant is not listed.
1599
+ *
1600
+ * Every caller who passes the project read check sees every listed person
1601
+ * and every team name on `sources`. Co-membership no longer filters the
1602
+ * roster.
1603
+ *
1604
+ * The list is ordered by `user_id` and paginated with `page_token`.
1605
+ * Authenticate with a project secret (`oauth2`), or with the session cookie
1606
+ * (`sessionCookie`) of a signed-in person who can read the project.
1607
+ * @summary List the members of a project
1608
+ */
1609
+ const listProjectMembers = async (projectId, params, options) => {
1610
+ return customFetch(getListProjectMembersUrl(projectId, params), {
1611
+ ...options,
1612
+ method: "GET"
1613
+ });
1614
+ };
1713
1615
  const getCreateProjectClaimUrl = (projectId) => {
1714
1616
  return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/init`;
1715
1617
  };
@@ -1790,21 +1692,10 @@ const getCompleteProjectClaimUrl = (projectId) => {
1790
1692
  * @summary Complete a project claim
1791
1693
  */
1792
1694
  const completeProjectClaim = async (projectId, completeProjectClaimBody, options) => {
1793
- const getHeaders = (h) => {
1794
- if (!h) return {};
1795
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1796
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1797
- const headers = {};
1798
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1799
- return headers;
1800
- };
1801
1695
  return customFetch(getCompleteProjectClaimUrl(projectId), {
1802
1696
  ...options,
1803
1697
  method: "POST",
1804
- headers: {
1805
- "Content-Type": "application/json",
1806
- ...getHeaders(options?.headers)
1807
- },
1698
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1808
1699
  body: JSON.stringify(completeProjectClaimBody)
1809
1700
  });
1810
1701
  };
@@ -1860,21 +1751,10 @@ const getAddProjectOriginUrl = (projectId) => {
1860
1751
  * @summary Add an origin pattern
1861
1752
  */
1862
1753
  const addProjectOrigin = async (projectId, addProjectOriginBody, options) => {
1863
- const getHeaders = (h) => {
1864
- if (!h) return {};
1865
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1866
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1867
- const headers = {};
1868
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1869
- return headers;
1870
- };
1871
1754
  return customFetch(getAddProjectOriginUrl(projectId), {
1872
1755
  ...options,
1873
1756
  method: "POST",
1874
- headers: {
1875
- "Content-Type": "application/json",
1876
- ...getHeaders(options?.headers)
1877
- },
1757
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1878
1758
  body: JSON.stringify(addProjectOriginBody)
1879
1759
  });
1880
1760
  };
@@ -1894,21 +1774,10 @@ const getRemoveProjectOriginUrl = (projectId) => {
1894
1774
  * @summary Remove an origin pattern
1895
1775
  */
1896
1776
  const removeProjectOrigin = async (projectId, removeProjectOriginBody, options) => {
1897
- const getHeaders = (h) => {
1898
- if (!h) return {};
1899
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1900
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1901
- const headers = {};
1902
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1903
- return headers;
1904
- };
1905
1777
  return customFetch(getRemoveProjectOriginUrl(projectId), {
1906
1778
  ...options,
1907
1779
  method: "POST",
1908
- headers: {
1909
- "Content-Type": "application/json",
1910
- ...getHeaders(options?.headers)
1911
- },
1780
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1912
1781
  body: JSON.stringify(removeProjectOriginBody)
1913
1782
  });
1914
1783
  };
@@ -1950,21 +1819,10 @@ const getRemoveProjectPreviewUrl = (projectId) => {
1950
1819
  * @summary Remove a preview
1951
1820
  */
1952
1821
  const removeProjectPreview = async (projectId, removeProjectPreviewBody, options) => {
1953
- const getHeaders = (h) => {
1954
- if (!h) return {};
1955
- if (h instanceof Headers) return Object.fromEntries(h.entries());
1956
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1957
- const headers = {};
1958
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
1959
- return headers;
1960
- };
1961
1822
  return customFetch(getRemoveProjectPreviewUrl(projectId), {
1962
1823
  ...options,
1963
1824
  method: "POST",
1964
- headers: {
1965
- "Content-Type": "application/json",
1966
- ...getHeaders(options?.headers)
1967
- },
1825
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
1968
1826
  body: JSON.stringify(removeProjectPreviewBody)
1969
1827
  });
1970
1828
  };
@@ -2004,21 +1862,10 @@ const getCreateSessionUrl = () => {
2004
1862
  * @summary Create an anonymous session
2005
1863
  */
2006
1864
  const createSession = async (createSessionBody, options) => {
2007
- const getHeaders = (h) => {
2008
- if (!h) return {};
2009
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2010
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2011
- const headers = {};
2012
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2013
- return headers;
2014
- };
2015
1865
  return customFetch(getCreateSessionUrl(), {
2016
1866
  ...options,
2017
1867
  method: "POST",
2018
- headers: {
2019
- "Content-Type": "application/json",
2020
- ...getHeaders(options?.headers)
2021
- },
1868
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2022
1869
  body: JSON.stringify(createSessionBody)
2023
1870
  });
2024
1871
  };
@@ -2038,21 +1885,10 @@ const getQuerySessionsUrl = (params) => {
2038
1885
  * @summary Query sessions
2039
1886
  */
2040
1887
  const querySessions = async (querySessionsBody, params, options) => {
2041
- const getHeaders = (h) => {
2042
- if (!h) return {};
2043
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2044
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2045
- const headers = {};
2046
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2047
- return headers;
2048
- };
2049
1888
  return customFetch(getQuerySessionsUrl(params), {
2050
1889
  ...options,
2051
1890
  method: "POST",
2052
- headers: {
2053
- "Content-Type": "application/json",
2054
- ...getHeaders(options?.headers)
2055
- },
1891
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2056
1892
  body: JSON.stringify(querySessionsBody)
2057
1893
  });
2058
1894
  };
@@ -2099,21 +1935,10 @@ const getExchangeHandoffUrl = (params) => {
2099
1935
  * @summary Exchange a handoff token for a session
2100
1936
  */
2101
1937
  const exchangeHandoff = async (exchangeHandoffBody, params, options) => {
2102
- const getHeaders = (h) => {
2103
- if (!h) return {};
2104
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2105
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2106
- const headers = {};
2107
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2108
- return headers;
2109
- };
2110
1938
  return customFetch(getExchangeHandoffUrl(params), {
2111
1939
  ...options,
2112
1940
  method: "POST",
2113
- headers: {
2114
- "Content-Type": "application/json",
2115
- ...getHeaders(options?.headers)
2116
- },
1941
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2117
1942
  body: JSON.stringify(exchangeHandoffBody)
2118
1943
  });
2119
1944
  };
@@ -2265,21 +2090,10 @@ const getPublishSchemaUrl = (params) => {
2265
2090
  * @summary Publish a schema
2266
2091
  */
2267
2092
  const publishSchema = async (publishSchemaBody, params, options) => {
2268
- const getHeaders = (h) => {
2269
- if (!h) return {};
2270
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2271
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2272
- const headers = {};
2273
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2274
- return headers;
2275
- };
2276
2093
  return customFetch(getPublishSchemaUrl(params), {
2277
2094
  ...options,
2278
2095
  method: "POST",
2279
- headers: {
2280
- "Content-Type": "application/json",
2281
- ...getHeaders(options?.headers)
2282
- },
2096
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2283
2097
  body: JSON.stringify(publishSchemaBody)
2284
2098
  });
2285
2099
  };
@@ -2360,21 +2174,10 @@ const getPublishFlowDefinitionUrl = () => {
2360
2174
  * @summary Publish a flow definition
2361
2175
  */
2362
2176
  const publishFlowDefinition = async (publishFlowDefinitionBody, options) => {
2363
- const getHeaders = (h) => {
2364
- if (!h) return {};
2365
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2366
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2367
- const headers = {};
2368
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2369
- return headers;
2370
- };
2371
2177
  return customFetch(getPublishFlowDefinitionUrl(), {
2372
2178
  ...options,
2373
2179
  method: "POST",
2374
- headers: {
2375
- "Content-Type": "application/json",
2376
- ...getHeaders(options?.headers)
2377
- },
2180
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2378
2181
  body: JSON.stringify(publishFlowDefinitionBody)
2379
2182
  });
2380
2183
  };
@@ -2438,21 +2241,10 @@ const getCreateTeamUrl = (params) => {
2438
2241
  * @summary Create a team
2439
2242
  */
2440
2243
  const createTeam = async (createTeamBody, params, options) => {
2441
- const getHeaders = (h) => {
2442
- if (!h) return {};
2443
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2444
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2445
- const headers = {};
2446
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2447
- return headers;
2448
- };
2449
2244
  return customFetch(getCreateTeamUrl(params), {
2450
2245
  ...options,
2451
2246
  method: "POST",
2452
- headers: {
2453
- "Content-Type": "application/json",
2454
- ...getHeaders(options?.headers)
2455
- },
2247
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2456
2248
  body: JSON.stringify(createTeamBody)
2457
2249
  });
2458
2250
  };
@@ -2473,21 +2265,10 @@ const getQueryTeamsUrl = (params) => {
2473
2265
  * @summary Query teams
2474
2266
  */
2475
2267
  const queryTeams = async (queryTeamsBody, params, options) => {
2476
- const getHeaders = (h) => {
2477
- if (!h) return {};
2478
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2479
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2480
- const headers = {};
2481
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2482
- return headers;
2483
- };
2484
2268
  return customFetch(getQueryTeamsUrl(params), {
2485
2269
  ...options,
2486
2270
  method: "POST",
2487
- headers: {
2488
- "Content-Type": "application/json",
2489
- ...getHeaders(options?.headers)
2490
- },
2271
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2491
2272
  body: JSON.stringify(queryTeamsBody)
2492
2273
  });
2493
2274
  };
@@ -2543,21 +2324,10 @@ const getUpdateTeamUrl = (teamId) => {
2543
2324
  * @summary Update a team
2544
2325
  */
2545
2326
  const updateTeam = async (teamId, updateTeamBody, options) => {
2546
- const getHeaders = (h) => {
2547
- if (!h) return {};
2548
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2549
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2550
- const headers = {};
2551
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2552
- return headers;
2553
- };
2554
2327
  return customFetch(getUpdateTeamUrl(teamId), {
2555
2328
  ...options,
2556
2329
  method: "PATCH",
2557
- headers: {
2558
- "Content-Type": "application/json",
2559
- ...getHeaders(options?.headers)
2560
- },
2330
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2561
2331
  body: JSON.stringify(updateTeamBody)
2562
2332
  });
2563
2333
  };
@@ -2618,21 +2388,10 @@ const getSearchUrl = (params) => {
2618
2388
  * @summary Search projects
2619
2389
  */
2620
2390
  const search = async (searchBody, params, options) => {
2621
- const getHeaders = (h) => {
2622
- if (!h) return {};
2623
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2624
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2625
- const headers = {};
2626
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2627
- return headers;
2628
- };
2629
2391
  return customFetch(getSearchUrl(params), {
2630
2392
  ...options,
2631
2393
  method: "POST",
2632
- headers: {
2633
- "Content-Type": "application/json",
2634
- ...getHeaders(options?.headers)
2635
- },
2394
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2636
2395
  body: JSON.stringify(searchBody)
2637
2396
  });
2638
2397
  };
@@ -2660,21 +2419,10 @@ const getPublishBrandingUrl = (params) => {
2660
2419
  * @summary Publish a branding revision
2661
2420
  */
2662
2421
  const publishBranding = async (publishBrandingBody, params, options) => {
2663
- const getHeaders = (h) => {
2664
- if (!h) return {};
2665
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2666
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2667
- const headers = {};
2668
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2669
- return headers;
2670
- };
2671
2422
  return customFetch(getPublishBrandingUrl(params), {
2672
2423
  ...options,
2673
2424
  method: "POST",
2674
- headers: {
2675
- "Content-Type": "application/json",
2676
- ...getHeaders(options?.headers)
2677
- },
2425
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2678
2426
  body: JSON.stringify(publishBrandingBody)
2679
2427
  });
2680
2428
  };
@@ -2783,21 +2531,10 @@ const getPublishIdpUrl = (params) => {
2783
2531
  * @summary Create or revise an identity provider
2784
2532
  */
2785
2533
  const publishIdp = async (publishIdpBody, params, options) => {
2786
- const getHeaders = (h) => {
2787
- if (!h) return {};
2788
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2789
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2790
- const headers = {};
2791
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2792
- return headers;
2793
- };
2794
2534
  return customFetch(getPublishIdpUrl(params), {
2795
2535
  ...options,
2796
2536
  method: "POST",
2797
- headers: {
2798
- "Content-Type": "application/json",
2799
- ...getHeaders(options?.headers)
2800
- },
2537
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2801
2538
  body: JSON.stringify(publishIdpBody)
2802
2539
  });
2803
2540
  };
@@ -2816,21 +2553,10 @@ const getQueryIdpsUrl = (params) => {
2816
2553
  * @summary Query identity providers
2817
2554
  */
2818
2555
  const queryIdps = async (queryIdpsBody, params, options) => {
2819
- const getHeaders = (h) => {
2820
- if (!h) return {};
2821
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2822
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2823
- const headers = {};
2824
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2825
- return headers;
2826
- };
2827
2556
  return customFetch(getQueryIdpsUrl(params), {
2828
2557
  ...options,
2829
2558
  method: "POST",
2830
- headers: {
2831
- "Content-Type": "application/json",
2832
- ...getHeaders(options?.headers)
2833
- },
2559
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2834
2560
  body: JSON.stringify(queryIdpsBody)
2835
2561
  });
2836
2562
  };
@@ -2943,21 +2669,10 @@ const getPublishApplicationUrl = (params) => {
2943
2669
  * @summary Create or revise a registered application
2944
2670
  */
2945
2671
  const publishApplication = async (publishApplicationBody, params, options) => {
2946
- const getHeaders = (h) => {
2947
- if (!h) return {};
2948
- if (h instanceof Headers) return Object.fromEntries(h.entries());
2949
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
2950
- const headers = {};
2951
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
2952
- return headers;
2953
- };
2954
2672
  return customFetch(getPublishApplicationUrl(params), {
2955
2673
  ...options,
2956
2674
  method: "POST",
2957
- headers: {
2958
- "Content-Type": "application/json",
2959
- ...getHeaders(options?.headers)
2960
- },
2675
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
2961
2676
  body: JSON.stringify(publishApplicationBody)
2962
2677
  });
2963
2678
  };
@@ -3048,21 +2763,10 @@ const getPublishPolicyUrl = (params) => {
3048
2763
  * @summary Publish a policy
3049
2764
  */
3050
2765
  const publishPolicy = async (publishPolicyBody, params, options) => {
3051
- const getHeaders = (h) => {
3052
- if (!h) return {};
3053
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3054
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3055
- const headers = {};
3056
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3057
- return headers;
3058
- };
3059
2766
  return customFetch(getPublishPolicyUrl(params), {
3060
2767
  ...options,
3061
2768
  method: "POST",
3062
- headers: {
3063
- "Content-Type": "application/json",
3064
- ...getHeaders(options?.headers)
3065
- },
2769
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3066
2770
  body: JSON.stringify(publishPolicyBody)
3067
2771
  });
3068
2772
  };
@@ -3102,21 +2806,10 @@ const getEvaluatePolicyUrl = (params) => {
3102
2806
  * @summary Evaluate a policy
3103
2807
  */
3104
2808
  const evaluatePolicy = async (evaluatePolicyBody, params, options) => {
3105
- const getHeaders = (h) => {
3106
- if (!h) return {};
3107
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3108
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3109
- const headers = {};
3110
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3111
- return headers;
3112
- };
3113
2809
  return customFetch(getEvaluatePolicyUrl(params), {
3114
2810
  ...options,
3115
2811
  method: "POST",
3116
- headers: {
3117
- "Content-Type": "application/json",
3118
- ...getHeaders(options?.headers)
3119
- },
2812
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3120
2813
  body: JSON.stringify(evaluatePolicyBody)
3121
2814
  });
3122
2815
  };
@@ -3234,21 +2927,10 @@ const getCreateReleaseUrl = (params) => {
3234
2927
  * @summary Create a release
3235
2928
  */
3236
2929
  const createRelease = async (createReleaseBody, params, options) => {
3237
- const getHeaders = (h) => {
3238
- if (!h) return {};
3239
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3240
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3241
- const headers = {};
3242
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3243
- return headers;
3244
- };
3245
2930
  return customFetch(getCreateReleaseUrl(params), {
3246
2931
  ...options,
3247
2932
  method: "POST",
3248
- headers: {
3249
- "Content-Type": "application/json",
3250
- ...getHeaders(options?.headers)
3251
- },
2933
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3252
2934
  body: JSON.stringify(createReleaseBody)
3253
2935
  });
3254
2936
  };
@@ -3333,21 +3015,10 @@ const getBuildReleaseUrl = (params) => {
3333
3015
  * @summary Build a release from files
3334
3016
  */
3335
3017
  const buildRelease = async (buildReleaseBody, params, options) => {
3336
- const getHeaders = (h) => {
3337
- if (!h) return {};
3338
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3339
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3340
- const headers = {};
3341
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3342
- return headers;
3343
- };
3344
3018
  return customFetch(getBuildReleaseUrl(params), {
3345
3019
  ...options,
3346
3020
  method: "POST",
3347
- headers: {
3348
- "Content-Type": "application/json",
3349
- ...getHeaders(options?.headers)
3350
- },
3021
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3351
3022
  body: JSON.stringify(buildReleaseBody)
3352
3023
  });
3353
3024
  };
@@ -3462,21 +3133,10 @@ const getCreateGrantUrl = (params) => {
3462
3133
  * @summary Create a grant
3463
3134
  */
3464
3135
  const createGrant = async (createGrantBody, params, options) => {
3465
- const getHeaders = (h) => {
3466
- if (!h) return {};
3467
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3468
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3469
- const headers = {};
3470
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3471
- return headers;
3472
- };
3473
3136
  return customFetch(getCreateGrantUrl(params), {
3474
3137
  ...options,
3475
3138
  method: "POST",
3476
- headers: {
3477
- "Content-Type": "application/json",
3478
- ...getHeaders(options?.headers)
3479
- },
3139
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3480
3140
  body: JSON.stringify(createGrantBody)
3481
3141
  });
3482
3142
  };
@@ -3497,30 +3157,20 @@ const getQueryGrantsUrl = (params) => {
3497
3157
  * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
3498
3158
  * not returned. Requires `project.read`.
3499
3159
  *
3500
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
3501
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
3502
- * 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`.
3503
3164
  *
3504
3165
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3505
3166
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
3506
3167
  * @summary Query grants
3507
3168
  */
3508
3169
  const queryGrants = async (queryGrantsBody, params, options) => {
3509
- const getHeaders = (h) => {
3510
- if (!h) return {};
3511
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3512
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3513
- const headers = {};
3514
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3515
- return headers;
3516
- };
3517
3170
  return customFetch(getQueryGrantsUrl(params), {
3518
3171
  ...options,
3519
3172
  method: "POST",
3520
- headers: {
3521
- "Content-Type": "application/json",
3522
- ...getHeaders(options?.headers)
3523
- },
3173
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3524
3174
  body: JSON.stringify(queryGrantsBody)
3525
3175
  });
3526
3176
  };
@@ -3548,10 +3198,10 @@ const getGetGrantUrl = (grantId, params) => {
3548
3198
  * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
3549
3199
  * (`relation=team`) rows and grants of another project all return `404`.
3550
3200
  *
3551
- * `expand=principal` adds envelope fields on `user` or `team`. For project
3552
- * secrets it requires `user.read` and `team.read` in addition to `project.read`.
3553
- * A user-bound console session that already passed the project check may expand
3554
- * 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`.
3555
3205
  *
3556
3206
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3557
3207
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -3603,15 +3253,15 @@ const getCreateInvitationUrl = (params) => {
3603
3253
  * Send `type` and the object named after it. `project_member` takes
3604
3254
  * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
3605
3255
  * and `role`, and answers `501` `not_implemented` until team invitations
3606
- * ship. Optional `metadata.name` labels who the link is for. Optional
3607
- * `replaces_invitation_id` replaces that invitation: the new row keeps the
3608
- * original's `journey_id`, and the original is deleted in the same
3609
- * 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.
3610
3260
  *
3611
3261
  * The `link` appears only in this response. Share it out of band; whoever
3612
3262
  * opens it and is signed in can redeem the role. It expires in 72 hours.
3613
3263
  * Refused for an unclaimed project, on a server without a platform project,
3614
- * and when the project's pending-invitation cap is reached.
3264
+ * and when the project already has 100 pending unexpired invitations.
3615
3265
  *
3616
3266
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3617
3267
  * (`sessionCookie`). Creation needs the same project `admin` check as
@@ -3620,27 +3270,22 @@ const getCreateInvitationUrl = (params) => {
3620
3270
  * @summary Create an invitation
3621
3271
  */
3622
3272
  const createInvitation = async (createInvitationBody, params, options) => {
3623
- const getHeaders = (h) => {
3624
- if (!h) return {};
3625
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3626
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3627
- const headers = {};
3628
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3629
- return headers;
3630
- };
3631
3273
  return customFetch(getCreateInvitationUrl(params), {
3632
3274
  ...options,
3633
3275
  method: "POST",
3634
- headers: {
3635
- "Content-Type": "application/json",
3636
- ...getHeaders(options?.headers)
3637
- },
3276
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3638
3277
  body: JSON.stringify(createInvitationBody)
3639
3278
  });
3640
3279
  };
3641
3280
  const getListInvitationsUrl = (params) => {
3642
3281
  const normalizedParams = new URLSearchParams();
3643
3282
  Object.entries(params || {}).forEach(([key, value]) => {
3283
+ if (Array.isArray(value) && ["status", "expand"].includes(key)) {
3284
+ value.forEach((v) => {
3285
+ normalizedParams.append(key, v === null ? "null" : String(v));
3286
+ });
3287
+ return;
3288
+ }
3644
3289
  if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
3645
3290
  });
3646
3291
  const stringifiedParams = normalizedParams.toString();
@@ -3650,8 +3295,11 @@ const getListInvitationsUrl = (params) => {
3650
3295
  * Lists a project's invitations, newest first, in any status, paginated with
3651
3296
  * `limit` and `page_token`.
3652
3297
  *
3653
- * Optional `status` and `type` filters narrow the page. `expired` is derived
3654
- * on read from `expires_at`. Authenticate with a project secret (`oauth2`) or
3298
+ * Optional `status` and `type` filters narrow the page. Repeat `status` to
3299
+ * match any of several statuses, for example
3300
+ * `status=pending&status=expired&status=rejected`. `expired` is derived on
3301
+ * read from `expires_at`. `expand=inviter` adds `inviter` to each
3302
+ * invitation. Authenticate with a project secret (`oauth2`) or
3655
3303
  * a console session cookie (`sessionCookie`). Listing needs the same project
3656
3304
  * `admin` check as `createGrant` (`POST /grants`).
3657
3305
  * @summary List invitations
@@ -3673,25 +3321,14 @@ const getLookupInvitationUrl = () => {
3673
3321
  * or finished token answers the same opaque `404`. Authenticate with a
3674
3322
  * platform-project user session cookie (`sessionCookie`). Lookup is a read:
3675
3323
  * same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
3676
- * reject still do). The call is rate-limited.
3324
+ * reject still do).
3677
3325
  * @summary Look up an invitation by token
3678
3326
  */
3679
3327
  const lookupInvitation = async (lookupInvitationBody, options) => {
3680
- const getHeaders = (h) => {
3681
- if (!h) return {};
3682
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3683
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3684
- const headers = {};
3685
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3686
- return headers;
3687
- };
3688
3328
  return customFetch(getLookupInvitationUrl(), {
3689
3329
  ...options,
3690
3330
  method: "POST",
3691
- headers: {
3692
- "Content-Type": "application/json",
3693
- ...getHeaders(options?.headers)
3694
- },
3331
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3695
3332
  body: JSON.stringify(lookupInvitationBody)
3696
3333
  });
3697
3334
  };
@@ -3710,25 +3347,14 @@ const getAcceptInvitationUrl = () => {
3710
3347
  * answers the same opaque `404`.
3711
3348
  *
3712
3349
  * Authenticate with a platform-project user session cookie (`sessionCookie`).
3713
- * Cookie requests follow that scheme's CSRF rules. The call is rate-limited.
3350
+ * Cookie requests follow that scheme's CSRF rules.
3714
3351
  * @summary Accept an invitation
3715
3352
  */
3716
3353
  const acceptInvitation = async (acceptInvitationBody, options) => {
3717
- const getHeaders = (h) => {
3718
- if (!h) return {};
3719
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3720
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3721
- const headers = {};
3722
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3723
- return headers;
3724
- };
3725
3354
  return customFetch(getAcceptInvitationUrl(), {
3726
3355
  ...options,
3727
3356
  method: "POST",
3728
- headers: {
3729
- "Content-Type": "application/json",
3730
- ...getHeaders(options?.headers)
3731
- },
3357
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3732
3358
  body: JSON.stringify(acceptInvitationBody)
3733
3359
  });
3734
3360
  };
@@ -3739,28 +3365,20 @@ const getRejectInvitationUrl = () => {
3739
3365
  * Declines a pending invitation for the signed-in user and returns the
3740
3366
  * updated invitation with status `rejected`.
3741
3367
  *
3742
- * Send the plaintext token from the invitation link fragment. Metadata is
3743
- * cleared. Every unknown or finished token answers the same opaque `404`.
3368
+ * Send the plaintext token from the invitation link fragment. The
3369
+ * invitation keeps its metadata for administrators, but this response
3370
+ * returns `metadata` as null. The inviter cannot decline their own invitation; an administrator
3371
+ * cancels it instead. Every unknown or finished token answers the same
3372
+ * opaque `404`.
3744
3373
  * Authenticate with a platform-project user session cookie (`sessionCookie`).
3745
- * Cookie requests follow that scheme's CSRF rules. The call is rate-limited.
3374
+ * Cookie requests follow that scheme's CSRF rules.
3746
3375
  * @summary Decline an invitation
3747
3376
  */
3748
3377
  const rejectInvitation = async (rejectInvitationBody, options) => {
3749
- const getHeaders = (h) => {
3750
- if (!h) return {};
3751
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3752
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3753
- const headers = {};
3754
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3755
- return headers;
3756
- };
3757
3378
  return customFetch(getRejectInvitationUrl(), {
3758
3379
  ...options,
3759
3380
  method: "POST",
3760
- headers: {
3761
- "Content-Type": "application/json",
3762
- ...getHeaders(options?.headers)
3763
- },
3381
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3764
3382
  body: JSON.stringify(rejectInvitationBody)
3765
3383
  });
3766
3384
  };
@@ -3796,10 +3414,9 @@ const getCancelInvitationUrl = (invitationId, params) => {
3796
3414
  return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`;
3797
3415
  };
3798
3416
  /**
3799
- * Deletes a pending invitation. Its link can no longer be redeemed. Only a
3800
- * `pending` invitation can be cancelled; a finished invitation answers the
3801
- * same opaque `404` as a miss. Expired invitations keep their row until a
3802
- * later cleanup job removes them.
3417
+ * Deletes a pending, expired or rejected invitation, with its metadata. A
3418
+ * pending invitation's link can no longer be redeemed. An accepted
3419
+ * invitation answers the same opaque `404` as a miss.
3803
3420
  *
3804
3421
  * Authenticate with a project secret (`oauth2`) or a console session cookie
3805
3422
  * (`sessionCookie`). Cancelling needs the same project `admin` check as
@@ -3947,21 +3564,10 @@ const getSetVariablesUrl = (params) => {
3947
3564
  * @summary Update a project's variables
3948
3565
  */
3949
3566
  const setVariables = async (setVariablesBody, params, options) => {
3950
- const getHeaders = (h) => {
3951
- if (!h) return {};
3952
- if (h instanceof Headers) return Object.fromEntries(h.entries());
3953
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
3954
- const headers = {};
3955
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
3956
- return headers;
3957
- };
3958
3567
  return customFetch(getSetVariablesUrl(params), {
3959
3568
  ...options,
3960
3569
  method: "PATCH",
3961
- headers: {
3962
- "Content-Type": "application/json",
3963
- ...getHeaders(options?.headers)
3964
- },
3570
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
3965
3571
  body: JSON.stringify(setVariablesBody)
3966
3572
  });
3967
3573
  };
@@ -4078,21 +3684,10 @@ const getCreateDeploymentUrl = (params) => {
4078
3684
  * @summary Create a deployment
4079
3685
  */
4080
3686
  const createDeployment = async (createDeploymentBody, params, options) => {
4081
- const getHeaders = (h) => {
4082
- if (!h) return {};
4083
- if (h instanceof Headers) return Object.fromEntries(h.entries());
4084
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
4085
- const headers = {};
4086
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
4087
- return headers;
4088
- };
4089
3687
  return customFetch(getCreateDeploymentUrl(params), {
4090
3688
  ...options,
4091
3689
  method: "POST",
4092
- headers: {
4093
- "Content-Type": "application/json",
4094
- ...getHeaders(options?.headers)
4095
- },
3690
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
4096
3691
  body: JSON.stringify(createDeploymentBody)
4097
3692
  });
4098
3693
  };
@@ -4222,21 +3817,10 @@ const getRollbackDeploymentUrl = (deploymentId, params) => {
4222
3817
  * @summary Roll back to a deployment
4223
3818
  */
4224
3819
  const rollbackDeployment = async (deploymentId, params, rollbackDeploymentBody, options) => {
4225
- const getHeaders = (h) => {
4226
- if (!h) return {};
4227
- if (h instanceof Headers) return Object.fromEntries(h.entries());
4228
- if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
4229
- const headers = {};
4230
- for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
4231
- return headers;
4232
- };
4233
3820
  return customFetch(getRollbackDeploymentUrl(deploymentId, params), {
4234
3821
  ...options,
4235
3822
  method: "POST",
4236
- headers: {
4237
- "Content-Type": "application/json",
4238
- ...getHeaders(options?.headers)
4239
- },
3823
+ headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
4240
3824
  body: JSON.stringify(rollbackDeploymentBody)
4241
3825
  });
4242
3826
  };
@@ -4396,7 +3980,7 @@ var Paging = class Paging {
4396
3980
  return list;
4397
3981
  }
4398
3982
  };
4399
- // ../api/dist/api-factory-BPmRCU7u.mjs
3983
+ // ../api/dist/api-factory-ConF3NN2.mjs
4400
3984
  /**
4401
3985
  * The client functions that page (ADR 027), by name: a page's items and its
4402
3986
  * cursor to the next one, each read off the page as the function's response
@@ -4503,6 +4087,18 @@ const paging = {
4503
4087
  options
4504
4088
  ]
4505
4089
  },
4090
+ listProjectMembers: {
4091
+ items: (page) => page.members,
4092
+ next: (page) => page.next_page_token,
4093
+ withToken: ([projectId, params, options], page_token) => [
4094
+ projectId,
4095
+ {
4096
+ ...params,
4097
+ page_token
4098
+ },
4099
+ options
4100
+ ]
4101
+ },
4506
4102
  listProjectPreviews: {
4507
4103
  items: (page) => page.previews,
4508
4104
  next: (page) => page.next_page_token,
@@ -10018,6 +9614,14 @@ function strictObject(shape, params) {
10018
9614
  ...normalizeParams(params)
10019
9615
  });
10020
9616
  }
9617
+ function looseObject(shape, params) {
9618
+ return new ZodObject({
9619
+ type: "object",
9620
+ shape,
9621
+ catchall: unknown(),
9622
+ ...normalizeParams(params)
9623
+ });
9624
+ }
10021
9625
  const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
10022
9626
  $ZodUnion.init(inst, def);
10023
9627
  ZodType.init(inst, def);
@@ -10948,7 +10552,7 @@ const getMyUserSchemaResponseSchemaOneMetaSchemaMax = 1024;
10948
10552
  const getMyUserSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
10949
10553
  object({
10950
10554
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
10951
- "schema": object({
10555
+ "schema": looseObject({
10952
10556
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
10953
10557
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
10954
10558
  "metaSchema": url().max(getMyUserSchemaResponseSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -10964,7 +10568,7 @@ object({
10964
10568
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
10965
10569
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
10966
10570
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
10967
- "properties": record(string(), object({
10571
+ "properties": record(string(), looseObject({
10968
10572
  "x-unique": union([_enum([
10969
10573
  "unspecified",
10970
10574
  "project",
@@ -11073,6 +10677,8 @@ const createFlowResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ ne
11073
10677
  const createFlowResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
11074
10678
  const createFlowResponseBrandingTypographyFontUrlMax = 2048;
11075
10679
  const createFlowResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
10680
+ const createFlowResponseBrandingTypographyScaleMin = .75;
10681
+ const createFlowResponseBrandingTypographyScaleMax = 1.25;
11076
10682
  object({
11077
10683
  "id": string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
11078
10684
  "session_id": string().describe("Underlying session ID. Stable across all stacked flows."),
@@ -11214,11 +10820,18 @@ object({
11214
10820
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
11215
10821
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
11216
10822
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
11217
- "typography": object({
11218
- "font_family": string().max(256).regex(createFlowResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
11219
- "font_url": string().max(createFlowResponseBrandingTypographyFontUrlMax).regex(createFlowResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
11220
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
11221
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
10823
+ "typography": (() => {
10824
+ const property = "font_url";
10825
+ const dependent = "font_family";
10826
+ return object({
10827
+ "font_family": string().max(256).regex(createFlowResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
10828
+ "font_url": string().max(createFlowResponseBrandingTypographyFontUrlMax).regex(createFlowResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
10829
+ "scale": number().min(createFlowResponseBrandingTypographyScaleMin).max(createFlowResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
10830
+ }).refine(((value) => !(property in value) || dependent in value), {
10831
+ "error": "font_family is required when font_url is present",
10832
+ "path": ["font_family"]
10833
+ });
10834
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
11222
10835
  "shape": object({
11223
10836
  "radius": union([_enum([
11224
10837
  "none",
@@ -11284,6 +10897,8 @@ const getFlowStepResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ n
11284
10897
  const getFlowStepResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
11285
10898
  const getFlowStepResponseBrandingTypographyFontUrlMax = 2048;
11286
10899
  const getFlowStepResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
10900
+ const getFlowStepResponseBrandingTypographyScaleMin = .75;
10901
+ const getFlowStepResponseBrandingTypographyScaleMax = 1.25;
11287
10902
  object({
11288
10903
  "id": string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
11289
10904
  "session_id": string().describe("Underlying session ID. Stable across all stacked flows."),
@@ -11425,11 +11040,18 @@ object({
11425
11040
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
11426
11041
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
11427
11042
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
11428
- "typography": object({
11429
- "font_family": string().max(256).regex(getFlowStepResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
11430
- "font_url": string().max(getFlowStepResponseBrandingTypographyFontUrlMax).regex(getFlowStepResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
11431
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
11432
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
11043
+ "typography": (() => {
11044
+ const property = "font_url";
11045
+ const dependent = "font_family";
11046
+ return object({
11047
+ "font_family": string().max(256).regex(getFlowStepResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
11048
+ "font_url": string().max(getFlowStepResponseBrandingTypographyFontUrlMax).regex(getFlowStepResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
11049
+ "scale": number().min(getFlowStepResponseBrandingTypographyScaleMin).max(getFlowStepResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
11050
+ }).refine(((value) => !(property in value) || dependent in value), {
11051
+ "error": "font_family is required when font_url is present",
11052
+ "path": ["font_family"]
11053
+ });
11054
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
11433
11055
  "shape": object({
11434
11056
  "radius": union([_enum([
11435
11057
  "none",
@@ -11509,6 +11131,8 @@ const submitFlowStepResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ *
11509
11131
  const submitFlowStepResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
11510
11132
  const submitFlowStepResponseBrandingTypographyFontUrlMax = 2048;
11511
11133
  const submitFlowStepResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
11134
+ const submitFlowStepResponseBrandingTypographyScaleMin = .75;
11135
+ const submitFlowStepResponseBrandingTypographyScaleMax = 1.25;
11512
11136
  object({
11513
11137
  "id": string().describe("Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs.\n"),
11514
11138
  "session_id": string().describe("Underlying session ID. Stable across all stacked flows."),
@@ -11650,11 +11274,18 @@ object({
11650
11274
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
11651
11275
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
11652
11276
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
11653
- "typography": object({
11654
- "font_family": string().max(256).regex(submitFlowStepResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
11655
- "font_url": string().max(submitFlowStepResponseBrandingTypographyFontUrlMax).regex(submitFlowStepResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
11656
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
11657
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
11277
+ "typography": (() => {
11278
+ const property = "font_url";
11279
+ const dependent = "font_family";
11280
+ return object({
11281
+ "font_family": string().max(256).regex(submitFlowStepResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
11282
+ "font_url": string().max(submitFlowStepResponseBrandingTypographyFontUrlMax).regex(submitFlowStepResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
11283
+ "scale": number().min(submitFlowStepResponseBrandingTypographyScaleMin).max(submitFlowStepResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
11284
+ }).refine(((value) => !(property in value) || dependent in value), {
11285
+ "error": "font_family is required when font_url is present",
11286
+ "path": ["font_family"]
11287
+ });
11288
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
11658
11289
  "shape": object({
11659
11290
  "radius": union([_enum([
11660
11291
  "none",
@@ -12314,12 +11945,12 @@ object({
12314
11945
  * whose team or user was deactivated, is not listed through it. Grants that
12315
11946
  * expired or carry a lower role are left out. A person whose only access is a
12316
11947
  * `viewer` or `editor` grant is not an admin and is not listed. Like the
12317
- * check, the list does not look at a person's user status beyond that, so a
12318
- * direct grant to a suspended person is listed.
11948
+ * check, a direct user grant requires an active user, so a suspended
11949
+ * person's direct grant is not listed.
12319
11950
  *
12320
- * A person whose access comes only through teams the caller is not a
12321
- * member of is left out. A team the caller is not in is named by `team_id`
12322
- * only. The grant to such a team still shows in the project's grants.
11951
+ * Every caller who passes the project read check sees every listed admin
11952
+ * and every team name on `sources`. Co-membership no longer filters the
11953
+ * roster.
12323
11954
  *
12324
11955
  * The list is ordered by `user_id` and paginated with `page_token`.
12325
11956
  * Authenticate with a project secret (`oauth2`), or with the session cookie
@@ -12359,6 +11990,86 @@ object({
12359
11990
  "next_page_token": union([string(), _null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
12360
11991
  }).describe("A page of the people who administer a project.");
12361
11992
  /**
11993
+ * Lists the people who have a role on a project, with each person's strongest
11994
+ * role and how they hold it.
11995
+ *
11996
+ * A person appears once, with their strongest `relation` (`viewer`, `editor`
11997
+ * or `admin`; a stronger role includes the weaker ones) and one entry in
11998
+ * `sources` per way they hold that role:
11999
+ *
12000
+ * - `owning_team`: an active member of the team that owns the project, the
12001
+ * team a claim attaches the project to. It holds `admin`. Removing a grant
12002
+ * does not remove this access. It ends only when the person leaves the
12003
+ * team or the project changes owner.
12004
+ * - `grant`: an unexpired grant on the project, which is a role given to the
12005
+ * person (`grant_id` only) or to a team they are an active member of
12006
+ * (`grant_id` and `team`). Revoking that grant removes this source.
12007
+ *
12008
+ * Grants of a weaker role than the person's strongest are not in `sources`;
12009
+ * they still show in the project's grants (`queryGrants`,
12010
+ * `POST /grants/query`).
12011
+ *
12012
+ * Pass `relation` to list only the people whose strongest role is at least
12013
+ * that strong: `relation=admin` lists the people who can administer the
12014
+ * project.
12015
+ *
12016
+ * The list follows the authorization check. A person who left a team, or
12017
+ * whose team or user was deactivated, is not listed through it. Expired
12018
+ * grants are left out. Like the check, a direct user grant requires an
12019
+ * active user, so a suspended person's direct grant is not listed.
12020
+ *
12021
+ * Every caller who passes the project read check sees every listed person
12022
+ * and every team name on `sources`. Co-membership no longer filters the
12023
+ * roster.
12024
+ *
12025
+ * The list is ordered by `user_id` and paginated with `page_token`.
12026
+ * Authenticate with a project secret (`oauth2`), or with the session cookie
12027
+ * (`sessionCookie`) of a signed-in person who can read the project.
12028
+ * @summary List the members of a project
12029
+ */
12030
+ const listProjectMembersPathProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
12031
+ object({ "project_id": string().regex(listProjectMembersPathProjectIdRegExp, "must be one or more letters, digits, _ or -") });
12032
+ strictObject({
12033
+ "limit": int().min(1).max(100).default(20).describe("Maximum number of items to return."),
12034
+ "page_token": string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n"),
12035
+ "relation": _enum([
12036
+ "viewer",
12037
+ "editor",
12038
+ "admin"
12039
+ ]).optional().describe("Only the people whose strongest role is at least this strong. Absent\nlists everyone with a role.\n")
12040
+ });
12041
+ const listProjectMembersResponseMembersItemUserUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
12042
+ object({
12043
+ "members": array(object({
12044
+ "user": object({
12045
+ "user_id": string().regex(listProjectMembersResponseMembersItemUserUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
12046
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
12047
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
12048
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
12049
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"),
12050
+ "relation": _enum([
12051
+ "viewer",
12052
+ "editor",
12053
+ "admin"
12054
+ ]).describe("The person's strongest role on the project. A stronger role includes\nthe weaker ones.\n"),
12055
+ "sources": array(union([object({
12056
+ "type": _enum(["owning_team"]),
12057
+ "team": object({
12058
+ "team_id": string().describe("The referenced team's ID (`team_<opaque>`). Always present."),
12059
+ "name": string().optional().describe("The team's name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n")
12060
+ }).describe("A resolved reference to a team. It carries the team's ID and name, so a grant\nlist is readable without embedding the full team. Reading it needs only\n`project.read`, because it holds just the ID and the name. A missing or\ndeleted team degrades to `team_id` only.\n")
12061
+ }).describe("Admin access as an active member of the team that owns the project."), object({
12062
+ "type": _enum(["grant"]),
12063
+ "grant_id": string().describe("The grant (`asgn_<opaque>`), as served by `GET /grants/{id}`."),
12064
+ "team": object({
12065
+ "team_id": string().describe("The referenced team's ID (`team_<opaque>`). Always present."),
12066
+ "name": string().optional().describe("The team's name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n")
12067
+ }).optional().describe("A resolved reference to a team. It carries the team's ID and name, so a grant\nlist is readable without embedding the full team. Reading it needs only\n`project.read`, because it holds just the ID and the name. A missing or\ndeleted team degrades to `team_id` only.\n")
12068
+ }).describe("A role through a grant on the project, to the person or to a team they are\nan active member of.\n")]).describe("One way a person holds their role on the project. Discriminate on `type`.\n\n- `owning_team`: the person is an active member of the owning team named by\n `team`, which holds `admin`. There is no `grant_id`: this access is not a\n grant, so the grants API cannot revoke it.\n- `grant`: a grant on the project, named by `grant_id`. `team` is present\n when the grant is to a team the person is an active member of. It is\n absent when the grant is to the person directly.\n")).min(1).describe("How the person holds `relation`: owning-team access first, then grants\nto teams, then grants to the person. Grants of a weaker role are left\nout; they still show in the project's grants.\n")
12069
+ }).describe("One person with a role on the project: their strongest role, and every way\nthey hold it.\n")),
12070
+ "next_page_token": union([string(), _null()]).optional().describe("Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n")
12071
+ }).describe("A page of the people who have a role on a project.");
12072
+ /**
12362
12073
  * Starts a claim, which attaches a project created before sign-in to a
12363
12074
  * team, and returns the `claim_url` to open in a browser.
12364
12075
  *
@@ -12584,7 +12295,7 @@ object({ "origin": string().max(removeProjectPreviewBodyOriginMax).regex(removeP
12584
12295
  const createSessionBodyProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
12585
12296
  object({
12586
12297
  "project_id": string().regex(createSessionBodyProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12587
- "user_agent": object({
12298
+ "user_agent": looseObject({
12588
12299
  "fingerprint": string().optional().describe("Client-supplied device fingerprint."),
12589
12300
  "ip": string().optional().describe("IP address of the client.")
12590
12301
  }).optional().describe("Optional user agent / device context to attach to the session.\nUseful for correlating telemetry and device signals with the eventual\nauthenticated session from the start.\n")
@@ -12636,7 +12347,7 @@ object({
12636
12347
  }).describe("An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n")).describe("Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n"),
12637
12348
  "assurance_levels": array(string()).optional().describe("All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n"),
12638
12349
  "metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
12639
- "user_agent": union([object({
12350
+ "user_agent": union([looseObject({
12640
12351
  "fingerprint": string().optional().describe("Client-supplied device fingerprint."),
12641
12352
  "ip": string().optional().describe("IP address of the client at session creation.")
12642
12353
  }), _null()]).optional().describe("User agent information captured at session creation."),
@@ -12734,7 +12445,7 @@ object({
12734
12445
  }).describe("An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n")).describe("Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n"),
12735
12446
  "assurance_levels": array(string()).optional().describe("All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n"),
12736
12447
  "metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
12737
- "user_agent": union([object({
12448
+ "user_agent": union([looseObject({
12738
12449
  "fingerprint": string().optional().describe("Client-supplied device fingerprint."),
12739
12450
  "ip": string().optional().describe("IP address of the client at session creation.")
12740
12451
  }), _null()]).optional().describe("User agent information captured at session creation."),
@@ -12831,7 +12542,7 @@ object({
12831
12542
  }).describe("An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n")).describe("Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n"),
12832
12543
  "assurance_levels": array(string()).optional().describe("All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n"),
12833
12544
  "metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
12834
- "user_agent": union([object({
12545
+ "user_agent": union([looseObject({
12835
12546
  "fingerprint": string().optional().describe("Client-supplied device fingerprint."),
12836
12547
  "ip": string().optional().describe("IP address of the client at session creation.")
12837
12548
  }), _null()]).optional().describe("User agent information captured at session creation."),
@@ -12898,7 +12609,7 @@ object({
12898
12609
  }).describe("An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n")).describe("Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n"),
12899
12610
  "assurance_levels": array(string()).optional().describe("All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n"),
12900
12611
  "metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
12901
- "user_agent": union([object({
12612
+ "user_agent": union([looseObject({
12902
12613
  "fingerprint": string().optional().describe("Client-supplied device fingerprint."),
12903
12614
  "ip": string().optional().describe("IP address of the client at session creation.")
12904
12615
  }), _null()]).optional().describe("User agent information captured at session creation."),
@@ -12980,7 +12691,7 @@ object({
12980
12691
  }).describe("An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n")).describe("Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n"),
12981
12692
  "assurance_levels": array(string()).optional().describe("All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n"),
12982
12693
  "metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
12983
- "user_agent": union([object({
12694
+ "user_agent": union([looseObject({
12984
12695
  "fingerprint": string().optional().describe("Client-supplied device fingerprint."),
12985
12696
  "ip": string().optional().describe("IP address of the client at session creation.")
12986
12697
  }), _null()]).optional().describe("User agent information captured at session creation."),
@@ -13044,7 +12755,7 @@ strictObject({
13044
12755
  });
13045
12756
  const publishSchemaBodyOneMetaSchemaMax = 1024;
13046
12757
  const publishSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
13047
- const PublishSchemaBody = union([object({
12758
+ const PublishSchemaBody = union([looseObject({
13048
12759
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13049
12760
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13050
12761
  "metaSchema": url().max(publishSchemaBodyOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13060,7 +12771,7 @@ const PublishSchemaBody = union([object({
13060
12771
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13061
12772
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13062
12773
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13063
- "properties": record(string(), object({
12774
+ "properties": record(string(), looseObject({
13064
12775
  "x-unique": union([_enum([
13065
12776
  "unspecified",
13066
12777
  "project",
@@ -13078,7 +12789,7 @@ const publishSchemaResponseSchemaOneMetaSchemaMax = 1024;
13078
12789
  const publishSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
13079
12790
  object({
13080
12791
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
13081
- "schema": object({
12792
+ "schema": looseObject({
13082
12793
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13083
12794
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13084
12795
  "metaSchema": url().max(publishSchemaResponseSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13094,7 +12805,7 @@ object({
13094
12805
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13095
12806
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13096
12807
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13097
- "properties": record(string(), object({
12808
+ "properties": record(string(), looseObject({
13098
12809
  "x-unique": union([_enum([
13099
12810
  "unspecified",
13100
12811
  "project",
@@ -13133,7 +12844,7 @@ const listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemRegExp
13133
12844
  object({
13134
12845
  "schemas": array(object({
13135
12846
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
13136
- "schema": object({
12847
+ "schema": looseObject({
13137
12848
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13138
12849
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13139
12850
  "metaSchema": url().max(listSchemasResponseSchemasItemSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13149,7 +12860,7 @@ object({
13149
12860
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13150
12861
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13151
12862
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13152
- "properties": record(string(), object({
12863
+ "properties": record(string(), looseObject({
13153
12864
  "x-unique": union([_enum([
13154
12865
  "unspecified",
13155
12866
  "project",
@@ -13178,7 +12889,7 @@ const getSchemaResponseSchemaOneMetaSchemaMax = 1024;
13178
12889
  const getSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
13179
12890
  object({
13180
12891
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
13181
- "schema": object({
12892
+ "schema": looseObject({
13182
12893
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13183
12894
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13184
12895
  "metaSchema": url().max(getSchemaResponseSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13194,7 +12905,7 @@ object({
13194
12905
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13195
12906
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13196
12907
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13197
- "properties": record(string(), object({
12908
+ "properties": record(string(), looseObject({
13198
12909
  "x-unique": union([_enum([
13199
12910
  "unspecified",
13200
12911
  "project",
@@ -13341,7 +13052,7 @@ object({
13341
13052
  }).describe("A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n"),
13342
13053
  "user_schema": union([object({
13343
13054
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
13344
- "schema": object({
13055
+ "schema": looseObject({
13345
13056
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13346
13057
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13347
13058
  "metaSchema": url().max(publishFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13357,7 +13068,7 @@ object({
13357
13068
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13358
13069
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13359
13070
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13360
- "properties": record(string(), object({
13071
+ "properties": record(string(), looseObject({
13361
13072
  "x-unique": union([_enum([
13362
13073
  "unspecified",
13363
13074
  "project",
@@ -13453,7 +13164,7 @@ object({
13453
13164
  }).describe("A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n"),
13454
13165
  "user_schema": union([object({
13455
13166
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
13456
- "schema": object({
13167
+ "schema": looseObject({
13457
13168
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13458
13169
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13459
13170
  "metaSchema": url().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13469,7 +13180,7 @@ object({
13469
13180
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13470
13181
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13471
13182
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13472
- "properties": record(string(), object({
13183
+ "properties": record(string(), looseObject({
13473
13184
  "x-unique": union([_enum([
13474
13185
  "unspecified",
13475
13186
  "project",
@@ -13549,7 +13260,7 @@ object({
13549
13260
  }).describe("A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n"),
13550
13261
  "user_schema": union([object({
13551
13262
  "id": string().describe("The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n"),
13552
- "schema": object({
13263
+ "schema": looseObject({
13553
13264
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
13554
13265
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
13555
13266
  "metaSchema": url().max(getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -13565,7 +13276,7 @@ object({
13565
13276
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
13566
13277
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
13567
13278
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
13568
- "properties": record(string(), object({
13279
+ "properties": record(string(), looseObject({
13569
13280
  "x-unique": union([_enum([
13570
13281
  "unspecified",
13571
13282
  "project",
@@ -13848,6 +13559,8 @@ const publishBrandingBodyThemeDarkPaletteErrorRegExp = /* @__PURE__ */ new RegEx
13848
13559
  const publishBrandingBodyTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
13849
13560
  const publishBrandingBodyTypographyFontUrlMax = 2048;
13850
13561
  const publishBrandingBodyTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
13562
+ const publishBrandingBodyTypographyScaleMin = .75;
13563
+ const publishBrandingBodyTypographyScaleMax = 1.25;
13851
13564
  object({
13852
13565
  "layout": _enum(["centered", "split"]).default(publishBrandingBodyLayoutDefault).describe("The layout preset the revision declares, `centered` or `split`. It is\nvalidated on publish and handed to the template as `branding.layout`.\nThe bundled default template does not read it, so changing it alone\nchanges nothing on screen. It is not an appearance control, and not a\ndesign catalog.\n\nTo switch designs, run `zitadel branding eject --design <name>` instead\nof editing this field. The ejectable designs (`centered`, `minimal`) ship\nas templates and both carry `centered`. `split` appears on revisions\npublished from the earlier split designs.\n"),
13853
13566
  "liquid_template": string().max(publishBrandingBodyLiquidTemplateMax).optional().describe("The LiquidJS template that renders a step. The login component\n(`<zitadel-login>`) renders it into its Shadow DOM, with the step's\nfields, actions and gates as context.\n"),
@@ -13894,11 +13607,18 @@ object({
13894
13607
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
13895
13608
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
13896
13609
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
13897
- "typography": object({
13898
- "font_family": string().max(256).regex(publishBrandingBodyTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
13899
- "font_url": string().max(publishBrandingBodyTypographyFontUrlMax).regex(publishBrandingBodyTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
13900
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
13901
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
13610
+ "typography": (() => {
13611
+ const property = "font_url";
13612
+ const dependent = "font_family";
13613
+ return object({
13614
+ "font_family": string().max(256).regex(publishBrandingBodyTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
13615
+ "font_url": string().max(publishBrandingBodyTypographyFontUrlMax).regex(publishBrandingBodyTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
13616
+ "scale": number().min(publishBrandingBodyTypographyScaleMin).max(publishBrandingBodyTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
13617
+ }).refine(((value) => !(property in value) || dependent in value), {
13618
+ "error": "font_family is required when font_url is present",
13619
+ "path": ["font_family"]
13620
+ });
13621
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
13902
13622
  "shape": object({
13903
13623
  "radius": union([_enum([
13904
13624
  "none",
@@ -13952,6 +13672,8 @@ const publishBrandingResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__
13952
13672
  const publishBrandingResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
13953
13673
  const publishBrandingResponseBrandingTypographyFontUrlMax = 2048;
13954
13674
  const publishBrandingResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
13675
+ const publishBrandingResponseBrandingTypographyScaleMin = .75;
13676
+ const publishBrandingResponseBrandingTypographyScaleMax = 1.25;
13955
13677
  object({
13956
13678
  "id": string().describe("The unique identifier of this branding revision."),
13957
13679
  "created_at": datetime({ "offset": true }).describe("When this revision was published."),
@@ -14001,11 +13723,18 @@ object({
14001
13723
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
14002
13724
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
14003
13725
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
14004
- "typography": object({
14005
- "font_family": string().max(256).regex(publishBrandingResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
14006
- "font_url": string().max(publishBrandingResponseBrandingTypographyFontUrlMax).regex(publishBrandingResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
14007
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
14008
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
13726
+ "typography": (() => {
13727
+ const property = "font_url";
13728
+ const dependent = "font_family";
13729
+ return object({
13730
+ "font_family": string().max(256).regex(publishBrandingResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
13731
+ "font_url": string().max(publishBrandingResponseBrandingTypographyFontUrlMax).regex(publishBrandingResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
13732
+ "scale": number().min(publishBrandingResponseBrandingTypographyScaleMin).max(publishBrandingResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
13733
+ }).refine(((value) => !(property in value) || dependent in value), {
13734
+ "error": "font_family is required when font_url is present",
13735
+ "path": ["font_family"]
13736
+ });
13737
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
14009
13738
  "shape": object({
14010
13739
  "radius": union([_enum([
14011
13740
  "none",
@@ -14085,6 +13814,8 @@ const getBrandingResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ n
14085
13814
  const getBrandingResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
14086
13815
  const getBrandingResponseBrandingTypographyFontUrlMax = 2048;
14087
13816
  const getBrandingResponseBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
13817
+ const getBrandingResponseBrandingTypographyScaleMin = .75;
13818
+ const getBrandingResponseBrandingTypographyScaleMax = 1.25;
14088
13819
  object({
14089
13820
  "id": string().describe("The unique identifier of this branding revision."),
14090
13821
  "created_at": datetime({ "offset": true }).describe("When this revision was published."),
@@ -14134,11 +13865,18 @@ object({
14134
13865
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
14135
13866
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
14136
13867
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
14137
- "typography": object({
14138
- "font_family": string().max(256).regex(getBrandingResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
14139
- "font_url": string().max(getBrandingResponseBrandingTypographyFontUrlMax).regex(getBrandingResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
14140
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
14141
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
13868
+ "typography": (() => {
13869
+ const property = "font_url";
13870
+ const dependent = "font_family";
13871
+ return object({
13872
+ "font_family": string().max(256).regex(getBrandingResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
13873
+ "font_url": string().max(getBrandingResponseBrandingTypographyFontUrlMax).regex(getBrandingResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
13874
+ "scale": number().min(getBrandingResponseBrandingTypographyScaleMin).max(getBrandingResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
13875
+ }).refine(((value) => !(property in value) || dependent in value), {
13876
+ "error": "font_family is required when font_url is present",
13877
+ "path": ["font_family"]
13878
+ });
13879
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
14142
13880
  "shape": object({
14143
13881
  "radius": union([_enum([
14144
13882
  "none",
@@ -14160,7 +13898,7 @@ object({ "oauth_settings_id": string().describe("The OAuth settings revision ID:
14160
13898
  object({
14161
13899
  "id": string().describe("The unique identifier of this OAuth settings revision."),
14162
13900
  "created_at": datetime({ "offset": true }).describe("When this revision was published."),
14163
- "oauth": object({ "enabled": boolean().describe("Whether the project's OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n") }).describe("The OAuth settings of a project: whether the project's OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns. Locally it is the descriptor in `.zitadel/` that `zitadel deploy`\npublishes with the rest of the bundle.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n")
13901
+ "oauth": object({ "enabled": boolean().describe("Whether the project's OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n") }).describe("The OAuth settings of a project: whether the project's OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n")
14164
13902
  }).describe("A stored OAuth settings revision. `oauth` echoes the canonical stored\nsettings, so a client such as the CLI can reconcile local files with the\nserver's stored state.\n");
14165
13903
  /**
14166
13904
  * Creates or revises an identity provider, an external sign-in such as
@@ -15157,9 +14895,11 @@ const buildReleaseBodyBundleBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ *
15157
14895
  const buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
15158
14896
  const buildReleaseBodyBundleBrandingTypographyFontUrlMax = 2048;
15159
14897
  const buildReleaseBodyBundleBrandingTypographyFontUrlRegExp = /* @__PURE__ */ new RegExp("^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$");
14898
+ const buildReleaseBodyBundleBrandingTypographyScaleMin = .75;
14899
+ const buildReleaseBodyBundleBrandingTypographyScaleMax = 1.25;
15160
14900
  object({
15161
14901
  "bundle": object({
15162
- "schemas": array(union([object({
14902
+ "schemas": array(union([looseObject({
15163
14903
  "objectType": string().max(256).describe("The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n"),
15164
14904
  "kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
15165
14905
  "metaSchema": url().max(buildReleaseBodyBundleSchemasItemOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
@@ -15175,7 +14915,7 @@ object({
15175
14915
  }).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
15176
14916
  "x-identifier": string().min(1).optional().describe("Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n"),
15177
14917
  "x-display": array(string().min(1)).min(1).optional().describe("Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"),
15178
- "properties": record(string(), object({
14918
+ "properties": record(string(), looseObject({
15179
14919
  "x-unique": union([_enum([
15180
14920
  "unspecified",
15181
14921
  "project",
@@ -15314,11 +15054,18 @@ object({
15314
15054
  }).optional().describe("Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n")
15315
15055
  }).optional().describe("One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n")
15316
15056
  }).optional().describe("The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n"),
15317
- "typography": object({
15318
- "font_family": string().max(256).regex(buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
15319
- "font_url": string().max(buildReleaseBodyBundleBrandingTypographyFontUrlMax).regex(buildReleaseBodyBundleBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
15320
- "scale": number().min(.75).max(1.25).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
15321
- }).optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
15057
+ "typography": (() => {
15058
+ const property = "font_url";
15059
+ const dependent = "font_family";
15060
+ return object({
15061
+ "font_family": string().max(256).regex(buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe("CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n"),
15062
+ "font_url": string().max(buildReleaseBodyBundleBrandingTypographyFontUrlMax).regex(buildReleaseBodyBundleBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe("Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n"),
15063
+ "scale": number().min(buildReleaseBodyBundleBrandingTypographyScaleMin).max(buildReleaseBodyBundleBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
15064
+ }).refine(((value) => !(property in value) || dependent in value), {
15065
+ "error": "font_family is required when font_url is present",
15066
+ "path": ["font_family"]
15067
+ });
15068
+ })().optional().describe("The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n"),
15322
15069
  "shape": object({
15323
15070
  "radius": union([_enum([
15324
15071
  "none",
@@ -15335,7 +15082,7 @@ object({
15335
15082
  "logo_scale": number().min(.5).max(2).optional().describe("Multiplier on the logo's maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n")
15336
15083
  }).optional().describe("Corner rounding, spacing and logo size. Shared across theme sides.\n")
15337
15084
  }).optional().describe("The branding of the login: logo, theme colors, typography, shape and\ntemplate. It has one shape in two places: the request body of\n`publishBranding` (`POST /branding`), which publishes it as a new immutable\nrevision, and a read-only copy on flow responses, which carries the\nrevision the request's release pins. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel deploy` publishes.\n\nEvery field is optional. An omitted key uses Zitadel's default, so a\nrevision carrying one color is as valid as one carrying the whole object.\n"),
15338
- "oauth": object({ "enabled": boolean().describe("Whether the project's OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n") }).optional().describe("The OAuth settings of a project: whether the project's OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns. Locally it is the descriptor in `.zitadel/` that `zitadel deploy`\npublishes with the rest of the bundle.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n")
15085
+ "oauth": object({ "enabled": boolean().describe("Whether the project's OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n") }).optional().describe("The OAuth settings of a project: whether the project's OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n")
15339
15086
  }).describe("The resources of a project's `.zitadel/` directory as authored on disk,\ngrouped by kind.\n\nResources reference each other by handle. A flow definition's\n`user_schema` names a schema by its `objectType`. A flow step's\n`sso_providers`, like a schema's `x-auth-methods.sso.providers`, name\nidentity provider (IdP) connections by `slug`. A reference resolves to the\nresource with that handle in this bundle. Failing that, it resolves to the\nproject's newest revision of it, which the release then pins as well. A\nhandle that neither holds refuses the release, naming the pointer and the\nhandle. A bundle that references only resources it carries builds the same\nrelease on any project.\n\nA handle names one resource of its kind in a bundle. The server refuses the\nrelease with `rel.invalid`, with an entry for each such resource, when the\nbundle holds:\n- two schemas with the same `objectType`;\n- two flow definitions with the same `name`;\n- two IdP connections with the same `slug`;\n- two policies for the same `operation`;\n- a schema without an `objectType`.\n\nEach kind is optional, and the arrays may be empty: a project that never\nejected its branding omits `branding`, and one that never turned on its\nOAuth authorization server omits `oauth`. `branding` and `oauth` are\nsingle objects, because a project has one of each. The bundle carries at\nleast one resource. The release it builds pins at most 50 resources, which\ncounts the resources the bundle carries plus those resolved from the\nproject. The server refuses anything outside that with `rel.invalid`.\nUnknown keys are refused.\n"),
15340
15087
  "message": string().max(1024).optional().describe("A short summary of what the release changes, analogous to a git commit\nmessage. Recorded on the release and shown when listing releases.\n"),
15341
15088
  "git_sha": string().max(64).optional().describe("The source commit the caller was operating from."),
@@ -15602,9 +15349,10 @@ object({
15602
15349
  * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
15603
15350
  * not returned. Requires `project.read`.
15604
15351
  *
15605
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
15606
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
15607
- * 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`.
15608
15356
  *
15609
15357
  * Authenticate with a project secret (`oauth2`) or a console session cookie
15610
15358
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -15766,15 +15514,15 @@ strictObject({ "project_id": string().regex(deleteGrantQueryProjectIdRegExp, "mu
15766
15514
  * Send `type` and the object named after it. `project_member` takes
15767
15515
  * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
15768
15516
  * and `role`, and answers `501` `not_implemented` until team invitations
15769
- * ship. Optional `metadata.name` labels who the link is for. Optional
15770
- * `replaces_invitation_id` replaces that invitation: the new row keeps the
15771
- * original's `journey_id`, and the original is deleted in the same
15772
- * 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.
15773
15521
  *
15774
15522
  * The `link` appears only in this response. Share it out of band; whoever
15775
15523
  * opens it and is signed in can redeem the role. It expires in 72 hours.
15776
15524
  * Refused for an unclaimed project, on a server without a platform project,
15777
- * and when the project's pending-invitation cap is reached.
15525
+ * and when the project already has 100 pending unexpired invitations.
15778
15526
  *
15779
15527
  * Authenticate with a project secret (`oauth2`) or a console session cookie
15780
15528
  * (`sessionCookie`). Creation needs the same project `admin` check as
@@ -15788,7 +15536,7 @@ const createInvitationBodyOneOneReplacesInvitationIdRegExp = /* @__PURE__ */ new
15788
15536
  const createInvitationBodyTwoOneReplacesInvitationIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15789
15537
  const createInvitationBodyTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15790
15538
  union([object({
15791
- "metadata": object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).optional().describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"),
15539
+ "metadata": object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).optional().describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"),
15792
15540
  "replaces_invitation_id": string().regex(createInvitationBodyOneOneReplacesInvitationIdRegExp, "must be one or more letters, digits, _ or -").optional().describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n")
15793
15541
  }).describe("Shared optional fields on every create-invitation request.").and(object({
15794
15542
  "type": _enum(["project_member"]),
@@ -15798,7 +15546,7 @@ union([object({
15798
15546
  "admin"
15799
15547
  ]).describe("The project role the accepter receives, as in `POST /grants`.") }).describe("Type-specific input for a `project_member` invitation.")
15800
15548
  })).describe("Creates a project-member invitation, or replaces an existing one."), object({
15801
- "metadata": object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).optional().describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"),
15549
+ "metadata": object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).optional().describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"),
15802
15550
  "replaces_invitation_id": string().regex(createInvitationBodyTwoOneReplacesInvitationIdRegExp, "must be one or more letters, digits, _ or -").optional().describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n")
15803
15551
  }).describe("Shared optional fields on every create-invitation request.").and(object({
15804
15552
  "type": _enum(["team_member"]),
@@ -15809,13 +15557,15 @@ union([object({
15809
15557
  })).describe("Creates a team-member invitation. Declared now; creating one answers `501`\n`not_implemented` until team invitations ship.\n")]).describe("Creates an invitation. Discriminate on `type`. Optional `metadata` labels who\nthe link is for. Optional `replaces_invitation_id` replaces an existing\ninvitation in the same create.\n");
15810
15558
  const createInvitationResponseOneOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15811
15559
  const createInvitationResponseOneOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15560
+ const createInvitationResponseOneOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
15812
15561
  const createInvitationResponseTwoOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15813
15562
  const createInvitationResponseTwoOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15563
+ const createInvitationResponseTwoOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
15814
15564
  const createInvitationResponseTwoOneTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15815
15565
  union([object({
15816
15566
  "id": string().regex(createInvitationResponseOneOneOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
15817
15567
  "project_id": string().regex(createInvitationResponseOneOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
15818
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15568
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
15819
15569
  "status": _enum([
15820
15570
  "pending",
15821
15571
  "accepted",
@@ -15832,8 +15582,14 @@ union([object({
15832
15582
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
15833
15583
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
15834
15584
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
15835
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
15836
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15585
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15586
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15587
+ "inviter": union([object({
15588
+ "user_id": string().regex(createInvitationResponseOneOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15589
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15590
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15591
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15592
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
15837
15593
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
15838
15594
  "type": _enum(["project_member"]),
15839
15595
  "project_member": object({ "relation": _enum([
@@ -15844,7 +15600,7 @@ union([object({
15844
15600
  })).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n").and(object({ "link": string().describe("The browser URL to share. It carries the redeem token in the fragment.\nOnly this create or replace response returns it.\n") })).describe("The created project-member invitation and its one-shot link. Only this\nresponse returns the link; later reads never include it.\n"), object({
15845
15601
  "id": string().regex(createInvitationResponseTwoOneOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
15846
15602
  "project_id": string().regex(createInvitationResponseTwoOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
15847
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15603
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
15848
15604
  "status": _enum([
15849
15605
  "pending",
15850
15606
  "accepted",
@@ -15861,8 +15617,14 @@ union([object({
15861
15617
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
15862
15618
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
15863
15619
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
15864
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
15865
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15620
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15621
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15622
+ "inviter": union([object({
15623
+ "user_id": string().regex(createInvitationResponseTwoOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15624
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15625
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15626
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15627
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
15866
15628
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
15867
15629
  "type": _enum(["team_member"]),
15868
15630
  "team_member": object({
@@ -15874,8 +15636,11 @@ union([object({
15874
15636
  * Lists a project's invitations, newest first, in any status, paginated with
15875
15637
  * `limit` and `page_token`.
15876
15638
  *
15877
- * Optional `status` and `type` filters narrow the page. `expired` is derived
15878
- * on read from `expires_at`. Authenticate with a project secret (`oauth2`) or
15639
+ * Optional `status` and `type` filters narrow the page. Repeat `status` to
15640
+ * match any of several statuses, for example
15641
+ * `status=pending&status=expired&status=rejected`. `expired` is derived on
15642
+ * read from `expires_at`. `expand=inviter` adds `inviter` to each
15643
+ * invitation. Authenticate with a project secret (`oauth2`) or
15879
15644
  * a console session cookie (`sessionCookie`). Listing needs the same project
15880
15645
  * `admin` check as `createGrant` (`POST /grants`).
15881
15646
  * @summary List invitations
@@ -15885,24 +15650,27 @@ strictObject({
15885
15650
  "project_id": string().regex(listInvitationsQueryProjectIdRegExp, "must be one or more letters, digits, _ or -").describe("The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints\nit as \"Project id\" in its summary and as `project_id` with `--json`, and\nwrites it to `.env.local` as `ZITADEL_PROJECT_ID`.\n"),
15886
15651
  "limit": int().min(1).max(100).default(20).describe("Maximum number of items to return."),
15887
15652
  "page_token": string().optional().describe("Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n"),
15888
- "status": _enum([
15653
+ "status": array(_enum([
15889
15654
  "pending",
15890
15655
  "accepted",
15891
15656
  "rejected",
15892
15657
  "expired"
15893
- ]).optional().describe("Only invitations with this status."),
15894
- "type": _enum(["project_member", "team_member"]).optional().describe("Only invitations of this type.")
15658
+ ]).describe("Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n")).optional().describe("Only invitations with this status. Repeat the parameter to match any\nof several statuses.\n"),
15659
+ "type": _enum(["project_member", "team_member"]).optional().describe("Only invitations of this type."),
15660
+ "expand": array(_enum(["inviter"]).describe("A related object to embed on each returned invitation.\n\n- `inviter`: the user who created the invitation, as `inviter`, a user\n reference. It is null when a project secret created the invitation. The\n property is omitted when not requested.\n\n It needs no permission beyond listing: like the user on a grant, the\n reference carries only `user_id`, `identifier` and `display`, never the\n user's record.\n")).optional().describe("Related objects to embed on each returned invitation.")
15895
15661
  });
15896
15662
  const listInvitationsResponseInvitationsItemOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15897
15663
  const listInvitationsResponseInvitationsItemOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15664
+ const listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
15898
15665
  const listInvitationsResponseInvitationsItemTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15899
15666
  const listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15667
+ const listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
15900
15668
  const listInvitationsResponseInvitationsItemTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15901
15669
  object({
15902
15670
  "invitations": array(union([object({
15903
15671
  "id": string().regex(listInvitationsResponseInvitationsItemOneOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
15904
15672
  "project_id": string().regex(listInvitationsResponseInvitationsItemOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
15905
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15673
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
15906
15674
  "status": _enum([
15907
15675
  "pending",
15908
15676
  "accepted",
@@ -15919,8 +15687,14 @@ object({
15919
15687
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
15920
15688
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
15921
15689
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
15922
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
15923
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15690
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15691
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15692
+ "inviter": union([object({
15693
+ "user_id": string().regex(listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15694
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15695
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15696
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15697
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
15924
15698
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
15925
15699
  "type": _enum(["project_member"]),
15926
15700
  "project_member": object({ "relation": _enum([
@@ -15931,7 +15705,7 @@ object({
15931
15705
  })).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
15932
15706
  "id": string().regex(listInvitationsResponseInvitationsItemTwoOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
15933
15707
  "project_id": string().regex(listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
15934
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15708
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
15935
15709
  "status": _enum([
15936
15710
  "pending",
15937
15711
  "accepted",
@@ -15948,8 +15722,14 @@ object({
15948
15722
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
15949
15723
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
15950
15724
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
15951
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
15952
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15725
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15726
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15727
+ "inviter": union([object({
15728
+ "user_id": string().regex(listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15729
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15730
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15731
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15732
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
15953
15733
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
15954
15734
  "type": _enum(["team_member"]),
15955
15735
  "team_member": object({
@@ -15961,7 +15741,9 @@ object({
15961
15741
  }).describe("A page of a project's invitations, newest first.");
15962
15742
  object({ "token": string().min(1).describe("The plaintext token from the invitation link fragment. It never appears in\na URL query. Every unknown or finished token gets the same `404`.\n") }).describe("The redeem token from an invitation link's fragment.");
15963
15743
  const lookupInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15744
+ const lookupInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
15964
15745
  const lookupInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15746
+ const lookupInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
15965
15747
  const lookupInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15966
15748
  union([object({
15967
15749
  "project_id": string().regex(lookupInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
@@ -15973,6 +15755,12 @@ union([object({
15973
15755
  "system",
15974
15756
  "agent"
15975
15757
  ]), _null()]).optional().describe("What kind of principal `created_by` names."),
15758
+ "inviter": union([object({
15759
+ "user_id": string().regex(lookupInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15760
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15761
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15762
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15763
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved so the accept page can\nname them: render `display`, falling back to `identifier`, then\n`user_id`. Null when a project secret created it.\n"),
15976
15764
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires."),
15977
15765
  "status": _enum([
15978
15766
  "pending",
@@ -15997,6 +15785,12 @@ union([object({
15997
15785
  "system",
15998
15786
  "agent"
15999
15787
  ]), _null()]).optional().describe("What kind of principal `created_by` names."),
15788
+ "inviter": union([object({
15789
+ "user_id": string().regex(lookupInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15790
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15791
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15792
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15793
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved so the accept page can\nname them: render `display`, falling back to `identifier`, then\n`user_id`. Null when a project secret created it.\n"),
16000
15794
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires."),
16001
15795
  "status": _enum([
16002
15796
  "pending",
@@ -16014,13 +15808,15 @@ union([object({
16014
15808
  object({ "token": string().min(1).describe("The plaintext token from the invitation link fragment. It never appears in\na URL query. Every unknown or finished token gets the same `404`.\n") }).describe("The redeem token from an invitation link's fragment.");
16015
15809
  const acceptInvitationResponseOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16016
15810
  const acceptInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15811
+ const acceptInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
16017
15812
  const acceptInvitationResponseTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16018
15813
  const acceptInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15814
+ const acceptInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
16019
15815
  const acceptInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16020
15816
  union([object({
16021
15817
  "id": string().regex(acceptInvitationResponseOneOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
16022
15818
  "project_id": string().regex(acceptInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16023
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15819
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
16024
15820
  "status": _enum([
16025
15821
  "pending",
16026
15822
  "accepted",
@@ -16037,8 +15833,14 @@ union([object({
16037
15833
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
16038
15834
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
16039
15835
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
16040
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
16041
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15836
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15837
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15838
+ "inviter": union([object({
15839
+ "user_id": string().regex(acceptInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15840
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15841
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15842
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15843
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
16042
15844
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
16043
15845
  "type": _enum(["project_member"]),
16044
15846
  "project_member": object({ "relation": _enum([
@@ -16049,7 +15851,7 @@ union([object({
16049
15851
  })).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
16050
15852
  "id": string().regex(acceptInvitationResponseTwoOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
16051
15853
  "project_id": string().regex(acceptInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16052
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15854
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
16053
15855
  "status": _enum([
16054
15856
  "pending",
16055
15857
  "accepted",
@@ -16066,8 +15868,14 @@ union([object({
16066
15868
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
16067
15869
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
16068
15870
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
16069
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
16070
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15871
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15872
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15873
+ "inviter": union([object({
15874
+ "user_id": string().regex(acceptInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15875
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15876
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15877
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15878
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
16071
15879
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
16072
15880
  "type": _enum(["team_member"]),
16073
15881
  "team_member": object({
@@ -16078,13 +15886,15 @@ union([object({
16078
15886
  object({ "token": string().min(1).describe("The plaintext token from the invitation link fragment. It never appears in\na URL query. Every unknown or finished token gets the same `404`.\n") }).describe("The redeem token from an invitation link's fragment.");
16079
15887
  const rejectInvitationResponseOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16080
15888
  const rejectInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15889
+ const rejectInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
16081
15890
  const rejectInvitationResponseTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16082
15891
  const rejectInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15892
+ const rejectInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
16083
15893
  const rejectInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16084
15894
  union([object({
16085
15895
  "id": string().regex(rejectInvitationResponseOneOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
16086
15896
  "project_id": string().regex(rejectInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16087
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15897
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
16088
15898
  "status": _enum([
16089
15899
  "pending",
16090
15900
  "accepted",
@@ -16101,8 +15911,14 @@ union([object({
16101
15911
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
16102
15912
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
16103
15913
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
16104
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
16105
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15914
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15915
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15916
+ "inviter": union([object({
15917
+ "user_id": string().regex(rejectInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15918
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15919
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15920
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15921
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
16106
15922
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
16107
15923
  "type": _enum(["project_member"]),
16108
15924
  "project_member": object({ "relation": _enum([
@@ -16113,7 +15929,7 @@ union([object({
16113
15929
  })).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
16114
15930
  "id": string().regex(rejectInvitationResponseTwoOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
16115
15931
  "project_id": string().regex(rejectInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16116
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15932
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
16117
15933
  "status": _enum([
16118
15934
  "pending",
16119
15935
  "accepted",
@@ -16130,8 +15946,14 @@ union([object({
16130
15946
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
16131
15947
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
16132
15948
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
16133
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
16134
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
15949
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
15950
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
15951
+ "inviter": union([object({
15952
+ "user_id": string().regex(rejectInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
15953
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
15954
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
15955
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
15956
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
16135
15957
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
16136
15958
  "type": _enum(["team_member"]),
16137
15959
  "team_member": object({
@@ -16154,13 +15976,15 @@ const getInvitationQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-
16154
15976
  strictObject({ "project_id": string().regex(getInvitationQueryProjectIdRegExp, "must be one or more letters, digits, _ or -").describe("The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints\nit as \"Project id\" in its summary and as `project_id` with `--json`, and\nwrites it to `.env.local` as `ZITADEL_PROJECT_ID`.\n") });
16155
15977
  const getInvitationResponseOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16156
15978
  const getInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15979
+ const getInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
16157
15980
  const getInvitationResponseTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16158
15981
  const getInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
15982
+ const getInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
16159
15983
  const getInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16160
15984
  union([object({
16161
15985
  "id": string().regex(getInvitationResponseOneOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
16162
15986
  "project_id": string().regex(getInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16163
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
15987
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
16164
15988
  "status": _enum([
16165
15989
  "pending",
16166
15990
  "accepted",
@@ -16177,8 +16001,14 @@ union([object({
16177
16001
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
16178
16002
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
16179
16003
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
16180
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
16181
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
16004
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
16005
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
16006
+ "inviter": union([object({
16007
+ "user_id": string().regex(getInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
16008
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
16009
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
16010
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
16011
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
16182
16012
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
16183
16013
  "type": _enum(["project_member"]),
16184
16014
  "project_member": object({ "relation": _enum([
@@ -16189,7 +16019,7 @@ union([object({
16189
16019
  })).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
16190
16020
  "id": string().regex(getInvitationResponseTwoOneIdRegExp, "must be one or more letters, digits, _ or -").describe("The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n"),
16191
16021
  "project_id": string().regex(getInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16192
- "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept or decline.\nCancel and replace delete the row.\n"),
16022
+ "metadata": union([object({ "name": string().min(1).max(200).describe("A display name for who the invitation is intended for.") }).describe("What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n"), _null()]).optional().describe("Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n"),
16193
16023
  "status": _enum([
16194
16024
  "pending",
16195
16025
  "accepted",
@@ -16206,8 +16036,14 @@ union([object({
16206
16036
  "created_at": datetime({ "offset": true }).describe("When the invitation was created."),
16207
16037
  "expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
16208
16038
  "journey_id": string().min(1).describe("Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n"),
16209
- "accepted_by": union([string(), _null()]).optional().describe("The user who redeemed the link. Null until accepted."),
16210
- "accepted_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted. Null until accepted.")
16039
+ "responded_by": union([string(), _null()]).optional().describe("The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n"),
16040
+ "responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
16041
+ "inviter": union([object({
16042
+ "user_id": string().regex(getInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
16043
+ "identifier": string().optional().describe("The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n"),
16044
+ "identifier_property": string().optional().describe("The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n"),
16045
+ "display": string().optional().describe("The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n")
16046
+ }).describe("A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n"), _null()]).optional().describe("The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n")
16211
16047
  }).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
16212
16048
  "type": _enum(["team_member"]),
16213
16049
  "team_member": object({
@@ -16216,10 +16052,9 @@ union([object({
16216
16052
  }).describe("Type-specific input for a `team_member` invitation.")
16217
16053
  })).describe("An invitation that adds the accepter to a team. Declared now so the contract\ndoes not change when team invitations ship; creating one answers `501`\n`not_implemented` until then.\n")]).describe("An invitation is a link, valid for 72 hours, that grants a role to whoever\nredeems it. Discriminate on `type`; the object named after the type holds\neverything specific to that type.\n");
16218
16054
  /**
16219
- * Deletes a pending invitation. Its link can no longer be redeemed. Only a
16220
- * `pending` invitation can be cancelled; a finished invitation answers the
16221
- * same opaque `404` as a miss. Expired invitations keep their row until a
16222
- * later cleanup job removes them.
16055
+ * Deletes a pending, expired or rejected invitation, with its metadata. A
16056
+ * pending invitation's link can no longer be redeemed. An accepted
16057
+ * invitation answers the same opaque `404` as a miss.
16223
16058
  *
16224
16059
  * Authenticate with a project secret (`oauth2`) or a console session cookie
16225
16060
  * (`sessionCookie`). Cancelling needs the same project `admin` check as
@@ -16318,11 +16153,11 @@ const listEventsResponseEventsItemTwothreeOneProjectIdRegExp = /* @__PURE__ */ n
16318
16153
  const listEventsResponseEventsItemTwofourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16319
16154
  const listEventsResponseEventsItemTwofiveOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16320
16155
  const listEventsResponseEventsItemTwosixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16321
- const listEventsResponseEventsItemTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16322
16156
  const listEventsResponseEventsItemTwosevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16157
+ const listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16323
16158
  const listEventsResponseEventsItemTwoeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16324
- const listEventsResponseEventsItemTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16325
16159
  const listEventsResponseEventsItemTwonineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16160
+ const listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16326
16161
  const listEventsResponseEventsItemThreezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16327
16162
  const listEventsResponseEventsItemThreeoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16328
16163
  const listEventsResponseEventsItemThreetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
@@ -16333,9 +16168,9 @@ const listEventsResponseEventsItemThreesixOneProjectIdRegExp = /* @__PURE__ */ n
16333
16168
  const listEventsResponseEventsItemThreesevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16334
16169
  const listEventsResponseEventsItemThreeeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16335
16170
  const listEventsResponseEventsItemThreenineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16336
- const listEventsResponseEventsItemThreenineTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
16337
16171
  const listEventsResponseEventsItemFourzeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16338
16172
  const listEventsResponseEventsItemFouroneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16173
+ const listEventsResponseEventsItemFouroneTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
16339
16174
  const listEventsResponseEventsItemFourtwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16340
16175
  const listEventsResponseEventsItemFourthreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16341
16176
  const listEventsResponseEventsItemFourfourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
@@ -16347,6 +16182,8 @@ const listEventsResponseEventsItemFournineOneProjectIdRegExp = /* @__PURE__ */ n
16347
16182
  const listEventsResponseEventsItemFivezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16348
16183
  const listEventsResponseEventsItemFiveoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16349
16184
  const listEventsResponseEventsItemFivetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16185
+ const listEventsResponseEventsItemFivethreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16186
+ const listEventsResponseEventsItemFivefourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
16350
16187
  object({
16351
16188
  "events": array(union([
16352
16189
  object({
@@ -16388,7 +16225,7 @@ object({
16388
16225
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16389
16226
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16390
16227
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16391
- "metadata": object({
16228
+ "metadata": looseObject({
16392
16229
  "authorization": object({
16393
16230
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16394
16231
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16447,7 +16284,7 @@ object({
16447
16284
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16448
16285
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16449
16286
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16450
- "metadata": object({
16287
+ "metadata": looseObject({
16451
16288
  "authorization": object({
16452
16289
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16453
16290
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16506,7 +16343,7 @@ object({
16506
16343
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16507
16344
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16508
16345
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16509
- "metadata": object({
16346
+ "metadata": looseObject({
16510
16347
  "authorization": object({
16511
16348
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16512
16349
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16560,7 +16397,7 @@ object({
16560
16397
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16561
16398
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16562
16399
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16563
- "metadata": object({
16400
+ "metadata": looseObject({
16564
16401
  "authorization": object({
16565
16402
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16566
16403
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16614,7 +16451,7 @@ object({
16614
16451
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16615
16452
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16616
16453
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16617
- "metadata": object({
16454
+ "metadata": looseObject({
16618
16455
  "authorization": object({
16619
16456
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16620
16457
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16672,7 +16509,7 @@ object({
16672
16509
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16673
16510
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16674
16511
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16675
- "metadata": object({
16512
+ "metadata": looseObject({
16676
16513
  "authorization": object({
16677
16514
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16678
16515
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16730,7 +16567,7 @@ object({
16730
16567
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16731
16568
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16732
16569
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16733
- "metadata": object({
16570
+ "metadata": looseObject({
16734
16571
  "authorization": object({
16735
16572
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16736
16573
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16787,7 +16624,7 @@ object({
16787
16624
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16788
16625
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16789
16626
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16790
- "metadata": object({
16627
+ "metadata": looseObject({
16791
16628
  "authorization": object({
16792
16629
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16793
16630
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16844,7 +16681,61 @@ object({
16844
16681
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16845
16682
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16846
16683
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16847
- "metadata": object({
16684
+ "metadata": looseObject({
16685
+ "authorization": object({
16686
+ "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16687
+ "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
16688
+ }).optional().describe("What authorized the request, when it was not a grant on the event's\nproject. Every event of such a request carries it.\n"),
16689
+ "client": object({
16690
+ "ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
16691
+ "user_agent": string().optional().describe("The observed `User-Agent` header."),
16692
+ "origin": string().optional().describe("The `Origin` header, when present.")
16693
+ }).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
16694
+ }).optional().describe("Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n")
16695
+ }).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
16696
+ "event_type": literal("auth.request.created"),
16697
+ "payload": object({ "client_id": string() }).describe("Payload for `auth.request.created` events.")
16698
+ })).describe("An event of type auth.request.created, with the shared event fields and its own payload.\n"),
16699
+ object({
16700
+ "id": string().describe("The event ID, in the form `evt_<opaque>`."),
16701
+ "project_id": string().regex(listEventsResponseEventsItemOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16702
+ "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
16703
+ "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
16704
+ "category": _enum([
16705
+ "request",
16706
+ "auth",
16707
+ "session",
16708
+ "admin",
16709
+ "entity",
16710
+ "signal"
16711
+ ]).describe("The category of the event."),
16712
+ "occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
16713
+ "created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
16714
+ "actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
16715
+ "actor_type": union([_enum([
16716
+ "human",
16717
+ "service",
16718
+ "system",
16719
+ "agent"
16720
+ ]), _null()]).optional().describe("The kind of actor that triggered the event."),
16721
+ "entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
16722
+ "entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
16723
+ "user_id": union([string(), _null()]).optional().describe("The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n"),
16724
+ "client_id": string().describe("The application or agent that produced the event."),
16725
+ "token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
16726
+ "delegation_type": _enum([
16727
+ "direct",
16728
+ "delegated",
16729
+ "pat_shared",
16730
+ "exchanged"
16731
+ ]).optional().describe("The kind of delegation. Absent when unset."),
16732
+ "delegation_id": string().optional(),
16733
+ "grantor": string().optional(),
16734
+ "fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
16735
+ "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16736
+ "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16737
+ "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16738
+ "metadata": looseObject({
16848
16739
  "authorization": object({
16849
16740
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16850
16741
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16865,7 +16756,7 @@ object({
16865
16756
  })).describe("An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n"),
16866
16757
  object({
16867
16758
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
16868
- "project_id": string().regex(listEventsResponseEventsItemOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16759
+ "project_id": string().regex(listEventsResponseEventsItemOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16869
16760
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
16870
16761
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
16871
16762
  "category": _enum([
@@ -16902,7 +16793,7 @@ object({
16902
16793
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16903
16794
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16904
16795
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16905
- "metadata": object({
16796
+ "metadata": looseObject({
16906
16797
  "authorization": object({
16907
16798
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16908
16799
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16923,7 +16814,7 @@ object({
16923
16814
  })).describe("An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n"),
16924
16815
  object({
16925
16816
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
16926
- "project_id": string().regex(listEventsResponseEventsItemOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16817
+ "project_id": string().regex(listEventsResponseEventsItemOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16927
16818
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
16928
16819
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
16929
16820
  "category": _enum([
@@ -16960,7 +16851,7 @@ object({
16960
16851
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
16961
16852
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
16962
16853
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
16963
- "metadata": object({
16854
+ "metadata": looseObject({
16964
16855
  "authorization": object({
16965
16856
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
16966
16857
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -16981,7 +16872,7 @@ object({
16981
16872
  })).describe("An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n"),
16982
16873
  object({
16983
16874
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
16984
- "project_id": string().regex(listEventsResponseEventsItemOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16875
+ "project_id": string().regex(listEventsResponseEventsItemOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16985
16876
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
16986
16877
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
16987
16878
  "category": _enum([
@@ -17018,7 +16909,7 @@ object({
17018
16909
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17019
16910
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17020
16911
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17021
- "metadata": object({
16912
+ "metadata": looseObject({
17022
16913
  "authorization": object({
17023
16914
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17024
16915
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17035,7 +16926,7 @@ object({
17035
16926
  })).describe("An event of type auth.token.issued, with the shared event fields and its own payload.\n"),
17036
16927
  object({
17037
16928
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17038
- "project_id": string().regex(listEventsResponseEventsItemOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16929
+ "project_id": string().regex(listEventsResponseEventsItemOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17039
16930
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17040
16931
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17041
16932
  "category": _enum([
@@ -17072,7 +16963,7 @@ object({
17072
16963
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17073
16964
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17074
16965
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17075
- "metadata": object({
16966
+ "metadata": looseObject({
17076
16967
  "authorization": object({
17077
16968
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17078
16969
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17089,7 +16980,7 @@ object({
17089
16980
  })).describe("An event of type auth.token.revoked, with the shared event fields and its own payload.\n"),
17090
16981
  object({
17091
16982
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17092
- "project_id": string().regex(listEventsResponseEventsItemOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
16983
+ "project_id": string().regex(listEventsResponseEventsItemOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17093
16984
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17094
16985
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17095
16986
  "category": _enum([
@@ -17126,7 +17017,7 @@ object({
17126
17017
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17127
17018
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17128
17019
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17129
- "metadata": object({
17020
+ "metadata": looseObject({
17130
17021
  "authorization": object({
17131
17022
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17132
17023
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17147,7 +17038,7 @@ object({
17147
17038
  })).describe("An event of type authz.granted, with the shared event fields and its own payload.\n"),
17148
17039
  object({
17149
17040
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17150
- "project_id": string().regex(listEventsResponseEventsItemOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17041
+ "project_id": string().regex(listEventsResponseEventsItemOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17151
17042
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17152
17043
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17153
17044
  "category": _enum([
@@ -17184,7 +17075,7 @@ object({
17184
17075
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17185
17076
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17186
17077
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17187
- "metadata": object({
17078
+ "metadata": looseObject({
17188
17079
  "authorization": object({
17189
17080
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17190
17081
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17205,7 +17096,7 @@ object({
17205
17096
  })).describe("An event of type authz.revoked, with the shared event fields and its own payload.\n"),
17206
17097
  object({
17207
17098
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17208
- "project_id": string().regex(listEventsResponseEventsItemOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17099
+ "project_id": string().regex(listEventsResponseEventsItemOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17209
17100
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17210
17101
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17211
17102
  "category": _enum([
@@ -17242,7 +17133,7 @@ object({
17242
17133
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17243
17134
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17244
17135
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17245
- "metadata": object({
17136
+ "metadata": looseObject({
17246
17137
  "authorization": object({
17247
17138
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17248
17139
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17264,7 +17155,7 @@ object({
17264
17155
  })).describe("An event of type branding.created, with the shared event fields and its own payload.\n"),
17265
17156
  object({
17266
17157
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17267
- "project_id": string().regex(listEventsResponseEventsItemOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17158
+ "project_id": string().regex(listEventsResponseEventsItemOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17268
17159
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17269
17160
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17270
17161
  "category": _enum([
@@ -17301,7 +17192,7 @@ object({
17301
17192
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17302
17193
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17303
17194
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17304
- "metadata": object({
17195
+ "metadata": looseObject({
17305
17196
  "authorization": object({
17306
17197
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17307
17198
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17324,7 +17215,7 @@ object({
17324
17215
  })).describe("An event of type deployment.created, with the shared event fields and its own payload.\n"),
17325
17216
  object({
17326
17217
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17327
- "project_id": string().regex(listEventsResponseEventsItemOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17218
+ "project_id": string().regex(listEventsResponseEventsItemOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17328
17219
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17329
17220
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17330
17221
  "category": _enum([
@@ -17361,7 +17252,7 @@ object({
17361
17252
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17362
17253
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17363
17254
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17364
- "metadata": object({
17255
+ "metadata": looseObject({
17365
17256
  "authorization": object({
17366
17257
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17367
17258
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17378,7 +17269,7 @@ object({
17378
17269
  })).describe("An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n"),
17379
17270
  object({
17380
17271
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17381
- "project_id": string().regex(listEventsResponseEventsItemOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17272
+ "project_id": string().regex(listEventsResponseEventsItemTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17382
17273
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17383
17274
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17384
17275
  "category": _enum([
@@ -17415,7 +17306,7 @@ object({
17415
17306
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17416
17307
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17417
17308
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17418
- "metadata": object({
17309
+ "metadata": looseObject({
17419
17310
  "authorization": object({
17420
17311
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17421
17312
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17432,7 +17323,7 @@ object({
17432
17323
  })).describe("An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n"),
17433
17324
  object({
17434
17325
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17435
- "project_id": string().regex(listEventsResponseEventsItemTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17326
+ "project_id": string().regex(listEventsResponseEventsItemTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17436
17327
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17437
17328
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17438
17329
  "category": _enum([
@@ -17469,7 +17360,7 @@ object({
17469
17360
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17470
17361
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17471
17362
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17472
- "metadata": object({
17363
+ "metadata": looseObject({
17473
17364
  "authorization": object({
17474
17365
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17475
17366
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17494,7 +17385,7 @@ object({
17494
17385
  })).describe("An event of type flowdef.created, with the shared event fields and its own payload.\n"),
17495
17386
  object({
17496
17387
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17497
- "project_id": string().regex(listEventsResponseEventsItemTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17388
+ "project_id": string().regex(listEventsResponseEventsItemTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17498
17389
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17499
17390
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17500
17391
  "category": _enum([
@@ -17531,7 +17422,7 @@ object({
17531
17422
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17532
17423
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17533
17424
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17534
- "metadata": object({
17425
+ "metadata": looseObject({
17535
17426
  "authorization": object({
17536
17427
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17537
17428
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17548,7 +17439,7 @@ object({
17548
17439
  })).describe("An event of type flowdef.deleted, with the shared event fields and its own payload.\n"),
17549
17440
  object({
17550
17441
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17551
- "project_id": string().regex(listEventsResponseEventsItemTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17442
+ "project_id": string().regex(listEventsResponseEventsItemTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17552
17443
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17553
17444
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17554
17445
  "category": _enum([
@@ -17585,7 +17476,7 @@ object({
17585
17476
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17586
17477
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17587
17478
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17588
- "metadata": object({
17479
+ "metadata": looseObject({
17589
17480
  "authorization": object({
17590
17481
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17591
17482
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17610,7 +17501,7 @@ object({
17610
17501
  })).describe("An event of type flowdef.updated, with the shared event fields and its own payload.\n"),
17611
17502
  object({
17612
17503
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17613
- "project_id": string().regex(listEventsResponseEventsItemTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17504
+ "project_id": string().regex(listEventsResponseEventsItemTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17614
17505
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17615
17506
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17616
17507
  "category": _enum([
@@ -17647,7 +17538,7 @@ object({
17647
17538
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17648
17539
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17649
17540
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17650
- "metadata": object({
17541
+ "metadata": looseObject({
17651
17542
  "authorization": object({
17652
17543
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17653
17544
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17670,7 +17561,7 @@ object({
17670
17561
  })).describe("An event of type idp.created, with the shared event fields and its own payload.\n"),
17671
17562
  object({
17672
17563
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17673
- "project_id": string().regex(listEventsResponseEventsItemTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17564
+ "project_id": string().regex(listEventsResponseEventsItemTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17674
17565
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17675
17566
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17676
17567
  "category": _enum([
@@ -17707,7 +17598,7 @@ object({
17707
17598
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17708
17599
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17709
17600
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17710
- "metadata": object({
17601
+ "metadata": looseObject({
17711
17602
  "authorization": object({
17712
17603
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17713
17604
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17727,7 +17618,7 @@ object({
17727
17618
  })).describe("An event of type idp.identity_link.created, with the shared event fields and its own payload.\n"),
17728
17619
  object({
17729
17620
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17730
- "project_id": string().regex(listEventsResponseEventsItemTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17621
+ "project_id": string().regex(listEventsResponseEventsItemTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17731
17622
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17732
17623
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17733
17624
  "category": _enum([
@@ -17764,7 +17655,7 @@ object({
17764
17655
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17765
17656
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17766
17657
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17767
- "metadata": object({
17658
+ "metadata": looseObject({
17768
17659
  "authorization": object({
17769
17660
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17770
17661
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17787,7 +17678,7 @@ object({
17787
17678
  })).describe("An event of type idp.updated, with the shared event fields and its own payload.\n"),
17788
17679
  object({
17789
17680
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17790
- "project_id": string().regex(listEventsResponseEventsItemTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17681
+ "project_id": string().regex(listEventsResponseEventsItemTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17791
17682
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17792
17683
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17793
17684
  "category": _enum([
@@ -17824,7 +17715,7 @@ object({
17824
17715
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17825
17716
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17826
17717
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17827
- "metadata": object({
17718
+ "metadata": looseObject({
17828
17719
  "authorization": object({
17829
17720
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17830
17721
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17853,14 +17744,14 @@ object({
17853
17744
  }).describe("Fields every `invitation.accepted` payload carries, whatever its `type`.\n").and(object({
17854
17745
  "type": _enum(["team_member"]),
17855
17746
  "team_member": object({
17856
- "team_id": string().regex(listEventsResponseEventsItemTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
17747
+ "team_id": string().regex(listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
17857
17748
  "role": _enum(["member"]).describe("The team role the accepter receives.")
17858
17749
  }).describe("Type-specific input for a `team_member` invitation.")
17859
17750
  })).describe("An `invitation.accepted` payload for a `team_member` invitation.\n")]).describe("Payload for `invitation.accepted`. The invitation ID is the event's\n`entity_id`, and `user_id` is the user who redeemed the link. Discriminate\non `type`; the object named after it says what the invitation granted. Grant\nevents the acceptance writes, such as `authz.granted`, carry this event's\n`request_id`. There are none when the user already holds an identical\nactive grant.\n")
17860
17751
  })).describe("An event of type invitation.accepted, with the shared event fields and its own payload.\n"),
17861
17752
  object({
17862
17753
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17863
- "project_id": string().regex(listEventsResponseEventsItemTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17754
+ "project_id": string().regex(listEventsResponseEventsItemTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17864
17755
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17865
17756
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17866
17757
  "category": _enum([
@@ -17897,7 +17788,7 @@ object({
17897
17788
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17898
17789
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17899
17790
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17900
- "metadata": object({
17791
+ "metadata": looseObject({
17901
17792
  "authorization": object({
17902
17793
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17903
17794
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17921,7 +17812,7 @@ object({
17921
17812
  })).describe("An event of type invitation.cancelled, with the shared event fields and its own payload.\n"),
17922
17813
  object({
17923
17814
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17924
- "project_id": string().regex(listEventsResponseEventsItemTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17815
+ "project_id": string().regex(listEventsResponseEventsItemTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17925
17816
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
17926
17817
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
17927
17818
  "category": _enum([
@@ -17958,7 +17849,7 @@ object({
17958
17849
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
17959
17850
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
17960
17851
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
17961
- "metadata": object({
17852
+ "metadata": looseObject({
17962
17853
  "authorization": object({
17963
17854
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17964
17855
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -17989,14 +17880,14 @@ object({
17989
17880
  }).describe("Fields every `invitation.created` payload carries, whatever its `type`.\n").and(object({
17990
17881
  "type": _enum(["team_member"]),
17991
17882
  "team_member": object({
17992
- "team_id": string().regex(listEventsResponseEventsItemTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
17883
+ "team_id": string().regex(listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
17993
17884
  "role": _enum(["member"]).describe("The team role the accepter receives.")
17994
17885
  }).describe("Type-specific input for a `team_member` invitation.")
17995
17886
  })).describe("An `invitation.created` payload for a `team_member` invitation.\n")]).describe("Payload for `invitation.created`. The invitation ID is the event's\n`entity_id`. Discriminate on `type`; the object named after it says what\nthe invitation's link grants. The metadata entered at creation and the\nlink's token never appear.\n")
17996
17887
  })).describe("An event of type invitation.created, with the shared event fields and its own payload.\n"),
17997
17888
  object({
17998
17889
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
17999
- "project_id": string().regex(listEventsResponseEventsItemTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17890
+ "project_id": string().regex(listEventsResponseEventsItemThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18000
17891
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18001
17892
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18002
17893
  "category": _enum([
@@ -18033,7 +17924,7 @@ object({
18033
17924
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18034
17925
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18035
17926
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18036
- "metadata": object({
17927
+ "metadata": looseObject({
18037
17928
  "authorization": object({
18038
17929
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18039
17930
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18053,7 +17944,7 @@ object({
18053
17944
  })).describe("An event of type invitation.rejected, with the shared event fields and its own payload.\n"),
18054
17945
  object({
18055
17946
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18056
- "project_id": string().regex(listEventsResponseEventsItemThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
17947
+ "project_id": string().regex(listEventsResponseEventsItemThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18057
17948
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18058
17949
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18059
17950
  "category": _enum([
@@ -18090,7 +17981,61 @@ object({
18090
17981
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18091
17982
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18092
17983
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18093
- "metadata": object({
17984
+ "metadata": looseObject({
17985
+ "authorization": object({
17986
+ "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
17987
+ "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
17988
+ }).optional().describe("What authorized the request, when it was not a grant on the event's\nproject. Every event of such a request carries it.\n"),
17989
+ "client": object({
17990
+ "ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
17991
+ "user_agent": string().optional().describe("The observed `User-Agent` header."),
17992
+ "origin": string().optional().describe("The `Origin` header, when present.")
17993
+ }).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
17994
+ }).optional().describe("Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n")
17995
+ }).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
17996
+ "event_type": literal("oauth_settings.created"),
17997
+ "payload": object({ "enabled": boolean().describe("Whether the project's OAuth authorization server answers.") }).describe("Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event's `entity_id`.\n")
17998
+ })).describe("An event of type oauth_settings.created, with the shared event fields and its own payload.\n"),
17999
+ object({
18000
+ "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18001
+ "project_id": string().regex(listEventsResponseEventsItemThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18002
+ "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18003
+ "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18004
+ "category": _enum([
18005
+ "request",
18006
+ "auth",
18007
+ "session",
18008
+ "admin",
18009
+ "entity",
18010
+ "signal"
18011
+ ]).describe("The category of the event."),
18012
+ "occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
18013
+ "created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
18014
+ "actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
18015
+ "actor_type": union([_enum([
18016
+ "human",
18017
+ "service",
18018
+ "system",
18019
+ "agent"
18020
+ ]), _null()]).optional().describe("The kind of actor that triggered the event."),
18021
+ "entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
18022
+ "entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
18023
+ "user_id": union([string(), _null()]).optional().describe("The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n"),
18024
+ "client_id": string().describe("The application or agent that produced the event."),
18025
+ "token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
18026
+ "delegation_type": _enum([
18027
+ "direct",
18028
+ "delegated",
18029
+ "pat_shared",
18030
+ "exchanged"
18031
+ ]).optional().describe("The kind of delegation. Absent when unset."),
18032
+ "delegation_id": string().optional(),
18033
+ "grantor": string().optional(),
18034
+ "fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
18035
+ "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18036
+ "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18037
+ "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18038
+ "metadata": looseObject({
18094
18039
  "authorization": object({
18095
18040
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18096
18041
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18110,7 +18055,7 @@ object({
18110
18055
  })).describe("An event of type origin.added, with the shared event fields and its own payload.\n"),
18111
18056
  object({
18112
18057
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18113
- "project_id": string().regex(listEventsResponseEventsItemThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18058
+ "project_id": string().regex(listEventsResponseEventsItemThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18114
18059
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18115
18060
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18116
18061
  "category": _enum([
@@ -18147,7 +18092,7 @@ object({
18147
18092
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18148
18093
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18149
18094
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18150
- "metadata": object({
18095
+ "metadata": looseObject({
18151
18096
  "authorization": object({
18152
18097
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18153
18098
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18167,7 +18112,7 @@ object({
18167
18112
  })).describe("An event of type origin.removed, with the shared event fields and its own payload.\n"),
18168
18113
  object({
18169
18114
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18170
- "project_id": string().regex(listEventsResponseEventsItemThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18115
+ "project_id": string().regex(listEventsResponseEventsItemThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18171
18116
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18172
18117
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18173
18118
  "category": _enum([
@@ -18204,7 +18149,7 @@ object({
18204
18149
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18205
18150
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18206
18151
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18207
- "metadata": object({
18152
+ "metadata": looseObject({
18208
18153
  "authorization": object({
18209
18154
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18210
18155
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18225,7 +18170,7 @@ object({
18225
18170
  })).describe("An event of type policy.created, with the shared event fields and its own payload.\n"),
18226
18171
  object({
18227
18172
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18228
- "project_id": string().regex(listEventsResponseEventsItemThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18173
+ "project_id": string().regex(listEventsResponseEventsItemThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18229
18174
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18230
18175
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18231
18176
  "category": _enum([
@@ -18262,7 +18207,7 @@ object({
18262
18207
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18263
18208
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18264
18209
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18265
- "metadata": object({
18210
+ "metadata": looseObject({
18266
18211
  "authorization": object({
18267
18212
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18268
18213
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18283,7 +18228,7 @@ object({
18283
18228
  })).describe("An event of type policy.updated, with the shared event fields and its own payload.\n"),
18284
18229
  object({
18285
18230
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18286
- "project_id": string().regex(listEventsResponseEventsItemThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18231
+ "project_id": string().regex(listEventsResponseEventsItemThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18287
18232
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18288
18233
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18289
18234
  "category": _enum([
@@ -18320,7 +18265,7 @@ object({
18320
18265
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18321
18266
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18322
18267
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18323
- "metadata": object({
18268
+ "metadata": looseObject({
18324
18269
  "authorization": object({
18325
18270
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18326
18271
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18337,7 +18282,7 @@ object({
18337
18282
  })).describe("An event of type preview.removed, with the shared event fields and its own payload.\n"),
18338
18283
  object({
18339
18284
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18340
- "project_id": string().regex(listEventsResponseEventsItemThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18285
+ "project_id": string().regex(listEventsResponseEventsItemThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18341
18286
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18342
18287
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18343
18288
  "category": _enum([
@@ -18374,7 +18319,7 @@ object({
18374
18319
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18375
18320
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18376
18321
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18377
- "metadata": object({
18322
+ "metadata": looseObject({
18378
18323
  "authorization": object({
18379
18324
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18380
18325
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18398,7 +18343,7 @@ object({
18398
18343
  })).describe("An event of type project.created, with the shared event fields and its own payload.\n"),
18399
18344
  object({
18400
18345
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18401
- "project_id": string().regex(listEventsResponseEventsItemThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18346
+ "project_id": string().regex(listEventsResponseEventsItemThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18402
18347
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18403
18348
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18404
18349
  "category": _enum([
@@ -18435,7 +18380,7 @@ object({
18435
18380
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18436
18381
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18437
18382
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18438
- "metadata": object({
18383
+ "metadata": looseObject({
18439
18384
  "authorization": object({
18440
18385
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18441
18386
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18452,7 +18397,7 @@ object({
18452
18397
  })).describe("An event of type project.deleted, with the shared event fields and its own payload.\n"),
18453
18398
  object({
18454
18399
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18455
- "project_id": string().regex(listEventsResponseEventsItemThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18400
+ "project_id": string().regex(listEventsResponseEventsItemThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18456
18401
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18457
18402
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18458
18403
  "category": _enum([
@@ -18489,7 +18434,7 @@ object({
18489
18434
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18490
18435
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18491
18436
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18492
- "metadata": object({
18437
+ "metadata": looseObject({
18493
18438
  "authorization": object({
18494
18439
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18495
18440
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18513,7 +18458,7 @@ object({
18513
18458
  })).describe("An event of type project.updated, with the shared event fields and its own payload.\n"),
18514
18459
  object({
18515
18460
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18516
- "project_id": string().regex(listEventsResponseEventsItemThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18461
+ "project_id": string().regex(listEventsResponseEventsItemFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18517
18462
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18518
18463
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18519
18464
  "category": _enum([
@@ -18550,7 +18495,7 @@ object({
18550
18495
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18551
18496
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18552
18497
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18553
- "metadata": object({
18498
+ "metadata": looseObject({
18554
18499
  "authorization": object({
18555
18500
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18556
18501
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18577,7 +18522,7 @@ object({
18577
18522
  })).describe("An event of type release.created, with the shared event fields and its own payload.\n"),
18578
18523
  object({
18579
18524
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18580
- "project_id": string().regex(listEventsResponseEventsItemThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18525
+ "project_id": string().regex(listEventsResponseEventsItemFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18581
18526
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18582
18527
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18583
18528
  "category": _enum([
@@ -18614,7 +18559,7 @@ object({
18614
18559
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18615
18560
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18616
18561
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18617
- "metadata": object({
18562
+ "metadata": looseObject({
18618
18563
  "authorization": object({
18619
18564
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18620
18565
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18627,11 +18572,11 @@ object({
18627
18572
  }).optional().describe("Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n")
18628
18573
  }).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
18629
18574
  "event_type": literal("release.revoked"),
18630
- "payload": object({ "content_hash": string().min(71).max(71).regex(listEventsResponseEventsItemThreenineTwoPayloadContentHashRegExp, "must be sha256: followed by 64 lowercase hex digits").describe("The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project's revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding`, `idp` or `oauth`, and `handle` set to the\n schema's `objectType`, the flow definition's `name`, `default` for\n branding and oauth, or the identity provider's `slug`.\n A `schema-url` entry's content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{\"version\": 1, \"resources\": [{\"kind\": …, \"handle\": …, \"content\": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n") }).describe("Payload for `release.revoked`. The release ID is the event's `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n")
18575
+ "payload": object({ "content_hash": string().min(71).max(71).regex(listEventsResponseEventsItemFouroneTwoPayloadContentHashRegExp, "must be sha256: followed by 64 lowercase hex digits").describe("The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project's revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding`, `idp` or `oauth`, and `handle` set to the\n schema's `objectType`, the flow definition's `name`, `default` for\n branding and oauth, or the identity provider's `slug`.\n A `schema-url` entry's content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{\"version\": 1, \"resources\": [{\"kind\": …, \"handle\": …, \"content\": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n") }).describe("Payload for `release.revoked`. The release ID is the event's `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n")
18631
18576
  })).describe("An event of type release.revoked, with the shared event fields and its own payload.\n"),
18632
18577
  object({
18633
18578
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18634
- "project_id": string().regex(listEventsResponseEventsItemFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18579
+ "project_id": string().regex(listEventsResponseEventsItemFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18635
18580
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18636
18581
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18637
18582
  "category": _enum([
@@ -18668,7 +18613,7 @@ object({
18668
18613
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18669
18614
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18670
18615
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18671
- "metadata": object({
18616
+ "metadata": looseObject({
18672
18617
  "authorization": object({
18673
18618
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18674
18619
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18699,7 +18644,7 @@ object({
18699
18644
  })).describe("An event of type request.api, with the shared event fields and its own payload.\n"),
18700
18645
  object({
18701
18646
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18702
- "project_id": string().regex(listEventsResponseEventsItemFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18647
+ "project_id": string().regex(listEventsResponseEventsItemFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18703
18648
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18704
18649
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18705
18650
  "category": _enum([
@@ -18736,7 +18681,7 @@ object({
18736
18681
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18737
18682
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18738
18683
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18739
- "metadata": object({
18684
+ "metadata": looseObject({
18740
18685
  "authorization": object({
18741
18686
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18742
18687
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18756,7 +18701,7 @@ object({
18756
18701
  })).describe("An event of type schema.created, with the shared event fields and its own payload.\n"),
18757
18702
  object({
18758
18703
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18759
- "project_id": string().regex(listEventsResponseEventsItemFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18704
+ "project_id": string().regex(listEventsResponseEventsItemFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18760
18705
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18761
18706
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18762
18707
  "category": _enum([
@@ -18793,7 +18738,7 @@ object({
18793
18738
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18794
18739
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18795
18740
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18796
- "metadata": object({
18741
+ "metadata": looseObject({
18797
18742
  "authorization": object({
18798
18743
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18799
18744
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18810,7 +18755,7 @@ object({
18810
18755
  })).describe("An event of type session.deleted, with the shared event fields and its own payload.\n"),
18811
18756
  object({
18812
18757
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18813
- "project_id": string().regex(listEventsResponseEventsItemFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18758
+ "project_id": string().regex(listEventsResponseEventsItemFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18814
18759
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18815
18760
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18816
18761
  "category": _enum([
@@ -18847,7 +18792,7 @@ object({
18847
18792
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18848
18793
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18849
18794
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18850
- "metadata": object({
18795
+ "metadata": looseObject({
18851
18796
  "authorization": object({
18852
18797
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18853
18798
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18864,7 +18809,7 @@ object({
18864
18809
  })).describe("An event of type session.established, with the shared event fields and its own payload.\n"),
18865
18810
  object({
18866
18811
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18867
- "project_id": string().regex(listEventsResponseEventsItemFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18812
+ "project_id": string().regex(listEventsResponseEventsItemFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18868
18813
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18869
18814
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18870
18815
  "category": _enum([
@@ -18901,7 +18846,7 @@ object({
18901
18846
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18902
18847
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18903
18848
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18904
- "metadata": object({
18849
+ "metadata": looseObject({
18905
18850
  "authorization": object({
18906
18851
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18907
18852
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18918,7 +18863,7 @@ object({
18918
18863
  })).describe("An event of type team.created, with the shared event fields and its own payload.\n"),
18919
18864
  object({
18920
18865
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18921
- "project_id": string().regex(listEventsResponseEventsItemFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18866
+ "project_id": string().regex(listEventsResponseEventsItemFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18922
18867
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18923
18868
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18924
18869
  "category": _enum([
@@ -18955,7 +18900,7 @@ object({
18955
18900
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
18956
18901
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
18957
18902
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
18958
- "metadata": object({
18903
+ "metadata": looseObject({
18959
18904
  "authorization": object({
18960
18905
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
18961
18906
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -18972,7 +18917,7 @@ object({
18972
18917
  })).describe("An event of type team.deactivated, with the shared event fields and its own payload.\n"),
18973
18918
  object({
18974
18919
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
18975
- "project_id": string().regex(listEventsResponseEventsItemFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18920
+ "project_id": string().regex(listEventsResponseEventsItemFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18976
18921
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
18977
18922
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
18978
18923
  "category": _enum([
@@ -19009,7 +18954,7 @@ object({
19009
18954
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19010
18955
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19011
18956
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19012
- "metadata": object({
18957
+ "metadata": looseObject({
19013
18958
  "authorization": object({
19014
18959
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19015
18960
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19026,7 +18971,7 @@ object({
19026
18971
  })).describe("An event of type team.updated, with the shared event fields and its own payload.\n"),
19027
18972
  object({
19028
18973
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19029
- "project_id": string().regex(listEventsResponseEventsItemFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
18974
+ "project_id": string().regex(listEventsResponseEventsItemFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19030
18975
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19031
18976
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19032
18977
  "category": _enum([
@@ -19063,7 +19008,7 @@ object({
19063
19008
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19064
19009
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19065
19010
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19066
- "metadata": object({
19011
+ "metadata": looseObject({
19067
19012
  "authorization": object({
19068
19013
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19069
19014
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19080,7 +19025,7 @@ object({
19080
19025
  })).describe("An event of type user.create.failed, with the shared event fields and its own payload.\n"),
19081
19026
  object({
19082
19027
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19083
- "project_id": string().regex(listEventsResponseEventsItemFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19028
+ "project_id": string().regex(listEventsResponseEventsItemFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19084
19029
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19085
19030
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19086
19031
  "category": _enum([
@@ -19117,7 +19062,7 @@ object({
19117
19062
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19118
19063
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19119
19064
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19120
- "metadata": object({
19065
+ "metadata": looseObject({
19121
19066
  "authorization": object({
19122
19067
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19123
19068
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19138,7 +19083,7 @@ object({
19138
19083
  })).describe("An event of type user.created, with the shared event fields and its own payload.\n"),
19139
19084
  object({
19140
19085
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19141
- "project_id": string().regex(listEventsResponseEventsItemFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19086
+ "project_id": string().regex(listEventsResponseEventsItemFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19142
19087
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19143
19088
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19144
19089
  "category": _enum([
@@ -19175,7 +19120,7 @@ object({
19175
19120
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19176
19121
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19177
19122
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19178
- "metadata": object({
19123
+ "metadata": looseObject({
19179
19124
  "authorization": object({
19180
19125
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19181
19126
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19192,7 +19137,7 @@ object({
19192
19137
  })).describe("An event of type user.deleted, with the shared event fields and its own payload.\n"),
19193
19138
  object({
19194
19139
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19195
- "project_id": string().regex(listEventsResponseEventsItemFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19140
+ "project_id": string().regex(listEventsResponseEventsItemFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19196
19141
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19197
19142
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19198
19143
  "category": _enum([
@@ -19229,7 +19174,7 @@ object({
19229
19174
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19230
19175
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19231
19176
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19232
- "metadata": object({
19177
+ "metadata": looseObject({
19233
19178
  "authorization": object({
19234
19179
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19235
19180
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19249,7 +19194,7 @@ object({
19249
19194
  })).describe("An event of type user.updated, with the shared event fields and its own payload.\n"),
19250
19195
  object({
19251
19196
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19252
- "project_id": string().regex(listEventsResponseEventsItemFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19197
+ "project_id": string().regex(listEventsResponseEventsItemFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19253
19198
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19254
19199
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19255
19200
  "category": _enum([
@@ -19286,7 +19231,7 @@ object({
19286
19231
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19287
19232
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19288
19233
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19289
- "metadata": object({
19234
+ "metadata": looseObject({
19290
19235
  "authorization": object({
19291
19236
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19292
19237
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19303,7 +19248,7 @@ object({
19303
19248
  })).describe("An event of type variable.removed, with the shared event fields and its own payload.\n"),
19304
19249
  object({
19305
19250
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19306
- "project_id": string().regex(listEventsResponseEventsItemFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19251
+ "project_id": string().regex(listEventsResponseEventsItemFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19307
19252
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19308
19253
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19309
19254
  "category": _enum([
@@ -19340,7 +19285,7 @@ object({
19340
19285
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19341
19286
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19342
19287
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19343
- "metadata": object({
19288
+ "metadata": looseObject({
19344
19289
  "authorization": object({
19345
19290
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19346
19291
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19390,11 +19335,11 @@ const getEventResponseTwothreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^
19390
19335
  const getEventResponseTwofourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19391
19336
  const getEventResponseTwofiveOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19392
19337
  const getEventResponseTwosixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19393
- const getEventResponseTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19394
19338
  const getEventResponseTwosevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19339
+ const getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19395
19340
  const getEventResponseTwoeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19396
- const getEventResponseTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19397
19341
  const getEventResponseTwonineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19342
+ const getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19398
19343
  const getEventResponseThreezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19399
19344
  const getEventResponseThreeoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19400
19345
  const getEventResponseThreetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
@@ -19405,9 +19350,9 @@ const getEventResponseThreesixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^
19405
19350
  const getEventResponseThreesevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19406
19351
  const getEventResponseThreeeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19407
19352
  const getEventResponseThreenineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19408
- const getEventResponseThreenineTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
19409
19353
  const getEventResponseFourzeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19410
19354
  const getEventResponseFouroneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19355
+ const getEventResponseFouroneTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
19411
19356
  const getEventResponseFourtwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19412
19357
  const getEventResponseFourthreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19413
19358
  const getEventResponseFourfourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
@@ -19419,6 +19364,8 @@ const getEventResponseFournineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^
19419
19364
  const getEventResponseFivezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19420
19365
  const getEventResponseFiveoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19421
19366
  const getEventResponseFivetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19367
+ const getEventResponseFivethreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19368
+ const getEventResponseFivefourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
19422
19369
  union([
19423
19370
  object({
19424
19371
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
@@ -19459,7 +19406,7 @@ union([
19459
19406
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19460
19407
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19461
19408
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19462
- "metadata": object({
19409
+ "metadata": looseObject({
19463
19410
  "authorization": object({
19464
19411
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19465
19412
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19518,7 +19465,7 @@ union([
19518
19465
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19519
19466
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19520
19467
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19521
- "metadata": object({
19468
+ "metadata": looseObject({
19522
19469
  "authorization": object({
19523
19470
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19524
19471
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19577,7 +19524,7 @@ union([
19577
19524
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19578
19525
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19579
19526
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19580
- "metadata": object({
19527
+ "metadata": looseObject({
19581
19528
  "authorization": object({
19582
19529
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19583
19530
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19631,7 +19578,7 @@ union([
19631
19578
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19632
19579
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19633
19580
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19634
- "metadata": object({
19581
+ "metadata": looseObject({
19635
19582
  "authorization": object({
19636
19583
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19637
19584
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19685,7 +19632,7 @@ union([
19685
19632
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19686
19633
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19687
19634
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19688
- "metadata": object({
19635
+ "metadata": looseObject({
19689
19636
  "authorization": object({
19690
19637
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19691
19638
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19743,7 +19690,7 @@ union([
19743
19690
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19744
19691
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19745
19692
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19746
- "metadata": object({
19693
+ "metadata": looseObject({
19747
19694
  "authorization": object({
19748
19695
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19749
19696
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19801,7 +19748,7 @@ union([
19801
19748
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19802
19749
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19803
19750
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19804
- "metadata": object({
19751
+ "metadata": looseObject({
19805
19752
  "authorization": object({
19806
19753
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19807
19754
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19858,7 +19805,7 @@ union([
19858
19805
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19859
19806
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19860
19807
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19861
- "metadata": object({
19808
+ "metadata": looseObject({
19862
19809
  "authorization": object({
19863
19810
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19864
19811
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19915,7 +19862,61 @@ union([
19915
19862
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19916
19863
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19917
19864
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19918
- "metadata": object({
19865
+ "metadata": looseObject({
19866
+ "authorization": object({
19867
+ "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19868
+ "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
19869
+ }).optional().describe("What authorized the request, when it was not a grant on the event's\nproject. Every event of such a request carries it.\n"),
19870
+ "client": object({
19871
+ "ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
19872
+ "user_agent": string().optional().describe("The observed `User-Agent` header."),
19873
+ "origin": string().optional().describe("The `Origin` header, when present.")
19874
+ }).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
19875
+ }).optional().describe("Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n")
19876
+ }).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
19877
+ "event_type": literal("auth.request.created"),
19878
+ "payload": object({ "client_id": string() }).describe("Payload for `auth.request.created` events.")
19879
+ })).describe("An event of type auth.request.created, with the shared event fields and its own payload.\n"),
19880
+ object({
19881
+ "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19882
+ "project_id": string().regex(getEventResponseOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19883
+ "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19884
+ "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19885
+ "category": _enum([
19886
+ "request",
19887
+ "auth",
19888
+ "session",
19889
+ "admin",
19890
+ "entity",
19891
+ "signal"
19892
+ ]).describe("The category of the event."),
19893
+ "occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
19894
+ "created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
19895
+ "actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
19896
+ "actor_type": union([_enum([
19897
+ "human",
19898
+ "service",
19899
+ "system",
19900
+ "agent"
19901
+ ]), _null()]).optional().describe("The kind of actor that triggered the event."),
19902
+ "entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
19903
+ "entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
19904
+ "user_id": union([string(), _null()]).optional().describe("The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n"),
19905
+ "client_id": string().describe("The application or agent that produced the event."),
19906
+ "token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
19907
+ "delegation_type": _enum([
19908
+ "direct",
19909
+ "delegated",
19910
+ "pat_shared",
19911
+ "exchanged"
19912
+ ]).optional().describe("The kind of delegation. Absent when unset."),
19913
+ "delegation_id": string().optional(),
19914
+ "grantor": string().optional(),
19915
+ "fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
19916
+ "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19917
+ "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19918
+ "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19919
+ "metadata": looseObject({
19919
19920
  "authorization": object({
19920
19921
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19921
19922
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19936,7 +19937,7 @@ union([
19936
19937
  })).describe("An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n"),
19937
19938
  object({
19938
19939
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19939
- "project_id": string().regex(getEventResponseOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19940
+ "project_id": string().regex(getEventResponseOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19940
19941
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19941
19942
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
19942
19943
  "category": _enum([
@@ -19973,7 +19974,7 @@ union([
19973
19974
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
19974
19975
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
19975
19976
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
19976
- "metadata": object({
19977
+ "metadata": looseObject({
19977
19978
  "authorization": object({
19978
19979
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
19979
19980
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -19994,7 +19995,7 @@ union([
19994
19995
  })).describe("An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n"),
19995
19996
  object({
19996
19997
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
19997
- "project_id": string().regex(getEventResponseOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19998
+ "project_id": string().regex(getEventResponseOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
19998
19999
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
19999
20000
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20000
20001
  "category": _enum([
@@ -20031,7 +20032,7 @@ union([
20031
20032
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20032
20033
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20033
20034
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20034
- "metadata": object({
20035
+ "metadata": looseObject({
20035
20036
  "authorization": object({
20036
20037
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20037
20038
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20052,7 +20053,7 @@ union([
20052
20053
  })).describe("An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n"),
20053
20054
  object({
20054
20055
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20055
- "project_id": string().regex(getEventResponseOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20056
+ "project_id": string().regex(getEventResponseOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20056
20057
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20057
20058
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20058
20059
  "category": _enum([
@@ -20089,7 +20090,7 @@ union([
20089
20090
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20090
20091
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20091
20092
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20092
- "metadata": object({
20093
+ "metadata": looseObject({
20093
20094
  "authorization": object({
20094
20095
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20095
20096
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20106,7 +20107,7 @@ union([
20106
20107
  })).describe("An event of type auth.token.issued, with the shared event fields and its own payload.\n"),
20107
20108
  object({
20108
20109
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20109
- "project_id": string().regex(getEventResponseOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20110
+ "project_id": string().regex(getEventResponseOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20110
20111
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20111
20112
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20112
20113
  "category": _enum([
@@ -20143,7 +20144,7 @@ union([
20143
20144
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20144
20145
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20145
20146
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20146
- "metadata": object({
20147
+ "metadata": looseObject({
20147
20148
  "authorization": object({
20148
20149
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20149
20150
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20160,7 +20161,7 @@ union([
20160
20161
  })).describe("An event of type auth.token.revoked, with the shared event fields and its own payload.\n"),
20161
20162
  object({
20162
20163
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20163
- "project_id": string().regex(getEventResponseOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20164
+ "project_id": string().regex(getEventResponseOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20164
20165
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20165
20166
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20166
20167
  "category": _enum([
@@ -20197,7 +20198,7 @@ union([
20197
20198
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20198
20199
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20199
20200
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20200
- "metadata": object({
20201
+ "metadata": looseObject({
20201
20202
  "authorization": object({
20202
20203
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20203
20204
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20218,7 +20219,7 @@ union([
20218
20219
  })).describe("An event of type authz.granted, with the shared event fields and its own payload.\n"),
20219
20220
  object({
20220
20221
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20221
- "project_id": string().regex(getEventResponseOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20222
+ "project_id": string().regex(getEventResponseOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20222
20223
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20223
20224
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20224
20225
  "category": _enum([
@@ -20255,7 +20256,7 @@ union([
20255
20256
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20256
20257
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20257
20258
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20258
- "metadata": object({
20259
+ "metadata": looseObject({
20259
20260
  "authorization": object({
20260
20261
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20261
20262
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20276,7 +20277,7 @@ union([
20276
20277
  })).describe("An event of type authz.revoked, with the shared event fields and its own payload.\n"),
20277
20278
  object({
20278
20279
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20279
- "project_id": string().regex(getEventResponseOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20280
+ "project_id": string().regex(getEventResponseOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20280
20281
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20281
20282
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20282
20283
  "category": _enum([
@@ -20313,7 +20314,7 @@ union([
20313
20314
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20314
20315
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20315
20316
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20316
- "metadata": object({
20317
+ "metadata": looseObject({
20317
20318
  "authorization": object({
20318
20319
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20319
20320
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20335,7 +20336,7 @@ union([
20335
20336
  })).describe("An event of type branding.created, with the shared event fields and its own payload.\n"),
20336
20337
  object({
20337
20338
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20338
- "project_id": string().regex(getEventResponseOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20339
+ "project_id": string().regex(getEventResponseOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20339
20340
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20340
20341
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20341
20342
  "category": _enum([
@@ -20372,7 +20373,7 @@ union([
20372
20373
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20373
20374
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20374
20375
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20375
- "metadata": object({
20376
+ "metadata": looseObject({
20376
20377
  "authorization": object({
20377
20378
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20378
20379
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20395,7 +20396,7 @@ union([
20395
20396
  })).describe("An event of type deployment.created, with the shared event fields and its own payload.\n"),
20396
20397
  object({
20397
20398
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20398
- "project_id": string().regex(getEventResponseOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20399
+ "project_id": string().regex(getEventResponseOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20399
20400
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20400
20401
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20401
20402
  "category": _enum([
@@ -20432,7 +20433,7 @@ union([
20432
20433
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20433
20434
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20434
20435
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20435
- "metadata": object({
20436
+ "metadata": looseObject({
20436
20437
  "authorization": object({
20437
20438
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20438
20439
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20449,7 +20450,7 @@ union([
20449
20450
  })).describe("An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n"),
20450
20451
  object({
20451
20452
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20452
- "project_id": string().regex(getEventResponseOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20453
+ "project_id": string().regex(getEventResponseTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20453
20454
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20454
20455
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20455
20456
  "category": _enum([
@@ -20486,7 +20487,7 @@ union([
20486
20487
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20487
20488
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20488
20489
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20489
- "metadata": object({
20490
+ "metadata": looseObject({
20490
20491
  "authorization": object({
20491
20492
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20492
20493
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20503,7 +20504,7 @@ union([
20503
20504
  })).describe("An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n"),
20504
20505
  object({
20505
20506
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20506
- "project_id": string().regex(getEventResponseTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20507
+ "project_id": string().regex(getEventResponseTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20507
20508
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20508
20509
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20509
20510
  "category": _enum([
@@ -20540,7 +20541,7 @@ union([
20540
20541
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20541
20542
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20542
20543
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20543
- "metadata": object({
20544
+ "metadata": looseObject({
20544
20545
  "authorization": object({
20545
20546
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20546
20547
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20565,7 +20566,7 @@ union([
20565
20566
  })).describe("An event of type flowdef.created, with the shared event fields and its own payload.\n"),
20566
20567
  object({
20567
20568
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20568
- "project_id": string().regex(getEventResponseTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20569
+ "project_id": string().regex(getEventResponseTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20569
20570
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20570
20571
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20571
20572
  "category": _enum([
@@ -20602,7 +20603,7 @@ union([
20602
20603
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20603
20604
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20604
20605
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20605
- "metadata": object({
20606
+ "metadata": looseObject({
20606
20607
  "authorization": object({
20607
20608
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20608
20609
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20619,7 +20620,7 @@ union([
20619
20620
  })).describe("An event of type flowdef.deleted, with the shared event fields and its own payload.\n"),
20620
20621
  object({
20621
20622
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20622
- "project_id": string().regex(getEventResponseTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20623
+ "project_id": string().regex(getEventResponseTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20623
20624
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20624
20625
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20625
20626
  "category": _enum([
@@ -20656,7 +20657,7 @@ union([
20656
20657
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20657
20658
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20658
20659
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20659
- "metadata": object({
20660
+ "metadata": looseObject({
20660
20661
  "authorization": object({
20661
20662
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20662
20663
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20681,7 +20682,7 @@ union([
20681
20682
  })).describe("An event of type flowdef.updated, with the shared event fields and its own payload.\n"),
20682
20683
  object({
20683
20684
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20684
- "project_id": string().regex(getEventResponseTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20685
+ "project_id": string().regex(getEventResponseTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20685
20686
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20686
20687
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20687
20688
  "category": _enum([
@@ -20718,7 +20719,7 @@ union([
20718
20719
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20719
20720
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20720
20721
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20721
- "metadata": object({
20722
+ "metadata": looseObject({
20722
20723
  "authorization": object({
20723
20724
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20724
20725
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20741,7 +20742,7 @@ union([
20741
20742
  })).describe("An event of type idp.created, with the shared event fields and its own payload.\n"),
20742
20743
  object({
20743
20744
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20744
- "project_id": string().regex(getEventResponseTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20745
+ "project_id": string().regex(getEventResponseTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20745
20746
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20746
20747
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20747
20748
  "category": _enum([
@@ -20778,7 +20779,7 @@ union([
20778
20779
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20779
20780
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20780
20781
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20781
- "metadata": object({
20782
+ "metadata": looseObject({
20782
20783
  "authorization": object({
20783
20784
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20784
20785
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20798,7 +20799,7 @@ union([
20798
20799
  })).describe("An event of type idp.identity_link.created, with the shared event fields and its own payload.\n"),
20799
20800
  object({
20800
20801
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20801
- "project_id": string().regex(getEventResponseTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20802
+ "project_id": string().regex(getEventResponseTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20802
20803
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20803
20804
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20804
20805
  "category": _enum([
@@ -20835,7 +20836,7 @@ union([
20835
20836
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20836
20837
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20837
20838
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20838
- "metadata": object({
20839
+ "metadata": looseObject({
20839
20840
  "authorization": object({
20840
20841
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20841
20842
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20858,7 +20859,7 @@ union([
20858
20859
  })).describe("An event of type idp.updated, with the shared event fields and its own payload.\n"),
20859
20860
  object({
20860
20861
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20861
- "project_id": string().regex(getEventResponseTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20862
+ "project_id": string().regex(getEventResponseTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20862
20863
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20863
20864
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20864
20865
  "category": _enum([
@@ -20895,7 +20896,7 @@ union([
20895
20896
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20896
20897
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20897
20898
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20898
- "metadata": object({
20899
+ "metadata": looseObject({
20899
20900
  "authorization": object({
20900
20901
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20901
20902
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20924,14 +20925,14 @@ union([
20924
20925
  }).describe("Fields every `invitation.accepted` payload carries, whatever its `type`.\n").and(object({
20925
20926
  "type": _enum(["team_member"]),
20926
20927
  "team_member": object({
20927
- "team_id": string().regex(getEventResponseTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
20928
+ "team_id": string().regex(getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
20928
20929
  "role": _enum(["member"]).describe("The team role the accepter receives.")
20929
20930
  }).describe("Type-specific input for a `team_member` invitation.")
20930
20931
  })).describe("An `invitation.accepted` payload for a `team_member` invitation.\n")]).describe("Payload for `invitation.accepted`. The invitation ID is the event's\n`entity_id`, and `user_id` is the user who redeemed the link. Discriminate\non `type`; the object named after it says what the invitation granted. Grant\nevents the acceptance writes, such as `authz.granted`, carry this event's\n`request_id`. There are none when the user already holds an identical\nactive grant.\n")
20931
20932
  })).describe("An event of type invitation.accepted, with the shared event fields and its own payload.\n"),
20932
20933
  object({
20933
20934
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20934
- "project_id": string().regex(getEventResponseTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20935
+ "project_id": string().regex(getEventResponseTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20935
20936
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20936
20937
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20937
20938
  "category": _enum([
@@ -20968,7 +20969,7 @@ union([
20968
20969
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
20969
20970
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
20970
20971
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
20971
- "metadata": object({
20972
+ "metadata": looseObject({
20972
20973
  "authorization": object({
20973
20974
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
20974
20975
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -20992,7 +20993,7 @@ union([
20992
20993
  })).describe("An event of type invitation.cancelled, with the shared event fields and its own payload.\n"),
20993
20994
  object({
20994
20995
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
20995
- "project_id": string().regex(getEventResponseTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20996
+ "project_id": string().regex(getEventResponseTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
20996
20997
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
20997
20998
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
20998
20999
  "category": _enum([
@@ -21029,7 +21030,7 @@ union([
21029
21030
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21030
21031
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21031
21032
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21032
- "metadata": object({
21033
+ "metadata": looseObject({
21033
21034
  "authorization": object({
21034
21035
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21035
21036
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21060,14 +21061,14 @@ union([
21060
21061
  }).describe("Fields every `invitation.created` payload carries, whatever its `type`.\n").and(object({
21061
21062
  "type": _enum(["team_member"]),
21062
21063
  "team_member": object({
21063
- "team_id": string().regex(getEventResponseTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
21064
+ "team_id": string().regex(getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
21064
21065
  "role": _enum(["member"]).describe("The team role the accepter receives.")
21065
21066
  }).describe("Type-specific input for a `team_member` invitation.")
21066
21067
  })).describe("An `invitation.created` payload for a `team_member` invitation.\n")]).describe("Payload for `invitation.created`. The invitation ID is the event's\n`entity_id`. Discriminate on `type`; the object named after it says what\nthe invitation's link grants. The metadata entered at creation and the\nlink's token never appear.\n")
21067
21068
  })).describe("An event of type invitation.created, with the shared event fields and its own payload.\n"),
21068
21069
  object({
21069
21070
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21070
- "project_id": string().regex(getEventResponseTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21071
+ "project_id": string().regex(getEventResponseThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21071
21072
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21072
21073
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21073
21074
  "category": _enum([
@@ -21104,7 +21105,7 @@ union([
21104
21105
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21105
21106
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21106
21107
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21107
- "metadata": object({
21108
+ "metadata": looseObject({
21108
21109
  "authorization": object({
21109
21110
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21110
21111
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21124,7 +21125,7 @@ union([
21124
21125
  })).describe("An event of type invitation.rejected, with the shared event fields and its own payload.\n"),
21125
21126
  object({
21126
21127
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21127
- "project_id": string().regex(getEventResponseThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21128
+ "project_id": string().regex(getEventResponseThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21128
21129
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21129
21130
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21130
21131
  "category": _enum([
@@ -21161,7 +21162,61 @@ union([
21161
21162
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21162
21163
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21163
21164
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21164
- "metadata": object({
21165
+ "metadata": looseObject({
21166
+ "authorization": object({
21167
+ "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21168
+ "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
21169
+ }).optional().describe("What authorized the request, when it was not a grant on the event's\nproject. Every event of such a request carries it.\n"),
21170
+ "client": object({
21171
+ "ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
21172
+ "user_agent": string().optional().describe("The observed `User-Agent` header."),
21173
+ "origin": string().optional().describe("The `Origin` header, when present.")
21174
+ }).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
21175
+ }).optional().describe("Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n")
21176
+ }).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
21177
+ "event_type": literal("oauth_settings.created"),
21178
+ "payload": object({ "enabled": boolean().describe("Whether the project's OAuth authorization server answers.") }).describe("Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event's `entity_id`.\n")
21179
+ })).describe("An event of type oauth_settings.created, with the shared event fields and its own payload.\n"),
21180
+ object({
21181
+ "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21182
+ "project_id": string().regex(getEventResponseThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21183
+ "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21184
+ "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21185
+ "category": _enum([
21186
+ "request",
21187
+ "auth",
21188
+ "session",
21189
+ "admin",
21190
+ "entity",
21191
+ "signal"
21192
+ ]).describe("The category of the event."),
21193
+ "occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
21194
+ "created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
21195
+ "actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
21196
+ "actor_type": union([_enum([
21197
+ "human",
21198
+ "service",
21199
+ "system",
21200
+ "agent"
21201
+ ]), _null()]).optional().describe("The kind of actor that triggered the event."),
21202
+ "entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
21203
+ "entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
21204
+ "user_id": union([string(), _null()]).optional().describe("The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n"),
21205
+ "client_id": string().describe("The application or agent that produced the event."),
21206
+ "token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
21207
+ "delegation_type": _enum([
21208
+ "direct",
21209
+ "delegated",
21210
+ "pat_shared",
21211
+ "exchanged"
21212
+ ]).optional().describe("The kind of delegation. Absent when unset."),
21213
+ "delegation_id": string().optional(),
21214
+ "grantor": string().optional(),
21215
+ "fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
21216
+ "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21217
+ "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21218
+ "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21219
+ "metadata": looseObject({
21165
21220
  "authorization": object({
21166
21221
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21167
21222
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21181,7 +21236,7 @@ union([
21181
21236
  })).describe("An event of type origin.added, with the shared event fields and its own payload.\n"),
21182
21237
  object({
21183
21238
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21184
- "project_id": string().regex(getEventResponseThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21239
+ "project_id": string().regex(getEventResponseThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21185
21240
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21186
21241
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21187
21242
  "category": _enum([
@@ -21218,7 +21273,7 @@ union([
21218
21273
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21219
21274
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21220
21275
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21221
- "metadata": object({
21276
+ "metadata": looseObject({
21222
21277
  "authorization": object({
21223
21278
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21224
21279
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21238,7 +21293,7 @@ union([
21238
21293
  })).describe("An event of type origin.removed, with the shared event fields and its own payload.\n"),
21239
21294
  object({
21240
21295
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21241
- "project_id": string().regex(getEventResponseThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21296
+ "project_id": string().regex(getEventResponseThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21242
21297
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21243
21298
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21244
21299
  "category": _enum([
@@ -21275,7 +21330,7 @@ union([
21275
21330
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21276
21331
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21277
21332
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21278
- "metadata": object({
21333
+ "metadata": looseObject({
21279
21334
  "authorization": object({
21280
21335
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21281
21336
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21296,7 +21351,7 @@ union([
21296
21351
  })).describe("An event of type policy.created, with the shared event fields and its own payload.\n"),
21297
21352
  object({
21298
21353
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21299
- "project_id": string().regex(getEventResponseThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21354
+ "project_id": string().regex(getEventResponseThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21300
21355
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21301
21356
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21302
21357
  "category": _enum([
@@ -21333,7 +21388,7 @@ union([
21333
21388
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21334
21389
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21335
21390
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21336
- "metadata": object({
21391
+ "metadata": looseObject({
21337
21392
  "authorization": object({
21338
21393
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21339
21394
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21354,7 +21409,7 @@ union([
21354
21409
  })).describe("An event of type policy.updated, with the shared event fields and its own payload.\n"),
21355
21410
  object({
21356
21411
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21357
- "project_id": string().regex(getEventResponseThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21412
+ "project_id": string().regex(getEventResponseThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21358
21413
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21359
21414
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21360
21415
  "category": _enum([
@@ -21391,7 +21446,7 @@ union([
21391
21446
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21392
21447
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21393
21448
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21394
- "metadata": object({
21449
+ "metadata": looseObject({
21395
21450
  "authorization": object({
21396
21451
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21397
21452
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21408,7 +21463,7 @@ union([
21408
21463
  })).describe("An event of type preview.removed, with the shared event fields and its own payload.\n"),
21409
21464
  object({
21410
21465
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21411
- "project_id": string().regex(getEventResponseThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21466
+ "project_id": string().regex(getEventResponseThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21412
21467
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21413
21468
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21414
21469
  "category": _enum([
@@ -21445,7 +21500,7 @@ union([
21445
21500
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21446
21501
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21447
21502
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21448
- "metadata": object({
21503
+ "metadata": looseObject({
21449
21504
  "authorization": object({
21450
21505
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21451
21506
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21469,7 +21524,7 @@ union([
21469
21524
  })).describe("An event of type project.created, with the shared event fields and its own payload.\n"),
21470
21525
  object({
21471
21526
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21472
- "project_id": string().regex(getEventResponseThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21527
+ "project_id": string().regex(getEventResponseThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21473
21528
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21474
21529
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21475
21530
  "category": _enum([
@@ -21506,7 +21561,7 @@ union([
21506
21561
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21507
21562
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21508
21563
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21509
- "metadata": object({
21564
+ "metadata": looseObject({
21510
21565
  "authorization": object({
21511
21566
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21512
21567
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21523,7 +21578,7 @@ union([
21523
21578
  })).describe("An event of type project.deleted, with the shared event fields and its own payload.\n"),
21524
21579
  object({
21525
21580
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21526
- "project_id": string().regex(getEventResponseThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21581
+ "project_id": string().regex(getEventResponseThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21527
21582
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21528
21583
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21529
21584
  "category": _enum([
@@ -21560,7 +21615,7 @@ union([
21560
21615
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21561
21616
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21562
21617
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21563
- "metadata": object({
21618
+ "metadata": looseObject({
21564
21619
  "authorization": object({
21565
21620
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21566
21621
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21584,7 +21639,7 @@ union([
21584
21639
  })).describe("An event of type project.updated, with the shared event fields and its own payload.\n"),
21585
21640
  object({
21586
21641
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21587
- "project_id": string().regex(getEventResponseThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21642
+ "project_id": string().regex(getEventResponseFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21588
21643
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21589
21644
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21590
21645
  "category": _enum([
@@ -21621,7 +21676,7 @@ union([
21621
21676
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21622
21677
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21623
21678
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21624
- "metadata": object({
21679
+ "metadata": looseObject({
21625
21680
  "authorization": object({
21626
21681
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21627
21682
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21648,7 +21703,7 @@ union([
21648
21703
  })).describe("An event of type release.created, with the shared event fields and its own payload.\n"),
21649
21704
  object({
21650
21705
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21651
- "project_id": string().regex(getEventResponseThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21706
+ "project_id": string().regex(getEventResponseFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21652
21707
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21653
21708
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21654
21709
  "category": _enum([
@@ -21685,7 +21740,7 @@ union([
21685
21740
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21686
21741
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21687
21742
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21688
- "metadata": object({
21743
+ "metadata": looseObject({
21689
21744
  "authorization": object({
21690
21745
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21691
21746
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21698,11 +21753,11 @@ union([
21698
21753
  }).optional().describe("Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n")
21699
21754
  }).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
21700
21755
  "event_type": literal("release.revoked"),
21701
- "payload": object({ "content_hash": string().min(71).max(71).regex(getEventResponseThreenineTwoPayloadContentHashRegExp, "must be sha256: followed by 64 lowercase hex digits").describe("The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project's revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding`, `idp` or `oauth`, and `handle` set to the\n schema's `objectType`, the flow definition's `name`, `default` for\n branding and oauth, or the identity provider's `slug`.\n A `schema-url` entry's content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{\"version\": 1, \"resources\": [{\"kind\": …, \"handle\": …, \"content\": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n") }).describe("Payload for `release.revoked`. The release ID is the event's `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n")
21756
+ "payload": object({ "content_hash": string().min(71).max(71).regex(getEventResponseFouroneTwoPayloadContentHashRegExp, "must be sha256: followed by 64 lowercase hex digits").describe("The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project's revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding`, `idp` or `oauth`, and `handle` set to the\n schema's `objectType`, the flow definition's `name`, `default` for\n branding and oauth, or the identity provider's `slug`.\n A `schema-url` entry's content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{\"version\": 1, \"resources\": [{\"kind\": …, \"handle\": …, \"content\": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n") }).describe("Payload for `release.revoked`. The release ID is the event's `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n")
21702
21757
  })).describe("An event of type release.revoked, with the shared event fields and its own payload.\n"),
21703
21758
  object({
21704
21759
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21705
- "project_id": string().regex(getEventResponseFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21760
+ "project_id": string().regex(getEventResponseFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21706
21761
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21707
21762
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21708
21763
  "category": _enum([
@@ -21739,7 +21794,7 @@ union([
21739
21794
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21740
21795
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21741
21796
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21742
- "metadata": object({
21797
+ "metadata": looseObject({
21743
21798
  "authorization": object({
21744
21799
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21745
21800
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21770,7 +21825,7 @@ union([
21770
21825
  })).describe("An event of type request.api, with the shared event fields and its own payload.\n"),
21771
21826
  object({
21772
21827
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21773
- "project_id": string().regex(getEventResponseFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21828
+ "project_id": string().regex(getEventResponseFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21774
21829
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21775
21830
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21776
21831
  "category": _enum([
@@ -21807,7 +21862,7 @@ union([
21807
21862
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21808
21863
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21809
21864
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21810
- "metadata": object({
21865
+ "metadata": looseObject({
21811
21866
  "authorization": object({
21812
21867
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21813
21868
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21827,7 +21882,7 @@ union([
21827
21882
  })).describe("An event of type schema.created, with the shared event fields and its own payload.\n"),
21828
21883
  object({
21829
21884
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21830
- "project_id": string().regex(getEventResponseFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21885
+ "project_id": string().regex(getEventResponseFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21831
21886
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21832
21887
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21833
21888
  "category": _enum([
@@ -21864,7 +21919,7 @@ union([
21864
21919
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21865
21920
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21866
21921
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21867
- "metadata": object({
21922
+ "metadata": looseObject({
21868
21923
  "authorization": object({
21869
21924
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21870
21925
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21881,7 +21936,7 @@ union([
21881
21936
  })).describe("An event of type session.deleted, with the shared event fields and its own payload.\n"),
21882
21937
  object({
21883
21938
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21884
- "project_id": string().regex(getEventResponseFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21939
+ "project_id": string().regex(getEventResponseFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21885
21940
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21886
21941
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21887
21942
  "category": _enum([
@@ -21918,7 +21973,7 @@ union([
21918
21973
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21919
21974
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21920
21975
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21921
- "metadata": object({
21976
+ "metadata": looseObject({
21922
21977
  "authorization": object({
21923
21978
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21924
21979
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21935,7 +21990,7 @@ union([
21935
21990
  })).describe("An event of type session.established, with the shared event fields and its own payload.\n"),
21936
21991
  object({
21937
21992
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21938
- "project_id": string().regex(getEventResponseFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21993
+ "project_id": string().regex(getEventResponseFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21939
21994
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21940
21995
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21941
21996
  "category": _enum([
@@ -21972,7 +22027,7 @@ union([
21972
22027
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
21973
22028
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
21974
22029
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
21975
- "metadata": object({
22030
+ "metadata": looseObject({
21976
22031
  "authorization": object({
21977
22032
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
21978
22033
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -21989,7 +22044,7 @@ union([
21989
22044
  })).describe("An event of type team.created, with the shared event fields and its own payload.\n"),
21990
22045
  object({
21991
22046
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
21992
- "project_id": string().regex(getEventResponseFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22047
+ "project_id": string().regex(getEventResponseFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
21993
22048
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
21994
22049
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
21995
22050
  "category": _enum([
@@ -22026,7 +22081,7 @@ union([
22026
22081
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22027
22082
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22028
22083
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22029
- "metadata": object({
22084
+ "metadata": looseObject({
22030
22085
  "authorization": object({
22031
22086
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22032
22087
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22043,7 +22098,7 @@ union([
22043
22098
  })).describe("An event of type team.deactivated, with the shared event fields and its own payload.\n"),
22044
22099
  object({
22045
22100
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22046
- "project_id": string().regex(getEventResponseFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22101
+ "project_id": string().regex(getEventResponseFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22047
22102
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22048
22103
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22049
22104
  "category": _enum([
@@ -22080,7 +22135,7 @@ union([
22080
22135
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22081
22136
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22082
22137
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22083
- "metadata": object({
22138
+ "metadata": looseObject({
22084
22139
  "authorization": object({
22085
22140
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22086
22141
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22097,7 +22152,7 @@ union([
22097
22152
  })).describe("An event of type team.updated, with the shared event fields and its own payload.\n"),
22098
22153
  object({
22099
22154
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22100
- "project_id": string().regex(getEventResponseFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22155
+ "project_id": string().regex(getEventResponseFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22101
22156
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22102
22157
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22103
22158
  "category": _enum([
@@ -22134,7 +22189,7 @@ union([
22134
22189
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22135
22190
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22136
22191
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22137
- "metadata": object({
22192
+ "metadata": looseObject({
22138
22193
  "authorization": object({
22139
22194
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22140
22195
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22151,7 +22206,7 @@ union([
22151
22206
  })).describe("An event of type user.create.failed, with the shared event fields and its own payload.\n"),
22152
22207
  object({
22153
22208
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22154
- "project_id": string().regex(getEventResponseFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22209
+ "project_id": string().regex(getEventResponseFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22155
22210
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22156
22211
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22157
22212
  "category": _enum([
@@ -22188,7 +22243,7 @@ union([
22188
22243
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22189
22244
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22190
22245
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22191
- "metadata": object({
22246
+ "metadata": looseObject({
22192
22247
  "authorization": object({
22193
22248
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22194
22249
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22209,7 +22264,7 @@ union([
22209
22264
  })).describe("An event of type user.created, with the shared event fields and its own payload.\n"),
22210
22265
  object({
22211
22266
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22212
- "project_id": string().regex(getEventResponseFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22267
+ "project_id": string().regex(getEventResponseFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22213
22268
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22214
22269
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22215
22270
  "category": _enum([
@@ -22246,7 +22301,7 @@ union([
22246
22301
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22247
22302
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22248
22303
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22249
- "metadata": object({
22304
+ "metadata": looseObject({
22250
22305
  "authorization": object({
22251
22306
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22252
22307
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22263,7 +22318,7 @@ union([
22263
22318
  })).describe("An event of type user.deleted, with the shared event fields and its own payload.\n"),
22264
22319
  object({
22265
22320
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22266
- "project_id": string().regex(getEventResponseFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22321
+ "project_id": string().regex(getEventResponseFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22267
22322
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22268
22323
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22269
22324
  "category": _enum([
@@ -22300,7 +22355,7 @@ union([
22300
22355
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22301
22356
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22302
22357
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22303
- "metadata": object({
22358
+ "metadata": looseObject({
22304
22359
  "authorization": object({
22305
22360
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22306
22361
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22320,7 +22375,7 @@ union([
22320
22375
  })).describe("An event of type user.updated, with the shared event fields and its own payload.\n"),
22321
22376
  object({
22322
22377
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22323
- "project_id": string().regex(getEventResponseFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22378
+ "project_id": string().regex(getEventResponseFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22324
22379
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22325
22380
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22326
22381
  "category": _enum([
@@ -22357,7 +22412,7 @@ union([
22357
22412
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22358
22413
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22359
22414
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22360
- "metadata": object({
22415
+ "metadata": looseObject({
22361
22416
  "authorization": object({
22362
22417
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22363
22418
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -22374,7 +22429,7 @@ union([
22374
22429
  })).describe("An event of type variable.removed, with the shared event fields and its own payload.\n"),
22375
22430
  object({
22376
22431
  "id": string().describe("The event ID, in the form `evt_<opaque>`."),
22377
- "project_id": string().regex(getEventResponseFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22432
+ "project_id": string().regex(getEventResponseFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
22378
22433
  "team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
22379
22434
  "event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
22380
22435
  "category": _enum([
@@ -22411,7 +22466,7 @@ union([
22411
22466
  "request_id": union([string(), _null()]).optional().describe("The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n"),
22412
22467
  "session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
22413
22468
  "flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
22414
- "metadata": object({
22469
+ "metadata": looseObject({
22415
22470
  "authorization": object({
22416
22471
  "path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
22417
22472
  "actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
@@ -23629,6 +23684,8 @@ function getFreePort() {
23629
23684
  });
23630
23685
  }
23631
23686
  // src/lifecycle.ts
23687
+ /** How many ports a start on an unspecified port tries before giving up. */
23688
+ const PORT_RACE_ATTEMPTS = 5;
23632
23689
  /**
23633
23690
  * Boot an ephemeral local server by shelling out to `zitadel start` and parse
23634
23691
  * its JSON envelope. The CLI owns the subtle parts (port preflight, health
@@ -23638,22 +23695,27 @@ function getFreePort() {
23638
23695
  async function bootLocalServer(options = {}) {
23639
23696
  const ownsDir = options.dir === void 0;
23640
23697
  const dir = options.dir ?? await (0, node_fs_promises.mkdtemp)((0, node_path.join)((0, node_os.tmpdir)(), "zitadel-testing-"));
23641
- const port = options.port ?? await getFreePort();
23642
23698
  const env = cliEnv(options);
23643
- const result = await runCli({
23644
- args: [
23645
- "start",
23646
- "--port",
23647
- String(port),
23648
- "--non-interactive",
23649
- "--json",
23650
- "-c",
23651
- dir
23652
- ],
23653
- bin: options.cliBin,
23654
- env,
23655
- timeoutMs: options.timeoutMs
23656
- });
23699
+ const attempts = options.port === void 0 ? PORT_RACE_ATTEMPTS : 1;
23700
+ let result;
23701
+ for (let attempt = 1;; attempt += 1) {
23702
+ const port = options.port ?? await getFreePort();
23703
+ result = await runCli({
23704
+ args: [
23705
+ "start",
23706
+ "--port",
23707
+ String(port),
23708
+ "--non-interactive",
23709
+ "--json",
23710
+ "-c",
23711
+ dir
23712
+ ],
23713
+ bin: options.cliBin,
23714
+ env,
23715
+ timeoutMs: options.timeoutMs
23716
+ });
23717
+ if (result.exitCode === 0 || attempt >= attempts || !result.stdout.concat(result.stderr).includes("E_PORT_IN_USE")) break;
23718
+ }
23657
23719
  if (result.exitCode !== 0) throw new Error(`zitadel start exited with code ${result.exitCode}.\n${failureDetail(result)}\nstate dir kept for inspection: ${dir}`);
23658
23720
  const stopViaCli = async () => {
23659
23721
  const stopResult = await runCli({
@@ -24073,4 +24135,4 @@ Object.defineProperty(exports, "startLocalZitadel", {
24073
24135
  }
24074
24136
  });
24075
24137
 
24076
- //# sourceMappingURL=src-EogQCM5q.cjs.map
24138
+ //# sourceMappingURL=src-CpLJQquS.cjs.map