zernio-mcp 1.3.2 → 2.0.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.
Files changed (62) hide show
  1. package/README.md +545 -166
  2. package/dist/index.js +7 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/tools/accounts.d.ts +199 -91
  5. package/dist/tools/accounts.d.ts.map +1 -1
  6. package/dist/tools/accounts.js +258 -0
  7. package/dist/tools/accounts.js.map +1 -1
  8. package/dist/tools/ads.d.ts +106 -96
  9. package/dist/tools/ads.d.ts.map +1 -1
  10. package/dist/tools/ads.js +100 -0
  11. package/dist/tools/ads.js.map +1 -1
  12. package/dist/tools/analytics.d.ts +8 -70
  13. package/dist/tools/analytics.d.ts.map +1 -1
  14. package/dist/tools/automations.d.ts +7 -47
  15. package/dist/tools/automations.d.ts.map +1 -1
  16. package/dist/tools/broadcasts.d.ts +5 -39
  17. package/dist/tools/broadcasts.d.ts.map +1 -1
  18. package/dist/tools/comments.d.ts +19 -37
  19. package/dist/tools/comments.d.ts.map +1 -1
  20. package/dist/tools/comments.js +14 -0
  21. package/dist/tools/comments.js.map +1 -1
  22. package/dist/tools/connect.d.ts +43 -49
  23. package/dist/tools/connect.d.ts.map +1 -1
  24. package/dist/tools/connect.js +80 -0
  25. package/dist/tools/connect.js.map +1 -1
  26. package/dist/tools/contacts.d.ts +10 -78
  27. package/dist/tools/contacts.d.ts.map +1 -1
  28. package/dist/tools/messages.d.ts +40 -60
  29. package/dist/tools/messages.d.ts.map +1 -1
  30. package/dist/tools/messages.js +23 -0
  31. package/dist/tools/messages.js.map +1 -1
  32. package/dist/tools/posts.d.ts +101 -109
  33. package/dist/tools/posts.d.ts.map +1 -1
  34. package/dist/tools/posts.js +84 -0
  35. package/dist/tools/posts.js.map +1 -1
  36. package/dist/tools/profiles.d.ts +35 -69
  37. package/dist/tools/profiles.d.ts.map +1 -1
  38. package/dist/tools/profiles.js +50 -0
  39. package/dist/tools/profiles.js.map +1 -1
  40. package/dist/tools/queue.d.ts +65 -0
  41. package/dist/tools/queue.d.ts.map +1 -0
  42. package/dist/tools/queue.js +86 -0
  43. package/dist/tools/queue.js.map +1 -0
  44. package/dist/tools/reddit.d.ts +33 -0
  45. package/dist/tools/reddit.d.ts.map +1 -0
  46. package/dist/tools/reddit.js +44 -0
  47. package/dist/tools/reddit.js.map +1 -0
  48. package/dist/tools/reviews.d.ts +7 -32
  49. package/dist/tools/reviews.d.ts.map +1 -1
  50. package/dist/tools/social.d.ts +93 -126
  51. package/dist/tools/social.d.ts.map +1 -1
  52. package/dist/tools/social.js +120 -19
  53. package/dist/tools/social.js.map +1 -1
  54. package/dist/tools/validation.d.ts +45 -0
  55. package/dist/tools/validation.d.ts.map +1 -0
  56. package/dist/tools/validation.js +60 -0
  57. package/dist/tools/validation.js.map +1 -0
  58. package/dist/tools/whatsapp-business.d.ts +223 -127
  59. package/dist/tools/whatsapp-business.d.ts.map +1 -1
  60. package/dist/tools/whatsapp-business.js +352 -0
  61. package/dist/tools/whatsapp-business.js.map +1 -1
  62. package/package.json +50 -1
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validationTools = void 0;
4
+ const zod_1 = require("zod");
5
+ const client_js_1 = require("../client.js");
6
+ exports.validationTools = [
7
+ {
8
+ name: "zernio_validate_post_length",
9
+ description: "Validate that post content meets a platform's character length requirements.",
10
+ inputSchema: zod_1.z.object({
11
+ content: zod_1.z.string().describe("The post content to validate"),
12
+ platform: zod_1.z.string().describe("The target platform: facebook, instagram, twitter, linkedin, tiktok, etc."),
13
+ }),
14
+ handler: async (args) => {
15
+ return (0, client_js_1.zernioRequest)("POST", "/v1/tools/validate/post-length", {
16
+ content: args.content,
17
+ platform: args.platform,
18
+ });
19
+ },
20
+ },
21
+ {
22
+ name: "zernio_validate_post",
23
+ description: "Validate post content against all platform rules before publishing (character limits, hashtag limits, media requirements, etc.).",
24
+ inputSchema: zod_1.z.object({
25
+ content: zod_1.z.string().describe("The post content to validate"),
26
+ platform: zod_1.z.string().describe("The target platform: facebook, instagram, twitter, linkedin, tiktok, etc."),
27
+ mediaIds: zod_1.z.array(zod_1.z.string()).optional().describe("Media IDs to include in validation"),
28
+ }),
29
+ handler: async (args) => {
30
+ return (0, client_js_1.zernioRequest)("POST", "/v1/tools/validate/post", {
31
+ content: args.content,
32
+ platform: args.platform,
33
+ mediaIds: args.mediaIds,
34
+ });
35
+ },
36
+ },
37
+ {
38
+ name: "zernio_validate_media",
39
+ description: "Validate media files against platform requirements (file size, dimensions, format, duration, etc.).",
40
+ inputSchema: zod_1.z.object({
41
+ mediaIds: zod_1.z.array(zod_1.z.string()).describe("Media IDs to validate"),
42
+ }),
43
+ handler: async (args) => {
44
+ return (0, client_js_1.zernioRequest)("POST", "/v1/tools/validate/media", {
45
+ mediaIds: args.mediaIds,
46
+ });
47
+ },
48
+ },
49
+ {
50
+ name: "zernio_validate_subreddit",
51
+ description: "Validate that a subreddit exists and check its posting rules and requirements.",
52
+ inputSchema: zod_1.z.object({
53
+ subreddit: zod_1.z.string().describe("The subreddit name to validate (without r/)"),
54
+ }),
55
+ handler: async (args) => {
56
+ return (0, client_js_1.zernioRequest)("GET", "/v1/tools/validate/subreddit", undefined, { subreddit: args.subreddit });
57
+ },
58
+ },
59
+ ];
60
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/tools/validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,eAAe,GAAG;IAC7B;QACE,IAAI,EAAE,6BAA6B;QACnC,WAAW,EAAE,8EAA8E;QAC3F,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;YAC5D,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CA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D,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC,CAAC;QACL,CAAC;KACF;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,gFAAgF;QAC7F,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;SAC9E,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAA2B,EAAE,EAAE;YAC7C,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,8BAA8B,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACxG,CAAC;KACF;CACF,CAAC"}
@@ -4,11 +4,7 @@ export declare const whatsappBusinessTools: ({
4
4
  description: string;
5
5
  inputSchema: z.ZodObject<{
6
6
  accountId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- accountId: string;
9
- }, {
10
- accountId: string;
11
- }>;
7
+ }, z.core.$strip>;
12
8
  handler: (args: {
13
9
  accountId: string;
14
10
  }) => Promise<unknown>;
@@ -23,23 +19,7 @@ export declare const whatsappBusinessTools: ({
23
19
  category: z.ZodOptional<z.ZodString>;
24
20
  email: z.ZodOptional<z.ZodString>;
25
21
  address: z.ZodOptional<z.ZodString>;
26
- }, "strip", z.ZodTypeAny, {
27
- accountId: string;
28
- description?: string | undefined;
29
- email?: string | undefined;
30
- displayName?: string | undefined;
31
- website?: string | undefined;
32
- category?: string | undefined;
33
- address?: string | undefined;
34
- }, {
35
- accountId: string;
36
- description?: string | undefined;
37
- email?: string | undefined;
38
- displayName?: string | undefined;
39
- website?: string | undefined;
40
- category?: string | undefined;
41
- address?: string | undefined;
42
- }>;
22
+ }, z.core.$strip>;
43
23
  handler: (args: {
44
24
  accountId: string;
45
25
  displayName?: string;
@@ -60,23 +40,7 @@ export declare const whatsappBusinessTools: ({
60
40
  body: z.ZodString;
61
41
  header: z.ZodOptional<z.ZodString>;
62
42
  footer: z.ZodOptional<z.ZodString>;
63
- }, "strip", z.ZodTypeAny, {
64
- accountId: string;
65
- name: string;
66
- category: string;
67
- language: string;
68
- body: string;
69
- header?: string | undefined;
70
- footer?: string | undefined;
71
- }, {
72
- accountId: string;
73
- name: string;
74
- category: string;
75
- language: string;
76
- body: string;
77
- header?: string | undefined;
78
- footer?: string | undefined;
79
- }>;
43
+ }, z.core.$strip>;
80
44
  handler: (args: {
81
45
  accountId: string;
82
46
  name: string;
@@ -93,15 +57,7 @@ export declare const whatsappBusinessTools: ({
93
57
  accountId: z.ZodString;
94
58
  countryCode: z.ZodString;
95
59
  areaCode: z.ZodOptional<z.ZodString>;
96
- }, "strip", z.ZodTypeAny, {
97
- accountId: string;
98
- countryCode: string;
99
- areaCode?: string | undefined;
100
- }, {
101
- accountId: string;
102
- countryCode: string;
103
- areaCode?: string | undefined;
104
- }>;
60
+ }, z.core.$strip>;
105
61
  handler: (args: {
106
62
  accountId: string;
107
63
  countryCode: string;
@@ -113,16 +69,11 @@ export declare const whatsappBusinessTools: ({
113
69
  inputSchema: z.ZodObject<{
114
70
  accountId: z.ZodString;
115
71
  phoneNumberId: z.ZodString;
116
- method: z.ZodEnum<["sms", "voice"]>;
117
- }, "strip", z.ZodTypeAny, {
118
- accountId: string;
119
- phoneNumberId: string;
120
- method: "sms" | "voice";
121
- }, {
122
- accountId: string;
123
- phoneNumberId: string;
124
- method: "sms" | "voice";
125
- }>;
72
+ method: z.ZodEnum<{
73
+ sms: "sms";
74
+ voice: "voice";
75
+ }>;
76
+ }, z.core.$strip>;
126
77
  handler: (args: {
127
78
  accountId: string;
128
79
  phoneNumberId: string;
@@ -135,15 +86,7 @@ export declare const whatsappBusinessTools: ({
135
86
  accountId: z.ZodString;
136
87
  phoneNumberId: z.ZodString;
137
88
  code: z.ZodString;
138
- }, "strip", z.ZodTypeAny, {
139
- code: string;
140
- accountId: string;
141
- phoneNumberId: string;
142
- }, {
143
- code: string;
144
- accountId: string;
145
- phoneNumberId: string;
146
- }>;
89
+ }, z.core.$strip>;
147
90
  handler: (args: {
148
91
  accountId: string;
149
92
  phoneNumberId: string;
@@ -155,16 +98,8 @@ export declare const whatsappBusinessTools: ({
155
98
  inputSchema: z.ZodObject<{
156
99
  accountId: z.ZodString;
157
100
  name: z.ZodString;
158
- categories: z.ZodArray<z.ZodString, "many">;
159
- }, "strip", z.ZodTypeAny, {
160
- accountId: string;
161
- name: string;
162
- categories: string[];
163
- }, {
164
- accountId: string;
165
- name: string;
166
- categories: string[];
167
- }>;
101
+ categories: z.ZodArray<z.ZodString>;
102
+ }, z.core.$strip>;
168
103
  handler: (args: {
169
104
  accountId: string;
170
105
  name: string;
@@ -176,13 +111,7 @@ export declare const whatsappBusinessTools: ({
176
111
  inputSchema: z.ZodObject<{
177
112
  flowId: z.ZodString;
178
113
  accountId: z.ZodString;
179
- }, "strip", z.ZodTypeAny, {
180
- accountId: string;
181
- flowId: string;
182
- }, {
183
- accountId: string;
184
- flowId: string;
185
- }>;
114
+ }, z.core.$strip>;
186
115
  handler: (args: {
187
116
  flowId: string;
188
117
  accountId: string;
@@ -194,15 +123,7 @@ export declare const whatsappBusinessTools: ({
194
123
  flowId: z.ZodString;
195
124
  accountId: z.ZodString;
196
125
  flowJson: z.ZodString;
197
- }, "strip", z.ZodTypeAny, {
198
- accountId: string;
199
- flowId: string;
200
- flowJson: string;
201
- }, {
202
- accountId: string;
203
- flowId: string;
204
- flowJson: string;
205
- }>;
126
+ }, z.core.$strip>;
206
127
  handler: (args: {
207
128
  flowId: string;
208
129
  accountId: string;
@@ -214,16 +135,8 @@ export declare const whatsappBusinessTools: ({
214
135
  inputSchema: z.ZodObject<{
215
136
  accountId: z.ZodString;
216
137
  name: z.ZodString;
217
- participants: z.ZodArray<z.ZodString, "many">;
218
- }, "strip", z.ZodTypeAny, {
219
- accountId: string;
220
- name: string;
221
- participants: string[];
222
- }, {
223
- accountId: string;
224
- name: string;
225
- participants: string[];
226
- }>;
138
+ participants: z.ZodArray<z.ZodString>;
139
+ }, z.core.$strip>;
227
140
  handler: (args: {
228
141
  accountId: string;
229
142
  name: string;
@@ -235,20 +148,23 @@ export declare const whatsappBusinessTools: ({
235
148
  inputSchema: z.ZodObject<{
236
149
  groupId: z.ZodString;
237
150
  accountId: z.ZodString;
238
- participants: z.ZodArray<z.ZodString, "many">;
239
- }, "strip", z.ZodTypeAny, {
240
- accountId: string;
151
+ participants: z.ZodArray<z.ZodString>;
152
+ }, z.core.$strip>;
153
+ handler: (args: {
241
154
  groupId: string;
242
- participants: string[];
243
- }, {
244
155
  accountId: string;
245
- groupId: string;
246
156
  participants: string[];
247
- }>;
157
+ }) => Promise<unknown>;
158
+ } | {
159
+ name: string;
160
+ description: string;
161
+ inputSchema: z.ZodObject<{
162
+ groupId: z.ZodString;
163
+ accountId: z.ZodString;
164
+ }, z.core.$strip>;
248
165
  handler: (args: {
249
166
  groupId: string;
250
167
  accountId: string;
251
- participants: string[];
252
168
  }) => Promise<unknown>;
253
169
  } | {
254
170
  name: string;
@@ -256,37 +172,217 @@ export declare const whatsappBusinessTools: ({
256
172
  inputSchema: z.ZodObject<{
257
173
  groupId: z.ZodString;
258
174
  accountId: z.ZodString;
259
- }, "strip", z.ZodTypeAny, {
260
- accountId: string;
175
+ requestIds: z.ZodArray<z.ZodString>;
176
+ }, z.core.$strip>;
177
+ handler: (args: {
261
178
  groupId: string;
262
- }, {
263
179
  accountId: string;
264
- groupId: string;
265
- }>;
180
+ requestIds: string[];
181
+ }) => Promise<unknown>;
182
+ } | {
183
+ name: string;
184
+ description: string;
185
+ inputSchema: z.ZodObject<{
186
+ templateName: z.ZodString;
187
+ accountId: z.ZodString;
188
+ }, z.core.$strip>;
266
189
  handler: (args: {
267
- groupId: string;
190
+ templateName: string;
268
191
  accountId: string;
269
192
  }) => Promise<unknown>;
270
193
  } | {
271
194
  name: string;
272
195
  description: string;
273
196
  inputSchema: z.ZodObject<{
274
- groupId: z.ZodString;
197
+ templateName: z.ZodString;
275
198
  accountId: z.ZodString;
276
- requestIds: z.ZodArray<z.ZodString, "many">;
277
- }, "strip", z.ZodTypeAny, {
199
+ body: z.ZodOptional<z.ZodString>;
200
+ header: z.ZodOptional<z.ZodString>;
201
+ footer: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strip>;
203
+ handler: (args: {
204
+ templateName: string;
278
205
  accountId: string;
279
- groupId: string;
280
- requestIds: string[];
281
- }, {
206
+ body?: string;
207
+ header?: string;
208
+ footer?: string;
209
+ }) => Promise<unknown>;
210
+ } | {
211
+ name: string;
212
+ description: string;
213
+ inputSchema: z.ZodObject<{
214
+ phoneNumberId: z.ZodString;
215
+ accountId: z.ZodString;
216
+ }, z.core.$strip>;
217
+ handler: (args: {
218
+ phoneNumberId: string;
282
219
  accountId: string;
283
- groupId: string;
284
- requestIds: string[];
285
- }>;
220
+ }) => Promise<unknown>;
221
+ } | {
222
+ name: string;
223
+ description: string;
224
+ inputSchema: z.ZodObject<{
225
+ accountId: z.ZodString;
226
+ displayName: z.ZodString;
227
+ }, z.core.$strip>;
228
+ handler: (args: {
229
+ accountId: string;
230
+ displayName: string;
231
+ }) => Promise<unknown>;
232
+ } | {
233
+ name: string;
234
+ description: string;
235
+ inputSchema: z.ZodObject<{
236
+ accountId: z.ZodString;
237
+ photoUrl: z.ZodString;
238
+ }, z.core.$strip>;
239
+ handler: (args: {
240
+ accountId: string;
241
+ photoUrl: string;
242
+ }) => Promise<unknown>;
243
+ } | {
244
+ name: string;
245
+ description: string;
246
+ inputSchema: z.ZodObject<{
247
+ flowId: z.ZodString;
248
+ accountId: z.ZodString;
249
+ name: z.ZodOptional<z.ZodString>;
250
+ }, z.core.$strip>;
251
+ handler: (args: {
252
+ flowId: string;
253
+ accountId: string;
254
+ name?: string;
255
+ }) => Promise<unknown>;
256
+ } | {
257
+ name: string;
258
+ description: string;
259
+ inputSchema: z.ZodObject<{
260
+ accountId: z.ZodString;
261
+ flowId: z.ZodString;
262
+ contactId: z.ZodString;
263
+ }, z.core.$strip>;
264
+ handler: (args: {
265
+ accountId: string;
266
+ flowId: string;
267
+ contactId: string;
268
+ }) => Promise<unknown>;
269
+ } | {
270
+ name: string;
271
+ description: string;
272
+ inputSchema: z.ZodObject<{
273
+ groupId: z.ZodString;
274
+ accountId: z.ZodString;
275
+ name: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strip>;
286
277
  handler: (args: {
287
278
  groupId: string;
288
279
  accountId: string;
289
- requestIds: string[];
280
+ name?: string;
281
+ }) => Promise<unknown>;
282
+ } | {
283
+ name: string;
284
+ description: string;
285
+ inputSchema: z.ZodObject<{
286
+ accountId: z.ZodString;
287
+ templateName: z.ZodString;
288
+ contacts: z.ZodArray<z.ZodString>;
289
+ }, z.core.$strip>;
290
+ handler: (args: {
291
+ accountId: string;
292
+ templateName: string;
293
+ contacts: string[];
294
+ }) => Promise<unknown>;
295
+ } | {
296
+ name: string;
297
+ description: string;
298
+ inputSchema: z.ZodObject<{
299
+ accountId: z.ZodString;
300
+ limit: z.ZodOptional<z.ZodNumber>;
301
+ offset: z.ZodOptional<z.ZodNumber>;
302
+ }, z.core.$strip>;
303
+ handler: (args: {
304
+ accountId: string;
305
+ limit?: number;
306
+ offset?: number;
307
+ }) => Promise<unknown>;
308
+ } | {
309
+ name: string;
310
+ description: string;
311
+ inputSchema: z.ZodObject<{
312
+ accountId: z.ZodString;
313
+ name: z.ZodString;
314
+ phoneNumber: z.ZodString;
315
+ email: z.ZodOptional<z.ZodString>;
316
+ }, z.core.$strip>;
317
+ handler: (args: {
318
+ accountId: string;
319
+ name: string;
320
+ phoneNumber: string;
321
+ email?: string;
322
+ }) => Promise<unknown>;
323
+ } | {
324
+ name: string;
325
+ description: string;
326
+ inputSchema: z.ZodObject<{
327
+ contactId: z.ZodString;
328
+ accountId: z.ZodString;
329
+ }, z.core.$strip>;
330
+ handler: (args: {
331
+ contactId: string;
332
+ accountId: string;
333
+ }) => Promise<unknown>;
334
+ } | {
335
+ name: string;
336
+ description: string;
337
+ inputSchema: z.ZodObject<{
338
+ contactId: z.ZodString;
339
+ accountId: z.ZodString;
340
+ name: z.ZodOptional<z.ZodString>;
341
+ email: z.ZodOptional<z.ZodString>;
342
+ }, z.core.$strip>;
343
+ handler: (args: {
344
+ contactId: string;
345
+ accountId: string;
346
+ name?: string;
347
+ email?: string;
348
+ }) => Promise<unknown>;
349
+ } | {
350
+ name: string;
351
+ description: string;
352
+ inputSchema: z.ZodObject<{
353
+ accountId: z.ZodString;
354
+ contacts: z.ZodArray<z.ZodObject<{
355
+ name: z.ZodString;
356
+ phoneNumber: z.ZodString;
357
+ email: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>>;
359
+ }, z.core.$strip>;
360
+ handler: (args: {
361
+ accountId: string;
362
+ contacts: Array<{
363
+ name: string;
364
+ phoneNumber: string;
365
+ email?: string;
366
+ }>;
367
+ }) => Promise<unknown>;
368
+ } | {
369
+ name: string;
370
+ description: string;
371
+ inputSchema: z.ZodObject<{
372
+ accountId: z.ZodString;
373
+ contacts: z.ZodArray<z.ZodObject<{
374
+ contactId: z.ZodString;
375
+ name: z.ZodOptional<z.ZodString>;
376
+ email: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$strip>>;
378
+ }, z.core.$strip>;
379
+ handler: (args: {
380
+ accountId: string;
381
+ contacts: Array<{
382
+ contactId: string;
383
+ name?: string;
384
+ email?: string;
385
+ }>;
290
386
  }) => Promise<unknown>;
291
387
  })[];
292
388
  //# sourceMappingURL=whatsapp-business.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp-business.d.ts","sourceRoot":"","sources":["../../src/tools/whatsapp-business.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;oBAOR;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAgBrB;QAAE,SAAS,EAAE,MAAM,CA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