@domino-sdk/relay 1.61.0 → 1.63.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/CHANGELOG.md +276 -8
- package/README.md +3 -2
- package/dist/{schema-CZ6Rj0ZF.d.ts → accounts-nz3mzfRQ.d.ts} +3146 -1765
- package/dist/action-9Xl0StBg.d.ts +33 -0
- package/dist/{attempt-captures-DYnJVkfg.d.ts → attempt-captures-DMi8oR9T.d.ts} +1 -1
- package/dist/authoring.d.ts +171 -49
- package/dist/authoring.js +158 -49
- package/dist/{automatic-outcomes-If88LR9f.d.ts → automatic-outcomes-C_LLQU1p.d.ts} +15 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +15 -11
- package/dist/browser.js +18 -12
- package/dist/capability-error-CuI_F7yM.d.ts +296 -0
- package/dist/{pages-K7-KjSXw.d.ts → catalog-BaTOKpNw.d.ts} +56 -567
- package/dist/{chunk-XBV2CK2H.js → chunk-3RFP6GT5.js} +15 -3
- package/dist/{chunk-VURRFVNP.js → chunk-4GQW43UU.js} +239 -361
- package/dist/chunk-4NOFSGAL.js +320 -0
- package/dist/{chunk-24I4R732.js → chunk-5XLZ34PV.js} +34 -19
- package/dist/{chunk-L77O64I4.js → chunk-7X67QLPB.js} +43 -43
- package/dist/{chunk-RHBS5FJL.js → chunk-7Z4SZ6YM.js} +3 -3
- package/dist/{chunk-QEAS4ZGS.js → chunk-AQOL3SK5.js} +1 -1
- package/dist/chunk-EHUSD3O2.js +377 -0
- package/dist/chunk-FO2LCZTL.js +19 -0
- package/dist/{chunk-DYXDZFKA.js → chunk-FU5CGNTR.js} +166 -178
- package/dist/chunk-FWLQ5XCS.js +21 -0
- package/dist/chunk-GLH6MEI2.js +193 -0
- package/dist/chunk-ICXZZNPS.js +199 -0
- package/dist/{chunk-ZDJLPN4L.js → chunk-ID3BZXFZ.js} +2696 -2693
- package/dist/chunk-KP2MCX3R.js +587 -0
- package/dist/{chunk-SKGTNTLF.js → chunk-LZWXCBUB.js} +213 -297
- package/dist/chunk-MTKRIQEU.js +31 -0
- package/dist/{chunk-4OC7REYX.js → chunk-MWMCQLCG.js} +3 -3
- package/dist/{chunk-PPB7HALD.js → chunk-N4BDKS6Y.js} +27 -26
- package/dist/{chunk-5I54XBK2.js → chunk-N4LNEGQX.js} +2 -2
- package/dist/chunk-NQDEWJWE.js +554 -0
- package/dist/chunk-QR6HH4DI.js +508 -0
- package/dist/chunk-TLSQETTY.js +41 -0
- package/dist/{chunk-MHPKEVEW.js → chunk-U66GUVSG.js} +7 -2
- package/dist/{chunk-KDR2VAJP.js → chunk-UYVJZR33.js} +2 -2
- package/dist/chunk-UZ765UGH.js +18 -0
- package/dist/{chunk-7A4J67ZL.js → chunk-VWQGWGCH.js} +7 -7
- package/dist/chunk-W7YSMSGC.js +725 -0
- package/dist/{client-C51w7fMb.d.ts → client-DHmG7rn6.d.ts} +126 -93
- package/dist/{announcements-CHx3-HBw.d.ts → dashboards-CLemT6kj.d.ts} +14 -137
- package/dist/{deployments-kWoHFaqj.d.ts → deployments-DTULi7dF.d.ts} +450 -18
- package/dist/identity-integration-DOeNZaxF.d.ts +1271 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +16 -11
- package/dist/internal.d.ts +29 -13
- package/dist/internal.js +57 -17
- package/dist/{integrations-B3y36OaB.d.ts → limits-kNzYdZ00.d.ts} +464 -53
- package/dist/{offers-BoV4ryUc.d.ts → offers-CYeN_I0Y.d.ts} +22 -4
- package/dist/{participant-activity-DHL8QYks.d.ts → participant-activity-D-Drp24G.d.ts} +16 -3
- package/dist/portal-proxy.d.ts +75 -2
- package/dist/portal-proxy.js +153 -25
- package/dist/react/index.d.ts +214 -27
- package/dist/react/index.js +196 -42
- package/dist/{action-DBzILFx9.d.ts → request-error-D_dUPLwo.d.ts} +1 -31
- package/dist/reward-deliveries-drp-x1G-.d.ts +782 -0
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/UGDV5W4N.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +330 -31
- package/dist/schema.js +147 -91
- package/dist/server/index.d.ts +14 -12
- package/dist/server/index.js +6425 -6260
- package/dist/sign-in-providers-B1Q9eDRm.d.ts +44 -0
- package/dist/submission-input-DZCbjQUH.d.ts +343 -0
- package/dist/{telegram-browser-BUceZIGZ.d.ts → telegram-browser-NL0Asmsi.d.ts} +46 -6
- package/dist/telegram.d.ts +64 -0
- package/dist/telegram.js +23 -0
- package/dist/testing.d.ts +326 -27
- package/dist/testing.js +440 -90
- package/dist/tracker-data-esm3WG8R.d.ts +1881 -0
- package/dist/{transport-BrX9pIGN.d.ts → transport-Czht_irp.d.ts} +43483 -38512
- package/dist/{wallet-CIqFoxdm.d.ts → wallet-B7e06v4m.d.ts} +32 -9
- package/package.json +5 -1
- package/dist/accounts-DoabriBX.d.ts +0 -306
- package/dist/capability-error-DufwG3G0.d.ts +0 -159
- package/dist/chunk-3Y3L2F54.js +0 -982
- package/dist/chunk-DHXDBAJF.js +0 -544
- package/dist/chunk-EN3M5Z4J.js +0 -13
- package/dist/chunk-QNUHWK7R.js +0 -602
- package/dist/chunk-SE4PFJPT.js +0 -247
- package/dist/groups-CqcA2Ycs.d.ts +0 -2827
- package/dist/runtime/chunks/5QVFB4TU.js +0 -1
- package/dist/submission-input-C54Q8yAD.d.ts +0 -146
- package/dist/x-D1PGi8Sq.d.ts +0 -331
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dashboardArtifactSchema,
|
|
3
|
-
dashboardPreviewSchema
|
|
4
|
-
} from "./chunk-DYXDZFKA.js";
|
|
5
1
|
import {
|
|
6
2
|
imageAssetArtifactSchema,
|
|
7
3
|
imageComparisonSchema,
|
|
@@ -10,41 +6,40 @@ import {
|
|
|
10
6
|
imageSightingsSchema,
|
|
11
7
|
imageUploadsSchema,
|
|
12
8
|
publishedImageSchema
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7X67QLPB.js";
|
|
14
10
|
import {
|
|
15
|
-
|
|
11
|
+
dashboardArtifactSchema,
|
|
12
|
+
dashboardIssue,
|
|
13
|
+
dashboardPreviewSchema,
|
|
14
|
+
normalizeDashboard
|
|
15
|
+
} from "./chunk-FU5CGNTR.js";
|
|
16
|
+
import {
|
|
17
|
+
authProvidersSchema,
|
|
16
18
|
collectionPassSchema,
|
|
17
|
-
collectionViewSchema,
|
|
18
19
|
creatorAccountsSchema,
|
|
19
|
-
interactionSchema,
|
|
20
|
-
participantActivitySchema,
|
|
21
20
|
participantDeliveriesSchema,
|
|
22
21
|
participantEntitlementsSchema,
|
|
23
|
-
questCatalogSchema,
|
|
24
|
-
questCollectionSchema,
|
|
25
22
|
questEnrollmentSchema,
|
|
26
|
-
questExperienceSchema,
|
|
27
23
|
questOutcomePageSchema,
|
|
28
24
|
questOutcomeSchema,
|
|
29
|
-
questTypeVersionSchema,
|
|
30
|
-
questViewSchema,
|
|
31
25
|
rewardDeliveriesSchema
|
|
32
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EHUSD3O2.js";
|
|
27
|
+
import {
|
|
28
|
+
catalogDeploymentSchema,
|
|
29
|
+
collectionViewSchema,
|
|
30
|
+
interactionSchema,
|
|
31
|
+
participantActivitySchema,
|
|
32
|
+
questCatalogSchema,
|
|
33
|
+
questCollectionSchema,
|
|
34
|
+
questExperienceSchema,
|
|
35
|
+
questTypeVersionSchema,
|
|
36
|
+
questViewSchema
|
|
37
|
+
} from "./chunk-4NOFSGAL.js";
|
|
33
38
|
import {
|
|
34
|
-
badgeArtifactSchema,
|
|
35
|
-
badgeSchema,
|
|
36
39
|
engagementArtifactSchema,
|
|
37
40
|
engagementBoundaryPageSchema,
|
|
38
41
|
engagementDeploymentEntrySchema,
|
|
39
42
|
engagementPageSchema,
|
|
40
|
-
leaderboardArtifactSchema,
|
|
41
|
-
leaderboardDefinitionSchema,
|
|
42
|
-
leaderboardHistoryPageSchema,
|
|
43
|
-
leaderboardPageSchema,
|
|
44
|
-
leaderboardPlacementSchema,
|
|
45
|
-
leaderboardPreviewSchema,
|
|
46
|
-
managedBadgeSchema,
|
|
47
|
-
memberBadgesSchema,
|
|
48
43
|
offerArtifactSchema,
|
|
49
44
|
offerDefinitionSchema,
|
|
50
45
|
offerSchema,
|
|
@@ -54,8 +49,18 @@ import {
|
|
|
54
49
|
referralDefinitionSchema,
|
|
55
50
|
referralHistorySchema,
|
|
56
51
|
referralSummarySchema
|
|
57
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-QR6HH4DI.js";
|
|
58
53
|
import {
|
|
54
|
+
badgeArtifactSchema,
|
|
55
|
+
badgeSchema,
|
|
56
|
+
leaderboardArtifactSchema,
|
|
57
|
+
leaderboardDefinitionSchema,
|
|
58
|
+
leaderboardHistoryPageSchema,
|
|
59
|
+
leaderboardPageSchema,
|
|
60
|
+
leaderboardPlacementSchema,
|
|
61
|
+
leaderboardPreviewSchema,
|
|
62
|
+
managedBadgeSchema,
|
|
63
|
+
memberBadgesSchema,
|
|
59
64
|
ownProfileSchema,
|
|
60
65
|
pointBalancesSchema,
|
|
61
66
|
pointHistoryPageSchema,
|
|
@@ -65,24 +70,25 @@ import {
|
|
|
65
70
|
profileCompletionPageSchema,
|
|
66
71
|
profileReferralSchema,
|
|
67
72
|
profileSummarySchema
|
|
68
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-W7YSMSGC.js";
|
|
69
74
|
import {
|
|
70
75
|
exchangeResultSchema,
|
|
71
76
|
memberSummarySchema,
|
|
72
77
|
participantSessionSchema
|
|
73
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-N4BDKS6Y.js";
|
|
74
79
|
import {
|
|
75
80
|
accountConnectionSchema,
|
|
76
81
|
attemptSchema,
|
|
77
82
|
authProviderSchema,
|
|
78
83
|
campaignEnrollmentSchema,
|
|
84
|
+
compatibleSettingKinds,
|
|
79
85
|
contentPerformancePageSchema,
|
|
80
86
|
contentQualificationPageSchema,
|
|
81
87
|
entitlementSchema,
|
|
82
88
|
evidenceSchema,
|
|
83
89
|
identifier,
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
isBoundSetting,
|
|
91
|
+
limits,
|
|
86
92
|
linkedWalletSchema,
|
|
87
93
|
markResponseSchema,
|
|
88
94
|
memberProgressSchema,
|
|
@@ -91,12 +97,17 @@ import {
|
|
|
91
97
|
publishedReleaseSchema,
|
|
92
98
|
publishedTrackerSchema,
|
|
93
99
|
questBudgetViewSchema,
|
|
94
|
-
questScaleLimits,
|
|
95
100
|
releaseSchema,
|
|
96
101
|
responseListSchema,
|
|
97
102
|
responseSchema,
|
|
103
|
+
responseTables,
|
|
104
|
+
rewardEntrySchema,
|
|
98
105
|
rewardSchema,
|
|
99
106
|
sdkRuntimeSchema,
|
|
107
|
+
signInAccountSchema,
|
|
108
|
+
signInProviderOptionSchema,
|
|
109
|
+
skipEnrollmentSchema,
|
|
110
|
+
sourceContent,
|
|
100
111
|
telegramAccountConnectionSchema,
|
|
101
112
|
tieredRewardReferenceSchema,
|
|
102
113
|
timeZoneNameSchema,
|
|
@@ -108,12 +119,13 @@ import {
|
|
|
108
119
|
walletMessageChallengeSchema,
|
|
109
120
|
walletNftsSchema,
|
|
110
121
|
walletSignInNetworksSchema,
|
|
111
|
-
walletTransactionsSchema
|
|
112
|
-
|
|
122
|
+
walletTransactionsSchema,
|
|
123
|
+
whereSettings
|
|
124
|
+
} from "./chunk-ID3BZXFZ.js";
|
|
113
125
|
|
|
114
126
|
// src/deployments.ts
|
|
115
127
|
import * as z from "zod";
|
|
116
|
-
var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
128
|
+
var projectCatalogArtifactSchema = /* @__PURE__ */ (() => catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
117
129
|
engagement: z.array(engagementArtifactSchema).max(50).default([]),
|
|
118
130
|
trackers: z.array(trackerArtifactSchema).max(50).default([]),
|
|
119
131
|
badges: z.array(badgeArtifactSchema).max(100).default([]),
|
|
@@ -122,7 +134,7 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
122
134
|
referrals: z.array(referralArtifactSchema).max(50).default([]),
|
|
123
135
|
leaderboards: z.array(leaderboardArtifactSchema).max(50).default([]),
|
|
124
136
|
images: z.array(imageAssetArtifactSchema).max(10).default([]),
|
|
125
|
-
// A generous bound: the deployment answers too-many-dashboards past
|
|
137
|
+
// A generous bound: the deployment answers too-many-dashboards past limits.dashboards.
|
|
126
138
|
dashboards: z.array(dashboardArtifactSchema).max(100).default([]),
|
|
127
139
|
/** relay.json `calendar`: the project timezone. Omitted, the deployment leaves it unchanged. */
|
|
128
140
|
calendar: projectCalendarDeclarationSchema.optional(),
|
|
@@ -131,20 +143,33 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
131
143
|
* platform already stores may be left out.
|
|
132
144
|
*/
|
|
133
145
|
runtimes: z.array(sdkRuntimeSchema).max(4).default([])
|
|
134
|
-
});
|
|
135
|
-
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({
|
|
136
|
-
releases: z.array(releaseSchema).max(
|
|
146
|
+
}))();
|
|
147
|
+
var projectDeploymentSchema = /* @__PURE__ */ (() => projectCatalogArtifactSchema.extend({
|
|
148
|
+
releases: z.array(releaseSchema).max(limits.quests).default([]),
|
|
149
|
+
/**
|
|
150
|
+
* The deployment leaves out quests on purpose, as `domino deploy --only` does, so its preview
|
|
151
|
+
* doesn't warn about published quests it omits (`quests-not-in-bundle`).
|
|
152
|
+
*/
|
|
153
|
+
partial: z.boolean().optional()
|
|
137
154
|
}).refine(
|
|
138
155
|
(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.dashboards.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0 || value.calendar !== void 0,
|
|
139
156
|
"No resources configured. Add engagement, trackers, quests, questTypes, badges, pointLedgers, offers, leaderboards, referrals, images, dashboards, collections, supportedInteractions, or calendar to relay.json."
|
|
140
|
-
);
|
|
141
|
-
var deploymentWarningSchema = z.object({
|
|
157
|
+
))();
|
|
158
|
+
var deploymentWarningSchema = /* @__PURE__ */ (() => z.object({
|
|
142
159
|
code: z.string(),
|
|
143
160
|
message: z.string(),
|
|
144
161
|
integration: z.string().optional(),
|
|
145
162
|
quests: z.array(z.string()).default([])
|
|
146
|
-
});
|
|
147
|
-
var
|
|
163
|
+
}))();
|
|
164
|
+
var deploymentQuestChangeSchema = /* @__PURE__ */ (() => z.object({
|
|
165
|
+
/** The quest's ID. */
|
|
166
|
+
quest: identifier,
|
|
167
|
+
/** The quest's authoring key. */
|
|
168
|
+
key: identifier.optional(),
|
|
169
|
+
change: z.enum(["created", "updated", "unchanged"]),
|
|
170
|
+
replaces: z.object({ release: identifier, createdAt: z.number() }).optional()
|
|
171
|
+
}))();
|
|
172
|
+
var deploymentPreviewSchema = /* @__PURE__ */ (() => z.object({
|
|
148
173
|
id: identifier,
|
|
149
174
|
engagement: z.array(engagementDeploymentEntrySchema).default([]),
|
|
150
175
|
trackers: z.array(publishedTrackerSchema).default([]),
|
|
@@ -153,6 +178,11 @@ var deploymentPreviewSchema = z.object({
|
|
|
153
178
|
pointLedgers: z.array(pointLedgerSchema).default([]),
|
|
154
179
|
offers: z.array(offerDefinitionSchema).default([]),
|
|
155
180
|
releases: z.array(publishedReleaseSchema),
|
|
181
|
+
/**
|
|
182
|
+
* Each quest in `releases` and what publishing does to it (see `deploymentQuestChangeSchema`).
|
|
183
|
+
* Optional so values built for older SDKs still fit.
|
|
184
|
+
*/
|
|
185
|
+
questChanges: z.array(deploymentQuestChangeSchema).optional(),
|
|
156
186
|
types: z.array(questTypeVersionSchema),
|
|
157
187
|
collections: z.array(questCollectionSchema),
|
|
158
188
|
supportedInteractions: z.array(interactionSchema),
|
|
@@ -181,26 +211,26 @@ var deploymentPreviewSchema = z.object({
|
|
|
181
211
|
* built for older SDKs still fit.
|
|
182
212
|
*/
|
|
183
213
|
warnings: z.array(deploymentWarningSchema).optional()
|
|
184
|
-
});
|
|
185
|
-
var publishDeploymentSchema = z.object({ id: identifier }).strict();
|
|
186
|
-
var deploymentResultSchema = deploymentPreviewSchema.extend({
|
|
214
|
+
}))();
|
|
215
|
+
var publishDeploymentSchema = /* @__PURE__ */ (() => z.object({ id: identifier }).strict())();
|
|
216
|
+
var deploymentResultSchema = /* @__PURE__ */ (() => deploymentPreviewSchema.extend({
|
|
187
217
|
revision: z.number().int().positive()
|
|
188
|
-
});
|
|
189
|
-
var deploymentSourceSchema = z.discriminatedUnion("kind", [
|
|
218
|
+
}))();
|
|
219
|
+
var deploymentSourceSchema = /* @__PURE__ */ (() => z.discriminatedUnion("kind", [
|
|
190
220
|
z.object({ kind: z.literal("direct") }),
|
|
191
221
|
z.object({ kind: z.literal("promotion"), deployment: identifier }),
|
|
192
222
|
z.object({ kind: z.literal("rollback"), deployment: identifier })
|
|
193
|
-
]);
|
|
194
|
-
var deploymentRecordMetadata = {
|
|
223
|
+
]))();
|
|
224
|
+
var deploymentRecordMetadata = /* @__PURE__ */ (() => ({
|
|
195
225
|
source: deploymentSourceSchema,
|
|
196
226
|
createdAt: z.number().int().nonnegative(),
|
|
197
227
|
createdBy: z.string().nullable()
|
|
198
|
-
};
|
|
199
|
-
var submittedDeploymentMetadata = {
|
|
228
|
+
}))();
|
|
229
|
+
var submittedDeploymentMetadata = /* @__PURE__ */ (() => ({
|
|
200
230
|
submittedAt: z.number().int().nonnegative(),
|
|
201
231
|
submittedBy: z.string().nullable()
|
|
202
|
-
};
|
|
203
|
-
var deploymentRecordSchema = z.discriminatedUnion("status", [
|
|
232
|
+
}))();
|
|
233
|
+
var deploymentRecordSchema = /* @__PURE__ */ (() => z.discriminatedUnion("status", [
|
|
204
234
|
deploymentPreviewSchema.extend({
|
|
205
235
|
...deploymentRecordMetadata,
|
|
206
236
|
status: z.literal("preview")
|
|
@@ -226,82 +256,46 @@ var deploymentRecordSchema = z.discriminatedUnion("status", [
|
|
|
226
256
|
publishedAt: z.number().int().nonnegative(),
|
|
227
257
|
publishedBy: z.string().nullable()
|
|
228
258
|
})
|
|
229
|
-
]);
|
|
230
|
-
var deploymentHistoryQuerySchema = z.strictObject({
|
|
259
|
+
]))();
|
|
260
|
+
var deploymentHistoryQuerySchema = /* @__PURE__ */ (() => z.strictObject({
|
|
231
261
|
cursor: pageCursorSchema.optional(),
|
|
232
262
|
limit: z.coerce.number().int().min(1).max(100).optional()
|
|
233
|
-
});
|
|
234
|
-
var deploymentHistoryPageSchema = z.object({
|
|
263
|
+
}))();
|
|
264
|
+
var deploymentHistoryPageSchema = /* @__PURE__ */ (() => z.object({
|
|
235
265
|
items: z.array(deploymentRecordSchema),
|
|
236
266
|
published: z.array(deploymentRecordSchema).max(2),
|
|
237
267
|
nextCursor: pageCursorSchema.nullable()
|
|
238
|
-
});
|
|
239
|
-
var submitDeploymentSchema = z.object({ id: identifier }).strict();
|
|
240
|
-
var rejectDeploymentSchema = z.object({
|
|
268
|
+
}))();
|
|
269
|
+
var submitDeploymentSchema = /* @__PURE__ */ (() => z.object({ id: identifier }).strict())();
|
|
270
|
+
var rejectDeploymentSchema = /* @__PURE__ */ (() => z.object({
|
|
241
271
|
id: identifier,
|
|
242
272
|
reason: z.string().trim().min(1).max(1e3)
|
|
243
|
-
}).strict();
|
|
244
|
-
var deploymentRejectionSchema = rejectDeploymentSchema.omit({
|
|
273
|
+
}).strict())();
|
|
274
|
+
var deploymentRejectionSchema = /* @__PURE__ */ (() => rejectDeploymentSchema.omit({
|
|
245
275
|
id: true
|
|
246
|
-
});
|
|
247
|
-
var deploymentActionSchema = z.object({ actionId: z.string().uuid() }).strict();
|
|
248
|
-
var repeatableDeploymentSchema = z.object({ actionId: z.string().uuid(), id: identifier }).strict();
|
|
276
|
+
}))();
|
|
277
|
+
var deploymentActionSchema = /* @__PURE__ */ (() => z.object({ actionId: z.string().uuid() }).strict())();
|
|
278
|
+
var repeatableDeploymentSchema = /* @__PURE__ */ (() => z.object({ actionId: z.string().uuid(), id: identifier }).strict())();
|
|
249
279
|
var promoteDeploymentSchema = repeatableDeploymentSchema;
|
|
250
280
|
var rollbackDeploymentSchema = repeatableDeploymentSchema;
|
|
251
281
|
|
|
252
282
|
// src/capability-responses.ts
|
|
253
|
-
var
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
get publishedImageSchema() {
|
|
270
|
-
return knownResponse(publishedImageSchema);
|
|
271
|
-
},
|
|
272
|
-
get walletBalanceSchema() {
|
|
273
|
-
return knownResponse(walletBalanceSchema);
|
|
274
|
-
},
|
|
275
|
-
get walletNftsSchema() {
|
|
276
|
-
return knownResponse(walletNftsSchema);
|
|
277
|
-
},
|
|
278
|
-
get walletCallSchema() {
|
|
279
|
-
return knownResponse(walletCallSchema);
|
|
280
|
-
},
|
|
281
|
-
get walletDelegationsSchema() {
|
|
282
|
-
return knownResponse(walletDelegationsSchema);
|
|
283
|
-
},
|
|
284
|
-
get walletEventsSchema() {
|
|
285
|
-
return knownResponse(walletEventsSchema);
|
|
286
|
-
},
|
|
287
|
-
get walletTransactionsSchema() {
|
|
288
|
-
return knownResponse(walletTransactionsSchema);
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
var capabilityResponses = {
|
|
292
|
-
imageInspectionSchema: responseSchema(imageInspectionSchema),
|
|
293
|
-
imageComparisonSchema: responseSchema(imageComparisonSchema),
|
|
294
|
-
imageExtractionSchema: responseSchema(imageExtractionSchema),
|
|
295
|
-
imageSightingsSchema: responseSchema(imageSightingsSchema),
|
|
296
|
-
imageUploadsSchema: responseSchema(imageUploadsSchema),
|
|
297
|
-
publishedImageSchema: responseSchema(publishedImageSchema),
|
|
298
|
-
walletBalanceSchema: responseSchema(walletBalanceSchema),
|
|
299
|
-
walletNftsSchema: responseSchema(walletNftsSchema),
|
|
300
|
-
walletCallSchema: responseSchema(walletCallSchema),
|
|
301
|
-
walletDelegationsSchema: responseSchema(walletDelegationsSchema),
|
|
302
|
-
walletEventsSchema: responseSchema(walletEventsSchema),
|
|
303
|
-
walletTransactionsSchema: responseSchema(walletTransactionsSchema)
|
|
304
|
-
};
|
|
283
|
+
var capabilityResponseTables = /* @__PURE__ */ (() => responseTables({
|
|
284
|
+
imageInspectionSchema: () => imageInspectionSchema,
|
|
285
|
+
imageComparisonSchema: () => imageComparisonSchema,
|
|
286
|
+
imageExtractionSchema: () => imageExtractionSchema,
|
|
287
|
+
imageSightingsSchema: () => imageSightingsSchema,
|
|
288
|
+
imageUploadsSchema: () => imageUploadsSchema,
|
|
289
|
+
publishedImageSchema: () => publishedImageSchema,
|
|
290
|
+
walletBalanceSchema: () => walletBalanceSchema,
|
|
291
|
+
walletNftsSchema: () => walletNftsSchema,
|
|
292
|
+
walletCallSchema: () => walletCallSchema,
|
|
293
|
+
walletDelegationsSchema: () => walletDelegationsSchema,
|
|
294
|
+
walletEventsSchema: () => walletEventsSchema,
|
|
295
|
+
walletTransactionsSchema: () => walletTransactionsSchema
|
|
296
|
+
}))();
|
|
297
|
+
var capabilityResponseSchemas = capabilityResponseTables.known;
|
|
298
|
+
var capabilityResponses = capabilityResponseTables.tolerant;
|
|
305
299
|
|
|
306
300
|
// src/activity.ts
|
|
307
301
|
import * as z2 from "zod";
|
|
@@ -316,11 +310,11 @@ var activityTypes = {
|
|
|
316
310
|
entitlementCollected: "entitlement.collected",
|
|
317
311
|
referralQualified: "referral.qualified"
|
|
318
312
|
};
|
|
319
|
-
var activityTypeSchema = z2.string().min(1).max(100);
|
|
313
|
+
var activityTypeSchema = /* @__PURE__ */ (() => z2.string().min(1).max(100))();
|
|
320
314
|
|
|
321
315
|
// src/automatic-outcomes.ts
|
|
322
316
|
import * as z3 from "zod";
|
|
323
|
-
var automaticEventSchema = z3.discriminatedUnion("kind", [
|
|
317
|
+
var automaticEventSchema = /* @__PURE__ */ (() => z3.discriminatedUnion("kind", [
|
|
324
318
|
z3.object({
|
|
325
319
|
kind: z3.literal("completion"),
|
|
326
320
|
attempt: identifier,
|
|
@@ -331,23 +325,23 @@ var automaticEventSchema = z3.discriminatedUnion("kind", [
|
|
|
331
325
|
z3.object({ kind: z3.literal("campaign"), action: identifier }),
|
|
332
326
|
z3.object({ kind: z3.literal("publication"), revision: identifier }),
|
|
333
327
|
z3.object({ kind: z3.literal("revocation"), action: identifier })
|
|
334
|
-
]);
|
|
335
|
-
var knownEventKinds = new Set(
|
|
328
|
+
]))();
|
|
329
|
+
var knownEventKinds = /* @__PURE__ */ (() => new Set(
|
|
336
330
|
automaticEventSchema.options.map((option) => option.shape.kind.value)
|
|
337
|
-
);
|
|
338
|
-
var automaticEventResponseSchema = z3.union([
|
|
331
|
+
))();
|
|
332
|
+
var automaticEventResponseSchema = /* @__PURE__ */ (() => z3.union([
|
|
339
333
|
automaticEventSchema,
|
|
340
334
|
z3.looseObject({
|
|
341
335
|
kind: z3.string().refine((kind) => !knownEventKinds.has(kind))
|
|
342
336
|
}).catchall(z3.json())
|
|
343
|
-
]);
|
|
344
|
-
var automaticLinkedAttemptSchema = z3.object({
|
|
337
|
+
]))();
|
|
338
|
+
var automaticLinkedAttemptSchema = /* @__PURE__ */ (() => z3.object({
|
|
345
339
|
id: identifier,
|
|
346
340
|
status: attemptSchema.shape.status,
|
|
347
341
|
/** Open code for the linked attempt. Consumers must tolerate new values. */
|
|
348
342
|
code: z3.string().nullable()
|
|
349
|
-
});
|
|
350
|
-
var automaticOutcomeFields = {
|
|
343
|
+
}))();
|
|
344
|
+
var automaticOutcomeFields = /* @__PURE__ */ (() => ({
|
|
351
345
|
id: identifier,
|
|
352
346
|
quest: identifier,
|
|
353
347
|
member: identifier,
|
|
@@ -358,18 +352,20 @@ var automaticOutcomeFields = {
|
|
|
358
352
|
reason: z3.string().nullable(),
|
|
359
353
|
/** Which window refused admission when `code` is `outside-window`. */
|
|
360
354
|
window: z3.enum(["tracker", "quest"]).optional(),
|
|
355
|
+
/** Which enrollment the member lacks when `code` is `not-enrolled`. */
|
|
356
|
+
enrollment: skipEnrollmentSchema,
|
|
361
357
|
revision: z3.number().int().nonnegative(),
|
|
362
358
|
createdAt: z3.number().int().safe(),
|
|
363
359
|
updatedAt: z3.number().int().safe()
|
|
364
|
-
};
|
|
365
|
-
var automaticOutcomeWithoutAttemptSchema = z3.object({
|
|
360
|
+
}))();
|
|
361
|
+
var automaticOutcomeWithoutAttemptSchema = /* @__PURE__ */ (() => z3.object({
|
|
366
362
|
...automaticOutcomeFields,
|
|
367
363
|
/** @deprecated Use `linkedAttempt` instead. Removed in 2.0.0. */
|
|
368
364
|
attempt: z3.null(),
|
|
369
365
|
/** Current linked attempt. Optional so responses from older Relay versions remain readable. */
|
|
370
366
|
linkedAttempt: z3.null().optional()
|
|
371
|
-
});
|
|
372
|
-
var automaticOutcomeWithAttemptSchema = z3.object({
|
|
367
|
+
}))();
|
|
368
|
+
var automaticOutcomeWithAttemptSchema = /* @__PURE__ */ (() => z3.object({
|
|
373
369
|
...automaticOutcomeFields,
|
|
374
370
|
/** @deprecated Use `linkedAttempt` instead. Removed in 2.0.0. */
|
|
375
371
|
attempt: identifier,
|
|
@@ -383,28 +379,28 @@ var automaticOutcomeWithAttemptSchema = z3.object({
|
|
|
383
379
|
message: "Linked attempt ID must match the legacy attempt ID"
|
|
384
380
|
});
|
|
385
381
|
}
|
|
386
|
-
});
|
|
387
|
-
var automaticOutcomeSchema = z3.union([
|
|
382
|
+
}))();
|
|
383
|
+
var automaticOutcomeSchema = /* @__PURE__ */ (() => z3.union([
|
|
388
384
|
automaticOutcomeWithoutAttemptSchema,
|
|
389
385
|
automaticOutcomeWithAttemptSchema
|
|
390
|
-
]);
|
|
386
|
+
]))();
|
|
391
387
|
var isRetryableAutomaticOutcome = (outcome) => outcome.linkedAttempt?.status === "rejected" && outcome.linkedAttempt.code === "budget-exhausted" || outcome.linkedAttempt?.status === "failed" && outcome.linkedAttempt.code === "integration-required";
|
|
392
|
-
var automaticOutcomeQuerySchema = z3.strictObject({
|
|
388
|
+
var automaticOutcomeQuerySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
393
389
|
quest: identifier.optional(),
|
|
394
390
|
member: identifier.optional(),
|
|
395
391
|
state: z3.enum(["admitted", "skipped"]).optional(),
|
|
396
392
|
code: z3.string().max(100).optional(),
|
|
397
393
|
cursor: pageCursorSchema.optional()
|
|
398
|
-
});
|
|
399
|
-
var automaticOutcomePageSchema = z3.object({
|
|
394
|
+
}))();
|
|
395
|
+
var automaticOutcomePageSchema = /* @__PURE__ */ (() => z3.object({
|
|
400
396
|
items: z3.array(automaticOutcomeSchema),
|
|
401
397
|
nextCursor: pageCursorSchema.nullable()
|
|
402
|
-
});
|
|
403
|
-
var automaticCatchUpInputSchema = z3.strictObject({
|
|
398
|
+
}))();
|
|
399
|
+
var automaticCatchUpInputSchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
404
400
|
quest: identifier,
|
|
405
401
|
outcomes: z3.array(identifier).min(1).max(50)
|
|
406
|
-
});
|
|
407
|
-
var automaticCatchUpPreviewSchema = z3.object({
|
|
402
|
+
}))();
|
|
403
|
+
var automaticCatchUpPreviewSchema = /* @__PURE__ */ (() => z3.object({
|
|
408
404
|
quest: identifier,
|
|
409
405
|
release: identifier,
|
|
410
406
|
token: identifier,
|
|
@@ -414,6 +410,7 @@ var automaticCatchUpPreviewSchema = z3.object({
|
|
|
414
410
|
code: z3.string().nullable(),
|
|
415
411
|
reason: z3.string().nullable(),
|
|
416
412
|
window: z3.enum(["tracker", "quest"]).optional(),
|
|
413
|
+
enrollment: skipEnrollmentSchema,
|
|
417
414
|
attempt: identifier.nullable(),
|
|
418
415
|
wouldAdmit: z3.boolean(),
|
|
419
416
|
budgets: z3.array(questBudgetViewSchema)
|
|
@@ -421,6 +418,11 @@ var automaticCatchUpPreviewSchema = z3.object({
|
|
|
421
418
|
),
|
|
422
419
|
/** Declared rewards per successful evaluation. Evaluators may choose different rewards. */
|
|
423
420
|
rewards: z3.array(rewardSchema),
|
|
421
|
+
/**
|
|
422
|
+
* The same declared rewards, kinds this SDK does not know included: the open sibling of
|
|
423
|
+
* `rewards`, which keeps SDK 1.x's closed `Reward`. Absent from older Relay versions.
|
|
424
|
+
*/
|
|
425
|
+
rewardEntries: z3.array(rewardEntrySchema).optional(),
|
|
424
426
|
/** Each budget's declared cost per successful evaluation; dynamic costs remain explicit. */
|
|
425
427
|
costs: z3.array(
|
|
426
428
|
z3.object({
|
|
@@ -428,22 +430,22 @@ var automaticCatchUpPreviewSchema = z3.object({
|
|
|
428
430
|
cost: z3.union([z3.number(), z3.literal("dynamic")])
|
|
429
431
|
})
|
|
430
432
|
)
|
|
431
|
-
});
|
|
432
|
-
var automaticCatchUpConfirmSchema = automaticCatchUpInputSchema.extend(
|
|
433
|
+
}))();
|
|
434
|
+
var automaticCatchUpConfirmSchema = /* @__PURE__ */ (() => automaticCatchUpInputSchema.extend(
|
|
433
435
|
{
|
|
434
436
|
actionId: identifier,
|
|
435
437
|
token: identifier,
|
|
436
438
|
reason: z3.string().trim().min(1).max(1e3)
|
|
437
439
|
}
|
|
438
|
-
);
|
|
439
|
-
var automaticCatchUpResultSchema = z3.object({
|
|
440
|
+
))();
|
|
441
|
+
var automaticCatchUpResultSchema = /* @__PURE__ */ (() => z3.object({
|
|
440
442
|
items: z3.array(automaticOutcomeSchema)
|
|
441
|
-
});
|
|
442
|
-
var automaticSchedulingQuerySchema = z3.strictObject({
|
|
443
|
+
}))();
|
|
444
|
+
var automaticSchedulingQuerySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
443
445
|
member: identifier.optional(),
|
|
444
446
|
cursor: pageCursorSchema.optional()
|
|
445
|
-
});
|
|
446
|
-
var automaticSchedulingSchema = z3.object({
|
|
447
|
+
}))();
|
|
448
|
+
var automaticSchedulingSchema = /* @__PURE__ */ (() => z3.object({
|
|
447
449
|
id: identifier,
|
|
448
450
|
member: identifier,
|
|
449
451
|
event: automaticEventResponseSchema,
|
|
@@ -452,224 +454,85 @@ var automaticSchedulingSchema = z3.object({
|
|
|
452
454
|
error: z3.string().nullable(),
|
|
453
455
|
createdAt: z3.number().int().safe(),
|
|
454
456
|
nextAttemptAt: z3.number().int().safe()
|
|
455
|
-
});
|
|
456
|
-
var automaticSchedulingPageSchema = z3.object({
|
|
457
|
+
}))();
|
|
458
|
+
var automaticSchedulingPageSchema = /* @__PURE__ */ (() => z3.object({
|
|
457
459
|
items: z3.array(automaticSchedulingSchema),
|
|
458
460
|
nextCursor: pageCursorSchema.nullable()
|
|
459
|
-
});
|
|
460
|
-
var automaticSchedulingRetrySchema = z3.strictObject({
|
|
461
|
+
}))();
|
|
462
|
+
var automaticSchedulingRetrySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
461
463
|
actionId: identifier,
|
|
462
464
|
id: identifier,
|
|
463
465
|
reason: z3.string().trim().min(1).max(1e3)
|
|
464
|
-
});
|
|
466
|
+
}))();
|
|
465
467
|
|
|
466
468
|
// src/response-readers.ts
|
|
467
|
-
var
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
return knownResponse(leaderboardPageSchema);
|
|
521
|
-
},
|
|
522
|
-
get leaderboardPlacementSchema() {
|
|
523
|
-
return knownResponse(leaderboardPlacementSchema);
|
|
524
|
-
},
|
|
525
|
-
get linkedWalletSchema() {
|
|
526
|
-
return knownResponse(linkedWalletSchema);
|
|
527
|
-
},
|
|
528
|
-
get memberProgressSchema() {
|
|
529
|
-
return knownResponse(memberProgressSchema);
|
|
530
|
-
},
|
|
531
|
-
get memberSummarySchema() {
|
|
532
|
-
return knownResponse(memberSummarySchema);
|
|
533
|
-
},
|
|
534
|
-
get offerSchema() {
|
|
535
|
-
return knownResponse(offerSchema);
|
|
536
|
-
},
|
|
537
|
-
get ownProfileSchema() {
|
|
538
|
-
return knownResponse(ownProfileSchema);
|
|
539
|
-
},
|
|
540
|
-
get participantActivitySchema() {
|
|
541
|
-
return knownResponse(participantActivitySchema);
|
|
542
|
-
},
|
|
543
|
-
get participantDeliveriesSchema() {
|
|
544
|
-
return knownResponse(participantDeliveriesSchema);
|
|
545
|
-
},
|
|
546
|
-
get participantEntitlementsSchema() {
|
|
547
|
-
return knownResponse(participantEntitlementsSchema);
|
|
548
|
-
},
|
|
549
|
-
get participantSessionSchema() {
|
|
550
|
-
return knownResponse(participantSessionSchema);
|
|
551
|
-
},
|
|
552
|
-
get pointBalancesSchema() {
|
|
553
|
-
return knownResponse(pointBalancesSchema);
|
|
554
|
-
},
|
|
555
|
-
get pointHistoryPageSchema() {
|
|
556
|
-
return knownResponse(pointHistoryPageSchema);
|
|
557
|
-
},
|
|
558
|
-
get pointLedgerReferenceSchema() {
|
|
559
|
-
return knownResponse(pointLedgerReferenceSchema);
|
|
560
|
-
},
|
|
561
|
-
get profileCompletionPageSchema() {
|
|
562
|
-
return knownResponse(profileCompletionPageSchema);
|
|
563
|
-
},
|
|
564
|
-
get profileReferralSchema() {
|
|
565
|
-
return knownResponse(profileReferralSchema);
|
|
566
|
-
},
|
|
567
|
-
get profileSummarySchema() {
|
|
568
|
-
return knownResponse(profileSummarySchema);
|
|
569
|
-
},
|
|
570
|
-
get questEnrollmentSchema() {
|
|
571
|
-
return knownResponse(questEnrollmentSchema);
|
|
572
|
-
},
|
|
573
|
-
get questExperienceSchema() {
|
|
574
|
-
return knownResponse(questExperienceSchema);
|
|
575
|
-
},
|
|
576
|
-
get questOutcomePageSchema() {
|
|
577
|
-
return knownResponse(questOutcomePageSchema);
|
|
578
|
-
},
|
|
579
|
-
get questOutcomeSchema() {
|
|
580
|
-
return knownResponse(questOutcomeSchema);
|
|
581
|
-
},
|
|
582
|
-
get redemptionSchema() {
|
|
583
|
-
return knownResponse(redemptionSchema);
|
|
584
|
-
},
|
|
585
|
-
get referralDefinitionSchema() {
|
|
586
|
-
return knownResponse(referralDefinitionSchema);
|
|
587
|
-
},
|
|
588
|
-
get referralHistorySchema() {
|
|
589
|
-
return knownResponse(referralHistorySchema);
|
|
590
|
-
},
|
|
591
|
-
get referralSummarySchema() {
|
|
592
|
-
return knownResponse(referralSummarySchema);
|
|
593
|
-
},
|
|
594
|
-
get rewardDeliveriesSchema() {
|
|
595
|
-
return knownResponse(rewardDeliveriesSchema);
|
|
596
|
-
},
|
|
597
|
-
get tieredRewardReferenceSchema() {
|
|
598
|
-
return knownResponse(tieredRewardReferenceSchema);
|
|
599
|
-
},
|
|
600
|
-
get walletMessageChallengeSchema() {
|
|
601
|
-
return knownResponse(walletMessageChallengeSchema);
|
|
602
|
-
},
|
|
603
|
-
get walletSignInNetworksSchema() {
|
|
604
|
-
return knownResponse(walletSignInNetworksSchema);
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
var participantResponses = {
|
|
608
|
-
badgeSchema: responseSchema(badgeSchema),
|
|
609
|
-
memberBadgesSchema: responseSchema(memberBadgesSchema),
|
|
610
|
-
telegramAccountConnectionSchema: responseSchema(
|
|
611
|
-
telegramAccountConnectionSchema
|
|
612
|
-
),
|
|
613
|
-
creatorAccountsSchema: responseSchema(creatorAccountsSchema),
|
|
614
|
-
accountConnectionSchema: responseSchema(accountConnectionSchema),
|
|
615
|
-
attemptSchema: responseSchema(attemptSchema),
|
|
616
|
-
authProviderSchema: responseSchema(authProviderSchema),
|
|
617
|
-
campaignEnrollmentSchema: responseSchema(campaignEnrollmentSchema),
|
|
618
|
-
collectionPassSchema: responseSchema(collectionPassSchema),
|
|
619
|
-
contentPerformancePageSchema: responseSchema(contentPerformancePageSchema),
|
|
620
|
-
contentQualificationPageSchema: responseSchema(
|
|
621
|
-
contentQualificationPageSchema
|
|
622
|
-
),
|
|
623
|
-
engagementBoundaryPageSchema: responseSchema(engagementBoundaryPageSchema),
|
|
624
|
-
engagementPageSchema: responseSchema(engagementPageSchema),
|
|
625
|
-
evidenceSchema: responseSchema(evidenceSchema),
|
|
626
|
-
exchangeResultSchema: responseSchema(exchangeResultSchema),
|
|
627
|
-
leaderboardDefinitionSchema: responseSchema(leaderboardDefinitionSchema),
|
|
628
|
-
leaderboardHistoryPageSchema: responseSchema(leaderboardHistoryPageSchema),
|
|
629
|
-
leaderboardPageSchema: responseSchema(leaderboardPageSchema),
|
|
630
|
-
leaderboardPlacementSchema: responseSchema(leaderboardPlacementSchema),
|
|
631
|
-
linkedWalletSchema: responseSchema(linkedWalletSchema),
|
|
632
|
-
memberProgressSchema: responseSchema(memberProgressSchema),
|
|
633
|
-
memberSummarySchema: responseSchema(memberSummarySchema),
|
|
634
|
-
offerSchema: responseSchema(offerSchema),
|
|
635
|
-
ownProfileSchema: responseSchema(ownProfileSchema),
|
|
636
|
-
participantActivitySchema: responseSchema(participantActivitySchema),
|
|
637
|
-
participantDeliveriesSchema: responseSchema(participantDeliveriesSchema),
|
|
638
|
-
participantEntitlementsSchema: responseSchema(participantEntitlementsSchema),
|
|
639
|
-
participantSessionSchema: responseSchema(participantSessionSchema),
|
|
640
|
-
pointBalancesSchema: responseSchema(pointBalancesSchema),
|
|
641
|
-
pointHistoryPageSchema: responseSchema(pointHistoryPageSchema),
|
|
642
|
-
pointLedgerReferenceSchema: responseSchema(pointLedgerReferenceSchema),
|
|
643
|
-
profileCompletionPageSchema: responseSchema(profileCompletionPageSchema),
|
|
644
|
-
profileReferralSchema: responseSchema(profileReferralSchema),
|
|
645
|
-
profileSummarySchema: responseSchema(profileSummarySchema),
|
|
646
|
-
questEnrollmentSchema: responseSchema(questEnrollmentSchema),
|
|
647
|
-
questExperienceSchema: responseSchema(questExperienceSchema),
|
|
648
|
-
questOutcomePageSchema: responseSchema(questOutcomePageSchema),
|
|
649
|
-
questOutcomeSchema: responseSchema(questOutcomeSchema),
|
|
650
|
-
redemptionSchema: responseSchema(redemptionSchema),
|
|
651
|
-
referralDefinitionSchema: responseSchema(referralDefinitionSchema),
|
|
652
|
-
referralHistorySchema: responseSchema(referralHistorySchema),
|
|
653
|
-
referralSummarySchema: responseSchema(referralSummarySchema),
|
|
654
|
-
rewardDeliveriesSchema: responseSchema(rewardDeliveriesSchema),
|
|
655
|
-
tieredRewardReferenceSchema: responseSchema(tieredRewardReferenceSchema),
|
|
656
|
-
walletMessageChallengeSchema: responseSchema(walletMessageChallengeSchema),
|
|
657
|
-
walletSignInNetworksSchema: responseSchema(walletSignInNetworksSchema)
|
|
658
|
-
};
|
|
469
|
+
var participantResponseTables = /* @__PURE__ */ (() => responseTables({
|
|
470
|
+
badgeSchema: () => badgeSchema,
|
|
471
|
+
memberBadgesSchema: () => memberBadgesSchema,
|
|
472
|
+
telegramAccountConnectionSchema: () => telegramAccountConnectionSchema,
|
|
473
|
+
creatorAccountsSchema: () => creatorAccountsSchema,
|
|
474
|
+
accountConnectionSchema: () => accountConnectionSchema,
|
|
475
|
+
attemptSchema: () => attemptSchema,
|
|
476
|
+
authProviderSchema: () => authProviderSchema,
|
|
477
|
+
authProvidersSchema: () => authProvidersSchema,
|
|
478
|
+
signInAccountSchema: () => signInAccountSchema,
|
|
479
|
+
signInProviderOptionSchema: () => signInProviderOptionSchema,
|
|
480
|
+
campaignEnrollmentSchema: () => campaignEnrollmentSchema,
|
|
481
|
+
collectionPassSchema: () => collectionPassSchema,
|
|
482
|
+
contentPerformancePageSchema: () => contentPerformancePageSchema,
|
|
483
|
+
contentQualificationPageSchema: () => contentQualificationPageSchema,
|
|
484
|
+
engagementBoundaryPageSchema: () => engagementBoundaryPageSchema,
|
|
485
|
+
engagementPageSchema: () => engagementPageSchema,
|
|
486
|
+
evidenceSchema: () => evidenceSchema,
|
|
487
|
+
exchangeResultSchema: () => exchangeResultSchema,
|
|
488
|
+
leaderboardDefinitionSchema: () => leaderboardDefinitionSchema,
|
|
489
|
+
leaderboardHistoryPageSchema: () => leaderboardHistoryPageSchema,
|
|
490
|
+
leaderboardPageSchema: () => leaderboardPageSchema,
|
|
491
|
+
leaderboardPlacementSchema: () => leaderboardPlacementSchema,
|
|
492
|
+
linkedWalletSchema: () => linkedWalletSchema,
|
|
493
|
+
memberProgressSchema: () => memberProgressSchema,
|
|
494
|
+
memberSummarySchema: () => memberSummarySchema,
|
|
495
|
+
offerSchema: () => offerSchema,
|
|
496
|
+
ownProfileSchema: () => ownProfileSchema,
|
|
497
|
+
participantActivitySchema: () => participantActivitySchema,
|
|
498
|
+
participantDeliveriesSchema: () => participantDeliveriesSchema,
|
|
499
|
+
participantEntitlementsSchema: () => participantEntitlementsSchema,
|
|
500
|
+
participantSessionSchema: () => participantSessionSchema,
|
|
501
|
+
pointBalancesSchema: () => pointBalancesSchema,
|
|
502
|
+
pointHistoryPageSchema: () => pointHistoryPageSchema,
|
|
503
|
+
pointLedgerReferenceSchema: () => pointLedgerReferenceSchema,
|
|
504
|
+
profileCompletionPageSchema: () => profileCompletionPageSchema,
|
|
505
|
+
profileReferralSchema: () => profileReferralSchema,
|
|
506
|
+
profileSummarySchema: () => profileSummarySchema,
|
|
507
|
+
questEnrollmentSchema: () => questEnrollmentSchema,
|
|
508
|
+
questExperienceSchema: () => questExperienceSchema,
|
|
509
|
+
questOutcomePageSchema: () => questOutcomePageSchema,
|
|
510
|
+
questOutcomeSchema: () => questOutcomeSchema,
|
|
511
|
+
redemptionSchema: () => redemptionSchema,
|
|
512
|
+
referralDefinitionSchema: () => referralDefinitionSchema,
|
|
513
|
+
referralHistorySchema: () => referralHistorySchema,
|
|
514
|
+
referralSummarySchema: () => referralSummarySchema,
|
|
515
|
+
rewardDeliveriesSchema: () => rewardDeliveriesSchema,
|
|
516
|
+
tieredRewardReferenceSchema: () => tieredRewardReferenceSchema,
|
|
517
|
+
walletMessageChallengeSchema: () => walletMessageChallengeSchema,
|
|
518
|
+
walletSignInNetworksSchema: () => walletSignInNetworksSchema
|
|
519
|
+
}))();
|
|
520
|
+
var participantResponseSchemas = participantResponseTables.known;
|
|
521
|
+
var participantResponses = participantResponseTables.tolerant;
|
|
659
522
|
|
|
660
523
|
// src/evolving-responses.ts
|
|
661
524
|
import * as z4 from "zod";
|
|
662
|
-
var offerResponseSchema = responseSchema(offerSchema);
|
|
663
|
-
var offerListResponseSchema = responseListSchema(offerSchema);
|
|
664
|
-
var redemptionResponseSchema = responseSchema(redemptionSchema);
|
|
665
|
-
var redemptionListResponseSchema = responseListSchema(redemptionSchema);
|
|
666
|
-
var leaderboardListResponseSchema = responseListSchema(
|
|
525
|
+
var offerResponseSchema = /* @__PURE__ */ (() => responseSchema(offerSchema))();
|
|
526
|
+
var offerListResponseSchema = /* @__PURE__ */ (() => responseListSchema(offerSchema))();
|
|
527
|
+
var redemptionResponseSchema = /* @__PURE__ */ (() => responseSchema(redemptionSchema))();
|
|
528
|
+
var redemptionListResponseSchema = /* @__PURE__ */ (() => responseListSchema(redemptionSchema))();
|
|
529
|
+
var leaderboardListResponseSchema = /* @__PURE__ */ (() => responseListSchema(
|
|
667
530
|
leaderboardDefinitionSchema
|
|
668
|
-
);
|
|
669
|
-
var collectionResponseShape = collectionViewSchema.extend({
|
|
531
|
+
))();
|
|
532
|
+
var collectionResponseShape = /* @__PURE__ */ (() => collectionViewSchema.extend({
|
|
670
533
|
quests: responseListSchema(questViewSchema)
|
|
671
|
-
});
|
|
672
|
-
var questExperienceResponseSchema = markResponseSchema(
|
|
534
|
+
}))();
|
|
535
|
+
var questExperienceResponseSchema = /* @__PURE__ */ (() => markResponseSchema(
|
|
673
536
|
z4.object({
|
|
674
537
|
member: identifier,
|
|
675
538
|
quests: responseListSchema(questViewSchema),
|
|
@@ -679,15 +542,15 @@ var questExperienceResponseSchema = markResponseSchema(
|
|
|
679
542
|
unsupportedCount: 0
|
|
680
543
|
})
|
|
681
544
|
})
|
|
682
|
-
);
|
|
683
|
-
var memberProgressResponseSchema = markResponseSchema(
|
|
545
|
+
))();
|
|
546
|
+
var memberProgressResponseSchema = /* @__PURE__ */ (() => markResponseSchema(
|
|
684
547
|
z4.object({
|
|
685
548
|
member: identifier,
|
|
686
549
|
quests: responseListSchema(memberProgressSchema.shape.quests.element),
|
|
687
550
|
entitlements: responseListSchema(entitlementSchema)
|
|
688
551
|
})
|
|
689
|
-
);
|
|
690
|
-
var questCatalogResponseSchema = markResponseSchema(
|
|
552
|
+
))();
|
|
553
|
+
var questCatalogResponseSchema = /* @__PURE__ */ (() => markResponseSchema(
|
|
691
554
|
z4.object({
|
|
692
555
|
revision: questCatalogSchema.shape.revision,
|
|
693
556
|
types: responseListSchema(questCatalogSchema.shape.types.element),
|
|
@@ -702,12 +565,21 @@ var questCatalogResponseSchema = markResponseSchema(
|
|
|
702
565
|
}),
|
|
703
566
|
supportedInteractions: responseListSchema(interactionSchema)
|
|
704
567
|
})
|
|
705
|
-
);
|
|
568
|
+
))();
|
|
569
|
+
|
|
570
|
+
// src/schemas.ts
|
|
571
|
+
var dashboardIssue2 = dashboardIssue;
|
|
572
|
+
var normalizeDashboard2 = normalizeDashboard;
|
|
573
|
+
var compatibleSettingKinds2 = compatibleSettingKinds;
|
|
574
|
+
var isBoundSetting2 = isBoundSetting;
|
|
575
|
+
var whereSettings2 = whereSettings;
|
|
576
|
+
var sourceContent2 = sourceContent;
|
|
706
577
|
|
|
707
578
|
export {
|
|
708
579
|
projectCatalogArtifactSchema,
|
|
709
580
|
projectDeploymentSchema,
|
|
710
581
|
deploymentWarningSchema,
|
|
582
|
+
deploymentQuestChangeSchema,
|
|
711
583
|
deploymentPreviewSchema,
|
|
712
584
|
publishDeploymentSchema,
|
|
713
585
|
deploymentResultSchema,
|
|
@@ -747,5 +619,11 @@ export {
|
|
|
747
619
|
leaderboardListResponseSchema,
|
|
748
620
|
questExperienceResponseSchema,
|
|
749
621
|
memberProgressResponseSchema,
|
|
750
|
-
questCatalogResponseSchema
|
|
622
|
+
questCatalogResponseSchema,
|
|
623
|
+
dashboardIssue2 as dashboardIssue,
|
|
624
|
+
normalizeDashboard2 as normalizeDashboard,
|
|
625
|
+
compatibleSettingKinds2 as compatibleSettingKinds,
|
|
626
|
+
isBoundSetting2 as isBoundSetting,
|
|
627
|
+
whereSettings2 as whereSettings,
|
|
628
|
+
sourceContent2 as sourceContent
|
|
751
629
|
};
|