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