@domino-sdk/relay 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
1015
1011
  } | {
1016
1012
  kind: "integration";
1017
1013
  provider: "discord";
1018
1014
  action: "grant-role";
1019
1015
  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[]);
@@ -1058,7 +1058,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1058
1058
  } | undefined;
1059
1059
  } | undefined;
1060
1060
  };
1061
- integrations: ("x" | "discord")[];
1061
+ integrations: ("discord" | "x")[];
1062
1062
  fields: Record<string, {
1063
1063
  kind: "point-ledger";
1064
1064
  default: string;
@@ -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;
1161
1157
  } | {
1162
1158
  kind: "integration";
1163
1159
  provider: "discord";
1164
1160
  action: "grant-role";
1165
1161
  roleId: string;
1162
+ } | {
1163
+ kind: "points";
1164
+ balance: string;
1165
+ amount: number;
1166
1166
  })[];
1167
1167
  humanReview: boolean;
1168
1168
  trigger: {
@@ -1173,7 +1173,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1173
1173
  minLength: number;
1174
1174
  maxLength: number;
1175
1175
  };
1176
- actor?: "member" | "staff" | undefined;
1176
+ actor?: "staff" | "member" | undefined;
1177
1177
  } | {
1178
1178
  kind: "manual";
1179
1179
  input: "url";
@@ -1181,11 +1181,11 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1181
1181
  required: boolean;
1182
1182
  allowedHosts?: string[] | undefined;
1183
1183
  };
1184
- actor?: "member" | "staff" | undefined;
1184
+ actor?: "staff" | "member" | undefined;
1185
1185
  } | {
1186
1186
  kind: "manual";
1187
- input: "quiz" | "photo" | "none";
1188
- actor?: "member" | "staff" | undefined;
1187
+ input: "none" | "quiz" | "photo";
1188
+ actor?: "staff" | "member" | undefined;
1189
1189
  } | {
1190
1190
  kind: "automatic";
1191
1191
  tracker?: {
@@ -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?: "required" | "none" | undefined;
1232
- since?: "enrollment" | "activation" | "window" | undefined;
1233
- historical?: "staff" | "automatic" | "claim" | undefined;
1231
+ enrollment?: "none" | "required" | undefined;
1232
+ since?: "activation" | "window" | "enrollment" | undefined;
1233
+ historical?: "staff" | "claim" | "automatic" | undefined;
1234
1234
  content?: true | undefined;
1235
1235
  } | undefined;
1236
1236
  };
@@ -1253,9 +1253,6 @@ 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
- } | {
1259
1256
  kind: "progress";
1260
1257
  goal: {
1261
1258
  kind: "count";
@@ -1272,12 +1269,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1272
1269
  durationMs: number;
1273
1270
  };
1274
1271
  repeat: "repeat" | "once";
1272
+ } | {
1273
+ kind: "streak";
1274
+ days: number;
1275
1275
  } | {
1276
1276
  kind: "once";
1277
1277
  } | {
1278
1278
  kind: "keyed";
1279
1279
  };
1280
- visibility: "hidden" | "visible";
1280
+ visibility: "visible" | "hidden";
1281
1281
  profile: {
1282
1282
  visible: boolean;
1283
1283
  };
@@ -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: "required" | "none";
1300
+ enrollment: "none" | "required";
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;
1408
1404
  } | {
1409
1405
  kind: "integration";
1410
1406
  provider: "discord";
1411
1407
  action: "grant-role";
1412
1408
  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[]);
@@ -1451,7 +1451,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1451
1451
  } | undefined;
1452
1452
  } | undefined;
1453
1453
  };
1454
- integrations: ("x" | "discord")[];
1454
+ integrations: ("discord" | "x")[];
1455
1455
  fields: Record<string, {
1456
1456
  kind: "point-ledger";
1457
1457
  default: string;
@@ -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;
1554
1550
  } | {
1555
1551
  kind: "integration";
1556
1552
  provider: "discord";
1557
1553
  action: "grant-role";
1558
1554
  roleId: string;
1555
+ } | {
1556
+ kind: "points";
1557
+ balance: string;
1558
+ amount: number;
1559
1559
  })[];
1560
1560
  humanReview: boolean;
1561
1561
  trigger: {
@@ -1566,7 +1566,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1566
1566
  minLength: number;
1567
1567
  maxLength: number;
1568
1568
  };
1569
- actor?: "member" | "staff" | undefined;
1569
+ actor?: "staff" | "member" | undefined;
1570
1570
  } | {
1571
1571
  kind: "manual";
1572
1572
  input: "url";
@@ -1574,11 +1574,11 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1574
1574
  required: boolean;
1575
1575
  allowedHosts?: string[] | undefined;
1576
1576
  };
1577
- actor?: "member" | "staff" | undefined;
1577
+ actor?: "staff" | "member" | undefined;
1578
1578
  } | {
1579
1579
  kind: "manual";
1580
- input: "quiz" | "photo" | "none";
1581
- actor?: "member" | "staff" | undefined;
1580
+ input: "none" | "quiz" | "photo";
1581
+ actor?: "staff" | "member" | undefined;
1582
1582
  } | {
1583
1583
  kind: "automatic";
1584
1584
  tracker?: {
@@ -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?: "required" | "none" | undefined;
1625
- since?: "enrollment" | "activation" | "window" | undefined;
1626
- historical?: "staff" | "automatic" | "claim" | undefined;
1624
+ enrollment?: "none" | "required" | undefined;
1625
+ since?: "activation" | "window" | "enrollment" | undefined;
1626
+ historical?: "staff" | "claim" | "automatic" | undefined;
1627
1627
  content?: true | undefined;
1628
1628
  } | undefined;
1629
1629
  };
@@ -1646,9 +1646,6 @@ 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
- } | {
1652
1649
  kind: "progress";
1653
1650
  goal: {
1654
1651
  kind: "count";
@@ -1665,12 +1662,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1665
1662
  durationMs: number;
1666
1663
  };
1667
1664
  repeat: "repeat" | "once";
1665
+ } | {
1666
+ kind: "streak";
1667
+ days: number;
1668
1668
  } | {
1669
1669
  kind: "once";
1670
1670
  } | {
1671
1671
  kind: "keyed";
1672
1672
  };
1673
- visibility: "hidden" | "visible";
1673
+ visibility: "visible" | "hidden";
1674
1674
  profile: {
1675
1675
  visible: boolean;
1676
1676
  };
@@ -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: "required" | "none";
1693
+ enrollment: "none" | "required";
1694
1694
  window?: {
1695
1695
  from: number;
1696
1696
  until: number;