@domino-sdk/relay-cli 0.4.0 → 0.6.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 +98 -14
- package/cli/commands/agents.mjs +20 -8
- package/cli/commands/discovery.mjs +23 -4
- package/cli/commands/hosting.mjs +65 -11
- package/cli/commands/inspect.mjs +16 -9
- package/cli/commands/project.mjs +22 -14
- package/cli/commands/staging.mjs +44 -9
- package/cli/connected-dev.mjs +4 -2
- package/cli/dev.mjs +1 -1
- package/cli/doctor.mjs +17 -2
- package/cli/git.mjs +38 -7
- package/cli/output.mjs +76 -0
- package/cli/package-manager.mjs +31 -0
- package/cli/project.mjs +16 -12
- package/cli/prompts.mjs +92 -0
- package/cli/runtime.mjs +16 -7
- package/cli/select-project.mjs +64 -0
- package/cli/skills/domino/SKILL.md +3 -3
- package/cli/skills/domino/references/authoring.md +60 -3
- package/cli/skills/domino/references/hosted.md +3 -3
- package/cli/skills/domino/references/participant-api.md +22 -3
- package/cli/skills/domino/references/troubleshooting.md +18 -0
- package/cli.mjs +6 -2
- package/dist/index.d.ts +1306 -26
- package/dist/index.js +119 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
|
-
import { pointsMutationSchema, referralControlSchema, leaderboardQuerySchema, leaderboardExclusionSchema, leaderboardGroupSchema, projectDeploymentSchema, publishDeploymentSchema, catalogDeploymentSchema, saveQuestDraftSchema, publishQuestDraftSchema, collectionBeginSchema, configurePickupSchema } from '@domino-sdk/relay';
|
|
1
|
+
import { observationInputSchema, 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
|
+
declare const appRoutingSchema: z.ZodDefault<z.ZodEnum<{
|
|
5
|
+
legacy: "legacy";
|
|
6
|
+
transparent: "transparent";
|
|
7
|
+
}>>;
|
|
8
|
+
declare const hostedAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
legacy: "legacy";
|
|
11
|
+
transparent: "transparent";
|
|
12
|
+
}>>;
|
|
13
|
+
devScript: z.ZodString;
|
|
14
|
+
checkScript: z.ZodString;
|
|
15
|
+
buildScript: z.ZodString;
|
|
16
|
+
kind: z.ZodLiteral<"static">;
|
|
17
|
+
directory: z.ZodString;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
+
runWorkerFirst: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
main: z.ZodString;
|
|
21
|
+
compatibilityDate: z.ZodString;
|
|
22
|
+
compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
|
+
vars: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
25
|
+
legacy: "legacy";
|
|
26
|
+
transparent: "transparent";
|
|
27
|
+
}>>;
|
|
28
|
+
devScript: z.ZodString;
|
|
29
|
+
checkScript: z.ZodString;
|
|
30
|
+
buildScript: z.ZodString;
|
|
31
|
+
kind: z.ZodLiteral<"worker">;
|
|
32
|
+
directory: z.ZodString;
|
|
33
|
+
assetsDirectory: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>], "kind">;
|
|
4
35
|
declare const repositorySchema: z.ZodObject<{
|
|
5
36
|
id: z.ZodString;
|
|
6
37
|
organization: z.ZodString;
|
|
@@ -32,6 +63,11 @@ declare const stageRequestSchema: z.ZodObject<{
|
|
|
32
63
|
requestId: z.ZodString;
|
|
33
64
|
}, z.core.$strict>;
|
|
34
65
|
declare const buildIdentitySchema: z.ZodObject<{
|
|
66
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
67
|
+
legacy: "legacy";
|
|
68
|
+
transparent: "transparent";
|
|
69
|
+
}>>;
|
|
70
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
35
71
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
36
72
|
simulation: "simulation";
|
|
37
73
|
"hosted-test": "hosted-test";
|
|
@@ -50,8 +86,8 @@ declare const buildPhaseSchema: z.ZodEnum<{
|
|
|
50
86
|
check: "check";
|
|
51
87
|
failed: "failed";
|
|
52
88
|
ready: "ready";
|
|
53
|
-
queued: "queued";
|
|
54
89
|
source: "source";
|
|
90
|
+
queued: "queued";
|
|
55
91
|
install: "install";
|
|
56
92
|
build: "build";
|
|
57
93
|
deploy: "deploy";
|
|
@@ -61,8 +97,8 @@ declare const buildStatusSchema: z.ZodObject<{
|
|
|
61
97
|
check: "check";
|
|
62
98
|
failed: "failed";
|
|
63
99
|
ready: "ready";
|
|
64
|
-
queued: "queued";
|
|
65
100
|
source: "source";
|
|
101
|
+
queued: "queued";
|
|
66
102
|
install: "install";
|
|
67
103
|
build: "build";
|
|
68
104
|
deploy: "deploy";
|
|
@@ -71,8 +107,8 @@ declare const buildStatusSchema: z.ZodObject<{
|
|
|
71
107
|
check: "check";
|
|
72
108
|
failed: "failed";
|
|
73
109
|
ready: "ready";
|
|
74
|
-
queued: "queued";
|
|
75
110
|
source: "source";
|
|
111
|
+
queued: "queued";
|
|
76
112
|
install: "install";
|
|
77
113
|
build: "build";
|
|
78
114
|
deploy: "deploy";
|
|
@@ -82,6 +118,11 @@ declare const buildStatusSchema: z.ZodObject<{
|
|
|
82
118
|
}, z.core.$strip>;
|
|
83
119
|
type BuildStatus = z.infer<typeof buildStatusSchema>;
|
|
84
120
|
declare const hostedBuildSchema: z.ZodObject<{
|
|
121
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
122
|
+
legacy: "legacy";
|
|
123
|
+
transparent: "transparent";
|
|
124
|
+
}>>;
|
|
125
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
85
126
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
86
127
|
simulation: "simulation";
|
|
87
128
|
"hosted-test": "hosted-test";
|
|
@@ -101,8 +142,8 @@ declare const hostedBuildSchema: z.ZodObject<{
|
|
|
101
142
|
check: "check";
|
|
102
143
|
failed: "failed";
|
|
103
144
|
ready: "ready";
|
|
104
|
-
queued: "queued";
|
|
105
145
|
source: "source";
|
|
146
|
+
queued: "queued";
|
|
106
147
|
install: "install";
|
|
107
148
|
build: "build";
|
|
108
149
|
deploy: "deploy";
|
|
@@ -111,8 +152,8 @@ declare const hostedBuildSchema: z.ZodObject<{
|
|
|
111
152
|
check: "check";
|
|
112
153
|
failed: "failed";
|
|
113
154
|
ready: "ready";
|
|
114
|
-
queued: "queued";
|
|
115
155
|
source: "source";
|
|
156
|
+
queued: "queued";
|
|
116
157
|
install: "install";
|
|
117
158
|
build: "build";
|
|
118
159
|
deploy: "deploy";
|
|
@@ -123,6 +164,11 @@ declare const hostedBuildSchema: z.ZodObject<{
|
|
|
123
164
|
type HostedBuild = z.infer<typeof hostedBuildSchema>;
|
|
124
165
|
declare const buildSnapshotSchema: z.ZodObject<{
|
|
125
166
|
builds: z.ZodArray<z.ZodObject<{
|
|
167
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
168
|
+
legacy: "legacy";
|
|
169
|
+
transparent: "transparent";
|
|
170
|
+
}>>;
|
|
171
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
126
172
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
127
173
|
simulation: "simulation";
|
|
128
174
|
"hosted-test": "hosted-test";
|
|
@@ -142,8 +188,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
142
188
|
check: "check";
|
|
143
189
|
failed: "failed";
|
|
144
190
|
ready: "ready";
|
|
145
|
-
queued: "queued";
|
|
146
191
|
source: "source";
|
|
192
|
+
queued: "queued";
|
|
147
193
|
install: "install";
|
|
148
194
|
build: "build";
|
|
149
195
|
deploy: "deploy";
|
|
@@ -152,8 +198,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
152
198
|
check: "check";
|
|
153
199
|
failed: "failed";
|
|
154
200
|
ready: "ready";
|
|
155
|
-
queued: "queued";
|
|
156
201
|
source: "source";
|
|
202
|
+
queued: "queued";
|
|
157
203
|
install: "install";
|
|
158
204
|
build: "build";
|
|
159
205
|
deploy: "deploy";
|
|
@@ -162,6 +208,11 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
162
208
|
message: z.ZodString;
|
|
163
209
|
}, z.core.$strip>>;
|
|
164
210
|
current: z.ZodNullable<z.ZodObject<{
|
|
211
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
212
|
+
legacy: "legacy";
|
|
213
|
+
transparent: "transparent";
|
|
214
|
+
}>>;
|
|
215
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
165
216
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
166
217
|
simulation: "simulation";
|
|
167
218
|
"hosted-test": "hosted-test";
|
|
@@ -181,8 +232,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
181
232
|
check: "check";
|
|
182
233
|
failed: "failed";
|
|
183
234
|
ready: "ready";
|
|
184
|
-
queued: "queued";
|
|
185
235
|
source: "source";
|
|
236
|
+
queued: "queued";
|
|
186
237
|
install: "install";
|
|
187
238
|
build: "build";
|
|
188
239
|
deploy: "deploy";
|
|
@@ -191,8 +242,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
191
242
|
check: "check";
|
|
192
243
|
failed: "failed";
|
|
193
244
|
ready: "ready";
|
|
194
|
-
queued: "queued";
|
|
195
245
|
source: "source";
|
|
246
|
+
queued: "queued";
|
|
196
247
|
install: "install";
|
|
197
248
|
build: "build";
|
|
198
249
|
deploy: "deploy";
|
|
@@ -201,6 +252,11 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
201
252
|
message: z.ZodString;
|
|
202
253
|
}, z.core.$strip>>;
|
|
203
254
|
selected: z.ZodNullable<z.ZodObject<{
|
|
255
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
256
|
+
legacy: "legacy";
|
|
257
|
+
transparent: "transparent";
|
|
258
|
+
}>>;
|
|
259
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
204
260
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
205
261
|
simulation: "simulation";
|
|
206
262
|
"hosted-test": "hosted-test";
|
|
@@ -220,8 +276,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
220
276
|
check: "check";
|
|
221
277
|
failed: "failed";
|
|
222
278
|
ready: "ready";
|
|
223
|
-
queued: "queued";
|
|
224
279
|
source: "source";
|
|
280
|
+
queued: "queued";
|
|
225
281
|
install: "install";
|
|
226
282
|
build: "build";
|
|
227
283
|
deploy: "deploy";
|
|
@@ -230,8 +286,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
|
|
|
230
286
|
check: "check";
|
|
231
287
|
failed: "failed";
|
|
232
288
|
ready: "ready";
|
|
233
|
-
queued: "queued";
|
|
234
289
|
source: "source";
|
|
290
|
+
queued: "queued";
|
|
235
291
|
install: "install";
|
|
236
292
|
build: "build";
|
|
237
293
|
deploy: "deploy";
|
|
@@ -245,6 +301,27 @@ type BuildSnapshot = z.infer<typeof buildSnapshotSchema>;
|
|
|
245
301
|
declare const assetPathSchema: z.ZodString;
|
|
246
302
|
declare const buildArtifactsSchema: z.ZodObject<{
|
|
247
303
|
format: z.ZodLiteral<1>;
|
|
304
|
+
routing: z.ZodDefault<z.ZodEnum<{
|
|
305
|
+
legacy: "legacy";
|
|
306
|
+
transparent: "transparent";
|
|
307
|
+
}>>;
|
|
308
|
+
worker: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
310
|
+
path: z.ZodString;
|
|
311
|
+
type: z.ZodEnum<{
|
|
312
|
+
"application/javascript+module": "application/javascript+module";
|
|
313
|
+
"application/wasm": "application/wasm";
|
|
314
|
+
"text/plain": "text/plain";
|
|
315
|
+
"application/octet-stream": "application/octet-stream";
|
|
316
|
+
}>;
|
|
317
|
+
content: z.ZodString;
|
|
318
|
+
}, z.core.$strict>>;
|
|
319
|
+
runWorkerFirst: z.ZodDefault<z.ZodBoolean>;
|
|
320
|
+
main: z.ZodString;
|
|
321
|
+
compatibilityDate: z.ZodString;
|
|
322
|
+
compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
323
|
+
vars: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
324
|
+
}, z.core.$strict>>;
|
|
248
325
|
assets: z.ZodArray<z.ZodObject<{
|
|
249
326
|
path: z.ZodString;
|
|
250
327
|
content: z.ZodString;
|
|
@@ -308,6 +385,7 @@ declare const permissionSchema: z.ZodEnum<{
|
|
|
308
385
|
inventory: "inventory";
|
|
309
386
|
access: "access";
|
|
310
387
|
points: "points";
|
|
388
|
+
observe: "observe";
|
|
311
389
|
}>;
|
|
312
390
|
type Permission = z.infer<typeof permissionSchema>;
|
|
313
391
|
declare const rolePermissions: Record<z.infer<typeof roleSchema>, Permission[]>;
|
|
@@ -319,6 +397,7 @@ declare const projectSetupSchema: z.ZodObject<{
|
|
|
319
397
|
brief: z.ZodString;
|
|
320
398
|
}, z.core.$strict>;
|
|
321
399
|
declare const projectSchema: z.ZodObject<{
|
|
400
|
+
slug: z.ZodString;
|
|
322
401
|
setup: z.ZodOptional<z.ZodObject<{
|
|
323
402
|
mode: z.ZodEnum<{
|
|
324
403
|
new: "new";
|
|
@@ -342,6 +421,7 @@ declare const projectSchema: z.ZodObject<{
|
|
|
342
421
|
inventory: "inventory";
|
|
343
422
|
access: "access";
|
|
344
423
|
points: "points";
|
|
424
|
+
observe: "observe";
|
|
345
425
|
}>>;
|
|
346
426
|
environments: z.ZodArray<z.ZodEnum<{
|
|
347
427
|
test: "test";
|
|
@@ -378,6 +458,7 @@ declare const accessSchema: z.ZodObject<{
|
|
|
378
458
|
admin: z.ZodBoolean;
|
|
379
459
|
local: z.ZodBoolean;
|
|
380
460
|
projects: z.ZodArray<z.ZodObject<{
|
|
461
|
+
slug: z.ZodString;
|
|
381
462
|
setup: z.ZodOptional<z.ZodObject<{
|
|
382
463
|
mode: z.ZodEnum<{
|
|
383
464
|
new: "new";
|
|
@@ -401,6 +482,7 @@ declare const accessSchema: z.ZodObject<{
|
|
|
401
482
|
inventory: "inventory";
|
|
402
483
|
access: "access";
|
|
403
484
|
points: "points";
|
|
485
|
+
observe: "observe";
|
|
404
486
|
}>>;
|
|
405
487
|
environments: z.ZodArray<z.ZodEnum<{
|
|
406
488
|
test: "test";
|
|
@@ -466,6 +548,22 @@ declare const memberSchema: z.ZodObject<{
|
|
|
466
548
|
rewards: z.ZodNumber;
|
|
467
549
|
lastActivity: z.ZodNullable<z.ZodNumber>;
|
|
468
550
|
}, z.core.$strip>;
|
|
551
|
+
/** Who a member is, for any record that names them only by ID. */
|
|
552
|
+
declare const personSchema: z.ZodObject<{
|
|
553
|
+
id: z.ZodString;
|
|
554
|
+
accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
555
|
+
provider: z.ZodString;
|
|
556
|
+
subject: z.ZodString;
|
|
557
|
+
signInEnabled: z.ZodBoolean;
|
|
558
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
name: z.ZodOptional<z.ZodString>;
|
|
560
|
+
email: z.ZodOptional<z.ZodString>;
|
|
561
|
+
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
562
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
}, z.core.$strip>>>;
|
|
565
|
+
}, z.core.$strip>;
|
|
566
|
+
type Person = z.infer<typeof personSchema>;
|
|
469
567
|
declare const metricsSchema: z.ZodObject<{
|
|
470
568
|
quests: z.ZodNumber;
|
|
471
569
|
members: z.ZodNumber;
|
|
@@ -531,6 +629,28 @@ declare const pageSchema: z.ZodObject<{
|
|
|
531
629
|
discord: "discord";
|
|
532
630
|
}>>>;
|
|
533
631
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
632
|
+
kind: z.ZodLiteral<"datetime">;
|
|
633
|
+
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
634
|
+
label: z.ZodString;
|
|
635
|
+
description: z.ZodOptional<z.ZodString>;
|
|
636
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
637
|
+
kind: z.ZodLiteral<"resource">;
|
|
638
|
+
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
639
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
640
|
+
provider: z.ZodLiteral<"discord">;
|
|
641
|
+
resource: z.ZodLiteral<"channel">;
|
|
642
|
+
types: z.ZodArray<z.ZodEnum<{
|
|
643
|
+
text: "text";
|
|
644
|
+
announcement: "announcement";
|
|
645
|
+
}>>;
|
|
646
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
647
|
+
provider: z.ZodLiteral<"discord">;
|
|
648
|
+
resource: z.ZodLiteral<"role">;
|
|
649
|
+
assignable: z.ZodDefault<z.ZodBoolean>;
|
|
650
|
+
}, z.core.$strict>]>;
|
|
651
|
+
label: z.ZodString;
|
|
652
|
+
description: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
534
654
|
kind: z.ZodLiteral<"quiz">;
|
|
535
655
|
default: z.ZodArray<z.ZodObject<{
|
|
536
656
|
id: z.ZodString;
|
|
@@ -600,6 +720,11 @@ declare const pageSchema: z.ZodObject<{
|
|
|
600
720
|
}, z.core.$strict>;
|
|
601
721
|
}, z.core.$strict>;
|
|
602
722
|
tier: z.ZodString;
|
|
723
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
724
|
+
kind: z.ZodLiteral<"integration">;
|
|
725
|
+
provider: z.ZodLiteral<"discord">;
|
|
726
|
+
action: z.ZodLiteral<"grant-role">;
|
|
727
|
+
roleId: z.ZodString;
|
|
603
728
|
}, z.core.$strict>]>>;
|
|
604
729
|
humanReview: z.ZodBoolean;
|
|
605
730
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -615,14 +740,39 @@ declare const pageSchema: z.ZodObject<{
|
|
|
615
740
|
}>>;
|
|
616
741
|
}, z.core.$strict>, z.ZodObject<{
|
|
617
742
|
kind: z.ZodLiteral<"automatic">;
|
|
743
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
744
|
+
source: z.ZodString;
|
|
745
|
+
type: z.ZodString;
|
|
746
|
+
}, z.core.$strict>>;
|
|
618
747
|
}, z.core.$strict>]>;
|
|
619
748
|
requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
620
749
|
quest: z.ZodString;
|
|
621
750
|
scope: z.ZodLiteral<"ever">;
|
|
622
751
|
}, z.core.$strict>>>;
|
|
623
|
-
completion: z.ZodObject<{
|
|
752
|
+
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
624
753
|
kind: z.ZodLiteral<"once">;
|
|
625
|
-
}, z.core.$strict
|
|
754
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
755
|
+
kind: z.ZodLiteral<"keyed">;
|
|
756
|
+
}, z.core.$strict>], "kind">;
|
|
757
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
758
|
+
visible: "visible";
|
|
759
|
+
hidden: "hidden";
|
|
760
|
+
}>>;
|
|
761
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
762
|
+
id: z.ZodString;
|
|
763
|
+
scope: z.ZodEnum<{
|
|
764
|
+
member: "member";
|
|
765
|
+
project: "project";
|
|
766
|
+
}>;
|
|
767
|
+
period: z.ZodEnum<{
|
|
768
|
+
lifetime: "lifetime";
|
|
769
|
+
day: "day";
|
|
770
|
+
}>;
|
|
771
|
+
limit: z.ZodNumber;
|
|
772
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
773
|
+
balance: z.ZodString;
|
|
774
|
+
}, z.core.$strict>]>;
|
|
775
|
+
}, z.core.$strict>>>;
|
|
626
776
|
code: z.ZodString;
|
|
627
777
|
provider: z.ZodEnum<{
|
|
628
778
|
"fixture-pass": "fixture-pass";
|
|
@@ -689,6 +839,11 @@ declare const pageSchema: z.ZodObject<{
|
|
|
689
839
|
}, z.core.$strict>;
|
|
690
840
|
}, z.core.$strict>;
|
|
691
841
|
tier: z.ZodString;
|
|
842
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
843
|
+
kind: z.ZodLiteral<"integration">;
|
|
844
|
+
provider: z.ZodLiteral<"discord">;
|
|
845
|
+
action: z.ZodLiteral<"grant-role">;
|
|
846
|
+
roleId: z.ZodString;
|
|
692
847
|
}, z.core.$strict>]>>;
|
|
693
848
|
code: z.ZodString;
|
|
694
849
|
provider: z.ZodEnum<{
|
|
@@ -726,6 +881,25 @@ declare const pageSchema: z.ZodObject<{
|
|
|
726
881
|
};
|
|
727
882
|
integrations: "discord"[];
|
|
728
883
|
fields: Record<string, {
|
|
884
|
+
kind: "datetime";
|
|
885
|
+
default: string;
|
|
886
|
+
label: string;
|
|
887
|
+
description?: string | undefined;
|
|
888
|
+
} | {
|
|
889
|
+
kind: "resource";
|
|
890
|
+
default: string;
|
|
891
|
+
source: {
|
|
892
|
+
provider: "discord";
|
|
893
|
+
resource: "channel";
|
|
894
|
+
types: ("text" | "announcement")[];
|
|
895
|
+
} | {
|
|
896
|
+
provider: "discord";
|
|
897
|
+
resource: "role";
|
|
898
|
+
assignable: boolean;
|
|
899
|
+
};
|
|
900
|
+
label: string;
|
|
901
|
+
description?: string | undefined;
|
|
902
|
+
} | {
|
|
729
903
|
kind: "quiz";
|
|
730
904
|
default: {
|
|
731
905
|
id: string;
|
|
@@ -795,6 +969,11 @@ declare const pageSchema: z.ZodObject<{
|
|
|
795
969
|
kind: "points";
|
|
796
970
|
balance: string;
|
|
797
971
|
amount: number;
|
|
972
|
+
} | {
|
|
973
|
+
kind: "integration";
|
|
974
|
+
provider: "discord";
|
|
975
|
+
action: "grant-role";
|
|
976
|
+
roleId: string;
|
|
798
977
|
})[];
|
|
799
978
|
humanReview: boolean;
|
|
800
979
|
trigger: {
|
|
@@ -803,6 +982,10 @@ declare const pageSchema: z.ZodObject<{
|
|
|
803
982
|
actor?: "staff" | "member" | undefined;
|
|
804
983
|
} | {
|
|
805
984
|
kind: "automatic";
|
|
985
|
+
observation?: {
|
|
986
|
+
source: string;
|
|
987
|
+
type: string;
|
|
988
|
+
} | undefined;
|
|
806
989
|
};
|
|
807
990
|
requires: {
|
|
808
991
|
quest: string;
|
|
@@ -810,7 +993,19 @@ declare const pageSchema: z.ZodObject<{
|
|
|
810
993
|
}[];
|
|
811
994
|
completion: {
|
|
812
995
|
kind: "once";
|
|
996
|
+
} | {
|
|
997
|
+
kind: "keyed";
|
|
813
998
|
};
|
|
999
|
+
visibility: "visible" | "hidden";
|
|
1000
|
+
budgets: {
|
|
1001
|
+
id: string;
|
|
1002
|
+
scope: "member" | "project";
|
|
1003
|
+
period: "lifetime" | "day";
|
|
1004
|
+
limit: number;
|
|
1005
|
+
cost: number | {
|
|
1006
|
+
balance: string;
|
|
1007
|
+
};
|
|
1008
|
+
}[];
|
|
814
1009
|
code: string;
|
|
815
1010
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
816
1011
|
id: string;
|
|
@@ -867,6 +1062,11 @@ declare const pageSchema: z.ZodObject<{
|
|
|
867
1062
|
kind: "points";
|
|
868
1063
|
balance: string;
|
|
869
1064
|
amount: number;
|
|
1065
|
+
} | {
|
|
1066
|
+
kind: "integration";
|
|
1067
|
+
provider: "discord";
|
|
1068
|
+
action: "grant-role";
|
|
1069
|
+
roleId: string;
|
|
870
1070
|
})[];
|
|
871
1071
|
code: string;
|
|
872
1072
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
@@ -874,6 +1074,7 @@ declare const pageSchema: z.ZodObject<{
|
|
|
874
1074
|
createdAt: number;
|
|
875
1075
|
}>>]>>;
|
|
876
1076
|
completions: z.ZodArray<z.ZodObject<{
|
|
1077
|
+
key: z.ZodDefault<z.ZodString>;
|
|
877
1078
|
id: z.ZodString;
|
|
878
1079
|
quest: z.ZodString;
|
|
879
1080
|
member: z.ZodString;
|
|
@@ -1001,6 +1202,11 @@ declare const pageSchema: z.ZodObject<{
|
|
|
1001
1202
|
}, z.core.$strict>;
|
|
1002
1203
|
}, z.core.$strict>;
|
|
1003
1204
|
tier: z.ZodString;
|
|
1205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1206
|
+
kind: z.ZodLiteral<"integration">;
|
|
1207
|
+
provider: z.ZodLiteral<"discord">;
|
|
1208
|
+
action: z.ZodLiteral<"grant-role">;
|
|
1209
|
+
roleId: z.ZodString;
|
|
1004
1210
|
}, z.core.$strict>]>>>>;
|
|
1005
1211
|
createdAt: z.ZodNumber;
|
|
1006
1212
|
}, z.core.$strip>>;
|
|
@@ -1038,6 +1244,20 @@ declare const pageSchema: z.ZodObject<{
|
|
|
1038
1244
|
rewards: z.ZodNumber;
|
|
1039
1245
|
lastActivity: z.ZodNullable<z.ZodNumber>;
|
|
1040
1246
|
}, z.core.$strip>>;
|
|
1247
|
+
people: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1248
|
+
id: z.ZodString;
|
|
1249
|
+
accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1250
|
+
provider: z.ZodString;
|
|
1251
|
+
subject: z.ZodString;
|
|
1252
|
+
signInEnabled: z.ZodBoolean;
|
|
1253
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
1254
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
1257
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1258
|
+
}, z.core.$strip>>;
|
|
1259
|
+
}, z.core.$strip>>>;
|
|
1260
|
+
}, z.core.$strip>>>;
|
|
1041
1261
|
metrics: z.ZodObject<{
|
|
1042
1262
|
quests: z.ZodNumber;
|
|
1043
1263
|
members: z.ZodNumber;
|
|
@@ -1105,6 +1325,28 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1105
1325
|
discord: "discord";
|
|
1106
1326
|
}>>>;
|
|
1107
1327
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1328
|
+
kind: z.ZodLiteral<"datetime">;
|
|
1329
|
+
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
1330
|
+
label: z.ZodString;
|
|
1331
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1333
|
+
kind: z.ZodLiteral<"resource">;
|
|
1334
|
+
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
1335
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1336
|
+
provider: z.ZodLiteral<"discord">;
|
|
1337
|
+
resource: z.ZodLiteral<"channel">;
|
|
1338
|
+
types: z.ZodArray<z.ZodEnum<{
|
|
1339
|
+
text: "text";
|
|
1340
|
+
announcement: "announcement";
|
|
1341
|
+
}>>;
|
|
1342
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1343
|
+
provider: z.ZodLiteral<"discord">;
|
|
1344
|
+
resource: z.ZodLiteral<"role">;
|
|
1345
|
+
assignable: z.ZodDefault<z.ZodBoolean>;
|
|
1346
|
+
}, z.core.$strict>]>;
|
|
1347
|
+
label: z.ZodString;
|
|
1348
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1349
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1108
1350
|
kind: z.ZodLiteral<"quiz">;
|
|
1109
1351
|
default: z.ZodArray<z.ZodObject<{
|
|
1110
1352
|
id: z.ZodString;
|
|
@@ -1174,6 +1416,11 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1174
1416
|
}, z.core.$strict>;
|
|
1175
1417
|
}, z.core.$strict>;
|
|
1176
1418
|
tier: z.ZodString;
|
|
1419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1420
|
+
kind: z.ZodLiteral<"integration">;
|
|
1421
|
+
provider: z.ZodLiteral<"discord">;
|
|
1422
|
+
action: z.ZodLiteral<"grant-role">;
|
|
1423
|
+
roleId: z.ZodString;
|
|
1177
1424
|
}, z.core.$strict>]>>;
|
|
1178
1425
|
humanReview: z.ZodBoolean;
|
|
1179
1426
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1189,14 +1436,39 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1189
1436
|
}>>;
|
|
1190
1437
|
}, z.core.$strict>, z.ZodObject<{
|
|
1191
1438
|
kind: z.ZodLiteral<"automatic">;
|
|
1439
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
1440
|
+
source: z.ZodString;
|
|
1441
|
+
type: z.ZodString;
|
|
1442
|
+
}, z.core.$strict>>;
|
|
1192
1443
|
}, z.core.$strict>]>;
|
|
1193
1444
|
requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1194
1445
|
quest: z.ZodString;
|
|
1195
1446
|
scope: z.ZodLiteral<"ever">;
|
|
1196
1447
|
}, z.core.$strict>>>;
|
|
1197
|
-
completion: z.ZodObject<{
|
|
1448
|
+
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1198
1449
|
kind: z.ZodLiteral<"once">;
|
|
1199
|
-
}, z.core.$strict
|
|
1450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1451
|
+
kind: z.ZodLiteral<"keyed">;
|
|
1452
|
+
}, z.core.$strict>], "kind">;
|
|
1453
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1454
|
+
visible: "visible";
|
|
1455
|
+
hidden: "hidden";
|
|
1456
|
+
}>>;
|
|
1457
|
+
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1458
|
+
id: z.ZodString;
|
|
1459
|
+
scope: z.ZodEnum<{
|
|
1460
|
+
member: "member";
|
|
1461
|
+
project: "project";
|
|
1462
|
+
}>;
|
|
1463
|
+
period: z.ZodEnum<{
|
|
1464
|
+
lifetime: "lifetime";
|
|
1465
|
+
day: "day";
|
|
1466
|
+
}>;
|
|
1467
|
+
limit: z.ZodNumber;
|
|
1468
|
+
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1469
|
+
balance: z.ZodString;
|
|
1470
|
+
}, z.core.$strict>]>;
|
|
1471
|
+
}, z.core.$strict>>>;
|
|
1200
1472
|
code: z.ZodString;
|
|
1201
1473
|
provider: z.ZodEnum<{
|
|
1202
1474
|
"fixture-pass": "fixture-pass";
|
|
@@ -1263,6 +1535,11 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1263
1535
|
}, z.core.$strict>;
|
|
1264
1536
|
}, z.core.$strict>;
|
|
1265
1537
|
tier: z.ZodString;
|
|
1538
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1539
|
+
kind: z.ZodLiteral<"integration">;
|
|
1540
|
+
provider: z.ZodLiteral<"discord">;
|
|
1541
|
+
action: z.ZodLiteral<"grant-role">;
|
|
1542
|
+
roleId: z.ZodString;
|
|
1266
1543
|
}, z.core.$strict>]>>;
|
|
1267
1544
|
code: z.ZodString;
|
|
1268
1545
|
provider: z.ZodEnum<{
|
|
@@ -1300,6 +1577,25 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1300
1577
|
};
|
|
1301
1578
|
integrations: "discord"[];
|
|
1302
1579
|
fields: Record<string, {
|
|
1580
|
+
kind: "datetime";
|
|
1581
|
+
default: string;
|
|
1582
|
+
label: string;
|
|
1583
|
+
description?: string | undefined;
|
|
1584
|
+
} | {
|
|
1585
|
+
kind: "resource";
|
|
1586
|
+
default: string;
|
|
1587
|
+
source: {
|
|
1588
|
+
provider: "discord";
|
|
1589
|
+
resource: "channel";
|
|
1590
|
+
types: ("text" | "announcement")[];
|
|
1591
|
+
} | {
|
|
1592
|
+
provider: "discord";
|
|
1593
|
+
resource: "role";
|
|
1594
|
+
assignable: boolean;
|
|
1595
|
+
};
|
|
1596
|
+
label: string;
|
|
1597
|
+
description?: string | undefined;
|
|
1598
|
+
} | {
|
|
1303
1599
|
kind: "quiz";
|
|
1304
1600
|
default: {
|
|
1305
1601
|
id: string;
|
|
@@ -1369,6 +1665,11 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1369
1665
|
kind: "points";
|
|
1370
1666
|
balance: string;
|
|
1371
1667
|
amount: number;
|
|
1668
|
+
} | {
|
|
1669
|
+
kind: "integration";
|
|
1670
|
+
provider: "discord";
|
|
1671
|
+
action: "grant-role";
|
|
1672
|
+
roleId: string;
|
|
1372
1673
|
})[];
|
|
1373
1674
|
humanReview: boolean;
|
|
1374
1675
|
trigger: {
|
|
@@ -1377,6 +1678,10 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1377
1678
|
actor?: "staff" | "member" | undefined;
|
|
1378
1679
|
} | {
|
|
1379
1680
|
kind: "automatic";
|
|
1681
|
+
observation?: {
|
|
1682
|
+
source: string;
|
|
1683
|
+
type: string;
|
|
1684
|
+
} | undefined;
|
|
1380
1685
|
};
|
|
1381
1686
|
requires: {
|
|
1382
1687
|
quest: string;
|
|
@@ -1384,7 +1689,19 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1384
1689
|
}[];
|
|
1385
1690
|
completion: {
|
|
1386
1691
|
kind: "once";
|
|
1692
|
+
} | {
|
|
1693
|
+
kind: "keyed";
|
|
1387
1694
|
};
|
|
1695
|
+
visibility: "visible" | "hidden";
|
|
1696
|
+
budgets: {
|
|
1697
|
+
id: string;
|
|
1698
|
+
scope: "member" | "project";
|
|
1699
|
+
period: "lifetime" | "day";
|
|
1700
|
+
limit: number;
|
|
1701
|
+
cost: number | {
|
|
1702
|
+
balance: string;
|
|
1703
|
+
};
|
|
1704
|
+
}[];
|
|
1388
1705
|
code: string;
|
|
1389
1706
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
1390
1707
|
id: string;
|
|
@@ -1441,6 +1758,11 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1441
1758
|
kind: "points";
|
|
1442
1759
|
balance: string;
|
|
1443
1760
|
amount: number;
|
|
1761
|
+
} | {
|
|
1762
|
+
kind: "integration";
|
|
1763
|
+
provider: "discord";
|
|
1764
|
+
action: "grant-role";
|
|
1765
|
+
roleId: string;
|
|
1444
1766
|
})[];
|
|
1445
1767
|
code: string;
|
|
1446
1768
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
@@ -1448,6 +1770,7 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1448
1770
|
createdAt: number;
|
|
1449
1771
|
}>>]>>;
|
|
1450
1772
|
completions: z.ZodArray<z.ZodObject<{
|
|
1773
|
+
key: z.ZodDefault<z.ZodString>;
|
|
1451
1774
|
id: z.ZodString;
|
|
1452
1775
|
quest: z.ZodString;
|
|
1453
1776
|
member: z.ZodString;
|
|
@@ -1575,6 +1898,11 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1575
1898
|
}, z.core.$strict>;
|
|
1576
1899
|
}, z.core.$strict>;
|
|
1577
1900
|
tier: z.ZodString;
|
|
1901
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1902
|
+
kind: z.ZodLiteral<"integration">;
|
|
1903
|
+
provider: z.ZodLiteral<"discord">;
|
|
1904
|
+
action: z.ZodLiteral<"grant-role">;
|
|
1905
|
+
roleId: z.ZodString;
|
|
1578
1906
|
}, z.core.$strict>]>>>>;
|
|
1579
1907
|
createdAt: z.ZodNumber;
|
|
1580
1908
|
}, z.core.$strip>>;
|
|
@@ -1657,6 +1985,10 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1657
1985
|
}>>;
|
|
1658
1986
|
}, z.core.$strict>, z.ZodObject<{
|
|
1659
1987
|
kind: z.ZodLiteral<"automatic">;
|
|
1988
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
1989
|
+
source: z.ZodString;
|
|
1990
|
+
type: z.ZodString;
|
|
1991
|
+
}, z.core.$strict>>;
|
|
1660
1992
|
}, z.core.$strict>]>;
|
|
1661
1993
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1662
1994
|
kind: z.ZodLiteral<"available">;
|
|
@@ -1677,6 +2009,10 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1677
2009
|
kind: z.ZodLiteral<"staff-required">;
|
|
1678
2010
|
}, z.core.$strict>, z.ZodObject<{
|
|
1679
2011
|
kind: z.ZodLiteral<"automatic">;
|
|
2012
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
2013
|
+
source: z.ZodString;
|
|
2014
|
+
type: z.ZodString;
|
|
2015
|
+
}, z.core.$strict>>;
|
|
1680
2016
|
}, z.core.$strict>, z.ZodObject<{
|
|
1681
2017
|
kind: z.ZodLiteral<"checking">;
|
|
1682
2018
|
attempt: z.ZodString;
|
|
@@ -1688,6 +2024,16 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1688
2024
|
attempt: z.ZodString;
|
|
1689
2025
|
}, z.core.$strict>], "kind">;
|
|
1690
2026
|
completed: z.ZodBoolean;
|
|
2027
|
+
completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2028
|
+
kind: z.ZodLiteral<"once">;
|
|
2029
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2030
|
+
kind: z.ZodLiteral<"keyed">;
|
|
2031
|
+
}, z.core.$strict>], "kind">>;
|
|
2032
|
+
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2033
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2034
|
+
visible: "visible";
|
|
2035
|
+
hidden: "hidden";
|
|
2036
|
+
}>>;
|
|
1691
2037
|
missing: z.ZodArray<z.ZodObject<{
|
|
1692
2038
|
quest: z.ZodString;
|
|
1693
2039
|
title: z.ZodString;
|
|
@@ -1738,6 +2084,11 @@ declare const memberDetailSchema: z.ZodObject<{
|
|
|
1738
2084
|
}, z.core.$strict>;
|
|
1739
2085
|
}, z.core.$strict>;
|
|
1740
2086
|
tier: z.ZodString;
|
|
2087
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2088
|
+
kind: z.ZodLiteral<"integration">;
|
|
2089
|
+
provider: z.ZodLiteral<"discord">;
|
|
2090
|
+
action: z.ZodLiteral<"grant-role">;
|
|
2091
|
+
roleId: z.ZodString;
|
|
1741
2092
|
}, z.core.$strict>]>>>>;
|
|
1742
2093
|
createdAt: z.ZodNumber;
|
|
1743
2094
|
}, z.core.$strip>>;
|
|
@@ -1866,6 +2217,7 @@ declare const tokenInputSchema: z.ZodObject<{
|
|
|
1866
2217
|
inventory: "inventory";
|
|
1867
2218
|
access: "access";
|
|
1868
2219
|
points: "points";
|
|
2220
|
+
observe: "observe";
|
|
1869
2221
|
}>>;
|
|
1870
2222
|
days: z.ZodDefault<z.ZodNumber>;
|
|
1871
2223
|
}, z.core.$strict>;
|
|
@@ -1886,6 +2238,7 @@ declare const tokenSchema: z.ZodObject<{
|
|
|
1886
2238
|
inventory: "inventory";
|
|
1887
2239
|
access: "access";
|
|
1888
2240
|
points: "points";
|
|
2241
|
+
observe: "observe";
|
|
1889
2242
|
}>>;
|
|
1890
2243
|
expiresAt: z.ZodNumber;
|
|
1891
2244
|
}, z.core.$strip>;
|
|
@@ -1898,6 +2251,14 @@ declare function createManagementClient(options: {
|
|
|
1898
2251
|
}): {
|
|
1899
2252
|
raw: (path: string, init?: RequestInit) => Promise<Response>;
|
|
1900
2253
|
request: <T>(path: string, schema: z.ZodType<T>, input?: unknown, method?: string) => Promise<T>;
|
|
2254
|
+
observations: {
|
|
2255
|
+
submit: (input: z.input<typeof observationInputSchema>) => Promise<{
|
|
2256
|
+
id: string;
|
|
2257
|
+
source: string;
|
|
2258
|
+
attempts: string[];
|
|
2259
|
+
receivedAt: number;
|
|
2260
|
+
}>;
|
|
2261
|
+
};
|
|
1901
2262
|
points: {
|
|
1902
2263
|
update: (input: z.input<typeof pointsMutationSchema>) => Promise<{
|
|
1903
2264
|
entry: {
|
|
@@ -2260,6 +2621,25 @@ declare function createManagementClient(options: {
|
|
|
2260
2621
|
};
|
|
2261
2622
|
integrations: "discord"[];
|
|
2262
2623
|
fields: Record<string, {
|
|
2624
|
+
kind: "datetime";
|
|
2625
|
+
default: string;
|
|
2626
|
+
label: string;
|
|
2627
|
+
description?: string | undefined;
|
|
2628
|
+
} | {
|
|
2629
|
+
kind: "resource";
|
|
2630
|
+
default: string;
|
|
2631
|
+
source: {
|
|
2632
|
+
provider: "discord";
|
|
2633
|
+
resource: "channel";
|
|
2634
|
+
types: ("text" | "announcement")[];
|
|
2635
|
+
} | {
|
|
2636
|
+
provider: "discord";
|
|
2637
|
+
resource: "role";
|
|
2638
|
+
assignable: boolean;
|
|
2639
|
+
};
|
|
2640
|
+
label: string;
|
|
2641
|
+
description?: string | undefined;
|
|
2642
|
+
} | {
|
|
2263
2643
|
kind: "quiz";
|
|
2264
2644
|
default: {
|
|
2265
2645
|
id: string;
|
|
@@ -2329,6 +2709,11 @@ declare function createManagementClient(options: {
|
|
|
2329
2709
|
kind: "points";
|
|
2330
2710
|
balance: string;
|
|
2331
2711
|
amount: number;
|
|
2712
|
+
} | {
|
|
2713
|
+
kind: "integration";
|
|
2714
|
+
provider: "discord";
|
|
2715
|
+
action: "grant-role";
|
|
2716
|
+
roleId: string;
|
|
2332
2717
|
})[];
|
|
2333
2718
|
humanReview: boolean;
|
|
2334
2719
|
trigger: {
|
|
@@ -2337,6 +2722,10 @@ declare function createManagementClient(options: {
|
|
|
2337
2722
|
actor?: "member" | "staff" | undefined;
|
|
2338
2723
|
} | {
|
|
2339
2724
|
kind: "automatic";
|
|
2725
|
+
observation?: {
|
|
2726
|
+
source: string;
|
|
2727
|
+
type: string;
|
|
2728
|
+
} | undefined;
|
|
2340
2729
|
};
|
|
2341
2730
|
requires: {
|
|
2342
2731
|
quest: string;
|
|
@@ -2344,7 +2733,19 @@ declare function createManagementClient(options: {
|
|
|
2344
2733
|
}[];
|
|
2345
2734
|
completion: {
|
|
2346
2735
|
kind: "once";
|
|
2736
|
+
} | {
|
|
2737
|
+
kind: "keyed";
|
|
2347
2738
|
};
|
|
2739
|
+
visibility: "visible" | "hidden";
|
|
2740
|
+
budgets: {
|
|
2741
|
+
id: string;
|
|
2742
|
+
scope: "member" | "project";
|
|
2743
|
+
period: "lifetime" | "day";
|
|
2744
|
+
limit: number;
|
|
2745
|
+
cost: number | {
|
|
2746
|
+
balance: string;
|
|
2747
|
+
};
|
|
2748
|
+
}[];
|
|
2348
2749
|
code: string;
|
|
2349
2750
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
2350
2751
|
id: string;
|
|
@@ -2401,6 +2802,25 @@ declare function createManagementClient(options: {
|
|
|
2401
2802
|
};
|
|
2402
2803
|
integrations: "discord"[];
|
|
2403
2804
|
fields: Record<string, {
|
|
2805
|
+
kind: "datetime";
|
|
2806
|
+
default: string;
|
|
2807
|
+
label: string;
|
|
2808
|
+
description?: string | undefined;
|
|
2809
|
+
} | {
|
|
2810
|
+
kind: "resource";
|
|
2811
|
+
default: string;
|
|
2812
|
+
source: {
|
|
2813
|
+
provider: "discord";
|
|
2814
|
+
resource: "channel";
|
|
2815
|
+
types: ("text" | "announcement")[];
|
|
2816
|
+
} | {
|
|
2817
|
+
provider: "discord";
|
|
2818
|
+
resource: "role";
|
|
2819
|
+
assignable: boolean;
|
|
2820
|
+
};
|
|
2821
|
+
label: string;
|
|
2822
|
+
description?: string | undefined;
|
|
2823
|
+
} | {
|
|
2404
2824
|
kind: "quiz";
|
|
2405
2825
|
default: {
|
|
2406
2826
|
id: string;
|
|
@@ -2470,6 +2890,11 @@ declare function createManagementClient(options: {
|
|
|
2470
2890
|
};
|
|
2471
2891
|
};
|
|
2472
2892
|
tier: string;
|
|
2893
|
+
} | {
|
|
2894
|
+
kind: "integration";
|
|
2895
|
+
provider: "discord";
|
|
2896
|
+
action: "grant-role";
|
|
2897
|
+
roleId: string;
|
|
2473
2898
|
})[];
|
|
2474
2899
|
humanReview: boolean;
|
|
2475
2900
|
trigger: {
|
|
@@ -2478,6 +2903,10 @@ declare function createManagementClient(options: {
|
|
|
2478
2903
|
actor?: "staff" | "member" | undefined;
|
|
2479
2904
|
} | {
|
|
2480
2905
|
kind: "automatic";
|
|
2906
|
+
observation?: {
|
|
2907
|
+
source: string;
|
|
2908
|
+
type: string;
|
|
2909
|
+
} | undefined;
|
|
2481
2910
|
};
|
|
2482
2911
|
requires: {
|
|
2483
2912
|
quest: string;
|
|
@@ -2485,7 +2914,19 @@ declare function createManagementClient(options: {
|
|
|
2485
2914
|
}[];
|
|
2486
2915
|
completion: {
|
|
2487
2916
|
kind: "once";
|
|
2917
|
+
} | {
|
|
2918
|
+
kind: "keyed";
|
|
2488
2919
|
};
|
|
2920
|
+
visibility: "visible" | "hidden";
|
|
2921
|
+
budgets: {
|
|
2922
|
+
id: string;
|
|
2923
|
+
scope: "project" | "member";
|
|
2924
|
+
period: "day" | "lifetime";
|
|
2925
|
+
limit: number;
|
|
2926
|
+
cost: number | {
|
|
2927
|
+
balance: string;
|
|
2928
|
+
};
|
|
2929
|
+
}[];
|
|
2489
2930
|
code: string;
|
|
2490
2931
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
2491
2932
|
id: string;
|
|
@@ -2547,6 +2988,25 @@ declare function createManagementClient(options: {
|
|
|
2547
2988
|
};
|
|
2548
2989
|
integrations: "discord"[];
|
|
2549
2990
|
fields: Record<string, {
|
|
2991
|
+
kind: "datetime";
|
|
2992
|
+
default: string;
|
|
2993
|
+
label: string;
|
|
2994
|
+
description?: string | undefined;
|
|
2995
|
+
} | {
|
|
2996
|
+
kind: "resource";
|
|
2997
|
+
default: string;
|
|
2998
|
+
source: {
|
|
2999
|
+
provider: "discord";
|
|
3000
|
+
resource: "channel";
|
|
3001
|
+
types: ("text" | "announcement")[];
|
|
3002
|
+
} | {
|
|
3003
|
+
provider: "discord";
|
|
3004
|
+
resource: "role";
|
|
3005
|
+
assignable: boolean;
|
|
3006
|
+
};
|
|
3007
|
+
label: string;
|
|
3008
|
+
description?: string | undefined;
|
|
3009
|
+
} | {
|
|
2550
3010
|
kind: "quiz";
|
|
2551
3011
|
default: {
|
|
2552
3012
|
id: string;
|
|
@@ -2616,6 +3076,11 @@ declare function createManagementClient(options: {
|
|
|
2616
3076
|
};
|
|
2617
3077
|
};
|
|
2618
3078
|
tier: string;
|
|
3079
|
+
} | {
|
|
3080
|
+
kind: "integration";
|
|
3081
|
+
provider: "discord";
|
|
3082
|
+
action: "grant-role";
|
|
3083
|
+
roleId: string;
|
|
2619
3084
|
})[];
|
|
2620
3085
|
humanReview: boolean;
|
|
2621
3086
|
trigger: {
|
|
@@ -2624,6 +3089,10 @@ declare function createManagementClient(options: {
|
|
|
2624
3089
|
actor?: "staff" | "member" | undefined;
|
|
2625
3090
|
} | {
|
|
2626
3091
|
kind: "automatic";
|
|
3092
|
+
observation?: {
|
|
3093
|
+
source: string;
|
|
3094
|
+
type: string;
|
|
3095
|
+
} | undefined;
|
|
2627
3096
|
};
|
|
2628
3097
|
requires: {
|
|
2629
3098
|
quest: string;
|
|
@@ -2631,7 +3100,19 @@ declare function createManagementClient(options: {
|
|
|
2631
3100
|
}[];
|
|
2632
3101
|
completion: {
|
|
2633
3102
|
kind: "once";
|
|
3103
|
+
} | {
|
|
3104
|
+
kind: "keyed";
|
|
2634
3105
|
};
|
|
3106
|
+
visibility: "visible" | "hidden";
|
|
3107
|
+
budgets: {
|
|
3108
|
+
id: string;
|
|
3109
|
+
scope: "project" | "member";
|
|
3110
|
+
period: "day" | "lifetime";
|
|
3111
|
+
limit: number;
|
|
3112
|
+
cost: number | {
|
|
3113
|
+
balance: string;
|
|
3114
|
+
};
|
|
3115
|
+
}[];
|
|
2635
3116
|
};
|
|
2636
3117
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
2637
3118
|
createdAt: number;
|
|
@@ -2892,6 +3373,25 @@ declare function createManagementClient(options: {
|
|
|
2892
3373
|
};
|
|
2893
3374
|
integrations: "discord"[];
|
|
2894
3375
|
fields: Record<string, {
|
|
3376
|
+
kind: "datetime";
|
|
3377
|
+
default: string;
|
|
3378
|
+
label: string;
|
|
3379
|
+
description?: string | undefined;
|
|
3380
|
+
} | {
|
|
3381
|
+
kind: "resource";
|
|
3382
|
+
default: string;
|
|
3383
|
+
source: {
|
|
3384
|
+
provider: "discord";
|
|
3385
|
+
resource: "channel";
|
|
3386
|
+
types: ("text" | "announcement")[];
|
|
3387
|
+
} | {
|
|
3388
|
+
provider: "discord";
|
|
3389
|
+
resource: "role";
|
|
3390
|
+
assignable: boolean;
|
|
3391
|
+
};
|
|
3392
|
+
label: string;
|
|
3393
|
+
description?: string | undefined;
|
|
3394
|
+
} | {
|
|
2895
3395
|
kind: "quiz";
|
|
2896
3396
|
default: {
|
|
2897
3397
|
id: string;
|
|
@@ -2961,6 +3461,11 @@ declare function createManagementClient(options: {
|
|
|
2961
3461
|
kind: "points";
|
|
2962
3462
|
balance: string;
|
|
2963
3463
|
amount: number;
|
|
3464
|
+
} | {
|
|
3465
|
+
kind: "integration";
|
|
3466
|
+
provider: "discord";
|
|
3467
|
+
action: "grant-role";
|
|
3468
|
+
roleId: string;
|
|
2964
3469
|
})[];
|
|
2965
3470
|
humanReview: boolean;
|
|
2966
3471
|
trigger: {
|
|
@@ -2969,6 +3474,10 @@ declare function createManagementClient(options: {
|
|
|
2969
3474
|
actor?: "member" | "staff" | undefined;
|
|
2970
3475
|
} | {
|
|
2971
3476
|
kind: "automatic";
|
|
3477
|
+
observation?: {
|
|
3478
|
+
source: string;
|
|
3479
|
+
type: string;
|
|
3480
|
+
} | undefined;
|
|
2972
3481
|
};
|
|
2973
3482
|
requires: {
|
|
2974
3483
|
quest: string;
|
|
@@ -2976,7 +3485,19 @@ declare function createManagementClient(options: {
|
|
|
2976
3485
|
}[];
|
|
2977
3486
|
completion: {
|
|
2978
3487
|
kind: "once";
|
|
3488
|
+
} | {
|
|
3489
|
+
kind: "keyed";
|
|
2979
3490
|
};
|
|
3491
|
+
visibility: "visible" | "hidden";
|
|
3492
|
+
budgets: {
|
|
3493
|
+
id: string;
|
|
3494
|
+
scope: "member" | "project";
|
|
3495
|
+
period: "lifetime" | "day";
|
|
3496
|
+
limit: number;
|
|
3497
|
+
cost: number | {
|
|
3498
|
+
balance: string;
|
|
3499
|
+
};
|
|
3500
|
+
}[];
|
|
2980
3501
|
code: string;
|
|
2981
3502
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
2982
3503
|
id: string;
|
|
@@ -3033,6 +3554,25 @@ declare function createManagementClient(options: {
|
|
|
3033
3554
|
};
|
|
3034
3555
|
integrations: "discord"[];
|
|
3035
3556
|
fields: Record<string, {
|
|
3557
|
+
kind: "datetime";
|
|
3558
|
+
default: string;
|
|
3559
|
+
label: string;
|
|
3560
|
+
description?: string | undefined;
|
|
3561
|
+
} | {
|
|
3562
|
+
kind: "resource";
|
|
3563
|
+
default: string;
|
|
3564
|
+
source: {
|
|
3565
|
+
provider: "discord";
|
|
3566
|
+
resource: "channel";
|
|
3567
|
+
types: ("text" | "announcement")[];
|
|
3568
|
+
} | {
|
|
3569
|
+
provider: "discord";
|
|
3570
|
+
resource: "role";
|
|
3571
|
+
assignable: boolean;
|
|
3572
|
+
};
|
|
3573
|
+
label: string;
|
|
3574
|
+
description?: string | undefined;
|
|
3575
|
+
} | {
|
|
3036
3576
|
kind: "quiz";
|
|
3037
3577
|
default: {
|
|
3038
3578
|
id: string;
|
|
@@ -3102,6 +3642,11 @@ declare function createManagementClient(options: {
|
|
|
3102
3642
|
};
|
|
3103
3643
|
};
|
|
3104
3644
|
tier: string;
|
|
3645
|
+
} | {
|
|
3646
|
+
kind: "integration";
|
|
3647
|
+
provider: "discord";
|
|
3648
|
+
action: "grant-role";
|
|
3649
|
+
roleId: string;
|
|
3105
3650
|
})[];
|
|
3106
3651
|
humanReview: boolean;
|
|
3107
3652
|
trigger: {
|
|
@@ -3110,6 +3655,10 @@ declare function createManagementClient(options: {
|
|
|
3110
3655
|
actor?: "staff" | "member" | undefined;
|
|
3111
3656
|
} | {
|
|
3112
3657
|
kind: "automatic";
|
|
3658
|
+
observation?: {
|
|
3659
|
+
source: string;
|
|
3660
|
+
type: string;
|
|
3661
|
+
} | undefined;
|
|
3113
3662
|
};
|
|
3114
3663
|
requires: {
|
|
3115
3664
|
quest: string;
|
|
@@ -3117,7 +3666,19 @@ declare function createManagementClient(options: {
|
|
|
3117
3666
|
}[];
|
|
3118
3667
|
completion: {
|
|
3119
3668
|
kind: "once";
|
|
3669
|
+
} | {
|
|
3670
|
+
kind: "keyed";
|
|
3120
3671
|
};
|
|
3672
|
+
visibility: "visible" | "hidden";
|
|
3673
|
+
budgets: {
|
|
3674
|
+
id: string;
|
|
3675
|
+
scope: "project" | "member";
|
|
3676
|
+
period: "day" | "lifetime";
|
|
3677
|
+
limit: number;
|
|
3678
|
+
cost: number | {
|
|
3679
|
+
balance: string;
|
|
3680
|
+
};
|
|
3681
|
+
}[];
|
|
3121
3682
|
code: string;
|
|
3122
3683
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
3123
3684
|
id: string;
|
|
@@ -3179,6 +3740,25 @@ declare function createManagementClient(options: {
|
|
|
3179
3740
|
};
|
|
3180
3741
|
integrations: "discord"[];
|
|
3181
3742
|
fields: Record<string, {
|
|
3743
|
+
kind: "datetime";
|
|
3744
|
+
default: string;
|
|
3745
|
+
label: string;
|
|
3746
|
+
description?: string | undefined;
|
|
3747
|
+
} | {
|
|
3748
|
+
kind: "resource";
|
|
3749
|
+
default: string;
|
|
3750
|
+
source: {
|
|
3751
|
+
provider: "discord";
|
|
3752
|
+
resource: "channel";
|
|
3753
|
+
types: ("text" | "announcement")[];
|
|
3754
|
+
} | {
|
|
3755
|
+
provider: "discord";
|
|
3756
|
+
resource: "role";
|
|
3757
|
+
assignable: boolean;
|
|
3758
|
+
};
|
|
3759
|
+
label: string;
|
|
3760
|
+
description?: string | undefined;
|
|
3761
|
+
} | {
|
|
3182
3762
|
kind: "quiz";
|
|
3183
3763
|
default: {
|
|
3184
3764
|
id: string;
|
|
@@ -3248,6 +3828,11 @@ declare function createManagementClient(options: {
|
|
|
3248
3828
|
};
|
|
3249
3829
|
};
|
|
3250
3830
|
tier: string;
|
|
3831
|
+
} | {
|
|
3832
|
+
kind: "integration";
|
|
3833
|
+
provider: "discord";
|
|
3834
|
+
action: "grant-role";
|
|
3835
|
+
roleId: string;
|
|
3251
3836
|
})[];
|
|
3252
3837
|
humanReview: boolean;
|
|
3253
3838
|
trigger: {
|
|
@@ -3256,6 +3841,10 @@ declare function createManagementClient(options: {
|
|
|
3256
3841
|
actor?: "staff" | "member" | undefined;
|
|
3257
3842
|
} | {
|
|
3258
3843
|
kind: "automatic";
|
|
3844
|
+
observation?: {
|
|
3845
|
+
source: string;
|
|
3846
|
+
type: string;
|
|
3847
|
+
} | undefined;
|
|
3259
3848
|
};
|
|
3260
3849
|
requires: {
|
|
3261
3850
|
quest: string;
|
|
@@ -3263,7 +3852,19 @@ declare function createManagementClient(options: {
|
|
|
3263
3852
|
}[];
|
|
3264
3853
|
completion: {
|
|
3265
3854
|
kind: "once";
|
|
3855
|
+
} | {
|
|
3856
|
+
kind: "keyed";
|
|
3266
3857
|
};
|
|
3858
|
+
visibility: "visible" | "hidden";
|
|
3859
|
+
budgets: {
|
|
3860
|
+
id: string;
|
|
3861
|
+
scope: "project" | "member";
|
|
3862
|
+
period: "day" | "lifetime";
|
|
3863
|
+
limit: number;
|
|
3864
|
+
cost: number | {
|
|
3865
|
+
balance: string;
|
|
3866
|
+
};
|
|
3867
|
+
}[];
|
|
3267
3868
|
};
|
|
3268
3869
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
3269
3870
|
createdAt: number;
|
|
@@ -3530,13 +4131,32 @@ declare function createManagementClient(options: {
|
|
|
3530
4131
|
};
|
|
3531
4132
|
integrations: "discord"[];
|
|
3532
4133
|
fields: Record<string, {
|
|
3533
|
-
kind: "
|
|
3534
|
-
default:
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
4134
|
+
kind: "datetime";
|
|
4135
|
+
default: string;
|
|
4136
|
+
label: string;
|
|
4137
|
+
description?: string | undefined;
|
|
4138
|
+
} | {
|
|
4139
|
+
kind: "resource";
|
|
4140
|
+
default: string;
|
|
4141
|
+
source: {
|
|
4142
|
+
provider: "discord";
|
|
4143
|
+
resource: "channel";
|
|
4144
|
+
types: ("text" | "announcement")[];
|
|
4145
|
+
} | {
|
|
4146
|
+
provider: "discord";
|
|
4147
|
+
resource: "role";
|
|
4148
|
+
assignable: boolean;
|
|
4149
|
+
};
|
|
4150
|
+
label: string;
|
|
4151
|
+
description?: string | undefined;
|
|
4152
|
+
} | {
|
|
4153
|
+
kind: "quiz";
|
|
4154
|
+
default: {
|
|
4155
|
+
id: string;
|
|
4156
|
+
prompt: string;
|
|
4157
|
+
choices: {
|
|
4158
|
+
id: string;
|
|
4159
|
+
label: string;
|
|
3540
4160
|
}[];
|
|
3541
4161
|
correct: string;
|
|
3542
4162
|
}[];
|
|
@@ -3599,6 +4219,11 @@ declare function createManagementClient(options: {
|
|
|
3599
4219
|
};
|
|
3600
4220
|
};
|
|
3601
4221
|
tier: string;
|
|
4222
|
+
} | {
|
|
4223
|
+
kind: "integration";
|
|
4224
|
+
provider: "discord";
|
|
4225
|
+
action: "grant-role";
|
|
4226
|
+
roleId: string;
|
|
3602
4227
|
})[];
|
|
3603
4228
|
humanReview: boolean;
|
|
3604
4229
|
trigger: {
|
|
@@ -3607,6 +4232,10 @@ declare function createManagementClient(options: {
|
|
|
3607
4232
|
actor?: "staff" | "member" | undefined;
|
|
3608
4233
|
} | {
|
|
3609
4234
|
kind: "automatic";
|
|
4235
|
+
observation?: {
|
|
4236
|
+
source: string;
|
|
4237
|
+
type: string;
|
|
4238
|
+
} | undefined;
|
|
3610
4239
|
};
|
|
3611
4240
|
requires: {
|
|
3612
4241
|
quest: string;
|
|
@@ -3614,7 +4243,19 @@ declare function createManagementClient(options: {
|
|
|
3614
4243
|
}[];
|
|
3615
4244
|
completion: {
|
|
3616
4245
|
kind: "once";
|
|
4246
|
+
} | {
|
|
4247
|
+
kind: "keyed";
|
|
3617
4248
|
};
|
|
4249
|
+
visibility: "visible" | "hidden";
|
|
4250
|
+
budgets: {
|
|
4251
|
+
id: string;
|
|
4252
|
+
scope: "project" | "member";
|
|
4253
|
+
period: "day" | "lifetime";
|
|
4254
|
+
limit: number;
|
|
4255
|
+
cost: number | {
|
|
4256
|
+
balance: string;
|
|
4257
|
+
};
|
|
4258
|
+
}[];
|
|
3618
4259
|
};
|
|
3619
4260
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
3620
4261
|
createdAt: number;
|
|
@@ -3726,6 +4367,25 @@ declare function createManagementClient(options: {
|
|
|
3726
4367
|
};
|
|
3727
4368
|
integrations: "discord"[];
|
|
3728
4369
|
fields: Record<string, {
|
|
4370
|
+
kind: "datetime";
|
|
4371
|
+
default: string;
|
|
4372
|
+
label: string;
|
|
4373
|
+
description?: string | undefined;
|
|
4374
|
+
} | {
|
|
4375
|
+
kind: "resource";
|
|
4376
|
+
default: string;
|
|
4377
|
+
source: {
|
|
4378
|
+
provider: "discord";
|
|
4379
|
+
resource: "channel";
|
|
4380
|
+
types: ("text" | "announcement")[];
|
|
4381
|
+
} | {
|
|
4382
|
+
provider: "discord";
|
|
4383
|
+
resource: "role";
|
|
4384
|
+
assignable: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
label: string;
|
|
4387
|
+
description?: string | undefined;
|
|
4388
|
+
} | {
|
|
3729
4389
|
kind: "quiz";
|
|
3730
4390
|
default: {
|
|
3731
4391
|
id: string;
|
|
@@ -3795,6 +4455,11 @@ declare function createManagementClient(options: {
|
|
|
3795
4455
|
kind: "points";
|
|
3796
4456
|
balance: string;
|
|
3797
4457
|
amount: number;
|
|
4458
|
+
} | {
|
|
4459
|
+
kind: "integration";
|
|
4460
|
+
provider: "discord";
|
|
4461
|
+
action: "grant-role";
|
|
4462
|
+
roleId: string;
|
|
3798
4463
|
})[];
|
|
3799
4464
|
humanReview: boolean;
|
|
3800
4465
|
trigger: {
|
|
@@ -3803,6 +4468,10 @@ declare function createManagementClient(options: {
|
|
|
3803
4468
|
actor?: "member" | "staff" | undefined;
|
|
3804
4469
|
} | {
|
|
3805
4470
|
kind: "automatic";
|
|
4471
|
+
observation?: {
|
|
4472
|
+
source: string;
|
|
4473
|
+
type: string;
|
|
4474
|
+
} | undefined;
|
|
3806
4475
|
};
|
|
3807
4476
|
requires: {
|
|
3808
4477
|
quest: string;
|
|
@@ -3810,7 +4479,19 @@ declare function createManagementClient(options: {
|
|
|
3810
4479
|
}[];
|
|
3811
4480
|
completion: {
|
|
3812
4481
|
kind: "once";
|
|
4482
|
+
} | {
|
|
4483
|
+
kind: "keyed";
|
|
3813
4484
|
};
|
|
4485
|
+
visibility: "visible" | "hidden";
|
|
4486
|
+
budgets: {
|
|
4487
|
+
id: string;
|
|
4488
|
+
scope: "member" | "project";
|
|
4489
|
+
period: "lifetime" | "day";
|
|
4490
|
+
limit: number;
|
|
4491
|
+
cost: number | {
|
|
4492
|
+
balance: string;
|
|
4493
|
+
};
|
|
4494
|
+
}[];
|
|
3814
4495
|
code: string;
|
|
3815
4496
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
3816
4497
|
id: string;
|
|
@@ -3867,6 +4548,25 @@ declare function createManagementClient(options: {
|
|
|
3867
4548
|
};
|
|
3868
4549
|
integrations: "discord"[];
|
|
3869
4550
|
fields: Record<string, {
|
|
4551
|
+
kind: "datetime";
|
|
4552
|
+
default: string;
|
|
4553
|
+
label: string;
|
|
4554
|
+
description?: string | undefined;
|
|
4555
|
+
} | {
|
|
4556
|
+
kind: "resource";
|
|
4557
|
+
default: string;
|
|
4558
|
+
source: {
|
|
4559
|
+
provider: "discord";
|
|
4560
|
+
resource: "channel";
|
|
4561
|
+
types: ("text" | "announcement")[];
|
|
4562
|
+
} | {
|
|
4563
|
+
provider: "discord";
|
|
4564
|
+
resource: "role";
|
|
4565
|
+
assignable: boolean;
|
|
4566
|
+
};
|
|
4567
|
+
label: string;
|
|
4568
|
+
description?: string | undefined;
|
|
4569
|
+
} | {
|
|
3870
4570
|
kind: "quiz";
|
|
3871
4571
|
default: {
|
|
3872
4572
|
id: string;
|
|
@@ -3936,6 +4636,11 @@ declare function createManagementClient(options: {
|
|
|
3936
4636
|
};
|
|
3937
4637
|
};
|
|
3938
4638
|
tier: string;
|
|
4639
|
+
} | {
|
|
4640
|
+
kind: "integration";
|
|
4641
|
+
provider: "discord";
|
|
4642
|
+
action: "grant-role";
|
|
4643
|
+
roleId: string;
|
|
3939
4644
|
})[];
|
|
3940
4645
|
humanReview: boolean;
|
|
3941
4646
|
trigger: {
|
|
@@ -3944,6 +4649,10 @@ declare function createManagementClient(options: {
|
|
|
3944
4649
|
actor?: "staff" | "member" | undefined;
|
|
3945
4650
|
} | {
|
|
3946
4651
|
kind: "automatic";
|
|
4652
|
+
observation?: {
|
|
4653
|
+
source: string;
|
|
4654
|
+
type: string;
|
|
4655
|
+
} | undefined;
|
|
3947
4656
|
};
|
|
3948
4657
|
requires: {
|
|
3949
4658
|
quest: string;
|
|
@@ -3951,7 +4660,19 @@ declare function createManagementClient(options: {
|
|
|
3951
4660
|
}[];
|
|
3952
4661
|
completion: {
|
|
3953
4662
|
kind: "once";
|
|
4663
|
+
} | {
|
|
4664
|
+
kind: "keyed";
|
|
3954
4665
|
};
|
|
4666
|
+
visibility: "visible" | "hidden";
|
|
4667
|
+
budgets: {
|
|
4668
|
+
id: string;
|
|
4669
|
+
scope: "project" | "member";
|
|
4670
|
+
period: "day" | "lifetime";
|
|
4671
|
+
limit: number;
|
|
4672
|
+
cost: number | {
|
|
4673
|
+
balance: string;
|
|
4674
|
+
};
|
|
4675
|
+
}[];
|
|
3955
4676
|
code: string;
|
|
3956
4677
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
3957
4678
|
id: string;
|
|
@@ -4017,6 +4738,25 @@ declare function createManagementClient(options: {
|
|
|
4017
4738
|
};
|
|
4018
4739
|
integrations: "discord"[];
|
|
4019
4740
|
fields: Record<string, {
|
|
4741
|
+
kind: "datetime";
|
|
4742
|
+
default: string;
|
|
4743
|
+
label: string;
|
|
4744
|
+
description?: string | undefined;
|
|
4745
|
+
} | {
|
|
4746
|
+
kind: "resource";
|
|
4747
|
+
default: string;
|
|
4748
|
+
source: {
|
|
4749
|
+
provider: "discord";
|
|
4750
|
+
resource: "channel";
|
|
4751
|
+
types: ("text" | "announcement")[];
|
|
4752
|
+
} | {
|
|
4753
|
+
provider: "discord";
|
|
4754
|
+
resource: "role";
|
|
4755
|
+
assignable: boolean;
|
|
4756
|
+
};
|
|
4757
|
+
label: string;
|
|
4758
|
+
description?: string | undefined;
|
|
4759
|
+
} | {
|
|
4020
4760
|
kind: "quiz";
|
|
4021
4761
|
default: {
|
|
4022
4762
|
id: string;
|
|
@@ -4086,6 +4826,11 @@ declare function createManagementClient(options: {
|
|
|
4086
4826
|
};
|
|
4087
4827
|
};
|
|
4088
4828
|
tier: string;
|
|
4829
|
+
} | {
|
|
4830
|
+
kind: "integration";
|
|
4831
|
+
provider: "discord";
|
|
4832
|
+
action: "grant-role";
|
|
4833
|
+
roleId: string;
|
|
4089
4834
|
})[];
|
|
4090
4835
|
humanReview: boolean;
|
|
4091
4836
|
trigger: {
|
|
@@ -4094,6 +4839,10 @@ declare function createManagementClient(options: {
|
|
|
4094
4839
|
actor?: "staff" | "member" | undefined;
|
|
4095
4840
|
} | {
|
|
4096
4841
|
kind: "automatic";
|
|
4842
|
+
observation?: {
|
|
4843
|
+
source: string;
|
|
4844
|
+
type: string;
|
|
4845
|
+
} | undefined;
|
|
4097
4846
|
};
|
|
4098
4847
|
requires: {
|
|
4099
4848
|
quest: string;
|
|
@@ -4101,7 +4850,19 @@ declare function createManagementClient(options: {
|
|
|
4101
4850
|
}[];
|
|
4102
4851
|
completion: {
|
|
4103
4852
|
kind: "once";
|
|
4853
|
+
} | {
|
|
4854
|
+
kind: "keyed";
|
|
4104
4855
|
};
|
|
4856
|
+
visibility: "visible" | "hidden";
|
|
4857
|
+
budgets: {
|
|
4858
|
+
id: string;
|
|
4859
|
+
scope: "project" | "member";
|
|
4860
|
+
period: "day" | "lifetime";
|
|
4861
|
+
limit: number;
|
|
4862
|
+
cost: number | {
|
|
4863
|
+
balance: string;
|
|
4864
|
+
};
|
|
4865
|
+
}[];
|
|
4105
4866
|
};
|
|
4106
4867
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
4107
4868
|
createdAt: number;
|
|
@@ -4144,6 +4905,25 @@ declare function createManagementClient(options: {
|
|
|
4144
4905
|
};
|
|
4145
4906
|
integrations: "discord"[];
|
|
4146
4907
|
fields: Record<string, {
|
|
4908
|
+
kind: "datetime";
|
|
4909
|
+
default: string;
|
|
4910
|
+
label: string;
|
|
4911
|
+
description?: string | undefined;
|
|
4912
|
+
} | {
|
|
4913
|
+
kind: "resource";
|
|
4914
|
+
default: string;
|
|
4915
|
+
source: {
|
|
4916
|
+
provider: "discord";
|
|
4917
|
+
resource: "channel";
|
|
4918
|
+
types: ("text" | "announcement")[];
|
|
4919
|
+
} | {
|
|
4920
|
+
provider: "discord";
|
|
4921
|
+
resource: "role";
|
|
4922
|
+
assignable: boolean;
|
|
4923
|
+
};
|
|
4924
|
+
label: string;
|
|
4925
|
+
description?: string | undefined;
|
|
4926
|
+
} | {
|
|
4147
4927
|
kind: "quiz";
|
|
4148
4928
|
default: {
|
|
4149
4929
|
id: string;
|
|
@@ -4213,6 +4993,11 @@ declare function createManagementClient(options: {
|
|
|
4213
4993
|
};
|
|
4214
4994
|
};
|
|
4215
4995
|
tier: string;
|
|
4996
|
+
} | {
|
|
4997
|
+
kind: "integration";
|
|
4998
|
+
provider: "discord";
|
|
4999
|
+
action: "grant-role";
|
|
5000
|
+
roleId: string;
|
|
4216
5001
|
})[];
|
|
4217
5002
|
humanReview: boolean;
|
|
4218
5003
|
trigger: {
|
|
@@ -4221,6 +5006,10 @@ declare function createManagementClient(options: {
|
|
|
4221
5006
|
actor?: "staff" | "member" | undefined;
|
|
4222
5007
|
} | {
|
|
4223
5008
|
kind: "automatic";
|
|
5009
|
+
observation?: {
|
|
5010
|
+
source: string;
|
|
5011
|
+
type: string;
|
|
5012
|
+
} | undefined;
|
|
4224
5013
|
};
|
|
4225
5014
|
requires: {
|
|
4226
5015
|
quest: string;
|
|
@@ -4228,7 +5017,19 @@ declare function createManagementClient(options: {
|
|
|
4228
5017
|
}[];
|
|
4229
5018
|
completion: {
|
|
4230
5019
|
kind: "once";
|
|
5020
|
+
} | {
|
|
5021
|
+
kind: "keyed";
|
|
4231
5022
|
};
|
|
5023
|
+
visibility: "visible" | "hidden";
|
|
5024
|
+
budgets: {
|
|
5025
|
+
id: string;
|
|
5026
|
+
scope: "project" | "member";
|
|
5027
|
+
period: "day" | "lifetime";
|
|
5028
|
+
limit: number;
|
|
5029
|
+
cost: number | {
|
|
5030
|
+
balance: string;
|
|
5031
|
+
};
|
|
5032
|
+
}[];
|
|
4232
5033
|
};
|
|
4233
5034
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
4234
5035
|
createdAt: number;
|
|
@@ -4340,6 +5141,25 @@ declare function createManagementClient(options: {
|
|
|
4340
5141
|
};
|
|
4341
5142
|
integrations: "discord"[];
|
|
4342
5143
|
fields: Record<string, {
|
|
5144
|
+
kind: "datetime";
|
|
5145
|
+
default: string;
|
|
5146
|
+
label: string;
|
|
5147
|
+
description?: string | undefined;
|
|
5148
|
+
} | {
|
|
5149
|
+
kind: "resource";
|
|
5150
|
+
default: string;
|
|
5151
|
+
source: {
|
|
5152
|
+
provider: "discord";
|
|
5153
|
+
resource: "channel";
|
|
5154
|
+
types: ("text" | "announcement")[];
|
|
5155
|
+
} | {
|
|
5156
|
+
provider: "discord";
|
|
5157
|
+
resource: "role";
|
|
5158
|
+
assignable: boolean;
|
|
5159
|
+
};
|
|
5160
|
+
label: string;
|
|
5161
|
+
description?: string | undefined;
|
|
5162
|
+
} | {
|
|
4343
5163
|
kind: "quiz";
|
|
4344
5164
|
default: {
|
|
4345
5165
|
id: string;
|
|
@@ -4409,6 +5229,11 @@ declare function createManagementClient(options: {
|
|
|
4409
5229
|
kind: "points";
|
|
4410
5230
|
balance: string;
|
|
4411
5231
|
amount: number;
|
|
5232
|
+
} | {
|
|
5233
|
+
kind: "integration";
|
|
5234
|
+
provider: "discord";
|
|
5235
|
+
action: "grant-role";
|
|
5236
|
+
roleId: string;
|
|
4412
5237
|
})[];
|
|
4413
5238
|
humanReview: boolean;
|
|
4414
5239
|
trigger: {
|
|
@@ -4417,6 +5242,10 @@ declare function createManagementClient(options: {
|
|
|
4417
5242
|
actor?: "member" | "staff" | undefined;
|
|
4418
5243
|
} | {
|
|
4419
5244
|
kind: "automatic";
|
|
5245
|
+
observation?: {
|
|
5246
|
+
source: string;
|
|
5247
|
+
type: string;
|
|
5248
|
+
} | undefined;
|
|
4420
5249
|
};
|
|
4421
5250
|
requires: {
|
|
4422
5251
|
quest: string;
|
|
@@ -4424,7 +5253,19 @@ declare function createManagementClient(options: {
|
|
|
4424
5253
|
}[];
|
|
4425
5254
|
completion: {
|
|
4426
5255
|
kind: "once";
|
|
5256
|
+
} | {
|
|
5257
|
+
kind: "keyed";
|
|
4427
5258
|
};
|
|
5259
|
+
visibility: "visible" | "hidden";
|
|
5260
|
+
budgets: {
|
|
5261
|
+
id: string;
|
|
5262
|
+
scope: "member" | "project";
|
|
5263
|
+
period: "lifetime" | "day";
|
|
5264
|
+
limit: number;
|
|
5265
|
+
cost: number | {
|
|
5266
|
+
balance: string;
|
|
5267
|
+
};
|
|
5268
|
+
}[];
|
|
4428
5269
|
code: string;
|
|
4429
5270
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
4430
5271
|
id: string;
|
|
@@ -4481,6 +5322,25 @@ declare function createManagementClient(options: {
|
|
|
4481
5322
|
};
|
|
4482
5323
|
integrations: "discord"[];
|
|
4483
5324
|
fields: Record<string, {
|
|
5325
|
+
kind: "datetime";
|
|
5326
|
+
default: string;
|
|
5327
|
+
label: string;
|
|
5328
|
+
description?: string | undefined;
|
|
5329
|
+
} | {
|
|
5330
|
+
kind: "resource";
|
|
5331
|
+
default: string;
|
|
5332
|
+
source: {
|
|
5333
|
+
provider: "discord";
|
|
5334
|
+
resource: "channel";
|
|
5335
|
+
types: ("text" | "announcement")[];
|
|
5336
|
+
} | {
|
|
5337
|
+
provider: "discord";
|
|
5338
|
+
resource: "role";
|
|
5339
|
+
assignable: boolean;
|
|
5340
|
+
};
|
|
5341
|
+
label: string;
|
|
5342
|
+
description?: string | undefined;
|
|
5343
|
+
} | {
|
|
4484
5344
|
kind: "quiz";
|
|
4485
5345
|
default: {
|
|
4486
5346
|
id: string;
|
|
@@ -4550,6 +5410,11 @@ declare function createManagementClient(options: {
|
|
|
4550
5410
|
};
|
|
4551
5411
|
};
|
|
4552
5412
|
tier: string;
|
|
5413
|
+
} | {
|
|
5414
|
+
kind: "integration";
|
|
5415
|
+
provider: "discord";
|
|
5416
|
+
action: "grant-role";
|
|
5417
|
+
roleId: string;
|
|
4553
5418
|
})[];
|
|
4554
5419
|
humanReview: boolean;
|
|
4555
5420
|
trigger: {
|
|
@@ -4558,6 +5423,10 @@ declare function createManagementClient(options: {
|
|
|
4558
5423
|
actor?: "staff" | "member" | undefined;
|
|
4559
5424
|
} | {
|
|
4560
5425
|
kind: "automatic";
|
|
5426
|
+
observation?: {
|
|
5427
|
+
source: string;
|
|
5428
|
+
type: string;
|
|
5429
|
+
} | undefined;
|
|
4561
5430
|
};
|
|
4562
5431
|
requires: {
|
|
4563
5432
|
quest: string;
|
|
@@ -4565,7 +5434,19 @@ declare function createManagementClient(options: {
|
|
|
4565
5434
|
}[];
|
|
4566
5435
|
completion: {
|
|
4567
5436
|
kind: "once";
|
|
5437
|
+
} | {
|
|
5438
|
+
kind: "keyed";
|
|
4568
5439
|
};
|
|
5440
|
+
visibility: "visible" | "hidden";
|
|
5441
|
+
budgets: {
|
|
5442
|
+
id: string;
|
|
5443
|
+
scope: "project" | "member";
|
|
5444
|
+
period: "day" | "lifetime";
|
|
5445
|
+
limit: number;
|
|
5446
|
+
cost: number | {
|
|
5447
|
+
balance: string;
|
|
5448
|
+
};
|
|
5449
|
+
}[];
|
|
4569
5450
|
code: string;
|
|
4570
5451
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
4571
5452
|
id: string;
|
|
@@ -4746,6 +5627,25 @@ declare function createManagementClient(options: {
|
|
|
4746
5627
|
};
|
|
4747
5628
|
integrations: "discord"[];
|
|
4748
5629
|
fields: Record<string, {
|
|
5630
|
+
kind: "datetime";
|
|
5631
|
+
default: string;
|
|
5632
|
+
label: string;
|
|
5633
|
+
description?: string | undefined;
|
|
5634
|
+
} | {
|
|
5635
|
+
kind: "resource";
|
|
5636
|
+
default: string;
|
|
5637
|
+
source: {
|
|
5638
|
+
provider: "discord";
|
|
5639
|
+
resource: "channel";
|
|
5640
|
+
types: ("text" | "announcement")[];
|
|
5641
|
+
} | {
|
|
5642
|
+
provider: "discord";
|
|
5643
|
+
resource: "role";
|
|
5644
|
+
assignable: boolean;
|
|
5645
|
+
};
|
|
5646
|
+
label: string;
|
|
5647
|
+
description?: string | undefined;
|
|
5648
|
+
} | {
|
|
4749
5649
|
kind: "quiz";
|
|
4750
5650
|
default: {
|
|
4751
5651
|
id: string;
|
|
@@ -4815,6 +5715,11 @@ declare function createManagementClient(options: {
|
|
|
4815
5715
|
kind: "points";
|
|
4816
5716
|
balance: string;
|
|
4817
5717
|
amount: number;
|
|
5718
|
+
} | {
|
|
5719
|
+
kind: "integration";
|
|
5720
|
+
provider: "discord";
|
|
5721
|
+
action: "grant-role";
|
|
5722
|
+
roleId: string;
|
|
4818
5723
|
})[];
|
|
4819
5724
|
humanReview: boolean;
|
|
4820
5725
|
trigger: {
|
|
@@ -4823,6 +5728,10 @@ declare function createManagementClient(options: {
|
|
|
4823
5728
|
actor?: "member" | "staff" | undefined;
|
|
4824
5729
|
} | {
|
|
4825
5730
|
kind: "automatic";
|
|
5731
|
+
observation?: {
|
|
5732
|
+
source: string;
|
|
5733
|
+
type: string;
|
|
5734
|
+
} | undefined;
|
|
4826
5735
|
};
|
|
4827
5736
|
requires: {
|
|
4828
5737
|
quest: string;
|
|
@@ -4830,7 +5739,19 @@ declare function createManagementClient(options: {
|
|
|
4830
5739
|
}[];
|
|
4831
5740
|
completion: {
|
|
4832
5741
|
kind: "once";
|
|
5742
|
+
} | {
|
|
5743
|
+
kind: "keyed";
|
|
4833
5744
|
};
|
|
5745
|
+
visibility: "visible" | "hidden";
|
|
5746
|
+
budgets: {
|
|
5747
|
+
id: string;
|
|
5748
|
+
scope: "member" | "project";
|
|
5749
|
+
period: "lifetime" | "day";
|
|
5750
|
+
limit: number;
|
|
5751
|
+
cost: number | {
|
|
5752
|
+
balance: string;
|
|
5753
|
+
};
|
|
5754
|
+
}[];
|
|
4834
5755
|
code: string;
|
|
4835
5756
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
4836
5757
|
id: string;
|
|
@@ -4887,6 +5808,25 @@ declare function createManagementClient(options: {
|
|
|
4887
5808
|
};
|
|
4888
5809
|
integrations: "discord"[];
|
|
4889
5810
|
fields: Record<string, {
|
|
5811
|
+
kind: "datetime";
|
|
5812
|
+
default: string;
|
|
5813
|
+
label: string;
|
|
5814
|
+
description?: string | undefined;
|
|
5815
|
+
} | {
|
|
5816
|
+
kind: "resource";
|
|
5817
|
+
default: string;
|
|
5818
|
+
source: {
|
|
5819
|
+
provider: "discord";
|
|
5820
|
+
resource: "channel";
|
|
5821
|
+
types: ("text" | "announcement")[];
|
|
5822
|
+
} | {
|
|
5823
|
+
provider: "discord";
|
|
5824
|
+
resource: "role";
|
|
5825
|
+
assignable: boolean;
|
|
5826
|
+
};
|
|
5827
|
+
label: string;
|
|
5828
|
+
description?: string | undefined;
|
|
5829
|
+
} | {
|
|
4890
5830
|
kind: "quiz";
|
|
4891
5831
|
default: {
|
|
4892
5832
|
id: string;
|
|
@@ -4956,6 +5896,11 @@ declare function createManagementClient(options: {
|
|
|
4956
5896
|
};
|
|
4957
5897
|
};
|
|
4958
5898
|
tier: string;
|
|
5899
|
+
} | {
|
|
5900
|
+
kind: "integration";
|
|
5901
|
+
provider: "discord";
|
|
5902
|
+
action: "grant-role";
|
|
5903
|
+
roleId: string;
|
|
4959
5904
|
})[];
|
|
4960
5905
|
humanReview: boolean;
|
|
4961
5906
|
trigger: {
|
|
@@ -4964,6 +5909,10 @@ declare function createManagementClient(options: {
|
|
|
4964
5909
|
actor?: "staff" | "member" | undefined;
|
|
4965
5910
|
} | {
|
|
4966
5911
|
kind: "automatic";
|
|
5912
|
+
observation?: {
|
|
5913
|
+
source: string;
|
|
5914
|
+
type: string;
|
|
5915
|
+
} | undefined;
|
|
4967
5916
|
};
|
|
4968
5917
|
requires: {
|
|
4969
5918
|
quest: string;
|
|
@@ -4971,7 +5920,19 @@ declare function createManagementClient(options: {
|
|
|
4971
5920
|
}[];
|
|
4972
5921
|
completion: {
|
|
4973
5922
|
kind: "once";
|
|
5923
|
+
} | {
|
|
5924
|
+
kind: "keyed";
|
|
4974
5925
|
};
|
|
5926
|
+
visibility: "visible" | "hidden";
|
|
5927
|
+
budgets: {
|
|
5928
|
+
id: string;
|
|
5929
|
+
scope: "project" | "member";
|
|
5930
|
+
period: "day" | "lifetime";
|
|
5931
|
+
limit: number;
|
|
5932
|
+
cost: number | {
|
|
5933
|
+
balance: string;
|
|
5934
|
+
};
|
|
5935
|
+
}[];
|
|
4975
5936
|
code: string;
|
|
4976
5937
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
4977
5938
|
id: string;
|
|
@@ -5096,6 +6057,25 @@ declare function createManagementClient(options: {
|
|
|
5096
6057
|
};
|
|
5097
6058
|
integrations: "discord"[];
|
|
5098
6059
|
fields: Record<string, {
|
|
6060
|
+
kind: "datetime";
|
|
6061
|
+
default: string;
|
|
6062
|
+
label: string;
|
|
6063
|
+
description?: string | undefined;
|
|
6064
|
+
} | {
|
|
6065
|
+
kind: "resource";
|
|
6066
|
+
default: string;
|
|
6067
|
+
source: {
|
|
6068
|
+
provider: "discord";
|
|
6069
|
+
resource: "channel";
|
|
6070
|
+
types: ("text" | "announcement")[];
|
|
6071
|
+
} | {
|
|
6072
|
+
provider: "discord";
|
|
6073
|
+
resource: "role";
|
|
6074
|
+
assignable: boolean;
|
|
6075
|
+
};
|
|
6076
|
+
label: string;
|
|
6077
|
+
description?: string | undefined;
|
|
6078
|
+
} | {
|
|
5099
6079
|
kind: "quiz";
|
|
5100
6080
|
default: {
|
|
5101
6081
|
id: string;
|
|
@@ -5165,6 +6145,11 @@ declare function createManagementClient(options: {
|
|
|
5165
6145
|
kind: "points";
|
|
5166
6146
|
balance: string;
|
|
5167
6147
|
amount: number;
|
|
6148
|
+
} | {
|
|
6149
|
+
kind: "integration";
|
|
6150
|
+
provider: "discord";
|
|
6151
|
+
action: "grant-role";
|
|
6152
|
+
roleId: string;
|
|
5168
6153
|
})[];
|
|
5169
6154
|
humanReview: boolean;
|
|
5170
6155
|
trigger: {
|
|
@@ -5173,6 +6158,10 @@ declare function createManagementClient(options: {
|
|
|
5173
6158
|
actor?: "member" | "staff" | undefined;
|
|
5174
6159
|
} | {
|
|
5175
6160
|
kind: "automatic";
|
|
6161
|
+
observation?: {
|
|
6162
|
+
source: string;
|
|
6163
|
+
type: string;
|
|
6164
|
+
} | undefined;
|
|
5176
6165
|
};
|
|
5177
6166
|
requires: {
|
|
5178
6167
|
quest: string;
|
|
@@ -5180,7 +6169,19 @@ declare function createManagementClient(options: {
|
|
|
5180
6169
|
}[];
|
|
5181
6170
|
completion: {
|
|
5182
6171
|
kind: "once";
|
|
6172
|
+
} | {
|
|
6173
|
+
kind: "keyed";
|
|
5183
6174
|
};
|
|
6175
|
+
visibility: "visible" | "hidden";
|
|
6176
|
+
budgets: {
|
|
6177
|
+
id: string;
|
|
6178
|
+
scope: "member" | "project";
|
|
6179
|
+
period: "lifetime" | "day";
|
|
6180
|
+
limit: number;
|
|
6181
|
+
cost: number | {
|
|
6182
|
+
balance: string;
|
|
6183
|
+
};
|
|
6184
|
+
}[];
|
|
5184
6185
|
code: string;
|
|
5185
6186
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
5186
6187
|
id: string;
|
|
@@ -5237,6 +6238,25 @@ declare function createManagementClient(options: {
|
|
|
5237
6238
|
};
|
|
5238
6239
|
integrations: "discord"[];
|
|
5239
6240
|
fields: Record<string, {
|
|
6241
|
+
kind: "datetime";
|
|
6242
|
+
default: string;
|
|
6243
|
+
label: string;
|
|
6244
|
+
description?: string | undefined;
|
|
6245
|
+
} | {
|
|
6246
|
+
kind: "resource";
|
|
6247
|
+
default: string;
|
|
6248
|
+
source: {
|
|
6249
|
+
provider: "discord";
|
|
6250
|
+
resource: "channel";
|
|
6251
|
+
types: ("text" | "announcement")[];
|
|
6252
|
+
} | {
|
|
6253
|
+
provider: "discord";
|
|
6254
|
+
resource: "role";
|
|
6255
|
+
assignable: boolean;
|
|
6256
|
+
};
|
|
6257
|
+
label: string;
|
|
6258
|
+
description?: string | undefined;
|
|
6259
|
+
} | {
|
|
5240
6260
|
kind: "quiz";
|
|
5241
6261
|
default: {
|
|
5242
6262
|
id: string;
|
|
@@ -5306,6 +6326,11 @@ declare function createManagementClient(options: {
|
|
|
5306
6326
|
};
|
|
5307
6327
|
};
|
|
5308
6328
|
tier: string;
|
|
6329
|
+
} | {
|
|
6330
|
+
kind: "integration";
|
|
6331
|
+
provider: "discord";
|
|
6332
|
+
action: "grant-role";
|
|
6333
|
+
roleId: string;
|
|
5309
6334
|
})[];
|
|
5310
6335
|
humanReview: boolean;
|
|
5311
6336
|
trigger: {
|
|
@@ -5314,6 +6339,10 @@ declare function createManagementClient(options: {
|
|
|
5314
6339
|
actor?: "staff" | "member" | undefined;
|
|
5315
6340
|
} | {
|
|
5316
6341
|
kind: "automatic";
|
|
6342
|
+
observation?: {
|
|
6343
|
+
source: string;
|
|
6344
|
+
type: string;
|
|
6345
|
+
} | undefined;
|
|
5317
6346
|
};
|
|
5318
6347
|
requires: {
|
|
5319
6348
|
quest: string;
|
|
@@ -5321,7 +6350,19 @@ declare function createManagementClient(options: {
|
|
|
5321
6350
|
}[];
|
|
5322
6351
|
completion: {
|
|
5323
6352
|
kind: "once";
|
|
6353
|
+
} | {
|
|
6354
|
+
kind: "keyed";
|
|
5324
6355
|
};
|
|
6356
|
+
visibility: "visible" | "hidden";
|
|
6357
|
+
budgets: {
|
|
6358
|
+
id: string;
|
|
6359
|
+
scope: "project" | "member";
|
|
6360
|
+
period: "day" | "lifetime";
|
|
6361
|
+
limit: number;
|
|
6362
|
+
cost: number | {
|
|
6363
|
+
balance: string;
|
|
6364
|
+
};
|
|
6365
|
+
}[];
|
|
5325
6366
|
code: string;
|
|
5326
6367
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
5327
6368
|
id: string;
|
|
@@ -5615,6 +6656,7 @@ declare function createManagementClient(options: {
|
|
|
5615
6656
|
admin: boolean;
|
|
5616
6657
|
local: boolean;
|
|
5617
6658
|
projects: {
|
|
6659
|
+
slug: string;
|
|
5618
6660
|
id: string;
|
|
5619
6661
|
organization: string;
|
|
5620
6662
|
project: string;
|
|
@@ -5622,7 +6664,7 @@ declare function createManagementClient(options: {
|
|
|
5622
6664
|
subtitle: string;
|
|
5623
6665
|
initials: string;
|
|
5624
6666
|
color: string;
|
|
5625
|
-
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
|
|
6667
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "observe")[];
|
|
5626
6668
|
environments: ("test" | "live")[];
|
|
5627
6669
|
setup?: {
|
|
5628
6670
|
mode: "new" | "existing";
|
|
@@ -5631,6 +6673,7 @@ declare function createManagementClient(options: {
|
|
|
5631
6673
|
}[];
|
|
5632
6674
|
}>;
|
|
5633
6675
|
createProject: (input: z.infer<typeof projectInputSchema>) => Promise<{
|
|
6676
|
+
slug: string;
|
|
5634
6677
|
id: string;
|
|
5635
6678
|
organization: string;
|
|
5636
6679
|
project: string;
|
|
@@ -5638,13 +6681,27 @@ declare function createManagementClient(options: {
|
|
|
5638
6681
|
subtitle: string;
|
|
5639
6682
|
initials: string;
|
|
5640
6683
|
color: string;
|
|
5641
|
-
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
|
|
6684
|
+
permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "observe")[];
|
|
5642
6685
|
environments: ("test" | "live")[];
|
|
5643
6686
|
setup?: {
|
|
5644
6687
|
mode: "new" | "existing";
|
|
5645
6688
|
brief: string;
|
|
5646
6689
|
} | undefined;
|
|
5647
6690
|
}>;
|
|
6691
|
+
people: (members: string[]) => Promise<{
|
|
6692
|
+
id: string;
|
|
6693
|
+
accounts: {
|
|
6694
|
+
provider: string;
|
|
6695
|
+
subject: string;
|
|
6696
|
+
signInEnabled: boolean;
|
|
6697
|
+
profile?: {
|
|
6698
|
+
emailVerified: boolean;
|
|
6699
|
+
name?: string | undefined;
|
|
6700
|
+
email?: string | undefined;
|
|
6701
|
+
imageUrl?: string | undefined;
|
|
6702
|
+
} | undefined;
|
|
6703
|
+
}[];
|
|
6704
|
+
}[]>;
|
|
5648
6705
|
page: (page: string, query: Partial<ListQuery> & {
|
|
5649
6706
|
detail?: string;
|
|
5650
6707
|
}) => Promise<{
|
|
@@ -5675,6 +6732,25 @@ declare function createManagementClient(options: {
|
|
|
5675
6732
|
};
|
|
5676
6733
|
integrations: "discord"[];
|
|
5677
6734
|
fields: Record<string, {
|
|
6735
|
+
kind: "datetime";
|
|
6736
|
+
default: string;
|
|
6737
|
+
label: string;
|
|
6738
|
+
description?: string | undefined;
|
|
6739
|
+
} | {
|
|
6740
|
+
kind: "resource";
|
|
6741
|
+
default: string;
|
|
6742
|
+
source: {
|
|
6743
|
+
provider: "discord";
|
|
6744
|
+
resource: "channel";
|
|
6745
|
+
types: ("text" | "announcement")[];
|
|
6746
|
+
} | {
|
|
6747
|
+
provider: "discord";
|
|
6748
|
+
resource: "role";
|
|
6749
|
+
assignable: boolean;
|
|
6750
|
+
};
|
|
6751
|
+
label: string;
|
|
6752
|
+
description?: string | undefined;
|
|
6753
|
+
} | {
|
|
5678
6754
|
kind: "quiz";
|
|
5679
6755
|
default: {
|
|
5680
6756
|
id: string;
|
|
@@ -5744,6 +6820,11 @@ declare function createManagementClient(options: {
|
|
|
5744
6820
|
kind: "points";
|
|
5745
6821
|
balance: string;
|
|
5746
6822
|
amount: number;
|
|
6823
|
+
} | {
|
|
6824
|
+
kind: "integration";
|
|
6825
|
+
provider: "discord";
|
|
6826
|
+
action: "grant-role";
|
|
6827
|
+
roleId: string;
|
|
5747
6828
|
})[];
|
|
5748
6829
|
humanReview: boolean;
|
|
5749
6830
|
trigger: {
|
|
@@ -5752,6 +6833,10 @@ declare function createManagementClient(options: {
|
|
|
5752
6833
|
actor?: "staff" | "member" | undefined;
|
|
5753
6834
|
} | {
|
|
5754
6835
|
kind: "automatic";
|
|
6836
|
+
observation?: {
|
|
6837
|
+
source: string;
|
|
6838
|
+
type: string;
|
|
6839
|
+
} | undefined;
|
|
5755
6840
|
};
|
|
5756
6841
|
requires: {
|
|
5757
6842
|
quest: string;
|
|
@@ -5759,7 +6844,19 @@ declare function createManagementClient(options: {
|
|
|
5759
6844
|
}[];
|
|
5760
6845
|
completion: {
|
|
5761
6846
|
kind: "once";
|
|
6847
|
+
} | {
|
|
6848
|
+
kind: "keyed";
|
|
5762
6849
|
};
|
|
6850
|
+
visibility: "visible" | "hidden";
|
|
6851
|
+
budgets: {
|
|
6852
|
+
id: string;
|
|
6853
|
+
scope: "member" | "project";
|
|
6854
|
+
period: "lifetime" | "day";
|
|
6855
|
+
limit: number;
|
|
6856
|
+
cost: number | {
|
|
6857
|
+
balance: string;
|
|
6858
|
+
};
|
|
6859
|
+
}[];
|
|
5763
6860
|
code: string;
|
|
5764
6861
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
5765
6862
|
id: string;
|
|
@@ -5816,6 +6913,25 @@ declare function createManagementClient(options: {
|
|
|
5816
6913
|
};
|
|
5817
6914
|
integrations: "discord"[];
|
|
5818
6915
|
fields: Record<string, {
|
|
6916
|
+
kind: "datetime";
|
|
6917
|
+
default: string;
|
|
6918
|
+
label: string;
|
|
6919
|
+
description?: string | undefined;
|
|
6920
|
+
} | {
|
|
6921
|
+
kind: "resource";
|
|
6922
|
+
default: string;
|
|
6923
|
+
source: {
|
|
6924
|
+
provider: "discord";
|
|
6925
|
+
resource: "channel";
|
|
6926
|
+
types: ("text" | "announcement")[];
|
|
6927
|
+
} | {
|
|
6928
|
+
provider: "discord";
|
|
6929
|
+
resource: "role";
|
|
6930
|
+
assignable: boolean;
|
|
6931
|
+
};
|
|
6932
|
+
label: string;
|
|
6933
|
+
description?: string | undefined;
|
|
6934
|
+
} | {
|
|
5819
6935
|
kind: "quiz";
|
|
5820
6936
|
default: {
|
|
5821
6937
|
id: string;
|
|
@@ -5885,6 +7001,11 @@ declare function createManagementClient(options: {
|
|
|
5885
7001
|
};
|
|
5886
7002
|
};
|
|
5887
7003
|
tier: string;
|
|
7004
|
+
} | {
|
|
7005
|
+
kind: "integration";
|
|
7006
|
+
provider: "discord";
|
|
7007
|
+
action: "grant-role";
|
|
7008
|
+
roleId: string;
|
|
5888
7009
|
})[];
|
|
5889
7010
|
humanReview: boolean;
|
|
5890
7011
|
trigger: {
|
|
@@ -5893,6 +7014,10 @@ declare function createManagementClient(options: {
|
|
|
5893
7014
|
actor?: "staff" | "member" | undefined;
|
|
5894
7015
|
} | {
|
|
5895
7016
|
kind: "automatic";
|
|
7017
|
+
observation?: {
|
|
7018
|
+
source: string;
|
|
7019
|
+
type: string;
|
|
7020
|
+
} | undefined;
|
|
5896
7021
|
};
|
|
5897
7022
|
requires: {
|
|
5898
7023
|
quest: string;
|
|
@@ -5900,7 +7025,19 @@ declare function createManagementClient(options: {
|
|
|
5900
7025
|
}[];
|
|
5901
7026
|
completion: {
|
|
5902
7027
|
kind: "once";
|
|
7028
|
+
} | {
|
|
7029
|
+
kind: "keyed";
|
|
5903
7030
|
};
|
|
7031
|
+
visibility: "visible" | "hidden";
|
|
7032
|
+
budgets: {
|
|
7033
|
+
id: string;
|
|
7034
|
+
scope: "project" | "member";
|
|
7035
|
+
period: "day" | "lifetime";
|
|
7036
|
+
limit: number;
|
|
7037
|
+
cost: number | {
|
|
7038
|
+
balance: string;
|
|
7039
|
+
};
|
|
7040
|
+
}[];
|
|
5904
7041
|
code: string;
|
|
5905
7042
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
5906
7043
|
id: string;
|
|
@@ -5933,6 +7070,7 @@ declare function createManagementClient(options: {
|
|
|
5933
7070
|
} | undefined;
|
|
5934
7071
|
})[];
|
|
5935
7072
|
completions: {
|
|
7073
|
+
key: string;
|
|
5936
7074
|
id: string;
|
|
5937
7075
|
quest: string;
|
|
5938
7076
|
member: string;
|
|
@@ -6046,6 +7184,11 @@ declare function createManagementClient(options: {
|
|
|
6046
7184
|
};
|
|
6047
7185
|
};
|
|
6048
7186
|
tier: string;
|
|
7187
|
+
} | {
|
|
7188
|
+
kind: "integration";
|
|
7189
|
+
provider: "discord";
|
|
7190
|
+
action: "grant-role";
|
|
7191
|
+
roleId: string;
|
|
6049
7192
|
})[] | null;
|
|
6050
7193
|
createdAt: number;
|
|
6051
7194
|
input?: {
|
|
@@ -6090,6 +7233,20 @@ declare function createManagementClient(options: {
|
|
|
6090
7233
|
rewards: number;
|
|
6091
7234
|
lastActivity: number | null;
|
|
6092
7235
|
}[];
|
|
7236
|
+
people: {
|
|
7237
|
+
id: string;
|
|
7238
|
+
accounts: {
|
|
7239
|
+
provider: string;
|
|
7240
|
+
subject: string;
|
|
7241
|
+
signInEnabled: boolean;
|
|
7242
|
+
profile?: {
|
|
7243
|
+
emailVerified: boolean;
|
|
7244
|
+
name?: string | undefined;
|
|
7245
|
+
email?: string | undefined;
|
|
7246
|
+
imageUrl?: string | undefined;
|
|
7247
|
+
} | undefined;
|
|
7248
|
+
}[];
|
|
7249
|
+
}[];
|
|
6093
7250
|
metrics: {
|
|
6094
7251
|
quests: number;
|
|
6095
7252
|
members: number;
|
|
@@ -6126,6 +7283,23 @@ declare function createManagementClient(options: {
|
|
|
6126
7283
|
}[];
|
|
6127
7284
|
questCounts: Record<string, number>;
|
|
6128
7285
|
}>;
|
|
7286
|
+
rewardDeliveries: (member?: string) => Promise<{
|
|
7287
|
+
deliveries: {
|
|
7288
|
+
id: string;
|
|
7289
|
+
quest: string;
|
|
7290
|
+
completion: string;
|
|
7291
|
+
member: string;
|
|
7292
|
+
provider: "discord";
|
|
7293
|
+
action: "grant-role";
|
|
7294
|
+
roleId: string;
|
|
7295
|
+
status: "pending" | "delivered";
|
|
7296
|
+
attempts: number;
|
|
7297
|
+
nextAt: number;
|
|
7298
|
+
lastError: string | null;
|
|
7299
|
+
createdAt: number;
|
|
7300
|
+
deliveredAt: number | null;
|
|
7301
|
+
}[];
|
|
7302
|
+
}>;
|
|
6129
7303
|
member: (id: string) => Promise<{
|
|
6130
7304
|
snapshot: {
|
|
6131
7305
|
releases: ({
|
|
@@ -6154,6 +7328,25 @@ declare function createManagementClient(options: {
|
|
|
6154
7328
|
};
|
|
6155
7329
|
integrations: "discord"[];
|
|
6156
7330
|
fields: Record<string, {
|
|
7331
|
+
kind: "datetime";
|
|
7332
|
+
default: string;
|
|
7333
|
+
label: string;
|
|
7334
|
+
description?: string | undefined;
|
|
7335
|
+
} | {
|
|
7336
|
+
kind: "resource";
|
|
7337
|
+
default: string;
|
|
7338
|
+
source: {
|
|
7339
|
+
provider: "discord";
|
|
7340
|
+
resource: "channel";
|
|
7341
|
+
types: ("text" | "announcement")[];
|
|
7342
|
+
} | {
|
|
7343
|
+
provider: "discord";
|
|
7344
|
+
resource: "role";
|
|
7345
|
+
assignable: boolean;
|
|
7346
|
+
};
|
|
7347
|
+
label: string;
|
|
7348
|
+
description?: string | undefined;
|
|
7349
|
+
} | {
|
|
6157
7350
|
kind: "quiz";
|
|
6158
7351
|
default: {
|
|
6159
7352
|
id: string;
|
|
@@ -6223,6 +7416,11 @@ declare function createManagementClient(options: {
|
|
|
6223
7416
|
kind: "points";
|
|
6224
7417
|
balance: string;
|
|
6225
7418
|
amount: number;
|
|
7419
|
+
} | {
|
|
7420
|
+
kind: "integration";
|
|
7421
|
+
provider: "discord";
|
|
7422
|
+
action: "grant-role";
|
|
7423
|
+
roleId: string;
|
|
6226
7424
|
})[];
|
|
6227
7425
|
humanReview: boolean;
|
|
6228
7426
|
trigger: {
|
|
@@ -6231,6 +7429,10 @@ declare function createManagementClient(options: {
|
|
|
6231
7429
|
actor?: "staff" | "member" | undefined;
|
|
6232
7430
|
} | {
|
|
6233
7431
|
kind: "automatic";
|
|
7432
|
+
observation?: {
|
|
7433
|
+
source: string;
|
|
7434
|
+
type: string;
|
|
7435
|
+
} | undefined;
|
|
6234
7436
|
};
|
|
6235
7437
|
requires: {
|
|
6236
7438
|
quest: string;
|
|
@@ -6238,7 +7440,19 @@ declare function createManagementClient(options: {
|
|
|
6238
7440
|
}[];
|
|
6239
7441
|
completion: {
|
|
6240
7442
|
kind: "once";
|
|
7443
|
+
} | {
|
|
7444
|
+
kind: "keyed";
|
|
6241
7445
|
};
|
|
7446
|
+
visibility: "visible" | "hidden";
|
|
7447
|
+
budgets: {
|
|
7448
|
+
id: string;
|
|
7449
|
+
scope: "member" | "project";
|
|
7450
|
+
period: "lifetime" | "day";
|
|
7451
|
+
limit: number;
|
|
7452
|
+
cost: number | {
|
|
7453
|
+
balance: string;
|
|
7454
|
+
};
|
|
7455
|
+
}[];
|
|
6242
7456
|
code: string;
|
|
6243
7457
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
6244
7458
|
id: string;
|
|
@@ -6295,6 +7509,25 @@ declare function createManagementClient(options: {
|
|
|
6295
7509
|
};
|
|
6296
7510
|
integrations: "discord"[];
|
|
6297
7511
|
fields: Record<string, {
|
|
7512
|
+
kind: "datetime";
|
|
7513
|
+
default: string;
|
|
7514
|
+
label: string;
|
|
7515
|
+
description?: string | undefined;
|
|
7516
|
+
} | {
|
|
7517
|
+
kind: "resource";
|
|
7518
|
+
default: string;
|
|
7519
|
+
source: {
|
|
7520
|
+
provider: "discord";
|
|
7521
|
+
resource: "channel";
|
|
7522
|
+
types: ("text" | "announcement")[];
|
|
7523
|
+
} | {
|
|
7524
|
+
provider: "discord";
|
|
7525
|
+
resource: "role";
|
|
7526
|
+
assignable: boolean;
|
|
7527
|
+
};
|
|
7528
|
+
label: string;
|
|
7529
|
+
description?: string | undefined;
|
|
7530
|
+
} | {
|
|
6298
7531
|
kind: "quiz";
|
|
6299
7532
|
default: {
|
|
6300
7533
|
id: string;
|
|
@@ -6364,6 +7597,11 @@ declare function createManagementClient(options: {
|
|
|
6364
7597
|
};
|
|
6365
7598
|
};
|
|
6366
7599
|
tier: string;
|
|
7600
|
+
} | {
|
|
7601
|
+
kind: "integration";
|
|
7602
|
+
provider: "discord";
|
|
7603
|
+
action: "grant-role";
|
|
7604
|
+
roleId: string;
|
|
6367
7605
|
})[];
|
|
6368
7606
|
humanReview: boolean;
|
|
6369
7607
|
trigger: {
|
|
@@ -6372,6 +7610,10 @@ declare function createManagementClient(options: {
|
|
|
6372
7610
|
actor?: "staff" | "member" | undefined;
|
|
6373
7611
|
} | {
|
|
6374
7612
|
kind: "automatic";
|
|
7613
|
+
observation?: {
|
|
7614
|
+
source: string;
|
|
7615
|
+
type: string;
|
|
7616
|
+
} | undefined;
|
|
6375
7617
|
};
|
|
6376
7618
|
requires: {
|
|
6377
7619
|
quest: string;
|
|
@@ -6379,7 +7621,19 @@ declare function createManagementClient(options: {
|
|
|
6379
7621
|
}[];
|
|
6380
7622
|
completion: {
|
|
6381
7623
|
kind: "once";
|
|
7624
|
+
} | {
|
|
7625
|
+
kind: "keyed";
|
|
6382
7626
|
};
|
|
7627
|
+
visibility: "visible" | "hidden";
|
|
7628
|
+
budgets: {
|
|
7629
|
+
id: string;
|
|
7630
|
+
scope: "project" | "member";
|
|
7631
|
+
period: "day" | "lifetime";
|
|
7632
|
+
limit: number;
|
|
7633
|
+
cost: number | {
|
|
7634
|
+
balance: string;
|
|
7635
|
+
};
|
|
7636
|
+
}[];
|
|
6383
7637
|
code: string;
|
|
6384
7638
|
provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
|
|
6385
7639
|
id: string;
|
|
@@ -6412,6 +7666,7 @@ declare function createManagementClient(options: {
|
|
|
6412
7666
|
} | undefined;
|
|
6413
7667
|
})[];
|
|
6414
7668
|
completions: {
|
|
7669
|
+
key: string;
|
|
6415
7670
|
id: string;
|
|
6416
7671
|
quest: string;
|
|
6417
7672
|
member: string;
|
|
@@ -6525,6 +7780,11 @@ declare function createManagementClient(options: {
|
|
|
6525
7780
|
};
|
|
6526
7781
|
};
|
|
6527
7782
|
tier: string;
|
|
7783
|
+
} | {
|
|
7784
|
+
kind: "integration";
|
|
7785
|
+
provider: "discord";
|
|
7786
|
+
action: "grant-role";
|
|
7787
|
+
roleId: string;
|
|
6528
7788
|
})[] | null;
|
|
6529
7789
|
createdAt: number;
|
|
6530
7790
|
input?: {
|
|
@@ -6601,6 +7861,10 @@ declare function createManagementClient(options: {
|
|
|
6601
7861
|
actor?: "staff" | "member" | undefined;
|
|
6602
7862
|
} | {
|
|
6603
7863
|
kind: "automatic";
|
|
7864
|
+
observation?: {
|
|
7865
|
+
source: string;
|
|
7866
|
+
type: string;
|
|
7867
|
+
} | undefined;
|
|
6604
7868
|
};
|
|
6605
7869
|
availability: {
|
|
6606
7870
|
kind: "available";
|
|
@@ -6617,6 +7881,10 @@ declare function createManagementClient(options: {
|
|
|
6617
7881
|
kind: "staff-required";
|
|
6618
7882
|
} | {
|
|
6619
7883
|
kind: "automatic";
|
|
7884
|
+
observation?: {
|
|
7885
|
+
source: string;
|
|
7886
|
+
type: string;
|
|
7887
|
+
} | undefined;
|
|
6620
7888
|
} | {
|
|
6621
7889
|
kind: "checking";
|
|
6622
7890
|
attempt: string;
|
|
@@ -6628,6 +7896,13 @@ declare function createManagementClient(options: {
|
|
|
6628
7896
|
attempt: string;
|
|
6629
7897
|
};
|
|
6630
7898
|
completed: boolean;
|
|
7899
|
+
completion: {
|
|
7900
|
+
kind: "once";
|
|
7901
|
+
} | {
|
|
7902
|
+
kind: "keyed";
|
|
7903
|
+
};
|
|
7904
|
+
completionCount: number;
|
|
7905
|
+
visibility: "visible" | "hidden";
|
|
6631
7906
|
missing: {
|
|
6632
7907
|
quest: string;
|
|
6633
7908
|
title: string;
|
|
@@ -6664,6 +7939,11 @@ declare function createManagementClient(options: {
|
|
|
6664
7939
|
};
|
|
6665
7940
|
};
|
|
6666
7941
|
tier: string;
|
|
7942
|
+
} | {
|
|
7943
|
+
kind: "integration";
|
|
7944
|
+
provider: "discord";
|
|
7945
|
+
action: "grant-role";
|
|
7946
|
+
roleId: string;
|
|
6667
7947
|
})[] | null;
|
|
6668
7948
|
createdAt: number;
|
|
6669
7949
|
input?: {
|
|
@@ -6781,4 +8061,4 @@ declare function createManagementClient(options: {
|
|
|
6781
8061
|
}>;
|
|
6782
8062
|
};
|
|
6783
8063
|
|
|
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 };
|
|
8064
|
+
export { type Access, type AuditRecord, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type HostedBuild, type ListQuery, type ManagementPage, type Permission, type Person, type Project, accessSchema, accountProfileSchema, appRoutingSchema, assetPathSchema, auditRecordSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, environmentSchema, grantSchema, hostedAppSchema, hostedBuildSchema, inventorySchema, memberAccountSchema, memberDetailSchema, memberSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, permissionSchema, personSchema, projectInputSchema, projectSchema, projectSetupSchema, querySchema, readinessSchema, repositorySchema, rolePermissions, roleSchema, stageRequestSchema, stockInputSchema, tokenInputSchema, tokenSchema };
|