@domino-sdk/relay 1.0.0-next.6 → 1.0.0-next.7

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.
Files changed (42) hide show
  1. package/README.md +13 -1
  2. package/build.mjs +18 -1
  3. package/dist/authoring.d.ts +316 -14
  4. package/dist/authoring.js +177 -23
  5. package/dist/avatar.d.ts +29 -0
  6. package/dist/avatar.js +21 -0
  7. package/dist/browser.d.ts +168 -165
  8. package/dist/browser.js +6 -6
  9. package/dist/catalog-C09gnPYT.d.ts +3948 -0
  10. package/dist/chunk-7HSTFBMO.js +24 -0
  11. package/dist/{chunk-5IIWKDFX.js → chunk-ADSP377G.js} +1 -1
  12. package/dist/{chunk-RTHN22KO.js → chunk-AWLLGCKU.js} +2 -2
  13. package/dist/chunk-DJZB5RY5.js +901 -0
  14. package/dist/chunk-SKETUPST.js +171 -0
  15. package/dist/chunk-UFXBQ6FN.js +257 -0
  16. package/dist/{chunk-BRESOTKV.js → chunk-UW6R2QGT.js} +604 -723
  17. package/dist/chunk-V7UKZLHA.js +35 -0
  18. package/dist/{chunk-ERBVT7GE.js → chunk-X6FJIPXR.js} +166 -724
  19. package/dist/client-BufGakEt.d.ts +4577 -0
  20. package/dist/collection-BGneJ6Bk.d.ts +114 -0
  21. package/dist/images-e6FW9QSx.d.ts +234 -0
  22. package/dist/index.d.ts +11 -13132
  23. package/dist/index.js +11 -693
  24. package/dist/integrations-C3Sp558f.d.ts +1297 -0
  25. package/dist/internal.d.ts +109 -0
  26. package/dist/internal.js +104 -0
  27. package/dist/point-ledgers-iS00Z_v0.d.ts +37 -0
  28. package/dist/portal-proxy.js +5 -6
  29. package/dist/profiles-BtOXMGcC.d.ts +297 -0
  30. package/dist/react/index.d.ts +37 -34
  31. package/dist/react/index.js +7 -13
  32. package/dist/schema-DCapSPHz.d.ts +3396 -0
  33. package/dist/schema.d.ts +3194 -2372
  34. package/dist/schema.js +539 -3
  35. package/dist/streaks-CwGReWGt.d.ts +73 -0
  36. package/dist/submission-input-Bter6XiI.d.ts +2672 -0
  37. package/dist/units-CwgsPB_r.d.ts +9 -0
  38. package/dist/wallet-Bu6sqJvQ.d.ts +231 -0
  39. package/package.json +17 -4
  40. package/dist/chunk-XEQDW7FM.js +0 -373
  41. package/dist/chunk-ZKJBCQNI.js +0 -624
  42. package/dist/submission-input-CZDukyb3.d.ts +0 -4998
package/dist/browser.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- import { a8 as CosmosChain, a9 as CosmosNetwork, R as WalletSigner, a5 as WalletSignInNetwork, Z as AuthProvider, M as referralAcceptSchema, N as LeaderboardQuery, P as WalletAddressInput, Q as walletSignatureSchema, L as LinkedWallet, V as walletChallengeInputSchema, Y as walletProofSchema, _ as WalletSignature, $ as engagementPageQuerySchema, a0 as contentQualificationQuerySchema, a1 as contentAdmissionQuerySchema, a2 as contentEnrollmentInputSchema, a3 as contentReleaseInputSchema } from './submission-input-CZDukyb3.js';
2
- import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
3
- import { createRelayClient, SubmissionStore, ProfileUpdate, ProfileCompletionQuery, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
1
+ import { a as AuthProvider, i as referralAcceptSchema, d as LeaderboardQuery, j as engagementPageQuerySchema, k as contentQualificationQuerySchema, m as contentAdmissionQuerySchema, n as contentEnrollmentInputSchema, o as contentReleaseInputSchema } from './submission-input-Bter6XiI.js';
2
+ import { c as SubmitInput, g as ReleaseInput, h as beginHandoverSchema, i as contentPerformanceQuerySchema } from './schema-DCapSPHz.js';
3
+ import { h as createRelayClient, g as SubmissionStore, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission } from './client-BufGakEt.js';
4
+ import { b as QuestView, q as questExperienceSchema, E as ExchangeInput } from './catalog-C09gnPYT.js';
5
+ import { C as CosmosChain, a as CosmosNetwork, g as WalletSigner, e as WalletSignInNetwork, W as WalletAddressInput, w as walletSignatureSchema, L as LinkedWallet, l as walletChallengeInputSchema, m as walletProofSchema, f as WalletSignature } from './wallet-Bu6sqJvQ.js';
6
+ import { f as ProfileUpdate, c as ProfileCompletionQuery } from './profiles-BtOXMGcC.js';
4
7
  import * as zod from 'zod';
5
8
 
6
9
  /** An EIP-1193 provider, such as `window.ethereum` or an EIP-6963 announcement's provider. */
@@ -409,7 +412,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
409
412
  accounts: {
410
413
  id: string;
411
414
  program: string;
412
- kind: "fixed" | "milestone" | "bonus";
415
+ kind: "milestone" | "fixed" | "bonus";
413
416
  balance: string;
414
417
  earned: number;
415
418
  settled: number;
@@ -603,7 +606,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
603
606
  seed: string;
604
607
  };
605
608
  displayName: string | null;
606
- avatarChoice: "default" | "account" | "upload" | "generated";
609
+ avatarChoice: "default" | "account" | "generated" | "upload";
607
610
  avatarProvider: "x" | "discord" | "google" | null;
608
611
  hidden: boolean;
609
612
  locked: boolean;
@@ -633,7 +636,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
633
636
  seed: string;
634
637
  };
635
638
  displayName: string | null;
636
- avatarChoice: "default" | "account" | "upload" | "generated";
639
+ avatarChoice: "default" | "account" | "generated" | "upload";
637
640
  avatarProvider: "x" | "discord" | "google" | null;
638
641
  hidden: boolean;
639
642
  locked: boolean;
@@ -664,7 +667,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
664
667
  seed: string;
665
668
  };
666
669
  displayName: string | null;
667
- avatarChoice: "default" | "account" | "upload" | "generated";
670
+ avatarChoice: "default" | "account" | "generated" | "upload";
668
671
  avatarProvider: "x" | "discord" | "google" | null;
669
672
  hidden: boolean;
670
673
  locked: boolean;
@@ -752,7 +755,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
752
755
  start: number;
753
756
  end?: number | undefined;
754
757
  };
755
- enrollment: "none" | "required";
758
+ enrollment: "required" | "none";
756
759
  posts: "after-enrollment" | "since-start";
757
760
  historical: "staff" | "automatic" | "claim";
758
761
  } | undefined;
@@ -799,12 +802,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
799
802
  actor?: "member" | "staff" | undefined;
800
803
  } | {
801
804
  kind: "manual";
802
- input: "none" | "quiz" | "photo";
805
+ input: "quiz" | "photo" | "none";
803
806
  actor?: "member" | "staff" | undefined;
804
807
  };
805
808
  availability: {
806
809
  kind: "available";
807
- input: "text" | "url" | "none" | "quiz" | "photo";
810
+ input: "quiz" | "url" | "text" | "photo" | "none";
808
811
  } | {
809
812
  kind: "completed";
810
813
  } | {
@@ -842,7 +845,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
842
845
  kind: "keyed";
843
846
  };
844
847
  completionCount: number;
845
- visibility: "visible" | "hidden";
848
+ visibility: "hidden" | "visible";
846
849
  missing: {
847
850
  quest: string;
848
851
  title: string;
@@ -853,7 +856,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
853
856
  quest: string;
854
857
  member: string;
855
858
  evidence: string | null;
856
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
859
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
857
860
  reason: string | null;
858
861
  retries: number;
859
862
  generation: number;
@@ -888,22 +891,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
888
891
  requestedReview: boolean;
889
892
  createdAt: number;
890
893
  input?: {
891
- kind: "text";
892
- value: string;
893
- } | {
894
- kind: "url";
895
- value: string;
896
- } | {
897
894
  kind: "quiz";
898
895
  answers: {
899
896
  [k: string]: string;
900
897
  };
901
898
  release?: string | undefined;
899
+ } | {
900
+ kind: "text";
901
+ value: string;
902
+ } | {
903
+ kind: "url";
904
+ value: string;
902
905
  } | undefined;
903
906
  } | null;
904
907
  release: string;
905
- interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
906
- lifecycle: "paused" | "active" | "archived";
908
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
909
+ lifecycle: "active" | "paused" | "archived";
907
910
  rewards: ({
908
911
  kind: "points";
909
912
  label: string;
@@ -964,7 +967,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
964
967
  quest: string;
965
968
  member: string;
966
969
  evidence: string | null;
967
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
970
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
968
971
  reason: string | null;
969
972
  retries: number;
970
973
  generation: number;
@@ -999,17 +1002,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
999
1002
  requestedReview: boolean;
1000
1003
  createdAt: number;
1001
1004
  input?: {
1002
- kind: "text";
1003
- value: string;
1004
- } | {
1005
- kind: "url";
1006
- value: string;
1007
- } | {
1008
1005
  kind: "quiz";
1009
1006
  answers: {
1010
1007
  [k: string]: string;
1011
1008
  };
1012
1009
  release?: string | undefined;
1010
+ } | {
1011
+ kind: "text";
1012
+ value: string;
1013
+ } | {
1014
+ kind: "url";
1015
+ value: string;
1013
1016
  } | undefined;
1014
1017
  }>;
1015
1018
  experience: () => Promise<{
@@ -1050,7 +1053,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1050
1053
  start: number;
1051
1054
  end?: number | undefined;
1052
1055
  };
1053
- enrollment: "none" | "required";
1056
+ enrollment: "required" | "none";
1054
1057
  posts: "after-enrollment" | "since-start";
1055
1058
  historical: "staff" | "automatic" | "claim";
1056
1059
  } | undefined;
@@ -1097,12 +1100,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1097
1100
  actor?: "member" | "staff" | undefined;
1098
1101
  } | {
1099
1102
  kind: "manual";
1100
- input: "none" | "quiz" | "photo";
1103
+ input: "quiz" | "photo" | "none";
1101
1104
  actor?: "member" | "staff" | undefined;
1102
1105
  };
1103
1106
  availability: {
1104
1107
  kind: "available";
1105
- input: "text" | "url" | "none" | "quiz" | "photo";
1108
+ input: "quiz" | "url" | "text" | "photo" | "none";
1106
1109
  } | {
1107
1110
  kind: "completed";
1108
1111
  } | {
@@ -1140,7 +1143,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1140
1143
  kind: "keyed";
1141
1144
  };
1142
1145
  completionCount: number;
1143
- visibility: "visible" | "hidden";
1146
+ visibility: "hidden" | "visible";
1144
1147
  missing: {
1145
1148
  quest: string;
1146
1149
  title: string;
@@ -1151,7 +1154,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1151
1154
  quest: string;
1152
1155
  member: string;
1153
1156
  evidence: string | null;
1154
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1157
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1155
1158
  reason: string | null;
1156
1159
  retries: number;
1157
1160
  generation: number;
@@ -1186,22 +1189,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1186
1189
  requestedReview: boolean;
1187
1190
  createdAt: number;
1188
1191
  input?: {
1189
- kind: "text";
1190
- value: string;
1191
- } | {
1192
- kind: "url";
1193
- value: string;
1194
- } | {
1195
1192
  kind: "quiz";
1196
1193
  answers: {
1197
1194
  [k: string]: string;
1198
1195
  };
1199
1196
  release?: string | undefined;
1197
+ } | {
1198
+ kind: "text";
1199
+ value: string;
1200
+ } | {
1201
+ kind: "url";
1202
+ value: string;
1200
1203
  } | undefined;
1201
1204
  } | null;
1202
1205
  release: string;
1203
- interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1204
- lifecycle: "paused" | "active" | "archived";
1206
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1207
+ lifecycle: "active" | "paused" | "archived";
1205
1208
  rewards: ({
1206
1209
  kind: "points";
1207
1210
  label: string;
@@ -1295,7 +1298,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1295
1298
  start: number;
1296
1299
  end?: number | undefined;
1297
1300
  };
1298
- enrollment: "none" | "required";
1301
+ enrollment: "required" | "none";
1299
1302
  posts: "after-enrollment" | "since-start";
1300
1303
  historical: "staff" | "automatic" | "claim";
1301
1304
  } | undefined;
@@ -1342,12 +1345,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1342
1345
  actor?: "member" | "staff" | undefined;
1343
1346
  } | {
1344
1347
  kind: "manual";
1345
- input: "none" | "quiz" | "photo";
1348
+ input: "quiz" | "photo" | "none";
1346
1349
  actor?: "member" | "staff" | undefined;
1347
1350
  };
1348
1351
  availability: {
1349
1352
  kind: "available";
1350
- input: "text" | "url" | "none" | "quiz" | "photo";
1353
+ input: "quiz" | "url" | "text" | "photo" | "none";
1351
1354
  } | {
1352
1355
  kind: "completed";
1353
1356
  } | {
@@ -1385,7 +1388,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1385
1388
  kind: "keyed";
1386
1389
  };
1387
1390
  completionCount: number;
1388
- visibility: "visible" | "hidden";
1391
+ visibility: "hidden" | "visible";
1389
1392
  missing: {
1390
1393
  quest: string;
1391
1394
  title: string;
@@ -1396,7 +1399,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1396
1399
  quest: string;
1397
1400
  member: string;
1398
1401
  evidence: string | null;
1399
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1402
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1400
1403
  reason: string | null;
1401
1404
  retries: number;
1402
1405
  generation: number;
@@ -1431,22 +1434,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1431
1434
  requestedReview: boolean;
1432
1435
  createdAt: number;
1433
1436
  input?: {
1434
- kind: "text";
1435
- value: string;
1436
- } | {
1437
- kind: "url";
1438
- value: string;
1439
- } | {
1440
1437
  kind: "quiz";
1441
1438
  answers: {
1442
1439
  [k: string]: string;
1443
1440
  };
1444
1441
  release?: string | undefined;
1442
+ } | {
1443
+ kind: "text";
1444
+ value: string;
1445
+ } | {
1446
+ kind: "url";
1447
+ value: string;
1445
1448
  } | undefined;
1446
1449
  } | null;
1447
1450
  release: string;
1448
- interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1449
- lifecycle: "paused" | "active" | "archived";
1451
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1452
+ lifecycle: "active" | "paused" | "archived";
1450
1453
  rewards: ({
1451
1454
  kind: "points";
1452
1455
  label: string;
@@ -1543,7 +1546,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1543
1546
  start: number;
1544
1547
  end?: number | undefined;
1545
1548
  };
1546
- enrollment: "none" | "required";
1549
+ enrollment: "required" | "none";
1547
1550
  posts: "after-enrollment" | "since-start";
1548
1551
  historical: "staff" | "automatic" | "claim";
1549
1552
  } | undefined;
@@ -1590,12 +1593,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1590
1593
  actor?: "member" | "staff" | undefined;
1591
1594
  } | {
1592
1595
  kind: "manual";
1593
- input: "none" | "quiz" | "photo";
1596
+ input: "quiz" | "photo" | "none";
1594
1597
  actor?: "member" | "staff" | undefined;
1595
1598
  };
1596
1599
  availability: {
1597
1600
  kind: "available";
1598
- input: "text" | "url" | "none" | "quiz" | "photo";
1601
+ input: "quiz" | "url" | "text" | "photo" | "none";
1599
1602
  } | {
1600
1603
  kind: "completed";
1601
1604
  } | {
@@ -1633,7 +1636,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1633
1636
  kind: "keyed";
1634
1637
  };
1635
1638
  completionCount: number;
1636
- visibility: "visible" | "hidden";
1639
+ visibility: "hidden" | "visible";
1637
1640
  missing: {
1638
1641
  quest: string;
1639
1642
  title: string;
@@ -1644,7 +1647,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1644
1647
  quest: string;
1645
1648
  member: string;
1646
1649
  evidence: string | null;
1647
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1650
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1648
1651
  reason: string | null;
1649
1652
  retries: number;
1650
1653
  generation: number;
@@ -1679,22 +1682,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1679
1682
  requestedReview: boolean;
1680
1683
  createdAt: number;
1681
1684
  input?: {
1682
- kind: "text";
1683
- value: string;
1684
- } | {
1685
- kind: "url";
1686
- value: string;
1687
- } | {
1688
1685
  kind: "quiz";
1689
1686
  answers: {
1690
1687
  [k: string]: string;
1691
1688
  };
1692
1689
  release?: string | undefined;
1690
+ } | {
1691
+ kind: "text";
1692
+ value: string;
1693
+ } | {
1694
+ kind: "url";
1695
+ value: string;
1693
1696
  } | undefined;
1694
1697
  } | null;
1695
1698
  release: string;
1696
- interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1697
- lifecycle: "paused" | "active" | "archived";
1699
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1700
+ lifecycle: "active" | "paused" | "archived";
1698
1701
  rewards: ({
1699
1702
  kind: "points";
1700
1703
  label: string;
@@ -1996,7 +1999,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1996
1999
  quest: string;
1997
2000
  member: string;
1998
2001
  evidence: string | null;
1999
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2002
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2000
2003
  reason: string | null;
2001
2004
  retries: number;
2002
2005
  generation: number;
@@ -2031,17 +2034,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2031
2034
  requestedReview: boolean;
2032
2035
  createdAt: number;
2033
2036
  input?: {
2034
- kind: "text";
2035
- value: string;
2036
- } | {
2037
- kind: "url";
2038
- value: string;
2039
- } | {
2040
2037
  kind: "quiz";
2041
2038
  answers: {
2042
2039
  [k: string]: string;
2043
2040
  };
2044
2041
  release?: string | undefined;
2042
+ } | {
2043
+ kind: "text";
2044
+ value: string;
2045
+ } | {
2046
+ kind: "url";
2047
+ value: string;
2045
2048
  } | undefined;
2046
2049
  }>;
2047
2050
  progress: () => Promise<{
@@ -2082,7 +2085,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2082
2085
  start: number;
2083
2086
  end?: number | undefined;
2084
2087
  };
2085
- enrollment: "none" | "required";
2088
+ enrollment: "required" | "none";
2086
2089
  posts: "after-enrollment" | "since-start";
2087
2090
  historical: "staff" | "automatic" | "claim";
2088
2091
  } | undefined;
@@ -2129,12 +2132,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2129
2132
  actor?: "member" | "staff" | undefined;
2130
2133
  } | {
2131
2134
  kind: "manual";
2132
- input: "none" | "quiz" | "photo";
2135
+ input: "quiz" | "photo" | "none";
2133
2136
  actor?: "member" | "staff" | undefined;
2134
2137
  };
2135
2138
  availability: {
2136
2139
  kind: "available";
2137
- input: "text" | "url" | "none" | "quiz" | "photo";
2140
+ input: "quiz" | "url" | "text" | "photo" | "none";
2138
2141
  } | {
2139
2142
  kind: "completed";
2140
2143
  } | {
@@ -2172,7 +2175,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2172
2175
  kind: "keyed";
2173
2176
  };
2174
2177
  completionCount: number;
2175
- visibility: "visible" | "hidden";
2178
+ visibility: "hidden" | "visible";
2176
2179
  missing: {
2177
2180
  quest: string;
2178
2181
  title: string;
@@ -2183,7 +2186,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2183
2186
  quest: string;
2184
2187
  member: string;
2185
2188
  evidence: string | null;
2186
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2189
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2187
2190
  reason: string | null;
2188
2191
  retries: number;
2189
2192
  generation: number;
@@ -2218,17 +2221,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2218
2221
  requestedReview: boolean;
2219
2222
  createdAt: number;
2220
2223
  input?: {
2221
- kind: "text";
2222
- value: string;
2223
- } | {
2224
- kind: "url";
2225
- value: string;
2226
- } | {
2227
2224
  kind: "quiz";
2228
2225
  answers: {
2229
2226
  [k: string]: string;
2230
2227
  };
2231
2228
  release?: string | undefined;
2229
+ } | {
2230
+ kind: "text";
2231
+ value: string;
2232
+ } | {
2233
+ kind: "url";
2234
+ value: string;
2232
2235
  } | undefined;
2233
2236
  } | null;
2234
2237
  key?: string | undefined;
@@ -2367,7 +2370,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2367
2370
  quest: string;
2368
2371
  member: string;
2369
2372
  evidence: string | null;
2370
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2373
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2371
2374
  reason: string | null;
2372
2375
  retries: number;
2373
2376
  generation: number;
@@ -2402,17 +2405,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2402
2405
  requestedReview: boolean;
2403
2406
  createdAt: number;
2404
2407
  input?: {
2405
- kind: "text";
2406
- value: string;
2407
- } | {
2408
- kind: "url";
2409
- value: string;
2410
- } | {
2411
2408
  kind: "quiz";
2412
2409
  answers: {
2413
2410
  [k: string]: string;
2414
2411
  };
2415
2412
  release?: string | undefined;
2413
+ } | {
2414
+ kind: "text";
2415
+ value: string;
2416
+ } | {
2417
+ kind: "url";
2418
+ value: string;
2416
2419
  } | undefined;
2417
2420
  }>;
2418
2421
  upload: (file: File) => Promise<{
@@ -2434,7 +2437,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2434
2437
  code: string;
2435
2438
  definition: {
2436
2439
  quest: string;
2437
- runtimeVersion: 2 | 1;
2440
+ runtimeVersion: 1 | 2;
2438
2441
  title: string;
2439
2442
  presentation: {
2440
2443
  quiz?: {
@@ -2573,7 +2576,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2573
2576
  start: number;
2574
2577
  end?: number | undefined;
2575
2578
  };
2576
- enrollment: "none" | "required";
2579
+ enrollment: "required" | "none";
2577
2580
  posts: "after-enrollment" | "since-start";
2578
2581
  historical: "staff" | "automatic" | "claim";
2579
2582
  } | undefined;
@@ -2620,7 +2623,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2620
2623
  actor?: "member" | "staff" | undefined;
2621
2624
  } | {
2622
2625
  kind: "manual";
2623
- input: "none" | "quiz" | "photo";
2626
+ input: "quiz" | "photo" | "none";
2624
2627
  actor?: "member" | "staff" | undefined;
2625
2628
  };
2626
2629
  requires: {
@@ -2635,10 +2638,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2635
2638
  } | {
2636
2639
  kind: "keyed";
2637
2640
  };
2638
- visibility: "visible" | "hidden";
2641
+ visibility: "hidden" | "visible";
2639
2642
  budgets: {
2640
2643
  id: string;
2641
- scope: "project" | "member";
2644
+ scope: "member" | "project";
2642
2645
  period: "day" | "lifetime" | "week";
2643
2646
  limit: number;
2644
2647
  cost: number | {
@@ -2658,7 +2661,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2658
2661
  code: string;
2659
2662
  definition: {
2660
2663
  quest: string;
2661
- runtimeVersion: 2 | 1;
2664
+ runtimeVersion: 1 | 2;
2662
2665
  title: string;
2663
2666
  presentation: {
2664
2667
  quiz?: {
@@ -2797,7 +2800,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2797
2800
  start: number;
2798
2801
  end?: number | undefined;
2799
2802
  };
2800
- enrollment: "none" | "required";
2803
+ enrollment: "required" | "none";
2801
2804
  posts: "after-enrollment" | "since-start";
2802
2805
  historical: "staff" | "automatic" | "claim";
2803
2806
  } | undefined;
@@ -2844,7 +2847,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2844
2847
  actor?: "member" | "staff" | undefined;
2845
2848
  } | {
2846
2849
  kind: "manual";
2847
- input: "none" | "quiz" | "photo";
2850
+ input: "quiz" | "photo" | "none";
2848
2851
  actor?: "member" | "staff" | undefined;
2849
2852
  };
2850
2853
  requires: {
@@ -2859,10 +2862,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2859
2862
  } | {
2860
2863
  kind: "keyed";
2861
2864
  };
2862
- visibility: "visible" | "hidden";
2865
+ visibility: "hidden" | "visible";
2863
2866
  budgets: {
2864
2867
  id: string;
2865
- scope: "project" | "member";
2868
+ scope: "member" | "project";
2866
2869
  period: "day" | "lifetime" | "week";
2867
2870
  limit: number;
2868
2871
  cost: number | {
@@ -2881,7 +2884,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2881
2884
  snapshot: () => Promise<{
2882
2885
  releases: {
2883
2886
  quest: string;
2884
- runtimeVersion: 2 | 1;
2887
+ runtimeVersion: 1 | 2;
2885
2888
  title: string;
2886
2889
  presentation: {
2887
2890
  quiz?: {
@@ -3020,7 +3023,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3020
3023
  start: number;
3021
3024
  end?: number | undefined;
3022
3025
  };
3023
- enrollment: "none" | "required";
3026
+ enrollment: "required" | "none";
3024
3027
  posts: "after-enrollment" | "since-start";
3025
3028
  historical: "staff" | "automatic" | "claim";
3026
3029
  } | undefined;
@@ -3067,7 +3070,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3067
3070
  actor?: "member" | "staff" | undefined;
3068
3071
  } | {
3069
3072
  kind: "manual";
3070
- input: "none" | "quiz" | "photo";
3073
+ input: "quiz" | "photo" | "none";
3071
3074
  actor?: "member" | "staff" | undefined;
3072
3075
  };
3073
3076
  requires: {
@@ -3082,10 +3085,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3082
3085
  } | {
3083
3086
  kind: "keyed";
3084
3087
  };
3085
- visibility: "visible" | "hidden";
3088
+ visibility: "hidden" | "visible";
3086
3089
  budgets: {
3087
3090
  id: string;
3088
- scope: "project" | "member";
3091
+ scope: "member" | "project";
3089
3092
  period: "day" | "lifetime" | "week";
3090
3093
  limit: number;
3091
3094
  cost: number | {
@@ -3097,7 +3100,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3097
3100
  id: string;
3098
3101
  createdAt: number;
3099
3102
  legacy: boolean;
3100
- lifecycle: "paused" | "active" | "archived";
3103
+ lifecycle: "active" | "paused" | "archived";
3101
3104
  performance?: {
3102
3105
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3103
3106
  maxAgeMs: number;
@@ -3220,7 +3223,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3220
3223
  quest: string;
3221
3224
  member: string;
3222
3225
  evidence: string | null;
3223
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3226
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
3224
3227
  reason: string | null;
3225
3228
  retries: number;
3226
3229
  generation: number;
@@ -3255,17 +3258,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3255
3258
  requestedReview: boolean;
3256
3259
  createdAt: number;
3257
3260
  input?: {
3258
- kind: "text";
3259
- value: string;
3260
- } | {
3261
- kind: "url";
3262
- value: string;
3263
- } | {
3264
3261
  kind: "quiz";
3265
3262
  answers: {
3266
3263
  [k: string]: string;
3267
3264
  };
3268
3265
  release?: string | undefined;
3266
+ } | {
3267
+ kind: "text";
3268
+ value: string;
3269
+ } | {
3270
+ kind: "url";
3271
+ value: string;
3269
3272
  } | undefined;
3270
3273
  }[];
3271
3274
  balances: {
@@ -3286,7 +3289,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3286
3289
  }>;
3287
3290
  publish: (release: ReleaseInput) => Promise<{
3288
3291
  quest: string;
3289
- runtimeVersion: 2 | 1;
3292
+ runtimeVersion: 1 | 2;
3290
3293
  title: string;
3291
3294
  presentation: {
3292
3295
  quiz?: {
@@ -3425,7 +3428,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3425
3428
  start: number;
3426
3429
  end?: number | undefined;
3427
3430
  };
3428
- enrollment: "none" | "required";
3431
+ enrollment: "required" | "none";
3429
3432
  posts: "after-enrollment" | "since-start";
3430
3433
  historical: "staff" | "automatic" | "claim";
3431
3434
  } | undefined;
@@ -3472,7 +3475,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3472
3475
  actor?: "member" | "staff" | undefined;
3473
3476
  } | {
3474
3477
  kind: "manual";
3475
- input: "none" | "quiz" | "photo";
3478
+ input: "quiz" | "photo" | "none";
3476
3479
  actor?: "member" | "staff" | undefined;
3477
3480
  };
3478
3481
  requires: {
@@ -3487,10 +3490,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3487
3490
  } | {
3488
3491
  kind: "keyed";
3489
3492
  };
3490
- visibility: "visible" | "hidden";
3493
+ visibility: "hidden" | "visible";
3491
3494
  budgets: {
3492
3495
  id: string;
3493
- scope: "project" | "member";
3496
+ scope: "member" | "project";
3494
3497
  period: "day" | "lifetime" | "week";
3495
3498
  limit: number;
3496
3499
  cost: number | {
@@ -3502,7 +3505,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3502
3505
  id: string;
3503
3506
  createdAt: number;
3504
3507
  legacy: boolean;
3505
- lifecycle: "paused" | "active" | "archived";
3508
+ lifecycle: "active" | "paused" | "archived";
3506
3509
  performance?: {
3507
3510
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3508
3511
  maxAgeMs: number;
@@ -3538,7 +3541,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3538
3541
  }>;
3539
3542
  publishBatch: (releases: ReleaseInput[]) => Promise<{
3540
3543
  quest: string;
3541
- runtimeVersion: 2 | 1;
3544
+ runtimeVersion: 1 | 2;
3542
3545
  title: string;
3543
3546
  presentation: {
3544
3547
  quiz?: {
@@ -3677,7 +3680,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3677
3680
  start: number;
3678
3681
  end?: number | undefined;
3679
3682
  };
3680
- enrollment: "none" | "required";
3683
+ enrollment: "required" | "none";
3681
3684
  posts: "after-enrollment" | "since-start";
3682
3685
  historical: "staff" | "automatic" | "claim";
3683
3686
  } | undefined;
@@ -3724,7 +3727,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3724
3727
  actor?: "member" | "staff" | undefined;
3725
3728
  } | {
3726
3729
  kind: "manual";
3727
- input: "none" | "quiz" | "photo";
3730
+ input: "quiz" | "photo" | "none";
3728
3731
  actor?: "member" | "staff" | undefined;
3729
3732
  };
3730
3733
  requires: {
@@ -3739,10 +3742,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3739
3742
  } | {
3740
3743
  kind: "keyed";
3741
3744
  };
3742
- visibility: "visible" | "hidden";
3745
+ visibility: "hidden" | "visible";
3743
3746
  budgets: {
3744
3747
  id: string;
3745
- scope: "project" | "member";
3748
+ scope: "member" | "project";
3746
3749
  period: "day" | "lifetime" | "week";
3747
3750
  limit: number;
3748
3751
  cost: number | {
@@ -3754,7 +3757,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3754
3757
  id: string;
3755
3758
  createdAt: number;
3756
3759
  legacy: boolean;
3757
- lifecycle: "paused" | "active" | "archived";
3760
+ lifecycle: "active" | "paused" | "archived";
3758
3761
  performance?: {
3759
3762
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3760
3763
  maxAgeMs: number;
@@ -3826,7 +3829,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3826
3829
  start: number;
3827
3830
  end?: number | undefined;
3828
3831
  };
3829
- enrollment: "none" | "required";
3832
+ enrollment: "required" | "none";
3830
3833
  posts: "after-enrollment" | "since-start";
3831
3834
  historical: "staff" | "automatic" | "claim";
3832
3835
  } | undefined;
@@ -3873,12 +3876,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3873
3876
  actor?: "member" | "staff" | undefined;
3874
3877
  } | {
3875
3878
  kind: "manual";
3876
- input: "none" | "quiz" | "photo";
3879
+ input: "quiz" | "photo" | "none";
3877
3880
  actor?: "member" | "staff" | undefined;
3878
3881
  };
3879
3882
  availability: {
3880
3883
  kind: "available";
3881
- input: "text" | "url" | "none" | "quiz" | "photo";
3884
+ input: "quiz" | "url" | "text" | "photo" | "none";
3882
3885
  } | {
3883
3886
  kind: "completed";
3884
3887
  } | {
@@ -3916,7 +3919,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3916
3919
  kind: "keyed";
3917
3920
  };
3918
3921
  completionCount: number;
3919
- visibility: "visible" | "hidden";
3922
+ visibility: "hidden" | "visible";
3920
3923
  missing: {
3921
3924
  quest: string;
3922
3925
  title: string;
@@ -3927,7 +3930,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3927
3930
  quest: string;
3928
3931
  member: string;
3929
3932
  evidence: string | null;
3930
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3933
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
3931
3934
  reason: string | null;
3932
3935
  retries: number;
3933
3936
  generation: number;
@@ -3962,17 +3965,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3962
3965
  requestedReview: boolean;
3963
3966
  createdAt: number;
3964
3967
  input?: {
3965
- kind: "text";
3966
- value: string;
3967
- } | {
3968
- kind: "url";
3969
- value: string;
3970
- } | {
3971
3968
  kind: "quiz";
3972
3969
  answers: {
3973
3970
  [k: string]: string;
3974
3971
  };
3975
3972
  release?: string | undefined;
3973
+ } | {
3974
+ kind: "text";
3975
+ value: string;
3976
+ } | {
3977
+ kind: "url";
3978
+ value: string;
3976
3979
  } | undefined;
3977
3980
  } | null;
3978
3981
  key?: string | undefined;
@@ -4354,14 +4357,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4354
4357
  content: {
4355
4358
  performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
4356
4359
  current: {
4357
- state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
4360
+ state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
4358
4361
  reason: string | null;
4359
4362
  contentAttempt: string;
4360
4363
  attempt: string | null;
4361
4364
  reward: {
4362
4365
  attempt: string | null;
4363
4366
  completion: string | null;
4364
- state: "excluded" | "unresolved" | "awarded";
4367
+ state: "awarded" | "excluded" | "unresolved";
4365
4368
  };
4366
4369
  };
4367
4370
  items: {
@@ -4370,7 +4373,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4370
4373
  observation: string;
4371
4374
  observedAt: number;
4372
4375
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
4373
- state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
4376
+ state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
4374
4377
  reason: string | null;
4375
4378
  }[];
4376
4379
  next: number | null;
@@ -4385,12 +4388,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4385
4388
  revision: string;
4386
4389
  observation: string;
4387
4390
  current: boolean;
4388
- state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
4391
+ state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "blocked" | "unavailable";
4389
4392
  reason: string | null;
4390
4393
  reward: {
4391
4394
  attempt: string | null;
4392
4395
  completion: string | null;
4393
- state: "excluded" | "unresolved" | "awarded";
4396
+ state: "awarded" | "excluded" | "unresolved";
4394
4397
  };
4395
4398
  }[];
4396
4399
  next: number | null;
@@ -4400,7 +4403,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4400
4403
  quest: string;
4401
4404
  content: string;
4402
4405
  release: string;
4403
- state: "admitted" | "pending" | "excluded";
4406
+ state: "pending" | "admitted" | "excluded";
4404
4407
  reason: string | null;
4405
4408
  attempt: string | null;
4406
4409
  }[];
@@ -4415,7 +4418,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4415
4418
  quest: string;
4416
4419
  content: string;
4417
4420
  release: string;
4418
- state: "admitted" | "pending" | "excluded";
4421
+ state: "pending" | "admitted" | "excluded";
4419
4422
  reason: string | null;
4420
4423
  attempt: string | null;
4421
4424
  }>;
@@ -4426,7 +4429,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4426
4429
  quest: string;
4427
4430
  member: string;
4428
4431
  evidence: string | null;
4429
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4432
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4430
4433
  reason: string | null;
4431
4434
  retries: number;
4432
4435
  generation: number;
@@ -4461,17 +4464,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4461
4464
  requestedReview: boolean;
4462
4465
  createdAt: number;
4463
4466
  input?: {
4464
- kind: "text";
4465
- value: string;
4466
- } | {
4467
- kind: "url";
4468
- value: string;
4469
- } | {
4470
4467
  kind: "quiz";
4471
4468
  answers: {
4472
4469
  [k: string]: string;
4473
4470
  };
4474
4471
  release?: string | undefined;
4472
+ } | {
4473
+ kind: "text";
4474
+ value: string;
4475
+ } | {
4476
+ kind: "url";
4477
+ value: string;
4475
4478
  } | undefined;
4476
4479
  }>;
4477
4480
  retry: (id: string) => Promise<{
@@ -4480,7 +4483,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4480
4483
  quest: string;
4481
4484
  member: string;
4482
4485
  evidence: string | null;
4483
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4486
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4484
4487
  reason: string | null;
4485
4488
  retries: number;
4486
4489
  generation: number;
@@ -4515,17 +4518,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4515
4518
  requestedReview: boolean;
4516
4519
  createdAt: number;
4517
4520
  input?: {
4518
- kind: "text";
4519
- value: string;
4520
- } | {
4521
- kind: "url";
4522
- value: string;
4523
- } | {
4524
4521
  kind: "quiz";
4525
4522
  answers: {
4526
4523
  [k: string]: string;
4527
4524
  };
4528
4525
  release?: string | undefined;
4526
+ } | {
4527
+ kind: "text";
4528
+ value: string;
4529
+ } | {
4530
+ kind: "url";
4531
+ value: string;
4529
4532
  } | undefined;
4530
4533
  }>;
4531
4534
  decide: (id: string, input: {
@@ -4539,7 +4542,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4539
4542
  quest: string;
4540
4543
  member: string;
4541
4544
  evidence: string | null;
4542
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4545
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4543
4546
  reason: string | null;
4544
4547
  retries: number;
4545
4548
  generation: number;
@@ -4574,17 +4577,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4574
4577
  requestedReview: boolean;
4575
4578
  createdAt: number;
4576
4579
  input?: {
4577
- kind: "text";
4578
- value: string;
4579
- } | {
4580
- kind: "url";
4581
- value: string;
4582
- } | {
4583
4580
  kind: "quiz";
4584
4581
  answers: {
4585
4582
  [k: string]: string;
4586
4583
  };
4587
4584
  release?: string | undefined;
4585
+ } | {
4586
+ kind: "text";
4587
+ value: string;
4588
+ } | {
4589
+ kind: "url";
4590
+ value: string;
4588
4591
  } | undefined;
4589
4592
  }>;
4590
4593
  };