@domino-sdk/relay 1.0.0-next.9 → 1.0.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/README.md +1 -1
- package/dist/activity-DeKJsRry.d.ts +9112 -0
- package/dist/authoring.d.ts +1027 -233
- package/dist/authoring.js +478 -277
- package/dist/automatic-outcomes-B1xrETxm.d.ts +758 -0
- package/dist/avatar.d.ts +2 -2
- package/dist/browser-DFe7sWSN.d.ts +4154 -0
- package/dist/browser.d.ts +11 -2613
- package/dist/browser.js +8 -6
- package/dist/{integrations-Ba5TtqTv.d.ts → capability-error-DNMwKmlL.d.ts} +124 -76
- package/dist/{chunk-PHU5VDLR.js → chunk-36HTX2BM.js} +389 -169
- package/dist/chunk-6QJ3LADK.js +112 -0
- package/dist/{chunk-4LBUTHD6.js → chunk-BGGKNIRP.js} +1 -1
- package/dist/chunk-EYH5RDIE.js +496 -0
- package/dist/chunk-GQKYAQM6.js +84 -0
- package/dist/chunk-GUP7YRR4.js +42 -0
- package/dist/{chunk-X2F2RAR3.js → chunk-GZ6FJAXN.js} +380 -128
- package/dist/chunk-JON5SESL.js +2986 -0
- package/dist/chunk-MC6V6VMG.js +49 -0
- package/dist/chunk-NPGENI7K.js +37 -0
- package/dist/chunk-VFHHLN6A.js +284 -0
- package/dist/chunk-WJSSJ7AF.js +151 -0
- package/dist/{chunk-7Q4BGGT6.js → chunk-XFMSUPNS.js} +1 -1
- package/dist/{chunk-P6FK43GG.js → chunk-ZVIRG24J.js} +145 -42
- package/dist/{client-CT4-S5vc.d.ts → client-XiuFnug_.d.ts} +2161 -615
- package/dist/{submission-input-0OOGaq8c.d.ts → groups-Ck-OxzjD.d.ts} +916 -1139
- package/dist/identity-integration-GxAHdKR2.d.ts +58 -0
- package/dist/images-Dv-P5VBw.d.ts +234 -0
- package/dist/index.d.ts +13 -9
- package/dist/index.js +17 -6
- package/dist/internal.d.ts +82 -44
- package/dist/internal.js +43 -89
- package/dist/offers-Cy-e4o5x.d.ts +431 -0
- package/dist/{pages-D3titw5B.d.ts → outcomes-kVB-Juzs.d.ts} +2157 -1448
- package/dist/pages-BBYD21IE.d.ts +359 -0
- package/dist/participant-rewards-3duLb8YJ.d.ts +668 -0
- package/dist/portal-proxy.js +22 -4
- package/dist/{profiles-DDMFBRKe.d.ts → profiles-D2aFcOxu.d.ts} +15 -15
- package/dist/react/index.d.ts +3038 -1029
- package/dist/react/index.js +1627 -779
- package/dist/request-error-DWduJCGV.d.ts +62 -0
- package/dist/schema-DfJzH2ci.d.ts +5644 -0
- package/dist/schema.d.ts +15 -4168
- package/dist/schema.js +310 -81
- package/dist/server/index.d.ts +81498 -0
- package/dist/server/index.js +2520 -0
- package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
- package/dist/submission-input-BZkm6ohU.d.ts +290 -0
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -0
- package/dist/{wallet-BGOfFkG9.d.ts → wallet-YssWxGg8.d.ts} +35 -38
- package/package.json +8 -2
- package/dist/chunk-QR7ZA2BJ.js +0 -257
- package/dist/chunk-YYD4QUBO.js +0 -2348
- package/dist/chunk-ZWY3R6B3.js +0 -26
- package/dist/collection-BGneJ6Bk.d.ts +0 -114
- package/dist/images-BTgk6OmC.d.ts +0 -1564
- package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
- package/dist/schema-Di3aLSiK.d.ts +0 -3532
|
@@ -1,265 +1,185 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { cF as ResourceHandle, cI as GroupHandle } from './schema-DfJzH2ci.js';
|
|
2
3
|
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
start: z.ZodNumber;
|
|
7
|
-
end: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
}, z.core.$strict>;
|
|
9
|
-
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
10
|
-
required: "required";
|
|
11
|
-
none: "none";
|
|
12
|
-
}>>;
|
|
13
|
-
posts: z.ZodDefault<z.ZodEnum<{
|
|
14
|
-
"after-enrollment": "after-enrollment";
|
|
15
|
-
"since-start": "since-start";
|
|
16
|
-
}>>;
|
|
17
|
-
historical: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
automatic: "automatic";
|
|
19
|
-
claim: "claim";
|
|
20
|
-
staff: "staff";
|
|
21
|
-
}>>;
|
|
22
|
-
}, z.core.$strict>;
|
|
23
|
-
type ContentPolicy = z.infer<typeof contentPolicySchema>;
|
|
24
|
-
declare const admittedContentSchema: z.ZodObject<{
|
|
25
|
-
version: z.ZodLiteral<1>;
|
|
26
|
-
id: z.ZodString;
|
|
27
|
-
authorId: z.ZodString;
|
|
28
|
-
publishedAt: z.ZodNumber;
|
|
29
|
-
text: z.ZodString;
|
|
30
|
-
isReply: z.ZodBoolean;
|
|
31
|
-
isRetweet: z.ZodBoolean;
|
|
32
|
-
isQuoteTweet: z.ZodBoolean;
|
|
33
|
-
media: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
34
|
-
type: z.ZodString;
|
|
35
|
-
url: z.ZodString;
|
|
36
|
-
}, z.core.$strict>>>;
|
|
37
|
-
mentionedAuthorIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
38
|
-
videoLengthSeconds: z.ZodNullable<z.ZodNumber>;
|
|
39
|
-
references: z.ZodObject<{
|
|
40
|
-
replyId: z.ZodNullable<z.ZodString>;
|
|
41
|
-
replyAuthorId: z.ZodNullable<z.ZodString>;
|
|
42
|
-
quoteId: z.ZodNullable<z.ZodString>;
|
|
43
|
-
quoteAuthorId: z.ZodNullable<z.ZodString>;
|
|
44
|
-
repostId: z.ZodNullable<z.ZodString>;
|
|
45
|
-
repostAuthorId: z.ZodNullable<z.ZodString>;
|
|
46
|
-
}, z.core.$strict>;
|
|
47
|
-
tracker: z.ZodString;
|
|
48
|
-
revision: z.ZodString;
|
|
49
|
-
observation: z.ZodString;
|
|
50
|
-
attribution: z.ZodObject<{
|
|
51
|
-
kind: z.ZodLiteral<"linked">;
|
|
52
|
-
account: z.ZodObject<{
|
|
53
|
-
provider: z.ZodLiteral<"x">;
|
|
54
|
-
issuer: z.ZodString;
|
|
55
|
-
subject: z.ZodString;
|
|
56
|
-
revision: z.ZodNumber;
|
|
57
|
-
linkedAt: z.ZodNullable<z.ZodNumber>;
|
|
58
|
-
}, z.core.$strict>;
|
|
59
|
-
member: z.ZodString;
|
|
60
|
-
capturedAt: z.ZodNumber;
|
|
61
|
-
}, z.core.$strict>;
|
|
62
|
-
enrolledAt: z.ZodNullable<z.ZodNumber>;
|
|
63
|
-
completionKey: z.ZodString;
|
|
4
|
+
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodDefault<z.ZodString>;
|
|
64
7
|
}, z.core.$strict>;
|
|
65
|
-
|
|
66
|
-
|
|
8
|
+
declare const createPointLedgerSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
description: z.ZodDefault<z.ZodString>;
|
|
67
11
|
actionId: z.ZodString;
|
|
68
|
-
|
|
69
|
-
member: z.ZodString;
|
|
12
|
+
key: z.ZodOptional<z.ZodString>;
|
|
70
13
|
}, z.core.$strict>;
|
|
71
|
-
declare const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
14
|
+
declare const pointLedgerSchema: z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
description: z.ZodDefault<z.ZodString>;
|
|
17
|
+
id: z.ZodString;
|
|
75
18
|
}, z.core.$strict>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
19
|
+
/** A point ledger as operators manage it. Archived ledgers stay readable but cannot be selected for new rewards. */
|
|
20
|
+
declare const managedPointLedgerSchema: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodDefault<z.ZodString>;
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
81
25
|
}, z.core.$strict>;
|
|
82
|
-
declare const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
state: z.ZodEnum<{
|
|
87
|
-
pending: "pending";
|
|
88
|
-
excluded: "excluded";
|
|
89
|
-
admitted: "admitted";
|
|
90
|
-
}>;
|
|
91
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
92
|
-
attempt: z.ZodNullable<z.ZodString>;
|
|
26
|
+
declare const pointLedgerDeclarationSchema: z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
description: z.ZodDefault<z.ZodString>;
|
|
29
|
+
key: z.ZodString;
|
|
93
30
|
}, z.core.$strict>;
|
|
94
|
-
declare const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
31
|
+
declare const pointLedgerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
description: z.ZodDefault<z.ZodString>;
|
|
34
|
+
key: z.ZodString;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
code: z.ZodString;
|
|
37
|
+
}, z.core.$strict>]>;
|
|
38
|
+
/**
|
|
39
|
+
* What an app needs to recognize and name a ledger it finds in a read. `key` is
|
|
40
|
+
* the authoring key, null for ledgers created in Console without one.
|
|
41
|
+
* Reads return ledger IDs; match them against `key` rather than comparing
|
|
42
|
+
* an ID with an authoring key.
|
|
43
|
+
*/
|
|
44
|
+
declare const pointLedgerReferenceSchema: z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
key: z.ZodNullable<z.ZodString>;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
/**
|
|
50
|
+
* The signed-in member's balance in one ledger (`relay.me.balances()`). `balance` is the current
|
|
51
|
+
* balance, every entry counted; `available` leaves out points that reservations hold, so it is what
|
|
52
|
+
* the member can spend now.
|
|
53
|
+
*/
|
|
54
|
+
declare const pointBalanceSchema: z.ZodObject<{
|
|
55
|
+
ledger: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
key: z.ZodNullable<z.ZodString>;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
balance: z.ZodNumber;
|
|
61
|
+
available: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
/** `relay.me.balances()`: the member's balance in each of the project's ledgers. */
|
|
64
|
+
declare const pointBalancesSchema: z.ZodObject<{
|
|
65
|
+
items: z.ZodArray<z.ZodObject<{
|
|
66
|
+
ledger: z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
key: z.ZodNullable<z.ZodString>;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
balance: z.ZodNumber;
|
|
72
|
+
available: z.ZodNumber;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
type KnownPointEntryKind = (typeof PointEntryKind)[keyof typeof PointEntryKind];
|
|
76
|
+
/**
|
|
77
|
+
* The point entry kinds this SDK knows. `PointEntry.kind` is an open string: Relay can add kinds,
|
|
78
|
+
* and an entry keeps a kind this SDK does not list. Show such an entry by its `amount` alone.
|
|
79
|
+
* Referral payouts are adjustments (`adjust` with `quest: null`).
|
|
80
|
+
*/
|
|
81
|
+
declare const PointEntryKind: {
|
|
82
|
+
/** Points a quest completion, an engagement settlement or an operator awarded. */
|
|
83
|
+
readonly Award: "award";
|
|
84
|
+
/** Points the member spent. */
|
|
85
|
+
readonly Spend: "spend";
|
|
86
|
+
/** A correction in either direction, by an operator or a referral payout. */
|
|
87
|
+
readonly Adjust: "adjust";
|
|
88
|
+
/** Undoes part or all of an award or a positive adjustment (`reverses`). */
|
|
89
|
+
readonly Reverse: "reverse";
|
|
90
|
+
};
|
|
91
|
+
/** A known kind, or one a newer Relay sends. */
|
|
92
|
+
type PointEntryKind = KnownPointEntryKind | (string & {});
|
|
93
|
+
/**
|
|
94
|
+
* One entry in the signed-in member's own point history (`relay.me.pointHistory()`): what changed
|
|
95
|
+
* their balance and when, without the operator's reason or actor. `amount` is signed: spending and
|
|
96
|
+
* reversals are negative. `quest` is the quest that paid it (through a completion or an engagement
|
|
97
|
+
* settlement), if any; `reverses` is the entry a reversal undoes.
|
|
98
|
+
*/
|
|
99
|
+
declare const pointEntrySchema: z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
amount: z.ZodNumber;
|
|
102
|
+
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
103
|
+
at: z.ZodNumber;
|
|
104
|
+
quest: z.ZodNullable<z.ZodString>;
|
|
105
|
+
reverses: z.ZodNullable<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
/** `relay.me.pointHistory()`: one ledger, by key or ID. */
|
|
108
|
+
declare const pointHistoryQuerySchema: z.ZodObject<{
|
|
109
|
+
ledger: z.ZodString;
|
|
98
110
|
cursor: z.ZodOptional<z.ZodString>;
|
|
99
111
|
}, z.core.$strict>;
|
|
100
|
-
|
|
112
|
+
/**
|
|
113
|
+
* One page of the signed-in member's point history, the most recently recorded entry first. That
|
|
114
|
+
* is not always `at` order: a backdated entry or a reversal records now with an earlier `at`.
|
|
115
|
+
*/
|
|
116
|
+
declare const pointHistoryPageSchema: z.ZodObject<{
|
|
101
117
|
items: z.ZodArray<z.ZodObject<{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}>;
|
|
110
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
111
|
-
attempt: z.ZodNullable<z.ZodString>;
|
|
112
|
-
}, z.core.$strict>>;
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
amount: z.ZodNumber;
|
|
120
|
+
kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
|
|
121
|
+
at: z.ZodNumber;
|
|
122
|
+
quest: z.ZodNullable<z.ZodString>;
|
|
123
|
+
reverses: z.ZodNullable<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
113
125
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
114
|
-
}, z.core.$
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
type PointLedger = z.infer<typeof pointLedgerSchema>;
|
|
128
|
+
type ManagedPointLedger = z.infer<typeof managedPointLedgerSchema>;
|
|
129
|
+
type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
|
|
130
|
+
type PointBalance = z.infer<typeof pointBalanceSchema>;
|
|
131
|
+
type PointBalances = z.infer<typeof pointBalancesSchema>;
|
|
132
|
+
type PointEntry = z.infer<typeof pointEntrySchema>;
|
|
133
|
+
type PointHistoryQuery = z.input<typeof pointHistoryQuerySchema>;
|
|
134
|
+
type PointHistoryPage = z.infer<typeof pointHistoryPageSchema>;
|
|
135
|
+
|
|
136
|
+
type AuthoringIdentity = {
|
|
137
|
+
key: string;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* A cap on the points one rule pays per bucket: for the whole project or for each member, per day,
|
|
142
|
+
* week or month of the project calendar at settlement time, or over the rule's lifetime.
|
|
143
|
+
*/
|
|
144
|
+
declare const engagementBudgetSchema: z.ZodObject<{
|
|
145
|
+
scope: z.ZodEnum<{
|
|
146
|
+
member: "member";
|
|
147
|
+
project: "project";
|
|
121
148
|
}>;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
content: z.ZodOptional<z.ZodString>;
|
|
128
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
129
|
-
}, z.core.$strict>;
|
|
130
|
-
declare const contentQualificationSchema: z.ZodObject<{
|
|
131
|
-
quest: z.ZodString;
|
|
132
|
-
content: z.ZodString;
|
|
133
|
-
member: z.ZodString;
|
|
134
|
-
release: z.ZodString;
|
|
135
|
-
attempt: z.ZodString;
|
|
136
|
-
revision: z.ZodString;
|
|
137
|
-
observation: z.ZodString;
|
|
138
|
-
current: z.ZodBoolean;
|
|
139
|
-
state: z.ZodEnum<{
|
|
140
|
-
pending: "pending";
|
|
141
|
-
superseded: "superseded";
|
|
142
|
-
qualified: "qualified";
|
|
143
|
-
unqualified: "unqualified";
|
|
144
|
-
"needs-review": "needs-review";
|
|
145
|
-
failed: "failed";
|
|
146
|
-
stale: "stale";
|
|
147
|
-
blocked: "blocked";
|
|
148
|
-
unavailable: "unavailable";
|
|
149
|
+
period: z.ZodEnum<{
|
|
150
|
+
lifetime: "lifetime";
|
|
151
|
+
day: "day";
|
|
152
|
+
week: "week";
|
|
153
|
+
month: "month";
|
|
149
154
|
}>;
|
|
150
|
-
|
|
151
|
-
reward: z.ZodObject<{
|
|
152
|
-
attempt: z.ZodNullable<z.ZodString>;
|
|
153
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
154
|
-
state: z.ZodEnum<{
|
|
155
|
-
excluded: "excluded";
|
|
156
|
-
unresolved: "unresolved";
|
|
157
|
-
awarded: "awarded";
|
|
158
|
-
}>;
|
|
159
|
-
}, z.core.$strict>;
|
|
155
|
+
limit: z.ZodNumber;
|
|
160
156
|
}, z.core.$strict>;
|
|
161
|
-
|
|
162
|
-
items: z.ZodArray<z.ZodObject<{
|
|
163
|
-
quest: z.ZodString;
|
|
164
|
-
content: z.ZodString;
|
|
165
|
-
member: z.ZodString;
|
|
166
|
-
release: z.ZodString;
|
|
167
|
-
attempt: z.ZodString;
|
|
168
|
-
revision: z.ZodString;
|
|
169
|
-
observation: z.ZodString;
|
|
170
|
-
current: z.ZodBoolean;
|
|
171
|
-
state: z.ZodEnum<{
|
|
172
|
-
pending: "pending";
|
|
173
|
-
superseded: "superseded";
|
|
174
|
-
qualified: "qualified";
|
|
175
|
-
unqualified: "unqualified";
|
|
176
|
-
"needs-review": "needs-review";
|
|
177
|
-
failed: "failed";
|
|
178
|
-
stale: "stale";
|
|
179
|
-
blocked: "blocked";
|
|
180
|
-
unavailable: "unavailable";
|
|
181
|
-
}>;
|
|
182
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
183
|
-
reward: z.ZodObject<{
|
|
184
|
-
attempt: z.ZodNullable<z.ZodString>;
|
|
185
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
186
|
-
state: z.ZodEnum<{
|
|
187
|
-
excluded: "excluded";
|
|
188
|
-
unresolved: "unresolved";
|
|
189
|
-
awarded: "awarded";
|
|
190
|
-
}>;
|
|
191
|
-
}, z.core.$strict>;
|
|
192
|
-
}, z.core.$strict>>;
|
|
193
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
194
|
-
}, z.core.$strict>;
|
|
195
|
-
declare const contentMetricSchema: z.ZodEnum<{
|
|
196
|
-
likes: "likes";
|
|
197
|
-
replies: "replies";
|
|
198
|
-
reposts: "reposts";
|
|
199
|
-
quotes: "quotes";
|
|
200
|
-
views: "views";
|
|
201
|
-
bookmarks: "bookmarks";
|
|
202
|
-
}>;
|
|
203
|
-
type ContentMetric = z.infer<typeof contentMetricSchema>;
|
|
204
|
-
declare const contentMetricsSchema: z.ZodRecord<z.ZodEnum<{
|
|
205
|
-
likes: "likes";
|
|
206
|
-
replies: "replies";
|
|
207
|
-
reposts: "reposts";
|
|
208
|
-
quotes: "quotes";
|
|
209
|
-
views: "views";
|
|
210
|
-
bookmarks: "bookmarks";
|
|
211
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
212
|
-
declare const contentPerformancePolicySchema: z.ZodObject<{
|
|
213
|
-
metrics: z.ZodArray<z.ZodEnum<{
|
|
214
|
-
likes: "likes";
|
|
215
|
-
replies: "replies";
|
|
216
|
-
reposts: "reposts";
|
|
217
|
-
quotes: "quotes";
|
|
218
|
-
views: "views";
|
|
219
|
-
bookmarks: "bookmarks";
|
|
220
|
-
}>>;
|
|
221
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
222
|
-
}, z.core.$strict>;
|
|
223
|
-
type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
|
|
224
|
-
|
|
157
|
+
type EngagementBudget = z.infer<typeof engagementBudgetSchema>;
|
|
225
158
|
declare const engagementDefinitionSchema: z.ZodObject<{
|
|
226
159
|
key: z.ZodString;
|
|
227
160
|
qualifiedBy: z.ZodString;
|
|
228
161
|
balance: z.ZodString;
|
|
229
|
-
metrics: z.ZodArray<z.
|
|
230
|
-
likes: "likes";
|
|
231
|
-
replies: "replies";
|
|
232
|
-
reposts: "reposts";
|
|
233
|
-
quotes: "quotes";
|
|
234
|
-
views: "views";
|
|
235
|
-
bookmarks: "bookmarks";
|
|
236
|
-
}>>;
|
|
162
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
237
163
|
baseline: z.ZodLiteral<"historical">;
|
|
238
164
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
165
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
166
|
+
scope: z.ZodEnum<{
|
|
167
|
+
member: "member";
|
|
168
|
+
project: "project";
|
|
169
|
+
}>;
|
|
170
|
+
period: z.ZodEnum<{
|
|
171
|
+
lifetime: "lifetime";
|
|
172
|
+
day: "day";
|
|
173
|
+
week: "week";
|
|
174
|
+
month: "month";
|
|
175
|
+
}>;
|
|
176
|
+
limit: z.ZodNumber;
|
|
177
|
+
}, z.core.$strict>>>;
|
|
244
178
|
}, z.core.$strict>;
|
|
245
179
|
type EngagementDefinition = z.infer<typeof engagementDefinitionSchema>;
|
|
246
180
|
declare const engagementScoreInputSchema: z.ZodObject<{
|
|
247
|
-
metrics: z.ZodRecord<z.
|
|
248
|
-
|
|
249
|
-
replies: "replies";
|
|
250
|
-
reposts: "reposts";
|
|
251
|
-
quotes: "quotes";
|
|
252
|
-
views: "views";
|
|
253
|
-
bookmarks: "bookmarks";
|
|
254
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
255
|
-
baseline: z.ZodRecord<z.ZodEnum<{
|
|
256
|
-
likes: "likes";
|
|
257
|
-
replies: "replies";
|
|
258
|
-
reposts: "reposts";
|
|
259
|
-
quotes: "quotes";
|
|
260
|
-
views: "views";
|
|
261
|
-
bookmarks: "bookmarks";
|
|
262
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
181
|
+
metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
182
|
+
baseline: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
263
183
|
}, z.core.$strict>;
|
|
264
184
|
declare const engagementScoreSchema: z.ZodObject<{
|
|
265
185
|
target: z.ZodNumber;
|
|
@@ -275,21 +195,22 @@ declare const engagementRuleSchema: z.ZodObject<{
|
|
|
275
195
|
key: z.ZodString;
|
|
276
196
|
qualifiedBy: z.ZodString;
|
|
277
197
|
balance: z.ZodString;
|
|
278
|
-
metrics: z.ZodArray<z.
|
|
279
|
-
likes: "likes";
|
|
280
|
-
replies: "replies";
|
|
281
|
-
reposts: "reposts";
|
|
282
|
-
quotes: "quotes";
|
|
283
|
-
views: "views";
|
|
284
|
-
bookmarks: "bookmarks";
|
|
285
|
-
}>>;
|
|
198
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
286
199
|
baseline: z.ZodLiteral<"historical">;
|
|
287
200
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
201
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
202
|
+
scope: z.ZodEnum<{
|
|
203
|
+
member: "member";
|
|
204
|
+
project: "project";
|
|
205
|
+
}>;
|
|
206
|
+
period: z.ZodEnum<{
|
|
207
|
+
lifetime: "lifetime";
|
|
208
|
+
day: "day";
|
|
209
|
+
week: "week";
|
|
210
|
+
month: "month";
|
|
211
|
+
}>;
|
|
212
|
+
limit: z.ZodNumber;
|
|
213
|
+
}, z.core.$strict>>>;
|
|
293
214
|
}, z.core.$strict>;
|
|
294
215
|
publishedAt: z.ZodNumber;
|
|
295
216
|
}, z.core.$strict>;
|
|
@@ -318,21 +239,22 @@ declare const engagementPageSchema: z.ZodObject<{
|
|
|
318
239
|
key: z.ZodString;
|
|
319
240
|
qualifiedBy: z.ZodString;
|
|
320
241
|
balance: z.ZodString;
|
|
321
|
-
metrics: z.ZodArray<z.
|
|
322
|
-
likes: "likes";
|
|
323
|
-
replies: "replies";
|
|
324
|
-
reposts: "reposts";
|
|
325
|
-
quotes: "quotes";
|
|
326
|
-
views: "views";
|
|
327
|
-
bookmarks: "bookmarks";
|
|
328
|
-
}>>;
|
|
242
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
329
243
|
baseline: z.ZodLiteral<"historical">;
|
|
330
244
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
245
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
246
|
+
scope: z.ZodEnum<{
|
|
247
|
+
member: "member";
|
|
248
|
+
project: "project";
|
|
249
|
+
}>;
|
|
250
|
+
period: z.ZodEnum<{
|
|
251
|
+
lifetime: "lifetime";
|
|
252
|
+
day: "day";
|
|
253
|
+
week: "week";
|
|
254
|
+
month: "month";
|
|
255
|
+
}>;
|
|
256
|
+
limit: z.ZodNumber;
|
|
257
|
+
}, z.core.$strict>>>;
|
|
336
258
|
}, z.core.$strict>;
|
|
337
259
|
publishedAt: z.ZodNumber;
|
|
338
260
|
}, z.core.$strict>;
|
|
@@ -343,22 +265,8 @@ declare const engagementPageSchema: z.ZodObject<{
|
|
|
343
265
|
paid: z.ZodNumber;
|
|
344
266
|
excluded: z.ZodNumber;
|
|
345
267
|
pending: z.ZodNumber;
|
|
346
|
-
counters: z.ZodRecord<z.
|
|
347
|
-
|
|
348
|
-
replies: "replies";
|
|
349
|
-
reposts: "reposts";
|
|
350
|
-
quotes: "quotes";
|
|
351
|
-
views: "views";
|
|
352
|
-
bookmarks: "bookmarks";
|
|
353
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
354
|
-
baseline: z.ZodRecord<z.ZodEnum<{
|
|
355
|
-
likes: "likes";
|
|
356
|
-
replies: "replies";
|
|
357
|
-
reposts: "reposts";
|
|
358
|
-
quotes: "quotes";
|
|
359
|
-
views: "views";
|
|
360
|
-
bookmarks: "bookmarks";
|
|
361
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
268
|
+
counters: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
269
|
+
baseline: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
362
270
|
observation: z.ZodNullable<z.ZodString>;
|
|
363
271
|
nextSettlementAt: z.ZodNullable<z.ZodNumber>;
|
|
364
272
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -395,21 +303,22 @@ declare const engagementChangePreviewSchema: z.ZodObject<{
|
|
|
395
303
|
key: z.ZodString;
|
|
396
304
|
qualifiedBy: z.ZodString;
|
|
397
305
|
balance: z.ZodString;
|
|
398
|
-
metrics: z.ZodArray<z.
|
|
399
|
-
likes: "likes";
|
|
400
|
-
replies: "replies";
|
|
401
|
-
reposts: "reposts";
|
|
402
|
-
quotes: "quotes";
|
|
403
|
-
views: "views";
|
|
404
|
-
bookmarks: "bookmarks";
|
|
405
|
-
}>>;
|
|
306
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
406
307
|
baseline: z.ZodLiteral<"historical">;
|
|
407
308
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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>>>;
|
|
413
322
|
}, z.core.$strict>;
|
|
414
323
|
boundary: z.ZodLiteral<"available-eligible-observation">;
|
|
415
324
|
settlement: z.ZodLiteral<"deferred">;
|
|
@@ -431,21 +340,22 @@ declare const engagementVersionPageSchema: z.ZodObject<{
|
|
|
431
340
|
key: z.ZodString;
|
|
432
341
|
qualifiedBy: z.ZodString;
|
|
433
342
|
balance: z.ZodString;
|
|
434
|
-
metrics: z.ZodArray<z.
|
|
435
|
-
likes: "likes";
|
|
436
|
-
replies: "replies";
|
|
437
|
-
reposts: "reposts";
|
|
438
|
-
quotes: "quotes";
|
|
439
|
-
views: "views";
|
|
440
|
-
bookmarks: "bookmarks";
|
|
441
|
-
}>>;
|
|
343
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
442
344
|
baseline: z.ZodLiteral<"historical">;
|
|
443
345
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
346
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
347
|
+
scope: z.ZodEnum<{
|
|
348
|
+
member: "member";
|
|
349
|
+
project: "project";
|
|
350
|
+
}>;
|
|
351
|
+
period: z.ZodEnum<{
|
|
352
|
+
lifetime: "lifetime";
|
|
353
|
+
day: "day";
|
|
354
|
+
week: "week";
|
|
355
|
+
month: "month";
|
|
356
|
+
}>;
|
|
357
|
+
limit: z.ZodNumber;
|
|
358
|
+
}, z.core.$strict>>>;
|
|
449
359
|
}, z.core.$strict>;
|
|
450
360
|
publishedAt: z.ZodNumber;
|
|
451
361
|
previousVersion: z.ZodNullable<z.ZodString>;
|
|
@@ -463,21 +373,22 @@ declare const engagementBoundaryPageSchema: z.ZodObject<{
|
|
|
463
373
|
key: z.ZodString;
|
|
464
374
|
qualifiedBy: z.ZodString;
|
|
465
375
|
balance: z.ZodString;
|
|
466
|
-
metrics: z.ZodArray<z.
|
|
467
|
-
likes: "likes";
|
|
468
|
-
replies: "replies";
|
|
469
|
-
reposts: "reposts";
|
|
470
|
-
quotes: "quotes";
|
|
471
|
-
views: "views";
|
|
472
|
-
bookmarks: "bookmarks";
|
|
473
|
-
}>>;
|
|
376
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
474
377
|
baseline: z.ZodLiteral<"historical">;
|
|
475
378
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
379
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
380
|
+
scope: z.ZodEnum<{
|
|
381
|
+
member: "member";
|
|
382
|
+
project: "project";
|
|
383
|
+
}>;
|
|
384
|
+
period: z.ZodEnum<{
|
|
385
|
+
lifetime: "lifetime";
|
|
386
|
+
day: "day";
|
|
387
|
+
week: "week";
|
|
388
|
+
month: "month";
|
|
389
|
+
}>;
|
|
390
|
+
limit: z.ZodNumber;
|
|
391
|
+
}, z.core.$strict>>>;
|
|
481
392
|
}, z.core.$strict>;
|
|
482
393
|
publishedAt: z.ZodNumber;
|
|
483
394
|
}, z.core.$strict>>;
|
|
@@ -487,35 +398,29 @@ declare const engagementBoundaryPageSchema: z.ZodObject<{
|
|
|
487
398
|
key: z.ZodString;
|
|
488
399
|
qualifiedBy: z.ZodString;
|
|
489
400
|
balance: z.ZodString;
|
|
490
|
-
metrics: z.ZodArray<z.
|
|
491
|
-
likes: "likes";
|
|
492
|
-
replies: "replies";
|
|
493
|
-
reposts: "reposts";
|
|
494
|
-
quotes: "quotes";
|
|
495
|
-
views: "views";
|
|
496
|
-
bookmarks: "bookmarks";
|
|
497
|
-
}>>;
|
|
401
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
498
402
|
baseline: z.ZodLiteral<"historical">;
|
|
499
403
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
404
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
405
|
+
scope: z.ZodEnum<{
|
|
406
|
+
member: "member";
|
|
407
|
+
project: "project";
|
|
408
|
+
}>;
|
|
409
|
+
period: z.ZodEnum<{
|
|
410
|
+
lifetime: "lifetime";
|
|
411
|
+
day: "day";
|
|
412
|
+
week: "week";
|
|
413
|
+
month: "month";
|
|
414
|
+
}>;
|
|
415
|
+
limit: z.ZodNumber;
|
|
416
|
+
}, z.core.$strict>>>;
|
|
505
417
|
}, z.core.$strict>;
|
|
506
418
|
publishedAt: z.ZodNumber;
|
|
507
419
|
}, z.core.$strict>;
|
|
508
420
|
items: z.ZodArray<z.ZodObject<{
|
|
509
421
|
from: z.ZodString;
|
|
510
422
|
to: z.ZodString;
|
|
511
|
-
baseline: z.ZodRecord<z.
|
|
512
|
-
likes: "likes";
|
|
513
|
-
replies: "replies";
|
|
514
|
-
reposts: "reposts";
|
|
515
|
-
quotes: "quotes";
|
|
516
|
-
views: "views";
|
|
517
|
-
bookmarks: "bookmarks";
|
|
518
|
-
}> & z.core.$partial, z.ZodNumber>;
|
|
423
|
+
baseline: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
519
424
|
observedAt: z.ZodNumber;
|
|
520
425
|
settlement: z.ZodObject<{
|
|
521
426
|
id: z.ZodString;
|
|
@@ -544,21 +449,22 @@ declare const engagementDeploymentEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
544
449
|
key: z.ZodString;
|
|
545
450
|
qualifiedBy: z.ZodString;
|
|
546
451
|
balance: z.ZodString;
|
|
547
|
-
metrics: z.ZodArray<z.
|
|
548
|
-
likes: "likes";
|
|
549
|
-
replies: "replies";
|
|
550
|
-
reposts: "reposts";
|
|
551
|
-
quotes: "quotes";
|
|
552
|
-
views: "views";
|
|
553
|
-
bookmarks: "bookmarks";
|
|
554
|
-
}>>;
|
|
452
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
555
453
|
baseline: z.ZodLiteral<"historical">;
|
|
556
454
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
455
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
456
|
+
scope: z.ZodEnum<{
|
|
457
|
+
member: "member";
|
|
458
|
+
project: "project";
|
|
459
|
+
}>;
|
|
460
|
+
period: z.ZodEnum<{
|
|
461
|
+
lifetime: "lifetime";
|
|
462
|
+
day: "day";
|
|
463
|
+
week: "week";
|
|
464
|
+
month: "month";
|
|
465
|
+
}>;
|
|
466
|
+
limit: z.ZodNumber;
|
|
467
|
+
}, z.core.$strict>>>;
|
|
562
468
|
}, z.core.$strict>;
|
|
563
469
|
publishedAt: z.ZodNumber;
|
|
564
470
|
}, z.core.$strict>;
|
|
@@ -571,21 +477,22 @@ declare const engagementDeploymentEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
571
477
|
key: z.ZodString;
|
|
572
478
|
qualifiedBy: z.ZodString;
|
|
573
479
|
balance: z.ZodString;
|
|
574
|
-
metrics: z.ZodArray<z.
|
|
575
|
-
likes: "likes";
|
|
576
|
-
replies: "replies";
|
|
577
|
-
reposts: "reposts";
|
|
578
|
-
quotes: "quotes";
|
|
579
|
-
views: "views";
|
|
580
|
-
bookmarks: "bookmarks";
|
|
581
|
-
}>>;
|
|
480
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
582
481
|
baseline: z.ZodLiteral<"historical">;
|
|
583
482
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
483
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
484
|
+
scope: z.ZodEnum<{
|
|
485
|
+
member: "member";
|
|
486
|
+
project: "project";
|
|
487
|
+
}>;
|
|
488
|
+
period: z.ZodEnum<{
|
|
489
|
+
lifetime: "lifetime";
|
|
490
|
+
day: "day";
|
|
491
|
+
week: "week";
|
|
492
|
+
month: "month";
|
|
493
|
+
}>;
|
|
494
|
+
limit: z.ZodNumber;
|
|
495
|
+
}, z.core.$strict>>>;
|
|
589
496
|
}, z.core.$strict>;
|
|
590
497
|
publishedAt: z.ZodNumber;
|
|
591
498
|
}, z.core.$strict>;
|
|
@@ -598,21 +505,22 @@ declare const engagementDeploymentEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
598
505
|
key: z.ZodString;
|
|
599
506
|
qualifiedBy: z.ZodString;
|
|
600
507
|
balance: z.ZodString;
|
|
601
|
-
metrics: z.ZodArray<z.
|
|
602
|
-
likes: "likes";
|
|
603
|
-
replies: "replies";
|
|
604
|
-
reposts: "reposts";
|
|
605
|
-
quotes: "quotes";
|
|
606
|
-
views: "views";
|
|
607
|
-
bookmarks: "bookmarks";
|
|
608
|
-
}>>;
|
|
508
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
609
509
|
baseline: z.ZodLiteral<"historical">;
|
|
610
510
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
511
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
512
|
+
scope: z.ZodEnum<{
|
|
513
|
+
member: "member";
|
|
514
|
+
project: "project";
|
|
515
|
+
}>;
|
|
516
|
+
period: z.ZodEnum<{
|
|
517
|
+
lifetime: "lifetime";
|
|
518
|
+
day: "day";
|
|
519
|
+
week: "week";
|
|
520
|
+
month: "month";
|
|
521
|
+
}>;
|
|
522
|
+
limit: z.ZodNumber;
|
|
523
|
+
}, z.core.$strict>>>;
|
|
616
524
|
}, z.core.$strict>;
|
|
617
525
|
publishedAt: z.ZodNumber;
|
|
618
526
|
}, z.core.$strict>;
|
|
@@ -626,21 +534,22 @@ declare const engagementDeploymentEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
626
534
|
key: z.ZodString;
|
|
627
535
|
qualifiedBy: z.ZodString;
|
|
628
536
|
balance: z.ZodString;
|
|
629
|
-
metrics: z.ZodArray<z.
|
|
630
|
-
likes: "likes";
|
|
631
|
-
replies: "replies";
|
|
632
|
-
reposts: "reposts";
|
|
633
|
-
quotes: "quotes";
|
|
634
|
-
views: "views";
|
|
635
|
-
bookmarks: "bookmarks";
|
|
636
|
-
}>>;
|
|
537
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
637
538
|
baseline: z.ZodLiteral<"historical">;
|
|
638
539
|
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
540
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
541
|
+
scope: z.ZodEnum<{
|
|
542
|
+
member: "member";
|
|
543
|
+
project: "project";
|
|
544
|
+
}>;
|
|
545
|
+
period: z.ZodEnum<{
|
|
546
|
+
lifetime: "lifetime";
|
|
547
|
+
day: "day";
|
|
548
|
+
week: "week";
|
|
549
|
+
month: "month";
|
|
550
|
+
}>;
|
|
551
|
+
limit: z.ZodNumber;
|
|
552
|
+
}, z.core.$strict>>>;
|
|
644
553
|
}, z.core.$strict>;
|
|
645
554
|
boundary: z.ZodLiteral<"available-eligible-observation">;
|
|
646
555
|
settlement: z.ZodLiteral<"deferred">;
|
|
@@ -673,8 +582,93 @@ declare const leaderboardWindowSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
673
582
|
week: "week";
|
|
674
583
|
month: "month";
|
|
675
584
|
}>;
|
|
676
|
-
|
|
677
|
-
|
|
585
|
+
}, z.core.$strip>], "kind">;
|
|
586
|
+
declare const leaderboardPrizeRewardSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
587
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
588
|
+
balance: z.ZodString;
|
|
589
|
+
amount: z.ZodNumber;
|
|
590
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
591
|
+
kind: z.ZodLiteral<"tier">;
|
|
592
|
+
reward: z.ZodObject<{
|
|
593
|
+
id: z.ZodString;
|
|
594
|
+
title: z.ZodString;
|
|
595
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
596
|
+
id: z.ZodString;
|
|
597
|
+
title: z.ZodString;
|
|
598
|
+
}, z.core.$strict>>;
|
|
599
|
+
inventory: z.ZodObject<{
|
|
600
|
+
kind: z.ZodLiteral<"untracked">;
|
|
601
|
+
}, z.core.$strict>;
|
|
602
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
603
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
604
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
605
|
+
kind: z.ZodLiteral<"automatic">;
|
|
606
|
+
}, z.core.$strict>], "kind">;
|
|
607
|
+
}, z.core.$strict>;
|
|
608
|
+
tier: z.ZodString;
|
|
609
|
+
}, z.core.$strict>]>;
|
|
610
|
+
declare const leaderboardPrizeSchema: z.ZodObject<{
|
|
611
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
612
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
613
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
614
|
+
balance: z.ZodString;
|
|
615
|
+
amount: z.ZodNumber;
|
|
616
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
617
|
+
kind: z.ZodLiteral<"tier">;
|
|
618
|
+
reward: z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
title: z.ZodString;
|
|
621
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
622
|
+
id: z.ZodString;
|
|
623
|
+
title: z.ZodString;
|
|
624
|
+
}, z.core.$strict>>;
|
|
625
|
+
inventory: z.ZodObject<{
|
|
626
|
+
kind: z.ZodLiteral<"untracked">;
|
|
627
|
+
}, z.core.$strict>;
|
|
628
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
629
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
630
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
631
|
+
kind: z.ZodLiteral<"automatic">;
|
|
632
|
+
}, z.core.$strict>], "kind">;
|
|
633
|
+
}, z.core.$strict>;
|
|
634
|
+
tier: z.ZodString;
|
|
635
|
+
}, z.core.$strict>]>>;
|
|
636
|
+
}, z.core.$strict>;
|
|
637
|
+
declare const leaderboardSettlementPolicySchema: z.ZodObject<{
|
|
638
|
+
at: z.ZodLiteral<"window-end">;
|
|
639
|
+
ties: z.ZodEnum<{
|
|
640
|
+
shared: "shared";
|
|
641
|
+
earliest: "earliest";
|
|
642
|
+
}>;
|
|
643
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
644
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
645
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
646
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
647
|
+
balance: z.ZodString;
|
|
648
|
+
amount: z.ZodNumber;
|
|
649
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
650
|
+
kind: z.ZodLiteral<"tier">;
|
|
651
|
+
reward: z.ZodObject<{
|
|
652
|
+
id: z.ZodString;
|
|
653
|
+
title: z.ZodString;
|
|
654
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
655
|
+
id: z.ZodString;
|
|
656
|
+
title: z.ZodString;
|
|
657
|
+
}, z.core.$strict>>;
|
|
658
|
+
inventory: z.ZodObject<{
|
|
659
|
+
kind: z.ZodLiteral<"untracked">;
|
|
660
|
+
}, z.core.$strict>;
|
|
661
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
662
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
663
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
664
|
+
kind: z.ZodLiteral<"automatic">;
|
|
665
|
+
}, z.core.$strict>], "kind">;
|
|
666
|
+
}, z.core.$strict>;
|
|
667
|
+
tier: z.ZodString;
|
|
668
|
+
}, z.core.$strict>]>>;
|
|
669
|
+
}, z.core.$strict>>;
|
|
670
|
+
}, z.core.$strict>;
|
|
671
|
+
type LeaderboardSettlementPolicy = z.infer<typeof leaderboardSettlementPolicySchema>;
|
|
678
672
|
declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
679
673
|
id: z.ZodString;
|
|
680
674
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -699,8 +693,7 @@ declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
|
699
693
|
week: "week";
|
|
700
694
|
month: "month";
|
|
701
695
|
}>;
|
|
702
|
-
|
|
703
|
-
}, z.core.$strict>], "kind">>;
|
|
696
|
+
}, z.core.$strip>], "kind">>;
|
|
704
697
|
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
705
698
|
kind: z.ZodLiteral<"earned">;
|
|
706
699
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -721,21 +714,91 @@ declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
|
721
714
|
week: "week";
|
|
722
715
|
month: "month";
|
|
723
716
|
}>;
|
|
724
|
-
|
|
725
|
-
}, z.core.$strict>], "kind">>;
|
|
717
|
+
}, z.core.$strip>], "kind">>;
|
|
726
718
|
}, z.core.$strict>], "kind">>;
|
|
727
719
|
access: z.ZodDefault<z.ZodEnum<{
|
|
728
720
|
participants: "participants";
|
|
729
721
|
public: "public";
|
|
730
722
|
}>>;
|
|
731
723
|
group: z.ZodOptional<z.ZodString>;
|
|
724
|
+
settle: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
at: z.ZodLiteral<"window-end">;
|
|
726
|
+
ties: z.ZodEnum<{
|
|
727
|
+
shared: "shared";
|
|
728
|
+
earliest: "earliest";
|
|
729
|
+
}>;
|
|
730
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
731
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
732
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
733
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
734
|
+
balance: z.ZodString;
|
|
735
|
+
amount: z.ZodNumber;
|
|
736
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
737
|
+
kind: z.ZodLiteral<"tier">;
|
|
738
|
+
reward: z.ZodObject<{
|
|
739
|
+
id: z.ZodString;
|
|
740
|
+
title: z.ZodString;
|
|
741
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
742
|
+
id: z.ZodString;
|
|
743
|
+
title: z.ZodString;
|
|
744
|
+
}, z.core.$strict>>;
|
|
745
|
+
inventory: z.ZodObject<{
|
|
746
|
+
kind: z.ZodLiteral<"untracked">;
|
|
747
|
+
}, z.core.$strict>;
|
|
748
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
749
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
750
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
751
|
+
kind: z.ZodLiteral<"automatic">;
|
|
752
|
+
}, z.core.$strict>], "kind">;
|
|
753
|
+
}, z.core.$strict>;
|
|
754
|
+
tier: z.ZodString;
|
|
755
|
+
}, z.core.$strict>]>>;
|
|
756
|
+
}, z.core.$strict>>;
|
|
757
|
+
}, z.core.$strict>>;
|
|
732
758
|
}, z.core.$strict>;
|
|
733
759
|
type LeaderboardDefinition = z.infer<typeof leaderboardDefinitionSchema>;
|
|
734
|
-
declare const leaderboardAuthoringSchema: z.
|
|
760
|
+
declare const leaderboardAuthoringSchema: z.ZodObject<{
|
|
735
761
|
title: z.ZodString;
|
|
736
762
|
balance: z.ZodString;
|
|
737
|
-
|
|
738
|
-
|
|
763
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
764
|
+
participants: "participants";
|
|
765
|
+
public: "public";
|
|
766
|
+
}>>;
|
|
767
|
+
settle: z.ZodOptional<z.ZodObject<{
|
|
768
|
+
at: z.ZodLiteral<"window-end">;
|
|
769
|
+
ties: z.ZodEnum<{
|
|
770
|
+
shared: "shared";
|
|
771
|
+
earliest: "earliest";
|
|
772
|
+
}>;
|
|
773
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
774
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
775
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
776
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
777
|
+
balance: z.ZodString;
|
|
778
|
+
amount: z.ZodNumber;
|
|
779
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
780
|
+
kind: z.ZodLiteral<"tier">;
|
|
781
|
+
reward: z.ZodObject<{
|
|
782
|
+
id: z.ZodString;
|
|
783
|
+
title: z.ZodString;
|
|
784
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
785
|
+
id: z.ZodString;
|
|
786
|
+
title: z.ZodString;
|
|
787
|
+
}, z.core.$strict>>;
|
|
788
|
+
inventory: z.ZodObject<{
|
|
789
|
+
kind: z.ZodLiteral<"untracked">;
|
|
790
|
+
}, z.core.$strict>;
|
|
791
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
792
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
793
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
794
|
+
kind: z.ZodLiteral<"automatic">;
|
|
795
|
+
}, z.core.$strict>], "kind">;
|
|
796
|
+
}, z.core.$strict>;
|
|
797
|
+
tier: z.ZodString;
|
|
798
|
+
}, z.core.$strict>]>>;
|
|
799
|
+
}, z.core.$strict>>;
|
|
800
|
+
}, z.core.$strict>>;
|
|
801
|
+
score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
739
802
|
kind: z.ZodLiteral<"balance">;
|
|
740
803
|
}, z.core.$strict>, z.ZodObject<{
|
|
741
804
|
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -754,8 +817,7 @@ declare const leaderboardAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
754
817
|
week: "week";
|
|
755
818
|
month: "month";
|
|
756
819
|
}>;
|
|
757
|
-
|
|
758
|
-
}, z.core.$strict>], "kind">>;
|
|
820
|
+
}, z.core.$strip>], "kind">>;
|
|
759
821
|
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
760
822
|
kind: z.ZodLiteral<"earned">;
|
|
761
823
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -776,109 +838,53 @@ declare const leaderboardAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
776
838
|
week: "week";
|
|
777
839
|
month: "month";
|
|
778
840
|
}>;
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
841
|
+
}, z.core.$strip>], "kind">>;
|
|
842
|
+
}, z.core.$strict>], "kind">>>;
|
|
843
|
+
group: z.ZodOptional<z.ZodString>;
|
|
844
|
+
key: z.ZodString;
|
|
845
|
+
}, z.core.$strict>;
|
|
846
|
+
declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
847
|
+
title: z.ZodString;
|
|
848
|
+
balance: z.ZodString;
|
|
782
849
|
access: z.ZodDefault<z.ZodEnum<{
|
|
783
850
|
participants: "participants";
|
|
784
851
|
public: "public";
|
|
785
852
|
}>>;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
} | {
|
|
822
|
-
kind: "calendar";
|
|
823
|
-
period: "day" | "week" | "month";
|
|
824
|
-
timeZone: string;
|
|
825
|
-
};
|
|
826
|
-
};
|
|
827
|
-
access: "participants" | "public";
|
|
828
|
-
group?: string | undefined;
|
|
829
|
-
key?: string | undefined;
|
|
830
|
-
id?: string | undefined;
|
|
831
|
-
}, "id" | "key"> & {
|
|
832
|
-
key: string;
|
|
833
|
-
}, {
|
|
834
|
-
title: string;
|
|
835
|
-
balance: string;
|
|
836
|
-
score: {
|
|
837
|
-
kind: "balance";
|
|
838
|
-
} | {
|
|
839
|
-
window: {
|
|
840
|
-
kind: "fixed";
|
|
841
|
-
start: number;
|
|
842
|
-
end: number;
|
|
843
|
-
} | {
|
|
844
|
-
kind: "all-time";
|
|
845
|
-
} | {
|
|
846
|
-
kind: "rolling";
|
|
847
|
-
days: number;
|
|
848
|
-
} | {
|
|
849
|
-
kind: "calendar";
|
|
850
|
-
period: "day" | "week" | "month";
|
|
851
|
-
timeZone: string;
|
|
852
|
-
};
|
|
853
|
-
kind: "earned";
|
|
854
|
-
quests?: string[] | undefined;
|
|
855
|
-
} | {
|
|
856
|
-
kind: "net";
|
|
857
|
-
window: {
|
|
858
|
-
kind: "fixed";
|
|
859
|
-
start: number;
|
|
860
|
-
end: number;
|
|
861
|
-
} | {
|
|
862
|
-
kind: "all-time";
|
|
863
|
-
} | {
|
|
864
|
-
kind: "rolling";
|
|
865
|
-
days: number;
|
|
866
|
-
} | {
|
|
867
|
-
kind: "calendar";
|
|
868
|
-
period: "day" | "week" | "month";
|
|
869
|
-
timeZone: string;
|
|
870
|
-
};
|
|
871
|
-
};
|
|
872
|
-
access: "participants" | "public";
|
|
873
|
-
group?: string | undefined;
|
|
874
|
-
key?: string | undefined;
|
|
875
|
-
id?: string | undefined;
|
|
876
|
-
}>>;
|
|
877
|
-
declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
878
|
-
title: z.ZodString;
|
|
879
|
-
balance: z.ZodString;
|
|
880
|
-
group: z.ZodOptional<z.ZodString>;
|
|
881
|
-
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
853
|
+
settle: z.ZodOptional<z.ZodObject<{
|
|
854
|
+
at: z.ZodLiteral<"window-end">;
|
|
855
|
+
ties: z.ZodEnum<{
|
|
856
|
+
shared: "shared";
|
|
857
|
+
earliest: "earliest";
|
|
858
|
+
}>;
|
|
859
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
860
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
861
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
862
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
863
|
+
balance: z.ZodString;
|
|
864
|
+
amount: z.ZodNumber;
|
|
865
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
866
|
+
kind: z.ZodLiteral<"tier">;
|
|
867
|
+
reward: z.ZodObject<{
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
title: z.ZodString;
|
|
870
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
871
|
+
id: z.ZodString;
|
|
872
|
+
title: z.ZodString;
|
|
873
|
+
}, z.core.$strict>>;
|
|
874
|
+
inventory: z.ZodObject<{
|
|
875
|
+
kind: z.ZodLiteral<"untracked">;
|
|
876
|
+
}, z.core.$strict>;
|
|
877
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
878
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
879
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
880
|
+
kind: z.ZodLiteral<"automatic">;
|
|
881
|
+
}, z.core.$strict>], "kind">;
|
|
882
|
+
}, z.core.$strict>;
|
|
883
|
+
tier: z.ZodString;
|
|
884
|
+
}, z.core.$strict>]>>;
|
|
885
|
+
}, z.core.$strict>>;
|
|
886
|
+
}, z.core.$strict>>;
|
|
887
|
+
score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
882
888
|
kind: z.ZodLiteral<"balance">;
|
|
883
889
|
}, z.core.$strict>, z.ZodObject<{
|
|
884
890
|
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -897,8 +903,7 @@ declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObj
|
|
|
897
903
|
week: "week";
|
|
898
904
|
month: "month";
|
|
899
905
|
}>;
|
|
900
|
-
|
|
901
|
-
}, z.core.$strict>], "kind">>;
|
|
906
|
+
}, z.core.$strip>], "kind">>;
|
|
902
907
|
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
903
908
|
kind: z.ZodLiteral<"earned">;
|
|
904
909
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -919,107 +924,15 @@ declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObj
|
|
|
919
924
|
week: "week";
|
|
920
925
|
month: "month";
|
|
921
926
|
}>;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
public: "public";
|
|
928
|
-
}>>;
|
|
929
|
-
key: z.ZodOptional<z.ZodString>;
|
|
930
|
-
id: z.ZodOptional<z.ZodString>;
|
|
931
|
-
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
932
|
-
title: string;
|
|
933
|
-
balance: string;
|
|
934
|
-
score: {
|
|
935
|
-
kind: "balance";
|
|
936
|
-
} | {
|
|
937
|
-
window: {
|
|
938
|
-
kind: "fixed";
|
|
939
|
-
start: number;
|
|
940
|
-
end: number;
|
|
941
|
-
} | {
|
|
942
|
-
kind: "all-time";
|
|
943
|
-
} | {
|
|
944
|
-
kind: "rolling";
|
|
945
|
-
days: number;
|
|
946
|
-
} | {
|
|
947
|
-
kind: "calendar";
|
|
948
|
-
period: "day" | "week" | "month";
|
|
949
|
-
timeZone: string;
|
|
950
|
-
};
|
|
951
|
-
kind: "earned";
|
|
952
|
-
quests?: string[] | undefined;
|
|
953
|
-
} | {
|
|
954
|
-
kind: "net";
|
|
955
|
-
window: {
|
|
956
|
-
kind: "fixed";
|
|
957
|
-
start: number;
|
|
958
|
-
end: number;
|
|
959
|
-
} | {
|
|
960
|
-
kind: "all-time";
|
|
961
|
-
} | {
|
|
962
|
-
kind: "rolling";
|
|
963
|
-
days: number;
|
|
964
|
-
} | {
|
|
965
|
-
kind: "calendar";
|
|
966
|
-
period: "day" | "week" | "month";
|
|
967
|
-
timeZone: string;
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
access: "participants" | "public";
|
|
971
|
-
group?: string | undefined;
|
|
972
|
-
key?: string | undefined;
|
|
973
|
-
id?: string | undefined;
|
|
974
|
-
}, "id" | "key"> & {
|
|
975
|
-
key: string;
|
|
976
|
-
}, {
|
|
977
|
-
title: string;
|
|
978
|
-
balance: string;
|
|
979
|
-
score: {
|
|
980
|
-
kind: "balance";
|
|
981
|
-
} | {
|
|
982
|
-
window: {
|
|
983
|
-
kind: "fixed";
|
|
984
|
-
start: number;
|
|
985
|
-
end: number;
|
|
986
|
-
} | {
|
|
987
|
-
kind: "all-time";
|
|
988
|
-
} | {
|
|
989
|
-
kind: "rolling";
|
|
990
|
-
days: number;
|
|
991
|
-
} | {
|
|
992
|
-
kind: "calendar";
|
|
993
|
-
period: "day" | "week" | "month";
|
|
994
|
-
timeZone: string;
|
|
995
|
-
};
|
|
996
|
-
kind: "earned";
|
|
997
|
-
quests?: string[] | undefined;
|
|
998
|
-
} | {
|
|
999
|
-
kind: "net";
|
|
1000
|
-
window: {
|
|
1001
|
-
kind: "fixed";
|
|
1002
|
-
start: number;
|
|
1003
|
-
end: number;
|
|
1004
|
-
} | {
|
|
1005
|
-
kind: "all-time";
|
|
1006
|
-
} | {
|
|
1007
|
-
kind: "rolling";
|
|
1008
|
-
days: number;
|
|
1009
|
-
} | {
|
|
1010
|
-
kind: "calendar";
|
|
1011
|
-
period: "day" | "week" | "month";
|
|
1012
|
-
timeZone: string;
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
-
access: "participants" | "public";
|
|
1016
|
-
group?: string | undefined;
|
|
1017
|
-
key?: string | undefined;
|
|
1018
|
-
id?: string | undefined;
|
|
1019
|
-
}>>, z.ZodObject<{
|
|
927
|
+
}, z.core.$strip>], "kind">>;
|
|
928
|
+
}, z.core.$strict>], "kind">>>;
|
|
929
|
+
group: z.ZodOptional<z.ZodString>;
|
|
930
|
+
key: z.ZodString;
|
|
931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1020
932
|
code: z.ZodString;
|
|
1021
933
|
}, z.core.$strict>]>;
|
|
1022
934
|
declare const publishedLeaderboardSchema: z.ZodObject<{
|
|
935
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1023
936
|
version: z.ZodString;
|
|
1024
937
|
definition: z.ZodObject<{
|
|
1025
938
|
id: z.ZodString;
|
|
@@ -1045,8 +958,7 @@ declare const publishedLeaderboardSchema: z.ZodObject<{
|
|
|
1045
958
|
week: "week";
|
|
1046
959
|
month: "month";
|
|
1047
960
|
}>;
|
|
1048
|
-
|
|
1049
|
-
}, z.core.$strict>], "kind">>;
|
|
961
|
+
}, z.core.$strip>], "kind">>;
|
|
1050
962
|
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1051
963
|
kind: z.ZodLiteral<"earned">;
|
|
1052
964
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1067,14 +979,47 @@ declare const publishedLeaderboardSchema: z.ZodObject<{
|
|
|
1067
979
|
week: "week";
|
|
1068
980
|
month: "month";
|
|
1069
981
|
}>;
|
|
1070
|
-
|
|
1071
|
-
}, z.core.$strict>], "kind">>;
|
|
982
|
+
}, z.core.$strip>], "kind">>;
|
|
1072
983
|
}, z.core.$strict>], "kind">>;
|
|
1073
984
|
access: z.ZodDefault<z.ZodEnum<{
|
|
1074
985
|
participants: "participants";
|
|
1075
986
|
public: "public";
|
|
1076
987
|
}>>;
|
|
1077
988
|
group: z.ZodOptional<z.ZodString>;
|
|
989
|
+
settle: z.ZodOptional<z.ZodObject<{
|
|
990
|
+
at: z.ZodLiteral<"window-end">;
|
|
991
|
+
ties: z.ZodEnum<{
|
|
992
|
+
shared: "shared";
|
|
993
|
+
earliest: "earliest";
|
|
994
|
+
}>;
|
|
995
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
996
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
997
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
998
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
999
|
+
balance: z.ZodString;
|
|
1000
|
+
amount: z.ZodNumber;
|
|
1001
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1002
|
+
kind: z.ZodLiteral<"tier">;
|
|
1003
|
+
reward: z.ZodObject<{
|
|
1004
|
+
id: z.ZodString;
|
|
1005
|
+
title: z.ZodString;
|
|
1006
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
1007
|
+
id: z.ZodString;
|
|
1008
|
+
title: z.ZodString;
|
|
1009
|
+
}, z.core.$strict>>;
|
|
1010
|
+
inventory: z.ZodObject<{
|
|
1011
|
+
kind: z.ZodLiteral<"untracked">;
|
|
1012
|
+
}, z.core.$strict>;
|
|
1013
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1014
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
1015
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1016
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1017
|
+
}, z.core.$strict>], "kind">;
|
|
1018
|
+
}, z.core.$strict>;
|
|
1019
|
+
tier: z.ZodString;
|
|
1020
|
+
}, z.core.$strict>]>>;
|
|
1021
|
+
}, z.core.$strict>>;
|
|
1022
|
+
}, z.core.$strict>>;
|
|
1078
1023
|
}, z.core.$strict>;
|
|
1079
1024
|
publishedAt: z.ZodNumber;
|
|
1080
1025
|
actor: z.ZodNullable<z.ZodString>;
|
|
@@ -1090,7 +1035,7 @@ declare const leaderboardRowSchema: z.ZodObject<{
|
|
|
1090
1035
|
name: z.ZodString;
|
|
1091
1036
|
score: z.ZodNumber;
|
|
1092
1037
|
rank: z.ZodNumber;
|
|
1093
|
-
profile: z.
|
|
1038
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1094
1039
|
id: z.ZodString;
|
|
1095
1040
|
name: z.ZodString;
|
|
1096
1041
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1100,9 +1045,9 @@ declare const leaderboardRowSchema: z.ZodObject<{
|
|
|
1100
1045
|
}, z.core.$strip>, z.ZodObject<{
|
|
1101
1046
|
source: z.ZodLiteral<"account">;
|
|
1102
1047
|
provider: z.ZodEnum<{
|
|
1048
|
+
discord: "discord";
|
|
1103
1049
|
google: "google";
|
|
1104
1050
|
x: "x";
|
|
1105
|
-
discord: "discord";
|
|
1106
1051
|
}>;
|
|
1107
1052
|
url: z.ZodString;
|
|
1108
1053
|
seed: z.ZodString;
|
|
@@ -1110,7 +1055,7 @@ declare const leaderboardRowSchema: z.ZodObject<{
|
|
|
1110
1055
|
source: z.ZodLiteral<"generated">;
|
|
1111
1056
|
seed: z.ZodString;
|
|
1112
1057
|
}, z.core.$strip>], "source">;
|
|
1113
|
-
}, z.core.$strip
|
|
1058
|
+
}, z.core.$strip>>;
|
|
1114
1059
|
}, z.core.$strip>;
|
|
1115
1060
|
declare const leaderboardPageSchema: z.ZodObject<{
|
|
1116
1061
|
leaderboard: z.ZodString;
|
|
@@ -1134,7 +1079,7 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1134
1079
|
name: z.ZodString;
|
|
1135
1080
|
score: z.ZodNumber;
|
|
1136
1081
|
rank: z.ZodNumber;
|
|
1137
|
-
profile: z.
|
|
1082
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1138
1083
|
id: z.ZodString;
|
|
1139
1084
|
name: z.ZodString;
|
|
1140
1085
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1144,9 +1089,9 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1144
1089
|
}, z.core.$strip>, z.ZodObject<{
|
|
1145
1090
|
source: z.ZodLiteral<"account">;
|
|
1146
1091
|
provider: z.ZodEnum<{
|
|
1092
|
+
discord: "discord";
|
|
1147
1093
|
google: "google";
|
|
1148
1094
|
x: "x";
|
|
1149
|
-
discord: "discord";
|
|
1150
1095
|
}>;
|
|
1151
1096
|
url: z.ZodString;
|
|
1152
1097
|
seed: z.ZodString;
|
|
@@ -1154,7 +1099,7 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1154
1099
|
source: z.ZodLiteral<"generated">;
|
|
1155
1100
|
seed: z.ZodString;
|
|
1156
1101
|
}, z.core.$strip>], "source">;
|
|
1157
|
-
}, z.core.$strip
|
|
1102
|
+
}, z.core.$strip>>;
|
|
1158
1103
|
}, z.core.$strip>>;
|
|
1159
1104
|
me: z.ZodNullable<z.ZodObject<{
|
|
1160
1105
|
participant: z.ZodString;
|
|
@@ -1162,7 +1107,7 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1162
1107
|
name: z.ZodString;
|
|
1163
1108
|
score: z.ZodNumber;
|
|
1164
1109
|
rank: z.ZodNumber;
|
|
1165
|
-
profile: z.
|
|
1110
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1166
1111
|
id: z.ZodString;
|
|
1167
1112
|
name: z.ZodString;
|
|
1168
1113
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1172,9 +1117,9 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1172
1117
|
}, z.core.$strip>, z.ZodObject<{
|
|
1173
1118
|
source: z.ZodLiteral<"account">;
|
|
1174
1119
|
provider: z.ZodEnum<{
|
|
1120
|
+
discord: "discord";
|
|
1175
1121
|
google: "google";
|
|
1176
1122
|
x: "x";
|
|
1177
|
-
discord: "discord";
|
|
1178
1123
|
}>;
|
|
1179
1124
|
url: z.ZodString;
|
|
1180
1125
|
seed: z.ZodString;
|
|
@@ -1182,7 +1127,7 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1182
1127
|
source: z.ZodLiteral<"generated">;
|
|
1183
1128
|
seed: z.ZodString;
|
|
1184
1129
|
}, z.core.$strip>], "source">;
|
|
1185
|
-
}, z.core.$strip
|
|
1130
|
+
}, z.core.$strip>>;
|
|
1186
1131
|
}, z.core.$strip>>;
|
|
1187
1132
|
nearby: z.ZodArray<z.ZodObject<{
|
|
1188
1133
|
participant: z.ZodString;
|
|
@@ -1190,7 +1135,7 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1190
1135
|
name: z.ZodString;
|
|
1191
1136
|
score: z.ZodNumber;
|
|
1192
1137
|
rank: z.ZodNumber;
|
|
1193
|
-
profile: z.
|
|
1138
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1194
1139
|
id: z.ZodString;
|
|
1195
1140
|
name: z.ZodString;
|
|
1196
1141
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1200,9 +1145,9 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1200
1145
|
}, z.core.$strip>, z.ZodObject<{
|
|
1201
1146
|
source: z.ZodLiteral<"account">;
|
|
1202
1147
|
provider: z.ZodEnum<{
|
|
1148
|
+
discord: "discord";
|
|
1203
1149
|
google: "google";
|
|
1204
1150
|
x: "x";
|
|
1205
|
-
discord: "discord";
|
|
1206
1151
|
}>;
|
|
1207
1152
|
url: z.ZodString;
|
|
1208
1153
|
seed: z.ZodString;
|
|
@@ -1210,7 +1155,7 @@ declare const leaderboardPageSchema: z.ZodObject<{
|
|
|
1210
1155
|
source: z.ZodLiteral<"generated">;
|
|
1211
1156
|
seed: z.ZodString;
|
|
1212
1157
|
}, z.core.$strip>], "source">;
|
|
1213
|
-
}, z.core.$strip
|
|
1158
|
+
}, z.core.$strip>>;
|
|
1214
1159
|
}, z.core.$strip>>;
|
|
1215
1160
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1216
1161
|
}, z.core.$strip>;
|
|
@@ -1231,6 +1176,7 @@ declare const leaderboardPlacementSchema: z.ZodObject<{
|
|
|
1231
1176
|
type LeaderboardPlacement = z.infer<typeof leaderboardPlacementSchema>;
|
|
1232
1177
|
declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
1233
1178
|
published: z.ZodObject<{
|
|
1179
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1234
1180
|
version: z.ZodString;
|
|
1235
1181
|
definition: z.ZodObject<{
|
|
1236
1182
|
id: z.ZodString;
|
|
@@ -1256,8 +1202,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1256
1202
|
week: "week";
|
|
1257
1203
|
month: "month";
|
|
1258
1204
|
}>;
|
|
1259
|
-
|
|
1260
|
-
}, z.core.$strict>], "kind">>;
|
|
1205
|
+
}, z.core.$strip>], "kind">>;
|
|
1261
1206
|
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1262
1207
|
kind: z.ZodLiteral<"earned">;
|
|
1263
1208
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1278,14 +1223,47 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1278
1223
|
week: "week";
|
|
1279
1224
|
month: "month";
|
|
1280
1225
|
}>;
|
|
1281
|
-
|
|
1282
|
-
}, z.core.$strict>], "kind">>;
|
|
1226
|
+
}, z.core.$strip>], "kind">>;
|
|
1283
1227
|
}, z.core.$strict>], "kind">>;
|
|
1284
1228
|
access: z.ZodDefault<z.ZodEnum<{
|
|
1285
1229
|
participants: "participants";
|
|
1286
1230
|
public: "public";
|
|
1287
1231
|
}>>;
|
|
1288
1232
|
group: z.ZodOptional<z.ZodString>;
|
|
1233
|
+
settle: z.ZodOptional<z.ZodObject<{
|
|
1234
|
+
at: z.ZodLiteral<"window-end">;
|
|
1235
|
+
ties: z.ZodEnum<{
|
|
1236
|
+
shared: "shared";
|
|
1237
|
+
earliest: "earliest";
|
|
1238
|
+
}>;
|
|
1239
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
1240
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1241
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1242
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1243
|
+
balance: z.ZodString;
|
|
1244
|
+
amount: z.ZodNumber;
|
|
1245
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1246
|
+
kind: z.ZodLiteral<"tier">;
|
|
1247
|
+
reward: z.ZodObject<{
|
|
1248
|
+
id: z.ZodString;
|
|
1249
|
+
title: z.ZodString;
|
|
1250
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
1251
|
+
id: z.ZodString;
|
|
1252
|
+
title: z.ZodString;
|
|
1253
|
+
}, z.core.$strict>>;
|
|
1254
|
+
inventory: z.ZodObject<{
|
|
1255
|
+
kind: z.ZodLiteral<"untracked">;
|
|
1256
|
+
}, z.core.$strict>;
|
|
1257
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1258
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
1259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1260
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1261
|
+
}, z.core.$strict>], "kind">;
|
|
1262
|
+
}, z.core.$strict>;
|
|
1263
|
+
tier: z.ZodString;
|
|
1264
|
+
}, z.core.$strict>]>>;
|
|
1265
|
+
}, z.core.$strict>>;
|
|
1266
|
+
}, z.core.$strict>>;
|
|
1289
1267
|
}, z.core.$strict>;
|
|
1290
1268
|
publishedAt: z.ZodNumber;
|
|
1291
1269
|
actor: z.ZodNullable<z.ZodString>;
|
|
@@ -1312,7 +1290,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1312
1290
|
name: z.ZodString;
|
|
1313
1291
|
score: z.ZodNumber;
|
|
1314
1292
|
rank: z.ZodNumber;
|
|
1315
|
-
profile: z.
|
|
1293
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1316
1294
|
id: z.ZodString;
|
|
1317
1295
|
name: z.ZodString;
|
|
1318
1296
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1322,9 +1300,9 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1322
1300
|
}, z.core.$strip>, z.ZodObject<{
|
|
1323
1301
|
source: z.ZodLiteral<"account">;
|
|
1324
1302
|
provider: z.ZodEnum<{
|
|
1303
|
+
discord: "discord";
|
|
1325
1304
|
google: "google";
|
|
1326
1305
|
x: "x";
|
|
1327
|
-
discord: "discord";
|
|
1328
1306
|
}>;
|
|
1329
1307
|
url: z.ZodString;
|
|
1330
1308
|
seed: z.ZodString;
|
|
@@ -1332,7 +1310,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1332
1310
|
source: z.ZodLiteral<"generated">;
|
|
1333
1311
|
seed: z.ZodString;
|
|
1334
1312
|
}, z.core.$strip>], "source">;
|
|
1335
|
-
}, z.core.$strip
|
|
1313
|
+
}, z.core.$strip>>;
|
|
1336
1314
|
}, z.core.$strip>>;
|
|
1337
1315
|
me: z.ZodNullable<z.ZodObject<{
|
|
1338
1316
|
participant: z.ZodString;
|
|
@@ -1340,7 +1318,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1340
1318
|
name: z.ZodString;
|
|
1341
1319
|
score: z.ZodNumber;
|
|
1342
1320
|
rank: z.ZodNumber;
|
|
1343
|
-
profile: z.
|
|
1321
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1344
1322
|
id: z.ZodString;
|
|
1345
1323
|
name: z.ZodString;
|
|
1346
1324
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1350,9 +1328,9 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1350
1328
|
}, z.core.$strip>, z.ZodObject<{
|
|
1351
1329
|
source: z.ZodLiteral<"account">;
|
|
1352
1330
|
provider: z.ZodEnum<{
|
|
1331
|
+
discord: "discord";
|
|
1353
1332
|
google: "google";
|
|
1354
1333
|
x: "x";
|
|
1355
|
-
discord: "discord";
|
|
1356
1334
|
}>;
|
|
1357
1335
|
url: z.ZodString;
|
|
1358
1336
|
seed: z.ZodString;
|
|
@@ -1360,7 +1338,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1360
1338
|
source: z.ZodLiteral<"generated">;
|
|
1361
1339
|
seed: z.ZodString;
|
|
1362
1340
|
}, z.core.$strip>], "source">;
|
|
1363
|
-
}, z.core.$strip
|
|
1341
|
+
}, z.core.$strip>>;
|
|
1364
1342
|
}, z.core.$strip>>;
|
|
1365
1343
|
nearby: z.ZodArray<z.ZodObject<{
|
|
1366
1344
|
participant: z.ZodString;
|
|
@@ -1368,7 +1346,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1368
1346
|
name: z.ZodString;
|
|
1369
1347
|
score: z.ZodNumber;
|
|
1370
1348
|
rank: z.ZodNumber;
|
|
1371
|
-
profile: z.
|
|
1349
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1372
1350
|
id: z.ZodString;
|
|
1373
1351
|
name: z.ZodString;
|
|
1374
1352
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1378,9 +1356,9 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1378
1356
|
}, z.core.$strip>, z.ZodObject<{
|
|
1379
1357
|
source: z.ZodLiteral<"account">;
|
|
1380
1358
|
provider: z.ZodEnum<{
|
|
1359
|
+
discord: "discord";
|
|
1381
1360
|
google: "google";
|
|
1382
1361
|
x: "x";
|
|
1383
|
-
discord: "discord";
|
|
1384
1362
|
}>;
|
|
1385
1363
|
url: z.ZodString;
|
|
1386
1364
|
seed: z.ZodString;
|
|
@@ -1388,7 +1366,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1388
1366
|
source: z.ZodLiteral<"generated">;
|
|
1389
1367
|
seed: z.ZodString;
|
|
1390
1368
|
}, z.core.$strip>], "source">;
|
|
1391
|
-
}, z.core.$strip
|
|
1369
|
+
}, z.core.$strip>>;
|
|
1392
1370
|
}, z.core.$strip>>;
|
|
1393
1371
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1394
1372
|
}, z.core.$strip>>;
|
|
@@ -1414,7 +1392,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1414
1392
|
name: z.ZodString;
|
|
1415
1393
|
score: z.ZodNumber;
|
|
1416
1394
|
rank: z.ZodNumber;
|
|
1417
|
-
profile: z.
|
|
1395
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1418
1396
|
id: z.ZodString;
|
|
1419
1397
|
name: z.ZodString;
|
|
1420
1398
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1424,9 +1402,9 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1424
1402
|
}, z.core.$strip>, z.ZodObject<{
|
|
1425
1403
|
source: z.ZodLiteral<"account">;
|
|
1426
1404
|
provider: z.ZodEnum<{
|
|
1405
|
+
discord: "discord";
|
|
1427
1406
|
google: "google";
|
|
1428
1407
|
x: "x";
|
|
1429
|
-
discord: "discord";
|
|
1430
1408
|
}>;
|
|
1431
1409
|
url: z.ZodString;
|
|
1432
1410
|
seed: z.ZodString;
|
|
@@ -1434,7 +1412,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1434
1412
|
source: z.ZodLiteral<"generated">;
|
|
1435
1413
|
seed: z.ZodString;
|
|
1436
1414
|
}, z.core.$strip>], "source">;
|
|
1437
|
-
}, z.core.$strip
|
|
1415
|
+
}, z.core.$strip>>;
|
|
1438
1416
|
}, z.core.$strip>>;
|
|
1439
1417
|
me: z.ZodNullable<z.ZodObject<{
|
|
1440
1418
|
participant: z.ZodString;
|
|
@@ -1442,7 +1420,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1442
1420
|
name: z.ZodString;
|
|
1443
1421
|
score: z.ZodNumber;
|
|
1444
1422
|
rank: z.ZodNumber;
|
|
1445
|
-
profile: z.
|
|
1423
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1446
1424
|
id: z.ZodString;
|
|
1447
1425
|
name: z.ZodString;
|
|
1448
1426
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1452,9 +1430,9 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1452
1430
|
}, z.core.$strip>, z.ZodObject<{
|
|
1453
1431
|
source: z.ZodLiteral<"account">;
|
|
1454
1432
|
provider: z.ZodEnum<{
|
|
1433
|
+
discord: "discord";
|
|
1455
1434
|
google: "google";
|
|
1456
1435
|
x: "x";
|
|
1457
|
-
discord: "discord";
|
|
1458
1436
|
}>;
|
|
1459
1437
|
url: z.ZodString;
|
|
1460
1438
|
seed: z.ZodString;
|
|
@@ -1462,7 +1440,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1462
1440
|
source: z.ZodLiteral<"generated">;
|
|
1463
1441
|
seed: z.ZodString;
|
|
1464
1442
|
}, z.core.$strip>], "source">;
|
|
1465
|
-
}, z.core.$strip
|
|
1443
|
+
}, z.core.$strip>>;
|
|
1466
1444
|
}, z.core.$strip>>;
|
|
1467
1445
|
nearby: z.ZodArray<z.ZodObject<{
|
|
1468
1446
|
participant: z.ZodString;
|
|
@@ -1470,7 +1448,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1470
1448
|
name: z.ZodString;
|
|
1471
1449
|
score: z.ZodNumber;
|
|
1472
1450
|
rank: z.ZodNumber;
|
|
1473
|
-
profile: z.
|
|
1451
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
1474
1452
|
id: z.ZodString;
|
|
1475
1453
|
name: z.ZodString;
|
|
1476
1454
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1480,9 +1458,9 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1480
1458
|
}, z.core.$strip>, z.ZodObject<{
|
|
1481
1459
|
source: z.ZodLiteral<"account">;
|
|
1482
1460
|
provider: z.ZodEnum<{
|
|
1461
|
+
discord: "discord";
|
|
1483
1462
|
google: "google";
|
|
1484
1463
|
x: "x";
|
|
1485
|
-
discord: "discord";
|
|
1486
1464
|
}>;
|
|
1487
1465
|
url: z.ZodString;
|
|
1488
1466
|
seed: z.ZodString;
|
|
@@ -1490,7 +1468,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1490
1468
|
source: z.ZodLiteral<"generated">;
|
|
1491
1469
|
seed: z.ZodString;
|
|
1492
1470
|
}, z.core.$strip>], "source">;
|
|
1493
|
-
}, z.core.$strip
|
|
1471
|
+
}, z.core.$strip>>;
|
|
1494
1472
|
}, z.core.$strip>>;
|
|
1495
1473
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1496
1474
|
}, z.core.$strip>;
|
|
@@ -1601,6 +1579,112 @@ declare const leaderboardGroupSchema: z.ZodObject<{
|
|
|
1601
1579
|
included: z.ZodBoolean;
|
|
1602
1580
|
reason: z.ZodString;
|
|
1603
1581
|
}, z.core.$strict>;
|
|
1582
|
+
declare const leaderboardSettlementStatusSchema: z.ZodEnum<{
|
|
1583
|
+
pending: "pending";
|
|
1584
|
+
approved: "approved";
|
|
1585
|
+
}>;
|
|
1586
|
+
declare const leaderboardSettlementSummarySchema: z.ZodObject<{
|
|
1587
|
+
id: z.ZodString;
|
|
1588
|
+
leaderboard: z.ZodString;
|
|
1589
|
+
version: z.ZodString;
|
|
1590
|
+
title: z.ZodString;
|
|
1591
|
+
period: z.ZodObject<{
|
|
1592
|
+
start: z.ZodNumber;
|
|
1593
|
+
end: z.ZodNumber;
|
|
1594
|
+
}, z.core.$strip>;
|
|
1595
|
+
ties: z.ZodEnum<{
|
|
1596
|
+
shared: "shared";
|
|
1597
|
+
earliest: "earliest";
|
|
1598
|
+
}>;
|
|
1599
|
+
status: z.ZodEnum<{
|
|
1600
|
+
pending: "pending";
|
|
1601
|
+
approved: "approved";
|
|
1602
|
+
}>;
|
|
1603
|
+
total: z.ZodNumber;
|
|
1604
|
+
winners: z.ZodNumber;
|
|
1605
|
+
createdAt: z.ZodNumber;
|
|
1606
|
+
approvedAt: z.ZodNullable<z.ZodNumber>;
|
|
1607
|
+
approvedBy: z.ZodNullable<z.ZodString>;
|
|
1608
|
+
approvalReason: z.ZodNullable<z.ZodString>;
|
|
1609
|
+
}, z.core.$strip>;
|
|
1610
|
+
type LeaderboardSettlementSummary = z.infer<typeof leaderboardSettlementSummarySchema>;
|
|
1611
|
+
declare const leaderboardSettlementRowSchema: z.ZodObject<{
|
|
1612
|
+
member: z.ZodString;
|
|
1613
|
+
score: z.ZodNumber;
|
|
1614
|
+
rank: z.ZodNumber;
|
|
1615
|
+
position: z.ZodNumber;
|
|
1616
|
+
scoredAt: z.ZodNumber;
|
|
1617
|
+
prizes: z.ZodArray<z.ZodNumber>;
|
|
1618
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
1619
|
+
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
1620
|
+
}, z.core.$strip>;
|
|
1621
|
+
declare const leaderboardSettlementSchema: z.ZodObject<{
|
|
1622
|
+
id: z.ZodString;
|
|
1623
|
+
leaderboard: z.ZodString;
|
|
1624
|
+
version: z.ZodString;
|
|
1625
|
+
title: z.ZodString;
|
|
1626
|
+
period: z.ZodObject<{
|
|
1627
|
+
start: z.ZodNumber;
|
|
1628
|
+
end: z.ZodNumber;
|
|
1629
|
+
}, z.core.$strip>;
|
|
1630
|
+
ties: z.ZodEnum<{
|
|
1631
|
+
shared: "shared";
|
|
1632
|
+
earliest: "earliest";
|
|
1633
|
+
}>;
|
|
1634
|
+
status: z.ZodEnum<{
|
|
1635
|
+
pending: "pending";
|
|
1636
|
+
approved: "approved";
|
|
1637
|
+
}>;
|
|
1638
|
+
total: z.ZodNumber;
|
|
1639
|
+
winners: z.ZodNumber;
|
|
1640
|
+
createdAt: z.ZodNumber;
|
|
1641
|
+
approvedAt: z.ZodNullable<z.ZodNumber>;
|
|
1642
|
+
approvedBy: z.ZodNullable<z.ZodString>;
|
|
1643
|
+
approvalReason: z.ZodNullable<z.ZodString>;
|
|
1644
|
+
prizes: z.ZodArray<z.ZodObject<{
|
|
1645
|
+
ranks: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1646
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1647
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
1648
|
+
balance: z.ZodString;
|
|
1649
|
+
amount: z.ZodNumber;
|
|
1650
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1651
|
+
kind: z.ZodLiteral<"tier">;
|
|
1652
|
+
reward: z.ZodObject<{
|
|
1653
|
+
id: z.ZodString;
|
|
1654
|
+
title: z.ZodString;
|
|
1655
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
1656
|
+
id: z.ZodString;
|
|
1657
|
+
title: z.ZodString;
|
|
1658
|
+
}, z.core.$strict>>;
|
|
1659
|
+
inventory: z.ZodObject<{
|
|
1660
|
+
kind: z.ZodLiteral<"untracked">;
|
|
1661
|
+
}, z.core.$strict>;
|
|
1662
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1663
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
1664
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1665
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1666
|
+
}, z.core.$strict>], "kind">;
|
|
1667
|
+
}, z.core.$strict>;
|
|
1668
|
+
tier: z.ZodString;
|
|
1669
|
+
}, z.core.$strict>]>>;
|
|
1670
|
+
}, z.core.$strict>>;
|
|
1671
|
+
excluded: z.ZodArray<z.ZodString>;
|
|
1672
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1673
|
+
member: z.ZodString;
|
|
1674
|
+
score: z.ZodNumber;
|
|
1675
|
+
rank: z.ZodNumber;
|
|
1676
|
+
position: z.ZodNumber;
|
|
1677
|
+
scoredAt: z.ZodNumber;
|
|
1678
|
+
prizes: z.ZodArray<z.ZodNumber>;
|
|
1679
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
1680
|
+
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
1681
|
+
}, z.core.$strip>>;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1683
|
+
type LeaderboardSettlement = z.infer<typeof leaderboardSettlementSchema>;
|
|
1684
|
+
declare const leaderboardSettlementApprovalSchema: z.ZodObject<{
|
|
1685
|
+
actionId: z.ZodString;
|
|
1686
|
+
reason: z.ZodString;
|
|
1687
|
+
}, z.core.$strict>;
|
|
1604
1688
|
|
|
1605
1689
|
declare const referralDefinitionSchema: z.ZodObject<{
|
|
1606
1690
|
id: z.ZodString;
|
|
@@ -1633,9 +1717,11 @@ declare const referralDefinitionSchema: z.ZodObject<{
|
|
|
1633
1717
|
inventory: z.ZodObject<{
|
|
1634
1718
|
kind: z.ZodLiteral<"untracked">;
|
|
1635
1719
|
}, z.core.$strict>;
|
|
1636
|
-
fulfillment: z.ZodObject<{
|
|
1720
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1637
1721
|
kind: z.ZodLiteral<"staff-handover">;
|
|
1638
|
-
}, z.core.$strict
|
|
1722
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1723
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1724
|
+
}, z.core.$strict>], "kind">;
|
|
1639
1725
|
}, z.core.$strict>;
|
|
1640
1726
|
tier: z.ZodString;
|
|
1641
1727
|
}, z.core.$strict>]>>>;
|
|
@@ -1655,9 +1741,11 @@ declare const referralDefinitionSchema: z.ZodObject<{
|
|
|
1655
1741
|
inventory: z.ZodObject<{
|
|
1656
1742
|
kind: z.ZodLiteral<"untracked">;
|
|
1657
1743
|
}, z.core.$strict>;
|
|
1658
|
-
fulfillment: z.ZodObject<{
|
|
1744
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1659
1745
|
kind: z.ZodLiteral<"staff-handover">;
|
|
1660
|
-
}, z.core.$strict
|
|
1746
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1747
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1748
|
+
}, z.core.$strict>], "kind">;
|
|
1661
1749
|
}, z.core.$strict>;
|
|
1662
1750
|
tier: z.ZodString;
|
|
1663
1751
|
}, z.core.$strict>]>>>;
|
|
@@ -1681,9 +1769,11 @@ declare const referralDefinitionSchema: z.ZodObject<{
|
|
|
1681
1769
|
inventory: z.ZodObject<{
|
|
1682
1770
|
kind: z.ZodLiteral<"untracked">;
|
|
1683
1771
|
}, z.core.$strict>;
|
|
1684
|
-
fulfillment: z.ZodObject<{
|
|
1772
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1685
1773
|
kind: z.ZodLiteral<"staff-handover">;
|
|
1686
|
-
}, z.core.$strict
|
|
1774
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1775
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1776
|
+
}, z.core.$strict>], "kind">;
|
|
1687
1777
|
}, z.core.$strict>;
|
|
1688
1778
|
tier: z.ZodString;
|
|
1689
1779
|
}, z.core.$strict>]>>;
|
|
@@ -1699,7 +1789,7 @@ declare const referralDefinitionSchema: z.ZodObject<{
|
|
|
1699
1789
|
}, z.core.$strict>>>;
|
|
1700
1790
|
}, z.core.$strict>;
|
|
1701
1791
|
type ReferralDefinition = z.infer<typeof referralDefinitionSchema>;
|
|
1702
|
-
declare const referralAuthoringSchema: z.
|
|
1792
|
+
declare const referralAuthoringSchema: z.ZodObject<{
|
|
1703
1793
|
title: z.ZodString;
|
|
1704
1794
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
1705
1795
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1718,9 +1808,11 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1718
1808
|
inventory: z.ZodObject<{
|
|
1719
1809
|
kind: z.ZodLiteral<"untracked">;
|
|
1720
1810
|
}, z.core.$strict>;
|
|
1721
|
-
fulfillment: z.ZodObject<{
|
|
1811
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1722
1812
|
kind: z.ZodLiteral<"staff-handover">;
|
|
1723
|
-
}, z.core.$strict
|
|
1813
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1814
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1815
|
+
}, z.core.$strict>], "kind">;
|
|
1724
1816
|
}, z.core.$strict>;
|
|
1725
1817
|
tier: z.ZodString;
|
|
1726
1818
|
}, z.core.$strict>]>>>;
|
|
@@ -1740,9 +1832,11 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1740
1832
|
inventory: z.ZodObject<{
|
|
1741
1833
|
kind: z.ZodLiteral<"untracked">;
|
|
1742
1834
|
}, z.core.$strict>;
|
|
1743
|
-
fulfillment: z.ZodObject<{
|
|
1835
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1744
1836
|
kind: z.ZodLiteral<"staff-handover">;
|
|
1745
|
-
}, z.core.$strict
|
|
1837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1838
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1839
|
+
}, z.core.$strict>], "kind">;
|
|
1746
1840
|
}, z.core.$strict>;
|
|
1747
1841
|
tier: z.ZodString;
|
|
1748
1842
|
}, z.core.$strict>]>>>;
|
|
@@ -1774,15 +1868,16 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1774
1868
|
inventory: z.ZodObject<{
|
|
1775
1869
|
kind: z.ZodLiteral<"untracked">;
|
|
1776
1870
|
}, z.core.$strict>;
|
|
1777
|
-
fulfillment: z.ZodObject<{
|
|
1871
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1778
1872
|
kind: z.ZodLiteral<"staff-handover">;
|
|
1779
|
-
}, z.core.$strict
|
|
1873
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1874
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1875
|
+
}, z.core.$strict>], "kind">;
|
|
1780
1876
|
}, z.core.$strict>;
|
|
1781
1877
|
tier: z.ZodString;
|
|
1782
1878
|
}, z.core.$strict>]>>;
|
|
1783
1879
|
}, z.core.$strict>>>;
|
|
1784
1880
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1785
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
1786
1881
|
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1787
1882
|
id: z.ZodString;
|
|
1788
1883
|
balance: z.ZodString;
|
|
@@ -1792,202 +1887,10 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1792
1887
|
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
1793
1888
|
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
1794
1889
|
}, z.core.$strict>>>;
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
}, z.core.$strict
|
|
1798
|
-
|
|
1799
|
-
rewards: {
|
|
1800
|
-
inviter: ({
|
|
1801
|
-
kind: "tier";
|
|
1802
|
-
reward: {
|
|
1803
|
-
id: string;
|
|
1804
|
-
title: string;
|
|
1805
|
-
tiers: {
|
|
1806
|
-
id: string;
|
|
1807
|
-
title: string;
|
|
1808
|
-
}[];
|
|
1809
|
-
inventory: {
|
|
1810
|
-
kind: "untracked";
|
|
1811
|
-
};
|
|
1812
|
-
fulfillment: {
|
|
1813
|
-
kind: "staff-handover";
|
|
1814
|
-
};
|
|
1815
|
-
};
|
|
1816
|
-
tier: string;
|
|
1817
|
-
} | {
|
|
1818
|
-
kind: "points";
|
|
1819
|
-
balance: string;
|
|
1820
|
-
amount: number;
|
|
1821
|
-
})[];
|
|
1822
|
-
invitee: ({
|
|
1823
|
-
kind: "tier";
|
|
1824
|
-
reward: {
|
|
1825
|
-
id: string;
|
|
1826
|
-
title: string;
|
|
1827
|
-
tiers: {
|
|
1828
|
-
id: string;
|
|
1829
|
-
title: string;
|
|
1830
|
-
}[];
|
|
1831
|
-
inventory: {
|
|
1832
|
-
kind: "untracked";
|
|
1833
|
-
};
|
|
1834
|
-
fulfillment: {
|
|
1835
|
-
kind: "staff-handover";
|
|
1836
|
-
};
|
|
1837
|
-
};
|
|
1838
|
-
tier: string;
|
|
1839
|
-
} | {
|
|
1840
|
-
kind: "points";
|
|
1841
|
-
balance: string;
|
|
1842
|
-
amount: number;
|
|
1843
|
-
})[];
|
|
1844
|
-
};
|
|
1845
|
-
qualification: {
|
|
1846
|
-
kind: "signup";
|
|
1847
|
-
} | {
|
|
1848
|
-
kind: "quest";
|
|
1849
|
-
quest: string;
|
|
1850
|
-
} | {
|
|
1851
|
-
kind: "external";
|
|
1852
|
-
};
|
|
1853
|
-
milestones: {
|
|
1854
|
-
id: string;
|
|
1855
|
-
count: number;
|
|
1856
|
-
rewards: ({
|
|
1857
|
-
kind: "tier";
|
|
1858
|
-
reward: {
|
|
1859
|
-
id: string;
|
|
1860
|
-
title: string;
|
|
1861
|
-
tiers: {
|
|
1862
|
-
id: string;
|
|
1863
|
-
title: string;
|
|
1864
|
-
}[];
|
|
1865
|
-
inventory: {
|
|
1866
|
-
kind: "untracked";
|
|
1867
|
-
};
|
|
1868
|
-
fulfillment: {
|
|
1869
|
-
kind: "staff-handover";
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
tier: string;
|
|
1873
|
-
} | {
|
|
1874
|
-
kind: "points";
|
|
1875
|
-
balance: string;
|
|
1876
|
-
amount: number;
|
|
1877
|
-
})[];
|
|
1878
|
-
}[];
|
|
1879
|
-
enabled: boolean;
|
|
1880
|
-
bonuses: {
|
|
1881
|
-
id: string;
|
|
1882
|
-
balance: string;
|
|
1883
|
-
basisPoints: number;
|
|
1884
|
-
external: boolean;
|
|
1885
|
-
quests?: string[] | undefined;
|
|
1886
|
-
durationDays?: number | undefined;
|
|
1887
|
-
maxPoints?: number | undefined;
|
|
1888
|
-
}[];
|
|
1889
|
-
inviterGroup?: string | undefined;
|
|
1890
|
-
key?: string | undefined;
|
|
1891
|
-
id?: string | undefined;
|
|
1892
|
-
}, "id" | "key"> & {
|
|
1893
|
-
key: string;
|
|
1894
|
-
}, {
|
|
1895
|
-
title: string;
|
|
1896
|
-
rewards: {
|
|
1897
|
-
inviter: ({
|
|
1898
|
-
kind: "tier";
|
|
1899
|
-
reward: {
|
|
1900
|
-
id: string;
|
|
1901
|
-
title: string;
|
|
1902
|
-
tiers: {
|
|
1903
|
-
id: string;
|
|
1904
|
-
title: string;
|
|
1905
|
-
}[];
|
|
1906
|
-
inventory: {
|
|
1907
|
-
kind: "untracked";
|
|
1908
|
-
};
|
|
1909
|
-
fulfillment: {
|
|
1910
|
-
kind: "staff-handover";
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
tier: string;
|
|
1914
|
-
} | {
|
|
1915
|
-
kind: "points";
|
|
1916
|
-
balance: string;
|
|
1917
|
-
amount: number;
|
|
1918
|
-
})[];
|
|
1919
|
-
invitee: ({
|
|
1920
|
-
kind: "tier";
|
|
1921
|
-
reward: {
|
|
1922
|
-
id: string;
|
|
1923
|
-
title: string;
|
|
1924
|
-
tiers: {
|
|
1925
|
-
id: string;
|
|
1926
|
-
title: string;
|
|
1927
|
-
}[];
|
|
1928
|
-
inventory: {
|
|
1929
|
-
kind: "untracked";
|
|
1930
|
-
};
|
|
1931
|
-
fulfillment: {
|
|
1932
|
-
kind: "staff-handover";
|
|
1933
|
-
};
|
|
1934
|
-
};
|
|
1935
|
-
tier: string;
|
|
1936
|
-
} | {
|
|
1937
|
-
kind: "points";
|
|
1938
|
-
balance: string;
|
|
1939
|
-
amount: number;
|
|
1940
|
-
})[];
|
|
1941
|
-
};
|
|
1942
|
-
qualification: {
|
|
1943
|
-
kind: "signup";
|
|
1944
|
-
} | {
|
|
1945
|
-
kind: "quest";
|
|
1946
|
-
quest: string;
|
|
1947
|
-
} | {
|
|
1948
|
-
kind: "external";
|
|
1949
|
-
};
|
|
1950
|
-
milestones: {
|
|
1951
|
-
id: string;
|
|
1952
|
-
count: number;
|
|
1953
|
-
rewards: ({
|
|
1954
|
-
kind: "tier";
|
|
1955
|
-
reward: {
|
|
1956
|
-
id: string;
|
|
1957
|
-
title: string;
|
|
1958
|
-
tiers: {
|
|
1959
|
-
id: string;
|
|
1960
|
-
title: string;
|
|
1961
|
-
}[];
|
|
1962
|
-
inventory: {
|
|
1963
|
-
kind: "untracked";
|
|
1964
|
-
};
|
|
1965
|
-
fulfillment: {
|
|
1966
|
-
kind: "staff-handover";
|
|
1967
|
-
};
|
|
1968
|
-
};
|
|
1969
|
-
tier: string;
|
|
1970
|
-
} | {
|
|
1971
|
-
kind: "points";
|
|
1972
|
-
balance: string;
|
|
1973
|
-
amount: number;
|
|
1974
|
-
})[];
|
|
1975
|
-
}[];
|
|
1976
|
-
enabled: boolean;
|
|
1977
|
-
bonuses: {
|
|
1978
|
-
id: string;
|
|
1979
|
-
balance: string;
|
|
1980
|
-
basisPoints: number;
|
|
1981
|
-
external: boolean;
|
|
1982
|
-
quests?: string[] | undefined;
|
|
1983
|
-
durationDays?: number | undefined;
|
|
1984
|
-
maxPoints?: number | undefined;
|
|
1985
|
-
}[];
|
|
1986
|
-
inviterGroup?: string | undefined;
|
|
1987
|
-
key?: string | undefined;
|
|
1988
|
-
id?: string | undefined;
|
|
1989
|
-
}>>;
|
|
1990
|
-
declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1890
|
+
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
key: z.ZodString;
|
|
1892
|
+
}, z.core.$strict>;
|
|
1893
|
+
declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1991
1894
|
title: z.ZodString;
|
|
1992
1895
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
1993
1896
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2006,9 +1909,11 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
2006
1909
|
inventory: z.ZodObject<{
|
|
2007
1910
|
kind: z.ZodLiteral<"untracked">;
|
|
2008
1911
|
}, z.core.$strict>;
|
|
2009
|
-
fulfillment: z.ZodObject<{
|
|
1912
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2010
1913
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2011
|
-
}, z.core.$strict
|
|
1914
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1915
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1916
|
+
}, z.core.$strict>], "kind">;
|
|
2012
1917
|
}, z.core.$strict>;
|
|
2013
1918
|
tier: z.ZodString;
|
|
2014
1919
|
}, z.core.$strict>]>>>;
|
|
@@ -2028,9 +1933,11 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
2028
1933
|
inventory: z.ZodObject<{
|
|
2029
1934
|
kind: z.ZodLiteral<"untracked">;
|
|
2030
1935
|
}, z.core.$strict>;
|
|
2031
|
-
fulfillment: z.ZodObject<{
|
|
1936
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2032
1937
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2033
|
-
}, z.core.$strict
|
|
1938
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1939
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1940
|
+
}, z.core.$strict>], "kind">;
|
|
2034
1941
|
}, z.core.$strict>;
|
|
2035
1942
|
tier: z.ZodString;
|
|
2036
1943
|
}, z.core.$strict>]>>>;
|
|
@@ -2062,15 +1969,16 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
2062
1969
|
inventory: z.ZodObject<{
|
|
2063
1970
|
kind: z.ZodLiteral<"untracked">;
|
|
2064
1971
|
}, z.core.$strict>;
|
|
2065
|
-
fulfillment: z.ZodObject<{
|
|
1972
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2066
1973
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2067
|
-
}, z.core.$strict
|
|
1974
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1975
|
+
kind: z.ZodLiteral<"automatic">;
|
|
1976
|
+
}, z.core.$strict>], "kind">;
|
|
2068
1977
|
}, z.core.$strict>;
|
|
2069
1978
|
tier: z.ZodString;
|
|
2070
1979
|
}, z.core.$strict>]>>;
|
|
2071
1980
|
}, z.core.$strict>>>;
|
|
2072
1981
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2073
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
2074
1982
|
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2075
1983
|
id: z.ZodString;
|
|
2076
1984
|
balance: z.ZodString;
|
|
@@ -2080,204 +1988,13 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
2080
1988
|
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
2081
1989
|
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
2082
1990
|
}, z.core.$strict>>>;
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
}, z.core.$strict>, z.
|
|
2086
|
-
title: string;
|
|
2087
|
-
rewards: {
|
|
2088
|
-
inviter: ({
|
|
2089
|
-
kind: "tier";
|
|
2090
|
-
reward: {
|
|
2091
|
-
id: string;
|
|
2092
|
-
title: string;
|
|
2093
|
-
tiers: {
|
|
2094
|
-
id: string;
|
|
2095
|
-
title: string;
|
|
2096
|
-
}[];
|
|
2097
|
-
inventory: {
|
|
2098
|
-
kind: "untracked";
|
|
2099
|
-
};
|
|
2100
|
-
fulfillment: {
|
|
2101
|
-
kind: "staff-handover";
|
|
2102
|
-
};
|
|
2103
|
-
};
|
|
2104
|
-
tier: string;
|
|
2105
|
-
} | {
|
|
2106
|
-
kind: "points";
|
|
2107
|
-
balance: string;
|
|
2108
|
-
amount: number;
|
|
2109
|
-
})[];
|
|
2110
|
-
invitee: ({
|
|
2111
|
-
kind: "tier";
|
|
2112
|
-
reward: {
|
|
2113
|
-
id: string;
|
|
2114
|
-
title: string;
|
|
2115
|
-
tiers: {
|
|
2116
|
-
id: string;
|
|
2117
|
-
title: string;
|
|
2118
|
-
}[];
|
|
2119
|
-
inventory: {
|
|
2120
|
-
kind: "untracked";
|
|
2121
|
-
};
|
|
2122
|
-
fulfillment: {
|
|
2123
|
-
kind: "staff-handover";
|
|
2124
|
-
};
|
|
2125
|
-
};
|
|
2126
|
-
tier: string;
|
|
2127
|
-
} | {
|
|
2128
|
-
kind: "points";
|
|
2129
|
-
balance: string;
|
|
2130
|
-
amount: number;
|
|
2131
|
-
})[];
|
|
2132
|
-
};
|
|
2133
|
-
qualification: {
|
|
2134
|
-
kind: "signup";
|
|
2135
|
-
} | {
|
|
2136
|
-
kind: "quest";
|
|
2137
|
-
quest: string;
|
|
2138
|
-
} | {
|
|
2139
|
-
kind: "external";
|
|
2140
|
-
};
|
|
2141
|
-
milestones: {
|
|
2142
|
-
id: string;
|
|
2143
|
-
count: number;
|
|
2144
|
-
rewards: ({
|
|
2145
|
-
kind: "tier";
|
|
2146
|
-
reward: {
|
|
2147
|
-
id: string;
|
|
2148
|
-
title: string;
|
|
2149
|
-
tiers: {
|
|
2150
|
-
id: string;
|
|
2151
|
-
title: string;
|
|
2152
|
-
}[];
|
|
2153
|
-
inventory: {
|
|
2154
|
-
kind: "untracked";
|
|
2155
|
-
};
|
|
2156
|
-
fulfillment: {
|
|
2157
|
-
kind: "staff-handover";
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
tier: string;
|
|
2161
|
-
} | {
|
|
2162
|
-
kind: "points";
|
|
2163
|
-
balance: string;
|
|
2164
|
-
amount: number;
|
|
2165
|
-
})[];
|
|
2166
|
-
}[];
|
|
2167
|
-
enabled: boolean;
|
|
2168
|
-
bonuses: {
|
|
2169
|
-
id: string;
|
|
2170
|
-
balance: string;
|
|
2171
|
-
basisPoints: number;
|
|
2172
|
-
external: boolean;
|
|
2173
|
-
quests?: string[] | undefined;
|
|
2174
|
-
durationDays?: number | undefined;
|
|
2175
|
-
maxPoints?: number | undefined;
|
|
2176
|
-
}[];
|
|
2177
|
-
inviterGroup?: string | undefined;
|
|
2178
|
-
key?: string | undefined;
|
|
2179
|
-
id?: string | undefined;
|
|
2180
|
-
}, "id" | "key"> & {
|
|
2181
|
-
key: string;
|
|
2182
|
-
}, {
|
|
2183
|
-
title: string;
|
|
2184
|
-
rewards: {
|
|
2185
|
-
inviter: ({
|
|
2186
|
-
kind: "tier";
|
|
2187
|
-
reward: {
|
|
2188
|
-
id: string;
|
|
2189
|
-
title: string;
|
|
2190
|
-
tiers: {
|
|
2191
|
-
id: string;
|
|
2192
|
-
title: string;
|
|
2193
|
-
}[];
|
|
2194
|
-
inventory: {
|
|
2195
|
-
kind: "untracked";
|
|
2196
|
-
};
|
|
2197
|
-
fulfillment: {
|
|
2198
|
-
kind: "staff-handover";
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
tier: string;
|
|
2202
|
-
} | {
|
|
2203
|
-
kind: "points";
|
|
2204
|
-
balance: string;
|
|
2205
|
-
amount: number;
|
|
2206
|
-
})[];
|
|
2207
|
-
invitee: ({
|
|
2208
|
-
kind: "tier";
|
|
2209
|
-
reward: {
|
|
2210
|
-
id: string;
|
|
2211
|
-
title: string;
|
|
2212
|
-
tiers: {
|
|
2213
|
-
id: string;
|
|
2214
|
-
title: string;
|
|
2215
|
-
}[];
|
|
2216
|
-
inventory: {
|
|
2217
|
-
kind: "untracked";
|
|
2218
|
-
};
|
|
2219
|
-
fulfillment: {
|
|
2220
|
-
kind: "staff-handover";
|
|
2221
|
-
};
|
|
2222
|
-
};
|
|
2223
|
-
tier: string;
|
|
2224
|
-
} | {
|
|
2225
|
-
kind: "points";
|
|
2226
|
-
balance: string;
|
|
2227
|
-
amount: number;
|
|
2228
|
-
})[];
|
|
2229
|
-
};
|
|
2230
|
-
qualification: {
|
|
2231
|
-
kind: "signup";
|
|
2232
|
-
} | {
|
|
2233
|
-
kind: "quest";
|
|
2234
|
-
quest: string;
|
|
2235
|
-
} | {
|
|
2236
|
-
kind: "external";
|
|
2237
|
-
};
|
|
2238
|
-
milestones: {
|
|
2239
|
-
id: string;
|
|
2240
|
-
count: number;
|
|
2241
|
-
rewards: ({
|
|
2242
|
-
kind: "tier";
|
|
2243
|
-
reward: {
|
|
2244
|
-
id: string;
|
|
2245
|
-
title: string;
|
|
2246
|
-
tiers: {
|
|
2247
|
-
id: string;
|
|
2248
|
-
title: string;
|
|
2249
|
-
}[];
|
|
2250
|
-
inventory: {
|
|
2251
|
-
kind: "untracked";
|
|
2252
|
-
};
|
|
2253
|
-
fulfillment: {
|
|
2254
|
-
kind: "staff-handover";
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
tier: string;
|
|
2258
|
-
} | {
|
|
2259
|
-
kind: "points";
|
|
2260
|
-
balance: string;
|
|
2261
|
-
amount: number;
|
|
2262
|
-
})[];
|
|
2263
|
-
}[];
|
|
2264
|
-
enabled: boolean;
|
|
2265
|
-
bonuses: {
|
|
2266
|
-
id: string;
|
|
2267
|
-
balance: string;
|
|
2268
|
-
basisPoints: number;
|
|
2269
|
-
external: boolean;
|
|
2270
|
-
quests?: string[] | undefined;
|
|
2271
|
-
durationDays?: number | undefined;
|
|
2272
|
-
maxPoints?: number | undefined;
|
|
2273
|
-
}[];
|
|
2274
|
-
inviterGroup?: string | undefined;
|
|
2275
|
-
key?: string | undefined;
|
|
2276
|
-
id?: string | undefined;
|
|
2277
|
-
}>>, z.ZodObject<{
|
|
1991
|
+
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
key: z.ZodString;
|
|
1993
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2278
1994
|
code: z.ZodString;
|
|
2279
1995
|
}, z.core.$strict>]>;
|
|
2280
1996
|
declare const publishedReferralSchema: z.ZodObject<{
|
|
1997
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2281
1998
|
version: z.ZodString;
|
|
2282
1999
|
definition: z.ZodObject<{
|
|
2283
2000
|
id: z.ZodString;
|
|
@@ -2310,9 +2027,11 @@ declare const publishedReferralSchema: z.ZodObject<{
|
|
|
2310
2027
|
inventory: z.ZodObject<{
|
|
2311
2028
|
kind: z.ZodLiteral<"untracked">;
|
|
2312
2029
|
}, z.core.$strict>;
|
|
2313
|
-
fulfillment: z.ZodObject<{
|
|
2030
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2314
2031
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2315
|
-
}, z.core.$strict
|
|
2032
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2033
|
+
kind: z.ZodLiteral<"automatic">;
|
|
2034
|
+
}, z.core.$strict>], "kind">;
|
|
2316
2035
|
}, z.core.$strict>;
|
|
2317
2036
|
tier: z.ZodString;
|
|
2318
2037
|
}, z.core.$strict>]>>>;
|
|
@@ -2332,9 +2051,11 @@ declare const publishedReferralSchema: z.ZodObject<{
|
|
|
2332
2051
|
inventory: z.ZodObject<{
|
|
2333
2052
|
kind: z.ZodLiteral<"untracked">;
|
|
2334
2053
|
}, z.core.$strict>;
|
|
2335
|
-
fulfillment: z.ZodObject<{
|
|
2054
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2336
2055
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2337
|
-
}, z.core.$strict
|
|
2056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2057
|
+
kind: z.ZodLiteral<"automatic">;
|
|
2058
|
+
}, z.core.$strict>], "kind">;
|
|
2338
2059
|
}, z.core.$strict>;
|
|
2339
2060
|
tier: z.ZodString;
|
|
2340
2061
|
}, z.core.$strict>]>>>;
|
|
@@ -2358,9 +2079,11 @@ declare const publishedReferralSchema: z.ZodObject<{
|
|
|
2358
2079
|
inventory: z.ZodObject<{
|
|
2359
2080
|
kind: z.ZodLiteral<"untracked">;
|
|
2360
2081
|
}, z.core.$strict>;
|
|
2361
|
-
fulfillment: z.ZodObject<{
|
|
2082
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2362
2083
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2363
|
-
}, z.core.$strict
|
|
2084
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2085
|
+
kind: z.ZodLiteral<"automatic">;
|
|
2086
|
+
}, z.core.$strict>], "kind">;
|
|
2364
2087
|
}, z.core.$strict>;
|
|
2365
2088
|
tier: z.ZodString;
|
|
2366
2089
|
}, z.core.$strict>]>>;
|
|
@@ -2455,9 +2178,11 @@ declare const referralSummarySchema: z.ZodObject<{
|
|
|
2455
2178
|
inventory: z.ZodObject<{
|
|
2456
2179
|
kind: z.ZodLiteral<"untracked">;
|
|
2457
2180
|
}, z.core.$strict>;
|
|
2458
|
-
fulfillment: z.ZodObject<{
|
|
2181
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2459
2182
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2460
|
-
}, z.core.$strict
|
|
2183
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2184
|
+
kind: z.ZodLiteral<"automatic">;
|
|
2185
|
+
}, z.core.$strict>], "kind">;
|
|
2461
2186
|
}, z.core.$strict>;
|
|
2462
2187
|
tier: z.ZodString;
|
|
2463
2188
|
}, z.core.$strict>]>>>;
|
|
@@ -2477,9 +2202,11 @@ declare const referralSummarySchema: z.ZodObject<{
|
|
|
2477
2202
|
inventory: z.ZodObject<{
|
|
2478
2203
|
kind: z.ZodLiteral<"untracked">;
|
|
2479
2204
|
}, z.core.$strict>;
|
|
2480
|
-
fulfillment: z.ZodObject<{
|
|
2205
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2481
2206
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2482
|
-
}, z.core.$strict
|
|
2207
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2208
|
+
kind: z.ZodLiteral<"automatic">;
|
|
2209
|
+
}, z.core.$strict>], "kind">;
|
|
2483
2210
|
}, z.core.$strict>;
|
|
2484
2211
|
tier: z.ZodString;
|
|
2485
2212
|
}, z.core.$strict>]>>>;
|
|
@@ -2503,9 +2230,11 @@ declare const referralSummarySchema: z.ZodObject<{
|
|
|
2503
2230
|
inventory: z.ZodObject<{
|
|
2504
2231
|
kind: z.ZodLiteral<"untracked">;
|
|
2505
2232
|
}, z.core.$strict>;
|
|
2506
|
-
fulfillment: z.ZodObject<{
|
|
2233
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2507
2234
|
kind: z.ZodLiteral<"staff-handover">;
|
|
2508
|
-
}, z.core.$strict
|
|
2235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2236
|
+
kind: z.ZodLiteral<"automatic">;
|
|
2237
|
+
}, z.core.$strict>], "kind">;
|
|
2509
2238
|
}, z.core.$strict>;
|
|
2510
2239
|
tier: z.ZodString;
|
|
2511
2240
|
}, z.core.$strict>]>>;
|
|
@@ -2589,84 +2318,132 @@ declare const referralManagementSchema: z.ZodObject<{
|
|
|
2589
2318
|
next: z.ZodNullable<z.ZodNumber>;
|
|
2590
2319
|
}, z.core.$strip>;
|
|
2591
2320
|
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
discord: "discord";
|
|
2597
|
-
}>;
|
|
2598
|
-
type AuthProvider = z.infer<typeof authProviderSchema>;
|
|
2599
|
-
declare const accountConnectionSchema: z.ZodObject<{
|
|
2600
|
-
provider: z.ZodEnum<{
|
|
2601
|
-
google: "google";
|
|
2602
|
-
apple: "apple";
|
|
2603
|
-
x: "x";
|
|
2604
|
-
discord: "discord";
|
|
2605
|
-
}>;
|
|
2606
|
-
configured: z.ZodBoolean;
|
|
2607
|
-
status: z.ZodEnum<{
|
|
2608
|
-
disconnected: "disconnected";
|
|
2609
|
-
connected: "connected";
|
|
2610
|
-
reconnect: "reconnect";
|
|
2611
|
-
}>;
|
|
2612
|
-
subject: z.ZodNullable<z.ZodString>;
|
|
2613
|
-
revision: z.ZodNumber;
|
|
2614
|
-
}, z.core.$strip>;
|
|
2615
|
-
type AccountConnection = z.infer<typeof accountConnectionSchema>;
|
|
2616
|
-
declare const discordMemberInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
2617
|
-
declare const discordMessageInputSchema: z.ZodObject<{
|
|
2618
|
-
channelId: z.ZodString;
|
|
2619
|
-
messageId: z.ZodString;
|
|
2321
|
+
/** A half-open interval. A campaign or quest is open while `from <= now < until`. */
|
|
2322
|
+
declare const availabilityWindowSchema: z.ZodObject<{
|
|
2323
|
+
from: z.ZodNumber;
|
|
2324
|
+
until: z.ZodNumber;
|
|
2620
2325
|
}, z.core.$strict>;
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2326
|
+
type AvailabilityWindow = z.infer<typeof availabilityWindowSchema>;
|
|
2327
|
+
declare const campaignDefinitionSchema: z.ZodObject<{
|
|
2328
|
+
key: z.ZodString;
|
|
2329
|
+
title: z.ZodString;
|
|
2330
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
2331
|
+
from: z.ZodNumber;
|
|
2332
|
+
until: z.ZodNumber;
|
|
2333
|
+
}, z.core.$strict>>;
|
|
2334
|
+
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2335
|
+
none: "none";
|
|
2336
|
+
required: "required";
|
|
2337
|
+
}>>;
|
|
2338
|
+
}, z.core.$strict>;
|
|
2339
|
+
type CampaignDefinition = z.infer<typeof campaignDefinitionSchema>;
|
|
2340
|
+
declare const campaignAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
2341
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
2342
|
+
from: z.ZodNumber;
|
|
2343
|
+
until: z.ZodNumber;
|
|
2344
|
+
}, z.core.$strict>>;
|
|
2345
|
+
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2346
|
+
none: "none";
|
|
2347
|
+
required: "required";
|
|
2348
|
+
}>>;
|
|
2349
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2350
|
+
key: z.ZodString;
|
|
2351
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
2352
|
+
key: string;
|
|
2353
|
+
title: string;
|
|
2354
|
+
enrollment: "none" | "required";
|
|
2355
|
+
window?: {
|
|
2356
|
+
from: number;
|
|
2357
|
+
until: number;
|
|
2358
|
+
} | undefined;
|
|
2359
|
+
}, {
|
|
2360
|
+
enrollment: "none" | "required";
|
|
2361
|
+
key: string;
|
|
2362
|
+
window?: {
|
|
2363
|
+
from: number;
|
|
2364
|
+
until: number;
|
|
2365
|
+
} | undefined;
|
|
2366
|
+
title?: string | undefined;
|
|
2367
|
+
}>>;
|
|
2368
|
+
/** Define a campaign shared by any number of quests. */
|
|
2369
|
+
declare function defineCampaign(input: Omit<z.input<typeof campaignAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
|
|
2370
|
+
key: string;
|
|
2371
|
+
title: string;
|
|
2372
|
+
enrollment: "none" | "required";
|
|
2373
|
+
window?: {
|
|
2374
|
+
from: number;
|
|
2375
|
+
until: number;
|
|
2376
|
+
} | undefined;
|
|
2377
|
+
};
|
|
2378
|
+
declare const campaignViewSchema: z.ZodObject<{
|
|
2379
|
+
key: z.ZodString;
|
|
2380
|
+
title: z.ZodString;
|
|
2381
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
2382
|
+
from: z.ZodNumber;
|
|
2383
|
+
until: z.ZodNumber;
|
|
2384
|
+
}, z.core.$strict>>;
|
|
2385
|
+
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2386
|
+
none: "none";
|
|
2387
|
+
required: "required";
|
|
2388
|
+
}>>;
|
|
2389
|
+
enrolledAt: z.ZodNullable<z.ZodNumber>;
|
|
2390
|
+
withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2391
|
+
withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2636
2392
|
}, z.core.$strict>;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2393
|
+
type CampaignView = z.infer<typeof campaignViewSchema>;
|
|
2394
|
+
declare const campaignEnrollmentInputSchema: z.ZodObject<{
|
|
2395
|
+
actionId: z.ZodString;
|
|
2396
|
+
campaign: z.ZodString;
|
|
2640
2397
|
}, z.core.$strict>;
|
|
2641
|
-
type
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2398
|
+
type CampaignEnrollmentInput = z.input<typeof campaignEnrollmentInputSchema>;
|
|
2399
|
+
declare const memberCampaignEnrollmentInputSchema: z.ZodObject<{
|
|
2400
|
+
actionId: z.ZodString;
|
|
2401
|
+
campaign: z.ZodString;
|
|
2402
|
+
member: z.ZodString;
|
|
2646
2403
|
}, z.core.$strict>;
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2404
|
+
type MemberCampaignEnrollmentInput = z.input<typeof memberCampaignEnrollmentInputSchema>;
|
|
2405
|
+
declare const campaignWithdrawalInputSchema: z.ZodObject<{
|
|
2406
|
+
actionId: z.ZodString;
|
|
2407
|
+
campaign: z.ZodString;
|
|
2650
2408
|
}, z.core.$strict>;
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
}, z.core.$strict
|
|
2658
|
-
type
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2409
|
+
type CampaignWithdrawalInput = z.input<typeof campaignWithdrawalInputSchema>;
|
|
2410
|
+
declare const memberCampaignWithdrawalInputSchema: z.ZodObject<{
|
|
2411
|
+
actionId: z.ZodString;
|
|
2412
|
+
campaign: z.ZodString;
|
|
2413
|
+
member: z.ZodString;
|
|
2414
|
+
reason: z.ZodString;
|
|
2415
|
+
}, z.core.$strict>;
|
|
2416
|
+
type MemberCampaignWithdrawalInput = z.input<typeof memberCampaignWithdrawalInputSchema>;
|
|
2417
|
+
declare const campaignEnrollmentSchema: z.ZodObject<{
|
|
2418
|
+
campaign: z.ZodString;
|
|
2419
|
+
member: z.ZodString;
|
|
2420
|
+
enrolledAt: z.ZodNumber;
|
|
2421
|
+
withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2422
|
+
withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2423
|
+
}, z.core.$strip>;
|
|
2424
|
+
type CampaignEnrollment = z.infer<typeof campaignEnrollmentSchema>;
|
|
2425
|
+
|
|
2426
|
+
declare const projectGroupSchema: z.ZodObject<{
|
|
2427
|
+
key: z.ZodString;
|
|
2428
|
+
title: z.ZodString;
|
|
2429
|
+
}, z.core.$strict>;
|
|
2430
|
+
type ProjectGroup = z.infer<typeof projectGroupSchema>;
|
|
2431
|
+
declare const projectGroupAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
2432
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
key: z.ZodString;
|
|
2434
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
2435
|
+
key: string;
|
|
2436
|
+
title: string;
|
|
2437
|
+
}, {
|
|
2438
|
+
key: string;
|
|
2439
|
+
title?: string | undefined;
|
|
2440
|
+
}>>;
|
|
2441
|
+
/** Define one project group for prerequisites, leaderboards, and referrals. */
|
|
2442
|
+
declare function defineGroup(input: Omit<z.input<typeof projectGroupAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
|
|
2443
|
+
key: string;
|
|
2444
|
+
title: string;
|
|
2445
|
+
} & ResourceHandle<"group">;
|
|
2446
|
+
type ProjectGroupReference = GroupHandle;
|
|
2447
|
+
declare function projectGroupKey(group: ProjectGroupReference): string;
|
|
2671
2448
|
|
|
2672
|
-
export {
|
|
2449
|
+
export { engagementSettlementSchema as $, type AvailabilityWindow as A, campaignViewSchema as B, type CampaignDefinition as C, campaignWithdrawalInputSchema as D, type EngagementBudget as E, createPointLedgerSchema as F, defineCampaign as G, defineGroup as H, engagementArtifactSchema as I, engagementBoundaryPageSchema as J, type KnownPointEntryKind as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, engagementBudgetSchema as N, engagementChangePreviewInputSchema as O, type PointBalance as P, engagementChangePreviewSchema as Q, type ReferralDefinition as R, engagementChangeSchema as S, engagementDefinitionSchema as T, engagementDeploymentEntrySchema as U, engagementPageQuerySchema as V, engagementPageSchema as W, engagementPublishSchema as X, engagementRuleSchema as Y, engagementScoreInputSchema as Z, engagementScoreSchema as _, type CampaignEnrollment as a, engagementVersionPageSchema as a0, engagementVersionQuerySchema as a1, leaderboardArtifactSchema as a2, leaderboardAuthoringSchema as a3, leaderboardDefinitionSchema as a4, leaderboardExclusionSchema as a5, leaderboardGroupSchema as a6, leaderboardPageSchema as a7, leaderboardPlacementSchema as a8, leaderboardPreviewSchema as a9, pointsMutationSchema as aA, pointsResultSchema as aB, projectGroupKey as aC, projectGroupSchema as aD, publishedLeaderboardSchema as aE, publishedReferralSchema as aF, referralAcceptSchema as aG, referralAccountSchema as aH, referralArtifactSchema as aI, referralAuthoringSchema as aJ, referralControlSchema as aK, referralDefinitionSchema as aL, referralHistorySchema as aM, referralManagementSchema as aN, referralRelationshipSchema as aO, referralSummarySchema as aP, type AuthoringIdentity as aQ, leaderboardPrizeRewardSchema as aa, leaderboardPrizeSchema as ab, leaderboardQuerySchema as ac, leaderboardRowSchema as ad, leaderboardSettlementApprovalSchema as ae, leaderboardSettlementPolicySchema as af, leaderboardSettlementRowSchema as ag, leaderboardSettlementSchema as ah, leaderboardSettlementStatusSchema as ai, leaderboardSettlementSummarySchema as aj, leaderboardWindowSchema as ak, managedPointLedgerSchema as al, memberCampaignEnrollmentInputSchema as am, memberCampaignWithdrawalInputSchema as an, pointBalanceSchema as ao, pointBalancesSchema as ap, pointEntrySchema as aq, pointHistoryPageSchema as ar, pointHistoryQuerySchema as as, pointLedgerArtifactSchema as at, pointLedgerDeclarationSchema as au, pointLedgerPropertiesSchema as av, pointLedgerReferenceSchema as aw, pointLedgerSchema as ax, pointsAccountSchema as ay, pointsEntrySchema as az, type CampaignEnrollmentInput as b, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardPage as e, type LeaderboardPlacement as f, type LeaderboardQuery as g, type MemberCampaignWithdrawalInput as h, type PointBalances as i, type PointEntry as j, PointEntryKind as k, type PointHistoryPage as l, type PointHistoryQuery as m, type PointLedgerReference as n, type ProjectGroup as o, type ProjectGroupReference as p, type EngagementDefinition as q, type LeaderboardSettlement as r, type LeaderboardSettlementPolicy as s, type LeaderboardSettlementSummary as t, type ManagedPointLedger as u, type PointLedger as v, availabilityWindowSchema as w, campaignDefinitionSchema as x, campaignEnrollmentInputSchema as y, campaignEnrollmentSchema as z };
|