@domino-sdk/relay 1.1.1 → 1.2.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/authoring.d.ts +42 -42
- package/dist/{browser-Cf1opQjX.d.ts → browser-Cho1duR6.d.ts} +173 -173
- package/dist/browser.d.ts +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/schema.d.ts +1 -1
- package/dist/server/index.d.ts +229 -4
- package/dist/server/index.js +204 -7
- package/package.json +1 -1
- package/dist/{activity-B8k9Sa_a.d.ts → activity-o1E-Hqyt.d.ts} +198 -198
package/dist/authoring.d.ts
CHANGED
|
@@ -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[]);
|
|
@@ -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: ("
|
|
1061
|
+
integrations: ("x" | "discord")[];
|
|
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;
|
|
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: {
|
|
@@ -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?: "
|
|
1176
|
+
actor?: "member" | "staff" | 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?: "
|
|
1184
|
+
actor?: "member" | "staff" | undefined;
|
|
1185
1185
|
} | {
|
|
1186
1186
|
kind: "manual";
|
|
1187
|
-
input: "
|
|
1188
|
-
actor?: "
|
|
1187
|
+
input: "quiz" | "photo" | "none";
|
|
1188
|
+
actor?: "member" | "staff" | 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?: "
|
|
1232
|
-
since?: "
|
|
1233
|
-
historical?: "staff" | "
|
|
1231
|
+
enrollment?: "required" | "none" | undefined;
|
|
1232
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
1233
|
+
historical?: "staff" | "automatic" | "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,15 +1272,12 @@ 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
|
} | {
|
|
1278
1278
|
kind: "keyed";
|
|
1279
1279
|
};
|
|
1280
|
-
visibility: "
|
|
1280
|
+
visibility: "hidden" | "visible";
|
|
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: "
|
|
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[]);
|
|
@@ -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: ("
|
|
1454
|
+
integrations: ("x" | "discord")[];
|
|
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;
|
|
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: {
|
|
@@ -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?: "
|
|
1569
|
+
actor?: "member" | "staff" | 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?: "
|
|
1577
|
+
actor?: "member" | "staff" | undefined;
|
|
1578
1578
|
} | {
|
|
1579
1579
|
kind: "manual";
|
|
1580
|
-
input: "
|
|
1581
|
-
actor?: "
|
|
1580
|
+
input: "quiz" | "photo" | "none";
|
|
1581
|
+
actor?: "member" | "staff" | 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?: "
|
|
1625
|
-
since?: "
|
|
1626
|
-
historical?: "staff" | "
|
|
1624
|
+
enrollment?: "required" | "none" | undefined;
|
|
1625
|
+
since?: "enrollment" | "activation" | "window" | undefined;
|
|
1626
|
+
historical?: "staff" | "automatic" | "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,15 +1665,12 @@ 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
|
} | {
|
|
1671
1671
|
kind: "keyed";
|
|
1672
1672
|
};
|
|
1673
|
-
visibility: "
|
|
1673
|
+
visibility: "hidden" | "visible";
|
|
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: "
|
|
1693
|
+
enrollment: "required" | "none";
|
|
1694
1694
|
window?: {
|
|
1695
1695
|
from: number;
|
|
1696
1696
|
until: number;
|