@domino-sdk/relay 0.19.0 → 0.23.1
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 +3 -2
- package/dist/authoring.js +3 -2
- package/dist/browser.d.ts +99 -90
- package/dist/browser.js +5 -5
- package/dist/{chunk-6GH4NC2T.js → chunk-57TGYC5Y.js} +1 -1
- package/dist/{chunk-MVDIVWR5.js → chunk-ND3CVNIW.js} +1 -1
- package/dist/{chunk-TQUK4DIW.js → chunk-RTBIXGMH.js} +301 -112
- package/dist/{chunk-23ZZTCDK.js → chunk-UYS522ER.js} +5 -0
- package/dist/{chunk-FBOW2TLN.js → chunk-ZOL7RYHW.js} +1 -1
- package/dist/index.d.ts +269 -103
- package/dist/index.js +38 -4
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +179 -94
- package/dist/react/index.js +36 -5
- package/dist/schema.d.ts +11 -3
- package/dist/schema.js +3 -1
- package/dist/{submission-input-C67qt2Ph.d.ts → submission-input-CK4Dy19H.d.ts} +258 -1
- package/package.json +1 -1
package/dist/authoring.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AdmittedContent, O as Observation, T as TrackerReader, X as XReader, D as DiscordMember, a as DiscordMessage, W as WalletConnection, S as SolanaBalance, o as observationTriggerSchema, B as Budget, b as AuthoringIdentity, C as ContentMetric,
|
|
2
|
-
export {
|
|
1
|
+
import { A as AdmittedContent, O as Observation, T as TrackerReader, X as XReader, I as ImageReader, D as DiscordMember, a as DiscordMessage, W as WalletConnection, S as SolanaBalance, o as observationTriggerSchema, B as Budget, b as AuthoringIdentity, C as ContentMetric, c as IntegrationProvider, d as StreakPolicy, e as TextEvidence, U as UrlEvidence, f as TextOptions, g as UrlOptions } from './submission-input-CK4Dy19H.js';
|
|
2
|
+
export { h as content, i as customSource, j as defineEngagementReward, k as defineLeaderboard, l as defineReferral, m as defineTracker, n as discord, p as perContent, q as pointLedgers, s as settings, r as streak, x } from './submission-input-CK4Dy19H.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { TextReviewInput, TextResult, PhotoResult, rewardSchema, triggerSchema, QuestPresentation, QuizEvidence, Decision, TieredRewardDefinition } from './schema.js';
|
|
5
5
|
|
|
@@ -164,6 +164,7 @@ type EvaluationContext<T, I = {
|
|
|
164
164
|
eligibleAt: number;
|
|
165
165
|
trackers: TrackerReader;
|
|
166
166
|
x: XReader;
|
|
167
|
+
images: ImageReader;
|
|
167
168
|
review: {
|
|
168
169
|
text(options: TextReviewInput): Promise<TextResult>;
|
|
169
170
|
photo(options: {
|
package/dist/authoring.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
defineEngagementReward,
|
|
4
4
|
defineLeaderboard,
|
|
5
5
|
defineReferral
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZOL7RYHW.js";
|
|
7
7
|
import {
|
|
8
8
|
admittedContentSchema,
|
|
9
9
|
budgetSchema,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
tieredRewardDefinitionSchema,
|
|
31
31
|
urlOptionsSchema,
|
|
32
32
|
x
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UYS522ER.js";
|
|
34
34
|
|
|
35
35
|
// src/authoring.ts
|
|
36
36
|
import { z } from "zod";
|
|
@@ -240,6 +240,7 @@ function defineQuest(definition) {
|
|
|
240
240
|
trackers: ctx.trackers,
|
|
241
241
|
wallet: ctx.wallet,
|
|
242
242
|
x: ctx.x,
|
|
243
|
+
images: ctx.images,
|
|
243
244
|
discord: ctx.discord
|
|
244
245
|
}) : decision.accept();
|
|
245
246
|
if (!result) {
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SubmitInput,
|
|
1
|
+
import { t as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, u as walletProofSchema, v as AuthProvider, y as engagementPageQuerySchema, z as contentQualificationQuerySchema, E as contentAdmissionQuerySchema, F as contentEnrollmentInputSchema, G as contentReleaseInputSchema } from './submission-input-CK4Dy19H.js';
|
|
2
|
+
import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
|
|
3
3
|
import { SubmissionStore, createRelayClient, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
|
|
@@ -234,6 +234,19 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
234
234
|
ok: true;
|
|
235
235
|
}>;
|
|
236
236
|
};
|
|
237
|
+
tieredRewards: {
|
|
238
|
+
list: () => Promise<{
|
|
239
|
+
id: string;
|
|
240
|
+
key: string | null;
|
|
241
|
+
}[]>;
|
|
242
|
+
};
|
|
243
|
+
pointLedgers: {
|
|
244
|
+
list: () => Promise<{
|
|
245
|
+
id: string;
|
|
246
|
+
key: string | null;
|
|
247
|
+
name: string;
|
|
248
|
+
}[]>;
|
|
249
|
+
};
|
|
237
250
|
leaderboards: {
|
|
238
251
|
list: () => Promise<{
|
|
239
252
|
id: string;
|
|
@@ -479,9 +492,28 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
479
492
|
release: string;
|
|
480
493
|
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
481
494
|
lifecycle: "active" | "paused" | "archived";
|
|
482
|
-
rewards: {
|
|
495
|
+
rewards: ({
|
|
496
|
+
kind: "points";
|
|
483
497
|
label: string;
|
|
484
|
-
|
|
498
|
+
amount: number;
|
|
499
|
+
ledger: {
|
|
500
|
+
id: string;
|
|
501
|
+
key: string | null;
|
|
502
|
+
name: string;
|
|
503
|
+
};
|
|
504
|
+
} | {
|
|
505
|
+
kind: "tier";
|
|
506
|
+
label: string;
|
|
507
|
+
reward: {
|
|
508
|
+
id: string;
|
|
509
|
+
key: string | null;
|
|
510
|
+
title: string;
|
|
511
|
+
};
|
|
512
|
+
tier: string;
|
|
513
|
+
} | {
|
|
514
|
+
kind: "integration";
|
|
515
|
+
label: string;
|
|
516
|
+
})[];
|
|
485
517
|
key?: string | undefined;
|
|
486
518
|
streak?: {
|
|
487
519
|
goal: number;
|
|
@@ -732,9 +764,28 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
732
764
|
release: string;
|
|
733
765
|
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
734
766
|
lifecycle: "active" | "paused" | "archived";
|
|
735
|
-
rewards: {
|
|
767
|
+
rewards: ({
|
|
768
|
+
kind: "points";
|
|
736
769
|
label: string;
|
|
737
|
-
|
|
770
|
+
amount: number;
|
|
771
|
+
ledger: {
|
|
772
|
+
id: string;
|
|
773
|
+
key: string | null;
|
|
774
|
+
name: string;
|
|
775
|
+
};
|
|
776
|
+
} | {
|
|
777
|
+
kind: "tier";
|
|
778
|
+
label: string;
|
|
779
|
+
reward: {
|
|
780
|
+
id: string;
|
|
781
|
+
key: string | null;
|
|
782
|
+
title: string;
|
|
783
|
+
};
|
|
784
|
+
tier: string;
|
|
785
|
+
} | {
|
|
786
|
+
kind: "integration";
|
|
787
|
+
label: string;
|
|
788
|
+
})[];
|
|
738
789
|
key?: string | undefined;
|
|
739
790
|
streak?: {
|
|
740
791
|
goal: number;
|
|
@@ -933,9 +984,28 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
933
984
|
release: string;
|
|
934
985
|
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
935
986
|
lifecycle: "active" | "paused" | "archived";
|
|
936
|
-
rewards: {
|
|
987
|
+
rewards: ({
|
|
988
|
+
kind: "points";
|
|
937
989
|
label: string;
|
|
938
|
-
|
|
990
|
+
amount: number;
|
|
991
|
+
ledger: {
|
|
992
|
+
id: string;
|
|
993
|
+
key: string | null;
|
|
994
|
+
name: string;
|
|
995
|
+
};
|
|
996
|
+
} | {
|
|
997
|
+
kind: "tier";
|
|
998
|
+
label: string;
|
|
999
|
+
reward: {
|
|
1000
|
+
id: string;
|
|
1001
|
+
key: string | null;
|
|
1002
|
+
title: string;
|
|
1003
|
+
};
|
|
1004
|
+
tier: string;
|
|
1005
|
+
} | {
|
|
1006
|
+
kind: "integration";
|
|
1007
|
+
label: string;
|
|
1008
|
+
})[];
|
|
939
1009
|
key?: string | undefined;
|
|
940
1010
|
streak?: {
|
|
941
1011
|
goal: number;
|
|
@@ -1137,9 +1207,28 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1137
1207
|
release: string;
|
|
1138
1208
|
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
1139
1209
|
lifecycle: "active" | "paused" | "archived";
|
|
1140
|
-
rewards: {
|
|
1210
|
+
rewards: ({
|
|
1211
|
+
kind: "points";
|
|
1141
1212
|
label: string;
|
|
1142
|
-
|
|
1213
|
+
amount: number;
|
|
1214
|
+
ledger: {
|
|
1215
|
+
id: string;
|
|
1216
|
+
key: string | null;
|
|
1217
|
+
name: string;
|
|
1218
|
+
};
|
|
1219
|
+
} | {
|
|
1220
|
+
kind: "tier";
|
|
1221
|
+
label: string;
|
|
1222
|
+
reward: {
|
|
1223
|
+
id: string;
|
|
1224
|
+
key: string | null;
|
|
1225
|
+
title: string;
|
|
1226
|
+
};
|
|
1227
|
+
tier: string;
|
|
1228
|
+
} | {
|
|
1229
|
+
kind: "integration";
|
|
1230
|
+
label: string;
|
|
1231
|
+
})[];
|
|
1143
1232
|
key?: string | undefined;
|
|
1144
1233
|
streak?: {
|
|
1145
1234
|
goal: number;
|
|
@@ -1730,86 +1819,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1730
1819
|
size: number;
|
|
1731
1820
|
}>;
|
|
1732
1821
|
};
|
|
1733
|
-
reviews: {
|
|
1734
|
-
list: (options?: ReviewListOptions, requestOptions?: {
|
|
1735
|
-
signal?: AbortSignal;
|
|
1736
|
-
}) => Promise<{
|
|
1737
|
-
items: {
|
|
1738
|
-
attempt: {
|
|
1739
|
-
id: string;
|
|
1740
|
-
release: string;
|
|
1741
|
-
quest: string;
|
|
1742
|
-
member: string;
|
|
1743
|
-
evidence: string | null;
|
|
1744
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
1745
|
-
reason: string | null;
|
|
1746
|
-
retries: number;
|
|
1747
|
-
generation: number;
|
|
1748
|
-
completion: string | null;
|
|
1749
|
-
reviewRewards: ({
|
|
1750
|
-
kind: "tier";
|
|
1751
|
-
reward: {
|
|
1752
|
-
id: string;
|
|
1753
|
-
title: string;
|
|
1754
|
-
tiers: {
|
|
1755
|
-
id: string;
|
|
1756
|
-
title: string;
|
|
1757
|
-
}[];
|
|
1758
|
-
inventory: {
|
|
1759
|
-
kind: "untracked";
|
|
1760
|
-
};
|
|
1761
|
-
fulfillment: {
|
|
1762
|
-
kind: "staff-handover";
|
|
1763
|
-
};
|
|
1764
|
-
};
|
|
1765
|
-
tier: string;
|
|
1766
|
-
} | {
|
|
1767
|
-
kind: "points";
|
|
1768
|
-
balance: string;
|
|
1769
|
-
amount: number;
|
|
1770
|
-
} | {
|
|
1771
|
-
kind: "integration";
|
|
1772
|
-
provider: "discord";
|
|
1773
|
-
action: "grant-role";
|
|
1774
|
-
roleId: string;
|
|
1775
|
-
})[] | null;
|
|
1776
|
-
createdAt: number;
|
|
1777
|
-
input?: {
|
|
1778
|
-
kind: "quiz";
|
|
1779
|
-
answers: {
|
|
1780
|
-
[k: string]: string;
|
|
1781
|
-
};
|
|
1782
|
-
release?: string | undefined;
|
|
1783
|
-
} | {
|
|
1784
|
-
kind: "text";
|
|
1785
|
-
value: string;
|
|
1786
|
-
} | {
|
|
1787
|
-
kind: "url";
|
|
1788
|
-
value: string;
|
|
1789
|
-
} | undefined;
|
|
1790
|
-
};
|
|
1791
|
-
title: string;
|
|
1792
|
-
checks: {
|
|
1793
|
-
criteria: string;
|
|
1794
|
-
result: {
|
|
1795
|
-
kind: "pass" | "fail" | "unclear";
|
|
1796
|
-
reason: string;
|
|
1797
|
-
};
|
|
1798
|
-
}[];
|
|
1799
|
-
}[];
|
|
1800
|
-
nextCursor: string | null;
|
|
1801
|
-
}>;
|
|
1802
|
-
};
|
|
1803
|
-
members: {
|
|
1804
|
-
list: (options?: MemberListOptions, requestOptions?: {
|
|
1805
|
-
signal?: AbortSignal;
|
|
1806
|
-
}) => Promise<{
|
|
1807
|
-
items: {
|
|
1808
|
-
member: string;
|
|
1809
|
-
}[];
|
|
1810
|
-
nextCursor: string | null;
|
|
1811
|
-
}>;
|
|
1812
|
-
};
|
|
1813
1822
|
evidence: {
|
|
1814
1823
|
download(id: string, requestOptions?: {
|
|
1815
1824
|
signal?: AbortSignal;
|
package/dist/browser.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
browserSubmissionStore,
|
|
3
3
|
createBrowserRelayClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ND3CVNIW.js";
|
|
5
|
+
import "./chunk-RTBIXGMH.js";
|
|
6
|
+
import "./chunk-ZOL7RYHW.js";
|
|
7
|
+
import "./chunk-57TGYC5Y.js";
|
|
8
|
+
import "./chunk-UYS522ER.js";
|
|
9
9
|
export {
|
|
10
10
|
browserSubmissionStore,
|
|
11
11
|
createBrowserRelayClient
|