@domino-sdk/relay-cli 0.2.0 → 0.4.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/cli/capabilities.json +56 -20
- package/cli/commands/discovery.mjs +1 -1
- package/cli/commands/hosting.mjs +7 -8
- package/cli/commands/project.mjs +4 -0
- package/cli/discovery.mjs +62 -0
- package/cli/doctor.mjs +9 -2
- package/cli/project.mjs +126 -29
- package/cli/skills/domino/SKILL.md +34 -4
- package/cli/skills/domino/references/authoring.md +98 -1
- package/cli/skills/domino/references/existing-app.md +6 -2
- package/cli/skills/domino/references/hosted.md +12 -0
- package/cli/skills/domino/references/participant-api.md +82 -1
- package/cli/skills/domino/references/referrals.md +57 -8
- package/cli/skills/domino/references/troubleshooting.md +2 -0
- package/dist/index.d.ts +993 -4
- package/dist/index.js +105 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { projectDeploymentSchema, publishDeploymentSchema, catalogDeploymentSchema, saveQuestDraftSchema, publishQuestDraftSchema, collectionBeginSchema, configurePickupSchema } from '@domino-sdk/relay';
|
|
1
|
+
import { pointsMutationSchema, referralControlSchema, leaderboardQuerySchema, leaderboardExclusionSchema, leaderboardGroupSchema, projectDeploymentSchema, publishDeploymentSchema, catalogDeploymentSchema, saveQuestDraftSchema, publishQuestDraftSchema, collectionBeginSchema, configurePickupSchema } from '@domino-sdk/relay';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const repositorySchema: z.ZodObject<{
|
|
@@ -43,6 +43,7 @@ declare const buildIdentitySchema: z.ZodObject<{
|
|
|
43
43
|
commit: z.ZodString;
|
|
44
44
|
createdAt: z.ZodNumber;
|
|
45
45
|
actor: z.ZodString;
|
|
46
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
46
47
|
}, z.core.$strip>;
|
|
47
48
|
type BuildIdentity = z.infer<typeof buildIdentitySchema>;
|
|
48
49
|
declare const buildPhaseSchema: z.ZodEnum<{
|
|
@@ -66,10 +67,181 @@ declare const buildStatusSchema: z.ZodObject<{
|
|
|
66
67
|
build: "build";
|
|
67
68
|
deploy: "deploy";
|
|
68
69
|
}>;
|
|
70
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
check: "check";
|
|
72
|
+
failed: "failed";
|
|
73
|
+
ready: "ready";
|
|
74
|
+
queued: "queued";
|
|
75
|
+
source: "source";
|
|
76
|
+
install: "install";
|
|
77
|
+
build: "build";
|
|
78
|
+
deploy: "deploy";
|
|
79
|
+
}>>;
|
|
69
80
|
updatedAt: z.ZodNumber;
|
|
70
81
|
message: z.ZodString;
|
|
71
82
|
}, z.core.$strip>;
|
|
72
83
|
type BuildStatus = z.infer<typeof buildStatusSchema>;
|
|
84
|
+
declare const hostedBuildSchema: z.ZodObject<{
|
|
85
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
86
|
+
simulation: "simulation";
|
|
87
|
+
"hosted-test": "hosted-test";
|
|
88
|
+
}>>;
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
repository: z.ZodString;
|
|
91
|
+
organization: z.ZodString;
|
|
92
|
+
project: z.ZodString;
|
|
93
|
+
commit: z.ZodString;
|
|
94
|
+
createdAt: z.ZodNumber;
|
|
95
|
+
actor: z.ZodString;
|
|
96
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
97
|
+
finished: z.ZodBoolean;
|
|
98
|
+
current: z.ZodBoolean;
|
|
99
|
+
stagingUrl: z.ZodString;
|
|
100
|
+
phase: z.ZodEnum<{
|
|
101
|
+
check: "check";
|
|
102
|
+
failed: "failed";
|
|
103
|
+
ready: "ready";
|
|
104
|
+
queued: "queued";
|
|
105
|
+
source: "source";
|
|
106
|
+
install: "install";
|
|
107
|
+
build: "build";
|
|
108
|
+
deploy: "deploy";
|
|
109
|
+
}>;
|
|
110
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
check: "check";
|
|
112
|
+
failed: "failed";
|
|
113
|
+
ready: "ready";
|
|
114
|
+
queued: "queued";
|
|
115
|
+
source: "source";
|
|
116
|
+
install: "install";
|
|
117
|
+
build: "build";
|
|
118
|
+
deploy: "deploy";
|
|
119
|
+
}>>;
|
|
120
|
+
updatedAt: z.ZodNumber;
|
|
121
|
+
message: z.ZodString;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
type HostedBuild = z.infer<typeof hostedBuildSchema>;
|
|
124
|
+
declare const buildSnapshotSchema: z.ZodObject<{
|
|
125
|
+
builds: z.ZodArray<z.ZodObject<{
|
|
126
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
127
|
+
simulation: "simulation";
|
|
128
|
+
"hosted-test": "hosted-test";
|
|
129
|
+
}>>;
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
repository: z.ZodString;
|
|
132
|
+
organization: z.ZodString;
|
|
133
|
+
project: z.ZodString;
|
|
134
|
+
commit: z.ZodString;
|
|
135
|
+
createdAt: z.ZodNumber;
|
|
136
|
+
actor: z.ZodString;
|
|
137
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
138
|
+
finished: z.ZodBoolean;
|
|
139
|
+
current: z.ZodBoolean;
|
|
140
|
+
stagingUrl: z.ZodString;
|
|
141
|
+
phase: z.ZodEnum<{
|
|
142
|
+
check: "check";
|
|
143
|
+
failed: "failed";
|
|
144
|
+
ready: "ready";
|
|
145
|
+
queued: "queued";
|
|
146
|
+
source: "source";
|
|
147
|
+
install: "install";
|
|
148
|
+
build: "build";
|
|
149
|
+
deploy: "deploy";
|
|
150
|
+
}>;
|
|
151
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
check: "check";
|
|
153
|
+
failed: "failed";
|
|
154
|
+
ready: "ready";
|
|
155
|
+
queued: "queued";
|
|
156
|
+
source: "source";
|
|
157
|
+
install: "install";
|
|
158
|
+
build: "build";
|
|
159
|
+
deploy: "deploy";
|
|
160
|
+
}>>;
|
|
161
|
+
updatedAt: z.ZodNumber;
|
|
162
|
+
message: z.ZodString;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
165
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
166
|
+
simulation: "simulation";
|
|
167
|
+
"hosted-test": "hosted-test";
|
|
168
|
+
}>>;
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
repository: z.ZodString;
|
|
171
|
+
organization: z.ZodString;
|
|
172
|
+
project: z.ZodString;
|
|
173
|
+
commit: z.ZodString;
|
|
174
|
+
createdAt: z.ZodNumber;
|
|
175
|
+
actor: z.ZodString;
|
|
176
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
177
|
+
finished: z.ZodBoolean;
|
|
178
|
+
current: z.ZodBoolean;
|
|
179
|
+
stagingUrl: z.ZodString;
|
|
180
|
+
phase: z.ZodEnum<{
|
|
181
|
+
check: "check";
|
|
182
|
+
failed: "failed";
|
|
183
|
+
ready: "ready";
|
|
184
|
+
queued: "queued";
|
|
185
|
+
source: "source";
|
|
186
|
+
install: "install";
|
|
187
|
+
build: "build";
|
|
188
|
+
deploy: "deploy";
|
|
189
|
+
}>;
|
|
190
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
check: "check";
|
|
192
|
+
failed: "failed";
|
|
193
|
+
ready: "ready";
|
|
194
|
+
queued: "queued";
|
|
195
|
+
source: "source";
|
|
196
|
+
install: "install";
|
|
197
|
+
build: "build";
|
|
198
|
+
deploy: "deploy";
|
|
199
|
+
}>>;
|
|
200
|
+
updatedAt: z.ZodNumber;
|
|
201
|
+
message: z.ZodString;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
selected: z.ZodNullable<z.ZodObject<{
|
|
204
|
+
runtime: z.ZodDefault<z.ZodEnum<{
|
|
205
|
+
simulation: "simulation";
|
|
206
|
+
"hosted-test": "hosted-test";
|
|
207
|
+
}>>;
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
repository: z.ZodString;
|
|
210
|
+
organization: z.ZodString;
|
|
211
|
+
project: z.ZodString;
|
|
212
|
+
commit: z.ZodString;
|
|
213
|
+
createdAt: z.ZodNumber;
|
|
214
|
+
actor: z.ZodString;
|
|
215
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
216
|
+
finished: z.ZodBoolean;
|
|
217
|
+
current: z.ZodBoolean;
|
|
218
|
+
stagingUrl: z.ZodString;
|
|
219
|
+
phase: z.ZodEnum<{
|
|
220
|
+
check: "check";
|
|
221
|
+
failed: "failed";
|
|
222
|
+
ready: "ready";
|
|
223
|
+
queued: "queued";
|
|
224
|
+
source: "source";
|
|
225
|
+
install: "install";
|
|
226
|
+
build: "build";
|
|
227
|
+
deploy: "deploy";
|
|
228
|
+
}>;
|
|
229
|
+
failedPhase: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
check: "check";
|
|
231
|
+
failed: "failed";
|
|
232
|
+
ready: "ready";
|
|
233
|
+
queued: "queued";
|
|
234
|
+
source: "source";
|
|
235
|
+
install: "install";
|
|
236
|
+
build: "build";
|
|
237
|
+
deploy: "deploy";
|
|
238
|
+
}>>;
|
|
239
|
+
updatedAt: z.ZodNumber;
|
|
240
|
+
message: z.ZodString;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
logs: z.ZodString;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
type BuildSnapshot = z.infer<typeof buildSnapshotSchema>;
|
|
73
245
|
declare const assetPathSchema: z.ZodString;
|
|
74
246
|
declare const buildArtifactsSchema: z.ZodObject<{
|
|
75
247
|
format: z.ZodLiteral<1>;
|
|
@@ -90,6 +262,10 @@ declare const developmentPreflightSchema: z.ZodObject<{
|
|
|
90
262
|
test: "test";
|
|
91
263
|
live: "live";
|
|
92
264
|
}>;
|
|
265
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
exchange: z.ZodLiteral<"supported">;
|
|
267
|
+
activeIntegrations: z.ZodNumber;
|
|
268
|
+
}, z.core.$strip>>;
|
|
93
269
|
staging: z.ZodEnum<{
|
|
94
270
|
blocked: "blocked";
|
|
95
271
|
configured: "configured";
|
|
@@ -131,6 +307,7 @@ declare const permissionSchema: z.ZodEnum<{
|
|
|
131
307
|
handover: "handover";
|
|
132
308
|
inventory: "inventory";
|
|
133
309
|
access: "access";
|
|
310
|
+
points: "points";
|
|
134
311
|
}>;
|
|
135
312
|
type Permission = z.infer<typeof permissionSchema>;
|
|
136
313
|
declare const rolePermissions: Record<z.infer<typeof roleSchema>, Permission[]>;
|
|
@@ -164,6 +341,7 @@ declare const projectSchema: z.ZodObject<{
|
|
|
164
341
|
handover: "handover";
|
|
165
342
|
inventory: "inventory";
|
|
166
343
|
access: "access";
|
|
344
|
+
points: "points";
|
|
167
345
|
}>>;
|
|
168
346
|
environments: z.ZodArray<z.ZodEnum<{
|
|
169
347
|
test: "test";
|
|
@@ -222,6 +400,7 @@ declare const accessSchema: z.ZodObject<{
|
|
|
222
400
|
handover: "handover";
|
|
223
401
|
inventory: "inventory";
|
|
224
402
|
access: "access";
|
|
403
|
+
points: "points";
|
|
225
404
|
}>>;
|
|
226
405
|
environments: z.ZodArray<z.ZodEnum<{
|
|
227
406
|
test: "test";
|
|
@@ -348,6 +527,9 @@ declare const pageSchema: z.ZodObject<{
|
|
|
348
527
|
}, z.core.$strict>>;
|
|
349
528
|
}, z.core.$strict>>;
|
|
350
529
|
}, z.core.$strict>>;
|
|
530
|
+
integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
531
|
+
discord: "discord";
|
|
532
|
+
}>>>;
|
|
351
533
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
352
534
|
kind: z.ZodLiteral<"quiz">;
|
|
353
535
|
default: z.ZodArray<z.ZodObject<{
|
|
@@ -542,6 +724,7 @@ declare const pageSchema: z.ZodObject<{
|
|
|
542
724
|
} | undefined;
|
|
543
725
|
} | undefined;
|
|
544
726
|
};
|
|
727
|
+
integrations: "discord"[];
|
|
545
728
|
fields: Record<string, {
|
|
546
729
|
kind: "quiz";
|
|
547
730
|
default: {
|
|
@@ -918,6 +1101,9 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
918
1101
|
}, z.core.$strict>>;
|
|
919
1102
|
}, z.core.$strict>>;
|
|
920
1103
|
}, z.core.$strict>>;
|
|
1104
|
+
integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1105
|
+
discord: "discord";
|
|
1106
|
+
}>>>;
|
|
921
1107
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
922
1108
|
kind: z.ZodLiteral<"quiz">;
|
|
923
1109
|
default: z.ZodArray<z.ZodObject<{
|
|
@@ -1112,6 +1298,7 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1112
1298
|
} | undefined;
|
|
1113
1299
|
} | undefined;
|
|
1114
1300
|
};
|
|
1301
|
+
integrations: "discord"[];
|
|
1115
1302
|
fields: Record<string, {
|
|
1116
1303
|
kind: "quiz";
|
|
1117
1304
|
default: {
|
|
@@ -1451,6 +1638,12 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1451
1638
|
}, z.core.$strict>>;
|
|
1452
1639
|
}, z.core.$strict>>;
|
|
1453
1640
|
}, z.core.$strict>>;
|
|
1641
|
+
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1642
|
+
discord: "discord";
|
|
1643
|
+
google: "google";
|
|
1644
|
+
apple: "apple";
|
|
1645
|
+
x: "x";
|
|
1646
|
+
}>>>;
|
|
1454
1647
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1455
1648
|
kind: z.ZodLiteral<"manual">;
|
|
1456
1649
|
input: z.ZodEnum<{
|
|
@@ -1672,6 +1865,7 @@ declare const tokenInputSchema: z.ZodObject<{
|
|
|
1672
1865
|
handover: "handover";
|
|
1673
1866
|
inventory: "inventory";
|
|
1674
1867
|
access: "access";
|
|
1868
|
+
points: "points";
|
|
1675
1869
|
}>>;
|
|
1676
1870
|
days: z.ZodDefault<z.ZodNumber>;
|
|
1677
1871
|
}, z.core.$strict>;
|
|
@@ -1691,6 +1885,7 @@ declare const tokenSchema: z.ZodObject<{
|
|
|
1691
1885
|
handover: "handover";
|
|
1692
1886
|
inventory: "inventory";
|
|
1693
1887
|
access: "access";
|
|
1888
|
+
points: "points";
|
|
1694
1889
|
}>>;
|
|
1695
1890
|
expiresAt: z.ZodNumber;
|
|
1696
1891
|
}, z.core.$strip>;
|
|
@@ -1703,6 +1898,338 @@ declare function createManagementClient(options: {
|
|
|
1703
1898
|
}): {
|
|
1704
1899
|
raw: (path: string, init?: RequestInit) => Promise<Response>;
|
|
1705
1900
|
request: <T>(path: string, schema: z.ZodType<T>, input?: unknown, method?: string) => Promise<T>;
|
|
1901
|
+
points: {
|
|
1902
|
+
update: (input: z.input<typeof pointsMutationSchema>) => Promise<{
|
|
1903
|
+
entry: {
|
|
1904
|
+
id: string;
|
|
1905
|
+
completion: string | null;
|
|
1906
|
+
member: string;
|
|
1907
|
+
balance: string;
|
|
1908
|
+
amount: number;
|
|
1909
|
+
kind: "award" | "spend" | "adjust" | "reverse";
|
|
1910
|
+
effectiveAt: number;
|
|
1911
|
+
receivedAt: number;
|
|
1912
|
+
quest: string | null;
|
|
1913
|
+
original: string | null;
|
|
1914
|
+
reason: string;
|
|
1915
|
+
actor: string | null;
|
|
1916
|
+
};
|
|
1917
|
+
total: number;
|
|
1918
|
+
}>;
|
|
1919
|
+
balance: (member: string, balance: string) => Promise<{
|
|
1920
|
+
member: string;
|
|
1921
|
+
balance: string;
|
|
1922
|
+
total: number;
|
|
1923
|
+
held: number;
|
|
1924
|
+
}>;
|
|
1925
|
+
history: (member: string, balance: string, before?: number) => Promise<{
|
|
1926
|
+
items: {
|
|
1927
|
+
id: string;
|
|
1928
|
+
completion: string | null;
|
|
1929
|
+
member: string;
|
|
1930
|
+
balance: string;
|
|
1931
|
+
amount: number;
|
|
1932
|
+
kind: "award" | "spend" | "adjust" | "reverse";
|
|
1933
|
+
effectiveAt: number;
|
|
1934
|
+
receivedAt: number;
|
|
1935
|
+
quest: string | null;
|
|
1936
|
+
original: string | null;
|
|
1937
|
+
reason: string;
|
|
1938
|
+
actor: string | null;
|
|
1939
|
+
}[];
|
|
1940
|
+
next: number | null;
|
|
1941
|
+
}>;
|
|
1942
|
+
};
|
|
1943
|
+
referrals: {
|
|
1944
|
+
history: (member: string, before?: number) => Promise<{
|
|
1945
|
+
items: {
|
|
1946
|
+
id: number;
|
|
1947
|
+
program: string;
|
|
1948
|
+
balance: string;
|
|
1949
|
+
amount: number;
|
|
1950
|
+
at: number;
|
|
1951
|
+
reason: string;
|
|
1952
|
+
}[];
|
|
1953
|
+
next: number | null;
|
|
1954
|
+
}>;
|
|
1955
|
+
list: () => Promise<{
|
|
1956
|
+
version: string;
|
|
1957
|
+
definition: {
|
|
1958
|
+
id: string;
|
|
1959
|
+
title: string;
|
|
1960
|
+
enabled: boolean;
|
|
1961
|
+
qualification: {
|
|
1962
|
+
kind: "signup";
|
|
1963
|
+
} | {
|
|
1964
|
+
kind: "quest";
|
|
1965
|
+
quest: string;
|
|
1966
|
+
} | {
|
|
1967
|
+
kind: "external";
|
|
1968
|
+
};
|
|
1969
|
+
rewards: {
|
|
1970
|
+
inviter: ({
|
|
1971
|
+
kind: "points";
|
|
1972
|
+
balance: string;
|
|
1973
|
+
amount: number;
|
|
1974
|
+
} | {
|
|
1975
|
+
kind: "tier";
|
|
1976
|
+
reward: {
|
|
1977
|
+
id: string;
|
|
1978
|
+
title: string;
|
|
1979
|
+
tiers: {
|
|
1980
|
+
id: string;
|
|
1981
|
+
title: string;
|
|
1982
|
+
}[];
|
|
1983
|
+
inventory: {
|
|
1984
|
+
kind: "untracked";
|
|
1985
|
+
};
|
|
1986
|
+
fulfillment: {
|
|
1987
|
+
kind: "staff-handover";
|
|
1988
|
+
};
|
|
1989
|
+
};
|
|
1990
|
+
tier: string;
|
|
1991
|
+
})[];
|
|
1992
|
+
invitee: ({
|
|
1993
|
+
kind: "points";
|
|
1994
|
+
balance: string;
|
|
1995
|
+
amount: number;
|
|
1996
|
+
} | {
|
|
1997
|
+
kind: "tier";
|
|
1998
|
+
reward: {
|
|
1999
|
+
id: string;
|
|
2000
|
+
title: string;
|
|
2001
|
+
tiers: {
|
|
2002
|
+
id: string;
|
|
2003
|
+
title: string;
|
|
2004
|
+
}[];
|
|
2005
|
+
inventory: {
|
|
2006
|
+
kind: "untracked";
|
|
2007
|
+
};
|
|
2008
|
+
fulfillment: {
|
|
2009
|
+
kind: "staff-handover";
|
|
2010
|
+
};
|
|
2011
|
+
};
|
|
2012
|
+
tier: string;
|
|
2013
|
+
})[];
|
|
2014
|
+
};
|
|
2015
|
+
milestones: {
|
|
2016
|
+
id: string;
|
|
2017
|
+
count: number;
|
|
2018
|
+
rewards: ({
|
|
2019
|
+
kind: "points";
|
|
2020
|
+
balance: string;
|
|
2021
|
+
amount: number;
|
|
2022
|
+
} | {
|
|
2023
|
+
kind: "tier";
|
|
2024
|
+
reward: {
|
|
2025
|
+
id: string;
|
|
2026
|
+
title: string;
|
|
2027
|
+
tiers: {
|
|
2028
|
+
id: string;
|
|
2029
|
+
title: string;
|
|
2030
|
+
}[];
|
|
2031
|
+
inventory: {
|
|
2032
|
+
kind: "untracked";
|
|
2033
|
+
};
|
|
2034
|
+
fulfillment: {
|
|
2035
|
+
kind: "staff-handover";
|
|
2036
|
+
};
|
|
2037
|
+
};
|
|
2038
|
+
tier: string;
|
|
2039
|
+
})[];
|
|
2040
|
+
}[];
|
|
2041
|
+
bonuses: {
|
|
2042
|
+
id: string;
|
|
2043
|
+
balance: string;
|
|
2044
|
+
basisPoints: number;
|
|
2045
|
+
external: boolean;
|
|
2046
|
+
quests?: string[] | undefined;
|
|
2047
|
+
durationDays?: number | undefined;
|
|
2048
|
+
maxPoints?: number | undefined;
|
|
2049
|
+
}[];
|
|
2050
|
+
inviterGroup?: string | undefined;
|
|
2051
|
+
};
|
|
2052
|
+
publishedAt: number;
|
|
2053
|
+
actor: string | null;
|
|
2054
|
+
}[]>;
|
|
2055
|
+
participants: (before?: number) => Promise<{
|
|
2056
|
+
relationships: {
|
|
2057
|
+
member: string;
|
|
2058
|
+
inviter: string;
|
|
2059
|
+
acceptedAt: number;
|
|
2060
|
+
suspended: boolean;
|
|
2061
|
+
}[];
|
|
2062
|
+
qualifications: {
|
|
2063
|
+
member: string;
|
|
2064
|
+
program: string;
|
|
2065
|
+
qualified: boolean;
|
|
2066
|
+
qualifiedAt: number;
|
|
2067
|
+
}[];
|
|
2068
|
+
accounts: {
|
|
2069
|
+
id: string;
|
|
2070
|
+
program: string;
|
|
2071
|
+
kind: "fixed" | "bonus" | "milestone";
|
|
2072
|
+
balance: string;
|
|
2073
|
+
earned: number;
|
|
2074
|
+
settled: number;
|
|
2075
|
+
outstanding: number;
|
|
2076
|
+
member: string;
|
|
2077
|
+
invitee: string;
|
|
2078
|
+
}[];
|
|
2079
|
+
reviews: {
|
|
2080
|
+
entitlement: string;
|
|
2081
|
+
member: string;
|
|
2082
|
+
program: string;
|
|
2083
|
+
reason: string;
|
|
2084
|
+
}[];
|
|
2085
|
+
next: number | null;
|
|
2086
|
+
}>;
|
|
2087
|
+
control: (input: z.input<typeof referralControlSchema>) => Promise<{
|
|
2088
|
+
ok: true;
|
|
2089
|
+
}>;
|
|
2090
|
+
};
|
|
2091
|
+
leaderboards: {
|
|
2092
|
+
list: () => Promise<{
|
|
2093
|
+
version: string;
|
|
2094
|
+
definition: {
|
|
2095
|
+
id: string;
|
|
2096
|
+
title: string;
|
|
2097
|
+
balance: string;
|
|
2098
|
+
score: {
|
|
2099
|
+
kind: "balance";
|
|
2100
|
+
} | {
|
|
2101
|
+
window: {
|
|
2102
|
+
kind: "all-time";
|
|
2103
|
+
} | {
|
|
2104
|
+
kind: "fixed";
|
|
2105
|
+
start: number;
|
|
2106
|
+
end: number;
|
|
2107
|
+
} | {
|
|
2108
|
+
kind: "rolling";
|
|
2109
|
+
days: number;
|
|
2110
|
+
} | {
|
|
2111
|
+
kind: "calendar";
|
|
2112
|
+
period: "day" | "week" | "month";
|
|
2113
|
+
timeZone: string;
|
|
2114
|
+
};
|
|
2115
|
+
kind: "earned";
|
|
2116
|
+
quests?: string[] | undefined;
|
|
2117
|
+
} | {
|
|
2118
|
+
kind: "net";
|
|
2119
|
+
window: {
|
|
2120
|
+
kind: "all-time";
|
|
2121
|
+
} | {
|
|
2122
|
+
kind: "fixed";
|
|
2123
|
+
start: number;
|
|
2124
|
+
end: number;
|
|
2125
|
+
} | {
|
|
2126
|
+
kind: "rolling";
|
|
2127
|
+
days: number;
|
|
2128
|
+
} | {
|
|
2129
|
+
kind: "calendar";
|
|
2130
|
+
period: "day" | "week" | "month";
|
|
2131
|
+
timeZone: string;
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
access: "participants" | "public";
|
|
2135
|
+
group?: string | undefined;
|
|
2136
|
+
};
|
|
2137
|
+
publishedAt: number;
|
|
2138
|
+
actor: string | null;
|
|
2139
|
+
}[]>;
|
|
2140
|
+
standings: (board: string, input?: z.input<typeof leaderboardQuerySchema>) => Promise<{
|
|
2141
|
+
leaderboard: string;
|
|
2142
|
+
title: string;
|
|
2143
|
+
version: string;
|
|
2144
|
+
calculation: "balance" | "earned" | "net";
|
|
2145
|
+
period: {
|
|
2146
|
+
start: number | null;
|
|
2147
|
+
end: number | null;
|
|
2148
|
+
};
|
|
2149
|
+
calculatedAt: number;
|
|
2150
|
+
lastEntryAt: number | null;
|
|
2151
|
+
total: number;
|
|
2152
|
+
items: {
|
|
2153
|
+
participant: string;
|
|
2154
|
+
name: string;
|
|
2155
|
+
score: number;
|
|
2156
|
+
rank: number;
|
|
2157
|
+
member?: string | undefined;
|
|
2158
|
+
}[];
|
|
2159
|
+
me: {
|
|
2160
|
+
participant: string;
|
|
2161
|
+
name: string;
|
|
2162
|
+
score: number;
|
|
2163
|
+
rank: number;
|
|
2164
|
+
member?: string | undefined;
|
|
2165
|
+
} | null;
|
|
2166
|
+
nearby: {
|
|
2167
|
+
participant: string;
|
|
2168
|
+
name: string;
|
|
2169
|
+
score: number;
|
|
2170
|
+
rank: number;
|
|
2171
|
+
member?: string | undefined;
|
|
2172
|
+
}[];
|
|
2173
|
+
nextCursor: string | null;
|
|
2174
|
+
}>;
|
|
2175
|
+
history: (board: string) => Promise<{
|
|
2176
|
+
version: string;
|
|
2177
|
+
definition: {
|
|
2178
|
+
id: string;
|
|
2179
|
+
title: string;
|
|
2180
|
+
balance: string;
|
|
2181
|
+
score: {
|
|
2182
|
+
kind: "balance";
|
|
2183
|
+
} | {
|
|
2184
|
+
window: {
|
|
2185
|
+
kind: "all-time";
|
|
2186
|
+
} | {
|
|
2187
|
+
kind: "fixed";
|
|
2188
|
+
start: number;
|
|
2189
|
+
end: number;
|
|
2190
|
+
} | {
|
|
2191
|
+
kind: "rolling";
|
|
2192
|
+
days: number;
|
|
2193
|
+
} | {
|
|
2194
|
+
kind: "calendar";
|
|
2195
|
+
period: "day" | "week" | "month";
|
|
2196
|
+
timeZone: string;
|
|
2197
|
+
};
|
|
2198
|
+
kind: "earned";
|
|
2199
|
+
quests?: string[] | undefined;
|
|
2200
|
+
} | {
|
|
2201
|
+
kind: "net";
|
|
2202
|
+
window: {
|
|
2203
|
+
kind: "all-time";
|
|
2204
|
+
} | {
|
|
2205
|
+
kind: "fixed";
|
|
2206
|
+
start: number;
|
|
2207
|
+
end: number;
|
|
2208
|
+
} | {
|
|
2209
|
+
kind: "rolling";
|
|
2210
|
+
days: number;
|
|
2211
|
+
} | {
|
|
2212
|
+
kind: "calendar";
|
|
2213
|
+
period: "day" | "week" | "month";
|
|
2214
|
+
timeZone: string;
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
2217
|
+
access: "participants" | "public";
|
|
2218
|
+
group?: string | undefined;
|
|
2219
|
+
};
|
|
2220
|
+
publishedAt: number;
|
|
2221
|
+
actor: string | null;
|
|
2222
|
+
}[]>;
|
|
2223
|
+
exclusions: (board: string) => Promise<{
|
|
2224
|
+
member: string;
|
|
2225
|
+
}[]>;
|
|
2226
|
+
exclude: (board: string, input: z.input<typeof leaderboardExclusionSchema>) => Promise<{
|
|
2227
|
+
ok: true;
|
|
2228
|
+
}>;
|
|
2229
|
+
group: (group: string, input: z.input<typeof leaderboardGroupSchema>) => Promise<{
|
|
2230
|
+
ok: true;
|
|
2231
|
+
}>;
|
|
2232
|
+
};
|
|
1706
2233
|
deployments: {
|
|
1707
2234
|
preview: (input: z.input<typeof projectDeploymentSchema>) => Promise<{
|
|
1708
2235
|
id: string;
|
|
@@ -1731,6 +2258,7 @@ declare function createManagementClient(options: {
|
|
|
1731
2258
|
} | undefined;
|
|
1732
2259
|
} | undefined;
|
|
1733
2260
|
};
|
|
2261
|
+
integrations: "discord"[];
|
|
1734
2262
|
fields: Record<string, {
|
|
1735
2263
|
kind: "quiz";
|
|
1736
2264
|
default: {
|
|
@@ -1871,6 +2399,7 @@ declare function createManagementClient(options: {
|
|
|
1871
2399
|
} | undefined;
|
|
1872
2400
|
} | undefined;
|
|
1873
2401
|
};
|
|
2402
|
+
integrations: "discord"[];
|
|
1874
2403
|
fields: Record<string, {
|
|
1875
2404
|
kind: "quiz";
|
|
1876
2405
|
default: {
|
|
@@ -2016,6 +2545,7 @@ declare function createManagementClient(options: {
|
|
|
2016
2545
|
} | undefined;
|
|
2017
2546
|
} | undefined;
|
|
2018
2547
|
};
|
|
2548
|
+
integrations: "discord"[];
|
|
2019
2549
|
fields: Record<string, {
|
|
2020
2550
|
kind: "quiz";
|
|
2021
2551
|
default: {
|
|
@@ -2112,6 +2642,226 @@ declare function createManagementClient(options: {
|
|
|
2112
2642
|
quests: string[];
|
|
2113
2643
|
}[];
|
|
2114
2644
|
supportedInteractions: ("staff" | "quiz" | "photo" | "automatic" | "claim")[];
|
|
2645
|
+
referrals: {
|
|
2646
|
+
version: string;
|
|
2647
|
+
definition: {
|
|
2648
|
+
id: string;
|
|
2649
|
+
title: string;
|
|
2650
|
+
enabled: boolean;
|
|
2651
|
+
qualification: {
|
|
2652
|
+
kind: "signup";
|
|
2653
|
+
} | {
|
|
2654
|
+
kind: "quest";
|
|
2655
|
+
quest: string;
|
|
2656
|
+
} | {
|
|
2657
|
+
kind: "external";
|
|
2658
|
+
};
|
|
2659
|
+
rewards: {
|
|
2660
|
+
inviter: ({
|
|
2661
|
+
kind: "points";
|
|
2662
|
+
balance: string;
|
|
2663
|
+
amount: number;
|
|
2664
|
+
} | {
|
|
2665
|
+
kind: "tier";
|
|
2666
|
+
reward: {
|
|
2667
|
+
id: string;
|
|
2668
|
+
title: string;
|
|
2669
|
+
tiers: {
|
|
2670
|
+
id: string;
|
|
2671
|
+
title: string;
|
|
2672
|
+
}[];
|
|
2673
|
+
inventory: {
|
|
2674
|
+
kind: "untracked";
|
|
2675
|
+
};
|
|
2676
|
+
fulfillment: {
|
|
2677
|
+
kind: "staff-handover";
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
2680
|
+
tier: string;
|
|
2681
|
+
})[];
|
|
2682
|
+
invitee: ({
|
|
2683
|
+
kind: "points";
|
|
2684
|
+
balance: string;
|
|
2685
|
+
amount: number;
|
|
2686
|
+
} | {
|
|
2687
|
+
kind: "tier";
|
|
2688
|
+
reward: {
|
|
2689
|
+
id: string;
|
|
2690
|
+
title: string;
|
|
2691
|
+
tiers: {
|
|
2692
|
+
id: string;
|
|
2693
|
+
title: string;
|
|
2694
|
+
}[];
|
|
2695
|
+
inventory: {
|
|
2696
|
+
kind: "untracked";
|
|
2697
|
+
};
|
|
2698
|
+
fulfillment: {
|
|
2699
|
+
kind: "staff-handover";
|
|
2700
|
+
};
|
|
2701
|
+
};
|
|
2702
|
+
tier: string;
|
|
2703
|
+
})[];
|
|
2704
|
+
};
|
|
2705
|
+
milestones: {
|
|
2706
|
+
id: string;
|
|
2707
|
+
count: number;
|
|
2708
|
+
rewards: ({
|
|
2709
|
+
kind: "points";
|
|
2710
|
+
balance: string;
|
|
2711
|
+
amount: number;
|
|
2712
|
+
} | {
|
|
2713
|
+
kind: "tier";
|
|
2714
|
+
reward: {
|
|
2715
|
+
id: string;
|
|
2716
|
+
title: string;
|
|
2717
|
+
tiers: {
|
|
2718
|
+
id: string;
|
|
2719
|
+
title: string;
|
|
2720
|
+
}[];
|
|
2721
|
+
inventory: {
|
|
2722
|
+
kind: "untracked";
|
|
2723
|
+
};
|
|
2724
|
+
fulfillment: {
|
|
2725
|
+
kind: "staff-handover";
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2728
|
+
tier: string;
|
|
2729
|
+
})[];
|
|
2730
|
+
}[];
|
|
2731
|
+
bonuses: {
|
|
2732
|
+
id: string;
|
|
2733
|
+
balance: string;
|
|
2734
|
+
basisPoints: number;
|
|
2735
|
+
external: boolean;
|
|
2736
|
+
quests?: string[] | undefined;
|
|
2737
|
+
durationDays?: number | undefined;
|
|
2738
|
+
maxPoints?: number | undefined;
|
|
2739
|
+
}[];
|
|
2740
|
+
inviterGroup?: string | undefined;
|
|
2741
|
+
};
|
|
2742
|
+
publishedAt: number;
|
|
2743
|
+
actor: string | null;
|
|
2744
|
+
}[];
|
|
2745
|
+
leaderboards: {
|
|
2746
|
+
published: {
|
|
2747
|
+
version: string;
|
|
2748
|
+
definition: {
|
|
2749
|
+
id: string;
|
|
2750
|
+
title: string;
|
|
2751
|
+
balance: string;
|
|
2752
|
+
score: {
|
|
2753
|
+
kind: "balance";
|
|
2754
|
+
} | {
|
|
2755
|
+
window: {
|
|
2756
|
+
kind: "all-time";
|
|
2757
|
+
} | {
|
|
2758
|
+
kind: "fixed";
|
|
2759
|
+
start: number;
|
|
2760
|
+
end: number;
|
|
2761
|
+
} | {
|
|
2762
|
+
kind: "rolling";
|
|
2763
|
+
days: number;
|
|
2764
|
+
} | {
|
|
2765
|
+
kind: "calendar";
|
|
2766
|
+
period: "day" | "week" | "month";
|
|
2767
|
+
timeZone: string;
|
|
2768
|
+
};
|
|
2769
|
+
kind: "earned";
|
|
2770
|
+
quests?: string[] | undefined;
|
|
2771
|
+
} | {
|
|
2772
|
+
kind: "net";
|
|
2773
|
+
window: {
|
|
2774
|
+
kind: "all-time";
|
|
2775
|
+
} | {
|
|
2776
|
+
kind: "fixed";
|
|
2777
|
+
start: number;
|
|
2778
|
+
end: number;
|
|
2779
|
+
} | {
|
|
2780
|
+
kind: "rolling";
|
|
2781
|
+
days: number;
|
|
2782
|
+
} | {
|
|
2783
|
+
kind: "calendar";
|
|
2784
|
+
period: "day" | "week" | "month";
|
|
2785
|
+
timeZone: string;
|
|
2786
|
+
};
|
|
2787
|
+
};
|
|
2788
|
+
access: "participants" | "public";
|
|
2789
|
+
group?: string | undefined;
|
|
2790
|
+
};
|
|
2791
|
+
publishedAt: number;
|
|
2792
|
+
actor: string | null;
|
|
2793
|
+
};
|
|
2794
|
+
before: {
|
|
2795
|
+
leaderboard: string;
|
|
2796
|
+
title: string;
|
|
2797
|
+
version: string;
|
|
2798
|
+
calculation: "balance" | "earned" | "net";
|
|
2799
|
+
period: {
|
|
2800
|
+
start: number | null;
|
|
2801
|
+
end: number | null;
|
|
2802
|
+
};
|
|
2803
|
+
calculatedAt: number;
|
|
2804
|
+
lastEntryAt: number | null;
|
|
2805
|
+
total: number;
|
|
2806
|
+
items: {
|
|
2807
|
+
participant: string;
|
|
2808
|
+
name: string;
|
|
2809
|
+
score: number;
|
|
2810
|
+
rank: number;
|
|
2811
|
+
member?: string | undefined;
|
|
2812
|
+
}[];
|
|
2813
|
+
me: {
|
|
2814
|
+
participant: string;
|
|
2815
|
+
name: string;
|
|
2816
|
+
score: number;
|
|
2817
|
+
rank: number;
|
|
2818
|
+
member?: string | undefined;
|
|
2819
|
+
} | null;
|
|
2820
|
+
nearby: {
|
|
2821
|
+
participant: string;
|
|
2822
|
+
name: string;
|
|
2823
|
+
score: number;
|
|
2824
|
+
rank: number;
|
|
2825
|
+
member?: string | undefined;
|
|
2826
|
+
}[];
|
|
2827
|
+
nextCursor: string | null;
|
|
2828
|
+
} | null;
|
|
2829
|
+
after: {
|
|
2830
|
+
leaderboard: string;
|
|
2831
|
+
title: string;
|
|
2832
|
+
version: string;
|
|
2833
|
+
calculation: "balance" | "earned" | "net";
|
|
2834
|
+
period: {
|
|
2835
|
+
start: number | null;
|
|
2836
|
+
end: number | null;
|
|
2837
|
+
};
|
|
2838
|
+
calculatedAt: number;
|
|
2839
|
+
lastEntryAt: number | null;
|
|
2840
|
+
total: number;
|
|
2841
|
+
items: {
|
|
2842
|
+
participant: string;
|
|
2843
|
+
name: string;
|
|
2844
|
+
score: number;
|
|
2845
|
+
rank: number;
|
|
2846
|
+
member?: string | undefined;
|
|
2847
|
+
}[];
|
|
2848
|
+
me: {
|
|
2849
|
+
participant: string;
|
|
2850
|
+
name: string;
|
|
2851
|
+
score: number;
|
|
2852
|
+
rank: number;
|
|
2853
|
+
member?: string | undefined;
|
|
2854
|
+
} | null;
|
|
2855
|
+
nearby: {
|
|
2856
|
+
participant: string;
|
|
2857
|
+
name: string;
|
|
2858
|
+
score: number;
|
|
2859
|
+
rank: number;
|
|
2860
|
+
member?: string | undefined;
|
|
2861
|
+
}[];
|
|
2862
|
+
nextCursor: string | null;
|
|
2863
|
+
};
|
|
2864
|
+
}[];
|
|
2115
2865
|
}>;
|
|
2116
2866
|
publish: (input: z.input<typeof publishDeploymentSchema>) => Promise<{
|
|
2117
2867
|
id: string;
|
|
@@ -2140,6 +2890,7 @@ declare function createManagementClient(options: {
|
|
|
2140
2890
|
} | undefined;
|
|
2141
2891
|
} | undefined;
|
|
2142
2892
|
};
|
|
2893
|
+
integrations: "discord"[];
|
|
2143
2894
|
fields: Record<string, {
|
|
2144
2895
|
kind: "quiz";
|
|
2145
2896
|
default: {
|
|
@@ -2280,6 +3031,7 @@ declare function createManagementClient(options: {
|
|
|
2280
3031
|
} | undefined;
|
|
2281
3032
|
} | undefined;
|
|
2282
3033
|
};
|
|
3034
|
+
integrations: "discord"[];
|
|
2283
3035
|
fields: Record<string, {
|
|
2284
3036
|
kind: "quiz";
|
|
2285
3037
|
default: {
|
|
@@ -2425,6 +3177,7 @@ declare function createManagementClient(options: {
|
|
|
2425
3177
|
} | undefined;
|
|
2426
3178
|
} | undefined;
|
|
2427
3179
|
};
|
|
3180
|
+
integrations: "discord"[];
|
|
2428
3181
|
fields: Record<string, {
|
|
2429
3182
|
kind: "quiz";
|
|
2430
3183
|
default: {
|
|
@@ -2521,6 +3274,226 @@ declare function createManagementClient(options: {
|
|
|
2521
3274
|
quests: string[];
|
|
2522
3275
|
}[];
|
|
2523
3276
|
supportedInteractions: ("staff" | "quiz" | "photo" | "automatic" | "claim")[];
|
|
3277
|
+
referrals: {
|
|
3278
|
+
version: string;
|
|
3279
|
+
definition: {
|
|
3280
|
+
id: string;
|
|
3281
|
+
title: string;
|
|
3282
|
+
enabled: boolean;
|
|
3283
|
+
qualification: {
|
|
3284
|
+
kind: "signup";
|
|
3285
|
+
} | {
|
|
3286
|
+
kind: "quest";
|
|
3287
|
+
quest: string;
|
|
3288
|
+
} | {
|
|
3289
|
+
kind: "external";
|
|
3290
|
+
};
|
|
3291
|
+
rewards: {
|
|
3292
|
+
inviter: ({
|
|
3293
|
+
kind: "points";
|
|
3294
|
+
balance: string;
|
|
3295
|
+
amount: number;
|
|
3296
|
+
} | {
|
|
3297
|
+
kind: "tier";
|
|
3298
|
+
reward: {
|
|
3299
|
+
id: string;
|
|
3300
|
+
title: string;
|
|
3301
|
+
tiers: {
|
|
3302
|
+
id: string;
|
|
3303
|
+
title: string;
|
|
3304
|
+
}[];
|
|
3305
|
+
inventory: {
|
|
3306
|
+
kind: "untracked";
|
|
3307
|
+
};
|
|
3308
|
+
fulfillment: {
|
|
3309
|
+
kind: "staff-handover";
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3312
|
+
tier: string;
|
|
3313
|
+
})[];
|
|
3314
|
+
invitee: ({
|
|
3315
|
+
kind: "points";
|
|
3316
|
+
balance: string;
|
|
3317
|
+
amount: number;
|
|
3318
|
+
} | {
|
|
3319
|
+
kind: "tier";
|
|
3320
|
+
reward: {
|
|
3321
|
+
id: string;
|
|
3322
|
+
title: string;
|
|
3323
|
+
tiers: {
|
|
3324
|
+
id: string;
|
|
3325
|
+
title: string;
|
|
3326
|
+
}[];
|
|
3327
|
+
inventory: {
|
|
3328
|
+
kind: "untracked";
|
|
3329
|
+
};
|
|
3330
|
+
fulfillment: {
|
|
3331
|
+
kind: "staff-handover";
|
|
3332
|
+
};
|
|
3333
|
+
};
|
|
3334
|
+
tier: string;
|
|
3335
|
+
})[];
|
|
3336
|
+
};
|
|
3337
|
+
milestones: {
|
|
3338
|
+
id: string;
|
|
3339
|
+
count: number;
|
|
3340
|
+
rewards: ({
|
|
3341
|
+
kind: "points";
|
|
3342
|
+
balance: string;
|
|
3343
|
+
amount: number;
|
|
3344
|
+
} | {
|
|
3345
|
+
kind: "tier";
|
|
3346
|
+
reward: {
|
|
3347
|
+
id: string;
|
|
3348
|
+
title: string;
|
|
3349
|
+
tiers: {
|
|
3350
|
+
id: string;
|
|
3351
|
+
title: string;
|
|
3352
|
+
}[];
|
|
3353
|
+
inventory: {
|
|
3354
|
+
kind: "untracked";
|
|
3355
|
+
};
|
|
3356
|
+
fulfillment: {
|
|
3357
|
+
kind: "staff-handover";
|
|
3358
|
+
};
|
|
3359
|
+
};
|
|
3360
|
+
tier: string;
|
|
3361
|
+
})[];
|
|
3362
|
+
}[];
|
|
3363
|
+
bonuses: {
|
|
3364
|
+
id: string;
|
|
3365
|
+
balance: string;
|
|
3366
|
+
basisPoints: number;
|
|
3367
|
+
external: boolean;
|
|
3368
|
+
quests?: string[] | undefined;
|
|
3369
|
+
durationDays?: number | undefined;
|
|
3370
|
+
maxPoints?: number | undefined;
|
|
3371
|
+
}[];
|
|
3372
|
+
inviterGroup?: string | undefined;
|
|
3373
|
+
};
|
|
3374
|
+
publishedAt: number;
|
|
3375
|
+
actor: string | null;
|
|
3376
|
+
}[];
|
|
3377
|
+
leaderboards: {
|
|
3378
|
+
published: {
|
|
3379
|
+
version: string;
|
|
3380
|
+
definition: {
|
|
3381
|
+
id: string;
|
|
3382
|
+
title: string;
|
|
3383
|
+
balance: string;
|
|
3384
|
+
score: {
|
|
3385
|
+
kind: "balance";
|
|
3386
|
+
} | {
|
|
3387
|
+
window: {
|
|
3388
|
+
kind: "all-time";
|
|
3389
|
+
} | {
|
|
3390
|
+
kind: "fixed";
|
|
3391
|
+
start: number;
|
|
3392
|
+
end: number;
|
|
3393
|
+
} | {
|
|
3394
|
+
kind: "rolling";
|
|
3395
|
+
days: number;
|
|
3396
|
+
} | {
|
|
3397
|
+
kind: "calendar";
|
|
3398
|
+
period: "day" | "week" | "month";
|
|
3399
|
+
timeZone: string;
|
|
3400
|
+
};
|
|
3401
|
+
kind: "earned";
|
|
3402
|
+
quests?: string[] | undefined;
|
|
3403
|
+
} | {
|
|
3404
|
+
kind: "net";
|
|
3405
|
+
window: {
|
|
3406
|
+
kind: "all-time";
|
|
3407
|
+
} | {
|
|
3408
|
+
kind: "fixed";
|
|
3409
|
+
start: number;
|
|
3410
|
+
end: number;
|
|
3411
|
+
} | {
|
|
3412
|
+
kind: "rolling";
|
|
3413
|
+
days: number;
|
|
3414
|
+
} | {
|
|
3415
|
+
kind: "calendar";
|
|
3416
|
+
period: "day" | "week" | "month";
|
|
3417
|
+
timeZone: string;
|
|
3418
|
+
};
|
|
3419
|
+
};
|
|
3420
|
+
access: "participants" | "public";
|
|
3421
|
+
group?: string | undefined;
|
|
3422
|
+
};
|
|
3423
|
+
publishedAt: number;
|
|
3424
|
+
actor: string | null;
|
|
3425
|
+
};
|
|
3426
|
+
before: {
|
|
3427
|
+
leaderboard: string;
|
|
3428
|
+
title: string;
|
|
3429
|
+
version: string;
|
|
3430
|
+
calculation: "balance" | "earned" | "net";
|
|
3431
|
+
period: {
|
|
3432
|
+
start: number | null;
|
|
3433
|
+
end: number | null;
|
|
3434
|
+
};
|
|
3435
|
+
calculatedAt: number;
|
|
3436
|
+
lastEntryAt: number | null;
|
|
3437
|
+
total: number;
|
|
3438
|
+
items: {
|
|
3439
|
+
participant: string;
|
|
3440
|
+
name: string;
|
|
3441
|
+
score: number;
|
|
3442
|
+
rank: number;
|
|
3443
|
+
member?: string | undefined;
|
|
3444
|
+
}[];
|
|
3445
|
+
me: {
|
|
3446
|
+
participant: string;
|
|
3447
|
+
name: string;
|
|
3448
|
+
score: number;
|
|
3449
|
+
rank: number;
|
|
3450
|
+
member?: string | undefined;
|
|
3451
|
+
} | null;
|
|
3452
|
+
nearby: {
|
|
3453
|
+
participant: string;
|
|
3454
|
+
name: string;
|
|
3455
|
+
score: number;
|
|
3456
|
+
rank: number;
|
|
3457
|
+
member?: string | undefined;
|
|
3458
|
+
}[];
|
|
3459
|
+
nextCursor: string | null;
|
|
3460
|
+
} | null;
|
|
3461
|
+
after: {
|
|
3462
|
+
leaderboard: string;
|
|
3463
|
+
title: string;
|
|
3464
|
+
version: string;
|
|
3465
|
+
calculation: "balance" | "earned" | "net";
|
|
3466
|
+
period: {
|
|
3467
|
+
start: number | null;
|
|
3468
|
+
end: number | null;
|
|
3469
|
+
};
|
|
3470
|
+
calculatedAt: number;
|
|
3471
|
+
lastEntryAt: number | null;
|
|
3472
|
+
total: number;
|
|
3473
|
+
items: {
|
|
3474
|
+
participant: string;
|
|
3475
|
+
name: string;
|
|
3476
|
+
score: number;
|
|
3477
|
+
rank: number;
|
|
3478
|
+
member?: string | undefined;
|
|
3479
|
+
}[];
|
|
3480
|
+
me: {
|
|
3481
|
+
participant: string;
|
|
3482
|
+
name: string;
|
|
3483
|
+
score: number;
|
|
3484
|
+
rank: number;
|
|
3485
|
+
member?: string | undefined;
|
|
3486
|
+
} | null;
|
|
3487
|
+
nearby: {
|
|
3488
|
+
participant: string;
|
|
3489
|
+
name: string;
|
|
3490
|
+
score: number;
|
|
3491
|
+
rank: number;
|
|
3492
|
+
member?: string | undefined;
|
|
3493
|
+
}[];
|
|
3494
|
+
nextCursor: string | null;
|
|
3495
|
+
};
|
|
3496
|
+
}[];
|
|
2524
3497
|
revision: number;
|
|
2525
3498
|
}>;
|
|
2526
3499
|
};
|
|
@@ -2555,6 +3528,7 @@ declare function createManagementClient(options: {
|
|
|
2555
3528
|
} | undefined;
|
|
2556
3529
|
} | undefined;
|
|
2557
3530
|
};
|
|
3531
|
+
integrations: "discord"[];
|
|
2558
3532
|
fields: Record<string, {
|
|
2559
3533
|
kind: "quiz";
|
|
2560
3534
|
default: {
|
|
@@ -2750,6 +3724,7 @@ declare function createManagementClient(options: {
|
|
|
2750
3724
|
} | undefined;
|
|
2751
3725
|
} | undefined;
|
|
2752
3726
|
};
|
|
3727
|
+
integrations: "discord"[];
|
|
2753
3728
|
fields: Record<string, {
|
|
2754
3729
|
kind: "quiz";
|
|
2755
3730
|
default: {
|
|
@@ -2890,6 +3865,7 @@ declare function createManagementClient(options: {
|
|
|
2890
3865
|
} | undefined;
|
|
2891
3866
|
} | undefined;
|
|
2892
3867
|
};
|
|
3868
|
+
integrations: "discord"[];
|
|
2893
3869
|
fields: Record<string, {
|
|
2894
3870
|
kind: "quiz";
|
|
2895
3871
|
default: {
|
|
@@ -3039,6 +4015,7 @@ declare function createManagementClient(options: {
|
|
|
3039
4015
|
} | undefined;
|
|
3040
4016
|
} | undefined;
|
|
3041
4017
|
};
|
|
4018
|
+
integrations: "discord"[];
|
|
3042
4019
|
fields: Record<string, {
|
|
3043
4020
|
kind: "quiz";
|
|
3044
4021
|
default: {
|
|
@@ -3165,6 +4142,7 @@ declare function createManagementClient(options: {
|
|
|
3165
4142
|
} | undefined;
|
|
3166
4143
|
} | undefined;
|
|
3167
4144
|
};
|
|
4145
|
+
integrations: "discord"[];
|
|
3168
4146
|
fields: Record<string, {
|
|
3169
4147
|
kind: "quiz";
|
|
3170
4148
|
default: {
|
|
@@ -3360,6 +4338,7 @@ declare function createManagementClient(options: {
|
|
|
3360
4338
|
} | undefined;
|
|
3361
4339
|
} | undefined;
|
|
3362
4340
|
};
|
|
4341
|
+
integrations: "discord"[];
|
|
3363
4342
|
fields: Record<string, {
|
|
3364
4343
|
kind: "quiz";
|
|
3365
4344
|
default: {
|
|
@@ -3500,6 +4479,7 @@ declare function createManagementClient(options: {
|
|
|
3500
4479
|
} | undefined;
|
|
3501
4480
|
} | undefined;
|
|
3502
4481
|
};
|
|
4482
|
+
integrations: "discord"[];
|
|
3503
4483
|
fields: Record<string, {
|
|
3504
4484
|
kind: "quiz";
|
|
3505
4485
|
default: {
|
|
@@ -3764,6 +4744,7 @@ declare function createManagementClient(options: {
|
|
|
3764
4744
|
} | undefined;
|
|
3765
4745
|
} | undefined;
|
|
3766
4746
|
};
|
|
4747
|
+
integrations: "discord"[];
|
|
3767
4748
|
fields: Record<string, {
|
|
3768
4749
|
kind: "quiz";
|
|
3769
4750
|
default: {
|
|
@@ -3904,6 +4885,7 @@ declare function createManagementClient(options: {
|
|
|
3904
4885
|
} | undefined;
|
|
3905
4886
|
} | undefined;
|
|
3906
4887
|
};
|
|
4888
|
+
integrations: "discord"[];
|
|
3907
4889
|
fields: Record<string, {
|
|
3908
4890
|
kind: "quiz";
|
|
3909
4891
|
default: {
|
|
@@ -4112,6 +5094,7 @@ declare function createManagementClient(options: {
|
|
|
4112
5094
|
} | undefined;
|
|
4113
5095
|
} | undefined;
|
|
4114
5096
|
};
|
|
5097
|
+
integrations: "discord"[];
|
|
4115
5098
|
fields: Record<string, {
|
|
4116
5099
|
kind: "quiz";
|
|
4117
5100
|
default: {
|
|
@@ -4252,6 +5235,7 @@ declare function createManagementClient(options: {
|
|
|
4252
5235
|
} | undefined;
|
|
4253
5236
|
} | undefined;
|
|
4254
5237
|
};
|
|
5238
|
+
integrations: "discord"[];
|
|
4255
5239
|
fields: Record<string, {
|
|
4256
5240
|
kind: "quiz";
|
|
4257
5241
|
default: {
|
|
@@ -4638,7 +5622,7 @@ declare function createManagementClient(options: {
|
|
|
4638
5622
|
subtitle: string;
|
|
4639
5623
|
initials: string;
|
|
4640
5624
|
color: string;
|
|
4641
|
-
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access")[];
|
|
5625
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
|
|
4642
5626
|
environments: ("test" | "live")[];
|
|
4643
5627
|
setup?: {
|
|
4644
5628
|
mode: "new" | "existing";
|
|
@@ -4654,7 +5638,7 @@ declare function createManagementClient(options: {
|
|
|
4654
5638
|
subtitle: string;
|
|
4655
5639
|
initials: string;
|
|
4656
5640
|
color: string;
|
|
4657
|
-
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access")[];
|
|
5641
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
|
|
4658
5642
|
environments: ("test" | "live")[];
|
|
4659
5643
|
setup?: {
|
|
4660
5644
|
mode: "new" | "existing";
|
|
@@ -4689,6 +5673,7 @@ declare function createManagementClient(options: {
|
|
|
4689
5673
|
} | undefined;
|
|
4690
5674
|
} | undefined;
|
|
4691
5675
|
};
|
|
5676
|
+
integrations: "discord"[];
|
|
4692
5677
|
fields: Record<string, {
|
|
4693
5678
|
kind: "quiz";
|
|
4694
5679
|
default: {
|
|
@@ -4829,6 +5814,7 @@ declare function createManagementClient(options: {
|
|
|
4829
5814
|
} | undefined;
|
|
4830
5815
|
} | undefined;
|
|
4831
5816
|
};
|
|
5817
|
+
integrations: "discord"[];
|
|
4832
5818
|
fields: Record<string, {
|
|
4833
5819
|
kind: "quiz";
|
|
4834
5820
|
default: {
|
|
@@ -5166,6 +6152,7 @@ declare function createManagementClient(options: {
|
|
|
5166
6152
|
} | undefined;
|
|
5167
6153
|
} | undefined;
|
|
5168
6154
|
};
|
|
6155
|
+
integrations: "discord"[];
|
|
5169
6156
|
fields: Record<string, {
|
|
5170
6157
|
kind: "quiz";
|
|
5171
6158
|
default: {
|
|
@@ -5306,6 +6293,7 @@ declare function createManagementClient(options: {
|
|
|
5306
6293
|
} | undefined;
|
|
5307
6294
|
} | undefined;
|
|
5308
6295
|
};
|
|
6296
|
+
integrations: "discord"[];
|
|
5309
6297
|
fields: Record<string, {
|
|
5310
6298
|
kind: "quiz";
|
|
5311
6299
|
default: {
|
|
@@ -5606,6 +6594,7 @@ declare function createManagementClient(options: {
|
|
|
5606
6594
|
} | undefined;
|
|
5607
6595
|
} | undefined;
|
|
5608
6596
|
};
|
|
6597
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
5609
6598
|
trigger: {
|
|
5610
6599
|
kind: "manual";
|
|
5611
6600
|
input: "quiz" | "photo" | "none";
|
|
@@ -5792,4 +6781,4 @@ declare function createManagementClient(options: {
|
|
|
5792
6781
|
}>;
|
|
5793
6782
|
};
|
|
5794
6783
|
|
|
5795
|
-
export { type Access, type AuditRecord, type BuildArtifacts, type BuildIdentity, type BuildStatus, type ListQuery, type ManagementPage, type Permission, type Project, accessSchema, accountProfileSchema, assetPathSchema, auditRecordSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildStatusSchema, commitSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, environmentSchema, grantSchema, inventorySchema, memberAccountSchema, memberDetailSchema, memberSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, permissionSchema, projectInputSchema, projectSchema, projectSetupSchema, querySchema, readinessSchema, repositorySchema, rolePermissions, roleSchema, stageRequestSchema, stockInputSchema, tokenInputSchema, tokenSchema };
|
|
6784
|
+
export { type Access, type AuditRecord, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type HostedBuild, type ListQuery, type ManagementPage, type Permission, type Project, accessSchema, accountProfileSchema, assetPathSchema, auditRecordSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, environmentSchema, grantSchema, hostedBuildSchema, inventorySchema, memberAccountSchema, memberDetailSchema, memberSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, permissionSchema, projectInputSchema, projectSchema, projectSetupSchema, querySchema, readinessSchema, repositorySchema, rolePermissions, roleSchema, stageRequestSchema, stockInputSchema, tokenInputSchema, tokenSchema };
|