@domino-sdk/relay 0.30.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a7 as CosmosChain, a8 as CosmosNetwork, Q as WalletSigner, a4 as WalletSignInNetwork, Y as AuthProvider, K as referralAcceptSchema, M as LeaderboardQuery, N as WalletAddressInput, P as walletSignatureSchema, L as LinkedWallet, R as walletChallengeInputSchema, V as walletProofSchema, Z as WalletSignature, _ as engagementPageQuerySchema, $ as contentQualificationQuerySchema, a0 as contentAdmissionQuerySchema, a1 as contentEnrollmentInputSchema, a2 as contentReleaseInputSchema } from './submission-input-B6f27BHm.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-JDwq3EVK.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';
@@ -515,7 +515,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
515
515
  seed: string;
516
516
  } | {
517
517
  source: "account";
518
- provider: "discord" | "google" | "x";
518
+ provider: "x" | "discord" | "google";
519
519
  url: string;
520
520
  seed: string;
521
521
  } | {
@@ -539,7 +539,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
539
539
  seed: string;
540
540
  } | {
541
541
  source: "account";
542
- provider: "discord" | "google" | "x";
542
+ provider: "x" | "discord" | "google";
543
543
  url: string;
544
544
  seed: string;
545
545
  } | {
@@ -563,7 +563,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
563
563
  seed: string;
564
564
  } | {
565
565
  source: "account";
566
- provider: "discord" | "google" | "x";
566
+ provider: "x" | "discord" | "google";
567
567
  url: string;
568
568
  seed: string;
569
569
  } | {
@@ -595,7 +595,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
595
595
  seed: string;
596
596
  } | {
597
597
  source: "account";
598
- provider: "discord" | "google" | "x";
598
+ provider: "x" | "discord" | "google";
599
599
  url: string;
600
600
  seed: string;
601
601
  } | {
@@ -603,13 +603,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
603
603
  seed: string;
604
604
  };
605
605
  displayName: string | null;
606
- avatarChoice: "default" | "account" | "generated" | "upload";
607
- avatarProvider: "discord" | "google" | "x" | null;
606
+ avatarChoice: "default" | "account" | "upload" | "generated";
607
+ avatarProvider: "x" | "discord" | "google" | null;
608
608
  hidden: boolean;
609
609
  locked: boolean;
610
- visibility: "participants" | "public" | "private";
610
+ visibility: "private" | "participants" | "public";
611
611
  options: {
612
- provider: "discord" | "google" | "x";
612
+ provider: "x" | "discord" | "google";
613
613
  name: string | null;
614
614
  imageUrl: string | null;
615
615
  }[];
@@ -625,7 +625,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
625
625
  seed: string;
626
626
  } | {
627
627
  source: "account";
628
- provider: "discord" | "google" | "x";
628
+ provider: "x" | "discord" | "google";
629
629
  url: string;
630
630
  seed: string;
631
631
  } | {
@@ -633,13 +633,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
633
633
  seed: string;
634
634
  };
635
635
  displayName: string | null;
636
- avatarChoice: "default" | "account" | "generated" | "upload";
637
- avatarProvider: "discord" | "google" | "x" | null;
636
+ avatarChoice: "default" | "account" | "upload" | "generated";
637
+ avatarProvider: "x" | "discord" | "google" | null;
638
638
  hidden: boolean;
639
639
  locked: boolean;
640
- visibility: "participants" | "public" | "private";
640
+ visibility: "private" | "participants" | "public";
641
641
  options: {
642
- provider: "discord" | "google" | "x";
642
+ provider: "x" | "discord" | "google";
643
643
  name: string | null;
644
644
  imageUrl: string | null;
645
645
  }[];
@@ -656,7 +656,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
656
656
  seed: string;
657
657
  } | {
658
658
  source: "account";
659
- provider: "discord" | "google" | "x";
659
+ provider: "x" | "discord" | "google";
660
660
  url: string;
661
661
  seed: string;
662
662
  } | {
@@ -664,13 +664,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
664
664
  seed: string;
665
665
  };
666
666
  displayName: string | null;
667
- avatarChoice: "default" | "account" | "generated" | "upload";
668
- avatarProvider: "discord" | "google" | "x" | null;
667
+ avatarChoice: "default" | "account" | "upload" | "generated";
668
+ avatarProvider: "x" | "discord" | "google" | null;
669
669
  hidden: boolean;
670
670
  locked: boolean;
671
- visibility: "participants" | "public" | "private";
671
+ visibility: "private" | "participants" | "public";
672
672
  options: {
673
- provider: "discord" | "google" | "x";
673
+ provider: "x" | "discord" | "google";
674
674
  name: string | null;
675
675
  imageUrl: string | null;
676
676
  }[];
@@ -684,7 +684,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
684
684
  seed: string;
685
685
  } | {
686
686
  source: "account";
687
- provider: "discord" | "google" | "x";
687
+ provider: "x" | "discord" | "google";
688
688
  url: string;
689
689
  seed: string;
690
690
  } | {
@@ -739,7 +739,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
739
739
  } | undefined;
740
740
  } | undefined;
741
741
  };
742
- connections: ("discord" | "google" | "apple" | "x")[];
742
+ connections: ("x" | "discord" | "google" | "apple")[];
743
743
  trigger: {
744
744
  kind: "automatic";
745
745
  observation?: {
@@ -752,14 +752,33 @@ 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;
759
759
  tracker?: {
760
760
  tracker: string;
761
761
  source: "custom" | "x-search";
762
- beneficiary: "author" | "replied-to";
762
+ beneficiary: string;
763
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
764
+ where?: {
765
+ path: string;
766
+ gt?: number | {
767
+ setting: string;
768
+ } | undefined;
769
+ gte?: number | {
770
+ setting: string;
771
+ } | undefined;
772
+ lt?: number | {
773
+ setting: string;
774
+ } | undefined;
775
+ lte?: number | {
776
+ setting: string;
777
+ } | undefined;
778
+ } | {
779
+ path: string;
780
+ equals: string | number | boolean;
781
+ } | undefined;
763
782
  } | undefined;
764
783
  } | {
765
784
  kind: "manual";
@@ -780,12 +799,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
780
799
  actor?: "member" | "staff" | undefined;
781
800
  } | {
782
801
  kind: "manual";
783
- input: "quiz" | "photo" | "none";
802
+ input: "none" | "quiz" | "photo";
784
803
  actor?: "member" | "staff" | undefined;
785
804
  };
786
805
  availability: {
787
806
  kind: "available";
788
- input: "quiz" | "text" | "url" | "photo" | "none";
807
+ input: "text" | "url" | "none" | "quiz" | "photo";
789
808
  } | {
790
809
  kind: "completed";
791
810
  } | {
@@ -834,7 +853,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
834
853
  quest: string;
835
854
  member: string;
836
855
  evidence: string | null;
837
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
856
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
838
857
  reason: string | null;
839
858
  retries: number;
840
859
  generation: number;
@@ -868,22 +887,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
868
887
  })[] | null;
869
888
  createdAt: number;
870
889
  input?: {
871
- kind: "quiz";
872
- answers: {
873
- [k: string]: string;
874
- };
875
- release?: string | undefined;
876
- } | {
877
890
  kind: "text";
878
891
  value: string;
879
892
  } | {
880
893
  kind: "url";
881
894
  value: string;
895
+ } | {
896
+ kind: "quiz";
897
+ answers: {
898
+ [k: string]: string;
899
+ };
900
+ release?: string | undefined;
882
901
  } | undefined;
883
902
  } | null;
884
903
  release: string;
885
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
886
- lifecycle: "active" | "paused" | "archived";
904
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
905
+ lifecycle: "paused" | "active" | "archived";
887
906
  rewards: ({
888
907
  kind: "points";
889
908
  label: string;
@@ -944,7 +963,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
944
963
  quest: string;
945
964
  member: string;
946
965
  evidence: string | null;
947
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
966
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
948
967
  reason: string | null;
949
968
  retries: number;
950
969
  generation: number;
@@ -978,17 +997,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
978
997
  })[] | null;
979
998
  createdAt: number;
980
999
  input?: {
981
- kind: "quiz";
982
- answers: {
983
- [k: string]: string;
984
- };
985
- release?: string | undefined;
986
- } | {
987
1000
  kind: "text";
988
1001
  value: string;
989
1002
  } | {
990
1003
  kind: "url";
991
1004
  value: string;
1005
+ } | {
1006
+ kind: "quiz";
1007
+ answers: {
1008
+ [k: string]: string;
1009
+ };
1010
+ release?: string | undefined;
992
1011
  } | undefined;
993
1012
  }>;
994
1013
  experience: () => Promise<{
@@ -1016,7 +1035,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1016
1035
  } | undefined;
1017
1036
  } | undefined;
1018
1037
  };
1019
- connections: ("discord" | "google" | "apple" | "x")[];
1038
+ connections: ("x" | "discord" | "google" | "apple")[];
1020
1039
  trigger: {
1021
1040
  kind: "automatic";
1022
1041
  observation?: {
@@ -1029,14 +1048,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1029
1048
  start: number;
1030
1049
  end?: number | undefined;
1031
1050
  };
1032
- enrollment: "required" | "none";
1051
+ enrollment: "none" | "required";
1033
1052
  posts: "after-enrollment" | "since-start";
1034
1053
  historical: "staff" | "automatic" | "claim";
1035
1054
  } | undefined;
1036
1055
  tracker?: {
1037
1056
  tracker: string;
1038
1057
  source: "custom" | "x-search";
1039
- beneficiary: "author" | "replied-to";
1058
+ beneficiary: string;
1059
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
1060
+ where?: {
1061
+ path: string;
1062
+ gt?: number | {
1063
+ setting: string;
1064
+ } | undefined;
1065
+ gte?: number | {
1066
+ setting: string;
1067
+ } | undefined;
1068
+ lt?: number | {
1069
+ setting: string;
1070
+ } | undefined;
1071
+ lte?: number | {
1072
+ setting: string;
1073
+ } | undefined;
1074
+ } | {
1075
+ path: string;
1076
+ equals: string | number | boolean;
1077
+ } | undefined;
1040
1078
  } | undefined;
1041
1079
  } | {
1042
1080
  kind: "manual";
@@ -1057,12 +1095,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1057
1095
  actor?: "member" | "staff" | undefined;
1058
1096
  } | {
1059
1097
  kind: "manual";
1060
- input: "quiz" | "photo" | "none";
1098
+ input: "none" | "quiz" | "photo";
1061
1099
  actor?: "member" | "staff" | undefined;
1062
1100
  };
1063
1101
  availability: {
1064
1102
  kind: "available";
1065
- input: "quiz" | "text" | "url" | "photo" | "none";
1103
+ input: "text" | "url" | "none" | "quiz" | "photo";
1066
1104
  } | {
1067
1105
  kind: "completed";
1068
1106
  } | {
@@ -1111,7 +1149,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1111
1149
  quest: string;
1112
1150
  member: string;
1113
1151
  evidence: string | null;
1114
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
1152
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1115
1153
  reason: string | null;
1116
1154
  retries: number;
1117
1155
  generation: number;
@@ -1145,22 +1183,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1145
1183
  })[] | null;
1146
1184
  createdAt: number;
1147
1185
  input?: {
1148
- kind: "quiz";
1149
- answers: {
1150
- [k: string]: string;
1151
- };
1152
- release?: string | undefined;
1153
- } | {
1154
1186
  kind: "text";
1155
1187
  value: string;
1156
1188
  } | {
1157
1189
  kind: "url";
1158
1190
  value: string;
1191
+ } | {
1192
+ kind: "quiz";
1193
+ answers: {
1194
+ [k: string]: string;
1195
+ };
1196
+ release?: string | undefined;
1159
1197
  } | undefined;
1160
1198
  } | null;
1161
1199
  release: string;
1162
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
1163
- lifecycle: "active" | "paused" | "archived";
1200
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1201
+ lifecycle: "paused" | "active" | "archived";
1164
1202
  rewards: ({
1165
1203
  kind: "points";
1166
1204
  label: string;
@@ -1241,7 +1279,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1241
1279
  } | undefined;
1242
1280
  } | undefined;
1243
1281
  };
1244
- connections: ("discord" | "google" | "apple" | "x")[];
1282
+ connections: ("x" | "discord" | "google" | "apple")[];
1245
1283
  trigger: {
1246
1284
  kind: "automatic";
1247
1285
  observation?: {
@@ -1254,14 +1292,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1254
1292
  start: number;
1255
1293
  end?: number | undefined;
1256
1294
  };
1257
- enrollment: "required" | "none";
1295
+ enrollment: "none" | "required";
1258
1296
  posts: "after-enrollment" | "since-start";
1259
1297
  historical: "staff" | "automatic" | "claim";
1260
1298
  } | undefined;
1261
1299
  tracker?: {
1262
1300
  tracker: string;
1263
1301
  source: "custom" | "x-search";
1264
- beneficiary: "author" | "replied-to";
1302
+ beneficiary: string;
1303
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
1304
+ where?: {
1305
+ path: string;
1306
+ gt?: number | {
1307
+ setting: string;
1308
+ } | undefined;
1309
+ gte?: number | {
1310
+ setting: string;
1311
+ } | undefined;
1312
+ lt?: number | {
1313
+ setting: string;
1314
+ } | undefined;
1315
+ lte?: number | {
1316
+ setting: string;
1317
+ } | undefined;
1318
+ } | {
1319
+ path: string;
1320
+ equals: string | number | boolean;
1321
+ } | undefined;
1265
1322
  } | undefined;
1266
1323
  } | {
1267
1324
  kind: "manual";
@@ -1282,12 +1339,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1282
1339
  actor?: "member" | "staff" | undefined;
1283
1340
  } | {
1284
1341
  kind: "manual";
1285
- input: "quiz" | "photo" | "none";
1342
+ input: "none" | "quiz" | "photo";
1286
1343
  actor?: "member" | "staff" | undefined;
1287
1344
  };
1288
1345
  availability: {
1289
1346
  kind: "available";
1290
- input: "quiz" | "text" | "url" | "photo" | "none";
1347
+ input: "text" | "url" | "none" | "quiz" | "photo";
1291
1348
  } | {
1292
1349
  kind: "completed";
1293
1350
  } | {
@@ -1336,7 +1393,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1336
1393
  quest: string;
1337
1394
  member: string;
1338
1395
  evidence: string | null;
1339
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
1396
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1340
1397
  reason: string | null;
1341
1398
  retries: number;
1342
1399
  generation: number;
@@ -1370,22 +1427,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1370
1427
  })[] | null;
1371
1428
  createdAt: number;
1372
1429
  input?: {
1373
- kind: "quiz";
1374
- answers: {
1375
- [k: string]: string;
1376
- };
1377
- release?: string | undefined;
1378
- } | {
1379
1430
  kind: "text";
1380
1431
  value: string;
1381
1432
  } | {
1382
1433
  kind: "url";
1383
1434
  value: string;
1435
+ } | {
1436
+ kind: "quiz";
1437
+ answers: {
1438
+ [k: string]: string;
1439
+ };
1440
+ release?: string | undefined;
1384
1441
  } | undefined;
1385
1442
  } | null;
1386
1443
  release: string;
1387
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
1388
- lifecycle: "active" | "paused" | "archived";
1444
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1445
+ lifecycle: "paused" | "active" | "archived";
1389
1446
  rewards: ({
1390
1447
  kind: "points";
1391
1448
  label: string;
@@ -1469,7 +1526,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1469
1526
  } | undefined;
1470
1527
  } | undefined;
1471
1528
  };
1472
- connections: ("discord" | "google" | "apple" | "x")[];
1529
+ connections: ("x" | "discord" | "google" | "apple")[];
1473
1530
  trigger: {
1474
1531
  kind: "automatic";
1475
1532
  observation?: {
@@ -1482,14 +1539,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1482
1539
  start: number;
1483
1540
  end?: number | undefined;
1484
1541
  };
1485
- enrollment: "required" | "none";
1542
+ enrollment: "none" | "required";
1486
1543
  posts: "after-enrollment" | "since-start";
1487
1544
  historical: "staff" | "automatic" | "claim";
1488
1545
  } | undefined;
1489
1546
  tracker?: {
1490
1547
  tracker: string;
1491
1548
  source: "custom" | "x-search";
1492
- beneficiary: "author" | "replied-to";
1549
+ beneficiary: string;
1550
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
1551
+ where?: {
1552
+ path: string;
1553
+ gt?: number | {
1554
+ setting: string;
1555
+ } | undefined;
1556
+ gte?: number | {
1557
+ setting: string;
1558
+ } | undefined;
1559
+ lt?: number | {
1560
+ setting: string;
1561
+ } | undefined;
1562
+ lte?: number | {
1563
+ setting: string;
1564
+ } | undefined;
1565
+ } | {
1566
+ path: string;
1567
+ equals: string | number | boolean;
1568
+ } | undefined;
1493
1569
  } | undefined;
1494
1570
  } | {
1495
1571
  kind: "manual";
@@ -1510,12 +1586,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1510
1586
  actor?: "member" | "staff" | undefined;
1511
1587
  } | {
1512
1588
  kind: "manual";
1513
- input: "quiz" | "photo" | "none";
1589
+ input: "none" | "quiz" | "photo";
1514
1590
  actor?: "member" | "staff" | undefined;
1515
1591
  };
1516
1592
  availability: {
1517
1593
  kind: "available";
1518
- input: "quiz" | "text" | "url" | "photo" | "none";
1594
+ input: "text" | "url" | "none" | "quiz" | "photo";
1519
1595
  } | {
1520
1596
  kind: "completed";
1521
1597
  } | {
@@ -1564,7 +1640,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1564
1640
  quest: string;
1565
1641
  member: string;
1566
1642
  evidence: string | null;
1567
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
1643
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1568
1644
  reason: string | null;
1569
1645
  retries: number;
1570
1646
  generation: number;
@@ -1598,22 +1674,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1598
1674
  })[] | null;
1599
1675
  createdAt: number;
1600
1676
  input?: {
1601
- kind: "quiz";
1602
- answers: {
1603
- [k: string]: string;
1604
- };
1605
- release?: string | undefined;
1606
- } | {
1607
1677
  kind: "text";
1608
1678
  value: string;
1609
1679
  } | {
1610
1680
  kind: "url";
1611
1681
  value: string;
1682
+ } | {
1683
+ kind: "quiz";
1684
+ answers: {
1685
+ [k: string]: string;
1686
+ };
1687
+ release?: string | undefined;
1612
1688
  } | undefined;
1613
1689
  } | null;
1614
1690
  release: string;
1615
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
1616
- lifecycle: "active" | "paused" | "archived";
1691
+ interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
1692
+ lifecycle: "paused" | "active" | "archived";
1617
1693
  rewards: ({
1618
1694
  kind: "points";
1619
1695
  label: string;
@@ -1738,7 +1814,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1738
1814
  auth: {
1739
1815
  providers: () => Promise<{
1740
1816
  providers: {
1741
- provider: "discord" | "google" | "apple" | "x";
1817
+ provider: "x" | "discord" | "google" | "apple";
1742
1818
  configured: boolean;
1743
1819
  }[];
1744
1820
  email: boolean;
@@ -1814,7 +1890,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1814
1890
  }>;
1815
1891
  };
1816
1892
  accounts: () => Promise<{
1817
- provider: "discord" | "google" | "apple" | "x";
1893
+ provider: "x" | "discord" | "google" | "apple";
1818
1894
  configured: boolean;
1819
1895
  status: "disconnected" | "connected" | "reconnect";
1820
1896
  subject: string | null;
@@ -1915,7 +1991,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1915
1991
  quest: string;
1916
1992
  member: string;
1917
1993
  evidence: string | null;
1918
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
1994
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1919
1995
  reason: string | null;
1920
1996
  retries: number;
1921
1997
  generation: number;
@@ -1949,17 +2025,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1949
2025
  })[] | null;
1950
2026
  createdAt: number;
1951
2027
  input?: {
1952
- kind: "quiz";
1953
- answers: {
1954
- [k: string]: string;
1955
- };
1956
- release?: string | undefined;
1957
- } | {
1958
2028
  kind: "text";
1959
2029
  value: string;
1960
2030
  } | {
1961
2031
  kind: "url";
1962
2032
  value: string;
2033
+ } | {
2034
+ kind: "quiz";
2035
+ answers: {
2036
+ [k: string]: string;
2037
+ };
2038
+ release?: string | undefined;
1963
2039
  } | undefined;
1964
2040
  }>;
1965
2041
  progress: () => Promise<{
@@ -1987,7 +2063,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1987
2063
  } | undefined;
1988
2064
  } | undefined;
1989
2065
  };
1990
- connections: ("discord" | "google" | "apple" | "x")[];
2066
+ connections: ("x" | "discord" | "google" | "apple")[];
1991
2067
  trigger: {
1992
2068
  kind: "automatic";
1993
2069
  observation?: {
@@ -2000,14 +2076,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2000
2076
  start: number;
2001
2077
  end?: number | undefined;
2002
2078
  };
2003
- enrollment: "required" | "none";
2079
+ enrollment: "none" | "required";
2004
2080
  posts: "after-enrollment" | "since-start";
2005
2081
  historical: "staff" | "automatic" | "claim";
2006
2082
  } | undefined;
2007
2083
  tracker?: {
2008
2084
  tracker: string;
2009
2085
  source: "custom" | "x-search";
2010
- beneficiary: "author" | "replied-to";
2086
+ beneficiary: string;
2087
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
2088
+ where?: {
2089
+ path: string;
2090
+ gt?: number | {
2091
+ setting: string;
2092
+ } | undefined;
2093
+ gte?: number | {
2094
+ setting: string;
2095
+ } | undefined;
2096
+ lt?: number | {
2097
+ setting: string;
2098
+ } | undefined;
2099
+ lte?: number | {
2100
+ setting: string;
2101
+ } | undefined;
2102
+ } | {
2103
+ path: string;
2104
+ equals: string | number | boolean;
2105
+ } | undefined;
2011
2106
  } | undefined;
2012
2107
  } | {
2013
2108
  kind: "manual";
@@ -2028,12 +2123,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2028
2123
  actor?: "member" | "staff" | undefined;
2029
2124
  } | {
2030
2125
  kind: "manual";
2031
- input: "quiz" | "photo" | "none";
2126
+ input: "none" | "quiz" | "photo";
2032
2127
  actor?: "member" | "staff" | undefined;
2033
2128
  };
2034
2129
  availability: {
2035
2130
  kind: "available";
2036
- input: "quiz" | "text" | "url" | "photo" | "none";
2131
+ input: "text" | "url" | "none" | "quiz" | "photo";
2037
2132
  } | {
2038
2133
  kind: "completed";
2039
2134
  } | {
@@ -2082,7 +2177,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2082
2177
  quest: string;
2083
2178
  member: string;
2084
2179
  evidence: string | null;
2085
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
2180
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2086
2181
  reason: string | null;
2087
2182
  retries: number;
2088
2183
  generation: number;
@@ -2116,17 +2211,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2116
2211
  })[] | null;
2117
2212
  createdAt: number;
2118
2213
  input?: {
2119
- kind: "quiz";
2120
- answers: {
2121
- [k: string]: string;
2122
- };
2123
- release?: string | undefined;
2124
- } | {
2125
2214
  kind: "text";
2126
2215
  value: string;
2127
2216
  } | {
2128
2217
  kind: "url";
2129
2218
  value: string;
2219
+ } | {
2220
+ kind: "quiz";
2221
+ answers: {
2222
+ [k: string]: string;
2223
+ };
2224
+ release?: string | undefined;
2130
2225
  } | undefined;
2131
2226
  } | null;
2132
2227
  key?: string | undefined;
@@ -2249,7 +2344,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2249
2344
  provider: "discord";
2250
2345
  action: "grant-role";
2251
2346
  roleId: string;
2252
- status: "failed" | "pending" | "delivered";
2347
+ status: "pending" | "failed" | "delivered";
2253
2348
  attempts: number;
2254
2349
  nextAt: number;
2255
2350
  lastError: string | null;
@@ -2265,7 +2360,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2265
2360
  quest: string;
2266
2361
  member: string;
2267
2362
  evidence: string | null;
2268
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
2363
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2269
2364
  reason: string | null;
2270
2365
  retries: number;
2271
2366
  generation: number;
@@ -2299,17 +2394,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2299
2394
  })[] | null;
2300
2395
  createdAt: number;
2301
2396
  input?: {
2302
- kind: "quiz";
2303
- answers: {
2304
- [k: string]: string;
2305
- };
2306
- release?: string | undefined;
2307
- } | {
2308
2397
  kind: "text";
2309
2398
  value: string;
2310
2399
  } | {
2311
2400
  kind: "url";
2312
2401
  value: string;
2402
+ } | {
2403
+ kind: "quiz";
2404
+ answers: {
2405
+ [k: string]: string;
2406
+ };
2407
+ release?: string | undefined;
2313
2408
  } | undefined;
2314
2409
  }>;
2315
2410
  upload: (file: File) => Promise<{
@@ -2368,12 +2463,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2368
2463
  kind: "resource";
2369
2464
  default: string;
2370
2465
  source: {
2371
- provider: "domino";
2372
- resource: "point-ledger";
2373
- } | {
2374
2466
  provider: "discord";
2375
2467
  resource: "channel";
2376
2468
  types: ("text" | "announcement")[];
2469
+ } | {
2470
+ provider: "domino";
2471
+ resource: "point-ledger";
2377
2472
  } | {
2378
2473
  provider: "discord";
2379
2474
  resource: "role";
@@ -2470,14 +2565,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2470
2565
  start: number;
2471
2566
  end?: number | undefined;
2472
2567
  };
2473
- enrollment: "required" | "none";
2568
+ enrollment: "none" | "required";
2474
2569
  posts: "after-enrollment" | "since-start";
2475
2570
  historical: "staff" | "automatic" | "claim";
2476
2571
  } | undefined;
2477
2572
  tracker?: {
2478
2573
  tracker: string;
2479
2574
  source: "custom" | "x-search";
2480
- beneficiary: "author" | "replied-to";
2575
+ beneficiary: string;
2576
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
2577
+ where?: {
2578
+ path: string;
2579
+ gt?: number | {
2580
+ setting: string;
2581
+ } | undefined;
2582
+ gte?: number | {
2583
+ setting: string;
2584
+ } | undefined;
2585
+ lt?: number | {
2586
+ setting: string;
2587
+ } | undefined;
2588
+ lte?: number | {
2589
+ setting: string;
2590
+ } | undefined;
2591
+ } | {
2592
+ path: string;
2593
+ equals: string | number | boolean;
2594
+ } | undefined;
2481
2595
  } | undefined;
2482
2596
  } | {
2483
2597
  kind: "manual";
@@ -2498,7 +2612,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2498
2612
  actor?: "member" | "staff" | undefined;
2499
2613
  } | {
2500
2614
  kind: "manual";
2501
- input: "quiz" | "photo" | "none";
2615
+ input: "none" | "quiz" | "photo";
2502
2616
  actor?: "member" | "staff" | undefined;
2503
2617
  };
2504
2618
  requires: {
@@ -2518,7 +2632,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2518
2632
  budgets: {
2519
2633
  id: string;
2520
2634
  scope: "project" | "member";
2521
- period: "day" | "week" | "lifetime";
2635
+ period: "day" | "lifetime" | "week";
2522
2636
  limit: number;
2523
2637
  cost: number | {
2524
2638
  balance: string;
@@ -2574,12 +2688,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2574
2688
  kind: "resource";
2575
2689
  default: string;
2576
2690
  source: {
2577
- provider: "domino";
2578
- resource: "point-ledger";
2579
- } | {
2580
2691
  provider: "discord";
2581
2692
  resource: "channel";
2582
2693
  types: ("text" | "announcement")[];
2694
+ } | {
2695
+ provider: "domino";
2696
+ resource: "point-ledger";
2583
2697
  } | {
2584
2698
  provider: "discord";
2585
2699
  resource: "role";
@@ -2676,14 +2790,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2676
2790
  start: number;
2677
2791
  end?: number | undefined;
2678
2792
  };
2679
- enrollment: "required" | "none";
2793
+ enrollment: "none" | "required";
2680
2794
  posts: "after-enrollment" | "since-start";
2681
2795
  historical: "staff" | "automatic" | "claim";
2682
2796
  } | undefined;
2683
2797
  tracker?: {
2684
2798
  tracker: string;
2685
2799
  source: "custom" | "x-search";
2686
- beneficiary: "author" | "replied-to";
2800
+ beneficiary: string;
2801
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
2802
+ where?: {
2803
+ path: string;
2804
+ gt?: number | {
2805
+ setting: string;
2806
+ } | undefined;
2807
+ gte?: number | {
2808
+ setting: string;
2809
+ } | undefined;
2810
+ lt?: number | {
2811
+ setting: string;
2812
+ } | undefined;
2813
+ lte?: number | {
2814
+ setting: string;
2815
+ } | undefined;
2816
+ } | {
2817
+ path: string;
2818
+ equals: string | number | boolean;
2819
+ } | undefined;
2687
2820
  } | undefined;
2688
2821
  } | {
2689
2822
  kind: "manual";
@@ -2704,7 +2837,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2704
2837
  actor?: "member" | "staff" | undefined;
2705
2838
  } | {
2706
2839
  kind: "manual";
2707
- input: "quiz" | "photo" | "none";
2840
+ input: "none" | "quiz" | "photo";
2708
2841
  actor?: "member" | "staff" | undefined;
2709
2842
  };
2710
2843
  requires: {
@@ -2724,7 +2857,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2724
2857
  budgets: {
2725
2858
  id: string;
2726
2859
  scope: "project" | "member";
2727
- period: "day" | "week" | "lifetime";
2860
+ period: "day" | "lifetime" | "week";
2728
2861
  limit: number;
2729
2862
  cost: number | {
2730
2863
  balance: string;
@@ -2779,12 +2912,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2779
2912
  kind: "resource";
2780
2913
  default: string;
2781
2914
  source: {
2782
- provider: "domino";
2783
- resource: "point-ledger";
2784
- } | {
2785
2915
  provider: "discord";
2786
2916
  resource: "channel";
2787
2917
  types: ("text" | "announcement")[];
2918
+ } | {
2919
+ provider: "domino";
2920
+ resource: "point-ledger";
2788
2921
  } | {
2789
2922
  provider: "discord";
2790
2923
  resource: "role";
@@ -2881,14 +3014,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2881
3014
  start: number;
2882
3015
  end?: number | undefined;
2883
3016
  };
2884
- enrollment: "required" | "none";
3017
+ enrollment: "none" | "required";
2885
3018
  posts: "after-enrollment" | "since-start";
2886
3019
  historical: "staff" | "automatic" | "claim";
2887
3020
  } | undefined;
2888
3021
  tracker?: {
2889
3022
  tracker: string;
2890
3023
  source: "custom" | "x-search";
2891
- beneficiary: "author" | "replied-to";
3024
+ beneficiary: string;
3025
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
3026
+ where?: {
3027
+ path: string;
3028
+ gt?: number | {
3029
+ setting: string;
3030
+ } | undefined;
3031
+ gte?: number | {
3032
+ setting: string;
3033
+ } | undefined;
3034
+ lt?: number | {
3035
+ setting: string;
3036
+ } | undefined;
3037
+ lte?: number | {
3038
+ setting: string;
3039
+ } | undefined;
3040
+ } | {
3041
+ path: string;
3042
+ equals: string | number | boolean;
3043
+ } | undefined;
2892
3044
  } | undefined;
2893
3045
  } | {
2894
3046
  kind: "manual";
@@ -2909,7 +3061,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2909
3061
  actor?: "member" | "staff" | undefined;
2910
3062
  } | {
2911
3063
  kind: "manual";
2912
- input: "quiz" | "photo" | "none";
3064
+ input: "none" | "quiz" | "photo";
2913
3065
  actor?: "member" | "staff" | undefined;
2914
3066
  };
2915
3067
  requires: {
@@ -2929,7 +3081,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2929
3081
  budgets: {
2930
3082
  id: string;
2931
3083
  scope: "project" | "member";
2932
- period: "day" | "week" | "lifetime";
3084
+ period: "day" | "lifetime" | "week";
2933
3085
  limit: number;
2934
3086
  cost: number | {
2935
3087
  balance: string;
@@ -2940,7 +3092,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2940
3092
  id: string;
2941
3093
  createdAt: number;
2942
3094
  legacy: boolean;
2943
- lifecycle: "active" | "paused" | "archived";
3095
+ lifecycle: "paused" | "active" | "archived";
2944
3096
  performance?: {
2945
3097
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2946
3098
  maxAgeMs: number;
@@ -3063,7 +3215,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3063
3215
  quest: string;
3064
3216
  member: string;
3065
3217
  evidence: string | null;
3066
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
3218
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3067
3219
  reason: string | null;
3068
3220
  retries: number;
3069
3221
  generation: number;
@@ -3097,17 +3249,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3097
3249
  })[] | null;
3098
3250
  createdAt: number;
3099
3251
  input?: {
3100
- kind: "quiz";
3101
- answers: {
3102
- [k: string]: string;
3103
- };
3104
- release?: string | undefined;
3105
- } | {
3106
3252
  kind: "text";
3107
3253
  value: string;
3108
3254
  } | {
3109
3255
  kind: "url";
3110
3256
  value: string;
3257
+ } | {
3258
+ kind: "quiz";
3259
+ answers: {
3260
+ [k: string]: string;
3261
+ };
3262
+ release?: string | undefined;
3111
3263
  } | undefined;
3112
3264
  }[];
3113
3265
  balances: {
@@ -3165,12 +3317,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3165
3317
  kind: "resource";
3166
3318
  default: string;
3167
3319
  source: {
3168
- provider: "domino";
3169
- resource: "point-ledger";
3170
- } | {
3171
3320
  provider: "discord";
3172
3321
  resource: "channel";
3173
3322
  types: ("text" | "announcement")[];
3323
+ } | {
3324
+ provider: "domino";
3325
+ resource: "point-ledger";
3174
3326
  } | {
3175
3327
  provider: "discord";
3176
3328
  resource: "role";
@@ -3267,14 +3419,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3267
3419
  start: number;
3268
3420
  end?: number | undefined;
3269
3421
  };
3270
- enrollment: "required" | "none";
3422
+ enrollment: "none" | "required";
3271
3423
  posts: "after-enrollment" | "since-start";
3272
3424
  historical: "staff" | "automatic" | "claim";
3273
3425
  } | undefined;
3274
3426
  tracker?: {
3275
3427
  tracker: string;
3276
3428
  source: "custom" | "x-search";
3277
- beneficiary: "author" | "replied-to";
3429
+ beneficiary: string;
3430
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
3431
+ where?: {
3432
+ path: string;
3433
+ gt?: number | {
3434
+ setting: string;
3435
+ } | undefined;
3436
+ gte?: number | {
3437
+ setting: string;
3438
+ } | undefined;
3439
+ lt?: number | {
3440
+ setting: string;
3441
+ } | undefined;
3442
+ lte?: number | {
3443
+ setting: string;
3444
+ } | undefined;
3445
+ } | {
3446
+ path: string;
3447
+ equals: string | number | boolean;
3448
+ } | undefined;
3278
3449
  } | undefined;
3279
3450
  } | {
3280
3451
  kind: "manual";
@@ -3295,7 +3466,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3295
3466
  actor?: "member" | "staff" | undefined;
3296
3467
  } | {
3297
3468
  kind: "manual";
3298
- input: "quiz" | "photo" | "none";
3469
+ input: "none" | "quiz" | "photo";
3299
3470
  actor?: "member" | "staff" | undefined;
3300
3471
  };
3301
3472
  requires: {
@@ -3315,7 +3486,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3315
3486
  budgets: {
3316
3487
  id: string;
3317
3488
  scope: "project" | "member";
3318
- period: "day" | "week" | "lifetime";
3489
+ period: "day" | "lifetime" | "week";
3319
3490
  limit: number;
3320
3491
  cost: number | {
3321
3492
  balance: string;
@@ -3326,7 +3497,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3326
3497
  id: string;
3327
3498
  createdAt: number;
3328
3499
  legacy: boolean;
3329
- lifecycle: "active" | "paused" | "archived";
3500
+ lifecycle: "paused" | "active" | "archived";
3330
3501
  performance?: {
3331
3502
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3332
3503
  maxAgeMs: number;
@@ -3399,12 +3570,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3399
3570
  kind: "resource";
3400
3571
  default: string;
3401
3572
  source: {
3402
- provider: "domino";
3403
- resource: "point-ledger";
3404
- } | {
3405
3573
  provider: "discord";
3406
3574
  resource: "channel";
3407
3575
  types: ("text" | "announcement")[];
3576
+ } | {
3577
+ provider: "domino";
3578
+ resource: "point-ledger";
3408
3579
  } | {
3409
3580
  provider: "discord";
3410
3581
  resource: "role";
@@ -3501,14 +3672,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3501
3672
  start: number;
3502
3673
  end?: number | undefined;
3503
3674
  };
3504
- enrollment: "required" | "none";
3675
+ enrollment: "none" | "required";
3505
3676
  posts: "after-enrollment" | "since-start";
3506
3677
  historical: "staff" | "automatic" | "claim";
3507
3678
  } | undefined;
3508
3679
  tracker?: {
3509
3680
  tracker: string;
3510
3681
  source: "custom" | "x-search";
3511
- beneficiary: "author" | "replied-to";
3682
+ beneficiary: string;
3683
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
3684
+ where?: {
3685
+ path: string;
3686
+ gt?: number | {
3687
+ setting: string;
3688
+ } | undefined;
3689
+ gte?: number | {
3690
+ setting: string;
3691
+ } | undefined;
3692
+ lt?: number | {
3693
+ setting: string;
3694
+ } | undefined;
3695
+ lte?: number | {
3696
+ setting: string;
3697
+ } | undefined;
3698
+ } | {
3699
+ path: string;
3700
+ equals: string | number | boolean;
3701
+ } | undefined;
3512
3702
  } | undefined;
3513
3703
  } | {
3514
3704
  kind: "manual";
@@ -3529,7 +3719,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3529
3719
  actor?: "member" | "staff" | undefined;
3530
3720
  } | {
3531
3721
  kind: "manual";
3532
- input: "quiz" | "photo" | "none";
3722
+ input: "none" | "quiz" | "photo";
3533
3723
  actor?: "member" | "staff" | undefined;
3534
3724
  };
3535
3725
  requires: {
@@ -3549,7 +3739,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3549
3739
  budgets: {
3550
3740
  id: string;
3551
3741
  scope: "project" | "member";
3552
- period: "day" | "week" | "lifetime";
3742
+ period: "day" | "lifetime" | "week";
3553
3743
  limit: number;
3554
3744
  cost: number | {
3555
3745
  balance: string;
@@ -3560,7 +3750,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3560
3750
  id: string;
3561
3751
  createdAt: number;
3562
3752
  legacy: boolean;
3563
- lifecycle: "active" | "paused" | "archived";
3753
+ lifecycle: "paused" | "active" | "archived";
3564
3754
  performance?: {
3565
3755
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3566
3756
  maxAgeMs: number;
@@ -3619,7 +3809,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3619
3809
  } | undefined;
3620
3810
  } | undefined;
3621
3811
  };
3622
- connections: ("discord" | "google" | "apple" | "x")[];
3812
+ connections: ("x" | "discord" | "google" | "apple")[];
3623
3813
  trigger: {
3624
3814
  kind: "automatic";
3625
3815
  observation?: {
@@ -3632,14 +3822,33 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3632
3822
  start: number;
3633
3823
  end?: number | undefined;
3634
3824
  };
3635
- enrollment: "required" | "none";
3825
+ enrollment: "none" | "required";
3636
3826
  posts: "after-enrollment" | "since-start";
3637
3827
  historical: "staff" | "automatic" | "claim";
3638
3828
  } | undefined;
3639
3829
  tracker?: {
3640
3830
  tracker: string;
3641
3831
  source: "custom" | "x-search";
3642
- beneficiary: "author" | "replied-to";
3832
+ beneficiary: string;
3833
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
3834
+ where?: {
3835
+ path: string;
3836
+ gt?: number | {
3837
+ setting: string;
3838
+ } | undefined;
3839
+ gte?: number | {
3840
+ setting: string;
3841
+ } | undefined;
3842
+ lt?: number | {
3843
+ setting: string;
3844
+ } | undefined;
3845
+ lte?: number | {
3846
+ setting: string;
3847
+ } | undefined;
3848
+ } | {
3849
+ path: string;
3850
+ equals: string | number | boolean;
3851
+ } | undefined;
3643
3852
  } | undefined;
3644
3853
  } | {
3645
3854
  kind: "manual";
@@ -3660,12 +3869,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3660
3869
  actor?: "member" | "staff" | undefined;
3661
3870
  } | {
3662
3871
  kind: "manual";
3663
- input: "quiz" | "photo" | "none";
3872
+ input: "none" | "quiz" | "photo";
3664
3873
  actor?: "member" | "staff" | undefined;
3665
3874
  };
3666
3875
  availability: {
3667
3876
  kind: "available";
3668
- input: "quiz" | "text" | "url" | "photo" | "none";
3877
+ input: "text" | "url" | "none" | "quiz" | "photo";
3669
3878
  } | {
3670
3879
  kind: "completed";
3671
3880
  } | {
@@ -3714,7 +3923,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3714
3923
  quest: string;
3715
3924
  member: string;
3716
3925
  evidence: string | null;
3717
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
3926
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
3718
3927
  reason: string | null;
3719
3928
  retries: number;
3720
3929
  generation: number;
@@ -3748,17 +3957,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
3748
3957
  })[] | null;
3749
3958
  createdAt: number;
3750
3959
  input?: {
3751
- kind: "quiz";
3752
- answers: {
3753
- [k: string]: string;
3754
- };
3755
- release?: string | undefined;
3756
- } | {
3757
3960
  kind: "text";
3758
3961
  value: string;
3759
3962
  } | {
3760
3963
  kind: "url";
3761
3964
  value: string;
3965
+ } | {
3966
+ kind: "quiz";
3967
+ answers: {
3968
+ [k: string]: string;
3969
+ };
3970
+ release?: string | undefined;
3762
3971
  } | undefined;
3763
3972
  } | null;
3764
3973
  key?: string | undefined;
@@ -4140,14 +4349,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4140
4349
  content: {
4141
4350
  performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
4142
4351
  current: {
4143
- state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
4352
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
4144
4353
  reason: string | null;
4145
4354
  contentAttempt: string;
4146
4355
  attempt: string | null;
4147
4356
  reward: {
4148
4357
  attempt: string | null;
4149
4358
  completion: string | null;
4150
- state: "awarded" | "excluded" | "unresolved";
4359
+ state: "excluded" | "unresolved" | "awarded";
4151
4360
  };
4152
4361
  };
4153
4362
  items: {
@@ -4156,7 +4365,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4156
4365
  observation: string;
4157
4366
  observedAt: number;
4158
4367
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
4159
- state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
4368
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
4160
4369
  reason: string | null;
4161
4370
  }[];
4162
4371
  next: number | null;
@@ -4171,12 +4380,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4171
4380
  revision: string;
4172
4381
  observation: string;
4173
4382
  current: boolean;
4174
- state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
4383
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
4175
4384
  reason: string | null;
4176
4385
  reward: {
4177
4386
  attempt: string | null;
4178
4387
  completion: string | null;
4179
- state: "awarded" | "excluded" | "unresolved";
4388
+ state: "excluded" | "unresolved" | "awarded";
4180
4389
  };
4181
4390
  }[];
4182
4391
  next: number | null;
@@ -4186,7 +4395,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4186
4395
  quest: string;
4187
4396
  content: string;
4188
4397
  release: string;
4189
- state: "pending" | "excluded" | "admitted";
4398
+ state: "admitted" | "pending" | "excluded";
4190
4399
  reason: string | null;
4191
4400
  attempt: string | null;
4192
4401
  }[];
@@ -4201,7 +4410,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4201
4410
  quest: string;
4202
4411
  content: string;
4203
4412
  release: string;
4204
- state: "pending" | "excluded" | "admitted";
4413
+ state: "admitted" | "pending" | "excluded";
4205
4414
  reason: string | null;
4206
4415
  attempt: string | null;
4207
4416
  }>;
@@ -4212,7 +4421,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4212
4421
  quest: string;
4213
4422
  member: string;
4214
4423
  evidence: string | null;
4215
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
4424
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4216
4425
  reason: string | null;
4217
4426
  retries: number;
4218
4427
  generation: number;
@@ -4246,17 +4455,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4246
4455
  })[] | null;
4247
4456
  createdAt: number;
4248
4457
  input?: {
4249
- kind: "quiz";
4250
- answers: {
4251
- [k: string]: string;
4252
- };
4253
- release?: string | undefined;
4254
- } | {
4255
4458
  kind: "text";
4256
4459
  value: string;
4257
4460
  } | {
4258
4461
  kind: "url";
4259
4462
  value: string;
4463
+ } | {
4464
+ kind: "quiz";
4465
+ answers: {
4466
+ [k: string]: string;
4467
+ };
4468
+ release?: string | undefined;
4260
4469
  } | undefined;
4261
4470
  }>;
4262
4471
  retry: (id: string) => Promise<{
@@ -4265,7 +4474,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4265
4474
  quest: string;
4266
4475
  member: string;
4267
4476
  evidence: string | null;
4268
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
4477
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4269
4478
  reason: string | null;
4270
4479
  retries: number;
4271
4480
  generation: number;
@@ -4299,17 +4508,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4299
4508
  })[] | null;
4300
4509
  createdAt: number;
4301
4510
  input?: {
4302
- kind: "quiz";
4303
- answers: {
4304
- [k: string]: string;
4305
- };
4306
- release?: string | undefined;
4307
- } | {
4308
4511
  kind: "text";
4309
4512
  value: string;
4310
4513
  } | {
4311
4514
  kind: "url";
4312
4515
  value: string;
4516
+ } | {
4517
+ kind: "quiz";
4518
+ answers: {
4519
+ [k: string]: string;
4520
+ };
4521
+ release?: string | undefined;
4313
4522
  } | undefined;
4314
4523
  }>;
4315
4524
  decide: (id: string, input: {
@@ -4323,7 +4532,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4323
4532
  quest: string;
4324
4533
  member: string;
4325
4534
  evidence: string | null;
4326
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
4535
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
4327
4536
  reason: string | null;
4328
4537
  retries: number;
4329
4538
  generation: number;
@@ -4357,17 +4566,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
4357
4566
  })[] | null;
4358
4567
  createdAt: number;
4359
4568
  input?: {
4360
- kind: "quiz";
4361
- answers: {
4362
- [k: string]: string;
4363
- };
4364
- release?: string | undefined;
4365
- } | {
4366
4569
  kind: "text";
4367
4570
  value: string;
4368
4571
  } | {
4369
4572
  kind: "url";
4370
4573
  value: string;
4574
+ } | {
4575
+ kind: "quiz";
4576
+ answers: {
4577
+ [k: string]: string;
4578
+ };
4579
+ release?: string | undefined;
4371
4580
  } | undefined;
4372
4581
  }>;
4373
4582
  };