@domino-sdk/relay 1.15.0 → 1.18.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/{attempt-captures-DHwIVoRP.d.ts → attempt-captures-ByzZyggX.d.ts} +5 -1
- package/dist/authoring.d.ts +119 -46
- package/dist/authoring.js +14 -9
- package/dist/{automatic-outcomes-BcEn_L46.d.ts → automatic-outcomes-BBSdMf0R.d.ts} +2 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +7 -7
- package/dist/browser.js +9 -11
- package/dist/{chunk-PJXBW754.js → chunk-4VWMY4II.js} +32 -25
- package/dist/{chunk-6QJ3LADK.js → chunk-5P5PTZ3T.js} +1 -1
- package/dist/{chunk-PUY35TH3.js → chunk-BWW3XLEE.js} +2 -2
- package/dist/{chunk-W335CWYJ.js → chunk-CVQG2AZZ.js} +2 -2
- package/dist/{chunk-ZLYBUM7K.js → chunk-DQWRDRVO.js} +26 -14
- package/dist/{chunk-46C33ASD.js → chunk-EMLDFUTV.js} +1314 -908
- package/dist/{chunk-4OLQYRSA.js → chunk-GMKJPHN4.js} +1 -1
- package/dist/{chunk-CHD6HHWG.js → chunk-HQBCFU5G.js} +6 -8
- package/dist/{chunk-3PPEXDWR.js → chunk-I525XMUY.js} +1 -1
- package/dist/{chunk-LLMJ2SUT.js → chunk-IE4QOQUI.js} +21 -4
- package/dist/{chunk-ZGH6NEG6.js → chunk-JIQHUDVZ.js} +1 -1
- package/dist/{chunk-NIYCAW2I.js → chunk-NGP2NMZ4.js} +1 -1
- package/dist/{chunk-XMBM2XD5.js → chunk-T47OFHHX.js} +2 -4
- package/dist/{chunk-AXRMT33W.js → chunk-UIHPWC4C.js} +3 -0
- package/dist/{chunk-UJACD6K2.js → chunk-XSLRNFIY.js} +346 -304
- package/dist/{chunk-PT5STHFH.js → chunk-YXAK2637.js} +1 -1
- package/dist/{client-DFSCmf3H.d.ts → client-93pUw04R.d.ts} +182 -14
- package/dist/{deployments-Ci6GyANg.d.ts → deployments-D0mrWCsp.d.ts} +931 -115
- package/dist/{groups-Bi7lc54m.d.ts → groups-jLLG7MML.d.ts} +27 -2
- package/dist/{images-Cb8QHGjn.d.ts → images-BPiPqVKn.d.ts} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +12 -16
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +9 -10
- package/dist/{offers-Catj06u7.d.ts → offers-CPqiF3dZ.d.ts} +92 -3
- package/dist/{pages-CpYt56Km.d.ts → pages-1h1387a3.d.ts} +757 -3
- package/dist/portal-proxy.js +4 -4
- package/dist/react/index.d.ts +47 -19
- package/dist/react/index.js +361 -340
- package/dist/{schema-BaVl2VBS.d.ts → schema-Br3c1GOu.d.ts} +508 -2
- package/dist/schema.d.ts +866 -325
- package/dist/schema.js +61 -32
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +799 -541
- package/dist/{sign-in-options-CU1ND6-y.d.ts → sign-in-options--25uHySG.d.ts} +1 -1
- package/dist/{submission-input-Bi4HipqI.d.ts → submission-input-BEJ9qENg.d.ts} +2 -2
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +10 -13
- package/dist/{transport-0ttRwUat.d.ts → transport-C2cK-6wO.d.ts} +8598 -2008
- package/package.json +2 -1
- package/dist/chunk-2UAVZCMH.js +0 -314
- package/dist/chunk-NPGENI7K.js +0 -37
- package/dist/{profiles-BHMVj0kM.d.ts → profiles-D29SS12z.d.ts} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayAction,
|
|
3
3
|
withActionId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T47OFHHX.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionPassSchema,
|
|
7
7
|
participantActivityQuerySchema,
|
|
@@ -16,10 +16,11 @@ import {
|
|
|
16
16
|
questOutcomeQuerySchema,
|
|
17
17
|
questOutcomeSchema,
|
|
18
18
|
rewardDeliveriesSchema
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IE4QOQUI.js";
|
|
20
20
|
import {
|
|
21
21
|
AVATAR_UPLOAD_LIMIT,
|
|
22
22
|
avatarUploadTypes,
|
|
23
|
+
badgeSchema,
|
|
23
24
|
engagementBoundaryPageSchema,
|
|
24
25
|
engagementPageQuerySchema,
|
|
25
26
|
engagementPageSchema,
|
|
@@ -27,6 +28,7 @@ import {
|
|
|
27
28
|
leaderboardPageSchema,
|
|
28
29
|
leaderboardPlacementSchema,
|
|
29
30
|
leaderboardQuerySchema,
|
|
31
|
+
memberBadgesSchema,
|
|
30
32
|
offerSchema,
|
|
31
33
|
ownProfileSchema,
|
|
32
34
|
pointBalancesSchema,
|
|
@@ -43,65 +45,61 @@ import {
|
|
|
43
45
|
referralDefinitionSchema,
|
|
44
46
|
referralHistorySchema,
|
|
45
47
|
referralSummarySchema
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
RelayError,
|
|
49
|
-
RelayErrorCode,
|
|
50
|
-
clientError,
|
|
51
|
-
isRelayError,
|
|
52
|
-
linkedWalletSchema,
|
|
53
|
-
parseInput,
|
|
54
|
-
walletAddressInput,
|
|
55
|
-
walletAddressInputSchema,
|
|
56
|
-
walletMessageChallengeSchema,
|
|
57
|
-
walletSignInNetworksSchema,
|
|
58
|
-
walletSignatureSchema,
|
|
59
|
-
walletUnlinkInputSchema
|
|
60
|
-
} from "./chunk-2UAVZCMH.js";
|
|
48
|
+
} from "./chunk-XSLRNFIY.js";
|
|
61
49
|
import {
|
|
62
50
|
PARTICIPANT_TIMEOUT,
|
|
63
51
|
lifetime,
|
|
64
52
|
retryAfter,
|
|
65
53
|
retrying,
|
|
66
54
|
validTimeout
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
isRequestError
|
|
70
|
-
} from "./chunk-NPGENI7K.js";
|
|
55
|
+
} from "./chunk-5P5PTZ3T.js";
|
|
71
56
|
import {
|
|
72
57
|
clientIdentity
|
|
73
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-I525XMUY.js";
|
|
74
59
|
import {
|
|
75
60
|
exchangeResultSchema,
|
|
76
61
|
exchangeSchema,
|
|
77
62
|
memberSummarySchema,
|
|
78
63
|
participantSessionSchema,
|
|
79
64
|
sessionMember
|
|
80
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YXAK2637.js";
|
|
81
66
|
import {
|
|
67
|
+
RelayError,
|
|
68
|
+
RelayErrorCode,
|
|
82
69
|
accountConnectionSchema,
|
|
83
70
|
attemptSchema,
|
|
84
71
|
authProviderSchema,
|
|
85
72
|
campaignEnrollmentInputSchema,
|
|
86
73
|
campaignEnrollmentSchema,
|
|
87
74
|
campaignWithdrawalInputSchema,
|
|
75
|
+
clientError,
|
|
88
76
|
contentPerformancePageSchema,
|
|
89
77
|
contentPerformanceQuerySchema,
|
|
90
78
|
contentQualificationPageSchema,
|
|
91
79
|
contentQualificationQuerySchema,
|
|
92
80
|
evidenceSchema,
|
|
93
81
|
identifier,
|
|
82
|
+
isRelayError,
|
|
83
|
+
isRequestError,
|
|
94
84
|
knownResponse,
|
|
85
|
+
linkedWalletSchema,
|
|
95
86
|
memberProgressSchema,
|
|
96
87
|
missingPrerequisiteSchema,
|
|
97
88
|
pageQuerySchema,
|
|
89
|
+
parseInput,
|
|
98
90
|
quizEvidenceSchema,
|
|
99
91
|
submissionEvidenceSchema,
|
|
100
92
|
submitSchema,
|
|
101
93
|
tieredRewardReferenceSchema,
|
|
102
94
|
validateSubmissionValue,
|
|
103
|
-
valueEvidenceSchema
|
|
104
|
-
|
|
95
|
+
valueEvidenceSchema,
|
|
96
|
+
walletAddressInput,
|
|
97
|
+
walletAddressInputSchema,
|
|
98
|
+
walletMessageChallengeSchema,
|
|
99
|
+
walletSignInNetworksSchema,
|
|
100
|
+
walletSignatureSchema,
|
|
101
|
+
walletUnlinkInputSchema
|
|
102
|
+
} from "./chunk-EMLDFUTV.js";
|
|
105
103
|
|
|
106
104
|
// src/submissions.ts
|
|
107
105
|
import { z } from "zod";
|
|
@@ -1208,6 +1206,9 @@ function relayClient(options) {
|
|
|
1208
1206
|
options: requestOptions
|
|
1209
1207
|
})
|
|
1210
1208
|
},
|
|
1209
|
+
badges: {
|
|
1210
|
+
list: (options2) => request("/v1/badges", z2.array(badgeSchema), { options: options2 })
|
|
1211
|
+
},
|
|
1211
1212
|
pointLedgers: {
|
|
1212
1213
|
/**
|
|
1213
1214
|
* The project's point ledgers with their keys and names. Reads return
|
|
@@ -1246,6 +1247,11 @@ function relayClient(options) {
|
|
|
1246
1247
|
* `@domino-sdk/relay/avatar`.
|
|
1247
1248
|
*/
|
|
1248
1249
|
profiles: {
|
|
1250
|
+
badges: (profile, options2) => request(
|
|
1251
|
+
`/v1/profiles/${parseInput(identifier, profile)}/badges`,
|
|
1252
|
+
memberBadgesSchema,
|
|
1253
|
+
{ options: options2 }
|
|
1254
|
+
),
|
|
1249
1255
|
/** The signed-in member's own profile, whatever the project shows to others. */
|
|
1250
1256
|
mine: (requestOptions) => request("/v1/me/profile", ownProfileSchema, {
|
|
1251
1257
|
options: requestOptions
|
|
@@ -1613,6 +1619,7 @@ function relayClient(options) {
|
|
|
1613
1619
|
})
|
|
1614
1620
|
},
|
|
1615
1621
|
me: {
|
|
1622
|
+
badges: (options2) => request("/v1/me/badges", memberBadgesSchema, { options: options2 }),
|
|
1616
1623
|
activity: {
|
|
1617
1624
|
list: (query = {}, options2) => {
|
|
1618
1625
|
const parsed = parseInput(participantActivityQuerySchema, query);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4VWMY4II.js";
|
|
4
4
|
import {
|
|
5
5
|
RelayErrorCode,
|
|
6
6
|
asRelayError,
|
|
7
7
|
clientError,
|
|
8
8
|
cosmosChain
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EMLDFUTV.js";
|
|
10
10
|
|
|
11
11
|
// src/base58.ts
|
|
12
12
|
var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JIQHUDVZ.js";
|
|
8
8
|
import {
|
|
9
9
|
photoResultSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EMLDFUTV.js";
|
|
11
11
|
|
|
12
12
|
// src/image-results.ts
|
|
13
13
|
import { z } from "zod";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JIQHUDVZ.js";
|
|
10
10
|
import {
|
|
11
11
|
catalogDeploymentSchema,
|
|
12
12
|
collectionPassSchema,
|
|
@@ -24,8 +24,10 @@ import {
|
|
|
24
24
|
questTypeVersionSchema,
|
|
25
25
|
questViewSchema,
|
|
26
26
|
rewardDeliveriesSchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IE4QOQUI.js";
|
|
28
28
|
import {
|
|
29
|
+
badgeArtifactSchema,
|
|
30
|
+
badgeSchema,
|
|
29
31
|
engagementArtifactSchema,
|
|
30
32
|
engagementBoundaryPageSchema,
|
|
31
33
|
engagementDeploymentEntrySchema,
|
|
@@ -35,6 +37,8 @@ import {
|
|
|
35
37
|
leaderboardPageSchema,
|
|
36
38
|
leaderboardPlacementSchema,
|
|
37
39
|
leaderboardPreviewSchema,
|
|
40
|
+
managedBadgeSchema,
|
|
41
|
+
memberBadgesSchema,
|
|
38
42
|
offerArtifactSchema,
|
|
39
43
|
offerDefinitionSchema,
|
|
40
44
|
offerSchema,
|
|
@@ -53,18 +57,12 @@ import {
|
|
|
53
57
|
referralDefinitionSchema,
|
|
54
58
|
referralHistorySchema,
|
|
55
59
|
referralSummarySchema
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import {
|
|
58
|
-
linkedWalletSchema,
|
|
59
|
-
walletBalanceSchema,
|
|
60
|
-
walletMessageChallengeSchema,
|
|
61
|
-
walletSignInNetworksSchema
|
|
62
|
-
} from "./chunk-2UAVZCMH.js";
|
|
60
|
+
} from "./chunk-XSLRNFIY.js";
|
|
63
61
|
import {
|
|
64
62
|
exchangeResultSchema,
|
|
65
63
|
memberSummarySchema,
|
|
66
64
|
participantSessionSchema
|
|
67
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YXAK2637.js";
|
|
68
66
|
import {
|
|
69
67
|
accountConnectionSchema,
|
|
70
68
|
attemptSchema,
|
|
@@ -77,6 +75,7 @@ import {
|
|
|
77
75
|
identifier,
|
|
78
76
|
knownResponse,
|
|
79
77
|
lazyResponseReaders,
|
|
78
|
+
linkedWalletSchema,
|
|
80
79
|
markResponseSchema,
|
|
81
80
|
memberProgressSchema,
|
|
82
81
|
pageCursorSchema,
|
|
@@ -90,14 +89,18 @@ import {
|
|
|
90
89
|
rewardSchema,
|
|
91
90
|
tieredRewardReferenceSchema,
|
|
92
91
|
timeZoneNameSchema,
|
|
93
|
-
trackerArtifactSchema
|
|
94
|
-
|
|
92
|
+
trackerArtifactSchema,
|
|
93
|
+
walletBalanceSchema,
|
|
94
|
+
walletMessageChallengeSchema,
|
|
95
|
+
walletSignInNetworksSchema
|
|
96
|
+
} from "./chunk-EMLDFUTV.js";
|
|
95
97
|
|
|
96
98
|
// src/deployments.ts
|
|
97
99
|
import { z } from "zod";
|
|
98
100
|
var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
99
101
|
engagement: z.array(engagementArtifactSchema).max(50).default([]),
|
|
100
102
|
trackers: z.array(trackerArtifactSchema).max(50).default([]),
|
|
103
|
+
badges: z.array(badgeArtifactSchema).max(100).default([]),
|
|
101
104
|
pointLedgers: z.array(pointLedgerArtifactSchema).max(50).default([]),
|
|
102
105
|
offers: z.array(offerArtifactSchema).max(100).default([]),
|
|
103
106
|
referrals: z.array(referralArtifactSchema).max(50).default([]),
|
|
@@ -107,14 +110,15 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
107
110
|
calendar: projectCalendarDeclarationSchema.optional()
|
|
108
111
|
});
|
|
109
112
|
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({ releases: z.array(releaseSchema).max(50).default([]) }).refine(
|
|
110
|
-
(value) => value.engagement.length > 0 || value.trackers.length > 0 || value.pointLedgers.length > 0 || value.offers.length > 0 || value.releases.length > 0 || value.leaderboards.length > 0 || value.referrals.length > 0 || value.images.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0 || value.calendar !== void 0,
|
|
111
|
-
"No resources configured. Add engagement, trackers, quests, questTypes, pointLedgers, offers, leaderboards, referrals, images, collections, supportedInteractions, or calendar to relay.json."
|
|
113
|
+
(value) => value.engagement.length > 0 || value.trackers.length > 0 || value.pointLedgers.length > 0 || value.badges.length > 0 || value.offers.length > 0 || value.releases.length > 0 || value.leaderboards.length > 0 || value.referrals.length > 0 || value.images.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0 || value.calendar !== void 0,
|
|
114
|
+
"No resources configured. Add engagement, trackers, quests, questTypes, badges, pointLedgers, offers, leaderboards, referrals, images, collections, supportedInteractions, or calendar to relay.json."
|
|
112
115
|
);
|
|
113
116
|
var deploymentPreviewSchema = z.object({
|
|
114
117
|
id: identifier,
|
|
115
118
|
engagement: z.array(engagementDeploymentEntrySchema).default([]),
|
|
116
119
|
trackers: z.array(publishedTrackerSchema).default([]),
|
|
117
120
|
baseRevision: z.number().int().nonnegative(),
|
|
121
|
+
badges: z.array(managedBadgeSchema).optional(),
|
|
118
122
|
pointLedgers: z.array(pointLedgerSchema).default([]),
|
|
119
123
|
offers: z.array(offerDefinitionSchema).default([]),
|
|
120
124
|
releases: z.array(publishedReleaseSchema),
|
|
@@ -390,6 +394,12 @@ var automaticSchedulingRetrySchema = z3.strictObject({
|
|
|
390
394
|
|
|
391
395
|
// src/response-readers.ts
|
|
392
396
|
var participantResponseSchemas = lazyResponseReaders({
|
|
397
|
+
get badgeSchema() {
|
|
398
|
+
return knownResponse(badgeSchema);
|
|
399
|
+
},
|
|
400
|
+
get memberBadgesSchema() {
|
|
401
|
+
return knownResponse(memberBadgesSchema);
|
|
402
|
+
},
|
|
393
403
|
get accountConnectionSchema() {
|
|
394
404
|
return knownResponse(accountConnectionSchema);
|
|
395
405
|
},
|
|
@@ -515,6 +525,8 @@ var participantResponseSchemas = lazyResponseReaders({
|
|
|
515
525
|
}
|
|
516
526
|
});
|
|
517
527
|
var participantResponses = {
|
|
528
|
+
badgeSchema: responseSchema(badgeSchema),
|
|
529
|
+
memberBadgesSchema: responseSchema(memberBadgesSchema),
|
|
518
530
|
accountConnectionSchema: responseSchema(accountConnectionSchema),
|
|
519
531
|
attemptSchema: responseSchema(attemptSchema),
|
|
520
532
|
authProviderSchema: responseSchema(authProviderSchema),
|