@domino-sdk/relay 1.0.0-next.8 → 1.0.0-next.9

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,7 +1,7 @@
1
- import { a as AuthProvider, i as referralAcceptSchema, d as LeaderboardQuery, j as engagementPageQuerySchema, k as contentQualificationQuerySchema, m as contentAdmissionQuerySchema, n as contentEnrollmentInputSchema, o as contentReleaseInputSchema } from './submission-input-C9qm9ixd.js';
2
- import { s as submitSchema, g as contentPerformanceQuerySchema } from './schema-pnuWqvGn.js';
3
- import { r as createRelayClient, q as SubmissionStore, k as RelayRequestOptions, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission } from './client-CK4nwt7V.js';
4
- import { a as PageQuery, e as QuestView, q as questExperienceSchema, f as exchangeSchema } from './pages-BzqJuI69.js';
1
+ import { a as AuthProvider, i as referralAcceptSchema, d as LeaderboardQuery, j as engagementPageQuerySchema, k as contentQualificationQuerySchema, m as contentAdmissionQuerySchema, n as contentEnrollmentInputSchema, o as contentReleaseInputSchema } from './submission-input-0OOGaq8c.js';
2
+ import { s as submitSchema, g as contentPerformanceQuerySchema } from './schema-Di3aLSiK.js';
3
+ import { r as createRelayClient, q as SubmissionStore, k as RelayRequestOptions, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission } from './client-CT4-S5vc.js';
4
+ import { a as PageQuery, e as QuestView, q as questExperienceSchema, f as exchangeSchema } from './pages-D3titw5B.js';
5
5
  import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork, w as walletAddressInputSchema, l as walletSignatureSchema, L as LinkedWallet } from './wallet-BGOfFkG9.js';
6
6
  import { p as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-DDMFBRKe.js';
7
7
  import * as zod from 'zod';
@@ -412,7 +412,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
412
412
  accounts: {
413
413
  id: string;
414
414
  program: string;
415
- kind: "milestone" | "fixed" | "bonus";
415
+ kind: "fixed" | "milestone" | "bonus";
416
416
  balance: string;
417
417
  earned: number;
418
418
  settled: number;
@@ -518,7 +518,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
518
518
  seed: string;
519
519
  } | {
520
520
  source: "account";
521
- provider: "x" | "discord" | "google";
521
+ provider: "discord" | "x" | "google";
522
522
  url: string;
523
523
  seed: string;
524
524
  } | {
@@ -542,7 +542,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
542
542
  seed: string;
543
543
  } | {
544
544
  source: "account";
545
- provider: "x" | "discord" | "google";
545
+ provider: "discord" | "x" | "google";
546
546
  url: string;
547
547
  seed: string;
548
548
  } | {
@@ -566,7 +566,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
566
566
  seed: string;
567
567
  } | {
568
568
  source: "account";
569
- provider: "x" | "discord" | "google";
569
+ provider: "discord" | "x" | "google";
570
570
  url: string;
571
571
  seed: string;
572
572
  } | {
@@ -598,7 +598,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
598
598
  seed: string;
599
599
  } | {
600
600
  source: "account";
601
- provider: "x" | "discord" | "google";
601
+ provider: "discord" | "x" | "google";
602
602
  url: string;
603
603
  seed: string;
604
604
  } | {
@@ -606,13 +606,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
606
606
  seed: string;
607
607
  };
608
608
  displayName: string | null;
609
- avatarChoice: "default" | "upload" | "account" | "generated";
610
- avatarProvider: "x" | "discord" | "google" | null;
609
+ avatarChoice: "default" | "account" | "upload" | "generated";
610
+ avatarProvider: "discord" | "x" | "google" | null;
611
611
  hidden: boolean;
612
612
  locked: boolean;
613
613
  visibility: "private" | "participants" | "public";
614
614
  options: {
615
- provider: "x" | "discord" | "google";
615
+ provider: "discord" | "x" | "google";
616
616
  name: string | null;
617
617
  imageUrl: string | null;
618
618
  }[];
@@ -626,7 +626,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
626
626
  seed: string;
627
627
  } | {
628
628
  source: "account";
629
- provider: "x" | "discord" | "google";
629
+ provider: "discord" | "x" | "google";
630
630
  url: string;
631
631
  seed: string;
632
632
  } | {
@@ -634,13 +634,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
634
634
  seed: string;
635
635
  };
636
636
  displayName: string | null;
637
- avatarChoice: "default" | "upload" | "account" | "generated";
638
- avatarProvider: "x" | "discord" | "google" | null;
637
+ avatarChoice: "default" | "account" | "upload" | "generated";
638
+ avatarProvider: "discord" | "x" | "google" | null;
639
639
  hidden: boolean;
640
640
  locked: boolean;
641
641
  visibility: "private" | "participants" | "public";
642
642
  options: {
643
- provider: "x" | "discord" | "google";
643
+ provider: "discord" | "x" | "google";
644
644
  name: string | null;
645
645
  imageUrl: string | null;
646
646
  }[];
@@ -656,7 +656,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
656
656
  seed: string;
657
657
  } | {
658
658
  source: "account";
659
- provider: "x" | "discord" | "google";
659
+ provider: "discord" | "x" | "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" | "upload" | "account" | "generated";
668
- avatarProvider: "x" | "discord" | "google" | null;
667
+ avatarChoice: "default" | "account" | "upload" | "generated";
668
+ avatarProvider: "discord" | "x" | "google" | null;
669
669
  hidden: boolean;
670
670
  locked: boolean;
671
671
  visibility: "private" | "participants" | "public";
672
672
  options: {
673
- provider: "x" | "discord" | "google";
673
+ provider: "discord" | "x" | "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: "x" | "discord" | "google";
687
+ provider: "discord" | "x" | "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: ("x" | "discord" | "google" | "apple")[];
742
+ connections: ("discord" | "x" | "google" | "apple")[];
743
743
  trigger: {
744
744
  kind: "automatic";
745
745
  observation?: {
@@ -752,9 +752,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
752
752
  start: number;
753
753
  end?: number | undefined;
754
754
  };
755
- enrollment: "none" | "required";
755
+ enrollment: "required" | "none";
756
756
  posts: "after-enrollment" | "since-start";
757
- historical: "automatic" | "claim" | "staff";
757
+ historical: "staff" | "automatic" | "claim";
758
758
  } | undefined;
759
759
  tracker?: {
760
760
  tracker: string;
@@ -778,7 +778,24 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
778
778
  } | {
779
779
  path: string;
780
780
  equals: string | number | boolean;
781
- } | undefined;
781
+ } | ({
782
+ path: string;
783
+ gt?: number | {
784
+ setting: string;
785
+ } | undefined;
786
+ gte?: number | {
787
+ setting: string;
788
+ } | undefined;
789
+ lt?: number | {
790
+ setting: string;
791
+ } | undefined;
792
+ lte?: number | {
793
+ setting: string;
794
+ } | undefined;
795
+ } | {
796
+ path: string;
797
+ equals: string | number | boolean;
798
+ })[] | undefined;
782
799
  } | undefined;
783
800
  } | {
784
801
  kind: "manual";
@@ -788,7 +805,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
788
805
  minLength: number;
789
806
  maxLength: number;
790
807
  };
791
- actor?: "member" | "staff" | undefined;
808
+ actor?: "staff" | "member" | undefined;
792
809
  } | {
793
810
  kind: "manual";
794
811
  input: "url";
@@ -796,15 +813,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
796
813
  required: boolean;
797
814
  allowedHosts?: string[] | undefined;
798
815
  };
799
- actor?: "member" | "staff" | undefined;
816
+ actor?: "staff" | "member" | undefined;
800
817
  } | {
801
818
  kind: "manual";
802
- input: "none" | "quiz" | "photo";
803
- actor?: "member" | "staff" | undefined;
819
+ input: "photo" | "quiz" | "none";
820
+ actor?: "staff" | "member" | undefined;
804
821
  };
805
822
  availability: {
806
823
  kind: "available";
807
- input: "url" | "text" | "none" | "quiz" | "photo";
824
+ input: "text" | "url" | "photo" | "quiz" | "none";
808
825
  } | {
809
826
  kind: "completed";
810
827
  } | {
@@ -888,21 +905,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
888
905
  requestedReview: boolean;
889
906
  createdAt: number;
890
907
  input?: {
891
- kind: "text";
892
- value: string;
893
- } | {
894
- kind: "url";
895
- value: string;
896
- } | {
897
908
  kind: "quiz";
898
909
  answers: {
899
910
  [k: string]: string;
900
911
  };
901
912
  release?: string | undefined;
913
+ } | {
914
+ kind: "text";
915
+ value: string;
916
+ } | {
917
+ kind: "url";
918
+ value: string;
902
919
  } | undefined;
903
920
  } | null;
904
921
  release: string;
905
- interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
922
+ interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
906
923
  lifecycle: "paused" | "active" | "archived";
907
924
  rewards: ({
908
925
  kind: "points";
@@ -999,17 +1016,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
999
1016
  requestedReview: boolean;
1000
1017
  createdAt: number;
1001
1018
  input?: {
1002
- kind: "text";
1003
- value: string;
1004
- } | {
1005
- kind: "url";
1006
- value: string;
1007
- } | {
1008
1019
  kind: "quiz";
1009
1020
  answers: {
1010
1021
  [k: string]: string;
1011
1022
  };
1012
1023
  release?: string | undefined;
1024
+ } | {
1025
+ kind: "text";
1026
+ value: string;
1027
+ } | {
1028
+ kind: "url";
1029
+ value: string;
1013
1030
  } | undefined;
1014
1031
  }>;
1015
1032
  experience: (requestOptions?: RelayRequestOptions) => Promise<{
@@ -1037,7 +1054,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1037
1054
  } | undefined;
1038
1055
  } | undefined;
1039
1056
  };
1040
- connections: ("x" | "discord" | "google" | "apple")[];
1057
+ connections: ("discord" | "x" | "google" | "apple")[];
1041
1058
  trigger: {
1042
1059
  kind: "automatic";
1043
1060
  observation?: {
@@ -1050,9 +1067,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1050
1067
  start: number;
1051
1068
  end?: number | undefined;
1052
1069
  };
1053
- enrollment: "none" | "required";
1070
+ enrollment: "required" | "none";
1054
1071
  posts: "after-enrollment" | "since-start";
1055
- historical: "automatic" | "claim" | "staff";
1072
+ historical: "staff" | "automatic" | "claim";
1056
1073
  } | undefined;
1057
1074
  tracker?: {
1058
1075
  tracker: string;
@@ -1076,7 +1093,24 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1076
1093
  } | {
1077
1094
  path: string;
1078
1095
  equals: string | number | boolean;
1079
- } | undefined;
1096
+ } | ({
1097
+ path: string;
1098
+ gt?: number | {
1099
+ setting: string;
1100
+ } | undefined;
1101
+ gte?: number | {
1102
+ setting: string;
1103
+ } | undefined;
1104
+ lt?: number | {
1105
+ setting: string;
1106
+ } | undefined;
1107
+ lte?: number | {
1108
+ setting: string;
1109
+ } | undefined;
1110
+ } | {
1111
+ path: string;
1112
+ equals: string | number | boolean;
1113
+ })[] | undefined;
1080
1114
  } | undefined;
1081
1115
  } | {
1082
1116
  kind: "manual";
@@ -1086,7 +1120,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1086
1120
  minLength: number;
1087
1121
  maxLength: number;
1088
1122
  };
1089
- actor?: "member" | "staff" | undefined;
1123
+ actor?: "staff" | "member" | undefined;
1090
1124
  } | {
1091
1125
  kind: "manual";
1092
1126
  input: "url";
@@ -1094,15 +1128,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1094
1128
  required: boolean;
1095
1129
  allowedHosts?: string[] | undefined;
1096
1130
  };
1097
- actor?: "member" | "staff" | undefined;
1131
+ actor?: "staff" | "member" | undefined;
1098
1132
  } | {
1099
1133
  kind: "manual";
1100
- input: "none" | "quiz" | "photo";
1101
- actor?: "member" | "staff" | undefined;
1134
+ input: "photo" | "quiz" | "none";
1135
+ actor?: "staff" | "member" | undefined;
1102
1136
  };
1103
1137
  availability: {
1104
1138
  kind: "available";
1105
- input: "url" | "text" | "none" | "quiz" | "photo";
1139
+ input: "text" | "url" | "photo" | "quiz" | "none";
1106
1140
  } | {
1107
1141
  kind: "completed";
1108
1142
  } | {
@@ -1186,21 +1220,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1186
1220
  requestedReview: boolean;
1187
1221
  createdAt: number;
1188
1222
  input?: {
1189
- kind: "text";
1190
- value: string;
1191
- } | {
1192
- kind: "url";
1193
- value: string;
1194
- } | {
1195
1223
  kind: "quiz";
1196
1224
  answers: {
1197
1225
  [k: string]: string;
1198
1226
  };
1199
1227
  release?: string | undefined;
1228
+ } | {
1229
+ kind: "text";
1230
+ value: string;
1231
+ } | {
1232
+ kind: "url";
1233
+ value: string;
1200
1234
  } | undefined;
1201
1235
  } | null;
1202
1236
  release: string;
1203
- interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
1237
+ interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1204
1238
  lifecycle: "paused" | "active" | "archived";
1205
1239
  rewards: ({
1206
1240
  kind: "points";
@@ -1282,7 +1316,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1282
1316
  } | undefined;
1283
1317
  } | undefined;
1284
1318
  };
1285
- connections: ("x" | "discord" | "google" | "apple")[];
1319
+ connections: ("discord" | "x" | "google" | "apple")[];
1286
1320
  trigger: {
1287
1321
  kind: "automatic";
1288
1322
  observation?: {
@@ -1295,9 +1329,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1295
1329
  start: number;
1296
1330
  end?: number | undefined;
1297
1331
  };
1298
- enrollment: "none" | "required";
1332
+ enrollment: "required" | "none";
1299
1333
  posts: "after-enrollment" | "since-start";
1300
- historical: "automatic" | "claim" | "staff";
1334
+ historical: "staff" | "automatic" | "claim";
1301
1335
  } | undefined;
1302
1336
  tracker?: {
1303
1337
  tracker: string;
@@ -1321,7 +1355,24 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1321
1355
  } | {
1322
1356
  path: string;
1323
1357
  equals: string | number | boolean;
1324
- } | undefined;
1358
+ } | ({
1359
+ path: string;
1360
+ gt?: number | {
1361
+ setting: string;
1362
+ } | undefined;
1363
+ gte?: number | {
1364
+ setting: string;
1365
+ } | undefined;
1366
+ lt?: number | {
1367
+ setting: string;
1368
+ } | undefined;
1369
+ lte?: number | {
1370
+ setting: string;
1371
+ } | undefined;
1372
+ } | {
1373
+ path: string;
1374
+ equals: string | number | boolean;
1375
+ })[] | undefined;
1325
1376
  } | undefined;
1326
1377
  } | {
1327
1378
  kind: "manual";
@@ -1331,7 +1382,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1331
1382
  minLength: number;
1332
1383
  maxLength: number;
1333
1384
  };
1334
- actor?: "member" | "staff" | undefined;
1385
+ actor?: "staff" | "member" | undefined;
1335
1386
  } | {
1336
1387
  kind: "manual";
1337
1388
  input: "url";
@@ -1339,15 +1390,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1339
1390
  required: boolean;
1340
1391
  allowedHosts?: string[] | undefined;
1341
1392
  };
1342
- actor?: "member" | "staff" | undefined;
1393
+ actor?: "staff" | "member" | undefined;
1343
1394
  } | {
1344
1395
  kind: "manual";
1345
- input: "none" | "quiz" | "photo";
1346
- actor?: "member" | "staff" | undefined;
1396
+ input: "photo" | "quiz" | "none";
1397
+ actor?: "staff" | "member" | undefined;
1347
1398
  };
1348
1399
  availability: {
1349
1400
  kind: "available";
1350
- input: "url" | "text" | "none" | "quiz" | "photo";
1401
+ input: "text" | "url" | "photo" | "quiz" | "none";
1351
1402
  } | {
1352
1403
  kind: "completed";
1353
1404
  } | {
@@ -1431,21 +1482,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1431
1482
  requestedReview: boolean;
1432
1483
  createdAt: number;
1433
1484
  input?: {
1434
- kind: "text";
1435
- value: string;
1436
- } | {
1437
- kind: "url";
1438
- value: string;
1439
- } | {
1440
1485
  kind: "quiz";
1441
1486
  answers: {
1442
1487
  [k: string]: string;
1443
1488
  };
1444
1489
  release?: string | undefined;
1490
+ } | {
1491
+ kind: "text";
1492
+ value: string;
1493
+ } | {
1494
+ kind: "url";
1495
+ value: string;
1445
1496
  } | undefined;
1446
1497
  } | null;
1447
1498
  release: string;
1448
- interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
1499
+ interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1449
1500
  lifecycle: "paused" | "active" | "archived";
1450
1501
  rewards: ({
1451
1502
  kind: "points";
@@ -1530,7 +1581,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1530
1581
  } | undefined;
1531
1582
  } | undefined;
1532
1583
  };
1533
- connections: ("x" | "discord" | "google" | "apple")[];
1584
+ connections: ("discord" | "x" | "google" | "apple")[];
1534
1585
  trigger: {
1535
1586
  kind: "automatic";
1536
1587
  observation?: {
@@ -1543,9 +1594,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1543
1594
  start: number;
1544
1595
  end?: number | undefined;
1545
1596
  };
1546
- enrollment: "none" | "required";
1597
+ enrollment: "required" | "none";
1547
1598
  posts: "after-enrollment" | "since-start";
1548
- historical: "automatic" | "claim" | "staff";
1599
+ historical: "staff" | "automatic" | "claim";
1549
1600
  } | undefined;
1550
1601
  tracker?: {
1551
1602
  tracker: string;
@@ -1569,7 +1620,24 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1569
1620
  } | {
1570
1621
  path: string;
1571
1622
  equals: string | number | boolean;
1572
- } | undefined;
1623
+ } | ({
1624
+ path: string;
1625
+ gt?: number | {
1626
+ setting: string;
1627
+ } | undefined;
1628
+ gte?: number | {
1629
+ setting: string;
1630
+ } | undefined;
1631
+ lt?: number | {
1632
+ setting: string;
1633
+ } | undefined;
1634
+ lte?: number | {
1635
+ setting: string;
1636
+ } | undefined;
1637
+ } | {
1638
+ path: string;
1639
+ equals: string | number | boolean;
1640
+ })[] | undefined;
1573
1641
  } | undefined;
1574
1642
  } | {
1575
1643
  kind: "manual";
@@ -1579,7 +1647,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1579
1647
  minLength: number;
1580
1648
  maxLength: number;
1581
1649
  };
1582
- actor?: "member" | "staff" | undefined;
1650
+ actor?: "staff" | "member" | undefined;
1583
1651
  } | {
1584
1652
  kind: "manual";
1585
1653
  input: "url";
@@ -1587,15 +1655,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1587
1655
  required: boolean;
1588
1656
  allowedHosts?: string[] | undefined;
1589
1657
  };
1590
- actor?: "member" | "staff" | undefined;
1658
+ actor?: "staff" | "member" | undefined;
1591
1659
  } | {
1592
1660
  kind: "manual";
1593
- input: "none" | "quiz" | "photo";
1594
- actor?: "member" | "staff" | undefined;
1661
+ input: "photo" | "quiz" | "none";
1662
+ actor?: "staff" | "member" | undefined;
1595
1663
  };
1596
1664
  availability: {
1597
1665
  kind: "available";
1598
- input: "url" | "text" | "none" | "quiz" | "photo";
1666
+ input: "text" | "url" | "photo" | "quiz" | "none";
1599
1667
  } | {
1600
1668
  kind: "completed";
1601
1669
  } | {
@@ -1679,21 +1747,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1679
1747
  requestedReview: boolean;
1680
1748
  createdAt: number;
1681
1749
  input?: {
1682
- kind: "text";
1683
- value: string;
1684
- } | {
1685
- kind: "url";
1686
- value: string;
1687
- } | {
1688
1750
  kind: "quiz";
1689
1751
  answers: {
1690
1752
  [k: string]: string;
1691
1753
  };
1692
1754
  release?: string | undefined;
1755
+ } | {
1756
+ kind: "text";
1757
+ value: string;
1758
+ } | {
1759
+ kind: "url";
1760
+ value: string;
1693
1761
  } | undefined;
1694
1762
  } | null;
1695
1763
  release: string;
1696
- interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
1764
+ interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1697
1765
  lifecycle: "paused" | "active" | "archived";
1698
1766
  rewards: ({
1699
1767
  kind: "points";
@@ -1798,7 +1866,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1798
1866
  auth: {
1799
1867
  providers: (requestOptions?: RelayRequestOptions) => Promise<{
1800
1868
  providers: {
1801
- provider: "x" | "discord" | "google" | "apple";
1869
+ provider: "discord" | "x" | "google" | "apple";
1802
1870
  configured: boolean;
1803
1871
  }[];
1804
1872
  email: boolean;
@@ -1880,7 +1948,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1880
1948
  }>;
1881
1949
  };
1882
1950
  accounts: (requestOptions?: RelayRequestOptions) => Promise<{
1883
- provider: "x" | "discord" | "google" | "apple";
1951
+ provider: "discord" | "x" | "google" | "apple";
1884
1952
  configured: boolean;
1885
1953
  status: "disconnected" | "connected" | "reconnect";
1886
1954
  subject: string | null;
@@ -1997,7 +2065,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1997
2065
  } | undefined;
1998
2066
  } | undefined;
1999
2067
  };
2000
- connections: ("x" | "discord" | "google" | "apple")[];
2068
+ connections: ("discord" | "x" | "google" | "apple")[];
2001
2069
  trigger: {
2002
2070
  kind: "automatic";
2003
2071
  observation?: {
@@ -2010,9 +2078,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2010
2078
  start: number;
2011
2079
  end?: number | undefined;
2012
2080
  };
2013
- enrollment: "none" | "required";
2081
+ enrollment: "required" | "none";
2014
2082
  posts: "after-enrollment" | "since-start";
2015
- historical: "automatic" | "claim" | "staff";
2083
+ historical: "staff" | "automatic" | "claim";
2016
2084
  } | undefined;
2017
2085
  tracker?: {
2018
2086
  tracker: string;
@@ -2036,7 +2104,24 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2036
2104
  } | {
2037
2105
  path: string;
2038
2106
  equals: string | number | boolean;
2039
- } | undefined;
2107
+ } | ({
2108
+ path: string;
2109
+ gt?: number | {
2110
+ setting: string;
2111
+ } | undefined;
2112
+ gte?: number | {
2113
+ setting: string;
2114
+ } | undefined;
2115
+ lt?: number | {
2116
+ setting: string;
2117
+ } | undefined;
2118
+ lte?: number | {
2119
+ setting: string;
2120
+ } | undefined;
2121
+ } | {
2122
+ path: string;
2123
+ equals: string | number | boolean;
2124
+ })[] | undefined;
2040
2125
  } | undefined;
2041
2126
  } | {
2042
2127
  kind: "manual";
@@ -2046,7 +2131,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2046
2131
  minLength: number;
2047
2132
  maxLength: number;
2048
2133
  };
2049
- actor?: "member" | "staff" | undefined;
2134
+ actor?: "staff" | "member" | undefined;
2050
2135
  } | {
2051
2136
  kind: "manual";
2052
2137
  input: "url";
@@ -2054,15 +2139,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2054
2139
  required: boolean;
2055
2140
  allowedHosts?: string[] | undefined;
2056
2141
  };
2057
- actor?: "member" | "staff" | undefined;
2142
+ actor?: "staff" | "member" | undefined;
2058
2143
  } | {
2059
2144
  kind: "manual";
2060
- input: "none" | "quiz" | "photo";
2061
- actor?: "member" | "staff" | undefined;
2145
+ input: "photo" | "quiz" | "none";
2146
+ actor?: "staff" | "member" | undefined;
2062
2147
  };
2063
2148
  availability: {
2064
2149
  kind: "available";
2065
- input: "url" | "text" | "none" | "quiz" | "photo";
2150
+ input: "text" | "url" | "photo" | "quiz" | "none";
2066
2151
  } | {
2067
2152
  kind: "completed";
2068
2153
  } | {
@@ -2146,17 +2231,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2146
2231
  requestedReview: boolean;
2147
2232
  createdAt: number;
2148
2233
  input?: {
2149
- kind: "text";
2150
- value: string;
2151
- } | {
2152
- kind: "url";
2153
- value: string;
2154
- } | {
2155
2234
  kind: "quiz";
2156
2235
  answers: {
2157
2236
  [k: string]: string;
2158
2237
  };
2159
2238
  release?: string | undefined;
2239
+ } | {
2240
+ kind: "text";
2241
+ value: string;
2242
+ } | {
2243
+ kind: "url";
2244
+ value: string;
2160
2245
  } | undefined;
2161
2246
  } | null;
2162
2247
  key?: string | undefined;
@@ -2328,17 +2413,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2328
2413
  requestedReview: boolean;
2329
2414
  createdAt: number;
2330
2415
  input?: {
2331
- kind: "text";
2332
- value: string;
2333
- } | {
2334
- kind: "url";
2335
- value: string;
2336
- } | {
2337
2416
  kind: "quiz";
2338
2417
  answers: {
2339
2418
  [k: string]: string;
2340
2419
  };
2341
2420
  release?: string | undefined;
2421
+ } | {
2422
+ kind: "text";
2423
+ value: string;
2424
+ } | {
2425
+ kind: "url";
2426
+ value: string;
2342
2427
  } | undefined;
2343
2428
  }>;
2344
2429
  upload: (file: Blob, requestOptions?: RelayRequestOptions) => Promise<{
@@ -2502,7 +2587,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2502
2587
  quest: string;
2503
2588
  content: string;
2504
2589
  release: string;
2505
- state: "admitted" | "pending" | "excluded";
2590
+ state: "pending" | "excluded" | "admitted";
2506
2591
  reason: string | null;
2507
2592
  attempt: string | null;
2508
2593
  }[];
@@ -2517,7 +2602,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2517
2602
  quest: string;
2518
2603
  content: string;
2519
2604
  release: string;
2520
- state: "admitted" | "pending" | "excluded";
2605
+ state: "pending" | "excluded" | "admitted";
2521
2606
  reason: string | null;
2522
2607
  attempt: string | null;
2523
2608
  }>;