@domino-sdk/relay 1.59.0 → 1.61.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 +45 -0
- package/dist/{accounts-CVonEkdb.d.ts → accounts-DoabriBX.d.ts} +4 -1
- package/dist/{integrations-DrbKQSTD.d.ts → announcements-CHx3-HBw.d.ts} +48 -42
- package/dist/{attempt-captures-DBj-rxak.d.ts → attempt-captures-DYnJVkfg.d.ts} +1 -1
- package/dist/authoring.d.ts +161 -29
- package/dist/authoring.js +116 -36
- package/dist/{automatic-outcomes-FS9okvBP.d.ts → automatic-outcomes-If88LR9f.d.ts} +1 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +19 -10
- package/dist/browser.js +12 -10
- package/dist/{capability-error-DDJl0LY-.d.ts → capability-error-DufwG3G0.d.ts} +21 -1
- package/dist/{chunk-2LKGAL63.js → chunk-24I4R732.js} +39 -2
- package/dist/{chunk-UEMLYPKJ.js → chunk-3Y3L2F54.js} +34 -5
- package/dist/{chunk-YRSU2X2P.js → chunk-5I54XBK2.js} +2 -2
- package/dist/{chunk-KBCTII6C.js → chunk-7A4J67ZL.js} +1 -1
- package/dist/{chunk-LDLOB2UZ.js → chunk-DHXDBAJF.js} +4 -4
- package/dist/{chunk-W42KMMH5.js → chunk-DYXDZFKA.js} +5 -2
- package/dist/{chunk-TZJT5CRF.js → chunk-EN3M5Z4J.js} +1 -1
- package/dist/{chunk-IBROKMFV.js → chunk-L77O64I4.js} +1 -1
- package/dist/{chunk-EQF4ID47.js → chunk-PPB7HALD.js} +12 -2
- package/dist/{chunk-KYUQEZZA.js → chunk-QEAS4ZGS.js} +1 -1
- package/dist/{chunk-6U5WWH3W.js → chunk-QNUHWK7R.js} +9 -4
- package/dist/{chunk-YMWRLAAP.js → chunk-RHBS5FJL.js} +8 -2
- package/dist/chunk-SE4PFJPT.js +247 -0
- package/dist/{chunk-577DG2IT.js → chunk-SKGTNTLF.js} +12 -12
- package/dist/{chunk-M2JQPDUX.js → chunk-VURRFVNP.js} +9 -9
- package/dist/{chunk-R4S6BFOH.js → chunk-XBV2CK2H.js} +1 -1
- package/dist/{chunk-AWWCEP7F.js → chunk-ZDJLPN4L.js} +815 -592
- package/dist/{client-3b9HjSzZ.d.ts → client-C51w7fMb.d.ts} +12 -7
- package/dist/{deployments-BydFVj4Q.d.ts → deployments-kWoHFaqj.d.ts} +786 -2
- package/dist/{groups-CFuTfFqG.d.ts → groups-CqcA2Ycs.d.ts} +4 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/{analytics-URV-mxjH.d.ts → integrations-B3y36OaB.d.ts} +55 -1
- package/dist/internal.d.ts +11 -11
- package/dist/internal.js +8 -8
- package/dist/{offers-DAfe1O3_.d.ts → offers-BoV4ryUc.d.ts} +3 -2
- package/dist/{pages-ChDVLrgR.d.ts → pages-K7-KjSXw.d.ts} +147 -2
- package/dist/{participant-activity-iciCEs_8.d.ts → participant-activity-DHL8QYks.d.ts} +4 -0
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +20 -15
- package/dist/react/index.js +143 -14
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/5QVFB4TU.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/{schema-BA0nRRlt.d.ts → schema-CZ6Rj0ZF.d.ts} +142 -2
- package/dist/schema.d.ts +113 -18
- package/dist/schema.js +37 -21
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +346 -41
- package/dist/{submission-input-DxQ6RnKo.d.ts → submission-input-C54Q8yAD.d.ts} +2 -2
- package/dist/{telegram-browser-o3OIxGrJ.d.ts → telegram-browser-BUceZIGZ.d.ts} +7 -4
- package/dist/testing.d.ts +7 -7
- package/dist/testing.js +8 -8
- package/dist/{transport-D_Eqf78J.d.ts → transport-BrX9pIGN.d.ts} +5374 -62
- package/dist/{wallet-B06zvDXp.d.ts → wallet-CIqFoxdm.d.ts} +8 -1
- package/dist/{x-C28SNifw.d.ts → x-D1PGi8Sq.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-XGXDINGM.js +0 -357
- package/dist/runtime/chunks/BG43KQ2T.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
identifier
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZDJLPN4L.js";
|
|
4
4
|
|
|
5
5
|
// src/auth.ts
|
|
6
6
|
import * as z from "zod";
|
|
@@ -52,7 +52,17 @@ var memberSummarySchema = z.object({
|
|
|
52
52
|
* only for activity are left out. Empty when there are none. Absent from a Relay older than
|
|
53
53
|
* this field.
|
|
54
54
|
*/
|
|
55
|
-
emails: z.array(z.string().min(1)).optional()
|
|
55
|
+
emails: z.array(z.string().min(1)).optional(),
|
|
56
|
+
/**
|
|
57
|
+
* The member's clock, which Relay judges their activity on. `now` is their current time in epoch
|
|
58
|
+
* milliseconds and `offsetMs` how far it runs ahead of real time: a test member's clock moves
|
|
59
|
+
* when the staging toolbar or `domino test-members advance` moves it, and every other member's
|
|
60
|
+
* offset is 0. `memberTime()` keeps it ticking. Absent from a Relay older than this field.
|
|
61
|
+
*/
|
|
62
|
+
clock: z.object({
|
|
63
|
+
now: z.number().int().nonnegative(),
|
|
64
|
+
offsetMs: z.number().int()
|
|
65
|
+
}).optional()
|
|
56
66
|
});
|
|
57
67
|
var exchangeSchema = authScopeSchema.extend({
|
|
58
68
|
identity: z.object({ issuer: identifier, subject: z.string().min(1).max(200) }).strict(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badgeSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3Y3L2F54.js";
|
|
4
4
|
import {
|
|
5
5
|
pointLedgerReferenceSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SE4PFJPT.js";
|
|
7
7
|
import {
|
|
8
8
|
authoringIdentityShape,
|
|
9
9
|
entitlementSchema,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
storedQuestDescriptionSchema,
|
|
26
26
|
storedReviewModeSchema,
|
|
27
27
|
tieredRewardReferenceSchema
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZDJLPN4L.js";
|
|
29
29
|
|
|
30
30
|
// src/participant-activity.ts
|
|
31
31
|
import * as z from "zod";
|
|
@@ -458,7 +458,12 @@ var participantDeliveriesSchema = z6.object({
|
|
|
458
458
|
import * as z7 from "zod";
|
|
459
459
|
var RewardDeliveryAction = {
|
|
460
460
|
/** Delivers a quest's Discord role reward. */
|
|
461
|
-
GrantRole: "grant-role"
|
|
461
|
+
GrantRole: "grant-role",
|
|
462
|
+
/**
|
|
463
|
+
* Posts a quest's announcement in a Telegram chat or Discord channel. Its `provider` is
|
|
464
|
+
* `telegram` or `discord`, and its `roleId` is empty.
|
|
465
|
+
*/
|
|
466
|
+
PostMessage: "post-message"
|
|
462
467
|
};
|
|
463
468
|
var rewardDeliveryActionSchema = z7.string().min(1).max(64);
|
|
464
469
|
var roleReconciliationSchema = z7.object({
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isKnownTrackerSource,
|
|
6
6
|
trackerDataSchema,
|
|
7
7
|
xAccountRoles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZDJLPN4L.js";
|
|
9
9
|
|
|
10
10
|
// src/quest-shape.ts
|
|
11
11
|
function validateQuestShape(description, options = {}) {
|
|
@@ -15,13 +15,19 @@ function validateQuestShape(description, options = {}) {
|
|
|
15
15
|
requires,
|
|
16
16
|
performance,
|
|
17
17
|
retryCooldownMs,
|
|
18
|
-
completionCooldownMs
|
|
18
|
+
completionCooldownMs,
|
|
19
|
+
authorBudgets = []
|
|
19
20
|
} = description;
|
|
20
21
|
const tracker = trigger.kind === "automatic" ? trigger.tracker : void 0;
|
|
21
22
|
const content = tracker?.content === true;
|
|
22
23
|
if (performance && !content) {
|
|
23
24
|
throw new Error("Performance requires a content quest");
|
|
24
25
|
}
|
|
26
|
+
if (!tracker && authorBudgets.length) {
|
|
27
|
+
throw new Error(
|
|
28
|
+
'A budget with scope "author" counts per tracker record author: use it only on a quest with a tracker trigger'
|
|
29
|
+
);
|
|
30
|
+
}
|
|
25
31
|
if (content) {
|
|
26
32
|
if (completion.kind !== "keyed") {
|
|
27
33
|
throw new Error("Content quests complete once per content item");
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import {
|
|
2
|
+
identifier,
|
|
3
|
+
pageCursorSchema
|
|
4
|
+
} from "./chunk-ZDJLPN4L.js";
|
|
5
|
+
|
|
6
|
+
// src/point-ledgers.ts
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
var pointLedgerPropertiesSchema = z.object({
|
|
9
|
+
name: z.string().trim().min(1).max(120),
|
|
10
|
+
description: z.string().trim().max(1e3).default("")
|
|
11
|
+
}).strict();
|
|
12
|
+
var createPointLedgerSchema = pointLedgerPropertiesSchema.extend({ actionId: identifier, key: identifier.optional() }).strict();
|
|
13
|
+
var pointLedgerSchema = pointLedgerPropertiesSchema.extend({
|
|
14
|
+
id: identifier
|
|
15
|
+
});
|
|
16
|
+
var managedPointLedgerSchema = pointLedgerSchema.extend({
|
|
17
|
+
archivedAt: z.number().int().nonnegative().nullable()
|
|
18
|
+
});
|
|
19
|
+
var pointLedgerDeclarationSchema = pointLedgerPropertiesSchema.extend({ key: identifier }).strict();
|
|
20
|
+
var pointLedgerArtifactSchema = z.union([
|
|
21
|
+
pointLedgerDeclarationSchema,
|
|
22
|
+
z.object({ code: z.string().min(1).max(2e6) }).strict()
|
|
23
|
+
]);
|
|
24
|
+
var pointLedgerReferenceSchema = z.object({
|
|
25
|
+
id: identifier,
|
|
26
|
+
key: identifier.nullable(),
|
|
27
|
+
name: z.string()
|
|
28
|
+
});
|
|
29
|
+
var points = z.number().int().safe();
|
|
30
|
+
var pointBalanceSchema = z.object({
|
|
31
|
+
ledger: pointLedgerReferenceSchema,
|
|
32
|
+
balance: points,
|
|
33
|
+
available: points
|
|
34
|
+
});
|
|
35
|
+
var pointBalancesSchema = z.object({
|
|
36
|
+
items: z.array(pointBalanceSchema)
|
|
37
|
+
});
|
|
38
|
+
var PointEntryKind = {
|
|
39
|
+
/** Points a quest completion, an engagement settlement or an operator awarded. */
|
|
40
|
+
Award: "award",
|
|
41
|
+
/** Points the member spent. */
|
|
42
|
+
Spend: "spend",
|
|
43
|
+
/** A correction in either direction, by an operator or a referral payout. */
|
|
44
|
+
Adjust: "adjust",
|
|
45
|
+
/** Undoes part or all of an award or a positive adjustment (`reverses`). */
|
|
46
|
+
Reverse: "reverse"
|
|
47
|
+
};
|
|
48
|
+
var pointEntryKindSchema = z.string().min(1).max(64);
|
|
49
|
+
var pointEntrySchema = z.object({
|
|
50
|
+
id: identifier,
|
|
51
|
+
amount: points,
|
|
52
|
+
kind: pointEntryKindSchema,
|
|
53
|
+
/** When the entry took effect, in epoch milliseconds. A reversal keeps its source's. */
|
|
54
|
+
at: points.nonnegative(),
|
|
55
|
+
quest: identifier.nullable(),
|
|
56
|
+
reverses: identifier.nullable(),
|
|
57
|
+
/**
|
|
58
|
+
* True for an opening balance a member import recorded (an `adjust`). Absent from Relay
|
|
59
|
+
* versions without imports.
|
|
60
|
+
*/
|
|
61
|
+
imported: z.boolean().optional()
|
|
62
|
+
});
|
|
63
|
+
var pointHistoryQuerySchema = z.strictObject({
|
|
64
|
+
ledger: identifier,
|
|
65
|
+
cursor: pageCursorSchema.optional()
|
|
66
|
+
});
|
|
67
|
+
var pointHistoryPageSchema = z.object({
|
|
68
|
+
items: z.array(pointEntrySchema),
|
|
69
|
+
nextCursor: pageCursorSchema.nullable()
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// src/profiles.ts
|
|
73
|
+
import * as z2 from "zod";
|
|
74
|
+
var count = z2.number().int().nonnegative().safe();
|
|
75
|
+
var profileVisibilitySchema = z2.enum([
|
|
76
|
+
"private",
|
|
77
|
+
"participants",
|
|
78
|
+
"public"
|
|
79
|
+
]);
|
|
80
|
+
var avatarProviderSchema = z2.enum(["x", "discord", "google"]);
|
|
81
|
+
var profileDefaultProviderSchema = z2.enum(["x", "discord"]);
|
|
82
|
+
var profileDefaultsSchema = z2.array(profileDefaultProviderSchema).max(profileDefaultProviderSchema.options.length).refine(
|
|
83
|
+
(providers) => new Set(providers).size === providers.length,
|
|
84
|
+
"List each provider once"
|
|
85
|
+
);
|
|
86
|
+
var avatarSeedSchema = z2.string().min(1).max(100);
|
|
87
|
+
var profileAvatarSchema = z2.discriminatedUnion("source", [
|
|
88
|
+
z2.object({
|
|
89
|
+
source: z2.literal("upload"),
|
|
90
|
+
url: z2.string().url(),
|
|
91
|
+
seed: avatarSeedSchema
|
|
92
|
+
}),
|
|
93
|
+
z2.object({
|
|
94
|
+
source: z2.literal("account"),
|
|
95
|
+
provider: avatarProviderSchema,
|
|
96
|
+
url: z2.string().url(),
|
|
97
|
+
seed: avatarSeedSchema
|
|
98
|
+
}),
|
|
99
|
+
z2.object({ source: z2.literal("generated"), seed: avatarSeedSchema })
|
|
100
|
+
]);
|
|
101
|
+
var profileSummarySchema = z2.object({
|
|
102
|
+
id: identifier,
|
|
103
|
+
name: z2.string(),
|
|
104
|
+
avatar: profileAvatarSchema
|
|
105
|
+
});
|
|
106
|
+
var invisible = /[\p{Cc}----]/u;
|
|
107
|
+
var displayNameSchema = z2.string().max(200).transform((value) => value.normalize("NFC").replace(/\s+/g, " ").trim()).pipe(
|
|
108
|
+
z2.string().min(1, "Enter a name").max(40, "Use at most 40 characters").refine((value) => !invisible.test(value), "Use visible characters only")
|
|
109
|
+
);
|
|
110
|
+
var profileUpdateSchema = z2.object({
|
|
111
|
+
displayName: displayNameSchema.nullable().optional(),
|
|
112
|
+
avatar: z2.discriminatedUnion("source", [
|
|
113
|
+
z2.object({
|
|
114
|
+
source: z2.literal("account"),
|
|
115
|
+
provider: avatarProviderSchema
|
|
116
|
+
}).strict(),
|
|
117
|
+
z2.object({ source: z2.literal("generated") }).strict()
|
|
118
|
+
]).nullable().optional(),
|
|
119
|
+
hidden: z2.boolean().optional()
|
|
120
|
+
}).strict().refine(
|
|
121
|
+
(value) => Object.values(value).some((field) => field !== void 0),
|
|
122
|
+
"Change at least one field"
|
|
123
|
+
);
|
|
124
|
+
var ownProfileSchema = profileSummarySchema.extend({
|
|
125
|
+
/** The name the member chose, or null for the default. */
|
|
126
|
+
displayName: z2.string().nullable(),
|
|
127
|
+
/** The avatar the member chose: `default` follows the project's defaults. */
|
|
128
|
+
avatarChoice: z2.enum(["default", "upload", "account", "generated"]),
|
|
129
|
+
/** The account of an `account` choice. */
|
|
130
|
+
avatarProvider: avatarProviderSchema.nullable(),
|
|
131
|
+
hidden: z2.boolean(),
|
|
132
|
+
/** An operator locked the name and avatar; the member can still hide the profile. */
|
|
133
|
+
locked: z2.boolean(),
|
|
134
|
+
/** Who can see profiles in this project, so the app can explain it. */
|
|
135
|
+
visibility: profileVisibilitySchema,
|
|
136
|
+
/** The member's connected accounts a picture or name can come from. */
|
|
137
|
+
options: z2.array(
|
|
138
|
+
z2.object({
|
|
139
|
+
provider: avatarProviderSchema,
|
|
140
|
+
name: z2.string().nullable(),
|
|
141
|
+
/**
|
|
142
|
+
* The account's first name, where the provider sends one (Google does; X and Discord don't).
|
|
143
|
+
* Only the member's own profile carries it.
|
|
144
|
+
*/
|
|
145
|
+
givenName: z2.string().nullable().default(null),
|
|
146
|
+
imageUrl: z2.string().url().nullable()
|
|
147
|
+
})
|
|
148
|
+
)
|
|
149
|
+
});
|
|
150
|
+
var cursor = z2.string().min(1).max(512);
|
|
151
|
+
var profileCompletionQuerySchema = z2.object({
|
|
152
|
+
limit: z2.coerce.number().int().min(1).max(100).default(20),
|
|
153
|
+
cursor: cursor.optional()
|
|
154
|
+
}).strict();
|
|
155
|
+
var profileCompletionSchema = z2.object({
|
|
156
|
+
quest: identifier,
|
|
157
|
+
key: identifier.optional(),
|
|
158
|
+
title: z2.string(),
|
|
159
|
+
completions: count.positive(),
|
|
160
|
+
/** Null for completions recorded before completion times were. */
|
|
161
|
+
lastCompletedAt: count.nullable()
|
|
162
|
+
});
|
|
163
|
+
var profileCompletionPageSchema = z2.object({
|
|
164
|
+
items: z2.array(profileCompletionSchema),
|
|
165
|
+
nextCursor: cursor.nullable()
|
|
166
|
+
});
|
|
167
|
+
var profileReferralSchema = z2.object({
|
|
168
|
+
program: identifier,
|
|
169
|
+
key: identifier.optional(),
|
|
170
|
+
title: z2.string(),
|
|
171
|
+
/** Members this member invited. Invitations are shared by every program. */
|
|
172
|
+
invited: count,
|
|
173
|
+
/** Invited members who qualified in this program. */
|
|
174
|
+
qualified: count,
|
|
175
|
+
milestones: z2.array(
|
|
176
|
+
z2.object({ id: identifier, count, reached: z2.boolean() })
|
|
177
|
+
)
|
|
178
|
+
});
|
|
179
|
+
var profileSettingsSchema = z2.object({
|
|
180
|
+
visibility: profileVisibilitySchema,
|
|
181
|
+
defaults: profileDefaultsSchema,
|
|
182
|
+
revision: count,
|
|
183
|
+
actor: z2.string().nullable(),
|
|
184
|
+
updatedAt: count.nullable()
|
|
185
|
+
});
|
|
186
|
+
var profileSettingsInputSchema = profileSettingsSchema.omit({ revision: true, actor: true, updatedAt: true }).extend({
|
|
187
|
+
actionId: identifier,
|
|
188
|
+
/** The revision the change was made against; a newer one is a 409. */
|
|
189
|
+
expectedRevision: count,
|
|
190
|
+
reason: z2.string().trim().min(1).max(500)
|
|
191
|
+
}).strict();
|
|
192
|
+
var profileModerationSchema = z2.object({
|
|
193
|
+
actionId: identifier,
|
|
194
|
+
resetName: z2.boolean().default(false),
|
|
195
|
+
removeAvatar: z2.boolean().default(false),
|
|
196
|
+
/** True locks the name and avatar, false unlocks them. */
|
|
197
|
+
lock: z2.boolean().optional(),
|
|
198
|
+
reason: z2.string().trim().min(1).max(1e3)
|
|
199
|
+
}).strict().refine(
|
|
200
|
+
(value) => value.resetName || value.removeAvatar || value.lock !== void 0,
|
|
201
|
+
"Choose an action"
|
|
202
|
+
);
|
|
203
|
+
var managedProfileSchema = ownProfileSchema.omit({ options: true }).extend({
|
|
204
|
+
member: identifier,
|
|
205
|
+
lockedAt: count.nullable(),
|
|
206
|
+
lockedBy: z2.string().nullable(),
|
|
207
|
+
lockedReason: z2.string().nullable(),
|
|
208
|
+
updatedAt: count
|
|
209
|
+
});
|
|
210
|
+
var AVATAR_UPLOAD_LIMIT = 5 * 1024 * 1024;
|
|
211
|
+
var avatarUploadTypes = ["image/jpeg", "image/png", "image/webp"];
|
|
212
|
+
|
|
213
|
+
export {
|
|
214
|
+
pointLedgerPropertiesSchema,
|
|
215
|
+
createPointLedgerSchema,
|
|
216
|
+
pointLedgerSchema,
|
|
217
|
+
managedPointLedgerSchema,
|
|
218
|
+
pointLedgerDeclarationSchema,
|
|
219
|
+
pointLedgerArtifactSchema,
|
|
220
|
+
pointLedgerReferenceSchema,
|
|
221
|
+
pointBalanceSchema,
|
|
222
|
+
pointBalancesSchema,
|
|
223
|
+
PointEntryKind,
|
|
224
|
+
pointEntrySchema,
|
|
225
|
+
pointHistoryQuerySchema,
|
|
226
|
+
pointHistoryPageSchema,
|
|
227
|
+
profileVisibilitySchema,
|
|
228
|
+
avatarProviderSchema,
|
|
229
|
+
profileDefaultProviderSchema,
|
|
230
|
+
profileDefaultsSchema,
|
|
231
|
+
avatarSeedSchema,
|
|
232
|
+
profileAvatarSchema,
|
|
233
|
+
profileSummarySchema,
|
|
234
|
+
displayNameSchema,
|
|
235
|
+
profileUpdateSchema,
|
|
236
|
+
ownProfileSchema,
|
|
237
|
+
profileCompletionQuerySchema,
|
|
238
|
+
profileCompletionSchema,
|
|
239
|
+
profileCompletionPageSchema,
|
|
240
|
+
profileReferralSchema,
|
|
241
|
+
profileSettingsSchema,
|
|
242
|
+
profileSettingsInputSchema,
|
|
243
|
+
profileModerationSchema,
|
|
244
|
+
managedProfileSchema,
|
|
245
|
+
AVATAR_UPLOAD_LIMIT,
|
|
246
|
+
avatarUploadTypes
|
|
247
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayAction,
|
|
3
3
|
withActionId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QEAS4ZGS.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionPassSchema,
|
|
7
7
|
creatorAccountProviderSchema,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
questOutcomeSchema,
|
|
20
20
|
rewardDeliveriesSchema,
|
|
21
21
|
rewardDeliveryQuerySchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QNUHWK7R.js";
|
|
23
23
|
import {
|
|
24
24
|
badgeSchema,
|
|
25
25
|
engagementBoundaryPageSchema,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
referralDefinitionSchema,
|
|
39
39
|
referralHistorySchema,
|
|
40
40
|
referralSummarySchema
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3Y3L2F54.js";
|
|
42
42
|
import {
|
|
43
43
|
AVATAR_UPLOAD_LIMIT,
|
|
44
44
|
avatarUploadTypes,
|
|
@@ -51,28 +51,25 @@ import {
|
|
|
51
51
|
profileCompletionQuerySchema,
|
|
52
52
|
profileReferralSchema,
|
|
53
53
|
profileSummarySchema,
|
|
54
|
-
profileUpdateSchema
|
|
55
|
-
|
|
56
|
-
telegramMiniAppSignInSchema,
|
|
57
|
-
telegramSignInMethodsSchema
|
|
58
|
-
} from "./chunk-XGXDINGM.js";
|
|
54
|
+
profileUpdateSchema
|
|
55
|
+
} from "./chunk-SE4PFJPT.js";
|
|
59
56
|
import {
|
|
60
57
|
PARTICIPANT_TIMEOUT,
|
|
61
58
|
lifetime,
|
|
62
59
|
retryAfter,
|
|
63
60
|
retrying,
|
|
64
61
|
validTimeout
|
|
65
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-XBV2CK2H.js";
|
|
66
63
|
import {
|
|
67
64
|
clientIdentity
|
|
68
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-EN3M5Z4J.js";
|
|
69
66
|
import {
|
|
70
67
|
exchangeResultSchema,
|
|
71
68
|
exchangeSchema,
|
|
72
69
|
memberSummarySchema,
|
|
73
70
|
participantSessionSchema,
|
|
74
71
|
sessionMember
|
|
75
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-PPB7HALD.js";
|
|
76
73
|
import {
|
|
77
74
|
RelayError,
|
|
78
75
|
RelayErrorCode,
|
|
@@ -102,6 +99,9 @@ import {
|
|
|
102
99
|
quizEvidenceSchema,
|
|
103
100
|
submissionEvidenceSchema,
|
|
104
101
|
submitSchema,
|
|
102
|
+
telegramAccountConnectionSchema,
|
|
103
|
+
telegramMiniAppSignInSchema,
|
|
104
|
+
telegramSignInMethodsSchema,
|
|
105
105
|
tieredRewardReferenceSchema,
|
|
106
106
|
validateSubmissionValue,
|
|
107
107
|
valueEvidenceSchema,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
walletSignInNetworksSchema,
|
|
112
112
|
walletSignatureSchema,
|
|
113
113
|
walletUnlinkInputSchema
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-ZDJLPN4L.js";
|
|
115
115
|
|
|
116
116
|
// src/legacy-submissions.ts
|
|
117
117
|
import * as z from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dashboardArtifactSchema,
|
|
3
3
|
dashboardPreviewSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DYXDZFKA.js";
|
|
5
5
|
import {
|
|
6
6
|
imageAssetArtifactSchema,
|
|
7
7
|
imageComparisonSchema,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
imageSightingsSchema,
|
|
11
11
|
imageUploadsSchema,
|
|
12
12
|
publishedImageSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L77O64I4.js";
|
|
14
14
|
import {
|
|
15
15
|
catalogDeploymentSchema,
|
|
16
16
|
collectionPassSchema,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
questTypeVersionSchema,
|
|
30
30
|
questViewSchema,
|
|
31
31
|
rewardDeliveriesSchema
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QNUHWK7R.js";
|
|
33
33
|
import {
|
|
34
34
|
badgeArtifactSchema,
|
|
35
35
|
badgeSchema,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
referralDefinitionSchema,
|
|
55
55
|
referralHistorySchema,
|
|
56
56
|
referralSummarySchema
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-3Y3L2F54.js";
|
|
58
58
|
import {
|
|
59
59
|
ownProfileSchema,
|
|
60
60
|
pointBalancesSchema,
|
|
@@ -64,14 +64,13 @@ import {
|
|
|
64
64
|
pointLedgerSchema,
|
|
65
65
|
profileCompletionPageSchema,
|
|
66
66
|
profileReferralSchema,
|
|
67
|
-
profileSummarySchema
|
|
68
|
-
|
|
69
|
-
} from "./chunk-XGXDINGM.js";
|
|
67
|
+
profileSummarySchema
|
|
68
|
+
} from "./chunk-SE4PFJPT.js";
|
|
70
69
|
import {
|
|
71
70
|
exchangeResultSchema,
|
|
72
71
|
memberSummarySchema,
|
|
73
72
|
participantSessionSchema
|
|
74
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PPB7HALD.js";
|
|
75
74
|
import {
|
|
76
75
|
accountConnectionSchema,
|
|
77
76
|
attemptSchema,
|
|
@@ -98,6 +97,7 @@ import {
|
|
|
98
97
|
responseSchema,
|
|
99
98
|
rewardSchema,
|
|
100
99
|
sdkRuntimeSchema,
|
|
100
|
+
telegramAccountConnectionSchema,
|
|
101
101
|
tieredRewardReferenceSchema,
|
|
102
102
|
timeZoneNameSchema,
|
|
103
103
|
trackerArtifactSchema,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
walletNftsSchema,
|
|
110
110
|
walletSignInNetworksSchema,
|
|
111
111
|
walletTransactionsSchema
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-ZDJLPN4L.js";
|
|
113
113
|
|
|
114
114
|
// src/deployments.ts
|
|
115
115
|
import * as z from "zod";
|