@domino-sdk/relay-cli 0.3.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 +45 -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 +7 -1
- 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 +2 -0
- package/cli/skills/domino/references/hosted.md +12 -0
- package/cli/skills/domino/references/participant-api.md +45 -0
- package/cli/skills/domino/references/referrals.md +57 -8
- package/dist/index.d.ts +989 -4
- package/dist/index.js +101 -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>;
|
|
@@ -135,6 +307,7 @@ declare const permissionSchema: z.ZodEnum<{
|
|
|
135
307
|
handover: "handover";
|
|
136
308
|
inventory: "inventory";
|
|
137
309
|
access: "access";
|
|
310
|
+
points: "points";
|
|
138
311
|
}>;
|
|
139
312
|
type Permission = z.infer<typeof permissionSchema>;
|
|
140
313
|
declare const rolePermissions: Record<z.infer<typeof roleSchema>, Permission[]>;
|
|
@@ -168,6 +341,7 @@ declare const projectSchema: z.ZodObject<{
|
|
|
168
341
|
handover: "handover";
|
|
169
342
|
inventory: "inventory";
|
|
170
343
|
access: "access";
|
|
344
|
+
points: "points";
|
|
171
345
|
}>>;
|
|
172
346
|
environments: z.ZodArray<z.ZodEnum<{
|
|
173
347
|
test: "test";
|
|
@@ -226,6 +400,7 @@ declare const accessSchema: z.ZodObject<{
|
|
|
226
400
|
handover: "handover";
|
|
227
401
|
inventory: "inventory";
|
|
228
402
|
access: "access";
|
|
403
|
+
points: "points";
|
|
229
404
|
}>>;
|
|
230
405
|
environments: z.ZodArray<z.ZodEnum<{
|
|
231
406
|
test: "test";
|
|
@@ -352,6 +527,9 @@ declare const pageSchema: z.ZodObject<{
|
|
|
352
527
|
}, z.core.$strict>>;
|
|
353
528
|
}, z.core.$strict>>;
|
|
354
529
|
}, z.core.$strict>>;
|
|
530
|
+
integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
531
|
+
discord: "discord";
|
|
532
|
+
}>>>;
|
|
355
533
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
356
534
|
kind: z.ZodLiteral<"quiz">;
|
|
357
535
|
default: z.ZodArray<z.ZodObject<{
|
|
@@ -546,6 +724,7 @@ declare const pageSchema: z.ZodObject<{
|
|
|
546
724
|
} | undefined;
|
|
547
725
|
} | undefined;
|
|
548
726
|
};
|
|
727
|
+
integrations: "discord"[];
|
|
549
728
|
fields: Record<string, {
|
|
550
729
|
kind: "quiz";
|
|
551
730
|
default: {
|
|
@@ -922,6 +1101,9 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
922
1101
|
}, z.core.$strict>>;
|
|
923
1102
|
}, z.core.$strict>>;
|
|
924
1103
|
}, z.core.$strict>>;
|
|
1104
|
+
integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1105
|
+
discord: "discord";
|
|
1106
|
+
}>>>;
|
|
925
1107
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
926
1108
|
kind: z.ZodLiteral<"quiz">;
|
|
927
1109
|
default: z.ZodArray<z.ZodObject<{
|
|
@@ -1116,6 +1298,7 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1116
1298
|
} | undefined;
|
|
1117
1299
|
} | undefined;
|
|
1118
1300
|
};
|
|
1301
|
+
integrations: "discord"[];
|
|
1119
1302
|
fields: Record<string, {
|
|
1120
1303
|
kind: "quiz";
|
|
1121
1304
|
default: {
|
|
@@ -1455,6 +1638,12 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1455
1638
|
}, z.core.$strict>>;
|
|
1456
1639
|
}, z.core.$strict>>;
|
|
1457
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
|
+
}>>>;
|
|
1458
1647
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1459
1648
|
kind: z.ZodLiteral<"manual">;
|
|
1460
1649
|
input: z.ZodEnum<{
|
|
@@ -1676,6 +1865,7 @@ declare const tokenInputSchema: z.ZodObject<{
|
|
|
1676
1865
|
handover: "handover";
|
|
1677
1866
|
inventory: "inventory";
|
|
1678
1867
|
access: "access";
|
|
1868
|
+
points: "points";
|
|
1679
1869
|
}>>;
|
|
1680
1870
|
days: z.ZodDefault<z.ZodNumber>;
|
|
1681
1871
|
}, z.core.$strict>;
|
|
@@ -1695,6 +1885,7 @@ declare const tokenSchema: z.ZodObject<{
|
|
|
1695
1885
|
handover: "handover";
|
|
1696
1886
|
inventory: "inventory";
|
|
1697
1887
|
access: "access";
|
|
1888
|
+
points: "points";
|
|
1698
1889
|
}>>;
|
|
1699
1890
|
expiresAt: z.ZodNumber;
|
|
1700
1891
|
}, z.core.$strip>;
|
|
@@ -1707,6 +1898,338 @@ declare function createManagementClient(options: {
|
|
|
1707
1898
|
}): {
|
|
1708
1899
|
raw: (path: string, init?: RequestInit) => Promise<Response>;
|
|
1709
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
|
+
};
|
|
1710
2233
|
deployments: {
|
|
1711
2234
|
preview: (input: z.input<typeof projectDeploymentSchema>) => Promise<{
|
|
1712
2235
|
id: string;
|
|
@@ -1735,6 +2258,7 @@ declare function createManagementClient(options: {
|
|
|
1735
2258
|
} | undefined;
|
|
1736
2259
|
} | undefined;
|
|
1737
2260
|
};
|
|
2261
|
+
integrations: "discord"[];
|
|
1738
2262
|
fields: Record<string, {
|
|
1739
2263
|
kind: "quiz";
|
|
1740
2264
|
default: {
|
|
@@ -1875,6 +2399,7 @@ declare function createManagementClient(options: {
|
|
|
1875
2399
|
} | undefined;
|
|
1876
2400
|
} | undefined;
|
|
1877
2401
|
};
|
|
2402
|
+
integrations: "discord"[];
|
|
1878
2403
|
fields: Record<string, {
|
|
1879
2404
|
kind: "quiz";
|
|
1880
2405
|
default: {
|
|
@@ -2020,6 +2545,7 @@ declare function createManagementClient(options: {
|
|
|
2020
2545
|
} | undefined;
|
|
2021
2546
|
} | undefined;
|
|
2022
2547
|
};
|
|
2548
|
+
integrations: "discord"[];
|
|
2023
2549
|
fields: Record<string, {
|
|
2024
2550
|
kind: "quiz";
|
|
2025
2551
|
default: {
|
|
@@ -2116,6 +2642,226 @@ declare function createManagementClient(options: {
|
|
|
2116
2642
|
quests: string[];
|
|
2117
2643
|
}[];
|
|
2118
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
|
+
}[];
|
|
2119
2865
|
}>;
|
|
2120
2866
|
publish: (input: z.input<typeof publishDeploymentSchema>) => Promise<{
|
|
2121
2867
|
id: string;
|
|
@@ -2144,6 +2890,7 @@ declare function createManagementClient(options: {
|
|
|
2144
2890
|
} | undefined;
|
|
2145
2891
|
} | undefined;
|
|
2146
2892
|
};
|
|
2893
|
+
integrations: "discord"[];
|
|
2147
2894
|
fields: Record<string, {
|
|
2148
2895
|
kind: "quiz";
|
|
2149
2896
|
default: {
|
|
@@ -2284,6 +3031,7 @@ declare function createManagementClient(options: {
|
|
|
2284
3031
|
} | undefined;
|
|
2285
3032
|
} | undefined;
|
|
2286
3033
|
};
|
|
3034
|
+
integrations: "discord"[];
|
|
2287
3035
|
fields: Record<string, {
|
|
2288
3036
|
kind: "quiz";
|
|
2289
3037
|
default: {
|
|
@@ -2429,6 +3177,7 @@ declare function createManagementClient(options: {
|
|
|
2429
3177
|
} | undefined;
|
|
2430
3178
|
} | undefined;
|
|
2431
3179
|
};
|
|
3180
|
+
integrations: "discord"[];
|
|
2432
3181
|
fields: Record<string, {
|
|
2433
3182
|
kind: "quiz";
|
|
2434
3183
|
default: {
|
|
@@ -2525,6 +3274,226 @@ declare function createManagementClient(options: {
|
|
|
2525
3274
|
quests: string[];
|
|
2526
3275
|
}[];
|
|
2527
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
|
+
}[];
|
|
2528
3497
|
revision: number;
|
|
2529
3498
|
}>;
|
|
2530
3499
|
};
|
|
@@ -2559,6 +3528,7 @@ declare function createManagementClient(options: {
|
|
|
2559
3528
|
} | undefined;
|
|
2560
3529
|
} | undefined;
|
|
2561
3530
|
};
|
|
3531
|
+
integrations: "discord"[];
|
|
2562
3532
|
fields: Record<string, {
|
|
2563
3533
|
kind: "quiz";
|
|
2564
3534
|
default: {
|
|
@@ -2754,6 +3724,7 @@ declare function createManagementClient(options: {
|
|
|
2754
3724
|
} | undefined;
|
|
2755
3725
|
} | undefined;
|
|
2756
3726
|
};
|
|
3727
|
+
integrations: "discord"[];
|
|
2757
3728
|
fields: Record<string, {
|
|
2758
3729
|
kind: "quiz";
|
|
2759
3730
|
default: {
|
|
@@ -2894,6 +3865,7 @@ declare function createManagementClient(options: {
|
|
|
2894
3865
|
} | undefined;
|
|
2895
3866
|
} | undefined;
|
|
2896
3867
|
};
|
|
3868
|
+
integrations: "discord"[];
|
|
2897
3869
|
fields: Record<string, {
|
|
2898
3870
|
kind: "quiz";
|
|
2899
3871
|
default: {
|
|
@@ -3043,6 +4015,7 @@ declare function createManagementClient(options: {
|
|
|
3043
4015
|
} | undefined;
|
|
3044
4016
|
} | undefined;
|
|
3045
4017
|
};
|
|
4018
|
+
integrations: "discord"[];
|
|
3046
4019
|
fields: Record<string, {
|
|
3047
4020
|
kind: "quiz";
|
|
3048
4021
|
default: {
|
|
@@ -3169,6 +4142,7 @@ declare function createManagementClient(options: {
|
|
|
3169
4142
|
} | undefined;
|
|
3170
4143
|
} | undefined;
|
|
3171
4144
|
};
|
|
4145
|
+
integrations: "discord"[];
|
|
3172
4146
|
fields: Record<string, {
|
|
3173
4147
|
kind: "quiz";
|
|
3174
4148
|
default: {
|
|
@@ -3364,6 +4338,7 @@ declare function createManagementClient(options: {
|
|
|
3364
4338
|
} | undefined;
|
|
3365
4339
|
} | undefined;
|
|
3366
4340
|
};
|
|
4341
|
+
integrations: "discord"[];
|
|
3367
4342
|
fields: Record<string, {
|
|
3368
4343
|
kind: "quiz";
|
|
3369
4344
|
default: {
|
|
@@ -3504,6 +4479,7 @@ declare function createManagementClient(options: {
|
|
|
3504
4479
|
} | undefined;
|
|
3505
4480
|
} | undefined;
|
|
3506
4481
|
};
|
|
4482
|
+
integrations: "discord"[];
|
|
3507
4483
|
fields: Record<string, {
|
|
3508
4484
|
kind: "quiz";
|
|
3509
4485
|
default: {
|
|
@@ -3768,6 +4744,7 @@ declare function createManagementClient(options: {
|
|
|
3768
4744
|
} | undefined;
|
|
3769
4745
|
} | undefined;
|
|
3770
4746
|
};
|
|
4747
|
+
integrations: "discord"[];
|
|
3771
4748
|
fields: Record<string, {
|
|
3772
4749
|
kind: "quiz";
|
|
3773
4750
|
default: {
|
|
@@ -3908,6 +4885,7 @@ declare function createManagementClient(options: {
|
|
|
3908
4885
|
} | undefined;
|
|
3909
4886
|
} | undefined;
|
|
3910
4887
|
};
|
|
4888
|
+
integrations: "discord"[];
|
|
3911
4889
|
fields: Record<string, {
|
|
3912
4890
|
kind: "quiz";
|
|
3913
4891
|
default: {
|
|
@@ -4116,6 +5094,7 @@ declare function createManagementClient(options: {
|
|
|
4116
5094
|
} | undefined;
|
|
4117
5095
|
} | undefined;
|
|
4118
5096
|
};
|
|
5097
|
+
integrations: "discord"[];
|
|
4119
5098
|
fields: Record<string, {
|
|
4120
5099
|
kind: "quiz";
|
|
4121
5100
|
default: {
|
|
@@ -4256,6 +5235,7 @@ declare function createManagementClient(options: {
|
|
|
4256
5235
|
} | undefined;
|
|
4257
5236
|
} | undefined;
|
|
4258
5237
|
};
|
|
5238
|
+
integrations: "discord"[];
|
|
4259
5239
|
fields: Record<string, {
|
|
4260
5240
|
kind: "quiz";
|
|
4261
5241
|
default: {
|
|
@@ -4642,7 +5622,7 @@ declare function createManagementClient(options: {
|
|
|
4642
5622
|
subtitle: string;
|
|
4643
5623
|
initials: string;
|
|
4644
5624
|
color: string;
|
|
4645
|
-
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access")[];
|
|
5625
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
|
|
4646
5626
|
environments: ("test" | "live")[];
|
|
4647
5627
|
setup?: {
|
|
4648
5628
|
mode: "new" | "existing";
|
|
@@ -4658,7 +5638,7 @@ declare function createManagementClient(options: {
|
|
|
4658
5638
|
subtitle: string;
|
|
4659
5639
|
initials: string;
|
|
4660
5640
|
color: string;
|
|
4661
|
-
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access")[];
|
|
5641
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
|
|
4662
5642
|
environments: ("test" | "live")[];
|
|
4663
5643
|
setup?: {
|
|
4664
5644
|
mode: "new" | "existing";
|
|
@@ -4693,6 +5673,7 @@ declare function createManagementClient(options: {
|
|
|
4693
5673
|
} | undefined;
|
|
4694
5674
|
} | undefined;
|
|
4695
5675
|
};
|
|
5676
|
+
integrations: "discord"[];
|
|
4696
5677
|
fields: Record<string, {
|
|
4697
5678
|
kind: "quiz";
|
|
4698
5679
|
default: {
|
|
@@ -4833,6 +5814,7 @@ declare function createManagementClient(options: {
|
|
|
4833
5814
|
} | undefined;
|
|
4834
5815
|
} | undefined;
|
|
4835
5816
|
};
|
|
5817
|
+
integrations: "discord"[];
|
|
4836
5818
|
fields: Record<string, {
|
|
4837
5819
|
kind: "quiz";
|
|
4838
5820
|
default: {
|
|
@@ -5170,6 +6152,7 @@ declare function createManagementClient(options: {
|
|
|
5170
6152
|
} | undefined;
|
|
5171
6153
|
} | undefined;
|
|
5172
6154
|
};
|
|
6155
|
+
integrations: "discord"[];
|
|
5173
6156
|
fields: Record<string, {
|
|
5174
6157
|
kind: "quiz";
|
|
5175
6158
|
default: {
|
|
@@ -5310,6 +6293,7 @@ declare function createManagementClient(options: {
|
|
|
5310
6293
|
} | undefined;
|
|
5311
6294
|
} | undefined;
|
|
5312
6295
|
};
|
|
6296
|
+
integrations: "discord"[];
|
|
5313
6297
|
fields: Record<string, {
|
|
5314
6298
|
kind: "quiz";
|
|
5315
6299
|
default: {
|
|
@@ -5610,6 +6594,7 @@ declare function createManagementClient(options: {
|
|
|
5610
6594
|
} | undefined;
|
|
5611
6595
|
} | undefined;
|
|
5612
6596
|
};
|
|
6597
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
5613
6598
|
trigger: {
|
|
5614
6599
|
kind: "manual";
|
|
5615
6600
|
input: "quiz" | "photo" | "none";
|
|
@@ -5796,4 +6781,4 @@ declare function createManagementClient(options: {
|
|
|
5796
6781
|
}>;
|
|
5797
6782
|
};
|
|
5798
6783
|
|
|
5799
|
-
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 };
|