@domino-sdk/relay 0.18.4 → 0.23.1
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 +3 -2
- package/dist/authoring.js +3 -2
- package/dist/browser.d.ts +162 -153
- package/dist/browser.js +5 -5
- package/dist/{chunk-6GH4NC2T.js → chunk-57TGYC5Y.js} +1 -1
- package/dist/{chunk-MVDIVWR5.js → chunk-ND3CVNIW.js} +1 -1
- package/dist/{chunk-TQUK4DIW.js → chunk-RTBIXGMH.js} +301 -112
- package/dist/{chunk-23ZZTCDK.js → chunk-UYS522ER.js} +5 -0
- package/dist/{chunk-FBOW2TLN.js → chunk-ZOL7RYHW.js} +1 -1
- package/dist/index.d.ts +407 -241
- package/dist/index.js +38 -4
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +179 -94
- package/dist/react/index.js +36 -5
- package/dist/schema.d.ts +11 -3
- package/dist/schema.js +3 -1
- package/dist/{submission-input-C67qt2Ph.d.ts → submission-input-CK4Dy19H.d.ts} +258 -1
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SubmitInput,
|
|
1
|
+
import { t as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, u as walletProofSchema, v as AuthProvider, y as engagementPageQuerySchema, z as contentQualificationQuerySchema, E as contentAdmissionQuerySchema, F as contentEnrollmentInputSchema, G as contentReleaseInputSchema } from './submission-input-CK4Dy19H.js';
|
|
2
|
+
import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
|
|
3
3
|
import { SubmissionStore, createRelayClient, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
|
|
@@ -212,7 +212,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
212
212
|
accounts: {
|
|
213
213
|
id: string;
|
|
214
214
|
program: string;
|
|
215
|
-
kind: "
|
|
215
|
+
kind: "fixed" | "milestone" | "bonus";
|
|
216
216
|
balance: string;
|
|
217
217
|
earned: number;
|
|
218
218
|
settled: number;
|
|
@@ -234,6 +234,19 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
234
234
|
ok: true;
|
|
235
235
|
}>;
|
|
236
236
|
};
|
|
237
|
+
tieredRewards: {
|
|
238
|
+
list: () => Promise<{
|
|
239
|
+
id: string;
|
|
240
|
+
key: string | null;
|
|
241
|
+
}[]>;
|
|
242
|
+
};
|
|
243
|
+
pointLedgers: {
|
|
244
|
+
list: () => Promise<{
|
|
245
|
+
id: string;
|
|
246
|
+
key: string | null;
|
|
247
|
+
name: string;
|
|
248
|
+
}[]>;
|
|
249
|
+
};
|
|
237
250
|
leaderboards: {
|
|
238
251
|
list: () => Promise<{
|
|
239
252
|
id: string;
|
|
@@ -339,7 +352,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
339
352
|
} | undefined;
|
|
340
353
|
} | undefined;
|
|
341
354
|
};
|
|
342
|
-
connections: ("
|
|
355
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
343
356
|
trigger: {
|
|
344
357
|
kind: "automatic";
|
|
345
358
|
observation?: {
|
|
@@ -380,7 +393,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
380
393
|
};
|
|
381
394
|
availability: {
|
|
382
395
|
kind: "available";
|
|
383
|
-
input: "quiz" | "
|
|
396
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
384
397
|
} | {
|
|
385
398
|
kind: "completed";
|
|
386
399
|
} | {
|
|
@@ -429,7 +442,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
429
442
|
quest: string;
|
|
430
443
|
member: string;
|
|
431
444
|
evidence: string | null;
|
|
432
|
-
status: "
|
|
445
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
433
446
|
reason: string | null;
|
|
434
447
|
retries: number;
|
|
435
448
|
generation: number;
|
|
@@ -477,11 +490,30 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
477
490
|
} | undefined;
|
|
478
491
|
} | null;
|
|
479
492
|
release: string;
|
|
480
|
-
interaction: "
|
|
493
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
481
494
|
lifecycle: "active" | "paused" | "archived";
|
|
482
|
-
rewards: {
|
|
495
|
+
rewards: ({
|
|
496
|
+
kind: "points";
|
|
483
497
|
label: string;
|
|
484
|
-
|
|
498
|
+
amount: number;
|
|
499
|
+
ledger: {
|
|
500
|
+
id: string;
|
|
501
|
+
key: string | null;
|
|
502
|
+
name: string;
|
|
503
|
+
};
|
|
504
|
+
} | {
|
|
505
|
+
kind: "tier";
|
|
506
|
+
label: string;
|
|
507
|
+
reward: {
|
|
508
|
+
id: string;
|
|
509
|
+
key: string | null;
|
|
510
|
+
title: string;
|
|
511
|
+
};
|
|
512
|
+
tier: string;
|
|
513
|
+
} | {
|
|
514
|
+
kind: "integration";
|
|
515
|
+
label: string;
|
|
516
|
+
})[];
|
|
485
517
|
key?: string | undefined;
|
|
486
518
|
streak?: {
|
|
487
519
|
goal: number;
|
|
@@ -520,7 +552,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
520
552
|
quest: string;
|
|
521
553
|
member: string;
|
|
522
554
|
evidence: string | null;
|
|
523
|
-
status: "
|
|
555
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
524
556
|
reason: string | null;
|
|
525
557
|
retries: number;
|
|
526
558
|
generation: number;
|
|
@@ -592,7 +624,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
592
624
|
} | undefined;
|
|
593
625
|
} | undefined;
|
|
594
626
|
};
|
|
595
|
-
connections: ("
|
|
627
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
596
628
|
trigger: {
|
|
597
629
|
kind: "automatic";
|
|
598
630
|
observation?: {
|
|
@@ -633,7 +665,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
633
665
|
};
|
|
634
666
|
availability: {
|
|
635
667
|
kind: "available";
|
|
636
|
-
input: "quiz" | "
|
|
668
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
637
669
|
} | {
|
|
638
670
|
kind: "completed";
|
|
639
671
|
} | {
|
|
@@ -682,7 +714,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
682
714
|
quest: string;
|
|
683
715
|
member: string;
|
|
684
716
|
evidence: string | null;
|
|
685
|
-
status: "
|
|
717
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
686
718
|
reason: string | null;
|
|
687
719
|
retries: number;
|
|
688
720
|
generation: number;
|
|
@@ -730,11 +762,30 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
730
762
|
} | undefined;
|
|
731
763
|
} | null;
|
|
732
764
|
release: string;
|
|
733
|
-
interaction: "
|
|
765
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
734
766
|
lifecycle: "active" | "paused" | "archived";
|
|
735
|
-
rewards: {
|
|
767
|
+
rewards: ({
|
|
768
|
+
kind: "points";
|
|
736
769
|
label: string;
|
|
737
|
-
|
|
770
|
+
amount: number;
|
|
771
|
+
ledger: {
|
|
772
|
+
id: string;
|
|
773
|
+
key: string | null;
|
|
774
|
+
name: string;
|
|
775
|
+
};
|
|
776
|
+
} | {
|
|
777
|
+
kind: "tier";
|
|
778
|
+
label: string;
|
|
779
|
+
reward: {
|
|
780
|
+
id: string;
|
|
781
|
+
key: string | null;
|
|
782
|
+
title: string;
|
|
783
|
+
};
|
|
784
|
+
tier: string;
|
|
785
|
+
} | {
|
|
786
|
+
kind: "integration";
|
|
787
|
+
label: string;
|
|
788
|
+
})[];
|
|
738
789
|
key?: string | undefined;
|
|
739
790
|
streak?: {
|
|
740
791
|
goal: number;
|
|
@@ -793,7 +844,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
793
844
|
} | undefined;
|
|
794
845
|
} | undefined;
|
|
795
846
|
};
|
|
796
|
-
connections: ("
|
|
847
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
797
848
|
trigger: {
|
|
798
849
|
kind: "automatic";
|
|
799
850
|
observation?: {
|
|
@@ -834,7 +885,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
834
885
|
};
|
|
835
886
|
availability: {
|
|
836
887
|
kind: "available";
|
|
837
|
-
input: "quiz" | "
|
|
888
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
838
889
|
} | {
|
|
839
890
|
kind: "completed";
|
|
840
891
|
} | {
|
|
@@ -883,7 +934,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
883
934
|
quest: string;
|
|
884
935
|
member: string;
|
|
885
936
|
evidence: string | null;
|
|
886
|
-
status: "
|
|
937
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
887
938
|
reason: string | null;
|
|
888
939
|
retries: number;
|
|
889
940
|
generation: number;
|
|
@@ -931,11 +982,30 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
931
982
|
} | undefined;
|
|
932
983
|
} | null;
|
|
933
984
|
release: string;
|
|
934
|
-
interaction: "
|
|
985
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
935
986
|
lifecycle: "active" | "paused" | "archived";
|
|
936
|
-
rewards: {
|
|
987
|
+
rewards: ({
|
|
988
|
+
kind: "points";
|
|
937
989
|
label: string;
|
|
938
|
-
|
|
990
|
+
amount: number;
|
|
991
|
+
ledger: {
|
|
992
|
+
id: string;
|
|
993
|
+
key: string | null;
|
|
994
|
+
name: string;
|
|
995
|
+
};
|
|
996
|
+
} | {
|
|
997
|
+
kind: "tier";
|
|
998
|
+
label: string;
|
|
999
|
+
reward: {
|
|
1000
|
+
id: string;
|
|
1001
|
+
key: string | null;
|
|
1002
|
+
title: string;
|
|
1003
|
+
};
|
|
1004
|
+
tier: string;
|
|
1005
|
+
} | {
|
|
1006
|
+
kind: "integration";
|
|
1007
|
+
label: string;
|
|
1008
|
+
})[];
|
|
939
1009
|
key?: string | undefined;
|
|
940
1010
|
streak?: {
|
|
941
1011
|
goal: number;
|
|
@@ -997,7 +1067,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
997
1067
|
} | undefined;
|
|
998
1068
|
} | undefined;
|
|
999
1069
|
};
|
|
1000
|
-
connections: ("
|
|
1070
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1001
1071
|
trigger: {
|
|
1002
1072
|
kind: "automatic";
|
|
1003
1073
|
observation?: {
|
|
@@ -1038,7 +1108,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1038
1108
|
};
|
|
1039
1109
|
availability: {
|
|
1040
1110
|
kind: "available";
|
|
1041
|
-
input: "quiz" | "
|
|
1111
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1042
1112
|
} | {
|
|
1043
1113
|
kind: "completed";
|
|
1044
1114
|
} | {
|
|
@@ -1087,7 +1157,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1087
1157
|
quest: string;
|
|
1088
1158
|
member: string;
|
|
1089
1159
|
evidence: string | null;
|
|
1090
|
-
status: "
|
|
1160
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1091
1161
|
reason: string | null;
|
|
1092
1162
|
retries: number;
|
|
1093
1163
|
generation: number;
|
|
@@ -1135,11 +1205,30 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1135
1205
|
} | undefined;
|
|
1136
1206
|
} | null;
|
|
1137
1207
|
release: string;
|
|
1138
|
-
interaction: "
|
|
1208
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1139
1209
|
lifecycle: "active" | "paused" | "archived";
|
|
1140
|
-
rewards: {
|
|
1210
|
+
rewards: ({
|
|
1211
|
+
kind: "points";
|
|
1141
1212
|
label: string;
|
|
1142
|
-
|
|
1213
|
+
amount: number;
|
|
1214
|
+
ledger: {
|
|
1215
|
+
id: string;
|
|
1216
|
+
key: string | null;
|
|
1217
|
+
name: string;
|
|
1218
|
+
};
|
|
1219
|
+
} | {
|
|
1220
|
+
kind: "tier";
|
|
1221
|
+
label: string;
|
|
1222
|
+
reward: {
|
|
1223
|
+
id: string;
|
|
1224
|
+
key: string | null;
|
|
1225
|
+
title: string;
|
|
1226
|
+
};
|
|
1227
|
+
tier: string;
|
|
1228
|
+
} | {
|
|
1229
|
+
kind: "integration";
|
|
1230
|
+
label: string;
|
|
1231
|
+
})[];
|
|
1143
1232
|
key?: string | undefined;
|
|
1144
1233
|
streak?: {
|
|
1145
1234
|
goal: number;
|
|
@@ -1204,7 +1293,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1204
1293
|
auth: {
|
|
1205
1294
|
providers: () => Promise<{
|
|
1206
1295
|
providers: {
|
|
1207
|
-
provider: "
|
|
1296
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1208
1297
|
configured: boolean;
|
|
1209
1298
|
}[];
|
|
1210
1299
|
email: boolean;
|
|
@@ -1234,7 +1323,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1234
1323
|
expiresAt: number;
|
|
1235
1324
|
}>;
|
|
1236
1325
|
accounts: () => Promise<{
|
|
1237
|
-
provider: "
|
|
1326
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1238
1327
|
configured: boolean;
|
|
1239
1328
|
status: "disconnected" | "connected" | "reconnect";
|
|
1240
1329
|
subject: string | null;
|
|
@@ -1331,7 +1420,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1331
1420
|
quest: string;
|
|
1332
1421
|
member: string;
|
|
1333
1422
|
evidence: string | null;
|
|
1334
|
-
status: "
|
|
1423
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1335
1424
|
reason: string | null;
|
|
1336
1425
|
retries: number;
|
|
1337
1426
|
generation: number;
|
|
@@ -1403,7 +1492,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1403
1492
|
} | undefined;
|
|
1404
1493
|
} | undefined;
|
|
1405
1494
|
};
|
|
1406
|
-
connections: ("
|
|
1495
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1407
1496
|
trigger: {
|
|
1408
1497
|
kind: "automatic";
|
|
1409
1498
|
observation?: {
|
|
@@ -1444,7 +1533,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1444
1533
|
};
|
|
1445
1534
|
availability: {
|
|
1446
1535
|
kind: "available";
|
|
1447
|
-
input: "quiz" | "
|
|
1536
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
1448
1537
|
} | {
|
|
1449
1538
|
kind: "completed";
|
|
1450
1539
|
} | {
|
|
@@ -1493,7 +1582,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1493
1582
|
quest: string;
|
|
1494
1583
|
member: string;
|
|
1495
1584
|
evidence: string | null;
|
|
1496
|
-
status: "
|
|
1585
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1497
1586
|
reason: string | null;
|
|
1498
1587
|
retries: number;
|
|
1499
1588
|
generation: number;
|
|
@@ -1660,7 +1749,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1660
1749
|
provider: "discord";
|
|
1661
1750
|
action: "grant-role";
|
|
1662
1751
|
roleId: string;
|
|
1663
|
-
status: "
|
|
1752
|
+
status: "failed" | "pending" | "delivered";
|
|
1664
1753
|
attempts: number;
|
|
1665
1754
|
nextAt: number;
|
|
1666
1755
|
lastError: string | null;
|
|
@@ -1676,7 +1765,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1676
1765
|
quest: string;
|
|
1677
1766
|
member: string;
|
|
1678
1767
|
evidence: string | null;
|
|
1679
|
-
status: "
|
|
1768
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1680
1769
|
reason: string | null;
|
|
1681
1770
|
retries: number;
|
|
1682
1771
|
generation: number;
|
|
@@ -1730,86 +1819,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1730
1819
|
size: number;
|
|
1731
1820
|
}>;
|
|
1732
1821
|
};
|
|
1733
|
-
reviews: {
|
|
1734
|
-
list: (options?: ReviewListOptions, requestOptions?: {
|
|
1735
|
-
signal?: AbortSignal;
|
|
1736
|
-
}) => Promise<{
|
|
1737
|
-
items: {
|
|
1738
|
-
attempt: {
|
|
1739
|
-
id: string;
|
|
1740
|
-
release: string;
|
|
1741
|
-
quest: string;
|
|
1742
|
-
member: string;
|
|
1743
|
-
evidence: string | null;
|
|
1744
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
1745
|
-
reason: string | null;
|
|
1746
|
-
retries: number;
|
|
1747
|
-
generation: number;
|
|
1748
|
-
completion: string | null;
|
|
1749
|
-
reviewRewards: ({
|
|
1750
|
-
kind: "tier";
|
|
1751
|
-
reward: {
|
|
1752
|
-
id: string;
|
|
1753
|
-
title: string;
|
|
1754
|
-
tiers: {
|
|
1755
|
-
id: string;
|
|
1756
|
-
title: string;
|
|
1757
|
-
}[];
|
|
1758
|
-
inventory: {
|
|
1759
|
-
kind: "untracked";
|
|
1760
|
-
};
|
|
1761
|
-
fulfillment: {
|
|
1762
|
-
kind: "staff-handover";
|
|
1763
|
-
};
|
|
1764
|
-
};
|
|
1765
|
-
tier: string;
|
|
1766
|
-
} | {
|
|
1767
|
-
kind: "points";
|
|
1768
|
-
balance: string;
|
|
1769
|
-
amount: number;
|
|
1770
|
-
} | {
|
|
1771
|
-
kind: "integration";
|
|
1772
|
-
provider: "discord";
|
|
1773
|
-
action: "grant-role";
|
|
1774
|
-
roleId: string;
|
|
1775
|
-
})[] | null;
|
|
1776
|
-
createdAt: number;
|
|
1777
|
-
input?: {
|
|
1778
|
-
kind: "quiz";
|
|
1779
|
-
answers: {
|
|
1780
|
-
[k: string]: string;
|
|
1781
|
-
};
|
|
1782
|
-
release?: string | undefined;
|
|
1783
|
-
} | {
|
|
1784
|
-
kind: "text";
|
|
1785
|
-
value: string;
|
|
1786
|
-
} | {
|
|
1787
|
-
kind: "url";
|
|
1788
|
-
value: string;
|
|
1789
|
-
} | undefined;
|
|
1790
|
-
};
|
|
1791
|
-
title: string;
|
|
1792
|
-
checks: {
|
|
1793
|
-
criteria: string;
|
|
1794
|
-
result: {
|
|
1795
|
-
kind: "pass" | "fail" | "unclear";
|
|
1796
|
-
reason: string;
|
|
1797
|
-
};
|
|
1798
|
-
}[];
|
|
1799
|
-
}[];
|
|
1800
|
-
nextCursor: string | null;
|
|
1801
|
-
}>;
|
|
1802
|
-
};
|
|
1803
|
-
members: {
|
|
1804
|
-
list: (options?: MemberListOptions, requestOptions?: {
|
|
1805
|
-
signal?: AbortSignal;
|
|
1806
|
-
}) => Promise<{
|
|
1807
|
-
items: {
|
|
1808
|
-
member: string;
|
|
1809
|
-
}[];
|
|
1810
|
-
nextCursor: string | null;
|
|
1811
|
-
}>;
|
|
1812
|
-
};
|
|
1813
1822
|
evidence: {
|
|
1814
1823
|
download(id: string, requestOptions?: {
|
|
1815
1824
|
signal?: AbortSignal;
|
|
@@ -1822,7 +1831,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1822
1831
|
code: string;
|
|
1823
1832
|
definition: {
|
|
1824
1833
|
quest: string;
|
|
1825
|
-
runtimeVersion:
|
|
1834
|
+
runtimeVersion: 2 | 1;
|
|
1826
1835
|
title: string;
|
|
1827
1836
|
presentation: {
|
|
1828
1837
|
quiz?: {
|
|
@@ -1859,12 +1868,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1859
1868
|
kind: "resource";
|
|
1860
1869
|
default: string;
|
|
1861
1870
|
source: {
|
|
1871
|
+
provider: "domino";
|
|
1872
|
+
resource: "point-ledger";
|
|
1873
|
+
} | {
|
|
1862
1874
|
provider: "discord";
|
|
1863
1875
|
resource: "channel";
|
|
1864
1876
|
types: ("text" | "announcement")[];
|
|
1865
|
-
} | {
|
|
1866
|
-
provider: "domino";
|
|
1867
|
-
resource: "point-ledger";
|
|
1868
1877
|
} | {
|
|
1869
1878
|
provider: "discord";
|
|
1870
1879
|
resource: "role";
|
|
@@ -2003,7 +2012,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2003
2012
|
visibility: "visible" | "hidden";
|
|
2004
2013
|
budgets: {
|
|
2005
2014
|
id: string;
|
|
2006
|
-
scope: "
|
|
2015
|
+
scope: "project" | "member";
|
|
2007
2016
|
period: "day" | "lifetime";
|
|
2008
2017
|
limit: number;
|
|
2009
2018
|
cost: number | {
|
|
@@ -2020,7 +2029,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2020
2029
|
code: string;
|
|
2021
2030
|
definition: {
|
|
2022
2031
|
quest: string;
|
|
2023
|
-
runtimeVersion:
|
|
2032
|
+
runtimeVersion: 2 | 1;
|
|
2024
2033
|
title: string;
|
|
2025
2034
|
presentation: {
|
|
2026
2035
|
quiz?: {
|
|
@@ -2057,12 +2066,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2057
2066
|
kind: "resource";
|
|
2058
2067
|
default: string;
|
|
2059
2068
|
source: {
|
|
2069
|
+
provider: "domino";
|
|
2070
|
+
resource: "point-ledger";
|
|
2071
|
+
} | {
|
|
2060
2072
|
provider: "discord";
|
|
2061
2073
|
resource: "channel";
|
|
2062
2074
|
types: ("text" | "announcement")[];
|
|
2063
|
-
} | {
|
|
2064
|
-
provider: "domino";
|
|
2065
|
-
resource: "point-ledger";
|
|
2066
2075
|
} | {
|
|
2067
2076
|
provider: "discord";
|
|
2068
2077
|
resource: "role";
|
|
@@ -2201,7 +2210,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2201
2210
|
visibility: "visible" | "hidden";
|
|
2202
2211
|
budgets: {
|
|
2203
2212
|
id: string;
|
|
2204
|
-
scope: "
|
|
2213
|
+
scope: "project" | "member";
|
|
2205
2214
|
period: "day" | "lifetime";
|
|
2206
2215
|
limit: number;
|
|
2207
2216
|
cost: number | {
|
|
@@ -2217,7 +2226,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2217
2226
|
snapshot: () => Promise<{
|
|
2218
2227
|
releases: {
|
|
2219
2228
|
quest: string;
|
|
2220
|
-
runtimeVersion:
|
|
2229
|
+
runtimeVersion: 2 | 1;
|
|
2221
2230
|
title: string;
|
|
2222
2231
|
presentation: {
|
|
2223
2232
|
quiz?: {
|
|
@@ -2254,12 +2263,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2254
2263
|
kind: "resource";
|
|
2255
2264
|
default: string;
|
|
2256
2265
|
source: {
|
|
2266
|
+
provider: "domino";
|
|
2267
|
+
resource: "point-ledger";
|
|
2268
|
+
} | {
|
|
2257
2269
|
provider: "discord";
|
|
2258
2270
|
resource: "channel";
|
|
2259
2271
|
types: ("text" | "announcement")[];
|
|
2260
|
-
} | {
|
|
2261
|
-
provider: "domino";
|
|
2262
|
-
resource: "point-ledger";
|
|
2263
2272
|
} | {
|
|
2264
2273
|
provider: "discord";
|
|
2265
2274
|
resource: "role";
|
|
@@ -2398,7 +2407,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2398
2407
|
visibility: "visible" | "hidden";
|
|
2399
2408
|
budgets: {
|
|
2400
2409
|
id: string;
|
|
2401
|
-
scope: "
|
|
2410
|
+
scope: "project" | "member";
|
|
2402
2411
|
period: "day" | "lifetime";
|
|
2403
2412
|
limit: number;
|
|
2404
2413
|
cost: number | {
|
|
@@ -2530,7 +2539,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2530
2539
|
quest: string;
|
|
2531
2540
|
member: string;
|
|
2532
2541
|
evidence: string | null;
|
|
2533
|
-
status: "
|
|
2542
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
2534
2543
|
reason: string | null;
|
|
2535
2544
|
retries: number;
|
|
2536
2545
|
generation: number;
|
|
@@ -2595,7 +2604,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2595
2604
|
}>;
|
|
2596
2605
|
publish: (release: ReleaseInput) => Promise<{
|
|
2597
2606
|
quest: string;
|
|
2598
|
-
runtimeVersion:
|
|
2607
|
+
runtimeVersion: 2 | 1;
|
|
2599
2608
|
title: string;
|
|
2600
2609
|
presentation: {
|
|
2601
2610
|
quiz?: {
|
|
@@ -2632,12 +2641,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2632
2641
|
kind: "resource";
|
|
2633
2642
|
default: string;
|
|
2634
2643
|
source: {
|
|
2644
|
+
provider: "domino";
|
|
2645
|
+
resource: "point-ledger";
|
|
2646
|
+
} | {
|
|
2635
2647
|
provider: "discord";
|
|
2636
2648
|
resource: "channel";
|
|
2637
2649
|
types: ("text" | "announcement")[];
|
|
2638
|
-
} | {
|
|
2639
|
-
provider: "domino";
|
|
2640
|
-
resource: "point-ledger";
|
|
2641
2650
|
} | {
|
|
2642
2651
|
provider: "discord";
|
|
2643
2652
|
resource: "role";
|
|
@@ -2776,7 +2785,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2776
2785
|
visibility: "visible" | "hidden";
|
|
2777
2786
|
budgets: {
|
|
2778
2787
|
id: string;
|
|
2779
|
-
scope: "
|
|
2788
|
+
scope: "project" | "member";
|
|
2780
2789
|
period: "day" | "lifetime";
|
|
2781
2790
|
limit: number;
|
|
2782
2791
|
cost: number | {
|
|
@@ -2821,7 +2830,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2821
2830
|
}>;
|
|
2822
2831
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
2823
2832
|
quest: string;
|
|
2824
|
-
runtimeVersion:
|
|
2833
|
+
runtimeVersion: 2 | 1;
|
|
2825
2834
|
title: string;
|
|
2826
2835
|
presentation: {
|
|
2827
2836
|
quiz?: {
|
|
@@ -2858,12 +2867,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2858
2867
|
kind: "resource";
|
|
2859
2868
|
default: string;
|
|
2860
2869
|
source: {
|
|
2870
|
+
provider: "domino";
|
|
2871
|
+
resource: "point-ledger";
|
|
2872
|
+
} | {
|
|
2861
2873
|
provider: "discord";
|
|
2862
2874
|
resource: "channel";
|
|
2863
2875
|
types: ("text" | "announcement")[];
|
|
2864
|
-
} | {
|
|
2865
|
-
provider: "domino";
|
|
2866
|
-
resource: "point-ledger";
|
|
2867
2876
|
} | {
|
|
2868
2877
|
provider: "discord";
|
|
2869
2878
|
resource: "role";
|
|
@@ -3002,7 +3011,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3002
3011
|
visibility: "visible" | "hidden";
|
|
3003
3012
|
budgets: {
|
|
3004
3013
|
id: string;
|
|
3005
|
-
scope: "
|
|
3014
|
+
scope: "project" | "member";
|
|
3006
3015
|
period: "day" | "lifetime";
|
|
3007
3016
|
limit: number;
|
|
3008
3017
|
cost: number | {
|
|
@@ -3070,7 +3079,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3070
3079
|
} | undefined;
|
|
3071
3080
|
} | undefined;
|
|
3072
3081
|
};
|
|
3073
|
-
connections: ("
|
|
3082
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
3074
3083
|
trigger: {
|
|
3075
3084
|
kind: "automatic";
|
|
3076
3085
|
observation?: {
|
|
@@ -3111,7 +3120,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3111
3120
|
};
|
|
3112
3121
|
availability: {
|
|
3113
3122
|
kind: "available";
|
|
3114
|
-
input: "quiz" | "
|
|
3123
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
3115
3124
|
} | {
|
|
3116
3125
|
kind: "completed";
|
|
3117
3126
|
} | {
|
|
@@ -3160,7 +3169,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3160
3169
|
quest: string;
|
|
3161
3170
|
member: string;
|
|
3162
3171
|
evidence: string | null;
|
|
3163
|
-
status: "
|
|
3172
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3164
3173
|
reason: string | null;
|
|
3165
3174
|
retries: number;
|
|
3166
3175
|
generation: number;
|
|
@@ -3586,7 +3595,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3586
3595
|
content: {
|
|
3587
3596
|
performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
3588
3597
|
current: {
|
|
3589
|
-
state: "needs-review" | "
|
|
3598
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
|
|
3590
3599
|
reason: string | null;
|
|
3591
3600
|
contentAttempt: string;
|
|
3592
3601
|
attempt: string | null;
|
|
@@ -3602,7 +3611,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3602
3611
|
observation: string;
|
|
3603
3612
|
observedAt: number;
|
|
3604
3613
|
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
3605
|
-
state: "needs-review" | "
|
|
3614
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
|
|
3606
3615
|
reason: string | null;
|
|
3607
3616
|
}[];
|
|
3608
3617
|
next: number | null;
|
|
@@ -3617,7 +3626,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3617
3626
|
revision: string;
|
|
3618
3627
|
observation: string;
|
|
3619
3628
|
current: boolean;
|
|
3620
|
-
state: "needs-review" | "
|
|
3629
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
|
|
3621
3630
|
reason: string | null;
|
|
3622
3631
|
reward: {
|
|
3623
3632
|
attempt: string | null;
|
|
@@ -3632,7 +3641,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3632
3641
|
quest: string;
|
|
3633
3642
|
content: string;
|
|
3634
3643
|
release: string;
|
|
3635
|
-
state: "pending" | "
|
|
3644
|
+
state: "pending" | "excluded" | "admitted";
|
|
3636
3645
|
reason: string | null;
|
|
3637
3646
|
attempt: string | null;
|
|
3638
3647
|
}[];
|
|
@@ -3647,7 +3656,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3647
3656
|
quest: string;
|
|
3648
3657
|
content: string;
|
|
3649
3658
|
release: string;
|
|
3650
|
-
state: "pending" | "
|
|
3659
|
+
state: "pending" | "excluded" | "admitted";
|
|
3651
3660
|
reason: string | null;
|
|
3652
3661
|
attempt: string | null;
|
|
3653
3662
|
}>;
|
|
@@ -3658,7 +3667,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3658
3667
|
quest: string;
|
|
3659
3668
|
member: string;
|
|
3660
3669
|
evidence: string | null;
|
|
3661
|
-
status: "
|
|
3670
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3662
3671
|
reason: string | null;
|
|
3663
3672
|
retries: number;
|
|
3664
3673
|
generation: number;
|
|
@@ -3711,7 +3720,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3711
3720
|
quest: string;
|
|
3712
3721
|
member: string;
|
|
3713
3722
|
evidence: string | null;
|
|
3714
|
-
status: "
|
|
3723
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3715
3724
|
reason: string | null;
|
|
3716
3725
|
retries: number;
|
|
3717
3726
|
generation: number;
|
|
@@ -3769,7 +3778,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3769
3778
|
quest: string;
|
|
3770
3779
|
member: string;
|
|
3771
3780
|
evidence: string | null;
|
|
3772
|
-
status: "
|
|
3781
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
3773
3782
|
reason: string | null;
|
|
3774
3783
|
retries: number;
|
|
3775
3784
|
generation: number;
|