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

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
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
2
  import { ao as submitSchema, x as contentPerformanceQuerySchema } from './schema-BF_TQsmT.js';
3
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';
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-Bf9PNUIi.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:
@@ -415,7 +415,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
415
415
  accounts: {
416
416
  id: string;
417
417
  program: string;
418
- kind: "fixed" | "milestone" | "bonus";
418
+ kind: "milestone" | "fixed" | "bonus";
419
419
  balance: string;
420
420
  earned: number;
421
421
  settled: number;
@@ -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" | "account" | "generated" | "upload";
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" | "account" | "generated" | "upload";
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" | "account" | "generated" | "upload";
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,7 +740,7 @@ 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
746
  observation?: {
@@ -806,7 +806,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
806
806
  minLength: number;
807
807
  maxLength: number;
808
808
  };
809
- actor?: "staff" | "member" | undefined;
809
+ actor?: "member" | "staff" | undefined;
810
810
  } | {
811
811
  kind: "manual";
812
812
  input: "url";
@@ -814,15 +814,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
814
814
  required: boolean;
815
815
  allowedHosts?: string[] | undefined;
816
816
  };
817
- actor?: "staff" | "member" | undefined;
817
+ actor?: "member" | "staff" | undefined;
818
818
  } | {
819
819
  kind: "manual";
820
- input: "photo" | "quiz" | "none";
821
- actor?: "staff" | "member" | undefined;
820
+ input: "quiz" | "photo" | "none";
821
+ actor?: "member" | "staff" | undefined;
822
822
  };
823
823
  availability: {
824
824
  kind: "available";
825
- input: "text" | "url" | "photo" | "quiz" | "none";
825
+ input: "quiz" | "url" | "text" | "photo" | "none";
826
826
  } | {
827
827
  kind: "completed";
828
828
  } | {
@@ -859,7 +859,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
859
859
  kind: "keyed";
860
860
  };
861
861
  completionCount: number;
862
- visibility: "visible" | "hidden";
862
+ visibility: "hidden" | "visible";
863
863
  missing: {
864
864
  quest: string;
865
865
  title: string;
@@ -870,7 +870,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
870
870
  quest: string;
871
871
  member: string;
872
872
  evidence: string | null;
873
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
873
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
874
874
  reason: string | null;
875
875
  retries: number;
876
876
  generation: number;
@@ -919,8 +919,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
919
919
  } | undefined;
920
920
  } | null;
921
921
  release: string;
922
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
923
- lifecycle: "paused" | "active" | "archived";
922
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
923
+ lifecycle: "active" | "paused" | "archived";
924
924
  rewards: ({
925
925
  kind: "points";
926
926
  label: string;
@@ -981,7 +981,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
981
981
  quest: string;
982
982
  member: string;
983
983
  evidence: string | null;
984
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
984
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
985
985
  reason: string | null;
986
986
  retries: number;
987
987
  generation: number;
@@ -1054,7 +1054,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1054
1054
  } | undefined;
1055
1055
  } | undefined;
1056
1056
  };
1057
- connections: ("discord" | "x" | "google" | "apple")[];
1057
+ connections: ("x" | "discord" | "google" | "apple")[];
1058
1058
  trigger: {
1059
1059
  kind: "automatic";
1060
1060
  observation?: {
@@ -1120,7 +1120,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1120
1120
  minLength: number;
1121
1121
  maxLength: number;
1122
1122
  };
1123
- actor?: "staff" | "member" | undefined;
1123
+ actor?: "member" | "staff" | undefined;
1124
1124
  } | {
1125
1125
  kind: "manual";
1126
1126
  input: "url";
@@ -1128,15 +1128,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1128
1128
  required: boolean;
1129
1129
  allowedHosts?: string[] | undefined;
1130
1130
  };
1131
- actor?: "staff" | "member" | undefined;
1131
+ actor?: "member" | "staff" | undefined;
1132
1132
  } | {
1133
1133
  kind: "manual";
1134
- input: "photo" | "quiz" | "none";
1135
- actor?: "staff" | "member" | undefined;
1134
+ input: "quiz" | "photo" | "none";
1135
+ actor?: "member" | "staff" | undefined;
1136
1136
  };
1137
1137
  availability: {
1138
1138
  kind: "available";
1139
- input: "text" | "url" | "photo" | "quiz" | "none";
1139
+ input: "quiz" | "url" | "text" | "photo" | "none";
1140
1140
  } | {
1141
1141
  kind: "completed";
1142
1142
  } | {
@@ -1173,7 +1173,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1173
1173
  kind: "keyed";
1174
1174
  };
1175
1175
  completionCount: number;
1176
- visibility: "visible" | "hidden";
1176
+ visibility: "hidden" | "visible";
1177
1177
  missing: {
1178
1178
  quest: string;
1179
1179
  title: string;
@@ -1184,7 +1184,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1184
1184
  quest: string;
1185
1185
  member: string;
1186
1186
  evidence: string | null;
1187
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1187
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1188
1188
  reason: string | null;
1189
1189
  retries: number;
1190
1190
  generation: number;
@@ -1233,8 +1233,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1233
1233
  } | undefined;
1234
1234
  } | null;
1235
1235
  release: string;
1236
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1237
- lifecycle: "paused" | "active" | "archived";
1236
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1237
+ lifecycle: "active" | "paused" | "archived";
1238
1238
  rewards: ({
1239
1239
  kind: "points";
1240
1240
  label: string;
@@ -1315,7 +1315,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1315
1315
  } | undefined;
1316
1316
  } | undefined;
1317
1317
  };
1318
- connections: ("discord" | "x" | "google" | "apple")[];
1318
+ connections: ("x" | "discord" | "google" | "apple")[];
1319
1319
  trigger: {
1320
1320
  kind: "automatic";
1321
1321
  observation?: {
@@ -1381,7 +1381,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1381
1381
  minLength: number;
1382
1382
  maxLength: number;
1383
1383
  };
1384
- actor?: "staff" | "member" | undefined;
1384
+ actor?: "member" | "staff" | undefined;
1385
1385
  } | {
1386
1386
  kind: "manual";
1387
1387
  input: "url";
@@ -1389,15 +1389,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1389
1389
  required: boolean;
1390
1390
  allowedHosts?: string[] | undefined;
1391
1391
  };
1392
- actor?: "staff" | "member" | undefined;
1392
+ actor?: "member" | "staff" | undefined;
1393
1393
  } | {
1394
1394
  kind: "manual";
1395
- input: "photo" | "quiz" | "none";
1396
- actor?: "staff" | "member" | undefined;
1395
+ input: "quiz" | "photo" | "none";
1396
+ actor?: "member" | "staff" | undefined;
1397
1397
  };
1398
1398
  availability: {
1399
1399
  kind: "available";
1400
- input: "text" | "url" | "photo" | "quiz" | "none";
1400
+ input: "quiz" | "url" | "text" | "photo" | "none";
1401
1401
  } | {
1402
1402
  kind: "completed";
1403
1403
  } | {
@@ -1434,7 +1434,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1434
1434
  kind: "keyed";
1435
1435
  };
1436
1436
  completionCount: number;
1437
- visibility: "visible" | "hidden";
1437
+ visibility: "hidden" | "visible";
1438
1438
  missing: {
1439
1439
  quest: string;
1440
1440
  title: string;
@@ -1445,7 +1445,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1445
1445
  quest: string;
1446
1446
  member: string;
1447
1447
  evidence: string | null;
1448
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1448
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1449
1449
  reason: string | null;
1450
1450
  retries: number;
1451
1451
  generation: number;
@@ -1494,8 +1494,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1494
1494
  } | undefined;
1495
1495
  } | null;
1496
1496
  release: string;
1497
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1498
- lifecycle: "paused" | "active" | "archived";
1497
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1498
+ lifecycle: "active" | "paused" | "archived";
1499
1499
  rewards: ({
1500
1500
  kind: "points";
1501
1501
  label: string;
@@ -1579,7 +1579,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1579
1579
  } | undefined;
1580
1580
  } | undefined;
1581
1581
  };
1582
- connections: ("discord" | "x" | "google" | "apple")[];
1582
+ connections: ("x" | "discord" | "google" | "apple")[];
1583
1583
  trigger: {
1584
1584
  kind: "automatic";
1585
1585
  observation?: {
@@ -1645,7 +1645,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1645
1645
  minLength: number;
1646
1646
  maxLength: number;
1647
1647
  };
1648
- actor?: "staff" | "member" | undefined;
1648
+ actor?: "member" | "staff" | undefined;
1649
1649
  } | {
1650
1650
  kind: "manual";
1651
1651
  input: "url";
@@ -1653,15 +1653,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1653
1653
  required: boolean;
1654
1654
  allowedHosts?: string[] | undefined;
1655
1655
  };
1656
- actor?: "staff" | "member" | undefined;
1656
+ actor?: "member" | "staff" | undefined;
1657
1657
  } | {
1658
1658
  kind: "manual";
1659
- input: "photo" | "quiz" | "none";
1660
- actor?: "staff" | "member" | undefined;
1659
+ input: "quiz" | "photo" | "none";
1660
+ actor?: "member" | "staff" | undefined;
1661
1661
  };
1662
1662
  availability: {
1663
1663
  kind: "available";
1664
- input: "text" | "url" | "photo" | "quiz" | "none";
1664
+ input: "quiz" | "url" | "text" | "photo" | "none";
1665
1665
  } | {
1666
1666
  kind: "completed";
1667
1667
  } | {
@@ -1698,7 +1698,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1698
1698
  kind: "keyed";
1699
1699
  };
1700
1700
  completionCount: number;
1701
- visibility: "visible" | "hidden";
1701
+ visibility: "hidden" | "visible";
1702
1702
  missing: {
1703
1703
  quest: string;
1704
1704
  title: string;
@@ -1709,7 +1709,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1709
1709
  quest: string;
1710
1710
  member: string;
1711
1711
  evidence: string | null;
1712
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
1712
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
1713
1713
  reason: string | null;
1714
1714
  retries: number;
1715
1715
  generation: number;
@@ -1758,8 +1758,8 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1758
1758
  } | undefined;
1759
1759
  } | null;
1760
1760
  release: string;
1761
- interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
1762
- lifecycle: "paused" | "active" | "archived";
1761
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
1762
+ lifecycle: "active" | "paused" | "archived";
1763
1763
  rewards: ({
1764
1764
  kind: "points";
1765
1765
  label: string;
@@ -1863,7 +1863,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1863
1863
  auth: {
1864
1864
  providers: (requestOptions?: RelayRequestOptions) => Promise<{
1865
1865
  providers: {
1866
- provider: "discord" | "x" | "google" | "apple";
1866
+ provider: "x" | "discord" | "google" | "apple";
1867
1867
  configured: boolean;
1868
1868
  }[];
1869
1869
  email: boolean;
@@ -1945,7 +1945,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1945
1945
  }>;
1946
1946
  };
1947
1947
  accounts: (requestOptions?: RelayRequestOptions) => Promise<{
1948
- provider: "discord" | "x" | "google" | "apple";
1948
+ provider: "x" | "discord" | "google" | "apple";
1949
1949
  configured: boolean;
1950
1950
  status: "disconnected" | "connected" | "reconnect";
1951
1951
  subject: string | null;
@@ -2062,7 +2062,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2062
2062
  } | undefined;
2063
2063
  } | undefined;
2064
2064
  };
2065
- connections: ("discord" | "x" | "google" | "apple")[];
2065
+ connections: ("x" | "discord" | "google" | "apple")[];
2066
2066
  trigger: {
2067
2067
  kind: "automatic";
2068
2068
  observation?: {
@@ -2128,7 +2128,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2128
2128
  minLength: number;
2129
2129
  maxLength: number;
2130
2130
  };
2131
- actor?: "staff" | "member" | undefined;
2131
+ actor?: "member" | "staff" | undefined;
2132
2132
  } | {
2133
2133
  kind: "manual";
2134
2134
  input: "url";
@@ -2136,15 +2136,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2136
2136
  required: boolean;
2137
2137
  allowedHosts?: string[] | undefined;
2138
2138
  };
2139
- actor?: "staff" | "member" | undefined;
2139
+ actor?: "member" | "staff" | undefined;
2140
2140
  } | {
2141
2141
  kind: "manual";
2142
- input: "photo" | "quiz" | "none";
2143
- actor?: "staff" | "member" | undefined;
2142
+ input: "quiz" | "photo" | "none";
2143
+ actor?: "member" | "staff" | undefined;
2144
2144
  };
2145
2145
  availability: {
2146
2146
  kind: "available";
2147
- input: "text" | "url" | "photo" | "quiz" | "none";
2147
+ input: "quiz" | "url" | "text" | "photo" | "none";
2148
2148
  } | {
2149
2149
  kind: "completed";
2150
2150
  } | {
@@ -2181,7 +2181,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2181
2181
  kind: "keyed";
2182
2182
  };
2183
2183
  completionCount: number;
2184
- visibility: "visible" | "hidden";
2184
+ visibility: "hidden" | "visible";
2185
2185
  missing: {
2186
2186
  quest: string;
2187
2187
  title: string;
@@ -2192,7 +2192,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2192
2192
  quest: string;
2193
2193
  member: string;
2194
2194
  evidence: string | null;
2195
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2195
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2196
2196
  reason: string | null;
2197
2197
  retries: number;
2198
2198
  generation: number;
@@ -2396,7 +2396,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2396
2396
  quest: string;
2397
2397
  member: string;
2398
2398
  evidence: string | null;
2399
- status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
2399
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
2400
2400
  reason: string | null;
2401
2401
  retries: number;
2402
2402
  generation: number;
@@ -2467,7 +2467,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2467
2467
  maxAgeMs: number;
2468
2468
  budgets: {
2469
2469
  scope: "member" | "project";
2470
- period: "lifetime" | "day" | "week" | "month";
2470
+ period: "day" | "lifetime" | "week" | "month";
2471
2471
  limit: number;
2472
2472
  }[];
2473
2473
  };
@@ -2512,7 +2512,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2512
2512
  maxAgeMs: number;
2513
2513
  budgets: {
2514
2514
  scope: "member" | "project";
2515
- period: "lifetime" | "day" | "week" | "month";
2515
+ period: "day" | "lifetime" | "week" | "month";
2516
2516
  limit: number;
2517
2517
  }[];
2518
2518
  };
@@ -2529,7 +2529,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2529
2529
  maxAgeMs: number;
2530
2530
  budgets: {
2531
2531
  scope: "member" | "project";
2532
- period: "lifetime" | "day" | "week" | "month";
2532
+ period: "day" | "lifetime" | "week" | "month";
2533
2533
  limit: number;
2534
2534
  }[];
2535
2535
  };
@@ -2559,14 +2559,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2559
2559
  content: {
2560
2560
  performance: (query: zod.input<typeof contentPerformanceQuerySchema>, requestOptions?: RelayRequestOptions) => Promise<{
2561
2561
  current: {
2562
- state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
2562
+ state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
2563
2563
  reason: string | null;
2564
2564
  contentAttempt: string;
2565
2565
  attempt: string | null;
2566
2566
  reward: {
2567
2567
  attempt: string | null;
2568
2568
  completion: string | null;
2569
- state: "excluded" | "unresolved" | "awarded";
2569
+ state: "awarded" | "excluded" | "unresolved";
2570
2570
  };
2571
2571
  };
2572
2572
  items: {
@@ -2575,7 +2575,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2575
2575
  observation: string;
2576
2576
  observedAt: number;
2577
2577
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
2578
- state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
2578
+ state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
2579
2579
  reason: string | null;
2580
2580
  }[];
2581
2581
  nextCursor: string | null;
@@ -2590,12 +2590,12 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2590
2590
  revision: string;
2591
2591
  observation: string;
2592
2592
  current: boolean;
2593
- state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
2593
+ state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "blocked" | "unavailable";
2594
2594
  reason: string | null;
2595
2595
  reward: {
2596
2596
  attempt: string | null;
2597
2597
  completion: string | null;
2598
- state: "excluded" | "unresolved" | "awarded";
2598
+ state: "awarded" | "excluded" | "unresolved";
2599
2599
  };
2600
2600
  }[];
2601
2601
  nextCursor: string | null;
package/dist/browser.js CHANGED
@@ -11,10 +11,10 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-WQ24ILGO.js";
15
- import "./chunk-EZWNGI5B.js";
16
- import "./chunk-M64XHC42.js";
17
- import "./chunk-OA2KMQVZ.js";
14
+ } from "./chunk-FWRP6YAQ.js";
15
+ import "./chunk-F5OCJE52.js";
16
+ import "./chunk-K4ANDR6G.js";
17
+ import "./chunk-TLGCEVG5.js";
18
18
  import "./chunk-FXYJ4OMX.js";
19
19
  import "./chunk-CRNQP7NV.js";
20
20
  export {
@@ -6,7 +6,7 @@ import {
6
6
  pointLedgerReferenceSchema,
7
7
  questExperienceSchema,
8
8
  rewardDeliveriesSchema
9
- } from "./chunk-M64XHC42.js";
9
+ } from "./chunk-K4ANDR6G.js";
10
10
  import {
11
11
  AVATAR_UPLOAD_LIMIT,
12
12
  RelayError,
@@ -38,7 +38,7 @@ import {
38
38
  walletSignInNetworksSchema,
39
39
  walletSignatureSchema,
40
40
  walletUnlinkInputSchema
41
- } from "./chunk-OA2KMQVZ.js";
41
+ } from "./chunk-TLGCEVG5.js";
42
42
  import {
43
43
  exchangeResultSchema,
44
44
  exchangeSchema,
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-EZWNGI5B.js";
3
+ } from "./chunk-F5OCJE52.js";
4
4
  import {
5
5
  RelayErrorCode,
6
+ asRelayError,
6
7
  clientError,
7
8
  cosmosChain
8
- } from "./chunk-OA2KMQVZ.js";
9
+ } from "./chunk-TLGCEVG5.js";
9
10
 
10
11
  // src/base58.ts
11
12
  var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
@@ -448,7 +449,10 @@ async function readSignInMethods(relay) {
448
449
  providers: [],
449
450
  email: true,
450
451
  wallets: [],
451
- error: cause instanceof Error && cause.message ? cause.message : "Couldn't read the project's sign-in methods."
452
+ error: asRelayError(
453
+ cause,
454
+ "Couldn't read the project's sign-in methods."
455
+ )
452
456
  };
453
457
  }
454
458
  }
@@ -9,7 +9,7 @@ import {
9
9
  pointLedgerSchema,
10
10
  questCollectionSchema,
11
11
  questTypeVersionSchema
12
- } from "./chunk-M64XHC42.js";
12
+ } from "./chunk-K4ANDR6G.js";
13
13
  import {
14
14
  engagementArtifactSchema,
15
15
  engagementDeploymentEntrySchema,
@@ -17,7 +17,7 @@ import {
17
17
  leaderboardPreviewSchema,
18
18
  publishedReferralSchema,
19
19
  referralArtifactSchema
20
- } from "./chunk-OA2KMQVZ.js";
20
+ } from "./chunk-TLGCEVG5.js";
21
21
  import {
22
22
  identifier,
23
23
  projectCalendarDeclarationSchema,