@domino-sdk/relay-cli 0.5.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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
4
  declare const appRoutingSchema: z.ZodDefault<z.ZodEnum<{
@@ -86,8 +86,8 @@ declare const buildPhaseSchema: z.ZodEnum<{
86
86
  check: "check";
87
87
  failed: "failed";
88
88
  ready: "ready";
89
- queued: "queued";
90
89
  source: "source";
90
+ queued: "queued";
91
91
  install: "install";
92
92
  build: "build";
93
93
  deploy: "deploy";
@@ -97,8 +97,8 @@ declare const buildStatusSchema: z.ZodObject<{
97
97
  check: "check";
98
98
  failed: "failed";
99
99
  ready: "ready";
100
- queued: "queued";
101
100
  source: "source";
101
+ queued: "queued";
102
102
  install: "install";
103
103
  build: "build";
104
104
  deploy: "deploy";
@@ -107,8 +107,8 @@ declare const buildStatusSchema: z.ZodObject<{
107
107
  check: "check";
108
108
  failed: "failed";
109
109
  ready: "ready";
110
- queued: "queued";
111
110
  source: "source";
111
+ queued: "queued";
112
112
  install: "install";
113
113
  build: "build";
114
114
  deploy: "deploy";
@@ -142,8 +142,8 @@ declare const hostedBuildSchema: z.ZodObject<{
142
142
  check: "check";
143
143
  failed: "failed";
144
144
  ready: "ready";
145
- queued: "queued";
146
145
  source: "source";
146
+ queued: "queued";
147
147
  install: "install";
148
148
  build: "build";
149
149
  deploy: "deploy";
@@ -152,8 +152,8 @@ declare const hostedBuildSchema: z.ZodObject<{
152
152
  check: "check";
153
153
  failed: "failed";
154
154
  ready: "ready";
155
- queued: "queued";
156
155
  source: "source";
156
+ queued: "queued";
157
157
  install: "install";
158
158
  build: "build";
159
159
  deploy: "deploy";
@@ -188,8 +188,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
188
188
  check: "check";
189
189
  failed: "failed";
190
190
  ready: "ready";
191
- queued: "queued";
192
191
  source: "source";
192
+ queued: "queued";
193
193
  install: "install";
194
194
  build: "build";
195
195
  deploy: "deploy";
@@ -198,8 +198,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
198
198
  check: "check";
199
199
  failed: "failed";
200
200
  ready: "ready";
201
- queued: "queued";
202
201
  source: "source";
202
+ queued: "queued";
203
203
  install: "install";
204
204
  build: "build";
205
205
  deploy: "deploy";
@@ -232,8 +232,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
232
232
  check: "check";
233
233
  failed: "failed";
234
234
  ready: "ready";
235
- queued: "queued";
236
235
  source: "source";
236
+ queued: "queued";
237
237
  install: "install";
238
238
  build: "build";
239
239
  deploy: "deploy";
@@ -242,8 +242,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
242
242
  check: "check";
243
243
  failed: "failed";
244
244
  ready: "ready";
245
- queued: "queued";
246
245
  source: "source";
246
+ queued: "queued";
247
247
  install: "install";
248
248
  build: "build";
249
249
  deploy: "deploy";
@@ -276,8 +276,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
276
276
  check: "check";
277
277
  failed: "failed";
278
278
  ready: "ready";
279
- queued: "queued";
280
279
  source: "source";
280
+ queued: "queued";
281
281
  install: "install";
282
282
  build: "build";
283
283
  deploy: "deploy";
@@ -286,8 +286,8 @@ declare const buildSnapshotSchema: z.ZodObject<{
286
286
  check: "check";
287
287
  failed: "failed";
288
288
  ready: "ready";
289
- queued: "queued";
290
289
  source: "source";
290
+ queued: "queued";
291
291
  install: "install";
292
292
  build: "build";
293
293
  deploy: "deploy";
@@ -385,6 +385,7 @@ declare const permissionSchema: z.ZodEnum<{
385
385
  inventory: "inventory";
386
386
  access: "access";
387
387
  points: "points";
388
+ observe: "observe";
388
389
  }>;
389
390
  type Permission = z.infer<typeof permissionSchema>;
390
391
  declare const rolePermissions: Record<z.infer<typeof roleSchema>, Permission[]>;
@@ -420,6 +421,7 @@ declare const projectSchema: z.ZodObject<{
420
421
  inventory: "inventory";
421
422
  access: "access";
422
423
  points: "points";
424
+ observe: "observe";
423
425
  }>>;
424
426
  environments: z.ZodArray<z.ZodEnum<{
425
427
  test: "test";
@@ -480,6 +482,7 @@ declare const accessSchema: z.ZodObject<{
480
482
  inventory: "inventory";
481
483
  access: "access";
482
484
  points: "points";
485
+ observe: "observe";
483
486
  }>>;
484
487
  environments: z.ZodArray<z.ZodEnum<{
485
488
  test: "test";
@@ -545,6 +548,22 @@ declare const memberSchema: z.ZodObject<{
545
548
  rewards: z.ZodNumber;
546
549
  lastActivity: z.ZodNullable<z.ZodNumber>;
547
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>;
548
567
  declare const metricsSchema: z.ZodObject<{
549
568
  quests: z.ZodNumber;
550
569
  members: z.ZodNumber;
@@ -610,6 +629,28 @@ declare const pageSchema: z.ZodObject<{
610
629
  discord: "discord";
611
630
  }>>>;
612
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<{
613
654
  kind: z.ZodLiteral<"quiz">;
614
655
  default: z.ZodArray<z.ZodObject<{
615
656
  id: z.ZodString;
@@ -679,6 +720,11 @@ declare const pageSchema: z.ZodObject<{
679
720
  }, z.core.$strict>;
680
721
  }, z.core.$strict>;
681
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;
682
728
  }, z.core.$strict>]>>;
683
729
  humanReview: z.ZodBoolean;
684
730
  trigger: z.ZodUnion<readonly [z.ZodObject<{
@@ -694,14 +740,39 @@ declare const pageSchema: z.ZodObject<{
694
740
  }>>;
695
741
  }, z.core.$strict>, z.ZodObject<{
696
742
  kind: z.ZodLiteral<"automatic">;
743
+ observation: z.ZodOptional<z.ZodObject<{
744
+ source: z.ZodString;
745
+ type: z.ZodString;
746
+ }, z.core.$strict>>;
697
747
  }, z.core.$strict>]>;
698
748
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
699
749
  quest: z.ZodString;
700
750
  scope: z.ZodLiteral<"ever">;
701
751
  }, z.core.$strict>>>;
702
- completion: z.ZodObject<{
752
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
703
753
  kind: z.ZodLiteral<"once">;
704
- }, 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>>>;
705
776
  code: z.ZodString;
706
777
  provider: z.ZodEnum<{
707
778
  "fixture-pass": "fixture-pass";
@@ -768,6 +839,11 @@ declare const pageSchema: z.ZodObject<{
768
839
  }, z.core.$strict>;
769
840
  }, z.core.$strict>;
770
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;
771
847
  }, z.core.$strict>]>>;
772
848
  code: z.ZodString;
773
849
  provider: z.ZodEnum<{
@@ -805,6 +881,25 @@ declare const pageSchema: z.ZodObject<{
805
881
  };
806
882
  integrations: "discord"[];
807
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
+ } | {
808
903
  kind: "quiz";
809
904
  default: {
810
905
  id: string;
@@ -874,6 +969,11 @@ declare const pageSchema: z.ZodObject<{
874
969
  kind: "points";
875
970
  balance: string;
876
971
  amount: number;
972
+ } | {
973
+ kind: "integration";
974
+ provider: "discord";
975
+ action: "grant-role";
976
+ roleId: string;
877
977
  })[];
878
978
  humanReview: boolean;
879
979
  trigger: {
@@ -882,6 +982,10 @@ declare const pageSchema: z.ZodObject<{
882
982
  actor?: "staff" | "member" | undefined;
883
983
  } | {
884
984
  kind: "automatic";
985
+ observation?: {
986
+ source: string;
987
+ type: string;
988
+ } | undefined;
885
989
  };
886
990
  requires: {
887
991
  quest: string;
@@ -889,7 +993,19 @@ declare const pageSchema: z.ZodObject<{
889
993
  }[];
890
994
  completion: {
891
995
  kind: "once";
996
+ } | {
997
+ kind: "keyed";
892
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
+ }[];
893
1009
  code: string;
894
1010
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
895
1011
  id: string;
@@ -946,6 +1062,11 @@ declare const pageSchema: z.ZodObject<{
946
1062
  kind: "points";
947
1063
  balance: string;
948
1064
  amount: number;
1065
+ } | {
1066
+ kind: "integration";
1067
+ provider: "discord";
1068
+ action: "grant-role";
1069
+ roleId: string;
949
1070
  })[];
950
1071
  code: string;
951
1072
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
@@ -953,6 +1074,7 @@ declare const pageSchema: z.ZodObject<{
953
1074
  createdAt: number;
954
1075
  }>>]>>;
955
1076
  completions: z.ZodArray<z.ZodObject<{
1077
+ key: z.ZodDefault<z.ZodString>;
956
1078
  id: z.ZodString;
957
1079
  quest: z.ZodString;
958
1080
  member: z.ZodString;
@@ -1080,6 +1202,11 @@ declare const pageSchema: z.ZodObject<{
1080
1202
  }, z.core.$strict>;
1081
1203
  }, z.core.$strict>;
1082
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;
1083
1210
  }, z.core.$strict>]>>>>;
1084
1211
  createdAt: z.ZodNumber;
1085
1212
  }, z.core.$strip>>;
@@ -1117,6 +1244,20 @@ declare const pageSchema: z.ZodObject<{
1117
1244
  rewards: z.ZodNumber;
1118
1245
  lastActivity: z.ZodNullable<z.ZodNumber>;
1119
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>>>;
1120
1261
  metrics: z.ZodObject<{
1121
1262
  quests: z.ZodNumber;
1122
1263
  members: z.ZodNumber;
@@ -1184,6 +1325,28 @@ declare const memberDetailSchema: z.ZodObject<{
1184
1325
  discord: "discord";
1185
1326
  }>>>;
1186
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<{
1187
1350
  kind: z.ZodLiteral<"quiz">;
1188
1351
  default: z.ZodArray<z.ZodObject<{
1189
1352
  id: z.ZodString;
@@ -1253,6 +1416,11 @@ declare const memberDetailSchema: z.ZodObject<{
1253
1416
  }, z.core.$strict>;
1254
1417
  }, z.core.$strict>;
1255
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;
1256
1424
  }, z.core.$strict>]>>;
1257
1425
  humanReview: z.ZodBoolean;
1258
1426
  trigger: z.ZodUnion<readonly [z.ZodObject<{
@@ -1268,14 +1436,39 @@ declare const memberDetailSchema: z.ZodObject<{
1268
1436
  }>>;
1269
1437
  }, z.core.$strict>, z.ZodObject<{
1270
1438
  kind: z.ZodLiteral<"automatic">;
1439
+ observation: z.ZodOptional<z.ZodObject<{
1440
+ source: z.ZodString;
1441
+ type: z.ZodString;
1442
+ }, z.core.$strict>>;
1271
1443
  }, z.core.$strict>]>;
1272
1444
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1273
1445
  quest: z.ZodString;
1274
1446
  scope: z.ZodLiteral<"ever">;
1275
1447
  }, z.core.$strict>>>;
1276
- completion: z.ZodObject<{
1448
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1277
1449
  kind: z.ZodLiteral<"once">;
1278
- }, 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>>>;
1279
1472
  code: z.ZodString;
1280
1473
  provider: z.ZodEnum<{
1281
1474
  "fixture-pass": "fixture-pass";
@@ -1342,6 +1535,11 @@ declare const memberDetailSchema: z.ZodObject<{
1342
1535
  }, z.core.$strict>;
1343
1536
  }, z.core.$strict>;
1344
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;
1345
1543
  }, z.core.$strict>]>>;
1346
1544
  code: z.ZodString;
1347
1545
  provider: z.ZodEnum<{
@@ -1379,6 +1577,25 @@ declare const memberDetailSchema: z.ZodObject<{
1379
1577
  };
1380
1578
  integrations: "discord"[];
1381
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
+ } | {
1382
1599
  kind: "quiz";
1383
1600
  default: {
1384
1601
  id: string;
@@ -1448,6 +1665,11 @@ declare const memberDetailSchema: z.ZodObject<{
1448
1665
  kind: "points";
1449
1666
  balance: string;
1450
1667
  amount: number;
1668
+ } | {
1669
+ kind: "integration";
1670
+ provider: "discord";
1671
+ action: "grant-role";
1672
+ roleId: string;
1451
1673
  })[];
1452
1674
  humanReview: boolean;
1453
1675
  trigger: {
@@ -1456,6 +1678,10 @@ declare const memberDetailSchema: z.ZodObject<{
1456
1678
  actor?: "staff" | "member" | undefined;
1457
1679
  } | {
1458
1680
  kind: "automatic";
1681
+ observation?: {
1682
+ source: string;
1683
+ type: string;
1684
+ } | undefined;
1459
1685
  };
1460
1686
  requires: {
1461
1687
  quest: string;
@@ -1463,7 +1689,19 @@ declare const memberDetailSchema: z.ZodObject<{
1463
1689
  }[];
1464
1690
  completion: {
1465
1691
  kind: "once";
1692
+ } | {
1693
+ kind: "keyed";
1466
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
+ }[];
1467
1705
  code: string;
1468
1706
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
1469
1707
  id: string;
@@ -1520,6 +1758,11 @@ declare const memberDetailSchema: z.ZodObject<{
1520
1758
  kind: "points";
1521
1759
  balance: string;
1522
1760
  amount: number;
1761
+ } | {
1762
+ kind: "integration";
1763
+ provider: "discord";
1764
+ action: "grant-role";
1765
+ roleId: string;
1523
1766
  })[];
1524
1767
  code: string;
1525
1768
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
@@ -1527,6 +1770,7 @@ declare const memberDetailSchema: z.ZodObject<{
1527
1770
  createdAt: number;
1528
1771
  }>>]>>;
1529
1772
  completions: z.ZodArray<z.ZodObject<{
1773
+ key: z.ZodDefault<z.ZodString>;
1530
1774
  id: z.ZodString;
1531
1775
  quest: z.ZodString;
1532
1776
  member: z.ZodString;
@@ -1654,6 +1898,11 @@ declare const memberDetailSchema: z.ZodObject<{
1654
1898
  }, z.core.$strict>;
1655
1899
  }, z.core.$strict>;
1656
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;
1657
1906
  }, z.core.$strict>]>>>>;
1658
1907
  createdAt: z.ZodNumber;
1659
1908
  }, z.core.$strip>>;
@@ -1736,6 +1985,10 @@ declare const memberDetailSchema: z.ZodObject<{
1736
1985
  }>>;
1737
1986
  }, z.core.$strict>, z.ZodObject<{
1738
1987
  kind: z.ZodLiteral<"automatic">;
1988
+ observation: z.ZodOptional<z.ZodObject<{
1989
+ source: z.ZodString;
1990
+ type: z.ZodString;
1991
+ }, z.core.$strict>>;
1739
1992
  }, z.core.$strict>]>;
1740
1993
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1741
1994
  kind: z.ZodLiteral<"available">;
@@ -1756,6 +2009,10 @@ declare const memberDetailSchema: z.ZodObject<{
1756
2009
  kind: z.ZodLiteral<"staff-required">;
1757
2010
  }, z.core.$strict>, z.ZodObject<{
1758
2011
  kind: z.ZodLiteral<"automatic">;
2012
+ observation: z.ZodOptional<z.ZodObject<{
2013
+ source: z.ZodString;
2014
+ type: z.ZodString;
2015
+ }, z.core.$strict>>;
1759
2016
  }, z.core.$strict>, z.ZodObject<{
1760
2017
  kind: z.ZodLiteral<"checking">;
1761
2018
  attempt: z.ZodString;
@@ -1767,6 +2024,16 @@ declare const memberDetailSchema: z.ZodObject<{
1767
2024
  attempt: z.ZodString;
1768
2025
  }, z.core.$strict>], "kind">;
1769
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
+ }>>;
1770
2037
  missing: z.ZodArray<z.ZodObject<{
1771
2038
  quest: z.ZodString;
1772
2039
  title: z.ZodString;
@@ -1817,6 +2084,11 @@ declare const memberDetailSchema: z.ZodObject<{
1817
2084
  }, z.core.$strict>;
1818
2085
  }, z.core.$strict>;
1819
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;
1820
2092
  }, z.core.$strict>]>>>>;
1821
2093
  createdAt: z.ZodNumber;
1822
2094
  }, z.core.$strip>>;
@@ -1945,6 +2217,7 @@ declare const tokenInputSchema: z.ZodObject<{
1945
2217
  inventory: "inventory";
1946
2218
  access: "access";
1947
2219
  points: "points";
2220
+ observe: "observe";
1948
2221
  }>>;
1949
2222
  days: z.ZodDefault<z.ZodNumber>;
1950
2223
  }, z.core.$strict>;
@@ -1965,6 +2238,7 @@ declare const tokenSchema: z.ZodObject<{
1965
2238
  inventory: "inventory";
1966
2239
  access: "access";
1967
2240
  points: "points";
2241
+ observe: "observe";
1968
2242
  }>>;
1969
2243
  expiresAt: z.ZodNumber;
1970
2244
  }, z.core.$strip>;
@@ -1977,6 +2251,14 @@ declare function createManagementClient(options: {
1977
2251
  }): {
1978
2252
  raw: (path: string, init?: RequestInit) => Promise<Response>;
1979
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
+ };
1980
2262
  points: {
1981
2263
  update: (input: z.input<typeof pointsMutationSchema>) => Promise<{
1982
2264
  entry: {
@@ -2339,6 +2621,25 @@ declare function createManagementClient(options: {
2339
2621
  };
2340
2622
  integrations: "discord"[];
2341
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
+ } | {
2342
2643
  kind: "quiz";
2343
2644
  default: {
2344
2645
  id: string;
@@ -2408,6 +2709,11 @@ declare function createManagementClient(options: {
2408
2709
  kind: "points";
2409
2710
  balance: string;
2410
2711
  amount: number;
2712
+ } | {
2713
+ kind: "integration";
2714
+ provider: "discord";
2715
+ action: "grant-role";
2716
+ roleId: string;
2411
2717
  })[];
2412
2718
  humanReview: boolean;
2413
2719
  trigger: {
@@ -2416,6 +2722,10 @@ declare function createManagementClient(options: {
2416
2722
  actor?: "member" | "staff" | undefined;
2417
2723
  } | {
2418
2724
  kind: "automatic";
2725
+ observation?: {
2726
+ source: string;
2727
+ type: string;
2728
+ } | undefined;
2419
2729
  };
2420
2730
  requires: {
2421
2731
  quest: string;
@@ -2423,7 +2733,19 @@ declare function createManagementClient(options: {
2423
2733
  }[];
2424
2734
  completion: {
2425
2735
  kind: "once";
2736
+ } | {
2737
+ kind: "keyed";
2426
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
+ }[];
2427
2749
  code: string;
2428
2750
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
2429
2751
  id: string;
@@ -2480,6 +2802,25 @@ declare function createManagementClient(options: {
2480
2802
  };
2481
2803
  integrations: "discord"[];
2482
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
+ } | {
2483
2824
  kind: "quiz";
2484
2825
  default: {
2485
2826
  id: string;
@@ -2549,6 +2890,11 @@ declare function createManagementClient(options: {
2549
2890
  };
2550
2891
  };
2551
2892
  tier: string;
2893
+ } | {
2894
+ kind: "integration";
2895
+ provider: "discord";
2896
+ action: "grant-role";
2897
+ roleId: string;
2552
2898
  })[];
2553
2899
  humanReview: boolean;
2554
2900
  trigger: {
@@ -2557,6 +2903,10 @@ declare function createManagementClient(options: {
2557
2903
  actor?: "staff" | "member" | undefined;
2558
2904
  } | {
2559
2905
  kind: "automatic";
2906
+ observation?: {
2907
+ source: string;
2908
+ type: string;
2909
+ } | undefined;
2560
2910
  };
2561
2911
  requires: {
2562
2912
  quest: string;
@@ -2564,7 +2914,19 @@ declare function createManagementClient(options: {
2564
2914
  }[];
2565
2915
  completion: {
2566
2916
  kind: "once";
2917
+ } | {
2918
+ kind: "keyed";
2567
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
+ }[];
2568
2930
  code: string;
2569
2931
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
2570
2932
  id: string;
@@ -2626,6 +2988,25 @@ declare function createManagementClient(options: {
2626
2988
  };
2627
2989
  integrations: "discord"[];
2628
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
+ } | {
2629
3010
  kind: "quiz";
2630
3011
  default: {
2631
3012
  id: string;
@@ -2695,6 +3076,11 @@ declare function createManagementClient(options: {
2695
3076
  };
2696
3077
  };
2697
3078
  tier: string;
3079
+ } | {
3080
+ kind: "integration";
3081
+ provider: "discord";
3082
+ action: "grant-role";
3083
+ roleId: string;
2698
3084
  })[];
2699
3085
  humanReview: boolean;
2700
3086
  trigger: {
@@ -2703,6 +3089,10 @@ declare function createManagementClient(options: {
2703
3089
  actor?: "staff" | "member" | undefined;
2704
3090
  } | {
2705
3091
  kind: "automatic";
3092
+ observation?: {
3093
+ source: string;
3094
+ type: string;
3095
+ } | undefined;
2706
3096
  };
2707
3097
  requires: {
2708
3098
  quest: string;
@@ -2710,7 +3100,19 @@ declare function createManagementClient(options: {
2710
3100
  }[];
2711
3101
  completion: {
2712
3102
  kind: "once";
3103
+ } | {
3104
+ kind: "keyed";
2713
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
+ }[];
2714
3116
  };
2715
3117
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
2716
3118
  createdAt: number;
@@ -2971,6 +3373,25 @@ declare function createManagementClient(options: {
2971
3373
  };
2972
3374
  integrations: "discord"[];
2973
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
+ } | {
2974
3395
  kind: "quiz";
2975
3396
  default: {
2976
3397
  id: string;
@@ -3040,6 +3461,11 @@ declare function createManagementClient(options: {
3040
3461
  kind: "points";
3041
3462
  balance: string;
3042
3463
  amount: number;
3464
+ } | {
3465
+ kind: "integration";
3466
+ provider: "discord";
3467
+ action: "grant-role";
3468
+ roleId: string;
3043
3469
  })[];
3044
3470
  humanReview: boolean;
3045
3471
  trigger: {
@@ -3048,6 +3474,10 @@ declare function createManagementClient(options: {
3048
3474
  actor?: "member" | "staff" | undefined;
3049
3475
  } | {
3050
3476
  kind: "automatic";
3477
+ observation?: {
3478
+ source: string;
3479
+ type: string;
3480
+ } | undefined;
3051
3481
  };
3052
3482
  requires: {
3053
3483
  quest: string;
@@ -3055,7 +3485,19 @@ declare function createManagementClient(options: {
3055
3485
  }[];
3056
3486
  completion: {
3057
3487
  kind: "once";
3488
+ } | {
3489
+ kind: "keyed";
3058
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
+ }[];
3059
3501
  code: string;
3060
3502
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3061
3503
  id: string;
@@ -3112,6 +3554,25 @@ declare function createManagementClient(options: {
3112
3554
  };
3113
3555
  integrations: "discord"[];
3114
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
+ } | {
3115
3576
  kind: "quiz";
3116
3577
  default: {
3117
3578
  id: string;
@@ -3181,6 +3642,11 @@ declare function createManagementClient(options: {
3181
3642
  };
3182
3643
  };
3183
3644
  tier: string;
3645
+ } | {
3646
+ kind: "integration";
3647
+ provider: "discord";
3648
+ action: "grant-role";
3649
+ roleId: string;
3184
3650
  })[];
3185
3651
  humanReview: boolean;
3186
3652
  trigger: {
@@ -3189,6 +3655,10 @@ declare function createManagementClient(options: {
3189
3655
  actor?: "staff" | "member" | undefined;
3190
3656
  } | {
3191
3657
  kind: "automatic";
3658
+ observation?: {
3659
+ source: string;
3660
+ type: string;
3661
+ } | undefined;
3192
3662
  };
3193
3663
  requires: {
3194
3664
  quest: string;
@@ -3196,7 +3666,19 @@ declare function createManagementClient(options: {
3196
3666
  }[];
3197
3667
  completion: {
3198
3668
  kind: "once";
3669
+ } | {
3670
+ kind: "keyed";
3199
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
+ }[];
3200
3682
  code: string;
3201
3683
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3202
3684
  id: string;
@@ -3258,6 +3740,25 @@ declare function createManagementClient(options: {
3258
3740
  };
3259
3741
  integrations: "discord"[];
3260
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
+ } | {
3261
3762
  kind: "quiz";
3262
3763
  default: {
3263
3764
  id: string;
@@ -3327,6 +3828,11 @@ declare function createManagementClient(options: {
3327
3828
  };
3328
3829
  };
3329
3830
  tier: string;
3831
+ } | {
3832
+ kind: "integration";
3833
+ provider: "discord";
3834
+ action: "grant-role";
3835
+ roleId: string;
3330
3836
  })[];
3331
3837
  humanReview: boolean;
3332
3838
  trigger: {
@@ -3335,6 +3841,10 @@ declare function createManagementClient(options: {
3335
3841
  actor?: "staff" | "member" | undefined;
3336
3842
  } | {
3337
3843
  kind: "automatic";
3844
+ observation?: {
3845
+ source: string;
3846
+ type: string;
3847
+ } | undefined;
3338
3848
  };
3339
3849
  requires: {
3340
3850
  quest: string;
@@ -3342,7 +3852,19 @@ declare function createManagementClient(options: {
3342
3852
  }[];
3343
3853
  completion: {
3344
3854
  kind: "once";
3855
+ } | {
3856
+ kind: "keyed";
3345
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
+ }[];
3346
3868
  };
3347
3869
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3348
3870
  createdAt: number;
@@ -3609,6 +4131,25 @@ declare function createManagementClient(options: {
3609
4131
  };
3610
4132
  integrations: "discord"[];
3611
4133
  fields: Record<string, {
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
+ } | {
3612
4153
  kind: "quiz";
3613
4154
  default: {
3614
4155
  id: string;
@@ -3678,6 +4219,11 @@ declare function createManagementClient(options: {
3678
4219
  };
3679
4220
  };
3680
4221
  tier: string;
4222
+ } | {
4223
+ kind: "integration";
4224
+ provider: "discord";
4225
+ action: "grant-role";
4226
+ roleId: string;
3681
4227
  })[];
3682
4228
  humanReview: boolean;
3683
4229
  trigger: {
@@ -3686,6 +4232,10 @@ declare function createManagementClient(options: {
3686
4232
  actor?: "staff" | "member" | undefined;
3687
4233
  } | {
3688
4234
  kind: "automatic";
4235
+ observation?: {
4236
+ source: string;
4237
+ type: string;
4238
+ } | undefined;
3689
4239
  };
3690
4240
  requires: {
3691
4241
  quest: string;
@@ -3693,7 +4243,19 @@ declare function createManagementClient(options: {
3693
4243
  }[];
3694
4244
  completion: {
3695
4245
  kind: "once";
4246
+ } | {
4247
+ kind: "keyed";
3696
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
+ }[];
3697
4259
  };
3698
4260
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3699
4261
  createdAt: number;
@@ -3805,7 +4367,26 @@ declare function createManagementClient(options: {
3805
4367
  };
3806
4368
  integrations: "discord"[];
3807
4369
  fields: Record<string, {
3808
- kind: "quiz";
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
+ } | {
4389
+ kind: "quiz";
3809
4390
  default: {
3810
4391
  id: string;
3811
4392
  prompt: string;
@@ -3874,6 +4455,11 @@ declare function createManagementClient(options: {
3874
4455
  kind: "points";
3875
4456
  balance: string;
3876
4457
  amount: number;
4458
+ } | {
4459
+ kind: "integration";
4460
+ provider: "discord";
4461
+ action: "grant-role";
4462
+ roleId: string;
3877
4463
  })[];
3878
4464
  humanReview: boolean;
3879
4465
  trigger: {
@@ -3882,6 +4468,10 @@ declare function createManagementClient(options: {
3882
4468
  actor?: "member" | "staff" | undefined;
3883
4469
  } | {
3884
4470
  kind: "automatic";
4471
+ observation?: {
4472
+ source: string;
4473
+ type: string;
4474
+ } | undefined;
3885
4475
  };
3886
4476
  requires: {
3887
4477
  quest: string;
@@ -3889,7 +4479,19 @@ declare function createManagementClient(options: {
3889
4479
  }[];
3890
4480
  completion: {
3891
4481
  kind: "once";
4482
+ } | {
4483
+ kind: "keyed";
3892
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
+ }[];
3893
4495
  code: string;
3894
4496
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3895
4497
  id: string;
@@ -3946,6 +4548,25 @@ declare function createManagementClient(options: {
3946
4548
  };
3947
4549
  integrations: "discord"[];
3948
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
+ } | {
3949
4570
  kind: "quiz";
3950
4571
  default: {
3951
4572
  id: string;
@@ -4015,6 +4636,11 @@ declare function createManagementClient(options: {
4015
4636
  };
4016
4637
  };
4017
4638
  tier: string;
4639
+ } | {
4640
+ kind: "integration";
4641
+ provider: "discord";
4642
+ action: "grant-role";
4643
+ roleId: string;
4018
4644
  })[];
4019
4645
  humanReview: boolean;
4020
4646
  trigger: {
@@ -4023,6 +4649,10 @@ declare function createManagementClient(options: {
4023
4649
  actor?: "staff" | "member" | undefined;
4024
4650
  } | {
4025
4651
  kind: "automatic";
4652
+ observation?: {
4653
+ source: string;
4654
+ type: string;
4655
+ } | undefined;
4026
4656
  };
4027
4657
  requires: {
4028
4658
  quest: string;
@@ -4030,7 +4660,19 @@ declare function createManagementClient(options: {
4030
4660
  }[];
4031
4661
  completion: {
4032
4662
  kind: "once";
4663
+ } | {
4664
+ kind: "keyed";
4033
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
+ }[];
4034
4676
  code: string;
4035
4677
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4036
4678
  id: string;
@@ -4096,6 +4738,25 @@ declare function createManagementClient(options: {
4096
4738
  };
4097
4739
  integrations: "discord"[];
4098
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
+ } | {
4099
4760
  kind: "quiz";
4100
4761
  default: {
4101
4762
  id: string;
@@ -4165,6 +4826,11 @@ declare function createManagementClient(options: {
4165
4826
  };
4166
4827
  };
4167
4828
  tier: string;
4829
+ } | {
4830
+ kind: "integration";
4831
+ provider: "discord";
4832
+ action: "grant-role";
4833
+ roleId: string;
4168
4834
  })[];
4169
4835
  humanReview: boolean;
4170
4836
  trigger: {
@@ -4173,6 +4839,10 @@ declare function createManagementClient(options: {
4173
4839
  actor?: "staff" | "member" | undefined;
4174
4840
  } | {
4175
4841
  kind: "automatic";
4842
+ observation?: {
4843
+ source: string;
4844
+ type: string;
4845
+ } | undefined;
4176
4846
  };
4177
4847
  requires: {
4178
4848
  quest: string;
@@ -4180,7 +4850,19 @@ declare function createManagementClient(options: {
4180
4850
  }[];
4181
4851
  completion: {
4182
4852
  kind: "once";
4853
+ } | {
4854
+ kind: "keyed";
4183
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
+ }[];
4184
4866
  };
4185
4867
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4186
4868
  createdAt: number;
@@ -4223,6 +4905,25 @@ declare function createManagementClient(options: {
4223
4905
  };
4224
4906
  integrations: "discord"[];
4225
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
+ } | {
4226
4927
  kind: "quiz";
4227
4928
  default: {
4228
4929
  id: string;
@@ -4292,6 +4993,11 @@ declare function createManagementClient(options: {
4292
4993
  };
4293
4994
  };
4294
4995
  tier: string;
4996
+ } | {
4997
+ kind: "integration";
4998
+ provider: "discord";
4999
+ action: "grant-role";
5000
+ roleId: string;
4295
5001
  })[];
4296
5002
  humanReview: boolean;
4297
5003
  trigger: {
@@ -4300,6 +5006,10 @@ declare function createManagementClient(options: {
4300
5006
  actor?: "staff" | "member" | undefined;
4301
5007
  } | {
4302
5008
  kind: "automatic";
5009
+ observation?: {
5010
+ source: string;
5011
+ type: string;
5012
+ } | undefined;
4303
5013
  };
4304
5014
  requires: {
4305
5015
  quest: string;
@@ -4307,7 +5017,19 @@ declare function createManagementClient(options: {
4307
5017
  }[];
4308
5018
  completion: {
4309
5019
  kind: "once";
5020
+ } | {
5021
+ kind: "keyed";
4310
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
+ }[];
4311
5033
  };
4312
5034
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4313
5035
  createdAt: number;
@@ -4419,6 +5141,25 @@ declare function createManagementClient(options: {
4419
5141
  };
4420
5142
  integrations: "discord"[];
4421
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
+ } | {
4422
5163
  kind: "quiz";
4423
5164
  default: {
4424
5165
  id: string;
@@ -4488,6 +5229,11 @@ declare function createManagementClient(options: {
4488
5229
  kind: "points";
4489
5230
  balance: string;
4490
5231
  amount: number;
5232
+ } | {
5233
+ kind: "integration";
5234
+ provider: "discord";
5235
+ action: "grant-role";
5236
+ roleId: string;
4491
5237
  })[];
4492
5238
  humanReview: boolean;
4493
5239
  trigger: {
@@ -4496,6 +5242,10 @@ declare function createManagementClient(options: {
4496
5242
  actor?: "member" | "staff" | undefined;
4497
5243
  } | {
4498
5244
  kind: "automatic";
5245
+ observation?: {
5246
+ source: string;
5247
+ type: string;
5248
+ } | undefined;
4499
5249
  };
4500
5250
  requires: {
4501
5251
  quest: string;
@@ -4503,7 +5253,19 @@ declare function createManagementClient(options: {
4503
5253
  }[];
4504
5254
  completion: {
4505
5255
  kind: "once";
5256
+ } | {
5257
+ kind: "keyed";
4506
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
+ }[];
4507
5269
  code: string;
4508
5270
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4509
5271
  id: string;
@@ -4560,6 +5322,25 @@ declare function createManagementClient(options: {
4560
5322
  };
4561
5323
  integrations: "discord"[];
4562
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
+ } | {
4563
5344
  kind: "quiz";
4564
5345
  default: {
4565
5346
  id: string;
@@ -4629,6 +5410,11 @@ declare function createManagementClient(options: {
4629
5410
  };
4630
5411
  };
4631
5412
  tier: string;
5413
+ } | {
5414
+ kind: "integration";
5415
+ provider: "discord";
5416
+ action: "grant-role";
5417
+ roleId: string;
4632
5418
  })[];
4633
5419
  humanReview: boolean;
4634
5420
  trigger: {
@@ -4637,6 +5423,10 @@ declare function createManagementClient(options: {
4637
5423
  actor?: "staff" | "member" | undefined;
4638
5424
  } | {
4639
5425
  kind: "automatic";
5426
+ observation?: {
5427
+ source: string;
5428
+ type: string;
5429
+ } | undefined;
4640
5430
  };
4641
5431
  requires: {
4642
5432
  quest: string;
@@ -4644,7 +5434,19 @@ declare function createManagementClient(options: {
4644
5434
  }[];
4645
5435
  completion: {
4646
5436
  kind: "once";
5437
+ } | {
5438
+ kind: "keyed";
4647
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
+ }[];
4648
5450
  code: string;
4649
5451
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4650
5452
  id: string;
@@ -4825,6 +5627,25 @@ declare function createManagementClient(options: {
4825
5627
  };
4826
5628
  integrations: "discord"[];
4827
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
+ } | {
4828
5649
  kind: "quiz";
4829
5650
  default: {
4830
5651
  id: string;
@@ -4894,6 +5715,11 @@ declare function createManagementClient(options: {
4894
5715
  kind: "points";
4895
5716
  balance: string;
4896
5717
  amount: number;
5718
+ } | {
5719
+ kind: "integration";
5720
+ provider: "discord";
5721
+ action: "grant-role";
5722
+ roleId: string;
4897
5723
  })[];
4898
5724
  humanReview: boolean;
4899
5725
  trigger: {
@@ -4902,6 +5728,10 @@ declare function createManagementClient(options: {
4902
5728
  actor?: "member" | "staff" | undefined;
4903
5729
  } | {
4904
5730
  kind: "automatic";
5731
+ observation?: {
5732
+ source: string;
5733
+ type: string;
5734
+ } | undefined;
4905
5735
  };
4906
5736
  requires: {
4907
5737
  quest: string;
@@ -4909,7 +5739,19 @@ declare function createManagementClient(options: {
4909
5739
  }[];
4910
5740
  completion: {
4911
5741
  kind: "once";
5742
+ } | {
5743
+ kind: "keyed";
4912
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
+ }[];
4913
5755
  code: string;
4914
5756
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4915
5757
  id: string;
@@ -4966,6 +5808,25 @@ declare function createManagementClient(options: {
4966
5808
  };
4967
5809
  integrations: "discord"[];
4968
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
+ } | {
4969
5830
  kind: "quiz";
4970
5831
  default: {
4971
5832
  id: string;
@@ -5035,6 +5896,11 @@ declare function createManagementClient(options: {
5035
5896
  };
5036
5897
  };
5037
5898
  tier: string;
5899
+ } | {
5900
+ kind: "integration";
5901
+ provider: "discord";
5902
+ action: "grant-role";
5903
+ roleId: string;
5038
5904
  })[];
5039
5905
  humanReview: boolean;
5040
5906
  trigger: {
@@ -5043,6 +5909,10 @@ declare function createManagementClient(options: {
5043
5909
  actor?: "staff" | "member" | undefined;
5044
5910
  } | {
5045
5911
  kind: "automatic";
5912
+ observation?: {
5913
+ source: string;
5914
+ type: string;
5915
+ } | undefined;
5046
5916
  };
5047
5917
  requires: {
5048
5918
  quest: string;
@@ -5050,7 +5920,19 @@ declare function createManagementClient(options: {
5050
5920
  }[];
5051
5921
  completion: {
5052
5922
  kind: "once";
5923
+ } | {
5924
+ kind: "keyed";
5053
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
+ }[];
5054
5936
  code: string;
5055
5937
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
5056
5938
  id: string;
@@ -5175,6 +6057,25 @@ declare function createManagementClient(options: {
5175
6057
  };
5176
6058
  integrations: "discord"[];
5177
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
+ } | {
5178
6079
  kind: "quiz";
5179
6080
  default: {
5180
6081
  id: string;
@@ -5244,6 +6145,11 @@ declare function createManagementClient(options: {
5244
6145
  kind: "points";
5245
6146
  balance: string;
5246
6147
  amount: number;
6148
+ } | {
6149
+ kind: "integration";
6150
+ provider: "discord";
6151
+ action: "grant-role";
6152
+ roleId: string;
5247
6153
  })[];
5248
6154
  humanReview: boolean;
5249
6155
  trigger: {
@@ -5252,6 +6158,10 @@ declare function createManagementClient(options: {
5252
6158
  actor?: "member" | "staff" | undefined;
5253
6159
  } | {
5254
6160
  kind: "automatic";
6161
+ observation?: {
6162
+ source: string;
6163
+ type: string;
6164
+ } | undefined;
5255
6165
  };
5256
6166
  requires: {
5257
6167
  quest: string;
@@ -5259,7 +6169,19 @@ declare function createManagementClient(options: {
5259
6169
  }[];
5260
6170
  completion: {
5261
6171
  kind: "once";
6172
+ } | {
6173
+ kind: "keyed";
5262
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
+ }[];
5263
6185
  code: string;
5264
6186
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
5265
6187
  id: string;
@@ -5316,6 +6238,25 @@ declare function createManagementClient(options: {
5316
6238
  };
5317
6239
  integrations: "discord"[];
5318
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
+ } | {
5319
6260
  kind: "quiz";
5320
6261
  default: {
5321
6262
  id: string;
@@ -5385,6 +6326,11 @@ declare function createManagementClient(options: {
5385
6326
  };
5386
6327
  };
5387
6328
  tier: string;
6329
+ } | {
6330
+ kind: "integration";
6331
+ provider: "discord";
6332
+ action: "grant-role";
6333
+ roleId: string;
5388
6334
  })[];
5389
6335
  humanReview: boolean;
5390
6336
  trigger: {
@@ -5393,6 +6339,10 @@ declare function createManagementClient(options: {
5393
6339
  actor?: "staff" | "member" | undefined;
5394
6340
  } | {
5395
6341
  kind: "automatic";
6342
+ observation?: {
6343
+ source: string;
6344
+ type: string;
6345
+ } | undefined;
5396
6346
  };
5397
6347
  requires: {
5398
6348
  quest: string;
@@ -5400,7 +6350,19 @@ declare function createManagementClient(options: {
5400
6350
  }[];
5401
6351
  completion: {
5402
6352
  kind: "once";
6353
+ } | {
6354
+ kind: "keyed";
5403
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
+ }[];
5404
6366
  code: string;
5405
6367
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
5406
6368
  id: string;
@@ -5702,7 +6664,7 @@ declare function createManagementClient(options: {
5702
6664
  subtitle: string;
5703
6665
  initials: string;
5704
6666
  color: string;
5705
- permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
6667
+ permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "observe")[];
5706
6668
  environments: ("test" | "live")[];
5707
6669
  setup?: {
5708
6670
  mode: "new" | "existing";
@@ -5719,13 +6681,27 @@ declare function createManagementClient(options: {
5719
6681
  subtitle: string;
5720
6682
  initials: string;
5721
6683
  color: string;
5722
- permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points")[];
6684
+ permissions: ("read" | "publish" | "review" | "confirm" | "handover" | "inventory" | "access" | "points" | "observe")[];
5723
6685
  environments: ("test" | "live")[];
5724
6686
  setup?: {
5725
6687
  mode: "new" | "existing";
5726
6688
  brief: string;
5727
6689
  } | undefined;
5728
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
+ }[]>;
5729
6705
  page: (page: string, query: Partial<ListQuery> & {
5730
6706
  detail?: string;
5731
6707
  }) => Promise<{
@@ -5756,6 +6732,25 @@ declare function createManagementClient(options: {
5756
6732
  };
5757
6733
  integrations: "discord"[];
5758
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
+ } | {
5759
6754
  kind: "quiz";
5760
6755
  default: {
5761
6756
  id: string;
@@ -5825,6 +6820,11 @@ declare function createManagementClient(options: {
5825
6820
  kind: "points";
5826
6821
  balance: string;
5827
6822
  amount: number;
6823
+ } | {
6824
+ kind: "integration";
6825
+ provider: "discord";
6826
+ action: "grant-role";
6827
+ roleId: string;
5828
6828
  })[];
5829
6829
  humanReview: boolean;
5830
6830
  trigger: {
@@ -5833,6 +6833,10 @@ declare function createManagementClient(options: {
5833
6833
  actor?: "staff" | "member" | undefined;
5834
6834
  } | {
5835
6835
  kind: "automatic";
6836
+ observation?: {
6837
+ source: string;
6838
+ type: string;
6839
+ } | undefined;
5836
6840
  };
5837
6841
  requires: {
5838
6842
  quest: string;
@@ -5840,7 +6844,19 @@ declare function createManagementClient(options: {
5840
6844
  }[];
5841
6845
  completion: {
5842
6846
  kind: "once";
6847
+ } | {
6848
+ kind: "keyed";
5843
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
+ }[];
5844
6860
  code: string;
5845
6861
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
5846
6862
  id: string;
@@ -5897,6 +6913,25 @@ declare function createManagementClient(options: {
5897
6913
  };
5898
6914
  integrations: "discord"[];
5899
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
+ } | {
5900
6935
  kind: "quiz";
5901
6936
  default: {
5902
6937
  id: string;
@@ -5966,6 +7001,11 @@ declare function createManagementClient(options: {
5966
7001
  };
5967
7002
  };
5968
7003
  tier: string;
7004
+ } | {
7005
+ kind: "integration";
7006
+ provider: "discord";
7007
+ action: "grant-role";
7008
+ roleId: string;
5969
7009
  })[];
5970
7010
  humanReview: boolean;
5971
7011
  trigger: {
@@ -5974,6 +7014,10 @@ declare function createManagementClient(options: {
5974
7014
  actor?: "staff" | "member" | undefined;
5975
7015
  } | {
5976
7016
  kind: "automatic";
7017
+ observation?: {
7018
+ source: string;
7019
+ type: string;
7020
+ } | undefined;
5977
7021
  };
5978
7022
  requires: {
5979
7023
  quest: string;
@@ -5981,7 +7025,19 @@ declare function createManagementClient(options: {
5981
7025
  }[];
5982
7026
  completion: {
5983
7027
  kind: "once";
7028
+ } | {
7029
+ kind: "keyed";
5984
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
+ }[];
5985
7041
  code: string;
5986
7042
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
5987
7043
  id: string;
@@ -6014,6 +7070,7 @@ declare function createManagementClient(options: {
6014
7070
  } | undefined;
6015
7071
  })[];
6016
7072
  completions: {
7073
+ key: string;
6017
7074
  id: string;
6018
7075
  quest: string;
6019
7076
  member: string;
@@ -6127,6 +7184,11 @@ declare function createManagementClient(options: {
6127
7184
  };
6128
7185
  };
6129
7186
  tier: string;
7187
+ } | {
7188
+ kind: "integration";
7189
+ provider: "discord";
7190
+ action: "grant-role";
7191
+ roleId: string;
6130
7192
  })[] | null;
6131
7193
  createdAt: number;
6132
7194
  input?: {
@@ -6171,6 +7233,20 @@ declare function createManagementClient(options: {
6171
7233
  rewards: number;
6172
7234
  lastActivity: number | null;
6173
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
+ }[];
6174
7250
  metrics: {
6175
7251
  quests: number;
6176
7252
  members: number;
@@ -6207,6 +7283,23 @@ declare function createManagementClient(options: {
6207
7283
  }[];
6208
7284
  questCounts: Record<string, number>;
6209
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
+ }>;
6210
7303
  member: (id: string) => Promise<{
6211
7304
  snapshot: {
6212
7305
  releases: ({
@@ -6235,6 +7328,25 @@ declare function createManagementClient(options: {
6235
7328
  };
6236
7329
  integrations: "discord"[];
6237
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
+ } | {
6238
7350
  kind: "quiz";
6239
7351
  default: {
6240
7352
  id: string;
@@ -6304,6 +7416,11 @@ declare function createManagementClient(options: {
6304
7416
  kind: "points";
6305
7417
  balance: string;
6306
7418
  amount: number;
7419
+ } | {
7420
+ kind: "integration";
7421
+ provider: "discord";
7422
+ action: "grant-role";
7423
+ roleId: string;
6307
7424
  })[];
6308
7425
  humanReview: boolean;
6309
7426
  trigger: {
@@ -6312,6 +7429,10 @@ declare function createManagementClient(options: {
6312
7429
  actor?: "staff" | "member" | undefined;
6313
7430
  } | {
6314
7431
  kind: "automatic";
7432
+ observation?: {
7433
+ source: string;
7434
+ type: string;
7435
+ } | undefined;
6315
7436
  };
6316
7437
  requires: {
6317
7438
  quest: string;
@@ -6319,7 +7440,19 @@ declare function createManagementClient(options: {
6319
7440
  }[];
6320
7441
  completion: {
6321
7442
  kind: "once";
7443
+ } | {
7444
+ kind: "keyed";
6322
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
+ }[];
6323
7456
  code: string;
6324
7457
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
6325
7458
  id: string;
@@ -6376,6 +7509,25 @@ declare function createManagementClient(options: {
6376
7509
  };
6377
7510
  integrations: "discord"[];
6378
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
+ } | {
6379
7531
  kind: "quiz";
6380
7532
  default: {
6381
7533
  id: string;
@@ -6445,6 +7597,11 @@ declare function createManagementClient(options: {
6445
7597
  };
6446
7598
  };
6447
7599
  tier: string;
7600
+ } | {
7601
+ kind: "integration";
7602
+ provider: "discord";
7603
+ action: "grant-role";
7604
+ roleId: string;
6448
7605
  })[];
6449
7606
  humanReview: boolean;
6450
7607
  trigger: {
@@ -6453,6 +7610,10 @@ declare function createManagementClient(options: {
6453
7610
  actor?: "staff" | "member" | undefined;
6454
7611
  } | {
6455
7612
  kind: "automatic";
7613
+ observation?: {
7614
+ source: string;
7615
+ type: string;
7616
+ } | undefined;
6456
7617
  };
6457
7618
  requires: {
6458
7619
  quest: string;
@@ -6460,7 +7621,19 @@ declare function createManagementClient(options: {
6460
7621
  }[];
6461
7622
  completion: {
6462
7623
  kind: "once";
7624
+ } | {
7625
+ kind: "keyed";
6463
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
+ }[];
6464
7637
  code: string;
6465
7638
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
6466
7639
  id: string;
@@ -6493,6 +7666,7 @@ declare function createManagementClient(options: {
6493
7666
  } | undefined;
6494
7667
  })[];
6495
7668
  completions: {
7669
+ key: string;
6496
7670
  id: string;
6497
7671
  quest: string;
6498
7672
  member: string;
@@ -6606,6 +7780,11 @@ declare function createManagementClient(options: {
6606
7780
  };
6607
7781
  };
6608
7782
  tier: string;
7783
+ } | {
7784
+ kind: "integration";
7785
+ provider: "discord";
7786
+ action: "grant-role";
7787
+ roleId: string;
6609
7788
  })[] | null;
6610
7789
  createdAt: number;
6611
7790
  input?: {
@@ -6682,6 +7861,10 @@ declare function createManagementClient(options: {
6682
7861
  actor?: "staff" | "member" | undefined;
6683
7862
  } | {
6684
7863
  kind: "automatic";
7864
+ observation?: {
7865
+ source: string;
7866
+ type: string;
7867
+ } | undefined;
6685
7868
  };
6686
7869
  availability: {
6687
7870
  kind: "available";
@@ -6698,6 +7881,10 @@ declare function createManagementClient(options: {
6698
7881
  kind: "staff-required";
6699
7882
  } | {
6700
7883
  kind: "automatic";
7884
+ observation?: {
7885
+ source: string;
7886
+ type: string;
7887
+ } | undefined;
6701
7888
  } | {
6702
7889
  kind: "checking";
6703
7890
  attempt: string;
@@ -6709,6 +7896,13 @@ declare function createManagementClient(options: {
6709
7896
  attempt: string;
6710
7897
  };
6711
7898
  completed: boolean;
7899
+ completion: {
7900
+ kind: "once";
7901
+ } | {
7902
+ kind: "keyed";
7903
+ };
7904
+ completionCount: number;
7905
+ visibility: "visible" | "hidden";
6712
7906
  missing: {
6713
7907
  quest: string;
6714
7908
  title: string;
@@ -6745,6 +7939,11 @@ declare function createManagementClient(options: {
6745
7939
  };
6746
7940
  };
6747
7941
  tier: string;
7942
+ } | {
7943
+ kind: "integration";
7944
+ provider: "discord";
7945
+ action: "grant-role";
7946
+ roleId: string;
6748
7947
  })[] | null;
6749
7948
  createdAt: number;
6750
7949
  input?: {
@@ -6862,4 +8061,4 @@ declare function createManagementClient(options: {
6862
8061
  }>;
6863
8062
  };
6864
8063
 
6865
- 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, 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, 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 };