@domino-sdk/relay 1.0.0 → 1.1.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 +37 -37
- package/dist/{browser-DFe7sWSN.d.ts → browser-J7tUpXxy.d.ts} +114 -114
- 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 -5
- package/dist/server/index.js +494 -445
- package/package.json +1 -1
- package/dist/{activity-DeKJsRry.d.ts → activity-B8k9Sa_a.d.ts} +114 -114
package/dist/authoring.d.ts
CHANGED
|
@@ -245,8 +245,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
245
245
|
kind: "earned";
|
|
246
246
|
}> | ReturnType<typeof earned>;
|
|
247
247
|
}): {
|
|
248
|
-
balance: string;
|
|
249
248
|
title: string;
|
|
249
|
+
balance: 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;
|
|
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[]);
|
|
@@ -1073,9 +1073,6 @@ 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
|
-
} | {
|
|
1079
1076
|
provider: "discord";
|
|
1080
1077
|
resource: "channel";
|
|
1081
1078
|
types: ("text" | "announcement")[];
|
|
@@ -1083,6 +1080,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1083
1080
|
provider: "discord";
|
|
1084
1081
|
resource: "role";
|
|
1085
1082
|
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;
|
|
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: {
|
|
@@ -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: "
|
|
1187
|
+
input: "none" | "quiz" | "photo";
|
|
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?: "
|
|
1231
|
+
enrollment?: "none" | "required" | undefined;
|
|
1232
1232
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1233
|
-
historical?: "
|
|
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,6 +1269,9 @@ 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
|
} | {
|
|
@@ -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: "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[]);
|
|
@@ -1466,9 +1466,6 @@ 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
|
-
} | {
|
|
1472
1469
|
provider: "discord";
|
|
1473
1470
|
resource: "channel";
|
|
1474
1471
|
types: ("text" | "announcement")[];
|
|
@@ -1476,6 +1473,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1476
1473
|
provider: "discord";
|
|
1477
1474
|
resource: "role";
|
|
1478
1475
|
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;
|
|
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: {
|
|
@@ -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: "
|
|
1580
|
+
input: "none" | "quiz" | "photo";
|
|
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?: "
|
|
1624
|
+
enrollment?: "none" | "required" | undefined;
|
|
1625
1625
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1626
|
-
historical?: "
|
|
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,6 +1662,9 @@ 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
|
} | {
|
|
@@ -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: "none" | "required";
|
|
1694
1694
|
window?: {
|
|
1695
1695
|
from: number;
|
|
1696
1696
|
until: number;
|