@domino-sdk/relay 1.0.0-next.5 → 1.0.0-next.6
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/authoring.d.ts +6 -0
- package/dist/authoring.js +13 -5
- package/dist/browser.d.ts +175 -162
- package/dist/browser.js +6 -6
- package/dist/{chunk-VH4OQ5VX.js → chunk-5IIWKDFX.js} +1 -1
- package/dist/{chunk-NKGJEYZM.js → chunk-BRESOTKV.js} +11 -1
- package/dist/{chunk-4KNTMNXA.js → chunk-ERBVT7GE.js} +4 -4
- package/dist/{chunk-FDWRBMB3.js → chunk-RTHN22KO.js} +2 -2
- package/dist/{chunk-ONDBQSMU.js → chunk-XEQDW7FM.js} +1 -1
- package/dist/{chunk-B76BAJ25.js → chunk-ZKJBCQNI.js} +2 -2
- package/dist/index.d.ts +409 -392
- package/dist/index.js +5 -5
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +14 -0
- package/dist/react/index.js +6 -6
- package/dist/schema.d.ts +6 -0
- package/dist/schema.js +1 -1
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -409,7 +409,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
409
409
|
accounts: {
|
|
410
410
|
id: string;
|
|
411
411
|
program: string;
|
|
412
|
-
kind: "
|
|
412
|
+
kind: "fixed" | "milestone" | "bonus";
|
|
413
413
|
balance: string;
|
|
414
414
|
earned: number;
|
|
415
415
|
settled: number;
|
|
@@ -603,7 +603,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
603
603
|
seed: string;
|
|
604
604
|
};
|
|
605
605
|
displayName: string | null;
|
|
606
|
-
avatarChoice: "default" | "account" | "
|
|
606
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
607
607
|
avatarProvider: "x" | "discord" | "google" | null;
|
|
608
608
|
hidden: boolean;
|
|
609
609
|
locked: boolean;
|
|
@@ -633,7 +633,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
633
633
|
seed: string;
|
|
634
634
|
};
|
|
635
635
|
displayName: string | null;
|
|
636
|
-
avatarChoice: "default" | "account" | "
|
|
636
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
637
637
|
avatarProvider: "x" | "discord" | "google" | null;
|
|
638
638
|
hidden: boolean;
|
|
639
639
|
locked: boolean;
|
|
@@ -664,7 +664,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
664
664
|
seed: string;
|
|
665
665
|
};
|
|
666
666
|
displayName: string | null;
|
|
667
|
-
avatarChoice: "default" | "account" | "
|
|
667
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
668
668
|
avatarProvider: "x" | "discord" | "google" | null;
|
|
669
669
|
hidden: boolean;
|
|
670
670
|
locked: boolean;
|
|
@@ -752,7 +752,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
752
752
|
start: number;
|
|
753
753
|
end?: number | undefined;
|
|
754
754
|
};
|
|
755
|
-
enrollment: "
|
|
755
|
+
enrollment: "none" | "required";
|
|
756
756
|
posts: "after-enrollment" | "since-start";
|
|
757
757
|
historical: "staff" | "automatic" | "claim";
|
|
758
758
|
} | undefined;
|
|
@@ -799,12 +799,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
799
799
|
actor?: "member" | "staff" | undefined;
|
|
800
800
|
} | {
|
|
801
801
|
kind: "manual";
|
|
802
|
-
input: "
|
|
802
|
+
input: "none" | "quiz" | "photo";
|
|
803
803
|
actor?: "member" | "staff" | undefined;
|
|
804
804
|
};
|
|
805
805
|
availability: {
|
|
806
806
|
kind: "available";
|
|
807
|
-
input: "
|
|
807
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
808
808
|
} | {
|
|
809
809
|
kind: "completed";
|
|
810
810
|
} | {
|
|
@@ -842,7 +842,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
842
842
|
kind: "keyed";
|
|
843
843
|
};
|
|
844
844
|
completionCount: number;
|
|
845
|
-
visibility: "
|
|
845
|
+
visibility: "visible" | "hidden";
|
|
846
846
|
missing: {
|
|
847
847
|
quest: string;
|
|
848
848
|
title: string;
|
|
@@ -853,7 +853,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
853
853
|
quest: string;
|
|
854
854
|
member: string;
|
|
855
855
|
evidence: string | null;
|
|
856
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
856
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
857
857
|
reason: string | null;
|
|
858
858
|
retries: number;
|
|
859
859
|
generation: number;
|
|
@@ -885,24 +885,25 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
885
885
|
action: "grant-role";
|
|
886
886
|
roleId: string;
|
|
887
887
|
})[] | null;
|
|
888
|
+
requestedReview: boolean;
|
|
888
889
|
createdAt: number;
|
|
889
890
|
input?: {
|
|
890
|
-
kind: "quiz";
|
|
891
|
-
answers: {
|
|
892
|
-
[k: string]: string;
|
|
893
|
-
};
|
|
894
|
-
release?: string | undefined;
|
|
895
|
-
} | {
|
|
896
891
|
kind: "text";
|
|
897
892
|
value: string;
|
|
898
893
|
} | {
|
|
899
894
|
kind: "url";
|
|
900
895
|
value: string;
|
|
896
|
+
} | {
|
|
897
|
+
kind: "quiz";
|
|
898
|
+
answers: {
|
|
899
|
+
[k: string]: string;
|
|
900
|
+
};
|
|
901
|
+
release?: string | undefined;
|
|
901
902
|
} | undefined;
|
|
902
903
|
} | null;
|
|
903
904
|
release: string;
|
|
904
|
-
interaction: "
|
|
905
|
-
lifecycle: "
|
|
905
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
906
|
+
lifecycle: "paused" | "active" | "archived";
|
|
906
907
|
rewards: ({
|
|
907
908
|
kind: "points";
|
|
908
909
|
label: string;
|
|
@@ -963,7 +964,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
963
964
|
quest: string;
|
|
964
965
|
member: string;
|
|
965
966
|
evidence: string | null;
|
|
966
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
967
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
967
968
|
reason: string | null;
|
|
968
969
|
retries: number;
|
|
969
970
|
generation: number;
|
|
@@ -995,19 +996,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
995
996
|
action: "grant-role";
|
|
996
997
|
roleId: string;
|
|
997
998
|
})[] | null;
|
|
999
|
+
requestedReview: boolean;
|
|
998
1000
|
createdAt: number;
|
|
999
1001
|
input?: {
|
|
1000
|
-
kind: "quiz";
|
|
1001
|
-
answers: {
|
|
1002
|
-
[k: string]: string;
|
|
1003
|
-
};
|
|
1004
|
-
release?: string | undefined;
|
|
1005
|
-
} | {
|
|
1006
1002
|
kind: "text";
|
|
1007
1003
|
value: string;
|
|
1008
1004
|
} | {
|
|
1009
1005
|
kind: "url";
|
|
1010
1006
|
value: string;
|
|
1007
|
+
} | {
|
|
1008
|
+
kind: "quiz";
|
|
1009
|
+
answers: {
|
|
1010
|
+
[k: string]: string;
|
|
1011
|
+
};
|
|
1012
|
+
release?: string | undefined;
|
|
1011
1013
|
} | undefined;
|
|
1012
1014
|
}>;
|
|
1013
1015
|
experience: () => Promise<{
|
|
@@ -1048,7 +1050,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1048
1050
|
start: number;
|
|
1049
1051
|
end?: number | undefined;
|
|
1050
1052
|
};
|
|
1051
|
-
enrollment: "
|
|
1053
|
+
enrollment: "none" | "required";
|
|
1052
1054
|
posts: "after-enrollment" | "since-start";
|
|
1053
1055
|
historical: "staff" | "automatic" | "claim";
|
|
1054
1056
|
} | undefined;
|
|
@@ -1095,12 +1097,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1095
1097
|
actor?: "member" | "staff" | undefined;
|
|
1096
1098
|
} | {
|
|
1097
1099
|
kind: "manual";
|
|
1098
|
-
input: "
|
|
1100
|
+
input: "none" | "quiz" | "photo";
|
|
1099
1101
|
actor?: "member" | "staff" | undefined;
|
|
1100
1102
|
};
|
|
1101
1103
|
availability: {
|
|
1102
1104
|
kind: "available";
|
|
1103
|
-
input: "
|
|
1105
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
1104
1106
|
} | {
|
|
1105
1107
|
kind: "completed";
|
|
1106
1108
|
} | {
|
|
@@ -1138,7 +1140,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1138
1140
|
kind: "keyed";
|
|
1139
1141
|
};
|
|
1140
1142
|
completionCount: number;
|
|
1141
|
-
visibility: "
|
|
1143
|
+
visibility: "visible" | "hidden";
|
|
1142
1144
|
missing: {
|
|
1143
1145
|
quest: string;
|
|
1144
1146
|
title: string;
|
|
@@ -1149,7 +1151,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1149
1151
|
quest: string;
|
|
1150
1152
|
member: string;
|
|
1151
1153
|
evidence: string | null;
|
|
1152
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
1154
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
1153
1155
|
reason: string | null;
|
|
1154
1156
|
retries: number;
|
|
1155
1157
|
generation: number;
|
|
@@ -1181,24 +1183,25 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1181
1183
|
action: "grant-role";
|
|
1182
1184
|
roleId: string;
|
|
1183
1185
|
})[] | null;
|
|
1186
|
+
requestedReview: boolean;
|
|
1184
1187
|
createdAt: number;
|
|
1185
1188
|
input?: {
|
|
1186
|
-
kind: "quiz";
|
|
1187
|
-
answers: {
|
|
1188
|
-
[k: string]: string;
|
|
1189
|
-
};
|
|
1190
|
-
release?: string | undefined;
|
|
1191
|
-
} | {
|
|
1192
1189
|
kind: "text";
|
|
1193
1190
|
value: string;
|
|
1194
1191
|
} | {
|
|
1195
1192
|
kind: "url";
|
|
1196
1193
|
value: string;
|
|
1194
|
+
} | {
|
|
1195
|
+
kind: "quiz";
|
|
1196
|
+
answers: {
|
|
1197
|
+
[k: string]: string;
|
|
1198
|
+
};
|
|
1199
|
+
release?: string | undefined;
|
|
1197
1200
|
} | undefined;
|
|
1198
1201
|
} | null;
|
|
1199
1202
|
release: string;
|
|
1200
|
-
interaction: "
|
|
1201
|
-
lifecycle: "
|
|
1203
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
1204
|
+
lifecycle: "paused" | "active" | "archived";
|
|
1202
1205
|
rewards: ({
|
|
1203
1206
|
kind: "points";
|
|
1204
1207
|
label: string;
|
|
@@ -1292,7 +1295,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1292
1295
|
start: number;
|
|
1293
1296
|
end?: number | undefined;
|
|
1294
1297
|
};
|
|
1295
|
-
enrollment: "
|
|
1298
|
+
enrollment: "none" | "required";
|
|
1296
1299
|
posts: "after-enrollment" | "since-start";
|
|
1297
1300
|
historical: "staff" | "automatic" | "claim";
|
|
1298
1301
|
} | undefined;
|
|
@@ -1339,12 +1342,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1339
1342
|
actor?: "member" | "staff" | undefined;
|
|
1340
1343
|
} | {
|
|
1341
1344
|
kind: "manual";
|
|
1342
|
-
input: "
|
|
1345
|
+
input: "none" | "quiz" | "photo";
|
|
1343
1346
|
actor?: "member" | "staff" | undefined;
|
|
1344
1347
|
};
|
|
1345
1348
|
availability: {
|
|
1346
1349
|
kind: "available";
|
|
1347
|
-
input: "
|
|
1350
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
1348
1351
|
} | {
|
|
1349
1352
|
kind: "completed";
|
|
1350
1353
|
} | {
|
|
@@ -1382,7 +1385,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1382
1385
|
kind: "keyed";
|
|
1383
1386
|
};
|
|
1384
1387
|
completionCount: number;
|
|
1385
|
-
visibility: "
|
|
1388
|
+
visibility: "visible" | "hidden";
|
|
1386
1389
|
missing: {
|
|
1387
1390
|
quest: string;
|
|
1388
1391
|
title: string;
|
|
@@ -1393,7 +1396,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1393
1396
|
quest: string;
|
|
1394
1397
|
member: string;
|
|
1395
1398
|
evidence: string | null;
|
|
1396
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
1399
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
1397
1400
|
reason: string | null;
|
|
1398
1401
|
retries: number;
|
|
1399
1402
|
generation: number;
|
|
@@ -1425,24 +1428,25 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1425
1428
|
action: "grant-role";
|
|
1426
1429
|
roleId: string;
|
|
1427
1430
|
})[] | null;
|
|
1431
|
+
requestedReview: boolean;
|
|
1428
1432
|
createdAt: number;
|
|
1429
1433
|
input?: {
|
|
1430
|
-
kind: "quiz";
|
|
1431
|
-
answers: {
|
|
1432
|
-
[k: string]: string;
|
|
1433
|
-
};
|
|
1434
|
-
release?: string | undefined;
|
|
1435
|
-
} | {
|
|
1436
1434
|
kind: "text";
|
|
1437
1435
|
value: string;
|
|
1438
1436
|
} | {
|
|
1439
1437
|
kind: "url";
|
|
1440
1438
|
value: string;
|
|
1439
|
+
} | {
|
|
1440
|
+
kind: "quiz";
|
|
1441
|
+
answers: {
|
|
1442
|
+
[k: string]: string;
|
|
1443
|
+
};
|
|
1444
|
+
release?: string | undefined;
|
|
1441
1445
|
} | undefined;
|
|
1442
1446
|
} | null;
|
|
1443
1447
|
release: string;
|
|
1444
|
-
interaction: "
|
|
1445
|
-
lifecycle: "
|
|
1448
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
1449
|
+
lifecycle: "paused" | "active" | "archived";
|
|
1446
1450
|
rewards: ({
|
|
1447
1451
|
kind: "points";
|
|
1448
1452
|
label: string;
|
|
@@ -1539,7 +1543,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1539
1543
|
start: number;
|
|
1540
1544
|
end?: number | undefined;
|
|
1541
1545
|
};
|
|
1542
|
-
enrollment: "
|
|
1546
|
+
enrollment: "none" | "required";
|
|
1543
1547
|
posts: "after-enrollment" | "since-start";
|
|
1544
1548
|
historical: "staff" | "automatic" | "claim";
|
|
1545
1549
|
} | undefined;
|
|
@@ -1586,12 +1590,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1586
1590
|
actor?: "member" | "staff" | undefined;
|
|
1587
1591
|
} | {
|
|
1588
1592
|
kind: "manual";
|
|
1589
|
-
input: "
|
|
1593
|
+
input: "none" | "quiz" | "photo";
|
|
1590
1594
|
actor?: "member" | "staff" | undefined;
|
|
1591
1595
|
};
|
|
1592
1596
|
availability: {
|
|
1593
1597
|
kind: "available";
|
|
1594
|
-
input: "
|
|
1598
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
1595
1599
|
} | {
|
|
1596
1600
|
kind: "completed";
|
|
1597
1601
|
} | {
|
|
@@ -1629,7 +1633,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1629
1633
|
kind: "keyed";
|
|
1630
1634
|
};
|
|
1631
1635
|
completionCount: number;
|
|
1632
|
-
visibility: "
|
|
1636
|
+
visibility: "visible" | "hidden";
|
|
1633
1637
|
missing: {
|
|
1634
1638
|
quest: string;
|
|
1635
1639
|
title: string;
|
|
@@ -1640,7 +1644,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1640
1644
|
quest: string;
|
|
1641
1645
|
member: string;
|
|
1642
1646
|
evidence: string | null;
|
|
1643
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
1647
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
1644
1648
|
reason: string | null;
|
|
1645
1649
|
retries: number;
|
|
1646
1650
|
generation: number;
|
|
@@ -1672,24 +1676,25 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1672
1676
|
action: "grant-role";
|
|
1673
1677
|
roleId: string;
|
|
1674
1678
|
})[] | null;
|
|
1679
|
+
requestedReview: boolean;
|
|
1675
1680
|
createdAt: number;
|
|
1676
1681
|
input?: {
|
|
1677
|
-
kind: "quiz";
|
|
1678
|
-
answers: {
|
|
1679
|
-
[k: string]: string;
|
|
1680
|
-
};
|
|
1681
|
-
release?: string | undefined;
|
|
1682
|
-
} | {
|
|
1683
1682
|
kind: "text";
|
|
1684
1683
|
value: string;
|
|
1685
1684
|
} | {
|
|
1686
1685
|
kind: "url";
|
|
1687
1686
|
value: string;
|
|
1687
|
+
} | {
|
|
1688
|
+
kind: "quiz";
|
|
1689
|
+
answers: {
|
|
1690
|
+
[k: string]: string;
|
|
1691
|
+
};
|
|
1692
|
+
release?: string | undefined;
|
|
1688
1693
|
} | undefined;
|
|
1689
1694
|
} | null;
|
|
1690
1695
|
release: string;
|
|
1691
|
-
interaction: "
|
|
1692
|
-
lifecycle: "
|
|
1696
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
1697
|
+
lifecycle: "paused" | "active" | "archived";
|
|
1693
1698
|
rewards: ({
|
|
1694
1699
|
kind: "points";
|
|
1695
1700
|
label: string;
|
|
@@ -1991,7 +1996,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1991
1996
|
quest: string;
|
|
1992
1997
|
member: string;
|
|
1993
1998
|
evidence: string | null;
|
|
1994
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
1999
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
1995
2000
|
reason: string | null;
|
|
1996
2001
|
retries: number;
|
|
1997
2002
|
generation: number;
|
|
@@ -2023,19 +2028,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2023
2028
|
action: "grant-role";
|
|
2024
2029
|
roleId: string;
|
|
2025
2030
|
})[] | null;
|
|
2031
|
+
requestedReview: boolean;
|
|
2026
2032
|
createdAt: number;
|
|
2027
2033
|
input?: {
|
|
2028
|
-
kind: "quiz";
|
|
2029
|
-
answers: {
|
|
2030
|
-
[k: string]: string;
|
|
2031
|
-
};
|
|
2032
|
-
release?: string | undefined;
|
|
2033
|
-
} | {
|
|
2034
2034
|
kind: "text";
|
|
2035
2035
|
value: string;
|
|
2036
2036
|
} | {
|
|
2037
2037
|
kind: "url";
|
|
2038
2038
|
value: string;
|
|
2039
|
+
} | {
|
|
2040
|
+
kind: "quiz";
|
|
2041
|
+
answers: {
|
|
2042
|
+
[k: string]: string;
|
|
2043
|
+
};
|
|
2044
|
+
release?: string | undefined;
|
|
2039
2045
|
} | undefined;
|
|
2040
2046
|
}>;
|
|
2041
2047
|
progress: () => Promise<{
|
|
@@ -2076,7 +2082,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2076
2082
|
start: number;
|
|
2077
2083
|
end?: number | undefined;
|
|
2078
2084
|
};
|
|
2079
|
-
enrollment: "
|
|
2085
|
+
enrollment: "none" | "required";
|
|
2080
2086
|
posts: "after-enrollment" | "since-start";
|
|
2081
2087
|
historical: "staff" | "automatic" | "claim";
|
|
2082
2088
|
} | undefined;
|
|
@@ -2123,12 +2129,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2123
2129
|
actor?: "member" | "staff" | undefined;
|
|
2124
2130
|
} | {
|
|
2125
2131
|
kind: "manual";
|
|
2126
|
-
input: "
|
|
2132
|
+
input: "none" | "quiz" | "photo";
|
|
2127
2133
|
actor?: "member" | "staff" | undefined;
|
|
2128
2134
|
};
|
|
2129
2135
|
availability: {
|
|
2130
2136
|
kind: "available";
|
|
2131
|
-
input: "
|
|
2137
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
2132
2138
|
} | {
|
|
2133
2139
|
kind: "completed";
|
|
2134
2140
|
} | {
|
|
@@ -2166,7 +2172,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2166
2172
|
kind: "keyed";
|
|
2167
2173
|
};
|
|
2168
2174
|
completionCount: number;
|
|
2169
|
-
visibility: "
|
|
2175
|
+
visibility: "visible" | "hidden";
|
|
2170
2176
|
missing: {
|
|
2171
2177
|
quest: string;
|
|
2172
2178
|
title: string;
|
|
@@ -2177,7 +2183,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2177
2183
|
quest: string;
|
|
2178
2184
|
member: string;
|
|
2179
2185
|
evidence: string | null;
|
|
2180
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
2186
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
2181
2187
|
reason: string | null;
|
|
2182
2188
|
retries: number;
|
|
2183
2189
|
generation: number;
|
|
@@ -2209,19 +2215,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2209
2215
|
action: "grant-role";
|
|
2210
2216
|
roleId: string;
|
|
2211
2217
|
})[] | null;
|
|
2218
|
+
requestedReview: boolean;
|
|
2212
2219
|
createdAt: number;
|
|
2213
2220
|
input?: {
|
|
2214
|
-
kind: "quiz";
|
|
2215
|
-
answers: {
|
|
2216
|
-
[k: string]: string;
|
|
2217
|
-
};
|
|
2218
|
-
release?: string | undefined;
|
|
2219
|
-
} | {
|
|
2220
2221
|
kind: "text";
|
|
2221
2222
|
value: string;
|
|
2222
2223
|
} | {
|
|
2223
2224
|
kind: "url";
|
|
2224
2225
|
value: string;
|
|
2226
|
+
} | {
|
|
2227
|
+
kind: "quiz";
|
|
2228
|
+
answers: {
|
|
2229
|
+
[k: string]: string;
|
|
2230
|
+
};
|
|
2231
|
+
release?: string | undefined;
|
|
2225
2232
|
} | undefined;
|
|
2226
2233
|
} | null;
|
|
2227
2234
|
key?: string | undefined;
|
|
@@ -2360,7 +2367,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2360
2367
|
quest: string;
|
|
2361
2368
|
member: string;
|
|
2362
2369
|
evidence: string | null;
|
|
2363
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
2370
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
2364
2371
|
reason: string | null;
|
|
2365
2372
|
retries: number;
|
|
2366
2373
|
generation: number;
|
|
@@ -2392,19 +2399,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2392
2399
|
action: "grant-role";
|
|
2393
2400
|
roleId: string;
|
|
2394
2401
|
})[] | null;
|
|
2402
|
+
requestedReview: boolean;
|
|
2395
2403
|
createdAt: number;
|
|
2396
2404
|
input?: {
|
|
2397
|
-
kind: "quiz";
|
|
2398
|
-
answers: {
|
|
2399
|
-
[k: string]: string;
|
|
2400
|
-
};
|
|
2401
|
-
release?: string | undefined;
|
|
2402
|
-
} | {
|
|
2403
2405
|
kind: "text";
|
|
2404
2406
|
value: string;
|
|
2405
2407
|
} | {
|
|
2406
2408
|
kind: "url";
|
|
2407
2409
|
value: string;
|
|
2410
|
+
} | {
|
|
2411
|
+
kind: "quiz";
|
|
2412
|
+
answers: {
|
|
2413
|
+
[k: string]: string;
|
|
2414
|
+
};
|
|
2415
|
+
release?: string | undefined;
|
|
2408
2416
|
} | undefined;
|
|
2409
2417
|
}>;
|
|
2410
2418
|
upload: (file: File) => Promise<{
|
|
@@ -2426,7 +2434,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2426
2434
|
code: string;
|
|
2427
2435
|
definition: {
|
|
2428
2436
|
quest: string;
|
|
2429
|
-
runtimeVersion:
|
|
2437
|
+
runtimeVersion: 2 | 1;
|
|
2430
2438
|
title: string;
|
|
2431
2439
|
presentation: {
|
|
2432
2440
|
quiz?: {
|
|
@@ -2565,7 +2573,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2565
2573
|
start: number;
|
|
2566
2574
|
end?: number | undefined;
|
|
2567
2575
|
};
|
|
2568
|
-
enrollment: "
|
|
2576
|
+
enrollment: "none" | "required";
|
|
2569
2577
|
posts: "after-enrollment" | "since-start";
|
|
2570
2578
|
historical: "staff" | "automatic" | "claim";
|
|
2571
2579
|
} | undefined;
|
|
@@ -2612,7 +2620,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2612
2620
|
actor?: "member" | "staff" | undefined;
|
|
2613
2621
|
} | {
|
|
2614
2622
|
kind: "manual";
|
|
2615
|
-
input: "
|
|
2623
|
+
input: "none" | "quiz" | "photo";
|
|
2616
2624
|
actor?: "member" | "staff" | undefined;
|
|
2617
2625
|
};
|
|
2618
2626
|
requires: {
|
|
@@ -2627,10 +2635,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2627
2635
|
} | {
|
|
2628
2636
|
kind: "keyed";
|
|
2629
2637
|
};
|
|
2630
|
-
visibility: "
|
|
2638
|
+
visibility: "visible" | "hidden";
|
|
2631
2639
|
budgets: {
|
|
2632
2640
|
id: string;
|
|
2633
|
-
scope: "
|
|
2641
|
+
scope: "project" | "member";
|
|
2634
2642
|
period: "day" | "lifetime" | "week";
|
|
2635
2643
|
limit: number;
|
|
2636
2644
|
cost: number | {
|
|
@@ -2650,7 +2658,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2650
2658
|
code: string;
|
|
2651
2659
|
definition: {
|
|
2652
2660
|
quest: string;
|
|
2653
|
-
runtimeVersion:
|
|
2661
|
+
runtimeVersion: 2 | 1;
|
|
2654
2662
|
title: string;
|
|
2655
2663
|
presentation: {
|
|
2656
2664
|
quiz?: {
|
|
@@ -2789,7 +2797,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2789
2797
|
start: number;
|
|
2790
2798
|
end?: number | undefined;
|
|
2791
2799
|
};
|
|
2792
|
-
enrollment: "
|
|
2800
|
+
enrollment: "none" | "required";
|
|
2793
2801
|
posts: "after-enrollment" | "since-start";
|
|
2794
2802
|
historical: "staff" | "automatic" | "claim";
|
|
2795
2803
|
} | undefined;
|
|
@@ -2836,7 +2844,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2836
2844
|
actor?: "member" | "staff" | undefined;
|
|
2837
2845
|
} | {
|
|
2838
2846
|
kind: "manual";
|
|
2839
|
-
input: "
|
|
2847
|
+
input: "none" | "quiz" | "photo";
|
|
2840
2848
|
actor?: "member" | "staff" | undefined;
|
|
2841
2849
|
};
|
|
2842
2850
|
requires: {
|
|
@@ -2851,10 +2859,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2851
2859
|
} | {
|
|
2852
2860
|
kind: "keyed";
|
|
2853
2861
|
};
|
|
2854
|
-
visibility: "
|
|
2862
|
+
visibility: "visible" | "hidden";
|
|
2855
2863
|
budgets: {
|
|
2856
2864
|
id: string;
|
|
2857
|
-
scope: "
|
|
2865
|
+
scope: "project" | "member";
|
|
2858
2866
|
period: "day" | "lifetime" | "week";
|
|
2859
2867
|
limit: number;
|
|
2860
2868
|
cost: number | {
|
|
@@ -2873,7 +2881,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2873
2881
|
snapshot: () => Promise<{
|
|
2874
2882
|
releases: {
|
|
2875
2883
|
quest: string;
|
|
2876
|
-
runtimeVersion:
|
|
2884
|
+
runtimeVersion: 2 | 1;
|
|
2877
2885
|
title: string;
|
|
2878
2886
|
presentation: {
|
|
2879
2887
|
quiz?: {
|
|
@@ -3012,7 +3020,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3012
3020
|
start: number;
|
|
3013
3021
|
end?: number | undefined;
|
|
3014
3022
|
};
|
|
3015
|
-
enrollment: "
|
|
3023
|
+
enrollment: "none" | "required";
|
|
3016
3024
|
posts: "after-enrollment" | "since-start";
|
|
3017
3025
|
historical: "staff" | "automatic" | "claim";
|
|
3018
3026
|
} | undefined;
|
|
@@ -3059,7 +3067,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3059
3067
|
actor?: "member" | "staff" | undefined;
|
|
3060
3068
|
} | {
|
|
3061
3069
|
kind: "manual";
|
|
3062
|
-
input: "
|
|
3070
|
+
input: "none" | "quiz" | "photo";
|
|
3063
3071
|
actor?: "member" | "staff" | undefined;
|
|
3064
3072
|
};
|
|
3065
3073
|
requires: {
|
|
@@ -3074,10 +3082,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3074
3082
|
} | {
|
|
3075
3083
|
kind: "keyed";
|
|
3076
3084
|
};
|
|
3077
|
-
visibility: "
|
|
3085
|
+
visibility: "visible" | "hidden";
|
|
3078
3086
|
budgets: {
|
|
3079
3087
|
id: string;
|
|
3080
|
-
scope: "
|
|
3088
|
+
scope: "project" | "member";
|
|
3081
3089
|
period: "day" | "lifetime" | "week";
|
|
3082
3090
|
limit: number;
|
|
3083
3091
|
cost: number | {
|
|
@@ -3089,7 +3097,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3089
3097
|
id: string;
|
|
3090
3098
|
createdAt: number;
|
|
3091
3099
|
legacy: boolean;
|
|
3092
|
-
lifecycle: "
|
|
3100
|
+
lifecycle: "paused" | "active" | "archived";
|
|
3093
3101
|
performance?: {
|
|
3094
3102
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3095
3103
|
maxAgeMs: number;
|
|
@@ -3212,7 +3220,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3212
3220
|
quest: string;
|
|
3213
3221
|
member: string;
|
|
3214
3222
|
evidence: string | null;
|
|
3215
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
3223
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
3216
3224
|
reason: string | null;
|
|
3217
3225
|
retries: number;
|
|
3218
3226
|
generation: number;
|
|
@@ -3244,19 +3252,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3244
3252
|
action: "grant-role";
|
|
3245
3253
|
roleId: string;
|
|
3246
3254
|
})[] | null;
|
|
3255
|
+
requestedReview: boolean;
|
|
3247
3256
|
createdAt: number;
|
|
3248
3257
|
input?: {
|
|
3249
|
-
kind: "quiz";
|
|
3250
|
-
answers: {
|
|
3251
|
-
[k: string]: string;
|
|
3252
|
-
};
|
|
3253
|
-
release?: string | undefined;
|
|
3254
|
-
} | {
|
|
3255
3258
|
kind: "text";
|
|
3256
3259
|
value: string;
|
|
3257
3260
|
} | {
|
|
3258
3261
|
kind: "url";
|
|
3259
3262
|
value: string;
|
|
3263
|
+
} | {
|
|
3264
|
+
kind: "quiz";
|
|
3265
|
+
answers: {
|
|
3266
|
+
[k: string]: string;
|
|
3267
|
+
};
|
|
3268
|
+
release?: string | undefined;
|
|
3260
3269
|
} | undefined;
|
|
3261
3270
|
}[];
|
|
3262
3271
|
balances: {
|
|
@@ -3277,7 +3286,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3277
3286
|
}>;
|
|
3278
3287
|
publish: (release: ReleaseInput) => Promise<{
|
|
3279
3288
|
quest: string;
|
|
3280
|
-
runtimeVersion:
|
|
3289
|
+
runtimeVersion: 2 | 1;
|
|
3281
3290
|
title: string;
|
|
3282
3291
|
presentation: {
|
|
3283
3292
|
quiz?: {
|
|
@@ -3416,7 +3425,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3416
3425
|
start: number;
|
|
3417
3426
|
end?: number | undefined;
|
|
3418
3427
|
};
|
|
3419
|
-
enrollment: "
|
|
3428
|
+
enrollment: "none" | "required";
|
|
3420
3429
|
posts: "after-enrollment" | "since-start";
|
|
3421
3430
|
historical: "staff" | "automatic" | "claim";
|
|
3422
3431
|
} | undefined;
|
|
@@ -3463,7 +3472,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3463
3472
|
actor?: "member" | "staff" | undefined;
|
|
3464
3473
|
} | {
|
|
3465
3474
|
kind: "manual";
|
|
3466
|
-
input: "
|
|
3475
|
+
input: "none" | "quiz" | "photo";
|
|
3467
3476
|
actor?: "member" | "staff" | undefined;
|
|
3468
3477
|
};
|
|
3469
3478
|
requires: {
|
|
@@ -3478,10 +3487,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3478
3487
|
} | {
|
|
3479
3488
|
kind: "keyed";
|
|
3480
3489
|
};
|
|
3481
|
-
visibility: "
|
|
3490
|
+
visibility: "visible" | "hidden";
|
|
3482
3491
|
budgets: {
|
|
3483
3492
|
id: string;
|
|
3484
|
-
scope: "
|
|
3493
|
+
scope: "project" | "member";
|
|
3485
3494
|
period: "day" | "lifetime" | "week";
|
|
3486
3495
|
limit: number;
|
|
3487
3496
|
cost: number | {
|
|
@@ -3493,7 +3502,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3493
3502
|
id: string;
|
|
3494
3503
|
createdAt: number;
|
|
3495
3504
|
legacy: boolean;
|
|
3496
|
-
lifecycle: "
|
|
3505
|
+
lifecycle: "paused" | "active" | "archived";
|
|
3497
3506
|
performance?: {
|
|
3498
3507
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3499
3508
|
maxAgeMs: number;
|
|
@@ -3529,7 +3538,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3529
3538
|
}>;
|
|
3530
3539
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
3531
3540
|
quest: string;
|
|
3532
|
-
runtimeVersion:
|
|
3541
|
+
runtimeVersion: 2 | 1;
|
|
3533
3542
|
title: string;
|
|
3534
3543
|
presentation: {
|
|
3535
3544
|
quiz?: {
|
|
@@ -3668,7 +3677,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3668
3677
|
start: number;
|
|
3669
3678
|
end?: number | undefined;
|
|
3670
3679
|
};
|
|
3671
|
-
enrollment: "
|
|
3680
|
+
enrollment: "none" | "required";
|
|
3672
3681
|
posts: "after-enrollment" | "since-start";
|
|
3673
3682
|
historical: "staff" | "automatic" | "claim";
|
|
3674
3683
|
} | undefined;
|
|
@@ -3715,7 +3724,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3715
3724
|
actor?: "member" | "staff" | undefined;
|
|
3716
3725
|
} | {
|
|
3717
3726
|
kind: "manual";
|
|
3718
|
-
input: "
|
|
3727
|
+
input: "none" | "quiz" | "photo";
|
|
3719
3728
|
actor?: "member" | "staff" | undefined;
|
|
3720
3729
|
};
|
|
3721
3730
|
requires: {
|
|
@@ -3730,10 +3739,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3730
3739
|
} | {
|
|
3731
3740
|
kind: "keyed";
|
|
3732
3741
|
};
|
|
3733
|
-
visibility: "
|
|
3742
|
+
visibility: "visible" | "hidden";
|
|
3734
3743
|
budgets: {
|
|
3735
3744
|
id: string;
|
|
3736
|
-
scope: "
|
|
3745
|
+
scope: "project" | "member";
|
|
3737
3746
|
period: "day" | "lifetime" | "week";
|
|
3738
3747
|
limit: number;
|
|
3739
3748
|
cost: number | {
|
|
@@ -3745,7 +3754,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3745
3754
|
id: string;
|
|
3746
3755
|
createdAt: number;
|
|
3747
3756
|
legacy: boolean;
|
|
3748
|
-
lifecycle: "
|
|
3757
|
+
lifecycle: "paused" | "active" | "archived";
|
|
3749
3758
|
performance?: {
|
|
3750
3759
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3751
3760
|
maxAgeMs: number;
|
|
@@ -3817,7 +3826,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3817
3826
|
start: number;
|
|
3818
3827
|
end?: number | undefined;
|
|
3819
3828
|
};
|
|
3820
|
-
enrollment: "
|
|
3829
|
+
enrollment: "none" | "required";
|
|
3821
3830
|
posts: "after-enrollment" | "since-start";
|
|
3822
3831
|
historical: "staff" | "automatic" | "claim";
|
|
3823
3832
|
} | undefined;
|
|
@@ -3864,12 +3873,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3864
3873
|
actor?: "member" | "staff" | undefined;
|
|
3865
3874
|
} | {
|
|
3866
3875
|
kind: "manual";
|
|
3867
|
-
input: "
|
|
3876
|
+
input: "none" | "quiz" | "photo";
|
|
3868
3877
|
actor?: "member" | "staff" | undefined;
|
|
3869
3878
|
};
|
|
3870
3879
|
availability: {
|
|
3871
3880
|
kind: "available";
|
|
3872
|
-
input: "
|
|
3881
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
3873
3882
|
} | {
|
|
3874
3883
|
kind: "completed";
|
|
3875
3884
|
} | {
|
|
@@ -3907,7 +3916,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3907
3916
|
kind: "keyed";
|
|
3908
3917
|
};
|
|
3909
3918
|
completionCount: number;
|
|
3910
|
-
visibility: "
|
|
3919
|
+
visibility: "visible" | "hidden";
|
|
3911
3920
|
missing: {
|
|
3912
3921
|
quest: string;
|
|
3913
3922
|
title: string;
|
|
@@ -3918,7 +3927,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3918
3927
|
quest: string;
|
|
3919
3928
|
member: string;
|
|
3920
3929
|
evidence: string | null;
|
|
3921
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
3930
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
3922
3931
|
reason: string | null;
|
|
3923
3932
|
retries: number;
|
|
3924
3933
|
generation: number;
|
|
@@ -3950,19 +3959,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3950
3959
|
action: "grant-role";
|
|
3951
3960
|
roleId: string;
|
|
3952
3961
|
})[] | null;
|
|
3962
|
+
requestedReview: boolean;
|
|
3953
3963
|
createdAt: number;
|
|
3954
3964
|
input?: {
|
|
3955
|
-
kind: "quiz";
|
|
3956
|
-
answers: {
|
|
3957
|
-
[k: string]: string;
|
|
3958
|
-
};
|
|
3959
|
-
release?: string | undefined;
|
|
3960
|
-
} | {
|
|
3961
3965
|
kind: "text";
|
|
3962
3966
|
value: string;
|
|
3963
3967
|
} | {
|
|
3964
3968
|
kind: "url";
|
|
3965
3969
|
value: string;
|
|
3970
|
+
} | {
|
|
3971
|
+
kind: "quiz";
|
|
3972
|
+
answers: {
|
|
3973
|
+
[k: string]: string;
|
|
3974
|
+
};
|
|
3975
|
+
release?: string | undefined;
|
|
3966
3976
|
} | undefined;
|
|
3967
3977
|
} | null;
|
|
3968
3978
|
key?: string | undefined;
|
|
@@ -4344,14 +4354,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4344
4354
|
content: {
|
|
4345
4355
|
performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
4346
4356
|
current: {
|
|
4347
|
-
state: "
|
|
4357
|
+
state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
|
|
4348
4358
|
reason: string | null;
|
|
4349
4359
|
contentAttempt: string;
|
|
4350
4360
|
attempt: string | null;
|
|
4351
4361
|
reward: {
|
|
4352
4362
|
attempt: string | null;
|
|
4353
4363
|
completion: string | null;
|
|
4354
|
-
state: "
|
|
4364
|
+
state: "excluded" | "unresolved" | "awarded";
|
|
4355
4365
|
};
|
|
4356
4366
|
};
|
|
4357
4367
|
items: {
|
|
@@ -4360,7 +4370,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4360
4370
|
observation: string;
|
|
4361
4371
|
observedAt: number;
|
|
4362
4372
|
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
4363
|
-
state: "
|
|
4373
|
+
state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
|
|
4364
4374
|
reason: string | null;
|
|
4365
4375
|
}[];
|
|
4366
4376
|
next: number | null;
|
|
@@ -4375,12 +4385,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4375
4385
|
revision: string;
|
|
4376
4386
|
observation: string;
|
|
4377
4387
|
current: boolean;
|
|
4378
|
-
state: "
|
|
4388
|
+
state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
|
|
4379
4389
|
reason: string | null;
|
|
4380
4390
|
reward: {
|
|
4381
4391
|
attempt: string | null;
|
|
4382
4392
|
completion: string | null;
|
|
4383
|
-
state: "
|
|
4393
|
+
state: "excluded" | "unresolved" | "awarded";
|
|
4384
4394
|
};
|
|
4385
4395
|
}[];
|
|
4386
4396
|
next: number | null;
|
|
@@ -4390,7 +4400,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4390
4400
|
quest: string;
|
|
4391
4401
|
content: string;
|
|
4392
4402
|
release: string;
|
|
4393
|
-
state: "
|
|
4403
|
+
state: "admitted" | "pending" | "excluded";
|
|
4394
4404
|
reason: string | null;
|
|
4395
4405
|
attempt: string | null;
|
|
4396
4406
|
}[];
|
|
@@ -4405,7 +4415,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4405
4415
|
quest: string;
|
|
4406
4416
|
content: string;
|
|
4407
4417
|
release: string;
|
|
4408
|
-
state: "
|
|
4418
|
+
state: "admitted" | "pending" | "excluded";
|
|
4409
4419
|
reason: string | null;
|
|
4410
4420
|
attempt: string | null;
|
|
4411
4421
|
}>;
|
|
@@ -4416,7 +4426,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4416
4426
|
quest: string;
|
|
4417
4427
|
member: string;
|
|
4418
4428
|
evidence: string | null;
|
|
4419
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
4429
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
4420
4430
|
reason: string | null;
|
|
4421
4431
|
retries: number;
|
|
4422
4432
|
generation: number;
|
|
@@ -4448,19 +4458,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4448
4458
|
action: "grant-role";
|
|
4449
4459
|
roleId: string;
|
|
4450
4460
|
})[] | null;
|
|
4461
|
+
requestedReview: boolean;
|
|
4451
4462
|
createdAt: number;
|
|
4452
4463
|
input?: {
|
|
4453
|
-
kind: "quiz";
|
|
4454
|
-
answers: {
|
|
4455
|
-
[k: string]: string;
|
|
4456
|
-
};
|
|
4457
|
-
release?: string | undefined;
|
|
4458
|
-
} | {
|
|
4459
4464
|
kind: "text";
|
|
4460
4465
|
value: string;
|
|
4461
4466
|
} | {
|
|
4462
4467
|
kind: "url";
|
|
4463
4468
|
value: string;
|
|
4469
|
+
} | {
|
|
4470
|
+
kind: "quiz";
|
|
4471
|
+
answers: {
|
|
4472
|
+
[k: string]: string;
|
|
4473
|
+
};
|
|
4474
|
+
release?: string | undefined;
|
|
4464
4475
|
} | undefined;
|
|
4465
4476
|
}>;
|
|
4466
4477
|
retry: (id: string) => Promise<{
|
|
@@ -4469,7 +4480,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4469
4480
|
quest: string;
|
|
4470
4481
|
member: string;
|
|
4471
4482
|
evidence: string | null;
|
|
4472
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
4483
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
4473
4484
|
reason: string | null;
|
|
4474
4485
|
retries: number;
|
|
4475
4486
|
generation: number;
|
|
@@ -4501,19 +4512,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4501
4512
|
action: "grant-role";
|
|
4502
4513
|
roleId: string;
|
|
4503
4514
|
})[] | null;
|
|
4515
|
+
requestedReview: boolean;
|
|
4504
4516
|
createdAt: number;
|
|
4505
4517
|
input?: {
|
|
4506
|
-
kind: "quiz";
|
|
4507
|
-
answers: {
|
|
4508
|
-
[k: string]: string;
|
|
4509
|
-
};
|
|
4510
|
-
release?: string | undefined;
|
|
4511
|
-
} | {
|
|
4512
4518
|
kind: "text";
|
|
4513
4519
|
value: string;
|
|
4514
4520
|
} | {
|
|
4515
4521
|
kind: "url";
|
|
4516
4522
|
value: string;
|
|
4523
|
+
} | {
|
|
4524
|
+
kind: "quiz";
|
|
4525
|
+
answers: {
|
|
4526
|
+
[k: string]: string;
|
|
4527
|
+
};
|
|
4528
|
+
release?: string | undefined;
|
|
4517
4529
|
} | undefined;
|
|
4518
4530
|
}>;
|
|
4519
4531
|
decide: (id: string, input: {
|
|
@@ -4527,7 +4539,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4527
4539
|
quest: string;
|
|
4528
4540
|
member: string;
|
|
4529
4541
|
evidence: string | null;
|
|
4530
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
4542
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
4531
4543
|
reason: string | null;
|
|
4532
4544
|
retries: number;
|
|
4533
4545
|
generation: number;
|
|
@@ -4559,19 +4571,20 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
4559
4571
|
action: "grant-role";
|
|
4560
4572
|
roleId: string;
|
|
4561
4573
|
})[] | null;
|
|
4574
|
+
requestedReview: boolean;
|
|
4562
4575
|
createdAt: number;
|
|
4563
4576
|
input?: {
|
|
4564
|
-
kind: "quiz";
|
|
4565
|
-
answers: {
|
|
4566
|
-
[k: string]: string;
|
|
4567
|
-
};
|
|
4568
|
-
release?: string | undefined;
|
|
4569
|
-
} | {
|
|
4570
4577
|
kind: "text";
|
|
4571
4578
|
value: string;
|
|
4572
4579
|
} | {
|
|
4573
4580
|
kind: "url";
|
|
4574
4581
|
value: string;
|
|
4582
|
+
} | {
|
|
4583
|
+
kind: "quiz";
|
|
4584
|
+
answers: {
|
|
4585
|
+
[k: string]: string;
|
|
4586
|
+
};
|
|
4587
|
+
release?: string | undefined;
|
|
4575
4588
|
} | undefined;
|
|
4576
4589
|
}>;
|
|
4577
4590
|
};
|