@domino-sdk/relay 1.0.0-next.10 → 1.0.0-next.13
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/authoring.d.ts +39 -36
- package/dist/authoring.js +10 -3
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +153 -129
- package/dist/browser.js +6 -6
- package/dist/{pages-D3titw5B.d.ts → catalog-C85V1NgW.d.ts} +178 -216
- package/dist/{chunk-ZWY3R6B3.js → chunk-6A2V4L3T.js} +4 -0
- package/dist/{chunk-YYD4QUBO.js → chunk-CRNQP7NV.js} +550 -470
- package/dist/{chunk-X2F2RAR3.js → chunk-EZWNGI5B.js} +23 -4
- package/dist/{chunk-7Q4BGGT6.js → chunk-FXYJ4OMX.js} +1 -1
- package/dist/{chunk-4LBUTHD6.js → chunk-II7DRZSL.js} +1 -1
- package/dist/chunk-KS33GOUL.js +83 -0
- package/dist/{chunk-QR7ZA2BJ.js → chunk-M64XHC42.js} +48 -4
- package/dist/chunk-MNQI35OG.js +100 -0
- package/dist/{chunk-PHU5VDLR.js → chunk-OA2KMQVZ.js} +41 -26
- package/dist/{chunk-P6FK43GG.js → chunk-WQ24ILGO.js} +140 -41
- package/dist/{client-CT4-S5vc.d.ts → client-Bf9PNUIi.d.ts} +61 -80
- package/dist/deployments-CNCP0JnD.d.ts +4250 -0
- package/dist/identity-integration-CBR8l3ju.d.ts +37 -0
- package/dist/images-BG4pdO4y.d.ts +234 -0
- package/dist/index.d.ts +10 -8
- package/dist/index.js +8 -5
- package/dist/{integrations-Ba5TtqTv.d.ts → integrations-EjQzIApL.d.ts} +1 -88
- package/dist/internal.d.ts +7 -38
- package/dist/internal.js +15 -88
- package/dist/observations-CQ6IcNuQ.d.ts +90 -0
- package/dist/pages-KYK1L60W.d.ts +152 -0
- package/dist/portal-proxy.js +5 -4
- package/dist/{profiles-DDMFBRKe.d.ts → profiles-BtOXMGcC.d.ts} +1 -1
- package/dist/react/index.d.ts +150 -31
- package/dist/react/index.js +149 -11
- package/dist/{submission-input-0OOGaq8c.d.ts → referrals-KQfP4pBf.d.ts} +189 -182
- package/dist/request-error-VnTiMXc3.d.ts +52 -0
- package/dist/{schema-Di3aLSiK.d.ts → schema-BF_TQsmT.d.ts} +338 -47
- package/dist/schema.d.ts +14 -4126
- package/dist/schema.js +46 -40
- package/dist/server/index.d.ts +19445 -0
- package/dist/server/index.js +1884 -0
- package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
- package/dist/submission-input-CccwAl5Z.d.ts +83 -0
- package/dist/{images-BTgk6OmC.d.ts → trackers-W7nRdRr7.d.ts} +1 -232
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -0
- package/dist/{wallet-BGOfFkG9.d.ts → wallet-BtiG0Xhr.d.ts} +1 -1
- package/package.json +5 -1
- package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
package/dist/browser.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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';
|
|
5
|
+
import { a as PageQuery, f as exchangeSchema } from './pages-KYK1L60W.js';
|
|
6
|
+
import { a as AuthProvider } from './submission-input-CccwAl5Z.js';
|
|
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';
|
|
8
|
+
import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-BtOXMGcC.js';
|
|
7
9
|
import * as zod from 'zod';
|
|
10
|
+
import './request-error-VnTiMXc3.js';
|
|
8
11
|
|
|
9
12
|
/** An EIP-1193 provider, such as `window.ethereum` or an EIP-6963 announcement's provider. */
|
|
10
13
|
type Eip1193Provider = {
|
|
@@ -467,7 +470,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
467
470
|
} | {
|
|
468
471
|
kind: "calendar";
|
|
469
472
|
period: "day" | "week" | "month";
|
|
470
|
-
timeZone: string;
|
|
471
473
|
};
|
|
472
474
|
kind: "earned";
|
|
473
475
|
quests?: string[] | undefined;
|
|
@@ -485,7 +487,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
485
487
|
} | {
|
|
486
488
|
kind: "calendar";
|
|
487
489
|
period: "day" | "week" | "month";
|
|
488
|
-
timeZone: string;
|
|
489
490
|
};
|
|
490
491
|
};
|
|
491
492
|
access: "participants" | "public";
|
|
@@ -518,7 +519,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
518
519
|
seed: string;
|
|
519
520
|
} | {
|
|
520
521
|
source: "account";
|
|
521
|
-
provider: "
|
|
522
|
+
provider: "discord" | "x" | "google";
|
|
522
523
|
url: string;
|
|
523
524
|
seed: string;
|
|
524
525
|
} | {
|
|
@@ -542,7 +543,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
542
543
|
seed: string;
|
|
543
544
|
} | {
|
|
544
545
|
source: "account";
|
|
545
|
-
provider: "
|
|
546
|
+
provider: "discord" | "x" | "google";
|
|
546
547
|
url: string;
|
|
547
548
|
seed: string;
|
|
548
549
|
} | {
|
|
@@ -566,7 +567,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
566
567
|
seed: string;
|
|
567
568
|
} | {
|
|
568
569
|
source: "account";
|
|
569
|
-
provider: "
|
|
570
|
+
provider: "discord" | "x" | "google";
|
|
570
571
|
url: string;
|
|
571
572
|
seed: string;
|
|
572
573
|
} | {
|
|
@@ -598,7 +599,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
598
599
|
seed: string;
|
|
599
600
|
} | {
|
|
600
601
|
source: "account";
|
|
601
|
-
provider: "
|
|
602
|
+
provider: "discord" | "x" | "google";
|
|
602
603
|
url: string;
|
|
603
604
|
seed: string;
|
|
604
605
|
} | {
|
|
@@ -606,13 +607,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
606
607
|
seed: string;
|
|
607
608
|
};
|
|
608
609
|
displayName: string | null;
|
|
609
|
-
avatarChoice: "default" | "
|
|
610
|
-
avatarProvider: "
|
|
610
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
611
|
+
avatarProvider: "discord" | "x" | "google" | null;
|
|
611
612
|
hidden: boolean;
|
|
612
613
|
locked: boolean;
|
|
613
614
|
visibility: "private" | "participants" | "public";
|
|
614
615
|
options: {
|
|
615
|
-
provider: "
|
|
616
|
+
provider: "discord" | "x" | "google";
|
|
616
617
|
name: string | null;
|
|
617
618
|
imageUrl: string | null;
|
|
618
619
|
}[];
|
|
@@ -626,7 +627,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
626
627
|
seed: string;
|
|
627
628
|
} | {
|
|
628
629
|
source: "account";
|
|
629
|
-
provider: "
|
|
630
|
+
provider: "discord" | "x" | "google";
|
|
630
631
|
url: string;
|
|
631
632
|
seed: string;
|
|
632
633
|
} | {
|
|
@@ -634,13 +635,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
634
635
|
seed: string;
|
|
635
636
|
};
|
|
636
637
|
displayName: string | null;
|
|
637
|
-
avatarChoice: "default" | "
|
|
638
|
-
avatarProvider: "
|
|
638
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
639
|
+
avatarProvider: "discord" | "x" | "google" | null;
|
|
639
640
|
hidden: boolean;
|
|
640
641
|
locked: boolean;
|
|
641
642
|
visibility: "private" | "participants" | "public";
|
|
642
643
|
options: {
|
|
643
|
-
provider: "
|
|
644
|
+
provider: "discord" | "x" | "google";
|
|
644
645
|
name: string | null;
|
|
645
646
|
imageUrl: string | null;
|
|
646
647
|
}[];
|
|
@@ -656,7 +657,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
656
657
|
seed: string;
|
|
657
658
|
} | {
|
|
658
659
|
source: "account";
|
|
659
|
-
provider: "
|
|
660
|
+
provider: "discord" | "x" | "google";
|
|
660
661
|
url: string;
|
|
661
662
|
seed: string;
|
|
662
663
|
} | {
|
|
@@ -664,13 +665,13 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
664
665
|
seed: string;
|
|
665
666
|
};
|
|
666
667
|
displayName: string | null;
|
|
667
|
-
avatarChoice: "default" | "
|
|
668
|
-
avatarProvider: "
|
|
668
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
669
|
+
avatarProvider: "discord" | "x" | "google" | null;
|
|
669
670
|
hidden: boolean;
|
|
670
671
|
locked: boolean;
|
|
671
672
|
visibility: "private" | "participants" | "public";
|
|
672
673
|
options: {
|
|
673
|
-
provider: "
|
|
674
|
+
provider: "discord" | "x" | "google";
|
|
674
675
|
name: string | null;
|
|
675
676
|
imageUrl: string | null;
|
|
676
677
|
}[];
|
|
@@ -684,7 +685,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
684
685
|
seed: string;
|
|
685
686
|
} | {
|
|
686
687
|
source: "account";
|
|
687
|
-
provider: "
|
|
688
|
+
provider: "discord" | "x" | "google";
|
|
688
689
|
url: string;
|
|
689
690
|
seed: string;
|
|
690
691
|
} | {
|
|
@@ -739,7 +740,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
739
740
|
} | undefined;
|
|
740
741
|
} | undefined;
|
|
741
742
|
};
|
|
742
|
-
connections: ("
|
|
743
|
+
connections: ("discord" | "x" | "google" | "apple")[];
|
|
743
744
|
trigger: {
|
|
744
745
|
kind: "automatic";
|
|
745
746
|
observation?: {
|
|
@@ -754,7 +755,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
754
755
|
};
|
|
755
756
|
enrollment: "required" | "none";
|
|
756
757
|
posts: "after-enrollment" | "since-start";
|
|
757
|
-
historical: "
|
|
758
|
+
historical: "staff" | "automatic" | "claim";
|
|
758
759
|
} | undefined;
|
|
759
760
|
tracker?: {
|
|
760
761
|
tracker: string;
|
|
@@ -805,7 +806,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
805
806
|
minLength: number;
|
|
806
807
|
maxLength: number;
|
|
807
808
|
};
|
|
808
|
-
actor?: "
|
|
809
|
+
actor?: "staff" | "member" | undefined;
|
|
809
810
|
} | {
|
|
810
811
|
kind: "manual";
|
|
811
812
|
input: "url";
|
|
@@ -813,15 +814,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
813
814
|
required: boolean;
|
|
814
815
|
allowedHosts?: string[] | undefined;
|
|
815
816
|
};
|
|
816
|
-
actor?: "
|
|
817
|
+
actor?: "staff" | "member" | undefined;
|
|
817
818
|
} | {
|
|
818
819
|
kind: "manual";
|
|
819
|
-
input: "
|
|
820
|
-
actor?: "
|
|
820
|
+
input: "photo" | "quiz" | "none";
|
|
821
|
+
actor?: "staff" | "member" | undefined;
|
|
821
822
|
};
|
|
822
823
|
availability: {
|
|
823
824
|
kind: "available";
|
|
824
|
-
input: "
|
|
825
|
+
input: "text" | "url" | "photo" | "quiz" | "none";
|
|
825
826
|
} | {
|
|
826
827
|
kind: "completed";
|
|
827
828
|
} | {
|
|
@@ -852,7 +853,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
852
853
|
completion: {
|
|
853
854
|
kind: "streak";
|
|
854
855
|
days: number;
|
|
855
|
-
timeZone: string;
|
|
856
856
|
} | {
|
|
857
857
|
kind: "once";
|
|
858
858
|
} | {
|
|
@@ -905,21 +905,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
905
905
|
requestedReview: boolean;
|
|
906
906
|
createdAt: number;
|
|
907
907
|
input?: {
|
|
908
|
-
kind: "text";
|
|
909
|
-
value: string;
|
|
910
|
-
} | {
|
|
911
|
-
kind: "url";
|
|
912
|
-
value: string;
|
|
913
|
-
} | {
|
|
914
908
|
kind: "quiz";
|
|
915
909
|
answers: {
|
|
916
910
|
[k: string]: string;
|
|
917
911
|
};
|
|
918
912
|
release?: string | undefined;
|
|
913
|
+
} | {
|
|
914
|
+
kind: "text";
|
|
915
|
+
value: string;
|
|
916
|
+
} | {
|
|
917
|
+
kind: "url";
|
|
918
|
+
value: string;
|
|
919
919
|
} | undefined;
|
|
920
920
|
} | null;
|
|
921
921
|
release: string;
|
|
922
|
-
interaction: "
|
|
922
|
+
interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
|
|
923
923
|
lifecycle: "paused" | "active" | "archived";
|
|
924
924
|
rewards: ({
|
|
925
925
|
kind: "points";
|
|
@@ -1016,17 +1016,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1016
1016
|
requestedReview: boolean;
|
|
1017
1017
|
createdAt: number;
|
|
1018
1018
|
input?: {
|
|
1019
|
-
kind: "text";
|
|
1020
|
-
value: string;
|
|
1021
|
-
} | {
|
|
1022
|
-
kind: "url";
|
|
1023
|
-
value: string;
|
|
1024
|
-
} | {
|
|
1025
1019
|
kind: "quiz";
|
|
1026
1020
|
answers: {
|
|
1027
1021
|
[k: string]: string;
|
|
1028
1022
|
};
|
|
1029
1023
|
release?: string | undefined;
|
|
1024
|
+
} | {
|
|
1025
|
+
kind: "text";
|
|
1026
|
+
value: string;
|
|
1027
|
+
} | {
|
|
1028
|
+
kind: "url";
|
|
1029
|
+
value: string;
|
|
1030
1030
|
} | undefined;
|
|
1031
1031
|
}>;
|
|
1032
1032
|
experience: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
@@ -1054,7 +1054,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1054
1054
|
} | undefined;
|
|
1055
1055
|
} | undefined;
|
|
1056
1056
|
};
|
|
1057
|
-
connections: ("
|
|
1057
|
+
connections: ("discord" | "x" | "google" | "apple")[];
|
|
1058
1058
|
trigger: {
|
|
1059
1059
|
kind: "automatic";
|
|
1060
1060
|
observation?: {
|
|
@@ -1069,7 +1069,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1069
1069
|
};
|
|
1070
1070
|
enrollment: "required" | "none";
|
|
1071
1071
|
posts: "after-enrollment" | "since-start";
|
|
1072
|
-
historical: "
|
|
1072
|
+
historical: "staff" | "automatic" | "claim";
|
|
1073
1073
|
} | undefined;
|
|
1074
1074
|
tracker?: {
|
|
1075
1075
|
tracker: string;
|
|
@@ -1120,7 +1120,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1120
1120
|
minLength: number;
|
|
1121
1121
|
maxLength: number;
|
|
1122
1122
|
};
|
|
1123
|
-
actor?: "
|
|
1123
|
+
actor?: "staff" | "member" | 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?: "
|
|
1131
|
+
actor?: "staff" | "member" | undefined;
|
|
1132
1132
|
} | {
|
|
1133
1133
|
kind: "manual";
|
|
1134
|
-
input: "
|
|
1135
|
-
actor?: "
|
|
1134
|
+
input: "photo" | "quiz" | "none";
|
|
1135
|
+
actor?: "staff" | "member" | undefined;
|
|
1136
1136
|
};
|
|
1137
1137
|
availability: {
|
|
1138
1138
|
kind: "available";
|
|
1139
|
-
input: "
|
|
1139
|
+
input: "text" | "url" | "photo" | "quiz" | "none";
|
|
1140
1140
|
} | {
|
|
1141
1141
|
kind: "completed";
|
|
1142
1142
|
} | {
|
|
@@ -1167,7 +1167,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1167
1167
|
completion: {
|
|
1168
1168
|
kind: "streak";
|
|
1169
1169
|
days: number;
|
|
1170
|
-
timeZone: string;
|
|
1171
1170
|
} | {
|
|
1172
1171
|
kind: "once";
|
|
1173
1172
|
} | {
|
|
@@ -1220,21 +1219,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1220
1219
|
requestedReview: boolean;
|
|
1221
1220
|
createdAt: number;
|
|
1222
1221
|
input?: {
|
|
1223
|
-
kind: "text";
|
|
1224
|
-
value: string;
|
|
1225
|
-
} | {
|
|
1226
|
-
kind: "url";
|
|
1227
|
-
value: string;
|
|
1228
|
-
} | {
|
|
1229
1222
|
kind: "quiz";
|
|
1230
1223
|
answers: {
|
|
1231
1224
|
[k: string]: string;
|
|
1232
1225
|
};
|
|
1233
1226
|
release?: string | undefined;
|
|
1227
|
+
} | {
|
|
1228
|
+
kind: "text";
|
|
1229
|
+
value: string;
|
|
1230
|
+
} | {
|
|
1231
|
+
kind: "url";
|
|
1232
|
+
value: string;
|
|
1234
1233
|
} | undefined;
|
|
1235
1234
|
} | null;
|
|
1236
1235
|
release: string;
|
|
1237
|
-
interaction: "
|
|
1236
|
+
interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
|
|
1238
1237
|
lifecycle: "paused" | "active" | "archived";
|
|
1239
1238
|
rewards: ({
|
|
1240
1239
|
kind: "points";
|
|
@@ -1316,7 +1315,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1316
1315
|
} | undefined;
|
|
1317
1316
|
} | undefined;
|
|
1318
1317
|
};
|
|
1319
|
-
connections: ("
|
|
1318
|
+
connections: ("discord" | "x" | "google" | "apple")[];
|
|
1320
1319
|
trigger: {
|
|
1321
1320
|
kind: "automatic";
|
|
1322
1321
|
observation?: {
|
|
@@ -1331,7 +1330,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1331
1330
|
};
|
|
1332
1331
|
enrollment: "required" | "none";
|
|
1333
1332
|
posts: "after-enrollment" | "since-start";
|
|
1334
|
-
historical: "
|
|
1333
|
+
historical: "staff" | "automatic" | "claim";
|
|
1335
1334
|
} | undefined;
|
|
1336
1335
|
tracker?: {
|
|
1337
1336
|
tracker: string;
|
|
@@ -1382,7 +1381,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1382
1381
|
minLength: number;
|
|
1383
1382
|
maxLength: number;
|
|
1384
1383
|
};
|
|
1385
|
-
actor?: "
|
|
1384
|
+
actor?: "staff" | "member" | undefined;
|
|
1386
1385
|
} | {
|
|
1387
1386
|
kind: "manual";
|
|
1388
1387
|
input: "url";
|
|
@@ -1390,15 +1389,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1390
1389
|
required: boolean;
|
|
1391
1390
|
allowedHosts?: string[] | undefined;
|
|
1392
1391
|
};
|
|
1393
|
-
actor?: "
|
|
1392
|
+
actor?: "staff" | "member" | undefined;
|
|
1394
1393
|
} | {
|
|
1395
1394
|
kind: "manual";
|
|
1396
|
-
input: "
|
|
1397
|
-
actor?: "
|
|
1395
|
+
input: "photo" | "quiz" | "none";
|
|
1396
|
+
actor?: "staff" | "member" | undefined;
|
|
1398
1397
|
};
|
|
1399
1398
|
availability: {
|
|
1400
1399
|
kind: "available";
|
|
1401
|
-
input: "
|
|
1400
|
+
input: "text" | "url" | "photo" | "quiz" | "none";
|
|
1402
1401
|
} | {
|
|
1403
1402
|
kind: "completed";
|
|
1404
1403
|
} | {
|
|
@@ -1429,7 +1428,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1429
1428
|
completion: {
|
|
1430
1429
|
kind: "streak";
|
|
1431
1430
|
days: number;
|
|
1432
|
-
timeZone: string;
|
|
1433
1431
|
} | {
|
|
1434
1432
|
kind: "once";
|
|
1435
1433
|
} | {
|
|
@@ -1482,21 +1480,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1482
1480
|
requestedReview: boolean;
|
|
1483
1481
|
createdAt: number;
|
|
1484
1482
|
input?: {
|
|
1485
|
-
kind: "text";
|
|
1486
|
-
value: string;
|
|
1487
|
-
} | {
|
|
1488
|
-
kind: "url";
|
|
1489
|
-
value: string;
|
|
1490
|
-
} | {
|
|
1491
1483
|
kind: "quiz";
|
|
1492
1484
|
answers: {
|
|
1493
1485
|
[k: string]: string;
|
|
1494
1486
|
};
|
|
1495
1487
|
release?: string | undefined;
|
|
1488
|
+
} | {
|
|
1489
|
+
kind: "text";
|
|
1490
|
+
value: string;
|
|
1491
|
+
} | {
|
|
1492
|
+
kind: "url";
|
|
1493
|
+
value: string;
|
|
1496
1494
|
} | undefined;
|
|
1497
1495
|
} | null;
|
|
1498
1496
|
release: string;
|
|
1499
|
-
interaction: "
|
|
1497
|
+
interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
|
|
1500
1498
|
lifecycle: "paused" | "active" | "archived";
|
|
1501
1499
|
rewards: ({
|
|
1502
1500
|
kind: "points";
|
|
@@ -1581,7 +1579,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1581
1579
|
} | undefined;
|
|
1582
1580
|
} | undefined;
|
|
1583
1581
|
};
|
|
1584
|
-
connections: ("
|
|
1582
|
+
connections: ("discord" | "x" | "google" | "apple")[];
|
|
1585
1583
|
trigger: {
|
|
1586
1584
|
kind: "automatic";
|
|
1587
1585
|
observation?: {
|
|
@@ -1596,7 +1594,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1596
1594
|
};
|
|
1597
1595
|
enrollment: "required" | "none";
|
|
1598
1596
|
posts: "after-enrollment" | "since-start";
|
|
1599
|
-
historical: "
|
|
1597
|
+
historical: "staff" | "automatic" | "claim";
|
|
1600
1598
|
} | undefined;
|
|
1601
1599
|
tracker?: {
|
|
1602
1600
|
tracker: string;
|
|
@@ -1647,7 +1645,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1647
1645
|
minLength: number;
|
|
1648
1646
|
maxLength: number;
|
|
1649
1647
|
};
|
|
1650
|
-
actor?: "
|
|
1648
|
+
actor?: "staff" | "member" | undefined;
|
|
1651
1649
|
} | {
|
|
1652
1650
|
kind: "manual";
|
|
1653
1651
|
input: "url";
|
|
@@ -1655,15 +1653,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1655
1653
|
required: boolean;
|
|
1656
1654
|
allowedHosts?: string[] | undefined;
|
|
1657
1655
|
};
|
|
1658
|
-
actor?: "
|
|
1656
|
+
actor?: "staff" | "member" | undefined;
|
|
1659
1657
|
} | {
|
|
1660
1658
|
kind: "manual";
|
|
1661
|
-
input: "
|
|
1662
|
-
actor?: "
|
|
1659
|
+
input: "photo" | "quiz" | "none";
|
|
1660
|
+
actor?: "staff" | "member" | undefined;
|
|
1663
1661
|
};
|
|
1664
1662
|
availability: {
|
|
1665
1663
|
kind: "available";
|
|
1666
|
-
input: "
|
|
1664
|
+
input: "text" | "url" | "photo" | "quiz" | "none";
|
|
1667
1665
|
} | {
|
|
1668
1666
|
kind: "completed";
|
|
1669
1667
|
} | {
|
|
@@ -1694,7 +1692,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1694
1692
|
completion: {
|
|
1695
1693
|
kind: "streak";
|
|
1696
1694
|
days: number;
|
|
1697
|
-
timeZone: string;
|
|
1698
1695
|
} | {
|
|
1699
1696
|
kind: "once";
|
|
1700
1697
|
} | {
|
|
@@ -1747,21 +1744,21 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1747
1744
|
requestedReview: boolean;
|
|
1748
1745
|
createdAt: number;
|
|
1749
1746
|
input?: {
|
|
1750
|
-
kind: "text";
|
|
1751
|
-
value: string;
|
|
1752
|
-
} | {
|
|
1753
|
-
kind: "url";
|
|
1754
|
-
value: string;
|
|
1755
|
-
} | {
|
|
1756
1747
|
kind: "quiz";
|
|
1757
1748
|
answers: {
|
|
1758
1749
|
[k: string]: string;
|
|
1759
1750
|
};
|
|
1760
1751
|
release?: string | undefined;
|
|
1752
|
+
} | {
|
|
1753
|
+
kind: "text";
|
|
1754
|
+
value: string;
|
|
1755
|
+
} | {
|
|
1756
|
+
kind: "url";
|
|
1757
|
+
value: string;
|
|
1761
1758
|
} | undefined;
|
|
1762
1759
|
} | null;
|
|
1763
1760
|
release: string;
|
|
1764
|
-
interaction: "
|
|
1761
|
+
interaction: "text" | "url" | "staff" | "photo" | "quiz" | "automatic" | "claim";
|
|
1765
1762
|
lifecycle: "paused" | "active" | "archived";
|
|
1766
1763
|
rewards: ({
|
|
1767
1764
|
kind: "points";
|
|
@@ -1866,7 +1863,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1866
1863
|
auth: {
|
|
1867
1864
|
providers: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
1868
1865
|
providers: {
|
|
1869
|
-
provider: "
|
|
1866
|
+
provider: "discord" | "x" | "google" | "apple";
|
|
1870
1867
|
configured: boolean;
|
|
1871
1868
|
}[];
|
|
1872
1869
|
email: boolean;
|
|
@@ -1948,7 +1945,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1948
1945
|
}>;
|
|
1949
1946
|
};
|
|
1950
1947
|
accounts: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
1951
|
-
provider: "
|
|
1948
|
+
provider: "discord" | "x" | "google" | "apple";
|
|
1952
1949
|
configured: boolean;
|
|
1953
1950
|
status: "disconnected" | "connected" | "reconnect";
|
|
1954
1951
|
subject: string | null;
|
|
@@ -2065,7 +2062,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2065
2062
|
} | undefined;
|
|
2066
2063
|
} | undefined;
|
|
2067
2064
|
};
|
|
2068
|
-
connections: ("
|
|
2065
|
+
connections: ("discord" | "x" | "google" | "apple")[];
|
|
2069
2066
|
trigger: {
|
|
2070
2067
|
kind: "automatic";
|
|
2071
2068
|
observation?: {
|
|
@@ -2080,7 +2077,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2080
2077
|
};
|
|
2081
2078
|
enrollment: "required" | "none";
|
|
2082
2079
|
posts: "after-enrollment" | "since-start";
|
|
2083
|
-
historical: "
|
|
2080
|
+
historical: "staff" | "automatic" | "claim";
|
|
2084
2081
|
} | undefined;
|
|
2085
2082
|
tracker?: {
|
|
2086
2083
|
tracker: string;
|
|
@@ -2131,7 +2128,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2131
2128
|
minLength: number;
|
|
2132
2129
|
maxLength: number;
|
|
2133
2130
|
};
|
|
2134
|
-
actor?: "
|
|
2131
|
+
actor?: "staff" | "member" | undefined;
|
|
2135
2132
|
} | {
|
|
2136
2133
|
kind: "manual";
|
|
2137
2134
|
input: "url";
|
|
@@ -2139,15 +2136,15 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2139
2136
|
required: boolean;
|
|
2140
2137
|
allowedHosts?: string[] | undefined;
|
|
2141
2138
|
};
|
|
2142
|
-
actor?: "
|
|
2139
|
+
actor?: "staff" | "member" | undefined;
|
|
2143
2140
|
} | {
|
|
2144
2141
|
kind: "manual";
|
|
2145
|
-
input: "
|
|
2146
|
-
actor?: "
|
|
2142
|
+
input: "photo" | "quiz" | "none";
|
|
2143
|
+
actor?: "staff" | "member" | undefined;
|
|
2147
2144
|
};
|
|
2148
2145
|
availability: {
|
|
2149
2146
|
kind: "available";
|
|
2150
|
-
input: "
|
|
2147
|
+
input: "text" | "url" | "photo" | "quiz" | "none";
|
|
2151
2148
|
} | {
|
|
2152
2149
|
kind: "completed";
|
|
2153
2150
|
} | {
|
|
@@ -2178,7 +2175,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2178
2175
|
completion: {
|
|
2179
2176
|
kind: "streak";
|
|
2180
2177
|
days: number;
|
|
2181
|
-
timeZone: string;
|
|
2182
2178
|
} | {
|
|
2183
2179
|
kind: "once";
|
|
2184
2180
|
} | {
|
|
@@ -2231,17 +2227,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2231
2227
|
requestedReview: boolean;
|
|
2232
2228
|
createdAt: number;
|
|
2233
2229
|
input?: {
|
|
2234
|
-
kind: "text";
|
|
2235
|
-
value: string;
|
|
2236
|
-
} | {
|
|
2237
|
-
kind: "url";
|
|
2238
|
-
value: string;
|
|
2239
|
-
} | {
|
|
2240
2230
|
kind: "quiz";
|
|
2241
2231
|
answers: {
|
|
2242
2232
|
[k: string]: string;
|
|
2243
2233
|
};
|
|
2244
2234
|
release?: string | undefined;
|
|
2235
|
+
} | {
|
|
2236
|
+
kind: "text";
|
|
2237
|
+
value: string;
|
|
2238
|
+
} | {
|
|
2239
|
+
kind: "url";
|
|
2240
|
+
value: string;
|
|
2245
2241
|
} | undefined;
|
|
2246
2242
|
} | null;
|
|
2247
2243
|
key?: string | undefined;
|
|
@@ -2372,6 +2368,28 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2372
2368
|
deliveredAt: number | null;
|
|
2373
2369
|
}[];
|
|
2374
2370
|
}>;
|
|
2371
|
+
balances: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
2372
|
+
items: {
|
|
2373
|
+
ledger: {
|
|
2374
|
+
id: string;
|
|
2375
|
+
key: string | null;
|
|
2376
|
+
name: string;
|
|
2377
|
+
};
|
|
2378
|
+
balance: number;
|
|
2379
|
+
available: number;
|
|
2380
|
+
}[];
|
|
2381
|
+
}>;
|
|
2382
|
+
pointHistory: (query: PointHistoryQuery, requestOptions?: RelayRequestOptions) => Promise<{
|
|
2383
|
+
items: {
|
|
2384
|
+
id: string;
|
|
2385
|
+
amount: number;
|
|
2386
|
+
kind: PointEntryKind;
|
|
2387
|
+
at: number;
|
|
2388
|
+
quest: string | null;
|
|
2389
|
+
reverses: string | null;
|
|
2390
|
+
}[];
|
|
2391
|
+
nextCursor: string | null;
|
|
2392
|
+
}>;
|
|
2375
2393
|
claim: (value: Omit<zod.input<typeof submitSchema>, "member">, requestOptions?: RelayRequestOptions) => Promise<{
|
|
2376
2394
|
id: string;
|
|
2377
2395
|
release: string;
|
|
@@ -2413,17 +2431,17 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2413
2431
|
requestedReview: boolean;
|
|
2414
2432
|
createdAt: number;
|
|
2415
2433
|
input?: {
|
|
2416
|
-
kind: "text";
|
|
2417
|
-
value: string;
|
|
2418
|
-
} | {
|
|
2419
|
-
kind: "url";
|
|
2420
|
-
value: string;
|
|
2421
|
-
} | {
|
|
2422
2434
|
kind: "quiz";
|
|
2423
2435
|
answers: {
|
|
2424
2436
|
[k: string]: string;
|
|
2425
2437
|
};
|
|
2426
2438
|
release?: string | undefined;
|
|
2439
|
+
} | {
|
|
2440
|
+
kind: "text";
|
|
2441
|
+
value: string;
|
|
2442
|
+
} | {
|
|
2443
|
+
kind: "url";
|
|
2444
|
+
value: string;
|
|
2427
2445
|
} | undefined;
|
|
2428
2446
|
}>;
|
|
2429
2447
|
upload: (file: Blob, requestOptions?: RelayRequestOptions) => Promise<{
|
|
@@ -2447,11 +2465,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2447
2465
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2448
2466
|
baseline: "historical";
|
|
2449
2467
|
maxAgeMs: number;
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
};
|
|
2468
|
+
budgets: {
|
|
2469
|
+
scope: "member" | "project";
|
|
2470
|
+
period: "lifetime" | "day" | "week" | "month";
|
|
2471
|
+
limit: number;
|
|
2472
|
+
}[];
|
|
2455
2473
|
};
|
|
2456
2474
|
publishedAt: number;
|
|
2457
2475
|
};
|
|
@@ -2492,11 +2510,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2492
2510
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2493
2511
|
baseline: "historical";
|
|
2494
2512
|
maxAgeMs: number;
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
};
|
|
2513
|
+
budgets: {
|
|
2514
|
+
scope: "member" | "project";
|
|
2515
|
+
period: "lifetime" | "day" | "week" | "month";
|
|
2516
|
+
limit: number;
|
|
2517
|
+
}[];
|
|
2500
2518
|
};
|
|
2501
2519
|
publishedAt: number;
|
|
2502
2520
|
} | null;
|
|
@@ -2509,11 +2527,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2509
2527
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2510
2528
|
baseline: "historical";
|
|
2511
2529
|
maxAgeMs: number;
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
};
|
|
2530
|
+
budgets: {
|
|
2531
|
+
scope: "member" | "project";
|
|
2532
|
+
period: "lifetime" | "day" | "week" | "month";
|
|
2533
|
+
limit: number;
|
|
2534
|
+
}[];
|
|
2517
2535
|
};
|
|
2518
2536
|
publishedAt: number;
|
|
2519
2537
|
};
|
|
@@ -2587,7 +2605,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2587
2605
|
quest: string;
|
|
2588
2606
|
content: string;
|
|
2589
2607
|
release: string;
|
|
2590
|
-
state: "
|
|
2608
|
+
state: "pending" | "excluded" | "admitted";
|
|
2591
2609
|
reason: string | null;
|
|
2592
2610
|
attempt: string | null;
|
|
2593
2611
|
}[];
|
|
@@ -2602,12 +2620,18 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2602
2620
|
quest: string;
|
|
2603
2621
|
content: string;
|
|
2604
2622
|
release: string;
|
|
2605
|
-
state: "
|
|
2623
|
+
state: "pending" | "excluded" | "admitted";
|
|
2606
2624
|
reason: string | null;
|
|
2607
2625
|
attempt: string | null;
|
|
2608
2626
|
}>;
|
|
2609
2627
|
};
|
|
2610
2628
|
};
|
|
2629
|
+
/**
|
|
2630
|
+
* IndexedDB-backed store with Web Locks. A failed or blocked open is never remembered: the next
|
|
2631
|
+
* call opens again, and a connection the browser or another tab closes is replaced on demand.
|
|
2632
|
+
* Failures reject, never read as "nothing saved", so a caller cannot start a new claim over a
|
|
2633
|
+
* saved one it could not see.
|
|
2634
|
+
*/
|
|
2611
2635
|
declare function browserSubmissionStore(): SubmissionStore;
|
|
2612
2636
|
|
|
2613
2637
|
export { type CosmosChains, type DiscoveredWallet, type Eip1193Provider, type EmailSignInOption, type KeplrLike, type OAuthSignInOption, type SignInClient, type SignInIcon, type SignInMethods, type SignInOption, type SignInOptions, type SignInUnavailable, type SignInWallet, type SolanaInjectedProvider, type StandardWallet, type StandardWalletAccount, type WalletSignInOption, browserSubmissionStore, cosmosChainList, cosmosSigner, createBrowserRelayClient, discoverCosmosWallets, discoverEvmWallets, discoverSignInWallets, discoverSolanaWallets, evmSigner, signInOptions, solanaSigner, walletStandardSolanaSigner };
|