@domino-sdk/relay 0.25.1 → 0.26.0

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
@@ -284,7 +284,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
284
284
  accounts: {
285
285
  id: string;
286
286
  program: string;
287
- kind: "milestone" | "fixed" | "bonus";
287
+ kind: "fixed" | "milestone" | "bonus";
288
288
  balance: string;
289
289
  earned: number;
290
290
  settled: number;
@@ -626,7 +626,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
626
626
  start: number;
627
627
  end?: number | undefined;
628
628
  };
629
- enrollment: "required" | "none";
629
+ enrollment: "none" | "required";
630
630
  posts: "after-enrollment" | "since-start";
631
631
  historical: "staff" | "automatic" | "claim";
632
632
  } | undefined;
@@ -654,12 +654,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
654
654
  actor?: "member" | "staff" | undefined;
655
655
  } | {
656
656
  kind: "manual";
657
- input: "quiz" | "photo" | "none";
657
+ input: "none" | "quiz" | "photo";
658
658
  actor?: "member" | "staff" | undefined;
659
659
  };
660
660
  availability: {
661
661
  kind: "available";
662
- input: "quiz" | "url" | "text" | "photo" | "none";
662
+ input: "text" | "url" | "none" | "quiz" | "photo";
663
663
  } | {
664
664
  kind: "completed";
665
665
  } | {
@@ -697,7 +697,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
697
697
  kind: "keyed";
698
698
  };
699
699
  completionCount: number;
700
- visibility: "hidden" | "visible";
700
+ visibility: "visible" | "hidden";
701
701
  missing: {
702
702
  quest: string;
703
703
  title: string;
@@ -708,7 +708,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
708
708
  quest: string;
709
709
  member: string;
710
710
  evidence: string | null;
711
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
711
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
712
712
  reason: string | null;
713
713
  retries: number;
714
714
  generation: number;
@@ -742,22 +742,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
742
742
  })[] | null;
743
743
  createdAt: number;
744
744
  input?: {
745
- kind: "quiz";
746
- answers: {
747
- [k: string]: string;
748
- };
749
- release?: string | undefined;
750
- } | {
751
745
  kind: "text";
752
746
  value: string;
753
747
  } | {
754
748
  kind: "url";
755
749
  value: string;
750
+ } | {
751
+ kind: "quiz";
752
+ answers: {
753
+ [k: string]: string;
754
+ };
755
+ release?: string | undefined;
756
756
  } | undefined;
757
757
  } | null;
758
758
  release: string;
759
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
760
- lifecycle: "active" | "paused" | "archived";
759
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
760
+ lifecycle: "paused" | "active" | "archived";
761
761
  rewards: ({
762
762
  kind: "points";
763
763
  label: string;
@@ -818,7 +818,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
818
818
  quest: string;
819
819
  member: string;
820
820
  evidence: string | null;
821
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
821
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
822
822
  reason: string | null;
823
823
  retries: number;
824
824
  generation: number;
@@ -852,17 +852,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
852
852
  })[] | null;
853
853
  createdAt: number;
854
854
  input?: {
855
- kind: "quiz";
856
- answers: {
857
- [k: string]: string;
858
- };
859
- release?: string | undefined;
860
- } | {
861
855
  kind: "text";
862
856
  value: string;
863
857
  } | {
864
858
  kind: "url";
865
859
  value: string;
860
+ } | {
861
+ kind: "quiz";
862
+ answers: {
863
+ [k: string]: string;
864
+ };
865
+ release?: string | undefined;
866
866
  } | undefined;
867
867
  }>;
868
868
  experience: () => Promise<{
@@ -903,7 +903,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
903
903
  start: number;
904
904
  end?: number | undefined;
905
905
  };
906
- enrollment: "required" | "none";
906
+ enrollment: "none" | "required";
907
907
  posts: "after-enrollment" | "since-start";
908
908
  historical: "staff" | "automatic" | "claim";
909
909
  } | undefined;
@@ -931,12 +931,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
931
931
  actor?: "member" | "staff" | undefined;
932
932
  } | {
933
933
  kind: "manual";
934
- input: "quiz" | "photo" | "none";
934
+ input: "none" | "quiz" | "photo";
935
935
  actor?: "member" | "staff" | undefined;
936
936
  };
937
937
  availability: {
938
938
  kind: "available";
939
- input: "quiz" | "url" | "text" | "photo" | "none";
939
+ input: "text" | "url" | "none" | "quiz" | "photo";
940
940
  } | {
941
941
  kind: "completed";
942
942
  } | {
@@ -974,7 +974,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
974
974
  kind: "keyed";
975
975
  };
976
976
  completionCount: number;
977
- visibility: "hidden" | "visible";
977
+ visibility: "visible" | "hidden";
978
978
  missing: {
979
979
  quest: string;
980
980
  title: string;
@@ -985,7 +985,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
985
985
  quest: string;
986
986
  member: string;
987
987
  evidence: string | null;
988
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
988
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
989
989
  reason: string | null;
990
990
  retries: number;
991
991
  generation: number;
@@ -1019,22 +1019,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1019
1019
  })[] | null;
1020
1020
  createdAt: number;
1021
1021
  input?: {
1022
- kind: "quiz";
1023
- answers: {
1024
- [k: string]: string;
1025
- };
1026
- release?: string | undefined;
1027
- } | {
1028
1022
  kind: "text";
1029
1023
  value: string;
1030
1024
  } | {
1031
1025
  kind: "url";
1032
1026
  value: string;
1027
+ } | {
1028
+ kind: "quiz";
1029
+ answers: {
1030
+ [k: string]: string;
1031
+ };
1032
+ release?: string | undefined;
1033
1033
  } | undefined;
1034
1034
  } | null;
1035
1035
  release: string;
1036
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1037
- lifecycle: "active" | "paused" | "archived";
1036
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1037
+ lifecycle: "paused" | "active" | "archived";
1038
1038
  rewards: ({
1039
1039
  kind: "points";
1040
1040
  label: string;
@@ -1128,7 +1128,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1128
1128
  start: number;
1129
1129
  end?: number | undefined;
1130
1130
  };
1131
- enrollment: "required" | "none";
1131
+ enrollment: "none" | "required";
1132
1132
  posts: "after-enrollment" | "since-start";
1133
1133
  historical: "staff" | "automatic" | "claim";
1134
1134
  } | undefined;
@@ -1156,12 +1156,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1156
1156
  actor?: "member" | "staff" | undefined;
1157
1157
  } | {
1158
1158
  kind: "manual";
1159
- input: "quiz" | "photo" | "none";
1159
+ input: "none" | "quiz" | "photo";
1160
1160
  actor?: "member" | "staff" | undefined;
1161
1161
  };
1162
1162
  availability: {
1163
1163
  kind: "available";
1164
- input: "quiz" | "url" | "text" | "photo" | "none";
1164
+ input: "text" | "url" | "none" | "quiz" | "photo";
1165
1165
  } | {
1166
1166
  kind: "completed";
1167
1167
  } | {
@@ -1199,7 +1199,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1199
1199
  kind: "keyed";
1200
1200
  };
1201
1201
  completionCount: number;
1202
- visibility: "hidden" | "visible";
1202
+ visibility: "visible" | "hidden";
1203
1203
  missing: {
1204
1204
  quest: string;
1205
1205
  title: string;
@@ -1210,7 +1210,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1210
1210
  quest: string;
1211
1211
  member: string;
1212
1212
  evidence: string | null;
1213
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1213
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1214
1214
  reason: string | null;
1215
1215
  retries: number;
1216
1216
  generation: number;
@@ -1244,22 +1244,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1244
1244
  })[] | null;
1245
1245
  createdAt: number;
1246
1246
  input?: {
1247
- kind: "quiz";
1248
- answers: {
1249
- [k: string]: string;
1250
- };
1251
- release?: string | undefined;
1252
- } | {
1253
1247
  kind: "text";
1254
1248
  value: string;
1255
1249
  } | {
1256
1250
  kind: "url";
1257
1251
  value: string;
1252
+ } | {
1253
+ kind: "quiz";
1254
+ answers: {
1255
+ [k: string]: string;
1256
+ };
1257
+ release?: string | undefined;
1258
1258
  } | undefined;
1259
1259
  } | null;
1260
1260
  release: string;
1261
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1262
- lifecycle: "active" | "paused" | "archived";
1261
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1262
+ lifecycle: "paused" | "active" | "archived";
1263
1263
  rewards: ({
1264
1264
  kind: "points";
1265
1265
  label: string;
@@ -1356,7 +1356,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1356
1356
  start: number;
1357
1357
  end?: number | undefined;
1358
1358
  };
1359
- enrollment: "required" | "none";
1359
+ enrollment: "none" | "required";
1360
1360
  posts: "after-enrollment" | "since-start";
1361
1361
  historical: "staff" | "automatic" | "claim";
1362
1362
  } | undefined;
@@ -1384,12 +1384,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1384
1384
  actor?: "member" | "staff" | undefined;
1385
1385
  } | {
1386
1386
  kind: "manual";
1387
- input: "quiz" | "photo" | "none";
1387
+ input: "none" | "quiz" | "photo";
1388
1388
  actor?: "member" | "staff" | undefined;
1389
1389
  };
1390
1390
  availability: {
1391
1391
  kind: "available";
1392
- input: "quiz" | "url" | "text" | "photo" | "none";
1392
+ input: "text" | "url" | "none" | "quiz" | "photo";
1393
1393
  } | {
1394
1394
  kind: "completed";
1395
1395
  } | {
@@ -1427,7 +1427,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1427
1427
  kind: "keyed";
1428
1428
  };
1429
1429
  completionCount: number;
1430
- visibility: "hidden" | "visible";
1430
+ visibility: "visible" | "hidden";
1431
1431
  missing: {
1432
1432
  quest: string;
1433
1433
  title: string;
@@ -1438,7 +1438,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1438
1438
  quest: string;
1439
1439
  member: string;
1440
1440
  evidence: string | null;
1441
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1441
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1442
1442
  reason: string | null;
1443
1443
  retries: number;
1444
1444
  generation: number;
@@ -1472,22 +1472,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1472
1472
  })[] | null;
1473
1473
  createdAt: number;
1474
1474
  input?: {
1475
- kind: "quiz";
1476
- answers: {
1477
- [k: string]: string;
1478
- };
1479
- release?: string | undefined;
1480
- } | {
1481
1475
  kind: "text";
1482
1476
  value: string;
1483
1477
  } | {
1484
1478
  kind: "url";
1485
1479
  value: string;
1480
+ } | {
1481
+ kind: "quiz";
1482
+ answers: {
1483
+ [k: string]: string;
1484
+ };
1485
+ release?: string | undefined;
1486
1486
  } | undefined;
1487
1487
  } | null;
1488
1488
  release: string;
1489
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1490
- lifecycle: "active" | "paused" | "archived";
1489
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1490
+ lifecycle: "paused" | "active" | "archived";
1491
1491
  rewards: ({
1492
1492
  kind: "points";
1493
1493
  label: string;
@@ -1789,7 +1789,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1789
1789
  quest: string;
1790
1790
  member: string;
1791
1791
  evidence: string | null;
1792
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1792
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1793
1793
  reason: string | null;
1794
1794
  retries: number;
1795
1795
  generation: number;
@@ -1823,17 +1823,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1823
1823
  })[] | null;
1824
1824
  createdAt: number;
1825
1825
  input?: {
1826
- kind: "quiz";
1827
- answers: {
1828
- [k: string]: string;
1829
- };
1830
- release?: string | undefined;
1831
- } | {
1832
1826
  kind: "text";
1833
1827
  value: string;
1834
1828
  } | {
1835
1829
  kind: "url";
1836
1830
  value: string;
1831
+ } | {
1832
+ kind: "quiz";
1833
+ answers: {
1834
+ [k: string]: string;
1835
+ };
1836
+ release?: string | undefined;
1837
1837
  } | undefined;
1838
1838
  }>;
1839
1839
  progress: () => Promise<{
@@ -1874,7 +1874,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1874
1874
  start: number;
1875
1875
  end?: number | undefined;
1876
1876
  };
1877
- enrollment: "required" | "none";
1877
+ enrollment: "none" | "required";
1878
1878
  posts: "after-enrollment" | "since-start";
1879
1879
  historical: "staff" | "automatic" | "claim";
1880
1880
  } | undefined;
@@ -1902,12 +1902,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1902
1902
  actor?: "member" | "staff" | undefined;
1903
1903
  } | {
1904
1904
  kind: "manual";
1905
- input: "quiz" | "photo" | "none";
1905
+ input: "none" | "quiz" | "photo";
1906
1906
  actor?: "member" | "staff" | undefined;
1907
1907
  };
1908
1908
  availability: {
1909
1909
  kind: "available";
1910
- input: "quiz" | "url" | "text" | "photo" | "none";
1910
+ input: "text" | "url" | "none" | "quiz" | "photo";
1911
1911
  } | {
1912
1912
  kind: "completed";
1913
1913
  } | {
@@ -1945,7 +1945,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1945
1945
  kind: "keyed";
1946
1946
  };
1947
1947
  completionCount: number;
1948
- visibility: "hidden" | "visible";
1948
+ visibility: "visible" | "hidden";
1949
1949
  missing: {
1950
1950
  quest: string;
1951
1951
  title: string;
@@ -1956,7 +1956,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1956
1956
  quest: string;
1957
1957
  member: string;
1958
1958
  evidence: string | null;
1959
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1959
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1960
1960
  reason: string | null;
1961
1961
  retries: number;
1962
1962
  generation: number;
@@ -1990,17 +1990,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1990
1990
  })[] | null;
1991
1991
  createdAt: number;
1992
1992
  input?: {
1993
- kind: "quiz";
1994
- answers: {
1995
- [k: string]: string;
1996
- };
1997
- release?: string | undefined;
1998
- } | {
1999
1993
  kind: "text";
2000
1994
  value: string;
2001
1995
  } | {
2002
1996
  kind: "url";
2003
1997
  value: string;
1998
+ } | {
1999
+ kind: "quiz";
2000
+ answers: {
2001
+ [k: string]: string;
2002
+ };
2003
+ release?: string | undefined;
2004
2004
  } | undefined;
2005
2005
  } | null;
2006
2006
  key?: string | undefined;
@@ -2139,7 +2139,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2139
2139
  quest: string;
2140
2140
  member: string;
2141
2141
  evidence: string | null;
2142
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2142
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2143
2143
  reason: string | null;
2144
2144
  retries: number;
2145
2145
  generation: number;
@@ -2173,17 +2173,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2173
2173
  })[] | null;
2174
2174
  createdAt: number;
2175
2175
  input?: {
2176
- kind: "quiz";
2177
- answers: {
2178
- [k: string]: string;
2179
- };
2180
- release?: string | undefined;
2181
- } | {
2182
2176
  kind: "text";
2183
2177
  value: string;
2184
2178
  } | {
2185
2179
  kind: "url";
2186
2180
  value: string;
2181
+ } | {
2182
+ kind: "quiz";
2183
+ answers: {
2184
+ [k: string]: string;
2185
+ };
2186
+ release?: string | undefined;
2187
2187
  } | undefined;
2188
2188
  }>;
2189
2189
  upload: (file: File) => Promise<{
@@ -2205,7 +2205,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2205
2205
  code: string;
2206
2206
  definition: {
2207
2207
  quest: string;
2208
- runtimeVersion: 1 | 2;
2208
+ runtimeVersion: 2 | 1;
2209
2209
  title: string;
2210
2210
  presentation: {
2211
2211
  quiz?: {
@@ -2344,7 +2344,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2344
2344
  start: number;
2345
2345
  end?: number | undefined;
2346
2346
  };
2347
- enrollment: "required" | "none";
2347
+ enrollment: "none" | "required";
2348
2348
  posts: "after-enrollment" | "since-start";
2349
2349
  historical: "staff" | "automatic" | "claim";
2350
2350
  } | undefined;
@@ -2372,7 +2372,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2372
2372
  actor?: "member" | "staff" | undefined;
2373
2373
  } | {
2374
2374
  kind: "manual";
2375
- input: "quiz" | "photo" | "none";
2375
+ input: "none" | "quiz" | "photo";
2376
2376
  actor?: "member" | "staff" | undefined;
2377
2377
  };
2378
2378
  requires: {
@@ -2388,10 +2388,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2388
2388
  } | {
2389
2389
  kind: "keyed";
2390
2390
  };
2391
- visibility: "hidden" | "visible";
2391
+ visibility: "visible" | "hidden";
2392
2392
  budgets: {
2393
2393
  id: string;
2394
- scope: "member" | "project";
2394
+ scope: "project" | "member";
2395
2395
  period: "day" | "lifetime" | "week";
2396
2396
  limit: number;
2397
2397
  cost: number | {
@@ -2408,7 +2408,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2408
2408
  code: string;
2409
2409
  definition: {
2410
2410
  quest: string;
2411
- runtimeVersion: 1 | 2;
2411
+ runtimeVersion: 2 | 1;
2412
2412
  title: string;
2413
2413
  presentation: {
2414
2414
  quiz?: {
@@ -2547,7 +2547,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2547
2547
  start: number;
2548
2548
  end?: number | undefined;
2549
2549
  };
2550
- enrollment: "required" | "none";
2550
+ enrollment: "none" | "required";
2551
2551
  posts: "after-enrollment" | "since-start";
2552
2552
  historical: "staff" | "automatic" | "claim";
2553
2553
  } | undefined;
@@ -2575,7 +2575,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2575
2575
  actor?: "member" | "staff" | undefined;
2576
2576
  } | {
2577
2577
  kind: "manual";
2578
- input: "quiz" | "photo" | "none";
2578
+ input: "none" | "quiz" | "photo";
2579
2579
  actor?: "member" | "staff" | undefined;
2580
2580
  };
2581
2581
  requires: {
@@ -2591,10 +2591,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2591
2591
  } | {
2592
2592
  kind: "keyed";
2593
2593
  };
2594
- visibility: "hidden" | "visible";
2594
+ visibility: "visible" | "hidden";
2595
2595
  budgets: {
2596
2596
  id: string;
2597
- scope: "member" | "project";
2597
+ scope: "project" | "member";
2598
2598
  period: "day" | "lifetime" | "week";
2599
2599
  limit: number;
2600
2600
  cost: number | {
@@ -2610,7 +2610,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2610
2610
  snapshot: () => Promise<{
2611
2611
  releases: {
2612
2612
  quest: string;
2613
- runtimeVersion: 1 | 2;
2613
+ runtimeVersion: 2 | 1;
2614
2614
  title: string;
2615
2615
  presentation: {
2616
2616
  quiz?: {
@@ -2749,7 +2749,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2749
2749
  start: number;
2750
2750
  end?: number | undefined;
2751
2751
  };
2752
- enrollment: "required" | "none";
2752
+ enrollment: "none" | "required";
2753
2753
  posts: "after-enrollment" | "since-start";
2754
2754
  historical: "staff" | "automatic" | "claim";
2755
2755
  } | undefined;
@@ -2777,7 +2777,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2777
2777
  actor?: "member" | "staff" | undefined;
2778
2778
  } | {
2779
2779
  kind: "manual";
2780
- input: "quiz" | "photo" | "none";
2780
+ input: "none" | "quiz" | "photo";
2781
2781
  actor?: "member" | "staff" | undefined;
2782
2782
  };
2783
2783
  requires: {
@@ -2793,10 +2793,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2793
2793
  } | {
2794
2794
  kind: "keyed";
2795
2795
  };
2796
- visibility: "hidden" | "visible";
2796
+ visibility: "visible" | "hidden";
2797
2797
  budgets: {
2798
2798
  id: string;
2799
- scope: "member" | "project";
2799
+ scope: "project" | "member";
2800
2800
  period: "day" | "lifetime" | "week";
2801
2801
  limit: number;
2802
2802
  cost: number | {
@@ -2808,7 +2808,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2808
2808
  id: string;
2809
2809
  createdAt: number;
2810
2810
  legacy: boolean;
2811
- lifecycle: "active" | "paused" | "archived";
2811
+ lifecycle: "paused" | "active" | "archived";
2812
2812
  performance?: {
2813
2813
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2814
2814
  maxAgeMs: number;
@@ -2928,7 +2928,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2928
2928
  quest: string;
2929
2929
  member: string;
2930
2930
  evidence: string | null;
2931
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2931
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2932
2932
  reason: string | null;
2933
2933
  retries: number;
2934
2934
  generation: number;
@@ -2962,17 +2962,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2962
2962
  })[] | null;
2963
2963
  createdAt: number;
2964
2964
  input?: {
2965
- kind: "quiz";
2966
- answers: {
2967
- [k: string]: string;
2968
- };
2969
- release?: string | undefined;
2970
- } | {
2971
2965
  kind: "text";
2972
2966
  value: string;
2973
2967
  } | {
2974
2968
  kind: "url";
2975
2969
  value: string;
2970
+ } | {
2971
+ kind: "quiz";
2972
+ answers: {
2973
+ [k: string]: string;
2974
+ };
2975
+ release?: string | undefined;
2976
2976
  } | undefined;
2977
2977
  }[];
2978
2978
  balances: {
@@ -2993,7 +2993,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2993
2993
  }>;
2994
2994
  publish: (release: ReleaseInput) => Promise<{
2995
2995
  quest: string;
2996
- runtimeVersion: 1 | 2;
2996
+ runtimeVersion: 2 | 1;
2997
2997
  title: string;
2998
2998
  presentation: {
2999
2999
  quiz?: {
@@ -3132,7 +3132,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3132
3132
  start: number;
3133
3133
  end?: number | undefined;
3134
3134
  };
3135
- enrollment: "required" | "none";
3135
+ enrollment: "none" | "required";
3136
3136
  posts: "after-enrollment" | "since-start";
3137
3137
  historical: "staff" | "automatic" | "claim";
3138
3138
  } | undefined;
@@ -3160,7 +3160,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3160
3160
  actor?: "member" | "staff" | undefined;
3161
3161
  } | {
3162
3162
  kind: "manual";
3163
- input: "quiz" | "photo" | "none";
3163
+ input: "none" | "quiz" | "photo";
3164
3164
  actor?: "member" | "staff" | undefined;
3165
3165
  };
3166
3166
  requires: {
@@ -3176,10 +3176,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3176
3176
  } | {
3177
3177
  kind: "keyed";
3178
3178
  };
3179
- visibility: "hidden" | "visible";
3179
+ visibility: "visible" | "hidden";
3180
3180
  budgets: {
3181
3181
  id: string;
3182
- scope: "member" | "project";
3182
+ scope: "project" | "member";
3183
3183
  period: "day" | "lifetime" | "week";
3184
3184
  limit: number;
3185
3185
  cost: number | {
@@ -3191,7 +3191,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3191
3191
  id: string;
3192
3192
  createdAt: number;
3193
3193
  legacy: boolean;
3194
- lifecycle: "active" | "paused" | "archived";
3194
+ lifecycle: "paused" | "active" | "archived";
3195
3195
  performance?: {
3196
3196
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3197
3197
  maxAgeMs: number;
@@ -3224,7 +3224,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3224
3224
  }>;
3225
3225
  publishBatch: (releases: ReleaseInput[]) => Promise<{
3226
3226
  quest: string;
3227
- runtimeVersion: 1 | 2;
3227
+ runtimeVersion: 2 | 1;
3228
3228
  title: string;
3229
3229
  presentation: {
3230
3230
  quiz?: {
@@ -3363,7 +3363,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3363
3363
  start: number;
3364
3364
  end?: number | undefined;
3365
3365
  };
3366
- enrollment: "required" | "none";
3366
+ enrollment: "none" | "required";
3367
3367
  posts: "after-enrollment" | "since-start";
3368
3368
  historical: "staff" | "automatic" | "claim";
3369
3369
  } | undefined;
@@ -3391,7 +3391,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3391
3391
  actor?: "member" | "staff" | undefined;
3392
3392
  } | {
3393
3393
  kind: "manual";
3394
- input: "quiz" | "photo" | "none";
3394
+ input: "none" | "quiz" | "photo";
3395
3395
  actor?: "member" | "staff" | undefined;
3396
3396
  };
3397
3397
  requires: {
@@ -3407,10 +3407,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3407
3407
  } | {
3408
3408
  kind: "keyed";
3409
3409
  };
3410
- visibility: "hidden" | "visible";
3410
+ visibility: "visible" | "hidden";
3411
3411
  budgets: {
3412
3412
  id: string;
3413
- scope: "member" | "project";
3413
+ scope: "project" | "member";
3414
3414
  period: "day" | "lifetime" | "week";
3415
3415
  limit: number;
3416
3416
  cost: number | {
@@ -3422,7 +3422,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3422
3422
  id: string;
3423
3423
  createdAt: number;
3424
3424
  legacy: boolean;
3425
- lifecycle: "active" | "paused" | "archived";
3425
+ lifecycle: "paused" | "active" | "archived";
3426
3426
  performance?: {
3427
3427
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3428
3428
  maxAgeMs: number;
@@ -3491,7 +3491,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3491
3491
  start: number;
3492
3492
  end?: number | undefined;
3493
3493
  };
3494
- enrollment: "required" | "none";
3494
+ enrollment: "none" | "required";
3495
3495
  posts: "after-enrollment" | "since-start";
3496
3496
  historical: "staff" | "automatic" | "claim";
3497
3497
  } | undefined;
@@ -3519,12 +3519,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3519
3519
  actor?: "member" | "staff" | undefined;
3520
3520
  } | {
3521
3521
  kind: "manual";
3522
- input: "quiz" | "photo" | "none";
3522
+ input: "none" | "quiz" | "photo";
3523
3523
  actor?: "member" | "staff" | undefined;
3524
3524
  };
3525
3525
  availability: {
3526
3526
  kind: "available";
3527
- input: "quiz" | "url" | "text" | "photo" | "none";
3527
+ input: "text" | "url" | "none" | "quiz" | "photo";
3528
3528
  } | {
3529
3529
  kind: "completed";
3530
3530
  } | {
@@ -3562,7 +3562,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3562
3562
  kind: "keyed";
3563
3563
  };
3564
3564
  completionCount: number;
3565
- visibility: "hidden" | "visible";
3565
+ visibility: "visible" | "hidden";
3566
3566
  missing: {
3567
3567
  quest: string;
3568
3568
  title: string;
@@ -3573,7 +3573,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3573
3573
  quest: string;
3574
3574
  member: string;
3575
3575
  evidence: string | null;
3576
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
3576
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3577
3577
  reason: string | null;
3578
3578
  retries: number;
3579
3579
  generation: number;
@@ -3607,17 +3607,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3607
3607
  })[] | null;
3608
3608
  createdAt: number;
3609
3609
  input?: {
3610
- kind: "quiz";
3611
- answers: {
3612
- [k: string]: string;
3613
- };
3614
- release?: string | undefined;
3615
- } | {
3616
3610
  kind: "text";
3617
3611
  value: string;
3618
3612
  } | {
3619
3613
  kind: "url";
3620
3614
  value: string;
3615
+ } | {
3616
+ kind: "quiz";
3617
+ answers: {
3618
+ [k: string]: string;
3619
+ };
3620
+ release?: string | undefined;
3621
3621
  } | undefined;
3622
3622
  } | null;
3623
3623
  key?: string | undefined;
@@ -3999,14 +3999,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3999
3999
  content: {
4000
4000
  performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
4001
4001
  current: {
4002
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
4002
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
4003
4003
  reason: string | null;
4004
4004
  contentAttempt: string;
4005
4005
  attempt: string | null;
4006
4006
  reward: {
4007
4007
  attempt: string | null;
4008
4008
  completion: string | null;
4009
- state: "awarded" | "excluded" | "unresolved";
4009
+ state: "excluded" | "unresolved" | "awarded";
4010
4010
  };
4011
4011
  };
4012
4012
  items: {
@@ -4015,7 +4015,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4015
4015
  observation: string;
4016
4016
  observedAt: number;
4017
4017
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
4018
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
4018
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
4019
4019
  reason: string | null;
4020
4020
  }[];
4021
4021
  next: number | null;
@@ -4030,12 +4030,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4030
4030
  revision: string;
4031
4031
  observation: string;
4032
4032
  current: boolean;
4033
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "blocked" | "unavailable";
4033
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
4034
4034
  reason: string | null;
4035
4035
  reward: {
4036
4036
  attempt: string | null;
4037
4037
  completion: string | null;
4038
- state: "awarded" | "excluded" | "unresolved";
4038
+ state: "excluded" | "unresolved" | "awarded";
4039
4039
  };
4040
4040
  }[];
4041
4041
  next: number | null;
@@ -4045,7 +4045,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4045
4045
  quest: string;
4046
4046
  content: string;
4047
4047
  release: string;
4048
- state: "pending" | "admitted" | "excluded";
4048
+ state: "admitted" | "pending" | "excluded";
4049
4049
  reason: string | null;
4050
4050
  attempt: string | null;
4051
4051
  }[];
@@ -4060,7 +4060,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4060
4060
  quest: string;
4061
4061
  content: string;
4062
4062
  release: string;
4063
- state: "pending" | "admitted" | "excluded";
4063
+ state: "admitted" | "pending" | "excluded";
4064
4064
  reason: string | null;
4065
4065
  attempt: string | null;
4066
4066
  }>;
@@ -4071,7 +4071,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4071
4071
  quest: string;
4072
4072
  member: string;
4073
4073
  evidence: string | null;
4074
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4074
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4075
4075
  reason: string | null;
4076
4076
  retries: number;
4077
4077
  generation: number;
@@ -4105,17 +4105,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4105
4105
  })[] | null;
4106
4106
  createdAt: number;
4107
4107
  input?: {
4108
- kind: "quiz";
4109
- answers: {
4110
- [k: string]: string;
4111
- };
4112
- release?: string | undefined;
4113
- } | {
4114
4108
  kind: "text";
4115
4109
  value: string;
4116
4110
  } | {
4117
4111
  kind: "url";
4118
4112
  value: string;
4113
+ } | {
4114
+ kind: "quiz";
4115
+ answers: {
4116
+ [k: string]: string;
4117
+ };
4118
+ release?: string | undefined;
4119
4119
  } | undefined;
4120
4120
  }>;
4121
4121
  retry: (id: string) => Promise<{
@@ -4124,7 +4124,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4124
4124
  quest: string;
4125
4125
  member: string;
4126
4126
  evidence: string | null;
4127
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4127
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4128
4128
  reason: string | null;
4129
4129
  retries: number;
4130
4130
  generation: number;
@@ -4158,17 +4158,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4158
4158
  })[] | null;
4159
4159
  createdAt: number;
4160
4160
  input?: {
4161
- kind: "quiz";
4162
- answers: {
4163
- [k: string]: string;
4164
- };
4165
- release?: string | undefined;
4166
- } | {
4167
4161
  kind: "text";
4168
4162
  value: string;
4169
4163
  } | {
4170
4164
  kind: "url";
4171
4165
  value: string;
4166
+ } | {
4167
+ kind: "quiz";
4168
+ answers: {
4169
+ [k: string]: string;
4170
+ };
4171
+ release?: string | undefined;
4172
4172
  } | undefined;
4173
4173
  }>;
4174
4174
  decide: (id: string, input: {
@@ -4182,7 +4182,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4182
4182
  quest: string;
4183
4183
  member: string;
4184
4184
  evidence: string | null;
4185
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
4185
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4186
4186
  reason: string | null;
4187
4187
  retries: number;
4188
4188
  generation: number;
@@ -4216,17 +4216,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4216
4216
  })[] | null;
4217
4217
  createdAt: number;
4218
4218
  input?: {
4219
- kind: "quiz";
4220
- answers: {
4221
- [k: string]: string;
4222
- };
4223
- release?: string | undefined;
4224
- } | {
4225
4219
  kind: "text";
4226
4220
  value: string;
4227
4221
  } | {
4228
4222
  kind: "url";
4229
4223
  value: string;
4224
+ } | {
4225
+ kind: "quiz";
4226
+ answers: {
4227
+ [k: string]: string;
4228
+ };
4229
+ release?: string | undefined;
4230
4230
  } | undefined;
4231
4231
  }>;
4232
4232
  };