@domino-sdk/relay 0.17.1 → 0.17.2
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/browser.d.ts +134 -134
- package/dist/index.d.ts +235 -235
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -339,7 +339,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
339
339
|
} | undefined;
|
|
340
340
|
} | undefined;
|
|
341
341
|
};
|
|
342
|
-
connections: ("
|
|
342
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
343
343
|
trigger: {
|
|
344
344
|
kind: "manual";
|
|
345
345
|
input: "text";
|
|
@@ -370,7 +370,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
370
370
|
};
|
|
371
371
|
availability: {
|
|
372
372
|
kind: "available";
|
|
373
|
-
input: "
|
|
373
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
374
374
|
} | {
|
|
375
375
|
kind: "completed";
|
|
376
376
|
} | {
|
|
@@ -419,7 +419,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
419
419
|
quest: string;
|
|
420
420
|
member: string;
|
|
421
421
|
evidence: string | null;
|
|
422
|
-
status: "
|
|
422
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
423
423
|
reason: string | null;
|
|
424
424
|
retries: number;
|
|
425
425
|
generation: number;
|
|
@@ -453,22 +453,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
453
453
|
})[] | null;
|
|
454
454
|
createdAt: number;
|
|
455
455
|
input?: {
|
|
456
|
-
kind: "text";
|
|
457
|
-
value: string;
|
|
458
|
-
} | {
|
|
459
|
-
kind: "url";
|
|
460
|
-
value: string;
|
|
461
|
-
} | {
|
|
462
456
|
kind: "quiz";
|
|
463
457
|
answers: {
|
|
464
458
|
[k: string]: string;
|
|
465
459
|
};
|
|
466
460
|
release?: string | undefined;
|
|
461
|
+
} | {
|
|
462
|
+
kind: "text";
|
|
463
|
+
value: string;
|
|
464
|
+
} | {
|
|
465
|
+
kind: "url";
|
|
466
|
+
value: string;
|
|
467
467
|
} | undefined;
|
|
468
468
|
} | null;
|
|
469
469
|
release: string;
|
|
470
|
-
interaction: "
|
|
471
|
-
lifecycle: "
|
|
470
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
471
|
+
lifecycle: "active" | "paused" | "archived";
|
|
472
472
|
rewards: {
|
|
473
473
|
label: string;
|
|
474
474
|
}[];
|
|
@@ -510,7 +510,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
510
510
|
quest: string;
|
|
511
511
|
member: string;
|
|
512
512
|
evidence: string | null;
|
|
513
|
-
status: "
|
|
513
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
514
514
|
reason: string | null;
|
|
515
515
|
retries: number;
|
|
516
516
|
generation: number;
|
|
@@ -544,17 +544,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
544
544
|
})[] | null;
|
|
545
545
|
createdAt: number;
|
|
546
546
|
input?: {
|
|
547
|
-
kind: "text";
|
|
548
|
-
value: string;
|
|
549
|
-
} | {
|
|
550
|
-
kind: "url";
|
|
551
|
-
value: string;
|
|
552
|
-
} | {
|
|
553
547
|
kind: "quiz";
|
|
554
548
|
answers: {
|
|
555
549
|
[k: string]: string;
|
|
556
550
|
};
|
|
557
551
|
release?: string | undefined;
|
|
552
|
+
} | {
|
|
553
|
+
kind: "text";
|
|
554
|
+
value: string;
|
|
555
|
+
} | {
|
|
556
|
+
kind: "url";
|
|
557
|
+
value: string;
|
|
558
558
|
} | undefined;
|
|
559
559
|
}>;
|
|
560
560
|
experience: () => Promise<{
|
|
@@ -582,7 +582,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
582
582
|
} | undefined;
|
|
583
583
|
} | undefined;
|
|
584
584
|
};
|
|
585
|
-
connections: ("
|
|
585
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
586
586
|
trigger: {
|
|
587
587
|
kind: "manual";
|
|
588
588
|
input: "text";
|
|
@@ -613,7 +613,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
613
613
|
};
|
|
614
614
|
availability: {
|
|
615
615
|
kind: "available";
|
|
616
|
-
input: "
|
|
616
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
617
617
|
} | {
|
|
618
618
|
kind: "completed";
|
|
619
619
|
} | {
|
|
@@ -662,7 +662,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
662
662
|
quest: string;
|
|
663
663
|
member: string;
|
|
664
664
|
evidence: string | null;
|
|
665
|
-
status: "
|
|
665
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
666
666
|
reason: string | null;
|
|
667
667
|
retries: number;
|
|
668
668
|
generation: number;
|
|
@@ -696,22 +696,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
696
696
|
})[] | null;
|
|
697
697
|
createdAt: number;
|
|
698
698
|
input?: {
|
|
699
|
-
kind: "text";
|
|
700
|
-
value: string;
|
|
701
|
-
} | {
|
|
702
|
-
kind: "url";
|
|
703
|
-
value: string;
|
|
704
|
-
} | {
|
|
705
699
|
kind: "quiz";
|
|
706
700
|
answers: {
|
|
707
701
|
[k: string]: string;
|
|
708
702
|
};
|
|
709
703
|
release?: string | undefined;
|
|
704
|
+
} | {
|
|
705
|
+
kind: "text";
|
|
706
|
+
value: string;
|
|
707
|
+
} | {
|
|
708
|
+
kind: "url";
|
|
709
|
+
value: string;
|
|
710
710
|
} | undefined;
|
|
711
711
|
} | null;
|
|
712
712
|
release: string;
|
|
713
|
-
interaction: "
|
|
714
|
-
lifecycle: "
|
|
713
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
714
|
+
lifecycle: "active" | "paused" | "archived";
|
|
715
715
|
rewards: {
|
|
716
716
|
label: string;
|
|
717
717
|
}[];
|
|
@@ -773,7 +773,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
773
773
|
} | undefined;
|
|
774
774
|
} | undefined;
|
|
775
775
|
};
|
|
776
|
-
connections: ("
|
|
776
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
777
777
|
trigger: {
|
|
778
778
|
kind: "manual";
|
|
779
779
|
input: "text";
|
|
@@ -804,7 +804,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
804
804
|
};
|
|
805
805
|
availability: {
|
|
806
806
|
kind: "available";
|
|
807
|
-
input: "
|
|
807
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
808
808
|
} | {
|
|
809
809
|
kind: "completed";
|
|
810
810
|
} | {
|
|
@@ -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: "
|
|
856
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
857
857
|
reason: string | null;
|
|
858
858
|
retries: number;
|
|
859
859
|
generation: number;
|
|
@@ -887,22 +887,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
887
887
|
})[] | null;
|
|
888
888
|
createdAt: number;
|
|
889
889
|
input?: {
|
|
890
|
-
kind: "text";
|
|
891
|
-
value: string;
|
|
892
|
-
} | {
|
|
893
|
-
kind: "url";
|
|
894
|
-
value: string;
|
|
895
|
-
} | {
|
|
896
890
|
kind: "quiz";
|
|
897
891
|
answers: {
|
|
898
892
|
[k: string]: string;
|
|
899
893
|
};
|
|
900
894
|
release?: string | undefined;
|
|
895
|
+
} | {
|
|
896
|
+
kind: "text";
|
|
897
|
+
value: string;
|
|
898
|
+
} | {
|
|
899
|
+
kind: "url";
|
|
900
|
+
value: string;
|
|
901
901
|
} | undefined;
|
|
902
902
|
} | null;
|
|
903
903
|
release: string;
|
|
904
|
-
interaction: "
|
|
905
|
-
lifecycle: "
|
|
904
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
905
|
+
lifecycle: "active" | "paused" | "archived";
|
|
906
906
|
rewards: {
|
|
907
907
|
label: string;
|
|
908
908
|
}[];
|
|
@@ -967,7 +967,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
967
967
|
} | undefined;
|
|
968
968
|
} | undefined;
|
|
969
969
|
};
|
|
970
|
-
connections: ("
|
|
970
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
971
971
|
trigger: {
|
|
972
972
|
kind: "manual";
|
|
973
973
|
input: "text";
|
|
@@ -998,7 +998,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
998
998
|
};
|
|
999
999
|
availability: {
|
|
1000
1000
|
kind: "available";
|
|
1001
|
-
input: "
|
|
1001
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
1002
1002
|
} | {
|
|
1003
1003
|
kind: "completed";
|
|
1004
1004
|
} | {
|
|
@@ -1047,7 +1047,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1047
1047
|
quest: string;
|
|
1048
1048
|
member: string;
|
|
1049
1049
|
evidence: string | null;
|
|
1050
|
-
status: "
|
|
1050
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
1051
1051
|
reason: string | null;
|
|
1052
1052
|
retries: number;
|
|
1053
1053
|
generation: number;
|
|
@@ -1081,22 +1081,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1081
1081
|
})[] | null;
|
|
1082
1082
|
createdAt: number;
|
|
1083
1083
|
input?: {
|
|
1084
|
-
kind: "text";
|
|
1085
|
-
value: string;
|
|
1086
|
-
} | {
|
|
1087
|
-
kind: "url";
|
|
1088
|
-
value: string;
|
|
1089
|
-
} | {
|
|
1090
1084
|
kind: "quiz";
|
|
1091
1085
|
answers: {
|
|
1092
1086
|
[k: string]: string;
|
|
1093
1087
|
};
|
|
1094
1088
|
release?: string | undefined;
|
|
1089
|
+
} | {
|
|
1090
|
+
kind: "text";
|
|
1091
|
+
value: string;
|
|
1092
|
+
} | {
|
|
1093
|
+
kind: "url";
|
|
1094
|
+
value: string;
|
|
1095
1095
|
} | undefined;
|
|
1096
1096
|
} | null;
|
|
1097
1097
|
release: string;
|
|
1098
|
-
interaction: "
|
|
1099
|
-
lifecycle: "
|
|
1098
|
+
interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
|
|
1099
|
+
lifecycle: "active" | "paused" | "archived";
|
|
1100
1100
|
rewards: {
|
|
1101
1101
|
label: string;
|
|
1102
1102
|
}[];
|
|
@@ -1164,7 +1164,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1164
1164
|
auth: {
|
|
1165
1165
|
providers: () => Promise<{
|
|
1166
1166
|
providers: {
|
|
1167
|
-
provider: "
|
|
1167
|
+
provider: "google" | "apple" | "x" | "discord";
|
|
1168
1168
|
configured: boolean;
|
|
1169
1169
|
}[];
|
|
1170
1170
|
email: boolean;
|
|
@@ -1194,7 +1194,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1194
1194
|
expiresAt: number;
|
|
1195
1195
|
}>;
|
|
1196
1196
|
accounts: () => Promise<{
|
|
1197
|
-
provider: "
|
|
1197
|
+
provider: "google" | "apple" | "x" | "discord";
|
|
1198
1198
|
configured: boolean;
|
|
1199
1199
|
status: "disconnected" | "connected" | "reconnect";
|
|
1200
1200
|
subject: string | null;
|
|
@@ -1291,7 +1291,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1291
1291
|
quest: string;
|
|
1292
1292
|
member: string;
|
|
1293
1293
|
evidence: string | null;
|
|
1294
|
-
status: "
|
|
1294
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
1295
1295
|
reason: string | null;
|
|
1296
1296
|
retries: number;
|
|
1297
1297
|
generation: number;
|
|
@@ -1325,17 +1325,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1325
1325
|
})[] | null;
|
|
1326
1326
|
createdAt: number;
|
|
1327
1327
|
input?: {
|
|
1328
|
-
kind: "text";
|
|
1329
|
-
value: string;
|
|
1330
|
-
} | {
|
|
1331
|
-
kind: "url";
|
|
1332
|
-
value: string;
|
|
1333
|
-
} | {
|
|
1334
1328
|
kind: "quiz";
|
|
1335
1329
|
answers: {
|
|
1336
1330
|
[k: string]: string;
|
|
1337
1331
|
};
|
|
1338
1332
|
release?: string | undefined;
|
|
1333
|
+
} | {
|
|
1334
|
+
kind: "text";
|
|
1335
|
+
value: string;
|
|
1336
|
+
} | {
|
|
1337
|
+
kind: "url";
|
|
1338
|
+
value: string;
|
|
1339
1339
|
} | undefined;
|
|
1340
1340
|
}>;
|
|
1341
1341
|
progress: () => Promise<{
|
|
@@ -1363,7 +1363,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1363
1363
|
} | undefined;
|
|
1364
1364
|
} | undefined;
|
|
1365
1365
|
};
|
|
1366
|
-
connections: ("
|
|
1366
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
1367
1367
|
trigger: {
|
|
1368
1368
|
kind: "manual";
|
|
1369
1369
|
input: "text";
|
|
@@ -1394,7 +1394,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1394
1394
|
};
|
|
1395
1395
|
availability: {
|
|
1396
1396
|
kind: "available";
|
|
1397
|
-
input: "
|
|
1397
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
1398
1398
|
} | {
|
|
1399
1399
|
kind: "completed";
|
|
1400
1400
|
} | {
|
|
@@ -1443,7 +1443,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1443
1443
|
quest: string;
|
|
1444
1444
|
member: string;
|
|
1445
1445
|
evidence: string | null;
|
|
1446
|
-
status: "
|
|
1446
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
1447
1447
|
reason: string | null;
|
|
1448
1448
|
retries: number;
|
|
1449
1449
|
generation: number;
|
|
@@ -1477,17 +1477,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1477
1477
|
})[] | null;
|
|
1478
1478
|
createdAt: number;
|
|
1479
1479
|
input?: {
|
|
1480
|
-
kind: "text";
|
|
1481
|
-
value: string;
|
|
1482
|
-
} | {
|
|
1483
|
-
kind: "url";
|
|
1484
|
-
value: string;
|
|
1485
|
-
} | {
|
|
1486
1480
|
kind: "quiz";
|
|
1487
1481
|
answers: {
|
|
1488
1482
|
[k: string]: string;
|
|
1489
1483
|
};
|
|
1490
1484
|
release?: string | undefined;
|
|
1485
|
+
} | {
|
|
1486
|
+
kind: "text";
|
|
1487
|
+
value: string;
|
|
1488
|
+
} | {
|
|
1489
|
+
kind: "url";
|
|
1490
|
+
value: string;
|
|
1491
1491
|
} | undefined;
|
|
1492
1492
|
} | null;
|
|
1493
1493
|
key?: string | undefined;
|
|
@@ -1610,7 +1610,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1610
1610
|
provider: "discord";
|
|
1611
1611
|
action: "grant-role";
|
|
1612
1612
|
roleId: string;
|
|
1613
|
-
status: "pending" | "
|
|
1613
|
+
status: "pending" | "failed" | "delivered";
|
|
1614
1614
|
attempts: number;
|
|
1615
1615
|
nextAt: number;
|
|
1616
1616
|
lastError: string | null;
|
|
@@ -1626,7 +1626,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1626
1626
|
quest: string;
|
|
1627
1627
|
member: string;
|
|
1628
1628
|
evidence: string | null;
|
|
1629
|
-
status: "
|
|
1629
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
1630
1630
|
reason: string | null;
|
|
1631
1631
|
retries: number;
|
|
1632
1632
|
generation: number;
|
|
@@ -1660,17 +1660,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1660
1660
|
})[] | null;
|
|
1661
1661
|
createdAt: number;
|
|
1662
1662
|
input?: {
|
|
1663
|
-
kind: "text";
|
|
1664
|
-
value: string;
|
|
1665
|
-
} | {
|
|
1666
|
-
kind: "url";
|
|
1667
|
-
value: string;
|
|
1668
|
-
} | {
|
|
1669
1663
|
kind: "quiz";
|
|
1670
1664
|
answers: {
|
|
1671
1665
|
[k: string]: string;
|
|
1672
1666
|
};
|
|
1673
1667
|
release?: string | undefined;
|
|
1668
|
+
} | {
|
|
1669
|
+
kind: "text";
|
|
1670
|
+
value: string;
|
|
1671
|
+
} | {
|
|
1672
|
+
kind: "url";
|
|
1673
|
+
value: string;
|
|
1674
1674
|
} | undefined;
|
|
1675
1675
|
}>;
|
|
1676
1676
|
upload: (file: File) => Promise<{
|
|
@@ -1691,7 +1691,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1691
1691
|
quest: string;
|
|
1692
1692
|
member: string;
|
|
1693
1693
|
evidence: string | null;
|
|
1694
|
-
status: "
|
|
1694
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
1695
1695
|
reason: string | null;
|
|
1696
1696
|
retries: number;
|
|
1697
1697
|
generation: number;
|
|
@@ -1725,17 +1725,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1725
1725
|
})[] | null;
|
|
1726
1726
|
createdAt: number;
|
|
1727
1727
|
input?: {
|
|
1728
|
-
kind: "text";
|
|
1729
|
-
value: string;
|
|
1730
|
-
} | {
|
|
1731
|
-
kind: "url";
|
|
1732
|
-
value: string;
|
|
1733
|
-
} | {
|
|
1734
1728
|
kind: "quiz";
|
|
1735
1729
|
answers: {
|
|
1736
1730
|
[k: string]: string;
|
|
1737
1731
|
};
|
|
1738
1732
|
release?: string | undefined;
|
|
1733
|
+
} | {
|
|
1734
|
+
kind: "text";
|
|
1735
|
+
value: string;
|
|
1736
|
+
} | {
|
|
1737
|
+
kind: "url";
|
|
1738
|
+
value: string;
|
|
1739
1739
|
} | undefined;
|
|
1740
1740
|
};
|
|
1741
1741
|
title: string;
|
|
@@ -1772,7 +1772,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1772
1772
|
code: string;
|
|
1773
1773
|
definition: {
|
|
1774
1774
|
quest: string;
|
|
1775
|
-
runtimeVersion:
|
|
1775
|
+
runtimeVersion: 1 | 2;
|
|
1776
1776
|
title: string;
|
|
1777
1777
|
presentation: {
|
|
1778
1778
|
quiz?: {
|
|
@@ -1943,7 +1943,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1943
1943
|
visibility: "visible" | "hidden";
|
|
1944
1944
|
budgets: {
|
|
1945
1945
|
id: string;
|
|
1946
|
-
scope: "
|
|
1946
|
+
scope: "member" | "project";
|
|
1947
1947
|
period: "day" | "lifetime";
|
|
1948
1948
|
limit: number;
|
|
1949
1949
|
cost: number | {
|
|
@@ -1956,7 +1956,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1956
1956
|
code: string;
|
|
1957
1957
|
definition: {
|
|
1958
1958
|
quest: string;
|
|
1959
|
-
runtimeVersion:
|
|
1959
|
+
runtimeVersion: 1 | 2;
|
|
1960
1960
|
title: string;
|
|
1961
1961
|
presentation: {
|
|
1962
1962
|
quiz?: {
|
|
@@ -2127,7 +2127,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2127
2127
|
visibility: "visible" | "hidden";
|
|
2128
2128
|
budgets: {
|
|
2129
2129
|
id: string;
|
|
2130
|
-
scope: "
|
|
2130
|
+
scope: "member" | "project";
|
|
2131
2131
|
period: "day" | "lifetime";
|
|
2132
2132
|
limit: number;
|
|
2133
2133
|
cost: number | {
|
|
@@ -2139,7 +2139,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2139
2139
|
snapshot: () => Promise<{
|
|
2140
2140
|
releases: {
|
|
2141
2141
|
quest: string;
|
|
2142
|
-
runtimeVersion:
|
|
2142
|
+
runtimeVersion: 1 | 2;
|
|
2143
2143
|
title: string;
|
|
2144
2144
|
presentation: {
|
|
2145
2145
|
quiz?: {
|
|
@@ -2310,7 +2310,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2310
2310
|
visibility: "visible" | "hidden";
|
|
2311
2311
|
budgets: {
|
|
2312
2312
|
id: string;
|
|
2313
|
-
scope: "
|
|
2313
|
+
scope: "member" | "project";
|
|
2314
2314
|
period: "day" | "lifetime";
|
|
2315
2315
|
limit: number;
|
|
2316
2316
|
cost: number | {
|
|
@@ -2322,7 +2322,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2322
2322
|
id: string;
|
|
2323
2323
|
createdAt: number;
|
|
2324
2324
|
legacy: boolean;
|
|
2325
|
-
lifecycle: "
|
|
2325
|
+
lifecycle: "active" | "paused" | "archived";
|
|
2326
2326
|
key?: string | undefined;
|
|
2327
2327
|
origin?: {
|
|
2328
2328
|
typeVersion: string;
|
|
@@ -2438,7 +2438,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2438
2438
|
quest: string;
|
|
2439
2439
|
member: string;
|
|
2440
2440
|
evidence: string | null;
|
|
2441
|
-
status: "
|
|
2441
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
2442
2442
|
reason: string | null;
|
|
2443
2443
|
retries: number;
|
|
2444
2444
|
generation: number;
|
|
@@ -2472,17 +2472,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2472
2472
|
})[] | null;
|
|
2473
2473
|
createdAt: number;
|
|
2474
2474
|
input?: {
|
|
2475
|
-
kind: "text";
|
|
2476
|
-
value: string;
|
|
2477
|
-
} | {
|
|
2478
|
-
kind: "url";
|
|
2479
|
-
value: string;
|
|
2480
|
-
} | {
|
|
2481
2475
|
kind: "quiz";
|
|
2482
2476
|
answers: {
|
|
2483
2477
|
[k: string]: string;
|
|
2484
2478
|
};
|
|
2485
2479
|
release?: string | undefined;
|
|
2480
|
+
} | {
|
|
2481
|
+
kind: "text";
|
|
2482
|
+
value: string;
|
|
2483
|
+
} | {
|
|
2484
|
+
kind: "url";
|
|
2485
|
+
value: string;
|
|
2486
2486
|
} | undefined;
|
|
2487
2487
|
}[];
|
|
2488
2488
|
balances: {
|
|
@@ -2503,7 +2503,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2503
2503
|
}>;
|
|
2504
2504
|
publish: (release: ReleaseInput) => Promise<{
|
|
2505
2505
|
quest: string;
|
|
2506
|
-
runtimeVersion:
|
|
2506
|
+
runtimeVersion: 1 | 2;
|
|
2507
2507
|
title: string;
|
|
2508
2508
|
presentation: {
|
|
2509
2509
|
quiz?: {
|
|
@@ -2674,7 +2674,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2674
2674
|
visibility: "visible" | "hidden";
|
|
2675
2675
|
budgets: {
|
|
2676
2676
|
id: string;
|
|
2677
|
-
scope: "
|
|
2677
|
+
scope: "member" | "project";
|
|
2678
2678
|
period: "day" | "lifetime";
|
|
2679
2679
|
limit: number;
|
|
2680
2680
|
cost: number | {
|
|
@@ -2686,7 +2686,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2686
2686
|
id: string;
|
|
2687
2687
|
createdAt: number;
|
|
2688
2688
|
legacy: boolean;
|
|
2689
|
-
lifecycle: "
|
|
2689
|
+
lifecycle: "active" | "paused" | "archived";
|
|
2690
2690
|
key?: string | undefined;
|
|
2691
2691
|
origin?: {
|
|
2692
2692
|
typeVersion: string;
|
|
@@ -2715,7 +2715,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2715
2715
|
}>;
|
|
2716
2716
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
2717
2717
|
quest: string;
|
|
2718
|
-
runtimeVersion:
|
|
2718
|
+
runtimeVersion: 1 | 2;
|
|
2719
2719
|
title: string;
|
|
2720
2720
|
presentation: {
|
|
2721
2721
|
quiz?: {
|
|
@@ -2886,7 +2886,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2886
2886
|
visibility: "visible" | "hidden";
|
|
2887
2887
|
budgets: {
|
|
2888
2888
|
id: string;
|
|
2889
|
-
scope: "
|
|
2889
|
+
scope: "member" | "project";
|
|
2890
2890
|
period: "day" | "lifetime";
|
|
2891
2891
|
limit: number;
|
|
2892
2892
|
cost: number | {
|
|
@@ -2898,7 +2898,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2898
2898
|
id: string;
|
|
2899
2899
|
createdAt: number;
|
|
2900
2900
|
legacy: boolean;
|
|
2901
|
-
lifecycle: "
|
|
2901
|
+
lifecycle: "active" | "paused" | "archived";
|
|
2902
2902
|
key?: string | undefined;
|
|
2903
2903
|
origin?: {
|
|
2904
2904
|
typeVersion: string;
|
|
@@ -2950,7 +2950,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2950
2950
|
} | undefined;
|
|
2951
2951
|
} | undefined;
|
|
2952
2952
|
};
|
|
2953
|
-
connections: ("
|
|
2953
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
2954
2954
|
trigger: {
|
|
2955
2955
|
kind: "manual";
|
|
2956
2956
|
input: "text";
|
|
@@ -2981,7 +2981,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2981
2981
|
};
|
|
2982
2982
|
availability: {
|
|
2983
2983
|
kind: "available";
|
|
2984
|
-
input: "
|
|
2984
|
+
input: "quiz" | "url" | "text" | "photo" | "none";
|
|
2985
2985
|
} | {
|
|
2986
2986
|
kind: "completed";
|
|
2987
2987
|
} | {
|
|
@@ -3030,7 +3030,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3030
3030
|
quest: string;
|
|
3031
3031
|
member: string;
|
|
3032
3032
|
evidence: string | null;
|
|
3033
|
-
status: "
|
|
3033
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
3034
3034
|
reason: string | null;
|
|
3035
3035
|
retries: number;
|
|
3036
3036
|
generation: number;
|
|
@@ -3064,17 +3064,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3064
3064
|
})[] | null;
|
|
3065
3065
|
createdAt: number;
|
|
3066
3066
|
input?: {
|
|
3067
|
-
kind: "text";
|
|
3068
|
-
value: string;
|
|
3069
|
-
} | {
|
|
3070
|
-
kind: "url";
|
|
3071
|
-
value: string;
|
|
3072
|
-
} | {
|
|
3073
3067
|
kind: "quiz";
|
|
3074
3068
|
answers: {
|
|
3075
3069
|
[k: string]: string;
|
|
3076
3070
|
};
|
|
3077
3071
|
release?: string | undefined;
|
|
3072
|
+
} | {
|
|
3073
|
+
kind: "text";
|
|
3074
|
+
value: string;
|
|
3075
|
+
} | {
|
|
3076
|
+
kind: "url";
|
|
3077
|
+
value: string;
|
|
3078
3078
|
} | undefined;
|
|
3079
3079
|
} | null;
|
|
3080
3080
|
key?: string | undefined;
|
|
@@ -3357,7 +3357,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3357
3357
|
quest: string;
|
|
3358
3358
|
member: string;
|
|
3359
3359
|
evidence: string | null;
|
|
3360
|
-
status: "
|
|
3360
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
3361
3361
|
reason: string | null;
|
|
3362
3362
|
retries: number;
|
|
3363
3363
|
generation: number;
|
|
@@ -3391,17 +3391,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3391
3391
|
})[] | null;
|
|
3392
3392
|
createdAt: number;
|
|
3393
3393
|
input?: {
|
|
3394
|
-
kind: "text";
|
|
3395
|
-
value: string;
|
|
3396
|
-
} | {
|
|
3397
|
-
kind: "url";
|
|
3398
|
-
value: string;
|
|
3399
|
-
} | {
|
|
3400
3394
|
kind: "quiz";
|
|
3401
3395
|
answers: {
|
|
3402
3396
|
[k: string]: string;
|
|
3403
3397
|
};
|
|
3404
3398
|
release?: string | undefined;
|
|
3399
|
+
} | {
|
|
3400
|
+
kind: "text";
|
|
3401
|
+
value: string;
|
|
3402
|
+
} | {
|
|
3403
|
+
kind: "url";
|
|
3404
|
+
value: string;
|
|
3405
3405
|
} | undefined;
|
|
3406
3406
|
}>;
|
|
3407
3407
|
retry: (id: string) => Promise<{
|
|
@@ -3410,7 +3410,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3410
3410
|
quest: string;
|
|
3411
3411
|
member: string;
|
|
3412
3412
|
evidence: string | null;
|
|
3413
|
-
status: "
|
|
3413
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
3414
3414
|
reason: string | null;
|
|
3415
3415
|
retries: number;
|
|
3416
3416
|
generation: number;
|
|
@@ -3444,17 +3444,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3444
3444
|
})[] | null;
|
|
3445
3445
|
createdAt: number;
|
|
3446
3446
|
input?: {
|
|
3447
|
-
kind: "text";
|
|
3448
|
-
value: string;
|
|
3449
|
-
} | {
|
|
3450
|
-
kind: "url";
|
|
3451
|
-
value: string;
|
|
3452
|
-
} | {
|
|
3453
3447
|
kind: "quiz";
|
|
3454
3448
|
answers: {
|
|
3455
3449
|
[k: string]: string;
|
|
3456
3450
|
};
|
|
3457
3451
|
release?: string | undefined;
|
|
3452
|
+
} | {
|
|
3453
|
+
kind: "text";
|
|
3454
|
+
value: string;
|
|
3455
|
+
} | {
|
|
3456
|
+
kind: "url";
|
|
3457
|
+
value: string;
|
|
3458
3458
|
} | undefined;
|
|
3459
3459
|
}>;
|
|
3460
3460
|
decide: (id: string, input: {
|
|
@@ -3468,7 +3468,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3468
3468
|
quest: string;
|
|
3469
3469
|
member: string;
|
|
3470
3470
|
evidence: string | null;
|
|
3471
|
-
status: "
|
|
3471
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
3472
3472
|
reason: string | null;
|
|
3473
3473
|
retries: number;
|
|
3474
3474
|
generation: number;
|
|
@@ -3502,17 +3502,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3502
3502
|
})[] | null;
|
|
3503
3503
|
createdAt: number;
|
|
3504
3504
|
input?: {
|
|
3505
|
-
kind: "text";
|
|
3506
|
-
value: string;
|
|
3507
|
-
} | {
|
|
3508
|
-
kind: "url";
|
|
3509
|
-
value: string;
|
|
3510
|
-
} | {
|
|
3511
3505
|
kind: "quiz";
|
|
3512
3506
|
answers: {
|
|
3513
3507
|
[k: string]: string;
|
|
3514
3508
|
};
|
|
3515
3509
|
release?: string | undefined;
|
|
3510
|
+
} | {
|
|
3511
|
+
kind: "text";
|
|
3512
|
+
value: string;
|
|
3513
|
+
} | {
|
|
3514
|
+
kind: "url";
|
|
3515
|
+
value: string;
|
|
3516
3516
|
} | undefined;
|
|
3517
3517
|
}>;
|
|
3518
3518
|
};
|