@domino-sdk/relay 1.5.1 → 1.5.2

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.
@@ -245,8 +245,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
245
245
  kind: "earned";
246
246
  }> | ReturnType<typeof earned>;
247
247
  }): {
248
- title: string;
249
248
  balance: string;
249
+ title: string;
250
250
  access: "participants" | "public";
251
251
  score: {
252
252
  kind: "balance";
@@ -1008,15 +1008,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1008
1008
  };
1009
1009
  };
1010
1010
  tier: string;
1011
+ } | {
1012
+ kind: "points";
1013
+ balance: string;
1014
+ amount: number;
1011
1015
  } | {
1012
1016
  kind: "integration";
1013
1017
  provider: "discord";
1014
1018
  action: "grant-role";
1015
1019
  roleId: string;
1016
- } | {
1017
- kind: "points";
1018
- balance: string;
1019
- amount: number;
1020
1020
  })[] | ((ctx: {
1021
1021
  settings: z.core.$InferObjectOutput<T, {}>;
1022
1022
  }) => Reward[]);
@@ -1073,6 +1073,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1073
1073
  kind: "resource";
1074
1074
  default: string;
1075
1075
  source: {
1076
+ provider: "domino";
1077
+ resource: "point-ledger";
1078
+ } | {
1076
1079
  provider: "discord";
1077
1080
  resource: "channel";
1078
1081
  types: ("text" | "announcement")[];
@@ -1080,9 +1083,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1080
1083
  provider: "discord";
1081
1084
  resource: "role";
1082
1085
  assignable: boolean;
1083
- } | {
1084
- provider: "domino";
1085
- resource: "point-ledger";
1086
1086
  };
1087
1087
  label: string;
1088
1088
  description?: string | undefined;
@@ -1154,15 +1154,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1154
1154
  };
1155
1155
  };
1156
1156
  tier: string;
1157
+ } | {
1158
+ kind: "points";
1159
+ balance: string;
1160
+ amount: number;
1157
1161
  } | {
1158
1162
  kind: "integration";
1159
1163
  provider: "discord";
1160
1164
  action: "grant-role";
1161
1165
  roleId: string;
1162
- } | {
1163
- kind: "points";
1164
- balance: string;
1165
- amount: number;
1166
1166
  })[];
1167
1167
  humanReview: boolean;
1168
1168
  trigger: {
@@ -1184,7 +1184,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1184
1184
  actor?: "staff" | "member" | undefined;
1185
1185
  } | {
1186
1186
  kind: "manual";
1187
- input: "none" | "quiz" | "photo";
1187
+ input: "photo" | "quiz" | "none";
1188
1188
  actor?: "staff" | "member" | undefined;
1189
1189
  } | {
1190
1190
  kind: "automatic";
@@ -1228,9 +1228,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1228
1228
  path: string;
1229
1229
  equals: string | number | boolean;
1230
1230
  })[] | undefined;
1231
- enrollment?: "none" | "required" | undefined;
1231
+ enrollment?: "required" | "none" | undefined;
1232
1232
  since?: "activation" | "window" | "enrollment" | undefined;
1233
- historical?: "staff" | "claim" | "automatic" | undefined;
1233
+ historical?: "automatic" | "staff" | "claim" | undefined;
1234
1234
  content?: true | undefined;
1235
1235
  } | undefined;
1236
1236
  };
@@ -1253,6 +1253,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1253
1253
  title: string;
1254
1254
  })[];
1255
1255
  completion: {
1256
+ kind: "streak";
1257
+ days: number;
1258
+ } | {
1256
1259
  kind: "progress";
1257
1260
  goal: {
1258
1261
  kind: "count";
@@ -1269,9 +1272,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1269
1272
  durationMs: number;
1270
1273
  };
1271
1274
  repeat: "repeat" | "once";
1272
- } | {
1273
- kind: "streak";
1274
- days: number;
1275
1275
  } | {
1276
1276
  kind: "once";
1277
1277
  } | {
@@ -1297,7 +1297,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1297
1297
  campaign?: {
1298
1298
  key: string;
1299
1299
  title: string;
1300
- enrollment: "none" | "required";
1300
+ enrollment: "required" | "none";
1301
1301
  window?: {
1302
1302
  from: number;
1303
1303
  until: number;
@@ -1401,15 +1401,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1401
1401
  };
1402
1402
  };
1403
1403
  tier: string;
1404
+ } | {
1405
+ kind: "points";
1406
+ balance: string;
1407
+ amount: number;
1404
1408
  } | {
1405
1409
  kind: "integration";
1406
1410
  provider: "discord";
1407
1411
  action: "grant-role";
1408
1412
  roleId: string;
1409
- } | {
1410
- kind: "points";
1411
- balance: string;
1412
- amount: number;
1413
1413
  })[] | ((ctx: {
1414
1414
  settings: z.core.$InferObjectOutput<T, {}>;
1415
1415
  }) => Reward[]);
@@ -1466,6 +1466,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1466
1466
  kind: "resource";
1467
1467
  default: string;
1468
1468
  source: {
1469
+ provider: "domino";
1470
+ resource: "point-ledger";
1471
+ } | {
1469
1472
  provider: "discord";
1470
1473
  resource: "channel";
1471
1474
  types: ("text" | "announcement")[];
@@ -1473,9 +1476,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1473
1476
  provider: "discord";
1474
1477
  resource: "role";
1475
1478
  assignable: boolean;
1476
- } | {
1477
- provider: "domino";
1478
- resource: "point-ledger";
1479
1479
  };
1480
1480
  label: string;
1481
1481
  description?: string | undefined;
@@ -1547,15 +1547,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1547
1547
  };
1548
1548
  };
1549
1549
  tier: string;
1550
+ } | {
1551
+ kind: "points";
1552
+ balance: string;
1553
+ amount: number;
1550
1554
  } | {
1551
1555
  kind: "integration";
1552
1556
  provider: "discord";
1553
1557
  action: "grant-role";
1554
1558
  roleId: string;
1555
- } | {
1556
- kind: "points";
1557
- balance: string;
1558
- amount: number;
1559
1559
  })[];
1560
1560
  humanReview: boolean;
1561
1561
  trigger: {
@@ -1577,7 +1577,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1577
1577
  actor?: "staff" | "member" | undefined;
1578
1578
  } | {
1579
1579
  kind: "manual";
1580
- input: "none" | "quiz" | "photo";
1580
+ input: "photo" | "quiz" | "none";
1581
1581
  actor?: "staff" | "member" | undefined;
1582
1582
  } | {
1583
1583
  kind: "automatic";
@@ -1621,9 +1621,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1621
1621
  path: string;
1622
1622
  equals: string | number | boolean;
1623
1623
  })[] | undefined;
1624
- enrollment?: "none" | "required" | undefined;
1624
+ enrollment?: "required" | "none" | undefined;
1625
1625
  since?: "activation" | "window" | "enrollment" | undefined;
1626
- historical?: "staff" | "claim" | "automatic" | undefined;
1626
+ historical?: "automatic" | "staff" | "claim" | undefined;
1627
1627
  content?: true | undefined;
1628
1628
  } | undefined;
1629
1629
  };
@@ -1646,6 +1646,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1646
1646
  title: string;
1647
1647
  })[];
1648
1648
  completion: {
1649
+ kind: "streak";
1650
+ days: number;
1651
+ } | {
1649
1652
  kind: "progress";
1650
1653
  goal: {
1651
1654
  kind: "count";
@@ -1662,9 +1665,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1662
1665
  durationMs: number;
1663
1666
  };
1664
1667
  repeat: "repeat" | "once";
1665
- } | {
1666
- kind: "streak";
1667
- days: number;
1668
1668
  } | {
1669
1669
  kind: "once";
1670
1670
  } | {
@@ -1690,7 +1690,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1690
1690
  campaign?: {
1691
1691
  key: string;
1692
1692
  title: string;
1693
- enrollment: "none" | "required";
1693
+ enrollment: "required" | "none";
1694
1694
  window?: {
1695
1695
  from: number;
1696
1696
  until: number;