@domino-sdk/relay 1.62.0 → 1.65.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 +145 -0
- package/dist/{accounts-CCqCKCVx.d.ts → accounts-_lNsiR2k.d.ts} +42 -4
- package/dist/{attempt-captures-Cm-5G0PC.d.ts → attempt-captures-BqPggxTU.d.ts} +1 -1
- package/dist/authoring.d.ts +54 -20
- package/dist/authoring.js +60 -31
- package/dist/{automatic-outcomes-pAsOyIVp.d.ts → automatic-outcomes-BzAvfcpd.d.ts} +11 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +10 -10
- package/dist/browser.js +12 -13
- package/dist/capability-error-CuI_F7yM.d.ts +296 -0
- package/dist/{catalog--ZIlskAo.d.ts → catalog-ByZMRS7I.d.ts} +21 -10
- package/dist/{chunk-XNKSSE32.js → chunk-4NIV4NPV.js} +7 -7
- package/dist/chunk-7H4MRVQF.js +199 -0
- package/dist/{chunk-UPQPUJOU.js → chunk-CVQZ2YP7.js} +73 -202
- package/dist/{chunk-3PYYGFSB.js → chunk-DLABJSBO.js} +3 -3
- package/dist/{chunk-Y322OTCH.js → chunk-E22XSC4L.js} +1 -1
- package/dist/{chunk-E6IKQHTX.js → chunk-EDNKKVGU.js} +2 -2
- package/dist/{chunk-K2KS3JLY.js → chunk-EOUEAOWJ.js} +35 -4
- package/dist/{chunk-6WCIWXUV.js → chunk-EUEW2APU.js} +2 -2
- package/dist/{chunk-MK425RXJ.js → chunk-HNR6G3GV.js} +2335 -1538
- package/dist/{chunk-UW5232GG.js → chunk-KCUUHT2V.js} +5 -5
- package/dist/{chunk-CICDIBOF.js → chunk-MPTE7EIV.js} +76 -74
- package/dist/{chunk-4OC7REYX.js → chunk-MWMCQLCG.js} +3 -3
- package/dist/{chunk-GTDW453U.js → chunk-NG4GZ54I.js} +100 -114
- package/dist/chunk-R2KZFX6E.js +405 -0
- package/dist/{chunk-HTZHBTIL.js → chunk-RD3XJ4DH.js} +208 -376
- package/dist/{chunk-5TEYFX6X.js → chunk-SE7XHQFP.js} +2 -2
- 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-GKIFABGN.js → chunk-VBYOAT46.js} +100 -277
- package/dist/{chunk-QYPMPWVX.js → chunk-XVZ4YOF2.js} +43 -43
- package/dist/{chunk-3KLC4AMA.js → chunk-ZQ3IPCI6.js} +177 -176
- package/dist/chunk-ZXGBDLVB.js +1510 -0
- package/dist/{client-B-hbHX30.d.ts → client-D7IiwEq2.d.ts} +31 -62
- package/dist/{capability-error-DFMwSuSf.d.ts → dashboards-pVfclkyh.d.ts} +14 -294
- package/dist/{deployments-M4OHn7G3.d.ts → deployments-Cr1tfqrr.d.ts} +46 -3
- package/dist/{identity-integration-3mX6b5iH.d.ts → identity-integration-Ci2vGKtX.d.ts} +67 -2
- package/dist/index.d.ts +11 -11
- package/dist/index.js +11 -13
- package/dist/internal.d.ts +27 -13
- package/dist/internal.js +46 -13
- package/dist/{analytics-BwAKLi7O.d.ts → limits-pE04y9O2.d.ts} +131 -3
- package/dist/{offers-DhAtss4_.d.ts → offers-Hw2P6tcK.d.ts} +3 -2
- package/dist/{participant-activity-D-Drp24G.d.ts → participant-activity-DXRq4s6K.d.ts} +1 -0
- package/dist/portal-proxy.d.ts +21 -3
- package/dist/portal-proxy.js +72 -22
- package/dist/react/index.d.ts +29 -15
- package/dist/react/index.js +52 -29
- package/dist/{pages-B8q8Y_dQ.d.ts → reward-deliveries-BCV8hznc.d.ts} +300 -233
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/6EBN6IZU.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +197 -19
- package/dist/schema.js +126 -124
- package/dist/server/index.d.ts +13 -13
- package/dist/server/index.js +5701 -6302
- package/dist/{sign-in-providers-BkjcDsFF.d.ts → sign-in-providers-BAkGjSXo.d.ts} +7 -2
- package/dist/{submission-input-DHGKhXfp.d.ts → submission-input-ChL1aYNH.d.ts} +3 -2
- package/dist/{telegram-browser-BCE7zdOb.d.ts → telegram-browser-K27t4TwM.d.ts} +5 -5
- package/dist/telegram.d.ts +9 -9
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +229 -27
- package/dist/testing.js +146 -105
- package/dist/{tracker-data-Hb1uQnk5.d.ts → tracker-data-Bl-qPIvZ.d.ts} +37 -9
- package/dist/{transport-DkhX2Cbs.d.ts → transport-DC1m73Tp.d.ts} +40211 -37736
- package/dist/{wallet-DTO7SXj7.d.ts → wallet-B7e06v4m.d.ts} +14 -4
- package/package.json +1 -1
- package/dist/chunk-D26YNACF.js +0 -320
- package/dist/chunk-UAKYDVT3.js +0 -565
- package/dist/chunk-WSBYWVTZ.js +0 -717
- package/dist/chunk-XJFYAXET.js +0 -87
- 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-XVZ4YOF2.js";
|
|
10
|
+
import {
|
|
11
|
+
dashboardArtifactSchema,
|
|
12
|
+
dashboardIssue,
|
|
13
|
+
dashboardPreviewSchema,
|
|
14
|
+
normalizeDashboard
|
|
15
|
+
} from "./chunk-ZQ3IPCI6.js";
|
|
14
16
|
import {
|
|
15
17
|
authProvidersSchema,
|
|
16
18
|
collectionPassSchema,
|
|
@@ -21,18 +23,21 @@ import {
|
|
|
21
23
|
questOutcomePageSchema,
|
|
22
24
|
questOutcomeSchema,
|
|
23
25
|
rewardDeliveriesSchema
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MPTE7EIV.js";
|
|
25
27
|
import {
|
|
26
28
|
catalogDeploymentSchema,
|
|
27
29
|
collectionViewSchema,
|
|
30
|
+
exchangeResultSchema,
|
|
28
31
|
interactionSchema,
|
|
32
|
+
memberSummarySchema,
|
|
29
33
|
participantActivitySchema,
|
|
34
|
+
participantSessionSchema,
|
|
30
35
|
questCatalogSchema,
|
|
31
36
|
questCollectionSchema,
|
|
32
37
|
questExperienceSchema,
|
|
33
38
|
questTypeVersionSchema,
|
|
34
39
|
questViewSchema
|
|
35
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-R2KZFX6E.js";
|
|
36
41
|
import {
|
|
37
42
|
engagementArtifactSchema,
|
|
38
43
|
engagementBoundaryPageSchema,
|
|
@@ -47,19 +52,35 @@ import {
|
|
|
47
52
|
referralDefinitionSchema,
|
|
48
53
|
referralHistorySchema,
|
|
49
54
|
referralSummarySchema
|
|
50
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NG4GZ54I.js";
|
|
51
56
|
import {
|
|
57
|
+
accountConnectionSchema,
|
|
58
|
+
attemptSchema,
|
|
59
|
+
authProviderSchema,
|
|
52
60
|
badgeArtifactSchema,
|
|
53
61
|
badgeSchema,
|
|
62
|
+
campaignEnrollmentSchema,
|
|
63
|
+
compatibleSettingKinds,
|
|
64
|
+
contentPerformancePageSchema,
|
|
65
|
+
contentQualificationPageSchema,
|
|
66
|
+
entitlementSchema,
|
|
67
|
+
evidenceSchema,
|
|
68
|
+
identifier,
|
|
69
|
+
isBoundSetting,
|
|
54
70
|
leaderboardArtifactSchema,
|
|
55
71
|
leaderboardDefinitionSchema,
|
|
56
72
|
leaderboardHistoryPageSchema,
|
|
57
73
|
leaderboardPageSchema,
|
|
58
74
|
leaderboardPlacementSchema,
|
|
59
75
|
leaderboardPreviewSchema,
|
|
76
|
+
limits,
|
|
77
|
+
linkedWalletSchema,
|
|
60
78
|
managedBadgeSchema,
|
|
79
|
+
markResponseSchema,
|
|
61
80
|
memberBadgesSchema,
|
|
81
|
+
memberProgressSchema,
|
|
62
82
|
ownProfileSchema,
|
|
83
|
+
pageCursorSchema,
|
|
63
84
|
pointBalancesSchema,
|
|
64
85
|
pointHistoryPageSchema,
|
|
65
86
|
pointLedgerArtifactSchema,
|
|
@@ -67,42 +88,22 @@ import {
|
|
|
67
88
|
pointLedgerSchema,
|
|
68
89
|
profileCompletionPageSchema,
|
|
69
90
|
profileReferralSchema,
|
|
70
|
-
profileSummarySchema
|
|
71
|
-
} from "./chunk-WSBYWVTZ.js";
|
|
72
|
-
import {
|
|
73
|
-
exchangeResultSchema,
|
|
74
|
-
memberSummarySchema,
|
|
75
|
-
participantSessionSchema
|
|
76
|
-
} from "./chunk-XJFYAXET.js";
|
|
77
|
-
import {
|
|
78
|
-
accountConnectionSchema,
|
|
79
|
-
attemptSchema,
|
|
80
|
-
authProviderSchema,
|
|
81
|
-
campaignEnrollmentSchema,
|
|
82
|
-
contentPerformancePageSchema,
|
|
83
|
-
contentQualificationPageSchema,
|
|
84
|
-
entitlementSchema,
|
|
85
|
-
evidenceSchema,
|
|
86
|
-
identifier,
|
|
87
|
-
knownResponse,
|
|
88
|
-
lazyResponseReaders,
|
|
89
|
-
linkedWalletSchema,
|
|
90
|
-
markResponseSchema,
|
|
91
|
-
memberProgressSchema,
|
|
92
|
-
pageCursorSchema,
|
|
91
|
+
profileSummarySchema,
|
|
93
92
|
projectCalendarDeclarationSchema,
|
|
94
93
|
publishedReleaseSchema,
|
|
95
94
|
publishedTrackerSchema,
|
|
96
95
|
questBudgetViewSchema,
|
|
97
|
-
questScaleLimits,
|
|
98
96
|
releaseSchema,
|
|
99
97
|
responseListSchema,
|
|
100
98
|
responseSchema,
|
|
99
|
+
responseTables,
|
|
101
100
|
rewardEntrySchema,
|
|
102
101
|
rewardSchema,
|
|
103
102
|
sdkRuntimeSchema,
|
|
104
103
|
signInAccountSchema,
|
|
105
104
|
signInProviderOptionSchema,
|
|
105
|
+
skipEnrollmentSchema,
|
|
106
|
+
sourceContent,
|
|
106
107
|
telegramAccountConnectionSchema,
|
|
107
108
|
tieredRewardReferenceSchema,
|
|
108
109
|
timeZoneNameSchema,
|
|
@@ -114,12 +115,13 @@ import {
|
|
|
114
115
|
walletMessageChallengeSchema,
|
|
115
116
|
walletNftsSchema,
|
|
116
117
|
walletSignInNetworksSchema,
|
|
117
|
-
walletTransactionsSchema
|
|
118
|
-
|
|
118
|
+
walletTransactionsSchema,
|
|
119
|
+
whereSettings
|
|
120
|
+
} from "./chunk-HNR6G3GV.js";
|
|
119
121
|
|
|
120
122
|
// src/deployments.ts
|
|
121
123
|
import * as z from "zod";
|
|
122
|
-
var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
124
|
+
var projectCatalogArtifactSchema = /* @__PURE__ */ (() => catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
123
125
|
engagement: z.array(engagementArtifactSchema).max(50).default([]),
|
|
124
126
|
trackers: z.array(trackerArtifactSchema).max(50).default([]),
|
|
125
127
|
badges: z.array(badgeArtifactSchema).max(100).default([]),
|
|
@@ -128,7 +130,7 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
128
130
|
referrals: z.array(referralArtifactSchema).max(50).default([]),
|
|
129
131
|
leaderboards: z.array(leaderboardArtifactSchema).max(50).default([]),
|
|
130
132
|
images: z.array(imageAssetArtifactSchema).max(10).default([]),
|
|
131
|
-
// A generous bound: the deployment answers too-many-dashboards past
|
|
133
|
+
// A generous bound: the deployment answers too-many-dashboards past limits.dashboards.
|
|
132
134
|
dashboards: z.array(dashboardArtifactSchema).max(100).default([]),
|
|
133
135
|
/** relay.json `calendar`: the project timezone. Omitted, the deployment leaves it unchanged. */
|
|
134
136
|
calendar: projectCalendarDeclarationSchema.optional(),
|
|
@@ -137,9 +139,9 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
137
139
|
* platform already stores may be left out.
|
|
138
140
|
*/
|
|
139
141
|
runtimes: z.array(sdkRuntimeSchema).max(4).default([])
|
|
140
|
-
});
|
|
141
|
-
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({
|
|
142
|
-
releases: z.array(releaseSchema).max(
|
|
142
|
+
}))();
|
|
143
|
+
var projectDeploymentSchema = /* @__PURE__ */ (() => projectCatalogArtifactSchema.extend({
|
|
144
|
+
releases: z.array(releaseSchema).max(limits.quests).default([]),
|
|
143
145
|
/**
|
|
144
146
|
* The deployment leaves out quests on purpose, as `domino deploy --only` does, so its preview
|
|
145
147
|
* doesn't warn about published quests it omits (`quests-not-in-bundle`).
|
|
@@ -148,22 +150,22 @@ var projectDeploymentSchema = projectCatalogArtifactSchema.extend({
|
|
|
148
150
|
}).refine(
|
|
149
151
|
(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
152
|
"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({
|
|
153
|
+
))();
|
|
154
|
+
var deploymentWarningSchema = /* @__PURE__ */ (() => z.object({
|
|
153
155
|
code: z.string(),
|
|
154
156
|
message: z.string(),
|
|
155
157
|
integration: z.string().optional(),
|
|
156
158
|
quests: z.array(z.string()).default([])
|
|
157
|
-
});
|
|
158
|
-
var deploymentQuestChangeSchema = z.object({
|
|
159
|
+
}))();
|
|
160
|
+
var deploymentQuestChangeSchema = /* @__PURE__ */ (() => z.object({
|
|
159
161
|
/** The quest's ID. */
|
|
160
162
|
quest: identifier,
|
|
161
163
|
/** The quest's authoring key. */
|
|
162
164
|
key: identifier.optional(),
|
|
163
165
|
change: z.enum(["created", "updated", "unchanged"]),
|
|
164
166
|
replaces: z.object({ release: identifier, createdAt: z.number() }).optional()
|
|
165
|
-
});
|
|
166
|
-
var deploymentPreviewSchema = z.object({
|
|
167
|
+
}))();
|
|
168
|
+
var deploymentPreviewSchema = /* @__PURE__ */ (() => z.object({
|
|
167
169
|
id: identifier,
|
|
168
170
|
engagement: z.array(engagementDeploymentEntrySchema).default([]),
|
|
169
171
|
trackers: z.array(publishedTrackerSchema).default([]),
|
|
@@ -205,26 +207,26 @@ var deploymentPreviewSchema = z.object({
|
|
|
205
207
|
* built for older SDKs still fit.
|
|
206
208
|
*/
|
|
207
209
|
warnings: z.array(deploymentWarningSchema).optional()
|
|
208
|
-
});
|
|
209
|
-
var publishDeploymentSchema = z.object({ id: identifier }).strict();
|
|
210
|
-
var deploymentResultSchema = deploymentPreviewSchema.extend({
|
|
210
|
+
}))();
|
|
211
|
+
var publishDeploymentSchema = /* @__PURE__ */ (() => z.object({ id: identifier }).strict())();
|
|
212
|
+
var deploymentResultSchema = /* @__PURE__ */ (() => deploymentPreviewSchema.extend({
|
|
211
213
|
revision: z.number().int().positive()
|
|
212
|
-
});
|
|
213
|
-
var deploymentSourceSchema = z.discriminatedUnion("kind", [
|
|
214
|
+
}))();
|
|
215
|
+
var deploymentSourceSchema = /* @__PURE__ */ (() => z.discriminatedUnion("kind", [
|
|
214
216
|
z.object({ kind: z.literal("direct") }),
|
|
215
217
|
z.object({ kind: z.literal("promotion"), deployment: identifier }),
|
|
216
218
|
z.object({ kind: z.literal("rollback"), deployment: identifier })
|
|
217
|
-
]);
|
|
218
|
-
var deploymentRecordMetadata = {
|
|
219
|
+
]))();
|
|
220
|
+
var deploymentRecordMetadata = /* @__PURE__ */ (() => ({
|
|
219
221
|
source: deploymentSourceSchema,
|
|
220
222
|
createdAt: z.number().int().nonnegative(),
|
|
221
223
|
createdBy: z.string().nullable()
|
|
222
|
-
};
|
|
223
|
-
var submittedDeploymentMetadata = {
|
|
224
|
+
}))();
|
|
225
|
+
var submittedDeploymentMetadata = /* @__PURE__ */ (() => ({
|
|
224
226
|
submittedAt: z.number().int().nonnegative(),
|
|
225
227
|
submittedBy: z.string().nullable()
|
|
226
|
-
};
|
|
227
|
-
var deploymentRecordSchema = z.discriminatedUnion("status", [
|
|
228
|
+
}))();
|
|
229
|
+
var deploymentRecordSchema = /* @__PURE__ */ (() => z.discriminatedUnion("status", [
|
|
228
230
|
deploymentPreviewSchema.extend({
|
|
229
231
|
...deploymentRecordMetadata,
|
|
230
232
|
status: z.literal("preview")
|
|
@@ -250,82 +252,46 @@ var deploymentRecordSchema = z.discriminatedUnion("status", [
|
|
|
250
252
|
publishedAt: z.number().int().nonnegative(),
|
|
251
253
|
publishedBy: z.string().nullable()
|
|
252
254
|
})
|
|
253
|
-
]);
|
|
254
|
-
var deploymentHistoryQuerySchema = z.strictObject({
|
|
255
|
+
]))();
|
|
256
|
+
var deploymentHistoryQuerySchema = /* @__PURE__ */ (() => z.strictObject({
|
|
255
257
|
cursor: pageCursorSchema.optional(),
|
|
256
258
|
limit: z.coerce.number().int().min(1).max(100).optional()
|
|
257
|
-
});
|
|
258
|
-
var deploymentHistoryPageSchema = z.object({
|
|
259
|
+
}))();
|
|
260
|
+
var deploymentHistoryPageSchema = /* @__PURE__ */ (() => z.object({
|
|
259
261
|
items: z.array(deploymentRecordSchema),
|
|
260
262
|
published: z.array(deploymentRecordSchema).max(2),
|
|
261
263
|
nextCursor: pageCursorSchema.nullable()
|
|
262
|
-
});
|
|
263
|
-
var submitDeploymentSchema = z.object({ id: identifier }).strict();
|
|
264
|
-
var rejectDeploymentSchema = z.object({
|
|
264
|
+
}))();
|
|
265
|
+
var submitDeploymentSchema = /* @__PURE__ */ (() => z.object({ id: identifier }).strict())();
|
|
266
|
+
var rejectDeploymentSchema = /* @__PURE__ */ (() => z.object({
|
|
265
267
|
id: identifier,
|
|
266
268
|
reason: z.string().trim().min(1).max(1e3)
|
|
267
|
-
}).strict();
|
|
268
|
-
var deploymentRejectionSchema = rejectDeploymentSchema.omit({
|
|
269
|
+
}).strict())();
|
|
270
|
+
var deploymentRejectionSchema = /* @__PURE__ */ (() => rejectDeploymentSchema.omit({
|
|
269
271
|
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();
|
|
272
|
+
}))();
|
|
273
|
+
var deploymentActionSchema = /* @__PURE__ */ (() => z.object({ actionId: z.string().uuid() }).strict())();
|
|
274
|
+
var repeatableDeploymentSchema = /* @__PURE__ */ (() => z.object({ actionId: z.string().uuid(), id: identifier }).strict())();
|
|
273
275
|
var promoteDeploymentSchema = repeatableDeploymentSchema;
|
|
274
276
|
var rollbackDeploymentSchema = repeatableDeploymentSchema;
|
|
275
277
|
|
|
276
278
|
// 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
|
-
};
|
|
279
|
+
var capabilityResponseTables = /* @__PURE__ */ (() => responseTables({
|
|
280
|
+
imageInspectionSchema: () => imageInspectionSchema,
|
|
281
|
+
imageComparisonSchema: () => imageComparisonSchema,
|
|
282
|
+
imageExtractionSchema: () => imageExtractionSchema,
|
|
283
|
+
imageSightingsSchema: () => imageSightingsSchema,
|
|
284
|
+
imageUploadsSchema: () => imageUploadsSchema,
|
|
285
|
+
publishedImageSchema: () => publishedImageSchema,
|
|
286
|
+
walletBalanceSchema: () => walletBalanceSchema,
|
|
287
|
+
walletNftsSchema: () => walletNftsSchema,
|
|
288
|
+
walletCallSchema: () => walletCallSchema,
|
|
289
|
+
walletDelegationsSchema: () => walletDelegationsSchema,
|
|
290
|
+
walletEventsSchema: () => walletEventsSchema,
|
|
291
|
+
walletTransactionsSchema: () => walletTransactionsSchema
|
|
292
|
+
}))();
|
|
293
|
+
var capabilityResponseSchemas = capabilityResponseTables.known;
|
|
294
|
+
var capabilityResponses = capabilityResponseTables.tolerant;
|
|
329
295
|
|
|
330
296
|
// src/activity.ts
|
|
331
297
|
import * as z2 from "zod";
|
|
@@ -340,11 +306,11 @@ var activityTypes = {
|
|
|
340
306
|
entitlementCollected: "entitlement.collected",
|
|
341
307
|
referralQualified: "referral.qualified"
|
|
342
308
|
};
|
|
343
|
-
var activityTypeSchema = z2.string().min(1).max(100);
|
|
309
|
+
var activityTypeSchema = /* @__PURE__ */ (() => z2.string().min(1).max(100))();
|
|
344
310
|
|
|
345
311
|
// src/automatic-outcomes.ts
|
|
346
312
|
import * as z3 from "zod";
|
|
347
|
-
var automaticEventSchema = z3.discriminatedUnion("kind", [
|
|
313
|
+
var automaticEventSchema = /* @__PURE__ */ (() => z3.discriminatedUnion("kind", [
|
|
348
314
|
z3.object({
|
|
349
315
|
kind: z3.literal("completion"),
|
|
350
316
|
attempt: identifier,
|
|
@@ -355,23 +321,23 @@ var automaticEventSchema = z3.discriminatedUnion("kind", [
|
|
|
355
321
|
z3.object({ kind: z3.literal("campaign"), action: identifier }),
|
|
356
322
|
z3.object({ kind: z3.literal("publication"), revision: identifier }),
|
|
357
323
|
z3.object({ kind: z3.literal("revocation"), action: identifier })
|
|
358
|
-
]);
|
|
359
|
-
var knownEventKinds = new Set(
|
|
324
|
+
]))();
|
|
325
|
+
var knownEventKinds = /* @__PURE__ */ (() => new Set(
|
|
360
326
|
automaticEventSchema.options.map((option) => option.shape.kind.value)
|
|
361
|
-
);
|
|
362
|
-
var automaticEventResponseSchema = z3.union([
|
|
327
|
+
))();
|
|
328
|
+
var automaticEventResponseSchema = /* @__PURE__ */ (() => z3.union([
|
|
363
329
|
automaticEventSchema,
|
|
364
330
|
z3.looseObject({
|
|
365
331
|
kind: z3.string().refine((kind) => !knownEventKinds.has(kind))
|
|
366
332
|
}).catchall(z3.json())
|
|
367
|
-
]);
|
|
368
|
-
var automaticLinkedAttemptSchema = z3.object({
|
|
333
|
+
]))();
|
|
334
|
+
var automaticLinkedAttemptSchema = /* @__PURE__ */ (() => z3.object({
|
|
369
335
|
id: identifier,
|
|
370
336
|
status: attemptSchema.shape.status,
|
|
371
337
|
/** Open code for the linked attempt. Consumers must tolerate new values. */
|
|
372
338
|
code: z3.string().nullable()
|
|
373
|
-
});
|
|
374
|
-
var automaticOutcomeFields = {
|
|
339
|
+
}))();
|
|
340
|
+
var automaticOutcomeFields = /* @__PURE__ */ (() => ({
|
|
375
341
|
id: identifier,
|
|
376
342
|
quest: identifier,
|
|
377
343
|
member: identifier,
|
|
@@ -382,18 +348,20 @@ var automaticOutcomeFields = {
|
|
|
382
348
|
reason: z3.string().nullable(),
|
|
383
349
|
/** Which window refused admission when `code` is `outside-window`. */
|
|
384
350
|
window: z3.enum(["tracker", "quest"]).optional(),
|
|
351
|
+
/** Which enrollment the member lacks when `code` is `not-enrolled`. */
|
|
352
|
+
enrollment: skipEnrollmentSchema,
|
|
385
353
|
revision: z3.number().int().nonnegative(),
|
|
386
354
|
createdAt: z3.number().int().safe(),
|
|
387
355
|
updatedAt: z3.number().int().safe()
|
|
388
|
-
};
|
|
389
|
-
var automaticOutcomeWithoutAttemptSchema = z3.object({
|
|
356
|
+
}))();
|
|
357
|
+
var automaticOutcomeWithoutAttemptSchema = /* @__PURE__ */ (() => z3.object({
|
|
390
358
|
...automaticOutcomeFields,
|
|
391
359
|
/** @deprecated Use `linkedAttempt` instead. Removed in 2.0.0. */
|
|
392
360
|
attempt: z3.null(),
|
|
393
361
|
/** Current linked attempt. Optional so responses from older Relay versions remain readable. */
|
|
394
362
|
linkedAttempt: z3.null().optional()
|
|
395
|
-
});
|
|
396
|
-
var automaticOutcomeWithAttemptSchema = z3.object({
|
|
363
|
+
}))();
|
|
364
|
+
var automaticOutcomeWithAttemptSchema = /* @__PURE__ */ (() => z3.object({
|
|
397
365
|
...automaticOutcomeFields,
|
|
398
366
|
/** @deprecated Use `linkedAttempt` instead. Removed in 2.0.0. */
|
|
399
367
|
attempt: identifier,
|
|
@@ -407,28 +375,28 @@ var automaticOutcomeWithAttemptSchema = z3.object({
|
|
|
407
375
|
message: "Linked attempt ID must match the legacy attempt ID"
|
|
408
376
|
});
|
|
409
377
|
}
|
|
410
|
-
});
|
|
411
|
-
var automaticOutcomeSchema = z3.union([
|
|
378
|
+
}))();
|
|
379
|
+
var automaticOutcomeSchema = /* @__PURE__ */ (() => z3.union([
|
|
412
380
|
automaticOutcomeWithoutAttemptSchema,
|
|
413
381
|
automaticOutcomeWithAttemptSchema
|
|
414
|
-
]);
|
|
382
|
+
]))();
|
|
415
383
|
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({
|
|
384
|
+
var automaticOutcomeQuerySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
417
385
|
quest: identifier.optional(),
|
|
418
386
|
member: identifier.optional(),
|
|
419
387
|
state: z3.enum(["admitted", "skipped"]).optional(),
|
|
420
388
|
code: z3.string().max(100).optional(),
|
|
421
389
|
cursor: pageCursorSchema.optional()
|
|
422
|
-
});
|
|
423
|
-
var automaticOutcomePageSchema = z3.object({
|
|
390
|
+
}))();
|
|
391
|
+
var automaticOutcomePageSchema = /* @__PURE__ */ (() => z3.object({
|
|
424
392
|
items: z3.array(automaticOutcomeSchema),
|
|
425
393
|
nextCursor: pageCursorSchema.nullable()
|
|
426
|
-
});
|
|
427
|
-
var automaticCatchUpInputSchema = z3.strictObject({
|
|
394
|
+
}))();
|
|
395
|
+
var automaticCatchUpInputSchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
428
396
|
quest: identifier,
|
|
429
397
|
outcomes: z3.array(identifier).min(1).max(50)
|
|
430
|
-
});
|
|
431
|
-
var automaticCatchUpPreviewSchema = z3.object({
|
|
398
|
+
}))();
|
|
399
|
+
var automaticCatchUpPreviewSchema = /* @__PURE__ */ (() => z3.object({
|
|
432
400
|
quest: identifier,
|
|
433
401
|
release: identifier,
|
|
434
402
|
token: identifier,
|
|
@@ -438,6 +406,7 @@ var automaticCatchUpPreviewSchema = z3.object({
|
|
|
438
406
|
code: z3.string().nullable(),
|
|
439
407
|
reason: z3.string().nullable(),
|
|
440
408
|
window: z3.enum(["tracker", "quest"]).optional(),
|
|
409
|
+
enrollment: skipEnrollmentSchema,
|
|
441
410
|
attempt: identifier.nullable(),
|
|
442
411
|
wouldAdmit: z3.boolean(),
|
|
443
412
|
budgets: z3.array(questBudgetViewSchema)
|
|
@@ -457,22 +426,22 @@ var automaticCatchUpPreviewSchema = z3.object({
|
|
|
457
426
|
cost: z3.union([z3.number(), z3.literal("dynamic")])
|
|
458
427
|
})
|
|
459
428
|
)
|
|
460
|
-
});
|
|
461
|
-
var automaticCatchUpConfirmSchema = automaticCatchUpInputSchema.extend(
|
|
429
|
+
}))();
|
|
430
|
+
var automaticCatchUpConfirmSchema = /* @__PURE__ */ (() => automaticCatchUpInputSchema.extend(
|
|
462
431
|
{
|
|
463
432
|
actionId: identifier,
|
|
464
433
|
token: identifier,
|
|
465
434
|
reason: z3.string().trim().min(1).max(1e3)
|
|
466
435
|
}
|
|
467
|
-
);
|
|
468
|
-
var automaticCatchUpResultSchema = z3.object({
|
|
436
|
+
))();
|
|
437
|
+
var automaticCatchUpResultSchema = /* @__PURE__ */ (() => z3.object({
|
|
469
438
|
items: z3.array(automaticOutcomeSchema)
|
|
470
|
-
});
|
|
471
|
-
var automaticSchedulingQuerySchema = z3.strictObject({
|
|
439
|
+
}))();
|
|
440
|
+
var automaticSchedulingQuerySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
472
441
|
member: identifier.optional(),
|
|
473
442
|
cursor: pageCursorSchema.optional()
|
|
474
|
-
});
|
|
475
|
-
var automaticSchedulingSchema = z3.object({
|
|
443
|
+
}))();
|
|
444
|
+
var automaticSchedulingSchema = /* @__PURE__ */ (() => z3.object({
|
|
476
445
|
id: identifier,
|
|
477
446
|
member: identifier,
|
|
478
447
|
event: automaticEventResponseSchema,
|
|
@@ -481,236 +450,85 @@ var automaticSchedulingSchema = z3.object({
|
|
|
481
450
|
error: z3.string().nullable(),
|
|
482
451
|
createdAt: z3.number().int().safe(),
|
|
483
452
|
nextAttemptAt: z3.number().int().safe()
|
|
484
|
-
});
|
|
485
|
-
var automaticSchedulingPageSchema = z3.object({
|
|
453
|
+
}))();
|
|
454
|
+
var automaticSchedulingPageSchema = /* @__PURE__ */ (() => z3.object({
|
|
486
455
|
items: z3.array(automaticSchedulingSchema),
|
|
487
456
|
nextCursor: pageCursorSchema.nullable()
|
|
488
|
-
});
|
|
489
|
-
var automaticSchedulingRetrySchema = z3.strictObject({
|
|
457
|
+
}))();
|
|
458
|
+
var automaticSchedulingRetrySchema = /* @__PURE__ */ (() => z3.strictObject({
|
|
490
459
|
actionId: identifier,
|
|
491
460
|
id: identifier,
|
|
492
461
|
reason: z3.string().trim().min(1).max(1e3)
|
|
493
|
-
});
|
|
462
|
+
}))();
|
|
494
463
|
|
|
495
464
|
// 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
|
-
};
|
|
465
|
+
var participantResponseTables = /* @__PURE__ */ (() => responseTables({
|
|
466
|
+
badgeSchema: () => badgeSchema,
|
|
467
|
+
memberBadgesSchema: () => memberBadgesSchema,
|
|
468
|
+
telegramAccountConnectionSchema: () => telegramAccountConnectionSchema,
|
|
469
|
+
creatorAccountsSchema: () => creatorAccountsSchema,
|
|
470
|
+
accountConnectionSchema: () => accountConnectionSchema,
|
|
471
|
+
attemptSchema: () => attemptSchema,
|
|
472
|
+
authProviderSchema: () => authProviderSchema,
|
|
473
|
+
authProvidersSchema: () => authProvidersSchema,
|
|
474
|
+
signInAccountSchema: () => signInAccountSchema,
|
|
475
|
+
signInProviderOptionSchema: () => signInProviderOptionSchema,
|
|
476
|
+
campaignEnrollmentSchema: () => campaignEnrollmentSchema,
|
|
477
|
+
collectionPassSchema: () => collectionPassSchema,
|
|
478
|
+
contentPerformancePageSchema: () => contentPerformancePageSchema,
|
|
479
|
+
contentQualificationPageSchema: () => contentQualificationPageSchema,
|
|
480
|
+
engagementBoundaryPageSchema: () => engagementBoundaryPageSchema,
|
|
481
|
+
engagementPageSchema: () => engagementPageSchema,
|
|
482
|
+
evidenceSchema: () => evidenceSchema,
|
|
483
|
+
exchangeResultSchema: () => exchangeResultSchema,
|
|
484
|
+
leaderboardDefinitionSchema: () => leaderboardDefinitionSchema,
|
|
485
|
+
leaderboardHistoryPageSchema: () => leaderboardHistoryPageSchema,
|
|
486
|
+
leaderboardPageSchema: () => leaderboardPageSchema,
|
|
487
|
+
leaderboardPlacementSchema: () => leaderboardPlacementSchema,
|
|
488
|
+
linkedWalletSchema: () => linkedWalletSchema,
|
|
489
|
+
memberProgressSchema: () => memberProgressSchema,
|
|
490
|
+
memberSummarySchema: () => memberSummarySchema,
|
|
491
|
+
offerSchema: () => offerSchema,
|
|
492
|
+
ownProfileSchema: () => ownProfileSchema,
|
|
493
|
+
participantActivitySchema: () => participantActivitySchema,
|
|
494
|
+
participantDeliveriesSchema: () => participantDeliveriesSchema,
|
|
495
|
+
participantEntitlementsSchema: () => participantEntitlementsSchema,
|
|
496
|
+
participantSessionSchema: () => participantSessionSchema,
|
|
497
|
+
pointBalancesSchema: () => pointBalancesSchema,
|
|
498
|
+
pointHistoryPageSchema: () => pointHistoryPageSchema,
|
|
499
|
+
pointLedgerReferenceSchema: () => pointLedgerReferenceSchema,
|
|
500
|
+
profileCompletionPageSchema: () => profileCompletionPageSchema,
|
|
501
|
+
profileReferralSchema: () => profileReferralSchema,
|
|
502
|
+
profileSummarySchema: () => profileSummarySchema,
|
|
503
|
+
questEnrollmentSchema: () => questEnrollmentSchema,
|
|
504
|
+
questExperienceSchema: () => questExperienceSchema,
|
|
505
|
+
questOutcomePageSchema: () => questOutcomePageSchema,
|
|
506
|
+
questOutcomeSchema: () => questOutcomeSchema,
|
|
507
|
+
redemptionSchema: () => redemptionSchema,
|
|
508
|
+
referralDefinitionSchema: () => referralDefinitionSchema,
|
|
509
|
+
referralHistorySchema: () => referralHistorySchema,
|
|
510
|
+
referralSummarySchema: () => referralSummarySchema,
|
|
511
|
+
rewardDeliveriesSchema: () => rewardDeliveriesSchema,
|
|
512
|
+
tieredRewardReferenceSchema: () => tieredRewardReferenceSchema,
|
|
513
|
+
walletMessageChallengeSchema: () => walletMessageChallengeSchema,
|
|
514
|
+
walletSignInNetworksSchema: () => walletSignInNetworksSchema
|
|
515
|
+
}))();
|
|
516
|
+
var participantResponseSchemas = participantResponseTables.known;
|
|
517
|
+
var participantResponses = participantResponseTables.tolerant;
|
|
700
518
|
|
|
701
519
|
// src/evolving-responses.ts
|
|
702
520
|
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(
|
|
521
|
+
var offerResponseSchema = /* @__PURE__ */ (() => responseSchema(offerSchema))();
|
|
522
|
+
var offerListResponseSchema = /* @__PURE__ */ (() => responseListSchema(offerSchema))();
|
|
523
|
+
var redemptionResponseSchema = /* @__PURE__ */ (() => responseSchema(redemptionSchema))();
|
|
524
|
+
var redemptionListResponseSchema = /* @__PURE__ */ (() => responseListSchema(redemptionSchema))();
|
|
525
|
+
var leaderboardListResponseSchema = /* @__PURE__ */ (() => responseListSchema(
|
|
708
526
|
leaderboardDefinitionSchema
|
|
709
|
-
);
|
|
710
|
-
var collectionResponseShape = collectionViewSchema.extend({
|
|
527
|
+
))();
|
|
528
|
+
var collectionResponseShape = /* @__PURE__ */ (() => collectionViewSchema.extend({
|
|
711
529
|
quests: responseListSchema(questViewSchema)
|
|
712
|
-
});
|
|
713
|
-
var questExperienceResponseSchema = markResponseSchema(
|
|
530
|
+
}))();
|
|
531
|
+
var questExperienceResponseSchema = /* @__PURE__ */ (() => markResponseSchema(
|
|
714
532
|
z4.object({
|
|
715
533
|
member: identifier,
|
|
716
534
|
quests: responseListSchema(questViewSchema),
|
|
@@ -720,15 +538,15 @@ var questExperienceResponseSchema = markResponseSchema(
|
|
|
720
538
|
unsupportedCount: 0
|
|
721
539
|
})
|
|
722
540
|
})
|
|
723
|
-
);
|
|
724
|
-
var memberProgressResponseSchema = markResponseSchema(
|
|
541
|
+
))();
|
|
542
|
+
var memberProgressResponseSchema = /* @__PURE__ */ (() => markResponseSchema(
|
|
725
543
|
z4.object({
|
|
726
544
|
member: identifier,
|
|
727
545
|
quests: responseListSchema(memberProgressSchema.shape.quests.element),
|
|
728
546
|
entitlements: responseListSchema(entitlementSchema)
|
|
729
547
|
})
|
|
730
|
-
);
|
|
731
|
-
var questCatalogResponseSchema = markResponseSchema(
|
|
548
|
+
))();
|
|
549
|
+
var questCatalogResponseSchema = /* @__PURE__ */ (() => markResponseSchema(
|
|
732
550
|
z4.object({
|
|
733
551
|
revision: questCatalogSchema.shape.revision,
|
|
734
552
|
types: responseListSchema(questCatalogSchema.shape.types.element),
|
|
@@ -743,7 +561,15 @@ var questCatalogResponseSchema = markResponseSchema(
|
|
|
743
561
|
}),
|
|
744
562
|
supportedInteractions: responseListSchema(interactionSchema)
|
|
745
563
|
})
|
|
746
|
-
);
|
|
564
|
+
))();
|
|
565
|
+
|
|
566
|
+
// src/schemas.ts
|
|
567
|
+
var dashboardIssue2 = dashboardIssue;
|
|
568
|
+
var normalizeDashboard2 = normalizeDashboard;
|
|
569
|
+
var compatibleSettingKinds2 = compatibleSettingKinds;
|
|
570
|
+
var isBoundSetting2 = isBoundSetting;
|
|
571
|
+
var whereSettings2 = whereSettings;
|
|
572
|
+
var sourceContent2 = sourceContent;
|
|
747
573
|
|
|
748
574
|
export {
|
|
749
575
|
projectCatalogArtifactSchema,
|
|
@@ -789,5 +615,11 @@ export {
|
|
|
789
615
|
leaderboardListResponseSchema,
|
|
790
616
|
questExperienceResponseSchema,
|
|
791
617
|
memberProgressResponseSchema,
|
|
792
|
-
questCatalogResponseSchema
|
|
618
|
+
questCatalogResponseSchema,
|
|
619
|
+
dashboardIssue2 as dashboardIssue,
|
|
620
|
+
normalizeDashboard2 as normalizeDashboard,
|
|
621
|
+
compatibleSettingKinds2 as compatibleSettingKinds,
|
|
622
|
+
isBoundSetting2 as isBoundSetting,
|
|
623
|
+
whereSettings2 as whereSettings,
|
|
624
|
+
sourceContent2 as sourceContent
|
|
793
625
|
};
|