@open-wa/schema 5.1.0 → 5.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.
Files changed (50) hide show
  1. package/dist/generated/index.cjs +1 -1
  2. package/dist/generated/index.cjs.map +1 -1
  3. package/dist/generated/index.d.cts +7491 -1331
  4. package/dist/generated/index.d.cts.map +1 -1
  5. package/dist/generated/index.d.mts +7491 -1331
  6. package/dist/generated/index.d.mts.map +1 -1
  7. package/dist/generated/index.mjs +1 -1
  8. package/dist/generated/index.mjs.map +1 -1
  9. package/dist/index-C9Ad0lEr.d.cts +4729 -0
  10. package/dist/index-C9Ad0lEr.d.cts.map +1 -0
  11. package/dist/index-D0QN2PaW.d.mts +4729 -0
  12. package/dist/index-D0QN2PaW.d.mts.map +1 -0
  13. package/dist/index.cjs +59 -1
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +31 -2
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/methods/index.cjs +2 -1
  20. package/dist/methods/index.d.cts +2 -2
  21. package/dist/methods/index.d.mts +2 -2
  22. package/dist/methods/index.mjs +2 -2
  23. package/dist/{methods-DO0JONvB.cjs → methods-BGmdzjd3.cjs} +433 -76
  24. package/dist/methods-BGmdzjd3.cjs.map +1 -0
  25. package/dist/{methods-BSv5O3bS.mjs → methods-BhLsQNtL.mjs} +272 -77
  26. package/dist/methods-BhLsQNtL.mjs.map +1 -0
  27. package/package.json +3 -3
  28. package/src/common-types.ts +22 -15
  29. package/src/generated/BaseClient.ts +2 -2
  30. package/src/generated/openapi.json +24726 -3626
  31. package/src/index.ts +2 -0
  32. package/src/methods/business.ts +4 -3
  33. package/src/methods/chats.ts +6 -5
  34. package/src/methods/communities.ts +8 -6
  35. package/src/methods/contacts.ts +8 -6
  36. package/src/methods/groups.ts +11 -9
  37. package/src/methods/labels.ts +4 -2
  38. package/src/methods/media.ts +2 -2
  39. package/src/methods/messaging.ts +20 -12
  40. package/src/methods/session.ts +7 -6
  41. package/src/methods/status.ts +9 -7
  42. package/src/output-json-schema.ts +27 -0
  43. package/src/parameters.ts +2 -2
  44. package/src/return-types.ts +125 -0
  45. package/dist/index-DTztyYhw.d.cts +0 -2155
  46. package/dist/index-DTztyYhw.d.cts.map +0 -1
  47. package/dist/index-nVKR0RmZ.d.mts +0 -2155
  48. package/dist/index-nVKR0RmZ.d.mts.map +0 -1
  49. package/dist/methods-BSv5O3bS.mjs.map +0 -1
  50. package/dist/methods-DO0JONvB.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-D0QN2PaW.d.mts","names":["ContactIdSchema","ChatIdSchema","MessageIdSchema","GroupIdSchema","_$__common_types0.MessageTypes","_$__common_types0.MessageAck","_$__0.OpenWAMethodSchema","_$__0.MessageTypes","_$__0.MessageAck","_$__0.OpenWAMethodSchema","_$__0.OpenWAMethodSchema","_$__0.OpenWAMethodSchema","_$__0.OpenWAMethodSchema","_$__0.OpenWAMethodSchema","_$__0.MessageTypes","_$__0.MessageAck","_$__0.OpenWAMethodSchema","_$__0.OpenWAMethodSchema","_$__0.MessageTypes","_$__0.MessageAck","_$__0.OpenWAMethodSchema","_$__0.MessageTypes","_$__0.MessageAck","_$__0.OpenWAMethodSchema","_$__0.JsonValue","_$__0.OpenWAMethodSchema"],"sources":["../src/client-config.ts","../src/common-types.ts","../src/return-types.ts","../src/output-json-schema.ts","../src/methods/messaging.ts","../src/methods/chats.ts","../src/methods/contacts.ts","../src/methods/groups.ts","../src/methods/communities.ts","../src/methods/status.ts","../src/methods/labels.ts","../src/methods/business.ts","../src/methods/session.ts","../src/methods/media.ts","../src/methods/interactive.ts","../src/methods/index.ts","../src/events/registry.ts","../src/events/messaging.ts","../src/events/state.ts","../src/events/groups.ts","../src/codecs.ts","../src/parameters.ts","../src/interactive.ts"],"mappings":";;;;;;iBAegB,gBAAgB,WAAW,0BAA0B;;;cCZxDA,mBA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B,EAAE,aAAa;KACnC,eAAe,EAAE,aAAa;iBAE1B,yBAAyB,UAAU,oBAAoB,SAAS,IAAI,QAAQ,EAAE,cAAc;EAA6B,MAAM;;cAUlI,oBAAkB,EAAA;;;;;;;;;GAG7B,EAAA,KAAA;cACW,2BAAyB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKpC,EAAA,KAAA;KACU,eAAe,EAAE,aAAa;KAC9B,sBAAsB,EAAE,aAAa"}
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_registry = require("./registry-_s9a7_jl.cjs");
3
- const require_methods = require("./methods-DO0JONvB.cjs");
3
+ const require_methods = require("./methods-BGmdzjd3.cjs");
4
4
  const require_implementor = require("./implementor.cjs");
5
5
  const require_http_manifest = require("./http-manifest.cjs");
6
6
  let zod = require("zod");
@@ -20,6 +20,35 @@ function migrateV4Config(oldConfig) {
20
20
  return config;
21
21
  }
22
22
  //#endregion
23
+ //#region src/output-json-schema.ts
24
+ /** HTTP omits undefined results; void/undefined are not JSON data values. */
25
+ function outputJsonSchema(schema) {
26
+ return zod.z.toJSONSchema(schema, {
27
+ target: "openapi-3.0",
28
+ unrepresentable: "any",
29
+ override: ({ zodSchema, jsonSchema }) => {
30
+ const kind = zodSchema._zod.def.type;
31
+ if (kind === "void" || kind === "undefined") {
32
+ jsonSchema.not = {};
33
+ jsonSchema.description = "No JSON value; the response data property is omitted.";
34
+ }
35
+ }
36
+ });
37
+ }
38
+ function successResponseSchema(schema) {
39
+ return {
40
+ type: "object",
41
+ required: schema.isOptional() ? ["success"] : ["success", "data"],
42
+ properties: {
43
+ success: {
44
+ type: "boolean",
45
+ enum: [true]
46
+ },
47
+ data: outputJsonSchema(schema)
48
+ }
49
+ };
50
+ }
51
+ //#endregion
23
52
  //#region src/events/registry.ts
24
53
  const eventsByName = /* @__PURE__ */ new Map();
25
54
  const nameByCallback = /* @__PURE__ */ new WeakMap();
@@ -322,6 +351,7 @@ const HttpMethodEnum = zod.z.enum([
322
351
  exports.ActionEnum = ActionEnum;
323
352
  exports.Base64ToDataUrlSchema = require_methods.Base64ToDataUrlSchema;
324
353
  exports.BookingContentSchema = require_methods.BookingContentSchema;
354
+ exports.BusinessProfileSchema = require_methods.BusinessProfileSchema;
325
355
  exports.ButtonsContentSchema = require_methods.ButtonsContentSchema;
326
356
  Object.defineProperty(exports, "CLOUD_PROVIDERS", {
327
357
  enumerable: true,
@@ -332,6 +362,7 @@ Object.defineProperty(exports, "CLOUD_PROVIDERS", {
332
362
  exports.CallActionSchema = require_methods.CallActionSchema;
333
363
  exports.CarouselCardSchema = require_methods.CarouselCardSchema;
334
364
  exports.CarouselContentSchema = require_methods.CarouselContentSchema;
365
+ exports.CartItemSchema = require_methods.CartItemSchema;
335
366
  exports.ChatIdCodecSchema = require_methods.ChatIdCodecSchema;
336
367
  exports.ChatIdSchema = require_methods.ChatIdSchema;
337
368
  exports.ChatSchema = require_methods.ChatSchema;
@@ -347,6 +378,12 @@ Object.defineProperty(exports, "CloudUploadOptionsSchema", {
347
378
  return _open_wa_config.CloudUploadOptionsSchema;
348
379
  }
349
380
  });
381
+ exports.CommonGroupSchema = require_methods.CommonGroupSchema;
382
+ exports.CommunityAdminIdsSchema = require_methods.CommunityAdminIdsSchema;
383
+ exports.CommunityAdminsSchema = require_methods.CommunityAdminsSchema;
384
+ exports.CommunityMetadataSchema = require_methods.CommunityMetadataSchema;
385
+ exports.CommunityParticipantIdsSchema = require_methods.CommunityParticipantIdsSchema;
386
+ exports.CommunityParticipantsSchema = require_methods.CommunityParticipantsSchema;
350
387
  Object.defineProperty(exports, "ConfigSchema", {
351
388
  enumerable: true,
352
389
  get: function() {
@@ -356,6 +393,7 @@ Object.defineProperty(exports, "ConfigSchema", {
356
393
  exports.ContactIdCodecSchema = require_methods.ContactIdCodecSchema;
357
394
  exports.ContactIdSchema = require_methods.ContactIdSchema;
358
395
  exports.ContactSchema = require_methods.ContactSchema;
396
+ exports.ContactStatusSchema = require_methods.ContactStatusSchema;
359
397
  exports.CopyActionSchema = require_methods.CopyActionSchema;
360
398
  Object.defineProperty(exports, "DIRECTORY_STRATEGY", {
361
399
  enumerable: true,
@@ -363,22 +401,27 @@ Object.defineProperty(exports, "DIRECTORY_STRATEGY", {
363
401
  return _open_wa_config.DIRECTORY_STRATEGY;
364
402
  }
365
403
  });
404
+ exports.DataURLSchema = require_methods.DataURLSchema;
366
405
  Object.defineProperty(exports, "DevToolsSchema", {
367
406
  enumerable: true,
368
407
  get: function() {
369
408
  return _open_wa_config.DevToolsSchema;
370
409
  }
371
410
  });
411
+ exports.FeatureFlagsSchema = require_methods.FeatureFlagsSchema;
372
412
  exports.FileToDataUrlSchema = require_methods.FileToDataUrlSchema;
373
413
  exports.FormContentSchema = require_methods.FormContentSchema;
374
414
  exports.FormQuestionSchema = require_methods.FormQuestionSchema;
375
415
  exports.FormResponseSchema = require_methods.FormResponseSchema;
376
416
  exports.FunctionalityEnum = FunctionalityEnum;
377
417
  exports.GroupChatIdSchema = require_methods.GroupChatIdSchema;
418
+ exports.GroupCreationResultSchema = require_methods.GroupCreationResultSchema;
378
419
  exports.GroupIdCodecSchema = require_methods.GroupIdCodecSchema;
379
420
  exports.GroupIdSchema = require_methods.GroupIdSchema;
380
421
  exports.GroupMetadataSchema = require_methods.GroupMetadataSchema;
422
+ exports.HealthCheckSchema = require_methods.HealthCheckSchema;
381
423
  exports.HexColorSchema = require_methods.HexColorSchema;
424
+ exports.HostAccountSchema = require_methods.HostAccountSchema;
382
425
  exports.HttpMethodEnum = HttpMethodEnum;
383
426
  exports.IdSchema = require_methods.IdSchema;
384
427
  exports.InteractiveActionSchema = require_methods.InteractiveActionSchema;
@@ -388,6 +431,8 @@ exports.InteractiveResponseSchema = require_methods.InteractiveResponseSchema;
388
431
  exports.IsoDatetimeToDateSchema = require_methods.IsoDatetimeToDateSchema;
389
432
  exports.JsonObjectSchema = require_methods.JsonObjectSchema;
390
433
  exports.JsonValueSchema = require_methods.JsonValueSchema;
434
+ exports.LLMMessageSchema = require_methods.LLMMessageSchema;
435
+ exports.LabelSchema = require_methods.LabelSchema;
391
436
  exports.LicenseEnum = LicenseEnum;
392
437
  Object.defineProperty(exports, "LicenseType", {
393
438
  enumerable: true,
@@ -395,6 +440,7 @@ Object.defineProperty(exports, "LicenseType", {
395
440
  return _open_wa_config.LicenseType;
396
441
  }
397
442
  });
443
+ exports.LicenseTypeSchema = require_methods.LicenseTypeSchema;
398
444
  exports.LinkActionSchema = require_methods.LinkActionSchema;
399
445
  exports.ListContentSchema = require_methods.ListContentSchema;
400
446
  exports.ListRowSchema = require_methods.ListRowSchema;
@@ -409,6 +455,8 @@ exports.MessageAck = require_methods.MessageAck;
409
455
  exports.MessageIdCodecSchema = require_methods.MessageIdCodecSchema;
410
456
  exports.MessageIdReturnSchema = require_methods.MessageIdReturnSchema;
411
457
  exports.MessageIdSchema = require_methods.MessageIdSchema;
458
+ exports.MessageInfoSchema = require_methods.MessageInfoSchema;
459
+ exports.MessageInteractionSchema = require_methods.MessageInteractionSchema;
412
460
  exports.MessageSchema = require_methods.MessageSchema;
413
461
  exports.MessageTypes = require_methods.MessageTypes;
414
462
  exports.NativeActionSchema = require_methods.NativeActionSchema;
@@ -419,18 +467,23 @@ Object.defineProperty(exports, "NotificationLanguage", {
419
467
  return _open_wa_config.NotificationLanguage;
420
468
  }
421
469
  });
470
+ exports.NumberCheckSchema = require_methods.NumberCheckSchema;
471
+ exports.NumberProfileSchema = require_methods.NumberProfileSchema;
422
472
  Object.defineProperty(exports, "OnError", {
423
473
  enumerable: true,
424
474
  get: function() {
425
475
  return _open_wa_config.OnError;
426
476
  }
427
477
  });
478
+ exports.OrderSchema = require_methods.OrderSchema;
428
479
  Object.defineProperty(exports, "PartialConfigSchema", {
429
480
  enumerable: true,
430
481
  get: function() {
431
482
  return _open_wa_config.PartialConfigSchema;
432
483
  }
433
484
  });
485
+ exports.ProcessStatsSchema = require_methods.ProcessStatsSchema;
486
+ exports.ProductSchema = require_methods.ProductSchema;
434
487
  Object.defineProperty(exports, "ProxyServerCredentialsSchema", {
435
488
  enumerable: true,
436
489
  get: function() {
@@ -454,6 +507,8 @@ Object.defineProperty(exports, "S3SyncSchema", {
454
507
  });
455
508
  exports.SendInteractiveInputSchema = require_methods.SendInteractiveInputSchema;
456
509
  exports.SendRawMessageInputSchema = require_methods.SendRawMessageInputSchema;
510
+ exports.SendTextResultSchema = require_methods.SendTextResultSchema;
511
+ exports.SerializedMessageIdSchema = require_methods.SerializedMessageIdSchema;
457
512
  Object.defineProperty(exports, "SessionDataSchema", {
458
513
  enumerable: true,
459
514
  get: function() {
@@ -462,6 +517,7 @@ Object.defineProperty(exports, "SessionDataSchema", {
462
517
  });
463
518
  exports.SimpleListener = require_methods.SimpleListener;
464
519
  exports.StateEnum = StateEnum;
520
+ exports.StorySchema = require_methods.StorySchema;
465
521
  Object.defineProperty(exports, "StrictConfigSchema", {
466
522
  enumerable: true,
467
523
  get: function() {
@@ -618,6 +674,7 @@ exports.muteChat = require_methods.muteChat;
618
674
  exports.nameParam = require_methods.nameParam;
619
675
  exports.normalizeParameterKeys = require_registry.normalizeParameterKeys;
620
676
  exports.onlyLocalParam = require_methods.onlyLocalParam;
677
+ exports.outputJsonSchema = outputJsonSchema;
621
678
  exports.parameterRegistry = require_registry.parameterRegistry;
622
679
  Object.defineProperty(exports, "parseConfig", {
623
680
  enumerable: true,
@@ -676,6 +733,7 @@ exports.starMessage = require_methods.starMessage;
676
733
  exports.stateChangedEvent = stateChangedEvent;
677
734
  exports.statusTextParam = require_methods.statusTextParam;
678
735
  exports.stickerDataParam = require_methods.stickerDataParam;
736
+ exports.successResponseSchema = successResponseSchema;
679
737
  exports.toParam = require_methods.toParam;
680
738
  exports.unarchiveChat = require_methods.unarchiveChat;
681
739
  exports.unblockContact = require_methods.unblockContact;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["z","z","MessageAck","MessageSchema","InteractiveResponseSchema","FormResponseSchema","z","z","z"],"sources":["../src/client-config.ts","../src/events/registry.ts","../src/events/messaging.ts","../src/events/state.ts","../src/events/groups.ts","../src/enums.ts"],"sourcesContent":["/**\n * Client configuration types - re-exported from @open-wa/config\n * \n * @deprecated Import from '@open-wa/config' instead\n */\n\nexport { ConfigSchema as ClientConfigSchema, type Config as ClientConfig } from '@open-wa/config';\n\n/**\n * Migrates a v4 configuration object to the v5 schema format.\n * Currently, most v4 options are compatible with v5.\n * This function serves as a placeholder for any future transformations.\n * \n * @deprecated This is a legacy compatibility function. Use @open-wa/config directly.\n */\nexport function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown> {\n // Deep clone to avoid mutating original\n const config = JSON.parse(JSON.stringify(oldConfig));\n\n // Example migration: if 'authTimeout' was string in some legacy version (unlikely but example)\n if (typeof config.authTimeout === 'string') {\n config.authTimeout = parseInt(config.authTimeout, 10);\n }\n\n if (config.apiLifecycle === undefined) {\n config.apiLifecycle = 'hybrid';\n }\n\n return config;\n}\n","import { z } from 'zod';\nimport { LicenseTier } from '../enums';\n\nexport type QueueOverloadStrategy = 'backpressure' | 'dropping';\n\nexport interface QueueOptions {\n concurrency?: number;\n capacity?: number;\n overload?: QueueOverloadStrategy;\n ordering?: 'fifo';\n intervalCap?: number;\n interval?: number;\n timeout?: number;\n}\n\nexport type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';\n\nexport interface EventMetadata {\n eventName: string;\n legacyName: string;\n description?: string;\n namespace?: string;\n status?: EventStatus;\n deprecated?: string;\n license?: LicenseTier;\n since?: string;\n payloadSchema: z.ZodTypeAny;\n defaultQueueOptions?: QueueOptions;\n}\n\nexport interface EventDefinition {\n callbackSchema: z.ZodFunction<any, any>;\n meta: EventMetadata;\n}\n\nconst eventsByName = new Map<string, EventDefinition>();\nconst nameByCallback = new WeakMap<z.ZodFunction<any, any>, string>();\n\nexport const eventRegistry = {\n register(def: EventDefinition): z.ZodFunction<any, any> {\n const name = def.meta.eventName;\n \n if (eventsByName.has(name)) {\n throw new Error(`Event \"${name}\" already registered`);\n }\n \n eventsByName.set(name, def);\n nameByCallback.set(def.callbackSchema, name);\n \n return def.callbackSchema;\n },\n \n get(name: string): EventDefinition | undefined {\n return eventsByName.get(name);\n },\n \n getByLegacyName(legacyName: string): EventDefinition | undefined {\n for (const def of eventsByName.values()) {\n if (def.meta.legacyName === legacyName) return def;\n }\n return undefined;\n },\n \n has(name: string): boolean {\n return eventsByName.has(name);\n },\n \n getAll(): EventDefinition[] {\n return Array.from(eventsByName.values());\n },\n \n getByNamespace(namespace: string): EventDefinition[] {\n return this.getAll().filter(def => def.meta.namespace === namespace);\n },\n \n clear(): void {\n eventsByName.clear();\n }\n};\n\nexport const QueueOptionsSchema = z.object({\n concurrency: z.number().int().positive().optional(),\n capacity: z.number().int().positive().optional(),\n overload: z.enum(['backpressure', 'dropping']).optional(),\n ordering: z.literal('fifo').optional(),\n intervalCap: z.number().int().positive().optional(),\n interval: z.number().positive().optional(),\n timeout: z.number().positive().optional(),\n}).optional();\n\nexport function defineListenerV2<T extends z.ZodTypeAny>(\n name: string,\n params: {\n legacyName?: string;\n meta: Omit<EventMetadata, 'eventName' | 'legacyName' | 'payloadSchema'>;\n payload: T;\n defaultQueueOptions?: QueueOptions;\n }\n): z.ZodFunction<any, any> {\n \n const legacyName = params.legacyName || `on${name.charAt(0).toUpperCase()}${name.slice(1)}`;\n \n const callbackSchema = z.function({\n input: z.tuple([params.payload, QueueOptionsSchema]),\n output: z.union([\n z.boolean(),\n z.promise(z.boolean()),\n z.function({ input: z.tuple([]), output: z.void() }),\n ])\n });\n \n eventRegistry.register({\n callbackSchema,\n meta: {\n eventName: name,\n legacyName,\n payloadSchema: params.payload,\n defaultQueueOptions: params.defaultQueueOptions,\n ...params.meta\n }\n });\n \n return callbackSchema as any;\n}\n","import { InteractiveResponseSchema, FormResponseSchema } from '../interactive';\nimport { z } from 'zod';\nimport { defineListenerV2 } from './registry';\nimport { MessageSchema, MessageAck } from '../common-types';\n\nconst AckSchema = z.object({\n id: z.string(),\n chatId: z.string(),\n ack: z.nativeEnum(MessageAck),\n timestamp: z.number().optional(),\n});\n\nexport const messageEvent = defineListenerV2('message', {\n legacyName: 'onMessage',\n meta: {\n description: 'Fired when a new message is received (excluding own messages)',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const anyMessageEvent = defineListenerV2('anyMessage', {\n legacyName: 'onAnyMessage',\n meta: {\n description: 'Fired for any message including own messages',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const messageDeletedEvent = defineListenerV2('messageDeleted', {\n legacyName: 'onMessageDeleted',\n meta: {\n description: 'Fired when a message is deleted',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n});\n\nexport const ackEvent = defineListenerV2('ack', {\n legacyName: 'onAck',\n meta: {\n description: 'Fired when a message acknowledgment is received',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: AckSchema,\n});\n\nexport const reactionEvent = defineListenerV2('reaction', {\n legacyName: 'onReaction',\n meta: {\n description: 'Fired when a reaction is added to a message',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n messageId: z.string(),\n reaction: z.string(),\n senderId: z.string(),\n timestamp: z.number(),\n }),\n});\n\nexport const interactiveResponseEvent = defineListenerV2('interactiveResponse', {\n legacyName: 'onInteractiveResponse',\n meta: { description: 'Structured reply, list, form or native interactive response', namespace: 'messages', status: 'stable', license: 'insiders' },\n payload: InteractiveResponseSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\nexport const formResponseEvent = defineListenerV2('formResponse', {\n legacyName: 'onFormResponse',\n meta: { description: 'A form submission with question IDs and chosen option IDs', namespace: 'messages', status: 'stable', license: 'insiders' },\n payload: FormResponseSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const StateEnum = z.enum([\n 'STARTING',\n 'AUTHENTICATING',\n 'READY',\n 'STOPPED',\n 'CONNECTED',\n 'DISCONNECTED', \n 'SYNCING',\n 'CONFLICT',\n 'UNLAUNCHED',\n 'PAIRING',\n 'TIMEOUT',\n]);\n\nexport const stateChangedEvent = defineListenerV2('stateChanged', {\n legacyName: 'onStateChanged',\n meta: {\n description: 'Fired when connection state changes',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n state: StateEnum,\n previousState: StateEnum.optional(),\n }),\n});\n\nexport const chatStateEvent = defineListenerV2('chatState', {\n legacyName: 'onChatState',\n meta: {\n description: 'Fired when someone is typing or recording',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n chatId: z.string(),\n state: z.enum(['typing', 'recording', 'paused']),\n senderId: z.string(),\n }),\n});\n\nexport const logoutEvent = defineListenerV2('logout', {\n legacyName: 'onLogout',\n meta: {\n description: 'Fired when the session is logged out',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n reason: z.string().optional(),\n timestamp: z.number(),\n }),\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const participantsChangedEvent = defineListenerV2('participantsChanged', {\n legacyName: 'onParticipantsChanged',\n meta: {\n description: 'Fired when group participants change',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n action: z.enum(['add', 'remove', 'promote', 'demote']),\n participantIds: z.array(z.string()),\n by: z.string().optional(),\n }),\n});\n\nexport const addedToGroupEvent = defineListenerV2('addedToGroup', {\n legacyName: 'onAddedToGroup',\n meta: {\n description: 'Fired when you are added to a group',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n groupName: z.string(),\n addedBy: z.string().optional(),\n }),\n});\n","import { z } from 'zod';\n\n/**\n * Action types for RBAC permissions\n * - read: Retrieve data (e.g., get contact, chat object)\n * - send: Create/send new content (e.g., send message, image, story)\n * - update: Modify existing data (e.g., update message, chat metadata, promote admin)\n * - delete: Remove data (e.g., delete chat, story, remove contact, demote admin)\n */\nexport const ActionEnum = z.enum([\n 'read',\n 'send',\n 'update',\n 'delete'\n]);\n\nexport type ActionType = z.infer<typeof ActionEnum>;\n\n/**\n * License tiers for feature gating\n * - none: Available to all users\n * - insiders: Requires insiders license\n * - restricted: Requires special/restricted license\n */\nexport const LicenseEnum = z.enum([\n 'none',\n 'insiders',\n 'restricted'\n]);\n\nexport type LicenseTier = z.infer<typeof LicenseEnum>;\n\n/**\n * Functionality scope for WhatsApp account types\n * - both: Works on both business and personal accounts\n * - business-only: Only works on business accounts\n * - personal-only: Only works on personal accounts\n */\nexport const FunctionalityEnum = z.enum([\n 'both',\n 'business-only',\n 'personal-only'\n]);\n\nexport type FunctionalityScope = z.infer<typeof FunctionalityEnum>;\n\n/**\n * HTTP methods for API mapping\n * - AUTO: Automatically inferred from action type or defaults to POST\n * - GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD: Standard HTTP methods\n */\nexport const HttpMethodEnum = z.enum([\n 'AUTO',\n 'GET',\n 'POST',\n 'PUT',\n 'DELETE',\n 'PATCH',\n 'OPTIONS',\n 'HEAD'\n]);\n\nexport type HttpMethod = z.infer<typeof HttpMethodEnum>;\n"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAgB,gBAAgB,WAA6D;CAEzF,MAAM,SAAS,KAAK,MAAM,KAAK,UAAU,SAAS,CAAC;CAGnD,IAAI,OAAO,OAAO,gBAAgB,UAC9B,OAAO,cAAc,SAAS,OAAO,aAAa,EAAE;CAGxD,IAAI,OAAO,iBAAiB,KAAA,GACxB,OAAO,eAAe;CAG1B,OAAO;AACX;;;ACMA,MAAM,+BAAe,IAAI,IAA6B;AACtD,MAAM,iCAAiB,IAAI,QAAyC;AAEpE,MAAa,gBAAgB;CAC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;;;;;;AAUD,MAAa,cAAcA,IAAAA,EAAE,KAAK;CAC9B;CACA;CACA;AACJ,CAAC;;;;;;;AAUD,MAAa,oBAAoBA,IAAAA,EAAE,KAAK;CACpC;CACA;CACA;AACJ,CAAC;;;;;;AASD,MAAa,iBAAiBA,IAAAA,EAAE,KAAK;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,CAAC"}
1
+ {"version":3,"file":"index.cjs","names":["z","z","z","MessageAck","MessageSchema","InteractiveResponseSchema","FormResponseSchema","z","z","z"],"sources":["../src/client-config.ts","../src/output-json-schema.ts","../src/events/registry.ts","../src/events/messaging.ts","../src/events/state.ts","../src/events/groups.ts","../src/enums.ts"],"sourcesContent":["/**\n * Client configuration types - re-exported from @open-wa/config\n * \n * @deprecated Import from '@open-wa/config' instead\n */\n\nexport { ConfigSchema as ClientConfigSchema, type Config as ClientConfig } from '@open-wa/config';\n\n/**\n * Migrates a v4 configuration object to the v5 schema format.\n * Currently, most v4 options are compatible with v5.\n * This function serves as a placeholder for any future transformations.\n * \n * @deprecated This is a legacy compatibility function. Use @open-wa/config directly.\n */\nexport function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown> {\n // Deep clone to avoid mutating original\n const config = JSON.parse(JSON.stringify(oldConfig));\n\n // Example migration: if 'authTimeout' was string in some legacy version (unlikely but example)\n if (typeof config.authTimeout === 'string') {\n config.authTimeout = parseInt(config.authTimeout, 10);\n }\n\n if (config.apiLifecycle === undefined) {\n config.apiLifecycle = 'hybrid';\n }\n\n return config;\n}\n","import { z } from 'zod';\n\n/** HTTP omits undefined results; void/undefined are not JSON data values. */\nexport function outputJsonSchema(schema: z.ZodType) {\n return z.toJSONSchema(schema, {\n target: 'openapi-3.0',\n unrepresentable: 'any',\n override: ({ zodSchema, jsonSchema }) => {\n const kind = zodSchema._zod.def.type;\n if (kind === 'void' || kind === 'undefined') {\n jsonSchema.not = {};\n jsonSchema.description = 'No JSON value; the response data property is omitted.';\n }\n },\n });\n}\n\nexport function successResponseSchema(schema: z.ZodType) {\n return {\n type: 'object',\n required: schema.isOptional() ? ['success'] : ['success', 'data'],\n properties: {\n success: { type: 'boolean', enum: [true] },\n data: outputJsonSchema(schema),\n },\n };\n}\n","import { z } from 'zod';\nimport { LicenseTier } from '../enums';\n\nexport type QueueOverloadStrategy = 'backpressure' | 'dropping';\n\nexport interface QueueOptions {\n concurrency?: number;\n capacity?: number;\n overload?: QueueOverloadStrategy;\n ordering?: 'fifo';\n intervalCap?: number;\n interval?: number;\n timeout?: number;\n}\n\nexport type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';\n\nexport interface EventMetadata {\n eventName: string;\n legacyName: string;\n description?: string;\n namespace?: string;\n status?: EventStatus;\n deprecated?: string;\n license?: LicenseTier;\n since?: string;\n payloadSchema: z.ZodTypeAny;\n defaultQueueOptions?: QueueOptions;\n}\n\nexport interface EventDefinition {\n callbackSchema: z.ZodFunction<any, any>;\n meta: EventMetadata;\n}\n\nconst eventsByName = new Map<string, EventDefinition>();\nconst nameByCallback = new WeakMap<z.ZodFunction<any, any>, string>();\n\nexport const eventRegistry = {\n register(def: EventDefinition): z.ZodFunction<any, any> {\n const name = def.meta.eventName;\n \n if (eventsByName.has(name)) {\n throw new Error(`Event \"${name}\" already registered`);\n }\n \n eventsByName.set(name, def);\n nameByCallback.set(def.callbackSchema, name);\n \n return def.callbackSchema;\n },\n \n get(name: string): EventDefinition | undefined {\n return eventsByName.get(name);\n },\n \n getByLegacyName(legacyName: string): EventDefinition | undefined {\n for (const def of eventsByName.values()) {\n if (def.meta.legacyName === legacyName) return def;\n }\n return undefined;\n },\n \n has(name: string): boolean {\n return eventsByName.has(name);\n },\n \n getAll(): EventDefinition[] {\n return Array.from(eventsByName.values());\n },\n \n getByNamespace(namespace: string): EventDefinition[] {\n return this.getAll().filter(def => def.meta.namespace === namespace);\n },\n \n clear(): void {\n eventsByName.clear();\n }\n};\n\nexport const QueueOptionsSchema = z.object({\n concurrency: z.number().int().positive().optional(),\n capacity: z.number().int().positive().optional(),\n overload: z.enum(['backpressure', 'dropping']).optional(),\n ordering: z.literal('fifo').optional(),\n intervalCap: z.number().int().positive().optional(),\n interval: z.number().positive().optional(),\n timeout: z.number().positive().optional(),\n}).optional();\n\nexport function defineListenerV2<T extends z.ZodTypeAny>(\n name: string,\n params: {\n legacyName?: string;\n meta: Omit<EventMetadata, 'eventName' | 'legacyName' | 'payloadSchema'>;\n payload: T;\n defaultQueueOptions?: QueueOptions;\n }\n): z.ZodFunction<any, any> {\n \n const legacyName = params.legacyName || `on${name.charAt(0).toUpperCase()}${name.slice(1)}`;\n \n const callbackSchema = z.function({\n input: z.tuple([params.payload, QueueOptionsSchema]),\n output: z.union([\n z.boolean(),\n z.promise(z.boolean()),\n z.function({ input: z.tuple([]), output: z.void() }),\n ])\n });\n \n eventRegistry.register({\n callbackSchema,\n meta: {\n eventName: name,\n legacyName,\n payloadSchema: params.payload,\n defaultQueueOptions: params.defaultQueueOptions,\n ...params.meta\n }\n });\n \n return callbackSchema as any;\n}\n","import { InteractiveResponseSchema, FormResponseSchema } from '../interactive';\nimport { z } from 'zod';\nimport { defineListenerV2 } from './registry';\nimport { MessageSchema, MessageAck } from '../common-types';\n\nconst AckSchema = z.object({\n id: z.string(),\n chatId: z.string(),\n ack: z.nativeEnum(MessageAck),\n timestamp: z.number().optional(),\n});\n\nexport const messageEvent = defineListenerV2('message', {\n legacyName: 'onMessage',\n meta: {\n description: 'Fired when a new message is received (excluding own messages)',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const anyMessageEvent = defineListenerV2('anyMessage', {\n legacyName: 'onAnyMessage',\n meta: {\n description: 'Fired for any message including own messages',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const messageDeletedEvent = defineListenerV2('messageDeleted', {\n legacyName: 'onMessageDeleted',\n meta: {\n description: 'Fired when a message is deleted',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n});\n\nexport const ackEvent = defineListenerV2('ack', {\n legacyName: 'onAck',\n meta: {\n description: 'Fired when a message acknowledgment is received',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: AckSchema,\n});\n\nexport const reactionEvent = defineListenerV2('reaction', {\n legacyName: 'onReaction',\n meta: {\n description: 'Fired when a reaction is added to a message',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n messageId: z.string(),\n reaction: z.string(),\n senderId: z.string(),\n timestamp: z.number(),\n }),\n});\n\nexport const interactiveResponseEvent = defineListenerV2('interactiveResponse', {\n legacyName: 'onInteractiveResponse',\n meta: { description: 'Structured reply, list, form or native interactive response', namespace: 'messages', status: 'stable', license: 'insiders' },\n payload: InteractiveResponseSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\nexport const formResponseEvent = defineListenerV2('formResponse', {\n legacyName: 'onFormResponse',\n meta: { description: 'A form submission with question IDs and chosen option IDs', namespace: 'messages', status: 'stable', license: 'insiders' },\n payload: FormResponseSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const StateEnum = z.enum([\n 'STARTING',\n 'AUTHENTICATING',\n 'READY',\n 'STOPPED',\n 'CONNECTED',\n 'DISCONNECTED', \n 'SYNCING',\n 'CONFLICT',\n 'UNLAUNCHED',\n 'PAIRING',\n 'TIMEOUT',\n]);\n\nexport const stateChangedEvent = defineListenerV2('stateChanged', {\n legacyName: 'onStateChanged',\n meta: {\n description: 'Fired when connection state changes',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n state: StateEnum,\n previousState: StateEnum.optional(),\n }),\n});\n\nexport const chatStateEvent = defineListenerV2('chatState', {\n legacyName: 'onChatState',\n meta: {\n description: 'Fired when someone is typing or recording',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n chatId: z.string(),\n state: z.enum(['typing', 'recording', 'paused']),\n senderId: z.string(),\n }),\n});\n\nexport const logoutEvent = defineListenerV2('logout', {\n legacyName: 'onLogout',\n meta: {\n description: 'Fired when the session is logged out',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n reason: z.string().optional(),\n timestamp: z.number(),\n }),\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const participantsChangedEvent = defineListenerV2('participantsChanged', {\n legacyName: 'onParticipantsChanged',\n meta: {\n description: 'Fired when group participants change',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n action: z.enum(['add', 'remove', 'promote', 'demote']),\n participantIds: z.array(z.string()),\n by: z.string().optional(),\n }),\n});\n\nexport const addedToGroupEvent = defineListenerV2('addedToGroup', {\n legacyName: 'onAddedToGroup',\n meta: {\n description: 'Fired when you are added to a group',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n groupName: z.string(),\n addedBy: z.string().optional(),\n }),\n});\n","import { z } from 'zod';\n\n/**\n * Action types for RBAC permissions\n * - read: Retrieve data (e.g., get contact, chat object)\n * - send: Create/send new content (e.g., send message, image, story)\n * - update: Modify existing data (e.g., update message, chat metadata, promote admin)\n * - delete: Remove data (e.g., delete chat, story, remove contact, demote admin)\n */\nexport const ActionEnum = z.enum([\n 'read',\n 'send',\n 'update',\n 'delete'\n]);\n\nexport type ActionType = z.infer<typeof ActionEnum>;\n\n/**\n * License tiers for feature gating\n * - none: Available to all users\n * - insiders: Requires insiders license\n * - restricted: Requires special/restricted license\n */\nexport const LicenseEnum = z.enum([\n 'none',\n 'insiders',\n 'restricted'\n]);\n\nexport type LicenseTier = z.infer<typeof LicenseEnum>;\n\n/**\n * Functionality scope for WhatsApp account types\n * - both: Works on both business and personal accounts\n * - business-only: Only works on business accounts\n * - personal-only: Only works on personal accounts\n */\nexport const FunctionalityEnum = z.enum([\n 'both',\n 'business-only',\n 'personal-only'\n]);\n\nexport type FunctionalityScope = z.infer<typeof FunctionalityEnum>;\n\n/**\n * HTTP methods for API mapping\n * - AUTO: Automatically inferred from action type or defaults to POST\n * - GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD: Standard HTTP methods\n */\nexport const HttpMethodEnum = z.enum([\n 'AUTO',\n 'GET',\n 'POST',\n 'PUT',\n 'DELETE',\n 'PATCH',\n 'OPTIONS',\n 'HEAD'\n]);\n\nexport type HttpMethod = z.infer<typeof HttpMethodEnum>;\n"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAgB,gBAAgB,WAA6D;CAEzF,MAAM,SAAS,KAAK,MAAM,KAAK,UAAU,SAAS,CAAC;CAGnD,IAAI,OAAO,OAAO,gBAAgB,UAC9B,OAAO,cAAc,SAAS,OAAO,aAAa,EAAE;CAGxD,IAAI,OAAO,iBAAiB,KAAA,GACxB,OAAO,eAAe;CAG1B,OAAO;AACX;;;;AC1BA,SAAgB,iBAAiB,QAAmB;CAChD,OAAOA,IAAAA,EAAE,aAAa,QAAQ;EAC1B,QAAQ;EACR,iBAAiB;EACjB,WAAW,EAAE,WAAW,iBAAiB;GACrC,MAAM,OAAO,UAAU,KAAK,IAAI;GAChC,IAAI,SAAS,UAAU,SAAS,aAAa;IACzC,WAAW,MAAM,CAAC;IAClB,WAAW,cAAc;GAC7B;EACJ;CACJ,CAAC;AACL;AAEA,SAAgB,sBAAsB,QAAmB;CACrD,OAAO;EACH,MAAM;EACN,UAAU,OAAO,WAAW,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,MAAM;EAChE,YAAY;GACR,SAAS;IAAE,MAAM;IAAW,MAAM,CAAC,IAAI;GAAE;GACzC,MAAM,iBAAiB,MAAM;EACjC;CACJ;AACJ;;;ACSA,MAAM,+BAAe,IAAI,IAA6B;AACtD,MAAM,iCAAiB,IAAI,QAAyC;AAEpE,MAAa,gBAAgB;CACzB,SAAS,KAA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MAAa,cAAcA,IAAAA,EAAE,KAAK;CAC9B;CACA;CACA;AACJ,CAAC;;;;;;;AAUD,MAAa,oBAAoBA,IAAAA,EAAE,KAAK;CACpC;CACA;CACA;AACJ,CAAC;;;;;;AASD,MAAa,iBAAiBA,IAAAA,EAAE,KAAK;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as statusTextParam, $i as CloudUploadOptions, $n as getGroupInfo, $r as sendAdvancedButtons, $t as QueueOptions, A as audioDataParam, Ai as ContactSchema, An as addLabel, Ar as getChat, At as hexColorCodec, B as imageDataParam, Bi as Location, Bn as postVideoStatus, Br as unpinChat, Bt as chatStateEvent, C as LinkActionSchema, Ca as Viewport, Ci as unstarMessage, Cn as isPlugged, Cr as getProfilePicture, Ct as createFileCodec, D as NativeContentSchema, Da as validateConfig, Di as ChatSchema, Dn as getBusinessProducts, Dr as deleteChat, Dt as fileToStreamCodec, E as NativeActionSchema, Ea as parseConfig, Ei as ChatId, En as setProfilePicture, Er as clearChat, Et as fileToDataUrlCodec, F as contentParam, Fi as GroupId, Fn as deleteStatus, Fr as muteChat, Ft as unixSecondsToDate, G as longitudeParam, Gi as MessageIdReturnSchema, Gn as getCommunityParticipantIds, Gr as getMessageInfo, Gt as formResponseEvent, H as includeNotificationsParam, Hi as Message, Hn as getCommunityAdminIds, Hr as forwardMessages, Ht as stateChangedEvent, I as documentDataParam, Ii as GroupMetadata, In as getStatus, Ir as pinChat, It as urlToDataUrlCodec, J as messageIdsParam, Ji as SimpleListener, Jn as approveGroupJoinRequest, Jr as getStarredMessages, Jt as messageEvent, K as mentionedJidListParam, Ki as MessageSchema, Kn as getCommunityParticipants, Kr as getMessagesForLLM, Kt as interactiveResponseEvent, L as fileDataParam, Li as GroupMetadataSchema, Ln as getStories, Lr as setChatEphemeral, Lt as addedToGroupEvent, M as chatIdParam, Mi as DataURL, Mn as getChatsByLabel, Mr as isChatOnline, Mt as jsonStringCodec, N as communityIdParam, Ni as GroupChatId, Nn as removeLabel, Nr as markAsRead, Nt as messageIdCodec, O as ReplyActionSchema, Oi as Contact, On as getBusinessProfile, Or as getAllChatIds, Ot as fileToTempPathCodec, P as contactIdParam, Pi as GroupChatIdSchema, Pn as deleteAllStatus, Pr as markAsUnread, Pt as unixMillisToDate, Q as skipMyMessagesParam, Qi as CLOUD_PROVIDERS, Qn as getGroupAdmins, Qr as react, Qt as EventStatus, R as filenameParam, Ri as Id, Rn as postImageStatus, Rr as unarchiveChat, Rt as participantsChangedEvent, S as JsonValueSchema, Sa as StrictConfigSchema, Si as starMessage, Sn as healthCheck, Sr as getNumberProfile, St as contactIdCodec, T as ListRowSchema, Ta as getDefaultConfig, Ti as Chat, Tn as setMyStatus, Tr as archiveChat, Tt as fileToBufferCodec, U as latitudeParam, Ui as MessageAck, Un as getCommunityAdmins, Ur as getAllMessages, Ut as ackEvent, V as includeMeParam, Vi as LocationSchema, Vn as getAllCommunities, Vr as deleteMessage, Vt as logoutEvent, W as locationNameParam, Wi as MessageId, Wn as getCommunityInfo, Wr as getMessageById, Wt as anyMessageEvent, X as nameParam, Xi as ClientConfigSchema, Xn as demoteParticipant, Xr as getVCards, Xt as EventDefinition, Y as messageOptionsParam, Yi as ClientConfig, Yn as createGroup, Yr as getUnsentMessages, Yt as reactionEvent, Z as onlyLocalParam, Zi as migrateV4Config, Zn as getAllGroups, Zr as loadEarlierMessages, Zt as EventMetadata, _ as InteractiveHeaderSchema, _a as S3Sync, _i as sendText, _n as getMe, _r as checkReadReceipts, _t as MessageIdSchema, a as CarouselContentSchema, aa as DevTools, ai as sendFileFromUrl, an as SendInteractiveInputSchema, ar as leaveGroup, at as withNewMessagesOnlyParam, b as JsonObjectSchema, ba as SessionDataSchema, bi as sendVideoAsGif, bn as getUserAgent, br as getCommonGroups, bt as base64ToDataUrlCodec, c as FormQuestion, ca as LoggingTransport, ci as sendListMessage, cn as sendRawMessage, cr as removeParticipant, ct as ChatIdSchema, d as FormResponseSchema, da as OnError, di as sendMultipleContacts, dn as getBatteryLevel, dr as setGroupEditToAdminsOnly, dt as FileToDataUrlSchema, ea as CloudUploadOptionsSchema, ei as sendAudio, en as QueueOptionsSchema, er as getGroupInviteLink, et as stickerDataParam, f as InteractiveAction, fa as PartialConfig, fi as sendPaymentRequest, fn as getConnectionState, fr as setGroupIcon, ft as GroupIdCodecSchema, g as InteractiveHeader, ga as QRFormat, gi as sendSeen, gn as getLoadedMessageCount, gr as checkNumberStatus, gt as MessageIdCodecSchema, h as InteractiveContentSchema, ha as ProxyServerCredentialsSchema, hi as sendReplyWithMentions, hn as getLicenseType, hr as blockContact, ht as IsoDatetimeToDateSchema, i as CarouselCardSchema, ia as DeepPartialConfig, ii as sendFile, ir as joinGroupViaLink, it as waitForIdParam, j as captionParam, ji as Content, jn as getAllLabels, jr as getChatWithNonContacts, jt as isoDatetimeToDate, k as defineInteractiveMessage, ki as ContactId, kn as getOrder, kr as getAllChats, kt as groupIdCodec, l as FormQuestionSchema, la as LoggingTransportSchema, li as sendLocation, ln as decryptMedia, lr as revokeGroupInviteLink, lt as ContactIdCodecSchema, m as InteractiveContent, ma as ProxyServerCredentials, mi as sendPtt, mn as getHostNumber, mr as setGroupToAdminsOnly, mt as HexColorSchema, n as ButtonsContentSchema, na as ConfigSchema, ni as sendButtons, nn as defineListenerV2, nr as getGroupMembersId, nt as userAgentParam, o as CopyActionSchema, oa as DevToolsSchema, oi as sendImage, on as SendRawMessageInputSchema, or as promoteParticipant, ot as Base64ToDataUrlSchema, p as InteractiveActionSchema, pa as PartialConfigSchema, pi as sendPoll, pn as getFeatures, pr as setGroupTitle, pt as GroupIdSchema, q as messageIdParam, qi as MessageTypes, qn as addParticipant, qr as getMyLastMessage, qt as messageDeletedEvent, r as CallActionSchema, ra as DIRECTORY_STRATEGY, ri as sendContact, rn as eventRegistry, rr as getKickedGroups, rt as videoDataParam, s as FormContentSchema, sa as LicenseType, si as sendLinkWithAutoPreview, sn as sendInteractive, sr as rejectGroupJoinRequest, st as ChatIdCodecSchema, t as BookingContentSchema, ta as Config, ti as sendBanner, tn as QueueOverloadStrategy, tr as getGroupMembers, tt as toParam, u as FormResponse, ua as NotificationLanguage, ui as sendMessageWithThumb, un as downloadMedia, ur as setGroupDescription, ut as ContactIdSchema, v as InteractiveResponse, va as S3SyncSchema, vi as sendTextWithMentions, vn as getProcessStats, vr as getAllContacts, vt as UnixMillisToDateSchema, w as ListContentSchema, wa as ViewportSchema, wi as Base64, wn as setMyName, wr as unblockContact, wt as fileToBase64Codec, x as JsonValue, xa as StrictConfig, xi as sendYouTubeLink, xn as getWAVersion, xr as getContact, xt as chatIdCodec, y as InteractiveResponseSchema, ya as SessionData, yi as sendVCard, yn as getSnapshot, yr as getBlockedIds, yt as UnixSecondsToDateSchema, z as groupIdParam, zi as IdSchema, zn as postTextStatus, zr as unmuteChat, zt as StateEnum } from "./index-DTztyYhw.cjs";
1
+ import { $ as statusTextParam, $a as CloudUploadOptions, $i as LLMMessage, $n as getGroupInfo, $r as react, $t as QueueOptions, A as audioDataParam, Aa as GroupChatId, Ai as CartItemSchema, An as addLabel, Ar as getChat, At as hexColorCodec, B as imageDataParam, Ba as MessageAck, Bi as CommunityParticipantIdsSchema, Bn as postVideoStatus, Br as unpinChat, Bt as chatStateEvent, C as LinkActionSchema, Ca as ChatSchema, Ci as starMessage, Cn as isPlugged, Co as ViewportSchema, Cr as getProfilePicture, Ct as createFileCodec, D as NativeContentSchema, Da as Content, Di as BusinessProfile, Dn as getBusinessProducts, Dr as deleteChat, Dt as fileToStreamCodec, E as NativeActionSchema, Ea as ContactSchema, Ei as successResponseSchema, En as setProfilePicture, Eo as validateConfig, Er as clearChat, Et as fileToDataUrlCodec, F as contentParam, Fa as Id, Fi as CommunityAdmins, Fn as deleteStatus, Fr as muteChat, Ft as unixSecondsToDate, G as longitudeParam, Ga as MessageTypes, Gi as FeatureFlags, Gn as getCommunityParticipantIds, Gr as getMessageById, Gt as formResponseEvent, H as includeNotificationsParam, Ha as MessageIdReturn, Hi as CommunityParticipantsSchema, Hn as getCommunityAdminIds, Hr as deleteMessage, Ht as stateChangedEvent, I as documentDataParam, Ia as IdSchema, Ii as CommunityAdminsSchema, In as getStatus, Ir as pinChat, It as urlToDataUrlCodec, J as messageIdsParam, Ja as SimpleListener, Ji as GroupCreationResultSchema, Jn as approveGroupJoinRequest, Jr as getMyLastMessage, Jt as messageEvent, K as mentionedJidListParam, Ka as SerializedMessageId, Ki as FeatureFlagsSchema, Kn as getCommunityParticipants, Kr as getMessageInfo, Kt as interactiveResponseEvent, L as fileDataParam, La as Location, Li as CommunityMetadata, Ln as getStories, Lr as setChatEphemeral, Lt as addedToGroupEvent, M as chatIdParam, Ma as GroupId, Mi as CommonGroupSchema, Mn as getChatsByLabel, Mr as isChatOnline, Mt as jsonStringCodec, N as communityIdParam, Na as GroupMetadata, Ni as CommunityAdminIds, Nn as removeLabel, Nr as markAsRead, Nt as messageIdCodec, O as ReplyActionSchema, Oa as DataURL, Oi as BusinessProfileSchema, On as getBusinessProfile, Or as getAllChatIds, Ot as fileToTempPathCodec, P as contactIdParam, Pa as GroupMetadataSchema, Pi as CommunityAdminIdsSchema, Pn as deleteAllStatus, Pr as markAsUnread, Pt as unixMillisToDate, Q as skipMyMessagesParam, Qa as CLOUD_PROVIDERS, Qi as HostAccountSchema, Qn as getGroupAdmins, Qr as loadEarlierMessages, Qt as EventStatus, R as filenameParam, Ra as LocationSchema, Ri as CommunityMetadataSchema, Rn as postImageStatus, Rr as unarchiveChat, Rt as participantsChangedEvent, S as JsonValueSchema, Sa as ChatId, Si as sendYouTubeLink, Sn as healthCheck, So as Viewport, Sr as getNumberProfile, St as contactIdCodec, T as ListRowSchema, Ta as ContactId, Ti as outputJsonSchema, Tn as setMyStatus, To as parseConfig, Tr as archiveChat, Tt as fileToBufferCodec, U as latitudeParam, Ua as MessageIdReturnSchema, Ui as ContactStatus, Un as getCommunityAdmins, Ur as forwardMessages, Ut as ackEvent, V as includeMeParam, Va as MessageId, Vi as CommunityParticipants, Vn as getAllCommunities, Vr as SendTextResultSchema, Vt as logoutEvent, W as locationNameParam, Wa as MessageSchema, Wi as ContactStatusSchema, Wn as getCommunityInfo, Wr as getAllMessages, Wt as anyMessageEvent, X as nameParam, Xa as ClientConfigSchema, Xi as HealthCheckSchema, Xn as demoteParticipant, Xr as getUnsentMessages, Xt as EventDefinition, Y as messageOptionsParam, Ya as ClientConfig, Yi as HealthCheck, Yn as createGroup, Yr as getStarredMessages, Yt as reactionEvent, Z as onlyLocalParam, Za as migrateV4Config, Zi as HostAccount, Zn as getAllGroups, Zr as getVCards, Zt as EventMetadata, _ as InteractiveHeaderSchema, _a as ProductSchema, _i as sendSeen, _n as getMe, _o as S3SyncSchema, _r as checkReadReceipts, _t as MessageIdSchema, a as CarouselContentSchema, aa as MessageInfoSchema, ai as sendFile, an as SendInteractiveInputSchema, ao as DevTools, ar as leaveGroup, at as withNewMessagesOnlyParam, b as JsonObjectSchema, ba as Base64, bi as sendVCard, bn as getUserAgent, bo as StrictConfig, br as getCommonGroups, bt as base64ToDataUrlCodec, c as FormQuestion, ca as NumberCheck, ci as sendLinkWithAutoPreview, cn as sendRawMessage, co as LoggingTransportSchema, cr as removeParticipant, ct as ChatIdSchema, d as FormResponseSchema, da as NumberProfileSchema, di as sendMessageWithThumb, dn as getBatteryLevel, do as PartialConfig, dr as setGroupEditToAdminsOnly, dt as FileToDataUrlSchema, ea as LLMMessageSchema, ei as sendAdvancedButtons, en as QueueOptionsSchema, eo as CloudUploadOptionsSchema, er as getGroupInviteLink, et as stickerDataParam, f as InteractiveAction, fa as Order, fi as sendMultipleContacts, fn as getConnectionState, fo as PartialConfigSchema, fr as setGroupIcon, ft as GroupIdCodecSchema, g as InteractiveHeader, ga as Product, gi as sendReplyWithMentions, gn as getLoadedMessageCount, go as S3Sync, gr as checkNumberStatus, gt as MessageIdCodecSchema, h as InteractiveContentSchema, ha as ProcessStatsSchema, hi as sendPtt, hn as getLicenseType, ho as QRFormat, hr as blockContact, ht as IsoDatetimeToDateSchema, i as CarouselCardSchema, ia as MessageInfo, ii as sendContact, io as DeepPartialConfig, ir as joinGroupViaLink, it as waitForIdParam, j as captionParam, ja as GroupChatIdSchema, ji as CommonGroup, jn as getAllLabels, jr as getChatWithNonContacts, jt as isoDatetimeToDate, k as defineInteractiveMessage, ka as DataURLSchema, ki as CartItem, kn as getOrder, kr as getAllChats, kt as groupIdCodec, l as FormQuestionSchema, la as NumberCheckSchema, li as sendListMessage, ln as decryptMedia, lo as NotificationLanguage, lr as revokeGroupInviteLink, lt as ContactIdCodecSchema, m as InteractiveContent, ma as ProcessStats, mi as sendPoll, mn as getHostNumber, mo as ProxyServerCredentialsSchema, mr as setGroupToAdminsOnly, mt as HexColorSchema, n as ButtonsContentSchema, na as LabelSchema, ni as sendBanner, nn as defineListenerV2, no as ConfigSchema, nr as getGroupMembersId, nt as userAgentParam, o as CopyActionSchema, oa as MessageInteraction, oi as sendFileFromUrl, on as SendRawMessageInputSchema, oo as DevToolsSchema, or as promoteParticipant, ot as Base64ToDataUrlSchema, p as InteractiveActionSchema, pa as OrderSchema, pi as sendPaymentRequest, pn as getFeatures, po as ProxyServerCredentials, pr as setGroupTitle, pt as GroupIdSchema, q as messageIdParam, qa as SerializedMessageIdSchema, qi as GroupCreationResult, qn as addParticipant, qr as getMessagesForLLM, qt as messageDeletedEvent, r as CallActionSchema, ra as LicenseTypeSchema, ri as sendButtons, rn as eventRegistry, ro as DIRECTORY_STRATEGY, rr as getKickedGroups, rt as videoDataParam, s as FormContentSchema, sa as MessageInteractionSchema, si as sendImage, sn as sendInteractive, so as LoggingTransport, sr as rejectGroupJoinRequest, st as ChatIdCodecSchema, t as BookingContentSchema, ta as Label, ti as sendAudio, tn as QueueOverloadStrategy, to as Config, tr as getGroupMembers, tt as toParam, u as FormResponse, ua as NumberProfile, ui as sendLocation, un as downloadMedia, uo as OnError, ur as setGroupDescription, ut as ContactIdSchema, v as InteractiveResponse, va as Story, vi as sendText, vn as getProcessStats, vo as SessionData, vr as getAllContacts, vt as UnixMillisToDateSchema, w as ListContentSchema, wa as Contact, wi as unstarMessage, wn as setMyName, wo as getDefaultConfig, wr as unblockContact, wt as fileToBase64Codec, x as JsonValue, xa as Chat, xi as sendVideoAsGif, xn as getWAVersion, xo as StrictConfigSchema, xr as getContact, xt as chatIdCodec, y as InteractiveResponseSchema, ya as StorySchema, yi as sendTextWithMentions, yn as getSnapshot, yo as SessionDataSchema, yr as getBlockedIds, yt as UnixSecondsToDateSchema, z as groupIdParam, za as Message, zi as CommunityParticipantIds, zn as postTextStatus, zr as unmuteChat, zt as StateEnum } from "./index-C9Ad0lEr.cjs";
2
2
  import { A as FunctionalityEnum, C as getParameterMetadata, D as zObjectToTuple, E as z, F as LicenseTier, M as HttpMethod, N as HttpMethodEnum, O as ActionEnum, P as LicenseEnum, S as getMethodAliases, T as parameterRegistry, _ as clientRegistry, a as CapabilityDefinition, b as defineMethodV2, c as CapabilityType, d as InferOutput, f as MethodDefinition, g as buildKeyAliasMap, h as Registry, i as AliasMetadata, j as FunctionalityScope, k as ActionType, l as ClientFunctionMetadata, m as ParameterMetadata, n as HttpRouteAlias, o as CapabilityMetadata, p as OpenWAMethodSchema, r as getHttpMethodDefinitions, s as CapabilityStatus, t as HttpMethodDefinition, u as InferInput, v as defineEvent, w as normalizeParameterKeys, x as deriveNamespacedMethodName, y as defineMethod } from "./http-manifest-CqjUoaDB.cjs";
3
3
  import { n as implementMethodAsync, t as implementMethod } from "./implementor-ACLHTHby.cjs";
4
- export { ActionEnum, ActionType, AliasMetadata, Base64, Base64ToDataUrlSchema, BookingContentSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionSchema, CapabilityDefinition, CapabilityMetadata, CapabilityStatus, CapabilityType, CarouselCardSchema, CarouselContentSchema, Chat, ChatId, ChatIdCodecSchema, ChatIdSchema, ChatSchema, type ClientConfig, ClientConfigSchema, ClientFunctionMetadata, type CloudUploadOptions, CloudUploadOptionsSchema, type Config, ConfigSchema, Contact, ContactId, ContactIdCodecSchema, ContactIdSchema, ContactSchema, Content, CopyActionSchema, DIRECTORY_STRATEGY, DataURL, type DeepPartialConfig, type DevTools, DevToolsSchema, EventDefinition, EventMetadata, EventStatus, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GroupChatId, GroupChatIdSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupMetadata, GroupMetadataSchema, HexColorSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LicenseEnum, LicenseTier, LicenseType, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, Message, MessageAck, MessageId, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageSchema, MessageTypes, MethodDefinition, NativeActionSchema, NativeContentSchema, NotificationLanguage, OnError, OpenWAMethodSchema, ParameterMetadata, type PartialConfig, PartialConfigSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, type SessionData, SessionDataSchema, SimpleListener, StateEnum, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, type Viewport, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
4
+ export { ActionEnum, ActionType, AliasMetadata, Base64, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfile, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionSchema, CapabilityDefinition, CapabilityMetadata, CapabilityStatus, CapabilityType, CarouselCardSchema, CarouselContentSchema, CartItem, CartItemSchema, Chat, ChatId, ChatIdCodecSchema, ChatIdSchema, ChatSchema, type ClientConfig, ClientConfigSchema, ClientFunctionMetadata, type CloudUploadOptions, CloudUploadOptionsSchema, CommonGroup, CommonGroupSchema, CommunityAdminIds, CommunityAdminIdsSchema, CommunityAdmins, CommunityAdminsSchema, CommunityMetadata, CommunityMetadataSchema, CommunityParticipantIds, CommunityParticipantIdsSchema, CommunityParticipants, CommunityParticipantsSchema, type Config, ConfigSchema, Contact, ContactId, ContactIdCodecSchema, ContactIdSchema, ContactSchema, ContactStatus, ContactStatusSchema, Content, CopyActionSchema, DIRECTORY_STRATEGY, DataURL, DataURLSchema, type DeepPartialConfig, type DevTools, DevToolsSchema, EventDefinition, EventMetadata, EventStatus, FeatureFlags, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GroupChatId, GroupChatIdSchema, GroupCreationResult, GroupCreationResultSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupMetadata, GroupMetadataSchema, HealthCheck, HealthCheckSchema, HexColorSchema, HostAccount, HostAccountSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LLMMessage, LLMMessageSchema, Label, LabelSchema, LicenseEnum, LicenseTier, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, Message, MessageAck, MessageId, MessageIdCodecSchema, MessageIdReturn, MessageIdReturnSchema, MessageIdSchema, MessageInfo, MessageInfoSchema, MessageInteraction, MessageInteractionSchema, MessageSchema, MessageTypes, MethodDefinition, NativeActionSchema, NativeContentSchema, NotificationLanguage, NumberCheck, NumberCheckSchema, NumberProfile, NumberProfileSchema, OnError, OpenWAMethodSchema, Order, OrderSchema, ParameterMetadata, type PartialConfig, PartialConfigSchema, ProcessStats, ProcessStatsSchema, Product, ProductSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageId, SerializedMessageIdSchema, type SessionData, SessionDataSchema, SimpleListener, StateEnum, Story, StorySchema, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, type Viewport, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as statusTextParam, $i as CloudUploadOptions, $n as getGroupInfo, $r as sendAdvancedButtons, $t as QueueOptions, A as audioDataParam, Ai as ContactSchema, An as addLabel, Ar as getChat, At as hexColorCodec, B as imageDataParam, Bi as Location, Bn as postVideoStatus, Br as unpinChat, Bt as chatStateEvent, C as LinkActionSchema, Ca as Viewport, Ci as unstarMessage, Cn as isPlugged, Cr as getProfilePicture, Ct as createFileCodec, D as NativeContentSchema, Da as validateConfig, Di as ChatSchema, Dn as getBusinessProducts, Dr as deleteChat, Dt as fileToStreamCodec, E as NativeActionSchema, Ea as parseConfig, Ei as ChatId, En as setProfilePicture, Er as clearChat, Et as fileToDataUrlCodec, F as contentParam, Fi as GroupId, Fn as deleteStatus, Fr as muteChat, Ft as unixSecondsToDate, G as longitudeParam, Gi as MessageIdReturnSchema, Gn as getCommunityParticipantIds, Gr as getMessageInfo, Gt as formResponseEvent, H as includeNotificationsParam, Hi as Message, Hn as getCommunityAdminIds, Hr as forwardMessages, Ht as stateChangedEvent, I as documentDataParam, Ii as GroupMetadata, In as getStatus, Ir as pinChat, It as urlToDataUrlCodec, J as messageIdsParam, Ji as SimpleListener, Jn as approveGroupJoinRequest, Jr as getStarredMessages, Jt as messageEvent, K as mentionedJidListParam, Ki as MessageSchema, Kn as getCommunityParticipants, Kr as getMessagesForLLM, Kt as interactiveResponseEvent, L as fileDataParam, Li as GroupMetadataSchema, Ln as getStories, Lr as setChatEphemeral, Lt as addedToGroupEvent, M as chatIdParam, Mi as DataURL, Mn as getChatsByLabel, Mr as isChatOnline, Mt as jsonStringCodec, N as communityIdParam, Ni as GroupChatId, Nn as removeLabel, Nr as markAsRead, Nt as messageIdCodec, O as ReplyActionSchema, Oi as Contact, On as getBusinessProfile, Or as getAllChatIds, Ot as fileToTempPathCodec, P as contactIdParam, Pi as GroupChatIdSchema, Pn as deleteAllStatus, Pr as markAsUnread, Pt as unixMillisToDate, Q as skipMyMessagesParam, Qi as CLOUD_PROVIDERS, Qn as getGroupAdmins, Qr as react, Qt as EventStatus, R as filenameParam, Ri as Id, Rn as postImageStatus, Rr as unarchiveChat, Rt as participantsChangedEvent, S as JsonValueSchema, Sa as StrictConfigSchema, Si as starMessage, Sn as healthCheck, Sr as getNumberProfile, St as contactIdCodec, T as ListRowSchema, Ta as getDefaultConfig, Ti as Chat, Tn as setMyStatus, Tr as archiveChat, Tt as fileToBufferCodec, U as latitudeParam, Ui as MessageAck, Un as getCommunityAdmins, Ur as getAllMessages, Ut as ackEvent, V as includeMeParam, Vi as LocationSchema, Vn as getAllCommunities, Vr as deleteMessage, Vt as logoutEvent, W as locationNameParam, Wi as MessageId, Wn as getCommunityInfo, Wr as getMessageById, Wt as anyMessageEvent, X as nameParam, Xi as ClientConfigSchema, Xn as demoteParticipant, Xr as getVCards, Xt as EventDefinition, Y as messageOptionsParam, Yi as ClientConfig, Yn as createGroup, Yr as getUnsentMessages, Yt as reactionEvent, Z as onlyLocalParam, Zi as migrateV4Config, Zn as getAllGroups, Zr as loadEarlierMessages, Zt as EventMetadata, _ as InteractiveHeaderSchema, _a as S3Sync, _i as sendText, _n as getMe, _r as checkReadReceipts, _t as MessageIdSchema, a as CarouselContentSchema, aa as DevTools, ai as sendFileFromUrl, an as SendInteractiveInputSchema, ar as leaveGroup, at as withNewMessagesOnlyParam, b as JsonObjectSchema, ba as SessionDataSchema, bi as sendVideoAsGif, bn as getUserAgent, br as getCommonGroups, bt as base64ToDataUrlCodec, c as FormQuestion, ca as LoggingTransport, ci as sendListMessage, cn as sendRawMessage, cr as removeParticipant, ct as ChatIdSchema, d as FormResponseSchema, da as OnError, di as sendMultipleContacts, dn as getBatteryLevel, dr as setGroupEditToAdminsOnly, dt as FileToDataUrlSchema, ea as CloudUploadOptionsSchema, ei as sendAudio, en as QueueOptionsSchema, er as getGroupInviteLink, et as stickerDataParam, f as InteractiveAction, fa as PartialConfig, fi as sendPaymentRequest, fn as getConnectionState, fr as setGroupIcon, ft as GroupIdCodecSchema, g as InteractiveHeader, ga as QRFormat, gi as sendSeen, gn as getLoadedMessageCount, gr as checkNumberStatus, gt as MessageIdCodecSchema, h as InteractiveContentSchema, ha as ProxyServerCredentialsSchema, hi as sendReplyWithMentions, hn as getLicenseType, hr as blockContact, ht as IsoDatetimeToDateSchema, i as CarouselCardSchema, ia as DeepPartialConfig, ii as sendFile, ir as joinGroupViaLink, it as waitForIdParam, j as captionParam, ji as Content, jn as getAllLabels, jr as getChatWithNonContacts, jt as isoDatetimeToDate, k as defineInteractiveMessage, ki as ContactId, kn as getOrder, kr as getAllChats, kt as groupIdCodec, l as FormQuestionSchema, la as LoggingTransportSchema, li as sendLocation, ln as decryptMedia, lr as revokeGroupInviteLink, lt as ContactIdCodecSchema, m as InteractiveContent, ma as ProxyServerCredentials, mi as sendPtt, mn as getHostNumber, mr as setGroupToAdminsOnly, mt as HexColorSchema, n as ButtonsContentSchema, na as ConfigSchema, ni as sendButtons, nn as defineListenerV2, nr as getGroupMembersId, nt as userAgentParam, o as CopyActionSchema, oa as DevToolsSchema, oi as sendImage, on as SendRawMessageInputSchema, or as promoteParticipant, ot as Base64ToDataUrlSchema, p as InteractiveActionSchema, pa as PartialConfigSchema, pi as sendPoll, pn as getFeatures, pr as setGroupTitle, pt as GroupIdSchema, q as messageIdParam, qi as MessageTypes, qn as addParticipant, qr as getMyLastMessage, qt as messageDeletedEvent, r as CallActionSchema, ra as DIRECTORY_STRATEGY, ri as sendContact, rn as eventRegistry, rr as getKickedGroups, rt as videoDataParam, s as FormContentSchema, sa as LicenseType, si as sendLinkWithAutoPreview, sn as sendInteractive, sr as rejectGroupJoinRequest, st as ChatIdCodecSchema, t as BookingContentSchema, ta as Config, ti as sendBanner, tn as QueueOverloadStrategy, tr as getGroupMembers, tt as toParam, u as FormResponse, ua as NotificationLanguage, ui as sendMessageWithThumb, un as downloadMedia, ur as setGroupDescription, ut as ContactIdSchema, v as InteractiveResponse, va as S3SyncSchema, vi as sendTextWithMentions, vn as getProcessStats, vr as getAllContacts, vt as UnixMillisToDateSchema, w as ListContentSchema, wa as ViewportSchema, wi as Base64, wn as setMyName, wr as unblockContact, wt as fileToBase64Codec, x as JsonValue, xa as StrictConfig, xi as sendYouTubeLink, xn as getWAVersion, xr as getContact, xt as chatIdCodec, y as InteractiveResponseSchema, ya as SessionData, yi as sendVCard, yn as getSnapshot, yr as getBlockedIds, yt as UnixSecondsToDateSchema, z as groupIdParam, zi as IdSchema, zn as postTextStatus, zr as unmuteChat, zt as StateEnum } from "./index-nVKR0RmZ.mjs";
1
+ import { $ as statusTextParam, $a as CloudUploadOptions, $i as LLMMessage, $n as getGroupInfo, $r as react, $t as QueueOptions, A as audioDataParam, Aa as GroupChatId, Ai as CartItemSchema, An as addLabel, Ar as getChat, At as hexColorCodec, B as imageDataParam, Ba as MessageAck, Bi as CommunityParticipantIdsSchema, Bn as postVideoStatus, Br as unpinChat, Bt as chatStateEvent, C as LinkActionSchema, Ca as ChatSchema, Ci as starMessage, Cn as isPlugged, Co as ViewportSchema, Cr as getProfilePicture, Ct as createFileCodec, D as NativeContentSchema, Da as Content, Di as BusinessProfile, Dn as getBusinessProducts, Dr as deleteChat, Dt as fileToStreamCodec, E as NativeActionSchema, Ea as ContactSchema, Ei as successResponseSchema, En as setProfilePicture, Eo as validateConfig, Er as clearChat, Et as fileToDataUrlCodec, F as contentParam, Fa as Id, Fi as CommunityAdmins, Fn as deleteStatus, Fr as muteChat, Ft as unixSecondsToDate, G as longitudeParam, Ga as MessageTypes, Gi as FeatureFlags, Gn as getCommunityParticipantIds, Gr as getMessageById, Gt as formResponseEvent, H as includeNotificationsParam, Ha as MessageIdReturn, Hi as CommunityParticipantsSchema, Hn as getCommunityAdminIds, Hr as deleteMessage, Ht as stateChangedEvent, I as documentDataParam, Ia as IdSchema, Ii as CommunityAdminsSchema, In as getStatus, Ir as pinChat, It as urlToDataUrlCodec, J as messageIdsParam, Ja as SimpleListener, Ji as GroupCreationResultSchema, Jn as approveGroupJoinRequest, Jr as getMyLastMessage, Jt as messageEvent, K as mentionedJidListParam, Ka as SerializedMessageId, Ki as FeatureFlagsSchema, Kn as getCommunityParticipants, Kr as getMessageInfo, Kt as interactiveResponseEvent, L as fileDataParam, La as Location, Li as CommunityMetadata, Ln as getStories, Lr as setChatEphemeral, Lt as addedToGroupEvent, M as chatIdParam, Ma as GroupId, Mi as CommonGroupSchema, Mn as getChatsByLabel, Mr as isChatOnline, Mt as jsonStringCodec, N as communityIdParam, Na as GroupMetadata, Ni as CommunityAdminIds, Nn as removeLabel, Nr as markAsRead, Nt as messageIdCodec, O as ReplyActionSchema, Oa as DataURL, Oi as BusinessProfileSchema, On as getBusinessProfile, Or as getAllChatIds, Ot as fileToTempPathCodec, P as contactIdParam, Pa as GroupMetadataSchema, Pi as CommunityAdminIdsSchema, Pn as deleteAllStatus, Pr as markAsUnread, Pt as unixMillisToDate, Q as skipMyMessagesParam, Qa as CLOUD_PROVIDERS, Qi as HostAccountSchema, Qn as getGroupAdmins, Qr as loadEarlierMessages, Qt as EventStatus, R as filenameParam, Ra as LocationSchema, Ri as CommunityMetadataSchema, Rn as postImageStatus, Rr as unarchiveChat, Rt as participantsChangedEvent, S as JsonValueSchema, Sa as ChatId, Si as sendYouTubeLink, Sn as healthCheck, So as Viewport, Sr as getNumberProfile, St as contactIdCodec, T as ListRowSchema, Ta as ContactId, Ti as outputJsonSchema, Tn as setMyStatus, To as parseConfig, Tr as archiveChat, Tt as fileToBufferCodec, U as latitudeParam, Ua as MessageIdReturnSchema, Ui as ContactStatus, Un as getCommunityAdmins, Ur as forwardMessages, Ut as ackEvent, V as includeMeParam, Va as MessageId, Vi as CommunityParticipants, Vn as getAllCommunities, Vr as SendTextResultSchema, Vt as logoutEvent, W as locationNameParam, Wa as MessageSchema, Wi as ContactStatusSchema, Wn as getCommunityInfo, Wr as getAllMessages, Wt as anyMessageEvent, X as nameParam, Xa as ClientConfigSchema, Xi as HealthCheckSchema, Xn as demoteParticipant, Xr as getUnsentMessages, Xt as EventDefinition, Y as messageOptionsParam, Ya as ClientConfig, Yi as HealthCheck, Yn as createGroup, Yr as getStarredMessages, Yt as reactionEvent, Z as onlyLocalParam, Za as migrateV4Config, Zi as HostAccount, Zn as getAllGroups, Zr as getVCards, Zt as EventMetadata, _ as InteractiveHeaderSchema, _a as ProductSchema, _i as sendSeen, _n as getMe, _o as S3SyncSchema, _r as checkReadReceipts, _t as MessageIdSchema, a as CarouselContentSchema, aa as MessageInfoSchema, ai as sendFile, an as SendInteractiveInputSchema, ao as DevTools, ar as leaveGroup, at as withNewMessagesOnlyParam, b as JsonObjectSchema, ba as Base64, bi as sendVCard, bn as getUserAgent, bo as StrictConfig, br as getCommonGroups, bt as base64ToDataUrlCodec, c as FormQuestion, ca as NumberCheck, ci as sendLinkWithAutoPreview, cn as sendRawMessage, co as LoggingTransportSchema, cr as removeParticipant, ct as ChatIdSchema, d as FormResponseSchema, da as NumberProfileSchema, di as sendMessageWithThumb, dn as getBatteryLevel, do as PartialConfig, dr as setGroupEditToAdminsOnly, dt as FileToDataUrlSchema, ea as LLMMessageSchema, ei as sendAdvancedButtons, en as QueueOptionsSchema, eo as CloudUploadOptionsSchema, er as getGroupInviteLink, et as stickerDataParam, f as InteractiveAction, fa as Order, fi as sendMultipleContacts, fn as getConnectionState, fo as PartialConfigSchema, fr as setGroupIcon, ft as GroupIdCodecSchema, g as InteractiveHeader, ga as Product, gi as sendReplyWithMentions, gn as getLoadedMessageCount, go as S3Sync, gr as checkNumberStatus, gt as MessageIdCodecSchema, h as InteractiveContentSchema, ha as ProcessStatsSchema, hi as sendPtt, hn as getLicenseType, ho as QRFormat, hr as blockContact, ht as IsoDatetimeToDateSchema, i as CarouselCardSchema, ia as MessageInfo, ii as sendContact, io as DeepPartialConfig, ir as joinGroupViaLink, it as waitForIdParam, j as captionParam, ja as GroupChatIdSchema, ji as CommonGroup, jn as getAllLabels, jr as getChatWithNonContacts, jt as isoDatetimeToDate, k as defineInteractiveMessage, ka as DataURLSchema, ki as CartItem, kn as getOrder, kr as getAllChats, kt as groupIdCodec, l as FormQuestionSchema, la as NumberCheckSchema, li as sendListMessage, ln as decryptMedia, lo as NotificationLanguage, lr as revokeGroupInviteLink, lt as ContactIdCodecSchema, m as InteractiveContent, ma as ProcessStats, mi as sendPoll, mn as getHostNumber, mo as ProxyServerCredentialsSchema, mr as setGroupToAdminsOnly, mt as HexColorSchema, n as ButtonsContentSchema, na as LabelSchema, ni as sendBanner, nn as defineListenerV2, no as ConfigSchema, nr as getGroupMembersId, nt as userAgentParam, o as CopyActionSchema, oa as MessageInteraction, oi as sendFileFromUrl, on as SendRawMessageInputSchema, oo as DevToolsSchema, or as promoteParticipant, ot as Base64ToDataUrlSchema, p as InteractiveActionSchema, pa as OrderSchema, pi as sendPaymentRequest, pn as getFeatures, po as ProxyServerCredentials, pr as setGroupTitle, pt as GroupIdSchema, q as messageIdParam, qa as SerializedMessageIdSchema, qi as GroupCreationResult, qn as addParticipant, qr as getMessagesForLLM, qt as messageDeletedEvent, r as CallActionSchema, ra as LicenseTypeSchema, ri as sendButtons, rn as eventRegistry, ro as DIRECTORY_STRATEGY, rr as getKickedGroups, rt as videoDataParam, s as FormContentSchema, sa as MessageInteractionSchema, si as sendImage, sn as sendInteractive, so as LoggingTransport, sr as rejectGroupJoinRequest, st as ChatIdCodecSchema, t as BookingContentSchema, ta as Label, ti as sendAudio, tn as QueueOverloadStrategy, to as Config, tr as getGroupMembers, tt as toParam, u as FormResponse, ua as NumberProfile, ui as sendLocation, un as downloadMedia, uo as OnError, ur as setGroupDescription, ut as ContactIdSchema, v as InteractiveResponse, va as Story, vi as sendText, vn as getProcessStats, vo as SessionData, vr as getAllContacts, vt as UnixMillisToDateSchema, w as ListContentSchema, wa as Contact, wi as unstarMessage, wn as setMyName, wo as getDefaultConfig, wr as unblockContact, wt as fileToBase64Codec, x as JsonValue, xa as Chat, xi as sendVideoAsGif, xn as getWAVersion, xo as StrictConfigSchema, xr as getContact, xt as chatIdCodec, y as InteractiveResponseSchema, ya as StorySchema, yi as sendTextWithMentions, yn as getSnapshot, yo as SessionDataSchema, yr as getBlockedIds, yt as UnixSecondsToDateSchema, z as groupIdParam, za as Message, zi as CommunityParticipantIds, zn as postTextStatus, zr as unmuteChat, zt as StateEnum } from "./index-D0QN2PaW.mjs";
2
2
  import { A as FunctionalityEnum, C as getParameterMetadata, D as zObjectToTuple, E as z, F as LicenseTier, M as HttpMethod, N as HttpMethodEnum, O as ActionEnum, P as LicenseEnum, S as getMethodAliases, T as parameterRegistry, _ as clientRegistry, a as CapabilityDefinition, b as defineMethodV2, c as CapabilityType, d as InferOutput, f as MethodDefinition, g as buildKeyAliasMap, h as Registry, i as AliasMetadata, j as FunctionalityScope, k as ActionType, l as ClientFunctionMetadata, m as ParameterMetadata, n as HttpRouteAlias, o as CapabilityMetadata, p as OpenWAMethodSchema, r as getHttpMethodDefinitions, s as CapabilityStatus, t as HttpMethodDefinition, u as InferInput, v as defineEvent, w as normalizeParameterKeys, x as deriveNamespacedMethodName, y as defineMethod } from "./http-manifest-CqjUoaDB.mjs";
3
3
  import { n as implementMethodAsync, t as implementMethod } from "./implementor-ACLHTHby.mjs";
4
- export { ActionEnum, ActionType, AliasMetadata, Base64, Base64ToDataUrlSchema, BookingContentSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionSchema, CapabilityDefinition, CapabilityMetadata, CapabilityStatus, CapabilityType, CarouselCardSchema, CarouselContentSchema, Chat, ChatId, ChatIdCodecSchema, ChatIdSchema, ChatSchema, type ClientConfig, ClientConfigSchema, ClientFunctionMetadata, type CloudUploadOptions, CloudUploadOptionsSchema, type Config, ConfigSchema, Contact, ContactId, ContactIdCodecSchema, ContactIdSchema, ContactSchema, Content, CopyActionSchema, DIRECTORY_STRATEGY, DataURL, type DeepPartialConfig, type DevTools, DevToolsSchema, EventDefinition, EventMetadata, EventStatus, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GroupChatId, GroupChatIdSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupMetadata, GroupMetadataSchema, HexColorSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LicenseEnum, LicenseTier, LicenseType, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, Message, MessageAck, MessageId, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageSchema, MessageTypes, MethodDefinition, NativeActionSchema, NativeContentSchema, NotificationLanguage, OnError, OpenWAMethodSchema, ParameterMetadata, type PartialConfig, PartialConfigSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, type SessionData, SessionDataSchema, SimpleListener, StateEnum, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, type Viewport, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
4
+ export { ActionEnum, ActionType, AliasMetadata, Base64, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfile, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionSchema, CapabilityDefinition, CapabilityMetadata, CapabilityStatus, CapabilityType, CarouselCardSchema, CarouselContentSchema, CartItem, CartItemSchema, Chat, ChatId, ChatIdCodecSchema, ChatIdSchema, ChatSchema, type ClientConfig, ClientConfigSchema, ClientFunctionMetadata, type CloudUploadOptions, CloudUploadOptionsSchema, CommonGroup, CommonGroupSchema, CommunityAdminIds, CommunityAdminIdsSchema, CommunityAdmins, CommunityAdminsSchema, CommunityMetadata, CommunityMetadataSchema, CommunityParticipantIds, CommunityParticipantIdsSchema, CommunityParticipants, CommunityParticipantsSchema, type Config, ConfigSchema, Contact, ContactId, ContactIdCodecSchema, ContactIdSchema, ContactSchema, ContactStatus, ContactStatusSchema, Content, CopyActionSchema, DIRECTORY_STRATEGY, DataURL, DataURLSchema, type DeepPartialConfig, type DevTools, DevToolsSchema, EventDefinition, EventMetadata, EventStatus, FeatureFlags, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GroupChatId, GroupChatIdSchema, GroupCreationResult, GroupCreationResultSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupMetadata, GroupMetadataSchema, HealthCheck, HealthCheckSchema, HexColorSchema, HostAccount, HostAccountSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LLMMessage, LLMMessageSchema, Label, LabelSchema, LicenseEnum, LicenseTier, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, Message, MessageAck, MessageId, MessageIdCodecSchema, MessageIdReturn, MessageIdReturnSchema, MessageIdSchema, MessageInfo, MessageInfoSchema, MessageInteraction, MessageInteractionSchema, MessageSchema, MessageTypes, MethodDefinition, NativeActionSchema, NativeContentSchema, NotificationLanguage, NumberCheck, NumberCheckSchema, NumberProfile, NumberProfileSchema, OnError, OpenWAMethodSchema, Order, OrderSchema, ParameterMetadata, type PartialConfig, PartialConfigSchema, ProcessStats, ProcessStatsSchema, Product, ProductSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageId, SerializedMessageIdSchema, type SessionData, SessionDataSchema, SimpleListener, StateEnum, Story, StorySchema, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, type Viewport, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as defineMethod, c as getMethodAliases, d as parameterRegistry, f as z, i as defineEvent, l as getParameterMetadata, n as buildKeyAliasMap, o as defineMethodV2, p as zObjectToTuple, r as clientRegistry, s as deriveNamespacedMethodName, t as Registry, u as normalizeParameterKeys } from "./registry-BIddXpin.mjs";
2
- import { $ as deleteStatus, $n as includeMeParam, $r as IdSchema, $t as muteChat, A as getConnectionState, An as sendPaymentRequest, Ar as UnixMillisToDateSchema, At as setGroupIcon, B as healthCheck, Bn as starMessage, Br as fileToTempPathCodec, Bt as getNumberProfile, C as NativeActionSchema, Cn as sendFileFromUrl, Cr as FileToDataUrlSchema, Ct as leaveGroup, D as decryptMedia, Dn as sendLocation, Dr as IsoDatetimeToDateSchema, Dt as revokeGroupInviteLink, E as defineInteractiveMessage, En as sendListMessage, Er as HexColorSchema, Et as removeParticipant, F as getMe, Fn as sendText, Fr as createFileCodec, Ft as checkReadReceipts, G as getBusinessProducts, Gn as communityIdParam, Gr as messageIdCodec, Gt as deleteChat, H as setMyName, Hn as audioDataParam, Hr as hexColorCodec, Ht as unblockContact, I as getProcessStats, In as sendTextWithMentions, Ir as fileToBase64Codec, It as getAllContacts, J as addLabel, Jn as documentDataParam, Jr as urlToDataUrlCodec, Jt as getChat, K as getBusinessProfile, Kn as contactIdParam, Kr as unixMillisToDate, Kt as getAllChatIds, L as getSnapshot, Ln as sendVCard, Lr as fileToBufferCodec, Lt as getBlockedIds, M as getHostNumber, Mn as sendPtt, Mr as base64ToDataUrlCodec, Mt as setGroupToAdminsOnly, N as getLicenseType, Nn as sendReplyWithMentions, Nr as chatIdCodec, Nt as blockContact, O as downloadMedia, On as sendMessageWithThumb, Or as MessageIdCodecSchema, Ot as setGroupDescription, P as getLoadedMessageCount, Pn as sendSeen, Pr as contactIdCodec, Pt as checkNumberStatus, Q as deleteAllStatus, Qn as imageDataParam, Qr as GroupMetadataSchema, Qt as markAsUnread, R as getUserAgent, Rn as sendVideoAsGif, Rr as fileToDataUrlCodec, Rt as getCommonGroups, S as ListRowSchema, Sn as sendFile, Sr as ContactIdSchema, St as joinGroupViaLink, T as ReplyActionSchema, Tn as sendLinkWithAutoPreview, Tr as GroupIdSchema, Tt as rejectGroupJoinRequest, U as setMyStatus, Un as captionParam, Ur as isoDatetimeToDate, Ut as archiveChat, V as isPlugged, Vn as unstarMessage, Vr as groupIdCodec, Vt as getProfilePicture, W as setProfilePicture, Wn as chatIdParam, Wr as jsonStringCodec, Wt as clearChat, X as getChatsByLabel, Xn as filenameParam, Xr as ContactSchema, Xt as isChatOnline, Y as getAllLabels, Yn as fileDataParam, Yr as ChatSchema, Yt as getChatWithNonContacts, Z as removeLabel, Zn as groupIdParam, Zr as GroupChatIdSchema, Zt as markAsRead, _ as InteractiveResponseSchema, _n as sendAdvancedButtons, _r as withNewMessagesOnlyParam, _t as getGroupInfo, a as BookingContentSchema, ai as SimpleListener, an as deleteMessage, ar as messageIdParam, at as getAllCommunities, b as LinkActionSchema, bn as sendButtons, br as ChatIdSchema, bt as getGroupMembersId, c as CarouselCardSchema, cn as getMessageById, cr as nameParam, ct as getCommunityInfo, d as FormContentSchema, dn as getMyLastMessage, dr as statusTextParam, dt as addParticipant, ei as LocationSchema, en as pinChat, er as includeNotificationsParam, et as getStatus, f as FormQuestionSchema, fn as getStarredMessages, fr as stickerDataParam, ft as approveGroupJoinRequest, g as InteractiveHeaderSchema, gn as react, gr as waitForIdParam, gt as getGroupAdmins, h as InteractiveContentSchema, hn as loadEarlierMessages, hr as videoDataParam, ht as getAllGroups, i as sendRawMessage, ii as MessageTypes, in as unpinChat, ir as mentionedJidListParam, it as postVideoStatus, j as getFeatures, jn as sendPoll, jr as UnixSecondsToDateSchema, jt as setGroupTitle, k as getBatteryLevel, kn as sendMultipleContacts, kr as MessageIdSchema, kt as setGroupEditToAdminsOnly, l as CarouselContentSchema, ln as getMessageInfo, lr as onlyLocalParam, lt as getCommunityParticipantIds, m as InteractiveActionSchema, mn as getVCards, mr as userAgentParam, mt as demoteParticipant, n as SendRawMessageInputSchema, ni as MessageIdReturnSchema, nn as unarchiveChat, nr as locationNameParam, nt as postImageStatus, o as ButtonsContentSchema, on as forwardMessages, or as messageIdsParam, ot as getCommunityAdminIds, p as FormResponseSchema, pn as getUnsentMessages, pr as toParam, pt as createGroup, q as getOrder, qn as contentParam, qr as unixSecondsToDate, qt as getAllChats, r as sendInteractive, ri as MessageSchema, rn as unmuteChat, rr as longitudeParam, rt as postTextStatus, s as CallActionSchema, sn as getAllMessages, sr as messageOptionsParam, st as getCommunityAdmins, t as SendInteractiveInputSchema, ti as MessageAck, tn as setChatEphemeral, tr as latitudeParam, tt as getStories, u as CopyActionSchema, un as getMessagesForLLM, ur as skipMyMessagesParam, ut as getCommunityParticipants, v as JsonObjectSchema, vn as sendAudio, vr as Base64ToDataUrlSchema, vt as getGroupInviteLink, w as NativeContentSchema, wn as sendImage, wr as GroupIdCodecSchema, wt as promoteParticipant, x as ListContentSchema, xn as sendContact, xr as ContactIdCodecSchema, xt as getKickedGroups, y as JsonValueSchema, yn as sendBanner, yr as ChatIdCodecSchema, yt as getGroupMembers, z as getWAVersion, zn as sendYouTubeLink, zr as fileToStreamCodec, zt as getContact } from "./methods-BSv5O3bS.mjs";
2
+ import { $ as deleteStatus, $n as imageDataParam, $r as CommunityAdminIdsSchema, $t as muteChat, A as getConnectionState, Ai as MessageTypes, An as sendMultipleContacts, Ar as MessageIdSchema, At as setGroupIcon, B as healthCheck, Bn as sendYouTubeLink, Br as fileToStreamCodec, Bt as getNumberProfile, C as NativeActionSchema, Ci as GroupChatIdSchema, Cn as sendFile, Cr as ContactIdSchema, Ct as leaveGroup, D as decryptMedia, Di as MessageAck, Dn as sendListMessage, Dr as HexColorSchema, Dt as revokeGroupInviteLink, E as defineInteractiveMessage, Ei as LocationSchema, En as sendLinkWithAutoPreview, Er as GroupIdSchema, Et as removeParticipant, F as getMe, Fn as sendSeen, Fr as contactIdCodec, Ft as checkReadReceipts, G as getBusinessProducts, Gn as chatIdParam, Gr as jsonStringCodec, Gt as deleteChat, H as setMyName, Hn as unstarMessage, Hr as groupIdCodec, Ht as unblockContact, I as getProcessStats, In as sendText, Ir as createFileCodec, It as getAllContacts, J as addLabel, Jn as contentParam, Jr as unixSecondsToDate, Jt as getChat, K as getBusinessProfile, Kn as communityIdParam, Kr as messageIdCodec, Kt as getAllChatIds, L as getSnapshot, Ln as sendTextWithMentions, Lr as fileToBase64Codec, Lt as getBlockedIds, M as getHostNumber, Mi as SimpleListener, Mn as sendPoll, Mr as UnixSecondsToDateSchema, Mt as setGroupToAdminsOnly, N as getLicenseType, Nn as sendPtt, Nr as base64ToDataUrlCodec, Nt as blockContact, O as downloadMedia, Oi as MessageIdReturnSchema, On as sendLocation, Or as IsoDatetimeToDateSchema, Ot as setGroupDescription, P as getLoadedMessageCount, Pn as sendReplyWithMentions, Pr as chatIdCodec, Pt as checkNumberStatus, Q as deleteAllStatus, Qn as groupIdParam, Qr as CommonGroupSchema, Qt as markAsUnread, R as getUserAgent, Rn as sendVCard, Rr as fileToBufferCodec, Rt as getCommonGroups, S as ListRowSchema, Si as DataURLSchema, Sn as sendContact, Sr as ContactIdCodecSchema, St as joinGroupViaLink, T as ReplyActionSchema, Ti as IdSchema, Tn as sendImage, Tr as GroupIdCodecSchema, Tt as rejectGroupJoinRequest, U as setMyStatus, Un as audioDataParam, Ur as hexColorCodec, Ut as archiveChat, V as isPlugged, Vn as starMessage, Vr as fileToTempPathCodec, Vt as getProfilePicture, W as setProfilePicture, Wn as captionParam, Wr as isoDatetimeToDate, Wt as clearChat, X as getChatsByLabel, Xn as fileDataParam, Xr as BusinessProfileSchema, Xt as isChatOnline, Y as getAllLabels, Yn as documentDataParam, Yr as urlToDataUrlCodec, Yt as getChatWithNonContacts, Z as removeLabel, Zn as filenameParam, Zr as CartItemSchema, Zt as markAsRead, _ as InteractiveResponseSchema, _i as ProcessStatsSchema, _n as react, _r as waitForIdParam, _t as getGroupInfo, a as BookingContentSchema, ai as FeatureFlagsSchema, an as SendTextResultSchema, ar as mentionedJidListParam, at as getAllCommunities, b as LinkActionSchema, bi as ChatSchema, bn as sendBanner, br as ChatIdCodecSchema, bt as getGroupMembersId, c as CarouselCardSchema, ci as HostAccountSchema, cn as getAllMessages, cr as messageOptionsParam, ct as getCommunityInfo, d as FormContentSchema, di as LicenseTypeSchema, dn as getMessagesForLLM, dr as skipMyMessagesParam, dt as addParticipant, ei as CommunityAdminsSchema, en as pinChat, er as includeMeParam, et as getStatus, f as FormQuestionSchema, fi as MessageInfoSchema, fn as getMyLastMessage, fr as statusTextParam, ft as approveGroupJoinRequest, g as InteractiveHeaderSchema, gi as OrderSchema, gn as loadEarlierMessages, gr as videoDataParam, gt as getGroupAdmins, h as InteractiveContentSchema, hi as NumberProfileSchema, hn as getVCards, hr as userAgentParam, ht as getAllGroups, i as sendRawMessage, ii as ContactStatusSchema, in as unpinChat, ir as longitudeParam, it as postVideoStatus, j as getFeatures, ji as SerializedMessageIdSchema, jn as sendPaymentRequest, jr as UnixMillisToDateSchema, jt as setGroupTitle, k as getBatteryLevel, ki as MessageSchema, kn as sendMessageWithThumb, kr as MessageIdCodecSchema, kt as setGroupEditToAdminsOnly, l as CarouselContentSchema, li as LLMMessageSchema, ln as getMessageById, lr as nameParam, lt as getCommunityParticipantIds, m as InteractiveActionSchema, mi as NumberCheckSchema, mn as getUnsentMessages, mr as toParam, mt as demoteParticipant, n as SendRawMessageInputSchema, ni as CommunityParticipantIdsSchema, nn as unarchiveChat, nr as latitudeParam, nt as postImageStatus, o as ButtonsContentSchema, oi as GroupCreationResultSchema, on as deleteMessage, or as messageIdParam, ot as getCommunityAdminIds, p as FormResponseSchema, pi as MessageInteractionSchema, pn as getStarredMessages, pr as stickerDataParam, pt as createGroup, q as getOrder, qn as contactIdParam, qr as unixMillisToDate, qt as getAllChats, r as sendInteractive, ri as CommunityParticipantsSchema, rn as unmuteChat, rr as locationNameParam, rt as postTextStatus, s as CallActionSchema, si as HealthCheckSchema, sn as forwardMessages, sr as messageIdsParam, st as getCommunityAdmins, t as SendInteractiveInputSchema, ti as CommunityMetadataSchema, tn as setChatEphemeral, tr as includeNotificationsParam, tt as getStories, u as CopyActionSchema, ui as LabelSchema, un as getMessageInfo, ur as onlyLocalParam, ut as getCommunityParticipants, v as JsonObjectSchema, vi as ProductSchema, vn as sendAdvancedButtons, vr as withNewMessagesOnlyParam, vt as getGroupInviteLink, w as NativeContentSchema, wi as GroupMetadataSchema, wn as sendFileFromUrl, wr as FileToDataUrlSchema, wt as promoteParticipant, x as ListContentSchema, xi as ContactSchema, xn as sendButtons, xr as ChatIdSchema, xt as getKickedGroups, y as JsonValueSchema, yi as StorySchema, yn as sendAudio, yr as Base64ToDataUrlSchema, yt as getGroupMembers, z as getWAVersion, zn as sendVideoAsGif, zr as fileToDataUrlCodec, zt as getContact } from "./methods-BhLsQNtL.mjs";
3
3
  import { implementMethod, implementMethodAsync } from "./implementor.mjs";
4
4
  import { getHttpMethodDefinitions } from "./http-manifest.mjs";
5
5
  import { z as z$1 } from "zod";
@@ -19,6 +19,35 @@ function migrateV4Config(oldConfig) {
19
19
  return config;
20
20
  }
21
21
  //#endregion
22
+ //#region src/output-json-schema.ts
23
+ /** HTTP omits undefined results; void/undefined are not JSON data values. */
24
+ function outputJsonSchema(schema) {
25
+ return z$1.toJSONSchema(schema, {
26
+ target: "openapi-3.0",
27
+ unrepresentable: "any",
28
+ override: ({ zodSchema, jsonSchema }) => {
29
+ const kind = zodSchema._zod.def.type;
30
+ if (kind === "void" || kind === "undefined") {
31
+ jsonSchema.not = {};
32
+ jsonSchema.description = "No JSON value; the response data property is omitted.";
33
+ }
34
+ }
35
+ });
36
+ }
37
+ function successResponseSchema(schema) {
38
+ return {
39
+ type: "object",
40
+ required: schema.isOptional() ? ["success"] : ["success", "data"],
41
+ properties: {
42
+ success: {
43
+ type: "boolean",
44
+ enum: [true]
45
+ },
46
+ data: outputJsonSchema(schema)
47
+ }
48
+ };
49
+ }
50
+ //#endregion
22
51
  //#region src/events/registry.ts
23
52
  const eventsByName = /* @__PURE__ */ new Map();
24
53
  const nameByCallback = /* @__PURE__ */ new WeakMap();
@@ -318,6 +347,6 @@ const HttpMethodEnum = z$1.enum([
318
347
  "HEAD"
319
348
  ]);
320
349
  //#endregion
321
- export { ActionEnum, Base64ToDataUrlSchema, BookingContentSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionSchema, CarouselCardSchema, CarouselContentSchema, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfigSchema, CloudUploadOptionsSchema, ConfigSchema, ContactIdCodecSchema, ContactIdSchema, ContactSchema, CopyActionSchema, DIRECTORY_STRATEGY, DevToolsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestionSchema, FormResponseSchema, FunctionalityEnum, GroupChatIdSchema, GroupIdCodecSchema, GroupIdSchema, GroupMetadataSchema, HexColorSchema, HttpMethodEnum, IdSchema, InteractiveActionSchema, InteractiveContentSchema, InteractiveHeaderSchema, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValueSchema, LicenseEnum, LicenseType, LinkActionSchema, ListContentSchema, ListRowSchema, LocationSchema, LoggingTransportSchema, MessageAck, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageSchema, MessageTypes, NativeActionSchema, NativeContentSchema, NotificationLanguage, OnError, PartialConfigSchema, ProxyServerCredentialsSchema, QRFormat, QueueOptionsSchema, Registry, ReplyActionSchema, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SessionDataSchema, SimpleListener, StateEnum, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
350
+ export { ActionEnum, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionSchema, CarouselCardSchema, CarouselContentSchema, CartItemSchema, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfigSchema, CloudUploadOptionsSchema, CommonGroupSchema, CommunityAdminIdsSchema, CommunityAdminsSchema, CommunityMetadataSchema, CommunityParticipantIdsSchema, CommunityParticipantsSchema, ConfigSchema, ContactIdCodecSchema, ContactIdSchema, ContactSchema, ContactStatusSchema, CopyActionSchema, DIRECTORY_STRATEGY, DataURLSchema, DevToolsSchema, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestionSchema, FormResponseSchema, FunctionalityEnum, GroupChatIdSchema, GroupCreationResultSchema, GroupIdCodecSchema, GroupIdSchema, GroupMetadataSchema, HealthCheckSchema, HexColorSchema, HostAccountSchema, HttpMethodEnum, IdSchema, InteractiveActionSchema, InteractiveContentSchema, InteractiveHeaderSchema, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValueSchema, LLMMessageSchema, LabelSchema, LicenseEnum, LicenseType, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, LocationSchema, LoggingTransportSchema, MessageAck, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageInfoSchema, MessageInteractionSchema, MessageSchema, MessageTypes, NativeActionSchema, NativeContentSchema, NotificationLanguage, NumberCheckSchema, NumberProfileSchema, OnError, OrderSchema, PartialConfigSchema, ProcessStatsSchema, ProductSchema, ProxyServerCredentialsSchema, QRFormat, QueueOptionsSchema, Registry, ReplyActionSchema, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageIdSchema, SessionDataSchema, SimpleListener, StateEnum, StorySchema, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
322
351
 
323
352
  //# sourceMappingURL=index.mjs.map