@domino-sdk/relay 0.28.0 → 0.29.0
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 +11 -3
- package/dist/authoring.js +5 -3
- package/dist/browser.d.ts +205 -189
- package/dist/browser.js +6 -6
- package/dist/{chunk-ZP43MHO3.js → chunk-5LLU7UUV.js} +42 -10
- package/dist/{chunk-IXLY3A7B.js → chunk-BE5V6RFD.js} +8 -0
- package/dist/{chunk-AL5GXMKI.js → chunk-LAKQCIHX.js} +1 -1
- package/dist/{chunk-D6BX627V.js → chunk-MRKFRCCI.js} +43 -50
- package/dist/{chunk-NHSA6ATH.js → chunk-MVCKCDNR.js} +2 -2
- package/dist/{chunk-AKB266O5.js → chunk-YKS6P4IP.js} +13 -2
- package/dist/index.d.ts +557 -494
- package/dist/index.js +20 -8
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +201 -38
- package/dist/react/index.js +139 -18
- package/dist/schema.d.ts +27 -1
- package/dist/schema.js +3 -1
- package/dist/{submission-input-D3t8WKOk.d.ts → submission-input-C0cOmO4Q.d.ts} +15 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
discoverSolanaWallets,
|
|
9
9
|
readSignInMethods,
|
|
10
10
|
signInOptionsFrom
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-MVCKCDNR.js";
|
|
12
12
|
import {
|
|
13
13
|
RelayError,
|
|
14
14
|
avatarSrc,
|
|
15
15
|
defaultAvatar,
|
|
16
16
|
walletAvatarSeed
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-5LLU7UUV.js";
|
|
18
|
+
import "../chunk-YKS6P4IP.js";
|
|
19
|
+
import "../chunk-LAKQCIHX.js";
|
|
20
|
+
import "../chunk-MRKFRCCI.js";
|
|
21
|
+
import "../chunk-BE5V6RFD.js";
|
|
22
22
|
|
|
23
23
|
// src/react/provider.tsx
|
|
24
24
|
import { useState as useState3 } from "react";
|
|
@@ -689,12 +689,9 @@ function useMe() {
|
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
691
|
let active = true;
|
|
692
|
-
|
|
693
|
-
read();
|
|
694
|
-
window.addEventListener(WALLETS_CHANGED, read);
|
|
692
|
+
void relay.me.get().then((value) => active && setMe(value)).catch(() => active && setMe(null));
|
|
695
693
|
return () => {
|
|
696
694
|
active = false;
|
|
697
|
-
window.removeEventListener(WALLETS_CHANGED, read);
|
|
698
695
|
};
|
|
699
696
|
}, [relay, member]);
|
|
700
697
|
return me;
|
|
@@ -985,26 +982,26 @@ function useMyProfile() {
|
|
|
985
982
|
)
|
|
986
983
|
};
|
|
987
984
|
}
|
|
988
|
-
function
|
|
989
|
-
const relay = useRelay();
|
|
985
|
+
function useProfileRead(read, intervalMs, fallback) {
|
|
990
986
|
const { member } = useExperience();
|
|
991
|
-
const
|
|
992
|
-
|
|
987
|
+
const [state, setState] = useState8({
|
|
988
|
+
status: "loading"
|
|
989
|
+
});
|
|
993
990
|
const refresh = useCallback5(async () => {
|
|
994
991
|
try {
|
|
995
|
-
const
|
|
996
|
-
setState({ status: "ready",
|
|
992
|
+
const value = await read();
|
|
993
|
+
setState({ status: "ready", value, stale: null });
|
|
997
994
|
} catch (cause) {
|
|
998
995
|
if (cause instanceof RelayError && cause.status === 404) {
|
|
999
996
|
setState({ status: "missing" });
|
|
1000
997
|
return;
|
|
1001
998
|
}
|
|
1002
|
-
const message = cause instanceof Error && cause.message ? cause.message :
|
|
999
|
+
const message = cause instanceof Error && cause.message ? cause.message : fallback;
|
|
1003
1000
|
setState(
|
|
1004
1001
|
(previous) => previous.status === "ready" ? { ...previous, stale: message } : { status: "error", message }
|
|
1005
1002
|
);
|
|
1006
1003
|
}
|
|
1007
|
-
}, [
|
|
1004
|
+
}, [read, fallback]);
|
|
1008
1005
|
useEffect7(() => {
|
|
1009
1006
|
setState({ status: "loading" });
|
|
1010
1007
|
void refresh();
|
|
@@ -1020,8 +1017,129 @@ function useProfile(id, options = {}) {
|
|
|
1020
1017
|
window.removeEventListener(PROFILE_CHANGED, changed);
|
|
1021
1018
|
};
|
|
1022
1019
|
}, [refresh, member, intervalMs]);
|
|
1020
|
+
return { state, refresh };
|
|
1021
|
+
}
|
|
1022
|
+
function useProfile(id, options = {}) {
|
|
1023
|
+
const relay = useRelay();
|
|
1024
|
+
const read = useCallback5(() => relay.profiles.get(id), [relay, id]);
|
|
1025
|
+
const { state, refresh } = useProfileRead(
|
|
1026
|
+
read,
|
|
1027
|
+
options.intervalMs ?? 6e4,
|
|
1028
|
+
"Could not load the profile."
|
|
1029
|
+
);
|
|
1030
|
+
const value = state.status === "ready" ? { status: "ready", profile: state.value, stale: state.stale } : state;
|
|
1031
|
+
return { ...value, refresh };
|
|
1032
|
+
}
|
|
1033
|
+
function useLeaderboardPlacement(board, profile, options = {}) {
|
|
1034
|
+
const relay = useRelay();
|
|
1035
|
+
const read = useCallback5(
|
|
1036
|
+
() => relay.leaderboards.placement(board, profile),
|
|
1037
|
+
[relay, board, profile]
|
|
1038
|
+
);
|
|
1039
|
+
const { state, refresh } = useProfileRead(
|
|
1040
|
+
read,
|
|
1041
|
+
options.intervalMs ?? 3e4,
|
|
1042
|
+
"Could not load the leaderboard placement."
|
|
1043
|
+
);
|
|
1023
1044
|
return { ...state, refresh };
|
|
1024
1045
|
}
|
|
1046
|
+
function useProfileReferral(profile, program, options = {}) {
|
|
1047
|
+
const relay = useRelay();
|
|
1048
|
+
const read = useCallback5(
|
|
1049
|
+
() => relay.profiles.referral(profile, program),
|
|
1050
|
+
[relay, profile, program]
|
|
1051
|
+
);
|
|
1052
|
+
const { state, refresh } = useProfileRead(
|
|
1053
|
+
read,
|
|
1054
|
+
options.intervalMs ?? 6e4,
|
|
1055
|
+
"Could not load referral progress."
|
|
1056
|
+
);
|
|
1057
|
+
return { ...state, refresh };
|
|
1058
|
+
}
|
|
1059
|
+
function useProfileCompletions(profile, options = {}) {
|
|
1060
|
+
const relay = useRelay();
|
|
1061
|
+
const { member } = useExperience();
|
|
1062
|
+
const { limit = 20 } = options;
|
|
1063
|
+
const [state, setState] = useState8({
|
|
1064
|
+
status: "loading"
|
|
1065
|
+
});
|
|
1066
|
+
const cursor = useRef3(null);
|
|
1067
|
+
const generation = useRef3(0);
|
|
1068
|
+
const paging = useRef3({ ready: false, busy: false });
|
|
1069
|
+
const load = useCallback5(
|
|
1070
|
+
async (first) => {
|
|
1071
|
+
if (first) {
|
|
1072
|
+
generation.current++;
|
|
1073
|
+
paging.current = { ready: false, busy: false };
|
|
1074
|
+
} else {
|
|
1075
|
+
if (!paging.current.ready || paging.current.busy || cursor.current === null) {
|
|
1076
|
+
return;
|
|
1077
|
+
}
|
|
1078
|
+
paging.current.busy = true;
|
|
1079
|
+
setState(
|
|
1080
|
+
(previous) => previous.status === "ready" ? { ...previous, loading: true, error: null } : previous
|
|
1081
|
+
);
|
|
1082
|
+
}
|
|
1083
|
+
const current = generation.current;
|
|
1084
|
+
const own = paging.current;
|
|
1085
|
+
try {
|
|
1086
|
+
const page = await relay.profiles.completions(profile, {
|
|
1087
|
+
limit,
|
|
1088
|
+
...!first && cursor.current ? { cursor: cursor.current } : {}
|
|
1089
|
+
});
|
|
1090
|
+
if (current !== generation.current) {
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
cursor.current = page.nextCursor;
|
|
1094
|
+
own.ready = true;
|
|
1095
|
+
setState((previous) => ({
|
|
1096
|
+
status: "ready",
|
|
1097
|
+
items: !first && previous.status === "ready" ? [...previous.items, ...page.items] : page.items,
|
|
1098
|
+
more: page.nextCursor !== null,
|
|
1099
|
+
loading: false,
|
|
1100
|
+
error: null
|
|
1101
|
+
}));
|
|
1102
|
+
} catch (cause) {
|
|
1103
|
+
if (current !== generation.current) {
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
if (first && cause instanceof RelayError && cause.status === 404) {
|
|
1107
|
+
setState({ status: "missing" });
|
|
1108
|
+
return;
|
|
1109
|
+
}
|
|
1110
|
+
const message = cause instanceof Error && cause.message ? cause.message : "Could not load completed quests.";
|
|
1111
|
+
setState(
|
|
1112
|
+
(previous) => !first && previous.status === "ready" ? { ...previous, loading: false, error: message } : { status: "error", message }
|
|
1113
|
+
);
|
|
1114
|
+
} finally {
|
|
1115
|
+
if (!first) {
|
|
1116
|
+
own.busy = false;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
[relay, profile, limit]
|
|
1121
|
+
);
|
|
1122
|
+
useEffect7(() => {
|
|
1123
|
+
setState({ status: "loading" });
|
|
1124
|
+
cursor.current = null;
|
|
1125
|
+
void load(true);
|
|
1126
|
+
const changed = () => void load(true);
|
|
1127
|
+
window.addEventListener(PROFILE_CHANGED, changed);
|
|
1128
|
+
return () => {
|
|
1129
|
+
generation.current++;
|
|
1130
|
+
window.removeEventListener(PROFILE_CHANGED, changed);
|
|
1131
|
+
};
|
|
1132
|
+
}, [load, member]);
|
|
1133
|
+
return {
|
|
1134
|
+
...state,
|
|
1135
|
+
refresh: () => load(true),
|
|
1136
|
+
/**
|
|
1137
|
+
* Appends the next page; does nothing while one loads, while the first page reloads, or when
|
|
1138
|
+
* there is none.
|
|
1139
|
+
*/
|
|
1140
|
+
loadMore: () => load(false)
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1025
1143
|
|
|
1026
1144
|
// src/react/referrals.ts
|
|
1027
1145
|
import { useCallback as useCallback6, useEffect as useEffect8, useRef as useRef4, useState as useState9 } from "react";
|
|
@@ -1198,10 +1316,13 @@ export {
|
|
|
1198
1316
|
useExperience,
|
|
1199
1317
|
useInvitation,
|
|
1200
1318
|
useLeaderboard,
|
|
1319
|
+
useLeaderboardPlacement,
|
|
1201
1320
|
useMe,
|
|
1202
1321
|
useMyProfile,
|
|
1203
1322
|
usePointLedgers,
|
|
1204
1323
|
useProfile,
|
|
1324
|
+
useProfileCompletions,
|
|
1325
|
+
useProfileReferral,
|
|
1205
1326
|
useQuest,
|
|
1206
1327
|
useReferralSummary,
|
|
1207
1328
|
useRelay,
|
package/dist/schema.d.ts
CHANGED
|
@@ -310,6 +310,14 @@ declare const questPresentationSchema: z.ZodObject<{
|
|
|
310
310
|
}, z.core.$strict>>;
|
|
311
311
|
}, z.core.$strict>;
|
|
312
312
|
type QuestPresentation = z.infer<typeof questPresentationSchema>;
|
|
313
|
+
/**
|
|
314
|
+
* How a quest appears on participant profiles. Hidden by default: a completion can reveal what a
|
|
315
|
+
* member holds or did, so each quest opts in.
|
|
316
|
+
*/
|
|
317
|
+
declare const questProfileSchema: z.ZodObject<{
|
|
318
|
+
visible: z.ZodBoolean;
|
|
319
|
+
}, z.core.$strict>;
|
|
320
|
+
type QuestProfile = z.infer<typeof questProfileSchema>;
|
|
313
321
|
declare const questDescriptionSchema: z.ZodObject<{
|
|
314
322
|
quest: z.ZodString;
|
|
315
323
|
runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
@@ -544,6 +552,9 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
544
552
|
visible: "visible";
|
|
545
553
|
hidden: "hidden";
|
|
546
554
|
}>>;
|
|
555
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
visible: z.ZodBoolean;
|
|
557
|
+
}, z.core.$strict>>;
|
|
547
558
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
548
559
|
id: z.ZodString;
|
|
549
560
|
scope: z.ZodEnum<{
|
|
@@ -851,6 +862,9 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
851
862
|
visible: "visible";
|
|
852
863
|
hidden: "hidden";
|
|
853
864
|
}>>;
|
|
865
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
visible: z.ZodBoolean;
|
|
867
|
+
}, z.core.$strict>>;
|
|
854
868
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
855
869
|
id: z.ZodString;
|
|
856
870
|
scope: z.ZodEnum<{
|
|
@@ -1155,6 +1169,9 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1155
1169
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
1156
1170
|
maxAgeMs: number;
|
|
1157
1171
|
} | undefined;
|
|
1172
|
+
profile?: {
|
|
1173
|
+
visible: boolean;
|
|
1174
|
+
} | undefined;
|
|
1158
1175
|
key?: string | undefined;
|
|
1159
1176
|
origin?: {
|
|
1160
1177
|
typeVersion: string;
|
|
@@ -1454,6 +1471,9 @@ declare const templateSchema: z.ZodObject<{
|
|
|
1454
1471
|
visible: "visible";
|
|
1455
1472
|
hidden: "hidden";
|
|
1456
1473
|
}>>;
|
|
1474
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
1475
|
+
visible: z.ZodBoolean;
|
|
1476
|
+
}, z.core.$strict>>;
|
|
1457
1477
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1458
1478
|
id: z.ZodString;
|
|
1459
1479
|
scope: z.ZodEnum<{
|
|
@@ -2363,6 +2383,9 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
2363
2383
|
visible: "visible";
|
|
2364
2384
|
hidden: "hidden";
|
|
2365
2385
|
}>>;
|
|
2386
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
2387
|
+
visible: z.ZodBoolean;
|
|
2388
|
+
}, z.core.$strict>>;
|
|
2366
2389
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2367
2390
|
id: z.ZodString;
|
|
2368
2391
|
scope: z.ZodEnum<{
|
|
@@ -2667,6 +2690,9 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
2667
2690
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2668
2691
|
maxAgeMs: number;
|
|
2669
2692
|
} | undefined;
|
|
2693
|
+
profile?: {
|
|
2694
|
+
visible: boolean;
|
|
2695
|
+
} | undefined;
|
|
2670
2696
|
key?: string | undefined;
|
|
2671
2697
|
origin?: {
|
|
2672
2698
|
typeVersion: string;
|
|
@@ -3212,4 +3238,4 @@ declare const contentPerformancePageSchema: z.ZodObject<{
|
|
|
3212
3238
|
next: z.ZodNullable<z.ZodNumber>;
|
|
3213
3239
|
}, z.core.$strict>;
|
|
3214
3240
|
|
|
3215
|
-
export { type Attempt, type ContentPerformanceSnapshot, type Decision, type Entitlement, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewPage, type Reward, type Snapshot, type SubmissionEvidence, type SubmitInput, type TextResult, type TextReviewInput, type TieredRewardDefinition, type TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceQuerySchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, errorSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questDescriptionSchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema };
|
|
3241
|
+
export { type Attempt, type ContentPerformanceSnapshot, type Decision, type Entitlement, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestProfile, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewPage, type Reward, type Snapshot, type SubmissionEvidence, type SubmitInput, type TextResult, type TextReviewInput, type TieredRewardDefinition, type TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceQuerySchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, errorSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questDescriptionSchema, questPresentationSchema, questProfileSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema };
|
package/dist/schema.js
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
questAvailabilitySchema,
|
|
34
34
|
questDescriptionSchema,
|
|
35
35
|
questPresentationSchema,
|
|
36
|
+
questProfileSchema,
|
|
36
37
|
questSettingsInputSchema,
|
|
37
38
|
quizAnswersSchema,
|
|
38
39
|
quizEvidenceSchema,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
tieredRewardDefinitionSchema,
|
|
60
61
|
tieredRewardReferenceSchema,
|
|
61
62
|
triggerSchema
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-BE5V6RFD.js";
|
|
63
64
|
export {
|
|
64
65
|
artifactSchema,
|
|
65
66
|
attemptSchema,
|
|
@@ -95,6 +96,7 @@ export {
|
|
|
95
96
|
questAvailabilitySchema,
|
|
96
97
|
questDescriptionSchema,
|
|
97
98
|
questPresentationSchema,
|
|
99
|
+
questProfileSchema,
|
|
98
100
|
questSettingsInputSchema,
|
|
99
101
|
quizAnswersSchema,
|
|
100
102
|
quizEvidenceSchema,
|
|
@@ -3702,6 +3702,20 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
3702
3702
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3703
3703
|
}, z.core.$strip>;
|
|
3704
3704
|
type LeaderboardPage = z.infer<typeof leaderboardPageSchema>;
|
|
3705
|
+
/**
|
|
3706
|
+
* A profile's current place on one board, calculated now. `rank` and `score` are null while the
|
|
3707
|
+
* member is unranked there (no counted points, excluded, or outside the board's group).
|
|
3708
|
+
*/
|
|
3709
|
+
declare const leaderboardPlacementSchema: z.ZodObject<{
|
|
3710
|
+
leaderboard: z.ZodString;
|
|
3711
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3712
|
+
title: z.ZodString;
|
|
3713
|
+
profile: z.ZodString;
|
|
3714
|
+
rank: z.ZodNullable<z.ZodNumber>;
|
|
3715
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
3716
|
+
total: z.ZodNumber;
|
|
3717
|
+
}, z.core.$strip>;
|
|
3718
|
+
type LeaderboardPlacement = z.infer<typeof leaderboardPlacementSchema>;
|
|
3705
3719
|
declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
3706
3720
|
published: z.ZodObject<{
|
|
3707
3721
|
version: z.ZodString;
|
|
@@ -5849,4 +5863,4 @@ declare function validateSubmissionValue(input: ValueEvidence, contract: {
|
|
|
5849
5863
|
/** Extract an ID only. The URL and its author name are untrusted claims. */
|
|
5850
5864
|
declare function xPostId(value: string): string | null;
|
|
5851
5865
|
|
|
5852
|
-
export { contentEnrollmentInputSchema as $, type AdmittedContent as A, type Budget as B, type ContentMetric as C, type DiscordMember as D, streak as E, trackerTriggerContextSchema as F, x as G, referralAcceptSchema as H, type ImageReader as I, type LeaderboardQuery as J, type WalletAddressInput as K, type LinkedWallet as L, walletSignatureSchema as M, type WalletSigner as N, type Observation as O, walletChallengeInputSchema as P, walletProofSchema as Q, type AuthProvider as R, type SolanaBalance as S, type TrackerTriggerContext as T, type UrlEvidence as U, type WalletSignature as V, type WalletConnection as W, type XReader as X, engagementPageQuerySchema as Y, contentQualificationQuerySchema as Z, contentAdmissionQuerySchema as _, type TrackerReader as a,
|
|
5866
|
+
export { contentEnrollmentInputSchema as $, type AdmittedContent as A, type Budget as B, type ContentMetric as C, type DiscordMember as D, streak as E, trackerTriggerContextSchema as F, x as G, referralAcceptSchema as H, type ImageReader as I, type LeaderboardQuery as J, type WalletAddressInput as K, type LinkedWallet as L, walletSignatureSchema as M, type WalletSigner as N, type Observation as O, walletChallengeInputSchema as P, walletProofSchema as Q, type AuthProvider as R, type SolanaBalance as S, type TrackerTriggerContext as T, type UrlEvidence as U, type WalletSignature as V, type WalletConnection as W, type XReader as X, engagementPageQuerySchema as Y, contentQualificationQuerySchema as Z, contentAdmissionQuerySchema as _, type TrackerReader as a, contentMetricsSchema as a$, contentReleaseInputSchema as a0, type AccountConnection as a1, type WalletSignInNetwork as a2, referralSummarySchema as a3, type LeaderboardPage as a4, type CosmosChain as a5, type CosmosNetwork as a6, type ValueEvidence as a7, type ContentPerformancePolicy as a8, type ContentPolicy as a9, type TrackerOutcomeQuery as aA, type TrackerPreview as aB, type TrackerPreviewInput as aC, type TrackerQuery as aD, type TrackerRecord as aE, type TrackerStatus as aF, WALLETS_PER_CHAIN as aG, type WalletChain as aH, type WalletMessageChallenge as aI, type WalletUnlinkInput as aJ, type XConnection as aK, type XPost as aL, type XProfile as aM, type XTweet as aN, accountConnectionSchema as aO, admittedContentSchema as aP, authProviderSchema as aQ, budgetSchema as aR, caip10 as aS, communityTimeZoneSchema as aT, compatibleSettingKinds as aU, completionKeySchema as aV, completionPolicySchema as aW, contentAdmissionPageSchema as aX, contentAdmissionSchema as aY, contentEnrollmentSchema as aZ, contentMetricSchema as a_, type EngagementDefinition as aa, type EvmChain as ab, type EvmChainInfo as ac, type ImageAssetArtifact as ad, type ImageComparison as ae, type ImageExtraction as af, type ImageFields as ag, type ImageInspection as ah, type ImageReference as ai, type ImageRequest as aj, type ImageSightings as ak, type LeaderboardDefinition as al, type LeaderboardPlacement as am, type ProjectIntegration as an, type PublishedImage as ao, type QuizContent as ap, type ReferralDefinition as aq, type ResourceOption as ar, type ResourceSource as as, type SettingField as at, type SettingsValues as au, type StreakProgress as av, type TrackerAttribution as aw, type TrackerContent as ax, type TrackerContentQuery as ay, type TrackerOutcome as az, type DiscordMessage as b, parseImageExtraction as b$, contentPerformancePolicySchema as b0, contentPolicySchema as b1, contentQualificationDecisionSchema as b2, contentQualificationPageSchema as b3, contentQualificationSchema as b4, cosmosAddressSchema as b5, cosmosChain as b6, cosmosNetworkSchema as b7, discordMemberInputSchema as b8, discordMemberSchema as b9, imageFieldsSchema as bA, imageInspectionSchema as bB, imageReferenceSchema as bC, imageRequestSchema as bD, imageSightingsSchema as bE, imageUploadRequestSchema as bF, imageUploadsSchema as bG, integrationProviderSchema as bH, isContentParticipantRoute as bI, isWalletParticipantRoute as bJ, isWalletSignInRoute as bK, leaderboardArtifactSchema as bL, leaderboardAuthoringSchema as bM, leaderboardDefinitionSchema as bN, leaderboardExclusionSchema as bO, leaderboardGroupSchema as bP, leaderboardPageSchema as bQ, leaderboardPlacementSchema as bR, leaderboardPreviewSchema as bS, leaderboardQuerySchema as bT, leaderboardRowSchema as bU, leaderboardWindowSchema as bV, linkedWalletSchema as bW, missingResourceSettings as bX, observationInputSchema as bY, observationReceiptSchema as bZ, observationSchema as b_, discordMessageInputSchema as ba, discordMessageSchema as bb, discordReactionSchema as bc, discordServerSchema as bd, engagementArtifactSchema as be, engagementBoundaryPageSchema as bf, engagementChangePreviewInputSchema as bg, engagementChangePreviewSchema as bh, engagementChangeSchema as bi, engagementDefinitionSchema as bj, engagementDeploymentEntrySchema as bk, engagementPageSchema as bl, engagementPublishSchema as bm, engagementRuleSchema as bn, engagementScoreInputSchema as bo, engagementScoreSchema as bp, engagementSettlementSchema as bq, engagementVersionPageSchema as br, engagementVersionQuerySchema as bs, evmAddressSchema as bt, evmChainSchema as bu, evmChains as bv, imageAssetArtifactSchema as bw, imageComparisonSchema as bx, imageExtractionSchema as by, imageFieldSchema as bz, type WalletBalanceQuery as c, urlEvidenceSchema as c$, parseImageResult as c0, parseSettings as c1, pointsAccountSchema as c2, pointsEntrySchema as c3, pointsMutationSchema as c4, pointsResultSchema as c5, projectIntegrationSchema as c6, publishedImageSchema as c7, publishedLeaderboardSchema as c8, publishedReferralSchema as c9, trackerArtifactSchema as cA, trackerAttributionSchema as cB, trackerBeneficiarySchema as cC, trackerContentQuerySchema as cD, trackerContentReadSchema as cE, trackerContentSchema as cF, trackerControlSchema as cG, trackerDefinitionSchema as cH, trackerEvidenceSchema as cI, trackerIngestResultSchema as cJ, trackerIngestSchema as cK, trackerOutcomePageSchema as cL, trackerOutcomeQuerySchema as cM, trackerOutcomeRetrySchema as cN, trackerOutcomeSchema as cO, trackerPageSchema as cP, trackerPreviewInputSchema as cQ, trackerPreviewLimits as cR, trackerPreviewSchema as cS, trackerQuerySchema as cT, trackerRecordInputSchema as cU, trackerRecordSchema as cV, trackerSourceSchema as cW, trackerStatusSchema as cX, trackerSummarySchema as cY, trackerTriggerPolicySchema as cZ, trackerTriggerRecordSchema as c_, publishedTrackerSchema as ca, quizChoiceSchema as cb, quizContentSchema as cc, quizQuestionSchema as cd, quizQuestionsSchema as ce, referralAccountSchema as cf, referralArtifactSchema as cg, referralAuthoringSchema as ch, referralControlSchema as ci, referralDefinitionSchema as cj, referralHistorySchema as ck, referralManagementSchema as cl, referralRelationshipSchema as cm, resourceOptionsSchema as cn, resourceRequestSchema as co, resourceSourceSchema as cp, settingFieldSchema as cq, settingsFieldsSchema as cr, settingsValuesSchema as cs, solanaAddressSchema as ct, solanaBalanceSchema as cu, solanaMainnet as cv, streakPolicySchema as cw, streakProgressSchema as cx, textEvidenceSchema as cy, textOptionsSchema as cz, type WalletBalance as d, urlOptionsSchema as d0, validateSubmissionValue as d1, valueEvidenceSchema as d2, walletAddressInput as d3, walletAddressInputSchema as d4, walletBalanceSchema as d5, walletChainSchema as d6, walletChallengeSchema as d7, walletConnectionSchema as d8, walletMessageChallengeSchema as d9, walletSignInFamilies as da, walletSignInNetwork as db, walletSignInNetworkSchema as dc, walletSignInNetworksSchema as dd, walletUnlinkInputSchema as de, xConnectionSchema as df, xContentBodySchema as dg, xIdSchema as dh, xPostId as di, xPostSchema as dj, xProfileSchema as dk, xRequestSchema as dl, xTweetSchema as dm, type TrackerDefinition as e, type TrackerBeneficiary as f, type TrackerTriggerPolicy as g, type AuthoringIdentity as h, type IntegrationProvider as i, type StreakPolicy as j, type TextEvidence as k, type TextOptions as l, type UrlOptions as m, content as n, observationTriggerSchema as o, customSource as p, defineEngagementReward as q, defineLeaderboard as r, defineReferral as s, defineTracker as t, discord as u, formatUnits as v, parseUnits as w, perContent as x, pointLedgers as y, settings as z };
|