@open-wa/schema 5.5.1 → 5.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/index.d.cts +31 -31
- package/dist/generated/index.d.mts +31 -31
- package/dist/{index-BWvNXopK.d.cts → index-Cl1bU6DB.d.cts} +69 -2
- package/dist/index-Cl1bU6DB.d.cts.map +1 -0
- package/dist/{index-Co8HQxm8.d.mts → index-DOca1sBu.d.mts} +69 -2
- package/dist/index-DOca1sBu.d.mts.map +1 -0
- package/dist/index.cjs +307 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +303 -1
- package/dist/index.mjs.map +1 -1
- package/dist/methods/index.d.cts +1 -1
- package/dist/methods/index.d.mts +1 -1
- package/package.json +4 -4
- package/src/events/asyncapi.ts +59 -0
- package/src/events/contracts.ts +119 -0
- package/src/events/index.ts +2 -0
- package/src/generated/asyncapi.json +2886 -0
- package/src/generated/openapi.json +2 -2
- package/dist/index-BWvNXopK.d.cts.map +0 -1
- package/dist/index-Co8HQxm8.d.mts.map +0 -1
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["z","z","MessageSchema","z","InteractiveResponseSchema","FormResponseSchema","z","z","GroupIdSchema","ContactIdSchema","projectEffectSchema","CallSnapshotSchema","WhatsAppEventRegistrySchema","EventResponseRegistrySchema","PollVoteSchema","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/events/calls.ts","../src/events/whatsapp-events.ts","../src/events/polls.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 aliases?: 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 || def.meta.aliases?.includes(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 } from '../common-types';\n\n// Acknowledgements carry a message snapshot. Validate the delivery identity but\n// retain every message field, including fields absent from the static schema.\n// Requiring all received-message fields would discard updates for partially\n// loaded messages in WhatsApp's store.\nconst AckSchema = MessageSchema.pick({ id: true, ack: true }).passthrough()\n .describe('The full available message snapshot at acknowledgement time, including id, ack, body, sender and chat when supplied by WhatsApp.');\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';\nimport { ContactIdSchema, GroupIdSchema } from '../common-types';\n\nconst participantChatIdSchema = z.union([\n GroupIdSchema,\n z.object({ _serialized: GroupIdSchema }).passthrough(),\n]);\n\nexport const ParticipantChangeSchema = z.object({\n groupId: GroupIdSchema,\n action: z.enum(['add', 'remove', 'promote', 'demote', 'invite', 'leave']),\n participantIds: z.array(ContactIdSchema),\n by: z.string().optional(),\n who: ContactIdSchema.optional(),\n chat: participantChatIdSchema.optional(),\n}).passthrough();\nexport type ParticipantChange = z.infer<typeof ParticipantChangeSchema>;\n\n/** Adapt the existing patch callback without replacing its native listener. */\nexport const ParticipantChangePatchSchema = z.object({\n action: ParticipantChangeSchema.shape.action,\n who: ContactIdSchema,\n chat: participantChatIdSchema,\n by: z.string().optional(),\n}).passthrough().transform(change => ({\n ...change,\n groupId: typeof change.chat === 'string' ? change.chat : change.chat._serialized,\n participantIds: [change.who],\n})).pipe(ParticipantChangeSchema);\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 aliases: ['onGlobalParticipantsChanged'],\n },\n payload: ParticipantChangeSchema,\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 { CallSnapshotSchema } from '../calling';\nimport { projectEffectSchema } from '../effect-projection';\nimport { defineListenerV2 } from './registry';\n\nexport const incomingCallEvent = defineListenerV2('incomingCall', {\n legacyName: 'onIncomingCall', meta: { namespace: 'calls', license: 'restricted', status: 'experimental', description: 'A native incoming call. The SDK hydrates its bound controls.' },\n payload: projectEffectSchema(CallSnapshotSchema), defaultQueueOptions: { capacity: 32, concurrency: 1 },\n});\nexport const callStateEvent = defineListenerV2('callState', {\n legacyName: 'onCallState', meta: { namespace: 'calls', license: 'restricted', status: 'experimental', description: 'Observed native call state, including unknown states.' },\n payload: projectEffectSchema(CallSnapshotSchema), defaultQueueOptions: { capacity: 64, concurrency: 1 },\n});\n","import { WhatsAppEventRegistrySchema, EventResponseRegistrySchema } from '../whatsapp-event-registry';\nimport { defineListenerV2 } from './registry';\n\nexport const whatsappEvent = defineListenerV2('event', {\n legacyName: 'onEvent',\n meta: { namespace: 'events', license: 'none', status: 'beta', description: 'A native event added or changed in the synced message store, including this account’s events.' },\n payload: WhatsAppEventRegistrySchema, defaultQueueOptions: { concurrency: 1 },\n});\nexport const eventResponseEvent = defineListenerV2('eventResponse', {\n legacyName: 'onEventResponse',\n meta: { namespace: 'events', license: 'none', status: 'beta', description: 'A decrypted RSVP added or changed in WhatsApp’s dedicated event-response collection. History loads may emit responses too; deduplicate by id and timestamp.' },\n payload: EventResponseRegistrySchema, defaultQueueOptions: { concurrency: 1 },\n});\n","import { PollVoteSchema } from '../polls';\nimport { defineListenerV2 } from './registry';\n\nexport const pollVoteEvent = defineListenerV2('pollVote', {\n legacyName: 'onPollVote',\n meta: {\n namespace: 'messages', license: 'none', status: 'beta',\n description: 'A decrypted poll vote added or changed in the synced store. Hydration can emit old votes. Hidden-voter polls omit sender and message identifiers. Deduplicate ordinary votes by id and timestamp; refresh getPollResults for current totals.',\n },\n payload: PollVoteSchema, defaultQueueOptions: { concurrency: 1 },\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;;;ACUA,MAAM,+BAAe,IAAI,IAA6B;AACtD,MAAM,iCAAiB,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U,SAAS;EAAQ,QAAQ;EAAQ,aAAa;CAA8J;CACzO,SAASC,gBAAAA;CAA6B,qBAAqB,EAAE,aAAa,EAAE;AAC9E,CAAC;;;ACTD,MAAa,gBAAgB,iBAAiB,YAAY;CACxD,YAAY;CACZ,MAAM;EACJ,WAAW;EAAY,SAAS;EAAQ,QAAQ;EAChD,aAAa;CACf;CACA,SAASC,gBAAAA;CAAgB,qBAAqB,EAAE,aAAa,EAAE;AACjE,CAAC;;;;;;;;;;ACDD,MAAa,aAAaC,IAAAA,EAAE,KAAK;CAC7B;CACA;CACA;CACA;AACJ,CAAC;;;;;;;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","MessageSchema","z","InteractiveResponseSchema","FormResponseSchema","z","z","GroupIdSchema","ContactIdSchema","projectEffectSchema","CallSnapshotSchema","WhatsAppEventRegistrySchema","EventResponseRegistrySchema","PollVoteSchema","z","MessageSchema","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/events/calls.ts","../src/events/whatsapp-events.ts","../src/events/polls.ts","../src/events/contracts.ts","../src/events/asyncapi.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 aliases?: 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 || def.meta.aliases?.includes(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 } from '../common-types';\n\n// Acknowledgements carry a message snapshot. Validate the delivery identity but\n// retain every message field, including fields absent from the static schema.\n// Requiring all received-message fields would discard updates for partially\n// loaded messages in WhatsApp's store.\nconst AckSchema = MessageSchema.pick({ id: true, ack: true }).passthrough()\n .describe('The full available message snapshot at acknowledgement time, including id, ack, body, sender and chat when supplied by WhatsApp.');\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';\nimport { ContactIdSchema, GroupIdSchema } from '../common-types';\n\nconst participantChatIdSchema = z.union([\n GroupIdSchema,\n z.object({ _serialized: GroupIdSchema }).passthrough(),\n]);\n\nexport const ParticipantChangeSchema = z.object({\n groupId: GroupIdSchema,\n action: z.enum(['add', 'remove', 'promote', 'demote', 'invite', 'leave']),\n participantIds: z.array(ContactIdSchema),\n by: z.string().optional(),\n who: ContactIdSchema.optional(),\n chat: participantChatIdSchema.optional(),\n}).passthrough();\nexport type ParticipantChange = z.infer<typeof ParticipantChangeSchema>;\n\n/** Adapt the existing patch callback without replacing its native listener. */\nexport const ParticipantChangePatchSchema = z.object({\n action: ParticipantChangeSchema.shape.action,\n who: ContactIdSchema,\n chat: participantChatIdSchema,\n by: z.string().optional(),\n}).passthrough().transform(change => ({\n ...change,\n groupId: typeof change.chat === 'string' ? change.chat : change.chat._serialized,\n participantIds: [change.who],\n})).pipe(ParticipantChangeSchema);\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 aliases: ['onGlobalParticipantsChanged'],\n },\n payload: ParticipantChangeSchema,\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 { CallSnapshotSchema } from '../calling';\nimport { projectEffectSchema } from '../effect-projection';\nimport { defineListenerV2 } from './registry';\n\nexport const incomingCallEvent = defineListenerV2('incomingCall', {\n legacyName: 'onIncomingCall', meta: { namespace: 'calls', license: 'restricted', status: 'experimental', description: 'A native incoming call. The SDK hydrates its bound controls.' },\n payload: projectEffectSchema(CallSnapshotSchema), defaultQueueOptions: { capacity: 32, concurrency: 1 },\n});\nexport const callStateEvent = defineListenerV2('callState', {\n legacyName: 'onCallState', meta: { namespace: 'calls', license: 'restricted', status: 'experimental', description: 'Observed native call state, including unknown states.' },\n payload: projectEffectSchema(CallSnapshotSchema), defaultQueueOptions: { capacity: 64, concurrency: 1 },\n});\n","import { WhatsAppEventRegistrySchema, EventResponseRegistrySchema } from '../whatsapp-event-registry';\nimport { defineListenerV2 } from './registry';\n\nexport const whatsappEvent = defineListenerV2('event', {\n legacyName: 'onEvent',\n meta: { namespace: 'events', license: 'none', status: 'beta', description: 'A native event added or changed in the synced message store, including this account’s events.' },\n payload: WhatsAppEventRegistrySchema, defaultQueueOptions: { concurrency: 1 },\n});\nexport const eventResponseEvent = defineListenerV2('eventResponse', {\n legacyName: 'onEventResponse',\n meta: { namespace: 'events', license: 'none', status: 'beta', description: 'A decrypted RSVP added or changed in WhatsApp’s dedicated event-response collection. History loads may emit responses too; deduplicate by id and timestamp.' },\n payload: EventResponseRegistrySchema, defaultQueueOptions: { concurrency: 1 },\n});\n","import { PollVoteSchema } from '../polls';\nimport { defineListenerV2 } from './registry';\n\nexport const pollVoteEvent = defineListenerV2('pollVote', {\n legacyName: 'onPollVote',\n meta: {\n namespace: 'messages', license: 'none', status: 'beta',\n description: 'A decrypted poll vote added or changed in the synced store. Hydration can emit old votes. Hidden-voter polls omit sender and message identifiers. Deduplicate ordinary votes by id and timestamp; refresh getPollResults for current totals.',\n },\n payload: PollVoteSchema, defaultQueueOptions: { concurrency: 1 },\n});\n","import { z } from 'zod';\nimport { MessageSchema } from '../common-types';\nimport { eventRegistry } from './registry';\nimport './messaging';\nimport './state';\nimport './groups';\n\nconst context = z.object({ correlationId: z.string(), ts: z.number(), attempt: z.number().optional() });\n// Runtime snapshots can be partial; the complete listener schema is not a wire guarantee.\nconst message = MessageSchema.partial().extend({ id: MessageSchema.shape.id }).passthrough();\nconst ack = MessageSchema.pick({ id: true, ack: true }).passthrough();\nconst step = (details: z.ZodType) => context.extend({\n step: z.string(), details: details.optional(),\n error: z.object({ name: z.string(), message: z.string(), stack: z.string().optional() }).optional(),\n durationMs: z.number().optional(),\n});\nconst conversationFilter = z.object({ chatId: z.string().min(1).optional() }).strict();\nconst noFilter = z.object({}).strict();\nconst messageSummary = z.object({\n sessionId: z.string(), messageId: z.string(), chatId: z.string().optional(),\n from: z.string().optional(), body: z.string().max(4000).optional(), truncated: z.boolean(),\n});\nconst ackSummary = z.object({\n sessionId: z.string(), messageId: z.string(), ack: z.number(), chatId: z.string().optional(),\n});\nconst stateSummary = z.object({\n sessionId: z.string(), previousState: z.string().optional(), state: z.string(),\n});\n\nexport interface EventContract {\n name: string;\n listener: string;\n aliases: string[];\n description: string;\n optionalRuntimeListener: boolean;\n payloadSchema: z.ZodType;\n transports: readonly ('sse' | 'webhook' | 'mcp')[];\n mcp?: { inputSchema: z.ZodType; payloadSchema: z.ZodType; project(payload: unknown, sessionId: string): unknown };\n}\n\nconst record = (value: unknown): Record<string, unknown> =>\n value && typeof value === 'object' ? value as Record<string, unknown> : {};\nconst text = (value: unknown) => typeof value === 'string' ? value : undefined;\n\nfunction defineContract(\n listener: string,\n definition: Omit<EventContract, 'listener' | 'aliases' | 'description'>,\n): EventContract {\n const meta = eventRegistry.get(listener)!.meta;\n return { ...definition, listener, aliases: [meta.legacyName, ...(meta.aliases ?? [])], description: meta.description ?? definition.name };\n}\n\n/** Canonical public wire contracts, shared by AsyncAPI, documentation and MCP. */\nexport const eventContracts: readonly EventContract[] = [\n defineContract('message', {\n name: 'message.received', optionalRuntimeListener: false, transports: ['sse', 'webhook', 'mcp'],\n payloadSchema: z.object({ ctx: context, message }),\n mcp: {\n inputSchema: conversationFilter, payloadSchema: messageSummary,\n project(payload, sessionId) {\n const m = record(record(payload).message);\n const body = text(m.body);\n return { sessionId, messageId: m.id, chatId: text(m.chatId), from: text(m.from), body: body?.slice(0, 4000), truncated: (body?.length ?? 0) > 4000 };\n },\n },\n }),\n defineContract('anyMessage', {\n name: 'message.any', optionalRuntimeListener: true, transports: ['sse', 'webhook'],\n payloadSchema: z.object({ ctx: context, message }),\n }),\n defineContract('ack', {\n name: 'ack.changed', optionalRuntimeListener: false, transports: ['sse', 'webhook', 'mcp'],\n payloadSchema: z.object({ ctx: context, ack }),\n mcp: {\n inputSchema: conversationFilter, payloadSchema: ackSummary,\n project(payload, sessionId) {\n const a = record(record(payload).ack);\n return { sessionId, messageId: a.id, ack: a.ack, chatId: text(a.chatId) };\n },\n },\n }),\n defineContract('stateChanged', {\n name: 'session.state.changed', optionalRuntimeListener: false, transports: ['sse', 'webhook', 'mcp'],\n payloadSchema: step(z.object({ prev: z.string(), next: z.string(), reason: z.string().optional() })),\n mcp: {\n inputSchema: noFilter, payloadSchema: stateSummary,\n project(payload, sessionId) {\n const details = record(record(payload).details);\n return { sessionId, previousState: text(details.prev), state: details.next };\n },\n },\n }),\n defineContract('addedToGroup', {\n name: 'group.addedToGroup', optionalRuntimeListener: true, transports: ['sse', 'webhook'],\n payloadSchema: z.object({ ctx: context, groupId: z.string(), by: z.string().optional() }),\n }),\n defineContract('logout', {\n name: 'session.logout', optionalRuntimeListener: false, transports: ['sse', 'webhook'],\n payloadSchema: step(z.object({ reason: z.string().optional() })),\n }),\n].sort((a, b) => a.name.localeCompare(b.name));\n\nexport function getEventContract(name: string): EventContract | undefined {\n return eventContracts.find(contract => contract.name === name);\n}\n\nexport function eventJsonSchema(schema: z.ZodType): Record<string, unknown> {\n return z.toJSONSchema(schema, { target: 'draft-7', unrepresentable: 'any' });\n}\n\nexport function getMcpEventDefinitions() {\n return eventContracts.filter(contract => contract.mcp).map(contract => ({\n name: contract.name,\n description: `${contract.description}. Compact summary${contract.name === 'session.state.changed' ? '' : '; use messages.get with messageId to read a full message'}. No history replay.`,\n delivery: ['webhook'] as 'webhook'[],\n inputSchema: eventJsonSchema(contract.mcp!.inputSchema),\n payloadSchema: eventJsonSchema(contract.mcp!.payloadSchema),\n }));\n}\n","import { eventContracts, eventJsonSchema } from './contracts';\n\nexport interface AsyncApiOptions { origin?: string; basePath?: string; version?: string; mcpPath?: string; mcpEnabled?: boolean }\n\n/** Build the same contract for the metadata endpoint and static documentation. */\nexport function createAsyncApiDocument(options: AsyncApiOptions = {}) {\n const basePath = (options.basePath ?? '').replace(/\\/$/, '');\n const channels: Record<string, unknown> = {};\n const operations: Record<string, unknown> = {};\n const schemas: Record<string, unknown> = {};\n const messages: Record<string, unknown> = {};\n for (const contract of eventContracts) {\n const key = contract.name.replace(/\\./g, '_');\n schemas[key] = eventJsonSchema(contract.payloadSchema);\n for (const transport of contract.transports) {\n const id = `${transport}_${key}`;\n const isMcp = transport === 'mcp';\n if (isMcp) schemas[`${key}_mcp`] = eventJsonSchema(contract.mcp!.payloadSchema);\n const payloadRef = { $ref: `#/components/schemas/${key}${isMcp ? '_mcp' : ''}` };\n const properties = transport === 'sse'\n ? { id: { type: 'string' }, event: { const: contract.name }, payload: payloadRef, ts: { type: 'number' }, sessionId: { type: 'string' } }\n : transport === 'webhook'\n ? { webhookId: { type: 'string' }, sessionId: { type: 'string' }, event: { const: contract.name }, payload: payloadRef, timestamp: { type: 'number' }, idempotencyKey: { type: 'string' } }\n : { eventId: { type: 'string' }, name: { const: contract.name }, timestamp: { type: 'string', format: 'date-time' }, data: payloadRef, cursor: { type: 'null' } };\n messages[id] = {\n name: contract.name, title: contract.name, summary: contract.description,\n contentType: 'application/json',\n payload: { type: 'object', properties, required: Object.keys(properties).filter(name => name !== 'idempotencyKey'), additionalProperties: false },\n ...(isMcp ? { headers: { type: 'object', required: ['webhook-id', 'webhook-timestamp', 'webhook-signature', 'X-MCP-Subscription-Id'], properties: {\n 'webhook-id': { type: 'string' }, 'webhook-timestamp': { type: 'string' }, 'webhook-signature': { type: 'string' }, 'X-MCP-Subscription-Id': { type: 'string' },\n } } } : {}),\n 'x-openwa-listener': contract.listener, 'x-openwa-aliases': contract.aliases,\n 'x-openwa-optional-runtime-listener': contract.optionalRuntimeListener,\n };\n channels[id] = {\n address: transport === 'sse' ? `${basePath}/api/events` : null,\n description: transport === 'sse'\n ? 'SSE event frame: id, event and JSON data; optional topics query filters exact runtime names. Keepalive every 20 seconds; reconnect hint 3000 ms. No history replay. API key in X-API-Key or api_key/key query.'\n : transport === 'webhook'\n ? 'Outbound HTTP POST to the configured destination. Public non-sensitive events pass through the plugin gateway. Optional event-name filter; default 3 retries with exponential delay from 1000 ms. Optional durable journal adds Idempotency-Key and retries pending deliveries after restart. No exactly-once guarantee.'\n : `Verified subscriber-provided HTTPS callback. Subscribe through ${basePath}${options.mcpPath ?? '/mcp'} using MCP 2026-07-28. Standard Webhooks signatures, stable event IDs and bounded transient retries. No retry on 410/413; cursor:null means no historical replay.`,\n messages: { event: { $ref: `#/components/messages/${id}` } },\n 'x-openwa-transport': transport,\n ...(transport === 'sse' ? { servers: [{ $ref: '#/servers/easyApi' }], 'x-openwa-sse': { event: contract.name, contentType: 'text/event-stream', topics: contract.name } } : {}),\n ...(isMcp ? { 'x-openwa-subscription-schema': eventJsonSchema(contract.mcp!.inputSchema) } : {}),\n };\n operations[id] = { action: 'send', channel: { $ref: `#/channels/${id}` }, summary: `${contract.name} over ${transport}`, messages: [{ $ref: `#/channels/${id}/messages/event` }] };\n }\n }\n const origin = new URL(options.origin ?? 'http://localhost:8080');\n return {\n asyncapi: '3.1.0',\n info: { title: 'OpenWA events', version: options.version ?? '5.5.1', description: 'Initial public wire contracts for six runtime events. This is not an exhaustive list of internal lifecycle events. SSE and webhook policies differ; MCP provides compact summaries for three events.' },\n servers: { easyApi: { host: origin.host, protocol: origin.protocol.slice(0, -1), security: [{ $ref: '#/components/securitySchemes/apiKey' }] } },\n channels, operations,\n components: { schemas, messages, securitySchemes: { apiKey: { type: 'httpApiKey', name: 'X-API-Key', in: 'header', description: 'Easy API instance API key. Callback signing secrets are per subscription and are never included in this document.' } } },\n ...(options.mcpEnabled !== undefined ? { 'x-openwa-mcp-enabled': options.mcpEnabled } : {}),\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,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;GAAM,UAAU,OAAO,SAAS,MAAM,GAAG,EAAE;GAAG,UAAU,CAAC,EAAE,MAAM,sCAAsC,CAAC;EAAE,EAAE;EAC/I;EAAU;EACV,YAAY;GAAE;GAAS;GAAU,iBAAiB,EAAE,QAAQ;IAAE,MAAM;IAAc,MAAM;IAAa,IAAI;IAAU,aAAa;GAAoH,EAAE;EAAE;EACxP,GAAI,QAAQ,eAAe,KAAA,IAAY,EAAE,wBAAwB,QAAQ,WAAW,IAAI,CAAC;CAC3F;AACF;;;;;;;;;;ACjDA,MAAa,aAAaE,IAAAA,EAAE,KAAK;CAC7B;CACA;CACA;CACA;AACJ,CAAC;;;;;;;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"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as Call, $a as react, $i as setGroupDescription, $n as whatsappEvent, $o as HealthCheck, $r as getFeatures, $s as ClientConfig, $t as groupIdParam, A as EventInputSchema, Aa as unmuteChat, Ac as validateConfig, Ai as getCommunityAdmins, An as MessageIdCodecSchema, Ao as successResponseSchema, Ar as getEventResponses, As as ContactSchema, At as InteractiveHeader, B as EventUpdateSchema, Ba as forwardMessages, Bi as getAllGroups, Bn as fileToDataUrlCodec, Bo as CommunityAdminsSchema, Br as observeCallAudio, Bs as IdSchema, Bt as NativeActionSchema, C as MediaSendOptions, Ca as isChatOnline, Cc as SessionDataSchema, Ci as getStatus, Cn as ContactIdCodecSchema, Co as sendVideoAsGif, Cr as QueueOverloadStrategy, Cs as StorySchema, Ct as FormQuestionSchema, D as VoiceNoteOptions, Da as pinChat, Dc as ViewportSchema, Di as postVideoStatus, Dn as GroupIdSchema, Do as unstarMessage, Dr as cancelEvent, Ds as ChatSchema, Dt as InteractiveActionSchema, E as VideoSendOptionsSchema, Ea as muteChat, Ec as Viewport, Ei as postTextStatus, En as GroupIdCodecSchema, Eo as unpinMessage, Es as ChatId, Et as InteractiveAction, F as EventResponse, Fa as AlbumSendResultSchema, Fi as GroupInfoSchema, Fn as chatIdCodec, Fo as CommonGroup, Fr as clearCallAudio, Fs as GroupChatIdSchema, Ft as JsonValue, G as deserializeEventResponse, Ga as getMessagesForLLM, Gi as getGroupMembersId, Gn as isoDatetimeToDate, Go as CommunityParticipants, Gr as SendInteractiveInputSchema, Gs as MessageId, Gt as captionParam, H as WhatsAppEventSchema, Ha as getAllMessages, Hi as getGroupInfo, Hn as fileToTempPathCodec, Ho as CommunityMetadataSchema, Hr as setCallMedia, Hs as LocationSchema, Ht as ReplyActionSchema, I as EventResponseSchema, Ia as SendTextResultSchema, Ii as addParticipant, In as contactIdCodec, Io as CommonGroupSchema, Ir as endCall, Is as GroupId, It as JsonValueSchema, J as serializeWhatsAppEvent, Ja as getStarredMessages, Ji as leaveGroup, Jn as unixMillisToDate, Jo as ContactStatusSchema, Jr as sendRawMessage, Js as MessageSchema, Jt as contactIdParam, K as deserializeWhatsAppEvent, Ka as getMyLastMessage, Ki as getKickedGroups, Kn as jsonStringCodec, Ko as CommunityParticipantsSchema, Kr as SendRawMessageInputSchema, Ks as MessageIdReturn, Kt as chatIdParam, L as EventResponseType, La as StickerJobSchema, Li as approveGroupJoinRequest, Ln as createFileCodec, Lo as CommunityAdminIds, Lr as getActiveCall, Ls as GroupMetadata, Lt as LinkActionSchema, M as EventListOptionsSchema, Ma as AlbumMedia, Mi as getCommunityParticipantIds, Mn as UnixMillisToDateSchema, Mo as BusinessProfileSchema, Mr as respondToEvent, Ms as DataURL, Mt as InteractiveResponse, N as EventPage, Na as AlbumMediaSchema, Ni as getCommunityParticipants, Nn as UnixSecondsToDateSchema, No as CartItem, Nr as sendEvent, Ns as DataURLSchema, Nt as InteractiveResponseSchema, O as VoiceNoteOptionsSchema, Oa as setChatEphemeral, Oc as getDefaultConfig, Oi as getAllCommunities, On as HexColorSchema, Oo as voteOnPoll, Or as editEvent, Os as Contact, Ot as InteractiveContent, P as EventPageSchema, Pa as AlbumSendResult, Pi as GroupInfo, Pn as base64ToDataUrlCodec, Po as CartItemSchema, Pr as acceptCall, Ps as GroupChatId, Pt as JsonObjectSchema, Q as LicenseFeaturesSchema, Qa as pinMessage, Qi as revokeGroupInviteLink, Qn as eventResponseEvent, Qo as GroupCreationResultSchema, Qr as getConnectionState, Qs as SimpleListener, Qt as filenameParam, R as EventResponseTypeSchema, Ra as deleteMessage, Ri as createGroup, Rn as fileToBase64Codec, Ro as CommunityAdminIdsSchema, Rr as getCallCapabilities, Rs as GroupMetadataSchema, Rt as ListContentSchema, S as ImageSendOptionsSchema, Sa as getChatWithNonContacts, Sc as SessionData, Si as deleteStatus, Sn as ChatIdSchema, So as sendVCard, Sr as QueueOptionsSchema, Ss as Story, St as FormQuestion, T as VideoSendOptions, Ta as markAsUnread, Tc as StrictConfigSchema, Ti as postImageStatus, Tn as FileToDataUrlSchema, To as starMessage, Tr as eventRegistry, Ts as Chat, Tt as FormResponseSchema, U as decodeEventResponse, Ua as getMessageById, Ui as getGroupInviteLink, Un as groupIdCodec, Uo as CommunityParticipantIds, Ur as startCall, Us as Message, Ut as defineInteractiveMessage, V as WhatsAppEvent, Va as getAlbumMessages, Vi as getGroupAdmins, Vn as fileToStreamCodec, Vo as CommunityMetadata, Vr as rejectCall, Vs as Location, Vt as NativeContentSchema, W as decodeWhatsAppEvent, Wa as getMessageInfo, Wi as getGroupMembers, Wn as hexColorCodec, Wo as CommunityParticipantIdsSchema, Wr as stopCallAudioObserver, Ws as MessageAck, Wt as audioDataParam, X as validateEventUpdate, Xa as getVCards, Xi as rejectGroupJoinRequest, Xn as urlToDataUrlCodec, Xo as FeatureFlagsSchema, Xr as downloadMedia, Xs as SerializedMessageId, Xt as documentDataParam, Y as validateEventInput, Ya as getUnsentMessages, Yi as promoteParticipant, Yn as unixSecondsToDate, Yo as FeatureFlags, Yr as decryptMedia, Ys as MessageTypes, Yt as contentParam, Z as LicenseFeatures, Za as loadEarlierMessages, Zi as removeParticipant, Zn as pollVoteEvent, Zo as GroupCreationResult, Zr as getBatteryLevel, Zs as SerializedMessageIdSchema, Zt as fileDataParam, _ as AutoMediaSendOptionsSchema, _a as clearChat, _c as ProxyServerCredentials, _i as addLabel, _n as videoDataParam, _o as sendReplyWithMentions, _r as reactionEvent, _s as OrderSchema, _t as CallActionSchema, a as PinDuration, aa as checkNumberStatus, ac as Config, ai as getProcessStats, an as longitudeParam, ao as sendContact, ar as addedToGroupEvent, as as Label, at as CallEndReason, b as GifSendOptionsSchema, ba as getAllChats, bc as S3Sync, bi as removeLabel, bn as Base64ToDataUrlSchema, bo as sendText, br as EventStatus, bs as Product, bt as CopyActionSchema, c as PollResultsSchema, ca as getBlockedIds, cc as DeepPartialConfig, ci as getWAVersion, cn as messageIdsParam, co as sendImage, cr as chatStateEvent, cs as MessageInfo, ct as CallIdentitySchema, d as PollVote, da as getNumberProfile, dc as LoggingTransport, di as setMyName, dn as onlyLocalParam, do as sendLocation, dr as ackEvent, ds as MessageInteractionSchema, dt as CallSnapshot, ea as setGroupEditToAdminsOnly, ec as ClientConfigSchema, ei as getHostNumber, en as imageDataParam, eo as sendAdvancedButtons, er as callStateEvent, es as HealthCheckSchema, et as CallActionResult, f as PollVoteSchema, fa as getProfilePicture, fc as LoggingTransportSchema, fi as setMyStatus, fn as skipMyMessagesParam, fo as sendMessageWithThumb, fr as anyMessageEvent, fs as NumberCheck, ft as CallSnapshotSchema, g as AudioSendOptionsSchema, ga as archiveChat, gc as PartialConfigSchema, gi as getOrder, gn as userAgentParam, go as sendPtt, gr as messageEvent, gs as Order, gt as ButtonsContentSchema, h as AudioSendOptions, ha as unblockContact, hc as PartialConfig, hi as getBusinessProfile, hn as toParam, ho as sendPoll, hr as messageDeletedEvent, hs as NumberProfileSchema, ht as BookingContentSchema, i as SessionRefreshSnapshot, ia as blockContact, ic as CloudUploadOptionsSchema, ii as getMe, in as locationNameParam, io as sendButtons, ir as ParticipantChangeSchema, is as LLMMessageSchema, it as CallCapabilitiesSchema, j as EventListOptions, ja as unpinChat, ji as getCommunityInfo, jn as MessageIdSchema, jo as BusinessProfile, jr as getEvents, js as Content, jt as InteractiveHeaderSchema, k as EventInput, ka as unarchiveChat, kc as parseConfig, ki as getCommunityAdminIds, kn as IsoDatetimeToDateSchema, ko as outputJsonSchema, kr as getEvent, ks as ContactId, kt as InteractiveContentSchema, l as PollSendOptions, la as getCommonGroups, lc as DevTools, li as healthCheck, ln as messageOptionsParam, lo as sendLinkWithAutoPreview, lr as logoutEvent, ls as MessageInfoSchema, lt as CallMediaOptionsSchema, m as AudioAttachmentOptionsSchema, ma as sharePhoneNumber, mc as OnError, mi as getBusinessProducts, mn as stickerDataParam, mo as sendPaymentRequest, mr as interactiveResponseEvent, ms as NumberProfile, mt as RawAudioFormatSchema, n as SessionRefreshPhase, na as setGroupTitle, nc as CLOUD_PROVIDERS, ni as getLicenseType, nn as includeNotificationsParam, no as sendAudio, nr as ParticipantChange, ns as HostAccountSchema, nt as CallAudioObserver, o as PinDurationSchema, oa as checkReadReceipts, oc as ConfigSchema, oi as getSnapshot, on as mentionedJidListParam, oo as sendFile, or as participantsChangedEvent, os as LabelSchema, ot as CallEndReasonSchema, p as AudioAttachmentOptions, pa as requestPhoneNumber, pc as NotificationLanguage, pi as setProfilePicture, pn as statusTextParam, po as sendMultipleContacts, pr as formResponseEvent, ps as NumberCheckSchema, pt as MediaDescriptorSchema, q as serializeEventResponse, qa as getPollResults, qi as joinGroupViaLink, qn as messageIdCodec, qo as ContactStatus, qr as sendInteractive, qs as MessageIdReturnSchema, qt as communityIdParam, r as SessionRefreshResult, ra as setGroupToAdminsOnly, rc as CloudUploadOptions, ri as getLoadedMessageCount, rn as latitudeParam, ro as sendBanner, rr as ParticipantChangePatchSchema, rs as LLMMessage, rt as CallCapabilities, s as PollResults, sa as getAllContacts, sc as DIRECTORY_STRATEGY, si as getUserAgent, sn as messageIdParam, so as sendFileFromUrl, sr as StateEnum, ss as LicenseTypeSchema, st as CallIdentity, t as SessionRefreshOptions, ta as setGroupIcon, tc as migrateV4Config, ti as getLicenseFeatures, tn as includeMeParam, to as sendAlbum, tr as incomingCallEvent, ts as HostAccount, tt as CallActionResultSchema, u as PollSendOptionsSchema, ua as getContact, uc as DevToolsSchema, ui as isPlugged, un as nameParam, uo as sendListMessage, ur as stateChangedEvent, us as MessageInteraction, ut as CallReasonSchema, v as DocumentSendOptionsSchema, va as deleteChat, vc as ProxyServerCredentialsSchema, vi as getAllLabels, vn as waitForIdParam, vo as sendSeen, vr as EventDefinition, vs as ProcessStats, vt as CarouselCardSchema, w as MediaSendOptionsSchema, wa as markAsRead, wc as StrictConfig, wi as getStories, wn as ContactIdSchema, wo as sendYouTubeLink, wr as defineListenerV2, ws as Base64, wt as FormResponse, x as ImageSendOptions, xa as getChat, xc as S3SyncSchema, xi as deleteAllStatus, xn as ChatIdCodecSchema, xo as sendTextWithMentions, xr as QueueOptions, xs as ProductSchema, xt as FormContentSchema, y as GifSendOptions, ya as getAllChatIds, yc as QRFormat, yi as getChatsByLabel, yn as withNewMessagesOnlyParam, yo as sendSticker, yr as EventMetadata, ys as ProcessStatsSchema, yt as CarouselContentSchema, z as EventUpdate, za as editMessage, zi as demoteParticipant, zn as fileToBufferCodec, zo as CommunityAdmins, zr as muteCall, zs as Id, zt as ListRowSchema } from "./index-BWvNXopK.cjs";
|
|
1
|
+
import { $ as Call, $a as getMyLastMessage, $i as getKickedGroups, $n as EventContract, $o as CommunityParticipantsSchema, $r as SendRawMessageInputSchema, $s as MessageIdReturn, $t as groupIdParam, A as EventInputSchema, Aa as isChatOnline, Ac as SessionDataSchema, Ai as getStatus, An as MessageIdCodecSchema, Ao as sendVideoAsGif, Ar as QueueOverloadStrategy, As as StorySchema, At as InteractiveHeader, B as EventUpdateSchema, Ba as AlbumMediaSchema, Bi as getCommunityParticipants, Bn as fileToDataUrlCodec, Bo as CartItem, Br as sendEvent, Bs as DataURLSchema, Bt as NativeActionSchema, C as MediaSendOptions, Ca as archiveChat, Cc as PartialConfigSchema, Ci as getOrder, Cn as ContactIdCodecSchema, Co as sendPtt, Cr as messageEvent, Cs as Order, Ct as FormQuestionSchema, D as VoiceNoteOptions, Da as getAllChats, Dc as S3Sync, Di as removeLabel, Dn as GroupIdSchema, Do as sendText, Dr as EventStatus, Ds as Product, Dt as InteractiveActionSchema, E as VideoSendOptionsSchema, Ea as getAllChatIds, Ec as QRFormat, Ei as getChatsByLabel, En as GroupIdCodecSchema, Eo as sendSticker, Er as EventMetadata, Es as ProcessStatsSchema, Et as InteractiveAction, F as EventResponse, Fa as setChatEphemeral, Fc as getDefaultConfig, Fi as getAllCommunities, Fn as chatIdCodec, Fo as voteOnPoll, Fr as editEvent, Fs as Contact, Ft as JsonValue, G as deserializeEventResponse, Ga as deleteMessage, Gi as createGroup, Gn as isoDatetimeToDate, Go as CommunityAdminIdsSchema, Gr as getCallCapabilities, Gs as GroupMetadataSchema, Gt as captionParam, H as WhatsAppEventSchema, Ha as AlbumSendResultSchema, Hi as GroupInfoSchema, Hn as fileToTempPathCodec, Ho as CommonGroup, Hr as clearCallAudio, Hs as GroupChatIdSchema, Ht as ReplyActionSchema, I as EventResponseSchema, Ia as unarchiveChat, Ic as parseConfig, Ii as getCommunityAdminIds, In as contactIdCodec, Io as outputJsonSchema, Ir as getEvent, Is as ContactId, It as JsonValueSchema, J as serializeWhatsAppEvent, Ja as getAlbumMessages, Ji as getGroupAdmins, Jn as unixMillisToDate, Jo as CommunityMetadata, Jr as rejectCall, Js as Location, Jt as contactIdParam, K as deserializeWhatsAppEvent, Ka as editMessage, Ki as demoteParticipant, Kn as jsonStringCodec, Ko as CommunityAdmins, Kr as muteCall, Ks as Id, Kt as chatIdParam, L as EventResponseType, La as unmuteChat, Lc as validateConfig, Li as getCommunityAdmins, Ln as createFileCodec, Lo as successResponseSchema, Lr as getEventResponses, Ls as ContactSchema, Lt as LinkActionSchema, M as EventListOptionsSchema, Ma as markAsUnread, Mc as StrictConfigSchema, Mi as postImageStatus, Mn as UnixMillisToDateSchema, Mo as starMessage, Mr as eventRegistry, Ms as Chat, Mt as InteractiveResponse, N as EventPage, Na as muteChat, Nc as Viewport, Ni as postTextStatus, Nn as UnixSecondsToDateSchema, No as unpinMessage, Ns as ChatId, Nt as InteractiveResponseSchema, O as VoiceNoteOptionsSchema, Oa as getChat, Oc as S3SyncSchema, Oi as deleteAllStatus, On as HexColorSchema, Oo as sendTextWithMentions, Or as QueueOptions, Os as ProductSchema, Ot as InteractiveContent, P as EventPageSchema, Pa as pinChat, Pc as ViewportSchema, Pi as postVideoStatus, Pn as base64ToDataUrlCodec, Po as unstarMessage, Pr as cancelEvent, Ps as ChatSchema, Pt as JsonObjectSchema, Q as LicenseFeaturesSchema, Qa as getMessagesForLLM, Qi as getGroupMembersId, Qn as createAsyncApiDocument, Qo as CommunityParticipants, Qr as SendInteractiveInputSchema, Qs as MessageId, Qt as filenameParam, R as EventResponseTypeSchema, Ra as unpinChat, Ri as getCommunityInfo, Rn as fileToBase64Codec, Ro as BusinessProfile, Rr as getEvents, Rs as Content, Rt as ListContentSchema, S as ImageSendOptionsSchema, Sa as unblockContact, Sc as PartialConfig, Si as getBusinessProfile, Sn as ChatIdSchema, So as sendPoll, Sr as messageDeletedEvent, Ss as NumberProfileSchema, St as FormQuestion, T as VideoSendOptions, Ta as deleteChat, Tc as ProxyServerCredentialsSchema, Ti as getAllLabels, Tn as FileToDataUrlSchema, To as sendSeen, Tr as EventDefinition, Ts as ProcessStats, Tt as FormResponseSchema, U as decodeEventResponse, Ua as SendTextResultSchema, Ui as addParticipant, Un as groupIdCodec, Uo as CommonGroupSchema, Ur as endCall, Us as GroupId, Ut as defineInteractiveMessage, V as WhatsAppEvent, Va as AlbumSendResult, Vi as GroupInfo, Vn as fileToStreamCodec, Vo as CartItemSchema, Vr as acceptCall, Vs as GroupChatId, Vt as NativeContentSchema, W as decodeWhatsAppEvent, Wa as StickerJobSchema, Wi as approveGroupJoinRequest, Wn as hexColorCodec, Wo as CommunityAdminIds, Wr as getActiveCall, Ws as GroupMetadata, Wt as audioDataParam, X as validateEventUpdate, Xa as getMessageById, Xi as getGroupInviteLink, Xn as urlToDataUrlCodec, Xo as CommunityParticipantIds, Xr as startCall, Xs as Message, Xt as documentDataParam, Y as validateEventInput, Ya as getAllMessages, Yi as getGroupInfo, Yn as unixSecondsToDate, Yo as CommunityMetadataSchema, Yr as setCallMedia, Ys as LocationSchema, Yt as contentParam, Z as LicenseFeatures, Za as getMessageInfo, Zi as getGroupMembers, Zn as AsyncApiOptions, Zo as CommunityParticipantIdsSchema, Zr as stopCallAudioObserver, Zs as MessageAck, Zt as fileDataParam, _ as AutoMediaSendOptionsSchema, _a as getContact, _c as DevToolsSchema, _i as isPlugged, _n as videoDataParam, _o as sendListMessage, _r as stateChangedEvent, _s as MessageInteraction, _t as CallActionSchema, a as PinDuration, aa as revokeGroupInviteLink, ac as SimpleListener, ai as getConnectionState, an as longitudeParam, ao as pinMessage, ar as eventResponseEvent, as as GroupCreationResultSchema, at as CallEndReason, b as GifSendOptionsSchema, ba as requestPhoneNumber, bc as NotificationLanguage, bi as setProfilePicture, bn as Base64ToDataUrlSchema, bo as sendMultipleContacts, br as formResponseEvent, bs as NumberCheckSchema, bt as CopyActionSchema, c as PollResultsSchema, ca as setGroupIcon, cc as migrateV4Config, ci as getLicenseFeatures, cn as messageIdsParam, co as sendAlbum, cr as incomingCallEvent, cs as HostAccount, ct as CallIdentitySchema, d as PollVote, da as blockContact, dc as CloudUploadOptionsSchema, di as getMe, dn as onlyLocalParam, do as sendButtons, dr as ParticipantChangeSchema, ds as LLMMessageSchema, dt as CallSnapshot, ea as joinGroupViaLink, ec as MessageIdReturnSchema, ei as sendInteractive, en as imageDataParam, eo as getPollResults, er as eventContracts, es as ContactStatus, et as CallActionResult, f as PollVoteSchema, fa as checkNumberStatus, fc as Config, fi as getProcessStats, fn as skipMyMessagesParam, fo as sendContact, fr as addedToGroupEvent, fs as Label, ft as CallSnapshotSchema, g as AudioSendOptionsSchema, ga as getCommonGroups, gc as DevTools, gi as healthCheck, gn as userAgentParam, go as sendLinkWithAutoPreview, gr as logoutEvent, gs as MessageInfoSchema, gt as ButtonsContentSchema, h as AudioSendOptions, ha as getBlockedIds, hc as DeepPartialConfig, hi as getWAVersion, hn as toParam, ho as sendImage, hr as chatStateEvent, hs as MessageInfo, ht as BookingContentSchema, i as SessionRefreshSnapshot, ia as removeParticipant, ic as SerializedMessageIdSchema, ii as getBatteryLevel, in as locationNameParam, io as loadEarlierMessages, ir as pollVoteEvent, is as GroupCreationResult, it as CallCapabilitiesSchema, j as EventListOptions, ja as markAsRead, jc as StrictConfig, ji as getStories, jn as MessageIdSchema, jo as sendYouTubeLink, jr as defineListenerV2, js as Base64, jt as InteractiveHeaderSchema, k as EventInput, ka as getChatWithNonContacts, kc as SessionData, ki as deleteStatus, kn as IsoDatetimeToDateSchema, ko as sendVCard, kr as QueueOptionsSchema, ks as Story, kt as InteractiveContentSchema, l as PollSendOptions, la as setGroupTitle, lc as CLOUD_PROVIDERS, li as getLicenseType, ln as messageOptionsParam, lo as sendAudio, lr as ParticipantChange, ls as HostAccountSchema, lt as CallMediaOptionsSchema, m as AudioAttachmentOptionsSchema, ma as getAllContacts, mc as DIRECTORY_STRATEGY, mi as getUserAgent, mn as stickerDataParam, mo as sendFileFromUrl, mr as StateEnum, ms as LicenseTypeSchema, mt as RawAudioFormatSchema, n as SessionRefreshPhase, na as promoteParticipant, nc as MessageTypes, ni as decryptMedia, nn as includeNotificationsParam, no as getUnsentMessages, nr as getEventContract, ns as FeatureFlags, nt as CallAudioObserver, o as PinDurationSchema, oa as setGroupDescription, oc as ClientConfig, oi as getFeatures, on as mentionedJidListParam, oo as react, or as whatsappEvent, os as HealthCheck, ot as CallEndReasonSchema, p as AudioAttachmentOptions, pa as checkReadReceipts, pc as ConfigSchema, pi as getSnapshot, pn as statusTextParam, po as sendFile, pr as participantsChangedEvent, ps as LabelSchema, pt as MediaDescriptorSchema, q as serializeEventResponse, qa as forwardMessages, qi as getAllGroups, qn as messageIdCodec, qo as CommunityAdminsSchema, qr as observeCallAudio, qs as IdSchema, qt as communityIdParam, r as SessionRefreshResult, ra as rejectGroupJoinRequest, rc as SerializedMessageId, ri as downloadMedia, rn as latitudeParam, ro as getVCards, rr as getMcpEventDefinitions, rs as FeatureFlagsSchema, rt as CallCapabilities, s as PollResults, sa as setGroupEditToAdminsOnly, sc as ClientConfigSchema, si as getHostNumber, sn as messageIdParam, so as sendAdvancedButtons, sr as callStateEvent, ss as HealthCheckSchema, st as CallIdentity, t as SessionRefreshOptions, ta as leaveGroup, tc as MessageSchema, ti as sendRawMessage, tn as includeMeParam, to as getStarredMessages, tr as eventJsonSchema, ts as ContactStatusSchema, tt as CallActionResultSchema, u as PollSendOptionsSchema, ua as setGroupToAdminsOnly, uc as CloudUploadOptions, ui as getLoadedMessageCount, un as nameParam, uo as sendBanner, ur as ParticipantChangePatchSchema, us as LLMMessage, ut as CallReasonSchema, v as DocumentSendOptionsSchema, va as getNumberProfile, vc as LoggingTransport, vi as setMyName, vn as waitForIdParam, vo as sendLocation, vr as ackEvent, vs as MessageInteractionSchema, vt as CarouselCardSchema, w as MediaSendOptionsSchema, wa as clearChat, wc as ProxyServerCredentials, wi as addLabel, wn as ContactIdSchema, wo as sendReplyWithMentions, wr as reactionEvent, ws as OrderSchema, wt as FormResponse, x as ImageSendOptions, xa as sharePhoneNumber, xc as OnError, xi as getBusinessProducts, xn as ChatIdCodecSchema, xo as sendPaymentRequest, xr as interactiveResponseEvent, xs as NumberProfile, xt as FormContentSchema, y as GifSendOptions, ya as getProfilePicture, yc as LoggingTransportSchema, yi as setMyStatus, yn as withNewMessagesOnlyParam, yo as sendMessageWithThumb, yr as anyMessageEvent, ys as NumberCheck, yt as CarouselContentSchema, z as EventUpdate, za as AlbumMedia, zi as getCommunityParticipantIds, zn as fileToBufferCodec, zo as BusinessProfileSchema, zr as respondToEvent, zs as DataURL, zt as ListRowSchema } from "./index-Cl1bU6DB.cjs";
|
|
2
2
|
import { a as DEFAULT_CAM, c as MediaDescriptor, d as describeCallMediaFailure, f as normalizeCallMedia, g as encodeAudioPacket, h as decodeAudioPacket, i as CallingOptions, l as RawAudioFormat, m as AUDIO_WIRE_VERSION, n as AudioOutput, o as DEFAULT_MIC, p as AUDIO_FRAME_HEADER_BYTES, r as CallMediaOptions, s as DEFAULT_SPEAKER, t as AudioInput, u as VideoInput } from "./calling-media-CeGgSzhw.cjs";
|
|
3
3
|
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";
|
|
4
4
|
import { n as implementMethodAsync, t as implementMethod } from "./implementor-ACLHTHby.cjs";
|
|
5
|
-
export { AUDIO_FRAME_HEADER_BYTES, AUDIO_WIRE_VERSION, ActionEnum, ActionType, AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, AliasMetadata, AudioAttachmentOptions, AudioAttachmentOptionsSchema, AudioInput, AudioOutput, AudioSendOptions, AudioSendOptionsSchema, AutoMediaSendOptionsSchema, Base64, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfile, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, Call, CallActionResult, CallActionResultSchema, CallActionSchema, CallAudioObserver, CallCapabilities, CallCapabilitiesSchema, CallEndReason, CallEndReasonSchema, CallIdentity, CallIdentitySchema, CallMediaOptions, CallMediaOptionsSchema, CallReasonSchema, CallSnapshot, CallSnapshotSchema, CallingOptions, 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, DEFAULT_CAM, DEFAULT_MIC, DEFAULT_SPEAKER, DIRECTORY_STRATEGY, DataURL, DataURLSchema, type DeepPartialConfig, type DevTools, DevToolsSchema, DocumentSendOptionsSchema, EventDefinition, EventInput, EventInputSchema, EventListOptions, EventListOptionsSchema, EventMetadata, EventPage, EventPageSchema, EventResponse, EventResponseSchema, EventResponseType, EventResponseTypeSchema, EventStatus, EventUpdate, EventUpdateSchema, FeatureFlags, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GifSendOptions, GifSendOptionsSchema, GroupChatId, GroupChatIdSchema, GroupCreationResult, GroupCreationResultSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupInfo, GroupInfoSchema, GroupMetadata, GroupMetadataSchema, HealthCheck, HealthCheckSchema, HexColorSchema, HostAccount, HostAccountSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, ImageSendOptions, ImageSendOptionsSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LLMMessage, LLMMessageSchema, Label, LabelSchema, LicenseEnum, LicenseFeatures, LicenseFeaturesSchema, LicenseTier, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, MediaDescriptor, MediaDescriptorSchema, MediaSendOptions, MediaSendOptionsSchema, 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, ParticipantChange, ParticipantChangePatchSchema, ParticipantChangeSchema, PinDuration, PinDurationSchema, PollResults, PollResultsSchema, PollSendOptions, PollSendOptionsSchema, PollVote, PollVoteSchema, ProcessStats, ProcessStatsSchema, Product, ProductSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, RawAudioFormat, RawAudioFormatSchema, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageId, SerializedMessageIdSchema, type SessionData, SessionDataSchema, SessionRefreshOptions, SessionRefreshPhase, SessionRefreshResult, SessionRefreshSnapshot, SimpleListener, StateEnum, StickerJobSchema, Story, StorySchema, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, VideoInput, VideoSendOptions, VideoSendOptionsSchema, type Viewport, ViewportSchema, VoiceNoteOptions, VoiceNoteOptionsSchema, WhatsAppEvent, WhatsAppEventSchema, acceptCall, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, callStateEvent, cancelEvent, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decodeAudioPacket, decodeEventResponse, decodeWhatsAppEvent, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, describeCallMediaFailure, deserializeEventResponse, deserializeWhatsAppEvent, documentDataParam, downloadMedia, editEvent, editMessage, encodeAudioPacket, endCall, eventRegistry, eventResponseEvent, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getEvent, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, incomingCallEvent, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteCall, muteChat, nameParam, normalizeCallMedia, normalizeParameterKeys, observeCallAudio, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, pinMessage, pollVoteEvent, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, serializeEventResponse, serializeWhatsAppEvent, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, skipMyMessagesParam, starMessage, startCall, stateChangedEvent, statusTextParam, stickerDataParam, stopCallAudioObserver, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unpinMessage, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, validateEventInput, validateEventUpdate, videoDataParam, voteOnPoll, waitForIdParam, whatsappEvent, withNewMessagesOnlyParam, z, zObjectToTuple };
|
|
5
|
+
export { AUDIO_FRAME_HEADER_BYTES, AUDIO_WIRE_VERSION, ActionEnum, ActionType, AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, AliasMetadata, AsyncApiOptions, AudioAttachmentOptions, AudioAttachmentOptionsSchema, AudioInput, AudioOutput, AudioSendOptions, AudioSendOptionsSchema, AutoMediaSendOptionsSchema, Base64, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfile, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, Call, CallActionResult, CallActionResultSchema, CallActionSchema, CallAudioObserver, CallCapabilities, CallCapabilitiesSchema, CallEndReason, CallEndReasonSchema, CallIdentity, CallIdentitySchema, CallMediaOptions, CallMediaOptionsSchema, CallReasonSchema, CallSnapshot, CallSnapshotSchema, CallingOptions, 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, DEFAULT_CAM, DEFAULT_MIC, DEFAULT_SPEAKER, DIRECTORY_STRATEGY, DataURL, DataURLSchema, type DeepPartialConfig, type DevTools, DevToolsSchema, DocumentSendOptionsSchema, EventContract, EventDefinition, EventInput, EventInputSchema, EventListOptions, EventListOptionsSchema, EventMetadata, EventPage, EventPageSchema, EventResponse, EventResponseSchema, EventResponseType, EventResponseTypeSchema, EventStatus, EventUpdate, EventUpdateSchema, FeatureFlags, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GifSendOptions, GifSendOptionsSchema, GroupChatId, GroupChatIdSchema, GroupCreationResult, GroupCreationResultSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupInfo, GroupInfoSchema, GroupMetadata, GroupMetadataSchema, HealthCheck, HealthCheckSchema, HexColorSchema, HostAccount, HostAccountSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, ImageSendOptions, ImageSendOptionsSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LLMMessage, LLMMessageSchema, Label, LabelSchema, LicenseEnum, LicenseFeatures, LicenseFeaturesSchema, LicenseTier, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, MediaDescriptor, MediaDescriptorSchema, MediaSendOptions, MediaSendOptionsSchema, 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, ParticipantChange, ParticipantChangePatchSchema, ParticipantChangeSchema, PinDuration, PinDurationSchema, PollResults, PollResultsSchema, PollSendOptions, PollSendOptionsSchema, PollVote, PollVoteSchema, ProcessStats, ProcessStatsSchema, Product, ProductSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, RawAudioFormat, RawAudioFormatSchema, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageId, SerializedMessageIdSchema, type SessionData, SessionDataSchema, SessionRefreshOptions, SessionRefreshPhase, SessionRefreshResult, SessionRefreshSnapshot, SimpleListener, StateEnum, StickerJobSchema, Story, StorySchema, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, VideoInput, VideoSendOptions, VideoSendOptionsSchema, type Viewport, ViewportSchema, VoiceNoteOptions, VoiceNoteOptionsSchema, WhatsAppEvent, WhatsAppEventSchema, acceptCall, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, callStateEvent, cancelEvent, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createAsyncApiDocument, createFileCodec, createGroup, decodeAudioPacket, decodeEventResponse, decodeWhatsAppEvent, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, describeCallMediaFailure, deserializeEventResponse, deserializeWhatsAppEvent, documentDataParam, downloadMedia, editEvent, editMessage, encodeAudioPacket, endCall, eventContracts, eventJsonSchema, eventRegistry, eventResponseEvent, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getEvent, getEventContract, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMcpEventDefinitions, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, incomingCallEvent, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteCall, muteChat, nameParam, normalizeCallMedia, normalizeParameterKeys, observeCallAudio, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, pinMessage, pollVoteEvent, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, serializeEventResponse, serializeWhatsAppEvent, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, skipMyMessagesParam, starMessage, startCall, stateChangedEvent, statusTextParam, stickerDataParam, stopCallAudioObserver, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unpinMessage, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, validateEventInput, validateEventUpdate, videoDataParam, voteOnPoll, waitForIdParam, whatsappEvent, withNewMessagesOnlyParam, z, zObjectToTuple };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as Call, $a as react, $i as setGroupDescription, $n as whatsappEvent, $o as HealthCheck, $r as getFeatures, $s as ClientConfig, $t as groupIdParam, A as EventInputSchema, Aa as unmuteChat, Ac as validateConfig, Ai as getCommunityAdmins, An as MessageIdCodecSchema, Ao as successResponseSchema, Ar as getEventResponses, As as ContactSchema, At as InteractiveHeader, B as EventUpdateSchema, Ba as forwardMessages, Bi as getAllGroups, Bn as fileToDataUrlCodec, Bo as CommunityAdminsSchema, Br as observeCallAudio, Bs as IdSchema, Bt as NativeActionSchema, C as MediaSendOptions, Ca as isChatOnline, Cc as SessionDataSchema, Ci as getStatus, Cn as ContactIdCodecSchema, Co as sendVideoAsGif, Cr as QueueOverloadStrategy, Cs as StorySchema, Ct as FormQuestionSchema, D as VoiceNoteOptions, Da as pinChat, Dc as ViewportSchema, Di as postVideoStatus, Dn as GroupIdSchema, Do as unstarMessage, Dr as cancelEvent, Ds as ChatSchema, Dt as InteractiveActionSchema, E as VideoSendOptionsSchema, Ea as muteChat, Ec as Viewport, Ei as postTextStatus, En as GroupIdCodecSchema, Eo as unpinMessage, Es as ChatId, Et as InteractiveAction, F as EventResponse, Fa as AlbumSendResultSchema, Fi as GroupInfoSchema, Fn as chatIdCodec, Fo as CommonGroup, Fr as clearCallAudio, Fs as GroupChatIdSchema, Ft as JsonValue, G as deserializeEventResponse, Ga as getMessagesForLLM, Gi as getGroupMembersId, Gn as isoDatetimeToDate, Go as CommunityParticipants, Gr as SendInteractiveInputSchema, Gs as MessageId, Gt as captionParam, H as WhatsAppEventSchema, Ha as getAllMessages, Hi as getGroupInfo, Hn as fileToTempPathCodec, Ho as CommunityMetadataSchema, Hr as setCallMedia, Hs as LocationSchema, Ht as ReplyActionSchema, I as EventResponseSchema, Ia as SendTextResultSchema, Ii as addParticipant, In as contactIdCodec, Io as CommonGroupSchema, Ir as endCall, Is as GroupId, It as JsonValueSchema, J as serializeWhatsAppEvent, Ja as getStarredMessages, Ji as leaveGroup, Jn as unixMillisToDate, Jo as ContactStatusSchema, Jr as sendRawMessage, Js as MessageSchema, Jt as contactIdParam, K as deserializeWhatsAppEvent, Ka as getMyLastMessage, Ki as getKickedGroups, Kn as jsonStringCodec, Ko as CommunityParticipantsSchema, Kr as SendRawMessageInputSchema, Ks as MessageIdReturn, Kt as chatIdParam, L as EventResponseType, La as StickerJobSchema, Li as approveGroupJoinRequest, Ln as createFileCodec, Lo as CommunityAdminIds, Lr as getActiveCall, Ls as GroupMetadata, Lt as LinkActionSchema, M as EventListOptionsSchema, Ma as AlbumMedia, Mi as getCommunityParticipantIds, Mn as UnixMillisToDateSchema, Mo as BusinessProfileSchema, Mr as respondToEvent, Ms as DataURL, Mt as InteractiveResponse, N as EventPage, Na as AlbumMediaSchema, Ni as getCommunityParticipants, Nn as UnixSecondsToDateSchema, No as CartItem, Nr as sendEvent, Ns as DataURLSchema, Nt as InteractiveResponseSchema, O as VoiceNoteOptionsSchema, Oa as setChatEphemeral, Oc as getDefaultConfig, Oi as getAllCommunities, On as HexColorSchema, Oo as voteOnPoll, Or as editEvent, Os as Contact, Ot as InteractiveContent, P as EventPageSchema, Pa as AlbumSendResult, Pi as GroupInfo, Pn as base64ToDataUrlCodec, Po as CartItemSchema, Pr as acceptCall, Ps as GroupChatId, Pt as JsonObjectSchema, Q as LicenseFeaturesSchema, Qa as pinMessage, Qi as revokeGroupInviteLink, Qn as eventResponseEvent, Qo as GroupCreationResultSchema, Qr as getConnectionState, Qs as SimpleListener, Qt as filenameParam, R as EventResponseTypeSchema, Ra as deleteMessage, Ri as createGroup, Rn as fileToBase64Codec, Ro as CommunityAdminIdsSchema, Rr as getCallCapabilities, Rs as GroupMetadataSchema, Rt as ListContentSchema, S as ImageSendOptionsSchema, Sa as getChatWithNonContacts, Sc as SessionData, Si as deleteStatus, Sn as ChatIdSchema, So as sendVCard, Sr as QueueOptionsSchema, Ss as Story, St as FormQuestion, T as VideoSendOptions, Ta as markAsUnread, Tc as StrictConfigSchema, Ti as postImageStatus, Tn as FileToDataUrlSchema, To as starMessage, Tr as eventRegistry, Ts as Chat, Tt as FormResponseSchema, U as decodeEventResponse, Ua as getMessageById, Ui as getGroupInviteLink, Un as groupIdCodec, Uo as CommunityParticipantIds, Ur as startCall, Us as Message, Ut as defineInteractiveMessage, V as WhatsAppEvent, Va as getAlbumMessages, Vi as getGroupAdmins, Vn as fileToStreamCodec, Vo as CommunityMetadata, Vr as rejectCall, Vs as Location, Vt as NativeContentSchema, W as decodeWhatsAppEvent, Wa as getMessageInfo, Wi as getGroupMembers, Wn as hexColorCodec, Wo as CommunityParticipantIdsSchema, Wr as stopCallAudioObserver, Ws as MessageAck, Wt as audioDataParam, X as validateEventUpdate, Xa as getVCards, Xi as rejectGroupJoinRequest, Xn as urlToDataUrlCodec, Xo as FeatureFlagsSchema, Xr as downloadMedia, Xs as SerializedMessageId, Xt as documentDataParam, Y as validateEventInput, Ya as getUnsentMessages, Yi as promoteParticipant, Yn as unixSecondsToDate, Yo as FeatureFlags, Yr as decryptMedia, Ys as MessageTypes, Yt as contentParam, Z as LicenseFeatures, Za as loadEarlierMessages, Zi as removeParticipant, Zn as pollVoteEvent, Zo as GroupCreationResult, Zr as getBatteryLevel, Zs as SerializedMessageIdSchema, Zt as fileDataParam, _ as AutoMediaSendOptionsSchema, _a as clearChat, _c as ProxyServerCredentials, _i as addLabel, _n as videoDataParam, _o as sendReplyWithMentions, _r as reactionEvent, _s as OrderSchema, _t as CallActionSchema, a as PinDuration, aa as checkNumberStatus, ac as Config, ai as getProcessStats, an as longitudeParam, ao as sendContact, ar as addedToGroupEvent, as as Label, at as CallEndReason, b as GifSendOptionsSchema, ba as getAllChats, bc as S3Sync, bi as removeLabel, bn as Base64ToDataUrlSchema, bo as sendText, br as EventStatus, bs as Product, bt as CopyActionSchema, c as PollResultsSchema, ca as getBlockedIds, cc as DeepPartialConfig, ci as getWAVersion, cn as messageIdsParam, co as sendImage, cr as chatStateEvent, cs as MessageInfo, ct as CallIdentitySchema, d as PollVote, da as getNumberProfile, dc as LoggingTransport, di as setMyName, dn as onlyLocalParam, do as sendLocation, dr as ackEvent, ds as MessageInteractionSchema, dt as CallSnapshot, ea as setGroupEditToAdminsOnly, ec as ClientConfigSchema, ei as getHostNumber, en as imageDataParam, eo as sendAdvancedButtons, er as callStateEvent, es as HealthCheckSchema, et as CallActionResult, f as PollVoteSchema, fa as getProfilePicture, fc as LoggingTransportSchema, fi as setMyStatus, fn as skipMyMessagesParam, fo as sendMessageWithThumb, fr as anyMessageEvent, fs as NumberCheck, ft as CallSnapshotSchema, g as AudioSendOptionsSchema, ga as archiveChat, gc as PartialConfigSchema, gi as getOrder, gn as userAgentParam, go as sendPtt, gr as messageEvent, gs as Order, gt as ButtonsContentSchema, h as AudioSendOptions, ha as unblockContact, hc as PartialConfig, hi as getBusinessProfile, hn as toParam, ho as sendPoll, hr as messageDeletedEvent, hs as NumberProfileSchema, ht as BookingContentSchema, i as SessionRefreshSnapshot, ia as blockContact, ic as CloudUploadOptionsSchema, ii as getMe, in as locationNameParam, io as sendButtons, ir as ParticipantChangeSchema, is as LLMMessageSchema, it as CallCapabilitiesSchema, j as EventListOptions, ja as unpinChat, ji as getCommunityInfo, jn as MessageIdSchema, jo as BusinessProfile, jr as getEvents, js as Content, jt as InteractiveHeaderSchema, k as EventInput, ka as unarchiveChat, kc as parseConfig, ki as getCommunityAdminIds, kn as IsoDatetimeToDateSchema, ko as outputJsonSchema, kr as getEvent, ks as ContactId, kt as InteractiveContentSchema, l as PollSendOptions, la as getCommonGroups, lc as DevTools, li as healthCheck, ln as messageOptionsParam, lo as sendLinkWithAutoPreview, lr as logoutEvent, ls as MessageInfoSchema, lt as CallMediaOptionsSchema, m as AudioAttachmentOptionsSchema, ma as sharePhoneNumber, mc as OnError, mi as getBusinessProducts, mn as stickerDataParam, mo as sendPaymentRequest, mr as interactiveResponseEvent, ms as NumberProfile, mt as RawAudioFormatSchema, n as SessionRefreshPhase, na as setGroupTitle, nc as CLOUD_PROVIDERS, ni as getLicenseType, nn as includeNotificationsParam, no as sendAudio, nr as ParticipantChange, ns as HostAccountSchema, nt as CallAudioObserver, o as PinDurationSchema, oa as checkReadReceipts, oc as ConfigSchema, oi as getSnapshot, on as mentionedJidListParam, oo as sendFile, or as participantsChangedEvent, os as LabelSchema, ot as CallEndReasonSchema, p as AudioAttachmentOptions, pa as requestPhoneNumber, pc as NotificationLanguage, pi as setProfilePicture, pn as statusTextParam, po as sendMultipleContacts, pr as formResponseEvent, ps as NumberCheckSchema, pt as MediaDescriptorSchema, q as serializeEventResponse, qa as getPollResults, qi as joinGroupViaLink, qn as messageIdCodec, qo as ContactStatus, qr as sendInteractive, qs as MessageIdReturnSchema, qt as communityIdParam, r as SessionRefreshResult, ra as setGroupToAdminsOnly, rc as CloudUploadOptions, ri as getLoadedMessageCount, rn as latitudeParam, ro as sendBanner, rr as ParticipantChangePatchSchema, rs as LLMMessage, rt as CallCapabilities, s as PollResults, sa as getAllContacts, sc as DIRECTORY_STRATEGY, si as getUserAgent, sn as messageIdParam, so as sendFileFromUrl, sr as StateEnum, ss as LicenseTypeSchema, st as CallIdentity, t as SessionRefreshOptions, ta as setGroupIcon, tc as migrateV4Config, ti as getLicenseFeatures, tn as includeMeParam, to as sendAlbum, tr as incomingCallEvent, ts as HostAccount, tt as CallActionResultSchema, u as PollSendOptionsSchema, ua as getContact, uc as DevToolsSchema, ui as isPlugged, un as nameParam, uo as sendListMessage, ur as stateChangedEvent, us as MessageInteraction, ut as CallReasonSchema, v as DocumentSendOptionsSchema, va as deleteChat, vc as ProxyServerCredentialsSchema, vi as getAllLabels, vn as waitForIdParam, vo as sendSeen, vr as EventDefinition, vs as ProcessStats, vt as CarouselCardSchema, w as MediaSendOptionsSchema, wa as markAsRead, wc as StrictConfig, wi as getStories, wn as ContactIdSchema, wo as sendYouTubeLink, wr as defineListenerV2, ws as Base64, wt as FormResponse, x as ImageSendOptions, xa as getChat, xc as S3SyncSchema, xi as deleteAllStatus, xn as ChatIdCodecSchema, xo as sendTextWithMentions, xr as QueueOptions, xs as ProductSchema, xt as FormContentSchema, y as GifSendOptions, ya as getAllChatIds, yc as QRFormat, yi as getChatsByLabel, yn as withNewMessagesOnlyParam, yo as sendSticker, yr as EventMetadata, ys as ProcessStatsSchema, yt as CarouselContentSchema, z as EventUpdate, za as editMessage, zi as demoteParticipant, zn as fileToBufferCodec, zo as CommunityAdmins, zr as muteCall, zs as Id, zt as ListRowSchema } from "./index-Co8HQxm8.mjs";
|
|
1
|
+
import { $ as Call, $a as getMyLastMessage, $i as getKickedGroups, $n as EventContract, $o as CommunityParticipantsSchema, $r as SendRawMessageInputSchema, $s as MessageIdReturn, $t as groupIdParam, A as EventInputSchema, Aa as isChatOnline, Ac as SessionDataSchema, Ai as getStatus, An as MessageIdCodecSchema, Ao as sendVideoAsGif, Ar as QueueOverloadStrategy, As as StorySchema, At as InteractiveHeader, B as EventUpdateSchema, Ba as AlbumMediaSchema, Bi as getCommunityParticipants, Bn as fileToDataUrlCodec, Bo as CartItem, Br as sendEvent, Bs as DataURLSchema, Bt as NativeActionSchema, C as MediaSendOptions, Ca as archiveChat, Cc as PartialConfigSchema, Ci as getOrder, Cn as ContactIdCodecSchema, Co as sendPtt, Cr as messageEvent, Cs as Order, Ct as FormQuestionSchema, D as VoiceNoteOptions, Da as getAllChats, Dc as S3Sync, Di as removeLabel, Dn as GroupIdSchema, Do as sendText, Dr as EventStatus, Ds as Product, Dt as InteractiveActionSchema, E as VideoSendOptionsSchema, Ea as getAllChatIds, Ec as QRFormat, Ei as getChatsByLabel, En as GroupIdCodecSchema, Eo as sendSticker, Er as EventMetadata, Es as ProcessStatsSchema, Et as InteractiveAction, F as EventResponse, Fa as setChatEphemeral, Fc as getDefaultConfig, Fi as getAllCommunities, Fn as chatIdCodec, Fo as voteOnPoll, Fr as editEvent, Fs as Contact, Ft as JsonValue, G as deserializeEventResponse, Ga as deleteMessage, Gi as createGroup, Gn as isoDatetimeToDate, Go as CommunityAdminIdsSchema, Gr as getCallCapabilities, Gs as GroupMetadataSchema, Gt as captionParam, H as WhatsAppEventSchema, Ha as AlbumSendResultSchema, Hi as GroupInfoSchema, Hn as fileToTempPathCodec, Ho as CommonGroup, Hr as clearCallAudio, Hs as GroupChatIdSchema, Ht as ReplyActionSchema, I as EventResponseSchema, Ia as unarchiveChat, Ic as parseConfig, Ii as getCommunityAdminIds, In as contactIdCodec, Io as outputJsonSchema, Ir as getEvent, Is as ContactId, It as JsonValueSchema, J as serializeWhatsAppEvent, Ja as getAlbumMessages, Ji as getGroupAdmins, Jn as unixMillisToDate, Jo as CommunityMetadata, Jr as rejectCall, Js as Location, Jt as contactIdParam, K as deserializeWhatsAppEvent, Ka as editMessage, Ki as demoteParticipant, Kn as jsonStringCodec, Ko as CommunityAdmins, Kr as muteCall, Ks as Id, Kt as chatIdParam, L as EventResponseType, La as unmuteChat, Lc as validateConfig, Li as getCommunityAdmins, Ln as createFileCodec, Lo as successResponseSchema, Lr as getEventResponses, Ls as ContactSchema, Lt as LinkActionSchema, M as EventListOptionsSchema, Ma as markAsUnread, Mc as StrictConfigSchema, Mi as postImageStatus, Mn as UnixMillisToDateSchema, Mo as starMessage, Mr as eventRegistry, Ms as Chat, Mt as InteractiveResponse, N as EventPage, Na as muteChat, Nc as Viewport, Ni as postTextStatus, Nn as UnixSecondsToDateSchema, No as unpinMessage, Ns as ChatId, Nt as InteractiveResponseSchema, O as VoiceNoteOptionsSchema, Oa as getChat, Oc as S3SyncSchema, Oi as deleteAllStatus, On as HexColorSchema, Oo as sendTextWithMentions, Or as QueueOptions, Os as ProductSchema, Ot as InteractiveContent, P as EventPageSchema, Pa as pinChat, Pc as ViewportSchema, Pi as postVideoStatus, Pn as base64ToDataUrlCodec, Po as unstarMessage, Pr as cancelEvent, Ps as ChatSchema, Pt as JsonObjectSchema, Q as LicenseFeaturesSchema, Qa as getMessagesForLLM, Qi as getGroupMembersId, Qn as createAsyncApiDocument, Qo as CommunityParticipants, Qr as SendInteractiveInputSchema, Qs as MessageId, Qt as filenameParam, R as EventResponseTypeSchema, Ra as unpinChat, Ri as getCommunityInfo, Rn as fileToBase64Codec, Ro as BusinessProfile, Rr as getEvents, Rs as Content, Rt as ListContentSchema, S as ImageSendOptionsSchema, Sa as unblockContact, Sc as PartialConfig, Si as getBusinessProfile, Sn as ChatIdSchema, So as sendPoll, Sr as messageDeletedEvent, Ss as NumberProfileSchema, St as FormQuestion, T as VideoSendOptions, Ta as deleteChat, Tc as ProxyServerCredentialsSchema, Ti as getAllLabels, Tn as FileToDataUrlSchema, To as sendSeen, Tr as EventDefinition, Ts as ProcessStats, Tt as FormResponseSchema, U as decodeEventResponse, Ua as SendTextResultSchema, Ui as addParticipant, Un as groupIdCodec, Uo as CommonGroupSchema, Ur as endCall, Us as GroupId, Ut as defineInteractiveMessage, V as WhatsAppEvent, Va as AlbumSendResult, Vi as GroupInfo, Vn as fileToStreamCodec, Vo as CartItemSchema, Vr as acceptCall, Vs as GroupChatId, Vt as NativeContentSchema, W as decodeWhatsAppEvent, Wa as StickerJobSchema, Wi as approveGroupJoinRequest, Wn as hexColorCodec, Wo as CommunityAdminIds, Wr as getActiveCall, Ws as GroupMetadata, Wt as audioDataParam, X as validateEventUpdate, Xa as getMessageById, Xi as getGroupInviteLink, Xn as urlToDataUrlCodec, Xo as CommunityParticipantIds, Xr as startCall, Xs as Message, Xt as documentDataParam, Y as validateEventInput, Ya as getAllMessages, Yi as getGroupInfo, Yn as unixSecondsToDate, Yo as CommunityMetadataSchema, Yr as setCallMedia, Ys as LocationSchema, Yt as contentParam, Z as LicenseFeatures, Za as getMessageInfo, Zi as getGroupMembers, Zn as AsyncApiOptions, Zo as CommunityParticipantIdsSchema, Zr as stopCallAudioObserver, Zs as MessageAck, Zt as fileDataParam, _ as AutoMediaSendOptionsSchema, _a as getContact, _c as DevToolsSchema, _i as isPlugged, _n as videoDataParam, _o as sendListMessage, _r as stateChangedEvent, _s as MessageInteraction, _t as CallActionSchema, a as PinDuration, aa as revokeGroupInviteLink, ac as SimpleListener, ai as getConnectionState, an as longitudeParam, ao as pinMessage, ar as eventResponseEvent, as as GroupCreationResultSchema, at as CallEndReason, b as GifSendOptionsSchema, ba as requestPhoneNumber, bc as NotificationLanguage, bi as setProfilePicture, bn as Base64ToDataUrlSchema, bo as sendMultipleContacts, br as formResponseEvent, bs as NumberCheckSchema, bt as CopyActionSchema, c as PollResultsSchema, ca as setGroupIcon, cc as migrateV4Config, ci as getLicenseFeatures, cn as messageIdsParam, co as sendAlbum, cr as incomingCallEvent, cs as HostAccount, ct as CallIdentitySchema, d as PollVote, da as blockContact, dc as CloudUploadOptionsSchema, di as getMe, dn as onlyLocalParam, do as sendButtons, dr as ParticipantChangeSchema, ds as LLMMessageSchema, dt as CallSnapshot, ea as joinGroupViaLink, ec as MessageIdReturnSchema, ei as sendInteractive, en as imageDataParam, eo as getPollResults, er as eventContracts, es as ContactStatus, et as CallActionResult, f as PollVoteSchema, fa as checkNumberStatus, fc as Config, fi as getProcessStats, fn as skipMyMessagesParam, fo as sendContact, fr as addedToGroupEvent, fs as Label, ft as CallSnapshotSchema, g as AudioSendOptionsSchema, ga as getCommonGroups, gc as DevTools, gi as healthCheck, gn as userAgentParam, go as sendLinkWithAutoPreview, gr as logoutEvent, gs as MessageInfoSchema, gt as ButtonsContentSchema, h as AudioSendOptions, ha as getBlockedIds, hc as DeepPartialConfig, hi as getWAVersion, hn as toParam, ho as sendImage, hr as chatStateEvent, hs as MessageInfo, ht as BookingContentSchema, i as SessionRefreshSnapshot, ia as removeParticipant, ic as SerializedMessageIdSchema, ii as getBatteryLevel, in as locationNameParam, io as loadEarlierMessages, ir as pollVoteEvent, is as GroupCreationResult, it as CallCapabilitiesSchema, j as EventListOptions, ja as markAsRead, jc as StrictConfig, ji as getStories, jn as MessageIdSchema, jo as sendYouTubeLink, jr as defineListenerV2, js as Base64, jt as InteractiveHeaderSchema, k as EventInput, ka as getChatWithNonContacts, kc as SessionData, ki as deleteStatus, kn as IsoDatetimeToDateSchema, ko as sendVCard, kr as QueueOptionsSchema, ks as Story, kt as InteractiveContentSchema, l as PollSendOptions, la as setGroupTitle, lc as CLOUD_PROVIDERS, li as getLicenseType, ln as messageOptionsParam, lo as sendAudio, lr as ParticipantChange, ls as HostAccountSchema, lt as CallMediaOptionsSchema, m as AudioAttachmentOptionsSchema, ma as getAllContacts, mc as DIRECTORY_STRATEGY, mi as getUserAgent, mn as stickerDataParam, mo as sendFileFromUrl, mr as StateEnum, ms as LicenseTypeSchema, mt as RawAudioFormatSchema, n as SessionRefreshPhase, na as promoteParticipant, nc as MessageTypes, ni as decryptMedia, nn as includeNotificationsParam, no as getUnsentMessages, nr as getEventContract, ns as FeatureFlags, nt as CallAudioObserver, o as PinDurationSchema, oa as setGroupDescription, oc as ClientConfig, oi as getFeatures, on as mentionedJidListParam, oo as react, or as whatsappEvent, os as HealthCheck, ot as CallEndReasonSchema, p as AudioAttachmentOptions, pa as checkReadReceipts, pc as ConfigSchema, pi as getSnapshot, pn as statusTextParam, po as sendFile, pr as participantsChangedEvent, ps as LabelSchema, pt as MediaDescriptorSchema, q as serializeEventResponse, qa as forwardMessages, qi as getAllGroups, qn as messageIdCodec, qo as CommunityAdminsSchema, qr as observeCallAudio, qs as IdSchema, qt as communityIdParam, r as SessionRefreshResult, ra as rejectGroupJoinRequest, rc as SerializedMessageId, ri as downloadMedia, rn as latitudeParam, ro as getVCards, rr as getMcpEventDefinitions, rs as FeatureFlagsSchema, rt as CallCapabilities, s as PollResults, sa as setGroupEditToAdminsOnly, sc as ClientConfigSchema, si as getHostNumber, sn as messageIdParam, so as sendAdvancedButtons, sr as callStateEvent, ss as HealthCheckSchema, st as CallIdentity, t as SessionRefreshOptions, ta as leaveGroup, tc as MessageSchema, ti as sendRawMessage, tn as includeMeParam, to as getStarredMessages, tr as eventJsonSchema, ts as ContactStatusSchema, tt as CallActionResultSchema, u as PollSendOptionsSchema, ua as setGroupToAdminsOnly, uc as CloudUploadOptions, ui as getLoadedMessageCount, un as nameParam, uo as sendBanner, ur as ParticipantChangePatchSchema, us as LLMMessage, ut as CallReasonSchema, v as DocumentSendOptionsSchema, va as getNumberProfile, vc as LoggingTransport, vi as setMyName, vn as waitForIdParam, vo as sendLocation, vr as ackEvent, vs as MessageInteractionSchema, vt as CarouselCardSchema, w as MediaSendOptionsSchema, wa as clearChat, wc as ProxyServerCredentials, wi as addLabel, wn as ContactIdSchema, wo as sendReplyWithMentions, wr as reactionEvent, ws as OrderSchema, wt as FormResponse, x as ImageSendOptions, xa as sharePhoneNumber, xc as OnError, xi as getBusinessProducts, xn as ChatIdCodecSchema, xo as sendPaymentRequest, xr as interactiveResponseEvent, xs as NumberProfile, xt as FormContentSchema, y as GifSendOptions, ya as getProfilePicture, yc as LoggingTransportSchema, yi as setMyStatus, yn as withNewMessagesOnlyParam, yo as sendMessageWithThumb, yr as anyMessageEvent, ys as NumberCheck, yt as CarouselContentSchema, z as EventUpdate, za as AlbumMedia, zi as getCommunityParticipantIds, zn as fileToBufferCodec, zo as BusinessProfileSchema, zr as respondToEvent, zs as DataURL, zt as ListRowSchema } from "./index-DOca1sBu.mjs";
|
|
2
2
|
import { a as DEFAULT_CAM, c as MediaDescriptor, d as describeCallMediaFailure, f as normalizeCallMedia, g as encodeAudioPacket, h as decodeAudioPacket, i as CallingOptions, l as RawAudioFormat, m as AUDIO_WIRE_VERSION, n as AudioOutput, o as DEFAULT_MIC, p as AUDIO_FRAME_HEADER_BYTES, r as CallMediaOptions, s as DEFAULT_SPEAKER, t as AudioInput, u as VideoInput } from "./calling-media-CeGgSzhw.mjs";
|
|
3
3
|
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";
|
|
4
4
|
import { n as implementMethodAsync, t as implementMethod } from "./implementor-ACLHTHby.mjs";
|
|
5
|
-
export { AUDIO_FRAME_HEADER_BYTES, AUDIO_WIRE_VERSION, ActionEnum, ActionType, AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, AliasMetadata, AudioAttachmentOptions, AudioAttachmentOptionsSchema, AudioInput, AudioOutput, AudioSendOptions, AudioSendOptionsSchema, AutoMediaSendOptionsSchema, Base64, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfile, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, Call, CallActionResult, CallActionResultSchema, CallActionSchema, CallAudioObserver, CallCapabilities, CallCapabilitiesSchema, CallEndReason, CallEndReasonSchema, CallIdentity, CallIdentitySchema, CallMediaOptions, CallMediaOptionsSchema, CallReasonSchema, CallSnapshot, CallSnapshotSchema, CallingOptions, 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, DEFAULT_CAM, DEFAULT_MIC, DEFAULT_SPEAKER, DIRECTORY_STRATEGY, DataURL, DataURLSchema, type DeepPartialConfig, type DevTools, DevToolsSchema, DocumentSendOptionsSchema, EventDefinition, EventInput, EventInputSchema, EventListOptions, EventListOptionsSchema, EventMetadata, EventPage, EventPageSchema, EventResponse, EventResponseSchema, EventResponseType, EventResponseTypeSchema, EventStatus, EventUpdate, EventUpdateSchema, FeatureFlags, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GifSendOptions, GifSendOptionsSchema, GroupChatId, GroupChatIdSchema, GroupCreationResult, GroupCreationResultSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupInfo, GroupInfoSchema, GroupMetadata, GroupMetadataSchema, HealthCheck, HealthCheckSchema, HexColorSchema, HostAccount, HostAccountSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, ImageSendOptions, ImageSendOptionsSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LLMMessage, LLMMessageSchema, Label, LabelSchema, LicenseEnum, LicenseFeatures, LicenseFeaturesSchema, LicenseTier, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, MediaDescriptor, MediaDescriptorSchema, MediaSendOptions, MediaSendOptionsSchema, 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, ParticipantChange, ParticipantChangePatchSchema, ParticipantChangeSchema, PinDuration, PinDurationSchema, PollResults, PollResultsSchema, PollSendOptions, PollSendOptionsSchema, PollVote, PollVoteSchema, ProcessStats, ProcessStatsSchema, Product, ProductSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, RawAudioFormat, RawAudioFormatSchema, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageId, SerializedMessageIdSchema, type SessionData, SessionDataSchema, SessionRefreshOptions, SessionRefreshPhase, SessionRefreshResult, SessionRefreshSnapshot, SimpleListener, StateEnum, StickerJobSchema, Story, StorySchema, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, VideoInput, VideoSendOptions, VideoSendOptionsSchema, type Viewport, ViewportSchema, VoiceNoteOptions, VoiceNoteOptionsSchema, WhatsAppEvent, WhatsAppEventSchema, acceptCall, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, callStateEvent, cancelEvent, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decodeAudioPacket, decodeEventResponse, decodeWhatsAppEvent, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, describeCallMediaFailure, deserializeEventResponse, deserializeWhatsAppEvent, documentDataParam, downloadMedia, editEvent, editMessage, encodeAudioPacket, endCall, eventRegistry, eventResponseEvent, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getEvent, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, incomingCallEvent, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteCall, muteChat, nameParam, normalizeCallMedia, normalizeParameterKeys, observeCallAudio, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, pinMessage, pollVoteEvent, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, serializeEventResponse, serializeWhatsAppEvent, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, skipMyMessagesParam, starMessage, startCall, stateChangedEvent, statusTextParam, stickerDataParam, stopCallAudioObserver, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unpinMessage, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, validateEventInput, validateEventUpdate, videoDataParam, voteOnPoll, waitForIdParam, whatsappEvent, withNewMessagesOnlyParam, z, zObjectToTuple };
|
|
5
|
+
export { AUDIO_FRAME_HEADER_BYTES, AUDIO_WIRE_VERSION, ActionEnum, ActionType, AlbumMedia, AlbumMediaSchema, AlbumSendResult, AlbumSendResultSchema, AliasMetadata, AsyncApiOptions, AudioAttachmentOptions, AudioAttachmentOptionsSchema, AudioInput, AudioOutput, AudioSendOptions, AudioSendOptionsSchema, AutoMediaSendOptionsSchema, Base64, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfile, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, Call, CallActionResult, CallActionResultSchema, CallActionSchema, CallAudioObserver, CallCapabilities, CallCapabilitiesSchema, CallEndReason, CallEndReasonSchema, CallIdentity, CallIdentitySchema, CallMediaOptions, CallMediaOptionsSchema, CallReasonSchema, CallSnapshot, CallSnapshotSchema, CallingOptions, 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, DEFAULT_CAM, DEFAULT_MIC, DEFAULT_SPEAKER, DIRECTORY_STRATEGY, DataURL, DataURLSchema, type DeepPartialConfig, type DevTools, DevToolsSchema, DocumentSendOptionsSchema, EventContract, EventDefinition, EventInput, EventInputSchema, EventListOptions, EventListOptionsSchema, EventMetadata, EventPage, EventPageSchema, EventResponse, EventResponseSchema, EventResponseType, EventResponseTypeSchema, EventStatus, EventUpdate, EventUpdateSchema, FeatureFlags, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestion, FormQuestionSchema, FormResponse, FormResponseSchema, FunctionalityEnum, FunctionalityScope, GifSendOptions, GifSendOptionsSchema, GroupChatId, GroupChatIdSchema, GroupCreationResult, GroupCreationResultSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupInfo, GroupInfoSchema, GroupMetadata, GroupMetadataSchema, HealthCheck, HealthCheckSchema, HexColorSchema, HostAccount, HostAccountSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, ImageSendOptions, ImageSendOptionsSchema, InferInput, InferOutput, InteractiveAction, InteractiveActionSchema, InteractiveContent, InteractiveContentSchema, InteractiveHeader, InteractiveHeaderSchema, InteractiveResponse, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValue, JsonValueSchema, LLMMessage, LLMMessageSchema, Label, LabelSchema, LicenseEnum, LicenseFeatures, LicenseFeaturesSchema, LicenseTier, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, Location, LocationSchema, type LoggingTransport, LoggingTransportSchema, MediaDescriptor, MediaDescriptorSchema, MediaSendOptions, MediaSendOptionsSchema, 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, ParticipantChange, ParticipantChangePatchSchema, ParticipantChangeSchema, PinDuration, PinDurationSchema, PollResults, PollResultsSchema, PollSendOptions, PollSendOptionsSchema, PollVote, PollVoteSchema, ProcessStats, ProcessStatsSchema, Product, ProductSchema, type ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, QueueOverloadStrategy, RawAudioFormat, RawAudioFormatSchema, Registry, ReplyActionSchema, type S3Sync, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageId, SerializedMessageIdSchema, type SessionData, SessionDataSchema, SessionRefreshOptions, SessionRefreshPhase, SessionRefreshResult, SessionRefreshSnapshot, SimpleListener, StateEnum, StickerJobSchema, Story, StorySchema, type StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, VideoInput, VideoSendOptions, VideoSendOptionsSchema, type Viewport, ViewportSchema, VoiceNoteOptions, VoiceNoteOptionsSchema, WhatsAppEvent, WhatsAppEventSchema, acceptCall, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, callStateEvent, cancelEvent, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createAsyncApiDocument, createFileCodec, createGroup, decodeAudioPacket, decodeEventResponse, decodeWhatsAppEvent, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, describeCallMediaFailure, deserializeEventResponse, deserializeWhatsAppEvent, documentDataParam, downloadMedia, editEvent, editMessage, encodeAudioPacket, endCall, eventContracts, eventJsonSchema, eventRegistry, eventResponseEvent, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getEvent, getEventContract, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMcpEventDefinitions, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, incomingCallEvent, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteCall, muteChat, nameParam, normalizeCallMedia, normalizeParameterKeys, observeCallAudio, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, pinMessage, pollVoteEvent, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, serializeEventResponse, serializeWhatsAppEvent, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, skipMyMessagesParam, starMessage, startCall, stateChangedEvent, statusTextParam, stickerDataParam, stopCallAudioObserver, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unpinMessage, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, validateEventInput, validateEventUpdate, videoDataParam, voteOnPoll, waitForIdParam, whatsappEvent, withNewMessagesOnlyParam, z, zObjectToTuple };
|