@domino-sdk/relay 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring.d.ts +8 -4
- package/dist/authoring.js +7 -3
- package/dist/browser.d.ts +245 -21
- package/dist/browser.js +4 -4
- package/dist/chunk-3UOTI4IU.js +904 -0
- package/dist/{chunk-Q5VDZVVO.js → chunk-CE5XVIJQ.js} +1 -1
- package/dist/{chunk-Y6H4HDQT.js → chunk-ONDPW77O.js} +15 -3
- package/dist/{chunk-MVDE7WKB.js → chunk-VDWQL6HV.js} +1 -1
- package/dist/index.d.ts +463 -35
- package/dist/index.js +12 -4
- package/dist/portal-proxy.d.ts +8 -4
- package/dist/portal-proxy.js +4 -3
- package/dist/schema.d.ts +71 -8
- package/dist/schema.js +1 -1
- package/dist/{settings-BA8XjT4m.d.ts → settings-B61jIDDA.d.ts} +49 -4
- package/package.json +1 -1
- package/dist/chunk-XTFCKK2Y.js +0 -863
package/dist/chunk-XTFCKK2Y.js
DELETED
|
@@ -1,863 +0,0 @@
|
|
|
1
|
-
// src/identifier.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var identifier = z.string().min(1).max(100).regex(/^[a-zA-Z0-9_-]+$/);
|
|
4
|
-
|
|
5
|
-
// src/observations.ts
|
|
6
|
-
import { z as z2 } from "zod";
|
|
7
|
-
var name = z2.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$/);
|
|
8
|
-
var observationInputSchema = z2.object({
|
|
9
|
-
id: name,
|
|
10
|
-
source: name,
|
|
11
|
-
type: name,
|
|
12
|
-
member: identifier,
|
|
13
|
-
actor: z2.object({ provider: identifier, subject: z2.string().min(1).max(200) }).strict().optional(),
|
|
14
|
-
occurredAt: z2.number().int().nonnegative().max(864e13),
|
|
15
|
-
data: z2.record(z2.string(), z2.json())
|
|
16
|
-
}).strict().refine(
|
|
17
|
-
(value) => JSON.stringify(value.data).length <= 32768,
|
|
18
|
-
"Observation data exceeds 32 KB"
|
|
19
|
-
);
|
|
20
|
-
var observationSchema = observationInputSchema.safeExtend({
|
|
21
|
-
receivedAt: z2.number().int().nonnegative()
|
|
22
|
-
});
|
|
23
|
-
var observationTriggerSchema = z2.object({ source: name, type: name }).strict();
|
|
24
|
-
var completionPolicySchema = z2.discriminatedUnion("kind", [
|
|
25
|
-
z2.object({ kind: z2.literal("once") }).strict(),
|
|
26
|
-
z2.object({ kind: z2.literal("keyed") }).strict()
|
|
27
|
-
]);
|
|
28
|
-
var completionKeySchema = z2.string().min(1).max(500);
|
|
29
|
-
var budgetSchema = z2.object({
|
|
30
|
-
id: name,
|
|
31
|
-
scope: z2.enum(["member", "project"]),
|
|
32
|
-
period: z2.enum(["lifetime", "day"]),
|
|
33
|
-
limit: z2.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
34
|
-
cost: z2.union([
|
|
35
|
-
z2.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
36
|
-
z2.object({ balance: name }).strict()
|
|
37
|
-
])
|
|
38
|
-
}).strict();
|
|
39
|
-
var observationReceiptSchema = z2.object({
|
|
40
|
-
id: name,
|
|
41
|
-
source: name,
|
|
42
|
-
attempts: z2.array(z2.string()),
|
|
43
|
-
receivedAt: z2.number()
|
|
44
|
-
});
|
|
45
|
-
var discordReactionSchema = z2.object({
|
|
46
|
-
guildId: z2.string(),
|
|
47
|
-
channelId: z2.string(),
|
|
48
|
-
messageId: z2.string(),
|
|
49
|
-
userId: z2.string(),
|
|
50
|
-
messageAuthorId: z2.string().nullable().default(null),
|
|
51
|
-
actorRoles: z2.array(z2.string()).default([]),
|
|
52
|
-
emoji: z2.object({ id: z2.string().nullable(), name: z2.string() }),
|
|
53
|
-
messagePublishedAt: z2.number()
|
|
54
|
-
}).strict();
|
|
55
|
-
var discordMessageSchema = z2.object({
|
|
56
|
-
guildId: z2.string(),
|
|
57
|
-
channelId: z2.string(),
|
|
58
|
-
messageId: z2.string(),
|
|
59
|
-
userId: z2.string(),
|
|
60
|
-
content: z2.string().nullable(),
|
|
61
|
-
replyTo: z2.string().nullable(),
|
|
62
|
-
publishedAt: z2.number()
|
|
63
|
-
}).strict();
|
|
64
|
-
|
|
65
|
-
// src/integrations.ts
|
|
66
|
-
import { z as z3 } from "zod";
|
|
67
|
-
var integrationProviderSchema = z3.enum(["discord"]);
|
|
68
|
-
var discordServerSchema = z3.object({
|
|
69
|
-
id: z3.string().regex(/^[0-9]{1,20}$/),
|
|
70
|
-
name: z3.string().min(1),
|
|
71
|
-
icon: z3.string().nullable()
|
|
72
|
-
});
|
|
73
|
-
var projectIntegrationSchema = z3.object({
|
|
74
|
-
provider: integrationProviderSchema,
|
|
75
|
-
configured: z3.boolean(),
|
|
76
|
-
status: z3.enum(["disconnected", "ready", "attention"]),
|
|
77
|
-
revision: z3.number().int().nonnegative(),
|
|
78
|
-
server: discordServerSchema.nullable(),
|
|
79
|
-
issue: z3.string().nullable(),
|
|
80
|
-
connectedAt: z3.number().default(0)
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
// src/accounts.ts
|
|
84
|
-
import { z as z4 } from "zod";
|
|
85
|
-
var authProviderSchema = z4.enum(["google", "apple", "x", "discord"]);
|
|
86
|
-
var accountConnectionSchema = z4.object({
|
|
87
|
-
provider: authProviderSchema,
|
|
88
|
-
configured: z4.boolean(),
|
|
89
|
-
status: z4.enum(["disconnected", "connected", "reconnect"]),
|
|
90
|
-
subject: z4.string().nullable(),
|
|
91
|
-
revision: z4.number().int().nonnegative()
|
|
92
|
-
});
|
|
93
|
-
var discordMemberInputSchema = z4.object({}).strict();
|
|
94
|
-
var discordMessageInputSchema = z4.object({
|
|
95
|
-
channelId: z4.string().regex(/^[0-9]{1,20}$/),
|
|
96
|
-
messageId: z4.string().regex(/^[0-9]{1,20}$/)
|
|
97
|
-
}).strict();
|
|
98
|
-
var discordMemberSchema = z4.object({
|
|
99
|
-
userId: z4.string().regex(/^[0-9]{1,20}$/).nullable().default(null),
|
|
100
|
-
nickname: z4.string().nullable().default(null),
|
|
101
|
-
displayName: z4.string().nullable().default(null),
|
|
102
|
-
boostingSince: z4.string().datetime({ offset: true }).nullable().default(null),
|
|
103
|
-
roles: z4.array(z4.string().regex(/^[0-9]{1,20}$/)),
|
|
104
|
-
joinedAt: z4.string().datetime({ offset: true }).nullable(),
|
|
105
|
-
pending: z4.boolean()
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
// src/quiz.ts
|
|
109
|
-
import { z as z5 } from "zod";
|
|
110
|
-
var quizId = z5.string().regex(/^[a-zA-Z0-9_-]+$/).max(100);
|
|
111
|
-
var quizChoiceSchema = z5.object({ id: quizId, label: z5.string().trim().min(1).max(500) }).strict();
|
|
112
|
-
var quizQuestionSchema = z5.object({
|
|
113
|
-
id: quizId,
|
|
114
|
-
prompt: z5.string().trim().min(1).max(1e3),
|
|
115
|
-
choices: z5.array(quizChoiceSchema).min(2).max(8).refine(
|
|
116
|
-
(choices) => new Set(choices.map((choice) => choice.id)).size === choices.length,
|
|
117
|
-
"Choice IDs must be unique"
|
|
118
|
-
)
|
|
119
|
-
}).strict();
|
|
120
|
-
var quizQuestionsSchema = z5.array(quizQuestionSchema).min(1).max(20).refine(
|
|
121
|
-
(questions) => new Set(questions.map((question) => question.id)).size === questions.length,
|
|
122
|
-
"Question IDs must be unique"
|
|
123
|
-
);
|
|
124
|
-
var quizContentSchema = z5.array(
|
|
125
|
-
quizQuestionSchema.extend({ correct: quizId }).refine(
|
|
126
|
-
(question) => question.choices.some((choice) => choice.id === question.correct),
|
|
127
|
-
"Choose a correct answer from the available choices"
|
|
128
|
-
)
|
|
129
|
-
).min(1).max(20).refine(
|
|
130
|
-
(questions) => new Set(questions.map((question) => question.id)).size === questions.length,
|
|
131
|
-
"Question IDs must be unique"
|
|
132
|
-
);
|
|
133
|
-
|
|
134
|
-
// src/schema.ts
|
|
135
|
-
import { z as z8 } from "zod";
|
|
136
|
-
|
|
137
|
-
// src/settings.ts
|
|
138
|
-
import { z as z7 } from "zod";
|
|
139
|
-
|
|
140
|
-
// src/resources.ts
|
|
141
|
-
import { z as z6 } from "zod";
|
|
142
|
-
var channelSourceSchema = z6.object({
|
|
143
|
-
provider: z6.literal("discord"),
|
|
144
|
-
resource: z6.literal("channel"),
|
|
145
|
-
types: z6.array(z6.enum(["text", "announcement"])).min(1)
|
|
146
|
-
}).strict();
|
|
147
|
-
var resourceSourceSchema = z6.union([
|
|
148
|
-
z6.object({
|
|
149
|
-
provider: z6.literal("domino"),
|
|
150
|
-
resource: z6.literal("point-ledger")
|
|
151
|
-
}).strict(),
|
|
152
|
-
channelSourceSchema,
|
|
153
|
-
z6.object({
|
|
154
|
-
provider: z6.literal("discord"),
|
|
155
|
-
resource: z6.literal("role"),
|
|
156
|
-
assignable: z6.boolean().default(false)
|
|
157
|
-
}).strict()
|
|
158
|
-
]);
|
|
159
|
-
var resourceRequestSchema = z6.object({
|
|
160
|
-
source: resourceSourceSchema,
|
|
161
|
-
query: z6.string().max(100).optional(),
|
|
162
|
-
cursor: z6.string().regex(/^\d{1,6}$/).optional(),
|
|
163
|
-
ids: z6.array(z6.string().min(1).max(100)).max(50).optional()
|
|
164
|
-
}).strict();
|
|
165
|
-
var resourceOptionsSchema = z6.object({
|
|
166
|
-
revision: z6.number().int(),
|
|
167
|
-
options: z6.array(
|
|
168
|
-
z6.object({
|
|
169
|
-
id: z6.string(),
|
|
170
|
-
label: z6.string(),
|
|
171
|
-
description: z6.string().optional(),
|
|
172
|
-
group: z6.string().optional(),
|
|
173
|
-
disabledReason: z6.string().optional()
|
|
174
|
-
})
|
|
175
|
-
),
|
|
176
|
-
cursor: z6.string().nullable()
|
|
177
|
-
});
|
|
178
|
-
var discord = {
|
|
179
|
-
roles(options = {}) {
|
|
180
|
-
return resourceSourceSchema.parse({
|
|
181
|
-
provider: "discord",
|
|
182
|
-
resource: "role",
|
|
183
|
-
assignable: options.assignable ?? false
|
|
184
|
-
});
|
|
185
|
-
},
|
|
186
|
-
channels(options = {}) {
|
|
187
|
-
return resourceSourceSchema.parse({
|
|
188
|
-
provider: "discord",
|
|
189
|
-
resource: "channel",
|
|
190
|
-
types: options.types ?? ["text", "announcement"]
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
var pointLedgers = () => ({
|
|
195
|
-
provider: "domino",
|
|
196
|
-
resource: "point-ledger"
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
// src/settings.ts
|
|
200
|
-
var instant = z7.iso.datetime({ offset: true }).transform((value) => new Date(value).toISOString());
|
|
201
|
-
var resourceId = z7.union([z7.literal(""), z7.string().regex(/^\S{1,200}$/)]);
|
|
202
|
-
var base = { label: z7.string().min(1), description: z7.string().optional() };
|
|
203
|
-
var settingFieldSchema = z7.discriminatedUnion("kind", [
|
|
204
|
-
z7.object({ ...base, kind: z7.literal("point-ledger"), default: identifier }).strict(),
|
|
205
|
-
z7.object({ ...base, kind: z7.literal("datetime"), default: instant }).strict(),
|
|
206
|
-
z7.object({
|
|
207
|
-
...base,
|
|
208
|
-
kind: z7.literal("resource"),
|
|
209
|
-
default: resourceId,
|
|
210
|
-
source: resourceSourceSchema
|
|
211
|
-
}).strict(),
|
|
212
|
-
z7.object({ ...base, kind: z7.literal("quiz"), default: quizContentSchema }).strict(),
|
|
213
|
-
z7.object({
|
|
214
|
-
...base,
|
|
215
|
-
kind: z7.literal("text"),
|
|
216
|
-
default: z7.string(),
|
|
217
|
-
minLength: z7.number().int().nonnegative(),
|
|
218
|
-
maxLength: z7.number().int().positive(),
|
|
219
|
-
multiline: z7.boolean()
|
|
220
|
-
}).strict(),
|
|
221
|
-
z7.object({
|
|
222
|
-
...base,
|
|
223
|
-
kind: z7.literal("integer"),
|
|
224
|
-
default: z7.number().int(),
|
|
225
|
-
min: z7.number().int(),
|
|
226
|
-
max: z7.number().int()
|
|
227
|
-
}).strict(),
|
|
228
|
-
z7.object({ ...base, kind: z7.literal("boolean"), default: z7.boolean() }).strict(),
|
|
229
|
-
z7.object({
|
|
230
|
-
...base,
|
|
231
|
-
kind: z7.literal("choice"),
|
|
232
|
-
default: z7.string(),
|
|
233
|
-
options: z7.array(z7.string().min(1)).min(1)
|
|
234
|
-
}).strict()
|
|
235
|
-
]);
|
|
236
|
-
var settingsFieldsSchema = z7.record(
|
|
237
|
-
z7.string().regex(/^[a-zA-Z][a-zA-Z0-9_]*$/),
|
|
238
|
-
settingFieldSchema
|
|
239
|
-
);
|
|
240
|
-
var settingsValuesSchema = z7.record(
|
|
241
|
-
z7.string(),
|
|
242
|
-
z7.union([z7.string(), z7.number().finite(), z7.boolean(), quizContentSchema])
|
|
243
|
-
);
|
|
244
|
-
var settings = {
|
|
245
|
-
pointLedger(options) {
|
|
246
|
-
const field = {
|
|
247
|
-
...options,
|
|
248
|
-
kind: "point-ledger",
|
|
249
|
-
default: identifier.parse(options.default)
|
|
250
|
-
};
|
|
251
|
-
return identifier.default(field.default).meta(field);
|
|
252
|
-
},
|
|
253
|
-
datetime(options) {
|
|
254
|
-
const field = {
|
|
255
|
-
...options,
|
|
256
|
-
kind: "datetime",
|
|
257
|
-
default: instant.parse(options.default)
|
|
258
|
-
};
|
|
259
|
-
return instant.default(field.default).meta(field);
|
|
260
|
-
},
|
|
261
|
-
resource(options) {
|
|
262
|
-
const field = {
|
|
263
|
-
...options,
|
|
264
|
-
source: resourceSourceSchema.parse(options.source),
|
|
265
|
-
kind: "resource",
|
|
266
|
-
default: resourceId.parse(options.default ?? "")
|
|
267
|
-
};
|
|
268
|
-
return resourceId.default(field.default).meta(field);
|
|
269
|
-
},
|
|
270
|
-
quiz(options) {
|
|
271
|
-
const value = quizContentSchema.parse(options.default);
|
|
272
|
-
return quizContentSchema.default(value).meta({ ...options, default: value, kind: "quiz" });
|
|
273
|
-
},
|
|
274
|
-
text(options) {
|
|
275
|
-
const field = {
|
|
276
|
-
...options,
|
|
277
|
-
kind: "text",
|
|
278
|
-
minLength: options.minLength ?? 1,
|
|
279
|
-
maxLength: options.maxLength ?? 2e3,
|
|
280
|
-
multiline: options.multiline ?? false
|
|
281
|
-
};
|
|
282
|
-
return z7.string().min(field.minLength).max(field.maxLength).default(field.default).meta(field);
|
|
283
|
-
},
|
|
284
|
-
integer(options) {
|
|
285
|
-
return z7.number().int().min(options.min).max(options.max).default(options.default).meta({ ...options, kind: "integer" });
|
|
286
|
-
},
|
|
287
|
-
boolean(options) {
|
|
288
|
-
return z7.boolean().default(options.default).meta({ ...options, kind: "boolean" });
|
|
289
|
-
},
|
|
290
|
-
choice(options) {
|
|
291
|
-
return z7.enum(options.options).default(options.default).meta({ ...options, kind: "choice" });
|
|
292
|
-
},
|
|
293
|
-
object(shape) {
|
|
294
|
-
return z7.object(shape).strict();
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
function parseSettings(fields, input) {
|
|
298
|
-
const shape = {};
|
|
299
|
-
for (const [key, field] of Object.entries(fields)) {
|
|
300
|
-
switch (field.kind) {
|
|
301
|
-
case "point-ledger":
|
|
302
|
-
shape[key] = identifier.default(field.default);
|
|
303
|
-
break;
|
|
304
|
-
case "datetime":
|
|
305
|
-
shape[key] = instant.default(field.default);
|
|
306
|
-
break;
|
|
307
|
-
case "resource":
|
|
308
|
-
shape[key] = resourceId.default(field.default);
|
|
309
|
-
break;
|
|
310
|
-
case "quiz":
|
|
311
|
-
shape[key] = quizContentSchema.default(field.default);
|
|
312
|
-
break;
|
|
313
|
-
case "text":
|
|
314
|
-
shape[key] = z7.string().min(field.minLength).max(field.maxLength).default(field.default);
|
|
315
|
-
break;
|
|
316
|
-
case "integer":
|
|
317
|
-
shape[key] = z7.number().int().min(field.min).max(field.max).default(field.default);
|
|
318
|
-
break;
|
|
319
|
-
case "boolean":
|
|
320
|
-
shape[key] = z7.boolean().default(field.default);
|
|
321
|
-
break;
|
|
322
|
-
case "choice":
|
|
323
|
-
shape[key] = z7.enum(field.options).default(field.default);
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
return settingsValuesSchema.parse(z7.object(shape).strict().parse(input));
|
|
328
|
-
}
|
|
329
|
-
function missingResourceSettings(fields, values) {
|
|
330
|
-
return Object.entries(fields).filter(([key, field]) => field.kind === "resource" && !values[key]).map(([key]) => key);
|
|
331
|
-
}
|
|
332
|
-
function compatibleSettingKinds(previous, next) {
|
|
333
|
-
return previous.kind === next.kind || previous.kind === "text" && (next.kind === "resource" || next.kind === "datetime" || next.kind === "point-ledger");
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
// src/schema.ts
|
|
337
|
-
var pointsRewardSchema = z8.object({
|
|
338
|
-
kind: z8.literal("points").default("points"),
|
|
339
|
-
balance: identifier,
|
|
340
|
-
amount: z8.number().int().min(0).max(1e4)
|
|
341
|
-
}).strict();
|
|
342
|
-
var tieredRewardDefinitionSchema = z8.object({
|
|
343
|
-
id: identifier,
|
|
344
|
-
title: z8.string().min(1).max(120),
|
|
345
|
-
tiers: z8.array(
|
|
346
|
-
z8.object({ id: identifier, title: z8.string().min(1).max(120) }).strict()
|
|
347
|
-
).min(1).max(20).refine(
|
|
348
|
-
(tiers) => new Set(tiers.map((t) => t.id)).size === tiers.length,
|
|
349
|
-
"Tier IDs must be unique"
|
|
350
|
-
),
|
|
351
|
-
inventory: z8.object({ kind: z8.literal("untracked") }).strict(),
|
|
352
|
-
fulfillment: z8.object({ kind: z8.literal("staff-handover") }).strict()
|
|
353
|
-
}).strict();
|
|
354
|
-
var tierRewardSchema = z8.object({
|
|
355
|
-
kind: z8.literal("tier"),
|
|
356
|
-
reward: tieredRewardDefinitionSchema,
|
|
357
|
-
tier: identifier
|
|
358
|
-
}).strict().refine(
|
|
359
|
-
(value) => value.reward.tiers.some((t) => t.id === value.tier),
|
|
360
|
-
"Unknown reward tier"
|
|
361
|
-
);
|
|
362
|
-
var integrationRewardSchema = z8.object({
|
|
363
|
-
kind: z8.literal("integration"),
|
|
364
|
-
provider: z8.literal("discord"),
|
|
365
|
-
action: z8.literal("grant-role"),
|
|
366
|
-
roleId: z8.string().regex(/^[0-9]{1,20}$/)
|
|
367
|
-
}).strict();
|
|
368
|
-
var rewardSchema = z8.union([
|
|
369
|
-
pointsRewardSchema,
|
|
370
|
-
tierRewardSchema,
|
|
371
|
-
integrationRewardSchema
|
|
372
|
-
]);
|
|
373
|
-
function rewardKey(reward) {
|
|
374
|
-
if (reward.kind === "integration")
|
|
375
|
-
return `integration:${reward.provider}:${reward.action}:${reward.roleId}`;
|
|
376
|
-
return reward.kind === "points" ? "points:" + reward.balance : "tier:" + reward.reward.id;
|
|
377
|
-
}
|
|
378
|
-
var triggerSchema = z8.union([
|
|
379
|
-
z8.object({
|
|
380
|
-
kind: z8.literal("manual"),
|
|
381
|
-
input: z8.enum(["photo", "quiz", "none"]),
|
|
382
|
-
actor: z8.enum(["member", "staff"]).optional()
|
|
383
|
-
}).strict(),
|
|
384
|
-
z8.object({
|
|
385
|
-
kind: z8.literal("automatic"),
|
|
386
|
-
observation: observationTriggerSchema.optional()
|
|
387
|
-
}).strict()
|
|
388
|
-
]);
|
|
389
|
-
var prerequisiteSchema = z8.object({ quest: identifier, scope: z8.literal("ever") }).strict();
|
|
390
|
-
var photoResultSchema = z8.object({
|
|
391
|
-
kind: z8.enum(["pass", "fail", "unclear"]),
|
|
392
|
-
reason: z8.string().min(1).max(2e3)
|
|
393
|
-
}).strict();
|
|
394
|
-
var decisionSchema = z8.discriminatedUnion("kind", [
|
|
395
|
-
z8.object({
|
|
396
|
-
kind: z8.literal("accept"),
|
|
397
|
-
rewards: z8.array(rewardSchema).max(10),
|
|
398
|
-
completionKey: completionKeySchema.optional()
|
|
399
|
-
}).strict(),
|
|
400
|
-
z8.object({ kind: z8.literal("reject"), reason: z8.string().min(1).max(2e3) }).strict(),
|
|
401
|
-
z8.object({
|
|
402
|
-
kind: z8.literal("review"),
|
|
403
|
-
reason: z8.string().min(1).max(2e3),
|
|
404
|
-
rewards: z8.array(rewardSchema).max(10).optional(),
|
|
405
|
-
completionKey: completionKeySchema.optional()
|
|
406
|
-
}).strict()
|
|
407
|
-
]);
|
|
408
|
-
var reviewModeSchema = z8.enum(["workers-ai"]);
|
|
409
|
-
var storedReviewModeSchema = z8.enum([
|
|
410
|
-
"fixture-pass",
|
|
411
|
-
"fixture-fail",
|
|
412
|
-
"fixture-unclear",
|
|
413
|
-
"fixture-error",
|
|
414
|
-
"workers-ai"
|
|
415
|
-
]);
|
|
416
|
-
var rewardBundleSchema = z8.array(rewardSchema).max(10).refine(
|
|
417
|
-
(rewards) => new Set(rewards.map(rewardKey)).size === rewards.length,
|
|
418
|
-
"Use one entry per balance or shared reward"
|
|
419
|
-
);
|
|
420
|
-
var mediaUrlSchema = z8.string().max(2e3).refine((value) => {
|
|
421
|
-
if (/^\/(?!\/)[^\\\s]*$/.test(value)) return true;
|
|
422
|
-
try {
|
|
423
|
-
return new URL(value).protocol === "https:";
|
|
424
|
-
} catch {
|
|
425
|
-
return false;
|
|
426
|
-
}
|
|
427
|
-
}, "Use an HTTPS URL or a same-site path beginning with /");
|
|
428
|
-
var questPresentationSchema = z8.object({
|
|
429
|
-
quiz: quizQuestionsSchema.optional(),
|
|
430
|
-
instructions: z8.string().max(4e3).optional(),
|
|
431
|
-
video: z8.object({
|
|
432
|
-
url: mediaUrlSchema,
|
|
433
|
-
poster: mediaUrlSchema.optional(),
|
|
434
|
-
captions: z8.object({
|
|
435
|
-
url: mediaUrlSchema,
|
|
436
|
-
language: z8.string().min(2).max(20),
|
|
437
|
-
label: z8.string().min(1).max(80)
|
|
438
|
-
}).strict().optional()
|
|
439
|
-
}).strict().optional()
|
|
440
|
-
}).strict();
|
|
441
|
-
var questDescriptionSchema = z8.object({
|
|
442
|
-
quest: identifier,
|
|
443
|
-
runtimeVersion: z8.union([z8.literal(1), z8.literal(2)]).default(1),
|
|
444
|
-
title: z8.string().min(1).max(120),
|
|
445
|
-
presentation: questPresentationSchema.default({}),
|
|
446
|
-
integrations: z8.array(integrationProviderSchema).max(10).default([]),
|
|
447
|
-
fields: settingsFieldsSchema,
|
|
448
|
-
values: settingsValuesSchema,
|
|
449
|
-
rewards: rewardBundleSchema,
|
|
450
|
-
humanReview: z8.boolean(),
|
|
451
|
-
trigger: triggerSchema,
|
|
452
|
-
requires: z8.array(prerequisiteSchema).max(30).default([]),
|
|
453
|
-
completion: completionPolicySchema,
|
|
454
|
-
visibility: z8.enum(["visible", "hidden"]).default("visible"),
|
|
455
|
-
budgets: z8.array(budgetSchema).max(20).default([])
|
|
456
|
-
}).strict();
|
|
457
|
-
var artifactSchema = z8.object({ code: z8.string().min(1).max(1e6) }).strict();
|
|
458
|
-
var releaseSchema = artifactSchema.extend({
|
|
459
|
-
settings: settingsValuesSchema,
|
|
460
|
-
provider: reviewModeSchema,
|
|
461
|
-
expectedRelease: identifier.nullable().optional(),
|
|
462
|
-
settingRenames: z8.record(z8.string(), z8.string()).optional()
|
|
463
|
-
}).strict();
|
|
464
|
-
var batchReleaseSchema = z8.object({ releases: z8.array(releaseSchema).min(1).max(50) }).strict();
|
|
465
|
-
var questSettingsInputSchema = z8.object({
|
|
466
|
-
quest: identifier,
|
|
467
|
-
expectedRelease: identifier,
|
|
468
|
-
set: settingsValuesSchema,
|
|
469
|
-
reset: z8.array(z8.string())
|
|
470
|
-
}).strict();
|
|
471
|
-
var storedReleaseSchema = questDescriptionSchema.extend({
|
|
472
|
-
key: identifier.optional(),
|
|
473
|
-
code: z8.string(),
|
|
474
|
-
provider: storedReviewModeSchema,
|
|
475
|
-
id: identifier,
|
|
476
|
-
createdAt: z8.number(),
|
|
477
|
-
legacy: z8.boolean().default(false),
|
|
478
|
-
origin: z8.object({ typeVersion: identifier }).strict().optional(),
|
|
479
|
-
lifecycle: z8.enum(["active", "paused", "archived"]).default("active"),
|
|
480
|
-
configuration: z8.object({
|
|
481
|
-
defaults: settingsValuesSchema,
|
|
482
|
-
overrides: settingsValuesSchema,
|
|
483
|
-
preserved: z8.array(z8.string())
|
|
484
|
-
}).strict().optional()
|
|
485
|
-
});
|
|
486
|
-
var legacyReleaseSchema = z8.object({
|
|
487
|
-
quest: identifier,
|
|
488
|
-
title: z8.string(),
|
|
489
|
-
criteria: z8.string(),
|
|
490
|
-
humanReview: z8.boolean(),
|
|
491
|
-
rewards: rewardBundleSchema,
|
|
492
|
-
code: z8.string(),
|
|
493
|
-
provider: storedReviewModeSchema,
|
|
494
|
-
id: identifier,
|
|
495
|
-
createdAt: z8.number()
|
|
496
|
-
}).transform((r) => {
|
|
497
|
-
const { criteria, ...stored } = r;
|
|
498
|
-
return storedReleaseSchema.parse({
|
|
499
|
-
...stored,
|
|
500
|
-
fields: {},
|
|
501
|
-
values: { criteria, humanReview: r.humanReview },
|
|
502
|
-
trigger: { kind: "manual", input: "photo" },
|
|
503
|
-
completion: { kind: "once" },
|
|
504
|
-
legacy: true
|
|
505
|
-
});
|
|
506
|
-
});
|
|
507
|
-
var publishedReleaseSchema = z8.union([
|
|
508
|
-
storedReleaseSchema,
|
|
509
|
-
legacyReleaseSchema
|
|
510
|
-
]);
|
|
511
|
-
var templateSchema = z8.object({
|
|
512
|
-
code: z8.string(),
|
|
513
|
-
definition: questDescriptionSchema
|
|
514
|
-
});
|
|
515
|
-
var quizAnswersSchema = z8.record(identifier, identifier).refine(
|
|
516
|
-
(answers) => Object.keys(answers).length > 0 && Object.keys(answers).length <= 50,
|
|
517
|
-
"Provide between 1 and 50 answers"
|
|
518
|
-
).transform(
|
|
519
|
-
(answers) => Object.fromEntries(
|
|
520
|
-
Object.entries(answers).sort(([a], [b]) => a.localeCompare(b))
|
|
521
|
-
)
|
|
522
|
-
);
|
|
523
|
-
var quizEvidenceSchema = z8.object({
|
|
524
|
-
kind: z8.literal("quiz"),
|
|
525
|
-
release: identifier.optional(),
|
|
526
|
-
answers: quizAnswersSchema
|
|
527
|
-
}).strict();
|
|
528
|
-
var submitSchema = z8.object({
|
|
529
|
-
actionId: identifier,
|
|
530
|
-
quest: identifier,
|
|
531
|
-
member: identifier,
|
|
532
|
-
evidence: identifier.optional(),
|
|
533
|
-
input: quizEvidenceSchema.optional(),
|
|
534
|
-
release: identifier.optional(),
|
|
535
|
-
faultAfterReview: z8.boolean().optional()
|
|
536
|
-
}).strict();
|
|
537
|
-
var attemptSchema = z8.object({
|
|
538
|
-
id: identifier,
|
|
539
|
-
release: identifier,
|
|
540
|
-
quest: identifier,
|
|
541
|
-
member: identifier,
|
|
542
|
-
evidence: identifier.nullable(),
|
|
543
|
-
input: quizEvidenceSchema.optional(),
|
|
544
|
-
status: z8.enum([
|
|
545
|
-
"queued",
|
|
546
|
-
"evaluating",
|
|
547
|
-
"accepted",
|
|
548
|
-
"rejected",
|
|
549
|
-
"needs-review",
|
|
550
|
-
"failed"
|
|
551
|
-
]),
|
|
552
|
-
reason: z8.string().nullable(),
|
|
553
|
-
retries: z8.number(),
|
|
554
|
-
generation: z8.number(),
|
|
555
|
-
completion: z8.string().nullable(),
|
|
556
|
-
reviewRewards: rewardBundleSchema.nullable().default(null),
|
|
557
|
-
createdAt: z8.number()
|
|
558
|
-
});
|
|
559
|
-
var eventSchema = z8.object({
|
|
560
|
-
id: z8.number(),
|
|
561
|
-
attempt: z8.string().nullable(),
|
|
562
|
-
kind: z8.string(),
|
|
563
|
-
detail: z8.string(),
|
|
564
|
-
actor: z8.string().nullable().default(null),
|
|
565
|
-
at: z8.number()
|
|
566
|
-
});
|
|
567
|
-
var pickupSelectionSchema = z8.object({
|
|
568
|
-
item: identifier,
|
|
569
|
-
revision: z8.number().int().nonnegative()
|
|
570
|
-
}).strict();
|
|
571
|
-
var pickupAllocationSchema = z8.object({
|
|
572
|
-
item: identifier,
|
|
573
|
-
label: z8.string().min(1).max(80)
|
|
574
|
-
}).strict();
|
|
575
|
-
var pickupPolicySchema = z8.discriminatedUnion("kind", [
|
|
576
|
-
z8.object({ kind: z8.literal("untracked") }).strict(),
|
|
577
|
-
z8.object({
|
|
578
|
-
kind: z8.literal("at-pickup"),
|
|
579
|
-
tiers: z8.array(
|
|
580
|
-
z8.object({
|
|
581
|
-
tier: identifier,
|
|
582
|
-
variants: z8.array(pickupAllocationSchema).min(1).max(100)
|
|
583
|
-
}).strict()
|
|
584
|
-
).min(1).max(100)
|
|
585
|
-
}).strict()
|
|
586
|
-
]);
|
|
587
|
-
var pickupCatalogSchema = z8.object({
|
|
588
|
-
reward: tieredRewardDefinitionSchema,
|
|
589
|
-
revision: z8.number().int().nonnegative(),
|
|
590
|
-
policy: pickupPolicySchema
|
|
591
|
-
});
|
|
592
|
-
var pickupAvailabilitySchema = z8.discriminatedUnion("kind", [
|
|
593
|
-
z8.object({ kind: z8.literal("untracked") }).strict(),
|
|
594
|
-
z8.object({
|
|
595
|
-
kind: z8.literal("at-pickup"),
|
|
596
|
-
revision: z8.number().int().nonnegative(),
|
|
597
|
-
variants: z8.array(
|
|
598
|
-
pickupAllocationSchema.extend({
|
|
599
|
-
available: z8.number().int().nonnegative()
|
|
600
|
-
})
|
|
601
|
-
)
|
|
602
|
-
}).strict()
|
|
603
|
-
]);
|
|
604
|
-
var configurePickupSchema = z8.object({
|
|
605
|
-
reward: identifier,
|
|
606
|
-
revision: z8.number().int().nonnegative(),
|
|
607
|
-
actionId: identifier,
|
|
608
|
-
policy: z8.discriminatedUnion("kind", [
|
|
609
|
-
z8.object({ kind: z8.literal("untracked") }).strict(),
|
|
610
|
-
z8.object({
|
|
611
|
-
kind: z8.literal("at-pickup"),
|
|
612
|
-
tiers: z8.array(
|
|
613
|
-
z8.object({
|
|
614
|
-
tier: identifier,
|
|
615
|
-
variants: z8.array(
|
|
616
|
-
pickupAllocationSchema.extend({
|
|
617
|
-
item: identifier.optional()
|
|
618
|
-
})
|
|
619
|
-
).min(1).max(100)
|
|
620
|
-
}).strict()
|
|
621
|
-
).min(1).max(100)
|
|
622
|
-
}).strict()
|
|
623
|
-
])
|
|
624
|
-
}).strict();
|
|
625
|
-
var entitlementBase = {
|
|
626
|
-
id: identifier,
|
|
627
|
-
member: identifier,
|
|
628
|
-
reward: tieredRewardDefinitionSchema,
|
|
629
|
-
earnedTier: identifier,
|
|
630
|
-
tier: identifier,
|
|
631
|
-
revision: z8.number().int().positive()
|
|
632
|
-
};
|
|
633
|
-
var entitlementSchema = z8.discriminatedUnion("status", [
|
|
634
|
-
z8.object({ ...entitlementBase, status: z8.literal("available") }).strict(),
|
|
635
|
-
z8.object({
|
|
636
|
-
...entitlementBase,
|
|
637
|
-
status: z8.literal("handing-over"),
|
|
638
|
-
handover: identifier,
|
|
639
|
-
startedAt: z8.number(),
|
|
640
|
-
allocation: pickupAllocationSchema.optional()
|
|
641
|
-
}).strict(),
|
|
642
|
-
z8.object({
|
|
643
|
-
...entitlementBase,
|
|
644
|
-
status: z8.literal("collected"),
|
|
645
|
-
handover: identifier,
|
|
646
|
-
startedAt: z8.number(),
|
|
647
|
-
allocation: pickupAllocationSchema.optional(),
|
|
648
|
-
collectedAt: z8.number()
|
|
649
|
-
}).strict()
|
|
650
|
-
]);
|
|
651
|
-
var beginHandoverSchema = z8.object({
|
|
652
|
-
actionId: identifier,
|
|
653
|
-
revision: z8.number().int().positive(),
|
|
654
|
-
selection: pickupSelectionSchema.optional()
|
|
655
|
-
}).strict();
|
|
656
|
-
var confirmHandoverSchema = z8.object({ actionId: identifier, handover: identifier }).strict();
|
|
657
|
-
var completionRecordSchema = z8.object({
|
|
658
|
-
key: z8.string().default("once"),
|
|
659
|
-
id: identifier,
|
|
660
|
-
quest: identifier,
|
|
661
|
-
member: identifier
|
|
662
|
-
});
|
|
663
|
-
var questAvailabilitySchema = z8.discriminatedUnion("kind", [
|
|
664
|
-
z8.object({
|
|
665
|
-
kind: z8.literal("available"),
|
|
666
|
-
input: z8.enum(["photo", "quiz", "none"])
|
|
667
|
-
}).strict(),
|
|
668
|
-
z8.object({ kind: z8.literal("completed") }).strict(),
|
|
669
|
-
z8.object({
|
|
670
|
-
kind: z8.literal("locked"),
|
|
671
|
-
missing: z8.array(z8.object({ quest: identifier, title: z8.string() })).min(1)
|
|
672
|
-
}).strict(),
|
|
673
|
-
z8.object({ kind: z8.literal("staff-required") }).strict(),
|
|
674
|
-
z8.object({
|
|
675
|
-
kind: z8.literal("automatic"),
|
|
676
|
-
observation: observationTriggerSchema.optional()
|
|
677
|
-
}).strict(),
|
|
678
|
-
z8.object({ kind: z8.literal("checking"), attempt: identifier }).strict(),
|
|
679
|
-
z8.object({ kind: z8.literal("needs-review"), attempt: identifier }).strict(),
|
|
680
|
-
z8.object({ kind: z8.literal("retryable"), attempt: identifier }).strict()
|
|
681
|
-
]);
|
|
682
|
-
var memberProgressSchema = z8.object({
|
|
683
|
-
member: identifier,
|
|
684
|
-
quests: z8.array(
|
|
685
|
-
z8.object({
|
|
686
|
-
quest: identifier,
|
|
687
|
-
key: identifier.optional(),
|
|
688
|
-
release: identifier.optional(),
|
|
689
|
-
title: z8.string(),
|
|
690
|
-
presentation: questPresentationSchema.default({}),
|
|
691
|
-
connections: z8.array(authProviderSchema).default([]),
|
|
692
|
-
trigger: triggerSchema,
|
|
693
|
-
availability: questAvailabilitySchema,
|
|
694
|
-
completed: z8.boolean(),
|
|
695
|
-
completion: completionPolicySchema.default({ kind: "once" }),
|
|
696
|
-
completionCount: z8.number().int().nonnegative().default(0),
|
|
697
|
-
visibility: z8.enum(["visible", "hidden"]).default("visible"),
|
|
698
|
-
missing: z8.array(z8.object({ quest: identifier, title: z8.string() })),
|
|
699
|
-
attempt: attemptSchema.nullable()
|
|
700
|
-
})
|
|
701
|
-
),
|
|
702
|
-
entitlements: z8.array(entitlementSchema)
|
|
703
|
-
});
|
|
704
|
-
var snapshotSchema = z8.object({
|
|
705
|
-
releases: z8.array(publishedReleaseSchema),
|
|
706
|
-
completions: z8.array(completionRecordSchema),
|
|
707
|
-
entitlements: z8.array(entitlementSchema),
|
|
708
|
-
attempts: z8.array(attemptSchema),
|
|
709
|
-
balances: z8.array(
|
|
710
|
-
z8.object({
|
|
711
|
-
member: z8.string(),
|
|
712
|
-
balance: z8.string(),
|
|
713
|
-
earned: z8.number(),
|
|
714
|
-
held: z8.number(),
|
|
715
|
-
available: z8.number()
|
|
716
|
-
})
|
|
717
|
-
),
|
|
718
|
-
events: z8.array(eventSchema)
|
|
719
|
-
});
|
|
720
|
-
var evidenceSchema = z8.object({
|
|
721
|
-
id: identifier,
|
|
722
|
-
member: identifier,
|
|
723
|
-
type: z8.enum(["image/jpeg", "image/png"]),
|
|
724
|
-
size: z8.number()
|
|
725
|
-
});
|
|
726
|
-
var errorSchema = z8.object({
|
|
727
|
-
error: z8.string(),
|
|
728
|
-
code: z8.enum(["stale-quiz", "quest-updated"]).optional(),
|
|
729
|
-
missing: z8.array(z8.object({ quest: identifier, title: z8.string() })).optional()
|
|
730
|
-
});
|
|
731
|
-
var staffDecisionSchema = z8.object({
|
|
732
|
-
actionId: identifier,
|
|
733
|
-
generation: z8.number().int().nonnegative(),
|
|
734
|
-
decision: z8.enum(["accept", "reject"]),
|
|
735
|
-
reason: z8.string().trim().min(1).max(2e3)
|
|
736
|
-
}).strict();
|
|
737
|
-
var stockSchema = z8.object({ item: identifier, quantity: z8.number().int().min(0).max(1e4) }).strict();
|
|
738
|
-
var reservationSchema = z8.object({
|
|
739
|
-
actionId: identifier,
|
|
740
|
-
member: identifier,
|
|
741
|
-
item: identifier,
|
|
742
|
-
balance: identifier,
|
|
743
|
-
price: z8.number().int().positive().max(1e4)
|
|
744
|
-
}).strict();
|
|
745
|
-
var pageOptions = {
|
|
746
|
-
limit: z8.number().int().min(1).max(100).default(25),
|
|
747
|
-
cursor: z8.string().min(1).max(4096).optional()
|
|
748
|
-
};
|
|
749
|
-
var reviewListSchema = z8.object({
|
|
750
|
-
...pageOptions,
|
|
751
|
-
member: identifier.optional(),
|
|
752
|
-
quest: identifier.optional()
|
|
753
|
-
}).strict();
|
|
754
|
-
var memberListSchema = z8.object({
|
|
755
|
-
...pageOptions,
|
|
756
|
-
prefix: identifier.optional()
|
|
757
|
-
}).strict();
|
|
758
|
-
var reviewItemSchema = z8.object({
|
|
759
|
-
attempt: attemptSchema,
|
|
760
|
-
title: z8.string(),
|
|
761
|
-
checks: z8.array(
|
|
762
|
-
z8.object({ criteria: z8.string(), result: photoResultSchema })
|
|
763
|
-
)
|
|
764
|
-
});
|
|
765
|
-
var reviewPageSchema = z8.object({
|
|
766
|
-
items: z8.array(reviewItemSchema).max(100),
|
|
767
|
-
nextCursor: z8.string().nullable()
|
|
768
|
-
});
|
|
769
|
-
var memberPageSchema = z8.object({
|
|
770
|
-
items: z8.array(z8.object({ member: identifier })).max(100),
|
|
771
|
-
nextCursor: z8.string().nullable()
|
|
772
|
-
});
|
|
773
|
-
var createStockItemSchema = z8.object({ actionId: identifier, name: z8.string().trim().min(1).max(80) }).strict();
|
|
774
|
-
var stockItemSchema = z8.object({ id: identifier, name: z8.string() });
|
|
775
|
-
|
|
776
|
-
export {
|
|
777
|
-
identifier,
|
|
778
|
-
observationInputSchema,
|
|
779
|
-
observationSchema,
|
|
780
|
-
observationTriggerSchema,
|
|
781
|
-
completionPolicySchema,
|
|
782
|
-
completionKeySchema,
|
|
783
|
-
budgetSchema,
|
|
784
|
-
observationReceiptSchema,
|
|
785
|
-
discordReactionSchema,
|
|
786
|
-
discordMessageSchema,
|
|
787
|
-
integrationProviderSchema,
|
|
788
|
-
discordServerSchema,
|
|
789
|
-
projectIntegrationSchema,
|
|
790
|
-
authProviderSchema,
|
|
791
|
-
accountConnectionSchema,
|
|
792
|
-
discordMemberInputSchema,
|
|
793
|
-
discordMessageInputSchema,
|
|
794
|
-
discordMemberSchema,
|
|
795
|
-
quizChoiceSchema,
|
|
796
|
-
quizQuestionSchema,
|
|
797
|
-
quizQuestionsSchema,
|
|
798
|
-
quizContentSchema,
|
|
799
|
-
resourceSourceSchema,
|
|
800
|
-
resourceRequestSchema,
|
|
801
|
-
resourceOptionsSchema,
|
|
802
|
-
discord,
|
|
803
|
-
pointLedgers,
|
|
804
|
-
settingFieldSchema,
|
|
805
|
-
settingsFieldsSchema,
|
|
806
|
-
settingsValuesSchema,
|
|
807
|
-
settings,
|
|
808
|
-
parseSettings,
|
|
809
|
-
missingResourceSettings,
|
|
810
|
-
compatibleSettingKinds,
|
|
811
|
-
pointsRewardSchema,
|
|
812
|
-
tieredRewardDefinitionSchema,
|
|
813
|
-
tierRewardSchema,
|
|
814
|
-
integrationRewardSchema,
|
|
815
|
-
rewardSchema,
|
|
816
|
-
rewardKey,
|
|
817
|
-
triggerSchema,
|
|
818
|
-
prerequisiteSchema,
|
|
819
|
-
photoResultSchema,
|
|
820
|
-
decisionSchema,
|
|
821
|
-
reviewModeSchema,
|
|
822
|
-
storedReviewModeSchema,
|
|
823
|
-
rewardBundleSchema,
|
|
824
|
-
mediaUrlSchema,
|
|
825
|
-
questPresentationSchema,
|
|
826
|
-
questDescriptionSchema,
|
|
827
|
-
artifactSchema,
|
|
828
|
-
releaseSchema,
|
|
829
|
-
batchReleaseSchema,
|
|
830
|
-
questSettingsInputSchema,
|
|
831
|
-
publishedReleaseSchema,
|
|
832
|
-
templateSchema,
|
|
833
|
-
quizAnswersSchema,
|
|
834
|
-
quizEvidenceSchema,
|
|
835
|
-
submitSchema,
|
|
836
|
-
attemptSchema,
|
|
837
|
-
eventSchema,
|
|
838
|
-
pickupSelectionSchema,
|
|
839
|
-
pickupAllocationSchema,
|
|
840
|
-
pickupPolicySchema,
|
|
841
|
-
pickupCatalogSchema,
|
|
842
|
-
pickupAvailabilitySchema,
|
|
843
|
-
configurePickupSchema,
|
|
844
|
-
entitlementSchema,
|
|
845
|
-
beginHandoverSchema,
|
|
846
|
-
confirmHandoverSchema,
|
|
847
|
-
completionRecordSchema,
|
|
848
|
-
questAvailabilitySchema,
|
|
849
|
-
memberProgressSchema,
|
|
850
|
-
snapshotSchema,
|
|
851
|
-
evidenceSchema,
|
|
852
|
-
errorSchema,
|
|
853
|
-
staffDecisionSchema,
|
|
854
|
-
stockSchema,
|
|
855
|
-
reservationSchema,
|
|
856
|
-
reviewListSchema,
|
|
857
|
-
memberListSchema,
|
|
858
|
-
reviewItemSchema,
|
|
859
|
-
reviewPageSchema,
|
|
860
|
-
memberPageSchema,
|
|
861
|
-
createStockItemSchema,
|
|
862
|
-
stockItemSchema
|
|
863
|
-
};
|