@domino-sdk/relay 1.0.0-next.13 → 1.0.0-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/dist/authoring.d.ts +58 -44
  3. package/dist/authoring.js +58 -45
  4. package/dist/browser.d.ts +111 -151
  5. package/dist/browser.js +6 -6
  6. package/dist/{catalog-C85V1NgW.d.ts → catalog-CVXUHxiO.d.ts} +12 -99
  7. package/dist/{chunk-M64XHC42.js → chunk-76F4LSFP.js} +2 -2
  8. package/dist/{chunk-II7DRZSL.js → chunk-CYD6QMHU.js} +1 -1
  9. package/dist/{chunk-KS33GOUL.js → chunk-EJWDAF7I.js} +4 -4
  10. package/dist/chunk-FJ6O44NE.js +51 -0
  11. package/dist/{chunk-WQ24ILGO.js → chunk-G3YSBMJH.js} +7 -3
  12. package/dist/{chunk-MNQI35OG.js → chunk-HWRBLM7E.js} +3 -3
  13. package/dist/{chunk-CRNQP7NV.js → chunk-J4OYDYJE.js} +693 -676
  14. package/dist/{chunk-OA2KMQVZ.js → chunk-J52HD4AA.js} +11 -1
  15. package/dist/{chunk-EZWNGI5B.js → chunk-RCBJBFLC.js} +4 -4
  16. package/dist/{chunk-FXYJ4OMX.js → chunk-WMTROSYF.js} +1 -1
  17. package/dist/{client-Bf9PNUIi.d.ts → client-dfXT6hhq.d.ts} +7 -47
  18. package/dist/{deployments-CNCP0JnD.d.ts → deployments-C9wkQ06n.d.ts} +109 -125
  19. package/dist/{images-BG4pdO4y.d.ts → images-CRxHUuG5.d.ts} +1 -1
  20. package/dist/index.d.ts +3 -3
  21. package/dist/index.js +5 -5
  22. package/dist/{integrations-EjQzIApL.d.ts → integrations-C1vB6Ry6.d.ts} +93 -1
  23. package/dist/internal.d.ts +13 -4
  24. package/dist/internal.js +10 -4
  25. package/dist/portal-proxy.js +2 -2
  26. package/dist/react/index.d.ts +441 -655
  27. package/dist/react/index.js +1190 -810
  28. package/dist/{schema-BF_TQsmT.d.ts → schema-C4F2K9cm.d.ts} +9 -74
  29. package/dist/schema.d.ts +6 -7
  30. package/dist/schema.js +18 -16
  31. package/dist/server/index.d.ts +125 -233
  32. package/dist/server/index.js +16 -22
  33. package/dist/{trackers-W7nRdRr7.d.ts → trackers-7lxSWp2g.d.ts} +56 -14
  34. package/package.json +4 -2
  35. package/dist/observations-CQ6IcNuQ.d.ts +0 -90
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a6 as referralAcceptSchema, c as LeaderboardQuery, G as engagementPageQuerySchema, s as contentQualificationQuerySchema, i as contentAdmissionQuerySchema, k as contentEnrollmentInputSchema, u as contentReleaseInputSchema } from './referrals-KQfP4pBf.js';
2
- import { ao as submitSchema, x as contentPerformanceQuerySchema } from './schema-BF_TQsmT.js';
3
- import { h as QuestView, J as questExperienceSchema, e as PointHistoryQuery, c as PointEntryKind } from './catalog-C85V1NgW.js';
4
- import { n as createRelayClient, m 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-Bf9PNUIi.js';
2
+ import { ao as submitSchema, x as contentPerformanceQuerySchema } from './schema-C4F2K9cm.js';
3
+ import { h as QuestView, J as questExperienceSchema, e as PointHistoryQuery, c as PointEntryKind } from './catalog-CVXUHxiO.js';
4
+ import { n as createRelayClient, g as RelayError, m 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-dfXT6hhq.js';
5
5
  import { a as PageQuery, f as exchangeSchema } from './pages-KYK1L60W.js';
6
6
  import { a as AuthProvider } from './submission-input-CccwAl5Z.js';
7
7
  import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork, x as walletAddressInputSchema, M as walletSignatureSchema, L as LinkedWallet } from './wallet-BtiG0Xhr.js';
@@ -126,7 +126,7 @@ type SignInMethods = {
126
126
  * Set when the methods could not be read, such as when the network failed: they are then email
127
127
  * alone, and the server has the final say when the participant uses it.
128
128
  */
129
- error?: string;
129
+ error?: RelayError;
130
130
  };
131
131
  /** Which icon to draw: an OAuth provider's logo, a mail icon, or a generic wallet icon. */
132
132
  type SignInIcon = AuthProvider | "email" | "wallet";
@@ -192,7 +192,7 @@ type SignInOptions = {
192
192
  options: SignInOption[];
193
193
  unavailable: SignInUnavailable[];
194
194
  /** Why the project's methods could not be read; the options are then email alone. */
195
- methodsError?: string;
195
+ methodsError?: RelayError;
196
196
  };
197
197
  /**
198
198
  * Every way a participant can sign in to this project from this browser, for apps without React:
@@ -519,7 +519,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
519
519
  seed: string;
520
520
  } | {
521
521
  source: "account";
522
- provider: "discord" | "x" | "google";
522
+ provider: "x" | "discord" | "google";
523
523
  url: string;
524
524
  seed: string;
525
525
  } | {
@@ -543,7 +543,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
543
543
  seed: string;
544
544
  } | {
545
545
  source: "account";
546
- provider: "discord" | "x" | "google";
546
+ provider: "x" | "discord" | "google";
547
547
  url: string;
548
548
  seed: string;
549
549
  } | {
@@ -567,7 +567,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
567
567
  seed: string;
568
568
  } | {
569
569
  source: "account";
570
- provider: "discord" | "x" | "google";
570
+ provider: "x" | "discord" | "google";
571
571
  url: string;
572
572
  seed: string;
573
573
  } | {
@@ -599,7 +599,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
599
599
  seed: string;
600
600
  } | {
601
601
  source: "account";
602
- provider: "discord" | "x" | "google";
602
+ provider: "x" | "discord" | "google";
603
603
  url: string;
604
604
  seed: string;
605
605
  } | {
@@ -607,13 +607,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
607
607
  seed: string;
608
608
  };
609
609
  displayName: string | null;
610
- avatarChoice: "default" | "account" | "upload" | "generated";
611
- avatarProvider: "discord" | "x" | "google" | null;
610
+ avatarChoice: "default" | "upload" | "account" | "generated";
611
+ avatarProvider: "x" | "discord" | "google" | null;
612
612
  hidden: boolean;
613
613
  locked: boolean;
614
614
  visibility: "private" | "participants" | "public";
615
615
  options: {
616
- provider: "discord" | "x" | "google";
616
+ provider: "x" | "discord" | "google";
617
617
  name: string | null;
618
618
  imageUrl: string | null;
619
619
  }[];
@@ -627,7 +627,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
627
627
  seed: string;
628
628
  } | {
629
629
  source: "account";
630
- provider: "discord" | "x" | "google";
630
+ provider: "x" | "discord" | "google";
631
631
  url: string;
632
632
  seed: string;
633
633
  } | {
@@ -635,13 +635,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
635
635
  seed: string;
636
636
  };
637
637
  displayName: string | null;
638
- avatarChoice: "default" | "account" | "upload" | "generated";
639
- avatarProvider: "discord" | "x" | "google" | null;
638
+ avatarChoice: "default" | "upload" | "account" | "generated";
639
+ avatarProvider: "x" | "discord" | "google" | null;
640
640
  hidden: boolean;
641
641
  locked: boolean;
642
642
  visibility: "private" | "participants" | "public";
643
643
  options: {
644
- provider: "discord" | "x" | "google";
644
+ provider: "x" | "discord" | "google";
645
645
  name: string | null;
646
646
  imageUrl: string | null;
647
647
  }[];
@@ -657,7 +657,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
657
657
  seed: string;
658
658
  } | {
659
659
  source: "account";
660
- provider: "discord" | "x" | "google";
660
+ provider: "x" | "discord" | "google";
661
661
  url: string;
662
662
  seed: string;
663
663
  } | {
@@ -665,13 +665,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
665
665
  seed: string;
666
666
  };
667
667
  displayName: string | null;
668
- avatarChoice: "default" | "account" | "upload" | "generated";
669
- avatarProvider: "discord" | "x" | "google" | null;
668
+ avatarChoice: "default" | "upload" | "account" | "generated";
669
+ avatarProvider: "x" | "discord" | "google" | null;
670
670
  hidden: boolean;
671
671
  locked: boolean;
672
672
  visibility: "private" | "participants" | "public";
673
673
  options: {
674
- provider: "discord" | "x" | "google";
674
+ provider: "x" | "discord" | "google";
675
675
  name: string | null;
676
676
  imageUrl: string | null;
677
677
  }[];
@@ -685,7 +685,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
685
685
  seed: string;
686
686
  } | {
687
687
  source: "account";
688
- provider: "discord" | "x" | "google";
688
+ provider: "x" | "discord" | "google";
689
689
  url: string;
690
690
  seed: string;
691
691
  } | {
@@ -740,13 +740,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
740
740
  } | undefined;
741
741
  } | undefined;
742
742
  };
743
- connections: ("discord" | "x" | "google" | "apple")[];
743
+ connections: ("x" | "discord" | "google" | "apple")[];
744
744
  trigger: {
745
745
  kind: "automatic";
746
- observation?: {
747
- source: string;
748
- type: string;
749
- } | undefined;
750
746
  content?: {
751
747
  tracker: string;
752
748
  window: {
@@ -755,11 +751,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
755
751
  };
756
752
  enrollment: "required" | "none";
757
753
  posts: "after-enrollment" | "since-start";
758
- historical: "staff" | "automatic" | "claim";
754
+ historical: "automatic" | "claim" | "staff";
759
755
  } | undefined;
760
756
  tracker?: {
761
757
  tracker: string;
762
- source: "custom" | "x-search";
758
+ source: string;
763
759
  beneficiary: string;
764
760
  on?: "new-record" | "new-observation" | "data-changed" | undefined;
765
761
  where?: {
@@ -806,7 +802,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
806
802
  minLength: number;
807
803
  maxLength: number;
808
804
  };
809
- actor?: "staff" | "member" | undefined;
805
+ actor?: "member" | "staff" | undefined;
810
806
  } | {
811
807
  kind: "manual";
812
808
  input: "url";
@@ -814,15 +810,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
814
810
  required: boolean;
815
811
  allowedHosts?: string[] | undefined;
816
812
  };
817
- actor?: "staff" | "member" | undefined;
813
+ actor?: "member" | "staff" | undefined;
818
814
  } | {
819
815
  kind: "manual";
820
- input: "photo" | "quiz" | "none";
821
- actor?: "staff" | "member" | undefined;
816
+ input: "none" | "quiz" | "photo";
817
+ actor?: "member" | "staff" | undefined;
822
818
  };
823
819
  availability: {
824
820
  kind: "available";
825
- input: "text" | "url" | "photo" | "quiz" | "none";
821
+ input: "url" | "text" | "none" | "quiz" | "photo";
826
822
  } | {
827
823
  kind: "completed";
828
824
  } | {
@@ -835,10 +831,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
835
831
  kind: "staff-required";
836
832
  } | {
837
833
  kind: "automatic";
838
- observation?: {
839
- source: string;
840
- type: string;
841
- } | undefined;
842
834
  } | {
843
835
  kind: "checking";
844
836
  attempt: string;
@@ -905,21 +897,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
905
897
  requestedReview: boolean;
906
898
  createdAt: number;
907
899
  input?: {
908
- kind: "quiz";
909
- answers: {
910
- [k: string]: string;
911
- };
912
- release?: string | undefined;
913
- } | {
914
900
  kind: "text";
915
901
  value: string;
916
902
  } | {
917
903
  kind: "url";
918
904
  value: string;
905
+ } | {
906
+ kind: "quiz";
907
+ answers: {
908
+ [k: string]: string;
909
+ };
910
+ release?: string | undefined;
919
911
  } | undefined;
920
912
  } | null;
921
913
  release: string;
922
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
914
+ interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
923
915
  lifecycle: "paused" | "active" | "archived";
924
916
  rewards: ({
925
917
  kind: "points";
@@ -1016,17 +1008,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1016
1008
  requestedReview: boolean;
1017
1009
  createdAt: number;
1018
1010
  input?: {
1019
- kind: "quiz";
1020
- answers: {
1021
- [k: string]: string;
1022
- };
1023
- release?: string | undefined;
1024
- } | {
1025
1011
  kind: "text";
1026
1012
  value: string;
1027
1013
  } | {
1028
1014
  kind: "url";
1029
1015
  value: string;
1016
+ } | {
1017
+ kind: "quiz";
1018
+ answers: {
1019
+ [k: string]: string;
1020
+ };
1021
+ release?: string | undefined;
1030
1022
  } | undefined;
1031
1023
  }>;
1032
1024
  experience: (requestOptions?: RelayRequestOptions) => Promise<{
@@ -1054,13 +1046,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1054
1046
  } | undefined;
1055
1047
  } | undefined;
1056
1048
  };
1057
- connections: ("discord" | "x" | "google" | "apple")[];
1049
+ connections: ("x" | "discord" | "google" | "apple")[];
1058
1050
  trigger: {
1059
1051
  kind: "automatic";
1060
- observation?: {
1061
- source: string;
1062
- type: string;
1063
- } | undefined;
1064
1052
  content?: {
1065
1053
  tracker: string;
1066
1054
  window: {
@@ -1069,11 +1057,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1069
1057
  };
1070
1058
  enrollment: "required" | "none";
1071
1059
  posts: "after-enrollment" | "since-start";
1072
- historical: "staff" | "automatic" | "claim";
1060
+ historical: "automatic" | "claim" | "staff";
1073
1061
  } | undefined;
1074
1062
  tracker?: {
1075
1063
  tracker: string;
1076
- source: "custom" | "x-search";
1064
+ source: string;
1077
1065
  beneficiary: string;
1078
1066
  on?: "new-record" | "new-observation" | "data-changed" | undefined;
1079
1067
  where?: {
@@ -1120,7 +1108,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1120
1108
  minLength: number;
1121
1109
  maxLength: number;
1122
1110
  };
1123
- actor?: "staff" | "member" | undefined;
1111
+ actor?: "member" | "staff" | undefined;
1124
1112
  } | {
1125
1113
  kind: "manual";
1126
1114
  input: "url";
@@ -1128,15 +1116,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1128
1116
  required: boolean;
1129
1117
  allowedHosts?: string[] | undefined;
1130
1118
  };
1131
- actor?: "staff" | "member" | undefined;
1119
+ actor?: "member" | "staff" | undefined;
1132
1120
  } | {
1133
1121
  kind: "manual";
1134
- input: "photo" | "quiz" | "none";
1135
- actor?: "staff" | "member" | undefined;
1122
+ input: "none" | "quiz" | "photo";
1123
+ actor?: "member" | "staff" | undefined;
1136
1124
  };
1137
1125
  availability: {
1138
1126
  kind: "available";
1139
- input: "text" | "url" | "photo" | "quiz" | "none";
1127
+ input: "url" | "text" | "none" | "quiz" | "photo";
1140
1128
  } | {
1141
1129
  kind: "completed";
1142
1130
  } | {
@@ -1149,10 +1137,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1149
1137
  kind: "staff-required";
1150
1138
  } | {
1151
1139
  kind: "automatic";
1152
- observation?: {
1153
- source: string;
1154
- type: string;
1155
- } | undefined;
1156
1140
  } | {
1157
1141
  kind: "checking";
1158
1142
  attempt: string;
@@ -1219,21 +1203,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1219
1203
  requestedReview: boolean;
1220
1204
  createdAt: number;
1221
1205
  input?: {
1222
- kind: "quiz";
1223
- answers: {
1224
- [k: string]: string;
1225
- };
1226
- release?: string | undefined;
1227
- } | {
1228
1206
  kind: "text";
1229
1207
  value: string;
1230
1208
  } | {
1231
1209
  kind: "url";
1232
1210
  value: string;
1211
+ } | {
1212
+ kind: "quiz";
1213
+ answers: {
1214
+ [k: string]: string;
1215
+ };
1216
+ release?: string | undefined;
1233
1217
  } | undefined;
1234
1218
  } | null;
1235
1219
  release: string;
1236
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1220
+ interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
1237
1221
  lifecycle: "paused" | "active" | "archived";
1238
1222
  rewards: ({
1239
1223
  kind: "points";
@@ -1315,13 +1299,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1315
1299
  } | undefined;
1316
1300
  } | undefined;
1317
1301
  };
1318
- connections: ("discord" | "x" | "google" | "apple")[];
1302
+ connections: ("x" | "discord" | "google" | "apple")[];
1319
1303
  trigger: {
1320
1304
  kind: "automatic";
1321
- observation?: {
1322
- source: string;
1323
- type: string;
1324
- } | undefined;
1325
1305
  content?: {
1326
1306
  tracker: string;
1327
1307
  window: {
@@ -1330,11 +1310,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1330
1310
  };
1331
1311
  enrollment: "required" | "none";
1332
1312
  posts: "after-enrollment" | "since-start";
1333
- historical: "staff" | "automatic" | "claim";
1313
+ historical: "automatic" | "claim" | "staff";
1334
1314
  } | undefined;
1335
1315
  tracker?: {
1336
1316
  tracker: string;
1337
- source: "custom" | "x-search";
1317
+ source: string;
1338
1318
  beneficiary: string;
1339
1319
  on?: "new-record" | "new-observation" | "data-changed" | undefined;
1340
1320
  where?: {
@@ -1381,7 +1361,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1381
1361
  minLength: number;
1382
1362
  maxLength: number;
1383
1363
  };
1384
- actor?: "staff" | "member" | undefined;
1364
+ actor?: "member" | "staff" | undefined;
1385
1365
  } | {
1386
1366
  kind: "manual";
1387
1367
  input: "url";
@@ -1389,15 +1369,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1389
1369
  required: boolean;
1390
1370
  allowedHosts?: string[] | undefined;
1391
1371
  };
1392
- actor?: "staff" | "member" | undefined;
1372
+ actor?: "member" | "staff" | undefined;
1393
1373
  } | {
1394
1374
  kind: "manual";
1395
- input: "photo" | "quiz" | "none";
1396
- actor?: "staff" | "member" | undefined;
1375
+ input: "none" | "quiz" | "photo";
1376
+ actor?: "member" | "staff" | undefined;
1397
1377
  };
1398
1378
  availability: {
1399
1379
  kind: "available";
1400
- input: "text" | "url" | "photo" | "quiz" | "none";
1380
+ input: "url" | "text" | "none" | "quiz" | "photo";
1401
1381
  } | {
1402
1382
  kind: "completed";
1403
1383
  } | {
@@ -1410,10 +1390,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1410
1390
  kind: "staff-required";
1411
1391
  } | {
1412
1392
  kind: "automatic";
1413
- observation?: {
1414
- source: string;
1415
- type: string;
1416
- } | undefined;
1417
1393
  } | {
1418
1394
  kind: "checking";
1419
1395
  attempt: string;
@@ -1480,21 +1456,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1480
1456
  requestedReview: boolean;
1481
1457
  createdAt: number;
1482
1458
  input?: {
1483
- kind: "quiz";
1484
- answers: {
1485
- [k: string]: string;
1486
- };
1487
- release?: string | undefined;
1488
- } | {
1489
1459
  kind: "text";
1490
1460
  value: string;
1491
1461
  } | {
1492
1462
  kind: "url";
1493
1463
  value: string;
1464
+ } | {
1465
+ kind: "quiz";
1466
+ answers: {
1467
+ [k: string]: string;
1468
+ };
1469
+ release?: string | undefined;
1494
1470
  } | undefined;
1495
1471
  } | null;
1496
1472
  release: string;
1497
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1473
+ interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
1498
1474
  lifecycle: "paused" | "active" | "archived";
1499
1475
  rewards: ({
1500
1476
  kind: "points";
@@ -1579,13 +1555,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1579
1555
  } | undefined;
1580
1556
  } | undefined;
1581
1557
  };
1582
- connections: ("discord" | "x" | "google" | "apple")[];
1558
+ connections: ("x" | "discord" | "google" | "apple")[];
1583
1559
  trigger: {
1584
1560
  kind: "automatic";
1585
- observation?: {
1586
- source: string;
1587
- type: string;
1588
- } | undefined;
1589
1561
  content?: {
1590
1562
  tracker: string;
1591
1563
  window: {
@@ -1594,11 +1566,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1594
1566
  };
1595
1567
  enrollment: "required" | "none";
1596
1568
  posts: "after-enrollment" | "since-start";
1597
- historical: "staff" | "automatic" | "claim";
1569
+ historical: "automatic" | "claim" | "staff";
1598
1570
  } | undefined;
1599
1571
  tracker?: {
1600
1572
  tracker: string;
1601
- source: "custom" | "x-search";
1573
+ source: string;
1602
1574
  beneficiary: string;
1603
1575
  on?: "new-record" | "new-observation" | "data-changed" | undefined;
1604
1576
  where?: {
@@ -1645,7 +1617,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1645
1617
  minLength: number;
1646
1618
  maxLength: number;
1647
1619
  };
1648
- actor?: "staff" | "member" | undefined;
1620
+ actor?: "member" | "staff" | undefined;
1649
1621
  } | {
1650
1622
  kind: "manual";
1651
1623
  input: "url";
@@ -1653,15 +1625,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1653
1625
  required: boolean;
1654
1626
  allowedHosts?: string[] | undefined;
1655
1627
  };
1656
- actor?: "staff" | "member" | undefined;
1628
+ actor?: "member" | "staff" | undefined;
1657
1629
  } | {
1658
1630
  kind: "manual";
1659
- input: "photo" | "quiz" | "none";
1660
- actor?: "staff" | "member" | undefined;
1631
+ input: "none" | "quiz" | "photo";
1632
+ actor?: "member" | "staff" | undefined;
1661
1633
  };
1662
1634
  availability: {
1663
1635
  kind: "available";
1664
- input: "text" | "url" | "photo" | "quiz" | "none";
1636
+ input: "url" | "text" | "none" | "quiz" | "photo";
1665
1637
  } | {
1666
1638
  kind: "completed";
1667
1639
  } | {
@@ -1674,10 +1646,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1674
1646
  kind: "staff-required";
1675
1647
  } | {
1676
1648
  kind: "automatic";
1677
- observation?: {
1678
- source: string;
1679
- type: string;
1680
- } | undefined;
1681
1649
  } | {
1682
1650
  kind: "checking";
1683
1651
  attempt: string;
@@ -1744,21 +1712,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1744
1712
  requestedReview: boolean;
1745
1713
  createdAt: number;
1746
1714
  input?: {
1747
- kind: "quiz";
1748
- answers: {
1749
- [k: string]: string;
1750
- };
1751
- release?: string | undefined;
1752
- } | {
1753
1715
  kind: "text";
1754
1716
  value: string;
1755
1717
  } | {
1756
1718
  kind: "url";
1757
1719
  value: string;
1720
+ } | {
1721
+ kind: "quiz";
1722
+ answers: {
1723
+ [k: string]: string;
1724
+ };
1725
+ release?: string | undefined;
1758
1726
  } | undefined;
1759
1727
  } | null;
1760
1728
  release: string;
1761
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1729
+ interaction: "url" | "text" | "automatic" | "claim" | "staff" | "quiz" | "photo";
1762
1730
  lifecycle: "paused" | "active" | "archived";
1763
1731
  rewards: ({
1764
1732
  kind: "points";
@@ -1863,7 +1831,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1863
1831
  auth: {
1864
1832
  providers: (requestOptions?: RelayRequestOptions) => Promise<{
1865
1833
  providers: {
1866
- provider: "discord" | "x" | "google" | "apple";
1834
+ provider: "x" | "discord" | "google" | "apple";
1867
1835
  configured: boolean;
1868
1836
  }[];
1869
1837
  email: boolean;
@@ -1945,7 +1913,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1945
1913
  }>;
1946
1914
  };
1947
1915
  accounts: (requestOptions?: RelayRequestOptions) => Promise<{
1948
- provider: "discord" | "x" | "google" | "apple";
1916
+ provider: "x" | "discord" | "google" | "apple";
1949
1917
  configured: boolean;
1950
1918
  status: "disconnected" | "connected" | "reconnect";
1951
1919
  subject: string | null;
@@ -2062,13 +2030,9 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2062
2030
  } | undefined;
2063
2031
  } | undefined;
2064
2032
  };
2065
- connections: ("discord" | "x" | "google" | "apple")[];
2033
+ connections: ("x" | "discord" | "google" | "apple")[];
2066
2034
  trigger: {
2067
2035
  kind: "automatic";
2068
- observation?: {
2069
- source: string;
2070
- type: string;
2071
- } | undefined;
2072
2036
  content?: {
2073
2037
  tracker: string;
2074
2038
  window: {
@@ -2077,11 +2041,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2077
2041
  };
2078
2042
  enrollment: "required" | "none";
2079
2043
  posts: "after-enrollment" | "since-start";
2080
- historical: "staff" | "automatic" | "claim";
2044
+ historical: "automatic" | "claim" | "staff";
2081
2045
  } | undefined;
2082
2046
  tracker?: {
2083
2047
  tracker: string;
2084
- source: "custom" | "x-search";
2048
+ source: string;
2085
2049
  beneficiary: string;
2086
2050
  on?: "new-record" | "new-observation" | "data-changed" | undefined;
2087
2051
  where?: {
@@ -2128,7 +2092,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2128
2092
  minLength: number;
2129
2093
  maxLength: number;
2130
2094
  };
2131
- actor?: "staff" | "member" | undefined;
2095
+ actor?: "member" | "staff" | undefined;
2132
2096
  } | {
2133
2097
  kind: "manual";
2134
2098
  input: "url";
@@ -2136,15 +2100,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2136
2100
  required: boolean;
2137
2101
  allowedHosts?: string[] | undefined;
2138
2102
  };
2139
- actor?: "staff" | "member" | undefined;
2103
+ actor?: "member" | "staff" | undefined;
2140
2104
  } | {
2141
2105
  kind: "manual";
2142
- input: "photo" | "quiz" | "none";
2143
- actor?: "staff" | "member" | undefined;
2106
+ input: "none" | "quiz" | "photo";
2107
+ actor?: "member" | "staff" | undefined;
2144
2108
  };
2145
2109
  availability: {
2146
2110
  kind: "available";
2147
- input: "text" | "url" | "photo" | "quiz" | "none";
2111
+ input: "url" | "text" | "none" | "quiz" | "photo";
2148
2112
  } | {
2149
2113
  kind: "completed";
2150
2114
  } | {
@@ -2157,10 +2121,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2157
2121
  kind: "staff-required";
2158
2122
  } | {
2159
2123
  kind: "automatic";
2160
- observation?: {
2161
- source: string;
2162
- type: string;
2163
- } | undefined;
2164
2124
  } | {
2165
2125
  kind: "checking";
2166
2126
  attempt: string;
@@ -2227,17 +2187,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2227
2187
  requestedReview: boolean;
2228
2188
  createdAt: number;
2229
2189
  input?: {
2230
- kind: "quiz";
2231
- answers: {
2232
- [k: string]: string;
2233
- };
2234
- release?: string | undefined;
2235
- } | {
2236
2190
  kind: "text";
2237
2191
  value: string;
2238
2192
  } | {
2239
2193
  kind: "url";
2240
2194
  value: string;
2195
+ } | {
2196
+ kind: "quiz";
2197
+ answers: {
2198
+ [k: string]: string;
2199
+ };
2200
+ release?: string | undefined;
2241
2201
  } | undefined;
2242
2202
  } | null;
2243
2203
  key?: string | undefined;
@@ -2431,17 +2391,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2431
2391
  requestedReview: boolean;
2432
2392
  createdAt: number;
2433
2393
  input?: {
2434
- kind: "quiz";
2435
- answers: {
2436
- [k: string]: string;
2437
- };
2438
- release?: string | undefined;
2439
- } | {
2440
2394
  kind: "text";
2441
2395
  value: string;
2442
2396
  } | {
2443
2397
  kind: "url";
2444
2398
  value: string;
2399
+ } | {
2400
+ kind: "quiz";
2401
+ answers: {
2402
+ [k: string]: string;
2403
+ };
2404
+ release?: string | undefined;
2445
2405
  } | undefined;
2446
2406
  }>;
2447
2407
  upload: (file: Blob, requestOptions?: RelayRequestOptions) => Promise<{
@@ -2605,7 +2565,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2605
2565
  quest: string;
2606
2566
  content: string;
2607
2567
  release: string;
2608
- state: "pending" | "excluded" | "admitted";
2568
+ state: "excluded" | "admitted" | "pending";
2609
2569
  reason: string | null;
2610
2570
  attempt: string | null;
2611
2571
  }[];
@@ -2620,7 +2580,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2620
2580
  quest: string;
2621
2581
  content: string;
2622
2582
  release: string;
2623
- state: "pending" | "excluded" | "admitted";
2583
+ state: "excluded" | "admitted" | "pending";
2624
2584
  reason: string | null;
2625
2585
  attempt: string | null;
2626
2586
  }>;