@open-wa/schema 5.0.0-alpha.2 → 5.0.0-alpha.3
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.cjs +598 -0
- package/dist/generated/index.cjs.map +1 -0
- package/dist/generated/index.d.cts +3674 -0
- package/dist/generated/index.d.cts.map +1 -0
- package/dist/generated/index.d.mts +3674 -0
- package/dist/generated/index.d.mts.map +1 -0
- package/dist/generated/index.mjs +595 -0
- package/dist/generated/index.mjs.map +1 -0
- package/dist/http-manifest-BlJWPKsp.d.mts +177 -0
- package/dist/http-manifest-BlJWPKsp.d.mts.map +1 -0
- package/dist/http-manifest-DCOVY9QZ.d.cts +177 -0
- package/dist/http-manifest-DCOVY9QZ.d.cts.map +1 -0
- package/dist/http-manifest.cjs +59 -0
- package/dist/http-manifest.cjs.map +1 -0
- package/dist/http-manifest.d.cts +2 -0
- package/dist/http-manifest.d.mts +2 -0
- package/dist/http-manifest.mjs +58 -0
- package/dist/http-manifest.mjs.map +1 -0
- package/dist/implementor-DIBNbQXA.d.cts +8 -0
- package/dist/implementor-DIBNbQXA.d.cts.map +1 -0
- package/dist/implementor-DoN9ga7C.d.mts +8 -0
- package/dist/implementor-DoN9ga7C.d.mts.map +1 -0
- package/dist/implementor.cjs +50 -0
- package/dist/implementor.cjs.map +1 -0
- package/dist/implementor.d.cts +2 -0
- package/dist/implementor.d.mts +2 -0
- package/dist/implementor.mjs +48 -0
- package/dist/implementor.mjs.map +1 -0
- package/dist/index-BB9uyLe8.d.cts +1323 -0
- package/dist/index-BB9uyLe8.d.cts.map +1 -0
- package/dist/index-D77q1gPk.d.mts +1323 -0
- package/dist/index-D77q1gPk.d.mts.map +1 -0
- package/dist/index.cjs +649 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +299 -0
- package/dist/index.mjs.map +1 -0
- package/dist/methods/index.cjs +125 -0
- package/dist/methods/index.d.cts +2 -0
- package/dist/methods/index.d.mts +2 -0
- package/dist/methods/index.mjs +2 -0
- package/dist/methods-BXZrkKjP.mjs +2633 -0
- package/dist/methods-BXZrkKjP.mjs.map +1 -0
- package/dist/methods-CuiwUO7-.cjs +3802 -0
- package/dist/methods-CuiwUO7-.cjs.map +1 -0
- package/dist/registry-CsyR8i6y.mjs +284 -0
- package/dist/registry-CsyR8i6y.mjs.map +1 -0
- package/dist/registry-TbMVoiw5.cjs +355 -0
- package/dist/registry-TbMVoiw5.cjs.map +1 -0
- package/package.json +6 -3
- package/CHANGELOG.md +0 -31
- package/client_migration_doc.md +0 -467
- package/codecs_and_params_plan.md +0 -936
- package/migration_plan_doc.md +0 -223
- package/scripts/gen-client-implementation.ts +0 -129
- package/scripts/gen-client-reference-docs.ts +0 -621
- package/scripts/gen-openapi.ts +0 -96
- package/scripts/gen-types.ts +0 -43
- package/scripts/verify-v5-pipeline.ts +0 -85
- package/src/__tests__/generators.contract.test.ts +0 -181
- package/src/__tests__/registry.contract.test.ts +0 -81
- package/src/client-config.ts +0 -30
- package/src/codecs.test.ts +0 -41
- package/src/codecs.ts +0 -191
- package/src/common-types.ts +0 -280
- package/src/config.ts +0 -47
- package/src/enums.ts +0 -63
- package/src/events/groups.ts +0 -33
- package/src/events/index.ts +0 -4
- package/src/events/messaging.ts +0 -72
- package/src/events/registry.ts +0 -114
- package/src/events/state.ts +0 -59
- package/src/generated/AliasMap.ts +0 -214
- package/src/generated/BaseClient.ts +0 -868
- package/src/generated/BaseNamespacedClient.ts +0 -212
- package/src/generated/index.ts +0 -5
- package/src/generated/openapi.json +0 -7799
- package/src/generated/types.ts +0 -377
- package/src/http-manifest.ts +0 -97
- package/src/implementor.test.ts +0 -88
- package/src/implementor.ts +0 -75
- package/src/index.ts +0 -43
- package/src/methods/business.ts +0 -51
- package/src/methods/chats.ts +0 -263
- package/src/methods/communities.ts +0 -119
- package/src/methods/contacts.ts +0 -158
- package/src/methods/groups.ts +0 -376
- package/src/methods/index.ts +0 -33
- package/src/methods/labels.ts +0 -86
- package/src/methods/media.ts +0 -36
- package/src/methods/messaging.ts +0 -828
- package/src/methods/session.ts +0 -261
- package/src/methods/status.ts +0 -120
- package/src/open-wa-utils.d.ts +0 -4
- package/src/parameters.ts +0 -237
- package/src/registry.test.ts +0 -30
- package/src/registry.ts +0 -601
- package/tsconfig.generated.json +0 -11
- package/tsconfig.json +0 -15
- package/tsdown.config.ts +0 -16
- package/vitest.config.ts +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["z","z","MessageAck","MessageSchema","z","z","z"],"sources":["../src/client-config.ts","../src/events/registry.ts","../src/events/messaging.ts","../src/events/state.ts","../src/events/groups.ts","../src/enums.ts"],"sourcesContent":["/**\n * Client configuration types - re-exported from @open-wa/config\n * \n * @deprecated Import from '@open-wa/config' instead\n */\n\nexport { ConfigSchema as ClientConfigSchema, type Config as ClientConfig } from '@open-wa/config';\n\n/**\n * Migrates a v4 configuration object to the v5 schema format.\n * Currently, most v4 options are compatible with v5.\n * This function serves as a placeholder for any future transformations.\n * \n * @deprecated This is a legacy compatibility function. Use @open-wa/config directly.\n */\nexport function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown> {\n // Deep clone to avoid mutating original\n const config = JSON.parse(JSON.stringify(oldConfig));\n\n // Example migration: if 'authTimeout' was string in some legacy version (unlikely but example)\n if (typeof config.authTimeout === 'string') {\n config.authTimeout = parseInt(config.authTimeout, 10);\n }\n\n if (config.apiLifecycle === undefined) {\n config.apiLifecycle = 'hybrid';\n }\n\n return config;\n}\n","import { z } from 'zod';\nimport { Options as PQueueOptions, DefaultAddOptions } from 'p-queue';\nimport PriorityQueue from 'p-queue/dist/priority-queue';\nimport { LicenseTier } from '../enums';\n\nexport type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';\n\nexport interface EventMetadata {\n eventName: string;\n legacyName: string;\n description?: string;\n namespace?: string;\n status?: EventStatus;\n deprecated?: string;\n license?: LicenseTier;\n since?: string;\n payloadSchema: z.ZodTypeAny;\n defaultQueueOptions?: PQueueOptions<PriorityQueue, DefaultAddOptions>;\n}\n\nexport interface EventDefinition {\n callbackSchema: z.ZodFunction<any, any>;\n meta: EventMetadata;\n}\n\nconst eventsByName = new Map<string, EventDefinition>();\nconst nameByCallback = new WeakMap<z.ZodFunction<any, any>, string>();\n\nexport const eventRegistry = {\n register(def: EventDefinition): z.ZodFunction<any, any> {\n const name = def.meta.eventName;\n \n if (eventsByName.has(name)) {\n throw new Error(`Event \"${name}\" already registered`);\n }\n \n eventsByName.set(name, def);\n nameByCallback.set(def.callbackSchema, name);\n \n return def.callbackSchema;\n },\n \n get(name: string): EventDefinition | undefined {\n return eventsByName.get(name);\n },\n \n getByLegacyName(legacyName: string): EventDefinition | undefined {\n for (const def of eventsByName.values()) {\n if (def.meta.legacyName === legacyName) return def;\n }\n return undefined;\n },\n \n has(name: string): boolean {\n return eventsByName.has(name);\n },\n \n getAll(): EventDefinition[] {\n return Array.from(eventsByName.values());\n },\n \n getByNamespace(namespace: string): EventDefinition[] {\n return this.getAll().filter(def => def.meta.namespace === namespace);\n },\n \n clear(): void {\n eventsByName.clear();\n }\n};\n\nexport const QueueOptionsSchema = z.object({\n concurrency: z.number().positive().optional(),\n intervalCap: z.number().positive().optional(),\n interval: z.number().positive().optional(),\n timeout: z.number().positive().optional(),\n priority: z.number().optional(),\n}).optional();\n\nexport type QueueOptions = z.infer<typeof QueueOptionsSchema>;\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?: PQueueOptions<PriorityQueue, DefaultAddOptions>;\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 { z } from 'zod';\nimport { defineListenerV2 } from './registry';\nimport { MessageSchema, MessageAck } from '../common-types';\n\nconst AckSchema = z.object({\n id: z.string(),\n chatId: z.string(),\n ack: z.nativeEnum(MessageAck),\n timestamp: z.number().optional(),\n});\n\nexport const messageEvent = defineListenerV2('message', {\n legacyName: 'onMessage',\n meta: {\n description: 'Fired when a new message is received (excluding own messages)',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const anyMessageEvent = defineListenerV2('anyMessage', {\n legacyName: 'onAnyMessage',\n meta: {\n description: 'Fired for any message including own messages',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const messageDeletedEvent = defineListenerV2('messageDeleted', {\n legacyName: 'onMessageDeleted',\n meta: {\n description: 'Fired when a message is deleted',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n});\n\nexport const ackEvent = defineListenerV2('ack', {\n legacyName: 'onAck',\n meta: {\n description: 'Fired when a message acknowledgment is received',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: AckSchema,\n});\n\nexport const reactionEvent = defineListenerV2('reaction', {\n legacyName: 'onReaction',\n meta: {\n description: 'Fired when a reaction is added to a message',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n messageId: z.string(),\n reaction: z.string(),\n senderId: z.string(),\n timestamp: z.number(),\n }),\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const StateEnum = z.enum([\n 'STARTING',\n 'AUTHENTICATING',\n 'READY',\n 'STOPPED',\n 'CONNECTED',\n 'DISCONNECTED', \n 'SYNCING',\n 'CONFLICT',\n 'UNLAUNCHED',\n 'PAIRING',\n 'TIMEOUT',\n]);\n\nexport const stateChangedEvent = defineListenerV2('stateChanged', {\n legacyName: 'onStateChanged',\n meta: {\n description: 'Fired when connection state changes',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n state: StateEnum,\n previousState: StateEnum.optional(),\n }),\n});\n\nexport const chatStateEvent = defineListenerV2('chatState', {\n legacyName: 'onChatState',\n meta: {\n description: 'Fired when someone is typing or recording',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n chatId: z.string(),\n state: z.enum(['typing', 'recording', 'paused']),\n senderId: z.string(),\n }),\n});\n\nexport const logoutEvent = defineListenerV2('logout', {\n legacyName: 'onLogout',\n meta: {\n description: 'Fired when the session is logged out',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n reason: z.string().optional(),\n timestamp: z.number(),\n }),\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const participantsChangedEvent = defineListenerV2('participantsChanged', {\n legacyName: 'onParticipantsChanged',\n meta: {\n description: 'Fired when group participants change',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n action: z.enum(['add', 'remove', 'promote', 'demote']),\n participantIds: z.array(z.string()),\n by: z.string().optional(),\n }),\n});\n\nexport const addedToGroupEvent = defineListenerV2('addedToGroup', {\n legacyName: 'onAddedToGroup',\n meta: {\n description: 'Fired when you are added to a group',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n groupName: z.string(),\n addedBy: z.string().optional(),\n }),\n});\n","import { z } from 'zod';\n\n/**\n * Action types for RBAC permissions\n * - read: Retrieve data (e.g., get contact, chat object)\n * - send: Create/send new content (e.g., send message, image, story)\n * - update: Modify existing data (e.g., update message, chat metadata, promote admin)\n * - delete: Remove data (e.g., delete chat, story, remove contact, demote admin)\n */\nexport const ActionEnum = z.enum([\n 'read',\n 'send',\n 'update',\n 'delete'\n]);\n\nexport type ActionType = z.infer<typeof ActionEnum>;\n\n/**\n * License tiers for feature gating\n * - none: Available to all users\n * - insiders: Requires insiders license\n * - restricted: Requires special/restricted license\n */\nexport const LicenseEnum = z.enum([\n 'none',\n 'insiders',\n 'restricted'\n]);\n\nexport type LicenseTier = z.infer<typeof LicenseEnum>;\n\n/**\n * Functionality scope for WhatsApp account types\n * - both: Works on both business and personal accounts\n * - business-only: Only works on business accounts\n * - personal-only: Only works on personal accounts\n */\nexport const FunctionalityEnum = z.enum([\n 'both',\n 'business-only',\n 'personal-only'\n]);\n\nexport type FunctionalityScope = z.infer<typeof FunctionalityEnum>;\n\n/**\n * HTTP methods for API mapping\n * - AUTO: Automatically inferred from action type or defaults to POST\n * - GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD: Standard HTTP methods\n */\nexport const HttpMethodEnum = z.enum([\n 'AUTO',\n 'GET',\n 'POST',\n 'PUT',\n 'DELETE',\n 'PATCH',\n 'OPTIONS',\n 'HEAD'\n]);\n\nexport type HttpMethod = z.infer<typeof HttpMethodEnum>;\n"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAgB,gBAAgB,WAA6D;CAEzF,MAAM,SAAS,KAAK,MAAM,KAAK,UAAU,UAAU,CAAC;AAGpD,KAAI,OAAO,OAAO,gBAAgB,SAC9B,QAAO,cAAc,SAAS,OAAO,aAAa,GAAG;AAGzD,KAAI,OAAO,iBAAiB,KAAA,EACxB,QAAO,eAAe;AAG1B,QAAO;;;;ACHX,MAAM,+BAAe,IAAI,KAA8B;AACvD,MAAM,iCAAiB,IAAI,SAA0C;AAErE,MAAa,gBAAgB;CACzB,SAAS,KAA+C;EACpD,MAAM,OAAO,IAAI,KAAK;AAEtB,MAAI,aAAa,IAAI,KAAK,CACtB,OAAM,IAAI,MAAM,UAA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IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EACnC,IAAIA,IAAAA,EAAE,QAAQ,CAAC,UAAU;EAC5B,CAAC;CACL,CAAC;AAEF,MAAa,oBAAoB,iBAAiB,gBAAgB;CAC9D,YAAY;CACZ,MAAM;EACF,aAAa;EACb,WAAW;EACX,QAAQ;EACR,SAAS;EACZ;CACD,SAASA,IAAAA,EAAE,OAAO;EACd,SAASA,IAAAA,EAAE,QAAQ;EACnB,WAAWA,IAAAA,EAAE,QAAQ;EACrB,SAASA,IAAAA,EAAE,QAAQ,CAAC,UAAU;EACjC,CAAC;CACL,CAAC;;;;;;;;;;ACvBF,MAAa,aAAaC,IAAAA,EAAE,KAAK;CAC7B;CACA;CACA;CACA;CACH,CAAC;;;;;;;AAUF,MAAa,cAAcA,IAAAA,EAAE,KAAK;CAC9B;CACA;CACA;CACH,CAAC;;;;;;;AAUF,MAAa,oBAAoBA,IAAAA,EAAE,KAAK;CACpC;CACA;CACA;CACH,CAAC;;;;;;AASF,MAAa,iBAAiBA,IAAAA,EAAE,KAAK;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACH,CAAC"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
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-DCOVY9QZ.cjs";
|
|
2
|
+
import { $ as fileToTempPathCodec, $n as pinChat, $r as GroupMetadata, $t as getStatus, A as withNewMessagesOnlyParam, Ai as PartialConfigSchema, An as setGroupTitle, Ar as sendPoll, At as getFeatures, B as IsoDatetimeToDateSchema, Bi as Viewport, Bn as getProfilePicture, Br as unstarMessage, Bt as isPlugged, C as skipMyMessagesParam, Ci as DevToolsSchema, Cn as promoteParticipant, Cr as sendImage, Ct as QueueOptionsSchema, D as userAgentParam, Di as NotificationLanguage, Dn as setGroupDescription, Dr as sendMessageWithThumb, Dt as downloadMedia, E as toParam, Ei as LoggingTransportSchema, En as revokeGroupInviteLink, Er as sendLocation, Et as decryptMedia, F as ContactIdSchema, Fi as S3SyncSchema, Fn as getAllContacts, Fr as sendTextWithMentions, Ft as getProcessStats, G as base64ToDataUrlCodec, Gn as getAllChatIds, Gr as Contact, Gt as getBusinessProfile, H as MessageIdSchema, Hi as getDefaultConfig, Hn as archiveChat, Hr as Chat, Ht as setMyStatus, I as FileToDataUrlSchema, Ii as SessionData, In as getBlockedIds, Ir as sendVCard, It as getSnapshot, J as createFileCodec, Jn as getChatWithNonContacts, Jr as Content, Jt as getAllLabels, K as chatIdCodec, Kn as getAllChats, Kr as ContactId, Kt as getOrder, L as GroupIdCodecSchema, Li as SessionDataSchema, Ln as getCommonGroups, Lr as sendVideoAsGif, Lt as getUserAgent, M as ChatIdCodecSchema, Mi as ProxyServerCredentialsSchema, Mn as blockContact, Mr as sendReplyWithMentions, Mt as getLicenseType, N as ChatIdSchema, Ni as QRFormat, Nn as checkNumberStatus, Nr as sendSeen, Nt as getLoadedMessageCount, O as videoDataParam, Oi as OnError, On as setGroupEditToAdminsOnly, Or as sendMultipleContacts, Ot as getBatteryLevel, P as ContactIdCodecSchema, Pi as S3Sync, Pn as checkReadReceipts, Pr as sendText, Pt as getMe, Q as fileToStreamCodec, Qn as muteChat, Qr as GroupId, Qt as deleteStatus, R as GroupIdSchema, Ri as StrictConfig, Rn as getContact, Rr as sendYouTubeLink, Rt as getWAVersion, S as onlyLocalParam, Si as DevTools, Sn as leaveGroup, Sr as sendFileFromUrl, St as QueueOptions, T as stickerDataParam, Ti as LoggingTransport, Tn as removeParticipant, Tr as sendListMessage, Tt as eventRegistry, U as UnixMillisToDateSchema, Ui as parseConfig, Un as clearChat, Ur as ChatId, Ut as setProfilePicture, V as MessageIdCodecSchema, Vi as ViewportSchema, Vn as unblockContact, Vr as Base64, Vt as setMyName, W as UnixSecondsToDateSchema, Wi as validateConfig, Wn as deleteChat, Wr as ChatSchema, Wt as getBusinessProducts, X as fileToBufferCodec, Xn as markAsRead, Xr as GroupChatId, Xt as removeLabel, Y as fileToBase64Codec, Yn as isChatOnline, Yr as DataURL, Yt as getChatsByLabel, Z as fileToDataUrlCodec, Zn as markAsUnread, Zr as GroupChatIdSchema, Zt as deleteAllStatus, _ as mentionedJidListParam, _i as CloudUploadOptionsSchema, _n as getGroupInviteLink, _r as sendAudio, _t as messageEvent, a as contactIdParam, ai as Message, an as getCommunityAdminIds, ar as forwardMessages, at as unixMillisToDate, b as messageOptionsParam, bi as DIRECTORY_STRATEGY, bn as getKickedGroups, br as sendContact, bt as EventMetadata, c as fileDataParam, ci as MessageIdReturnSchema, cn as getCommunityParticipantIds, cr as getMessageInfo, ct as addedToGroupEvent, d as imageDataParam, di as SimpleListener, dn as approveGroupJoinRequest, dr as getStarredMessages, dt as chatStateEvent, ei as GroupMetadataSchema, en as getStories, er as setChatEphemeral, et as groupIdCodec, f as includeMeParam, fi as ClientConfig, fn as createGroup, fr as getUnsentMessages, ft as logoutEvent, g as longitudeParam, gi as CloudUploadOptions, gn as getGroupInfo, gr as sendAdvancedButtons, gt as messageDeletedEvent, h as locationNameParam, hi as CLOUD_PROVIDERS, hn as getGroupAdmins, hr as react, ht as anyMessageEvent, i as communityIdParam, ii as LocationSchema, in as getAllCommunities, ir as deleteMessage, it as messageIdCodec, j as Base64ToDataUrlSchema, ji as ProxyServerCredentials, jn as setGroupToAdminsOnly, jr as sendPtt, jt as getHostNumber, k as waitForIdParam, ki as PartialConfig, kn as setGroupIcon, kr as sendPaymentRequest, kt as getConnectionState, l as filenameParam, li as MessageSchema, ln as getCommunityParticipants, lr as getMessagesForLLM, lt as participantsChangedEvent, m as latitudeParam, mi as migrateV4Config, mn as getAllGroups, mr as loadEarlierMessages, mt as ackEvent, n as captionParam, ni as IdSchema, nn as postTextStatus, nr as unmuteChat, nt as isoDatetimeToDate, o as contentParam, oi as MessageAck, on as getCommunityAdmins, or as getAllMessages, ot as unixSecondsToDate, p as includeNotificationsParam, pi as ClientConfigSchema, pn as demoteParticipant, pr as getVCards, pt as stateChangedEvent, q as contactIdCodec, qn as getChat, qr as ContactSchema, qt as addLabel, r as chatIdParam, ri as Location, rn as postVideoStatus, rr as unpinChat, rt as jsonStringCodec, s as documentDataParam, si as MessageId, sn as getCommunityInfo, sr as getMessageById, st as urlToDataUrlCodec, t as audioDataParam, ti as Id, tn as postImageStatus, tr as unarchiveChat, tt as hexColorCodec, u as groupIdParam, ui as MessageTypes, un as addParticipant, ur as getMyLastMessage, ut as StateEnum, v as messageIdParam, vi as Config, vn as getGroupMembers, vr as sendBanner, vt as reactionEvent, w as statusTextParam, wi as LicenseType, wn as rejectGroupJoinRequest, wr as sendLinkWithAutoPreview, wt as defineListenerV2, x as nameParam, xi as DeepPartialConfig, xn as joinGroupViaLink, xr as sendFile, xt as EventStatus, y as messageIdsParam, yi as ConfigSchema, yn as getGroupMembersId, yr as sendButtons, yt as EventDefinition, z as HexColorSchema, zi as StrictConfigSchema, zn as getNumberProfile, zr as starMessage, zt as healthCheck } from "./index-BB9uyLe8.cjs";
|
|
3
|
+
import { n as implementMethodAsync, t as implementMethod } from "./implementor-DIBNbQXA.cjs";
|
|
4
|
+
export { ActionEnum, ActionType, AliasMetadata, Base64, Base64ToDataUrlSchema, CLOUD_PROVIDERS, CapabilityDefinition, CapabilityMetadata, CapabilityStatus, CapabilityType, Chat, ChatId, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfig, ClientConfigSchema, ClientFunctionMetadata, CloudUploadOptions, CloudUploadOptionsSchema, Config, ConfigSchema, Contact, ContactId, ContactIdCodecSchema, ContactIdSchema, ContactSchema, Content, DIRECTORY_STRATEGY, DataURL, DeepPartialConfig, DevTools, DevToolsSchema, EventDefinition, EventMetadata, EventStatus, FileToDataUrlSchema, FunctionalityEnum, FunctionalityScope, GroupChatId, GroupChatIdSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupMetadata, GroupMetadataSchema, HexColorSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, InferInput, InferOutput, IsoDatetimeToDateSchema, LicenseEnum, LicenseTier, LicenseType, Location, LocationSchema, LoggingTransport, LoggingTransportSchema, Message, MessageAck, MessageId, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageSchema, MessageTypes, MethodDefinition, NotificationLanguage, OnError, OpenWAMethodSchema, ParameterMetadata, PartialConfig, PartialConfigSchema, ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, Registry, S3Sync, S3SyncSchema, SessionData, SessionDataSchema, SimpleListener, StateEnum, StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, Viewport, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
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-BlJWPKsp.mjs";
|
|
2
|
+
import { $ as fileToTempPathCodec, $n as pinChat, $r as GroupMetadata, $t as getStatus, A as withNewMessagesOnlyParam, Ai as PartialConfigSchema, An as setGroupTitle, Ar as sendPoll, At as getFeatures, B as IsoDatetimeToDateSchema, Bi as Viewport, Bn as getProfilePicture, Br as unstarMessage, Bt as isPlugged, C as skipMyMessagesParam, Ci as DevToolsSchema, Cn as promoteParticipant, Cr as sendImage, Ct as QueueOptionsSchema, D as userAgentParam, Di as NotificationLanguage, Dn as setGroupDescription, Dr as sendMessageWithThumb, Dt as downloadMedia, E as toParam, Ei as LoggingTransportSchema, En as revokeGroupInviteLink, Er as sendLocation, Et as decryptMedia, F as ContactIdSchema, Fi as S3SyncSchema, Fn as getAllContacts, Fr as sendTextWithMentions, Ft as getProcessStats, G as base64ToDataUrlCodec, Gn as getAllChatIds, Gr as Contact, Gt as getBusinessProfile, H as MessageIdSchema, Hi as getDefaultConfig, Hn as archiveChat, Hr as Chat, Ht as setMyStatus, I as FileToDataUrlSchema, Ii as SessionData, In as getBlockedIds, Ir as sendVCard, It as getSnapshot, J as createFileCodec, Jn as getChatWithNonContacts, Jr as Content, Jt as getAllLabels, K as chatIdCodec, Kn as getAllChats, Kr as ContactId, Kt as getOrder, L as GroupIdCodecSchema, Li as SessionDataSchema, Ln as getCommonGroups, Lr as sendVideoAsGif, Lt as getUserAgent, M as ChatIdCodecSchema, Mi as ProxyServerCredentialsSchema, Mn as blockContact, Mr as sendReplyWithMentions, Mt as getLicenseType, N as ChatIdSchema, Ni as QRFormat, Nn as checkNumberStatus, Nr as sendSeen, Nt as getLoadedMessageCount, O as videoDataParam, Oi as OnError, On as setGroupEditToAdminsOnly, Or as sendMultipleContacts, Ot as getBatteryLevel, P as ContactIdCodecSchema, Pi as S3Sync, Pn as checkReadReceipts, Pr as sendText, Pt as getMe, Q as fileToStreamCodec, Qn as muteChat, Qr as GroupId, Qt as deleteStatus, R as GroupIdSchema, Ri as StrictConfig, Rn as getContact, Rr as sendYouTubeLink, Rt as getWAVersion, S as onlyLocalParam, Si as DevTools, Sn as leaveGroup, Sr as sendFileFromUrl, St as QueueOptions, T as stickerDataParam, Ti as LoggingTransport, Tn as removeParticipant, Tr as sendListMessage, Tt as eventRegistry, U as UnixMillisToDateSchema, Ui as parseConfig, Un as clearChat, Ur as ChatId, Ut as setProfilePicture, V as MessageIdCodecSchema, Vi as ViewportSchema, Vn as unblockContact, Vr as Base64, Vt as setMyName, W as UnixSecondsToDateSchema, Wi as validateConfig, Wn as deleteChat, Wr as ChatSchema, Wt as getBusinessProducts, X as fileToBufferCodec, Xn as markAsRead, Xr as GroupChatId, Xt as removeLabel, Y as fileToBase64Codec, Yn as isChatOnline, Yr as DataURL, Yt as getChatsByLabel, Z as fileToDataUrlCodec, Zn as markAsUnread, Zr as GroupChatIdSchema, Zt as deleteAllStatus, _ as mentionedJidListParam, _i as CloudUploadOptionsSchema, _n as getGroupInviteLink, _r as sendAudio, _t as messageEvent, a as contactIdParam, ai as Message, an as getCommunityAdminIds, ar as forwardMessages, at as unixMillisToDate, b as messageOptionsParam, bi as DIRECTORY_STRATEGY, bn as getKickedGroups, br as sendContact, bt as EventMetadata, c as fileDataParam, ci as MessageIdReturnSchema, cn as getCommunityParticipantIds, cr as getMessageInfo, ct as addedToGroupEvent, d as imageDataParam, di as SimpleListener, dn as approveGroupJoinRequest, dr as getStarredMessages, dt as chatStateEvent, ei as GroupMetadataSchema, en as getStories, er as setChatEphemeral, et as groupIdCodec, f as includeMeParam, fi as ClientConfig, fn as createGroup, fr as getUnsentMessages, ft as logoutEvent, g as longitudeParam, gi as CloudUploadOptions, gn as getGroupInfo, gr as sendAdvancedButtons, gt as messageDeletedEvent, h as locationNameParam, hi as CLOUD_PROVIDERS, hn as getGroupAdmins, hr as react, ht as anyMessageEvent, i as communityIdParam, ii as LocationSchema, in as getAllCommunities, ir as deleteMessage, it as messageIdCodec, j as Base64ToDataUrlSchema, ji as ProxyServerCredentials, jn as setGroupToAdminsOnly, jr as sendPtt, jt as getHostNumber, k as waitForIdParam, ki as PartialConfig, kn as setGroupIcon, kr as sendPaymentRequest, kt as getConnectionState, l as filenameParam, li as MessageSchema, ln as getCommunityParticipants, lr as getMessagesForLLM, lt as participantsChangedEvent, m as latitudeParam, mi as migrateV4Config, mn as getAllGroups, mr as loadEarlierMessages, mt as ackEvent, n as captionParam, ni as IdSchema, nn as postTextStatus, nr as unmuteChat, nt as isoDatetimeToDate, o as contentParam, oi as MessageAck, on as getCommunityAdmins, or as getAllMessages, ot as unixSecondsToDate, p as includeNotificationsParam, pi as ClientConfigSchema, pn as demoteParticipant, pr as getVCards, pt as stateChangedEvent, q as contactIdCodec, qn as getChat, qr as ContactSchema, qt as addLabel, r as chatIdParam, ri as Location, rn as postVideoStatus, rr as unpinChat, rt as jsonStringCodec, s as documentDataParam, si as MessageId, sn as getCommunityInfo, sr as getMessageById, st as urlToDataUrlCodec, t as audioDataParam, ti as Id, tn as postImageStatus, tr as unarchiveChat, tt as hexColorCodec, u as groupIdParam, ui as MessageTypes, un as addParticipant, ur as getMyLastMessage, ut as StateEnum, v as messageIdParam, vi as Config, vn as getGroupMembers, vr as sendBanner, vt as reactionEvent, w as statusTextParam, wi as LicenseType, wn as rejectGroupJoinRequest, wr as sendLinkWithAutoPreview, wt as defineListenerV2, x as nameParam, xi as DeepPartialConfig, xn as joinGroupViaLink, xr as sendFile, xt as EventStatus, y as messageIdsParam, yi as ConfigSchema, yn as getGroupMembersId, yr as sendButtons, yt as EventDefinition, z as HexColorSchema, zi as StrictConfigSchema, zn as getNumberProfile, zr as starMessage, zt as healthCheck } from "./index-D77q1gPk.mjs";
|
|
3
|
+
import { n as implementMethodAsync, t as implementMethod } from "./implementor-DoN9ga7C.mjs";
|
|
4
|
+
export { ActionEnum, ActionType, AliasMetadata, Base64, Base64ToDataUrlSchema, CLOUD_PROVIDERS, CapabilityDefinition, CapabilityMetadata, CapabilityStatus, CapabilityType, Chat, ChatId, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfig, ClientConfigSchema, ClientFunctionMetadata, CloudUploadOptions, CloudUploadOptionsSchema, Config, ConfigSchema, Contact, ContactId, ContactIdCodecSchema, ContactIdSchema, ContactSchema, Content, DIRECTORY_STRATEGY, DataURL, DeepPartialConfig, DevTools, DevToolsSchema, EventDefinition, EventMetadata, EventStatus, FileToDataUrlSchema, FunctionalityEnum, FunctionalityScope, GroupChatId, GroupChatIdSchema, GroupId, GroupIdCodecSchema, GroupIdSchema, GroupMetadata, GroupMetadataSchema, HexColorSchema, HttpMethod, HttpMethodDefinition, HttpMethodEnum, HttpRouteAlias, Id, IdSchema, InferInput, InferOutput, IsoDatetimeToDateSchema, LicenseEnum, LicenseTier, LicenseType, Location, LocationSchema, LoggingTransport, LoggingTransportSchema, Message, MessageAck, MessageId, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageSchema, MessageTypes, MethodDefinition, NotificationLanguage, OnError, OpenWAMethodSchema, ParameterMetadata, PartialConfig, PartialConfigSchema, ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, QueueOptions, QueueOptionsSchema, Registry, S3Sync, S3SyncSchema, SessionData, SessionDataSchema, SimpleListener, StateEnum, StrictConfig, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, Viewport, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { a as defineMethod, c as getMethodAliases, d as parameterRegistry, f as z, i as defineEvent, l as getParameterMetadata, n as buildKeyAliasMap, o as defineMethodV2, p as zObjectToTuple, r as clientRegistry, s as deriveNamespacedMethodName, t as Registry, u as normalizeParameterKeys } from "./registry-CsyR8i6y.mjs";
|
|
2
|
+
import { $ as rejectGroupJoinRequest, $n as GroupIdSchema, $t as sendLinkWithAutoPreview, A as postImageStatus, An as locationNameParam, Ar as MessageIdReturnSchema, At as unarchiveChat, B as approveGroupJoinRequest, Bn as stickerDataParam, Bt as getStarredMessages, C as getAllLabels, Cn as fileDataParam, Cr as ChatSchema, Ct as getChatWithNonContacts, D as deleteStatus, Dn as includeMeParam, Dr as IdSchema, Dt as muteChat, E as deleteAllStatus, En as imageDataParam, Er as GroupMetadataSchema, Et as markAsUnread, F as getCommunityAdmins, Fn as messageOptionsParam, Ft as getAllMessages, G as getGroupInfo, Gn as withNewMessagesOnlyParam, Gt as sendAdvancedButtons, H as demoteParticipant, Hn as userAgentParam, Ht as getVCards, I as getCommunityInfo, In as nameParam, It as getMessageById, J as getGroupMembersId, Jn as ChatIdSchema, Jt as sendButtons, K as getGroupInviteLink, Kn as Base64ToDataUrlSchema, Kt as sendAudio, L as getCommunityParticipantIds, Ln as onlyLocalParam, Lt as getMessageInfo, M as postVideoStatus, Mn as mentionedJidListParam, Mr as MessageTypes, Mt as unpinChat, N as getAllCommunities, Nn as messageIdParam, Nr as SimpleListener, Nt as deleteMessage, O as getStatus, On as includeNotificationsParam, Or as LocationSchema, Ot as pinChat, P as getCommunityAdminIds, Pn as messageIdsParam, Pt as forwardMessages, Q as promoteParticipant, Qn as GroupIdCodecSchema, Qt as sendImage, R as getCommunityParticipants, Rn as skipMyMessagesParam, Rt as getMessagesForLLM, S as addLabel, Sn as documentDataParam, Sr as urlToDataUrlCodec, St as getChat, T as removeLabel, Tn as groupIdParam, Tr as GroupChatIdSchema, Tt as markAsRead, U as getAllGroups, Un as videoDataParam, Ut as loadEarlierMessages, V as createGroup, Vn as toParam, Vt as getUnsentMessages, W as getGroupAdmins, Wn as waitForIdParam, Wt as react, X as joinGroupViaLink, Xn as ContactIdSchema, Xt as sendFile, Y as getKickedGroups, Yn as ContactIdCodecSchema, Yt as sendContact, Z as leaveGroup, Zn as FileToDataUrlSchema, Zt as sendFileFromUrl, _ as setMyStatus, _n as captionParam, _r as isoDatetimeToDate, _t as archiveChat, a as getFeatures, an as sendPoll, ar as UnixSecondsToDateSchema, at as setGroupTitle, b as getBusinessProfile, bn as contactIdParam, br as unixMillisToDate, bt as getAllChatIds, c as getLoadedMessageCount, cn as sendSeen, cr as contactIdCodec, ct as checkNumberStatus, d as getSnapshot, dn as sendVCard, dr as fileToBufferCodec, dt as getBlockedIds, en as sendListMessage, er as HexColorSchema, et as removeParticipant, f as getUserAgent, fn as sendVideoAsGif, fr as fileToDataUrlCodec, ft as getCommonGroups, g as setMyName, gn as audioDataParam, gr as hexColorCodec, gt as unblockContact, h as isPlugged, hn as unstarMessage, hr as groupIdCodec, ht as getProfilePicture, i as getConnectionState, in as sendPaymentRequest, ir as UnixMillisToDateSchema, it as setGroupIcon, j as postTextStatus, jn as longitudeParam, jr as MessageSchema, jt as unmuteChat, k as getStories, kn as latitudeParam, kr as MessageAck, kt as setChatEphemeral, l as getMe, ln as sendText, lr as createFileCodec, lt as checkReadReceipts, m as healthCheck, mn as starMessage, mr as fileToTempPathCodec, mt as getNumberProfile, n as downloadMedia, nn as sendMessageWithThumb, nr as MessageIdCodecSchema, nt as setGroupDescription, o as getHostNumber, on as sendPtt, or as base64ToDataUrlCodec, ot as setGroupToAdminsOnly, p as getWAVersion, pn as sendYouTubeLink, pr as fileToStreamCodec, pt as getContact, q as getGroupMembers, qn as ChatIdCodecSchema, qt as sendBanner, r as getBatteryLevel, rn as sendMultipleContacts, rr as MessageIdSchema, rt as setGroupEditToAdminsOnly, s as getLicenseType, sn as sendReplyWithMentions, sr as chatIdCodec, st as blockContact, t as decryptMedia, tn as sendLocation, tr as IsoDatetimeToDateSchema, tt as revokeGroupInviteLink, u as getProcessStats, un as sendTextWithMentions, ur as fileToBase64Codec, ut as getAllContacts, v as setProfilePicture, vn as chatIdParam, vr as jsonStringCodec, vt as clearChat, w as getChatsByLabel, wn as filenameParam, wr as ContactSchema, wt as isChatOnline, x as getOrder, xn as contentParam, xr as unixSecondsToDate, xt as getAllChats, y as getBusinessProducts, yn as communityIdParam, yr as messageIdCodec, yt as deleteChat, z as addParticipant, zn as statusTextParam, zt as getMyLastMessage } from "./methods-BXZrkKjP.mjs";
|
|
3
|
+
import { implementMethod, implementMethodAsync } from "./implementor.mjs";
|
|
4
|
+
import { getHttpMethodDefinitions } from "./http-manifest.mjs";
|
|
5
|
+
import { z as z$1 } from "zod";
|
|
6
|
+
import { CLOUD_PROVIDERS, CloudUploadOptionsSchema, ConfigSchema, ConfigSchema as ClientConfigSchema, DIRECTORY_STRATEGY, DevToolsSchema, LicenseType, LoggingTransportSchema, NotificationLanguage, OnError, PartialConfigSchema, ProxyServerCredentialsSchema, QRFormat, S3SyncSchema, SessionDataSchema, StrictConfigSchema, ViewportSchema, getDefaultConfig, parseConfig, validateConfig } from "@open-wa/config";
|
|
7
|
+
//#region src/client-config.ts
|
|
8
|
+
/**
|
|
9
|
+
* Migrates a v4 configuration object to the v5 schema format.
|
|
10
|
+
* Currently, most v4 options are compatible with v5.
|
|
11
|
+
* This function serves as a placeholder for any future transformations.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated This is a legacy compatibility function. Use @open-wa/config directly.
|
|
14
|
+
*/
|
|
15
|
+
function migrateV4Config(oldConfig) {
|
|
16
|
+
const config = JSON.parse(JSON.stringify(oldConfig));
|
|
17
|
+
if (typeof config.authTimeout === "string") config.authTimeout = parseInt(config.authTimeout, 10);
|
|
18
|
+
if (config.apiLifecycle === void 0) config.apiLifecycle = "hybrid";
|
|
19
|
+
return config;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/events/registry.ts
|
|
23
|
+
const eventsByName = /* @__PURE__ */ new Map();
|
|
24
|
+
const nameByCallback = /* @__PURE__ */ new WeakMap();
|
|
25
|
+
const eventRegistry = {
|
|
26
|
+
register(def) {
|
|
27
|
+
const name = def.meta.eventName;
|
|
28
|
+
if (eventsByName.has(name)) throw new Error(`Event "${name}" already registered`);
|
|
29
|
+
eventsByName.set(name, def);
|
|
30
|
+
nameByCallback.set(def.callbackSchema, name);
|
|
31
|
+
return def.callbackSchema;
|
|
32
|
+
},
|
|
33
|
+
get(name) {
|
|
34
|
+
return eventsByName.get(name);
|
|
35
|
+
},
|
|
36
|
+
getByLegacyName(legacyName) {
|
|
37
|
+
for (const def of eventsByName.values()) if (def.meta.legacyName === legacyName) return def;
|
|
38
|
+
},
|
|
39
|
+
has(name) {
|
|
40
|
+
return eventsByName.has(name);
|
|
41
|
+
},
|
|
42
|
+
getAll() {
|
|
43
|
+
return Array.from(eventsByName.values());
|
|
44
|
+
},
|
|
45
|
+
getByNamespace(namespace) {
|
|
46
|
+
return this.getAll().filter((def) => def.meta.namespace === namespace);
|
|
47
|
+
},
|
|
48
|
+
clear() {
|
|
49
|
+
eventsByName.clear();
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const QueueOptionsSchema = z$1.object({
|
|
53
|
+
concurrency: z$1.number().positive().optional(),
|
|
54
|
+
intervalCap: z$1.number().positive().optional(),
|
|
55
|
+
interval: z$1.number().positive().optional(),
|
|
56
|
+
timeout: z$1.number().positive().optional(),
|
|
57
|
+
priority: z$1.number().optional()
|
|
58
|
+
}).optional();
|
|
59
|
+
function defineListenerV2(name, params) {
|
|
60
|
+
const legacyName = params.legacyName || `on${name.charAt(0).toUpperCase()}${name.slice(1)}`;
|
|
61
|
+
const callbackSchema = z$1.function({
|
|
62
|
+
input: z$1.tuple([params.payload, QueueOptionsSchema]),
|
|
63
|
+
output: z$1.union([
|
|
64
|
+
z$1.boolean(),
|
|
65
|
+
z$1.promise(z$1.boolean()),
|
|
66
|
+
z$1.function({
|
|
67
|
+
input: z$1.tuple([]),
|
|
68
|
+
output: z$1.void()
|
|
69
|
+
})
|
|
70
|
+
])
|
|
71
|
+
});
|
|
72
|
+
eventRegistry.register({
|
|
73
|
+
callbackSchema,
|
|
74
|
+
meta: {
|
|
75
|
+
eventName: name,
|
|
76
|
+
legacyName,
|
|
77
|
+
payloadSchema: params.payload,
|
|
78
|
+
defaultQueueOptions: params.defaultQueueOptions,
|
|
79
|
+
...params.meta
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return callbackSchema;
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/events/messaging.ts
|
|
86
|
+
const AckSchema = z$1.object({
|
|
87
|
+
id: z$1.string(),
|
|
88
|
+
chatId: z$1.string(),
|
|
89
|
+
ack: z$1.nativeEnum(MessageAck),
|
|
90
|
+
timestamp: z$1.number().optional()
|
|
91
|
+
});
|
|
92
|
+
const messageEvent = defineListenerV2("message", {
|
|
93
|
+
legacyName: "onMessage",
|
|
94
|
+
meta: {
|
|
95
|
+
description: "Fired when a new message is received (excluding own messages)",
|
|
96
|
+
namespace: "messages",
|
|
97
|
+
status: "stable",
|
|
98
|
+
license: "none"
|
|
99
|
+
},
|
|
100
|
+
payload: MessageSchema,
|
|
101
|
+
defaultQueueOptions: { concurrency: 1 }
|
|
102
|
+
});
|
|
103
|
+
const anyMessageEvent = defineListenerV2("anyMessage", {
|
|
104
|
+
legacyName: "onAnyMessage",
|
|
105
|
+
meta: {
|
|
106
|
+
description: "Fired for any message including own messages",
|
|
107
|
+
namespace: "messages",
|
|
108
|
+
status: "stable",
|
|
109
|
+
license: "none"
|
|
110
|
+
},
|
|
111
|
+
payload: MessageSchema,
|
|
112
|
+
defaultQueueOptions: { concurrency: 1 }
|
|
113
|
+
});
|
|
114
|
+
const messageDeletedEvent = defineListenerV2("messageDeleted", {
|
|
115
|
+
legacyName: "onMessageDeleted",
|
|
116
|
+
meta: {
|
|
117
|
+
description: "Fired when a message is deleted",
|
|
118
|
+
namespace: "messages",
|
|
119
|
+
status: "stable",
|
|
120
|
+
license: "none"
|
|
121
|
+
},
|
|
122
|
+
payload: MessageSchema
|
|
123
|
+
});
|
|
124
|
+
const ackEvent = defineListenerV2("ack", {
|
|
125
|
+
legacyName: "onAck",
|
|
126
|
+
meta: {
|
|
127
|
+
description: "Fired when a message acknowledgment is received",
|
|
128
|
+
namespace: "messages",
|
|
129
|
+
status: "stable",
|
|
130
|
+
license: "none"
|
|
131
|
+
},
|
|
132
|
+
payload: AckSchema
|
|
133
|
+
});
|
|
134
|
+
const reactionEvent = defineListenerV2("reaction", {
|
|
135
|
+
legacyName: "onReaction",
|
|
136
|
+
meta: {
|
|
137
|
+
description: "Fired when a reaction is added to a message",
|
|
138
|
+
namespace: "messages",
|
|
139
|
+
status: "stable",
|
|
140
|
+
license: "none"
|
|
141
|
+
},
|
|
142
|
+
payload: z$1.object({
|
|
143
|
+
messageId: z$1.string(),
|
|
144
|
+
reaction: z$1.string(),
|
|
145
|
+
senderId: z$1.string(),
|
|
146
|
+
timestamp: z$1.number()
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/events/state.ts
|
|
151
|
+
const StateEnum = z$1.enum([
|
|
152
|
+
"STARTING",
|
|
153
|
+
"AUTHENTICATING",
|
|
154
|
+
"READY",
|
|
155
|
+
"STOPPED",
|
|
156
|
+
"CONNECTED",
|
|
157
|
+
"DISCONNECTED",
|
|
158
|
+
"SYNCING",
|
|
159
|
+
"CONFLICT",
|
|
160
|
+
"UNLAUNCHED",
|
|
161
|
+
"PAIRING",
|
|
162
|
+
"TIMEOUT"
|
|
163
|
+
]);
|
|
164
|
+
const stateChangedEvent = defineListenerV2("stateChanged", {
|
|
165
|
+
legacyName: "onStateChanged",
|
|
166
|
+
meta: {
|
|
167
|
+
description: "Fired when connection state changes",
|
|
168
|
+
namespace: "state",
|
|
169
|
+
status: "stable",
|
|
170
|
+
license: "none"
|
|
171
|
+
},
|
|
172
|
+
payload: z$1.object({
|
|
173
|
+
state: StateEnum,
|
|
174
|
+
previousState: StateEnum.optional()
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
const chatStateEvent = defineListenerV2("chatState", {
|
|
178
|
+
legacyName: "onChatState",
|
|
179
|
+
meta: {
|
|
180
|
+
description: "Fired when someone is typing or recording",
|
|
181
|
+
namespace: "state",
|
|
182
|
+
status: "stable",
|
|
183
|
+
license: "none"
|
|
184
|
+
},
|
|
185
|
+
payload: z$1.object({
|
|
186
|
+
chatId: z$1.string(),
|
|
187
|
+
state: z$1.enum([
|
|
188
|
+
"typing",
|
|
189
|
+
"recording",
|
|
190
|
+
"paused"
|
|
191
|
+
]),
|
|
192
|
+
senderId: z$1.string()
|
|
193
|
+
})
|
|
194
|
+
});
|
|
195
|
+
const logoutEvent = defineListenerV2("logout", {
|
|
196
|
+
legacyName: "onLogout",
|
|
197
|
+
meta: {
|
|
198
|
+
description: "Fired when the session is logged out",
|
|
199
|
+
namespace: "state",
|
|
200
|
+
status: "stable",
|
|
201
|
+
license: "none"
|
|
202
|
+
},
|
|
203
|
+
payload: z$1.object({
|
|
204
|
+
reason: z$1.string().optional(),
|
|
205
|
+
timestamp: z$1.number()
|
|
206
|
+
})
|
|
207
|
+
});
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/events/groups.ts
|
|
210
|
+
const participantsChangedEvent = defineListenerV2("participantsChanged", {
|
|
211
|
+
legacyName: "onParticipantsChanged",
|
|
212
|
+
meta: {
|
|
213
|
+
description: "Fired when group participants change",
|
|
214
|
+
namespace: "groups",
|
|
215
|
+
status: "stable",
|
|
216
|
+
license: "none"
|
|
217
|
+
},
|
|
218
|
+
payload: z$1.object({
|
|
219
|
+
groupId: z$1.string(),
|
|
220
|
+
action: z$1.enum([
|
|
221
|
+
"add",
|
|
222
|
+
"remove",
|
|
223
|
+
"promote",
|
|
224
|
+
"demote"
|
|
225
|
+
]),
|
|
226
|
+
participantIds: z$1.array(z$1.string()),
|
|
227
|
+
by: z$1.string().optional()
|
|
228
|
+
})
|
|
229
|
+
});
|
|
230
|
+
const addedToGroupEvent = defineListenerV2("addedToGroup", {
|
|
231
|
+
legacyName: "onAddedToGroup",
|
|
232
|
+
meta: {
|
|
233
|
+
description: "Fired when you are added to a group",
|
|
234
|
+
namespace: "groups",
|
|
235
|
+
status: "stable",
|
|
236
|
+
license: "none"
|
|
237
|
+
},
|
|
238
|
+
payload: z$1.object({
|
|
239
|
+
groupId: z$1.string(),
|
|
240
|
+
groupName: z$1.string(),
|
|
241
|
+
addedBy: z$1.string().optional()
|
|
242
|
+
})
|
|
243
|
+
});
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/enums.ts
|
|
246
|
+
/**
|
|
247
|
+
* Action types for RBAC permissions
|
|
248
|
+
* - read: Retrieve data (e.g., get contact, chat object)
|
|
249
|
+
* - send: Create/send new content (e.g., send message, image, story)
|
|
250
|
+
* - update: Modify existing data (e.g., update message, chat metadata, promote admin)
|
|
251
|
+
* - delete: Remove data (e.g., delete chat, story, remove contact, demote admin)
|
|
252
|
+
*/
|
|
253
|
+
const ActionEnum = z$1.enum([
|
|
254
|
+
"read",
|
|
255
|
+
"send",
|
|
256
|
+
"update",
|
|
257
|
+
"delete"
|
|
258
|
+
]);
|
|
259
|
+
/**
|
|
260
|
+
* License tiers for feature gating
|
|
261
|
+
* - none: Available to all users
|
|
262
|
+
* - insiders: Requires insiders license
|
|
263
|
+
* - restricted: Requires special/restricted license
|
|
264
|
+
*/
|
|
265
|
+
const LicenseEnum = z$1.enum([
|
|
266
|
+
"none",
|
|
267
|
+
"insiders",
|
|
268
|
+
"restricted"
|
|
269
|
+
]);
|
|
270
|
+
/**
|
|
271
|
+
* Functionality scope for WhatsApp account types
|
|
272
|
+
* - both: Works on both business and personal accounts
|
|
273
|
+
* - business-only: Only works on business accounts
|
|
274
|
+
* - personal-only: Only works on personal accounts
|
|
275
|
+
*/
|
|
276
|
+
const FunctionalityEnum = z$1.enum([
|
|
277
|
+
"both",
|
|
278
|
+
"business-only",
|
|
279
|
+
"personal-only"
|
|
280
|
+
]);
|
|
281
|
+
/**
|
|
282
|
+
* HTTP methods for API mapping
|
|
283
|
+
* - AUTO: Automatically inferred from action type or defaults to POST
|
|
284
|
+
* - GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD: Standard HTTP methods
|
|
285
|
+
*/
|
|
286
|
+
const HttpMethodEnum = z$1.enum([
|
|
287
|
+
"AUTO",
|
|
288
|
+
"GET",
|
|
289
|
+
"POST",
|
|
290
|
+
"PUT",
|
|
291
|
+
"DELETE",
|
|
292
|
+
"PATCH",
|
|
293
|
+
"OPTIONS",
|
|
294
|
+
"HEAD"
|
|
295
|
+
]);
|
|
296
|
+
//#endregion
|
|
297
|
+
export { ActionEnum, Base64ToDataUrlSchema, CLOUD_PROVIDERS, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfigSchema, CloudUploadOptionsSchema, ConfigSchema, ContactIdCodecSchema, ContactIdSchema, ContactSchema, DIRECTORY_STRATEGY, DevToolsSchema, FileToDataUrlSchema, FunctionalityEnum, GroupChatIdSchema, GroupIdCodecSchema, GroupIdSchema, GroupMetadataSchema, HexColorSchema, HttpMethodEnum, IdSchema, IsoDatetimeToDateSchema, LicenseEnum, LicenseType, LocationSchema, LoggingTransportSchema, MessageAck, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageSchema, MessageTypes, NotificationLanguage, OnError, PartialConfigSchema, ProxyServerCredentialsSchema, QRFormat, QueueOptionsSchema, Registry, S3SyncSchema, SessionDataSchema, SimpleListener, StateEnum, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, ViewportSchema, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createFileCodec, createGroup, decryptMedia, defineEvent, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, documentDataParam, downloadMedia, eventRegistry, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteChat, nameParam, normalizeParameterKeys, onlyLocalParam, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, skipMyMessagesParam, starMessage, stateChangedEvent, statusTextParam, stickerDataParam, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, videoDataParam, waitForIdParam, withNewMessagesOnlyParam, z, zObjectToTuple };
|
|
298
|
+
|
|
299
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["z","z","z","z","z"],"sources":["../src/client-config.ts","../src/events/registry.ts","../src/events/messaging.ts","../src/events/state.ts","../src/events/groups.ts","../src/enums.ts"],"sourcesContent":["/**\n * Client configuration types - re-exported from @open-wa/config\n * \n * @deprecated Import from '@open-wa/config' instead\n */\n\nexport { ConfigSchema as ClientConfigSchema, type Config as ClientConfig } from '@open-wa/config';\n\n/**\n * Migrates a v4 configuration object to the v5 schema format.\n * Currently, most v4 options are compatible with v5.\n * This function serves as a placeholder for any future transformations.\n * \n * @deprecated This is a legacy compatibility function. Use @open-wa/config directly.\n */\nexport function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown> {\n // Deep clone to avoid mutating original\n const config = JSON.parse(JSON.stringify(oldConfig));\n\n // Example migration: if 'authTimeout' was string in some legacy version (unlikely but example)\n if (typeof config.authTimeout === 'string') {\n config.authTimeout = parseInt(config.authTimeout, 10);\n }\n\n if (config.apiLifecycle === undefined) {\n config.apiLifecycle = 'hybrid';\n }\n\n return config;\n}\n","import { z } from 'zod';\nimport { Options as PQueueOptions, DefaultAddOptions } from 'p-queue';\nimport PriorityQueue from 'p-queue/dist/priority-queue';\nimport { LicenseTier } from '../enums';\n\nexport type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';\n\nexport interface EventMetadata {\n eventName: string;\n legacyName: string;\n description?: string;\n namespace?: string;\n status?: EventStatus;\n deprecated?: string;\n license?: LicenseTier;\n since?: string;\n payloadSchema: z.ZodTypeAny;\n defaultQueueOptions?: PQueueOptions<PriorityQueue, DefaultAddOptions>;\n}\n\nexport interface EventDefinition {\n callbackSchema: z.ZodFunction<any, any>;\n meta: EventMetadata;\n}\n\nconst eventsByName = new Map<string, EventDefinition>();\nconst nameByCallback = new WeakMap<z.ZodFunction<any, any>, string>();\n\nexport const eventRegistry = {\n register(def: EventDefinition): z.ZodFunction<any, any> {\n const name = def.meta.eventName;\n \n if (eventsByName.has(name)) {\n throw new Error(`Event \"${name}\" already registered`);\n }\n \n eventsByName.set(name, def);\n nameByCallback.set(def.callbackSchema, name);\n \n return def.callbackSchema;\n },\n \n get(name: string): EventDefinition | undefined {\n return eventsByName.get(name);\n },\n \n getByLegacyName(legacyName: string): EventDefinition | undefined {\n for (const def of eventsByName.values()) {\n if (def.meta.legacyName === legacyName) return def;\n }\n return undefined;\n },\n \n has(name: string): boolean {\n return eventsByName.has(name);\n },\n \n getAll(): EventDefinition[] {\n return Array.from(eventsByName.values());\n },\n \n getByNamespace(namespace: string): EventDefinition[] {\n return this.getAll().filter(def => def.meta.namespace === namespace);\n },\n \n clear(): void {\n eventsByName.clear();\n }\n};\n\nexport const QueueOptionsSchema = z.object({\n concurrency: z.number().positive().optional(),\n intervalCap: z.number().positive().optional(),\n interval: z.number().positive().optional(),\n timeout: z.number().positive().optional(),\n priority: z.number().optional(),\n}).optional();\n\nexport type QueueOptions = z.infer<typeof QueueOptionsSchema>;\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?: PQueueOptions<PriorityQueue, DefaultAddOptions>;\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 { z } from 'zod';\nimport { defineListenerV2 } from './registry';\nimport { MessageSchema, MessageAck } from '../common-types';\n\nconst AckSchema = z.object({\n id: z.string(),\n chatId: z.string(),\n ack: z.nativeEnum(MessageAck),\n timestamp: z.number().optional(),\n});\n\nexport const messageEvent = defineListenerV2('message', {\n legacyName: 'onMessage',\n meta: {\n description: 'Fired when a new message is received (excluding own messages)',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const anyMessageEvent = defineListenerV2('anyMessage', {\n legacyName: 'onAnyMessage',\n meta: {\n description: 'Fired for any message including own messages',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n defaultQueueOptions: { concurrency: 1 },\n});\n\nexport const messageDeletedEvent = defineListenerV2('messageDeleted', {\n legacyName: 'onMessageDeleted',\n meta: {\n description: 'Fired when a message is deleted',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: MessageSchema,\n});\n\nexport const ackEvent = defineListenerV2('ack', {\n legacyName: 'onAck',\n meta: {\n description: 'Fired when a message acknowledgment is received',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: AckSchema,\n});\n\nexport const reactionEvent = defineListenerV2('reaction', {\n legacyName: 'onReaction',\n meta: {\n description: 'Fired when a reaction is added to a message',\n namespace: 'messages',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n messageId: z.string(),\n reaction: z.string(),\n senderId: z.string(),\n timestamp: z.number(),\n }),\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const StateEnum = z.enum([\n 'STARTING',\n 'AUTHENTICATING',\n 'READY',\n 'STOPPED',\n 'CONNECTED',\n 'DISCONNECTED', \n 'SYNCING',\n 'CONFLICT',\n 'UNLAUNCHED',\n 'PAIRING',\n 'TIMEOUT',\n]);\n\nexport const stateChangedEvent = defineListenerV2('stateChanged', {\n legacyName: 'onStateChanged',\n meta: {\n description: 'Fired when connection state changes',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n state: StateEnum,\n previousState: StateEnum.optional(),\n }),\n});\n\nexport const chatStateEvent = defineListenerV2('chatState', {\n legacyName: 'onChatState',\n meta: {\n description: 'Fired when someone is typing or recording',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n chatId: z.string(),\n state: z.enum(['typing', 'recording', 'paused']),\n senderId: z.string(),\n }),\n});\n\nexport const logoutEvent = defineListenerV2('logout', {\n legacyName: 'onLogout',\n meta: {\n description: 'Fired when the session is logged out',\n namespace: 'state',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n reason: z.string().optional(),\n timestamp: z.number(),\n }),\n});\n","import { z } from 'zod';\nimport { defineListenerV2 } from './registry';\n\nexport const participantsChangedEvent = defineListenerV2('participantsChanged', {\n legacyName: 'onParticipantsChanged',\n meta: {\n description: 'Fired when group participants change',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n action: z.enum(['add', 'remove', 'promote', 'demote']),\n participantIds: z.array(z.string()),\n by: z.string().optional(),\n }),\n});\n\nexport const addedToGroupEvent = defineListenerV2('addedToGroup', {\n legacyName: 'onAddedToGroup',\n meta: {\n description: 'Fired when you are added to a group',\n namespace: 'groups',\n status: 'stable',\n license: 'none',\n },\n payload: z.object({\n groupId: z.string(),\n groupName: z.string(),\n addedBy: z.string().optional(),\n }),\n});\n","import { z } from 'zod';\n\n/**\n * Action types for RBAC permissions\n * - read: Retrieve data (e.g., get contact, chat object)\n * - send: Create/send new content (e.g., send message, image, story)\n * - update: Modify existing data (e.g., update message, chat metadata, promote admin)\n * - delete: Remove data (e.g., delete chat, story, remove contact, demote admin)\n */\nexport const ActionEnum = z.enum([\n 'read',\n 'send',\n 'update',\n 'delete'\n]);\n\nexport type ActionType = z.infer<typeof ActionEnum>;\n\n/**\n * License tiers for feature gating\n * - none: Available to all users\n * - insiders: Requires insiders license\n * - restricted: Requires special/restricted license\n */\nexport const LicenseEnum = z.enum([\n 'none',\n 'insiders',\n 'restricted'\n]);\n\nexport type LicenseTier = z.infer<typeof LicenseEnum>;\n\n/**\n * Functionality scope for WhatsApp account types\n * - both: Works on both business and personal accounts\n * - business-only: Only works on business accounts\n * - personal-only: Only works on personal accounts\n */\nexport const FunctionalityEnum = z.enum([\n 'both',\n 'business-only',\n 'personal-only'\n]);\n\nexport type FunctionalityScope = z.infer<typeof FunctionalityEnum>;\n\n/**\n * HTTP methods for API mapping\n * - AUTO: Automatically inferred from action type or defaults to POST\n * - GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD: Standard HTTP methods\n */\nexport const HttpMethodEnum = z.enum([\n 'AUTO',\n 'GET',\n 'POST',\n 'PUT',\n 'DELETE',\n 'PATCH',\n 'OPTIONS',\n 'HEAD'\n]);\n\nexport type HttpMethod = z.infer<typeof HttpMethodEnum>;\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,gBAAgB,WAA6D;CAEzF,MAAM,SAAS,KAAK,MAAM,KAAK,UAAU,UAAU,CAAC;AAGpD,KAAI,OAAO,OAAO,gBAAgB,SAC9B,QAAO,cAAc,SAAS,OAAO,aAAa,GAAG;AAGzD,KAAI,OAAO,iBAAiB,KAAA,EACxB,QAAO,eAAe;AAG1B,QAAO;;;;ACHX,MAAM,+BAAe,IAAI,KAA8B;AACvD,MAAM,iCAAiB,IAAI,SAA0C;AAErE,MAAa,gBAAgB;CACzB,SAAS,KAA+C;EACpD,MAAM,OAAO,IAA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,SAASA,IAAE,QAAQ;EACnB,WAAWA,IAAE,QAAQ;EACrB,SAASA,IAAE,QAAQ,CAAC,UAAU;EACjC,CAAC;CACL,CAAC;;;;;;;;;;ACvBF,MAAa,aAAaC,IAAE,KAAK;CAC7B;CACA;CACA;CACA;CACH,CAAC;;;;;;;AAUF,MAAa,cAAcA,IAAE,KAAK;CAC9B;CACA;CACA;CACH,CAAC;;;;;;;AAUF,MAAa,oBAAoBA,IAAE,KAAK;CACpC;CACA;CACA;CACH,CAAC;;;;;;AASF,MAAa,iBAAiBA,IAAE,KAAK;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACH,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_methods = require("../methods-CuiwUO7-.cjs");
|
|
3
|
+
exports.addLabel = require_methods.addLabel;
|
|
4
|
+
exports.addParticipant = require_methods.addParticipant;
|
|
5
|
+
exports.approveGroupJoinRequest = require_methods.approveGroupJoinRequest;
|
|
6
|
+
exports.archiveChat = require_methods.archiveChat;
|
|
7
|
+
exports.blockContact = require_methods.blockContact;
|
|
8
|
+
exports.checkNumberStatus = require_methods.checkNumberStatus;
|
|
9
|
+
exports.checkReadReceipts = require_methods.checkReadReceipts;
|
|
10
|
+
exports.clearChat = require_methods.clearChat;
|
|
11
|
+
exports.createGroup = require_methods.createGroup;
|
|
12
|
+
exports.decryptMedia = require_methods.decryptMedia;
|
|
13
|
+
exports.deleteAllStatus = require_methods.deleteAllStatus;
|
|
14
|
+
exports.deleteChat = require_methods.deleteChat;
|
|
15
|
+
exports.deleteMessage = require_methods.deleteMessage;
|
|
16
|
+
exports.deleteStatus = require_methods.deleteStatus;
|
|
17
|
+
exports.demoteParticipant = require_methods.demoteParticipant;
|
|
18
|
+
exports.downloadMedia = require_methods.downloadMedia;
|
|
19
|
+
exports.forwardMessages = require_methods.forwardMessages;
|
|
20
|
+
exports.getAllChatIds = require_methods.getAllChatIds;
|
|
21
|
+
exports.getAllChats = require_methods.getAllChats;
|
|
22
|
+
exports.getAllCommunities = require_methods.getAllCommunities;
|
|
23
|
+
exports.getAllContacts = require_methods.getAllContacts;
|
|
24
|
+
exports.getAllGroups = require_methods.getAllGroups;
|
|
25
|
+
exports.getAllLabels = require_methods.getAllLabels;
|
|
26
|
+
exports.getAllMessages = require_methods.getAllMessages;
|
|
27
|
+
exports.getBatteryLevel = require_methods.getBatteryLevel;
|
|
28
|
+
exports.getBlockedIds = require_methods.getBlockedIds;
|
|
29
|
+
exports.getBusinessProducts = require_methods.getBusinessProducts;
|
|
30
|
+
exports.getBusinessProfile = require_methods.getBusinessProfile;
|
|
31
|
+
exports.getChat = require_methods.getChat;
|
|
32
|
+
exports.getChatWithNonContacts = require_methods.getChatWithNonContacts;
|
|
33
|
+
exports.getChatsByLabel = require_methods.getChatsByLabel;
|
|
34
|
+
exports.getCommonGroups = require_methods.getCommonGroups;
|
|
35
|
+
exports.getCommunityAdminIds = require_methods.getCommunityAdminIds;
|
|
36
|
+
exports.getCommunityAdmins = require_methods.getCommunityAdmins;
|
|
37
|
+
exports.getCommunityInfo = require_methods.getCommunityInfo;
|
|
38
|
+
exports.getCommunityParticipantIds = require_methods.getCommunityParticipantIds;
|
|
39
|
+
exports.getCommunityParticipants = require_methods.getCommunityParticipants;
|
|
40
|
+
exports.getConnectionState = require_methods.getConnectionState;
|
|
41
|
+
exports.getContact = require_methods.getContact;
|
|
42
|
+
exports.getFeatures = require_methods.getFeatures;
|
|
43
|
+
exports.getGroupAdmins = require_methods.getGroupAdmins;
|
|
44
|
+
exports.getGroupInfo = require_methods.getGroupInfo;
|
|
45
|
+
exports.getGroupInviteLink = require_methods.getGroupInviteLink;
|
|
46
|
+
exports.getGroupMembers = require_methods.getGroupMembers;
|
|
47
|
+
exports.getGroupMembersId = require_methods.getGroupMembersId;
|
|
48
|
+
exports.getHostNumber = require_methods.getHostNumber;
|
|
49
|
+
exports.getKickedGroups = require_methods.getKickedGroups;
|
|
50
|
+
exports.getLicenseType = require_methods.getLicenseType;
|
|
51
|
+
exports.getLoadedMessageCount = require_methods.getLoadedMessageCount;
|
|
52
|
+
exports.getMe = require_methods.getMe;
|
|
53
|
+
exports.getMessageById = require_methods.getMessageById;
|
|
54
|
+
exports.getMessageInfo = require_methods.getMessageInfo;
|
|
55
|
+
exports.getMessagesForLLM = require_methods.getMessagesForLLM;
|
|
56
|
+
exports.getMyLastMessage = require_methods.getMyLastMessage;
|
|
57
|
+
exports.getNumberProfile = require_methods.getNumberProfile;
|
|
58
|
+
exports.getOrder = require_methods.getOrder;
|
|
59
|
+
exports.getProcessStats = require_methods.getProcessStats;
|
|
60
|
+
exports.getProfilePicture = require_methods.getProfilePicture;
|
|
61
|
+
exports.getSnapshot = require_methods.getSnapshot;
|
|
62
|
+
exports.getStarredMessages = require_methods.getStarredMessages;
|
|
63
|
+
exports.getStatus = require_methods.getStatus;
|
|
64
|
+
exports.getStories = require_methods.getStories;
|
|
65
|
+
exports.getUnsentMessages = require_methods.getUnsentMessages;
|
|
66
|
+
exports.getUserAgent = require_methods.getUserAgent;
|
|
67
|
+
exports.getVCards = require_methods.getVCards;
|
|
68
|
+
exports.getWAVersion = require_methods.getWAVersion;
|
|
69
|
+
exports.healthCheck = require_methods.healthCheck;
|
|
70
|
+
exports.isChatOnline = require_methods.isChatOnline;
|
|
71
|
+
exports.isPlugged = require_methods.isPlugged;
|
|
72
|
+
exports.joinGroupViaLink = require_methods.joinGroupViaLink;
|
|
73
|
+
exports.leaveGroup = require_methods.leaveGroup;
|
|
74
|
+
exports.loadEarlierMessages = require_methods.loadEarlierMessages;
|
|
75
|
+
exports.markAsRead = require_methods.markAsRead;
|
|
76
|
+
exports.markAsUnread = require_methods.markAsUnread;
|
|
77
|
+
exports.muteChat = require_methods.muteChat;
|
|
78
|
+
exports.pinChat = require_methods.pinChat;
|
|
79
|
+
exports.postImageStatus = require_methods.postImageStatus;
|
|
80
|
+
exports.postTextStatus = require_methods.postTextStatus;
|
|
81
|
+
exports.postVideoStatus = require_methods.postVideoStatus;
|
|
82
|
+
exports.promoteParticipant = require_methods.promoteParticipant;
|
|
83
|
+
exports.react = require_methods.react;
|
|
84
|
+
exports.rejectGroupJoinRequest = require_methods.rejectGroupJoinRequest;
|
|
85
|
+
exports.removeLabel = require_methods.removeLabel;
|
|
86
|
+
exports.removeParticipant = require_methods.removeParticipant;
|
|
87
|
+
exports.revokeGroupInviteLink = require_methods.revokeGroupInviteLink;
|
|
88
|
+
exports.sendAdvancedButtons = require_methods.sendAdvancedButtons;
|
|
89
|
+
exports.sendAudio = require_methods.sendAudio;
|
|
90
|
+
exports.sendBanner = require_methods.sendBanner;
|
|
91
|
+
exports.sendButtons = require_methods.sendButtons;
|
|
92
|
+
exports.sendContact = require_methods.sendContact;
|
|
93
|
+
exports.sendFile = require_methods.sendFile;
|
|
94
|
+
exports.sendFileFromUrl = require_methods.sendFileFromUrl;
|
|
95
|
+
exports.sendImage = require_methods.sendImage;
|
|
96
|
+
exports.sendLinkWithAutoPreview = require_methods.sendLinkWithAutoPreview;
|
|
97
|
+
exports.sendListMessage = require_methods.sendListMessage;
|
|
98
|
+
exports.sendLocation = require_methods.sendLocation;
|
|
99
|
+
exports.sendMessageWithThumb = require_methods.sendMessageWithThumb;
|
|
100
|
+
exports.sendMultipleContacts = require_methods.sendMultipleContacts;
|
|
101
|
+
exports.sendPaymentRequest = require_methods.sendPaymentRequest;
|
|
102
|
+
exports.sendPoll = require_methods.sendPoll;
|
|
103
|
+
exports.sendPtt = require_methods.sendPtt;
|
|
104
|
+
exports.sendReplyWithMentions = require_methods.sendReplyWithMentions;
|
|
105
|
+
exports.sendSeen = require_methods.sendSeen;
|
|
106
|
+
exports.sendText = require_methods.sendText;
|
|
107
|
+
exports.sendTextWithMentions = require_methods.sendTextWithMentions;
|
|
108
|
+
exports.sendVCard = require_methods.sendVCard;
|
|
109
|
+
exports.sendVideoAsGif = require_methods.sendVideoAsGif;
|
|
110
|
+
exports.sendYouTubeLink = require_methods.sendYouTubeLink;
|
|
111
|
+
exports.setChatEphemeral = require_methods.setChatEphemeral;
|
|
112
|
+
exports.setGroupDescription = require_methods.setGroupDescription;
|
|
113
|
+
exports.setGroupEditToAdminsOnly = require_methods.setGroupEditToAdminsOnly;
|
|
114
|
+
exports.setGroupIcon = require_methods.setGroupIcon;
|
|
115
|
+
exports.setGroupTitle = require_methods.setGroupTitle;
|
|
116
|
+
exports.setGroupToAdminsOnly = require_methods.setGroupToAdminsOnly;
|
|
117
|
+
exports.setMyName = require_methods.setMyName;
|
|
118
|
+
exports.setMyStatus = require_methods.setMyStatus;
|
|
119
|
+
exports.setProfilePicture = require_methods.setProfilePicture;
|
|
120
|
+
exports.starMessage = require_methods.starMessage;
|
|
121
|
+
exports.unarchiveChat = require_methods.unarchiveChat;
|
|
122
|
+
exports.unblockContact = require_methods.unblockContact;
|
|
123
|
+
exports.unmuteChat = require_methods.unmuteChat;
|
|
124
|
+
exports.unpinChat = require_methods.unpinChat;
|
|
125
|
+
exports.unstarMessage = require_methods.unstarMessage;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $n as pinChat, $t as getStatus, An as setGroupTitle, Ar as sendPoll, At as getFeatures, Bn as getProfilePicture, Br as unstarMessage, Bt as isPlugged, Cn as promoteParticipant, Cr as sendImage, Dn as setGroupDescription, Dr as sendMessageWithThumb, Dt as downloadMedia, En as revokeGroupInviteLink, Er as sendLocation, Et as decryptMedia, Fn as getAllContacts, Fr as sendTextWithMentions, Ft as getProcessStats, Gn as getAllChatIds, Gt as getBusinessProfile, Hn as archiveChat, Ht as setMyStatus, In as getBlockedIds, Ir as sendVCard, It as getSnapshot, Jn as getChatWithNonContacts, Jt as getAllLabels, Kn as getAllChats, Kt as getOrder, Ln as getCommonGroups, Lr as sendVideoAsGif, Lt as getUserAgent, Mn as blockContact, Mr as sendReplyWithMentions, Mt as getLicenseType, Nn as checkNumberStatus, Nr as sendSeen, Nt as getLoadedMessageCount, On as setGroupEditToAdminsOnly, Or as sendMultipleContacts, Ot as getBatteryLevel, Pn as checkReadReceipts, Pr as sendText, Pt as getMe, Qn as muteChat, Qt as deleteStatus, Rn as getContact, Rr as sendYouTubeLink, Rt as getWAVersion, Sn as leaveGroup, Sr as sendFileFromUrl, Tn as removeParticipant, Tr as sendListMessage, Un as clearChat, Ut as setProfilePicture, Vn as unblockContact, Vt as setMyName, Wn as deleteChat, Wt as getBusinessProducts, Xn as markAsRead, Xt as removeLabel, Yn as isChatOnline, Yt as getChatsByLabel, Zn as markAsUnread, Zt as deleteAllStatus, _n as getGroupInviteLink, _r as sendAudio, an as getCommunityAdminIds, ar as forwardMessages, bn as getKickedGroups, br as sendContact, cn as getCommunityParticipantIds, cr as getMessageInfo, dn as approveGroupJoinRequest, dr as getStarredMessages, en as getStories, er as setChatEphemeral, fn as createGroup, fr as getUnsentMessages, gn as getGroupInfo, gr as sendAdvancedButtons, hn as getGroupAdmins, hr as react, in as getAllCommunities, ir as deleteMessage, jn as setGroupToAdminsOnly, jr as sendPtt, jt as getHostNumber, kn as setGroupIcon, kr as sendPaymentRequest, kt as getConnectionState, ln as getCommunityParticipants, lr as getMessagesForLLM, mn as getAllGroups, mr as loadEarlierMessages, nn as postTextStatus, nr as unmuteChat, on as getCommunityAdmins, or as getAllMessages, pn as demoteParticipant, pr as getVCards, qn as getChat, qt as addLabel, rn as postVideoStatus, rr as unpinChat, sn as getCommunityInfo, sr as getMessageById, tn as postImageStatus, tr as unarchiveChat, un as addParticipant, ur as getMyLastMessage, vn as getGroupMembers, vr as sendBanner, wn as rejectGroupJoinRequest, wr as sendLinkWithAutoPreview, xn as joinGroupViaLink, xr as sendFile, yn as getGroupMembersId, yr as sendButtons, zn as getNumberProfile, zr as starMessage, zt as healthCheck } from "../index-BB9uyLe8.cjs";
|
|
2
|
+
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $n as pinChat, $t as getStatus, An as setGroupTitle, Ar as sendPoll, At as getFeatures, Bn as getProfilePicture, Br as unstarMessage, Bt as isPlugged, Cn as promoteParticipant, Cr as sendImage, Dn as setGroupDescription, Dr as sendMessageWithThumb, Dt as downloadMedia, En as revokeGroupInviteLink, Er as sendLocation, Et as decryptMedia, Fn as getAllContacts, Fr as sendTextWithMentions, Ft as getProcessStats, Gn as getAllChatIds, Gt as getBusinessProfile, Hn as archiveChat, Ht as setMyStatus, In as getBlockedIds, Ir as sendVCard, It as getSnapshot, Jn as getChatWithNonContacts, Jt as getAllLabels, Kn as getAllChats, Kt as getOrder, Ln as getCommonGroups, Lr as sendVideoAsGif, Lt as getUserAgent, Mn as blockContact, Mr as sendReplyWithMentions, Mt as getLicenseType, Nn as checkNumberStatus, Nr as sendSeen, Nt as getLoadedMessageCount, On as setGroupEditToAdminsOnly, Or as sendMultipleContacts, Ot as getBatteryLevel, Pn as checkReadReceipts, Pr as sendText, Pt as getMe, Qn as muteChat, Qt as deleteStatus, Rn as getContact, Rr as sendYouTubeLink, Rt as getWAVersion, Sn as leaveGroup, Sr as sendFileFromUrl, Tn as removeParticipant, Tr as sendListMessage, Un as clearChat, Ut as setProfilePicture, Vn as unblockContact, Vt as setMyName, Wn as deleteChat, Wt as getBusinessProducts, Xn as markAsRead, Xt as removeLabel, Yn as isChatOnline, Yt as getChatsByLabel, Zn as markAsUnread, Zt as deleteAllStatus, _n as getGroupInviteLink, _r as sendAudio, an as getCommunityAdminIds, ar as forwardMessages, bn as getKickedGroups, br as sendContact, cn as getCommunityParticipantIds, cr as getMessageInfo, dn as approveGroupJoinRequest, dr as getStarredMessages, en as getStories, er as setChatEphemeral, fn as createGroup, fr as getUnsentMessages, gn as getGroupInfo, gr as sendAdvancedButtons, hn as getGroupAdmins, hr as react, in as getAllCommunities, ir as deleteMessage, jn as setGroupToAdminsOnly, jr as sendPtt, jt as getHostNumber, kn as setGroupIcon, kr as sendPaymentRequest, kt as getConnectionState, ln as getCommunityParticipants, lr as getMessagesForLLM, mn as getAllGroups, mr as loadEarlierMessages, nn as postTextStatus, nr as unmuteChat, on as getCommunityAdmins, or as getAllMessages, pn as demoteParticipant, pr as getVCards, qn as getChat, qt as addLabel, rn as postVideoStatus, rr as unpinChat, sn as getCommunityInfo, sr as getMessageById, tn as postImageStatus, tr as unarchiveChat, un as addParticipant, ur as getMyLastMessage, vn as getGroupMembers, vr as sendBanner, wn as rejectGroupJoinRequest, wr as sendLinkWithAutoPreview, xn as joinGroupViaLink, xr as sendFile, yn as getGroupMembersId, yr as sendButtons, zn as getNumberProfile, zr as starMessage, zt as healthCheck } from "../index-D77q1gPk.mjs";
|
|
2
|
+
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as rejectGroupJoinRequest, $t as sendLinkWithAutoPreview, A as postImageStatus, At as unarchiveChat, B as approveGroupJoinRequest, Bt as getStarredMessages, C as getAllLabels, Ct as getChatWithNonContacts, D as deleteStatus, Dt as muteChat, E as deleteAllStatus, Et as markAsUnread, F as getCommunityAdmins, Ft as getAllMessages, G as getGroupInfo, Gt as sendAdvancedButtons, H as demoteParticipant, Ht as getVCards, I as getCommunityInfo, It as getMessageById, J as getGroupMembersId, Jt as sendButtons, K as getGroupInviteLink, Kt as sendAudio, L as getCommunityParticipantIds, Lt as getMessageInfo, M as postVideoStatus, Mt as unpinChat, N as getAllCommunities, Nt as deleteMessage, O as getStatus, Ot as pinChat, P as getCommunityAdminIds, Pt as forwardMessages, Q as promoteParticipant, Qt as sendImage, R as getCommunityParticipants, Rt as getMessagesForLLM, S as addLabel, St as getChat, T as removeLabel, Tt as markAsRead, U as getAllGroups, Ut as loadEarlierMessages, V as createGroup, Vt as getUnsentMessages, W as getGroupAdmins, Wt as react, X as joinGroupViaLink, Xt as sendFile, Y as getKickedGroups, Yt as sendContact, Z as leaveGroup, Zt as sendFileFromUrl, _ as setMyStatus, _t as archiveChat, a as getFeatures, an as sendPoll, at as setGroupTitle, b as getBusinessProfile, bt as getAllChatIds, c as getLoadedMessageCount, cn as sendSeen, ct as checkNumberStatus, d as getSnapshot, dn as sendVCard, dt as getBlockedIds, en as sendListMessage, et as removeParticipant, f as getUserAgent, fn as sendVideoAsGif, ft as getCommonGroups, g as setMyName, gt as unblockContact, h as isPlugged, hn as unstarMessage, ht as getProfilePicture, i as getConnectionState, in as sendPaymentRequest, it as setGroupIcon, j as postTextStatus, jt as unmuteChat, k as getStories, kt as setChatEphemeral, l as getMe, ln as sendText, lt as checkReadReceipts, m as healthCheck, mn as starMessage, mt as getNumberProfile, n as downloadMedia, nn as sendMessageWithThumb, nt as setGroupDescription, o as getHostNumber, on as sendPtt, ot as setGroupToAdminsOnly, p as getWAVersion, pn as sendYouTubeLink, pt as getContact, q as getGroupMembers, qt as sendBanner, r as getBatteryLevel, rn as sendMultipleContacts, rt as setGroupEditToAdminsOnly, s as getLicenseType, sn as sendReplyWithMentions, st as blockContact, t as decryptMedia, tn as sendLocation, tt as revokeGroupInviteLink, u as getProcessStats, un as sendTextWithMentions, ut as getAllContacts, v as setProfilePicture, vt as clearChat, w as getChatsByLabel, wt as isChatOnline, x as getOrder, xt as getAllChats, y as getBusinessProducts, yt as deleteChat, z as addParticipant, zt as getMyLastMessage } from "../methods-BXZrkKjP.mjs";
|
|
2
|
+
export { addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|