@domino-sdk/relay 0.24.0 → 0.25.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 +52 -10
- package/dist/authoring.js +48 -8
- package/dist/browser.d.ts +431 -27
- package/dist/browser.js +22 -7
- package/dist/chunk-7QICEKC2.js +229 -0
- package/dist/{chunk-ZOL7RYHW.js → chunk-AKB266O5.js} +46 -3
- package/dist/chunk-D6BX627V.js +175 -0
- package/dist/{chunk-UYS522ER.js → chunk-IXLY3A7B.js} +550 -396
- package/dist/chunk-MZFUQQDP.js +355 -0
- package/dist/{chunk-RTBIXGMH.js → chunk-S44XSDW2.js} +779 -46
- package/dist/index.d.ts +1186 -56
- package/dist/index.js +123 -11
- package/dist/portal-proxy.js +10 -5
- package/dist/react/index.d.ts +498 -13
- package/dist/react/index.js +316 -40
- package/dist/schema.d.ts +82 -2
- package/dist/schema.js +1 -1
- package/dist/{submission-input-CK4Dy19H.d.ts → submission-input-Ckpb4sBv.d.ts} +1899 -2
- package/package.json +5 -3
- package/dist/chunk-57TGYC5Y.js +0 -37
- package/dist/chunk-ND3CVNIW.js +0 -61
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
RelayError,
|
|
4
4
|
allocateQuestSchema,
|
|
5
5
|
allocatedQuestSchema,
|
|
6
|
+
avatarSrc,
|
|
6
7
|
catalogDeploymentPreviewSchema,
|
|
7
8
|
catalogDeploymentSchema,
|
|
8
9
|
collectionBeginSchema,
|
|
@@ -15,8 +16,12 @@ import {
|
|
|
15
16
|
collectionViewSchema,
|
|
16
17
|
createPointLedgerSchema,
|
|
17
18
|
createRelayClient,
|
|
19
|
+
defaultAvatar,
|
|
20
|
+
defaultAvatarSvg,
|
|
18
21
|
deploymentPreviewSchema,
|
|
19
22
|
deploymentResultSchema,
|
|
23
|
+
evmChainSchema,
|
|
24
|
+
evmChains,
|
|
20
25
|
identityIntegrationInputSchema,
|
|
21
26
|
identityIntegrationSchema,
|
|
22
27
|
identityIntegrationSecretSchema,
|
|
@@ -61,18 +66,13 @@ import {
|
|
|
61
66
|
rewardDeliveriesSchema,
|
|
62
67
|
rewardDeliverySchema,
|
|
63
68
|
saveQuestDraftSchema,
|
|
64
|
-
|
|
65
|
-
solanaBalanceSchema,
|
|
66
|
-
walletChallengeInputSchema,
|
|
67
|
-
walletChallengeSchema,
|
|
68
|
-
walletConnectionSchema,
|
|
69
|
-
walletProofSchema,
|
|
69
|
+
walletAvatarSeed,
|
|
70
70
|
xConnectionSchema,
|
|
71
71
|
xIdSchema,
|
|
72
72
|
xPostSchema,
|
|
73
73
|
xProfileSchema,
|
|
74
74
|
xRequestSchema
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-S44XSDW2.js";
|
|
76
76
|
import {
|
|
77
77
|
defineEngagementReward,
|
|
78
78
|
defineLeaderboard,
|
|
@@ -93,6 +93,7 @@ import {
|
|
|
93
93
|
engagementSettlementSchema,
|
|
94
94
|
engagementVersionPageSchema,
|
|
95
95
|
engagementVersionQuerySchema,
|
|
96
|
+
formatUnits,
|
|
96
97
|
leaderboardArtifactSchema,
|
|
97
98
|
leaderboardAuthoringSchema,
|
|
98
99
|
leaderboardDefinitionSchema,
|
|
@@ -103,6 +104,7 @@ import {
|
|
|
103
104
|
leaderboardQuerySchema,
|
|
104
105
|
leaderboardRowSchema,
|
|
105
106
|
leaderboardWindowSchema,
|
|
107
|
+
parseUnits,
|
|
106
108
|
pointsAccountSchema,
|
|
107
109
|
pointsEntrySchema,
|
|
108
110
|
pointsMutationSchema,
|
|
@@ -119,14 +121,59 @@ import {
|
|
|
119
121
|
referralManagementSchema,
|
|
120
122
|
referralRelationshipSchema,
|
|
121
123
|
referralSummarySchema
|
|
122
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-AKB266O5.js";
|
|
123
125
|
import {
|
|
126
|
+
WALLETS_PER_CHAIN,
|
|
124
127
|
authScopeSchema,
|
|
128
|
+
caip10,
|
|
129
|
+
cosmosAddressSchema,
|
|
130
|
+
cosmosNetworkSchema,
|
|
131
|
+
cosmosNetworks,
|
|
132
|
+
evmAddressSchema,
|
|
125
133
|
exchangeResultSchema,
|
|
126
134
|
exchangeSchema,
|
|
135
|
+
isWalletParticipantRoute,
|
|
136
|
+
isWalletSignInRoute,
|
|
137
|
+
linkedWalletSchema,
|
|
138
|
+
memberSummarySchema,
|
|
127
139
|
principalSchema,
|
|
128
|
-
sessionSchema
|
|
129
|
-
|
|
140
|
+
sessionSchema,
|
|
141
|
+
solanaAddressSchema,
|
|
142
|
+
solanaBalanceSchema,
|
|
143
|
+
solanaMainnet,
|
|
144
|
+
walletAddressInput,
|
|
145
|
+
walletAddressInputSchema,
|
|
146
|
+
walletBalanceSchema,
|
|
147
|
+
walletChainSchema,
|
|
148
|
+
walletChallengeInputSchema,
|
|
149
|
+
walletChallengeSchema,
|
|
150
|
+
walletConnectionSchema,
|
|
151
|
+
walletMessageChallengeSchema,
|
|
152
|
+
walletProofSchema,
|
|
153
|
+
walletSignInNetwork,
|
|
154
|
+
walletSignInNetworkSchema,
|
|
155
|
+
walletSignatureSchema,
|
|
156
|
+
walletUnlinkInputSchema
|
|
157
|
+
} from "./chunk-7QICEKC2.js";
|
|
158
|
+
import {
|
|
159
|
+
AVATAR_UPLOAD_LIMIT,
|
|
160
|
+
avatarProviderSchema,
|
|
161
|
+
avatarSeedSchema,
|
|
162
|
+
avatarUploadTypes,
|
|
163
|
+
displayNameSchema,
|
|
164
|
+
isProfileParticipantRoute,
|
|
165
|
+
managedProfileSchema,
|
|
166
|
+
ownProfileSchema,
|
|
167
|
+
profileAvatarSchema,
|
|
168
|
+
profileDefaultsSchema,
|
|
169
|
+
profileModerationSchema,
|
|
170
|
+
profileSettingsInputSchema,
|
|
171
|
+
profileSettingsSchema,
|
|
172
|
+
profileSummarySchema,
|
|
173
|
+
profileUpdateSchema,
|
|
174
|
+
profileVisibilitySchema,
|
|
175
|
+
publicProfileSchema
|
|
176
|
+
} from "./chunk-D6BX627V.js";
|
|
130
177
|
import {
|
|
131
178
|
accountConnectionSchema,
|
|
132
179
|
admittedContentSchema,
|
|
@@ -248,13 +295,20 @@ import {
|
|
|
248
295
|
tieredRewardDefinitionSchema,
|
|
249
296
|
tieredRewardReferenceSchema,
|
|
250
297
|
trackerArtifactSchema,
|
|
298
|
+
trackerAttributionSchema,
|
|
299
|
+
trackerBeneficiarySchema,
|
|
251
300
|
trackerContentQuerySchema,
|
|
252
301
|
trackerContentReadSchema,
|
|
253
302
|
trackerContentSchema,
|
|
254
303
|
trackerControlSchema,
|
|
255
304
|
trackerDefinitionSchema,
|
|
305
|
+
trackerEvidenceSchema,
|
|
256
306
|
trackerIngestResultSchema,
|
|
257
307
|
trackerIngestSchema,
|
|
308
|
+
trackerOutcomePageSchema,
|
|
309
|
+
trackerOutcomeQuerySchema,
|
|
310
|
+
trackerOutcomeRetrySchema,
|
|
311
|
+
trackerOutcomeSchema,
|
|
258
312
|
trackerPageSchema,
|
|
259
313
|
trackerPreviewInputSchema,
|
|
260
314
|
trackerPreviewLimits,
|
|
@@ -265,6 +319,9 @@ import {
|
|
|
265
319
|
trackerSourceSchema,
|
|
266
320
|
trackerStatusSchema,
|
|
267
321
|
trackerSummarySchema,
|
|
322
|
+
trackerTriggerContextSchema,
|
|
323
|
+
trackerTriggerPolicySchema,
|
|
324
|
+
trackerTriggerRecordSchema,
|
|
268
325
|
triggerSchema,
|
|
269
326
|
urlEvidenceSchema,
|
|
270
327
|
urlOptionsSchema,
|
|
@@ -274,10 +331,12 @@ import {
|
|
|
274
331
|
xContentBodySchema,
|
|
275
332
|
xPostId,
|
|
276
333
|
xTweetSchema
|
|
277
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-IXLY3A7B.js";
|
|
278
335
|
export {
|
|
336
|
+
AVATAR_UPLOAD_LIMIT,
|
|
279
337
|
QuestUpdatedError,
|
|
280
338
|
RelayError,
|
|
339
|
+
WALLETS_PER_CHAIN,
|
|
281
340
|
accountConnectionSchema,
|
|
282
341
|
admittedContentSchema,
|
|
283
342
|
allocateQuestSchema,
|
|
@@ -286,9 +345,14 @@ export {
|
|
|
286
345
|
attemptSchema,
|
|
287
346
|
authProviderSchema,
|
|
288
347
|
authScopeSchema,
|
|
348
|
+
avatarProviderSchema,
|
|
349
|
+
avatarSeedSchema,
|
|
350
|
+
avatarSrc,
|
|
351
|
+
avatarUploadTypes,
|
|
289
352
|
batchReleaseSchema,
|
|
290
353
|
beginHandoverSchema,
|
|
291
354
|
budgetSchema,
|
|
355
|
+
caip10,
|
|
292
356
|
catalogDeploymentPreviewSchema,
|
|
293
357
|
catalogDeploymentSchema,
|
|
294
358
|
collectionBeginSchema,
|
|
@@ -324,11 +388,16 @@ export {
|
|
|
324
388
|
contentQualificationQuerySchema,
|
|
325
389
|
contentQualificationSchema,
|
|
326
390
|
contentReleaseInputSchema,
|
|
391
|
+
cosmosAddressSchema,
|
|
392
|
+
cosmosNetworkSchema,
|
|
393
|
+
cosmosNetworks,
|
|
327
394
|
createPointLedgerSchema,
|
|
328
395
|
createRelayClient,
|
|
329
396
|
createStockItemSchema,
|
|
330
397
|
customSource,
|
|
331
398
|
decisionSchema,
|
|
399
|
+
defaultAvatar,
|
|
400
|
+
defaultAvatarSvg,
|
|
332
401
|
defineEngagementReward,
|
|
333
402
|
defineLeaderboard,
|
|
334
403
|
defineReferral,
|
|
@@ -342,6 +411,7 @@ export {
|
|
|
342
411
|
discordMessageSchema,
|
|
343
412
|
discordReactionSchema,
|
|
344
413
|
discordServerSchema,
|
|
414
|
+
displayNameSchema,
|
|
345
415
|
engagementArtifactSchema,
|
|
346
416
|
engagementBoundaryPageSchema,
|
|
347
417
|
engagementChangePreviewInputSchema,
|
|
@@ -362,8 +432,12 @@ export {
|
|
|
362
432
|
errorSchema,
|
|
363
433
|
eventSchema,
|
|
364
434
|
evidenceSchema,
|
|
435
|
+
evmAddressSchema,
|
|
436
|
+
evmChainSchema,
|
|
437
|
+
evmChains,
|
|
365
438
|
exchangeResultSchema,
|
|
366
439
|
exchangeSchema,
|
|
440
|
+
formatUnits,
|
|
367
441
|
identifier,
|
|
368
442
|
identityIntegrationInputSchema,
|
|
369
443
|
identityIntegrationSchema,
|
|
@@ -383,6 +457,9 @@ export {
|
|
|
383
457
|
integrationRewardSchema,
|
|
384
458
|
interactionSchema,
|
|
385
459
|
isContentParticipantRoute,
|
|
460
|
+
isProfileParticipantRoute,
|
|
461
|
+
isWalletParticipantRoute,
|
|
462
|
+
isWalletSignInRoute,
|
|
386
463
|
leaderboardArtifactSchema,
|
|
387
464
|
leaderboardAuthoringSchema,
|
|
388
465
|
leaderboardDefinitionSchema,
|
|
@@ -393,18 +470,23 @@ export {
|
|
|
393
470
|
leaderboardQuerySchema,
|
|
394
471
|
leaderboardRowSchema,
|
|
395
472
|
leaderboardWindowSchema,
|
|
473
|
+
linkedWalletSchema,
|
|
474
|
+
managedProfileSchema,
|
|
396
475
|
mediaUrlSchema,
|
|
397
476
|
memberListSchema,
|
|
398
477
|
memberPageSchema,
|
|
399
478
|
memberProgressSchema,
|
|
479
|
+
memberSummarySchema,
|
|
400
480
|
missingResourceSettings,
|
|
401
481
|
observationInputSchema,
|
|
402
482
|
observationReceiptSchema,
|
|
403
483
|
observationSchema,
|
|
404
484
|
observationTriggerSchema,
|
|
485
|
+
ownProfileSchema,
|
|
405
486
|
parseImageExtraction,
|
|
406
487
|
parseImageResult,
|
|
407
488
|
parseSettings,
|
|
489
|
+
parseUnits,
|
|
408
490
|
participantExchangeSchema,
|
|
409
491
|
perContent,
|
|
410
492
|
photoResultSchema,
|
|
@@ -425,9 +507,18 @@ export {
|
|
|
425
507
|
pointsRewardSchema,
|
|
426
508
|
prerequisiteSchema,
|
|
427
509
|
principalSchema,
|
|
510
|
+
profileAvatarSchema,
|
|
511
|
+
profileDefaultsSchema,
|
|
512
|
+
profileModerationSchema,
|
|
513
|
+
profileSettingsInputSchema,
|
|
514
|
+
profileSettingsSchema,
|
|
515
|
+
profileSummarySchema,
|
|
516
|
+
profileUpdateSchema,
|
|
517
|
+
profileVisibilitySchema,
|
|
428
518
|
projectCatalogArtifactSchema,
|
|
429
519
|
projectDeploymentSchema,
|
|
430
520
|
projectIntegrationSchema,
|
|
521
|
+
publicProfileSchema,
|
|
431
522
|
publishDeploymentSchema,
|
|
432
523
|
publishQuestDraftSchema,
|
|
433
524
|
publishedImageSchema,
|
|
@@ -492,6 +583,7 @@ export {
|
|
|
492
583
|
snapshotSchema,
|
|
493
584
|
solanaAddressSchema,
|
|
494
585
|
solanaBalanceSchema,
|
|
586
|
+
solanaMainnet,
|
|
495
587
|
staffDecisionSchema,
|
|
496
588
|
stockItemSchema,
|
|
497
589
|
stockSchema,
|
|
@@ -510,13 +602,20 @@ export {
|
|
|
510
602
|
tieredRewardDefinitionSchema,
|
|
511
603
|
tieredRewardReferenceSchema,
|
|
512
604
|
trackerArtifactSchema,
|
|
605
|
+
trackerAttributionSchema,
|
|
606
|
+
trackerBeneficiarySchema,
|
|
513
607
|
trackerContentQuerySchema,
|
|
514
608
|
trackerContentReadSchema,
|
|
515
609
|
trackerContentSchema,
|
|
516
610
|
trackerControlSchema,
|
|
517
611
|
trackerDefinitionSchema,
|
|
612
|
+
trackerEvidenceSchema,
|
|
518
613
|
trackerIngestResultSchema,
|
|
519
614
|
trackerIngestSchema,
|
|
615
|
+
trackerOutcomePageSchema,
|
|
616
|
+
trackerOutcomeQuerySchema,
|
|
617
|
+
trackerOutcomeRetrySchema,
|
|
618
|
+
trackerOutcomeSchema,
|
|
520
619
|
trackerPageSchema,
|
|
521
620
|
trackerPreviewInputSchema,
|
|
522
621
|
trackerPreviewLimits,
|
|
@@ -527,15 +626,28 @@ export {
|
|
|
527
626
|
trackerSourceSchema,
|
|
528
627
|
trackerStatusSchema,
|
|
529
628
|
trackerSummarySchema,
|
|
629
|
+
trackerTriggerContextSchema,
|
|
630
|
+
trackerTriggerPolicySchema,
|
|
631
|
+
trackerTriggerRecordSchema,
|
|
530
632
|
triggerSchema,
|
|
531
633
|
urlEvidenceSchema,
|
|
532
634
|
urlOptionsSchema,
|
|
533
635
|
validateSubmissionValue,
|
|
534
636
|
valueEvidenceSchema,
|
|
637
|
+
walletAddressInput,
|
|
638
|
+
walletAddressInputSchema,
|
|
639
|
+
walletAvatarSeed,
|
|
640
|
+
walletBalanceSchema,
|
|
641
|
+
walletChainSchema,
|
|
535
642
|
walletChallengeInputSchema,
|
|
536
643
|
walletChallengeSchema,
|
|
537
644
|
walletConnectionSchema,
|
|
645
|
+
walletMessageChallengeSchema,
|
|
538
646
|
walletProofSchema,
|
|
647
|
+
walletSignInNetwork,
|
|
648
|
+
walletSignInNetworkSchema,
|
|
649
|
+
walletSignatureSchema,
|
|
650
|
+
walletUnlinkInputSchema,
|
|
539
651
|
x,
|
|
540
652
|
xConnectionSchema,
|
|
541
653
|
xContentBodySchema,
|
package/dist/portal-proxy.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
exchangeResultSchema
|
|
3
|
-
|
|
2
|
+
exchangeResultSchema,
|
|
3
|
+
isWalletParticipantRoute,
|
|
4
|
+
isWalletSignInRoute
|
|
5
|
+
} from "./chunk-7QICEKC2.js";
|
|
6
|
+
import {
|
|
7
|
+
isProfileParticipantRoute
|
|
8
|
+
} from "./chunk-D6BX627V.js";
|
|
4
9
|
import {
|
|
5
10
|
isContentParticipantRoute
|
|
6
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IXLY3A7B.js";
|
|
7
12
|
|
|
8
13
|
// src/portal-proxy.ts
|
|
9
14
|
async function proxyParticipant(request, upstream) {
|
|
@@ -11,9 +16,9 @@ async function proxyParticipant(request, upstream) {
|
|
|
11
16
|
const path = incoming.pathname.slice("/relay".length);
|
|
12
17
|
const allowed = incoming.pathname.startsWith("/relay/") && (/^\/v1\/auth\/(providers|connections|accounts(?:\/disconnect)?|start|authorize|complete|session|logout|email\/start|email\/verify|callback\/[a-z][a-z0-9-]*)$/.test(
|
|
13
18
|
path
|
|
14
|
-
) || /^\/v1\/me\/(progress|experience|attempts|evidence|pass|collection-pass
|
|
19
|
+
) || /^\/v1\/me\/(progress|experience|attempts|evidence|pass|collection-pass)$/.test(
|
|
15
20
|
path
|
|
16
|
-
) || /^\/v1\/attempts\/[\w-]+(?:\/retry)?$/.test(path) || /^\/v1\/referrals(?:\/(me|history))?$/.test(path) && request.method === "GET" || isContentParticipantRoute(path, request.method) || path === "/v1/reward-deliveries" && request.method === "GET" || path === "/v1/referrals/accept" && request.method === "POST" || request.method === "GET" && /^\/v1\/leaderboards(?:\/[\w-]+)?$/.test(path) || request.method === "GET" && (path === "/v1/point-ledgers" || path === "/v1/tiered-rewards"));
|
|
21
|
+
) || isWalletParticipantRoute(path) || isWalletSignInRoute(path) || path === "/v1/me" && request.method === "GET" || /^\/v1\/attempts\/[\w-]+(?:\/retry)?$/.test(path) || /^\/v1\/referrals(?:\/(me|history))?$/.test(path) && request.method === "GET" || isContentParticipantRoute(path, request.method) || isProfileParticipantRoute(path, request.method) || path === "/v1/reward-deliveries" && request.method === "GET" || path === "/v1/referrals/accept" && request.method === "POST" || request.method === "GET" && /^\/v1\/leaderboards(?:\/[\w-]+)?$/.test(path) || request.method === "GET" && (path === "/v1/point-ledgers" || path === "/v1/tiered-rewards"));
|
|
17
22
|
if (!allowed || !["GET", "POST"].includes(request.method)) {
|
|
18
23
|
return Response.json({ error: "Route not found" }, { status: 404 });
|
|
19
24
|
}
|