@zitadel/testing 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-B9tztG3_.d.mts → index-KrNefxOo.d.mts} +6 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/playwright.cjs +1 -1
- package/dist/playwright.mjs +1 -1
- package/dist/{src-EogQCM5q.cjs → src-DZ46zEll.cjs} +943 -883
- package/dist/src-DZ46zEll.cjs.map +1 -0
- package/dist/{src-DImgqUUu.mjs → src-DkwAAu0O.mjs} +23 -16
- package/dist/src-DkwAAu0O.mjs.map +1 -0
- package/dist/supervisor.cjs +1 -1
- package/dist/supervisor.mjs +1 -1
- package/dist/vitest.d.mts +1 -1
- package/dist/vitest.mjs +1 -1
- package/package.json +4 -4
- package/dist/src-DImgqUUu.mjs.map +0 -1
- package/dist/src-EogQCM5q.cjs.map +0 -1
|
@@ -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-
|
|
345
|
+
// ../api/dist/zitadelNextGen-CDqt2m_4.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,
|
|
1696
|
-
* direct grant
|
|
1545
|
+
* check, a direct user grant requires an active user, so a suspended
|
|
1546
|
+
* person's direct grant is not listed.
|
|
1697
1547
|
*
|
|
1698
|
-
*
|
|
1699
|
-
*
|
|
1700
|
-
*
|
|
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
|
};
|
|
@@ -3506,21 +3166,10 @@ const getQueryGrantsUrl = (params) => {
|
|
|
3506
3166
|
* @summary Query grants
|
|
3507
3167
|
*/
|
|
3508
3168
|
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
3169
|
return customFetch(getQueryGrantsUrl(params), {
|
|
3518
3170
|
...options,
|
|
3519
3171
|
method: "POST",
|
|
3520
|
-
headers: {
|
|
3521
|
-
"Content-Type": "application/json",
|
|
3522
|
-
...getHeaders(options?.headers)
|
|
3523
|
-
},
|
|
3172
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3524
3173
|
body: JSON.stringify(queryGrantsBody)
|
|
3525
3174
|
});
|
|
3526
3175
|
};
|
|
@@ -3620,27 +3269,22 @@ const getCreateInvitationUrl = (params) => {
|
|
|
3620
3269
|
* @summary Create an invitation
|
|
3621
3270
|
*/
|
|
3622
3271
|
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
3272
|
return customFetch(getCreateInvitationUrl(params), {
|
|
3632
3273
|
...options,
|
|
3633
3274
|
method: "POST",
|
|
3634
|
-
headers: {
|
|
3635
|
-
"Content-Type": "application/json",
|
|
3636
|
-
...getHeaders(options?.headers)
|
|
3637
|
-
},
|
|
3275
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3638
3276
|
body: JSON.stringify(createInvitationBody)
|
|
3639
3277
|
});
|
|
3640
3278
|
};
|
|
3641
3279
|
const getListInvitationsUrl = (params) => {
|
|
3642
3280
|
const normalizedParams = new URLSearchParams();
|
|
3643
3281
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
3282
|
+
if (Array.isArray(value) && ["status", "expand"].includes(key)) {
|
|
3283
|
+
value.forEach((v) => {
|
|
3284
|
+
normalizedParams.append(key, v === null ? "null" : String(v));
|
|
3285
|
+
});
|
|
3286
|
+
return;
|
|
3287
|
+
}
|
|
3644
3288
|
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
3645
3289
|
});
|
|
3646
3290
|
const stringifiedParams = normalizedParams.toString();
|
|
@@ -3650,8 +3294,11 @@ const getListInvitationsUrl = (params) => {
|
|
|
3650
3294
|
* Lists a project's invitations, newest first, in any status, paginated with
|
|
3651
3295
|
* `limit` and `page_token`.
|
|
3652
3296
|
*
|
|
3653
|
-
* Optional `status` and `type` filters narrow the page. `
|
|
3654
|
-
*
|
|
3297
|
+
* Optional `status` and `type` filters narrow the page. Repeat `status` to
|
|
3298
|
+
* match any of several statuses, for example
|
|
3299
|
+
* `status=pending&status=expired&status=rejected`. `expired` is derived on
|
|
3300
|
+
* read from `expires_at`. `expand=inviter` adds `inviter` to each
|
|
3301
|
+
* invitation. Authenticate with a project secret (`oauth2`) or
|
|
3655
3302
|
* a console session cookie (`sessionCookie`). Listing needs the same project
|
|
3656
3303
|
* `admin` check as `createGrant` (`POST /grants`).
|
|
3657
3304
|
* @summary List invitations
|
|
@@ -3673,25 +3320,14 @@ const getLookupInvitationUrl = () => {
|
|
|
3673
3320
|
* or finished token answers the same opaque `404`. Authenticate with a
|
|
3674
3321
|
* platform-project user session cookie (`sessionCookie`). Lookup is a read:
|
|
3675
3322
|
* same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
|
|
3676
|
-
* reject still do).
|
|
3323
|
+
* reject still do).
|
|
3677
3324
|
* @summary Look up an invitation by token
|
|
3678
3325
|
*/
|
|
3679
3326
|
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
3327
|
return customFetch(getLookupInvitationUrl(), {
|
|
3689
3328
|
...options,
|
|
3690
3329
|
method: "POST",
|
|
3691
|
-
headers: {
|
|
3692
|
-
"Content-Type": "application/json",
|
|
3693
|
-
...getHeaders(options?.headers)
|
|
3694
|
-
},
|
|
3330
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3695
3331
|
body: JSON.stringify(lookupInvitationBody)
|
|
3696
3332
|
});
|
|
3697
3333
|
};
|
|
@@ -3710,25 +3346,14 @@ const getAcceptInvitationUrl = () => {
|
|
|
3710
3346
|
* answers the same opaque `404`.
|
|
3711
3347
|
*
|
|
3712
3348
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
3713
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
3349
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
3714
3350
|
* @summary Accept an invitation
|
|
3715
3351
|
*/
|
|
3716
3352
|
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
3353
|
return customFetch(getAcceptInvitationUrl(), {
|
|
3726
3354
|
...options,
|
|
3727
3355
|
method: "POST",
|
|
3728
|
-
headers: {
|
|
3729
|
-
"Content-Type": "application/json",
|
|
3730
|
-
...getHeaders(options?.headers)
|
|
3731
|
-
},
|
|
3356
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3732
3357
|
body: JSON.stringify(acceptInvitationBody)
|
|
3733
3358
|
});
|
|
3734
3359
|
};
|
|
@@ -3739,28 +3364,20 @@ const getRejectInvitationUrl = () => {
|
|
|
3739
3364
|
* Declines a pending invitation for the signed-in user and returns the
|
|
3740
3365
|
* updated invitation with status `rejected`.
|
|
3741
3366
|
*
|
|
3742
|
-
* Send the plaintext token from the invitation link fragment.
|
|
3743
|
-
*
|
|
3367
|
+
* Send the plaintext token from the invitation link fragment. The
|
|
3368
|
+
* invitation keeps its metadata for administrators, but this response
|
|
3369
|
+
* returns `metadata` as null. The inviter cannot decline their own invitation; an administrator
|
|
3370
|
+
* cancels it instead. Every unknown or finished token answers the same
|
|
3371
|
+
* opaque `404`.
|
|
3744
3372
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
3745
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
3373
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
3746
3374
|
* @summary Decline an invitation
|
|
3747
3375
|
*/
|
|
3748
3376
|
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
3377
|
return customFetch(getRejectInvitationUrl(), {
|
|
3758
3378
|
...options,
|
|
3759
3379
|
method: "POST",
|
|
3760
|
-
headers: {
|
|
3761
|
-
"Content-Type": "application/json",
|
|
3762
|
-
...getHeaders(options?.headers)
|
|
3763
|
-
},
|
|
3380
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3764
3381
|
body: JSON.stringify(rejectInvitationBody)
|
|
3765
3382
|
});
|
|
3766
3383
|
};
|
|
@@ -3796,10 +3413,9 @@ const getCancelInvitationUrl = (invitationId, params) => {
|
|
|
3796
3413
|
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`;
|
|
3797
3414
|
};
|
|
3798
3415
|
/**
|
|
3799
|
-
* Deletes a pending
|
|
3800
|
-
*
|
|
3801
|
-
* same opaque `404` as a miss.
|
|
3802
|
-
* later cleanup job removes them.
|
|
3416
|
+
* Deletes a pending, expired or rejected invitation, with its metadata. A
|
|
3417
|
+
* pending invitation's link can no longer be redeemed. An accepted
|
|
3418
|
+
* invitation answers the same opaque `404` as a miss.
|
|
3803
3419
|
*
|
|
3804
3420
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
3805
3421
|
* (`sessionCookie`). Cancelling needs the same project `admin` check as
|
|
@@ -3947,21 +3563,10 @@ const getSetVariablesUrl = (params) => {
|
|
|
3947
3563
|
* @summary Update a project's variables
|
|
3948
3564
|
*/
|
|
3949
3565
|
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
3566
|
return customFetch(getSetVariablesUrl(params), {
|
|
3959
3567
|
...options,
|
|
3960
3568
|
method: "PATCH",
|
|
3961
|
-
headers: {
|
|
3962
|
-
"Content-Type": "application/json",
|
|
3963
|
-
...getHeaders(options?.headers)
|
|
3964
|
-
},
|
|
3569
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3965
3570
|
body: JSON.stringify(setVariablesBody)
|
|
3966
3571
|
});
|
|
3967
3572
|
};
|
|
@@ -4078,21 +3683,10 @@ const getCreateDeploymentUrl = (params) => {
|
|
|
4078
3683
|
* @summary Create a deployment
|
|
4079
3684
|
*/
|
|
4080
3685
|
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
3686
|
return customFetch(getCreateDeploymentUrl(params), {
|
|
4090
3687
|
...options,
|
|
4091
3688
|
method: "POST",
|
|
4092
|
-
headers: {
|
|
4093
|
-
"Content-Type": "application/json",
|
|
4094
|
-
...getHeaders(options?.headers)
|
|
4095
|
-
},
|
|
3689
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
4096
3690
|
body: JSON.stringify(createDeploymentBody)
|
|
4097
3691
|
});
|
|
4098
3692
|
};
|
|
@@ -4222,21 +3816,10 @@ const getRollbackDeploymentUrl = (deploymentId, params) => {
|
|
|
4222
3816
|
* @summary Roll back to a deployment
|
|
4223
3817
|
*/
|
|
4224
3818
|
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
3819
|
return customFetch(getRollbackDeploymentUrl(deploymentId, params), {
|
|
4234
3820
|
...options,
|
|
4235
3821
|
method: "POST",
|
|
4236
|
-
headers: {
|
|
4237
|
-
"Content-Type": "application/json",
|
|
4238
|
-
...getHeaders(options?.headers)
|
|
4239
|
-
},
|
|
3822
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
4240
3823
|
body: JSON.stringify(rollbackDeploymentBody)
|
|
4241
3824
|
});
|
|
4242
3825
|
};
|
|
@@ -4396,7 +3979,7 @@ var Paging = class Paging {
|
|
|
4396
3979
|
return list;
|
|
4397
3980
|
}
|
|
4398
3981
|
};
|
|
4399
|
-
// ../api/dist/api-factory-
|
|
3982
|
+
// ../api/dist/api-factory-B2kd991F.mjs
|
|
4400
3983
|
/**
|
|
4401
3984
|
* The client functions that page (ADR 027), by name: a page's items and its
|
|
4402
3985
|
* cursor to the next one, each read off the page as the function's response
|
|
@@ -4503,6 +4086,18 @@ const paging = {
|
|
|
4503
4086
|
options
|
|
4504
4087
|
]
|
|
4505
4088
|
},
|
|
4089
|
+
listProjectMembers: {
|
|
4090
|
+
items: (page) => page.members,
|
|
4091
|
+
next: (page) => page.next_page_token,
|
|
4092
|
+
withToken: ([projectId, params, options], page_token) => [
|
|
4093
|
+
projectId,
|
|
4094
|
+
{
|
|
4095
|
+
...params,
|
|
4096
|
+
page_token
|
|
4097
|
+
},
|
|
4098
|
+
options
|
|
4099
|
+
]
|
|
4100
|
+
},
|
|
4506
4101
|
listProjectPreviews: {
|
|
4507
4102
|
items: (page) => page.previews,
|
|
4508
4103
|
next: (page) => page.next_page_token,
|
|
@@ -10018,6 +9613,14 @@ function strictObject(shape, params) {
|
|
|
10018
9613
|
...normalizeParams(params)
|
|
10019
9614
|
});
|
|
10020
9615
|
}
|
|
9616
|
+
function looseObject(shape, params) {
|
|
9617
|
+
return new ZodObject({
|
|
9618
|
+
type: "object",
|
|
9619
|
+
shape,
|
|
9620
|
+
catchall: unknown(),
|
|
9621
|
+
...normalizeParams(params)
|
|
9622
|
+
});
|
|
9623
|
+
}
|
|
10021
9624
|
const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
10022
9625
|
$ZodUnion.init(inst, def);
|
|
10023
9626
|
ZodType.init(inst, def);
|
|
@@ -10948,7 +10551,7 @@ const getMyUserSchemaResponseSchemaOneMetaSchemaMax = 1024;
|
|
|
10948
10551
|
const getMyUserSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
10949
10552
|
object({
|
|
10950
10553
|
"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":
|
|
10554
|
+
"schema": looseObject({
|
|
10952
10555
|
"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
10556
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
10954
10557
|
"metaSchema": url().max(getMyUserSchemaResponseSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -10964,7 +10567,7 @@ object({
|
|
|
10964
10567
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
10965
10568
|
"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
10569
|
"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(),
|
|
10570
|
+
"properties": record(string(), looseObject({
|
|
10968
10571
|
"x-unique": union([_enum([
|
|
10969
10572
|
"unspecified",
|
|
10970
10573
|
"project",
|
|
@@ -11073,6 +10676,8 @@ const createFlowResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ ne
|
|
|
11073
10676
|
const createFlowResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
11074
10677
|
const createFlowResponseBrandingTypographyFontUrlMax = 2048;
|
|
11075
10678
|
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]*)?$");
|
|
10679
|
+
const createFlowResponseBrandingTypographyScaleMin = .75;
|
|
10680
|
+
const createFlowResponseBrandingTypographyScaleMax = 1.25;
|
|
11076
10681
|
object({
|
|
11077
10682
|
"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
10683
|
"session_id": string().describe("Underlying session ID. Stable across all stacked flows."),
|
|
@@ -11214,11 +10819,18 @@ object({
|
|
|
11214
10819
|
}).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
10820
|
}).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
10821
|
}).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":
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
10822
|
+
"typography": (() => {
|
|
10823
|
+
const property = "font_url";
|
|
10824
|
+
const dependent = "font_family";
|
|
10825
|
+
return object({
|
|
10826
|
+
"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"),
|
|
10827
|
+
"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"),
|
|
10828
|
+
"scale": number().min(createFlowResponseBrandingTypographyScaleMin).max(createFlowResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
10829
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
10830
|
+
"error": "font_family is required when font_url is present",
|
|
10831
|
+
"path": ["font_family"]
|
|
10832
|
+
});
|
|
10833
|
+
})().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
10834
|
"shape": object({
|
|
11223
10835
|
"radius": union([_enum([
|
|
11224
10836
|
"none",
|
|
@@ -11284,6 +10896,8 @@ const getFlowStepResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ n
|
|
|
11284
10896
|
const getFlowStepResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
11285
10897
|
const getFlowStepResponseBrandingTypographyFontUrlMax = 2048;
|
|
11286
10898
|
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]*)?$");
|
|
10899
|
+
const getFlowStepResponseBrandingTypographyScaleMin = .75;
|
|
10900
|
+
const getFlowStepResponseBrandingTypographyScaleMax = 1.25;
|
|
11287
10901
|
object({
|
|
11288
10902
|
"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
10903
|
"session_id": string().describe("Underlying session ID. Stable across all stacked flows."),
|
|
@@ -11425,11 +11039,18 @@ object({
|
|
|
11425
11039
|
}).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
11040
|
}).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
11041
|
}).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":
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11042
|
+
"typography": (() => {
|
|
11043
|
+
const property = "font_url";
|
|
11044
|
+
const dependent = "font_family";
|
|
11045
|
+
return object({
|
|
11046
|
+
"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"),
|
|
11047
|
+
"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"),
|
|
11048
|
+
"scale": number().min(getFlowStepResponseBrandingTypographyScaleMin).max(getFlowStepResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
11049
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
11050
|
+
"error": "font_family is required when font_url is present",
|
|
11051
|
+
"path": ["font_family"]
|
|
11052
|
+
});
|
|
11053
|
+
})().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
11054
|
"shape": object({
|
|
11434
11055
|
"radius": union([_enum([
|
|
11435
11056
|
"none",
|
|
@@ -11509,6 +11130,8 @@ const submitFlowStepResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ *
|
|
|
11509
11130
|
const submitFlowStepResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
11510
11131
|
const submitFlowStepResponseBrandingTypographyFontUrlMax = 2048;
|
|
11511
11132
|
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]*)?$");
|
|
11133
|
+
const submitFlowStepResponseBrandingTypographyScaleMin = .75;
|
|
11134
|
+
const submitFlowStepResponseBrandingTypographyScaleMax = 1.25;
|
|
11512
11135
|
object({
|
|
11513
11136
|
"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
11137
|
"session_id": string().describe("Underlying session ID. Stable across all stacked flows."),
|
|
@@ -11650,11 +11273,18 @@ object({
|
|
|
11650
11273
|
}).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
11274
|
}).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
11275
|
}).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":
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11276
|
+
"typography": (() => {
|
|
11277
|
+
const property = "font_url";
|
|
11278
|
+
const dependent = "font_family";
|
|
11279
|
+
return object({
|
|
11280
|
+
"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"),
|
|
11281
|
+
"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"),
|
|
11282
|
+
"scale": number().min(submitFlowStepResponseBrandingTypographyScaleMin).max(submitFlowStepResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
11283
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
11284
|
+
"error": "font_family is required when font_url is present",
|
|
11285
|
+
"path": ["font_family"]
|
|
11286
|
+
});
|
|
11287
|
+
})().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
11288
|
"shape": object({
|
|
11659
11289
|
"radius": union([_enum([
|
|
11660
11290
|
"none",
|
|
@@ -12314,12 +11944,12 @@ object({
|
|
|
12314
11944
|
* whose team or user was deactivated, is not listed through it. Grants that
|
|
12315
11945
|
* expired or carry a lower role are left out. A person whose only access is a
|
|
12316
11946
|
* `viewer` or `editor` grant is not an admin and is not listed. Like the
|
|
12317
|
-
* check,
|
|
12318
|
-
* direct grant
|
|
11947
|
+
* check, a direct user grant requires an active user, so a suspended
|
|
11948
|
+
* person's direct grant is not listed.
|
|
12319
11949
|
*
|
|
12320
|
-
*
|
|
12321
|
-
*
|
|
12322
|
-
*
|
|
11950
|
+
* Every caller who passes the project read check sees every listed admin
|
|
11951
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
11952
|
+
* roster.
|
|
12323
11953
|
*
|
|
12324
11954
|
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
12325
11955
|
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
@@ -12359,6 +11989,86 @@ object({
|
|
|
12359
11989
|
"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
11990
|
}).describe("A page of the people who administer a project.");
|
|
12361
11991
|
/**
|
|
11992
|
+
* Lists the people who have a role on a project, with each person's strongest
|
|
11993
|
+
* role and how they hold it.
|
|
11994
|
+
*
|
|
11995
|
+
* A person appears once, with their strongest `relation` (`viewer`, `editor`
|
|
11996
|
+
* or `admin`; a stronger role includes the weaker ones) and one entry in
|
|
11997
|
+
* `sources` per way they hold that role:
|
|
11998
|
+
*
|
|
11999
|
+
* - `owning_team`: an active member of the team that owns the project, the
|
|
12000
|
+
* team a claim attaches the project to. It holds `admin`. Removing a grant
|
|
12001
|
+
* does not remove this access. It ends only when the person leaves the
|
|
12002
|
+
* team or the project changes owner.
|
|
12003
|
+
* - `grant`: an unexpired grant on the project, which is a role given to the
|
|
12004
|
+
* person (`grant_id` only) or to a team they are an active member of
|
|
12005
|
+
* (`grant_id` and `team`). Revoking that grant removes this source.
|
|
12006
|
+
*
|
|
12007
|
+
* Grants of a weaker role than the person's strongest are not in `sources`;
|
|
12008
|
+
* they still show in the project's grants (`queryGrants`,
|
|
12009
|
+
* `POST /grants/query`).
|
|
12010
|
+
*
|
|
12011
|
+
* Pass `relation` to list only the people whose strongest role is at least
|
|
12012
|
+
* that strong: `relation=admin` lists the people who can administer the
|
|
12013
|
+
* project.
|
|
12014
|
+
*
|
|
12015
|
+
* The list follows the authorization check. A person who left a team, or
|
|
12016
|
+
* whose team or user was deactivated, is not listed through it. Expired
|
|
12017
|
+
* grants are left out. Like the check, a direct user grant requires an
|
|
12018
|
+
* active user, so a suspended person's direct grant is not listed.
|
|
12019
|
+
*
|
|
12020
|
+
* Every caller who passes the project read check sees every listed person
|
|
12021
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
12022
|
+
* roster.
|
|
12023
|
+
*
|
|
12024
|
+
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
12025
|
+
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
12026
|
+
* (`sessionCookie`) of a signed-in person who can read the project.
|
|
12027
|
+
* @summary List the members of a project
|
|
12028
|
+
*/
|
|
12029
|
+
const listProjectMembersPathProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
12030
|
+
object({ "project_id": string().regex(listProjectMembersPathProjectIdRegExp, "must be one or more letters, digits, _ or -") });
|
|
12031
|
+
strictObject({
|
|
12032
|
+
"limit": int().min(1).max(100).default(20).describe("Maximum number of items to return."),
|
|
12033
|
+
"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"),
|
|
12034
|
+
"relation": _enum([
|
|
12035
|
+
"viewer",
|
|
12036
|
+
"editor",
|
|
12037
|
+
"admin"
|
|
12038
|
+
]).optional().describe("Only the people whose strongest role is at least this strong. Absent\nlists everyone with a role.\n")
|
|
12039
|
+
});
|
|
12040
|
+
const listProjectMembersResponseMembersItemUserUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
12041
|
+
object({
|
|
12042
|
+
"members": array(object({
|
|
12043
|
+
"user": object({
|
|
12044
|
+
"user_id": string().regex(listProjectMembersResponseMembersItemUserUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
12045
|
+
"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"),
|
|
12046
|
+
"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"),
|
|
12047
|
+
"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")
|
|
12048
|
+
}).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"),
|
|
12049
|
+
"relation": _enum([
|
|
12050
|
+
"viewer",
|
|
12051
|
+
"editor",
|
|
12052
|
+
"admin"
|
|
12053
|
+
]).describe("The person's strongest role on the project. A stronger role includes\nthe weaker ones.\n"),
|
|
12054
|
+
"sources": array(union([object({
|
|
12055
|
+
"type": _enum(["owning_team"]),
|
|
12056
|
+
"team": object({
|
|
12057
|
+
"team_id": string().describe("The referenced team's ID (`team_<opaque>`). Always present."),
|
|
12058
|
+
"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")
|
|
12059
|
+
}).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")
|
|
12060
|
+
}).describe("Admin access as an active member of the team that owns the project."), object({
|
|
12061
|
+
"type": _enum(["grant"]),
|
|
12062
|
+
"grant_id": string().describe("The grant (`asgn_<opaque>`), as served by `GET /grants/{id}`."),
|
|
12063
|
+
"team": object({
|
|
12064
|
+
"team_id": string().describe("The referenced team's ID (`team_<opaque>`). Always present."),
|
|
12065
|
+
"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")
|
|
12066
|
+
}).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")
|
|
12067
|
+
}).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")
|
|
12068
|
+
}).describe("One person with a role on the project: their strongest role, and every way\nthey hold it.\n")),
|
|
12069
|
+
"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")
|
|
12070
|
+
}).describe("A page of the people who have a role on a project.");
|
|
12071
|
+
/**
|
|
12362
12072
|
* Starts a claim, which attaches a project created before sign-in to a
|
|
12363
12073
|
* team, and returns the `claim_url` to open in a browser.
|
|
12364
12074
|
*
|
|
@@ -12584,7 +12294,7 @@ object({ "origin": string().max(removeProjectPreviewBodyOriginMax).regex(removeP
|
|
|
12584
12294
|
const createSessionBodyProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
12585
12295
|
object({
|
|
12586
12296
|
"project_id": string().regex(createSessionBodyProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
12587
|
-
"user_agent":
|
|
12297
|
+
"user_agent": looseObject({
|
|
12588
12298
|
"fingerprint": string().optional().describe("Client-supplied device fingerprint."),
|
|
12589
12299
|
"ip": string().optional().describe("IP address of the client.")
|
|
12590
12300
|
}).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 +12346,7 @@ object({
|
|
|
12636
12346
|
}).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
12347
|
"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
12348
|
"metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
|
|
12639
|
-
"user_agent": union([
|
|
12349
|
+
"user_agent": union([looseObject({
|
|
12640
12350
|
"fingerprint": string().optional().describe("Client-supplied device fingerprint."),
|
|
12641
12351
|
"ip": string().optional().describe("IP address of the client at session creation.")
|
|
12642
12352
|
}), _null()]).optional().describe("User agent information captured at session creation."),
|
|
@@ -12734,7 +12444,7 @@ object({
|
|
|
12734
12444
|
}).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
12445
|
"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
12446
|
"metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
|
|
12737
|
-
"user_agent": union([
|
|
12447
|
+
"user_agent": union([looseObject({
|
|
12738
12448
|
"fingerprint": string().optional().describe("Client-supplied device fingerprint."),
|
|
12739
12449
|
"ip": string().optional().describe("IP address of the client at session creation.")
|
|
12740
12450
|
}), _null()]).optional().describe("User agent information captured at session creation."),
|
|
@@ -12831,7 +12541,7 @@ object({
|
|
|
12831
12541
|
}).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
12542
|
"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
12543
|
"metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
|
|
12834
|
-
"user_agent": union([
|
|
12544
|
+
"user_agent": union([looseObject({
|
|
12835
12545
|
"fingerprint": string().optional().describe("Client-supplied device fingerprint."),
|
|
12836
12546
|
"ip": string().optional().describe("IP address of the client at session creation.")
|
|
12837
12547
|
}), _null()]).optional().describe("User agent information captured at session creation."),
|
|
@@ -12898,7 +12608,7 @@ object({
|
|
|
12898
12608
|
}).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
12609
|
"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
12610
|
"metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
|
|
12901
|
-
"user_agent": union([
|
|
12611
|
+
"user_agent": union([looseObject({
|
|
12902
12612
|
"fingerprint": string().optional().describe("Client-supplied device fingerprint."),
|
|
12903
12613
|
"ip": string().optional().describe("IP address of the client at session creation.")
|
|
12904
12614
|
}), _null()]).optional().describe("User agent information captured at session creation."),
|
|
@@ -12980,7 +12690,7 @@ object({
|
|
|
12980
12690
|
}).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
12691
|
"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
12692
|
"metadata": union([record(string(), unknown()), _null()]).optional().describe("Arbitrary key/value metadata attached to the session."),
|
|
12983
|
-
"user_agent": union([
|
|
12693
|
+
"user_agent": union([looseObject({
|
|
12984
12694
|
"fingerprint": string().optional().describe("Client-supplied device fingerprint."),
|
|
12985
12695
|
"ip": string().optional().describe("IP address of the client at session creation.")
|
|
12986
12696
|
}), _null()]).optional().describe("User agent information captured at session creation."),
|
|
@@ -13044,7 +12754,7 @@ strictObject({
|
|
|
13044
12754
|
});
|
|
13045
12755
|
const publishSchemaBodyOneMetaSchemaMax = 1024;
|
|
13046
12756
|
const publishSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
13047
|
-
const PublishSchemaBody = union([
|
|
12757
|
+
const PublishSchemaBody = union([looseObject({
|
|
13048
12758
|
"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
12759
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13050
12760
|
"metaSchema": url().max(publishSchemaBodyOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13060,7 +12770,7 @@ const PublishSchemaBody = union([object({
|
|
|
13060
12770
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13061
12771
|
"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
12772
|
"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(),
|
|
12773
|
+
"properties": record(string(), looseObject({
|
|
13064
12774
|
"x-unique": union([_enum([
|
|
13065
12775
|
"unspecified",
|
|
13066
12776
|
"project",
|
|
@@ -13078,7 +12788,7 @@ const publishSchemaResponseSchemaOneMetaSchemaMax = 1024;
|
|
|
13078
12788
|
const publishSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
13079
12789
|
object({
|
|
13080
12790
|
"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":
|
|
12791
|
+
"schema": looseObject({
|
|
13082
12792
|
"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
12793
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13084
12794
|
"metaSchema": url().max(publishSchemaResponseSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13094,7 +12804,7 @@ object({
|
|
|
13094
12804
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13095
12805
|
"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
12806
|
"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(),
|
|
12807
|
+
"properties": record(string(), looseObject({
|
|
13098
12808
|
"x-unique": union([_enum([
|
|
13099
12809
|
"unspecified",
|
|
13100
12810
|
"project",
|
|
@@ -13133,7 +12843,7 @@ const listSchemasResponseSchemasItemSchemaOneXAuthMethodsSsoProvidersItemRegExp
|
|
|
13133
12843
|
object({
|
|
13134
12844
|
"schemas": array(object({
|
|
13135
12845
|
"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":
|
|
12846
|
+
"schema": looseObject({
|
|
13137
12847
|
"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
12848
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13139
12849
|
"metaSchema": url().max(listSchemasResponseSchemasItemSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13149,7 +12859,7 @@ object({
|
|
|
13149
12859
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13150
12860
|
"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
12861
|
"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(),
|
|
12862
|
+
"properties": record(string(), looseObject({
|
|
13153
12863
|
"x-unique": union([_enum([
|
|
13154
12864
|
"unspecified",
|
|
13155
12865
|
"project",
|
|
@@ -13178,7 +12888,7 @@ const getSchemaResponseSchemaOneMetaSchemaMax = 1024;
|
|
|
13178
12888
|
const getSchemaResponseSchemaOneXAuthMethodsSsoProvidersItemRegExp = /* @__PURE__ */ new RegExp("^[a-z0-9][a-z0-9_-]*$");
|
|
13179
12889
|
object({
|
|
13180
12890
|
"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":
|
|
12891
|
+
"schema": looseObject({
|
|
13182
12892
|
"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
12893
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13184
12894
|
"metaSchema": url().max(getSchemaResponseSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13194,7 +12904,7 @@ object({
|
|
|
13194
12904
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13195
12905
|
"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
12906
|
"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(),
|
|
12907
|
+
"properties": record(string(), looseObject({
|
|
13198
12908
|
"x-unique": union([_enum([
|
|
13199
12909
|
"unspecified",
|
|
13200
12910
|
"project",
|
|
@@ -13341,7 +13051,7 @@ object({
|
|
|
13341
13051
|
}).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
13052
|
"user_schema": union([object({
|
|
13343
13053
|
"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":
|
|
13054
|
+
"schema": looseObject({
|
|
13345
13055
|
"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
13056
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13347
13057
|
"metaSchema": url().max(publishFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13357,7 +13067,7 @@ object({
|
|
|
13357
13067
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13358
13068
|
"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
13069
|
"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(),
|
|
13070
|
+
"properties": record(string(), looseObject({
|
|
13361
13071
|
"x-unique": union([_enum([
|
|
13362
13072
|
"unspecified",
|
|
13363
13073
|
"project",
|
|
@@ -13453,7 +13163,7 @@ object({
|
|
|
13453
13163
|
}).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
13164
|
"user_schema": union([object({
|
|
13455
13165
|
"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":
|
|
13166
|
+
"schema": looseObject({
|
|
13457
13167
|
"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
13168
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13459
13169
|
"metaSchema": url().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13469,7 +13179,7 @@ object({
|
|
|
13469
13179
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13470
13180
|
"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
13181
|
"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(),
|
|
13182
|
+
"properties": record(string(), looseObject({
|
|
13473
13183
|
"x-unique": union([_enum([
|
|
13474
13184
|
"unspecified",
|
|
13475
13185
|
"project",
|
|
@@ -13549,7 +13259,7 @@ object({
|
|
|
13549
13259
|
}).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
13260
|
"user_schema": union([object({
|
|
13551
13261
|
"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":
|
|
13262
|
+
"schema": looseObject({
|
|
13553
13263
|
"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
13264
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
13555
13265
|
"metaSchema": url().max(getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -13565,7 +13275,7 @@ object({
|
|
|
13565
13275
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
13566
13276
|
"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
13277
|
"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(),
|
|
13278
|
+
"properties": record(string(), looseObject({
|
|
13569
13279
|
"x-unique": union([_enum([
|
|
13570
13280
|
"unspecified",
|
|
13571
13281
|
"project",
|
|
@@ -13848,6 +13558,8 @@ const publishBrandingBodyThemeDarkPaletteErrorRegExp = /* @__PURE__ */ new RegEx
|
|
|
13848
13558
|
const publishBrandingBodyTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
13849
13559
|
const publishBrandingBodyTypographyFontUrlMax = 2048;
|
|
13850
13560
|
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]*)?$");
|
|
13561
|
+
const publishBrandingBodyTypographyScaleMin = .75;
|
|
13562
|
+
const publishBrandingBodyTypographyScaleMax = 1.25;
|
|
13851
13563
|
object({
|
|
13852
13564
|
"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
13565
|
"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 +13606,18 @@ object({
|
|
|
13894
13606
|
}).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
13607
|
}).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
13608
|
}).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":
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13609
|
+
"typography": (() => {
|
|
13610
|
+
const property = "font_url";
|
|
13611
|
+
const dependent = "font_family";
|
|
13612
|
+
return object({
|
|
13613
|
+
"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"),
|
|
13614
|
+
"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"),
|
|
13615
|
+
"scale": number().min(publishBrandingBodyTypographyScaleMin).max(publishBrandingBodyTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
13616
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
13617
|
+
"error": "font_family is required when font_url is present",
|
|
13618
|
+
"path": ["font_family"]
|
|
13619
|
+
});
|
|
13620
|
+
})().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
13621
|
"shape": object({
|
|
13903
13622
|
"radius": union([_enum([
|
|
13904
13623
|
"none",
|
|
@@ -13952,6 +13671,8 @@ const publishBrandingResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__
|
|
|
13952
13671
|
const publishBrandingResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
13953
13672
|
const publishBrandingResponseBrandingTypographyFontUrlMax = 2048;
|
|
13954
13673
|
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]*)?$");
|
|
13674
|
+
const publishBrandingResponseBrandingTypographyScaleMin = .75;
|
|
13675
|
+
const publishBrandingResponseBrandingTypographyScaleMax = 1.25;
|
|
13955
13676
|
object({
|
|
13956
13677
|
"id": string().describe("The unique identifier of this branding revision."),
|
|
13957
13678
|
"created_at": datetime({ "offset": true }).describe("When this revision was published."),
|
|
@@ -14001,11 +13722,18 @@ object({
|
|
|
14001
13722
|
}).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
13723
|
}).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
13724
|
}).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":
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
13725
|
+
"typography": (() => {
|
|
13726
|
+
const property = "font_url";
|
|
13727
|
+
const dependent = "font_family";
|
|
13728
|
+
return object({
|
|
13729
|
+
"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"),
|
|
13730
|
+
"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"),
|
|
13731
|
+
"scale": number().min(publishBrandingResponseBrandingTypographyScaleMin).max(publishBrandingResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
13732
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
13733
|
+
"error": "font_family is required when font_url is present",
|
|
13734
|
+
"path": ["font_family"]
|
|
13735
|
+
});
|
|
13736
|
+
})().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
13737
|
"shape": object({
|
|
14010
13738
|
"radius": union([_enum([
|
|
14011
13739
|
"none",
|
|
@@ -14085,6 +13813,8 @@ const getBrandingResponseBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ */ n
|
|
|
14085
13813
|
const getBrandingResponseBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
14086
13814
|
const getBrandingResponseBrandingTypographyFontUrlMax = 2048;
|
|
14087
13815
|
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]*)?$");
|
|
13816
|
+
const getBrandingResponseBrandingTypographyScaleMin = .75;
|
|
13817
|
+
const getBrandingResponseBrandingTypographyScaleMax = 1.25;
|
|
14088
13818
|
object({
|
|
14089
13819
|
"id": string().describe("The unique identifier of this branding revision."),
|
|
14090
13820
|
"created_at": datetime({ "offset": true }).describe("When this revision was published."),
|
|
@@ -14134,11 +13864,18 @@ object({
|
|
|
14134
13864
|
}).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
13865
|
}).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
13866
|
}).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":
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
13867
|
+
"typography": (() => {
|
|
13868
|
+
const property = "font_url";
|
|
13869
|
+
const dependent = "font_family";
|
|
13870
|
+
return object({
|
|
13871
|
+
"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"),
|
|
13872
|
+
"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"),
|
|
13873
|
+
"scale": number().min(getBrandingResponseBrandingTypographyScaleMin).max(getBrandingResponseBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
13874
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
13875
|
+
"error": "font_family is required when font_url is present",
|
|
13876
|
+
"path": ["font_family"]
|
|
13877
|
+
});
|
|
13878
|
+
})().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
13879
|
"shape": object({
|
|
14143
13880
|
"radius": union([_enum([
|
|
14144
13881
|
"none",
|
|
@@ -14160,7 +13897,7 @@ object({ "oauth_settings_id": string().describe("The OAuth settings revision ID:
|
|
|
14160
13897
|
object({
|
|
14161
13898
|
"id": string().describe("The unique identifier of this OAuth settings revision."),
|
|
14162
13899
|
"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
|
|
13900
|
+
"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
13901
|
}).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
13902
|
/**
|
|
14166
13903
|
* Creates or revises an identity provider, an external sign-in such as
|
|
@@ -15157,9 +14894,11 @@ const buildReleaseBodyBundleBrandingThemeDarkPaletteErrorRegExp = /* @__PURE__ *
|
|
|
15157
14894
|
const buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp = /* @__PURE__ */ new RegExp("^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$");
|
|
15158
14895
|
const buildReleaseBodyBundleBrandingTypographyFontUrlMax = 2048;
|
|
15159
14896
|
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]*)?$");
|
|
14897
|
+
const buildReleaseBodyBundleBrandingTypographyScaleMin = .75;
|
|
14898
|
+
const buildReleaseBodyBundleBrandingTypographyScaleMax = 1.25;
|
|
15160
14899
|
object({
|
|
15161
14900
|
"bundle": object({
|
|
15162
|
-
"schemas": array(union([
|
|
14901
|
+
"schemas": array(union([looseObject({
|
|
15163
14902
|
"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
14903
|
"kind": literal("user-schema").describe("Must be `user-schema`. It selects this schema type in a create request."),
|
|
15165
14904
|
"metaSchema": url().max(buildReleaseBodyBundleSchemasItemOneMetaSchemaMax).describe("The URI of the user meta-schema version this schema uses."),
|
|
@@ -15175,7 +14914,7 @@ object({
|
|
|
15175
14914
|
}).describe("The authentication methods users of this schema can use, one entry per method. At least one is required."),
|
|
15176
14915
|
"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
14916
|
"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(),
|
|
14917
|
+
"properties": record(string(), looseObject({
|
|
15179
14918
|
"x-unique": union([_enum([
|
|
15180
14919
|
"unspecified",
|
|
15181
14920
|
"project",
|
|
@@ -15314,11 +15053,18 @@ object({
|
|
|
15314
15053
|
}).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
15054
|
}).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
15055
|
}).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":
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15056
|
+
"typography": (() => {
|
|
15057
|
+
const property = "font_url";
|
|
15058
|
+
const dependent = "font_family";
|
|
15059
|
+
return object({
|
|
15060
|
+
"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"),
|
|
15061
|
+
"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"),
|
|
15062
|
+
"scale": number().min(buildReleaseBodyBundleBrandingTypographyScaleMin).max(buildReleaseBodyBundleBrandingTypographyScaleMax).optional().describe("Multiplier on the base text sizes, `1` when omitted.")
|
|
15063
|
+
}).refine(((value) => !(property in value) || dependent in value), {
|
|
15064
|
+
"error": "font_family is required when font_url is present",
|
|
15065
|
+
"path": ["font_family"]
|
|
15066
|
+
});
|
|
15067
|
+
})().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
15068
|
"shape": object({
|
|
15323
15069
|
"radius": union([_enum([
|
|
15324
15070
|
"none",
|
|
@@ -15335,7 +15081,7 @@ object({
|
|
|
15335
15081
|
"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
15082
|
}).optional().describe("Corner rounding, spacing and logo size. Shared across theme sides.\n")
|
|
15337
15083
|
}).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
|
|
15084
|
+
"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
15085
|
}).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
15086
|
"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
15087
|
"git_sha": string().max(64).optional().describe("The source commit the caller was operating from."),
|
|
@@ -15788,7 +15534,7 @@ const createInvitationBodyOneOneReplacesInvitationIdRegExp = /* @__PURE__ */ new
|
|
|
15788
15534
|
const createInvitationBodyTwoOneReplacesInvitationIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15789
15535
|
const createInvitationBodyTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15790
15536
|
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
|
|
15537
|
+
"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
15538
|
"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
15539
|
}).describe("Shared optional fields on every create-invitation request.").and(object({
|
|
15794
15540
|
"type": _enum(["project_member"]),
|
|
@@ -15798,7 +15544,7 @@ union([object({
|
|
|
15798
15544
|
"admin"
|
|
15799
15545
|
]).describe("The project role the accepter receives, as in `POST /grants`.") }).describe("Type-specific input for a `project_member` invitation.")
|
|
15800
15546
|
})).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
|
|
15547
|
+
"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
15548
|
"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
15549
|
}).describe("Shared optional fields on every create-invitation request.").and(object({
|
|
15804
15550
|
"type": _enum(["team_member"]),
|
|
@@ -15809,13 +15555,15 @@ union([object({
|
|
|
15809
15555
|
})).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
15556
|
const createInvitationResponseOneOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15811
15557
|
const createInvitationResponseOneOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15558
|
+
const createInvitationResponseOneOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
15812
15559
|
const createInvitationResponseTwoOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15813
15560
|
const createInvitationResponseTwoOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15561
|
+
const createInvitationResponseTwoOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
15814
15562
|
const createInvitationResponseTwoOneTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15815
15563
|
union([object({
|
|
15816
15564
|
"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
15565
|
"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
|
|
15566
|
+
"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
15567
|
"status": _enum([
|
|
15820
15568
|
"pending",
|
|
15821
15569
|
"accepted",
|
|
@@ -15832,8 +15580,14 @@ union([object({
|
|
|
15832
15580
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
15833
15581
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
15834
15582
|
"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
|
-
"
|
|
15836
|
-
"
|
|
15583
|
+
"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"),
|
|
15584
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15585
|
+
"inviter": union([object({
|
|
15586
|
+
"user_id": string().regex(createInvitationResponseOneOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15587
|
+
"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"),
|
|
15588
|
+
"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"),
|
|
15589
|
+
"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")
|
|
15590
|
+
}).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
15591
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
15838
15592
|
"type": _enum(["project_member"]),
|
|
15839
15593
|
"project_member": object({ "relation": _enum([
|
|
@@ -15844,7 +15598,7 @@ union([object({
|
|
|
15844
15598
|
})).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
15599
|
"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
15600
|
"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
|
|
15601
|
+
"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
15602
|
"status": _enum([
|
|
15849
15603
|
"pending",
|
|
15850
15604
|
"accepted",
|
|
@@ -15861,8 +15615,14 @@ union([object({
|
|
|
15861
15615
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
15862
15616
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
15863
15617
|
"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
|
-
"
|
|
15865
|
-
"
|
|
15618
|
+
"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"),
|
|
15619
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15620
|
+
"inviter": union([object({
|
|
15621
|
+
"user_id": string().regex(createInvitationResponseTwoOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15622
|
+
"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"),
|
|
15623
|
+
"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"),
|
|
15624
|
+
"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")
|
|
15625
|
+
}).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
15626
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
15867
15627
|
"type": _enum(["team_member"]),
|
|
15868
15628
|
"team_member": object({
|
|
@@ -15874,8 +15634,11 @@ union([object({
|
|
|
15874
15634
|
* Lists a project's invitations, newest first, in any status, paginated with
|
|
15875
15635
|
* `limit` and `page_token`.
|
|
15876
15636
|
*
|
|
15877
|
-
* Optional `status` and `type` filters narrow the page. `
|
|
15878
|
-
*
|
|
15637
|
+
* Optional `status` and `type` filters narrow the page. Repeat `status` to
|
|
15638
|
+
* match any of several statuses, for example
|
|
15639
|
+
* `status=pending&status=expired&status=rejected`. `expired` is derived on
|
|
15640
|
+
* read from `expires_at`. `expand=inviter` adds `inviter` to each
|
|
15641
|
+
* invitation. Authenticate with a project secret (`oauth2`) or
|
|
15879
15642
|
* a console session cookie (`sessionCookie`). Listing needs the same project
|
|
15880
15643
|
* `admin` check as `createGrant` (`POST /grants`).
|
|
15881
15644
|
* @summary List invitations
|
|
@@ -15885,24 +15648,27 @@ strictObject({
|
|
|
15885
15648
|
"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
15649
|
"limit": int().min(1).max(100).default(20).describe("Maximum number of items to return."),
|
|
15887
15650
|
"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([
|
|
15651
|
+
"status": array(_enum([
|
|
15889
15652
|
"pending",
|
|
15890
15653
|
"accepted",
|
|
15891
15654
|
"rejected",
|
|
15892
15655
|
"expired"
|
|
15893
|
-
]).optional().describe("Only invitations with this status."),
|
|
15894
|
-
"type": _enum(["project_member", "team_member"]).optional().describe("Only invitations of this type.")
|
|
15656
|
+
]).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"),
|
|
15657
|
+
"type": _enum(["project_member", "team_member"]).optional().describe("Only invitations of this type."),
|
|
15658
|
+
"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
15659
|
});
|
|
15896
15660
|
const listInvitationsResponseInvitationsItemOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15897
15661
|
const listInvitationsResponseInvitationsItemOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15662
|
+
const listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
15898
15663
|
const listInvitationsResponseInvitationsItemTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15899
15664
|
const listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15665
|
+
const listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
15900
15666
|
const listInvitationsResponseInvitationsItemTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15901
15667
|
object({
|
|
15902
15668
|
"invitations": array(union([object({
|
|
15903
15669
|
"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
15670
|
"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
|
|
15671
|
+
"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
15672
|
"status": _enum([
|
|
15907
15673
|
"pending",
|
|
15908
15674
|
"accepted",
|
|
@@ -15919,8 +15685,14 @@ object({
|
|
|
15919
15685
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
15920
15686
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
15921
15687
|
"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
|
-
"
|
|
15923
|
-
"
|
|
15688
|
+
"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"),
|
|
15689
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15690
|
+
"inviter": union([object({
|
|
15691
|
+
"user_id": string().regex(listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15692
|
+
"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"),
|
|
15693
|
+
"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"),
|
|
15694
|
+
"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")
|
|
15695
|
+
}).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
15696
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
15925
15697
|
"type": _enum(["project_member"]),
|
|
15926
15698
|
"project_member": object({ "relation": _enum([
|
|
@@ -15931,7 +15703,7 @@ object({
|
|
|
15931
15703
|
})).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
|
|
15932
15704
|
"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
15705
|
"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
|
|
15706
|
+
"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
15707
|
"status": _enum([
|
|
15936
15708
|
"pending",
|
|
15937
15709
|
"accepted",
|
|
@@ -15948,8 +15720,14 @@ object({
|
|
|
15948
15720
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
15949
15721
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
15950
15722
|
"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
|
-
"
|
|
15952
|
-
"
|
|
15723
|
+
"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"),
|
|
15724
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15725
|
+
"inviter": union([object({
|
|
15726
|
+
"user_id": string().regex(listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15727
|
+
"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"),
|
|
15728
|
+
"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"),
|
|
15729
|
+
"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")
|
|
15730
|
+
}).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
15731
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
15954
15732
|
"type": _enum(["team_member"]),
|
|
15955
15733
|
"team_member": object({
|
|
@@ -15961,7 +15739,9 @@ object({
|
|
|
15961
15739
|
}).describe("A page of a project's invitations, newest first.");
|
|
15962
15740
|
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
15741
|
const lookupInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15742
|
+
const lookupInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
15964
15743
|
const lookupInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15744
|
+
const lookupInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
15965
15745
|
const lookupInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15966
15746
|
union([object({
|
|
15967
15747
|
"project_id": string().regex(lookupInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
@@ -15973,6 +15753,12 @@ union([object({
|
|
|
15973
15753
|
"system",
|
|
15974
15754
|
"agent"
|
|
15975
15755
|
]), _null()]).optional().describe("What kind of principal `created_by` names."),
|
|
15756
|
+
"inviter": union([object({
|
|
15757
|
+
"user_id": string().regex(lookupInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15758
|
+
"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"),
|
|
15759
|
+
"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"),
|
|
15760
|
+
"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")
|
|
15761
|
+
}).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
15762
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires."),
|
|
15977
15763
|
"status": _enum([
|
|
15978
15764
|
"pending",
|
|
@@ -15997,6 +15783,12 @@ union([object({
|
|
|
15997
15783
|
"system",
|
|
15998
15784
|
"agent"
|
|
15999
15785
|
]), _null()]).optional().describe("What kind of principal `created_by` names."),
|
|
15786
|
+
"inviter": union([object({
|
|
15787
|
+
"user_id": string().regex(lookupInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15788
|
+
"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"),
|
|
15789
|
+
"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"),
|
|
15790
|
+
"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")
|
|
15791
|
+
}).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
15792
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires."),
|
|
16001
15793
|
"status": _enum([
|
|
16002
15794
|
"pending",
|
|
@@ -16014,13 +15806,15 @@ union([object({
|
|
|
16014
15806
|
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
15807
|
const acceptInvitationResponseOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16016
15808
|
const acceptInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15809
|
+
const acceptInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
16017
15810
|
const acceptInvitationResponseTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16018
15811
|
const acceptInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15812
|
+
const acceptInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
16019
15813
|
const acceptInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16020
15814
|
union([object({
|
|
16021
15815
|
"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
15816
|
"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
|
|
15817
|
+
"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
15818
|
"status": _enum([
|
|
16025
15819
|
"pending",
|
|
16026
15820
|
"accepted",
|
|
@@ -16037,8 +15831,14 @@ union([object({
|
|
|
16037
15831
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
16038
15832
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
16039
15833
|
"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
|
-
"
|
|
16041
|
-
"
|
|
15834
|
+
"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"),
|
|
15835
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15836
|
+
"inviter": union([object({
|
|
15837
|
+
"user_id": string().regex(acceptInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15838
|
+
"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"),
|
|
15839
|
+
"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"),
|
|
15840
|
+
"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")
|
|
15841
|
+
}).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
15842
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
16043
15843
|
"type": _enum(["project_member"]),
|
|
16044
15844
|
"project_member": object({ "relation": _enum([
|
|
@@ -16049,7 +15849,7 @@ union([object({
|
|
|
16049
15849
|
})).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
|
|
16050
15850
|
"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
15851
|
"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
|
|
15852
|
+
"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
15853
|
"status": _enum([
|
|
16054
15854
|
"pending",
|
|
16055
15855
|
"accepted",
|
|
@@ -16066,8 +15866,14 @@ union([object({
|
|
|
16066
15866
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
16067
15867
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
16068
15868
|
"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
|
-
"
|
|
16070
|
-
"
|
|
15869
|
+
"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"),
|
|
15870
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15871
|
+
"inviter": union([object({
|
|
15872
|
+
"user_id": string().regex(acceptInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15873
|
+
"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"),
|
|
15874
|
+
"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"),
|
|
15875
|
+
"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")
|
|
15876
|
+
}).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
15877
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
16072
15878
|
"type": _enum(["team_member"]),
|
|
16073
15879
|
"team_member": object({
|
|
@@ -16078,13 +15884,15 @@ union([object({
|
|
|
16078
15884
|
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
15885
|
const rejectInvitationResponseOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16080
15886
|
const rejectInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15887
|
+
const rejectInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
16081
15888
|
const rejectInvitationResponseTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16082
15889
|
const rejectInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15890
|
+
const rejectInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
16083
15891
|
const rejectInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16084
15892
|
union([object({
|
|
16085
15893
|
"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
15894
|
"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
|
|
15895
|
+
"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
15896
|
"status": _enum([
|
|
16089
15897
|
"pending",
|
|
16090
15898
|
"accepted",
|
|
@@ -16101,8 +15909,14 @@ union([object({
|
|
|
16101
15909
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
16102
15910
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
16103
15911
|
"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
|
-
"
|
|
16105
|
-
"
|
|
15912
|
+
"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"),
|
|
15913
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15914
|
+
"inviter": union([object({
|
|
15915
|
+
"user_id": string().regex(rejectInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15916
|
+
"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"),
|
|
15917
|
+
"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"),
|
|
15918
|
+
"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")
|
|
15919
|
+
}).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
15920
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
16107
15921
|
"type": _enum(["project_member"]),
|
|
16108
15922
|
"project_member": object({ "relation": _enum([
|
|
@@ -16113,7 +15927,7 @@ union([object({
|
|
|
16113
15927
|
})).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
|
|
16114
15928
|
"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
15929
|
"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
|
|
15930
|
+
"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
15931
|
"status": _enum([
|
|
16118
15932
|
"pending",
|
|
16119
15933
|
"accepted",
|
|
@@ -16130,8 +15944,14 @@ union([object({
|
|
|
16130
15944
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
16131
15945
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
16132
15946
|
"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
|
-
"
|
|
16134
|
-
"
|
|
15947
|
+
"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"),
|
|
15948
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
15949
|
+
"inviter": union([object({
|
|
15950
|
+
"user_id": string().regex(rejectInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
15951
|
+
"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"),
|
|
15952
|
+
"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"),
|
|
15953
|
+
"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")
|
|
15954
|
+
}).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
15955
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
16136
15956
|
"type": _enum(["team_member"]),
|
|
16137
15957
|
"team_member": object({
|
|
@@ -16154,13 +15974,15 @@ const getInvitationQueryProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-
|
|
|
16154
15974
|
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
15975
|
const getInvitationResponseOneOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16156
15976
|
const getInvitationResponseOneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15977
|
+
const getInvitationResponseOneOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
16157
15978
|
const getInvitationResponseTwoOneIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16158
15979
|
const getInvitationResponseTwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
15980
|
+
const getInvitationResponseTwoOneInviterOneUserIdRegExp = /* @__PURE__ */ new RegExp("^user_[a-zA-Z0-9_-]+$");
|
|
16159
15981
|
const getInvitationResponseTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16160
15982
|
union([object({
|
|
16161
15983
|
"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
15984
|
"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
|
|
15985
|
+
"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
15986
|
"status": _enum([
|
|
16165
15987
|
"pending",
|
|
16166
15988
|
"accepted",
|
|
@@ -16177,8 +15999,14 @@ union([object({
|
|
|
16177
15999
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
16178
16000
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
16179
16001
|
"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
|
-
"
|
|
16181
|
-
"
|
|
16002
|
+
"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"),
|
|
16003
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
16004
|
+
"inviter": union([object({
|
|
16005
|
+
"user_id": string().regex(getInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
16006
|
+
"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"),
|
|
16007
|
+
"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"),
|
|
16008
|
+
"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")
|
|
16009
|
+
}).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
16010
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
16183
16011
|
"type": _enum(["project_member"]),
|
|
16184
16012
|
"project_member": object({ "relation": _enum([
|
|
@@ -16189,7 +16017,7 @@ union([object({
|
|
|
16189
16017
|
})).describe("An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n"), object({
|
|
16190
16018
|
"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
16019
|
"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
|
|
16020
|
+
"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
16021
|
"status": _enum([
|
|
16194
16022
|
"pending",
|
|
16195
16023
|
"accepted",
|
|
@@ -16206,8 +16034,14 @@ union([object({
|
|
|
16206
16034
|
"created_at": datetime({ "offset": true }).describe("When the invitation was created."),
|
|
16207
16035
|
"expires_at": datetime({ "offset": true }).describe("When the invitation expires (72 hours after create)."),
|
|
16208
16036
|
"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
|
-
"
|
|
16210
|
-
"
|
|
16037
|
+
"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"),
|
|
16038
|
+
"responded_at": union([datetime({ "offset": true }), _null()]).optional().describe("When the invitation was accepted or declined. Null while it is pending or\nexpired.\n"),
|
|
16039
|
+
"inviter": union([object({
|
|
16040
|
+
"user_id": string().regex(getInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
16041
|
+
"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"),
|
|
16042
|
+
"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"),
|
|
16043
|
+
"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")
|
|
16044
|
+
}).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
16045
|
}).describe("Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n").and(object({
|
|
16212
16046
|
"type": _enum(["team_member"]),
|
|
16213
16047
|
"team_member": object({
|
|
@@ -16216,10 +16050,9 @@ union([object({
|
|
|
16216
16050
|
}).describe("Type-specific input for a `team_member` invitation.")
|
|
16217
16051
|
})).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
16052
|
/**
|
|
16219
|
-
* Deletes a pending
|
|
16220
|
-
*
|
|
16221
|
-
* same opaque `404` as a miss.
|
|
16222
|
-
* later cleanup job removes them.
|
|
16053
|
+
* Deletes a pending, expired or rejected invitation, with its metadata. A
|
|
16054
|
+
* pending invitation's link can no longer be redeemed. An accepted
|
|
16055
|
+
* invitation answers the same opaque `404` as a miss.
|
|
16223
16056
|
*
|
|
16224
16057
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
16225
16058
|
* (`sessionCookie`). Cancelling needs the same project `admin` check as
|
|
@@ -16318,11 +16151,11 @@ const listEventsResponseEventsItemTwothreeOneProjectIdRegExp = /* @__PURE__ */ n
|
|
|
16318
16151
|
const listEventsResponseEventsItemTwofourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16319
16152
|
const listEventsResponseEventsItemTwofiveOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16320
16153
|
const listEventsResponseEventsItemTwosixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16321
|
-
const listEventsResponseEventsItemTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16322
16154
|
const listEventsResponseEventsItemTwosevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16155
|
+
const listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16323
16156
|
const listEventsResponseEventsItemTwoeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16324
|
-
const listEventsResponseEventsItemTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16325
16157
|
const listEventsResponseEventsItemTwonineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16158
|
+
const listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16326
16159
|
const listEventsResponseEventsItemThreezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16327
16160
|
const listEventsResponseEventsItemThreeoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16328
16161
|
const listEventsResponseEventsItemThreetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -16333,9 +16166,9 @@ const listEventsResponseEventsItemThreesixOneProjectIdRegExp = /* @__PURE__ */ n
|
|
|
16333
16166
|
const listEventsResponseEventsItemThreesevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16334
16167
|
const listEventsResponseEventsItemThreeeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16335
16168
|
const listEventsResponseEventsItemThreenineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16336
|
-
const listEventsResponseEventsItemThreenineTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
|
|
16337
16169
|
const listEventsResponseEventsItemFourzeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16338
16170
|
const listEventsResponseEventsItemFouroneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16171
|
+
const listEventsResponseEventsItemFouroneTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
|
|
16339
16172
|
const listEventsResponseEventsItemFourtwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16340
16173
|
const listEventsResponseEventsItemFourthreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16341
16174
|
const listEventsResponseEventsItemFourfourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -16347,6 +16180,8 @@ const listEventsResponseEventsItemFournineOneProjectIdRegExp = /* @__PURE__ */ n
|
|
|
16347
16180
|
const listEventsResponseEventsItemFivezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16348
16181
|
const listEventsResponseEventsItemFiveoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16349
16182
|
const listEventsResponseEventsItemFivetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16183
|
+
const listEventsResponseEventsItemFivethreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16184
|
+
const listEventsResponseEventsItemFivefourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
16350
16185
|
object({
|
|
16351
16186
|
"events": array(union([
|
|
16352
16187
|
object({
|
|
@@ -16388,7 +16223,7 @@ object({
|
|
|
16388
16223
|
"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
16224
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16390
16225
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16391
|
-
"metadata":
|
|
16226
|
+
"metadata": looseObject({
|
|
16392
16227
|
"authorization": object({
|
|
16393
16228
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16394
16229
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16447,7 +16282,7 @@ object({
|
|
|
16447
16282
|
"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
16283
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16449
16284
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16450
|
-
"metadata":
|
|
16285
|
+
"metadata": looseObject({
|
|
16451
16286
|
"authorization": object({
|
|
16452
16287
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16453
16288
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16506,7 +16341,7 @@ object({
|
|
|
16506
16341
|
"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
16342
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16508
16343
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16509
|
-
"metadata":
|
|
16344
|
+
"metadata": looseObject({
|
|
16510
16345
|
"authorization": object({
|
|
16511
16346
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16512
16347
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16560,7 +16395,7 @@ object({
|
|
|
16560
16395
|
"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
16396
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16562
16397
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16563
|
-
"metadata":
|
|
16398
|
+
"metadata": looseObject({
|
|
16564
16399
|
"authorization": object({
|
|
16565
16400
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16566
16401
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16614,7 +16449,7 @@ object({
|
|
|
16614
16449
|
"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
16450
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16616
16451
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16617
|
-
"metadata":
|
|
16452
|
+
"metadata": looseObject({
|
|
16618
16453
|
"authorization": object({
|
|
16619
16454
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16620
16455
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16672,7 +16507,7 @@ object({
|
|
|
16672
16507
|
"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
16508
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16674
16509
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16675
|
-
"metadata":
|
|
16510
|
+
"metadata": looseObject({
|
|
16676
16511
|
"authorization": object({
|
|
16677
16512
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16678
16513
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16730,7 +16565,7 @@ object({
|
|
|
16730
16565
|
"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
16566
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16732
16567
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16733
|
-
"metadata":
|
|
16568
|
+
"metadata": looseObject({
|
|
16734
16569
|
"authorization": object({
|
|
16735
16570
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16736
16571
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16787,7 +16622,7 @@ object({
|
|
|
16787
16622
|
"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
16623
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16789
16624
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16790
|
-
"metadata":
|
|
16625
|
+
"metadata": looseObject({
|
|
16791
16626
|
"authorization": object({
|
|
16792
16627
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16793
16628
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16844,7 +16679,61 @@ object({
|
|
|
16844
16679
|
"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
16680
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16846
16681
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16847
|
-
"metadata":
|
|
16682
|
+
"metadata": looseObject({
|
|
16683
|
+
"authorization": object({
|
|
16684
|
+
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16685
|
+
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
16686
|
+
}).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"),
|
|
16687
|
+
"client": object({
|
|
16688
|
+
"ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
|
|
16689
|
+
"user_agent": string().optional().describe("The observed `User-Agent` header."),
|
|
16690
|
+
"origin": string().optional().describe("The `Origin` header, when present.")
|
|
16691
|
+
}).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
|
|
16692
|
+
}).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")
|
|
16693
|
+
}).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
|
|
16694
|
+
"event_type": literal("auth.request.created"),
|
|
16695
|
+
"payload": object({ "client_id": string() }).describe("Payload for `auth.request.created` events.")
|
|
16696
|
+
})).describe("An event of type auth.request.created, with the shared event fields and its own payload.\n"),
|
|
16697
|
+
object({
|
|
16698
|
+
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
16699
|
+
"project_id": string().regex(listEventsResponseEventsItemOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
16700
|
+
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
16701
|
+
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
16702
|
+
"category": _enum([
|
|
16703
|
+
"request",
|
|
16704
|
+
"auth",
|
|
16705
|
+
"session",
|
|
16706
|
+
"admin",
|
|
16707
|
+
"entity",
|
|
16708
|
+
"signal"
|
|
16709
|
+
]).describe("The category of the event."),
|
|
16710
|
+
"occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
|
|
16711
|
+
"created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
|
|
16712
|
+
"actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
|
|
16713
|
+
"actor_type": union([_enum([
|
|
16714
|
+
"human",
|
|
16715
|
+
"service",
|
|
16716
|
+
"system",
|
|
16717
|
+
"agent"
|
|
16718
|
+
]), _null()]).optional().describe("The kind of actor that triggered the event."),
|
|
16719
|
+
"entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
|
|
16720
|
+
"entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
|
|
16721
|
+
"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"),
|
|
16722
|
+
"client_id": string().describe("The application or agent that produced the event."),
|
|
16723
|
+
"token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
|
|
16724
|
+
"delegation_type": _enum([
|
|
16725
|
+
"direct",
|
|
16726
|
+
"delegated",
|
|
16727
|
+
"pat_shared",
|
|
16728
|
+
"exchanged"
|
|
16729
|
+
]).optional().describe("The kind of delegation. Absent when unset."),
|
|
16730
|
+
"delegation_id": string().optional(),
|
|
16731
|
+
"grantor": string().optional(),
|
|
16732
|
+
"fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
|
|
16733
|
+
"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"),
|
|
16734
|
+
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16735
|
+
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16736
|
+
"metadata": looseObject({
|
|
16848
16737
|
"authorization": object({
|
|
16849
16738
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16850
16739
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16865,7 +16754,7 @@ object({
|
|
|
16865
16754
|
})).describe("An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n"),
|
|
16866
16755
|
object({
|
|
16867
16756
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
16868
|
-
"project_id": string().regex(
|
|
16757
|
+
"project_id": string().regex(listEventsResponseEventsItemOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
16869
16758
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
16870
16759
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
16871
16760
|
"category": _enum([
|
|
@@ -16902,7 +16791,7 @@ object({
|
|
|
16902
16791
|
"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
16792
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16904
16793
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16905
|
-
"metadata":
|
|
16794
|
+
"metadata": looseObject({
|
|
16906
16795
|
"authorization": object({
|
|
16907
16796
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16908
16797
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16923,7 +16812,7 @@ object({
|
|
|
16923
16812
|
})).describe("An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n"),
|
|
16924
16813
|
object({
|
|
16925
16814
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
16926
|
-
"project_id": string().regex(
|
|
16815
|
+
"project_id": string().regex(listEventsResponseEventsItemOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
16927
16816
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
16928
16817
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
16929
16818
|
"category": _enum([
|
|
@@ -16960,7 +16849,7 @@ object({
|
|
|
16960
16849
|
"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
16850
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
16962
16851
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
16963
|
-
"metadata":
|
|
16852
|
+
"metadata": looseObject({
|
|
16964
16853
|
"authorization": object({
|
|
16965
16854
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
16966
16855
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -16981,7 +16870,7 @@ object({
|
|
|
16981
16870
|
})).describe("An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n"),
|
|
16982
16871
|
object({
|
|
16983
16872
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
16984
|
-
"project_id": string().regex(
|
|
16873
|
+
"project_id": string().regex(listEventsResponseEventsItemOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
16985
16874
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
16986
16875
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
16987
16876
|
"category": _enum([
|
|
@@ -17018,7 +16907,7 @@ object({
|
|
|
17018
16907
|
"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
16908
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17020
16909
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17021
|
-
"metadata":
|
|
16910
|
+
"metadata": looseObject({
|
|
17022
16911
|
"authorization": object({
|
|
17023
16912
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17024
16913
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17035,7 +16924,7 @@ object({
|
|
|
17035
16924
|
})).describe("An event of type auth.token.issued, with the shared event fields and its own payload.\n"),
|
|
17036
16925
|
object({
|
|
17037
16926
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17038
|
-
"project_id": string().regex(
|
|
16927
|
+
"project_id": string().regex(listEventsResponseEventsItemOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17039
16928
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17040
16929
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17041
16930
|
"category": _enum([
|
|
@@ -17072,7 +16961,7 @@ object({
|
|
|
17072
16961
|
"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
16962
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17074
16963
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17075
|
-
"metadata":
|
|
16964
|
+
"metadata": looseObject({
|
|
17076
16965
|
"authorization": object({
|
|
17077
16966
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17078
16967
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17089,7 +16978,7 @@ object({
|
|
|
17089
16978
|
})).describe("An event of type auth.token.revoked, with the shared event fields and its own payload.\n"),
|
|
17090
16979
|
object({
|
|
17091
16980
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17092
|
-
"project_id": string().regex(
|
|
16981
|
+
"project_id": string().regex(listEventsResponseEventsItemOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17093
16982
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17094
16983
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17095
16984
|
"category": _enum([
|
|
@@ -17126,7 +17015,7 @@ object({
|
|
|
17126
17015
|
"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
17016
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17128
17017
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17129
|
-
"metadata":
|
|
17018
|
+
"metadata": looseObject({
|
|
17130
17019
|
"authorization": object({
|
|
17131
17020
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17132
17021
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17147,7 +17036,7 @@ object({
|
|
|
17147
17036
|
})).describe("An event of type authz.granted, with the shared event fields and its own payload.\n"),
|
|
17148
17037
|
object({
|
|
17149
17038
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17150
|
-
"project_id": string().regex(
|
|
17039
|
+
"project_id": string().regex(listEventsResponseEventsItemOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17151
17040
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17152
17041
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17153
17042
|
"category": _enum([
|
|
@@ -17184,7 +17073,7 @@ object({
|
|
|
17184
17073
|
"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
17074
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17186
17075
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17187
|
-
"metadata":
|
|
17076
|
+
"metadata": looseObject({
|
|
17188
17077
|
"authorization": object({
|
|
17189
17078
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17190
17079
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17205,7 +17094,7 @@ object({
|
|
|
17205
17094
|
})).describe("An event of type authz.revoked, with the shared event fields and its own payload.\n"),
|
|
17206
17095
|
object({
|
|
17207
17096
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17208
|
-
"project_id": string().regex(
|
|
17097
|
+
"project_id": string().regex(listEventsResponseEventsItemOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17209
17098
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17210
17099
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17211
17100
|
"category": _enum([
|
|
@@ -17242,7 +17131,7 @@ object({
|
|
|
17242
17131
|
"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
17132
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17244
17133
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17245
|
-
"metadata":
|
|
17134
|
+
"metadata": looseObject({
|
|
17246
17135
|
"authorization": object({
|
|
17247
17136
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17248
17137
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17264,7 +17153,7 @@ object({
|
|
|
17264
17153
|
})).describe("An event of type branding.created, with the shared event fields and its own payload.\n"),
|
|
17265
17154
|
object({
|
|
17266
17155
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17267
|
-
"project_id": string().regex(
|
|
17156
|
+
"project_id": string().regex(listEventsResponseEventsItemOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17268
17157
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17269
17158
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17270
17159
|
"category": _enum([
|
|
@@ -17301,7 +17190,7 @@ object({
|
|
|
17301
17190
|
"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
17191
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17303
17192
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17304
|
-
"metadata":
|
|
17193
|
+
"metadata": looseObject({
|
|
17305
17194
|
"authorization": object({
|
|
17306
17195
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17307
17196
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17324,7 +17213,7 @@ object({
|
|
|
17324
17213
|
})).describe("An event of type deployment.created, with the shared event fields and its own payload.\n"),
|
|
17325
17214
|
object({
|
|
17326
17215
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17327
|
-
"project_id": string().regex(
|
|
17216
|
+
"project_id": string().regex(listEventsResponseEventsItemOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17328
17217
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17329
17218
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17330
17219
|
"category": _enum([
|
|
@@ -17361,7 +17250,7 @@ object({
|
|
|
17361
17250
|
"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
17251
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17363
17252
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17364
|
-
"metadata":
|
|
17253
|
+
"metadata": looseObject({
|
|
17365
17254
|
"authorization": object({
|
|
17366
17255
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17367
17256
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17378,7 +17267,7 @@ object({
|
|
|
17378
17267
|
})).describe("An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n"),
|
|
17379
17268
|
object({
|
|
17380
17269
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17381
|
-
"project_id": string().regex(
|
|
17270
|
+
"project_id": string().regex(listEventsResponseEventsItemTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17382
17271
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17383
17272
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17384
17273
|
"category": _enum([
|
|
@@ -17415,7 +17304,7 @@ object({
|
|
|
17415
17304
|
"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
17305
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17417
17306
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17418
|
-
"metadata":
|
|
17307
|
+
"metadata": looseObject({
|
|
17419
17308
|
"authorization": object({
|
|
17420
17309
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17421
17310
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17432,7 +17321,7 @@ object({
|
|
|
17432
17321
|
})).describe("An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n"),
|
|
17433
17322
|
object({
|
|
17434
17323
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17435
|
-
"project_id": string().regex(
|
|
17324
|
+
"project_id": string().regex(listEventsResponseEventsItemTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17436
17325
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17437
17326
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17438
17327
|
"category": _enum([
|
|
@@ -17469,7 +17358,7 @@ object({
|
|
|
17469
17358
|
"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
17359
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17471
17360
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17472
|
-
"metadata":
|
|
17361
|
+
"metadata": looseObject({
|
|
17473
17362
|
"authorization": object({
|
|
17474
17363
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17475
17364
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17494,7 +17383,7 @@ object({
|
|
|
17494
17383
|
})).describe("An event of type flowdef.created, with the shared event fields and its own payload.\n"),
|
|
17495
17384
|
object({
|
|
17496
17385
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17497
|
-
"project_id": string().regex(
|
|
17386
|
+
"project_id": string().regex(listEventsResponseEventsItemTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17498
17387
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17499
17388
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17500
17389
|
"category": _enum([
|
|
@@ -17531,7 +17420,7 @@ object({
|
|
|
17531
17420
|
"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
17421
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17533
17422
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17534
|
-
"metadata":
|
|
17423
|
+
"metadata": looseObject({
|
|
17535
17424
|
"authorization": object({
|
|
17536
17425
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17537
17426
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17548,7 +17437,7 @@ object({
|
|
|
17548
17437
|
})).describe("An event of type flowdef.deleted, with the shared event fields and its own payload.\n"),
|
|
17549
17438
|
object({
|
|
17550
17439
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17551
|
-
"project_id": string().regex(
|
|
17440
|
+
"project_id": string().regex(listEventsResponseEventsItemTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17552
17441
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17553
17442
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17554
17443
|
"category": _enum([
|
|
@@ -17585,7 +17474,7 @@ object({
|
|
|
17585
17474
|
"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
17475
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17587
17476
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17588
|
-
"metadata":
|
|
17477
|
+
"metadata": looseObject({
|
|
17589
17478
|
"authorization": object({
|
|
17590
17479
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17591
17480
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17610,7 +17499,7 @@ object({
|
|
|
17610
17499
|
})).describe("An event of type flowdef.updated, with the shared event fields and its own payload.\n"),
|
|
17611
17500
|
object({
|
|
17612
17501
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17613
|
-
"project_id": string().regex(
|
|
17502
|
+
"project_id": string().regex(listEventsResponseEventsItemTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17614
17503
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17615
17504
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17616
17505
|
"category": _enum([
|
|
@@ -17647,7 +17536,7 @@ object({
|
|
|
17647
17536
|
"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
17537
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17649
17538
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17650
|
-
"metadata":
|
|
17539
|
+
"metadata": looseObject({
|
|
17651
17540
|
"authorization": object({
|
|
17652
17541
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17653
17542
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17670,7 +17559,7 @@ object({
|
|
|
17670
17559
|
})).describe("An event of type idp.created, with the shared event fields and its own payload.\n"),
|
|
17671
17560
|
object({
|
|
17672
17561
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17673
|
-
"project_id": string().regex(
|
|
17562
|
+
"project_id": string().regex(listEventsResponseEventsItemTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17674
17563
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17675
17564
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17676
17565
|
"category": _enum([
|
|
@@ -17707,7 +17596,7 @@ object({
|
|
|
17707
17596
|
"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
17597
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17709
17598
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17710
|
-
"metadata":
|
|
17599
|
+
"metadata": looseObject({
|
|
17711
17600
|
"authorization": object({
|
|
17712
17601
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17713
17602
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17727,7 +17616,7 @@ object({
|
|
|
17727
17616
|
})).describe("An event of type idp.identity_link.created, with the shared event fields and its own payload.\n"),
|
|
17728
17617
|
object({
|
|
17729
17618
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17730
|
-
"project_id": string().regex(
|
|
17619
|
+
"project_id": string().regex(listEventsResponseEventsItemTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17731
17620
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17732
17621
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17733
17622
|
"category": _enum([
|
|
@@ -17764,7 +17653,7 @@ object({
|
|
|
17764
17653
|
"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
17654
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17766
17655
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17767
|
-
"metadata":
|
|
17656
|
+
"metadata": looseObject({
|
|
17768
17657
|
"authorization": object({
|
|
17769
17658
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17770
17659
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17787,7 +17676,7 @@ object({
|
|
|
17787
17676
|
})).describe("An event of type idp.updated, with the shared event fields and its own payload.\n"),
|
|
17788
17677
|
object({
|
|
17789
17678
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17790
|
-
"project_id": string().regex(
|
|
17679
|
+
"project_id": string().regex(listEventsResponseEventsItemTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17791
17680
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17792
17681
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17793
17682
|
"category": _enum([
|
|
@@ -17824,7 +17713,7 @@ object({
|
|
|
17824
17713
|
"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
17714
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17826
17715
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17827
|
-
"metadata":
|
|
17716
|
+
"metadata": looseObject({
|
|
17828
17717
|
"authorization": object({
|
|
17829
17718
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17830
17719
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17853,14 +17742,14 @@ object({
|
|
|
17853
17742
|
}).describe("Fields every `invitation.accepted` payload carries, whatever its `type`.\n").and(object({
|
|
17854
17743
|
"type": _enum(["team_member"]),
|
|
17855
17744
|
"team_member": object({
|
|
17856
|
-
"team_id": string().regex(
|
|
17745
|
+
"team_id": string().regex(listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17857
17746
|
"role": _enum(["member"]).describe("The team role the accepter receives.")
|
|
17858
17747
|
}).describe("Type-specific input for a `team_member` invitation.")
|
|
17859
17748
|
})).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
17749
|
})).describe("An event of type invitation.accepted, with the shared event fields and its own payload.\n"),
|
|
17861
17750
|
object({
|
|
17862
17751
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17863
|
-
"project_id": string().regex(
|
|
17752
|
+
"project_id": string().regex(listEventsResponseEventsItemTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17864
17753
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17865
17754
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17866
17755
|
"category": _enum([
|
|
@@ -17897,7 +17786,7 @@ object({
|
|
|
17897
17786
|
"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
17787
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17899
17788
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17900
|
-
"metadata":
|
|
17789
|
+
"metadata": looseObject({
|
|
17901
17790
|
"authorization": object({
|
|
17902
17791
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17903
17792
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17921,7 +17810,7 @@ object({
|
|
|
17921
17810
|
})).describe("An event of type invitation.cancelled, with the shared event fields and its own payload.\n"),
|
|
17922
17811
|
object({
|
|
17923
17812
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17924
|
-
"project_id": string().regex(
|
|
17813
|
+
"project_id": string().regex(listEventsResponseEventsItemTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17925
17814
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
17926
17815
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
17927
17816
|
"category": _enum([
|
|
@@ -17958,7 +17847,7 @@ object({
|
|
|
17958
17847
|
"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
17848
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
17960
17849
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
17961
|
-
"metadata":
|
|
17850
|
+
"metadata": looseObject({
|
|
17962
17851
|
"authorization": object({
|
|
17963
17852
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17964
17853
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -17989,14 +17878,14 @@ object({
|
|
|
17989
17878
|
}).describe("Fields every `invitation.created` payload carries, whatever its `type`.\n").and(object({
|
|
17990
17879
|
"type": _enum(["team_member"]),
|
|
17991
17880
|
"team_member": object({
|
|
17992
|
-
"team_id": string().regex(
|
|
17881
|
+
"team_id": string().regex(listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
17993
17882
|
"role": _enum(["member"]).describe("The team role the accepter receives.")
|
|
17994
17883
|
}).describe("Type-specific input for a `team_member` invitation.")
|
|
17995
17884
|
})).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
17885
|
})).describe("An event of type invitation.created, with the shared event fields and its own payload.\n"),
|
|
17997
17886
|
object({
|
|
17998
17887
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17999
|
-
"project_id": string().regex(
|
|
17888
|
+
"project_id": string().regex(listEventsResponseEventsItemThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18000
17889
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18001
17890
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18002
17891
|
"category": _enum([
|
|
@@ -18033,7 +17922,7 @@ object({
|
|
|
18033
17922
|
"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
17923
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18035
17924
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18036
|
-
"metadata":
|
|
17925
|
+
"metadata": looseObject({
|
|
18037
17926
|
"authorization": object({
|
|
18038
17927
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18039
17928
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18053,7 +17942,7 @@ object({
|
|
|
18053
17942
|
})).describe("An event of type invitation.rejected, with the shared event fields and its own payload.\n"),
|
|
18054
17943
|
object({
|
|
18055
17944
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18056
|
-
"project_id": string().regex(
|
|
17945
|
+
"project_id": string().regex(listEventsResponseEventsItemThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18057
17946
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18058
17947
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18059
17948
|
"category": _enum([
|
|
@@ -18090,7 +17979,61 @@ object({
|
|
|
18090
17979
|
"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
17980
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18092
17981
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18093
|
-
"metadata":
|
|
17982
|
+
"metadata": looseObject({
|
|
17983
|
+
"authorization": object({
|
|
17984
|
+
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
17985
|
+
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
17986
|
+
}).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"),
|
|
17987
|
+
"client": object({
|
|
17988
|
+
"ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
|
|
17989
|
+
"user_agent": string().optional().describe("The observed `User-Agent` header."),
|
|
17990
|
+
"origin": string().optional().describe("The `Origin` header, when present.")
|
|
17991
|
+
}).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
|
|
17992
|
+
}).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")
|
|
17993
|
+
}).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
|
|
17994
|
+
"event_type": literal("oauth_settings.created"),
|
|
17995
|
+
"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")
|
|
17996
|
+
})).describe("An event of type oauth_settings.created, with the shared event fields and its own payload.\n"),
|
|
17997
|
+
object({
|
|
17998
|
+
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
17999
|
+
"project_id": string().regex(listEventsResponseEventsItemThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18000
|
+
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18001
|
+
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18002
|
+
"category": _enum([
|
|
18003
|
+
"request",
|
|
18004
|
+
"auth",
|
|
18005
|
+
"session",
|
|
18006
|
+
"admin",
|
|
18007
|
+
"entity",
|
|
18008
|
+
"signal"
|
|
18009
|
+
]).describe("The category of the event."),
|
|
18010
|
+
"occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
|
|
18011
|
+
"created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
|
|
18012
|
+
"actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
|
|
18013
|
+
"actor_type": union([_enum([
|
|
18014
|
+
"human",
|
|
18015
|
+
"service",
|
|
18016
|
+
"system",
|
|
18017
|
+
"agent"
|
|
18018
|
+
]), _null()]).optional().describe("The kind of actor that triggered the event."),
|
|
18019
|
+
"entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
|
|
18020
|
+
"entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
|
|
18021
|
+
"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"),
|
|
18022
|
+
"client_id": string().describe("The application or agent that produced the event."),
|
|
18023
|
+
"token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
|
|
18024
|
+
"delegation_type": _enum([
|
|
18025
|
+
"direct",
|
|
18026
|
+
"delegated",
|
|
18027
|
+
"pat_shared",
|
|
18028
|
+
"exchanged"
|
|
18029
|
+
]).optional().describe("The kind of delegation. Absent when unset."),
|
|
18030
|
+
"delegation_id": string().optional(),
|
|
18031
|
+
"grantor": string().optional(),
|
|
18032
|
+
"fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
|
|
18033
|
+
"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
|
+
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18035
|
+
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18036
|
+
"metadata": looseObject({
|
|
18094
18037
|
"authorization": object({
|
|
18095
18038
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18096
18039
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18110,7 +18053,7 @@ object({
|
|
|
18110
18053
|
})).describe("An event of type origin.added, with the shared event fields and its own payload.\n"),
|
|
18111
18054
|
object({
|
|
18112
18055
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18113
|
-
"project_id": string().regex(
|
|
18056
|
+
"project_id": string().regex(listEventsResponseEventsItemThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18114
18057
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18115
18058
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18116
18059
|
"category": _enum([
|
|
@@ -18147,7 +18090,7 @@ object({
|
|
|
18147
18090
|
"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
18091
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18149
18092
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18150
|
-
"metadata":
|
|
18093
|
+
"metadata": looseObject({
|
|
18151
18094
|
"authorization": object({
|
|
18152
18095
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18153
18096
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18167,7 +18110,7 @@ object({
|
|
|
18167
18110
|
})).describe("An event of type origin.removed, with the shared event fields and its own payload.\n"),
|
|
18168
18111
|
object({
|
|
18169
18112
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18170
|
-
"project_id": string().regex(
|
|
18113
|
+
"project_id": string().regex(listEventsResponseEventsItemThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18171
18114
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18172
18115
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18173
18116
|
"category": _enum([
|
|
@@ -18204,7 +18147,7 @@ object({
|
|
|
18204
18147
|
"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
18148
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18206
18149
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18207
|
-
"metadata":
|
|
18150
|
+
"metadata": looseObject({
|
|
18208
18151
|
"authorization": object({
|
|
18209
18152
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18210
18153
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18225,7 +18168,7 @@ object({
|
|
|
18225
18168
|
})).describe("An event of type policy.created, with the shared event fields and its own payload.\n"),
|
|
18226
18169
|
object({
|
|
18227
18170
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18228
|
-
"project_id": string().regex(
|
|
18171
|
+
"project_id": string().regex(listEventsResponseEventsItemThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18229
18172
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18230
18173
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18231
18174
|
"category": _enum([
|
|
@@ -18262,7 +18205,7 @@ object({
|
|
|
18262
18205
|
"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
18206
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18264
18207
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18265
|
-
"metadata":
|
|
18208
|
+
"metadata": looseObject({
|
|
18266
18209
|
"authorization": object({
|
|
18267
18210
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18268
18211
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18283,7 +18226,7 @@ object({
|
|
|
18283
18226
|
})).describe("An event of type policy.updated, with the shared event fields and its own payload.\n"),
|
|
18284
18227
|
object({
|
|
18285
18228
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18286
|
-
"project_id": string().regex(
|
|
18229
|
+
"project_id": string().regex(listEventsResponseEventsItemThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18287
18230
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18288
18231
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18289
18232
|
"category": _enum([
|
|
@@ -18320,7 +18263,7 @@ object({
|
|
|
18320
18263
|
"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
18264
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18322
18265
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18323
|
-
"metadata":
|
|
18266
|
+
"metadata": looseObject({
|
|
18324
18267
|
"authorization": object({
|
|
18325
18268
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18326
18269
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18337,7 +18280,7 @@ object({
|
|
|
18337
18280
|
})).describe("An event of type preview.removed, with the shared event fields and its own payload.\n"),
|
|
18338
18281
|
object({
|
|
18339
18282
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18340
|
-
"project_id": string().regex(
|
|
18283
|
+
"project_id": string().regex(listEventsResponseEventsItemThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18341
18284
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18342
18285
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18343
18286
|
"category": _enum([
|
|
@@ -18374,7 +18317,7 @@ object({
|
|
|
18374
18317
|
"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
18318
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18376
18319
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18377
|
-
"metadata":
|
|
18320
|
+
"metadata": looseObject({
|
|
18378
18321
|
"authorization": object({
|
|
18379
18322
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18380
18323
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18398,7 +18341,7 @@ object({
|
|
|
18398
18341
|
})).describe("An event of type project.created, with the shared event fields and its own payload.\n"),
|
|
18399
18342
|
object({
|
|
18400
18343
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18401
|
-
"project_id": string().regex(
|
|
18344
|
+
"project_id": string().regex(listEventsResponseEventsItemThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18402
18345
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18403
18346
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18404
18347
|
"category": _enum([
|
|
@@ -18435,7 +18378,7 @@ object({
|
|
|
18435
18378
|
"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
18379
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18437
18380
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18438
|
-
"metadata":
|
|
18381
|
+
"metadata": looseObject({
|
|
18439
18382
|
"authorization": object({
|
|
18440
18383
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18441
18384
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18452,7 +18395,7 @@ object({
|
|
|
18452
18395
|
})).describe("An event of type project.deleted, with the shared event fields and its own payload.\n"),
|
|
18453
18396
|
object({
|
|
18454
18397
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18455
|
-
"project_id": string().regex(
|
|
18398
|
+
"project_id": string().regex(listEventsResponseEventsItemThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18456
18399
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18457
18400
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18458
18401
|
"category": _enum([
|
|
@@ -18489,7 +18432,7 @@ object({
|
|
|
18489
18432
|
"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
18433
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18491
18434
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18492
|
-
"metadata":
|
|
18435
|
+
"metadata": looseObject({
|
|
18493
18436
|
"authorization": object({
|
|
18494
18437
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18495
18438
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18513,7 +18456,7 @@ object({
|
|
|
18513
18456
|
})).describe("An event of type project.updated, with the shared event fields and its own payload.\n"),
|
|
18514
18457
|
object({
|
|
18515
18458
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18516
|
-
"project_id": string().regex(
|
|
18459
|
+
"project_id": string().regex(listEventsResponseEventsItemFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18517
18460
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18518
18461
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18519
18462
|
"category": _enum([
|
|
@@ -18550,7 +18493,7 @@ object({
|
|
|
18550
18493
|
"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
18494
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18552
18495
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18553
|
-
"metadata":
|
|
18496
|
+
"metadata": looseObject({
|
|
18554
18497
|
"authorization": object({
|
|
18555
18498
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18556
18499
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18577,7 +18520,7 @@ object({
|
|
|
18577
18520
|
})).describe("An event of type release.created, with the shared event fields and its own payload.\n"),
|
|
18578
18521
|
object({
|
|
18579
18522
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18580
|
-
"project_id": string().regex(
|
|
18523
|
+
"project_id": string().regex(listEventsResponseEventsItemFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18581
18524
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18582
18525
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18583
18526
|
"category": _enum([
|
|
@@ -18614,7 +18557,7 @@ object({
|
|
|
18614
18557
|
"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
18558
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18616
18559
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18617
|
-
"metadata":
|
|
18560
|
+
"metadata": looseObject({
|
|
18618
18561
|
"authorization": object({
|
|
18619
18562
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18620
18563
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18627,11 +18570,11 @@ object({
|
|
|
18627
18570
|
}).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
18571
|
}).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
|
|
18629
18572
|
"event_type": literal("release.revoked"),
|
|
18630
|
-
"payload": object({ "content_hash": string().min(71).max(71).regex(
|
|
18573
|
+
"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
18574
|
})).describe("An event of type release.revoked, with the shared event fields and its own payload.\n"),
|
|
18632
18575
|
object({
|
|
18633
18576
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18634
|
-
"project_id": string().regex(
|
|
18577
|
+
"project_id": string().regex(listEventsResponseEventsItemFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18635
18578
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18636
18579
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18637
18580
|
"category": _enum([
|
|
@@ -18668,7 +18611,7 @@ object({
|
|
|
18668
18611
|
"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
18612
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18670
18613
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18671
|
-
"metadata":
|
|
18614
|
+
"metadata": looseObject({
|
|
18672
18615
|
"authorization": object({
|
|
18673
18616
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18674
18617
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18699,7 +18642,7 @@ object({
|
|
|
18699
18642
|
})).describe("An event of type request.api, with the shared event fields and its own payload.\n"),
|
|
18700
18643
|
object({
|
|
18701
18644
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18702
|
-
"project_id": string().regex(
|
|
18645
|
+
"project_id": string().regex(listEventsResponseEventsItemFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18703
18646
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18704
18647
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18705
18648
|
"category": _enum([
|
|
@@ -18736,7 +18679,7 @@ object({
|
|
|
18736
18679
|
"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
18680
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18738
18681
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18739
|
-
"metadata":
|
|
18682
|
+
"metadata": looseObject({
|
|
18740
18683
|
"authorization": object({
|
|
18741
18684
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18742
18685
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18756,7 +18699,7 @@ object({
|
|
|
18756
18699
|
})).describe("An event of type schema.created, with the shared event fields and its own payload.\n"),
|
|
18757
18700
|
object({
|
|
18758
18701
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18759
|
-
"project_id": string().regex(
|
|
18702
|
+
"project_id": string().regex(listEventsResponseEventsItemFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18760
18703
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18761
18704
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18762
18705
|
"category": _enum([
|
|
@@ -18793,7 +18736,7 @@ object({
|
|
|
18793
18736
|
"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
18737
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18795
18738
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18796
|
-
"metadata":
|
|
18739
|
+
"metadata": looseObject({
|
|
18797
18740
|
"authorization": object({
|
|
18798
18741
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18799
18742
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18810,7 +18753,7 @@ object({
|
|
|
18810
18753
|
})).describe("An event of type session.deleted, with the shared event fields and its own payload.\n"),
|
|
18811
18754
|
object({
|
|
18812
18755
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18813
|
-
"project_id": string().regex(
|
|
18756
|
+
"project_id": string().regex(listEventsResponseEventsItemFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18814
18757
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18815
18758
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18816
18759
|
"category": _enum([
|
|
@@ -18847,7 +18790,7 @@ object({
|
|
|
18847
18790
|
"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
18791
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18849
18792
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18850
|
-
"metadata":
|
|
18793
|
+
"metadata": looseObject({
|
|
18851
18794
|
"authorization": object({
|
|
18852
18795
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18853
18796
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18864,7 +18807,7 @@ object({
|
|
|
18864
18807
|
})).describe("An event of type session.established, with the shared event fields and its own payload.\n"),
|
|
18865
18808
|
object({
|
|
18866
18809
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18867
|
-
"project_id": string().regex(
|
|
18810
|
+
"project_id": string().regex(listEventsResponseEventsItemFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18868
18811
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18869
18812
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18870
18813
|
"category": _enum([
|
|
@@ -18901,7 +18844,7 @@ object({
|
|
|
18901
18844
|
"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
18845
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18903
18846
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18904
|
-
"metadata":
|
|
18847
|
+
"metadata": looseObject({
|
|
18905
18848
|
"authorization": object({
|
|
18906
18849
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18907
18850
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18918,7 +18861,7 @@ object({
|
|
|
18918
18861
|
})).describe("An event of type team.created, with the shared event fields and its own payload.\n"),
|
|
18919
18862
|
object({
|
|
18920
18863
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18921
|
-
"project_id": string().regex(
|
|
18864
|
+
"project_id": string().regex(listEventsResponseEventsItemFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18922
18865
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18923
18866
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18924
18867
|
"category": _enum([
|
|
@@ -18955,7 +18898,7 @@ object({
|
|
|
18955
18898
|
"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
18899
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
18957
18900
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
18958
|
-
"metadata":
|
|
18901
|
+
"metadata": looseObject({
|
|
18959
18902
|
"authorization": object({
|
|
18960
18903
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
18961
18904
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -18972,7 +18915,7 @@ object({
|
|
|
18972
18915
|
})).describe("An event of type team.deactivated, with the shared event fields and its own payload.\n"),
|
|
18973
18916
|
object({
|
|
18974
18917
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
18975
|
-
"project_id": string().regex(
|
|
18918
|
+
"project_id": string().regex(listEventsResponseEventsItemFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
18976
18919
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
18977
18920
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
18978
18921
|
"category": _enum([
|
|
@@ -19009,7 +18952,7 @@ object({
|
|
|
19009
18952
|
"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
18953
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19011
18954
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19012
|
-
"metadata":
|
|
18955
|
+
"metadata": looseObject({
|
|
19013
18956
|
"authorization": object({
|
|
19014
18957
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19015
18958
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19026,7 +18969,7 @@ object({
|
|
|
19026
18969
|
})).describe("An event of type team.updated, with the shared event fields and its own payload.\n"),
|
|
19027
18970
|
object({
|
|
19028
18971
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19029
|
-
"project_id": string().regex(
|
|
18972
|
+
"project_id": string().regex(listEventsResponseEventsItemFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19030
18973
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19031
18974
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19032
18975
|
"category": _enum([
|
|
@@ -19063,7 +19006,7 @@ object({
|
|
|
19063
19006
|
"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
19007
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19065
19008
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19066
|
-
"metadata":
|
|
19009
|
+
"metadata": looseObject({
|
|
19067
19010
|
"authorization": object({
|
|
19068
19011
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19069
19012
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19080,7 +19023,7 @@ object({
|
|
|
19080
19023
|
})).describe("An event of type user.create.failed, with the shared event fields and its own payload.\n"),
|
|
19081
19024
|
object({
|
|
19082
19025
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19083
|
-
"project_id": string().regex(
|
|
19026
|
+
"project_id": string().regex(listEventsResponseEventsItemFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19084
19027
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19085
19028
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19086
19029
|
"category": _enum([
|
|
@@ -19117,7 +19060,7 @@ object({
|
|
|
19117
19060
|
"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
19061
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19119
19062
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19120
|
-
"metadata":
|
|
19063
|
+
"metadata": looseObject({
|
|
19121
19064
|
"authorization": object({
|
|
19122
19065
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19123
19066
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19138,7 +19081,7 @@ object({
|
|
|
19138
19081
|
})).describe("An event of type user.created, with the shared event fields and its own payload.\n"),
|
|
19139
19082
|
object({
|
|
19140
19083
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19141
|
-
"project_id": string().regex(
|
|
19084
|
+
"project_id": string().regex(listEventsResponseEventsItemFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19142
19085
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19143
19086
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19144
19087
|
"category": _enum([
|
|
@@ -19175,7 +19118,7 @@ object({
|
|
|
19175
19118
|
"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
19119
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19177
19120
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19178
|
-
"metadata":
|
|
19121
|
+
"metadata": looseObject({
|
|
19179
19122
|
"authorization": object({
|
|
19180
19123
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19181
19124
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19192,7 +19135,7 @@ object({
|
|
|
19192
19135
|
})).describe("An event of type user.deleted, with the shared event fields and its own payload.\n"),
|
|
19193
19136
|
object({
|
|
19194
19137
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19195
|
-
"project_id": string().regex(
|
|
19138
|
+
"project_id": string().regex(listEventsResponseEventsItemFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19196
19139
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19197
19140
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19198
19141
|
"category": _enum([
|
|
@@ -19229,7 +19172,7 @@ object({
|
|
|
19229
19172
|
"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
19173
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19231
19174
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19232
|
-
"metadata":
|
|
19175
|
+
"metadata": looseObject({
|
|
19233
19176
|
"authorization": object({
|
|
19234
19177
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19235
19178
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19249,7 +19192,7 @@ object({
|
|
|
19249
19192
|
})).describe("An event of type user.updated, with the shared event fields and its own payload.\n"),
|
|
19250
19193
|
object({
|
|
19251
19194
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19252
|
-
"project_id": string().regex(
|
|
19195
|
+
"project_id": string().regex(listEventsResponseEventsItemFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19253
19196
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19254
19197
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19255
19198
|
"category": _enum([
|
|
@@ -19286,7 +19229,7 @@ object({
|
|
|
19286
19229
|
"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
19230
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19288
19231
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19289
|
-
"metadata":
|
|
19232
|
+
"metadata": looseObject({
|
|
19290
19233
|
"authorization": object({
|
|
19291
19234
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19292
19235
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19303,7 +19246,7 @@ object({
|
|
|
19303
19246
|
})).describe("An event of type variable.removed, with the shared event fields and its own payload.\n"),
|
|
19304
19247
|
object({
|
|
19305
19248
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19306
|
-
"project_id": string().regex(
|
|
19249
|
+
"project_id": string().regex(listEventsResponseEventsItemFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19307
19250
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19308
19251
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19309
19252
|
"category": _enum([
|
|
@@ -19340,7 +19283,7 @@ object({
|
|
|
19340
19283
|
"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
19284
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19342
19285
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19343
|
-
"metadata":
|
|
19286
|
+
"metadata": looseObject({
|
|
19344
19287
|
"authorization": object({
|
|
19345
19288
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19346
19289
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19390,11 +19333,11 @@ const getEventResponseTwothreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^
|
|
|
19390
19333
|
const getEventResponseTwofourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19391
19334
|
const getEventResponseTwofiveOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19392
19335
|
const getEventResponseTwosixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19393
|
-
const getEventResponseTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19394
19336
|
const getEventResponseTwosevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19337
|
+
const getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19395
19338
|
const getEventResponseTwoeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19396
|
-
const getEventResponseTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19397
19339
|
const getEventResponseTwonineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19340
|
+
const getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19398
19341
|
const getEventResponseThreezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19399
19342
|
const getEventResponseThreeoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19400
19343
|
const getEventResponseThreetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -19405,9 +19348,9 @@ const getEventResponseThreesixOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^
|
|
|
19405
19348
|
const getEventResponseThreesevenOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19406
19349
|
const getEventResponseThreeeightOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19407
19350
|
const getEventResponseThreenineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19408
|
-
const getEventResponseThreenineTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
|
|
19409
19351
|
const getEventResponseFourzeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19410
19352
|
const getEventResponseFouroneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19353
|
+
const getEventResponseFouroneTwoPayloadContentHashRegExp = /* @__PURE__ */ new RegExp("^sha256:[0-9a-f]{64}$");
|
|
19411
19354
|
const getEventResponseFourtwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19412
19355
|
const getEventResponseFourthreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19413
19356
|
const getEventResponseFourfourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
@@ -19419,6 +19362,8 @@ const getEventResponseFournineOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^
|
|
|
19419
19362
|
const getEventResponseFivezeroOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19420
19363
|
const getEventResponseFiveoneOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19421
19364
|
const getEventResponseFivetwoOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19365
|
+
const getEventResponseFivethreeOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19366
|
+
const getEventResponseFivefourOneProjectIdRegExp = /* @__PURE__ */ new RegExp("^[a-zA-Z0-9_-]+$");
|
|
19422
19367
|
union([
|
|
19423
19368
|
object({
|
|
19424
19369
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
@@ -19459,7 +19404,7 @@ union([
|
|
|
19459
19404
|
"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
19405
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19461
19406
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19462
|
-
"metadata":
|
|
19407
|
+
"metadata": looseObject({
|
|
19463
19408
|
"authorization": object({
|
|
19464
19409
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19465
19410
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19518,7 +19463,7 @@ union([
|
|
|
19518
19463
|
"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
19464
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19520
19465
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19521
|
-
"metadata":
|
|
19466
|
+
"metadata": looseObject({
|
|
19522
19467
|
"authorization": object({
|
|
19523
19468
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19524
19469
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19577,7 +19522,7 @@ union([
|
|
|
19577
19522
|
"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
19523
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19579
19524
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19580
|
-
"metadata":
|
|
19525
|
+
"metadata": looseObject({
|
|
19581
19526
|
"authorization": object({
|
|
19582
19527
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19583
19528
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19631,7 +19576,7 @@ union([
|
|
|
19631
19576
|
"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
19577
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19633
19578
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19634
|
-
"metadata":
|
|
19579
|
+
"metadata": looseObject({
|
|
19635
19580
|
"authorization": object({
|
|
19636
19581
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19637
19582
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19685,7 +19630,7 @@ union([
|
|
|
19685
19630
|
"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
19631
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19687
19632
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19688
|
-
"metadata":
|
|
19633
|
+
"metadata": looseObject({
|
|
19689
19634
|
"authorization": object({
|
|
19690
19635
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19691
19636
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19743,7 +19688,7 @@ union([
|
|
|
19743
19688
|
"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
19689
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19745
19690
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19746
|
-
"metadata":
|
|
19691
|
+
"metadata": looseObject({
|
|
19747
19692
|
"authorization": object({
|
|
19748
19693
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19749
19694
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19801,7 +19746,7 @@ union([
|
|
|
19801
19746
|
"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
19747
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19803
19748
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19804
|
-
"metadata":
|
|
19749
|
+
"metadata": looseObject({
|
|
19805
19750
|
"authorization": object({
|
|
19806
19751
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19807
19752
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19858,7 +19803,7 @@ union([
|
|
|
19858
19803
|
"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
19804
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19860
19805
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19861
|
-
"metadata":
|
|
19806
|
+
"metadata": looseObject({
|
|
19862
19807
|
"authorization": object({
|
|
19863
19808
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19864
19809
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19915,7 +19860,61 @@ union([
|
|
|
19915
19860
|
"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
19861
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19917
19862
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19918
|
-
"metadata":
|
|
19863
|
+
"metadata": looseObject({
|
|
19864
|
+
"authorization": object({
|
|
19865
|
+
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19866
|
+
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
19867
|
+
}).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"),
|
|
19868
|
+
"client": object({
|
|
19869
|
+
"ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
|
|
19870
|
+
"user_agent": string().optional().describe("The observed `User-Agent` header."),
|
|
19871
|
+
"origin": string().optional().describe("The `Origin` header, when present.")
|
|
19872
|
+
}).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
|
|
19873
|
+
}).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")
|
|
19874
|
+
}).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
|
|
19875
|
+
"event_type": literal("auth.request.created"),
|
|
19876
|
+
"payload": object({ "client_id": string() }).describe("Payload for `auth.request.created` events.")
|
|
19877
|
+
})).describe("An event of type auth.request.created, with the shared event fields and its own payload.\n"),
|
|
19878
|
+
object({
|
|
19879
|
+
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19880
|
+
"project_id": string().regex(getEventResponseOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19881
|
+
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19882
|
+
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19883
|
+
"category": _enum([
|
|
19884
|
+
"request",
|
|
19885
|
+
"auth",
|
|
19886
|
+
"session",
|
|
19887
|
+
"admin",
|
|
19888
|
+
"entity",
|
|
19889
|
+
"signal"
|
|
19890
|
+
]).describe("The category of the event."),
|
|
19891
|
+
"occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
|
|
19892
|
+
"created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
|
|
19893
|
+
"actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
|
|
19894
|
+
"actor_type": union([_enum([
|
|
19895
|
+
"human",
|
|
19896
|
+
"service",
|
|
19897
|
+
"system",
|
|
19898
|
+
"agent"
|
|
19899
|
+
]), _null()]).optional().describe("The kind of actor that triggered the event."),
|
|
19900
|
+
"entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
|
|
19901
|
+
"entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
|
|
19902
|
+
"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"),
|
|
19903
|
+
"client_id": string().describe("The application or agent that produced the event."),
|
|
19904
|
+
"token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
|
|
19905
|
+
"delegation_type": _enum([
|
|
19906
|
+
"direct",
|
|
19907
|
+
"delegated",
|
|
19908
|
+
"pat_shared",
|
|
19909
|
+
"exchanged"
|
|
19910
|
+
]).optional().describe("The kind of delegation. Absent when unset."),
|
|
19911
|
+
"delegation_id": string().optional(),
|
|
19912
|
+
"grantor": string().optional(),
|
|
19913
|
+
"fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
|
|
19914
|
+
"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"),
|
|
19915
|
+
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19916
|
+
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19917
|
+
"metadata": looseObject({
|
|
19919
19918
|
"authorization": object({
|
|
19920
19919
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19921
19920
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19936,7 +19935,7 @@ union([
|
|
|
19936
19935
|
})).describe("An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n"),
|
|
19937
19936
|
object({
|
|
19938
19937
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19939
|
-
"project_id": string().regex(
|
|
19938
|
+
"project_id": string().regex(getEventResponseOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19940
19939
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19941
19940
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
19942
19941
|
"category": _enum([
|
|
@@ -19973,7 +19972,7 @@ union([
|
|
|
19973
19972
|
"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
19973
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
19975
19974
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
19976
|
-
"metadata":
|
|
19975
|
+
"metadata": looseObject({
|
|
19977
19976
|
"authorization": object({
|
|
19978
19977
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
19979
19978
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -19994,7 +19993,7 @@ union([
|
|
|
19994
19993
|
})).describe("An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n"),
|
|
19995
19994
|
object({
|
|
19996
19995
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
19997
|
-
"project_id": string().regex(
|
|
19996
|
+
"project_id": string().regex(getEventResponseOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
19998
19997
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
19999
19998
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20000
19999
|
"category": _enum([
|
|
@@ -20031,7 +20030,7 @@ union([
|
|
|
20031
20030
|
"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
20031
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20033
20032
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20034
|
-
"metadata":
|
|
20033
|
+
"metadata": looseObject({
|
|
20035
20034
|
"authorization": object({
|
|
20036
20035
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20037
20036
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20052,7 +20051,7 @@ union([
|
|
|
20052
20051
|
})).describe("An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n"),
|
|
20053
20052
|
object({
|
|
20054
20053
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20055
|
-
"project_id": string().regex(
|
|
20054
|
+
"project_id": string().regex(getEventResponseOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20056
20055
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20057
20056
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20058
20057
|
"category": _enum([
|
|
@@ -20089,7 +20088,7 @@ union([
|
|
|
20089
20088
|
"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
20089
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20091
20090
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20092
|
-
"metadata":
|
|
20091
|
+
"metadata": looseObject({
|
|
20093
20092
|
"authorization": object({
|
|
20094
20093
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20095
20094
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20106,7 +20105,7 @@ union([
|
|
|
20106
20105
|
})).describe("An event of type auth.token.issued, with the shared event fields and its own payload.\n"),
|
|
20107
20106
|
object({
|
|
20108
20107
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20109
|
-
"project_id": string().regex(
|
|
20108
|
+
"project_id": string().regex(getEventResponseOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20110
20109
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20111
20110
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20112
20111
|
"category": _enum([
|
|
@@ -20143,7 +20142,7 @@ union([
|
|
|
20143
20142
|
"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
20143
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20145
20144
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20146
|
-
"metadata":
|
|
20145
|
+
"metadata": looseObject({
|
|
20147
20146
|
"authorization": object({
|
|
20148
20147
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20149
20148
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20160,7 +20159,7 @@ union([
|
|
|
20160
20159
|
})).describe("An event of type auth.token.revoked, with the shared event fields and its own payload.\n"),
|
|
20161
20160
|
object({
|
|
20162
20161
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20163
|
-
"project_id": string().regex(
|
|
20162
|
+
"project_id": string().regex(getEventResponseOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20164
20163
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20165
20164
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20166
20165
|
"category": _enum([
|
|
@@ -20197,7 +20196,7 @@ union([
|
|
|
20197
20196
|
"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
20197
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20199
20198
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20200
|
-
"metadata":
|
|
20199
|
+
"metadata": looseObject({
|
|
20201
20200
|
"authorization": object({
|
|
20202
20201
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20203
20202
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20218,7 +20217,7 @@ union([
|
|
|
20218
20217
|
})).describe("An event of type authz.granted, with the shared event fields and its own payload.\n"),
|
|
20219
20218
|
object({
|
|
20220
20219
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20221
|
-
"project_id": string().regex(
|
|
20220
|
+
"project_id": string().regex(getEventResponseOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20222
20221
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20223
20222
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20224
20223
|
"category": _enum([
|
|
@@ -20255,7 +20254,7 @@ union([
|
|
|
20255
20254
|
"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
20255
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20257
20256
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20258
|
-
"metadata":
|
|
20257
|
+
"metadata": looseObject({
|
|
20259
20258
|
"authorization": object({
|
|
20260
20259
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20261
20260
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20276,7 +20275,7 @@ union([
|
|
|
20276
20275
|
})).describe("An event of type authz.revoked, with the shared event fields and its own payload.\n"),
|
|
20277
20276
|
object({
|
|
20278
20277
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20279
|
-
"project_id": string().regex(
|
|
20278
|
+
"project_id": string().regex(getEventResponseOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20280
20279
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20281
20280
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20282
20281
|
"category": _enum([
|
|
@@ -20313,7 +20312,7 @@ union([
|
|
|
20313
20312
|
"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
20313
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20315
20314
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20316
|
-
"metadata":
|
|
20315
|
+
"metadata": looseObject({
|
|
20317
20316
|
"authorization": object({
|
|
20318
20317
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20319
20318
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20335,7 +20334,7 @@ union([
|
|
|
20335
20334
|
})).describe("An event of type branding.created, with the shared event fields and its own payload.\n"),
|
|
20336
20335
|
object({
|
|
20337
20336
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20338
|
-
"project_id": string().regex(
|
|
20337
|
+
"project_id": string().regex(getEventResponseOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20339
20338
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20340
20339
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20341
20340
|
"category": _enum([
|
|
@@ -20372,7 +20371,7 @@ union([
|
|
|
20372
20371
|
"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
20372
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20374
20373
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20375
|
-
"metadata":
|
|
20374
|
+
"metadata": looseObject({
|
|
20376
20375
|
"authorization": object({
|
|
20377
20376
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20378
20377
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20395,7 +20394,7 @@ union([
|
|
|
20395
20394
|
})).describe("An event of type deployment.created, with the shared event fields and its own payload.\n"),
|
|
20396
20395
|
object({
|
|
20397
20396
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20398
|
-
"project_id": string().regex(
|
|
20397
|
+
"project_id": string().regex(getEventResponseOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20399
20398
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20400
20399
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20401
20400
|
"category": _enum([
|
|
@@ -20432,7 +20431,7 @@ union([
|
|
|
20432
20431
|
"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
20432
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20434
20433
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20435
|
-
"metadata":
|
|
20434
|
+
"metadata": looseObject({
|
|
20436
20435
|
"authorization": object({
|
|
20437
20436
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20438
20437
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20449,7 +20448,7 @@ union([
|
|
|
20449
20448
|
})).describe("An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n"),
|
|
20450
20449
|
object({
|
|
20451
20450
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20452
|
-
"project_id": string().regex(
|
|
20451
|
+
"project_id": string().regex(getEventResponseTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20453
20452
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20454
20453
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20455
20454
|
"category": _enum([
|
|
@@ -20486,7 +20485,7 @@ union([
|
|
|
20486
20485
|
"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
20486
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20488
20487
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20489
|
-
"metadata":
|
|
20488
|
+
"metadata": looseObject({
|
|
20490
20489
|
"authorization": object({
|
|
20491
20490
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20492
20491
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20503,7 +20502,7 @@ union([
|
|
|
20503
20502
|
})).describe("An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n"),
|
|
20504
20503
|
object({
|
|
20505
20504
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20506
|
-
"project_id": string().regex(
|
|
20505
|
+
"project_id": string().regex(getEventResponseTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20507
20506
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20508
20507
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20509
20508
|
"category": _enum([
|
|
@@ -20540,7 +20539,7 @@ union([
|
|
|
20540
20539
|
"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
20540
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20542
20541
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20543
|
-
"metadata":
|
|
20542
|
+
"metadata": looseObject({
|
|
20544
20543
|
"authorization": object({
|
|
20545
20544
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20546
20545
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20565,7 +20564,7 @@ union([
|
|
|
20565
20564
|
})).describe("An event of type flowdef.created, with the shared event fields and its own payload.\n"),
|
|
20566
20565
|
object({
|
|
20567
20566
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20568
|
-
"project_id": string().regex(
|
|
20567
|
+
"project_id": string().regex(getEventResponseTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20569
20568
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20570
20569
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20571
20570
|
"category": _enum([
|
|
@@ -20602,7 +20601,7 @@ union([
|
|
|
20602
20601
|
"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
20602
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20604
20603
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20605
|
-
"metadata":
|
|
20604
|
+
"metadata": looseObject({
|
|
20606
20605
|
"authorization": object({
|
|
20607
20606
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20608
20607
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20619,7 +20618,7 @@ union([
|
|
|
20619
20618
|
})).describe("An event of type flowdef.deleted, with the shared event fields and its own payload.\n"),
|
|
20620
20619
|
object({
|
|
20621
20620
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20622
|
-
"project_id": string().regex(
|
|
20621
|
+
"project_id": string().regex(getEventResponseTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20623
20622
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20624
20623
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20625
20624
|
"category": _enum([
|
|
@@ -20656,7 +20655,7 @@ union([
|
|
|
20656
20655
|
"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
20656
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20658
20657
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20659
|
-
"metadata":
|
|
20658
|
+
"metadata": looseObject({
|
|
20660
20659
|
"authorization": object({
|
|
20661
20660
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20662
20661
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20681,7 +20680,7 @@ union([
|
|
|
20681
20680
|
})).describe("An event of type flowdef.updated, with the shared event fields and its own payload.\n"),
|
|
20682
20681
|
object({
|
|
20683
20682
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20684
|
-
"project_id": string().regex(
|
|
20683
|
+
"project_id": string().regex(getEventResponseTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20685
20684
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20686
20685
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20687
20686
|
"category": _enum([
|
|
@@ -20718,7 +20717,7 @@ union([
|
|
|
20718
20717
|
"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
20718
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20720
20719
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20721
|
-
"metadata":
|
|
20720
|
+
"metadata": looseObject({
|
|
20722
20721
|
"authorization": object({
|
|
20723
20722
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20724
20723
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20741,7 +20740,7 @@ union([
|
|
|
20741
20740
|
})).describe("An event of type idp.created, with the shared event fields and its own payload.\n"),
|
|
20742
20741
|
object({
|
|
20743
20742
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20744
|
-
"project_id": string().regex(
|
|
20743
|
+
"project_id": string().regex(getEventResponseTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20745
20744
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20746
20745
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20747
20746
|
"category": _enum([
|
|
@@ -20778,7 +20777,7 @@ union([
|
|
|
20778
20777
|
"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
20778
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20780
20779
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20781
|
-
"metadata":
|
|
20780
|
+
"metadata": looseObject({
|
|
20782
20781
|
"authorization": object({
|
|
20783
20782
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20784
20783
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20798,7 +20797,7 @@ union([
|
|
|
20798
20797
|
})).describe("An event of type idp.identity_link.created, with the shared event fields and its own payload.\n"),
|
|
20799
20798
|
object({
|
|
20800
20799
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20801
|
-
"project_id": string().regex(
|
|
20800
|
+
"project_id": string().regex(getEventResponseTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20802
20801
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20803
20802
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20804
20803
|
"category": _enum([
|
|
@@ -20835,7 +20834,7 @@ union([
|
|
|
20835
20834
|
"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
20835
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20837
20836
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20838
|
-
"metadata":
|
|
20837
|
+
"metadata": looseObject({
|
|
20839
20838
|
"authorization": object({
|
|
20840
20839
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20841
20840
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20858,7 +20857,7 @@ union([
|
|
|
20858
20857
|
})).describe("An event of type idp.updated, with the shared event fields and its own payload.\n"),
|
|
20859
20858
|
object({
|
|
20860
20859
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20861
|
-
"project_id": string().regex(
|
|
20860
|
+
"project_id": string().regex(getEventResponseTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20862
20861
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20863
20862
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20864
20863
|
"category": _enum([
|
|
@@ -20895,7 +20894,7 @@ union([
|
|
|
20895
20894
|
"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
20895
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20897
20896
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20898
|
-
"metadata":
|
|
20897
|
+
"metadata": looseObject({
|
|
20899
20898
|
"authorization": object({
|
|
20900
20899
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20901
20900
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20924,14 +20923,14 @@ union([
|
|
|
20924
20923
|
}).describe("Fields every `invitation.accepted` payload carries, whatever its `type`.\n").and(object({
|
|
20925
20924
|
"type": _enum(["team_member"]),
|
|
20926
20925
|
"team_member": object({
|
|
20927
|
-
"team_id": string().regex(
|
|
20926
|
+
"team_id": string().regex(getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20928
20927
|
"role": _enum(["member"]).describe("The team role the accepter receives.")
|
|
20929
20928
|
}).describe("Type-specific input for a `team_member` invitation.")
|
|
20930
20929
|
})).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
20930
|
})).describe("An event of type invitation.accepted, with the shared event fields and its own payload.\n"),
|
|
20932
20931
|
object({
|
|
20933
20932
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20934
|
-
"project_id": string().regex(
|
|
20933
|
+
"project_id": string().regex(getEventResponseTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20935
20934
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20936
20935
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20937
20936
|
"category": _enum([
|
|
@@ -20968,7 +20967,7 @@ union([
|
|
|
20968
20967
|
"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
20968
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
20970
20969
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
20971
|
-
"metadata":
|
|
20970
|
+
"metadata": looseObject({
|
|
20972
20971
|
"authorization": object({
|
|
20973
20972
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
20974
20973
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -20992,7 +20991,7 @@ union([
|
|
|
20992
20991
|
})).describe("An event of type invitation.cancelled, with the shared event fields and its own payload.\n"),
|
|
20993
20992
|
object({
|
|
20994
20993
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
20995
|
-
"project_id": string().regex(
|
|
20994
|
+
"project_id": string().regex(getEventResponseTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
20996
20995
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
20997
20996
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
20998
20997
|
"category": _enum([
|
|
@@ -21029,7 +21028,7 @@ union([
|
|
|
21029
21028
|
"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
21029
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21031
21030
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21032
|
-
"metadata":
|
|
21031
|
+
"metadata": looseObject({
|
|
21033
21032
|
"authorization": object({
|
|
21034
21033
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21035
21034
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21060,14 +21059,14 @@ union([
|
|
|
21060
21059
|
}).describe("Fields every `invitation.created` payload carries, whatever its `type`.\n").and(object({
|
|
21061
21060
|
"type": _enum(["team_member"]),
|
|
21062
21061
|
"team_member": object({
|
|
21063
|
-
"team_id": string().regex(
|
|
21062
|
+
"team_id": string().regex(getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21064
21063
|
"role": _enum(["member"]).describe("The team role the accepter receives.")
|
|
21065
21064
|
}).describe("Type-specific input for a `team_member` invitation.")
|
|
21066
21065
|
})).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
21066
|
})).describe("An event of type invitation.created, with the shared event fields and its own payload.\n"),
|
|
21068
21067
|
object({
|
|
21069
21068
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21070
|
-
"project_id": string().regex(
|
|
21069
|
+
"project_id": string().regex(getEventResponseThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21071
21070
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21072
21071
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21073
21072
|
"category": _enum([
|
|
@@ -21104,7 +21103,7 @@ union([
|
|
|
21104
21103
|
"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
21104
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21106
21105
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21107
|
-
"metadata":
|
|
21106
|
+
"metadata": looseObject({
|
|
21108
21107
|
"authorization": object({
|
|
21109
21108
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21110
21109
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21124,7 +21123,7 @@ union([
|
|
|
21124
21123
|
})).describe("An event of type invitation.rejected, with the shared event fields and its own payload.\n"),
|
|
21125
21124
|
object({
|
|
21126
21125
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21127
|
-
"project_id": string().regex(
|
|
21126
|
+
"project_id": string().regex(getEventResponseThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21128
21127
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21129
21128
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21130
21129
|
"category": _enum([
|
|
@@ -21161,7 +21160,61 @@ union([
|
|
|
21161
21160
|
"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
21161
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21163
21162
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21164
|
-
"metadata":
|
|
21163
|
+
"metadata": looseObject({
|
|
21164
|
+
"authorization": object({
|
|
21165
|
+
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21166
|
+
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
21167
|
+
}).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"),
|
|
21168
|
+
"client": object({
|
|
21169
|
+
"ip": string().optional().describe("The client IP, from the first `X-Forwarded-For` hop or the remote address."),
|
|
21170
|
+
"user_agent": string().optional().describe("The observed `User-Agent` header."),
|
|
21171
|
+
"origin": string().optional().describe("The `Origin` header, when present.")
|
|
21172
|
+
}).optional().describe("The observed HTTP requestor context, set only on events from an API request (`request.api`).")
|
|
21173
|
+
}).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")
|
|
21174
|
+
}).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
|
|
21175
|
+
"event_type": literal("oauth_settings.created"),
|
|
21176
|
+
"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")
|
|
21177
|
+
})).describe("An event of type oauth_settings.created, with the shared event fields and its own payload.\n"),
|
|
21178
|
+
object({
|
|
21179
|
+
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21180
|
+
"project_id": string().regex(getEventResponseThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21181
|
+
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21182
|
+
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21183
|
+
"category": _enum([
|
|
21184
|
+
"request",
|
|
21185
|
+
"auth",
|
|
21186
|
+
"session",
|
|
21187
|
+
"admin",
|
|
21188
|
+
"entity",
|
|
21189
|
+
"signal"
|
|
21190
|
+
]).describe("The category of the event."),
|
|
21191
|
+
"occurred_at": datetime({ "offset": true }).describe("When the action happened, on the server's clock, to the millisecond.\n"),
|
|
21192
|
+
"created_at": datetime({ "offset": true }).describe("When the event was stored, on the server's clock, to the millisecond.\n"),
|
|
21193
|
+
"actor_id": union([string(), _null()]).optional().describe("The ID of the actor that triggered the event."),
|
|
21194
|
+
"actor_type": union([_enum([
|
|
21195
|
+
"human",
|
|
21196
|
+
"service",
|
|
21197
|
+
"system",
|
|
21198
|
+
"agent"
|
|
21199
|
+
]), _null()]).optional().describe("The kind of actor that triggered the event."),
|
|
21200
|
+
"entity_type": union([string(), _null()]).optional().describe("The type of resource the event affected."),
|
|
21201
|
+
"entity_id": union([string(), _null()]).optional().describe("The ID of the resource the event affected."),
|
|
21202
|
+
"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"),
|
|
21203
|
+
"client_id": string().describe("The application or agent that produced the event."),
|
|
21204
|
+
"token_id": string().optional().describe("The ID of the token in use when the event was emitted, when there was one."),
|
|
21205
|
+
"delegation_type": _enum([
|
|
21206
|
+
"direct",
|
|
21207
|
+
"delegated",
|
|
21208
|
+
"pat_shared",
|
|
21209
|
+
"exchanged"
|
|
21210
|
+
]).optional().describe("The kind of delegation. Absent when unset."),
|
|
21211
|
+
"delegation_id": string().optional(),
|
|
21212
|
+
"grantor": string().optional(),
|
|
21213
|
+
"fingerprint": string().optional().describe("A device fingerprint ID that correlates events from the same device."),
|
|
21214
|
+
"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"),
|
|
21215
|
+
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21216
|
+
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21217
|
+
"metadata": looseObject({
|
|
21165
21218
|
"authorization": object({
|
|
21166
21219
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21167
21220
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21181,7 +21234,7 @@ union([
|
|
|
21181
21234
|
})).describe("An event of type origin.added, with the shared event fields and its own payload.\n"),
|
|
21182
21235
|
object({
|
|
21183
21236
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21184
|
-
"project_id": string().regex(
|
|
21237
|
+
"project_id": string().regex(getEventResponseThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21185
21238
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21186
21239
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21187
21240
|
"category": _enum([
|
|
@@ -21218,7 +21271,7 @@ union([
|
|
|
21218
21271
|
"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
21272
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21220
21273
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21221
|
-
"metadata":
|
|
21274
|
+
"metadata": looseObject({
|
|
21222
21275
|
"authorization": object({
|
|
21223
21276
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21224
21277
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21238,7 +21291,7 @@ union([
|
|
|
21238
21291
|
})).describe("An event of type origin.removed, with the shared event fields and its own payload.\n"),
|
|
21239
21292
|
object({
|
|
21240
21293
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21241
|
-
"project_id": string().regex(
|
|
21294
|
+
"project_id": string().regex(getEventResponseThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21242
21295
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21243
21296
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21244
21297
|
"category": _enum([
|
|
@@ -21275,7 +21328,7 @@ union([
|
|
|
21275
21328
|
"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
21329
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21277
21330
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21278
|
-
"metadata":
|
|
21331
|
+
"metadata": looseObject({
|
|
21279
21332
|
"authorization": object({
|
|
21280
21333
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21281
21334
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21296,7 +21349,7 @@ union([
|
|
|
21296
21349
|
})).describe("An event of type policy.created, with the shared event fields and its own payload.\n"),
|
|
21297
21350
|
object({
|
|
21298
21351
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21299
|
-
"project_id": string().regex(
|
|
21352
|
+
"project_id": string().regex(getEventResponseThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21300
21353
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21301
21354
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21302
21355
|
"category": _enum([
|
|
@@ -21333,7 +21386,7 @@ union([
|
|
|
21333
21386
|
"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
21387
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21335
21388
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21336
|
-
"metadata":
|
|
21389
|
+
"metadata": looseObject({
|
|
21337
21390
|
"authorization": object({
|
|
21338
21391
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21339
21392
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21354,7 +21407,7 @@ union([
|
|
|
21354
21407
|
})).describe("An event of type policy.updated, with the shared event fields and its own payload.\n"),
|
|
21355
21408
|
object({
|
|
21356
21409
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21357
|
-
"project_id": string().regex(
|
|
21410
|
+
"project_id": string().regex(getEventResponseThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21358
21411
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21359
21412
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21360
21413
|
"category": _enum([
|
|
@@ -21391,7 +21444,7 @@ union([
|
|
|
21391
21444
|
"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
21445
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21393
21446
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21394
|
-
"metadata":
|
|
21447
|
+
"metadata": looseObject({
|
|
21395
21448
|
"authorization": object({
|
|
21396
21449
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21397
21450
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21408,7 +21461,7 @@ union([
|
|
|
21408
21461
|
})).describe("An event of type preview.removed, with the shared event fields and its own payload.\n"),
|
|
21409
21462
|
object({
|
|
21410
21463
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21411
|
-
"project_id": string().regex(
|
|
21464
|
+
"project_id": string().regex(getEventResponseThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21412
21465
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21413
21466
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21414
21467
|
"category": _enum([
|
|
@@ -21445,7 +21498,7 @@ union([
|
|
|
21445
21498
|
"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
21499
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21447
21500
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21448
|
-
"metadata":
|
|
21501
|
+
"metadata": looseObject({
|
|
21449
21502
|
"authorization": object({
|
|
21450
21503
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21451
21504
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21469,7 +21522,7 @@ union([
|
|
|
21469
21522
|
})).describe("An event of type project.created, with the shared event fields and its own payload.\n"),
|
|
21470
21523
|
object({
|
|
21471
21524
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21472
|
-
"project_id": string().regex(
|
|
21525
|
+
"project_id": string().regex(getEventResponseThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21473
21526
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21474
21527
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21475
21528
|
"category": _enum([
|
|
@@ -21506,7 +21559,7 @@ union([
|
|
|
21506
21559
|
"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
21560
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21508
21561
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21509
|
-
"metadata":
|
|
21562
|
+
"metadata": looseObject({
|
|
21510
21563
|
"authorization": object({
|
|
21511
21564
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21512
21565
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21523,7 +21576,7 @@ union([
|
|
|
21523
21576
|
})).describe("An event of type project.deleted, with the shared event fields and its own payload.\n"),
|
|
21524
21577
|
object({
|
|
21525
21578
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21526
|
-
"project_id": string().regex(
|
|
21579
|
+
"project_id": string().regex(getEventResponseThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21527
21580
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21528
21581
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21529
21582
|
"category": _enum([
|
|
@@ -21560,7 +21613,7 @@ union([
|
|
|
21560
21613
|
"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
21614
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21562
21615
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21563
|
-
"metadata":
|
|
21616
|
+
"metadata": looseObject({
|
|
21564
21617
|
"authorization": object({
|
|
21565
21618
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21566
21619
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21584,7 +21637,7 @@ union([
|
|
|
21584
21637
|
})).describe("An event of type project.updated, with the shared event fields and its own payload.\n"),
|
|
21585
21638
|
object({
|
|
21586
21639
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21587
|
-
"project_id": string().regex(
|
|
21640
|
+
"project_id": string().regex(getEventResponseFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21588
21641
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21589
21642
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21590
21643
|
"category": _enum([
|
|
@@ -21621,7 +21674,7 @@ union([
|
|
|
21621
21674
|
"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
21675
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21623
21676
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21624
|
-
"metadata":
|
|
21677
|
+
"metadata": looseObject({
|
|
21625
21678
|
"authorization": object({
|
|
21626
21679
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21627
21680
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21648,7 +21701,7 @@ union([
|
|
|
21648
21701
|
})).describe("An event of type release.created, with the shared event fields and its own payload.\n"),
|
|
21649
21702
|
object({
|
|
21650
21703
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21651
|
-
"project_id": string().regex(
|
|
21704
|
+
"project_id": string().regex(getEventResponseFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21652
21705
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21653
21706
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21654
21707
|
"category": _enum([
|
|
@@ -21685,7 +21738,7 @@ union([
|
|
|
21685
21738
|
"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
21739
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21687
21740
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21688
|
-
"metadata":
|
|
21741
|
+
"metadata": looseObject({
|
|
21689
21742
|
"authorization": object({
|
|
21690
21743
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21691
21744
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21698,11 +21751,11 @@ union([
|
|
|
21698
21751
|
}).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
21752
|
}).describe("The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n").and(object({
|
|
21700
21753
|
"event_type": literal("release.revoked"),
|
|
21701
|
-
"payload": object({ "content_hash": string().min(71).max(71).regex(
|
|
21754
|
+
"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
21755
|
})).describe("An event of type release.revoked, with the shared event fields and its own payload.\n"),
|
|
21703
21756
|
object({
|
|
21704
21757
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21705
|
-
"project_id": string().regex(
|
|
21758
|
+
"project_id": string().regex(getEventResponseFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21706
21759
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21707
21760
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21708
21761
|
"category": _enum([
|
|
@@ -21739,7 +21792,7 @@ union([
|
|
|
21739
21792
|
"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
21793
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21741
21794
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21742
|
-
"metadata":
|
|
21795
|
+
"metadata": looseObject({
|
|
21743
21796
|
"authorization": object({
|
|
21744
21797
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21745
21798
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21770,7 +21823,7 @@ union([
|
|
|
21770
21823
|
})).describe("An event of type request.api, with the shared event fields and its own payload.\n"),
|
|
21771
21824
|
object({
|
|
21772
21825
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21773
|
-
"project_id": string().regex(
|
|
21826
|
+
"project_id": string().regex(getEventResponseFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21774
21827
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21775
21828
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21776
21829
|
"category": _enum([
|
|
@@ -21807,7 +21860,7 @@ union([
|
|
|
21807
21860
|
"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
21861
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21809
21862
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21810
|
-
"metadata":
|
|
21863
|
+
"metadata": looseObject({
|
|
21811
21864
|
"authorization": object({
|
|
21812
21865
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21813
21866
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21827,7 +21880,7 @@ union([
|
|
|
21827
21880
|
})).describe("An event of type schema.created, with the shared event fields and its own payload.\n"),
|
|
21828
21881
|
object({
|
|
21829
21882
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21830
|
-
"project_id": string().regex(
|
|
21883
|
+
"project_id": string().regex(getEventResponseFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21831
21884
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21832
21885
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21833
21886
|
"category": _enum([
|
|
@@ -21864,7 +21917,7 @@ union([
|
|
|
21864
21917
|
"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
21918
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21866
21919
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21867
|
-
"metadata":
|
|
21920
|
+
"metadata": looseObject({
|
|
21868
21921
|
"authorization": object({
|
|
21869
21922
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21870
21923
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21881,7 +21934,7 @@ union([
|
|
|
21881
21934
|
})).describe("An event of type session.deleted, with the shared event fields and its own payload.\n"),
|
|
21882
21935
|
object({
|
|
21883
21936
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21884
|
-
"project_id": string().regex(
|
|
21937
|
+
"project_id": string().regex(getEventResponseFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21885
21938
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21886
21939
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21887
21940
|
"category": _enum([
|
|
@@ -21918,7 +21971,7 @@ union([
|
|
|
21918
21971
|
"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
21972
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21920
21973
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21921
|
-
"metadata":
|
|
21974
|
+
"metadata": looseObject({
|
|
21922
21975
|
"authorization": object({
|
|
21923
21976
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21924
21977
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21935,7 +21988,7 @@ union([
|
|
|
21935
21988
|
})).describe("An event of type session.established, with the shared event fields and its own payload.\n"),
|
|
21936
21989
|
object({
|
|
21937
21990
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21938
|
-
"project_id": string().regex(
|
|
21991
|
+
"project_id": string().regex(getEventResponseFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21939
21992
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21940
21993
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21941
21994
|
"category": _enum([
|
|
@@ -21972,7 +22025,7 @@ union([
|
|
|
21972
22025
|
"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
22026
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
21974
22027
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
21975
|
-
"metadata":
|
|
22028
|
+
"metadata": looseObject({
|
|
21976
22029
|
"authorization": object({
|
|
21977
22030
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
21978
22031
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -21989,7 +22042,7 @@ union([
|
|
|
21989
22042
|
})).describe("An event of type team.created, with the shared event fields and its own payload.\n"),
|
|
21990
22043
|
object({
|
|
21991
22044
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
21992
|
-
"project_id": string().regex(
|
|
22045
|
+
"project_id": string().regex(getEventResponseFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
21993
22046
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
21994
22047
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
21995
22048
|
"category": _enum([
|
|
@@ -22026,7 +22079,7 @@ union([
|
|
|
22026
22079
|
"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
22080
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22028
22081
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22029
|
-
"metadata":
|
|
22082
|
+
"metadata": looseObject({
|
|
22030
22083
|
"authorization": object({
|
|
22031
22084
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22032
22085
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22043,7 +22096,7 @@ union([
|
|
|
22043
22096
|
})).describe("An event of type team.deactivated, with the shared event fields and its own payload.\n"),
|
|
22044
22097
|
object({
|
|
22045
22098
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22046
|
-
"project_id": string().regex(
|
|
22099
|
+
"project_id": string().regex(getEventResponseFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22047
22100
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22048
22101
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22049
22102
|
"category": _enum([
|
|
@@ -22080,7 +22133,7 @@ union([
|
|
|
22080
22133
|
"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
22134
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22082
22135
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22083
|
-
"metadata":
|
|
22136
|
+
"metadata": looseObject({
|
|
22084
22137
|
"authorization": object({
|
|
22085
22138
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22086
22139
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22097,7 +22150,7 @@ union([
|
|
|
22097
22150
|
})).describe("An event of type team.updated, with the shared event fields and its own payload.\n"),
|
|
22098
22151
|
object({
|
|
22099
22152
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22100
|
-
"project_id": string().regex(
|
|
22153
|
+
"project_id": string().regex(getEventResponseFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22101
22154
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22102
22155
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22103
22156
|
"category": _enum([
|
|
@@ -22134,7 +22187,7 @@ union([
|
|
|
22134
22187
|
"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
22188
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22136
22189
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22137
|
-
"metadata":
|
|
22190
|
+
"metadata": looseObject({
|
|
22138
22191
|
"authorization": object({
|
|
22139
22192
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22140
22193
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22151,7 +22204,7 @@ union([
|
|
|
22151
22204
|
})).describe("An event of type user.create.failed, with the shared event fields and its own payload.\n"),
|
|
22152
22205
|
object({
|
|
22153
22206
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22154
|
-
"project_id": string().regex(
|
|
22207
|
+
"project_id": string().regex(getEventResponseFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22155
22208
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22156
22209
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22157
22210
|
"category": _enum([
|
|
@@ -22188,7 +22241,7 @@ union([
|
|
|
22188
22241
|
"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
22242
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22190
22243
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22191
|
-
"metadata":
|
|
22244
|
+
"metadata": looseObject({
|
|
22192
22245
|
"authorization": object({
|
|
22193
22246
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22194
22247
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22209,7 +22262,7 @@ union([
|
|
|
22209
22262
|
})).describe("An event of type user.created, with the shared event fields and its own payload.\n"),
|
|
22210
22263
|
object({
|
|
22211
22264
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22212
|
-
"project_id": string().regex(
|
|
22265
|
+
"project_id": string().regex(getEventResponseFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22213
22266
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22214
22267
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22215
22268
|
"category": _enum([
|
|
@@ -22246,7 +22299,7 @@ union([
|
|
|
22246
22299
|
"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
22300
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22248
22301
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22249
|
-
"metadata":
|
|
22302
|
+
"metadata": looseObject({
|
|
22250
22303
|
"authorization": object({
|
|
22251
22304
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22252
22305
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22263,7 +22316,7 @@ union([
|
|
|
22263
22316
|
})).describe("An event of type user.deleted, with the shared event fields and its own payload.\n"),
|
|
22264
22317
|
object({
|
|
22265
22318
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22266
|
-
"project_id": string().regex(
|
|
22319
|
+
"project_id": string().regex(getEventResponseFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22267
22320
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22268
22321
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22269
22322
|
"category": _enum([
|
|
@@ -22300,7 +22353,7 @@ union([
|
|
|
22300
22353
|
"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
22354
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22302
22355
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22303
|
-
"metadata":
|
|
22356
|
+
"metadata": looseObject({
|
|
22304
22357
|
"authorization": object({
|
|
22305
22358
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22306
22359
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22320,7 +22373,7 @@ union([
|
|
|
22320
22373
|
})).describe("An event of type user.updated, with the shared event fields and its own payload.\n"),
|
|
22321
22374
|
object({
|
|
22322
22375
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22323
|
-
"project_id": string().regex(
|
|
22376
|
+
"project_id": string().regex(getEventResponseFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22324
22377
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22325
22378
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22326
22379
|
"category": _enum([
|
|
@@ -22357,7 +22410,7 @@ union([
|
|
|
22357
22410
|
"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
22411
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22359
22412
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22360
|
-
"metadata":
|
|
22413
|
+
"metadata": looseObject({
|
|
22361
22414
|
"authorization": object({
|
|
22362
22415
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22363
22416
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -22374,7 +22427,7 @@ union([
|
|
|
22374
22427
|
})).describe("An event of type variable.removed, with the shared event fields and its own payload.\n"),
|
|
22375
22428
|
object({
|
|
22376
22429
|
"id": string().describe("The event ID, in the form `evt_<opaque>`."),
|
|
22377
|
-
"project_id": string().regex(
|
|
22430
|
+
"project_id": string().regex(getEventResponseFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
22378
22431
|
"team_id": union([string(), _null()]).optional().describe("The team the actor operated under when the event was emitted, if any."),
|
|
22379
22432
|
"event_type": string().describe("The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"),
|
|
22380
22433
|
"category": _enum([
|
|
@@ -22411,7 +22464,7 @@ union([
|
|
|
22411
22464
|
"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
22465
|
"session_id": union([string(), _null()]).optional().describe("The ID of the session the event belongs to."),
|
|
22413
22466
|
"flow_id": union([string(), _null()]).optional().describe("An ID that correlates the events of one login flow."),
|
|
22414
|
-
"metadata":
|
|
22467
|
+
"metadata": looseObject({
|
|
22415
22468
|
"authorization": object({
|
|
22416
22469
|
"path": _enum(["platform_operator"]).describe("`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n"),
|
|
22417
22470
|
"actor_home_project_id": string().optional().describe("The project the actor's user belongs to.")
|
|
@@ -23629,6 +23682,8 @@ function getFreePort() {
|
|
|
23629
23682
|
});
|
|
23630
23683
|
}
|
|
23631
23684
|
// src/lifecycle.ts
|
|
23685
|
+
/** How many ports a start on an unspecified port tries before giving up. */
|
|
23686
|
+
const PORT_RACE_ATTEMPTS = 5;
|
|
23632
23687
|
/**
|
|
23633
23688
|
* Boot an ephemeral local server by shelling out to `zitadel start` and parse
|
|
23634
23689
|
* its JSON envelope. The CLI owns the subtle parts (port preflight, health
|
|
@@ -23638,22 +23693,27 @@ function getFreePort() {
|
|
|
23638
23693
|
async function bootLocalServer(options = {}) {
|
|
23639
23694
|
const ownsDir = options.dir === void 0;
|
|
23640
23695
|
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
23696
|
const env = cliEnv(options);
|
|
23643
|
-
const
|
|
23644
|
-
|
|
23645
|
-
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
|
|
23656
|
-
|
|
23697
|
+
const attempts = options.port === void 0 ? PORT_RACE_ATTEMPTS : 1;
|
|
23698
|
+
let result;
|
|
23699
|
+
for (let attempt = 1;; attempt += 1) {
|
|
23700
|
+
const port = options.port ?? await getFreePort();
|
|
23701
|
+
result = await runCli({
|
|
23702
|
+
args: [
|
|
23703
|
+
"start",
|
|
23704
|
+
"--port",
|
|
23705
|
+
String(port),
|
|
23706
|
+
"--non-interactive",
|
|
23707
|
+
"--json",
|
|
23708
|
+
"-c",
|
|
23709
|
+
dir
|
|
23710
|
+
],
|
|
23711
|
+
bin: options.cliBin,
|
|
23712
|
+
env,
|
|
23713
|
+
timeoutMs: options.timeoutMs
|
|
23714
|
+
});
|
|
23715
|
+
if (result.exitCode === 0 || attempt >= attempts || !result.stdout.concat(result.stderr).includes("E_PORT_IN_USE")) break;
|
|
23716
|
+
}
|
|
23657
23717
|
if (result.exitCode !== 0) throw new Error(`zitadel start exited with code ${result.exitCode}.\n${failureDetail(result)}\nstate dir kept for inspection: ${dir}`);
|
|
23658
23718
|
const stopViaCli = async () => {
|
|
23659
23719
|
const stopResult = await runCli({
|
|
@@ -24073,4 +24133,4 @@ Object.defineProperty(exports, "startLocalZitadel", {
|
|
|
24073
24133
|
}
|
|
24074
24134
|
});
|
|
24075
24135
|
|
|
24076
|
-
//# sourceMappingURL=src-
|
|
24136
|
+
//# sourceMappingURL=src-DZ46zEll.cjs.map
|