@domino-sdk/relay 1.0.0-next.2 → 1.0.0-next.3

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 CHANGED
@@ -1,4 +1,4 @@
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-JDwq3EVK.js';
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-jVvTh4Ed.js';
2
2
  import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
3
3
  import { createRelayClient, SubmissionStore, ProfileUpdate, ProfileCompletionQuery, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
4
4
  import * as zod from 'zod';
@@ -409,7 +409,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
409
409
  accounts: {
410
410
  id: string;
411
411
  program: string;
412
- kind: "milestone" | "fixed" | "bonus";
412
+ kind: "fixed" | "milestone" | "bonus";
413
413
  balance: string;
414
414
  earned: number;
415
415
  settled: number;
@@ -603,7 +603,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
603
603
  seed: string;
604
604
  };
605
605
  displayName: string | null;
606
- avatarChoice: "default" | "account" | "generated" | "upload";
606
+ avatarChoice: "default" | "account" | "upload" | "generated";
607
607
  avatarProvider: "x" | "discord" | "google" | null;
608
608
  hidden: boolean;
609
609
  locked: boolean;
@@ -633,7 +633,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
633
633
  seed: string;
634
634
  };
635
635
  displayName: string | null;
636
- avatarChoice: "default" | "account" | "generated" | "upload";
636
+ avatarChoice: "default" | "account" | "upload" | "generated";
637
637
  avatarProvider: "x" | "discord" | "google" | null;
638
638
  hidden: boolean;
639
639
  locked: boolean;
@@ -664,7 +664,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
664
664
  seed: string;
665
665
  };
666
666
  displayName: string | null;
667
- avatarChoice: "default" | "account" | "generated" | "upload";
667
+ avatarChoice: "default" | "account" | "upload" | "generated";
668
668
  avatarProvider: "x" | "discord" | "google" | null;
669
669
  hidden: boolean;
670
670
  locked: boolean;
@@ -752,7 +752,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
752
752
  start: number;
753
753
  end?: number | undefined;
754
754
  };
755
- enrollment: "required" | "none";
755
+ enrollment: "none" | "required";
756
756
  posts: "after-enrollment" | "since-start";
757
757
  historical: "staff" | "automatic" | "claim";
758
758
  } | undefined;
@@ -799,12 +799,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
799
799
  actor?: "member" | "staff" | undefined;
800
800
  } | {
801
801
  kind: "manual";
802
- input: "quiz" | "photo" | "none";
802
+ input: "none" | "quiz" | "photo";
803
803
  actor?: "member" | "staff" | undefined;
804
804
  };
805
805
  availability: {
806
806
  kind: "available";
807
- input: "quiz" | "url" | "text" | "photo" | "none";
807
+ input: "text" | "url" | "none" | "quiz" | "photo";
808
808
  } | {
809
809
  kind: "completed";
810
810
  } | {
@@ -842,7 +842,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
842
842
  kind: "keyed";
843
843
  };
844
844
  completionCount: number;
845
- visibility: "hidden" | "visible";
845
+ visibility: "visible" | "hidden";
846
846
  missing: {
847
847
  quest: string;
848
848
  title: string;
@@ -853,7 +853,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
853
853
  quest: string;
854
854
  member: string;
855
855
  evidence: string | null;
856
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
856
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
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: "quiz";
891
- answers: {
892
- [k: string]: string;
893
- };
894
- release?: string | undefined;
895
- } | {
896
890
  kind: "text";
897
891
  value: string;
898
892
  } | {
899
893
  kind: "url";
900
894
  value: string;
895
+ } | {
896
+ kind: "quiz";
897
+ answers: {
898
+ [k: string]: string;
899
+ };
900
+ release?: string | undefined;
901
901
  } | undefined;
902
902
  } | null;
903
903
  release: string;
904
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
905
- lifecycle: "active" | "paused" | "archived";
904
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
905
+ lifecycle: "paused" | "active" | "archived";
906
906
  rewards: ({
907
907
  kind: "points";
908
908
  label: string;
@@ -963,7 +963,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
963
963
  quest: string;
964
964
  member: string;
965
965
  evidence: string | null;
966
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
966
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
967
967
  reason: string | null;
968
968
  retries: number;
969
969
  generation: number;
@@ -997,17 +997,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
997
997
  })[] | null;
998
998
  createdAt: number;
999
999
  input?: {
1000
- kind: "quiz";
1001
- answers: {
1002
- [k: string]: string;
1003
- };
1004
- release?: string | undefined;
1005
- } | {
1006
1000
  kind: "text";
1007
1001
  value: string;
1008
1002
  } | {
1009
1003
  kind: "url";
1010
1004
  value: string;
1005
+ } | {
1006
+ kind: "quiz";
1007
+ answers: {
1008
+ [k: string]: string;
1009
+ };
1010
+ release?: string | undefined;
1011
1011
  } | undefined;
1012
1012
  }>;
1013
1013
  experience: () => Promise<{
@@ -1048,7 +1048,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1048
1048
  start: number;
1049
1049
  end?: number | undefined;
1050
1050
  };
1051
- enrollment: "required" | "none";
1051
+ enrollment: "none" | "required";
1052
1052
  posts: "after-enrollment" | "since-start";
1053
1053
  historical: "staff" | "automatic" | "claim";
1054
1054
  } | undefined;
@@ -1095,12 +1095,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1095
1095
  actor?: "member" | "staff" | undefined;
1096
1096
  } | {
1097
1097
  kind: "manual";
1098
- input: "quiz" | "photo" | "none";
1098
+ input: "none" | "quiz" | "photo";
1099
1099
  actor?: "member" | "staff" | undefined;
1100
1100
  };
1101
1101
  availability: {
1102
1102
  kind: "available";
1103
- input: "quiz" | "url" | "text" | "photo" | "none";
1103
+ input: "text" | "url" | "none" | "quiz" | "photo";
1104
1104
  } | {
1105
1105
  kind: "completed";
1106
1106
  } | {
@@ -1138,7 +1138,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1138
1138
  kind: "keyed";
1139
1139
  };
1140
1140
  completionCount: number;
1141
- visibility: "hidden" | "visible";
1141
+ visibility: "visible" | "hidden";
1142
1142
  missing: {
1143
1143
  quest: string;
1144
1144
  title: string;
@@ -1149,7 +1149,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1149
1149
  quest: string;
1150
1150
  member: string;
1151
1151
  evidence: string | null;
1152
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1152
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1153
1153
  reason: string | null;
1154
1154
  retries: number;
1155
1155
  generation: number;
@@ -1183,22 +1183,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1183
1183
  })[] | null;
1184
1184
  createdAt: number;
1185
1185
  input?: {
1186
- kind: "quiz";
1187
- answers: {
1188
- [k: string]: string;
1189
- };
1190
- release?: string | undefined;
1191
- } | {
1192
1186
  kind: "text";
1193
1187
  value: string;
1194
1188
  } | {
1195
1189
  kind: "url";
1196
1190
  value: string;
1191
+ } | {
1192
+ kind: "quiz";
1193
+ answers: {
1194
+ [k: string]: string;
1195
+ };
1196
+ release?: string | undefined;
1197
1197
  } | undefined;
1198
1198
  } | null;
1199
1199
  release: string;
1200
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1201
- lifecycle: "active" | "paused" | "archived";
1200
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1201
+ lifecycle: "paused" | "active" | "archived";
1202
1202
  rewards: ({
1203
1203
  kind: "points";
1204
1204
  label: string;
@@ -1292,7 +1292,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1292
1292
  start: number;
1293
1293
  end?: number | undefined;
1294
1294
  };
1295
- enrollment: "required" | "none";
1295
+ enrollment: "none" | "required";
1296
1296
  posts: "after-enrollment" | "since-start";
1297
1297
  historical: "staff" | "automatic" | "claim";
1298
1298
  } | undefined;
@@ -1339,12 +1339,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1339
1339
  actor?: "member" | "staff" | undefined;
1340
1340
  } | {
1341
1341
  kind: "manual";
1342
- input: "quiz" | "photo" | "none";
1342
+ input: "none" | "quiz" | "photo";
1343
1343
  actor?: "member" | "staff" | undefined;
1344
1344
  };
1345
1345
  availability: {
1346
1346
  kind: "available";
1347
- input: "quiz" | "url" | "text" | "photo" | "none";
1347
+ input: "text" | "url" | "none" | "quiz" | "photo";
1348
1348
  } | {
1349
1349
  kind: "completed";
1350
1350
  } | {
@@ -1382,7 +1382,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1382
1382
  kind: "keyed";
1383
1383
  };
1384
1384
  completionCount: number;
1385
- visibility: "hidden" | "visible";
1385
+ visibility: "visible" | "hidden";
1386
1386
  missing: {
1387
1387
  quest: string;
1388
1388
  title: string;
@@ -1393,7 +1393,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1393
1393
  quest: string;
1394
1394
  member: string;
1395
1395
  evidence: string | null;
1396
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1396
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1397
1397
  reason: string | null;
1398
1398
  retries: number;
1399
1399
  generation: number;
@@ -1427,22 +1427,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1427
1427
  })[] | null;
1428
1428
  createdAt: number;
1429
1429
  input?: {
1430
- kind: "quiz";
1431
- answers: {
1432
- [k: string]: string;
1433
- };
1434
- release?: string | undefined;
1435
- } | {
1436
1430
  kind: "text";
1437
1431
  value: string;
1438
1432
  } | {
1439
1433
  kind: "url";
1440
1434
  value: string;
1435
+ } | {
1436
+ kind: "quiz";
1437
+ answers: {
1438
+ [k: string]: string;
1439
+ };
1440
+ release?: string | undefined;
1441
1441
  } | undefined;
1442
1442
  } | null;
1443
1443
  release: string;
1444
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1445
- lifecycle: "active" | "paused" | "archived";
1444
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1445
+ lifecycle: "paused" | "active" | "archived";
1446
1446
  rewards: ({
1447
1447
  kind: "points";
1448
1448
  label: string;
@@ -1539,7 +1539,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1539
1539
  start: number;
1540
1540
  end?: number | undefined;
1541
1541
  };
1542
- enrollment: "required" | "none";
1542
+ enrollment: "none" | "required";
1543
1543
  posts: "after-enrollment" | "since-start";
1544
1544
  historical: "staff" | "automatic" | "claim";
1545
1545
  } | undefined;
@@ -1586,12 +1586,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1586
1586
  actor?: "member" | "staff" | undefined;
1587
1587
  } | {
1588
1588
  kind: "manual";
1589
- input: "quiz" | "photo" | "none";
1589
+ input: "none" | "quiz" | "photo";
1590
1590
  actor?: "member" | "staff" | undefined;
1591
1591
  };
1592
1592
  availability: {
1593
1593
  kind: "available";
1594
- input: "quiz" | "url" | "text" | "photo" | "none";
1594
+ input: "text" | "url" | "none" | "quiz" | "photo";
1595
1595
  } | {
1596
1596
  kind: "completed";
1597
1597
  } | {
@@ -1629,7 +1629,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1629
1629
  kind: "keyed";
1630
1630
  };
1631
1631
  completionCount: number;
1632
- visibility: "hidden" | "visible";
1632
+ visibility: "visible" | "hidden";
1633
1633
  missing: {
1634
1634
  quest: string;
1635
1635
  title: string;
@@ -1640,7 +1640,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1640
1640
  quest: string;
1641
1641
  member: string;
1642
1642
  evidence: string | null;
1643
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1643
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1644
1644
  reason: string | null;
1645
1645
  retries: number;
1646
1646
  generation: number;
@@ -1674,22 +1674,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1674
1674
  })[] | null;
1675
1675
  createdAt: number;
1676
1676
  input?: {
1677
- kind: "quiz";
1678
- answers: {
1679
- [k: string]: string;
1680
- };
1681
- release?: string | undefined;
1682
- } | {
1683
1677
  kind: "text";
1684
1678
  value: string;
1685
1679
  } | {
1686
1680
  kind: "url";
1687
1681
  value: string;
1682
+ } | {
1683
+ kind: "quiz";
1684
+ answers: {
1685
+ [k: string]: string;
1686
+ };
1687
+ release?: string | undefined;
1688
1688
  } | undefined;
1689
1689
  } | null;
1690
1690
  release: string;
1691
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1692
- lifecycle: "active" | "paused" | "archived";
1691
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1692
+ lifecycle: "paused" | "active" | "archived";
1693
1693
  rewards: ({
1694
1694
  kind: "points";
1695
1695
  label: string;
@@ -1991,7 +1991,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1991
1991
  quest: string;
1992
1992
  member: string;
1993
1993
  evidence: string | null;
1994
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1994
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1995
1995
  reason: string | null;
1996
1996
  retries: number;
1997
1997
  generation: number;
@@ -2025,17 +2025,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2025
2025
  })[] | null;
2026
2026
  createdAt: number;
2027
2027
  input?: {
2028
- kind: "quiz";
2029
- answers: {
2030
- [k: string]: string;
2031
- };
2032
- release?: string | undefined;
2033
- } | {
2034
2028
  kind: "text";
2035
2029
  value: string;
2036
2030
  } | {
2037
2031
  kind: "url";
2038
2032
  value: string;
2033
+ } | {
2034
+ kind: "quiz";
2035
+ answers: {
2036
+ [k: string]: string;
2037
+ };
2038
+ release?: string | undefined;
2039
2039
  } | undefined;
2040
2040
  }>;
2041
2041
  progress: () => Promise<{
@@ -2076,7 +2076,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2076
2076
  start: number;
2077
2077
  end?: number | undefined;
2078
2078
  };
2079
- enrollment: "required" | "none";
2079
+ enrollment: "none" | "required";
2080
2080
  posts: "after-enrollment" | "since-start";
2081
2081
  historical: "staff" | "automatic" | "claim";
2082
2082
  } | undefined;
@@ -2123,12 +2123,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2123
2123
  actor?: "member" | "staff" | undefined;
2124
2124
  } | {
2125
2125
  kind: "manual";
2126
- input: "quiz" | "photo" | "none";
2126
+ input: "none" | "quiz" | "photo";
2127
2127
  actor?: "member" | "staff" | undefined;
2128
2128
  };
2129
2129
  availability: {
2130
2130
  kind: "available";
2131
- input: "quiz" | "url" | "text" | "photo" | "none";
2131
+ input: "text" | "url" | "none" | "quiz" | "photo";
2132
2132
  } | {
2133
2133
  kind: "completed";
2134
2134
  } | {
@@ -2166,7 +2166,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2166
2166
  kind: "keyed";
2167
2167
  };
2168
2168
  completionCount: number;
2169
- visibility: "hidden" | "visible";
2169
+ visibility: "visible" | "hidden";
2170
2170
  missing: {
2171
2171
  quest: string;
2172
2172
  title: string;
@@ -2177,7 +2177,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2177
2177
  quest: string;
2178
2178
  member: string;
2179
2179
  evidence: string | null;
2180
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2180
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2181
2181
  reason: string | null;
2182
2182
  retries: number;
2183
2183
  generation: number;
@@ -2211,17 +2211,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2211
2211
  })[] | null;
2212
2212
  createdAt: number;
2213
2213
  input?: {
2214
- kind: "quiz";
2215
- answers: {
2216
- [k: string]: string;
2217
- };
2218
- release?: string | undefined;
2219
- } | {
2220
2214
  kind: "text";
2221
2215
  value: string;
2222
2216
  } | {
2223
2217
  kind: "url";
2224
2218
  value: string;
2219
+ } | {
2220
+ kind: "quiz";
2221
+ answers: {
2222
+ [k: string]: string;
2223
+ };
2224
+ release?: string | undefined;
2225
2225
  } | undefined;
2226
2226
  } | null;
2227
2227
  key?: string | undefined;
@@ -2360,7 +2360,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2360
2360
  quest: string;
2361
2361
  member: string;
2362
2362
  evidence: string | null;
2363
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2363
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2364
2364
  reason: string | null;
2365
2365
  retries: number;
2366
2366
  generation: number;
@@ -2394,17 +2394,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2394
2394
  })[] | null;
2395
2395
  createdAt: number;
2396
2396
  input?: {
2397
- kind: "quiz";
2398
- answers: {
2399
- [k: string]: string;
2400
- };
2401
- release?: string | undefined;
2402
- } | {
2403
2397
  kind: "text";
2404
2398
  value: string;
2405
2399
  } | {
2406
2400
  kind: "url";
2407
2401
  value: string;
2402
+ } | {
2403
+ kind: "quiz";
2404
+ answers: {
2405
+ [k: string]: string;
2406
+ };
2407
+ release?: string | undefined;
2408
2408
  } | undefined;
2409
2409
  }>;
2410
2410
  upload: (file: File) => Promise<{
@@ -2426,7 +2426,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2426
2426
  code: string;
2427
2427
  definition: {
2428
2428
  quest: string;
2429
- runtimeVersion: 1 | 2;
2429
+ runtimeVersion: 2 | 1;
2430
2430
  title: string;
2431
2431
  presentation: {
2432
2432
  quiz?: {
@@ -2565,7 +2565,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2565
2565
  start: number;
2566
2566
  end?: number | undefined;
2567
2567
  };
2568
- enrollment: "required" | "none";
2568
+ enrollment: "none" | "required";
2569
2569
  posts: "after-enrollment" | "since-start";
2570
2570
  historical: "staff" | "automatic" | "claim";
2571
2571
  } | undefined;
@@ -2612,7 +2612,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2612
2612
  actor?: "member" | "staff" | undefined;
2613
2613
  } | {
2614
2614
  kind: "manual";
2615
- input: "quiz" | "photo" | "none";
2615
+ input: "none" | "quiz" | "photo";
2616
2616
  actor?: "member" | "staff" | undefined;
2617
2617
  };
2618
2618
  requires: {
@@ -2627,10 +2627,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2627
2627
  } | {
2628
2628
  kind: "keyed";
2629
2629
  };
2630
- visibility: "hidden" | "visible";
2630
+ visibility: "visible" | "hidden";
2631
2631
  budgets: {
2632
2632
  id: string;
2633
- scope: "member" | "project";
2633
+ scope: "project" | "member";
2634
2634
  period: "day" | "lifetime" | "week";
2635
2635
  limit: number;
2636
2636
  cost: number | {
@@ -2650,7 +2650,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2650
2650
  code: string;
2651
2651
  definition: {
2652
2652
  quest: string;
2653
- runtimeVersion: 1 | 2;
2653
+ runtimeVersion: 2 | 1;
2654
2654
  title: string;
2655
2655
  presentation: {
2656
2656
  quiz?: {
@@ -2789,7 +2789,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2789
2789
  start: number;
2790
2790
  end?: number | undefined;
2791
2791
  };
2792
- enrollment: "required" | "none";
2792
+ enrollment: "none" | "required";
2793
2793
  posts: "after-enrollment" | "since-start";
2794
2794
  historical: "staff" | "automatic" | "claim";
2795
2795
  } | undefined;
@@ -2836,7 +2836,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2836
2836
  actor?: "member" | "staff" | undefined;
2837
2837
  } | {
2838
2838
  kind: "manual";
2839
- input: "quiz" | "photo" | "none";
2839
+ input: "none" | "quiz" | "photo";
2840
2840
  actor?: "member" | "staff" | undefined;
2841
2841
  };
2842
2842
  requires: {
@@ -2851,10 +2851,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2851
2851
  } | {
2852
2852
  kind: "keyed";
2853
2853
  };
2854
- visibility: "hidden" | "visible";
2854
+ visibility: "visible" | "hidden";
2855
2855
  budgets: {
2856
2856
  id: string;
2857
- scope: "member" | "project";
2857
+ scope: "project" | "member";
2858
2858
  period: "day" | "lifetime" | "week";
2859
2859
  limit: number;
2860
2860
  cost: number | {
@@ -2873,7 +2873,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2873
2873
  snapshot: () => Promise<{
2874
2874
  releases: {
2875
2875
  quest: string;
2876
- runtimeVersion: 1 | 2;
2876
+ runtimeVersion: 2 | 1;
2877
2877
  title: string;
2878
2878
  presentation: {
2879
2879
  quiz?: {
@@ -3012,7 +3012,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3012
3012
  start: number;
3013
3013
  end?: number | undefined;
3014
3014
  };
3015
- enrollment: "required" | "none";
3015
+ enrollment: "none" | "required";
3016
3016
  posts: "after-enrollment" | "since-start";
3017
3017
  historical: "staff" | "automatic" | "claim";
3018
3018
  } | undefined;
@@ -3059,7 +3059,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3059
3059
  actor?: "member" | "staff" | undefined;
3060
3060
  } | {
3061
3061
  kind: "manual";
3062
- input: "quiz" | "photo" | "none";
3062
+ input: "none" | "quiz" | "photo";
3063
3063
  actor?: "member" | "staff" | undefined;
3064
3064
  };
3065
3065
  requires: {
@@ -3074,10 +3074,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3074
3074
  } | {
3075
3075
  kind: "keyed";
3076
3076
  };
3077
- visibility: "hidden" | "visible";
3077
+ visibility: "visible" | "hidden";
3078
3078
  budgets: {
3079
3079
  id: string;
3080
- scope: "member" | "project";
3080
+ scope: "project" | "member";
3081
3081
  period: "day" | "lifetime" | "week";
3082
3082
  limit: number;
3083
3083
  cost: number | {
@@ -3089,7 +3089,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3089
3089
  id: string;
3090
3090
  createdAt: number;
3091
3091
  legacy: boolean;
3092
- lifecycle: "active" | "paused" | "archived";
3092
+ lifecycle: "paused" | "active" | "archived";
3093
3093
  performance?: {
3094
3094
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3095
3095
  maxAgeMs: number;
@@ -3212,7 +3212,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3212
3212
  quest: string;
3213
3213
  member: string;
3214
3214
  evidence: string | null;
3215
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
3215
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3216
3216
  reason: string | null;
3217
3217
  retries: number;
3218
3218
  generation: number;
@@ -3246,17 +3246,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3246
3246
  })[] | null;
3247
3247
  createdAt: number;
3248
3248
  input?: {
3249
- kind: "quiz";
3250
- answers: {
3251
- [k: string]: string;
3252
- };
3253
- release?: string | undefined;
3254
- } | {
3255
3249
  kind: "text";
3256
3250
  value: string;
3257
3251
  } | {
3258
3252
  kind: "url";
3259
3253
  value: string;
3254
+ } | {
3255
+ kind: "quiz";
3256
+ answers: {
3257
+ [k: string]: string;
3258
+ };
3259
+ release?: string | undefined;
3260
3260
  } | undefined;
3261
3261
  }[];
3262
3262
  balances: {
@@ -3277,7 +3277,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3277
3277
  }>;
3278
3278
  publish: (release: ReleaseInput) => Promise<{
3279
3279
  quest: string;
3280
- runtimeVersion: 1 | 2;
3280
+ runtimeVersion: 2 | 1;
3281
3281
  title: string;
3282
3282
  presentation: {
3283
3283
  quiz?: {
@@ -3416,7 +3416,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3416
3416
  start: number;
3417
3417
  end?: number | undefined;
3418
3418
  };
3419
- enrollment: "required" | "none";
3419
+ enrollment: "none" | "required";
3420
3420
  posts: "after-enrollment" | "since-start";
3421
3421
  historical: "staff" | "automatic" | "claim";
3422
3422
  } | undefined;
@@ -3463,7 +3463,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3463
3463
  actor?: "member" | "staff" | undefined;
3464
3464
  } | {
3465
3465
  kind: "manual";
3466
- input: "quiz" | "photo" | "none";
3466
+ input: "none" | "quiz" | "photo";
3467
3467
  actor?: "member" | "staff" | undefined;
3468
3468
  };
3469
3469
  requires: {
@@ -3478,10 +3478,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3478
3478
  } | {
3479
3479
  kind: "keyed";
3480
3480
  };
3481
- visibility: "hidden" | "visible";
3481
+ visibility: "visible" | "hidden";
3482
3482
  budgets: {
3483
3483
  id: string;
3484
- scope: "member" | "project";
3484
+ scope: "project" | "member";
3485
3485
  period: "day" | "lifetime" | "week";
3486
3486
  limit: number;
3487
3487
  cost: number | {
@@ -3493,7 +3493,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3493
3493
  id: string;
3494
3494
  createdAt: number;
3495
3495
  legacy: boolean;
3496
- lifecycle: "active" | "paused" | "archived";
3496
+ lifecycle: "paused" | "active" | "archived";
3497
3497
  performance?: {
3498
3498
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3499
3499
  maxAgeMs: number;
@@ -3529,7 +3529,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3529
3529
  }>;
3530
3530
  publishBatch: (releases: ReleaseInput[]) => Promise<{
3531
3531
  quest: string;
3532
- runtimeVersion: 1 | 2;
3532
+ runtimeVersion: 2 | 1;
3533
3533
  title: string;
3534
3534
  presentation: {
3535
3535
  quiz?: {
@@ -3668,7 +3668,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3668
3668
  start: number;
3669
3669
  end?: number | undefined;
3670
3670
  };
3671
- enrollment: "required" | "none";
3671
+ enrollment: "none" | "required";
3672
3672
  posts: "after-enrollment" | "since-start";
3673
3673
  historical: "staff" | "automatic" | "claim";
3674
3674
  } | undefined;
@@ -3715,7 +3715,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3715
3715
  actor?: "member" | "staff" | undefined;
3716
3716
  } | {
3717
3717
  kind: "manual";
3718
- input: "quiz" | "photo" | "none";
3718
+ input: "none" | "quiz" | "photo";
3719
3719
  actor?: "member" | "staff" | undefined;
3720
3720
  };
3721
3721
  requires: {
@@ -3730,10 +3730,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3730
3730
  } | {
3731
3731
  kind: "keyed";
3732
3732
  };
3733
- visibility: "hidden" | "visible";
3733
+ visibility: "visible" | "hidden";
3734
3734
  budgets: {
3735
3735
  id: string;
3736
- scope: "member" | "project";
3736
+ scope: "project" | "member";
3737
3737
  period: "day" | "lifetime" | "week";
3738
3738
  limit: number;
3739
3739
  cost: number | {
@@ -3745,7 +3745,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3745
3745
  id: string;
3746
3746
  createdAt: number;
3747
3747
  legacy: boolean;
3748
- lifecycle: "active" | "paused" | "archived";
3748
+ lifecycle: "paused" | "active" | "archived";
3749
3749
  performance?: {
3750
3750
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3751
3751
  maxAgeMs: number;
@@ -3817,7 +3817,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3817
3817
  start: number;
3818
3818
  end?: number | undefined;
3819
3819
  };
3820
- enrollment: "required" | "none";
3820
+ enrollment: "none" | "required";
3821
3821
  posts: "after-enrollment" | "since-start";
3822
3822
  historical: "staff" | "automatic" | "claim";
3823
3823
  } | undefined;
@@ -3864,12 +3864,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3864
3864
  actor?: "member" | "staff" | undefined;
3865
3865
  } | {
3866
3866
  kind: "manual";
3867
- input: "quiz" | "photo" | "none";
3867
+ input: "none" | "quiz" | "photo";
3868
3868
  actor?: "member" | "staff" | undefined;
3869
3869
  };
3870
3870
  availability: {
3871
3871
  kind: "available";
3872
- input: "quiz" | "url" | "text" | "photo" | "none";
3872
+ input: "text" | "url" | "none" | "quiz" | "photo";
3873
3873
  } | {
3874
3874
  kind: "completed";
3875
3875
  } | {
@@ -3907,7 +3907,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3907
3907
  kind: "keyed";
3908
3908
  };
3909
3909
  completionCount: number;
3910
- visibility: "hidden" | "visible";
3910
+ visibility: "visible" | "hidden";
3911
3911
  missing: {
3912
3912
  quest: string;
3913
3913
  title: string;
@@ -3918,7 +3918,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3918
3918
  quest: string;
3919
3919
  member: string;
3920
3920
  evidence: string | null;
3921
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
3921
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3922
3922
  reason: string | null;
3923
3923
  retries: number;
3924
3924
  generation: number;
@@ -3952,17 +3952,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3952
3952
  })[] | null;
3953
3953
  createdAt: number;
3954
3954
  input?: {
3955
- kind: "quiz";
3956
- answers: {
3957
- [k: string]: string;
3958
- };
3959
- release?: string | undefined;
3960
- } | {
3961
3955
  kind: "text";
3962
3956
  value: string;
3963
3957
  } | {
3964
3958
  kind: "url";
3965
3959
  value: string;
3960
+ } | {
3961
+ kind: "quiz";
3962
+ answers: {
3963
+ [k: string]: string;
3964
+ };
3965
+ release?: string | undefined;
3966
3966
  } | undefined;
3967
3967
  } | null;
3968
3968
  key?: string | undefined;
@@ -4344,14 +4344,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4344
4344
  content: {
4345
4345
  performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
4346
4346
  current: {
4347
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
4347
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
4348
4348
  reason: string | null;
4349
4349
  contentAttempt: string;
4350
4350
  attempt: string | null;
4351
4351
  reward: {
4352
4352
  attempt: string | null;
4353
4353
  completion: string | null;
4354
- state: "awarded" | "excluded" | "unresolved";
4354
+ state: "excluded" | "unresolved" | "awarded";
4355
4355
  };
4356
4356
  };
4357
4357
  items: {
@@ -4360,7 +4360,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4360
4360
  observation: string;
4361
4361
  observedAt: number;
4362
4362
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
4363
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
4363
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
4364
4364
  reason: string | null;
4365
4365
  }[];
4366
4366
  next: number | null;
@@ -4375,12 +4375,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4375
4375
  revision: string;
4376
4376
  observation: string;
4377
4377
  current: boolean;
4378
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "blocked" | "unavailable";
4378
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
4379
4379
  reason: string | null;
4380
4380
  reward: {
4381
4381
  attempt: string | null;
4382
4382
  completion: string | null;
4383
- state: "awarded" | "excluded" | "unresolved";
4383
+ state: "excluded" | "unresolved" | "awarded";
4384
4384
  };
4385
4385
  }[];
4386
4386
  next: number | null;
@@ -4390,7 +4390,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4390
4390
  quest: string;
4391
4391
  content: string;
4392
4392
  release: string;
4393
- state: "pending" | "admitted" | "excluded";
4393
+ state: "admitted" | "pending" | "excluded";
4394
4394
  reason: string | null;
4395
4395
  attempt: string | null;
4396
4396
  }[];
@@ -4405,7 +4405,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4405
4405
  quest: string;
4406
4406
  content: string;
4407
4407
  release: string;
4408
- state: "pending" | "admitted" | "excluded";
4408
+ state: "admitted" | "pending" | "excluded";
4409
4409
  reason: string | null;
4410
4410
  attempt: string | null;
4411
4411
  }>;
@@ -4416,7 +4416,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4416
4416
  quest: string;
4417
4417
  member: string;
4418
4418
  evidence: string | null;
4419
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4419
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4420
4420
  reason: string | null;
4421
4421
  retries: number;
4422
4422
  generation: number;
@@ -4450,17 +4450,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4450
4450
  })[] | null;
4451
4451
  createdAt: number;
4452
4452
  input?: {
4453
- kind: "quiz";
4454
- answers: {
4455
- [k: string]: string;
4456
- };
4457
- release?: string | undefined;
4458
- } | {
4459
4453
  kind: "text";
4460
4454
  value: string;
4461
4455
  } | {
4462
4456
  kind: "url";
4463
4457
  value: string;
4458
+ } | {
4459
+ kind: "quiz";
4460
+ answers: {
4461
+ [k: string]: string;
4462
+ };
4463
+ release?: string | undefined;
4464
4464
  } | undefined;
4465
4465
  }>;
4466
4466
  retry: (id: string) => Promise<{
@@ -4469,7 +4469,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4469
4469
  quest: string;
4470
4470
  member: string;
4471
4471
  evidence: string | null;
4472
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4472
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4473
4473
  reason: string | null;
4474
4474
  retries: number;
4475
4475
  generation: number;
@@ -4503,17 +4503,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4503
4503
  })[] | null;
4504
4504
  createdAt: number;
4505
4505
  input?: {
4506
- kind: "quiz";
4507
- answers: {
4508
- [k: string]: string;
4509
- };
4510
- release?: string | undefined;
4511
- } | {
4512
4506
  kind: "text";
4513
4507
  value: string;
4514
4508
  } | {
4515
4509
  kind: "url";
4516
4510
  value: string;
4511
+ } | {
4512
+ kind: "quiz";
4513
+ answers: {
4514
+ [k: string]: string;
4515
+ };
4516
+ release?: string | undefined;
4517
4517
  } | undefined;
4518
4518
  }>;
4519
4519
  decide: (id: string, input: {
@@ -4527,7 +4527,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4527
4527
  quest: string;
4528
4528
  member: string;
4529
4529
  evidence: string | null;
4530
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4530
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4531
4531
  reason: string | null;
4532
4532
  retries: number;
4533
4533
  generation: number;
@@ -4561,17 +4561,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4561
4561
  })[] | null;
4562
4562
  createdAt: number;
4563
4563
  input?: {
4564
- kind: "quiz";
4565
- answers: {
4566
- [k: string]: string;
4567
- };
4568
- release?: string | undefined;
4569
- } | {
4570
4564
  kind: "text";
4571
4565
  value: string;
4572
4566
  } | {
4573
4567
  kind: "url";
4574
4568
  value: string;
4569
+ } | {
4570
+ kind: "quiz";
4571
+ answers: {
4572
+ [k: string]: string;
4573
+ };
4574
+ release?: string | undefined;
4575
4575
  } | undefined;
4576
4576
  }>;
4577
4577
  };