@domino-sdk/relay 0.31.0 → 1.0.0-next.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
@@ -209,13 +209,13 @@ type ProgressObserver = {
209
209
  };
210
210
 
211
211
  declare const interactionSchema: z.ZodEnum<{
212
- staff: "staff";
213
- quiz: "quiz";
214
212
  text: "text";
215
213
  url: "url";
216
- photo: "photo";
217
214
  automatic: "automatic";
218
215
  claim: "claim";
216
+ staff: "staff";
217
+ quiz: "quiz";
218
+ photo: "photo";
219
219
  }>;
220
220
  type QuestInteraction = z.infer<typeof interactionSchema>;
221
221
  declare function questInteraction(trigger: z.infer<typeof questDescriptionSchema>["trigger"]): QuestInteraction;
@@ -384,9 +384,9 @@ declare const questTypeVersionSchema: z.ZodObject<{
384
384
  }, z.core.$strict>, z.ZodObject<{
385
385
  kind: z.ZodLiteral<"manual">;
386
386
  input: z.ZodEnum<{
387
+ none: "none";
387
388
  quiz: "quiz";
388
389
  photo: "photo";
389
- none: "none";
390
390
  }>;
391
391
  actor: z.ZodOptional<z.ZodEnum<{
392
392
  member: "member";
@@ -405,17 +405,17 @@ declare const questTypeVersionSchema: z.ZodObject<{
405
405
  end: z.ZodOptional<z.ZodNumber>;
406
406
  }, z.core.$strict>;
407
407
  enrollment: z.ZodDefault<z.ZodEnum<{
408
- required: "required";
409
408
  none: "none";
409
+ required: "required";
410
410
  }>>;
411
411
  posts: z.ZodDefault<z.ZodEnum<{
412
412
  "after-enrollment": "after-enrollment";
413
413
  "since-start": "since-start";
414
414
  }>>;
415
415
  historical: z.ZodDefault<z.ZodEnum<{
416
- staff: "staff";
417
416
  automatic: "automatic";
418
417
  claim: "claim";
418
+ staff: "staff";
419
419
  }>>;
420
420
  }, z.core.$strict>>;
421
421
  tracker: z.ZodOptional<z.ZodObject<{
@@ -484,13 +484,13 @@ declare const questTypeVersionSchema: z.ZodObject<{
484
484
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
485
485
  id: z.ZodString;
486
486
  scope: z.ZodEnum<{
487
- project: "project";
488
487
  member: "member";
488
+ project: "project";
489
489
  }>;
490
490
  period: z.ZodEnum<{
491
491
  day: "day";
492
- week: "week";
493
492
  lifetime: "lifetime";
493
+ week: "week";
494
494
  }>;
495
495
  limit: z.ZodNumber;
496
496
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -520,7 +520,7 @@ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
520
520
  title: string;
521
521
  key?: string | undefined;
522
522
  id?: string | undefined;
523
- }, "key" | "id"> & {
523
+ }, "id" | "key"> & {
524
524
  key: string;
525
525
  }, {
526
526
  title: string;
@@ -548,8 +548,8 @@ declare const questInstanceSchema: z.ZodObject<{
548
548
  }, z.core.$strict>>]>>;
549
549
  requires: z.ZodArray<z.ZodString>;
550
550
  status: z.ZodEnum<{
551
- active: "active";
552
551
  paused: "paused";
552
+ active: "active";
553
553
  archived: "archived";
554
554
  }>;
555
555
  }, z.core.$strict>;
@@ -569,8 +569,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
569
569
  }, z.core.$strict>>]>>;
570
570
  requires: z.ZodArray<z.ZodString>;
571
571
  status: z.ZodEnum<{
572
- active: "active";
573
572
  paused: "paused";
573
+ active: "active";
574
574
  archived: "archived";
575
575
  }>;
576
576
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -602,8 +602,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
602
602
  }, z.core.$strict>>]>>;
603
603
  requires: z.ZodArray<z.ZodString>;
604
604
  status: z.ZodEnum<{
605
- active: "active";
606
605
  paused: "paused";
606
+ active: "active";
607
607
  archived: "archived";
608
608
  }>;
609
609
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -636,8 +636,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
636
636
  }, z.core.$strict>>]>>;
637
637
  requires: z.ZodArray<z.ZodString>;
638
638
  status: z.ZodEnum<{
639
- active: "active";
640
639
  paused: "paused";
640
+ active: "active";
641
641
  archived: "archived";
642
642
  }>;
643
643
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -819,9 +819,9 @@ declare const questCatalogSchema: z.ZodObject<{
819
819
  }, z.core.$strict>, z.ZodObject<{
820
820
  kind: z.ZodLiteral<"manual">;
821
821
  input: z.ZodEnum<{
822
+ none: "none";
822
823
  quiz: "quiz";
823
824
  photo: "photo";
824
- none: "none";
825
825
  }>;
826
826
  actor: z.ZodOptional<z.ZodEnum<{
827
827
  member: "member";
@@ -840,17 +840,17 @@ declare const questCatalogSchema: z.ZodObject<{
840
840
  end: z.ZodOptional<z.ZodNumber>;
841
841
  }, z.core.$strict>;
842
842
  enrollment: z.ZodDefault<z.ZodEnum<{
843
- required: "required";
844
843
  none: "none";
844
+ required: "required";
845
845
  }>>;
846
846
  posts: z.ZodDefault<z.ZodEnum<{
847
847
  "after-enrollment": "after-enrollment";
848
848
  "since-start": "since-start";
849
849
  }>>;
850
850
  historical: z.ZodDefault<z.ZodEnum<{
851
- staff: "staff";
852
851
  automatic: "automatic";
853
852
  claim: "claim";
853
+ staff: "staff";
854
854
  }>>;
855
855
  }, z.core.$strict>>;
856
856
  tracker: z.ZodOptional<z.ZodObject<{
@@ -919,13 +919,13 @@ declare const questCatalogSchema: z.ZodObject<{
919
919
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
920
920
  id: z.ZodString;
921
921
  scope: z.ZodEnum<{
922
- project: "project";
923
922
  member: "member";
923
+ project: "project";
924
924
  }>;
925
925
  period: z.ZodEnum<{
926
926
  day: "day";
927
- week: "week";
928
927
  lifetime: "lifetime";
928
+ week: "week";
929
929
  }>;
930
930
  limit: z.ZodNumber;
931
931
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -963,8 +963,8 @@ declare const questCatalogSchema: z.ZodObject<{
963
963
  }, z.core.$strict>>]>>;
964
964
  requires: z.ZodArray<z.ZodString>;
965
965
  status: z.ZodEnum<{
966
- active: "active";
967
966
  paused: "paused";
967
+ active: "active";
968
968
  archived: "archived";
969
969
  }>;
970
970
  }, z.core.$strict>>;
@@ -988,8 +988,8 @@ declare const questCatalogSchema: z.ZodObject<{
988
988
  }, z.core.$strict>>]>>;
989
989
  requires: z.ZodArray<z.ZodString>;
990
990
  status: z.ZodEnum<{
991
- active: "active";
992
991
  paused: "paused";
992
+ active: "active";
993
993
  archived: "archived";
994
994
  }>;
995
995
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -1022,8 +1022,8 @@ declare const questCatalogSchema: z.ZodObject<{
1022
1022
  }, z.core.$strict>>]>>;
1023
1023
  requires: z.ZodArray<z.ZodString>;
1024
1024
  status: z.ZodEnum<{
1025
- active: "active";
1026
1025
  paused: "paused";
1026
+ active: "active";
1027
1027
  archived: "archived";
1028
1028
  }>;
1029
1029
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -1198,9 +1198,9 @@ declare const questCatalogSchema: z.ZodObject<{
1198
1198
  }, z.core.$strict>, z.ZodObject<{
1199
1199
  kind: z.ZodLiteral<"manual">;
1200
1200
  input: z.ZodEnum<{
1201
+ none: "none";
1201
1202
  quiz: "quiz";
1202
1203
  photo: "photo";
1203
- none: "none";
1204
1204
  }>;
1205
1205
  actor: z.ZodOptional<z.ZodEnum<{
1206
1206
  member: "member";
@@ -1219,17 +1219,17 @@ declare const questCatalogSchema: z.ZodObject<{
1219
1219
  end: z.ZodOptional<z.ZodNumber>;
1220
1220
  }, z.core.$strict>;
1221
1221
  enrollment: z.ZodDefault<z.ZodEnum<{
1222
- required: "required";
1223
1222
  none: "none";
1223
+ required: "required";
1224
1224
  }>>;
1225
1225
  posts: z.ZodDefault<z.ZodEnum<{
1226
1226
  "after-enrollment": "after-enrollment";
1227
1227
  "since-start": "since-start";
1228
1228
  }>>;
1229
1229
  historical: z.ZodDefault<z.ZodEnum<{
1230
- staff: "staff";
1231
1230
  automatic: "automatic";
1232
1231
  claim: "claim";
1232
+ staff: "staff";
1233
1233
  }>>;
1234
1234
  }, z.core.$strict>>;
1235
1235
  tracker: z.ZodOptional<z.ZodObject<{
@@ -1298,13 +1298,13 @@ declare const questCatalogSchema: z.ZodObject<{
1298
1298
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1299
1299
  id: z.ZodString;
1300
1300
  scope: z.ZodEnum<{
1301
- project: "project";
1302
1301
  member: "member";
1302
+ project: "project";
1303
1303
  }>;
1304
1304
  period: z.ZodEnum<{
1305
1305
  day: "day";
1306
- week: "week";
1307
1306
  lifetime: "lifetime";
1307
+ week: "week";
1308
1308
  }>;
1309
1309
  limit: z.ZodNumber;
1310
1310
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -1327,8 +1327,8 @@ declare const questCatalogSchema: z.ZodObject<{
1327
1327
  typeVersion: z.ZodString;
1328
1328
  }, z.core.$strict>>;
1329
1329
  lifecycle: z.ZodDefault<z.ZodEnum<{
1330
- active: "active";
1331
1330
  paused: "paused";
1331
+ active: "active";
1332
1332
  archived: "archived";
1333
1333
  }>>;
1334
1334
  configuration: z.ZodOptional<z.ZodObject<{
@@ -1396,7 +1396,7 @@ declare const questCatalogSchema: z.ZodObject<{
1396
1396
  createdAt: z.ZodNumber;
1397
1397
  }, z.core.$strip>, z.ZodTransform<{
1398
1398
  quest: string;
1399
- runtimeVersion: 2 | 1;
1399
+ runtimeVersion: 1 | 2;
1400
1400
  title: string;
1401
1401
  presentation: {
1402
1402
  quiz?: {
@@ -1433,12 +1433,12 @@ declare const questCatalogSchema: z.ZodObject<{
1433
1433
  kind: "resource";
1434
1434
  default: string;
1435
1435
  source: {
1436
- provider: "domino";
1437
- resource: "point-ledger";
1438
- } | {
1439
1436
  provider: "discord";
1440
1437
  resource: "channel";
1441
1438
  types: ("text" | "announcement")[];
1439
+ } | {
1440
+ provider: "domino";
1441
+ resource: "point-ledger";
1442
1442
  } | {
1443
1443
  provider: "discord";
1444
1444
  resource: "role";
@@ -1535,9 +1535,9 @@ declare const questCatalogSchema: z.ZodObject<{
1535
1535
  start: number;
1536
1536
  end?: number | undefined;
1537
1537
  };
1538
- enrollment: "required" | "none";
1538
+ enrollment: "none" | "required";
1539
1539
  posts: "after-enrollment" | "since-start";
1540
- historical: "staff" | "automatic" | "claim";
1540
+ historical: "automatic" | "claim" | "staff";
1541
1541
  } | undefined;
1542
1542
  tracker?: {
1543
1543
  tracker: string;
@@ -1582,7 +1582,7 @@ declare const questCatalogSchema: z.ZodObject<{
1582
1582
  actor?: "member" | "staff" | undefined;
1583
1583
  } | {
1584
1584
  kind: "manual";
1585
- input: "quiz" | "photo" | "none";
1585
+ input: "none" | "quiz" | "photo";
1586
1586
  actor?: "member" | "staff" | undefined;
1587
1587
  };
1588
1588
  requires: {
@@ -1601,8 +1601,8 @@ declare const questCatalogSchema: z.ZodObject<{
1601
1601
  visibility: "visible" | "hidden";
1602
1602
  budgets: {
1603
1603
  id: string;
1604
- scope: "project" | "member";
1605
- period: "day" | "week" | "lifetime";
1604
+ scope: "member" | "project";
1605
+ period: "day" | "lifetime" | "week";
1606
1606
  limit: number;
1607
1607
  cost: number | {
1608
1608
  balance: string;
@@ -1613,7 +1613,7 @@ declare const questCatalogSchema: z.ZodObject<{
1613
1613
  id: string;
1614
1614
  createdAt: number;
1615
1615
  legacy: boolean;
1616
- lifecycle: "active" | "paused" | "archived";
1616
+ lifecycle: "paused" | "active" | "archived";
1617
1617
  performance?: {
1618
1618
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1619
1619
  maxAgeMs: number;
@@ -1684,13 +1684,13 @@ declare const questCatalogSchema: z.ZodObject<{
1684
1684
  createdAt: number;
1685
1685
  }>>]>>>;
1686
1686
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1687
- staff: "staff";
1688
- quiz: "quiz";
1689
1687
  text: "text";
1690
1688
  url: "url";
1691
- photo: "photo";
1692
1689
  automatic: "automatic";
1693
1690
  claim: "claim";
1691
+ staff: "staff";
1692
+ quiz: "quiz";
1693
+ photo: "photo";
1694
1694
  }>>;
1695
1695
  }, z.core.$strip>;
1696
1696
  declare const catalogDeploymentSchema: z.ZodObject<{
@@ -1709,7 +1709,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1709
1709
  title: string;
1710
1710
  key?: string | undefined;
1711
1711
  id?: string | undefined;
1712
- }, "key" | "id"> & {
1712
+ }, "id" | "key"> & {
1713
1713
  key: string;
1714
1714
  }, {
1715
1715
  title: string;
@@ -1717,13 +1717,13 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1717
1717
  id?: string | undefined;
1718
1718
  }>>>>;
1719
1719
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1720
- staff: "staff";
1721
- quiz: "quiz";
1722
1720
  text: "text";
1723
1721
  url: "url";
1724
- photo: "photo";
1725
1722
  automatic: "automatic";
1726
1723
  claim: "claim";
1724
+ staff: "staff";
1725
+ quiz: "quiz";
1726
+ photo: "photo";
1727
1727
  }>>>;
1728
1728
  }, z.core.$strict>;
1729
1729
  declare const catalogDeploymentPreviewSchema: z.ZodObject<{
@@ -1893,9 +1893,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1893
1893
  }, z.core.$strict>, z.ZodObject<{
1894
1894
  kind: z.ZodLiteral<"manual">;
1895
1895
  input: z.ZodEnum<{
1896
+ none: "none";
1896
1897
  quiz: "quiz";
1897
1898
  photo: "photo";
1898
- none: "none";
1899
1899
  }>;
1900
1900
  actor: z.ZodOptional<z.ZodEnum<{
1901
1901
  member: "member";
@@ -1914,17 +1914,17 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1914
1914
  end: z.ZodOptional<z.ZodNumber>;
1915
1915
  }, z.core.$strict>;
1916
1916
  enrollment: z.ZodDefault<z.ZodEnum<{
1917
- required: "required";
1918
1917
  none: "none";
1918
+ required: "required";
1919
1919
  }>>;
1920
1920
  posts: z.ZodDefault<z.ZodEnum<{
1921
1921
  "after-enrollment": "after-enrollment";
1922
1922
  "since-start": "since-start";
1923
1923
  }>>;
1924
1924
  historical: z.ZodDefault<z.ZodEnum<{
1925
- staff: "staff";
1926
1925
  automatic: "automatic";
1927
1926
  claim: "claim";
1927
+ staff: "staff";
1928
1928
  }>>;
1929
1929
  }, z.core.$strict>>;
1930
1930
  tracker: z.ZodOptional<z.ZodObject<{
@@ -1993,13 +1993,13 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1993
1993
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1994
1994
  id: z.ZodString;
1995
1995
  scope: z.ZodEnum<{
1996
- project: "project";
1997
1996
  member: "member";
1997
+ project: "project";
1998
1998
  }>;
1999
1999
  period: z.ZodEnum<{
2000
2000
  day: "day";
2001
- week: "week";
2002
2001
  lifetime: "lifetime";
2002
+ week: "week";
2003
2003
  }>;
2004
2004
  limit: z.ZodNumber;
2005
2005
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -2022,13 +2022,13 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2022
2022
  title: z.ZodString;
2023
2023
  }, z.core.$strict>>;
2024
2024
  supportedInteractions: z.ZodArray<z.ZodEnum<{
2025
- staff: "staff";
2026
- quiz: "quiz";
2027
2025
  text: "text";
2028
2026
  url: "url";
2029
- photo: "photo";
2030
2027
  automatic: "automatic";
2031
2028
  claim: "claim";
2029
+ staff: "staff";
2030
+ quiz: "quiz";
2031
+ photo: "photo";
2032
2032
  }>>;
2033
2033
  }, z.core.$strip>;
2034
2034
  declare const saveQuestDraftSchema: z.ZodObject<{
@@ -2052,8 +2052,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
2052
2052
  }, z.core.$strict>>]>>;
2053
2053
  requires: z.ZodArray<z.ZodString>;
2054
2054
  status: z.ZodEnum<{
2055
- active: "active";
2056
2055
  paused: "paused";
2056
+ active: "active";
2057
2057
  archived: "archived";
2058
2058
  }>;
2059
2059
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -2121,10 +2121,10 @@ declare const questViewSchema: z.ZodObject<{
2121
2121
  }, z.core.$strict>>;
2122
2122
  }, z.core.$strict>>;
2123
2123
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2124
+ x: "x";
2124
2125
  discord: "discord";
2125
2126
  google: "google";
2126
2127
  apple: "apple";
2127
- x: "x";
2128
2128
  }>>>;
2129
2129
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2130
2130
  kind: z.ZodLiteral<"manual">;
@@ -2152,9 +2152,9 @@ declare const questViewSchema: z.ZodObject<{
2152
2152
  }, z.core.$strict>, z.ZodObject<{
2153
2153
  kind: z.ZodLiteral<"manual">;
2154
2154
  input: z.ZodEnum<{
2155
+ none: "none";
2155
2156
  quiz: "quiz";
2156
2157
  photo: "photo";
2157
- none: "none";
2158
2158
  }>;
2159
2159
  actor: z.ZodOptional<z.ZodEnum<{
2160
2160
  member: "member";
@@ -2173,17 +2173,17 @@ declare const questViewSchema: z.ZodObject<{
2173
2173
  end: z.ZodOptional<z.ZodNumber>;
2174
2174
  }, z.core.$strict>;
2175
2175
  enrollment: z.ZodDefault<z.ZodEnum<{
2176
- required: "required";
2177
2176
  none: "none";
2177
+ required: "required";
2178
2178
  }>>;
2179
2179
  posts: z.ZodDefault<z.ZodEnum<{
2180
2180
  "after-enrollment": "after-enrollment";
2181
2181
  "since-start": "since-start";
2182
2182
  }>>;
2183
2183
  historical: z.ZodDefault<z.ZodEnum<{
2184
- staff: "staff";
2185
2184
  automatic: "automatic";
2186
2185
  claim: "claim";
2186
+ staff: "staff";
2187
2187
  }>>;
2188
2188
  }, z.core.$strict>>;
2189
2189
  tracker: z.ZodOptional<z.ZodObject<{
@@ -2221,11 +2221,11 @@ declare const questViewSchema: z.ZodObject<{
2221
2221
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2222
2222
  kind: z.ZodLiteral<"available">;
2223
2223
  input: z.ZodEnum<{
2224
- quiz: "quiz";
2225
2224
  text: "text";
2226
2225
  url: "url";
2227
- photo: "photo";
2228
2226
  none: "none";
2227
+ quiz: "quiz";
2228
+ photo: "photo";
2229
2229
  }>;
2230
2230
  }, z.core.$strict>, z.ZodObject<{
2231
2231
  kind: z.ZodLiteral<"completed">;
@@ -2322,13 +2322,13 @@ declare const questViewSchema: z.ZodObject<{
2322
2322
  value: z.ZodString;
2323
2323
  }, z.core.$strict>]>>;
2324
2324
  status: z.ZodEnum<{
2325
+ "needs-review": "needs-review";
2326
+ failed: "failed";
2325
2327
  queued: "queued";
2326
2328
  evaluating: "evaluating";
2327
2329
  accepted: "accepted";
2328
2330
  progressed: "progressed";
2329
2331
  rejected: "rejected";
2330
- "needs-review": "needs-review";
2331
- failed: "failed";
2332
2332
  }>;
2333
2333
  reason: z.ZodNullable<z.ZodString>;
2334
2334
  retries: z.ZodNumber;
@@ -2365,17 +2365,17 @@ declare const questViewSchema: z.ZodObject<{
2365
2365
  }, z.core.$strip>>;
2366
2366
  release: z.ZodString;
2367
2367
  interaction: z.ZodEnum<{
2368
- staff: "staff";
2369
- quiz: "quiz";
2370
2368
  text: "text";
2371
2369
  url: "url";
2372
- photo: "photo";
2373
2370
  automatic: "automatic";
2374
2371
  claim: "claim";
2372
+ staff: "staff";
2373
+ quiz: "quiz";
2374
+ photo: "photo";
2375
2375
  }>;
2376
2376
  lifecycle: z.ZodEnum<{
2377
- active: "active";
2378
2377
  paused: "paused";
2378
+ active: "active";
2379
2379
  archived: "archived";
2380
2380
  }>;
2381
2381
  rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2430,10 +2430,10 @@ declare const collectionViewSchema: z.ZodObject<{
2430
2430
  }, z.core.$strict>>;
2431
2431
  }, z.core.$strict>>;
2432
2432
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2433
+ x: "x";
2433
2434
  discord: "discord";
2434
2435
  google: "google";
2435
2436
  apple: "apple";
2436
- x: "x";
2437
2437
  }>>>;
2438
2438
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2439
2439
  kind: z.ZodLiteral<"manual">;
@@ -2461,9 +2461,9 @@ declare const collectionViewSchema: z.ZodObject<{
2461
2461
  }, z.core.$strict>, z.ZodObject<{
2462
2462
  kind: z.ZodLiteral<"manual">;
2463
2463
  input: z.ZodEnum<{
2464
+ none: "none";
2464
2465
  quiz: "quiz";
2465
2466
  photo: "photo";
2466
- none: "none";
2467
2467
  }>;
2468
2468
  actor: z.ZodOptional<z.ZodEnum<{
2469
2469
  member: "member";
@@ -2482,17 +2482,17 @@ declare const collectionViewSchema: z.ZodObject<{
2482
2482
  end: z.ZodOptional<z.ZodNumber>;
2483
2483
  }, z.core.$strict>;
2484
2484
  enrollment: z.ZodDefault<z.ZodEnum<{
2485
- required: "required";
2486
2485
  none: "none";
2486
+ required: "required";
2487
2487
  }>>;
2488
2488
  posts: z.ZodDefault<z.ZodEnum<{
2489
2489
  "after-enrollment": "after-enrollment";
2490
2490
  "since-start": "since-start";
2491
2491
  }>>;
2492
2492
  historical: z.ZodDefault<z.ZodEnum<{
2493
- staff: "staff";
2494
2493
  automatic: "automatic";
2495
2494
  claim: "claim";
2495
+ staff: "staff";
2496
2496
  }>>;
2497
2497
  }, z.core.$strict>>;
2498
2498
  tracker: z.ZodOptional<z.ZodObject<{
@@ -2530,11 +2530,11 @@ declare const collectionViewSchema: z.ZodObject<{
2530
2530
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2531
2531
  kind: z.ZodLiteral<"available">;
2532
2532
  input: z.ZodEnum<{
2533
- quiz: "quiz";
2534
2533
  text: "text";
2535
2534
  url: "url";
2536
- photo: "photo";
2537
2535
  none: "none";
2536
+ quiz: "quiz";
2537
+ photo: "photo";
2538
2538
  }>;
2539
2539
  }, z.core.$strict>, z.ZodObject<{
2540
2540
  kind: z.ZodLiteral<"completed">;
@@ -2631,13 +2631,13 @@ declare const collectionViewSchema: z.ZodObject<{
2631
2631
  value: z.ZodString;
2632
2632
  }, z.core.$strict>]>>;
2633
2633
  status: z.ZodEnum<{
2634
+ "needs-review": "needs-review";
2635
+ failed: "failed";
2634
2636
  queued: "queued";
2635
2637
  evaluating: "evaluating";
2636
2638
  accepted: "accepted";
2637
2639
  progressed: "progressed";
2638
2640
  rejected: "rejected";
2639
- "needs-review": "needs-review";
2640
- failed: "failed";
2641
2641
  }>;
2642
2642
  reason: z.ZodNullable<z.ZodString>;
2643
2643
  retries: z.ZodNumber;
@@ -2674,17 +2674,17 @@ declare const collectionViewSchema: z.ZodObject<{
2674
2674
  }, z.core.$strip>>;
2675
2675
  release: z.ZodString;
2676
2676
  interaction: z.ZodEnum<{
2677
- staff: "staff";
2678
- quiz: "quiz";
2679
2677
  text: "text";
2680
2678
  url: "url";
2681
- photo: "photo";
2682
2679
  automatic: "automatic";
2683
2680
  claim: "claim";
2681
+ staff: "staff";
2682
+ quiz: "quiz";
2683
+ photo: "photo";
2684
2684
  }>;
2685
2685
  lifecycle: z.ZodEnum<{
2686
- active: "active";
2687
2686
  paused: "paused";
2687
+ active: "active";
2688
2688
  archived: "archived";
2689
2689
  }>;
2690
2690
  rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2738,10 +2738,10 @@ declare const questExperienceSchema: z.ZodObject<{
2738
2738
  }, z.core.$strict>>;
2739
2739
  }, z.core.$strict>>;
2740
2740
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2741
+ x: "x";
2741
2742
  discord: "discord";
2742
2743
  google: "google";
2743
2744
  apple: "apple";
2744
- x: "x";
2745
2745
  }>>>;
2746
2746
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2747
2747
  kind: z.ZodLiteral<"manual">;
@@ -2769,9 +2769,9 @@ declare const questExperienceSchema: z.ZodObject<{
2769
2769
  }, z.core.$strict>, z.ZodObject<{
2770
2770
  kind: z.ZodLiteral<"manual">;
2771
2771
  input: z.ZodEnum<{
2772
+ none: "none";
2772
2773
  quiz: "quiz";
2773
2774
  photo: "photo";
2774
- none: "none";
2775
2775
  }>;
2776
2776
  actor: z.ZodOptional<z.ZodEnum<{
2777
2777
  member: "member";
@@ -2790,17 +2790,17 @@ declare const questExperienceSchema: z.ZodObject<{
2790
2790
  end: z.ZodOptional<z.ZodNumber>;
2791
2791
  }, z.core.$strict>;
2792
2792
  enrollment: z.ZodDefault<z.ZodEnum<{
2793
- required: "required";
2794
2793
  none: "none";
2794
+ required: "required";
2795
2795
  }>>;
2796
2796
  posts: z.ZodDefault<z.ZodEnum<{
2797
2797
  "after-enrollment": "after-enrollment";
2798
2798
  "since-start": "since-start";
2799
2799
  }>>;
2800
2800
  historical: z.ZodDefault<z.ZodEnum<{
2801
- staff: "staff";
2802
2801
  automatic: "automatic";
2803
2802
  claim: "claim";
2803
+ staff: "staff";
2804
2804
  }>>;
2805
2805
  }, z.core.$strict>>;
2806
2806
  tracker: z.ZodOptional<z.ZodObject<{
@@ -2838,11 +2838,11 @@ declare const questExperienceSchema: z.ZodObject<{
2838
2838
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2839
2839
  kind: z.ZodLiteral<"available">;
2840
2840
  input: z.ZodEnum<{
2841
- quiz: "quiz";
2842
2841
  text: "text";
2843
2842
  url: "url";
2844
- photo: "photo";
2845
2843
  none: "none";
2844
+ quiz: "quiz";
2845
+ photo: "photo";
2846
2846
  }>;
2847
2847
  }, z.core.$strict>, z.ZodObject<{
2848
2848
  kind: z.ZodLiteral<"completed">;
@@ -2939,13 +2939,13 @@ declare const questExperienceSchema: z.ZodObject<{
2939
2939
  value: z.ZodString;
2940
2940
  }, z.core.$strict>]>>;
2941
2941
  status: z.ZodEnum<{
2942
+ "needs-review": "needs-review";
2943
+ failed: "failed";
2942
2944
  queued: "queued";
2943
2945
  evaluating: "evaluating";
2944
2946
  accepted: "accepted";
2945
2947
  progressed: "progressed";
2946
2948
  rejected: "rejected";
2947
- "needs-review": "needs-review";
2948
- failed: "failed";
2949
2949
  }>;
2950
2950
  reason: z.ZodNullable<z.ZodString>;
2951
2951
  retries: z.ZodNumber;
@@ -2982,17 +2982,17 @@ declare const questExperienceSchema: z.ZodObject<{
2982
2982
  }, z.core.$strip>>;
2983
2983
  release: z.ZodString;
2984
2984
  interaction: z.ZodEnum<{
2985
- staff: "staff";
2986
- quiz: "quiz";
2987
2985
  text: "text";
2988
2986
  url: "url";
2989
- photo: "photo";
2990
2987
  automatic: "automatic";
2991
2988
  claim: "claim";
2989
+ staff: "staff";
2990
+ quiz: "quiz";
2991
+ photo: "photo";
2992
2992
  }>;
2993
2993
  lifecycle: z.ZodEnum<{
2994
- active: "active";
2995
2994
  paused: "paused";
2995
+ active: "active";
2996
2996
  archived: "archived";
2997
2997
  }>;
2998
2998
  rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3047,10 +3047,10 @@ declare const questExperienceSchema: z.ZodObject<{
3047
3047
  }, z.core.$strict>>;
3048
3048
  }, z.core.$strict>>;
3049
3049
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3050
+ x: "x";
3050
3051
  discord: "discord";
3051
3052
  google: "google";
3052
3053
  apple: "apple";
3053
- x: "x";
3054
3054
  }>>>;
3055
3055
  trigger: z.ZodUnion<readonly [z.ZodObject<{
3056
3056
  kind: z.ZodLiteral<"manual">;
@@ -3078,9 +3078,9 @@ declare const questExperienceSchema: z.ZodObject<{
3078
3078
  }, z.core.$strict>, z.ZodObject<{
3079
3079
  kind: z.ZodLiteral<"manual">;
3080
3080
  input: z.ZodEnum<{
3081
+ none: "none";
3081
3082
  quiz: "quiz";
3082
3083
  photo: "photo";
3083
- none: "none";
3084
3084
  }>;
3085
3085
  actor: z.ZodOptional<z.ZodEnum<{
3086
3086
  member: "member";
@@ -3099,17 +3099,17 @@ declare const questExperienceSchema: z.ZodObject<{
3099
3099
  end: z.ZodOptional<z.ZodNumber>;
3100
3100
  }, z.core.$strict>;
3101
3101
  enrollment: z.ZodDefault<z.ZodEnum<{
3102
- required: "required";
3103
3102
  none: "none";
3103
+ required: "required";
3104
3104
  }>>;
3105
3105
  posts: z.ZodDefault<z.ZodEnum<{
3106
3106
  "after-enrollment": "after-enrollment";
3107
3107
  "since-start": "since-start";
3108
3108
  }>>;
3109
3109
  historical: z.ZodDefault<z.ZodEnum<{
3110
- staff: "staff";
3111
3110
  automatic: "automatic";
3112
3111
  claim: "claim";
3112
+ staff: "staff";
3113
3113
  }>>;
3114
3114
  }, z.core.$strict>>;
3115
3115
  tracker: z.ZodOptional<z.ZodObject<{
@@ -3147,11 +3147,11 @@ declare const questExperienceSchema: z.ZodObject<{
3147
3147
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3148
3148
  kind: z.ZodLiteral<"available">;
3149
3149
  input: z.ZodEnum<{
3150
- quiz: "quiz";
3151
3150
  text: "text";
3152
3151
  url: "url";
3153
- photo: "photo";
3154
3152
  none: "none";
3153
+ quiz: "quiz";
3154
+ photo: "photo";
3155
3155
  }>;
3156
3156
  }, z.core.$strict>, z.ZodObject<{
3157
3157
  kind: z.ZodLiteral<"completed">;
@@ -3248,13 +3248,13 @@ declare const questExperienceSchema: z.ZodObject<{
3248
3248
  value: z.ZodString;
3249
3249
  }, z.core.$strict>]>>;
3250
3250
  status: z.ZodEnum<{
3251
+ "needs-review": "needs-review";
3252
+ failed: "failed";
3251
3253
  queued: "queued";
3252
3254
  evaluating: "evaluating";
3253
3255
  accepted: "accepted";
3254
3256
  progressed: "progressed";
3255
3257
  rejected: "rejected";
3256
- "needs-review": "needs-review";
3257
- failed: "failed";
3258
3258
  }>;
3259
3259
  reason: z.ZodNullable<z.ZodString>;
3260
3260
  retries: z.ZodNumber;
@@ -3291,17 +3291,17 @@ declare const questExperienceSchema: z.ZodObject<{
3291
3291
  }, z.core.$strip>>;
3292
3292
  release: z.ZodString;
3293
3293
  interaction: z.ZodEnum<{
3294
- staff: "staff";
3295
- quiz: "quiz";
3296
3294
  text: "text";
3297
3295
  url: "url";
3298
- photo: "photo";
3299
3296
  automatic: "automatic";
3300
3297
  claim: "claim";
3298
+ staff: "staff";
3299
+ quiz: "quiz";
3300
+ photo: "photo";
3301
3301
  }>;
3302
3302
  lifecycle: z.ZodEnum<{
3303
- active: "active";
3304
3303
  paused: "paused";
3304
+ active: "active";
3305
3305
  archived: "archived";
3306
3306
  }>;
3307
3307
  rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3355,8 +3355,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3355
3355
  }, z.core.$strict>>]>>;
3356
3356
  requires: z.ZodArray<z.ZodString>;
3357
3357
  status: z.ZodEnum<{
3358
- active: "active";
3359
3358
  paused: "paused";
3359
+ active: "active";
3360
3360
  archived: "archived";
3361
3361
  }>;
3362
3362
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -3389,8 +3389,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3389
3389
  }, z.core.$strict>>]>>;
3390
3390
  requires: z.ZodArray<z.ZodString>;
3391
3391
  status: z.ZodEnum<{
3392
- active: "active";
3393
3392
  paused: "paused";
3393
+ active: "active";
3394
3394
  archived: "archived";
3395
3395
  }>;
3396
3396
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -3565,9 +3565,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3565
3565
  }, z.core.$strict>, z.ZodObject<{
3566
3566
  kind: z.ZodLiteral<"manual">;
3567
3567
  input: z.ZodEnum<{
3568
+ none: "none";
3568
3569
  quiz: "quiz";
3569
3570
  photo: "photo";
3570
- none: "none";
3571
3571
  }>;
3572
3572
  actor: z.ZodOptional<z.ZodEnum<{
3573
3573
  member: "member";
@@ -3586,17 +3586,17 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3586
3586
  end: z.ZodOptional<z.ZodNumber>;
3587
3587
  }, z.core.$strict>;
3588
3588
  enrollment: z.ZodDefault<z.ZodEnum<{
3589
- required: "required";
3590
3589
  none: "none";
3590
+ required: "required";
3591
3591
  }>>;
3592
3592
  posts: z.ZodDefault<z.ZodEnum<{
3593
3593
  "after-enrollment": "after-enrollment";
3594
3594
  "since-start": "since-start";
3595
3595
  }>>;
3596
3596
  historical: z.ZodDefault<z.ZodEnum<{
3597
- staff: "staff";
3598
3597
  automatic: "automatic";
3599
3598
  claim: "claim";
3599
+ staff: "staff";
3600
3600
  }>>;
3601
3601
  }, z.core.$strict>>;
3602
3602
  tracker: z.ZodOptional<z.ZodObject<{
@@ -3665,13 +3665,13 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3665
3665
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3666
3666
  id: z.ZodString;
3667
3667
  scope: z.ZodEnum<{
3668
- project: "project";
3669
3668
  member: "member";
3669
+ project: "project";
3670
3670
  }>;
3671
3671
  period: z.ZodEnum<{
3672
3672
  day: "day";
3673
- week: "week";
3674
3673
  lifetime: "lifetime";
3674
+ week: "week";
3675
3675
  }>;
3676
3676
  limit: z.ZodNumber;
3677
3677
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -3694,8 +3694,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3694
3694
  typeVersion: z.ZodString;
3695
3695
  }, z.core.$strict>>;
3696
3696
  lifecycle: z.ZodDefault<z.ZodEnum<{
3697
- active: "active";
3698
3697
  paused: "paused";
3698
+ active: "active";
3699
3699
  archived: "archived";
3700
3700
  }>>;
3701
3701
  configuration: z.ZodOptional<z.ZodObject<{
@@ -3763,7 +3763,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3763
3763
  createdAt: z.ZodNumber;
3764
3764
  }, z.core.$strip>, z.ZodTransform<{
3765
3765
  quest: string;
3766
- runtimeVersion: 2 | 1;
3766
+ runtimeVersion: 1 | 2;
3767
3767
  title: string;
3768
3768
  presentation: {
3769
3769
  quiz?: {
@@ -3800,12 +3800,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3800
3800
  kind: "resource";
3801
3801
  default: string;
3802
3802
  source: {
3803
- provider: "domino";
3804
- resource: "point-ledger";
3805
- } | {
3806
3803
  provider: "discord";
3807
3804
  resource: "channel";
3808
3805
  types: ("text" | "announcement")[];
3806
+ } | {
3807
+ provider: "domino";
3808
+ resource: "point-ledger";
3809
3809
  } | {
3810
3810
  provider: "discord";
3811
3811
  resource: "role";
@@ -3902,9 +3902,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3902
3902
  start: number;
3903
3903
  end?: number | undefined;
3904
3904
  };
3905
- enrollment: "required" | "none";
3905
+ enrollment: "none" | "required";
3906
3906
  posts: "after-enrollment" | "since-start";
3907
- historical: "staff" | "automatic" | "claim";
3907
+ historical: "automatic" | "claim" | "staff";
3908
3908
  } | undefined;
3909
3909
  tracker?: {
3910
3910
  tracker: string;
@@ -3949,7 +3949,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3949
3949
  actor?: "member" | "staff" | undefined;
3950
3950
  } | {
3951
3951
  kind: "manual";
3952
- input: "quiz" | "photo" | "none";
3952
+ input: "none" | "quiz" | "photo";
3953
3953
  actor?: "member" | "staff" | undefined;
3954
3954
  };
3955
3955
  requires: {
@@ -3968,8 +3968,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3968
3968
  visibility: "visible" | "hidden";
3969
3969
  budgets: {
3970
3970
  id: string;
3971
- scope: "project" | "member";
3972
- period: "day" | "week" | "lifetime";
3971
+ scope: "member" | "project";
3972
+ period: "day" | "lifetime" | "week";
3973
3973
  limit: number;
3974
3974
  cost: number | {
3975
3975
  balance: string;
@@ -3980,7 +3980,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3980
3980
  id: string;
3981
3981
  createdAt: number;
3982
3982
  legacy: boolean;
3983
- lifecycle: "active" | "paused" | "archived";
3983
+ lifecycle: "paused" | "active" | "archived";
3984
3984
  performance?: {
3985
3985
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3986
3986
  maxAgeMs: number;
@@ -4440,8 +4440,8 @@ declare const rewardDeliverySchema: z.ZodObject<{
4440
4440
  action: z.ZodLiteral<"grant-role">;
4441
4441
  roleId: z.ZodString;
4442
4442
  status: z.ZodEnum<{
4443
- failed: "failed";
4444
4443
  pending: "pending";
4444
+ failed: "failed";
4445
4445
  delivered: "delivered";
4446
4446
  }>;
4447
4447
  attempts: z.ZodNumber;
@@ -4460,8 +4460,8 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
4460
4460
  action: z.ZodLiteral<"grant-role">;
4461
4461
  roleId: z.ZodString;
4462
4462
  status: z.ZodEnum<{
4463
- failed: "failed";
4464
4463
  pending: "pending";
4464
+ failed: "failed";
4465
4465
  delivered: "delivered";
4466
4466
  }>;
4467
4467
  attempts: z.ZodNumber;
@@ -4632,6 +4632,12 @@ declare function questConfiguration(release: PublishedRelease): {
4632
4632
 
4633
4633
  /** Non-quest resources in the private hosted-build catalog artifact. */
4634
4634
  declare const projectCatalogArtifactSchema: z.ZodObject<{
4635
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
4636
+ code: z.ZodString;
4637
+ provider: z.ZodEnum<{
4638
+ "workers-ai": "workers-ai";
4639
+ }>;
4640
+ }, z.core.$strip>>>;
4635
4641
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
4636
4642
  title: z.ZodString;
4637
4643
  key: z.ZodOptional<z.ZodString>;
@@ -4640,27 +4646,21 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4640
4646
  title: string;
4641
4647
  key?: string | undefined;
4642
4648
  id?: string | undefined;
4643
- }, "key" | "id"> & {
4649
+ }, "id" | "key"> & {
4644
4650
  key: string;
4645
4651
  }, {
4646
4652
  title: string;
4647
4653
  key?: string | undefined;
4648
4654
  id?: string | undefined;
4649
4655
  }>>>>;
4650
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
4651
- code: z.ZodString;
4652
- provider: z.ZodEnum<{
4653
- "workers-ai": "workers-ai";
4654
- }>;
4655
- }, z.core.$strip>>>;
4656
4656
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4657
- staff: "staff";
4658
- quiz: "quiz";
4659
4657
  text: "text";
4660
4658
  url: "url";
4661
- photo: "photo";
4662
4659
  automatic: "automatic";
4663
4660
  claim: "claim";
4661
+ staff: "staff";
4662
+ quiz: "quiz";
4663
+ photo: "photo";
4664
4664
  }>>>;
4665
4665
  engagement: z.ZodDefault<z.ZodArray<z.ZodObject<{
4666
4666
  code: z.ZodString;
@@ -4676,9 +4676,9 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4676
4676
  namespace: z.ZodString;
4677
4677
  identities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4678
4678
  member: "member";
4679
- discord: "discord";
4680
4679
  x: "x";
4681
4680
  wallet: "wallet";
4681
+ discord: "discord";
4682
4682
  }>>>;
4683
4683
  accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
4684
4684
  authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
@@ -4699,6 +4699,14 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4699
4699
  }, z.core.$strict>>>;
4700
4700
  referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
4701
4701
  title: z.ZodString;
4702
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
4703
+ kind: z.ZodLiteral<"signup">;
4704
+ }, z.core.$strict>, z.ZodObject<{
4705
+ kind: z.ZodLiteral<"quest">;
4706
+ quest: z.ZodString;
4707
+ }, z.core.$strict>, z.ZodObject<{
4708
+ kind: z.ZodLiteral<"external">;
4709
+ }, z.core.$strict>], "kind">;
4702
4710
  rewards: z.ZodDefault<z.ZodObject<{
4703
4711
  inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4704
4712
  kind: z.ZodDefault<z.ZodLiteral<"points">>;
@@ -4746,14 +4754,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4746
4754
  }, z.core.$strict>]>>>;
4747
4755
  }, z.core.$strict>>;
4748
4756
  enabled: z.ZodDefault<z.ZodBoolean>;
4749
- qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
4750
- kind: z.ZodLiteral<"signup">;
4751
- }, z.core.$strict>, z.ZodObject<{
4752
- kind: z.ZodLiteral<"quest">;
4753
- quest: z.ZodString;
4754
- }, z.core.$strict>, z.ZodObject<{
4755
- kind: z.ZodLiteral<"external">;
4756
- }, z.core.$strict>], "kind">;
4757
4757
  inviterGroup: z.ZodOptional<z.ZodString>;
4758
4758
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
4759
4759
  id: z.ZodString;
@@ -4794,6 +4794,14 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4794
4794
  id: z.ZodOptional<z.ZodString>;
4795
4795
  }, z.core.$strict>, z.ZodTransform<Omit<{
4796
4796
  title: string;
4797
+ qualification: {
4798
+ kind: "signup";
4799
+ } | {
4800
+ kind: "quest";
4801
+ quest: string;
4802
+ } | {
4803
+ kind: "external";
4804
+ };
4797
4805
  rewards: {
4798
4806
  inviter: ({
4799
4807
  kind: "tier";
@@ -4841,14 +4849,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4841
4849
  })[];
4842
4850
  };
4843
4851
  enabled: boolean;
4844
- qualification: {
4845
- kind: "signup";
4846
- } | {
4847
- kind: "quest";
4848
- quest: string;
4849
- } | {
4850
- kind: "external";
4851
- };
4852
4852
  milestones: {
4853
4853
  id: string;
4854
4854
  count: number;
@@ -4887,10 +4887,18 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4887
4887
  inviterGroup?: string | undefined;
4888
4888
  key?: string | undefined;
4889
4889
  id?: string | undefined;
4890
- }, "key" | "id"> & {
4890
+ }, "id" | "key"> & {
4891
4891
  key: string;
4892
4892
  }, {
4893
4893
  title: string;
4894
+ qualification: {
4895
+ kind: "signup";
4896
+ } | {
4897
+ kind: "quest";
4898
+ quest: string;
4899
+ } | {
4900
+ kind: "external";
4901
+ };
4894
4902
  rewards: {
4895
4903
  inviter: ({
4896
4904
  kind: "tier";
@@ -4938,14 +4946,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4938
4946
  })[];
4939
4947
  };
4940
4948
  enabled: boolean;
4941
- qualification: {
4942
- kind: "signup";
4943
- } | {
4944
- kind: "quest";
4945
- quest: string;
4946
- } | {
4947
- kind: "external";
4948
- };
4949
4949
  milestones: {
4950
4950
  id: string;
4951
4951
  count: number;
@@ -4990,6 +4990,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4990
4990
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
4991
4991
  title: z.ZodString;
4992
4992
  balance: z.ZodString;
4993
+ group: z.ZodOptional<z.ZodString>;
4993
4994
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4994
4995
  kind: z.ZodLiteral<"balance">;
4995
4996
  }, z.core.$strict>, z.ZodObject<{
@@ -5038,7 +5039,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
5038
5039
  participants: "participants";
5039
5040
  public: "public";
5040
5041
  }>>;
5041
- group: z.ZodOptional<z.ZodString>;
5042
5042
  key: z.ZodOptional<z.ZodString>;
5043
5043
  id: z.ZodOptional<z.ZodString>;
5044
5044
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -5084,7 +5084,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
5084
5084
  group?: string | undefined;
5085
5085
  key?: string | undefined;
5086
5086
  id?: string | undefined;
5087
- }, "key" | "id"> & {
5087
+ }, "id" | "key"> & {
5088
5088
  key: string;
5089
5089
  }, {
5090
5090
  title: string;
@@ -5141,6 +5141,12 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
5141
5141
  }, z.core.$strict>;
5142
5142
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
5143
5143
  declare const projectDeploymentSchema: z.ZodObject<{
5144
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
5145
+ code: z.ZodString;
5146
+ provider: z.ZodEnum<{
5147
+ "workers-ai": "workers-ai";
5148
+ }>;
5149
+ }, z.core.$strip>>>;
5144
5150
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
5145
5151
  title: z.ZodString;
5146
5152
  key: z.ZodOptional<z.ZodString>;
@@ -5149,27 +5155,21 @@ declare const projectDeploymentSchema: z.ZodObject<{
5149
5155
  title: string;
5150
5156
  key?: string | undefined;
5151
5157
  id?: string | undefined;
5152
- }, "key" | "id"> & {
5158
+ }, "id" | "key"> & {
5153
5159
  key: string;
5154
5160
  }, {
5155
5161
  title: string;
5156
5162
  key?: string | undefined;
5157
5163
  id?: string | undefined;
5158
5164
  }>>>>;
5159
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
5160
- code: z.ZodString;
5161
- provider: z.ZodEnum<{
5162
- "workers-ai": "workers-ai";
5163
- }>;
5164
- }, z.core.$strip>>>;
5165
5165
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5166
- staff: "staff";
5167
- quiz: "quiz";
5168
5166
  text: "text";
5169
5167
  url: "url";
5170
- photo: "photo";
5171
5168
  automatic: "automatic";
5172
5169
  claim: "claim";
5170
+ staff: "staff";
5171
+ quiz: "quiz";
5172
+ photo: "photo";
5173
5173
  }>>>;
5174
5174
  engagement: z.ZodDefault<z.ZodArray<z.ZodObject<{
5175
5175
  code: z.ZodString;
@@ -5185,9 +5185,9 @@ declare const projectDeploymentSchema: z.ZodObject<{
5185
5185
  namespace: z.ZodString;
5186
5186
  identities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5187
5187
  member: "member";
5188
- discord: "discord";
5189
5188
  x: "x";
5190
5189
  wallet: "wallet";
5190
+ discord: "discord";
5191
5191
  }>>>;
5192
5192
  accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5193
5193
  authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
@@ -5208,6 +5208,14 @@ declare const projectDeploymentSchema: z.ZodObject<{
5208
5208
  }, z.core.$strict>>>;
5209
5209
  referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5210
5210
  title: z.ZodString;
5211
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
5212
+ kind: z.ZodLiteral<"signup">;
5213
+ }, z.core.$strict>, z.ZodObject<{
5214
+ kind: z.ZodLiteral<"quest">;
5215
+ quest: z.ZodString;
5216
+ }, z.core.$strict>, z.ZodObject<{
5217
+ kind: z.ZodLiteral<"external">;
5218
+ }, z.core.$strict>], "kind">;
5211
5219
  rewards: z.ZodDefault<z.ZodObject<{
5212
5220
  inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5213
5221
  kind: z.ZodDefault<z.ZodLiteral<"points">>;
@@ -5255,14 +5263,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
5255
5263
  }, z.core.$strict>]>>>;
5256
5264
  }, z.core.$strict>>;
5257
5265
  enabled: z.ZodDefault<z.ZodBoolean>;
5258
- qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
5259
- kind: z.ZodLiteral<"signup">;
5260
- }, z.core.$strict>, z.ZodObject<{
5261
- kind: z.ZodLiteral<"quest">;
5262
- quest: z.ZodString;
5263
- }, z.core.$strict>, z.ZodObject<{
5264
- kind: z.ZodLiteral<"external">;
5265
- }, z.core.$strict>], "kind">;
5266
5266
  inviterGroup: z.ZodOptional<z.ZodString>;
5267
5267
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
5268
5268
  id: z.ZodString;
@@ -5303,6 +5303,14 @@ declare const projectDeploymentSchema: z.ZodObject<{
5303
5303
  id: z.ZodOptional<z.ZodString>;
5304
5304
  }, z.core.$strict>, z.ZodTransform<Omit<{
5305
5305
  title: string;
5306
+ qualification: {
5307
+ kind: "signup";
5308
+ } | {
5309
+ kind: "quest";
5310
+ quest: string;
5311
+ } | {
5312
+ kind: "external";
5313
+ };
5306
5314
  rewards: {
5307
5315
  inviter: ({
5308
5316
  kind: "tier";
@@ -5350,14 +5358,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
5350
5358
  })[];
5351
5359
  };
5352
5360
  enabled: boolean;
5353
- qualification: {
5354
- kind: "signup";
5355
- } | {
5356
- kind: "quest";
5357
- quest: string;
5358
- } | {
5359
- kind: "external";
5360
- };
5361
5361
  milestones: {
5362
5362
  id: string;
5363
5363
  count: number;
@@ -5396,10 +5396,18 @@ declare const projectDeploymentSchema: z.ZodObject<{
5396
5396
  inviterGroup?: string | undefined;
5397
5397
  key?: string | undefined;
5398
5398
  id?: string | undefined;
5399
- }, "key" | "id"> & {
5399
+ }, "id" | "key"> & {
5400
5400
  key: string;
5401
5401
  }, {
5402
5402
  title: string;
5403
+ qualification: {
5404
+ kind: "signup";
5405
+ } | {
5406
+ kind: "quest";
5407
+ quest: string;
5408
+ } | {
5409
+ kind: "external";
5410
+ };
5403
5411
  rewards: {
5404
5412
  inviter: ({
5405
5413
  kind: "tier";
@@ -5447,14 +5455,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
5447
5455
  })[];
5448
5456
  };
5449
5457
  enabled: boolean;
5450
- qualification: {
5451
- kind: "signup";
5452
- } | {
5453
- kind: "quest";
5454
- quest: string;
5455
- } | {
5456
- kind: "external";
5457
- };
5458
5458
  milestones: {
5459
5459
  id: string;
5460
5460
  count: number;
@@ -5499,6 +5499,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
5499
5499
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5500
5500
  title: z.ZodString;
5501
5501
  balance: z.ZodString;
5502
+ group: z.ZodOptional<z.ZodString>;
5502
5503
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
5503
5504
  kind: z.ZodLiteral<"balance">;
5504
5505
  }, z.core.$strict>, z.ZodObject<{
@@ -5547,7 +5548,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
5547
5548
  participants: "participants";
5548
5549
  public: "public";
5549
5550
  }>>;
5550
- group: z.ZodOptional<z.ZodString>;
5551
5551
  key: z.ZodOptional<z.ZodString>;
5552
5552
  id: z.ZodOptional<z.ZodString>;
5553
5553
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -5593,7 +5593,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
5593
5593
  group?: string | undefined;
5594
5594
  key?: string | undefined;
5595
5595
  id?: string | undefined;
5596
- }, "key" | "id"> & {
5596
+ }, "id" | "key"> & {
5597
5597
  key: string;
5598
5598
  }, {
5599
5599
  title: string;
@@ -5801,9 +5801,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5801
5801
  namespace: z.ZodString;
5802
5802
  identities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5803
5803
  member: "member";
5804
- discord: "discord";
5805
5804
  x: "x";
5806
5805
  wallet: "wallet";
5806
+ discord: "discord";
5807
5807
  }>>>;
5808
5808
  accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5809
5809
  authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
@@ -5984,9 +5984,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5984
5984
  }, z.core.$strict>, z.ZodObject<{
5985
5985
  kind: z.ZodLiteral<"manual">;
5986
5986
  input: z.ZodEnum<{
5987
+ none: "none";
5987
5988
  quiz: "quiz";
5988
5989
  photo: "photo";
5989
- none: "none";
5990
5990
  }>;
5991
5991
  actor: z.ZodOptional<z.ZodEnum<{
5992
5992
  member: "member";
@@ -6005,17 +6005,17 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6005
6005
  end: z.ZodOptional<z.ZodNumber>;
6006
6006
  }, z.core.$strict>;
6007
6007
  enrollment: z.ZodDefault<z.ZodEnum<{
6008
- required: "required";
6009
6008
  none: "none";
6009
+ required: "required";
6010
6010
  }>>;
6011
6011
  posts: z.ZodDefault<z.ZodEnum<{
6012
6012
  "after-enrollment": "after-enrollment";
6013
6013
  "since-start": "since-start";
6014
6014
  }>>;
6015
6015
  historical: z.ZodDefault<z.ZodEnum<{
6016
- staff: "staff";
6017
6016
  automatic: "automatic";
6018
6017
  claim: "claim";
6018
+ staff: "staff";
6019
6019
  }>>;
6020
6020
  }, z.core.$strict>>;
6021
6021
  tracker: z.ZodOptional<z.ZodObject<{
@@ -6084,13 +6084,13 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6084
6084
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6085
6085
  id: z.ZodString;
6086
6086
  scope: z.ZodEnum<{
6087
- project: "project";
6088
6087
  member: "member";
6088
+ project: "project";
6089
6089
  }>;
6090
6090
  period: z.ZodEnum<{
6091
6091
  day: "day";
6092
- week: "week";
6093
6092
  lifetime: "lifetime";
6093
+ week: "week";
6094
6094
  }>;
6095
6095
  limit: z.ZodNumber;
6096
6096
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -6113,8 +6113,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6113
6113
  typeVersion: z.ZodString;
6114
6114
  }, z.core.$strict>>;
6115
6115
  lifecycle: z.ZodDefault<z.ZodEnum<{
6116
- active: "active";
6117
6116
  paused: "paused";
6117
+ active: "active";
6118
6118
  archived: "archived";
6119
6119
  }>>;
6120
6120
  configuration: z.ZodOptional<z.ZodObject<{
@@ -6182,7 +6182,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6182
6182
  createdAt: z.ZodNumber;
6183
6183
  }, z.core.$strip>, z.ZodTransform<{
6184
6184
  quest: string;
6185
- runtimeVersion: 2 | 1;
6185
+ runtimeVersion: 1 | 2;
6186
6186
  title: string;
6187
6187
  presentation: {
6188
6188
  quiz?: {
@@ -6219,12 +6219,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6219
6219
  kind: "resource";
6220
6220
  default: string;
6221
6221
  source: {
6222
- provider: "domino";
6223
- resource: "point-ledger";
6224
- } | {
6225
6222
  provider: "discord";
6226
6223
  resource: "channel";
6227
6224
  types: ("text" | "announcement")[];
6225
+ } | {
6226
+ provider: "domino";
6227
+ resource: "point-ledger";
6228
6228
  } | {
6229
6229
  provider: "discord";
6230
6230
  resource: "role";
@@ -6321,9 +6321,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6321
6321
  start: number;
6322
6322
  end?: number | undefined;
6323
6323
  };
6324
- enrollment: "required" | "none";
6324
+ enrollment: "none" | "required";
6325
6325
  posts: "after-enrollment" | "since-start";
6326
- historical: "staff" | "automatic" | "claim";
6326
+ historical: "automatic" | "claim" | "staff";
6327
6327
  } | undefined;
6328
6328
  tracker?: {
6329
6329
  tracker: string;
@@ -6368,7 +6368,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6368
6368
  actor?: "member" | "staff" | undefined;
6369
6369
  } | {
6370
6370
  kind: "manual";
6371
- input: "quiz" | "photo" | "none";
6371
+ input: "none" | "quiz" | "photo";
6372
6372
  actor?: "member" | "staff" | undefined;
6373
6373
  };
6374
6374
  requires: {
@@ -6387,8 +6387,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6387
6387
  visibility: "visible" | "hidden";
6388
6388
  budgets: {
6389
6389
  id: string;
6390
- scope: "project" | "member";
6391
- period: "day" | "week" | "lifetime";
6390
+ scope: "member" | "project";
6391
+ period: "day" | "lifetime" | "week";
6392
6392
  limit: number;
6393
6393
  cost: number | {
6394
6394
  balance: string;
@@ -6399,7 +6399,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6399
6399
  id: string;
6400
6400
  createdAt: number;
6401
6401
  legacy: boolean;
6402
- lifecycle: "active" | "paused" | "archived";
6402
+ lifecycle: "paused" | "active" | "archived";
6403
6403
  performance?: {
6404
6404
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
6405
6405
  maxAgeMs: number;
@@ -6634,9 +6634,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6634
6634
  }, z.core.$strict>, z.ZodObject<{
6635
6635
  kind: z.ZodLiteral<"manual">;
6636
6636
  input: z.ZodEnum<{
6637
+ none: "none";
6637
6638
  quiz: "quiz";
6638
6639
  photo: "photo";
6639
- none: "none";
6640
6640
  }>;
6641
6641
  actor: z.ZodOptional<z.ZodEnum<{
6642
6642
  member: "member";
@@ -6655,17 +6655,17 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6655
6655
  end: z.ZodOptional<z.ZodNumber>;
6656
6656
  }, z.core.$strict>;
6657
6657
  enrollment: z.ZodDefault<z.ZodEnum<{
6658
- required: "required";
6659
6658
  none: "none";
6659
+ required: "required";
6660
6660
  }>>;
6661
6661
  posts: z.ZodDefault<z.ZodEnum<{
6662
6662
  "after-enrollment": "after-enrollment";
6663
6663
  "since-start": "since-start";
6664
6664
  }>>;
6665
6665
  historical: z.ZodDefault<z.ZodEnum<{
6666
- staff: "staff";
6667
6666
  automatic: "automatic";
6668
6667
  claim: "claim";
6668
+ staff: "staff";
6669
6669
  }>>;
6670
6670
  }, z.core.$strict>>;
6671
6671
  tracker: z.ZodOptional<z.ZodObject<{
@@ -6734,13 +6734,13 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6734
6734
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6735
6735
  id: z.ZodString;
6736
6736
  scope: z.ZodEnum<{
6737
- project: "project";
6738
6737
  member: "member";
6738
+ project: "project";
6739
6739
  }>;
6740
6740
  period: z.ZodEnum<{
6741
6741
  day: "day";
6742
- week: "week";
6743
6742
  lifetime: "lifetime";
6743
+ week: "week";
6744
6744
  }>;
6745
6745
  limit: z.ZodNumber;
6746
6746
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -6764,13 +6764,13 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6764
6764
  quests: z.ZodArray<z.ZodString>;
6765
6765
  }, z.core.$strict>>;
6766
6766
  supportedInteractions: z.ZodArray<z.ZodEnum<{
6767
- staff: "staff";
6768
- quiz: "quiz";
6769
6767
  text: "text";
6770
6768
  url: "url";
6771
- photo: "photo";
6772
6769
  automatic: "automatic";
6773
6770
  claim: "claim";
6771
+ staff: "staff";
6772
+ quiz: "quiz";
6773
+ photo: "photo";
6774
6774
  }>>;
6775
6775
  referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
6776
6776
  version: z.ZodString;
@@ -6966,9 +6966,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6966
6966
  }, z.core.$strip>, z.ZodObject<{
6967
6967
  source: z.ZodLiteral<"account">;
6968
6968
  provider: z.ZodEnum<{
6969
+ x: "x";
6969
6970
  discord: "discord";
6970
6971
  google: "google";
6971
- x: "x";
6972
6972
  }>;
6973
6973
  url: z.ZodString;
6974
6974
  seed: z.ZodString;
@@ -6994,9 +6994,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6994
6994
  }, z.core.$strip>, z.ZodObject<{
6995
6995
  source: z.ZodLiteral<"account">;
6996
6996
  provider: z.ZodEnum<{
6997
+ x: "x";
6997
6998
  discord: "discord";
6998
6999
  google: "google";
6999
- x: "x";
7000
7000
  }>;
7001
7001
  url: z.ZodString;
7002
7002
  seed: z.ZodString;
@@ -7022,9 +7022,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
7022
7022
  }, z.core.$strip>, z.ZodObject<{
7023
7023
  source: z.ZodLiteral<"account">;
7024
7024
  provider: z.ZodEnum<{
7025
+ x: "x";
7025
7026
  discord: "discord";
7026
7027
  google: "google";
7027
- x: "x";
7028
7028
  }>;
7029
7029
  url: z.ZodString;
7030
7030
  seed: z.ZodString;
@@ -7068,9 +7068,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
7068
7068
  }, z.core.$strip>, z.ZodObject<{
7069
7069
  source: z.ZodLiteral<"account">;
7070
7070
  provider: z.ZodEnum<{
7071
+ x: "x";
7071
7072
  discord: "discord";
7072
7073
  google: "google";
7073
- x: "x";
7074
7074
  }>;
7075
7075
  url: z.ZodString;
7076
7076
  seed: z.ZodString;
@@ -7096,9 +7096,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
7096
7096
  }, z.core.$strip>, z.ZodObject<{
7097
7097
  source: z.ZodLiteral<"account">;
7098
7098
  provider: z.ZodEnum<{
7099
+ x: "x";
7099
7100
  discord: "discord";
7100
7101
  google: "google";
7101
- x: "x";
7102
7102
  }>;
7103
7103
  url: z.ZodString;
7104
7104
  seed: z.ZodString;
@@ -7124,9 +7124,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
7124
7124
  }, z.core.$strip>, z.ZodObject<{
7125
7125
  source: z.ZodLiteral<"account">;
7126
7126
  provider: z.ZodEnum<{
7127
+ x: "x";
7127
7128
  discord: "discord";
7128
7129
  google: "google";
7129
- x: "x";
7130
7130
  }>;
7131
7131
  url: z.ZodString;
7132
7132
  seed: z.ZodString;
@@ -7291,9 +7291,9 @@ declare const deploymentResultSchema: z.ZodObject<{
7291
7291
  namespace: z.ZodString;
7292
7292
  identities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7293
7293
  member: "member";
7294
- discord: "discord";
7295
7294
  x: "x";
7296
7295
  wallet: "wallet";
7296
+ discord: "discord";
7297
7297
  }>>>;
7298
7298
  accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
7299
7299
  authors: z.ZodOptional<z.ZodLiteral<"wallet">>;
@@ -7474,9 +7474,9 @@ declare const deploymentResultSchema: z.ZodObject<{
7474
7474
  }, z.core.$strict>, z.ZodObject<{
7475
7475
  kind: z.ZodLiteral<"manual">;
7476
7476
  input: z.ZodEnum<{
7477
+ none: "none";
7477
7478
  quiz: "quiz";
7478
7479
  photo: "photo";
7479
- none: "none";
7480
7480
  }>;
7481
7481
  actor: z.ZodOptional<z.ZodEnum<{
7482
7482
  member: "member";
@@ -7495,17 +7495,17 @@ declare const deploymentResultSchema: z.ZodObject<{
7495
7495
  end: z.ZodOptional<z.ZodNumber>;
7496
7496
  }, z.core.$strict>;
7497
7497
  enrollment: z.ZodDefault<z.ZodEnum<{
7498
- required: "required";
7499
7498
  none: "none";
7499
+ required: "required";
7500
7500
  }>>;
7501
7501
  posts: z.ZodDefault<z.ZodEnum<{
7502
7502
  "after-enrollment": "after-enrollment";
7503
7503
  "since-start": "since-start";
7504
7504
  }>>;
7505
7505
  historical: z.ZodDefault<z.ZodEnum<{
7506
- staff: "staff";
7507
7506
  automatic: "automatic";
7508
7507
  claim: "claim";
7508
+ staff: "staff";
7509
7509
  }>>;
7510
7510
  }, z.core.$strict>>;
7511
7511
  tracker: z.ZodOptional<z.ZodObject<{
@@ -7574,13 +7574,13 @@ declare const deploymentResultSchema: z.ZodObject<{
7574
7574
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
7575
7575
  id: z.ZodString;
7576
7576
  scope: z.ZodEnum<{
7577
- project: "project";
7578
7577
  member: "member";
7578
+ project: "project";
7579
7579
  }>;
7580
7580
  period: z.ZodEnum<{
7581
7581
  day: "day";
7582
- week: "week";
7583
7582
  lifetime: "lifetime";
7583
+ week: "week";
7584
7584
  }>;
7585
7585
  limit: z.ZodNumber;
7586
7586
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -7603,8 +7603,8 @@ declare const deploymentResultSchema: z.ZodObject<{
7603
7603
  typeVersion: z.ZodString;
7604
7604
  }, z.core.$strict>>;
7605
7605
  lifecycle: z.ZodDefault<z.ZodEnum<{
7606
- active: "active";
7607
7606
  paused: "paused";
7607
+ active: "active";
7608
7608
  archived: "archived";
7609
7609
  }>>;
7610
7610
  configuration: z.ZodOptional<z.ZodObject<{
@@ -7672,7 +7672,7 @@ declare const deploymentResultSchema: z.ZodObject<{
7672
7672
  createdAt: z.ZodNumber;
7673
7673
  }, z.core.$strip>, z.ZodTransform<{
7674
7674
  quest: string;
7675
- runtimeVersion: 2 | 1;
7675
+ runtimeVersion: 1 | 2;
7676
7676
  title: string;
7677
7677
  presentation: {
7678
7678
  quiz?: {
@@ -7709,12 +7709,12 @@ declare const deploymentResultSchema: z.ZodObject<{
7709
7709
  kind: "resource";
7710
7710
  default: string;
7711
7711
  source: {
7712
- provider: "domino";
7713
- resource: "point-ledger";
7714
- } | {
7715
7712
  provider: "discord";
7716
7713
  resource: "channel";
7717
7714
  types: ("text" | "announcement")[];
7715
+ } | {
7716
+ provider: "domino";
7717
+ resource: "point-ledger";
7718
7718
  } | {
7719
7719
  provider: "discord";
7720
7720
  resource: "role";
@@ -7811,9 +7811,9 @@ declare const deploymentResultSchema: z.ZodObject<{
7811
7811
  start: number;
7812
7812
  end?: number | undefined;
7813
7813
  };
7814
- enrollment: "required" | "none";
7814
+ enrollment: "none" | "required";
7815
7815
  posts: "after-enrollment" | "since-start";
7816
- historical: "staff" | "automatic" | "claim";
7816
+ historical: "automatic" | "claim" | "staff";
7817
7817
  } | undefined;
7818
7818
  tracker?: {
7819
7819
  tracker: string;
@@ -7858,7 +7858,7 @@ declare const deploymentResultSchema: z.ZodObject<{
7858
7858
  actor?: "member" | "staff" | undefined;
7859
7859
  } | {
7860
7860
  kind: "manual";
7861
- input: "quiz" | "photo" | "none";
7861
+ input: "none" | "quiz" | "photo";
7862
7862
  actor?: "member" | "staff" | undefined;
7863
7863
  };
7864
7864
  requires: {
@@ -7877,8 +7877,8 @@ declare const deploymentResultSchema: z.ZodObject<{
7877
7877
  visibility: "visible" | "hidden";
7878
7878
  budgets: {
7879
7879
  id: string;
7880
- scope: "project" | "member";
7881
- period: "day" | "week" | "lifetime";
7880
+ scope: "member" | "project";
7881
+ period: "day" | "lifetime" | "week";
7882
7882
  limit: number;
7883
7883
  cost: number | {
7884
7884
  balance: string;
@@ -7889,7 +7889,7 @@ declare const deploymentResultSchema: z.ZodObject<{
7889
7889
  id: string;
7890
7890
  createdAt: number;
7891
7891
  legacy: boolean;
7892
- lifecycle: "active" | "paused" | "archived";
7892
+ lifecycle: "paused" | "active" | "archived";
7893
7893
  performance?: {
7894
7894
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
7895
7895
  maxAgeMs: number;
@@ -8124,9 +8124,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8124
8124
  }, z.core.$strict>, z.ZodObject<{
8125
8125
  kind: z.ZodLiteral<"manual">;
8126
8126
  input: z.ZodEnum<{
8127
+ none: "none";
8127
8128
  quiz: "quiz";
8128
8129
  photo: "photo";
8129
- none: "none";
8130
8130
  }>;
8131
8131
  actor: z.ZodOptional<z.ZodEnum<{
8132
8132
  member: "member";
@@ -8145,17 +8145,17 @@ declare const deploymentResultSchema: z.ZodObject<{
8145
8145
  end: z.ZodOptional<z.ZodNumber>;
8146
8146
  }, z.core.$strict>;
8147
8147
  enrollment: z.ZodDefault<z.ZodEnum<{
8148
- required: "required";
8149
8148
  none: "none";
8149
+ required: "required";
8150
8150
  }>>;
8151
8151
  posts: z.ZodDefault<z.ZodEnum<{
8152
8152
  "after-enrollment": "after-enrollment";
8153
8153
  "since-start": "since-start";
8154
8154
  }>>;
8155
8155
  historical: z.ZodDefault<z.ZodEnum<{
8156
- staff: "staff";
8157
8156
  automatic: "automatic";
8158
8157
  claim: "claim";
8158
+ staff: "staff";
8159
8159
  }>>;
8160
8160
  }, z.core.$strict>>;
8161
8161
  tracker: z.ZodOptional<z.ZodObject<{
@@ -8224,13 +8224,13 @@ declare const deploymentResultSchema: z.ZodObject<{
8224
8224
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
8225
8225
  id: z.ZodString;
8226
8226
  scope: z.ZodEnum<{
8227
- project: "project";
8228
8227
  member: "member";
8228
+ project: "project";
8229
8229
  }>;
8230
8230
  period: z.ZodEnum<{
8231
8231
  day: "day";
8232
- week: "week";
8233
8232
  lifetime: "lifetime";
8233
+ week: "week";
8234
8234
  }>;
8235
8235
  limit: z.ZodNumber;
8236
8236
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -8254,13 +8254,13 @@ declare const deploymentResultSchema: z.ZodObject<{
8254
8254
  quests: z.ZodArray<z.ZodString>;
8255
8255
  }, z.core.$strict>>;
8256
8256
  supportedInteractions: z.ZodArray<z.ZodEnum<{
8257
- staff: "staff";
8258
- quiz: "quiz";
8259
8257
  text: "text";
8260
8258
  url: "url";
8261
- photo: "photo";
8262
8259
  automatic: "automatic";
8263
8260
  claim: "claim";
8261
+ staff: "staff";
8262
+ quiz: "quiz";
8263
+ photo: "photo";
8264
8264
  }>>;
8265
8265
  referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
8266
8266
  version: z.ZodString;
@@ -8456,9 +8456,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8456
8456
  }, z.core.$strip>, z.ZodObject<{
8457
8457
  source: z.ZodLiteral<"account">;
8458
8458
  provider: z.ZodEnum<{
8459
+ x: "x";
8459
8460
  discord: "discord";
8460
8461
  google: "google";
8461
- x: "x";
8462
8462
  }>;
8463
8463
  url: z.ZodString;
8464
8464
  seed: z.ZodString;
@@ -8484,9 +8484,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8484
8484
  }, z.core.$strip>, z.ZodObject<{
8485
8485
  source: z.ZodLiteral<"account">;
8486
8486
  provider: z.ZodEnum<{
8487
+ x: "x";
8487
8488
  discord: "discord";
8488
8489
  google: "google";
8489
- x: "x";
8490
8490
  }>;
8491
8491
  url: z.ZodString;
8492
8492
  seed: z.ZodString;
@@ -8512,9 +8512,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8512
8512
  }, z.core.$strip>, z.ZodObject<{
8513
8513
  source: z.ZodLiteral<"account">;
8514
8514
  provider: z.ZodEnum<{
8515
+ x: "x";
8515
8516
  discord: "discord";
8516
8517
  google: "google";
8517
- x: "x";
8518
8518
  }>;
8519
8519
  url: z.ZodString;
8520
8520
  seed: z.ZodString;
@@ -8558,9 +8558,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8558
8558
  }, z.core.$strip>, z.ZodObject<{
8559
8559
  source: z.ZodLiteral<"account">;
8560
8560
  provider: z.ZodEnum<{
8561
+ x: "x";
8561
8562
  discord: "discord";
8562
8563
  google: "google";
8563
- x: "x";
8564
8564
  }>;
8565
8565
  url: z.ZodString;
8566
8566
  seed: z.ZodString;
@@ -8586,9 +8586,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8586
8586
  }, z.core.$strip>, z.ZodObject<{
8587
8587
  source: z.ZodLiteral<"account">;
8588
8588
  provider: z.ZodEnum<{
8589
+ x: "x";
8589
8590
  discord: "discord";
8590
8591
  google: "google";
8591
- x: "x";
8592
8592
  }>;
8593
8593
  url: z.ZodString;
8594
8594
  seed: z.ZodString;
@@ -8614,9 +8614,9 @@ declare const deploymentResultSchema: z.ZodObject<{
8614
8614
  }, z.core.$strip>, z.ZodObject<{
8615
8615
  source: z.ZodLiteral<"account">;
8616
8616
  provider: z.ZodEnum<{
8617
+ x: "x";
8617
8618
  discord: "discord";
8618
8619
  google: "google";
8619
- x: "x";
8620
8620
  }>;
8621
8621
  url: z.ZodString;
8622
8622
  seed: z.ZodString;
@@ -9008,7 +9008,7 @@ declare function createRelayClient(options: {
9008
9008
  seed: string;
9009
9009
  } | {
9010
9010
  source: "account";
9011
- provider: "discord" | "google" | "x";
9011
+ provider: "x" | "discord" | "google";
9012
9012
  url: string;
9013
9013
  seed: string;
9014
9014
  } | {
@@ -9032,7 +9032,7 @@ declare function createRelayClient(options: {
9032
9032
  seed: string;
9033
9033
  } | {
9034
9034
  source: "account";
9035
- provider: "discord" | "google" | "x";
9035
+ provider: "x" | "discord" | "google";
9036
9036
  url: string;
9037
9037
  seed: string;
9038
9038
  } | {
@@ -9056,7 +9056,7 @@ declare function createRelayClient(options: {
9056
9056
  seed: string;
9057
9057
  } | {
9058
9058
  source: "account";
9059
- provider: "discord" | "google" | "x";
9059
+ provider: "x" | "discord" | "google";
9060
9060
  url: string;
9061
9061
  seed: string;
9062
9062
  } | {
@@ -9098,7 +9098,7 @@ declare function createRelayClient(options: {
9098
9098
  seed: string;
9099
9099
  } | {
9100
9100
  source: "account";
9101
- provider: "discord" | "google" | "x";
9101
+ provider: "x" | "discord" | "google";
9102
9102
  url: string;
9103
9103
  seed: string;
9104
9104
  } | {
@@ -9106,13 +9106,13 @@ declare function createRelayClient(options: {
9106
9106
  seed: string;
9107
9107
  };
9108
9108
  displayName: string | null;
9109
- avatarChoice: "default" | "account" | "generated" | "upload";
9110
- avatarProvider: "discord" | "google" | "x" | null;
9109
+ avatarChoice: "default" | "account" | "upload" | "generated";
9110
+ avatarProvider: "x" | "discord" | "google" | null;
9111
9111
  hidden: boolean;
9112
9112
  locked: boolean;
9113
- visibility: "participants" | "public" | "private";
9113
+ visibility: "private" | "participants" | "public";
9114
9114
  options: {
9115
- provider: "discord" | "google" | "x";
9115
+ provider: "x" | "discord" | "google";
9116
9116
  name: string | null;
9117
9117
  imageUrl: string | null;
9118
9118
  }[];
@@ -9132,7 +9132,7 @@ declare function createRelayClient(options: {
9132
9132
  seed: string;
9133
9133
  } | {
9134
9134
  source: "account";
9135
- provider: "discord" | "google" | "x";
9135
+ provider: "x" | "discord" | "google";
9136
9136
  url: string;
9137
9137
  seed: string;
9138
9138
  } | {
@@ -9140,13 +9140,13 @@ declare function createRelayClient(options: {
9140
9140
  seed: string;
9141
9141
  };
9142
9142
  displayName: string | null;
9143
- avatarChoice: "default" | "account" | "generated" | "upload";
9144
- avatarProvider: "discord" | "google" | "x" | null;
9143
+ avatarChoice: "default" | "account" | "upload" | "generated";
9144
+ avatarProvider: "x" | "discord" | "google" | null;
9145
9145
  hidden: boolean;
9146
9146
  locked: boolean;
9147
- visibility: "participants" | "public" | "private";
9147
+ visibility: "private" | "participants" | "public";
9148
9148
  options: {
9149
- provider: "discord" | "google" | "x";
9149
+ provider: "x" | "discord" | "google";
9150
9150
  name: string | null;
9151
9151
  imageUrl: string | null;
9152
9152
  }[];
@@ -9167,7 +9167,7 @@ declare function createRelayClient(options: {
9167
9167
  seed: string;
9168
9168
  } | {
9169
9169
  source: "account";
9170
- provider: "discord" | "google" | "x";
9170
+ provider: "x" | "discord" | "google";
9171
9171
  url: string;
9172
9172
  seed: string;
9173
9173
  } | {
@@ -9175,13 +9175,13 @@ declare function createRelayClient(options: {
9175
9175
  seed: string;
9176
9176
  };
9177
9177
  displayName: string | null;
9178
- avatarChoice: "default" | "account" | "generated" | "upload";
9179
- avatarProvider: "discord" | "google" | "x" | null;
9178
+ avatarChoice: "default" | "account" | "upload" | "generated";
9179
+ avatarProvider: "x" | "discord" | "google" | null;
9180
9180
  hidden: boolean;
9181
9181
  locked: boolean;
9182
- visibility: "participants" | "public" | "private";
9182
+ visibility: "private" | "participants" | "public";
9183
9183
  options: {
9184
- provider: "discord" | "google" | "x";
9184
+ provider: "x" | "discord" | "google";
9185
9185
  name: string | null;
9186
9186
  imageUrl: string | null;
9187
9187
  }[];
@@ -9199,7 +9199,7 @@ declare function createRelayClient(options: {
9199
9199
  seed: string;
9200
9200
  } | {
9201
9201
  source: "account";
9202
- provider: "discord" | "google" | "x";
9202
+ provider: "x" | "discord" | "google";
9203
9203
  url: string;
9204
9204
  seed: string;
9205
9205
  } | {
@@ -9262,7 +9262,7 @@ declare function createRelayClient(options: {
9262
9262
  } | undefined;
9263
9263
  } | undefined;
9264
9264
  };
9265
- connections: ("discord" | "google" | "apple" | "x")[];
9265
+ connections: ("x" | "discord" | "google" | "apple")[];
9266
9266
  trigger: {
9267
9267
  kind: "automatic";
9268
9268
  observation?: {
@@ -9275,9 +9275,9 @@ declare function createRelayClient(options: {
9275
9275
  start: number;
9276
9276
  end?: number | undefined;
9277
9277
  };
9278
- enrollment: "required" | "none";
9278
+ enrollment: "none" | "required";
9279
9279
  posts: "after-enrollment" | "since-start";
9280
- historical: "staff" | "automatic" | "claim";
9280
+ historical: "automatic" | "claim" | "staff";
9281
9281
  } | undefined;
9282
9282
  tracker?: {
9283
9283
  tracker: string;
@@ -9322,12 +9322,12 @@ declare function createRelayClient(options: {
9322
9322
  actor?: "member" | "staff" | undefined;
9323
9323
  } | {
9324
9324
  kind: "manual";
9325
- input: "quiz" | "photo" | "none";
9325
+ input: "none" | "quiz" | "photo";
9326
9326
  actor?: "member" | "staff" | undefined;
9327
9327
  };
9328
9328
  availability: {
9329
9329
  kind: "available";
9330
- input: "quiz" | "text" | "url" | "photo" | "none";
9330
+ input: "text" | "url" | "none" | "quiz" | "photo";
9331
9331
  } | {
9332
9332
  kind: "completed";
9333
9333
  } | {
@@ -9376,7 +9376,7 @@ declare function createRelayClient(options: {
9376
9376
  quest: string;
9377
9377
  member: string;
9378
9378
  evidence: string | null;
9379
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9379
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
9380
9380
  reason: string | null;
9381
9381
  retries: number;
9382
9382
  generation: number;
@@ -9410,22 +9410,22 @@ declare function createRelayClient(options: {
9410
9410
  })[] | null;
9411
9411
  createdAt: number;
9412
9412
  input?: {
9413
- kind: "quiz";
9414
- answers: {
9415
- [k: string]: string;
9416
- };
9417
- release?: string | undefined;
9418
- } | {
9419
9413
  kind: "text";
9420
9414
  value: string;
9421
9415
  } | {
9422
9416
  kind: "url";
9423
9417
  value: string;
9418
+ } | {
9419
+ kind: "quiz";
9420
+ answers: {
9421
+ [k: string]: string;
9422
+ };
9423
+ release?: string | undefined;
9424
9424
  } | undefined;
9425
9425
  } | null;
9426
9426
  release: string;
9427
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
9428
- lifecycle: "active" | "paused" | "archived";
9427
+ interaction: "text" | "url" | "automatic" | "claim" | "staff" | "quiz" | "photo";
9428
+ lifecycle: "paused" | "active" | "archived";
9429
9429
  rewards: ({
9430
9430
  kind: "points";
9431
9431
  label: string;
@@ -9486,7 +9486,7 @@ declare function createRelayClient(options: {
9486
9486
  quest: string;
9487
9487
  member: string;
9488
9488
  evidence: string | null;
9489
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9489
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
9490
9490
  reason: string | null;
9491
9491
  retries: number;
9492
9492
  generation: number;
@@ -9520,17 +9520,17 @@ declare function createRelayClient(options: {
9520
9520
  })[] | null;
9521
9521
  createdAt: number;
9522
9522
  input?: {
9523
- kind: "quiz";
9524
- answers: {
9525
- [k: string]: string;
9526
- };
9527
- release?: string | undefined;
9528
- } | {
9529
9523
  kind: "text";
9530
9524
  value: string;
9531
9525
  } | {
9532
9526
  kind: "url";
9533
9527
  value: string;
9528
+ } | {
9529
+ kind: "quiz";
9530
+ answers: {
9531
+ [k: string]: string;
9532
+ };
9533
+ release?: string | undefined;
9534
9534
  } | undefined;
9535
9535
  }>;
9536
9536
  experience: () => Promise<{
@@ -9558,7 +9558,7 @@ declare function createRelayClient(options: {
9558
9558
  } | undefined;
9559
9559
  } | undefined;
9560
9560
  };
9561
- connections: ("discord" | "google" | "apple" | "x")[];
9561
+ connections: ("x" | "discord" | "google" | "apple")[];
9562
9562
  trigger: {
9563
9563
  kind: "automatic";
9564
9564
  observation?: {
@@ -9571,9 +9571,9 @@ declare function createRelayClient(options: {
9571
9571
  start: number;
9572
9572
  end?: number | undefined;
9573
9573
  };
9574
- enrollment: "required" | "none";
9574
+ enrollment: "none" | "required";
9575
9575
  posts: "after-enrollment" | "since-start";
9576
- historical: "staff" | "automatic" | "claim";
9576
+ historical: "automatic" | "claim" | "staff";
9577
9577
  } | undefined;
9578
9578
  tracker?: {
9579
9579
  tracker: string;
@@ -9618,12 +9618,12 @@ declare function createRelayClient(options: {
9618
9618
  actor?: "member" | "staff" | undefined;
9619
9619
  } | {
9620
9620
  kind: "manual";
9621
- input: "quiz" | "photo" | "none";
9621
+ input: "none" | "quiz" | "photo";
9622
9622
  actor?: "member" | "staff" | undefined;
9623
9623
  };
9624
9624
  availability: {
9625
9625
  kind: "available";
9626
- input: "quiz" | "text" | "url" | "photo" | "none";
9626
+ input: "text" | "url" | "none" | "quiz" | "photo";
9627
9627
  } | {
9628
9628
  kind: "completed";
9629
9629
  } | {
@@ -9672,7 +9672,7 @@ declare function createRelayClient(options: {
9672
9672
  quest: string;
9673
9673
  member: string;
9674
9674
  evidence: string | null;
9675
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9675
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
9676
9676
  reason: string | null;
9677
9677
  retries: number;
9678
9678
  generation: number;
@@ -9706,22 +9706,22 @@ declare function createRelayClient(options: {
9706
9706
  })[] | null;
9707
9707
  createdAt: number;
9708
9708
  input?: {
9709
- kind: "quiz";
9710
- answers: {
9711
- [k: string]: string;
9712
- };
9713
- release?: string | undefined;
9714
- } | {
9715
9709
  kind: "text";
9716
9710
  value: string;
9717
9711
  } | {
9718
9712
  kind: "url";
9719
9713
  value: string;
9714
+ } | {
9715
+ kind: "quiz";
9716
+ answers: {
9717
+ [k: string]: string;
9718
+ };
9719
+ release?: string | undefined;
9720
9720
  } | undefined;
9721
9721
  } | null;
9722
9722
  release: string;
9723
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
9724
- lifecycle: "active" | "paused" | "archived";
9723
+ interaction: "text" | "url" | "automatic" | "claim" | "staff" | "quiz" | "photo";
9724
+ lifecycle: "paused" | "active" | "archived";
9725
9725
  rewards: ({
9726
9726
  kind: "points";
9727
9727
  label: string;
@@ -9802,7 +9802,7 @@ declare function createRelayClient(options: {
9802
9802
  } | undefined;
9803
9803
  } | undefined;
9804
9804
  };
9805
- connections: ("discord" | "google" | "apple" | "x")[];
9805
+ connections: ("x" | "discord" | "google" | "apple")[];
9806
9806
  trigger: {
9807
9807
  kind: "automatic";
9808
9808
  observation?: {
@@ -9815,9 +9815,9 @@ declare function createRelayClient(options: {
9815
9815
  start: number;
9816
9816
  end?: number | undefined;
9817
9817
  };
9818
- enrollment: "required" | "none";
9818
+ enrollment: "none" | "required";
9819
9819
  posts: "after-enrollment" | "since-start";
9820
- historical: "staff" | "automatic" | "claim";
9820
+ historical: "automatic" | "claim" | "staff";
9821
9821
  } | undefined;
9822
9822
  tracker?: {
9823
9823
  tracker: string;
@@ -9862,12 +9862,12 @@ declare function createRelayClient(options: {
9862
9862
  actor?: "member" | "staff" | undefined;
9863
9863
  } | {
9864
9864
  kind: "manual";
9865
- input: "quiz" | "photo" | "none";
9865
+ input: "none" | "quiz" | "photo";
9866
9866
  actor?: "member" | "staff" | undefined;
9867
9867
  };
9868
9868
  availability: {
9869
9869
  kind: "available";
9870
- input: "quiz" | "text" | "url" | "photo" | "none";
9870
+ input: "text" | "url" | "none" | "quiz" | "photo";
9871
9871
  } | {
9872
9872
  kind: "completed";
9873
9873
  } | {
@@ -9916,7 +9916,7 @@ declare function createRelayClient(options: {
9916
9916
  quest: string;
9917
9917
  member: string;
9918
9918
  evidence: string | null;
9919
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9919
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
9920
9920
  reason: string | null;
9921
9921
  retries: number;
9922
9922
  generation: number;
@@ -9950,22 +9950,22 @@ declare function createRelayClient(options: {
9950
9950
  })[] | null;
9951
9951
  createdAt: number;
9952
9952
  input?: {
9953
- kind: "quiz";
9954
- answers: {
9955
- [k: string]: string;
9956
- };
9957
- release?: string | undefined;
9958
- } | {
9959
9953
  kind: "text";
9960
9954
  value: string;
9961
9955
  } | {
9962
9956
  kind: "url";
9963
9957
  value: string;
9958
+ } | {
9959
+ kind: "quiz";
9960
+ answers: {
9961
+ [k: string]: string;
9962
+ };
9963
+ release?: string | undefined;
9964
9964
  } | undefined;
9965
9965
  } | null;
9966
9966
  release: string;
9967
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
9968
- lifecycle: "active" | "paused" | "archived";
9967
+ interaction: "text" | "url" | "automatic" | "claim" | "staff" | "quiz" | "photo";
9968
+ lifecycle: "paused" | "active" | "archived";
9969
9969
  rewards: ({
9970
9970
  kind: "points";
9971
9971
  label: string;
@@ -10049,7 +10049,7 @@ declare function createRelayClient(options: {
10049
10049
  } | undefined;
10050
10050
  } | undefined;
10051
10051
  };
10052
- connections: ("discord" | "google" | "apple" | "x")[];
10052
+ connections: ("x" | "discord" | "google" | "apple")[];
10053
10053
  trigger: {
10054
10054
  kind: "automatic";
10055
10055
  observation?: {
@@ -10062,9 +10062,9 @@ declare function createRelayClient(options: {
10062
10062
  start: number;
10063
10063
  end?: number | undefined;
10064
10064
  };
10065
- enrollment: "required" | "none";
10065
+ enrollment: "none" | "required";
10066
10066
  posts: "after-enrollment" | "since-start";
10067
- historical: "staff" | "automatic" | "claim";
10067
+ historical: "automatic" | "claim" | "staff";
10068
10068
  } | undefined;
10069
10069
  tracker?: {
10070
10070
  tracker: string;
@@ -10109,12 +10109,12 @@ declare function createRelayClient(options: {
10109
10109
  actor?: "member" | "staff" | undefined;
10110
10110
  } | {
10111
10111
  kind: "manual";
10112
- input: "quiz" | "photo" | "none";
10112
+ input: "none" | "quiz" | "photo";
10113
10113
  actor?: "member" | "staff" | undefined;
10114
10114
  };
10115
10115
  availability: {
10116
10116
  kind: "available";
10117
- input: "quiz" | "text" | "url" | "photo" | "none";
10117
+ input: "text" | "url" | "none" | "quiz" | "photo";
10118
10118
  } | {
10119
10119
  kind: "completed";
10120
10120
  } | {
@@ -10163,7 +10163,7 @@ declare function createRelayClient(options: {
10163
10163
  quest: string;
10164
10164
  member: string;
10165
10165
  evidence: string | null;
10166
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10166
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
10167
10167
  reason: string | null;
10168
10168
  retries: number;
10169
10169
  generation: number;
@@ -10197,22 +10197,22 @@ declare function createRelayClient(options: {
10197
10197
  })[] | null;
10198
10198
  createdAt: number;
10199
10199
  input?: {
10200
- kind: "quiz";
10201
- answers: {
10202
- [k: string]: string;
10203
- };
10204
- release?: string | undefined;
10205
- } | {
10206
10200
  kind: "text";
10207
10201
  value: string;
10208
10202
  } | {
10209
10203
  kind: "url";
10210
10204
  value: string;
10205
+ } | {
10206
+ kind: "quiz";
10207
+ answers: {
10208
+ [k: string]: string;
10209
+ };
10210
+ release?: string | undefined;
10211
10211
  } | undefined;
10212
10212
  } | null;
10213
10213
  release: string;
10214
- interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
10215
- lifecycle: "active" | "paused" | "archived";
10214
+ interaction: "text" | "url" | "automatic" | "claim" | "staff" | "quiz" | "photo";
10215
+ lifecycle: "paused" | "active" | "archived";
10216
10216
  rewards: ({
10217
10217
  kind: "points";
10218
10218
  label: string;
@@ -10341,7 +10341,7 @@ declare function createRelayClient(options: {
10341
10341
  auth: {
10342
10342
  providers: () => Promise<{
10343
10343
  providers: {
10344
- provider: "discord" | "google" | "apple" | "x";
10344
+ provider: "x" | "discord" | "google" | "apple";
10345
10345
  configured: boolean;
10346
10346
  }[];
10347
10347
  email: boolean;
@@ -10427,7 +10427,7 @@ declare function createRelayClient(options: {
10427
10427
  }>;
10428
10428
  };
10429
10429
  accounts: () => Promise<{
10430
- provider: "discord" | "google" | "apple" | "x";
10430
+ provider: "x" | "discord" | "google" | "apple";
10431
10431
  configured: boolean;
10432
10432
  status: "disconnected" | "connected" | "reconnect";
10433
10433
  subject: string | null;
@@ -10531,7 +10531,7 @@ declare function createRelayClient(options: {
10531
10531
  quest: string;
10532
10532
  member: string;
10533
10533
  evidence: string | null;
10534
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10534
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
10535
10535
  reason: string | null;
10536
10536
  retries: number;
10537
10537
  generation: number;
@@ -10565,17 +10565,17 @@ declare function createRelayClient(options: {
10565
10565
  })[] | null;
10566
10566
  createdAt: number;
10567
10567
  input?: {
10568
- kind: "quiz";
10569
- answers: {
10570
- [k: string]: string;
10571
- };
10572
- release?: string | undefined;
10573
- } | {
10574
10568
  kind: "text";
10575
10569
  value: string;
10576
10570
  } | {
10577
10571
  kind: "url";
10578
10572
  value: string;
10573
+ } | {
10574
+ kind: "quiz";
10575
+ answers: {
10576
+ [k: string]: string;
10577
+ };
10578
+ release?: string | undefined;
10579
10579
  } | undefined;
10580
10580
  }>;
10581
10581
  progress: () => Promise<{
@@ -10603,7 +10603,7 @@ declare function createRelayClient(options: {
10603
10603
  } | undefined;
10604
10604
  } | undefined;
10605
10605
  };
10606
- connections: ("discord" | "google" | "apple" | "x")[];
10606
+ connections: ("x" | "discord" | "google" | "apple")[];
10607
10607
  trigger: {
10608
10608
  kind: "automatic";
10609
10609
  observation?: {
@@ -10616,9 +10616,9 @@ declare function createRelayClient(options: {
10616
10616
  start: number;
10617
10617
  end?: number | undefined;
10618
10618
  };
10619
- enrollment: "required" | "none";
10619
+ enrollment: "none" | "required";
10620
10620
  posts: "after-enrollment" | "since-start";
10621
- historical: "staff" | "automatic" | "claim";
10621
+ historical: "automatic" | "claim" | "staff";
10622
10622
  } | undefined;
10623
10623
  tracker?: {
10624
10624
  tracker: string;
@@ -10663,12 +10663,12 @@ declare function createRelayClient(options: {
10663
10663
  actor?: "member" | "staff" | undefined;
10664
10664
  } | {
10665
10665
  kind: "manual";
10666
- input: "quiz" | "photo" | "none";
10666
+ input: "none" | "quiz" | "photo";
10667
10667
  actor?: "member" | "staff" | undefined;
10668
10668
  };
10669
10669
  availability: {
10670
10670
  kind: "available";
10671
- input: "quiz" | "text" | "url" | "photo" | "none";
10671
+ input: "text" | "url" | "none" | "quiz" | "photo";
10672
10672
  } | {
10673
10673
  kind: "completed";
10674
10674
  } | {
@@ -10717,7 +10717,7 @@ declare function createRelayClient(options: {
10717
10717
  quest: string;
10718
10718
  member: string;
10719
10719
  evidence: string | null;
10720
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10720
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
10721
10721
  reason: string | null;
10722
10722
  retries: number;
10723
10723
  generation: number;
@@ -10751,17 +10751,17 @@ declare function createRelayClient(options: {
10751
10751
  })[] | null;
10752
10752
  createdAt: number;
10753
10753
  input?: {
10754
- kind: "quiz";
10755
- answers: {
10756
- [k: string]: string;
10757
- };
10758
- release?: string | undefined;
10759
- } | {
10760
10754
  kind: "text";
10761
10755
  value: string;
10762
10756
  } | {
10763
10757
  kind: "url";
10764
10758
  value: string;
10759
+ } | {
10760
+ kind: "quiz";
10761
+ answers: {
10762
+ [k: string]: string;
10763
+ };
10764
+ release?: string | undefined;
10765
10765
  } | undefined;
10766
10766
  } | null;
10767
10767
  key?: string | undefined;
@@ -10884,7 +10884,7 @@ declare function createRelayClient(options: {
10884
10884
  provider: "discord";
10885
10885
  action: "grant-role";
10886
10886
  roleId: string;
10887
- status: "failed" | "pending" | "delivered";
10887
+ status: "pending" | "failed" | "delivered";
10888
10888
  attempts: number;
10889
10889
  nextAt: number;
10890
10890
  lastError: string | null;
@@ -10900,7 +10900,7 @@ declare function createRelayClient(options: {
10900
10900
  quest: string;
10901
10901
  member: string;
10902
10902
  evidence: string | null;
10903
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10903
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
10904
10904
  reason: string | null;
10905
10905
  retries: number;
10906
10906
  generation: number;
@@ -10934,17 +10934,17 @@ declare function createRelayClient(options: {
10934
10934
  })[] | null;
10935
10935
  createdAt: number;
10936
10936
  input?: {
10937
- kind: "quiz";
10938
- answers: {
10939
- [k: string]: string;
10940
- };
10941
- release?: string | undefined;
10942
- } | {
10943
10937
  kind: "text";
10944
10938
  value: string;
10945
10939
  } | {
10946
10940
  kind: "url";
10947
10941
  value: string;
10942
+ } | {
10943
+ kind: "quiz";
10944
+ answers: {
10945
+ [k: string]: string;
10946
+ };
10947
+ release?: string | undefined;
10948
10948
  } | undefined;
10949
10949
  }>;
10950
10950
  upload: (file: File) => Promise<{
@@ -10968,7 +10968,7 @@ declare function createRelayClient(options: {
10968
10968
  code: string;
10969
10969
  definition: {
10970
10970
  quest: string;
10971
- runtimeVersion: 2 | 1;
10971
+ runtimeVersion: 1 | 2;
10972
10972
  title: string;
10973
10973
  presentation: {
10974
10974
  quiz?: {
@@ -11005,12 +11005,12 @@ declare function createRelayClient(options: {
11005
11005
  kind: "resource";
11006
11006
  default: string;
11007
11007
  source: {
11008
- provider: "domino";
11009
- resource: "point-ledger";
11010
- } | {
11011
11008
  provider: "discord";
11012
11009
  resource: "channel";
11013
11010
  types: ("text" | "announcement")[];
11011
+ } | {
11012
+ provider: "domino";
11013
+ resource: "point-ledger";
11014
11014
  } | {
11015
11015
  provider: "discord";
11016
11016
  resource: "role";
@@ -11107,9 +11107,9 @@ declare function createRelayClient(options: {
11107
11107
  start: number;
11108
11108
  end?: number | undefined;
11109
11109
  };
11110
- enrollment: "required" | "none";
11110
+ enrollment: "none" | "required";
11111
11111
  posts: "after-enrollment" | "since-start";
11112
- historical: "staff" | "automatic" | "claim";
11112
+ historical: "automatic" | "claim" | "staff";
11113
11113
  } | undefined;
11114
11114
  tracker?: {
11115
11115
  tracker: string;
@@ -11154,7 +11154,7 @@ declare function createRelayClient(options: {
11154
11154
  actor?: "member" | "staff" | undefined;
11155
11155
  } | {
11156
11156
  kind: "manual";
11157
- input: "quiz" | "photo" | "none";
11157
+ input: "none" | "quiz" | "photo";
11158
11158
  actor?: "member" | "staff" | undefined;
11159
11159
  };
11160
11160
  requires: {
@@ -11173,8 +11173,8 @@ declare function createRelayClient(options: {
11173
11173
  visibility: "visible" | "hidden";
11174
11174
  budgets: {
11175
11175
  id: string;
11176
- scope: "project" | "member";
11177
- period: "day" | "week" | "lifetime";
11176
+ scope: "member" | "project";
11177
+ period: "day" | "lifetime" | "week";
11178
11178
  limit: number;
11179
11179
  cost: number | {
11180
11180
  balance: string;
@@ -11194,7 +11194,7 @@ declare function createRelayClient(options: {
11194
11194
  code: string;
11195
11195
  definition: {
11196
11196
  quest: string;
11197
- runtimeVersion: 2 | 1;
11197
+ runtimeVersion: 1 | 2;
11198
11198
  title: string;
11199
11199
  presentation: {
11200
11200
  quiz?: {
@@ -11231,12 +11231,12 @@ declare function createRelayClient(options: {
11231
11231
  kind: "resource";
11232
11232
  default: string;
11233
11233
  source: {
11234
- provider: "domino";
11235
- resource: "point-ledger";
11236
- } | {
11237
11234
  provider: "discord";
11238
11235
  resource: "channel";
11239
11236
  types: ("text" | "announcement")[];
11237
+ } | {
11238
+ provider: "domino";
11239
+ resource: "point-ledger";
11240
11240
  } | {
11241
11241
  provider: "discord";
11242
11242
  resource: "role";
@@ -11333,9 +11333,9 @@ declare function createRelayClient(options: {
11333
11333
  start: number;
11334
11334
  end?: number | undefined;
11335
11335
  };
11336
- enrollment: "required" | "none";
11336
+ enrollment: "none" | "required";
11337
11337
  posts: "after-enrollment" | "since-start";
11338
- historical: "staff" | "automatic" | "claim";
11338
+ historical: "automatic" | "claim" | "staff";
11339
11339
  } | undefined;
11340
11340
  tracker?: {
11341
11341
  tracker: string;
@@ -11380,7 +11380,7 @@ declare function createRelayClient(options: {
11380
11380
  actor?: "member" | "staff" | undefined;
11381
11381
  } | {
11382
11382
  kind: "manual";
11383
- input: "quiz" | "photo" | "none";
11383
+ input: "none" | "quiz" | "photo";
11384
11384
  actor?: "member" | "staff" | undefined;
11385
11385
  };
11386
11386
  requires: {
@@ -11399,8 +11399,8 @@ declare function createRelayClient(options: {
11399
11399
  visibility: "visible" | "hidden";
11400
11400
  budgets: {
11401
11401
  id: string;
11402
- scope: "project" | "member";
11403
- period: "day" | "week" | "lifetime";
11402
+ scope: "member" | "project";
11403
+ period: "day" | "lifetime" | "week";
11404
11404
  limit: number;
11405
11405
  cost: number | {
11406
11406
  balance: string;
@@ -11419,7 +11419,7 @@ declare function createRelayClient(options: {
11419
11419
  snapshot: () => Promise<{
11420
11420
  releases: {
11421
11421
  quest: string;
11422
- runtimeVersion: 2 | 1;
11422
+ runtimeVersion: 1 | 2;
11423
11423
  title: string;
11424
11424
  presentation: {
11425
11425
  quiz?: {
@@ -11456,12 +11456,12 @@ declare function createRelayClient(options: {
11456
11456
  kind: "resource";
11457
11457
  default: string;
11458
11458
  source: {
11459
- provider: "domino";
11460
- resource: "point-ledger";
11461
- } | {
11462
11459
  provider: "discord";
11463
11460
  resource: "channel";
11464
11461
  types: ("text" | "announcement")[];
11462
+ } | {
11463
+ provider: "domino";
11464
+ resource: "point-ledger";
11465
11465
  } | {
11466
11466
  provider: "discord";
11467
11467
  resource: "role";
@@ -11558,9 +11558,9 @@ declare function createRelayClient(options: {
11558
11558
  start: number;
11559
11559
  end?: number | undefined;
11560
11560
  };
11561
- enrollment: "required" | "none";
11561
+ enrollment: "none" | "required";
11562
11562
  posts: "after-enrollment" | "since-start";
11563
- historical: "staff" | "automatic" | "claim";
11563
+ historical: "automatic" | "claim" | "staff";
11564
11564
  } | undefined;
11565
11565
  tracker?: {
11566
11566
  tracker: string;
@@ -11605,7 +11605,7 @@ declare function createRelayClient(options: {
11605
11605
  actor?: "member" | "staff" | undefined;
11606
11606
  } | {
11607
11607
  kind: "manual";
11608
- input: "quiz" | "photo" | "none";
11608
+ input: "none" | "quiz" | "photo";
11609
11609
  actor?: "member" | "staff" | undefined;
11610
11610
  };
11611
11611
  requires: {
@@ -11624,8 +11624,8 @@ declare function createRelayClient(options: {
11624
11624
  visibility: "visible" | "hidden";
11625
11625
  budgets: {
11626
11626
  id: string;
11627
- scope: "project" | "member";
11628
- period: "day" | "week" | "lifetime";
11627
+ scope: "member" | "project";
11628
+ period: "day" | "lifetime" | "week";
11629
11629
  limit: number;
11630
11630
  cost: number | {
11631
11631
  balance: string;
@@ -11636,7 +11636,7 @@ declare function createRelayClient(options: {
11636
11636
  id: string;
11637
11637
  createdAt: number;
11638
11638
  legacy: boolean;
11639
- lifecycle: "active" | "paused" | "archived";
11639
+ lifecycle: "paused" | "active" | "archived";
11640
11640
  performance?: {
11641
11641
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
11642
11642
  maxAgeMs: number;
@@ -11759,7 +11759,7 @@ declare function createRelayClient(options: {
11759
11759
  quest: string;
11760
11760
  member: string;
11761
11761
  evidence: string | null;
11762
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
11762
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
11763
11763
  reason: string | null;
11764
11764
  retries: number;
11765
11765
  generation: number;
@@ -11793,17 +11793,17 @@ declare function createRelayClient(options: {
11793
11793
  })[] | null;
11794
11794
  createdAt: number;
11795
11795
  input?: {
11796
- kind: "quiz";
11797
- answers: {
11798
- [k: string]: string;
11799
- };
11800
- release?: string | undefined;
11801
- } | {
11802
11796
  kind: "text";
11803
11797
  value: string;
11804
11798
  } | {
11805
11799
  kind: "url";
11806
11800
  value: string;
11801
+ } | {
11802
+ kind: "quiz";
11803
+ answers: {
11804
+ [k: string]: string;
11805
+ };
11806
+ release?: string | undefined;
11807
11807
  } | undefined;
11808
11808
  }[];
11809
11809
  balances: {
@@ -11825,7 +11825,7 @@ declare function createRelayClient(options: {
11825
11825
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
11826
11826
  publish: (release: ReleaseInput) => Promise<{
11827
11827
  quest: string;
11828
- runtimeVersion: 2 | 1;
11828
+ runtimeVersion: 1 | 2;
11829
11829
  title: string;
11830
11830
  presentation: {
11831
11831
  quiz?: {
@@ -11862,12 +11862,12 @@ declare function createRelayClient(options: {
11862
11862
  kind: "resource";
11863
11863
  default: string;
11864
11864
  source: {
11865
- provider: "domino";
11866
- resource: "point-ledger";
11867
- } | {
11868
11865
  provider: "discord";
11869
11866
  resource: "channel";
11870
11867
  types: ("text" | "announcement")[];
11868
+ } | {
11869
+ provider: "domino";
11870
+ resource: "point-ledger";
11871
11871
  } | {
11872
11872
  provider: "discord";
11873
11873
  resource: "role";
@@ -11964,9 +11964,9 @@ declare function createRelayClient(options: {
11964
11964
  start: number;
11965
11965
  end?: number | undefined;
11966
11966
  };
11967
- enrollment: "required" | "none";
11967
+ enrollment: "none" | "required";
11968
11968
  posts: "after-enrollment" | "since-start";
11969
- historical: "staff" | "automatic" | "claim";
11969
+ historical: "automatic" | "claim" | "staff";
11970
11970
  } | undefined;
11971
11971
  tracker?: {
11972
11972
  tracker: string;
@@ -12011,7 +12011,7 @@ declare function createRelayClient(options: {
12011
12011
  actor?: "member" | "staff" | undefined;
12012
12012
  } | {
12013
12013
  kind: "manual";
12014
- input: "quiz" | "photo" | "none";
12014
+ input: "none" | "quiz" | "photo";
12015
12015
  actor?: "member" | "staff" | undefined;
12016
12016
  };
12017
12017
  requires: {
@@ -12030,8 +12030,8 @@ declare function createRelayClient(options: {
12030
12030
  visibility: "visible" | "hidden";
12031
12031
  budgets: {
12032
12032
  id: string;
12033
- scope: "project" | "member";
12034
- period: "day" | "week" | "lifetime";
12033
+ scope: "member" | "project";
12034
+ period: "day" | "lifetime" | "week";
12035
12035
  limit: number;
12036
12036
  cost: number | {
12037
12037
  balance: string;
@@ -12042,7 +12042,7 @@ declare function createRelayClient(options: {
12042
12042
  id: string;
12043
12043
  createdAt: number;
12044
12044
  legacy: boolean;
12045
- lifecycle: "active" | "paused" | "archived";
12045
+ lifecycle: "paused" | "active" | "archived";
12046
12046
  performance?: {
12047
12047
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
12048
12048
  maxAgeMs: number;
@@ -12079,7 +12079,7 @@ declare function createRelayClient(options: {
12079
12079
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
12080
12080
  publishBatch: (releases: ReleaseInput[]) => Promise<{
12081
12081
  quest: string;
12082
- runtimeVersion: 2 | 1;
12082
+ runtimeVersion: 1 | 2;
12083
12083
  title: string;
12084
12084
  presentation: {
12085
12085
  quiz?: {
@@ -12116,12 +12116,12 @@ declare function createRelayClient(options: {
12116
12116
  kind: "resource";
12117
12117
  default: string;
12118
12118
  source: {
12119
- provider: "domino";
12120
- resource: "point-ledger";
12121
- } | {
12122
12119
  provider: "discord";
12123
12120
  resource: "channel";
12124
12121
  types: ("text" | "announcement")[];
12122
+ } | {
12123
+ provider: "domino";
12124
+ resource: "point-ledger";
12125
12125
  } | {
12126
12126
  provider: "discord";
12127
12127
  resource: "role";
@@ -12218,9 +12218,9 @@ declare function createRelayClient(options: {
12218
12218
  start: number;
12219
12219
  end?: number | undefined;
12220
12220
  };
12221
- enrollment: "required" | "none";
12221
+ enrollment: "none" | "required";
12222
12222
  posts: "after-enrollment" | "since-start";
12223
- historical: "staff" | "automatic" | "claim";
12223
+ historical: "automatic" | "claim" | "staff";
12224
12224
  } | undefined;
12225
12225
  tracker?: {
12226
12226
  tracker: string;
@@ -12265,7 +12265,7 @@ declare function createRelayClient(options: {
12265
12265
  actor?: "member" | "staff" | undefined;
12266
12266
  } | {
12267
12267
  kind: "manual";
12268
- input: "quiz" | "photo" | "none";
12268
+ input: "none" | "quiz" | "photo";
12269
12269
  actor?: "member" | "staff" | undefined;
12270
12270
  };
12271
12271
  requires: {
@@ -12284,8 +12284,8 @@ declare function createRelayClient(options: {
12284
12284
  visibility: "visible" | "hidden";
12285
12285
  budgets: {
12286
12286
  id: string;
12287
- scope: "project" | "member";
12288
- period: "day" | "week" | "lifetime";
12287
+ scope: "member" | "project";
12288
+ period: "day" | "lifetime" | "week";
12289
12289
  limit: number;
12290
12290
  cost: number | {
12291
12291
  balance: string;
@@ -12296,7 +12296,7 @@ declare function createRelayClient(options: {
12296
12296
  id: string;
12297
12297
  createdAt: number;
12298
12298
  legacy: boolean;
12299
- lifecycle: "active" | "paused" | "archived";
12299
+ lifecycle: "paused" | "active" | "archived";
12300
12300
  performance?: {
12301
12301
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
12302
12302
  maxAgeMs: number;
@@ -12355,7 +12355,7 @@ declare function createRelayClient(options: {
12355
12355
  } | undefined;
12356
12356
  } | undefined;
12357
12357
  };
12358
- connections: ("discord" | "google" | "apple" | "x")[];
12358
+ connections: ("x" | "discord" | "google" | "apple")[];
12359
12359
  trigger: {
12360
12360
  kind: "automatic";
12361
12361
  observation?: {
@@ -12368,9 +12368,9 @@ declare function createRelayClient(options: {
12368
12368
  start: number;
12369
12369
  end?: number | undefined;
12370
12370
  };
12371
- enrollment: "required" | "none";
12371
+ enrollment: "none" | "required";
12372
12372
  posts: "after-enrollment" | "since-start";
12373
- historical: "staff" | "automatic" | "claim";
12373
+ historical: "automatic" | "claim" | "staff";
12374
12374
  } | undefined;
12375
12375
  tracker?: {
12376
12376
  tracker: string;
@@ -12415,12 +12415,12 @@ declare function createRelayClient(options: {
12415
12415
  actor?: "member" | "staff" | undefined;
12416
12416
  } | {
12417
12417
  kind: "manual";
12418
- input: "quiz" | "photo" | "none";
12418
+ input: "none" | "quiz" | "photo";
12419
12419
  actor?: "member" | "staff" | undefined;
12420
12420
  };
12421
12421
  availability: {
12422
12422
  kind: "available";
12423
- input: "quiz" | "text" | "url" | "photo" | "none";
12423
+ input: "text" | "url" | "none" | "quiz" | "photo";
12424
12424
  } | {
12425
12425
  kind: "completed";
12426
12426
  } | {
@@ -12469,7 +12469,7 @@ declare function createRelayClient(options: {
12469
12469
  quest: string;
12470
12470
  member: string;
12471
12471
  evidence: string | null;
12472
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
12472
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
12473
12473
  reason: string | null;
12474
12474
  retries: number;
12475
12475
  generation: number;
@@ -12503,17 +12503,17 @@ declare function createRelayClient(options: {
12503
12503
  })[] | null;
12504
12504
  createdAt: number;
12505
12505
  input?: {
12506
- kind: "quiz";
12507
- answers: {
12508
- [k: string]: string;
12509
- };
12510
- release?: string | undefined;
12511
- } | {
12512
12506
  kind: "text";
12513
12507
  value: string;
12514
12508
  } | {
12515
12509
  kind: "url";
12516
12510
  value: string;
12511
+ } | {
12512
+ kind: "quiz";
12513
+ answers: {
12514
+ [k: string]: string;
12515
+ };
12516
+ release?: string | undefined;
12517
12517
  } | undefined;
12518
12518
  } | null;
12519
12519
  key?: string | undefined;
@@ -12897,14 +12897,14 @@ declare function createRelayClient(options: {
12897
12897
  content: {
12898
12898
  performance: (input: z.output<typeof contentPerformanceQuerySchema>) => Promise<{
12899
12899
  current: {
12900
- state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
12900
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
12901
12901
  reason: string | null;
12902
12902
  contentAttempt: string;
12903
12903
  attempt: string | null;
12904
12904
  reward: {
12905
12905
  attempt: string | null;
12906
12906
  completion: string | null;
12907
- state: "awarded" | "excluded" | "unresolved";
12907
+ state: "excluded" | "unresolved" | "awarded";
12908
12908
  };
12909
12909
  };
12910
12910
  items: {
@@ -12913,7 +12913,7 @@ declare function createRelayClient(options: {
12913
12913
  observation: string;
12914
12914
  observedAt: number;
12915
12915
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
12916
- state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
12916
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
12917
12917
  reason: string | null;
12918
12918
  }[];
12919
12919
  next: number | null;
@@ -12928,12 +12928,12 @@ declare function createRelayClient(options: {
12928
12928
  revision: string;
12929
12929
  observation: string;
12930
12930
  current: boolean;
12931
- state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
12931
+ state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
12932
12932
  reason: string | null;
12933
12933
  reward: {
12934
12934
  attempt: string | null;
12935
12935
  completion: string | null;
12936
- state: "awarded" | "excluded" | "unresolved";
12936
+ state: "excluded" | "unresolved" | "awarded";
12937
12937
  };
12938
12938
  }[];
12939
12939
  next: number | null;
@@ -12943,7 +12943,7 @@ declare function createRelayClient(options: {
12943
12943
  quest: string;
12944
12944
  content: string;
12945
12945
  release: string;
12946
- state: "pending" | "excluded" | "admitted";
12946
+ state: "admitted" | "pending" | "excluded";
12947
12947
  reason: string | null;
12948
12948
  attempt: string | null;
12949
12949
  }[];
@@ -12958,7 +12958,7 @@ declare function createRelayClient(options: {
12958
12958
  quest: string;
12959
12959
  content: string;
12960
12960
  release: string;
12961
- state: "pending" | "excluded" | "admitted";
12961
+ state: "admitted" | "pending" | "excluded";
12962
12962
  reason: string | null;
12963
12963
  attempt: string | null;
12964
12964
  }>;
@@ -12969,7 +12969,7 @@ declare function createRelayClient(options: {
12969
12969
  quest: string;
12970
12970
  member: string;
12971
12971
  evidence: string | null;
12972
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
12972
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
12973
12973
  reason: string | null;
12974
12974
  retries: number;
12975
12975
  generation: number;
@@ -13003,17 +13003,17 @@ declare function createRelayClient(options: {
13003
13003
  })[] | null;
13004
13004
  createdAt: number;
13005
13005
  input?: {
13006
- kind: "quiz";
13007
- answers: {
13008
- [k: string]: string;
13009
- };
13010
- release?: string | undefined;
13011
- } | {
13012
13006
  kind: "text";
13013
13007
  value: string;
13014
13008
  } | {
13015
13009
  kind: "url";
13016
13010
  value: string;
13011
+ } | {
13012
+ kind: "quiz";
13013
+ answers: {
13014
+ [k: string]: string;
13015
+ };
13016
+ release?: string | undefined;
13017
13017
  } | undefined;
13018
13018
  }>;
13019
13019
  retry: (id: string) => Promise<{
@@ -13022,7 +13022,7 @@ declare function createRelayClient(options: {
13022
13022
  quest: string;
13023
13023
  member: string;
13024
13024
  evidence: string | null;
13025
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
13025
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
13026
13026
  reason: string | null;
13027
13027
  retries: number;
13028
13028
  generation: number;
@@ -13056,17 +13056,17 @@ declare function createRelayClient(options: {
13056
13056
  })[] | null;
13057
13057
  createdAt: number;
13058
13058
  input?: {
13059
- kind: "quiz";
13060
- answers: {
13061
- [k: string]: string;
13062
- };
13063
- release?: string | undefined;
13064
- } | {
13065
13059
  kind: "text";
13066
13060
  value: string;
13067
13061
  } | {
13068
13062
  kind: "url";
13069
13063
  value: string;
13064
+ } | {
13065
+ kind: "quiz";
13066
+ answers: {
13067
+ [k: string]: string;
13068
+ };
13069
+ release?: string | undefined;
13070
13070
  } | undefined;
13071
13071
  }>;
13072
13072
  /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
@@ -13081,7 +13081,7 @@ declare function createRelayClient(options: {
13081
13081
  quest: string;
13082
13082
  member: string;
13083
13083
  evidence: string | null;
13084
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
13084
+ status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
13085
13085
  reason: string | null;
13086
13086
  retries: number;
13087
13087
  generation: number;
@@ -13115,17 +13115,17 @@ declare function createRelayClient(options: {
13115
13115
  })[] | null;
13116
13116
  createdAt: number;
13117
13117
  input?: {
13118
- kind: "quiz";
13119
- answers: {
13120
- [k: string]: string;
13121
- };
13122
- release?: string | undefined;
13123
- } | {
13124
13118
  kind: "text";
13125
13119
  value: string;
13126
13120
  } | {
13127
13121
  kind: "url";
13128
13122
  value: string;
13123
+ } | {
13124
+ kind: "quiz";
13125
+ answers: {
13126
+ [k: string]: string;
13127
+ };
13128
+ release?: string | undefined;
13129
13129
  } | undefined;
13130
13130
  }>;
13131
13131
  };