@kodelyth/zalouser 2026.5.39
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/api.js +7 -0
- package/channel-plugin-api.js +7 -0
- package/contract-api.js +7 -0
- package/doctor-contract-api.js +7 -0
- package/index.js +7 -0
- package/klaw.plugin.json +301 -0
- package/package.json +67 -0
- package/runtime-api.js +7 -0
- package/secret-contract-api.js +7 -0
- package/setup-entry.js +7 -0
- package/setup-plugin-api.js +7 -0
- package/test-api.js +7 -0
package/api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/channel-plugin-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/channel-plugin-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/contract-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/contract-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/contract-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/doctor-contract-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/doctor-contract-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/index.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/zalouser/index.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/klaw.plugin.json
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "zalouser",
|
|
3
|
+
"activation": {
|
|
4
|
+
"onStartup": false
|
|
5
|
+
},
|
|
6
|
+
"channels": [
|
|
7
|
+
"zalouser"
|
|
8
|
+
],
|
|
9
|
+
"contracts": {
|
|
10
|
+
"tools": [
|
|
11
|
+
"zalouser"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"channelEnvVars": {
|
|
15
|
+
"zalouser": [
|
|
16
|
+
"ZALOUSER_PROFILE",
|
|
17
|
+
"ZCA_PROFILE"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"configSchema": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {}
|
|
24
|
+
},
|
|
25
|
+
"channelConfigs": {
|
|
26
|
+
"zalouser": {
|
|
27
|
+
"schema": {
|
|
28
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"name": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"enabled": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
37
|
+
"markdown": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"tables": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"off",
|
|
44
|
+
"bullets",
|
|
45
|
+
"code",
|
|
46
|
+
"block"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
},
|
|
52
|
+
"profile": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"dangerouslyAllowNameMatching": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
"dmPolicy": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"pairing",
|
|
62
|
+
"allowlist",
|
|
63
|
+
"open",
|
|
64
|
+
"disabled"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"allowFrom": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"anyOf": [
|
|
71
|
+
{
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "number"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"historyLimit": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 0,
|
|
83
|
+
"maximum": 9007199254740991
|
|
84
|
+
},
|
|
85
|
+
"groupAllowFrom": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "number"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"groupPolicy": {
|
|
99
|
+
"default": "allowlist",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"enum": [
|
|
102
|
+
"open",
|
|
103
|
+
"disabled",
|
|
104
|
+
"allowlist"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"groups": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {},
|
|
110
|
+
"additionalProperties": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"enabled": {
|
|
114
|
+
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
"requireMention": {
|
|
117
|
+
"type": "boolean"
|
|
118
|
+
},
|
|
119
|
+
"tools": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"allow": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"alsoAllow": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"deny": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"additionalProperties": false
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"messagePrefix": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"responsePrefix": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"accounts": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {},
|
|
156
|
+
"additionalProperties": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"properties": {
|
|
159
|
+
"name": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"enabled": {
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
},
|
|
165
|
+
"markdown": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"properties": {
|
|
168
|
+
"tables": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"enum": [
|
|
171
|
+
"off",
|
|
172
|
+
"bullets",
|
|
173
|
+
"code",
|
|
174
|
+
"block"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"additionalProperties": false
|
|
179
|
+
},
|
|
180
|
+
"profile": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"dangerouslyAllowNameMatching": {
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
186
|
+
"dmPolicy": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": [
|
|
189
|
+
"pairing",
|
|
190
|
+
"allowlist",
|
|
191
|
+
"open",
|
|
192
|
+
"disabled"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"allowFrom": {
|
|
196
|
+
"type": "array",
|
|
197
|
+
"items": {
|
|
198
|
+
"anyOf": [
|
|
199
|
+
{
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "number"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"historyLimit": {
|
|
209
|
+
"type": "integer",
|
|
210
|
+
"minimum": 0,
|
|
211
|
+
"maximum": 9007199254740991
|
|
212
|
+
},
|
|
213
|
+
"groupAllowFrom": {
|
|
214
|
+
"type": "array",
|
|
215
|
+
"items": {
|
|
216
|
+
"anyOf": [
|
|
217
|
+
{
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "number"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"groupPolicy": {
|
|
227
|
+
"default": "allowlist",
|
|
228
|
+
"type": "string",
|
|
229
|
+
"enum": [
|
|
230
|
+
"open",
|
|
231
|
+
"disabled",
|
|
232
|
+
"allowlist"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"groups": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {},
|
|
238
|
+
"additionalProperties": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"properties": {
|
|
241
|
+
"enabled": {
|
|
242
|
+
"type": "boolean"
|
|
243
|
+
},
|
|
244
|
+
"requireMention": {
|
|
245
|
+
"type": "boolean"
|
|
246
|
+
},
|
|
247
|
+
"tools": {
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"allow": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"items": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"alsoAllow": {
|
|
257
|
+
"type": "array",
|
|
258
|
+
"items": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"deny": {
|
|
263
|
+
"type": "array",
|
|
264
|
+
"items": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"additionalProperties": false
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"additionalProperties": false
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"messagePrefix": {
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"responsePrefix": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": [
|
|
283
|
+
"groupPolicy"
|
|
284
|
+
],
|
|
285
|
+
"additionalProperties": false
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"defaultAccount": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"required": [
|
|
293
|
+
"groupPolicy"
|
|
294
|
+
],
|
|
295
|
+
"additionalProperties": false
|
|
296
|
+
},
|
|
297
|
+
"label": "Zalo Personal",
|
|
298
|
+
"description": "Zalo personal account via QR code login."
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kodelyth/zalouser",
|
|
3
|
+
"version": "2026.5.39",
|
|
4
|
+
"description": "Klaw Zalo Personal Account plugin via native zca-js integration",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kodelyth/klaw"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"typebox": "1.1.38",
|
|
12
|
+
"zca-js": "2.1.2",
|
|
13
|
+
"zod": "4.4.3"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@kodelyth/plugin-sdk": "1.0.1",
|
|
17
|
+
"@kodelyth/klaw": "2026.5.41"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@kodelyth/klaw": ">=2026.5.19"
|
|
21
|
+
},
|
|
22
|
+
"peerDependenciesMeta": {
|
|
23
|
+
"@kodelyth/klaw": {
|
|
24
|
+
"optional": true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"klaw": {
|
|
28
|
+
"extensions": [
|
|
29
|
+
"./index.js"
|
|
30
|
+
],
|
|
31
|
+
"setupEntry": "./setup-entry.js",
|
|
32
|
+
"channel": {
|
|
33
|
+
"id": "zalouser",
|
|
34
|
+
"label": "Zalo Personal",
|
|
35
|
+
"selectionLabel": "Zalo (Personal Account)",
|
|
36
|
+
"docsPath": "/channels/zalouser",
|
|
37
|
+
"docsLabel": "zalouser",
|
|
38
|
+
"blurb": "Zalo personal account via QR code login.",
|
|
39
|
+
"aliases": [
|
|
40
|
+
"zlu"
|
|
41
|
+
],
|
|
42
|
+
"order": 85,
|
|
43
|
+
"quickstartAllowFrom": false,
|
|
44
|
+
"doctorCapabilities": {
|
|
45
|
+
"dmAllowFromMode": "topOnly",
|
|
46
|
+
"groupModel": "hybrid",
|
|
47
|
+
"groupAllowFromFallbackToAllowFrom": false,
|
|
48
|
+
"warnOnEmptyGroupSenderAllowlist": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"install": {
|
|
52
|
+
"npmSpec": "@kodelyth/zalouser",
|
|
53
|
+
"defaultChoice": "npm",
|
|
54
|
+
"minHostVersion": ">=2026.4.10"
|
|
55
|
+
},
|
|
56
|
+
"compat": {
|
|
57
|
+
"pluginApi": ">=2026.5.39"
|
|
58
|
+
},
|
|
59
|
+
"build": {
|
|
60
|
+
"klawVersion": "2026.5.39"
|
|
61
|
+
},
|
|
62
|
+
"release": {
|
|
63
|
+
"publishToClawHub": true,
|
|
64
|
+
"publishToNpm": true
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/runtime-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/runtime-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/runtime-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/secret-contract-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/secret-contract-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/setup-entry.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/setup-entry.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/zalouser/setup-entry.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/setup-plugin-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/setup-plugin-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/test-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/zalouser/test-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/zalouser/test-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|