@helyx/bot 0.4.20 → 0.4.23
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Rebuild and publish Verification package artifacts that match the current source.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @helyx/verification-contracts@0.3.1
|
|
10
|
+
- @helyx/sdk@0.6.3
|
|
11
|
+
- @helyx/core@0.1.16
|
|
12
|
+
- @helyx/framework@0.1.16
|
|
13
|
+
- @helyx/platform@0.4.7
|
|
14
|
+
|
|
15
|
+
## 0.4.22
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Avoid consuming Verification start limits for active challenges and explain active-link and rate-limit responses safely.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @helyx/database@0.7.5
|
|
22
|
+
- @helyx/platform@0.4.6
|
|
23
|
+
|
|
24
|
+
## 0.4.21
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Add Verification re-verification reset support and browser assessment progress contracts.
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- @helyx/verification-contracts@0.3.0
|
|
31
|
+
- @helyx/database@0.7.4
|
|
32
|
+
- @helyx/sdk@0.6.2
|
|
33
|
+
- @helyx/platform@0.4.5
|
|
34
|
+
- @helyx/core@0.1.15
|
|
35
|
+
- @helyx/framework@0.1.15
|
|
36
|
+
|
|
3
37
|
## 0.4.20
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/dist/events.js
CHANGED
|
@@ -872,6 +872,7 @@ export class DiscordVerificationMemberService {
|
|
|
872
872
|
safeDisplayName: (member.displayName || member.user.username)
|
|
873
873
|
.normalize("NFC")
|
|
874
874
|
.slice(0, 100),
|
|
875
|
+
safeServerName: guild.name.normalize("NFC").slice(0, 100),
|
|
875
876
|
guildOwnerId: guild.ownerId,
|
|
876
877
|
accountCreatedAt: member.user.createdAt.toISOString(),
|
|
877
878
|
joinedAt: member.joinedAt?.toISOString() ?? null,
|
|
@@ -428,12 +428,14 @@ export declare const shardControlOperationSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
428
428
|
recommendedAction: z.ZodEnum<{
|
|
429
429
|
none: "none";
|
|
430
430
|
grant_role: "grant_role";
|
|
431
|
+
remove_role: "remove_role";
|
|
431
432
|
kick: "kick";
|
|
432
433
|
ban: "ban";
|
|
433
434
|
}>;
|
|
434
435
|
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
435
436
|
none: "none";
|
|
436
437
|
grant_role: "grant_role";
|
|
438
|
+
remove_role: "remove_role";
|
|
437
439
|
kick: "kick";
|
|
438
440
|
ban: "ban";
|
|
439
441
|
}>>;
|
|
@@ -735,12 +737,14 @@ export declare const shardControlRequestSchema: z.ZodObject<{
|
|
|
735
737
|
recommendedAction: z.ZodEnum<{
|
|
736
738
|
none: "none";
|
|
737
739
|
grant_role: "grant_role";
|
|
740
|
+
remove_role: "remove_role";
|
|
738
741
|
kick: "kick";
|
|
739
742
|
ban: "ban";
|
|
740
743
|
}>;
|
|
741
744
|
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
742
745
|
none: "none";
|
|
743
746
|
grant_role: "grant_role";
|
|
747
|
+
remove_role: "remove_role";
|
|
744
748
|
kick: "kick";
|
|
745
749
|
ban: "ban";
|
|
746
750
|
}>>;
|
|
@@ -1547,12 +1551,14 @@ export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
1547
1551
|
recommendedAction: z.ZodEnum<{
|
|
1548
1552
|
none: "none";
|
|
1549
1553
|
grant_role: "grant_role";
|
|
1554
|
+
remove_role: "remove_role";
|
|
1550
1555
|
kick: "kick";
|
|
1551
1556
|
ban: "ban";
|
|
1552
1557
|
}>;
|
|
1553
1558
|
allowedActions: z.ZodArray<z.ZodEnum<{
|
|
1554
1559
|
none: "none";
|
|
1555
1560
|
grant_role: "grant_role";
|
|
1561
|
+
remove_role: "remove_role";
|
|
1556
1562
|
kick: "kick";
|
|
1557
1563
|
ban: "ban";
|
|
1558
1564
|
}>>;
|
|
@@ -36,7 +36,7 @@ export declare class HttpVerificationService implements VerificationService {
|
|
|
36
36
|
attemptId: string;
|
|
37
37
|
expectedVersion: number;
|
|
38
38
|
actorUserId: string;
|
|
39
|
-
decision: "approve" | "deny" | "retry" | "dismiss_relationship";
|
|
39
|
+
decision: "approve" | "deny" | "retry" | "reset" | "dismiss_relationship";
|
|
40
40
|
reason: string;
|
|
41
41
|
}): Promise<DashboardSafeAttemptDetail>;
|
|
42
42
|
registerResultHandler(handler: (context: VerificationResultContext) => Promise<ActionReceipt>): () => void;
|
|
@@ -138,9 +138,14 @@ export class HttpVerificationService {
|
|
|
138
138
|
if (allowNotFound && response.status === 404)
|
|
139
139
|
return null;
|
|
140
140
|
if (!response.ok)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
if (response.status === 409)
|
|
142
|
+
throw new Error("A verification link is already active. Wait for it to expire before requesting another.");
|
|
143
|
+
else if (response.status === 429)
|
|
144
|
+
throw new Error("Verification requests are temporarily limited. Try again shortly.");
|
|
145
|
+
else
|
|
146
|
+
throw new Error(response.status >= 500
|
|
147
|
+
? "Verification service is unavailable"
|
|
148
|
+
: "Verification request was rejected");
|
|
144
149
|
try {
|
|
145
150
|
return await response.json();
|
|
146
151
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helyx/bot",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.23",
|
|
4
4
|
"description": "Production Discord runtime for the modular Helyx platform.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"helyx",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@helyx/config": "0.5.0",
|
|
52
52
|
"@helyx/control-protocol": "0.3.2",
|
|
53
|
-
"@helyx/core": "0.1.
|
|
54
|
-
"@helyx/database": "0.7.
|
|
55
|
-
"@helyx/framework": "0.1.
|
|
53
|
+
"@helyx/core": "0.1.16",
|
|
54
|
+
"@helyx/database": "0.7.5",
|
|
55
|
+
"@helyx/framework": "0.1.16",
|
|
56
56
|
"@helyx/module-manifest": "0.6.0",
|
|
57
|
-
"@helyx/platform": "0.4.
|
|
58
|
-
"@helyx/sdk": "0.6.
|
|
59
|
-
"@helyx/verification-contracts": "0.
|
|
57
|
+
"@helyx/platform": "0.4.7",
|
|
58
|
+
"@helyx/sdk": "0.6.3",
|
|
59
|
+
"@helyx/verification-contracts": "0.3.1",
|
|
60
60
|
"discord.js": "14.27.0",
|
|
61
61
|
"fastify": "5.10.0",
|
|
62
62
|
"pino": "10.3.1",
|