@domino-sdk/relay 0.7.0 → 0.8.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 +13 -9
- package/dist/authoring.js +19 -9
- package/dist/browser.d.ts +35 -6
- package/dist/browser.js +4 -4
- package/dist/{chunk-36LZ3IOO.js → chunk-2BN7XZH3.js} +1 -1
- package/dist/{chunk-LXLNC4CN.js → chunk-APMYDKEX.js} +40 -27
- package/dist/chunk-XVHWBZRG.js +388 -0
- package/dist/{chunk-6QUCADMF.js → chunk-Z43O273V.js} +32 -2
- package/dist/index.d.ts +830 -74
- package/dist/index.js +26 -6
- package/dist/portal-proxy.js +2 -2
- package/dist/schema.d.ts +33 -2
- package/dist/schema.js +5 -1
- package/dist/{settings-CU_oBcx0.d.ts → settings-BA8XjT4m.d.ts} +766 -23
- package/package.json +1 -1
- package/dist/chunk-TYVT5BPZ.js +0 -337
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
QuestUpdatedError,
|
|
3
3
|
RelayError,
|
|
4
|
+
allocateQuestSchema,
|
|
5
|
+
allocatedQuestSchema,
|
|
4
6
|
catalogDeploymentPreviewSchema,
|
|
5
7
|
catalogDeploymentSchema,
|
|
6
8
|
collectionBeginSchema,
|
|
@@ -8,8 +10,10 @@ import {
|
|
|
8
10
|
collectionPassSchema,
|
|
9
11
|
collectionPreviewSchema,
|
|
10
12
|
collectionResolveSchema,
|
|
13
|
+
collectionSlotDeclarationSchema,
|
|
11
14
|
collectionSlotSchema,
|
|
12
15
|
collectionViewSchema,
|
|
16
|
+
createPointLedgerSchema,
|
|
13
17
|
createRelayClient,
|
|
14
18
|
deploymentPreviewSchema,
|
|
15
19
|
deploymentResultSchema,
|
|
@@ -18,6 +22,8 @@ import {
|
|
|
18
22
|
identityIntegrationSecretSchema,
|
|
19
23
|
interactionSchema,
|
|
20
24
|
participantExchangeSchema,
|
|
25
|
+
pointLedgerDeclarationSchema,
|
|
26
|
+
pointLedgerPropertiesSchema,
|
|
21
27
|
pointLedgerSchema,
|
|
22
28
|
projectCatalogArtifactSchema,
|
|
23
29
|
projectDeploymentSchema,
|
|
@@ -36,7 +42,6 @@ import {
|
|
|
36
42
|
questTypeVersionSchema,
|
|
37
43
|
questViewSchema,
|
|
38
44
|
reconcileQuestDraft,
|
|
39
|
-
resourceId,
|
|
40
45
|
rewardDeliveriesSchema,
|
|
41
46
|
rewardDeliverySchema,
|
|
42
47
|
saveQuestDraftSchema,
|
|
@@ -46,11 +51,12 @@ import {
|
|
|
46
51
|
walletChallengeSchema,
|
|
47
52
|
walletConnectionSchema,
|
|
48
53
|
walletProofSchema
|
|
49
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-APMYDKEX.js";
|
|
50
55
|
import {
|
|
51
56
|
defineLeaderboard,
|
|
52
57
|
defineReferral,
|
|
53
58
|
leaderboardArtifactSchema,
|
|
59
|
+
leaderboardAuthoringSchema,
|
|
54
60
|
leaderboardDefinitionSchema,
|
|
55
61
|
leaderboardExclusionSchema,
|
|
56
62
|
leaderboardGroupSchema,
|
|
@@ -68,20 +74,21 @@ import {
|
|
|
68
74
|
referralAcceptSchema,
|
|
69
75
|
referralAccountSchema,
|
|
70
76
|
referralArtifactSchema,
|
|
77
|
+
referralAuthoringSchema,
|
|
71
78
|
referralControlSchema,
|
|
72
79
|
referralDefinitionSchema,
|
|
73
80
|
referralHistorySchema,
|
|
74
81
|
referralManagementSchema,
|
|
75
82
|
referralRelationshipSchema,
|
|
76
83
|
referralSummarySchema
|
|
77
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-XVHWBZRG.js";
|
|
78
85
|
import {
|
|
79
86
|
authScopeSchema,
|
|
80
87
|
exchangeResultSchema,
|
|
81
88
|
exchangeSchema,
|
|
82
89
|
principalSchema,
|
|
83
90
|
sessionSchema
|
|
84
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-2BN7XZH3.js";
|
|
85
92
|
import {
|
|
86
93
|
accountConnectionSchema,
|
|
87
94
|
artifactSchema,
|
|
@@ -96,6 +103,7 @@ import {
|
|
|
96
103
|
completionRecordSchema,
|
|
97
104
|
configurePickupSchema,
|
|
98
105
|
confirmHandoverSchema,
|
|
106
|
+
createStockItemSchema,
|
|
99
107
|
decisionSchema,
|
|
100
108
|
discord,
|
|
101
109
|
discordMemberInputSchema,
|
|
@@ -127,6 +135,7 @@ import {
|
|
|
127
135
|
pickupCatalogSchema,
|
|
128
136
|
pickupPolicySchema,
|
|
129
137
|
pickupSelectionSchema,
|
|
138
|
+
pointLedgers,
|
|
130
139
|
pointsRewardSchema,
|
|
131
140
|
prerequisiteSchema,
|
|
132
141
|
projectIntegrationSchema,
|
|
@@ -159,17 +168,20 @@ import {
|
|
|
159
168
|
settingsValuesSchema,
|
|
160
169
|
snapshotSchema,
|
|
161
170
|
staffDecisionSchema,
|
|
171
|
+
stockItemSchema,
|
|
162
172
|
stockSchema,
|
|
163
173
|
submitSchema,
|
|
164
174
|
templateSchema,
|
|
165
175
|
tierRewardSchema,
|
|
166
176
|
tieredRewardDefinitionSchema,
|
|
167
177
|
triggerSchema
|
|
168
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-Z43O273V.js";
|
|
169
179
|
export {
|
|
170
180
|
QuestUpdatedError,
|
|
171
181
|
RelayError,
|
|
172
182
|
accountConnectionSchema,
|
|
183
|
+
allocateQuestSchema,
|
|
184
|
+
allocatedQuestSchema,
|
|
173
185
|
artifactSchema,
|
|
174
186
|
attemptSchema,
|
|
175
187
|
authProviderSchema,
|
|
@@ -184,6 +196,7 @@ export {
|
|
|
184
196
|
collectionPassSchema,
|
|
185
197
|
collectionPreviewSchema,
|
|
186
198
|
collectionResolveSchema,
|
|
199
|
+
collectionSlotDeclarationSchema,
|
|
187
200
|
collectionSlotSchema,
|
|
188
201
|
collectionViewSchema,
|
|
189
202
|
compatibleSettingKinds,
|
|
@@ -192,7 +205,9 @@ export {
|
|
|
192
205
|
completionRecordSchema,
|
|
193
206
|
configurePickupSchema,
|
|
194
207
|
confirmHandoverSchema,
|
|
208
|
+
createPointLedgerSchema,
|
|
195
209
|
createRelayClient,
|
|
210
|
+
createStockItemSchema,
|
|
196
211
|
decisionSchema,
|
|
197
212
|
defineLeaderboard,
|
|
198
213
|
defineReferral,
|
|
@@ -219,6 +234,7 @@ export {
|
|
|
219
234
|
integrationRewardSchema,
|
|
220
235
|
interactionSchema,
|
|
221
236
|
leaderboardArtifactSchema,
|
|
237
|
+
leaderboardAuthoringSchema,
|
|
222
238
|
leaderboardDefinitionSchema,
|
|
223
239
|
leaderboardExclusionSchema,
|
|
224
240
|
leaderboardGroupSchema,
|
|
@@ -244,7 +260,10 @@ export {
|
|
|
244
260
|
pickupCatalogSchema,
|
|
245
261
|
pickupPolicySchema,
|
|
246
262
|
pickupSelectionSchema,
|
|
263
|
+
pointLedgerDeclarationSchema,
|
|
264
|
+
pointLedgerPropertiesSchema,
|
|
247
265
|
pointLedgerSchema,
|
|
266
|
+
pointLedgers,
|
|
248
267
|
pointsAccountSchema,
|
|
249
268
|
pointsEntrySchema,
|
|
250
269
|
pointsMutationSchema,
|
|
@@ -286,6 +305,7 @@ export {
|
|
|
286
305
|
referralAcceptSchema,
|
|
287
306
|
referralAccountSchema,
|
|
288
307
|
referralArtifactSchema,
|
|
308
|
+
referralAuthoringSchema,
|
|
289
309
|
referralControlSchema,
|
|
290
310
|
referralDefinitionSchema,
|
|
291
311
|
referralHistorySchema,
|
|
@@ -294,7 +314,6 @@ export {
|
|
|
294
314
|
referralSummarySchema,
|
|
295
315
|
releaseSchema,
|
|
296
316
|
reservationSchema,
|
|
297
|
-
resourceId,
|
|
298
317
|
resourceOptionsSchema,
|
|
299
318
|
resourceRequestSchema,
|
|
300
319
|
resourceSourceSchema,
|
|
@@ -317,6 +336,7 @@ export {
|
|
|
317
336
|
solanaAddressSchema,
|
|
318
337
|
solanaBalanceSchema,
|
|
319
338
|
staffDecisionSchema,
|
|
339
|
+
stockItemSchema,
|
|
320
340
|
stockSchema,
|
|
321
341
|
submitSchema,
|
|
322
342
|
templateSchema,
|
package/dist/portal-proxy.js
CHANGED
package/dist/schema.d.ts
CHANGED
|
@@ -269,6 +269,9 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
269
269
|
kind: z.ZodLiteral<"resource">;
|
|
270
270
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
271
271
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
272
|
+
provider: z.ZodLiteral<"domino">;
|
|
273
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
275
|
provider: z.ZodLiteral<"discord">;
|
|
273
276
|
resource: z.ZodLiteral<"channel">;
|
|
274
277
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -511,6 +514,9 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
511
514
|
kind: z.ZodLiteral<"resource">;
|
|
512
515
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
513
516
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
517
|
+
provider: z.ZodLiteral<"domino">;
|
|
518
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
519
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
514
520
|
provider: z.ZodLiteral<"discord">;
|
|
515
521
|
resource: z.ZodLiteral<"channel">;
|
|
516
522
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -647,6 +653,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
647
653
|
balance: z.ZodString;
|
|
648
654
|
}, z.core.$strict>]>;
|
|
649
655
|
}, z.core.$strict>>>;
|
|
656
|
+
key: z.ZodOptional<z.ZodString>;
|
|
650
657
|
code: z.ZodString;
|
|
651
658
|
provider: z.ZodEnum<{
|
|
652
659
|
"fixture-pass": "fixture-pass";
|
|
@@ -768,6 +775,9 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
768
775
|
kind: "resource";
|
|
769
776
|
default: string;
|
|
770
777
|
source: {
|
|
778
|
+
provider: "domino";
|
|
779
|
+
resource: "point-ledger";
|
|
780
|
+
} | {
|
|
771
781
|
provider: "discord";
|
|
772
782
|
resource: "channel";
|
|
773
783
|
types: ("text" | "announcement")[];
|
|
@@ -891,6 +901,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
891
901
|
createdAt: number;
|
|
892
902
|
legacy: boolean;
|
|
893
903
|
lifecycle: "active" | "paused" | "archived";
|
|
904
|
+
key?: string | undefined;
|
|
894
905
|
origin?: {
|
|
895
906
|
typeVersion: string;
|
|
896
907
|
} | undefined;
|
|
@@ -996,6 +1007,9 @@ declare const templateSchema: z.ZodObject<{
|
|
|
996
1007
|
kind: z.ZodLiteral<"resource">;
|
|
997
1008
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
998
1009
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1010
|
+
provider: z.ZodLiteral<"domino">;
|
|
1011
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
1012
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
999
1013
|
provider: z.ZodLiteral<"discord">;
|
|
1000
1014
|
resource: z.ZodLiteral<"channel">;
|
|
1001
1015
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1296,8 +1310,8 @@ declare const configurePickupSchema: z.ZodObject<{
|
|
|
1296
1310
|
tiers: z.ZodArray<z.ZodObject<{
|
|
1297
1311
|
tier: z.ZodString;
|
|
1298
1312
|
variants: z.ZodArray<z.ZodObject<{
|
|
1299
|
-
item: z.ZodString;
|
|
1300
1313
|
label: z.ZodString;
|
|
1314
|
+
item: z.ZodOptional<z.ZodString>;
|
|
1301
1315
|
}, z.core.$strict>>;
|
|
1302
1316
|
}, z.core.$strict>>;
|
|
1303
1317
|
}, z.core.$strict>], "kind">;
|
|
@@ -1436,6 +1450,7 @@ declare const memberProgressSchema: z.ZodObject<{
|
|
|
1436
1450
|
member: z.ZodString;
|
|
1437
1451
|
quests: z.ZodArray<z.ZodObject<{
|
|
1438
1452
|
quest: z.ZodString;
|
|
1453
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1439
1454
|
release: z.ZodOptional<z.ZodString>;
|
|
1440
1455
|
title: z.ZodString;
|
|
1441
1456
|
presentation: z.ZodDefault<z.ZodObject<{
|
|
@@ -1705,6 +1720,9 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
1705
1720
|
kind: z.ZodLiteral<"resource">;
|
|
1706
1721
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
1707
1722
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1723
|
+
provider: z.ZodLiteral<"domino">;
|
|
1724
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
1725
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1708
1726
|
provider: z.ZodLiteral<"discord">;
|
|
1709
1727
|
resource: z.ZodLiteral<"channel">;
|
|
1710
1728
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1841,6 +1859,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
1841
1859
|
balance: z.ZodString;
|
|
1842
1860
|
}, z.core.$strict>]>;
|
|
1843
1861
|
}, z.core.$strict>>>;
|
|
1862
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1844
1863
|
code: z.ZodString;
|
|
1845
1864
|
provider: z.ZodEnum<{
|
|
1846
1865
|
"fixture-pass": "fixture-pass";
|
|
@@ -1962,6 +1981,9 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
1962
1981
|
kind: "resource";
|
|
1963
1982
|
default: string;
|
|
1964
1983
|
source: {
|
|
1984
|
+
provider: "domino";
|
|
1985
|
+
resource: "point-ledger";
|
|
1986
|
+
} | {
|
|
1965
1987
|
provider: "discord";
|
|
1966
1988
|
resource: "channel";
|
|
1967
1989
|
types: ("text" | "announcement")[];
|
|
@@ -2085,6 +2107,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
2085
2107
|
createdAt: number;
|
|
2086
2108
|
legacy: boolean;
|
|
2087
2109
|
lifecycle: "active" | "paused" | "archived";
|
|
2110
|
+
key?: string | undefined;
|
|
2088
2111
|
origin?: {
|
|
2089
2112
|
typeVersion: string;
|
|
2090
2113
|
} | undefined;
|
|
@@ -2501,5 +2524,13 @@ declare const memberPageSchema: z.ZodObject<{
|
|
|
2501
2524
|
}, z.core.$strip>;
|
|
2502
2525
|
type ReviewPage = z.infer<typeof reviewPageSchema>;
|
|
2503
2526
|
type MemberPage = z.infer<typeof memberPageSchema>;
|
|
2527
|
+
declare const createStockItemSchema: z.ZodObject<{
|
|
2528
|
+
actionId: z.ZodString;
|
|
2529
|
+
name: z.ZodString;
|
|
2530
|
+
}, z.core.$strict>;
|
|
2531
|
+
declare const stockItemSchema: z.ZodObject<{
|
|
2532
|
+
id: z.ZodString;
|
|
2533
|
+
name: z.ZodString;
|
|
2534
|
+
}, z.core.$strip>;
|
|
2504
2535
|
|
|
2505
|
-
export { type Attempt, type Decision, type Entitlement, type MemberListOptions, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewListOptions, type ReviewPage, type Reward, type Snapshot, type SubmitInput, type TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, 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, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema };
|
|
2536
|
+
export { type Attempt, type Decision, type Entitlement, type MemberListOptions, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewListOptions, type ReviewPage, type Reward, type Snapshot, type SubmitInput, type TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, 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, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema };
|
package/dist/schema.js
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
completionRecordSchema,
|
|
7
7
|
configurePickupSchema,
|
|
8
8
|
confirmHandoverSchema,
|
|
9
|
+
createStockItemSchema,
|
|
9
10
|
decisionSchema,
|
|
10
11
|
entitlementSchema,
|
|
11
12
|
errorSchema,
|
|
@@ -43,13 +44,14 @@ import {
|
|
|
43
44
|
rewardSchema,
|
|
44
45
|
snapshotSchema,
|
|
45
46
|
staffDecisionSchema,
|
|
47
|
+
stockItemSchema,
|
|
46
48
|
stockSchema,
|
|
47
49
|
submitSchema,
|
|
48
50
|
templateSchema,
|
|
49
51
|
tierRewardSchema,
|
|
50
52
|
tieredRewardDefinitionSchema,
|
|
51
53
|
triggerSchema
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-Z43O273V.js";
|
|
53
55
|
export {
|
|
54
56
|
artifactSchema,
|
|
55
57
|
attemptSchema,
|
|
@@ -58,6 +60,7 @@ export {
|
|
|
58
60
|
completionRecordSchema,
|
|
59
61
|
configurePickupSchema,
|
|
60
62
|
confirmHandoverSchema,
|
|
63
|
+
createStockItemSchema,
|
|
61
64
|
decisionSchema,
|
|
62
65
|
entitlementSchema,
|
|
63
66
|
errorSchema,
|
|
@@ -95,6 +98,7 @@ export {
|
|
|
95
98
|
rewardSchema,
|
|
96
99
|
snapshotSchema,
|
|
97
100
|
staffDecisionSchema,
|
|
101
|
+
stockItemSchema,
|
|
98
102
|
stockSchema,
|
|
99
103
|
submitSchema,
|
|
100
104
|
templateSchema,
|