@domino-sdk/relay 1.61.0 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +276 -8
- package/README.md +3 -2
- package/dist/{schema-CZ6Rj0ZF.d.ts → accounts-nz3mzfRQ.d.ts} +3146 -1765
- package/dist/action-9Xl0StBg.d.ts +33 -0
- package/dist/{attempt-captures-DYnJVkfg.d.ts → attempt-captures-DMi8oR9T.d.ts} +1 -1
- package/dist/authoring.d.ts +171 -49
- package/dist/authoring.js +158 -49
- package/dist/{automatic-outcomes-If88LR9f.d.ts → automatic-outcomes-C_LLQU1p.d.ts} +15 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +15 -11
- package/dist/browser.js +18 -12
- package/dist/capability-error-CuI_F7yM.d.ts +296 -0
- package/dist/{pages-K7-KjSXw.d.ts → catalog-BaTOKpNw.d.ts} +56 -567
- package/dist/{chunk-XBV2CK2H.js → chunk-3RFP6GT5.js} +15 -3
- package/dist/{chunk-VURRFVNP.js → chunk-4GQW43UU.js} +239 -361
- package/dist/chunk-4NOFSGAL.js +320 -0
- package/dist/{chunk-24I4R732.js → chunk-5XLZ34PV.js} +34 -19
- package/dist/{chunk-L77O64I4.js → chunk-7X67QLPB.js} +43 -43
- package/dist/{chunk-RHBS5FJL.js → chunk-7Z4SZ6YM.js} +3 -3
- package/dist/{chunk-QEAS4ZGS.js → chunk-AQOL3SK5.js} +1 -1
- package/dist/chunk-EHUSD3O2.js +377 -0
- package/dist/chunk-FO2LCZTL.js +19 -0
- package/dist/{chunk-DYXDZFKA.js → chunk-FU5CGNTR.js} +166 -178
- package/dist/chunk-FWLQ5XCS.js +21 -0
- package/dist/chunk-GLH6MEI2.js +193 -0
- package/dist/chunk-ICXZZNPS.js +199 -0
- package/dist/{chunk-ZDJLPN4L.js → chunk-ID3BZXFZ.js} +2696 -2693
- package/dist/chunk-KP2MCX3R.js +587 -0
- package/dist/{chunk-SKGTNTLF.js → chunk-LZWXCBUB.js} +213 -297
- package/dist/chunk-MTKRIQEU.js +31 -0
- package/dist/{chunk-4OC7REYX.js → chunk-MWMCQLCG.js} +3 -3
- package/dist/{chunk-PPB7HALD.js → chunk-N4BDKS6Y.js} +27 -26
- package/dist/{chunk-5I54XBK2.js → chunk-N4LNEGQX.js} +2 -2
- package/dist/chunk-NQDEWJWE.js +554 -0
- package/dist/chunk-QR6HH4DI.js +508 -0
- package/dist/chunk-TLSQETTY.js +41 -0
- package/dist/{chunk-MHPKEVEW.js → chunk-U66GUVSG.js} +7 -2
- package/dist/{chunk-KDR2VAJP.js → chunk-UYVJZR33.js} +2 -2
- package/dist/chunk-UZ765UGH.js +18 -0
- package/dist/{chunk-7A4J67ZL.js → chunk-VWQGWGCH.js} +7 -7
- package/dist/chunk-W7YSMSGC.js +725 -0
- package/dist/{client-C51w7fMb.d.ts → client-DHmG7rn6.d.ts} +126 -93
- package/dist/{announcements-CHx3-HBw.d.ts → dashboards-CLemT6kj.d.ts} +14 -137
- package/dist/{deployments-kWoHFaqj.d.ts → deployments-DTULi7dF.d.ts} +450 -18
- package/dist/identity-integration-DOeNZaxF.d.ts +1271 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +16 -11
- package/dist/internal.d.ts +29 -13
- package/dist/internal.js +57 -17
- package/dist/{integrations-B3y36OaB.d.ts → limits-kNzYdZ00.d.ts} +464 -53
- package/dist/{offers-BoV4ryUc.d.ts → offers-CYeN_I0Y.d.ts} +22 -4
- package/dist/{participant-activity-DHL8QYks.d.ts → participant-activity-D-Drp24G.d.ts} +16 -3
- package/dist/portal-proxy.d.ts +75 -2
- package/dist/portal-proxy.js +153 -25
- package/dist/react/index.d.ts +214 -27
- package/dist/react/index.js +196 -42
- package/dist/{action-DBzILFx9.d.ts → request-error-D_dUPLwo.d.ts} +1 -31
- package/dist/reward-deliveries-drp-x1G-.d.ts +782 -0
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/UGDV5W4N.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +330 -31
- package/dist/schema.js +147 -91
- package/dist/server/index.d.ts +14 -12
- package/dist/server/index.js +6425 -6260
- package/dist/sign-in-providers-B1Q9eDRm.d.ts +44 -0
- package/dist/submission-input-DZCbjQUH.d.ts +343 -0
- package/dist/{telegram-browser-BUceZIGZ.d.ts → telegram-browser-NL0Asmsi.d.ts} +46 -6
- package/dist/telegram.d.ts +64 -0
- package/dist/telegram.js +23 -0
- package/dist/testing.d.ts +326 -27
- package/dist/testing.js +440 -90
- package/dist/tracker-data-esm3WG8R.d.ts +1881 -0
- package/dist/{transport-BrX9pIGN.d.ts → transport-Czht_irp.d.ts} +43483 -38512
- package/dist/{wallet-CIqFoxdm.d.ts → wallet-B7e06v4m.d.ts} +32 -9
- package/package.json +5 -1
- package/dist/accounts-DoabriBX.d.ts +0 -306
- package/dist/capability-error-DufwG3G0.d.ts +0 -159
- package/dist/chunk-3Y3L2F54.js +0 -982
- package/dist/chunk-DHXDBAJF.js +0 -544
- package/dist/chunk-EN3M5Z4J.js +0 -13
- package/dist/chunk-QNUHWK7R.js +0 -602
- package/dist/chunk-SE4PFJPT.js +0 -247
- package/dist/groups-CqcA2Ycs.d.ts +0 -2827
- package/dist/runtime/chunks/5QVFB4TU.js +0 -1
- package/dist/submission-input-C54Q8yAD.d.ts +0 -146
- package/dist/x-D1PGi8Sq.d.ts +0 -331
|
@@ -1,2827 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
import { g as PointEntryKind, y as ResourceHandle, G as GroupHandle } from './schema-CZ6Rj0ZF.js';
|
|
3
|
-
|
|
4
|
-
type AuthoringIdentity = {
|
|
5
|
-
key: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A cap on the points one rule pays per bucket: for the whole project or for each member, per day,
|
|
10
|
-
* week or month of the project calendar at settlement time, or over the rule's lifetime.
|
|
11
|
-
*/
|
|
12
|
-
declare const engagementBudgetSchema: z.ZodObject<{
|
|
13
|
-
scope: z.ZodEnum<{
|
|
14
|
-
member: "member";
|
|
15
|
-
project: "project";
|
|
16
|
-
}>;
|
|
17
|
-
period: z.ZodEnum<{
|
|
18
|
-
lifetime: "lifetime";
|
|
19
|
-
day: "day";
|
|
20
|
-
week: "week";
|
|
21
|
-
month: "month";
|
|
22
|
-
}>;
|
|
23
|
-
limit: z.ZodNumber;
|
|
24
|
-
}, z.core.$strict>;
|
|
25
|
-
type EngagementBudget = z.infer<typeof engagementBudgetSchema>;
|
|
26
|
-
declare const engagementDefinitionSchema: z.ZodObject<{
|
|
27
|
-
key: z.ZodString;
|
|
28
|
-
qualifiedBy: z.ZodString;
|
|
29
|
-
balance: z.ZodString;
|
|
30
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
31
|
-
baseline: z.ZodLiteral<"historical">;
|
|
32
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
33
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
34
|
-
scope: z.ZodEnum<{
|
|
35
|
-
member: "member";
|
|
36
|
-
project: "project";
|
|
37
|
-
}>;
|
|
38
|
-
period: z.ZodEnum<{
|
|
39
|
-
lifetime: "lifetime";
|
|
40
|
-
day: "day";
|
|
41
|
-
week: "week";
|
|
42
|
-
month: "month";
|
|
43
|
-
}>;
|
|
44
|
-
limit: z.ZodNumber;
|
|
45
|
-
}, z.core.$strict>>>;
|
|
46
|
-
}, z.core.$strict>;
|
|
47
|
-
type EngagementDefinition = z.infer<typeof engagementDefinitionSchema>;
|
|
48
|
-
declare const engagementScoreInputSchema: z.ZodObject<{
|
|
49
|
-
metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
50
|
-
baseline: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
51
|
-
}, z.core.$strict>;
|
|
52
|
-
declare const engagementScoreSchema: z.ZodObject<{
|
|
53
|
-
target: z.ZodNumber;
|
|
54
|
-
baseline: z.ZodNumber;
|
|
55
|
-
}, z.core.$strict>;
|
|
56
|
-
declare const engagementPublishSchema: z.ZodObject<{
|
|
57
|
-
actionId: z.ZodString;
|
|
58
|
-
code: z.ZodString;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
declare const engagementRuleSchema: z.ZodObject<{
|
|
61
|
-
version: z.ZodString;
|
|
62
|
-
definition: z.ZodObject<{
|
|
63
|
-
key: z.ZodString;
|
|
64
|
-
qualifiedBy: z.ZodString;
|
|
65
|
-
balance: z.ZodString;
|
|
66
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
67
|
-
baseline: z.ZodLiteral<"historical">;
|
|
68
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
69
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
70
|
-
scope: z.ZodEnum<{
|
|
71
|
-
member: "member";
|
|
72
|
-
project: "project";
|
|
73
|
-
}>;
|
|
74
|
-
period: z.ZodEnum<{
|
|
75
|
-
lifetime: "lifetime";
|
|
76
|
-
day: "day";
|
|
77
|
-
week: "week";
|
|
78
|
-
month: "month";
|
|
79
|
-
}>;
|
|
80
|
-
limit: z.ZodNumber;
|
|
81
|
-
}, z.core.$strict>>>;
|
|
82
|
-
}, z.core.$strict>;
|
|
83
|
-
publishedAt: z.ZodNumber;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
declare const engagementPageQuerySchema: z.ZodObject<{
|
|
86
|
-
rule: z.ZodString;
|
|
87
|
-
content: z.ZodString;
|
|
88
|
-
member: z.ZodOptional<z.ZodString>;
|
|
89
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$strict>;
|
|
91
|
-
declare const engagementSettlementSchema: z.ZodObject<{
|
|
92
|
-
id: z.ZodString;
|
|
93
|
-
day: z.ZodString;
|
|
94
|
-
observation: z.ZodString;
|
|
95
|
-
qualification: z.ZodString;
|
|
96
|
-
earned: z.ZodNumber;
|
|
97
|
-
growth: z.ZodNumber;
|
|
98
|
-
paid: z.ZodNumber;
|
|
99
|
-
excluded: z.ZodNumber;
|
|
100
|
-
entry: z.ZodNullable<z.ZodString>;
|
|
101
|
-
createdAt: z.ZodNumber;
|
|
102
|
-
}, z.core.$strict>;
|
|
103
|
-
declare const engagementPageSchema: z.ZodObject<{
|
|
104
|
-
rule: z.ZodObject<{
|
|
105
|
-
version: z.ZodString;
|
|
106
|
-
definition: z.ZodObject<{
|
|
107
|
-
key: z.ZodString;
|
|
108
|
-
qualifiedBy: z.ZodString;
|
|
109
|
-
balance: z.ZodString;
|
|
110
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
111
|
-
baseline: z.ZodLiteral<"historical">;
|
|
112
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
113
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
114
|
-
scope: z.ZodEnum<{
|
|
115
|
-
member: "member";
|
|
116
|
-
project: "project";
|
|
117
|
-
}>;
|
|
118
|
-
period: z.ZodEnum<{
|
|
119
|
-
lifetime: "lifetime";
|
|
120
|
-
day: "day";
|
|
121
|
-
week: "week";
|
|
122
|
-
month: "month";
|
|
123
|
-
}>;
|
|
124
|
-
limit: z.ZodNumber;
|
|
125
|
-
}, z.core.$strict>>>;
|
|
126
|
-
}, z.core.$strict>;
|
|
127
|
-
publishedAt: z.ZodNumber;
|
|
128
|
-
}, z.core.$strict>;
|
|
129
|
-
account: z.ZodNullable<z.ZodObject<{
|
|
130
|
-
member: z.ZodString;
|
|
131
|
-
earned: z.ZodNumber;
|
|
132
|
-
accounted: z.ZodNumber;
|
|
133
|
-
paid: z.ZodNumber;
|
|
134
|
-
excluded: z.ZodNumber;
|
|
135
|
-
pending: z.ZodNumber;
|
|
136
|
-
counters: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
137
|
-
baseline: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
138
|
-
observation: z.ZodNullable<z.ZodString>;
|
|
139
|
-
nextSettlementAt: z.ZodNullable<z.ZodNumber>;
|
|
140
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
141
|
-
}, z.core.$strict>>;
|
|
142
|
-
items: z.ZodArray<z.ZodObject<{
|
|
143
|
-
id: z.ZodString;
|
|
144
|
-
day: z.ZodString;
|
|
145
|
-
observation: z.ZodString;
|
|
146
|
-
qualification: z.ZodString;
|
|
147
|
-
earned: z.ZodNumber;
|
|
148
|
-
growth: z.ZodNumber;
|
|
149
|
-
paid: z.ZodNumber;
|
|
150
|
-
excluded: z.ZodNumber;
|
|
151
|
-
entry: z.ZodNullable<z.ZodString>;
|
|
152
|
-
createdAt: z.ZodNumber;
|
|
153
|
-
}, z.core.$strict>>;
|
|
154
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
155
|
-
}, z.core.$strict>;
|
|
156
|
-
declare const engagementChangePreviewInputSchema: z.ZodObject<{
|
|
157
|
-
code: z.ZodString;
|
|
158
|
-
}, z.core.$strict>;
|
|
159
|
-
declare const engagementChangeSchema: z.ZodObject<{
|
|
160
|
-
actionId: z.ZodString;
|
|
161
|
-
code: z.ZodString;
|
|
162
|
-
expectedVersion: z.ZodString;
|
|
163
|
-
previewHash: z.ZodString;
|
|
164
|
-
}, z.core.$strict>;
|
|
165
|
-
declare const engagementChangePreviewSchema: z.ZodObject<{
|
|
166
|
-
rule: z.ZodString;
|
|
167
|
-
fromVersion: z.ZodString;
|
|
168
|
-
toVersion: z.ZodString;
|
|
169
|
-
previewHash: z.ZodString;
|
|
170
|
-
definition: z.ZodObject<{
|
|
171
|
-
key: z.ZodString;
|
|
172
|
-
qualifiedBy: z.ZodString;
|
|
173
|
-
balance: z.ZodString;
|
|
174
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
175
|
-
baseline: z.ZodLiteral<"historical">;
|
|
176
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
177
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
178
|
-
scope: z.ZodEnum<{
|
|
179
|
-
member: "member";
|
|
180
|
-
project: "project";
|
|
181
|
-
}>;
|
|
182
|
-
period: z.ZodEnum<{
|
|
183
|
-
lifetime: "lifetime";
|
|
184
|
-
day: "day";
|
|
185
|
-
week: "week";
|
|
186
|
-
month: "month";
|
|
187
|
-
}>;
|
|
188
|
-
limit: z.ZodNumber;
|
|
189
|
-
}, z.core.$strict>>>;
|
|
190
|
-
}, z.core.$strict>;
|
|
191
|
-
boundary: z.ZodLiteral<"available-eligible-observation">;
|
|
192
|
-
settlement: z.ZodLiteral<"deferred">;
|
|
193
|
-
summary: z.ZodObject<{
|
|
194
|
-
knownAdmissions: z.ZodNumber;
|
|
195
|
-
accounts: z.ZodNumber;
|
|
196
|
-
uninitialized: z.ZodNumber;
|
|
197
|
-
pendingTransitions: z.ZodNumber;
|
|
198
|
-
earned: z.ZodString;
|
|
199
|
-
paid: z.ZodString;
|
|
200
|
-
excluded: z.ZodString;
|
|
201
|
-
pending: z.ZodString;
|
|
202
|
-
}, z.core.$strict>;
|
|
203
|
-
}, z.core.$strict>;
|
|
204
|
-
/**
|
|
205
|
-
* One page of an engagement rule's published versions, newest first. Unlike the strict definition
|
|
206
|
-
* authoring validates, a published version as read keeps parsing when a newer server adds fields.
|
|
207
|
-
*/
|
|
208
|
-
declare const engagementRuleVersionPageSchema: z.ZodObject<{
|
|
209
|
-
items: z.ZodArray<z.ZodObject<{
|
|
210
|
-
version: z.ZodString;
|
|
211
|
-
definition: z.ZodObject<{
|
|
212
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
213
|
-
scope: z.ZodEnum<{
|
|
214
|
-
member: "member";
|
|
215
|
-
project: "project";
|
|
216
|
-
}>;
|
|
217
|
-
period: z.ZodEnum<{
|
|
218
|
-
lifetime: "lifetime";
|
|
219
|
-
day: "day";
|
|
220
|
-
week: "week";
|
|
221
|
-
month: "month";
|
|
222
|
-
}>;
|
|
223
|
-
limit: z.ZodNumber;
|
|
224
|
-
}, z.core.$strip>>>;
|
|
225
|
-
key: z.ZodString;
|
|
226
|
-
qualifiedBy: z.ZodString;
|
|
227
|
-
balance: z.ZodString;
|
|
228
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
229
|
-
baseline: z.ZodLiteral<"historical">;
|
|
230
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
231
|
-
}, z.core.$strip>;
|
|
232
|
-
publishedAt: z.ZodNumber;
|
|
233
|
-
previousVersion: z.ZodNullable<z.ZodString>;
|
|
234
|
-
}, z.core.$strip>>;
|
|
235
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
/** @compat output */
|
|
238
|
-
type EngagementRuleVersionPage = z.infer<typeof engagementRuleVersionPageSchema>;
|
|
239
|
-
/** @deprecated Use `engagementRuleVersionPageSchema`. Removed in 2.0.0. */
|
|
240
|
-
declare const engagementVersionPageSchema: z.ZodObject<{
|
|
241
|
-
items: z.ZodArray<z.ZodObject<{
|
|
242
|
-
version: z.ZodString;
|
|
243
|
-
definition: z.ZodObject<{
|
|
244
|
-
key: z.ZodString;
|
|
245
|
-
qualifiedBy: z.ZodString;
|
|
246
|
-
balance: z.ZodString;
|
|
247
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
248
|
-
baseline: z.ZodLiteral<"historical">;
|
|
249
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
250
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
251
|
-
scope: z.ZodEnum<{
|
|
252
|
-
member: "member";
|
|
253
|
-
project: "project";
|
|
254
|
-
}>;
|
|
255
|
-
period: z.ZodEnum<{
|
|
256
|
-
lifetime: "lifetime";
|
|
257
|
-
day: "day";
|
|
258
|
-
week: "week";
|
|
259
|
-
month: "month";
|
|
260
|
-
}>;
|
|
261
|
-
limit: z.ZodNumber;
|
|
262
|
-
}, z.core.$strict>>>;
|
|
263
|
-
}, z.core.$strict>;
|
|
264
|
-
publishedAt: z.ZodNumber;
|
|
265
|
-
previousVersion: z.ZodNullable<z.ZodString>;
|
|
266
|
-
}, z.core.$strict>>;
|
|
267
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
268
|
-
}, z.core.$strict>;
|
|
269
|
-
/** @deprecated Use `management.engagement.ruleVersions(rule, { cursor })`. Removed in 2.0.0. */
|
|
270
|
-
declare const engagementVersionQuerySchema: z.ZodObject<{
|
|
271
|
-
rule: z.ZodString;
|
|
272
|
-
before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
273
|
-
}, z.core.$strict>;
|
|
274
|
-
declare const engagementBoundaryPageSchema: z.ZodObject<{
|
|
275
|
-
current: z.ZodNullable<z.ZodObject<{
|
|
276
|
-
version: z.ZodString;
|
|
277
|
-
definition: z.ZodObject<{
|
|
278
|
-
key: z.ZodString;
|
|
279
|
-
qualifiedBy: z.ZodString;
|
|
280
|
-
balance: z.ZodString;
|
|
281
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
282
|
-
baseline: z.ZodLiteral<"historical">;
|
|
283
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
284
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
285
|
-
scope: z.ZodEnum<{
|
|
286
|
-
member: "member";
|
|
287
|
-
project: "project";
|
|
288
|
-
}>;
|
|
289
|
-
period: z.ZodEnum<{
|
|
290
|
-
lifetime: "lifetime";
|
|
291
|
-
day: "day";
|
|
292
|
-
week: "week";
|
|
293
|
-
month: "month";
|
|
294
|
-
}>;
|
|
295
|
-
limit: z.ZodNumber;
|
|
296
|
-
}, z.core.$strict>>>;
|
|
297
|
-
}, z.core.$strict>;
|
|
298
|
-
publishedAt: z.ZodNumber;
|
|
299
|
-
}, z.core.$strict>>;
|
|
300
|
-
requested: z.ZodObject<{
|
|
301
|
-
version: z.ZodString;
|
|
302
|
-
definition: z.ZodObject<{
|
|
303
|
-
key: z.ZodString;
|
|
304
|
-
qualifiedBy: z.ZodString;
|
|
305
|
-
balance: z.ZodString;
|
|
306
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
307
|
-
baseline: z.ZodLiteral<"historical">;
|
|
308
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
309
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
310
|
-
scope: z.ZodEnum<{
|
|
311
|
-
member: "member";
|
|
312
|
-
project: "project";
|
|
313
|
-
}>;
|
|
314
|
-
period: z.ZodEnum<{
|
|
315
|
-
lifetime: "lifetime";
|
|
316
|
-
day: "day";
|
|
317
|
-
week: "week";
|
|
318
|
-
month: "month";
|
|
319
|
-
}>;
|
|
320
|
-
limit: z.ZodNumber;
|
|
321
|
-
}, z.core.$strict>>>;
|
|
322
|
-
}, z.core.$strict>;
|
|
323
|
-
publishedAt: z.ZodNumber;
|
|
324
|
-
}, z.core.$strict>;
|
|
325
|
-
items: z.ZodArray<z.ZodObject<{
|
|
326
|
-
from: z.ZodString;
|
|
327
|
-
to: z.ZodString;
|
|
328
|
-
baseline: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
329
|
-
observedAt: z.ZodNumber;
|
|
330
|
-
settlement: z.ZodObject<{
|
|
331
|
-
id: z.ZodString;
|
|
332
|
-
day: z.ZodString;
|
|
333
|
-
observation: z.ZodString;
|
|
334
|
-
qualification: z.ZodString;
|
|
335
|
-
earned: z.ZodNumber;
|
|
336
|
-
growth: z.ZodNumber;
|
|
337
|
-
paid: z.ZodNumber;
|
|
338
|
-
excluded: z.ZodNumber;
|
|
339
|
-
entry: z.ZodNullable<z.ZodString>;
|
|
340
|
-
createdAt: z.ZodNumber;
|
|
341
|
-
}, z.core.$strict>;
|
|
342
|
-
}, z.core.$strict>>;
|
|
343
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
344
|
-
}, z.core.$strict>;
|
|
345
|
-
/** Bundled default or named export of defineEngagementReward. */
|
|
346
|
-
declare const engagementArtifactSchema: z.ZodObject<{
|
|
347
|
-
code: z.ZodString;
|
|
348
|
-
}, z.core.$strict>;
|
|
349
|
-
declare const engagementDeploymentEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
350
|
-
code: z.ZodString;
|
|
351
|
-
rule: z.ZodObject<{
|
|
352
|
-
version: z.ZodString;
|
|
353
|
-
definition: z.ZodObject<{
|
|
354
|
-
key: z.ZodString;
|
|
355
|
-
qualifiedBy: z.ZodString;
|
|
356
|
-
balance: z.ZodString;
|
|
357
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
358
|
-
baseline: z.ZodLiteral<"historical">;
|
|
359
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
360
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
361
|
-
scope: z.ZodEnum<{
|
|
362
|
-
member: "member";
|
|
363
|
-
project: "project";
|
|
364
|
-
}>;
|
|
365
|
-
period: z.ZodEnum<{
|
|
366
|
-
lifetime: "lifetime";
|
|
367
|
-
day: "day";
|
|
368
|
-
week: "week";
|
|
369
|
-
month: "month";
|
|
370
|
-
}>;
|
|
371
|
-
limit: z.ZodNumber;
|
|
372
|
-
}, z.core.$strict>>>;
|
|
373
|
-
}, z.core.$strict>;
|
|
374
|
-
publishedAt: z.ZodNumber;
|
|
375
|
-
}, z.core.$strict>;
|
|
376
|
-
kind: z.ZodLiteral<"create">;
|
|
377
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
-
code: z.ZodString;
|
|
379
|
-
rule: z.ZodObject<{
|
|
380
|
-
version: z.ZodString;
|
|
381
|
-
definition: z.ZodObject<{
|
|
382
|
-
key: z.ZodString;
|
|
383
|
-
qualifiedBy: z.ZodString;
|
|
384
|
-
balance: z.ZodString;
|
|
385
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
386
|
-
baseline: z.ZodLiteral<"historical">;
|
|
387
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
388
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
389
|
-
scope: z.ZodEnum<{
|
|
390
|
-
member: "member";
|
|
391
|
-
project: "project";
|
|
392
|
-
}>;
|
|
393
|
-
period: z.ZodEnum<{
|
|
394
|
-
lifetime: "lifetime";
|
|
395
|
-
day: "day";
|
|
396
|
-
week: "week";
|
|
397
|
-
month: "month";
|
|
398
|
-
}>;
|
|
399
|
-
limit: z.ZodNumber;
|
|
400
|
-
}, z.core.$strict>>>;
|
|
401
|
-
}, z.core.$strict>;
|
|
402
|
-
publishedAt: z.ZodNumber;
|
|
403
|
-
}, z.core.$strict>;
|
|
404
|
-
kind: z.ZodLiteral<"unchanged">;
|
|
405
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
-
code: z.ZodString;
|
|
407
|
-
rule: z.ZodObject<{
|
|
408
|
-
version: z.ZodString;
|
|
409
|
-
definition: z.ZodObject<{
|
|
410
|
-
key: z.ZodString;
|
|
411
|
-
qualifiedBy: z.ZodString;
|
|
412
|
-
balance: z.ZodString;
|
|
413
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
414
|
-
baseline: z.ZodLiteral<"historical">;
|
|
415
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
416
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
417
|
-
scope: z.ZodEnum<{
|
|
418
|
-
member: "member";
|
|
419
|
-
project: "project";
|
|
420
|
-
}>;
|
|
421
|
-
period: z.ZodEnum<{
|
|
422
|
-
lifetime: "lifetime";
|
|
423
|
-
day: "day";
|
|
424
|
-
week: "week";
|
|
425
|
-
month: "month";
|
|
426
|
-
}>;
|
|
427
|
-
limit: z.ZodNumber;
|
|
428
|
-
}, z.core.$strict>>>;
|
|
429
|
-
}, z.core.$strict>;
|
|
430
|
-
publishedAt: z.ZodNumber;
|
|
431
|
-
}, z.core.$strict>;
|
|
432
|
-
kind: z.ZodLiteral<"change">;
|
|
433
|
-
change: z.ZodObject<{
|
|
434
|
-
rule: z.ZodString;
|
|
435
|
-
fromVersion: z.ZodString;
|
|
436
|
-
toVersion: z.ZodString;
|
|
437
|
-
previewHash: z.ZodString;
|
|
438
|
-
definition: z.ZodObject<{
|
|
439
|
-
key: z.ZodString;
|
|
440
|
-
qualifiedBy: z.ZodString;
|
|
441
|
-
balance: z.ZodString;
|
|
442
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
443
|
-
baseline: z.ZodLiteral<"historical">;
|
|
444
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
445
|
-
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
446
|
-
scope: z.ZodEnum<{
|
|
447
|
-
member: "member";
|
|
448
|
-
project: "project";
|
|
449
|
-
}>;
|
|
450
|
-
period: z.ZodEnum<{
|
|
451
|
-
lifetime: "lifetime";
|
|
452
|
-
day: "day";
|
|
453
|
-
week: "week";
|
|
454
|
-
month: "month";
|
|
455
|
-
}>;
|
|
456
|
-
limit: z.ZodNumber;
|
|
457
|
-
}, z.core.$strict>>>;
|
|
458
|
-
}, z.core.$strict>;
|
|
459
|
-
boundary: z.ZodLiteral<"available-eligible-observation">;
|
|
460
|
-
settlement: z.ZodLiteral<"deferred">;
|
|
461
|
-
summary: z.ZodObject<{
|
|
462
|
-
knownAdmissions: z.ZodNumber;
|
|
463
|
-
accounts: z.ZodNumber;
|
|
464
|
-
uninitialized: z.ZodNumber;
|
|
465
|
-
pendingTransitions: z.ZodNumber;
|
|
466
|
-
earned: z.ZodString;
|
|
467
|
-
paid: z.ZodString;
|
|
468
|
-
excluded: z.ZodString;
|
|
469
|
-
pending: z.ZodString;
|
|
470
|
-
}, z.core.$strict>;
|
|
471
|
-
}, z.core.$strict>;
|
|
472
|
-
}, z.core.$strict>], "kind">;
|
|
473
|
-
|
|
474
|
-
declare const leaderboardWindowSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
475
|
-
kind: z.ZodLiteral<"all-time">;
|
|
476
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
477
|
-
kind: z.ZodLiteral<"fixed">;
|
|
478
|
-
start: z.ZodNumber;
|
|
479
|
-
end: z.ZodNumber;
|
|
480
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
481
|
-
kind: z.ZodLiteral<"rolling">;
|
|
482
|
-
days: z.ZodNumber;
|
|
483
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
484
|
-
kind: z.ZodLiteral<"calendar">;
|
|
485
|
-
period: z.ZodEnum<{
|
|
486
|
-
day: "day";
|
|
487
|
-
week: "week";
|
|
488
|
-
month: "month";
|
|
489
|
-
}>;
|
|
490
|
-
}, z.core.$strip>], "kind">;
|
|
491
|
-
declare const leaderboardPrizeRewardSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
492
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
493
|
-
balance: z.ZodString;
|
|
494
|
-
amount: z.ZodNumber;
|
|
495
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
496
|
-
kind: z.ZodLiteral<"tier">;
|
|
497
|
-
reward: z.ZodObject<{
|
|
498
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
499
|
-
group: z.ZodOptional<z.ZodString>;
|
|
500
|
-
id: z.ZodString;
|
|
501
|
-
title: z.ZodString;
|
|
502
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
503
|
-
id: z.ZodString;
|
|
504
|
-
title: z.ZodString;
|
|
505
|
-
}, z.core.$strict>>;
|
|
506
|
-
inventory: z.ZodObject<{
|
|
507
|
-
kind: z.ZodLiteral<"untracked">;
|
|
508
|
-
}, z.core.$strict>;
|
|
509
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
510
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
511
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
512
|
-
kind: z.ZodLiteral<"automatic">;
|
|
513
|
-
}, z.core.$strict>], "kind">;
|
|
514
|
-
}, z.core.$strict>;
|
|
515
|
-
tier: z.ZodString;
|
|
516
|
-
}, z.core.$strict>]>;
|
|
517
|
-
declare const leaderboardPrizeSchema: z.ZodObject<{
|
|
518
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
519
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
520
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
521
|
-
balance: z.ZodString;
|
|
522
|
-
amount: z.ZodNumber;
|
|
523
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
524
|
-
kind: z.ZodLiteral<"tier">;
|
|
525
|
-
reward: z.ZodObject<{
|
|
526
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
527
|
-
group: z.ZodOptional<z.ZodString>;
|
|
528
|
-
id: z.ZodString;
|
|
529
|
-
title: z.ZodString;
|
|
530
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
531
|
-
id: z.ZodString;
|
|
532
|
-
title: z.ZodString;
|
|
533
|
-
}, z.core.$strict>>;
|
|
534
|
-
inventory: z.ZodObject<{
|
|
535
|
-
kind: z.ZodLiteral<"untracked">;
|
|
536
|
-
}, z.core.$strict>;
|
|
537
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
538
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
539
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
540
|
-
kind: z.ZodLiteral<"automatic">;
|
|
541
|
-
}, z.core.$strict>], "kind">;
|
|
542
|
-
}, z.core.$strict>;
|
|
543
|
-
tier: z.ZodString;
|
|
544
|
-
}, z.core.$strict>]>>;
|
|
545
|
-
}, z.core.$strict>;
|
|
546
|
-
/** An amount in a unit's smallest denomination, as a decimal string: `"1000000"` is 1 USDC. */
|
|
547
|
-
declare const baseUnitsSchema: z.ZodString;
|
|
548
|
-
/**
|
|
549
|
-
* What a pool prize is counted in: `"points"`, paid into a point ledger on approval, or a token or
|
|
550
|
-
* currency Relay only records, with the number of decimals its base units carry.
|
|
551
|
-
*/
|
|
552
|
-
declare const leaderboardPoolUnitSchema: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
553
|
-
code: z.ZodString;
|
|
554
|
-
decimals: z.ZodNumber;
|
|
555
|
-
}, z.core.$strict>]>;
|
|
556
|
-
type LeaderboardPoolUnit = z.infer<typeof leaderboardPoolUnitSchema>;
|
|
557
|
-
/**
|
|
558
|
-
* A pool prize: a fixed amount split over the frozen eligible members in proportion to their
|
|
559
|
-
* scores. Each pool share rounds down, and the base units left over go one each to the largest
|
|
560
|
-
* remainders, earlier positions first, so the shares sum exactly to the pool.
|
|
561
|
-
*/
|
|
562
|
-
declare const leaderboardPoolSchema: z.ZodObject<{
|
|
563
|
-
amount: z.ZodString;
|
|
564
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
565
|
-
code: z.ZodString;
|
|
566
|
-
decimals: z.ZodNumber;
|
|
567
|
-
}, z.core.$strict>]>;
|
|
568
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
569
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
570
|
-
}, z.core.$strict>;
|
|
571
|
-
type LeaderboardPool = z.infer<typeof leaderboardPoolSchema>;
|
|
572
|
-
declare const leaderboardSettlementPolicySchema: z.ZodObject<{
|
|
573
|
-
at: z.ZodLiteral<"window-end">;
|
|
574
|
-
ties: z.ZodEnum<{
|
|
575
|
-
shared: "shared";
|
|
576
|
-
earliest: "earliest";
|
|
577
|
-
}>;
|
|
578
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
579
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
580
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
581
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
582
|
-
balance: z.ZodString;
|
|
583
|
-
amount: z.ZodNumber;
|
|
584
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
585
|
-
kind: z.ZodLiteral<"tier">;
|
|
586
|
-
reward: z.ZodObject<{
|
|
587
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
588
|
-
group: z.ZodOptional<z.ZodString>;
|
|
589
|
-
id: z.ZodString;
|
|
590
|
-
title: z.ZodString;
|
|
591
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
592
|
-
id: z.ZodString;
|
|
593
|
-
title: z.ZodString;
|
|
594
|
-
}, z.core.$strict>>;
|
|
595
|
-
inventory: z.ZodObject<{
|
|
596
|
-
kind: z.ZodLiteral<"untracked">;
|
|
597
|
-
}, z.core.$strict>;
|
|
598
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
599
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
600
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
601
|
-
kind: z.ZodLiteral<"automatic">;
|
|
602
|
-
}, z.core.$strict>], "kind">;
|
|
603
|
-
}, z.core.$strict>;
|
|
604
|
-
tier: z.ZodString;
|
|
605
|
-
}, z.core.$strict>]>>;
|
|
606
|
-
}, z.core.$strict>>;
|
|
607
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
608
|
-
amount: z.ZodString;
|
|
609
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
610
|
-
code: z.ZodString;
|
|
611
|
-
decimals: z.ZodNumber;
|
|
612
|
-
}, z.core.$strict>]>;
|
|
613
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
614
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
615
|
-
}, z.core.$strict>>;
|
|
616
|
-
}, z.core.$strict>;
|
|
617
|
-
type LeaderboardSettlementPolicy = z.infer<typeof leaderboardSettlementPolicySchema>;
|
|
618
|
-
declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
619
|
-
id: z.ZodString;
|
|
620
|
-
key: z.ZodOptional<z.ZodString>;
|
|
621
|
-
title: z.ZodString;
|
|
622
|
-
balance: z.ZodString;
|
|
623
|
-
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
624
|
-
kind: z.ZodLiteral<"balance">;
|
|
625
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
626
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
627
|
-
kind: z.ZodLiteral<"all-time">;
|
|
628
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
629
|
-
kind: z.ZodLiteral<"fixed">;
|
|
630
|
-
start: z.ZodNumber;
|
|
631
|
-
end: z.ZodNumber;
|
|
632
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
633
|
-
kind: z.ZodLiteral<"rolling">;
|
|
634
|
-
days: z.ZodNumber;
|
|
635
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
636
|
-
kind: z.ZodLiteral<"calendar">;
|
|
637
|
-
period: z.ZodEnum<{
|
|
638
|
-
day: "day";
|
|
639
|
-
week: "week";
|
|
640
|
-
month: "month";
|
|
641
|
-
}>;
|
|
642
|
-
}, z.core.$strip>], "kind">>;
|
|
643
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
644
|
-
kind: z.ZodLiteral<"earned">;
|
|
645
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
646
|
-
kind: z.ZodLiteral<"net">;
|
|
647
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
648
|
-
kind: z.ZodLiteral<"all-time">;
|
|
649
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
650
|
-
kind: z.ZodLiteral<"fixed">;
|
|
651
|
-
start: z.ZodNumber;
|
|
652
|
-
end: z.ZodNumber;
|
|
653
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
654
|
-
kind: z.ZodLiteral<"rolling">;
|
|
655
|
-
days: z.ZodNumber;
|
|
656
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
657
|
-
kind: z.ZodLiteral<"calendar">;
|
|
658
|
-
period: z.ZodEnum<{
|
|
659
|
-
day: "day";
|
|
660
|
-
week: "week";
|
|
661
|
-
month: "month";
|
|
662
|
-
}>;
|
|
663
|
-
}, z.core.$strip>], "kind">>;
|
|
664
|
-
}, z.core.$strict>], "kind">>;
|
|
665
|
-
access: z.ZodDefault<z.ZodEnum<{
|
|
666
|
-
public: "public";
|
|
667
|
-
participants: "participants";
|
|
668
|
-
}>>;
|
|
669
|
-
group: z.ZodOptional<z.ZodString>;
|
|
670
|
-
includeUnscored: z.ZodOptional<z.ZodBoolean>;
|
|
671
|
-
settle: z.ZodOptional<z.ZodObject<{
|
|
672
|
-
at: z.ZodLiteral<"window-end">;
|
|
673
|
-
ties: z.ZodEnum<{
|
|
674
|
-
shared: "shared";
|
|
675
|
-
earliest: "earliest";
|
|
676
|
-
}>;
|
|
677
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
678
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
679
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
680
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
681
|
-
balance: z.ZodString;
|
|
682
|
-
amount: z.ZodNumber;
|
|
683
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
684
|
-
kind: z.ZodLiteral<"tier">;
|
|
685
|
-
reward: z.ZodObject<{
|
|
686
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
687
|
-
group: z.ZodOptional<z.ZodString>;
|
|
688
|
-
id: z.ZodString;
|
|
689
|
-
title: z.ZodString;
|
|
690
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
691
|
-
id: z.ZodString;
|
|
692
|
-
title: z.ZodString;
|
|
693
|
-
}, z.core.$strict>>;
|
|
694
|
-
inventory: z.ZodObject<{
|
|
695
|
-
kind: z.ZodLiteral<"untracked">;
|
|
696
|
-
}, z.core.$strict>;
|
|
697
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
698
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
699
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
700
|
-
kind: z.ZodLiteral<"automatic">;
|
|
701
|
-
}, z.core.$strict>], "kind">;
|
|
702
|
-
}, z.core.$strict>;
|
|
703
|
-
tier: z.ZodString;
|
|
704
|
-
}, z.core.$strict>]>>;
|
|
705
|
-
}, z.core.$strict>>;
|
|
706
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
707
|
-
amount: z.ZodString;
|
|
708
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
709
|
-
code: z.ZodString;
|
|
710
|
-
decimals: z.ZodNumber;
|
|
711
|
-
}, z.core.$strict>]>;
|
|
712
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
713
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
714
|
-
}, z.core.$strict>>;
|
|
715
|
-
}, z.core.$strict>>;
|
|
716
|
-
}, z.core.$strict>;
|
|
717
|
-
/** Known leaderboard data is read separately from its strict authoring definition. */
|
|
718
|
-
declare const leaderboardDefinitionResponseSchema: z.ZodObject<{
|
|
719
|
-
id: z.ZodString;
|
|
720
|
-
key: z.ZodOptional<z.ZodString>;
|
|
721
|
-
title: z.ZodString;
|
|
722
|
-
balance: z.ZodString;
|
|
723
|
-
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
724
|
-
kind: z.ZodLiteral<"balance">;
|
|
725
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
726
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
727
|
-
kind: z.ZodLiteral<"all-time">;
|
|
728
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
729
|
-
kind: z.ZodLiteral<"fixed">;
|
|
730
|
-
start: z.ZodNumber;
|
|
731
|
-
end: z.ZodNumber;
|
|
732
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
733
|
-
kind: z.ZodLiteral<"rolling">;
|
|
734
|
-
days: z.ZodNumber;
|
|
735
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
736
|
-
kind: z.ZodLiteral<"calendar">;
|
|
737
|
-
period: z.ZodEnum<{
|
|
738
|
-
day: "day";
|
|
739
|
-
week: "week";
|
|
740
|
-
month: "month";
|
|
741
|
-
}>;
|
|
742
|
-
}, z.core.$strip>], "kind">>;
|
|
743
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
744
|
-
kind: z.ZodLiteral<"earned">;
|
|
745
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
746
|
-
kind: z.ZodLiteral<"net">;
|
|
747
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
748
|
-
kind: z.ZodLiteral<"all-time">;
|
|
749
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
750
|
-
kind: z.ZodLiteral<"fixed">;
|
|
751
|
-
start: z.ZodNumber;
|
|
752
|
-
end: z.ZodNumber;
|
|
753
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
754
|
-
kind: z.ZodLiteral<"rolling">;
|
|
755
|
-
days: z.ZodNumber;
|
|
756
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
757
|
-
kind: z.ZodLiteral<"calendar">;
|
|
758
|
-
period: z.ZodEnum<{
|
|
759
|
-
day: "day";
|
|
760
|
-
week: "week";
|
|
761
|
-
month: "month";
|
|
762
|
-
}>;
|
|
763
|
-
}, z.core.$strip>], "kind">>;
|
|
764
|
-
}, z.core.$strict>], "kind">>;
|
|
765
|
-
access: z.ZodDefault<z.ZodEnum<{
|
|
766
|
-
public: "public";
|
|
767
|
-
participants: "participants";
|
|
768
|
-
}>>;
|
|
769
|
-
group: z.ZodOptional<z.ZodString>;
|
|
770
|
-
includeUnscored: z.ZodOptional<z.ZodBoolean>;
|
|
771
|
-
settle: z.ZodOptional<z.ZodObject<{
|
|
772
|
-
at: z.ZodLiteral<"window-end">;
|
|
773
|
-
ties: z.ZodEnum<{
|
|
774
|
-
shared: "shared";
|
|
775
|
-
earliest: "earliest";
|
|
776
|
-
}>;
|
|
777
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
778
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
779
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
780
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
781
|
-
balance: z.ZodString;
|
|
782
|
-
amount: z.ZodNumber;
|
|
783
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
784
|
-
kind: z.ZodLiteral<"tier">;
|
|
785
|
-
reward: z.ZodObject<{
|
|
786
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
787
|
-
group: z.ZodOptional<z.ZodString>;
|
|
788
|
-
id: z.ZodString;
|
|
789
|
-
title: z.ZodString;
|
|
790
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
791
|
-
id: z.ZodString;
|
|
792
|
-
title: z.ZodString;
|
|
793
|
-
}, z.core.$strict>>;
|
|
794
|
-
inventory: z.ZodObject<{
|
|
795
|
-
kind: z.ZodLiteral<"untracked">;
|
|
796
|
-
}, z.core.$strict>;
|
|
797
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
798
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
799
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
800
|
-
kind: z.ZodLiteral<"automatic">;
|
|
801
|
-
}, z.core.$strict>], "kind">;
|
|
802
|
-
}, z.core.$strict>;
|
|
803
|
-
tier: z.ZodString;
|
|
804
|
-
}, z.core.$strict>]>>;
|
|
805
|
-
}, z.core.$strict>>;
|
|
806
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
807
|
-
amount: z.ZodString;
|
|
808
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
809
|
-
code: z.ZodString;
|
|
810
|
-
decimals: z.ZodNumber;
|
|
811
|
-
}, z.core.$strict>]>;
|
|
812
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
813
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
814
|
-
}, z.core.$strict>>;
|
|
815
|
-
}, z.core.$strict>>;
|
|
816
|
-
}, z.core.$strict>;
|
|
817
|
-
type LeaderboardDefinition = z.infer<typeof leaderboardDefinitionSchema>;
|
|
818
|
-
declare const leaderboardAuthoringSchema: z.ZodObject<{
|
|
819
|
-
title: z.ZodString;
|
|
820
|
-
balance: z.ZodString;
|
|
821
|
-
access: z.ZodDefault<z.ZodEnum<{
|
|
822
|
-
public: "public";
|
|
823
|
-
participants: "participants";
|
|
824
|
-
}>>;
|
|
825
|
-
includeUnscored: z.ZodOptional<z.ZodBoolean>;
|
|
826
|
-
settle: z.ZodOptional<z.ZodObject<{
|
|
827
|
-
at: z.ZodLiteral<"window-end">;
|
|
828
|
-
ties: z.ZodEnum<{
|
|
829
|
-
shared: "shared";
|
|
830
|
-
earliest: "earliest";
|
|
831
|
-
}>;
|
|
832
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
833
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
834
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
835
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
836
|
-
balance: z.ZodString;
|
|
837
|
-
amount: z.ZodNumber;
|
|
838
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
839
|
-
kind: z.ZodLiteral<"tier">;
|
|
840
|
-
reward: z.ZodObject<{
|
|
841
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
842
|
-
group: z.ZodOptional<z.ZodString>;
|
|
843
|
-
id: z.ZodString;
|
|
844
|
-
title: z.ZodString;
|
|
845
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
846
|
-
id: z.ZodString;
|
|
847
|
-
title: z.ZodString;
|
|
848
|
-
}, z.core.$strict>>;
|
|
849
|
-
inventory: z.ZodObject<{
|
|
850
|
-
kind: z.ZodLiteral<"untracked">;
|
|
851
|
-
}, z.core.$strict>;
|
|
852
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
853
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
854
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
855
|
-
kind: z.ZodLiteral<"automatic">;
|
|
856
|
-
}, z.core.$strict>], "kind">;
|
|
857
|
-
}, z.core.$strict>;
|
|
858
|
-
tier: z.ZodString;
|
|
859
|
-
}, z.core.$strict>]>>;
|
|
860
|
-
}, z.core.$strict>>;
|
|
861
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
862
|
-
amount: z.ZodString;
|
|
863
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
864
|
-
code: z.ZodString;
|
|
865
|
-
decimals: z.ZodNumber;
|
|
866
|
-
}, z.core.$strict>]>;
|
|
867
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
868
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
869
|
-
}, z.core.$strict>>;
|
|
870
|
-
}, z.core.$strict>>;
|
|
871
|
-
score: z.ZodPreprocess<z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
872
|
-
kind: z.ZodLiteral<"balance">;
|
|
873
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
874
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
875
|
-
kind: z.ZodLiteral<"all-time">;
|
|
876
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
877
|
-
kind: z.ZodLiteral<"fixed">;
|
|
878
|
-
start: z.ZodNumber;
|
|
879
|
-
end: z.ZodNumber;
|
|
880
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
881
|
-
kind: z.ZodLiteral<"rolling">;
|
|
882
|
-
days: z.ZodNumber;
|
|
883
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
884
|
-
kind: z.ZodLiteral<"calendar">;
|
|
885
|
-
period: z.ZodEnum<{
|
|
886
|
-
day: "day";
|
|
887
|
-
week: "week";
|
|
888
|
-
month: "month";
|
|
889
|
-
}>;
|
|
890
|
-
}, z.core.$strip>], "kind">>;
|
|
891
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
892
|
-
kind: z.ZodLiteral<"earned">;
|
|
893
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
894
|
-
kind: z.ZodLiteral<"net">;
|
|
895
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
896
|
-
kind: z.ZodLiteral<"all-time">;
|
|
897
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
898
|
-
kind: z.ZodLiteral<"fixed">;
|
|
899
|
-
start: z.ZodNumber;
|
|
900
|
-
end: z.ZodNumber;
|
|
901
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
902
|
-
kind: z.ZodLiteral<"rolling">;
|
|
903
|
-
days: z.ZodNumber;
|
|
904
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
905
|
-
kind: z.ZodLiteral<"calendar">;
|
|
906
|
-
period: z.ZodEnum<{
|
|
907
|
-
day: "day";
|
|
908
|
-
week: "week";
|
|
909
|
-
month: "month";
|
|
910
|
-
}>;
|
|
911
|
-
}, z.core.$strip>], "kind">>;
|
|
912
|
-
}, z.core.$strict>], "kind">>, unknown>;
|
|
913
|
-
group: z.ZodOptional<z.ZodString>;
|
|
914
|
-
key: z.ZodString;
|
|
915
|
-
}, z.core.$strict>;
|
|
916
|
-
declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
917
|
-
title: z.ZodString;
|
|
918
|
-
balance: z.ZodString;
|
|
919
|
-
access: z.ZodDefault<z.ZodEnum<{
|
|
920
|
-
public: "public";
|
|
921
|
-
participants: "participants";
|
|
922
|
-
}>>;
|
|
923
|
-
includeUnscored: z.ZodOptional<z.ZodBoolean>;
|
|
924
|
-
settle: z.ZodOptional<z.ZodObject<{
|
|
925
|
-
at: z.ZodLiteral<"window-end">;
|
|
926
|
-
ties: z.ZodEnum<{
|
|
927
|
-
shared: "shared";
|
|
928
|
-
earliest: "earliest";
|
|
929
|
-
}>;
|
|
930
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
931
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
932
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
933
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
934
|
-
balance: z.ZodString;
|
|
935
|
-
amount: z.ZodNumber;
|
|
936
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
937
|
-
kind: z.ZodLiteral<"tier">;
|
|
938
|
-
reward: z.ZodObject<{
|
|
939
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
940
|
-
group: z.ZodOptional<z.ZodString>;
|
|
941
|
-
id: z.ZodString;
|
|
942
|
-
title: z.ZodString;
|
|
943
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
944
|
-
id: z.ZodString;
|
|
945
|
-
title: z.ZodString;
|
|
946
|
-
}, z.core.$strict>>;
|
|
947
|
-
inventory: z.ZodObject<{
|
|
948
|
-
kind: z.ZodLiteral<"untracked">;
|
|
949
|
-
}, z.core.$strict>;
|
|
950
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
951
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
952
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
953
|
-
kind: z.ZodLiteral<"automatic">;
|
|
954
|
-
}, z.core.$strict>], "kind">;
|
|
955
|
-
}, z.core.$strict>;
|
|
956
|
-
tier: z.ZodString;
|
|
957
|
-
}, z.core.$strict>]>>;
|
|
958
|
-
}, z.core.$strict>>;
|
|
959
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
960
|
-
amount: z.ZodString;
|
|
961
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
962
|
-
code: z.ZodString;
|
|
963
|
-
decimals: z.ZodNumber;
|
|
964
|
-
}, z.core.$strict>]>;
|
|
965
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
966
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
967
|
-
}, z.core.$strict>>;
|
|
968
|
-
}, z.core.$strict>>;
|
|
969
|
-
score: z.ZodPreprocess<z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
970
|
-
kind: z.ZodLiteral<"balance">;
|
|
971
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
972
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
973
|
-
kind: z.ZodLiteral<"all-time">;
|
|
974
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
975
|
-
kind: z.ZodLiteral<"fixed">;
|
|
976
|
-
start: z.ZodNumber;
|
|
977
|
-
end: z.ZodNumber;
|
|
978
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
979
|
-
kind: z.ZodLiteral<"rolling">;
|
|
980
|
-
days: z.ZodNumber;
|
|
981
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
982
|
-
kind: z.ZodLiteral<"calendar">;
|
|
983
|
-
period: z.ZodEnum<{
|
|
984
|
-
day: "day";
|
|
985
|
-
week: "week";
|
|
986
|
-
month: "month";
|
|
987
|
-
}>;
|
|
988
|
-
}, z.core.$strip>], "kind">>;
|
|
989
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
990
|
-
kind: z.ZodLiteral<"earned">;
|
|
991
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
992
|
-
kind: z.ZodLiteral<"net">;
|
|
993
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
994
|
-
kind: z.ZodLiteral<"all-time">;
|
|
995
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
996
|
-
kind: z.ZodLiteral<"fixed">;
|
|
997
|
-
start: z.ZodNumber;
|
|
998
|
-
end: z.ZodNumber;
|
|
999
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1000
|
-
kind: z.ZodLiteral<"rolling">;
|
|
1001
|
-
days: z.ZodNumber;
|
|
1002
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1003
|
-
kind: z.ZodLiteral<"calendar">;
|
|
1004
|
-
period: z.ZodEnum<{
|
|
1005
|
-
day: "day";
|
|
1006
|
-
week: "week";
|
|
1007
|
-
month: "month";
|
|
1008
|
-
}>;
|
|
1009
|
-
}, z.core.$strip>], "kind">>;
|
|
1010
|
-
}, z.core.$strict>], "kind">>, unknown>;
|
|
1011
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
key: z.ZodString;
|
|
1013
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1014
|
-
code: z.ZodString;
|
|
1015
|
-
}, z.core.$strict>]>;
|
|
1016
|
-
declare const publishedLeaderboardSchema: z.ZodObject<{
|
|
1017
|
-
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1018
|
-
version: z.ZodString;
|
|
1019
|
-
definition: z.ZodObject<{
|
|
1020
|
-
id: z.ZodString;
|
|
1021
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1022
|
-
title: z.ZodString;
|
|
1023
|
-
balance: z.ZodString;
|
|
1024
|
-
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1025
|
-
kind: z.ZodLiteral<"balance">;
|
|
1026
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1027
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1028
|
-
kind: z.ZodLiteral<"all-time">;
|
|
1029
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1030
|
-
kind: z.ZodLiteral<"fixed">;
|
|
1031
|
-
start: z.ZodNumber;
|
|
1032
|
-
end: z.ZodNumber;
|
|
1033
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1034
|
-
kind: z.ZodLiteral<"rolling">;
|
|
1035
|
-
days: z.ZodNumber;
|
|
1036
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1037
|
-
kind: z.ZodLiteral<"calendar">;
|
|
1038
|
-
period: z.ZodEnum<{
|
|
1039
|
-
day: "day";
|
|
1040
|
-
week: "week";
|
|
1041
|
-
month: "month";
|
|
1042
|
-
}>;
|
|
1043
|
-
}, z.core.$strip>], "kind">>;
|
|
1044
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1045
|
-
kind: z.ZodLiteral<"earned">;
|
|
1046
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1047
|
-
kind: z.ZodLiteral<"net">;
|
|
1048
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1049
|
-
kind: z.ZodLiteral<"all-time">;
|
|
1050
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1051
|
-
kind: z.ZodLiteral<"fixed">;
|
|
1052
|
-
start: z.ZodNumber;
|
|
1053
|
-
end: z.ZodNumber;
|
|
1054
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1055
|
-
kind: z.ZodLiteral<"rolling">;
|
|
1056
|
-
days: z.ZodNumber;
|
|
1057
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1058
|
-
kind: z.ZodLiteral<"calendar">;
|
|
1059
|
-
period: z.ZodEnum<{
|
|
1060
|
-
day: "day";
|
|
1061
|
-
week: "week";
|
|
1062
|
-
month: "month";
|
|
1063
|
-
}>;
|
|
1064
|
-
}, z.core.$strip>], "kind">>;
|
|
1065
|
-
}, z.core.$strict>], "kind">>;
|
|
1066
|
-
access: z.ZodDefault<z.ZodEnum<{
|
|
1067
|
-
public: "public";
|
|
1068
|
-
participants: "participants";
|
|
1069
|
-
}>>;
|
|
1070
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1071
|
-
includeUnscored: z.ZodOptional<z.ZodBoolean>;
|
|
1072
|
-
settle: z.ZodOptional<z.ZodObject<{
|
|
1073
|
-
at: z.ZodLiteral<"window-end">;
|
|
1074
|
-
ties: z.ZodEnum<{
|
|
1075
|
-
shared: "shared";
|
|
1076
|
-
earliest: "earliest";
|
|
1077
|
-
}>;
|
|
1078
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
1079
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1080
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1081
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1082
|
-
balance: z.ZodString;
|
|
1083
|
-
amount: z.ZodNumber;
|
|
1084
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1085
|
-
kind: z.ZodLiteral<"tier">;
|
|
1086
|
-
reward: z.ZodObject<{
|
|
1087
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
1088
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1089
|
-
id: z.ZodString;
|
|
1090
|
-
title: z.ZodString;
|
|
1091
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
1092
|
-
id: z.ZodString;
|
|
1093
|
-
title: z.ZodString;
|
|
1094
|
-
}, z.core.$strict>>;
|
|
1095
|
-
inventory: z.ZodObject<{
|
|
1096
|
-
kind: z.ZodLiteral<"untracked">;
|
|
1097
|
-
}, z.core.$strict>;
|
|
1098
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1099
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
1100
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1101
|
-
kind: z.ZodLiteral<"automatic">;
|
|
1102
|
-
}, z.core.$strict>], "kind">;
|
|
1103
|
-
}, z.core.$strict>;
|
|
1104
|
-
tier: z.ZodString;
|
|
1105
|
-
}, z.core.$strict>]>>;
|
|
1106
|
-
}, z.core.$strict>>;
|
|
1107
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
1108
|
-
amount: z.ZodString;
|
|
1109
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1110
|
-
code: z.ZodString;
|
|
1111
|
-
decimals: z.ZodNumber;
|
|
1112
|
-
}, z.core.$strict>]>;
|
|
1113
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1115
|
-
}, z.core.$strict>>;
|
|
1116
|
-
}, z.core.$strict>>;
|
|
1117
|
-
}, z.core.$strict>;
|
|
1118
|
-
publishedAt: z.ZodNumber;
|
|
1119
|
-
actor: z.ZodNullable<z.ZodString>;
|
|
1120
|
-
}, z.core.$strip>;
|
|
1121
|
-
declare const leaderboardQuerySchema: z.ZodObject<{
|
|
1122
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1123
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1124
|
-
}, z.core.$strict>;
|
|
1125
|
-
type LeaderboardQuery = z.input<typeof leaderboardQuerySchema>;
|
|
1126
|
-
declare const leaderboardRowSchema: z.ZodObject<{
|
|
1127
|
-
participant: z.ZodString;
|
|
1128
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1129
|
-
name: z.ZodString;
|
|
1130
|
-
score: z.ZodNumber;
|
|
1131
|
-
rank: z.ZodNumber;
|
|
1132
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1133
|
-
id: z.ZodString;
|
|
1134
|
-
name: z.ZodString;
|
|
1135
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1136
|
-
source: z.ZodLiteral<"upload">;
|
|
1137
|
-
url: z.ZodString;
|
|
1138
|
-
seed: z.ZodString;
|
|
1139
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1140
|
-
source: z.ZodLiteral<"account">;
|
|
1141
|
-
provider: z.ZodEnum<{
|
|
1142
|
-
discord: "discord";
|
|
1143
|
-
google: "google";
|
|
1144
|
-
x: "x";
|
|
1145
|
-
}>;
|
|
1146
|
-
url: z.ZodString;
|
|
1147
|
-
seed: z.ZodString;
|
|
1148
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1149
|
-
source: z.ZodLiteral<"generated">;
|
|
1150
|
-
seed: z.ZodString;
|
|
1151
|
-
}, z.core.$strip>], "source">;
|
|
1152
|
-
}, z.core.$strip>>;
|
|
1153
|
-
}, z.core.$strip>;
|
|
1154
|
-
declare const leaderboardPageSchema: z.ZodObject<{
|
|
1155
|
-
leaderboard: z.ZodString;
|
|
1156
|
-
title: z.ZodString;
|
|
1157
|
-
version: z.ZodString;
|
|
1158
|
-
calculation: z.ZodEnum<{
|
|
1159
|
-
balance: "balance";
|
|
1160
|
-
earned: "earned";
|
|
1161
|
-
net: "net";
|
|
1162
|
-
}>;
|
|
1163
|
-
period: z.ZodObject<{
|
|
1164
|
-
start: z.ZodNullable<z.ZodNumber>;
|
|
1165
|
-
end: z.ZodNullable<z.ZodNumber>;
|
|
1166
|
-
}, z.core.$strip>;
|
|
1167
|
-
calculatedAt: z.ZodNumber;
|
|
1168
|
-
lastEntryAt: z.ZodNullable<z.ZodNumber>;
|
|
1169
|
-
total: z.ZodNumber;
|
|
1170
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1171
|
-
participant: z.ZodString;
|
|
1172
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
name: z.ZodString;
|
|
1174
|
-
score: z.ZodNumber;
|
|
1175
|
-
rank: z.ZodNumber;
|
|
1176
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1177
|
-
id: z.ZodString;
|
|
1178
|
-
name: z.ZodString;
|
|
1179
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1180
|
-
source: z.ZodLiteral<"upload">;
|
|
1181
|
-
url: z.ZodString;
|
|
1182
|
-
seed: z.ZodString;
|
|
1183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1184
|
-
source: z.ZodLiteral<"account">;
|
|
1185
|
-
provider: z.ZodEnum<{
|
|
1186
|
-
discord: "discord";
|
|
1187
|
-
google: "google";
|
|
1188
|
-
x: "x";
|
|
1189
|
-
}>;
|
|
1190
|
-
url: z.ZodString;
|
|
1191
|
-
seed: z.ZodString;
|
|
1192
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1193
|
-
source: z.ZodLiteral<"generated">;
|
|
1194
|
-
seed: z.ZodString;
|
|
1195
|
-
}, z.core.$strip>], "source">;
|
|
1196
|
-
}, z.core.$strip>>;
|
|
1197
|
-
}, z.core.$strip>>;
|
|
1198
|
-
me: z.ZodNullable<z.ZodObject<{
|
|
1199
|
-
participant: z.ZodString;
|
|
1200
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1201
|
-
name: z.ZodString;
|
|
1202
|
-
score: z.ZodNumber;
|
|
1203
|
-
rank: z.ZodNumber;
|
|
1204
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1205
|
-
id: z.ZodString;
|
|
1206
|
-
name: z.ZodString;
|
|
1207
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1208
|
-
source: z.ZodLiteral<"upload">;
|
|
1209
|
-
url: z.ZodString;
|
|
1210
|
-
seed: z.ZodString;
|
|
1211
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1212
|
-
source: z.ZodLiteral<"account">;
|
|
1213
|
-
provider: z.ZodEnum<{
|
|
1214
|
-
discord: "discord";
|
|
1215
|
-
google: "google";
|
|
1216
|
-
x: "x";
|
|
1217
|
-
}>;
|
|
1218
|
-
url: z.ZodString;
|
|
1219
|
-
seed: z.ZodString;
|
|
1220
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1221
|
-
source: z.ZodLiteral<"generated">;
|
|
1222
|
-
seed: z.ZodString;
|
|
1223
|
-
}, z.core.$strip>], "source">;
|
|
1224
|
-
}, z.core.$strip>>;
|
|
1225
|
-
}, z.core.$strip>>;
|
|
1226
|
-
nearby: z.ZodArray<z.ZodObject<{
|
|
1227
|
-
participant: z.ZodString;
|
|
1228
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1229
|
-
name: z.ZodString;
|
|
1230
|
-
score: z.ZodNumber;
|
|
1231
|
-
rank: z.ZodNumber;
|
|
1232
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1233
|
-
id: z.ZodString;
|
|
1234
|
-
name: z.ZodString;
|
|
1235
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1236
|
-
source: z.ZodLiteral<"upload">;
|
|
1237
|
-
url: z.ZodString;
|
|
1238
|
-
seed: z.ZodString;
|
|
1239
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1240
|
-
source: z.ZodLiteral<"account">;
|
|
1241
|
-
provider: z.ZodEnum<{
|
|
1242
|
-
discord: "discord";
|
|
1243
|
-
google: "google";
|
|
1244
|
-
x: "x";
|
|
1245
|
-
}>;
|
|
1246
|
-
url: z.ZodString;
|
|
1247
|
-
seed: z.ZodString;
|
|
1248
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1249
|
-
source: z.ZodLiteral<"generated">;
|
|
1250
|
-
seed: z.ZodString;
|
|
1251
|
-
}, z.core.$strip>], "source">;
|
|
1252
|
-
}, z.core.$strip>>;
|
|
1253
|
-
}, z.core.$strip>>;
|
|
1254
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1255
|
-
}, z.core.$strip>;
|
|
1256
|
-
type LeaderboardPage = z.infer<typeof leaderboardPageSchema>;
|
|
1257
|
-
/**
|
|
1258
|
-
* A profile's current place on one board, calculated now. `rank` and `score` are null while the
|
|
1259
|
-
* member is unranked there (no counted points on a board without `includeUnscored`, excluded, or
|
|
1260
|
-
* outside the board's group).
|
|
1261
|
-
*/
|
|
1262
|
-
declare const leaderboardPlacementSchema: z.ZodObject<{
|
|
1263
|
-
leaderboard: z.ZodString;
|
|
1264
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
title: z.ZodString;
|
|
1266
|
-
profile: z.ZodString;
|
|
1267
|
-
rank: z.ZodNullable<z.ZodNumber>;
|
|
1268
|
-
score: z.ZodNullable<z.ZodNumber>;
|
|
1269
|
-
total: z.ZodNumber;
|
|
1270
|
-
}, z.core.$strip>;
|
|
1271
|
-
type LeaderboardPlacement = z.infer<typeof leaderboardPlacementSchema>;
|
|
1272
|
-
/** `relay.me.leaderboardHistory()`: one board, by key or ID. */
|
|
1273
|
-
declare const leaderboardHistoryQuerySchema: z.ZodObject<{
|
|
1274
|
-
board: z.ZodString;
|
|
1275
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1276
|
-
}, z.core.$strict>;
|
|
1277
|
-
type LeaderboardHistoryQuery = z.input<typeof leaderboardHistoryQuerySchema>;
|
|
1278
|
-
/**
|
|
1279
|
-
* One page of the signed-in member's own point entries that count toward a board's score, the most
|
|
1280
|
-
* recently recorded first: the board's ledger filtered by its window, quests and calculation, so
|
|
1281
|
-
* every page together sums to the member's score. `period` is the window the first page counted;
|
|
1282
|
-
* later pages keep it. An excluded member, or one outside the board's group, has no entries.
|
|
1283
|
-
*/
|
|
1284
|
-
declare const leaderboardHistoryPageSchema: z.ZodObject<{
|
|
1285
|
-
leaderboard: z.ZodString;
|
|
1286
|
-
period: z.ZodObject<{
|
|
1287
|
-
start: z.ZodNullable<z.ZodNumber>;
|
|
1288
|
-
end: z.ZodNullable<z.ZodNumber>;
|
|
1289
|
-
}, z.core.$strip>;
|
|
1290
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1291
|
-
id: z.ZodString;
|
|
1292
|
-
amount: z.ZodNumber;
|
|
1293
|
-
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
1294
|
-
at: z.ZodNumber;
|
|
1295
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
1296
|
-
reverses: z.ZodNullable<z.ZodString>;
|
|
1297
|
-
imported: z.ZodOptional<z.ZodBoolean>;
|
|
1298
|
-
}, z.core.$strip>>;
|
|
1299
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1300
|
-
}, z.core.$strip>;
|
|
1301
|
-
type LeaderboardHistoryPage = z.infer<typeof leaderboardHistoryPageSchema>;
|
|
1302
|
-
declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
1303
|
-
published: z.ZodObject<{
|
|
1304
|
-
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1305
|
-
version: z.ZodString;
|
|
1306
|
-
definition: z.ZodObject<{
|
|
1307
|
-
id: z.ZodString;
|
|
1308
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1309
|
-
title: z.ZodString;
|
|
1310
|
-
balance: z.ZodString;
|
|
1311
|
-
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1312
|
-
kind: z.ZodLiteral<"balance">;
|
|
1313
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1314
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1315
|
-
kind: z.ZodLiteral<"all-time">;
|
|
1316
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1317
|
-
kind: z.ZodLiteral<"fixed">;
|
|
1318
|
-
start: z.ZodNumber;
|
|
1319
|
-
end: z.ZodNumber;
|
|
1320
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1321
|
-
kind: z.ZodLiteral<"rolling">;
|
|
1322
|
-
days: z.ZodNumber;
|
|
1323
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1324
|
-
kind: z.ZodLiteral<"calendar">;
|
|
1325
|
-
period: z.ZodEnum<{
|
|
1326
|
-
day: "day";
|
|
1327
|
-
week: "week";
|
|
1328
|
-
month: "month";
|
|
1329
|
-
}>;
|
|
1330
|
-
}, z.core.$strip>], "kind">>;
|
|
1331
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1332
|
-
kind: z.ZodLiteral<"earned">;
|
|
1333
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1334
|
-
kind: z.ZodLiteral<"net">;
|
|
1335
|
-
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1336
|
-
kind: z.ZodLiteral<"all-time">;
|
|
1337
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1338
|
-
kind: z.ZodLiteral<"fixed">;
|
|
1339
|
-
start: z.ZodNumber;
|
|
1340
|
-
end: z.ZodNumber;
|
|
1341
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1342
|
-
kind: z.ZodLiteral<"rolling">;
|
|
1343
|
-
days: z.ZodNumber;
|
|
1344
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1345
|
-
kind: z.ZodLiteral<"calendar">;
|
|
1346
|
-
period: z.ZodEnum<{
|
|
1347
|
-
day: "day";
|
|
1348
|
-
week: "week";
|
|
1349
|
-
month: "month";
|
|
1350
|
-
}>;
|
|
1351
|
-
}, z.core.$strip>], "kind">>;
|
|
1352
|
-
}, z.core.$strict>], "kind">>;
|
|
1353
|
-
access: z.ZodDefault<z.ZodEnum<{
|
|
1354
|
-
public: "public";
|
|
1355
|
-
participants: "participants";
|
|
1356
|
-
}>>;
|
|
1357
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1358
|
-
includeUnscored: z.ZodOptional<z.ZodBoolean>;
|
|
1359
|
-
settle: z.ZodOptional<z.ZodObject<{
|
|
1360
|
-
at: z.ZodLiteral<"window-end">;
|
|
1361
|
-
ties: z.ZodEnum<{
|
|
1362
|
-
shared: "shared";
|
|
1363
|
-
earliest: "earliest";
|
|
1364
|
-
}>;
|
|
1365
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
1366
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1367
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1368
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1369
|
-
balance: z.ZodString;
|
|
1370
|
-
amount: z.ZodNumber;
|
|
1371
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1372
|
-
kind: z.ZodLiteral<"tier">;
|
|
1373
|
-
reward: z.ZodObject<{
|
|
1374
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
1375
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1376
|
-
id: z.ZodString;
|
|
1377
|
-
title: z.ZodString;
|
|
1378
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
1379
|
-
id: z.ZodString;
|
|
1380
|
-
title: z.ZodString;
|
|
1381
|
-
}, z.core.$strict>>;
|
|
1382
|
-
inventory: z.ZodObject<{
|
|
1383
|
-
kind: z.ZodLiteral<"untracked">;
|
|
1384
|
-
}, z.core.$strict>;
|
|
1385
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1386
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
1387
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1388
|
-
kind: z.ZodLiteral<"automatic">;
|
|
1389
|
-
}, z.core.$strict>], "kind">;
|
|
1390
|
-
}, z.core.$strict>;
|
|
1391
|
-
tier: z.ZodString;
|
|
1392
|
-
}, z.core.$strict>]>>;
|
|
1393
|
-
}, z.core.$strict>>;
|
|
1394
|
-
pool: z.ZodOptional<z.ZodObject<{
|
|
1395
|
-
amount: z.ZodString;
|
|
1396
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1397
|
-
code: z.ZodString;
|
|
1398
|
-
decimals: z.ZodNumber;
|
|
1399
|
-
}, z.core.$strict>]>;
|
|
1400
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
1401
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
-
}, z.core.$strict>>;
|
|
1403
|
-
}, z.core.$strict>>;
|
|
1404
|
-
}, z.core.$strict>;
|
|
1405
|
-
publishedAt: z.ZodNumber;
|
|
1406
|
-
actor: z.ZodNullable<z.ZodString>;
|
|
1407
|
-
}, z.core.$strip>;
|
|
1408
|
-
before: z.ZodNullable<z.ZodObject<{
|
|
1409
|
-
leaderboard: z.ZodString;
|
|
1410
|
-
title: z.ZodString;
|
|
1411
|
-
version: z.ZodString;
|
|
1412
|
-
calculation: z.ZodEnum<{
|
|
1413
|
-
balance: "balance";
|
|
1414
|
-
earned: "earned";
|
|
1415
|
-
net: "net";
|
|
1416
|
-
}>;
|
|
1417
|
-
period: z.ZodObject<{
|
|
1418
|
-
start: z.ZodNullable<z.ZodNumber>;
|
|
1419
|
-
end: z.ZodNullable<z.ZodNumber>;
|
|
1420
|
-
}, z.core.$strip>;
|
|
1421
|
-
calculatedAt: z.ZodNumber;
|
|
1422
|
-
lastEntryAt: z.ZodNullable<z.ZodNumber>;
|
|
1423
|
-
total: z.ZodNumber;
|
|
1424
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1425
|
-
participant: z.ZodString;
|
|
1426
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1427
|
-
name: z.ZodString;
|
|
1428
|
-
score: z.ZodNumber;
|
|
1429
|
-
rank: z.ZodNumber;
|
|
1430
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1431
|
-
id: z.ZodString;
|
|
1432
|
-
name: z.ZodString;
|
|
1433
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1434
|
-
source: z.ZodLiteral<"upload">;
|
|
1435
|
-
url: z.ZodString;
|
|
1436
|
-
seed: z.ZodString;
|
|
1437
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1438
|
-
source: z.ZodLiteral<"account">;
|
|
1439
|
-
provider: z.ZodEnum<{
|
|
1440
|
-
discord: "discord";
|
|
1441
|
-
google: "google";
|
|
1442
|
-
x: "x";
|
|
1443
|
-
}>;
|
|
1444
|
-
url: z.ZodString;
|
|
1445
|
-
seed: z.ZodString;
|
|
1446
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1447
|
-
source: z.ZodLiteral<"generated">;
|
|
1448
|
-
seed: z.ZodString;
|
|
1449
|
-
}, z.core.$strip>], "source">;
|
|
1450
|
-
}, z.core.$strip>>;
|
|
1451
|
-
}, z.core.$strip>>;
|
|
1452
|
-
me: z.ZodNullable<z.ZodObject<{
|
|
1453
|
-
participant: z.ZodString;
|
|
1454
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1455
|
-
name: z.ZodString;
|
|
1456
|
-
score: z.ZodNumber;
|
|
1457
|
-
rank: z.ZodNumber;
|
|
1458
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1459
|
-
id: z.ZodString;
|
|
1460
|
-
name: z.ZodString;
|
|
1461
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1462
|
-
source: z.ZodLiteral<"upload">;
|
|
1463
|
-
url: z.ZodString;
|
|
1464
|
-
seed: z.ZodString;
|
|
1465
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1466
|
-
source: z.ZodLiteral<"account">;
|
|
1467
|
-
provider: z.ZodEnum<{
|
|
1468
|
-
discord: "discord";
|
|
1469
|
-
google: "google";
|
|
1470
|
-
x: "x";
|
|
1471
|
-
}>;
|
|
1472
|
-
url: z.ZodString;
|
|
1473
|
-
seed: z.ZodString;
|
|
1474
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1475
|
-
source: z.ZodLiteral<"generated">;
|
|
1476
|
-
seed: z.ZodString;
|
|
1477
|
-
}, z.core.$strip>], "source">;
|
|
1478
|
-
}, z.core.$strip>>;
|
|
1479
|
-
}, z.core.$strip>>;
|
|
1480
|
-
nearby: z.ZodArray<z.ZodObject<{
|
|
1481
|
-
participant: z.ZodString;
|
|
1482
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1483
|
-
name: z.ZodString;
|
|
1484
|
-
score: z.ZodNumber;
|
|
1485
|
-
rank: z.ZodNumber;
|
|
1486
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1487
|
-
id: z.ZodString;
|
|
1488
|
-
name: z.ZodString;
|
|
1489
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1490
|
-
source: z.ZodLiteral<"upload">;
|
|
1491
|
-
url: z.ZodString;
|
|
1492
|
-
seed: z.ZodString;
|
|
1493
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1494
|
-
source: z.ZodLiteral<"account">;
|
|
1495
|
-
provider: z.ZodEnum<{
|
|
1496
|
-
discord: "discord";
|
|
1497
|
-
google: "google";
|
|
1498
|
-
x: "x";
|
|
1499
|
-
}>;
|
|
1500
|
-
url: z.ZodString;
|
|
1501
|
-
seed: z.ZodString;
|
|
1502
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1503
|
-
source: z.ZodLiteral<"generated">;
|
|
1504
|
-
seed: z.ZodString;
|
|
1505
|
-
}, z.core.$strip>], "source">;
|
|
1506
|
-
}, z.core.$strip>>;
|
|
1507
|
-
}, z.core.$strip>>;
|
|
1508
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1509
|
-
}, z.core.$strip>>;
|
|
1510
|
-
after: z.ZodObject<{
|
|
1511
|
-
leaderboard: z.ZodString;
|
|
1512
|
-
title: z.ZodString;
|
|
1513
|
-
version: z.ZodString;
|
|
1514
|
-
calculation: z.ZodEnum<{
|
|
1515
|
-
balance: "balance";
|
|
1516
|
-
earned: "earned";
|
|
1517
|
-
net: "net";
|
|
1518
|
-
}>;
|
|
1519
|
-
period: z.ZodObject<{
|
|
1520
|
-
start: z.ZodNullable<z.ZodNumber>;
|
|
1521
|
-
end: z.ZodNullable<z.ZodNumber>;
|
|
1522
|
-
}, z.core.$strip>;
|
|
1523
|
-
calculatedAt: z.ZodNumber;
|
|
1524
|
-
lastEntryAt: z.ZodNullable<z.ZodNumber>;
|
|
1525
|
-
total: z.ZodNumber;
|
|
1526
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1527
|
-
participant: z.ZodString;
|
|
1528
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1529
|
-
name: z.ZodString;
|
|
1530
|
-
score: z.ZodNumber;
|
|
1531
|
-
rank: z.ZodNumber;
|
|
1532
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1533
|
-
id: z.ZodString;
|
|
1534
|
-
name: z.ZodString;
|
|
1535
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1536
|
-
source: z.ZodLiteral<"upload">;
|
|
1537
|
-
url: z.ZodString;
|
|
1538
|
-
seed: z.ZodString;
|
|
1539
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1540
|
-
source: z.ZodLiteral<"account">;
|
|
1541
|
-
provider: z.ZodEnum<{
|
|
1542
|
-
discord: "discord";
|
|
1543
|
-
google: "google";
|
|
1544
|
-
x: "x";
|
|
1545
|
-
}>;
|
|
1546
|
-
url: z.ZodString;
|
|
1547
|
-
seed: z.ZodString;
|
|
1548
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1549
|
-
source: z.ZodLiteral<"generated">;
|
|
1550
|
-
seed: z.ZodString;
|
|
1551
|
-
}, z.core.$strip>], "source">;
|
|
1552
|
-
}, z.core.$strip>>;
|
|
1553
|
-
}, z.core.$strip>>;
|
|
1554
|
-
me: z.ZodNullable<z.ZodObject<{
|
|
1555
|
-
participant: z.ZodString;
|
|
1556
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1557
|
-
name: z.ZodString;
|
|
1558
|
-
score: z.ZodNumber;
|
|
1559
|
-
rank: z.ZodNumber;
|
|
1560
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1561
|
-
id: z.ZodString;
|
|
1562
|
-
name: z.ZodString;
|
|
1563
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1564
|
-
source: z.ZodLiteral<"upload">;
|
|
1565
|
-
url: z.ZodString;
|
|
1566
|
-
seed: z.ZodString;
|
|
1567
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1568
|
-
source: z.ZodLiteral<"account">;
|
|
1569
|
-
provider: z.ZodEnum<{
|
|
1570
|
-
discord: "discord";
|
|
1571
|
-
google: "google";
|
|
1572
|
-
x: "x";
|
|
1573
|
-
}>;
|
|
1574
|
-
url: z.ZodString;
|
|
1575
|
-
seed: z.ZodString;
|
|
1576
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1577
|
-
source: z.ZodLiteral<"generated">;
|
|
1578
|
-
seed: z.ZodString;
|
|
1579
|
-
}, z.core.$strip>], "source">;
|
|
1580
|
-
}, z.core.$strip>>;
|
|
1581
|
-
}, z.core.$strip>>;
|
|
1582
|
-
nearby: z.ZodArray<z.ZodObject<{
|
|
1583
|
-
participant: z.ZodString;
|
|
1584
|
-
member: z.ZodOptional<z.ZodString>;
|
|
1585
|
-
name: z.ZodString;
|
|
1586
|
-
score: z.ZodNumber;
|
|
1587
|
-
rank: z.ZodNumber;
|
|
1588
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
1589
|
-
id: z.ZodString;
|
|
1590
|
-
name: z.ZodString;
|
|
1591
|
-
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1592
|
-
source: z.ZodLiteral<"upload">;
|
|
1593
|
-
url: z.ZodString;
|
|
1594
|
-
seed: z.ZodString;
|
|
1595
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1596
|
-
source: z.ZodLiteral<"account">;
|
|
1597
|
-
provider: z.ZodEnum<{
|
|
1598
|
-
discord: "discord";
|
|
1599
|
-
google: "google";
|
|
1600
|
-
x: "x";
|
|
1601
|
-
}>;
|
|
1602
|
-
url: z.ZodString;
|
|
1603
|
-
seed: z.ZodString;
|
|
1604
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1605
|
-
source: z.ZodLiteral<"generated">;
|
|
1606
|
-
seed: z.ZodString;
|
|
1607
|
-
}, z.core.$strip>], "source">;
|
|
1608
|
-
}, z.core.$strip>>;
|
|
1609
|
-
}, z.core.$strip>>;
|
|
1610
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1611
|
-
}, z.core.$strip>;
|
|
1612
|
-
}, z.core.$strip>;
|
|
1613
|
-
declare const pointsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1614
|
-
kind: z.ZodLiteral<"award">;
|
|
1615
|
-
referralEligible: z.ZodOptional<z.ZodBoolean>;
|
|
1616
|
-
amount: z.ZodNumber;
|
|
1617
|
-
effectiveAt: z.ZodOptional<z.ZodNumber>;
|
|
1618
|
-
actionId: z.ZodString;
|
|
1619
|
-
member: z.ZodString;
|
|
1620
|
-
balance: z.ZodString;
|
|
1621
|
-
reason: z.ZodString;
|
|
1622
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1623
|
-
kind: z.ZodLiteral<"spend">;
|
|
1624
|
-
amount: z.ZodNumber;
|
|
1625
|
-
effectiveAt: z.ZodOptional<z.ZodNumber>;
|
|
1626
|
-
actionId: z.ZodString;
|
|
1627
|
-
member: z.ZodString;
|
|
1628
|
-
balance: z.ZodString;
|
|
1629
|
-
reason: z.ZodString;
|
|
1630
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1631
|
-
kind: z.ZodLiteral<"adjust">;
|
|
1632
|
-
amount: z.ZodNumber;
|
|
1633
|
-
effectiveAt: z.ZodOptional<z.ZodNumber>;
|
|
1634
|
-
actionId: z.ZodString;
|
|
1635
|
-
member: z.ZodString;
|
|
1636
|
-
balance: z.ZodString;
|
|
1637
|
-
reason: z.ZodString;
|
|
1638
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1639
|
-
kind: z.ZodLiteral<"set">;
|
|
1640
|
-
total: z.ZodNumber;
|
|
1641
|
-
expectedTotal: z.ZodNumber;
|
|
1642
|
-
classification: z.ZodEnum<{
|
|
1643
|
-
earned: "earned";
|
|
1644
|
-
spend: "spend";
|
|
1645
|
-
}>;
|
|
1646
|
-
effectiveAt: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
-
actionId: z.ZodString;
|
|
1648
|
-
member: z.ZodString;
|
|
1649
|
-
balance: z.ZodString;
|
|
1650
|
-
reason: z.ZodString;
|
|
1651
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1652
|
-
kind: z.ZodLiteral<"reverse">;
|
|
1653
|
-
entry: z.ZodString;
|
|
1654
|
-
amount: z.ZodNumber;
|
|
1655
|
-
actionId: z.ZodString;
|
|
1656
|
-
member: z.ZodString;
|
|
1657
|
-
balance: z.ZodString;
|
|
1658
|
-
reason: z.ZodString;
|
|
1659
|
-
}, z.core.$strict>], "kind">;
|
|
1660
|
-
declare const pointsEntrySchema: z.ZodObject<{
|
|
1661
|
-
id: z.ZodString;
|
|
1662
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
1663
|
-
member: z.ZodString;
|
|
1664
|
-
balance: z.ZodString;
|
|
1665
|
-
amount: z.ZodNumber;
|
|
1666
|
-
kind: z.ZodEnum<{
|
|
1667
|
-
reverse: "reverse";
|
|
1668
|
-
award: "award";
|
|
1669
|
-
spend: "spend";
|
|
1670
|
-
adjust: "adjust";
|
|
1671
|
-
}>;
|
|
1672
|
-
effectiveAt: z.ZodNumber;
|
|
1673
|
-
receivedAt: z.ZodNumber;
|
|
1674
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
1675
|
-
original: z.ZodNullable<z.ZodString>;
|
|
1676
|
-
reason: z.ZodString;
|
|
1677
|
-
actor: z.ZodNullable<z.ZodString>;
|
|
1678
|
-
import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1679
|
-
}, z.core.$strip>;
|
|
1680
|
-
/**
|
|
1681
|
-
* One page of a member's entries in one point ledger, as operators read them, the most recently
|
|
1682
|
-
* recorded first. Pass `nextCursor` back as `cursor` for the next page.
|
|
1683
|
-
*/
|
|
1684
|
-
declare const managedPointHistoryPageSchema: z.ZodObject<{
|
|
1685
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1686
|
-
id: z.ZodString;
|
|
1687
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
1688
|
-
member: z.ZodString;
|
|
1689
|
-
balance: z.ZodString;
|
|
1690
|
-
amount: z.ZodNumber;
|
|
1691
|
-
kind: z.ZodEnum<{
|
|
1692
|
-
reverse: "reverse";
|
|
1693
|
-
award: "award";
|
|
1694
|
-
spend: "spend";
|
|
1695
|
-
adjust: "adjust";
|
|
1696
|
-
}>;
|
|
1697
|
-
effectiveAt: z.ZodNumber;
|
|
1698
|
-
receivedAt: z.ZodNumber;
|
|
1699
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
1700
|
-
original: z.ZodNullable<z.ZodString>;
|
|
1701
|
-
reason: z.ZodString;
|
|
1702
|
-
actor: z.ZodNullable<z.ZodString>;
|
|
1703
|
-
import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1704
|
-
}, z.core.$strip>>;
|
|
1705
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1706
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
1707
|
-
}, z.core.$strip>;
|
|
1708
|
-
/** @compat output */
|
|
1709
|
-
type ManagedPointHistoryPage = z.infer<typeof managedPointHistoryPageSchema>;
|
|
1710
|
-
declare const pointsResultSchema: z.ZodObject<{
|
|
1711
|
-
entry: z.ZodObject<{
|
|
1712
|
-
id: z.ZodString;
|
|
1713
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
1714
|
-
member: z.ZodString;
|
|
1715
|
-
balance: z.ZodString;
|
|
1716
|
-
amount: z.ZodNumber;
|
|
1717
|
-
kind: z.ZodEnum<{
|
|
1718
|
-
reverse: "reverse";
|
|
1719
|
-
award: "award";
|
|
1720
|
-
spend: "spend";
|
|
1721
|
-
adjust: "adjust";
|
|
1722
|
-
}>;
|
|
1723
|
-
effectiveAt: z.ZodNumber;
|
|
1724
|
-
receivedAt: z.ZodNumber;
|
|
1725
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
1726
|
-
original: z.ZodNullable<z.ZodString>;
|
|
1727
|
-
reason: z.ZodString;
|
|
1728
|
-
actor: z.ZodNullable<z.ZodString>;
|
|
1729
|
-
import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1730
|
-
}, z.core.$strip>;
|
|
1731
|
-
total: z.ZodNumber;
|
|
1732
|
-
}, z.core.$strip>;
|
|
1733
|
-
declare const pointsAccountSchema: z.ZodObject<{
|
|
1734
|
-
member: z.ZodString;
|
|
1735
|
-
balance: z.ZodString;
|
|
1736
|
-
total: z.ZodNumber;
|
|
1737
|
-
held: z.ZodNumber;
|
|
1738
|
-
}, z.core.$strip>;
|
|
1739
|
-
declare const leaderboardExclusionSchema: z.ZodObject<{
|
|
1740
|
-
actionId: z.ZodString;
|
|
1741
|
-
member: z.ZodString;
|
|
1742
|
-
excluded: z.ZodBoolean;
|
|
1743
|
-
reason: z.ZodString;
|
|
1744
|
-
}, z.core.$strict>;
|
|
1745
|
-
/**
|
|
1746
|
-
* The group whose members a leaderboard leaves out of its standings and settlements. Each board
|
|
1747
|
-
* starts with its own generated group, keyed `domino--exclusions--<board>`, created by its first
|
|
1748
|
-
* exclusion; `boundAt` is null until then. `generated` is false when an operator bound the board
|
|
1749
|
-
* to another group, which may moderate several boards.
|
|
1750
|
-
*/
|
|
1751
|
-
declare const leaderboardExclusionGroupSchema: z.ZodObject<{
|
|
1752
|
-
leaderboard: z.ZodString;
|
|
1753
|
-
group: z.ZodString;
|
|
1754
|
-
generated: z.ZodBoolean;
|
|
1755
|
-
boundAt: z.ZodNullable<z.ZodNumber>;
|
|
1756
|
-
}, z.core.$strip>;
|
|
1757
|
-
/** @compat output */
|
|
1758
|
-
type LeaderboardExclusionGroup = z.infer<typeof leaderboardExclusionGroupSchema>;
|
|
1759
|
-
/**
|
|
1760
|
-
* Binds a leaderboard to the group whose members it leaves out: an existing, unarchived group,
|
|
1761
|
-
* or the board's own generated key to go back to its generated group.
|
|
1762
|
-
*/
|
|
1763
|
-
declare const leaderboardExclusionGroupBindingSchema: z.ZodObject<{
|
|
1764
|
-
actionId: z.ZodString;
|
|
1765
|
-
group: z.ZodString;
|
|
1766
|
-
reason: z.ZodString;
|
|
1767
|
-
}, z.core.$strict>;
|
|
1768
|
-
/**
|
|
1769
|
-
* @deprecated Use `addGroupMemberSchema` and `removeGroupMemberSchema` (`management.groups`)
|
|
1770
|
-
* instead. Removed in 2.0.0.
|
|
1771
|
-
*/
|
|
1772
|
-
declare const leaderboardGroupSchema: z.ZodObject<{
|
|
1773
|
-
actionId: z.ZodString;
|
|
1774
|
-
member: z.ZodString;
|
|
1775
|
-
included: z.ZodBoolean;
|
|
1776
|
-
reason: z.ZodString;
|
|
1777
|
-
}, z.core.$strict>;
|
|
1778
|
-
declare const leaderboardSettlementStatusSchema: z.ZodEnum<{
|
|
1779
|
-
pending: "pending";
|
|
1780
|
-
approved: "approved";
|
|
1781
|
-
}>;
|
|
1782
|
-
declare const leaderboardSettlementSummarySchema: z.ZodObject<{
|
|
1783
|
-
id: z.ZodString;
|
|
1784
|
-
leaderboard: z.ZodString;
|
|
1785
|
-
version: z.ZodString;
|
|
1786
|
-
title: z.ZodString;
|
|
1787
|
-
period: z.ZodObject<{
|
|
1788
|
-
start: z.ZodNumber;
|
|
1789
|
-
end: z.ZodNumber;
|
|
1790
|
-
}, z.core.$strip>;
|
|
1791
|
-
ties: z.ZodEnum<{
|
|
1792
|
-
shared: "shared";
|
|
1793
|
-
earliest: "earliest";
|
|
1794
|
-
}>;
|
|
1795
|
-
status: z.ZodEnum<{
|
|
1796
|
-
pending: "pending";
|
|
1797
|
-
approved: "approved";
|
|
1798
|
-
}>;
|
|
1799
|
-
total: z.ZodNumber;
|
|
1800
|
-
winners: z.ZodNumber;
|
|
1801
|
-
createdAt: z.ZodNumber;
|
|
1802
|
-
approvedAt: z.ZodNullable<z.ZodNumber>;
|
|
1803
|
-
approvedBy: z.ZodNullable<z.ZodString>;
|
|
1804
|
-
approvalReason: z.ZodNullable<z.ZodString>;
|
|
1805
|
-
}, z.core.$strip>;
|
|
1806
|
-
type LeaderboardSettlementSummary = z.infer<typeof leaderboardSettlementSummarySchema>;
|
|
1807
|
-
declare const leaderboardSettlementRowSchema: z.ZodObject<{
|
|
1808
|
-
member: z.ZodString;
|
|
1809
|
-
score: z.ZodNumber;
|
|
1810
|
-
rank: z.ZodNumber;
|
|
1811
|
-
position: z.ZodNumber;
|
|
1812
|
-
scoredAt: z.ZodNumber;
|
|
1813
|
-
prizes: z.ZodArray<z.ZodNumber>;
|
|
1814
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
1815
|
-
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
1816
|
-
share: z.ZodOptional<z.ZodString>;
|
|
1817
|
-
}, z.core.$strip>;
|
|
1818
|
-
/**
|
|
1819
|
-
* The pool a settlement froze, with what it allocated. `unallocated` is the part no member
|
|
1820
|
-
* received: all of it when no eligible member scored above the pool's minimum.
|
|
1821
|
-
*/
|
|
1822
|
-
declare const leaderboardSettlementPoolSchema: z.ZodObject<{
|
|
1823
|
-
allocated: z.ZodString;
|
|
1824
|
-
unallocated: z.ZodString;
|
|
1825
|
-
amount: z.ZodString;
|
|
1826
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1827
|
-
code: z.ZodString;
|
|
1828
|
-
decimals: z.ZodNumber;
|
|
1829
|
-
}, z.core.$strict>]>;
|
|
1830
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
1831
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1832
|
-
}, z.core.$strip>;
|
|
1833
|
-
type LeaderboardSettlementPool = z.infer<typeof leaderboardSettlementPoolSchema>;
|
|
1834
|
-
/** Content a settlement froze at its last good measurement, because the closing one never came. */
|
|
1835
|
-
declare const leaderboardSettlementUnmeasuredSchema: z.ZodObject<{
|
|
1836
|
-
content: z.ZodString;
|
|
1837
|
-
member: z.ZodString;
|
|
1838
|
-
observedAt: z.ZodNullable<z.ZodNumber>;
|
|
1839
|
-
}, z.core.$strip>;
|
|
1840
|
-
declare const leaderboardSettlementSchema: z.ZodObject<{
|
|
1841
|
-
id: z.ZodString;
|
|
1842
|
-
leaderboard: z.ZodString;
|
|
1843
|
-
version: z.ZodString;
|
|
1844
|
-
title: z.ZodString;
|
|
1845
|
-
period: z.ZodObject<{
|
|
1846
|
-
start: z.ZodNumber;
|
|
1847
|
-
end: z.ZodNumber;
|
|
1848
|
-
}, z.core.$strip>;
|
|
1849
|
-
ties: z.ZodEnum<{
|
|
1850
|
-
shared: "shared";
|
|
1851
|
-
earliest: "earliest";
|
|
1852
|
-
}>;
|
|
1853
|
-
status: z.ZodEnum<{
|
|
1854
|
-
pending: "pending";
|
|
1855
|
-
approved: "approved";
|
|
1856
|
-
}>;
|
|
1857
|
-
total: z.ZodNumber;
|
|
1858
|
-
winners: z.ZodNumber;
|
|
1859
|
-
createdAt: z.ZodNumber;
|
|
1860
|
-
approvedAt: z.ZodNullable<z.ZodNumber>;
|
|
1861
|
-
approvedBy: z.ZodNullable<z.ZodString>;
|
|
1862
|
-
approvalReason: z.ZodNullable<z.ZodString>;
|
|
1863
|
-
prizes: z.ZodArray<z.ZodObject<{
|
|
1864
|
-
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1865
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1866
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1867
|
-
balance: z.ZodString;
|
|
1868
|
-
amount: z.ZodNumber;
|
|
1869
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1870
|
-
kind: z.ZodLiteral<"tier">;
|
|
1871
|
-
reward: z.ZodObject<{
|
|
1872
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
1873
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1874
|
-
id: z.ZodString;
|
|
1875
|
-
title: z.ZodString;
|
|
1876
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
1877
|
-
id: z.ZodString;
|
|
1878
|
-
title: z.ZodString;
|
|
1879
|
-
}, z.core.$strict>>;
|
|
1880
|
-
inventory: z.ZodObject<{
|
|
1881
|
-
kind: z.ZodLiteral<"untracked">;
|
|
1882
|
-
}, z.core.$strict>;
|
|
1883
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1884
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
1885
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1886
|
-
kind: z.ZodLiteral<"automatic">;
|
|
1887
|
-
}, z.core.$strict>], "kind">;
|
|
1888
|
-
}, z.core.$strict>;
|
|
1889
|
-
tier: z.ZodString;
|
|
1890
|
-
}, z.core.$strict>]>>;
|
|
1891
|
-
}, z.core.$strict>>;
|
|
1892
|
-
excluded: z.ZodArray<z.ZodString>;
|
|
1893
|
-
unmeasured: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1894
|
-
content: z.ZodString;
|
|
1895
|
-
member: z.ZodString;
|
|
1896
|
-
observedAt: z.ZodNullable<z.ZodNumber>;
|
|
1897
|
-
}, z.core.$strip>>>;
|
|
1898
|
-
pool: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1899
|
-
allocated: z.ZodString;
|
|
1900
|
-
unallocated: z.ZodString;
|
|
1901
|
-
amount: z.ZodString;
|
|
1902
|
-
unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
|
|
1903
|
-
code: z.ZodString;
|
|
1904
|
-
decimals: z.ZodNumber;
|
|
1905
|
-
}, z.core.$strict>]>;
|
|
1906
|
-
ledger: z.ZodOptional<z.ZodString>;
|
|
1907
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
-
}, z.core.$strip>>>;
|
|
1909
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1910
|
-
member: z.ZodString;
|
|
1911
|
-
score: z.ZodNumber;
|
|
1912
|
-
rank: z.ZodNumber;
|
|
1913
|
-
position: z.ZodNumber;
|
|
1914
|
-
scoredAt: z.ZodNumber;
|
|
1915
|
-
prizes: z.ZodArray<z.ZodNumber>;
|
|
1916
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
1917
|
-
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
1918
|
-
share: z.ZodOptional<z.ZodString>;
|
|
1919
|
-
}, z.core.$strip>>;
|
|
1920
|
-
}, z.core.$strip>;
|
|
1921
|
-
type LeaderboardSettlement = z.infer<typeof leaderboardSettlementSchema>;
|
|
1922
|
-
declare const leaderboardSettlementApprovalSchema: z.ZodObject<{
|
|
1923
|
-
actionId: z.ZodString;
|
|
1924
|
-
reason: z.ZodString;
|
|
1925
|
-
}, z.core.$strict>;
|
|
1926
|
-
|
|
1927
|
-
declare const referralDefinitionSchema: z.ZodObject<{
|
|
1928
|
-
id: z.ZodString;
|
|
1929
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1930
|
-
title: z.ZodString;
|
|
1931
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1932
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1933
|
-
kind: z.ZodLiteral<"signup">;
|
|
1934
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1935
|
-
kind: z.ZodLiteral<"quest">;
|
|
1936
|
-
quest: z.ZodString;
|
|
1937
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1938
|
-
kind: z.ZodLiteral<"external">;
|
|
1939
|
-
}, z.core.$strict>], "kind">;
|
|
1940
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
1941
|
-
rewards: z.ZodDefault<z.ZodObject<{
|
|
1942
|
-
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1943
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1944
|
-
balance: z.ZodString;
|
|
1945
|
-
amount: z.ZodNumber;
|
|
1946
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1947
|
-
kind: z.ZodLiteral<"tier">;
|
|
1948
|
-
reward: z.ZodObject<{
|
|
1949
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
1950
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1951
|
-
id: z.ZodString;
|
|
1952
|
-
title: z.ZodString;
|
|
1953
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
1954
|
-
id: z.ZodString;
|
|
1955
|
-
title: z.ZodString;
|
|
1956
|
-
}, z.core.$strict>>;
|
|
1957
|
-
inventory: z.ZodObject<{
|
|
1958
|
-
kind: z.ZodLiteral<"untracked">;
|
|
1959
|
-
}, z.core.$strict>;
|
|
1960
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1961
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
1962
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1963
|
-
kind: z.ZodLiteral<"automatic">;
|
|
1964
|
-
}, z.core.$strict>], "kind">;
|
|
1965
|
-
}, z.core.$strict>;
|
|
1966
|
-
tier: z.ZodString;
|
|
1967
|
-
}, z.core.$strict>]>>>;
|
|
1968
|
-
invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1969
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1970
|
-
balance: z.ZodString;
|
|
1971
|
-
amount: z.ZodNumber;
|
|
1972
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1973
|
-
kind: z.ZodLiteral<"tier">;
|
|
1974
|
-
reward: z.ZodObject<{
|
|
1975
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
1976
|
-
group: z.ZodOptional<z.ZodString>;
|
|
1977
|
-
id: z.ZodString;
|
|
1978
|
-
title: z.ZodString;
|
|
1979
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
1980
|
-
id: z.ZodString;
|
|
1981
|
-
title: z.ZodString;
|
|
1982
|
-
}, z.core.$strict>>;
|
|
1983
|
-
inventory: z.ZodObject<{
|
|
1984
|
-
kind: z.ZodLiteral<"untracked">;
|
|
1985
|
-
}, z.core.$strict>;
|
|
1986
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1987
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
1988
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1989
|
-
kind: z.ZodLiteral<"automatic">;
|
|
1990
|
-
}, z.core.$strict>], "kind">;
|
|
1991
|
-
}, z.core.$strict>;
|
|
1992
|
-
tier: z.ZodString;
|
|
1993
|
-
}, z.core.$strict>]>>>;
|
|
1994
|
-
}, z.core.$strict>>;
|
|
1995
|
-
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1996
|
-
id: z.ZodString;
|
|
1997
|
-
count: z.ZodNumber;
|
|
1998
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1999
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2000
|
-
balance: z.ZodString;
|
|
2001
|
-
amount: z.ZodNumber;
|
|
2002
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2003
|
-
kind: z.ZodLiteral<"tier">;
|
|
2004
|
-
reward: z.ZodObject<{
|
|
2005
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2006
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2007
|
-
id: z.ZodString;
|
|
2008
|
-
title: z.ZodString;
|
|
2009
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2010
|
-
id: z.ZodString;
|
|
2011
|
-
title: z.ZodString;
|
|
2012
|
-
}, z.core.$strict>>;
|
|
2013
|
-
inventory: z.ZodObject<{
|
|
2014
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2015
|
-
}, z.core.$strict>;
|
|
2016
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2017
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2018
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2019
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2020
|
-
}, z.core.$strict>], "kind">;
|
|
2021
|
-
}, z.core.$strict>;
|
|
2022
|
-
tier: z.ZodString;
|
|
2023
|
-
}, z.core.$strict>]>>;
|
|
2024
|
-
}, z.core.$strict>>>;
|
|
2025
|
-
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2026
|
-
id: z.ZodString;
|
|
2027
|
-
balance: z.ZodString;
|
|
2028
|
-
basisPoints: z.ZodNumber;
|
|
2029
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2030
|
-
external: z.ZodDefault<z.ZodBoolean>;
|
|
2031
|
-
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
2032
|
-
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
2033
|
-
}, z.core.$strict>>>;
|
|
2034
|
-
}, z.core.$strict>;
|
|
2035
|
-
type ReferralDefinition = z.infer<typeof referralDefinitionSchema>;
|
|
2036
|
-
declare const referralAuthoringSchema: z.ZodObject<{
|
|
2037
|
-
title: z.ZodString;
|
|
2038
|
-
rewards: z.ZodDefault<z.ZodObject<{
|
|
2039
|
-
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2040
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2041
|
-
balance: z.ZodString;
|
|
2042
|
-
amount: z.ZodNumber;
|
|
2043
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2044
|
-
kind: z.ZodLiteral<"tier">;
|
|
2045
|
-
reward: z.ZodObject<{
|
|
2046
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2047
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2048
|
-
id: z.ZodString;
|
|
2049
|
-
title: z.ZodString;
|
|
2050
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2051
|
-
id: z.ZodString;
|
|
2052
|
-
title: z.ZodString;
|
|
2053
|
-
}, z.core.$strict>>;
|
|
2054
|
-
inventory: z.ZodObject<{
|
|
2055
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2056
|
-
}, z.core.$strict>;
|
|
2057
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2058
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2059
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2060
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2061
|
-
}, z.core.$strict>], "kind">;
|
|
2062
|
-
}, z.core.$strict>;
|
|
2063
|
-
tier: z.ZodString;
|
|
2064
|
-
}, z.core.$strict>]>>>;
|
|
2065
|
-
invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2066
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2067
|
-
balance: z.ZodString;
|
|
2068
|
-
amount: z.ZodNumber;
|
|
2069
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2070
|
-
kind: z.ZodLiteral<"tier">;
|
|
2071
|
-
reward: z.ZodObject<{
|
|
2072
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2073
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2074
|
-
id: z.ZodString;
|
|
2075
|
-
title: z.ZodString;
|
|
2076
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2077
|
-
id: z.ZodString;
|
|
2078
|
-
title: z.ZodString;
|
|
2079
|
-
}, z.core.$strict>>;
|
|
2080
|
-
inventory: z.ZodObject<{
|
|
2081
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2082
|
-
}, z.core.$strict>;
|
|
2083
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2084
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2085
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2086
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2087
|
-
}, z.core.$strict>], "kind">;
|
|
2088
|
-
}, z.core.$strict>;
|
|
2089
|
-
tier: z.ZodString;
|
|
2090
|
-
}, z.core.$strict>]>>>;
|
|
2091
|
-
}, z.core.$strict>>;
|
|
2092
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2093
|
-
kind: z.ZodLiteral<"signup">;
|
|
2094
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2095
|
-
kind: z.ZodLiteral<"quest">;
|
|
2096
|
-
quest: z.ZodString;
|
|
2097
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2098
|
-
kind: z.ZodLiteral<"external">;
|
|
2099
|
-
}, z.core.$strict>], "kind">;
|
|
2100
|
-
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2101
|
-
id: z.ZodString;
|
|
2102
|
-
count: z.ZodNumber;
|
|
2103
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2104
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2105
|
-
balance: z.ZodString;
|
|
2106
|
-
amount: z.ZodNumber;
|
|
2107
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2108
|
-
kind: z.ZodLiteral<"tier">;
|
|
2109
|
-
reward: z.ZodObject<{
|
|
2110
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2111
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2112
|
-
id: z.ZodString;
|
|
2113
|
-
title: z.ZodString;
|
|
2114
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2115
|
-
id: z.ZodString;
|
|
2116
|
-
title: z.ZodString;
|
|
2117
|
-
}, z.core.$strict>>;
|
|
2118
|
-
inventory: z.ZodObject<{
|
|
2119
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2120
|
-
}, z.core.$strict>;
|
|
2121
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2122
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2123
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2124
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2125
|
-
}, z.core.$strict>], "kind">;
|
|
2126
|
-
}, z.core.$strict>;
|
|
2127
|
-
tier: z.ZodString;
|
|
2128
|
-
}, z.core.$strict>]>>;
|
|
2129
|
-
}, z.core.$strict>>>;
|
|
2130
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2131
|
-
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2132
|
-
id: z.ZodString;
|
|
2133
|
-
balance: z.ZodString;
|
|
2134
|
-
basisPoints: z.ZodNumber;
|
|
2135
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2136
|
-
external: z.ZodDefault<z.ZodBoolean>;
|
|
2137
|
-
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
2138
|
-
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
2139
|
-
}, z.core.$strict>>>;
|
|
2140
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
2141
|
-
key: z.ZodString;
|
|
2142
|
-
}, z.core.$strict>;
|
|
2143
|
-
declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2144
|
-
title: z.ZodString;
|
|
2145
|
-
rewards: z.ZodDefault<z.ZodObject<{
|
|
2146
|
-
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2147
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2148
|
-
balance: z.ZodString;
|
|
2149
|
-
amount: z.ZodNumber;
|
|
2150
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2151
|
-
kind: z.ZodLiteral<"tier">;
|
|
2152
|
-
reward: z.ZodObject<{
|
|
2153
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2154
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2155
|
-
id: z.ZodString;
|
|
2156
|
-
title: z.ZodString;
|
|
2157
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2158
|
-
id: z.ZodString;
|
|
2159
|
-
title: z.ZodString;
|
|
2160
|
-
}, z.core.$strict>>;
|
|
2161
|
-
inventory: z.ZodObject<{
|
|
2162
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2163
|
-
}, z.core.$strict>;
|
|
2164
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2165
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2166
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2167
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2168
|
-
}, z.core.$strict>], "kind">;
|
|
2169
|
-
}, z.core.$strict>;
|
|
2170
|
-
tier: z.ZodString;
|
|
2171
|
-
}, z.core.$strict>]>>>;
|
|
2172
|
-
invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2173
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2174
|
-
balance: z.ZodString;
|
|
2175
|
-
amount: z.ZodNumber;
|
|
2176
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2177
|
-
kind: z.ZodLiteral<"tier">;
|
|
2178
|
-
reward: z.ZodObject<{
|
|
2179
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2180
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2181
|
-
id: z.ZodString;
|
|
2182
|
-
title: z.ZodString;
|
|
2183
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2184
|
-
id: z.ZodString;
|
|
2185
|
-
title: z.ZodString;
|
|
2186
|
-
}, z.core.$strict>>;
|
|
2187
|
-
inventory: z.ZodObject<{
|
|
2188
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2189
|
-
}, z.core.$strict>;
|
|
2190
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2191
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2192
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2193
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2194
|
-
}, z.core.$strict>], "kind">;
|
|
2195
|
-
}, z.core.$strict>;
|
|
2196
|
-
tier: z.ZodString;
|
|
2197
|
-
}, z.core.$strict>]>>>;
|
|
2198
|
-
}, z.core.$strict>>;
|
|
2199
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2200
|
-
kind: z.ZodLiteral<"signup">;
|
|
2201
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2202
|
-
kind: z.ZodLiteral<"quest">;
|
|
2203
|
-
quest: z.ZodString;
|
|
2204
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2205
|
-
kind: z.ZodLiteral<"external">;
|
|
2206
|
-
}, z.core.$strict>], "kind">;
|
|
2207
|
-
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2208
|
-
id: z.ZodString;
|
|
2209
|
-
count: z.ZodNumber;
|
|
2210
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2211
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2212
|
-
balance: z.ZodString;
|
|
2213
|
-
amount: z.ZodNumber;
|
|
2214
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2215
|
-
kind: z.ZodLiteral<"tier">;
|
|
2216
|
-
reward: z.ZodObject<{
|
|
2217
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2218
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2219
|
-
id: z.ZodString;
|
|
2220
|
-
title: z.ZodString;
|
|
2221
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2222
|
-
id: z.ZodString;
|
|
2223
|
-
title: z.ZodString;
|
|
2224
|
-
}, z.core.$strict>>;
|
|
2225
|
-
inventory: z.ZodObject<{
|
|
2226
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2227
|
-
}, z.core.$strict>;
|
|
2228
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2229
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2230
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2231
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2232
|
-
}, z.core.$strict>], "kind">;
|
|
2233
|
-
}, z.core.$strict>;
|
|
2234
|
-
tier: z.ZodString;
|
|
2235
|
-
}, z.core.$strict>]>>;
|
|
2236
|
-
}, z.core.$strict>>>;
|
|
2237
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2238
|
-
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2239
|
-
id: z.ZodString;
|
|
2240
|
-
balance: z.ZodString;
|
|
2241
|
-
basisPoints: z.ZodNumber;
|
|
2242
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2243
|
-
external: z.ZodDefault<z.ZodBoolean>;
|
|
2244
|
-
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
2245
|
-
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
2246
|
-
}, z.core.$strict>>>;
|
|
2247
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
2248
|
-
key: z.ZodString;
|
|
2249
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2250
|
-
code: z.ZodString;
|
|
2251
|
-
}, z.core.$strict>]>;
|
|
2252
|
-
declare const publishedReferralSchema: z.ZodObject<{
|
|
2253
|
-
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2254
|
-
version: z.ZodString;
|
|
2255
|
-
definition: z.ZodObject<{
|
|
2256
|
-
id: z.ZodString;
|
|
2257
|
-
key: z.ZodOptional<z.ZodString>;
|
|
2258
|
-
title: z.ZodString;
|
|
2259
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2260
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2261
|
-
kind: z.ZodLiteral<"signup">;
|
|
2262
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2263
|
-
kind: z.ZodLiteral<"quest">;
|
|
2264
|
-
quest: z.ZodString;
|
|
2265
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2266
|
-
kind: z.ZodLiteral<"external">;
|
|
2267
|
-
}, z.core.$strict>], "kind">;
|
|
2268
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
2269
|
-
rewards: z.ZodDefault<z.ZodObject<{
|
|
2270
|
-
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2271
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2272
|
-
balance: z.ZodString;
|
|
2273
|
-
amount: z.ZodNumber;
|
|
2274
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2275
|
-
kind: z.ZodLiteral<"tier">;
|
|
2276
|
-
reward: z.ZodObject<{
|
|
2277
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2278
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2279
|
-
id: z.ZodString;
|
|
2280
|
-
title: z.ZodString;
|
|
2281
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2282
|
-
id: z.ZodString;
|
|
2283
|
-
title: z.ZodString;
|
|
2284
|
-
}, z.core.$strict>>;
|
|
2285
|
-
inventory: z.ZodObject<{
|
|
2286
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2287
|
-
}, z.core.$strict>;
|
|
2288
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2289
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2290
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2291
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2292
|
-
}, z.core.$strict>], "kind">;
|
|
2293
|
-
}, z.core.$strict>;
|
|
2294
|
-
tier: z.ZodString;
|
|
2295
|
-
}, z.core.$strict>]>>>;
|
|
2296
|
-
invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2297
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2298
|
-
balance: z.ZodString;
|
|
2299
|
-
amount: z.ZodNumber;
|
|
2300
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2301
|
-
kind: z.ZodLiteral<"tier">;
|
|
2302
|
-
reward: z.ZodObject<{
|
|
2303
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2304
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2305
|
-
id: z.ZodString;
|
|
2306
|
-
title: z.ZodString;
|
|
2307
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2308
|
-
id: z.ZodString;
|
|
2309
|
-
title: z.ZodString;
|
|
2310
|
-
}, z.core.$strict>>;
|
|
2311
|
-
inventory: z.ZodObject<{
|
|
2312
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2313
|
-
}, z.core.$strict>;
|
|
2314
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2315
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2316
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2317
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2318
|
-
}, z.core.$strict>], "kind">;
|
|
2319
|
-
}, z.core.$strict>;
|
|
2320
|
-
tier: z.ZodString;
|
|
2321
|
-
}, z.core.$strict>]>>>;
|
|
2322
|
-
}, z.core.$strict>>;
|
|
2323
|
-
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2324
|
-
id: z.ZodString;
|
|
2325
|
-
count: z.ZodNumber;
|
|
2326
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2327
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2328
|
-
balance: z.ZodString;
|
|
2329
|
-
amount: z.ZodNumber;
|
|
2330
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2331
|
-
kind: z.ZodLiteral<"tier">;
|
|
2332
|
-
reward: z.ZodObject<{
|
|
2333
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2334
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2335
|
-
id: z.ZodString;
|
|
2336
|
-
title: z.ZodString;
|
|
2337
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2338
|
-
id: z.ZodString;
|
|
2339
|
-
title: z.ZodString;
|
|
2340
|
-
}, z.core.$strict>>;
|
|
2341
|
-
inventory: z.ZodObject<{
|
|
2342
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2343
|
-
}, z.core.$strict>;
|
|
2344
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2345
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2346
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2347
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2348
|
-
}, z.core.$strict>], "kind">;
|
|
2349
|
-
}, z.core.$strict>;
|
|
2350
|
-
tier: z.ZodString;
|
|
2351
|
-
}, z.core.$strict>]>>;
|
|
2352
|
-
}, z.core.$strict>>>;
|
|
2353
|
-
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2354
|
-
id: z.ZodString;
|
|
2355
|
-
balance: z.ZodString;
|
|
2356
|
-
basisPoints: z.ZodNumber;
|
|
2357
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2358
|
-
external: z.ZodDefault<z.ZodBoolean>;
|
|
2359
|
-
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
2360
|
-
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
2361
|
-
}, z.core.$strict>>>;
|
|
2362
|
-
}, z.core.$strict>;
|
|
2363
|
-
publishedAt: z.ZodNumber;
|
|
2364
|
-
actor: z.ZodNullable<z.ZodString>;
|
|
2365
|
-
}, z.core.$strip>;
|
|
2366
|
-
declare const referralAcceptSchema: z.ZodObject<{
|
|
2367
|
-
actionId: z.ZodString;
|
|
2368
|
-
code: z.ZodString;
|
|
2369
|
-
}, z.core.$strict>;
|
|
2370
|
-
/** `management.referrals.suspend(member, input)`: suspends or restores a member's referral. */
|
|
2371
|
-
declare const referralSuspensionSchema: z.ZodObject<{
|
|
2372
|
-
actionId: z.ZodString;
|
|
2373
|
-
suspended: z.ZodBoolean;
|
|
2374
|
-
reason: z.ZodString;
|
|
2375
|
-
}, z.core.$strict>;
|
|
2376
|
-
/** `management.referrals.qualify(program, member, input)`: qualifies or unqualifies a member. */
|
|
2377
|
-
declare const referralQualificationSchema: z.ZodObject<{
|
|
2378
|
-
actionId: z.ZodString;
|
|
2379
|
-
qualified: z.ZodBoolean;
|
|
2380
|
-
reason: z.ZodString;
|
|
2381
|
-
}, z.core.$strict>;
|
|
2382
|
-
/** `management.referrals.resolveReward(entitlement, input)`: clears a referral reward's review. */
|
|
2383
|
-
declare const referralRewardResolutionSchema: z.ZodObject<{
|
|
2384
|
-
actionId: z.ZodString;
|
|
2385
|
-
reason: z.ZodString;
|
|
2386
|
-
}, z.core.$strict>;
|
|
2387
|
-
/**
|
|
2388
|
-
* The 1.0 body of `POST /referrals/control`, with every ID in the body.
|
|
2389
|
-
* @deprecated Use `referralSuspensionSchema`, `referralQualificationSchema` or `referralRewardResolutionSchema` with `management.referrals.suspend`, `qualify` or `resolveReward`. Removed in 2.0.0.
|
|
2390
|
-
*/
|
|
2391
|
-
declare const referralControlSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2392
|
-
kind: z.ZodLiteral<"suspend">;
|
|
2393
|
-
actionId: z.ZodString;
|
|
2394
|
-
member: z.ZodString;
|
|
2395
|
-
suspended: z.ZodBoolean;
|
|
2396
|
-
reason: z.ZodString;
|
|
2397
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2398
|
-
kind: z.ZodLiteral<"qualify">;
|
|
2399
|
-
actionId: z.ZodString;
|
|
2400
|
-
member: z.ZodString;
|
|
2401
|
-
program: z.ZodString;
|
|
2402
|
-
qualified: z.ZodBoolean;
|
|
2403
|
-
reason: z.ZodString;
|
|
2404
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2405
|
-
kind: z.ZodLiteral<"resolve-reward">;
|
|
2406
|
-
actionId: z.ZodString;
|
|
2407
|
-
entitlement: z.ZodString;
|
|
2408
|
-
reason: z.ZodString;
|
|
2409
|
-
}, z.core.$strict>], "kind">;
|
|
2410
|
-
declare const referralRelationshipSchema: z.ZodObject<{
|
|
2411
|
-
member: z.ZodString;
|
|
2412
|
-
inviter: z.ZodString;
|
|
2413
|
-
acceptedAt: z.ZodNumber;
|
|
2414
|
-
suspended: z.ZodBoolean;
|
|
2415
|
-
import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2416
|
-
}, z.core.$strip>;
|
|
2417
|
-
declare const referralAccountSchema: z.ZodObject<{
|
|
2418
|
-
id: z.ZodString;
|
|
2419
|
-
program: z.ZodString;
|
|
2420
|
-
kind: z.ZodEnum<{
|
|
2421
|
-
fixed: "fixed";
|
|
2422
|
-
milestone: "milestone";
|
|
2423
|
-
bonus: "bonus";
|
|
2424
|
-
}>;
|
|
2425
|
-
balance: z.ZodString;
|
|
2426
|
-
earned: z.ZodNumber;
|
|
2427
|
-
settled: z.ZodNumber;
|
|
2428
|
-
outstanding: z.ZodNumber;
|
|
2429
|
-
}, z.core.$strip>;
|
|
2430
|
-
declare const referralSummarySchema: z.ZodObject<{
|
|
2431
|
-
code: z.ZodString;
|
|
2432
|
-
attributed: z.ZodNumber;
|
|
2433
|
-
programs: z.ZodArray<z.ZodObject<{
|
|
2434
|
-
definition: z.ZodObject<{
|
|
2435
|
-
id: z.ZodString;
|
|
2436
|
-
key: z.ZodOptional<z.ZodString>;
|
|
2437
|
-
title: z.ZodString;
|
|
2438
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2439
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2440
|
-
kind: z.ZodLiteral<"signup">;
|
|
2441
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2442
|
-
kind: z.ZodLiteral<"quest">;
|
|
2443
|
-
quest: z.ZodString;
|
|
2444
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2445
|
-
kind: z.ZodLiteral<"external">;
|
|
2446
|
-
}, z.core.$strict>], "kind">;
|
|
2447
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
2448
|
-
rewards: z.ZodDefault<z.ZodObject<{
|
|
2449
|
-
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2450
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2451
|
-
balance: z.ZodString;
|
|
2452
|
-
amount: z.ZodNumber;
|
|
2453
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2454
|
-
kind: z.ZodLiteral<"tier">;
|
|
2455
|
-
reward: z.ZodObject<{
|
|
2456
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2457
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2458
|
-
id: z.ZodString;
|
|
2459
|
-
title: z.ZodString;
|
|
2460
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2461
|
-
id: z.ZodString;
|
|
2462
|
-
title: z.ZodString;
|
|
2463
|
-
}, z.core.$strict>>;
|
|
2464
|
-
inventory: z.ZodObject<{
|
|
2465
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2466
|
-
}, z.core.$strict>;
|
|
2467
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2468
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2469
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2470
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2471
|
-
}, z.core.$strict>], "kind">;
|
|
2472
|
-
}, z.core.$strict>;
|
|
2473
|
-
tier: z.ZodString;
|
|
2474
|
-
}, z.core.$strict>]>>>;
|
|
2475
|
-
invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2476
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2477
|
-
balance: z.ZodString;
|
|
2478
|
-
amount: z.ZodNumber;
|
|
2479
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2480
|
-
kind: z.ZodLiteral<"tier">;
|
|
2481
|
-
reward: z.ZodObject<{
|
|
2482
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2483
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2484
|
-
id: z.ZodString;
|
|
2485
|
-
title: z.ZodString;
|
|
2486
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2487
|
-
id: z.ZodString;
|
|
2488
|
-
title: z.ZodString;
|
|
2489
|
-
}, z.core.$strict>>;
|
|
2490
|
-
inventory: z.ZodObject<{
|
|
2491
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2492
|
-
}, z.core.$strict>;
|
|
2493
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2494
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2495
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2496
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2497
|
-
}, z.core.$strict>], "kind">;
|
|
2498
|
-
}, z.core.$strict>;
|
|
2499
|
-
tier: z.ZodString;
|
|
2500
|
-
}, z.core.$strict>]>>>;
|
|
2501
|
-
}, z.core.$strict>>;
|
|
2502
|
-
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2503
|
-
id: z.ZodString;
|
|
2504
|
-
count: z.ZodNumber;
|
|
2505
|
-
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2506
|
-
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
2507
|
-
balance: z.ZodString;
|
|
2508
|
-
amount: z.ZodNumber;
|
|
2509
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2510
|
-
kind: z.ZodLiteral<"tier">;
|
|
2511
|
-
reward: z.ZodObject<{
|
|
2512
|
-
badge: z.ZodOptional<z.ZodString>;
|
|
2513
|
-
group: z.ZodOptional<z.ZodString>;
|
|
2514
|
-
id: z.ZodString;
|
|
2515
|
-
title: z.ZodString;
|
|
2516
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
2517
|
-
id: z.ZodString;
|
|
2518
|
-
title: z.ZodString;
|
|
2519
|
-
}, z.core.$strict>>;
|
|
2520
|
-
inventory: z.ZodObject<{
|
|
2521
|
-
kind: z.ZodLiteral<"untracked">;
|
|
2522
|
-
}, z.core.$strict>;
|
|
2523
|
-
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2524
|
-
kind: z.ZodLiteral<"staff-handover">;
|
|
2525
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2526
|
-
kind: z.ZodLiteral<"automatic">;
|
|
2527
|
-
}, z.core.$strict>], "kind">;
|
|
2528
|
-
}, z.core.$strict>;
|
|
2529
|
-
tier: z.ZodString;
|
|
2530
|
-
}, z.core.$strict>]>>;
|
|
2531
|
-
}, z.core.$strict>>>;
|
|
2532
|
-
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2533
|
-
id: z.ZodString;
|
|
2534
|
-
balance: z.ZodString;
|
|
2535
|
-
basisPoints: z.ZodNumber;
|
|
2536
|
-
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2537
|
-
external: z.ZodDefault<z.ZodBoolean>;
|
|
2538
|
-
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
2539
|
-
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
2540
|
-
}, z.core.$strict>>>;
|
|
2541
|
-
}, z.core.$strict>;
|
|
2542
|
-
qualified: z.ZodNumber;
|
|
2543
|
-
milestones: z.ZodArray<z.ZodObject<{
|
|
2544
|
-
id: z.ZodString;
|
|
2545
|
-
count: z.ZodNumber;
|
|
2546
|
-
reached: z.ZodBoolean;
|
|
2547
|
-
}, z.core.$strip>>;
|
|
2548
|
-
}, z.core.$strip>>;
|
|
2549
|
-
accounts: z.ZodArray<z.ZodObject<{
|
|
2550
|
-
id: z.ZodString;
|
|
2551
|
-
program: z.ZodString;
|
|
2552
|
-
kind: z.ZodEnum<{
|
|
2553
|
-
fixed: "fixed";
|
|
2554
|
-
milestone: "milestone";
|
|
2555
|
-
bonus: "bonus";
|
|
2556
|
-
}>;
|
|
2557
|
-
balance: z.ZodString;
|
|
2558
|
-
earned: z.ZodNumber;
|
|
2559
|
-
settled: z.ZodNumber;
|
|
2560
|
-
outstanding: z.ZodNumber;
|
|
2561
|
-
}, z.core.$strip>>;
|
|
2562
|
-
}, z.core.$strip>;
|
|
2563
|
-
declare const referralHistorySchema: z.ZodObject<{
|
|
2564
|
-
items: z.ZodArray<z.ZodObject<{
|
|
2565
|
-
id: z.ZodNumber;
|
|
2566
|
-
program: z.ZodString;
|
|
2567
|
-
balance: z.ZodString;
|
|
2568
|
-
amount: z.ZodNumber;
|
|
2569
|
-
at: z.ZodNumber;
|
|
2570
|
-
reason: z.ZodString;
|
|
2571
|
-
}, z.core.$strip>>;
|
|
2572
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2573
|
-
}, z.core.$strip>;
|
|
2574
|
-
/**
|
|
2575
|
-
* One page of the project's referral relationships, newest first, with the qualifications and
|
|
2576
|
-
* accounts of the members they name and the referral rewards waiting for review. Pass `nextCursor`
|
|
2577
|
-
* back as `cursor` for the next page.
|
|
2578
|
-
*/
|
|
2579
|
-
declare const referralManagementSchema: z.ZodObject<{
|
|
2580
|
-
relationships: z.ZodArray<z.ZodObject<{
|
|
2581
|
-
member: z.ZodString;
|
|
2582
|
-
inviter: z.ZodString;
|
|
2583
|
-
acceptedAt: z.ZodNumber;
|
|
2584
|
-
suspended: z.ZodBoolean;
|
|
2585
|
-
import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2586
|
-
}, z.core.$strip>>;
|
|
2587
|
-
qualifications: z.ZodArray<z.ZodObject<{
|
|
2588
|
-
member: z.ZodString;
|
|
2589
|
-
program: z.ZodString;
|
|
2590
|
-
qualified: z.ZodBoolean;
|
|
2591
|
-
qualifiedAt: z.ZodNumber;
|
|
2592
|
-
import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2593
|
-
}, z.core.$strip>>;
|
|
2594
|
-
accounts: z.ZodArray<z.ZodObject<{
|
|
2595
|
-
id: z.ZodString;
|
|
2596
|
-
program: z.ZodString;
|
|
2597
|
-
kind: z.ZodEnum<{
|
|
2598
|
-
fixed: "fixed";
|
|
2599
|
-
milestone: "milestone";
|
|
2600
|
-
bonus: "bonus";
|
|
2601
|
-
}>;
|
|
2602
|
-
balance: z.ZodString;
|
|
2603
|
-
earned: z.ZodNumber;
|
|
2604
|
-
settled: z.ZodNumber;
|
|
2605
|
-
outstanding: z.ZodNumber;
|
|
2606
|
-
member: z.ZodString;
|
|
2607
|
-
invitee: z.ZodString;
|
|
2608
|
-
}, z.core.$strip>>;
|
|
2609
|
-
reviews: z.ZodArray<z.ZodObject<{
|
|
2610
|
-
entitlement: z.ZodString;
|
|
2611
|
-
member: z.ZodString;
|
|
2612
|
-
program: z.ZodString;
|
|
2613
|
-
reason: z.ZodString;
|
|
2614
|
-
}, z.core.$strip>>;
|
|
2615
|
-
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2616
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
2617
|
-
}, z.core.$strip>;
|
|
2618
|
-
|
|
2619
|
-
/** A half-open interval. A campaign or quest is open while `from <= now < until`. */
|
|
2620
|
-
declare const availabilityWindowSchema: z.ZodObject<{
|
|
2621
|
-
from: z.ZodNumber;
|
|
2622
|
-
until: z.ZodNumber;
|
|
2623
|
-
}, z.core.$strict>;
|
|
2624
|
-
type AvailabilityWindow = z.infer<typeof availabilityWindowSchema>;
|
|
2625
|
-
declare const campaignDefinitionSchema: z.ZodObject<{
|
|
2626
|
-
key: z.ZodString;
|
|
2627
|
-
title: z.ZodString;
|
|
2628
|
-
window: z.ZodOptional<z.ZodObject<{
|
|
2629
|
-
from: z.ZodNumber;
|
|
2630
|
-
until: z.ZodNumber;
|
|
2631
|
-
}, z.core.$strict>>;
|
|
2632
|
-
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2633
|
-
none: "none";
|
|
2634
|
-
required: "required";
|
|
2635
|
-
}>>;
|
|
2636
|
-
}, z.core.$strict>;
|
|
2637
|
-
type CampaignDefinition = z.infer<typeof campaignDefinitionSchema>;
|
|
2638
|
-
declare const campaignAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
2639
|
-
window: z.ZodOptional<z.ZodObject<{
|
|
2640
|
-
from: z.ZodNumber;
|
|
2641
|
-
until: z.ZodNumber;
|
|
2642
|
-
}, z.core.$strict>>;
|
|
2643
|
-
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2644
|
-
none: "none";
|
|
2645
|
-
required: "required";
|
|
2646
|
-
}>>;
|
|
2647
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2648
|
-
key: z.ZodString;
|
|
2649
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
2650
|
-
key: string;
|
|
2651
|
-
title: string;
|
|
2652
|
-
enrollment: "none" | "required";
|
|
2653
|
-
window?: {
|
|
2654
|
-
from: number;
|
|
2655
|
-
until: number;
|
|
2656
|
-
} | undefined;
|
|
2657
|
-
}, {
|
|
2658
|
-
enrollment: "none" | "required";
|
|
2659
|
-
key: string;
|
|
2660
|
-
window?: {
|
|
2661
|
-
from: number;
|
|
2662
|
-
until: number;
|
|
2663
|
-
} | undefined;
|
|
2664
|
-
title?: string | undefined;
|
|
2665
|
-
}>>;
|
|
2666
|
-
/** Define a campaign shared by any number of quests. */
|
|
2667
|
-
declare function defineCampaign(input: Omit<z.input<typeof campaignAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
|
|
2668
|
-
key: string;
|
|
2669
|
-
title: string;
|
|
2670
|
-
enrollment: "none" | "required";
|
|
2671
|
-
window?: {
|
|
2672
|
-
from: number;
|
|
2673
|
-
until: number;
|
|
2674
|
-
} | undefined;
|
|
2675
|
-
};
|
|
2676
|
-
declare const campaignViewSchema: z.ZodObject<{
|
|
2677
|
-
key: z.ZodString;
|
|
2678
|
-
title: z.ZodString;
|
|
2679
|
-
window: z.ZodOptional<z.ZodObject<{
|
|
2680
|
-
from: z.ZodNumber;
|
|
2681
|
-
until: z.ZodNumber;
|
|
2682
|
-
}, z.core.$strict>>;
|
|
2683
|
-
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2684
|
-
none: "none";
|
|
2685
|
-
required: "required";
|
|
2686
|
-
}>>;
|
|
2687
|
-
enrolledAt: z.ZodNullable<z.ZodNumber>;
|
|
2688
|
-
withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2689
|
-
withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2690
|
-
}, z.core.$strict>;
|
|
2691
|
-
type CampaignView = z.infer<typeof campaignViewSchema>;
|
|
2692
|
-
declare const campaignEnrollmentInputSchema: z.ZodObject<{
|
|
2693
|
-
actionId: z.ZodString;
|
|
2694
|
-
campaign: z.ZodString;
|
|
2695
|
-
}, z.core.$strict>;
|
|
2696
|
-
type CampaignEnrollmentInput = z.input<typeof campaignEnrollmentInputSchema>;
|
|
2697
|
-
declare const memberCampaignEnrollmentInputSchema: z.ZodObject<{
|
|
2698
|
-
actionId: z.ZodString;
|
|
2699
|
-
campaign: z.ZodString;
|
|
2700
|
-
member: z.ZodString;
|
|
2701
|
-
}, z.core.$strict>;
|
|
2702
|
-
type MemberCampaignEnrollmentInput = z.input<typeof memberCampaignEnrollmentInputSchema>;
|
|
2703
|
-
declare const campaignWithdrawalInputSchema: z.ZodObject<{
|
|
2704
|
-
actionId: z.ZodString;
|
|
2705
|
-
campaign: z.ZodString;
|
|
2706
|
-
}, z.core.$strict>;
|
|
2707
|
-
type CampaignWithdrawalInput = z.input<typeof campaignWithdrawalInputSchema>;
|
|
2708
|
-
declare const memberCampaignWithdrawalInputSchema: z.ZodObject<{
|
|
2709
|
-
actionId: z.ZodString;
|
|
2710
|
-
campaign: z.ZodString;
|
|
2711
|
-
member: z.ZodString;
|
|
2712
|
-
reason: z.ZodString;
|
|
2713
|
-
}, z.core.$strict>;
|
|
2714
|
-
type MemberCampaignWithdrawalInput = z.input<typeof memberCampaignWithdrawalInputSchema>;
|
|
2715
|
-
declare const campaignEnrollmentSchema: z.ZodObject<{
|
|
2716
|
-
campaign: z.ZodString;
|
|
2717
|
-
member: z.ZodString;
|
|
2718
|
-
enrolledAt: z.ZodNumber;
|
|
2719
|
-
withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2720
|
-
withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2721
|
-
}, z.core.$strip>;
|
|
2722
|
-
type CampaignEnrollment = z.infer<typeof campaignEnrollmentSchema>;
|
|
2723
|
-
|
|
2724
|
-
declare const projectGroupSchema: z.ZodObject<{
|
|
2725
|
-
key: z.ZodString;
|
|
2726
|
-
title: z.ZodString;
|
|
2727
|
-
}, z.core.$strict>;
|
|
2728
|
-
type ProjectGroup = z.infer<typeof projectGroupSchema>;
|
|
2729
|
-
declare const projectGroupAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
2730
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2731
|
-
key: z.ZodString;
|
|
2732
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
2733
|
-
key: string;
|
|
2734
|
-
title: string;
|
|
2735
|
-
}, {
|
|
2736
|
-
key: string;
|
|
2737
|
-
title?: string | undefined;
|
|
2738
|
-
}>>;
|
|
2739
|
-
/**
|
|
2740
|
-
* Define one project group for prerequisites, rewards, leaderboards, and referrals. The handle
|
|
2741
|
-
* names the group by its key. Publishing code that names it creates the group, with no members,
|
|
2742
|
-
* where the environment lacks it: titled from this handle for a reward or `inGroup`, and with its
|
|
2743
|
-
* key for a leaderboard or referral rule. Operators manage its members in Console or with
|
|
2744
|
-
* `management.groups`.
|
|
2745
|
-
*/
|
|
2746
|
-
declare function defineGroup(input: Omit<z.input<typeof projectGroupAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
|
|
2747
|
-
key: string;
|
|
2748
|
-
title: string;
|
|
2749
|
-
} & ResourceHandle<"group">;
|
|
2750
|
-
type ProjectGroupReference = GroupHandle;
|
|
2751
|
-
declare function projectGroupKey(group: ProjectGroupReference): string;
|
|
2752
|
-
/** Creates a group under `key`, the name prerequisites, leaderboards and referral rules use. */
|
|
2753
|
-
declare const createGroupSchema: z.ZodObject<{
|
|
2754
|
-
actionId: z.ZodString;
|
|
2755
|
-
key: z.ZodString;
|
|
2756
|
-
title: z.ZodString;
|
|
2757
|
-
}, z.core.$strict>;
|
|
2758
|
-
/** Renames a group. Its key, members and history stay. */
|
|
2759
|
-
declare const updateGroupSchema: z.ZodObject<{
|
|
2760
|
-
title: z.ZodString;
|
|
2761
|
-
}, z.core.$strict>;
|
|
2762
|
-
/** Adds `member` to a group, with a reason for the audit history. */
|
|
2763
|
-
declare const addGroupMemberSchema: z.ZodObject<{
|
|
2764
|
-
actionId: z.ZodString;
|
|
2765
|
-
member: z.ZodString;
|
|
2766
|
-
reason: z.ZodString;
|
|
2767
|
-
}, z.core.$strict>;
|
|
2768
|
-
/** Removes the member the path names from a group, with a reason for the audit history. */
|
|
2769
|
-
declare const removeGroupMemberSchema: z.ZodObject<{
|
|
2770
|
-
actionId: z.ZodString;
|
|
2771
|
-
reason: z.ZodString;
|
|
2772
|
-
}, z.core.$strict>;
|
|
2773
|
-
/** Archives or unarchives a group, with an optional reason for the audit history. */
|
|
2774
|
-
declare const groupArchiveInputSchema: z.ZodObject<{
|
|
2775
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
2776
|
-
}, z.core.$strict>;
|
|
2777
|
-
type GroupArchiveInput = z.input<typeof groupArchiveInputSchema>;
|
|
2778
|
-
/** One page of groups or of a group's members: pass `nextCursor` back as `cursor`. */
|
|
2779
|
-
declare const groupPageQuerySchema: z.ZodObject<{
|
|
2780
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
2781
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
2782
|
-
}, z.core.$strict>;
|
|
2783
|
-
type GroupPageQuery = z.input<typeof groupPageQuerySchema>;
|
|
2784
|
-
/**
|
|
2785
|
-
* A group as operators manage it, with the number of its current members. An archived group
|
|
2786
|
-
* keeps its members, and prerequisites, leaderboards and referral rules still read them, but its
|
|
2787
|
-
* membership cannot change until it is unarchived.
|
|
2788
|
-
*/
|
|
2789
|
-
declare const managedGroupSchema: z.ZodObject<{
|
|
2790
|
-
key: z.ZodString;
|
|
2791
|
-
title: z.ZodString;
|
|
2792
|
-
members: z.ZodNumber;
|
|
2793
|
-
createdAt: z.ZodNumber;
|
|
2794
|
-
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
2795
|
-
}, z.core.$strip>;
|
|
2796
|
-
/** @compat output */
|
|
2797
|
-
type ManagedGroup = z.infer<typeof managedGroupSchema>;
|
|
2798
|
-
declare const groupPageSchema: z.ZodObject<{
|
|
2799
|
-
items: z.ZodArray<z.ZodObject<{
|
|
2800
|
-
key: z.ZodString;
|
|
2801
|
-
title: z.ZodString;
|
|
2802
|
-
members: z.ZodNumber;
|
|
2803
|
-
createdAt: z.ZodNumber;
|
|
2804
|
-
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
2805
|
-
}, z.core.$strip>>;
|
|
2806
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2807
|
-
}, z.core.$strip>;
|
|
2808
|
-
/** @compat output */
|
|
2809
|
-
type GroupPage = z.infer<typeof groupPageSchema>;
|
|
2810
|
-
/** A current member of a group. `addedAt` is null when Relay has no record of when they joined. */
|
|
2811
|
-
declare const groupMemberSchema: z.ZodObject<{
|
|
2812
|
-
member: z.ZodString;
|
|
2813
|
-
addedAt: z.ZodNullable<z.ZodNumber>;
|
|
2814
|
-
}, z.core.$strip>;
|
|
2815
|
-
/** @compat output */
|
|
2816
|
-
type GroupMember = z.infer<typeof groupMemberSchema>;
|
|
2817
|
-
declare const groupMemberPageSchema: z.ZodObject<{
|
|
2818
|
-
items: z.ZodArray<z.ZodObject<{
|
|
2819
|
-
member: z.ZodString;
|
|
2820
|
-
addedAt: z.ZodNullable<z.ZodNumber>;
|
|
2821
|
-
}, z.core.$strip>>;
|
|
2822
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2823
|
-
}, z.core.$strip>;
|
|
2824
|
-
/** @compat output */
|
|
2825
|
-
type GroupMemberPage = z.infer<typeof groupMemberPageSchema>;
|
|
2826
|
-
|
|
2827
|
-
export { engagementChangePreviewInputSchema as $, type AvailabilityWindow as A, type LeaderboardPoolUnit as B, type CampaignDefinition as C, type LeaderboardSettlement as D, type EngagementBudget as E, type LeaderboardSettlementPolicy as F, type GroupArchiveInput as G, type LeaderboardSettlementPool as H, type LeaderboardSettlementSummary as I, type ManagedGroup as J, type ManagedPointHistoryPage as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, addGroupMemberSchema as N, availabilityWindowSchema as O, type ProjectGroup as P, baseUnitsSchema as Q, type ReferralDefinition as R, campaignDefinitionSchema as S, campaignEnrollmentInputSchema as T, campaignEnrollmentSchema as U, campaignViewSchema as V, campaignWithdrawalInputSchema as W, createGroupSchema as X, engagementArtifactSchema as Y, engagementBoundaryPageSchema as Z, engagementBudgetSchema as _, type CampaignEnrollment as a, referralQualificationSchema as a$, engagementChangePreviewSchema as a0, engagementChangeSchema as a1, engagementDefinitionSchema as a2, engagementDeploymentEntrySchema as a3, engagementPageSchema as a4, engagementPublishSchema as a5, engagementRuleSchema as a6, engagementRuleVersionPageSchema as a7, engagementScoreInputSchema as a8, engagementScoreSchema as a9, leaderboardSettlementApprovalSchema as aA, leaderboardSettlementPolicySchema as aB, leaderboardSettlementPoolSchema as aC, leaderboardSettlementRowSchema as aD, leaderboardSettlementSchema as aE, leaderboardSettlementStatusSchema as aF, leaderboardSettlementSummarySchema as aG, leaderboardSettlementUnmeasuredSchema as aH, leaderboardWindowSchema as aI, managedGroupSchema as aJ, managedPointHistoryPageSchema as aK, memberCampaignEnrollmentInputSchema as aL, memberCampaignWithdrawalInputSchema as aM, pointsAccountSchema as aN, pointsEntrySchema as aO, pointsMutationSchema as aP, pointsResultSchema as aQ, projectGroupKey as aR, projectGroupSchema as aS, publishedLeaderboardSchema as aT, publishedReferralSchema as aU, referralAccountSchema as aV, referralArtifactSchema as aW, referralControlSchema as aX, referralDefinitionSchema as aY, referralHistorySchema as aZ, referralManagementSchema as a_, engagementSettlementSchema as aa, engagementVersionPageSchema as ab, engagementVersionQuerySchema as ac, groupArchiveInputSchema as ad, groupMemberPageSchema as ae, groupMemberSchema as af, groupPageQuerySchema as ag, groupPageSchema as ah, leaderboardArtifactSchema as ai, leaderboardAuthoringSchema as aj, leaderboardDefinitionResponseSchema as ak, leaderboardExclusionGroupBindingSchema as al, leaderboardExclusionGroupSchema as am, leaderboardExclusionSchema as an, leaderboardGroupSchema as ao, leaderboardHistoryPageSchema as ap, leaderboardHistoryQuerySchema as aq, leaderboardPageSchema as ar, leaderboardPlacementSchema as as, leaderboardPoolSchema as at, leaderboardPoolUnitSchema as au, leaderboardPreviewSchema as av, leaderboardPrizeRewardSchema as aw, leaderboardPrizeSchema as ax, leaderboardQuerySchema as ay, leaderboardRowSchema as az, type CampaignEnrollmentInput as b, referralRelationshipSchema as b0, referralRewardResolutionSchema as b1, referralSummarySchema as b2, referralSuspensionSchema as b3, removeGroupMemberSchema as b4, updateGroupSchema as b5, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardHistoryPage as e, type LeaderboardHistoryQuery as f, type LeaderboardPage as g, type LeaderboardPlacement as h, type LeaderboardQuery as i, type MemberCampaignWithdrawalInput as j, type ProjectGroupReference as k, type AuthoringIdentity as l, leaderboardDefinitionSchema as m, defineCampaign as n, defineGroup as o, referralAcceptSchema as p, engagementPageQuerySchema as q, referralAuthoringSchema as r, type EngagementDefinition as s, type EngagementRuleVersionPage as t, type GroupMember as u, type GroupMemberPage as v, type GroupPage as w, type GroupPageQuery as x, type LeaderboardExclusionGroup as y, type LeaderboardPool as z };
|