@zapyapi/sdk 1.0.0-beta.5 → 1.0.0-beta.7
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/README.md +114 -19
- package/index.cjs +865 -139
- package/index.js +865 -130
- package/package.json +1 -1
- package/src/client.d.ts +1 -1
- package/src/index.d.ts +11 -7
- package/src/index.d.ts.map +1 -1
- package/src/types/enums.d.ts +6 -89
- package/src/types/enums.d.ts.map +1 -1
- package/src/types/events/instance-status.d.ts +3 -13
- package/src/types/events/instance-status.d.ts.map +1 -1
- package/src/types/index.d.ts +3 -5
- package/src/types/index.d.ts.map +1 -1
- package/src/version.d.ts +1 -1
- package/src/types/webhook-events.types.d.ts +0 -257
- package/src/types/webhook-events.types.d.ts.map +0 -1
package/package.json
CHANGED
package/src/client.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { InstancesResource } from './resources/instances.resource';
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```typescript
|
|
14
|
-
* import { ZapyClient,
|
|
14
|
+
* import { ZapyClient, ZapyEventTypes, isTextMessage } from '@zapyapi/sdk';
|
|
15
15
|
*
|
|
16
16
|
* const client = new ZapyClient({
|
|
17
17
|
* apiKey: 'your-api-key',
|
package/src/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* import { ZapyClient,
|
|
8
|
+
* import { ZapyClient, ZapyEventTypes, InstanceStatus, isTextMessage } from '@zapyapi/sdk';
|
|
9
9
|
*
|
|
10
10
|
* const client = new ZapyClient({
|
|
11
11
|
* apiKey: 'your-api-key',
|
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
* text: 'Hello from ZapyAPI SDK!'
|
|
18
18
|
* });
|
|
19
19
|
*
|
|
20
|
-
* // Handle webhook events
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* // Handle webhook events
|
|
21
|
+
* function handleWebhook(payload: ZapyWebhookPayload) {
|
|
22
|
+
* if (payload.event === ZapyEventTypes.MESSAGE) {
|
|
23
|
+
* if (isTextMessage(payload.data)) {
|
|
24
|
+
* console.log('Text:', payload.data.text);
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
23
27
|
* }
|
|
24
28
|
*
|
|
25
29
|
* // Check instance status
|
|
@@ -31,9 +35,9 @@
|
|
|
31
35
|
*/
|
|
32
36
|
export { ZapyClient, createClient } from './client';
|
|
33
37
|
export { ZapyError, ZapyApiError, ValidationError, InstanceNotFoundError, AuthenticationError, RateLimitError, NetworkError, TimeoutError, } from './errors';
|
|
34
|
-
export {
|
|
35
|
-
export { isMessageEvent, isMessageStatusEvent, isQRCodeEvent, isContactCreatedEvent, isContactUpdatedEvent, isContactDeduplicatedEvent, } from './types';
|
|
38
|
+
export { InstanceStatus, WebhookQueueStatus, ZapyMessageStatusEnum, ZapyMessageType, ZapyEventTypes, } from './types';
|
|
36
39
|
export { isTextMessage, isImageMessage, isVideoMessage, isAudioMessage, isDocumentMessage, isStickerMessage, isLocationMessage, isLiveLocationMessage, isContactMessage, isReactionMessage, isEditedMessage, isDeletedMessage, isPollMessage, isPollVoteMessage, isCallMessage, isUnsupportedMessage, isMediaMessage, } from './types';
|
|
37
|
-
export type { ZapyClientOptions, PaginationQuery, PaginatedResponse, ApiErrorResponse, Instance, CreateInstanceOptions, QRCodeResponse, InstanceStatusResponse, CheckNumberResult, CheckNumbersResponse, PresenceType, SendPresenceOptions, ProfilePictureResponse, GroupParticipant, GroupMetadata, BaseMessageOptions, SendTextMessageOptions, MediaSource, SendImageMessageOptions, SendVideoMessageOptions, SendAudioNoteMessageOptions, SendAudioFileMessageOptions, SendDocumentMessageOptions, SendLocationMessageOptions, ContactCardInfo, SendContactMessageOptions, SendStickerMessageOptions, SendReactionOptions, ForwardMessageOptions, EditMessageOptions, MessageResponse, ReadMessageResponse, MediaDownloadLinkResponse,
|
|
40
|
+
export type { ZapyClientOptions, PaginationQuery, PaginatedResponse, ApiErrorResponse, Instance, CreateInstanceOptions, QRCodeResponse, InstanceStatusResponse, CheckNumberResult, CheckNumbersResponse, PresenceType, SendPresenceOptions, ProfilePictureResponse, GroupParticipant, GroupMetadata, BaseMessageOptions, SendTextMessageOptions, MediaSource, SendImageMessageOptions, SendVideoMessageOptions, SendAudioNoteMessageOptions, SendAudioFileMessageOptions, SendDocumentMessageOptions, SendLocationMessageOptions, ContactCardInfo, SendContactMessageOptions, SendStickerMessageOptions, SendReactionOptions, ForwardMessageOptions, EditMessageOptions, MessageResponse, ReadMessageResponse, MediaDownloadLinkResponse, UserWebhookConfig, UpsertWebhookConfigInput, WebhookQueueStatusResponse, WebhookResumeResult, ZapyMessageStatus, ZapyCallStatus, BaseZapyMessage, QuotedMessage, ZapyTextMessage, BaseMediaMessage, ZapyImageMessage, ZapyVideoMessage, ZapyAudioMessage, ZapyDocumentMessage, ZapyStickerMessage, ZapyLocationMessage, ZapyLiveLocationMessage, ZapyContactInfo, ZapyContactMessage, ZapyReactionMessage, ZapyEditedMessage, ZapyDeletedMessage, PollOption, ZapyPollMessage, ZapyPollVoteMessage, ZapyCallMessage, ZapyUnsupportedMessage, ZapyMessage, ZapyContact, ZapyContactCreatedEvent, ZapyContactUpdatedEvent, ZapyContactDeduplicatedEvent, ZapyInstanceStatusEvent, ZapyPresenceStatus, ZapyPresenceEvent, ZapyQRCodeEvent, ZapyReactionEvent, ZapyEventMap, ZapyEventType, ZapyEvent, ZapyWebhookPayload, } from './types';
|
|
38
41
|
export { normalizePhone, isValidPhone, isGroup, extractPhone, verifyWebhookSignature, verifyWebhookSignatureAsync, } from './utils';
|
|
42
|
+
export { Api as ZapyRestApi } from './generated/Api';
|
|
39
43
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/sdk/src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/sdk/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGpD,OAAO,EACL,SAAS,EACT,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,aAAa,EACb,cAAc,EACd,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,YAAY,EAEV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EAEb,kBAAkB,EAClB,sBAAsB,EACtB,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,eAAe,EACf,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EAEnB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,WAAW,EAEX,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
package/src/types/enums.d.ts
CHANGED
|
@@ -1,45 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SDK Enums - Type-safe enums for ZapyAPI SDK
|
|
3
3
|
*
|
|
4
|
-
* These enums can be imported and used for type-safe comparisons and
|
|
5
|
-
* webhook event handling.
|
|
6
|
-
*
|
|
7
4
|
* @example
|
|
8
5
|
* ```typescript
|
|
9
|
-
* import {
|
|
10
|
-
*
|
|
11
|
-
* // Type-safe event handling
|
|
12
|
-
* if (event.event === WebhookEventType.MESSAGE) {
|
|
13
|
-
* // Handle message event
|
|
14
|
-
* }
|
|
6
|
+
* import { InstanceStatus, ZapyEventTypes, ZapyMessageType } from '@zapyapi/sdk';
|
|
15
7
|
*
|
|
16
8
|
* // Check instance status
|
|
17
9
|
* if (instance.status === InstanceStatus.CONNECTED) {
|
|
18
10
|
* // Instance is ready
|
|
19
11
|
* }
|
|
12
|
+
*
|
|
13
|
+
* // Handle webhook events
|
|
14
|
+
* if (payload.event === ZapyEventTypes.MESSAGE) {
|
|
15
|
+
* // Handle message
|
|
16
|
+
* }
|
|
20
17
|
* ```
|
|
21
18
|
*/
|
|
22
|
-
/**
|
|
23
|
-
* Webhook event types sent by ZapyAPI
|
|
24
|
-
* These are the event types you'll receive in webhook payloads
|
|
25
|
-
*/
|
|
26
|
-
export declare const WebhookEventType: {
|
|
27
|
-
/** New message received */
|
|
28
|
-
readonly MESSAGE: "message";
|
|
29
|
-
/** Message delivery status update */
|
|
30
|
-
readonly MESSAGE_STATUS: "message-status";
|
|
31
|
-
/** QR code generated for authentication */
|
|
32
|
-
readonly QR_CODE: "qr-code";
|
|
33
|
-
/** New contact discovered */
|
|
34
|
-
readonly CONTACT_CREATED: "contact-created";
|
|
35
|
-
/** Contact information updated */
|
|
36
|
-
readonly CONTACT_UPDATED: "contact-updated";
|
|
37
|
-
/** Duplicate contacts merged */
|
|
38
|
-
readonly CONTACT_DEDUPLICATED: "contact-deduplicated";
|
|
39
|
-
/** Instance status changed (connected, disconnected, etc.) */
|
|
40
|
-
readonly INSTANCE_STATUS: "instance-status";
|
|
41
|
-
};
|
|
42
|
-
export type WebhookEventType = (typeof WebhookEventType)[keyof typeof WebhookEventType];
|
|
43
19
|
/**
|
|
44
20
|
* Instance status values
|
|
45
21
|
* Represents the current state of a WhatsApp instance
|
|
@@ -65,50 +41,6 @@ export declare const InstanceStatus: {
|
|
|
65
41
|
readonly PAYMENT_PENDING: "payment_pending";
|
|
66
42
|
};
|
|
67
43
|
export type InstanceStatus = (typeof InstanceStatus)[keyof typeof InstanceStatus];
|
|
68
|
-
/**
|
|
69
|
-
* Message acknowledgment status
|
|
70
|
-
* Represents the delivery status of a sent message
|
|
71
|
-
*/
|
|
72
|
-
export declare const MessageAckStatus: {
|
|
73
|
-
/** Message is pending to be sent */
|
|
74
|
-
readonly PENDING: "pending";
|
|
75
|
-
/** Message was sent to server */
|
|
76
|
-
readonly SENT: "sent";
|
|
77
|
-
/** Message was delivered to recipient */
|
|
78
|
-
readonly DELIVERED: "delivered";
|
|
79
|
-
/** Message was read by recipient */
|
|
80
|
-
readonly READ: "read";
|
|
81
|
-
/** Audio/video message was played */
|
|
82
|
-
readonly PLAYED: "played";
|
|
83
|
-
};
|
|
84
|
-
export type MessageAckStatus = (typeof MessageAckStatus)[keyof typeof MessageAckStatus];
|
|
85
|
-
/**
|
|
86
|
-
* Message types for incoming messages
|
|
87
|
-
* Identifies the type of content in a received message
|
|
88
|
-
*/
|
|
89
|
-
export declare const MessageType: {
|
|
90
|
-
/** Text message */
|
|
91
|
-
readonly TEXT: "text";
|
|
92
|
-
/** Image message */
|
|
93
|
-
readonly IMAGE: "image";
|
|
94
|
-
/** Video message */
|
|
95
|
-
readonly VIDEO: "video";
|
|
96
|
-
/** Audio message (voice note or file) */
|
|
97
|
-
readonly AUDIO: "audio";
|
|
98
|
-
/** Document/file message */
|
|
99
|
-
readonly DOCUMENT: "document";
|
|
100
|
-
/** Sticker message */
|
|
101
|
-
readonly STICKER: "sticker";
|
|
102
|
-
/** Location message */
|
|
103
|
-
readonly LOCATION: "location";
|
|
104
|
-
/** Contact card message */
|
|
105
|
-
readonly CONTACT: "contact";
|
|
106
|
-
/** Poll message */
|
|
107
|
-
readonly POLL: "poll";
|
|
108
|
-
/** Reaction message */
|
|
109
|
-
readonly REACTION: "reaction";
|
|
110
|
-
};
|
|
111
|
-
export type MessageType = (typeof MessageType)[keyof typeof MessageType];
|
|
112
44
|
/**
|
|
113
45
|
* Webhook queue item status
|
|
114
46
|
* Used for monitoring webhook delivery status
|
|
@@ -126,19 +58,4 @@ export declare const WebhookQueueStatus: {
|
|
|
126
58
|
readonly PAUSED: "paused";
|
|
127
59
|
};
|
|
128
60
|
export type WebhookQueueStatus = (typeof WebhookQueueStatus)[keyof typeof WebhookQueueStatus];
|
|
129
|
-
/**
|
|
130
|
-
* Connection status for webhook events
|
|
131
|
-
* Sent in connection.update webhook events
|
|
132
|
-
*/
|
|
133
|
-
export declare const ConnectionStatus: {
|
|
134
|
-
/** Instance is connecting */
|
|
135
|
-
readonly CONNECTING: "connecting";
|
|
136
|
-
/** Instance is connected */
|
|
137
|
-
readonly CONNECTED: "connected";
|
|
138
|
-
/** Instance disconnected */
|
|
139
|
-
readonly DISCONNECTED: "disconnected";
|
|
140
|
-
/** Connection error occurred */
|
|
141
|
-
readonly ERROR: "error";
|
|
142
|
-
};
|
|
143
|
-
export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
|
|
144
61
|
//# sourceMappingURL=enums.d.ts.map
|
package/src/types/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../libs/sdk/src/types/enums.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../libs/sdk/src/types/enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB,0BAA0B;;IAE1B,4CAA4C;;IAE5C,yCAAyC;;IAEzC,wCAAwC;;IAExC,sCAAsC;;IAEtC,oCAAoC;;IAEpC,gCAAgC;;IAEhC,iCAAiC;;IAEjC,wCAAwC;;CAEhC,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B,qCAAqC;;IAErC,iCAAiC;;IAEjC,yCAAyC;;IAEzC,4CAA4C;;IAE5C,0DAA0D;;CAElD,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
STOPPED = "stopped",
|
|
3
|
-
MANUALLY_STOPPED = "manually_stopped",
|
|
4
|
-
CONNECTING = "connecting",
|
|
5
|
-
PENDING_QR_CODE_SCAN = "pending_qr_code_scan",
|
|
6
|
-
CONNECTED = "connected",
|
|
7
|
-
ERROR = "error",
|
|
8
|
-
CREATED = "created",
|
|
9
|
-
QR_TIMEOUT = "qr_timeout",
|
|
10
|
-
PAYMENT_PENDING = "payment_pending"
|
|
11
|
-
}
|
|
1
|
+
import type { InstanceStatus } from '../enums';
|
|
12
2
|
export interface ZapyInstanceStatusEvent {
|
|
13
3
|
instanceId: string;
|
|
14
|
-
status:
|
|
15
|
-
previousStatus?:
|
|
4
|
+
status: InstanceStatus;
|
|
5
|
+
previousStatus?: InstanceStatus;
|
|
16
6
|
timestamp: number;
|
|
17
7
|
reason?: string;
|
|
18
8
|
connectedNumber?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance-status.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/src/types/events/instance-status.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"instance-status.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/src/types/events/instance-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;IACvB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
package/src/types/index.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type exports for @zapyapi/sdk
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { InstanceStatus, WebhookQueueStatus } from './enums';
|
|
5
5
|
export type { ZapyClientOptions, PaginationQuery, PaginatedResponse, ApiErrorResponse, } from './common.types';
|
|
6
6
|
export type { Instance, CreateInstanceOptions, QRCodeResponse, InstanceStatusResponse, CheckNumberResult, CheckNumbersResponse, PresenceType, SendPresenceOptions, ProfilePictureResponse, GroupParticipant, GroupMetadata, } from './instances.types';
|
|
7
7
|
export type { BaseMessageOptions, SendTextMessageOptions, MediaSource, SendImageMessageOptions, SendVideoMessageOptions, SendAudioNoteMessageOptions, SendAudioFileMessageOptions, SendDocumentMessageOptions, SendLocationMessageOptions, ContactCardInfo, SendContactMessageOptions, SendStickerMessageOptions, SendReactionOptions, ForwardMessageOptions, EditMessageOptions, MessageResponse, ReadMessageResponse, MediaDownloadLinkResponse, } from './messages.types';
|
|
8
|
-
export type { WebhookEventBase, MessageParticipant, MediaInfo, MessageEventData, MessageWebhookEvent, MessageStatusEventData, MessageAckWebhookEvent, QRCodeEventData, QRCodeWebhookEvent, ContactInfo, ContactCreatedEventData, ContactCreatedWebhookEvent, ContactUpdatedEventData, ContactUpdatedWebhookEvent, ContactDeduplicatedEventData, ContactDeduplicatedWebhookEvent, ConnectionEventData, ConnectionWebhookEvent, WebhookEvent, } from './webhook-events.types';
|
|
9
|
-
export { isMessageEvent, isMessageStatusEvent, isQRCodeEvent, isContactCreatedEvent, isContactUpdatedEvent, isContactDeduplicatedEvent, } from './webhook-events.types';
|
|
10
8
|
export type { UserWebhookConfig, UpsertWebhookConfigInput, WebhookQueueStatusResponse, WebhookResumeResult, } from './webhook-config.types';
|
|
11
|
-
export { ZapyMessageStatusEnum, ZapyMessageType
|
|
9
|
+
export { ZapyMessageStatusEnum, ZapyMessageType } from './message-events.types';
|
|
12
10
|
export type { ZapyMessageStatus, ZapyCallStatus, BaseZapyMessage, QuotedMessage, ZapyTextMessage, BaseMediaMessage, ZapyImageMessage, ZapyVideoMessage, ZapyAudioMessage, ZapyDocumentMessage, ZapyStickerMessage, ZapyLocationMessage, ZapyLiveLocationMessage, ContactInfo as ZapyContactInfo, ZapyContactMessage, ZapyReactionMessage, ZapyEditedMessage, ZapyDeletedMessage, PollOption, ZapyPollMessage, ZapyPollVoteMessage, ZapyCallMessage, ZapyUnsupportedMessage, ZapyMessage, } from './message-events.types';
|
|
13
11
|
export { isTextMessage, isImageMessage, isVideoMessage, isAudioMessage, isDocumentMessage, isStickerMessage, isLocationMessage, isLiveLocationMessage, isContactMessage, isReactionMessage, isEditedMessage, isDeletedMessage, isPollMessage, isPollVoteMessage, isCallMessage, isUnsupportedMessage, isMediaMessage, } from './message-events.types';
|
|
14
|
-
export {
|
|
12
|
+
export { ZapyEventTypes } from './events';
|
|
15
13
|
export type { ZapyContact, ZapyContactCreatedEvent, ZapyContactUpdatedEvent, ZapyContactDeduplicatedEvent, ZapyInstanceStatusEvent, ZapyPresenceStatus, ZapyPresenceEvent, ZapyQRCodeEvent, ZapyReactionEvent, ZapyEventMap, ZapyEventType, ZapyEvent, ZapyWebhookPayload, } from './events';
|
|
16
14
|
//# sourceMappingURL=index.d.ts.map
|
package/src/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/sdk/src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/sdk/src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7D,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACV,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,GACd,MAAM,mBAAm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AkB,EAClB,iBAAiB,EAEjB,eAAe,EAEf,iBAAiB,EAEjB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
|
package/src/version.d.ts
CHANGED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Webhook event type definitions
|
|
3
|
-
* Types for webhook payloads sent by ZapyAPI
|
|
4
|
-
*/
|
|
5
|
-
import type { MessageType, MessageAckStatus, ConnectionStatus, InstanceStatus, WebhookEventType as WebhookEventTypeEnum } from './enums';
|
|
6
|
-
/**
|
|
7
|
-
* Re-export the enum type for convenience
|
|
8
|
-
*/
|
|
9
|
-
export type WebhookEventType = WebhookEventTypeEnum;
|
|
10
|
-
/**
|
|
11
|
-
* Base webhook event payload
|
|
12
|
-
* All webhook events include these fields
|
|
13
|
-
*/
|
|
14
|
-
export interface WebhookEventBase<T extends WebhookEventType = WebhookEventType> {
|
|
15
|
-
/** Event type identifier */
|
|
16
|
-
event: T;
|
|
17
|
-
/** Instance ID that generated the event */
|
|
18
|
-
instanceId: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Message sender/recipient info
|
|
22
|
-
*/
|
|
23
|
-
export interface MessageParticipant {
|
|
24
|
-
/** WhatsApp ID (e.g., "5511999999999@c.us") */
|
|
25
|
-
id: string;
|
|
26
|
-
/** Phone number (e.g., "5511999999999") */
|
|
27
|
-
phone: string;
|
|
28
|
-
/** Display name if available */
|
|
29
|
-
name?: string;
|
|
30
|
-
/** Push name (user's WhatsApp name) */
|
|
31
|
-
pushName?: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Media information in messages
|
|
35
|
-
*/
|
|
36
|
-
export interface MediaInfo {
|
|
37
|
-
/** MIME type of the media */
|
|
38
|
-
mimeType: string;
|
|
39
|
-
/** File name if available */
|
|
40
|
-
fileName?: string;
|
|
41
|
-
/** File size in bytes */
|
|
42
|
-
fileSize?: number;
|
|
43
|
-
/** Media URL (temporary, expires) */
|
|
44
|
-
url?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Message webhook event data
|
|
48
|
-
*/
|
|
49
|
-
export interface MessageEventData {
|
|
50
|
-
/** WhatsApp message ID */
|
|
51
|
-
messageId: string;
|
|
52
|
-
/** Message sender */
|
|
53
|
-
from: MessageParticipant;
|
|
54
|
-
/** Message recipient (your number/instance) */
|
|
55
|
-
to: MessageParticipant;
|
|
56
|
-
/** Message content type */
|
|
57
|
-
type: MessageType;
|
|
58
|
-
/** Text content (for text messages) */
|
|
59
|
-
text?: string;
|
|
60
|
-
/** Caption (for media messages) */
|
|
61
|
-
caption?: string;
|
|
62
|
-
/** Media information (for media messages) */
|
|
63
|
-
media?: MediaInfo;
|
|
64
|
-
/** Whether this is a group message */
|
|
65
|
-
isGroup: boolean;
|
|
66
|
-
/** Group participant who sent the message (for group messages) */
|
|
67
|
-
participant?: MessageParticipant;
|
|
68
|
-
/** ID of quoted/replied message */
|
|
69
|
-
quotedMessageId?: string;
|
|
70
|
-
/** Message timestamp (Unix ms) */
|
|
71
|
-
timestamp: number;
|
|
72
|
-
/** Whether this is a forwarded message */
|
|
73
|
-
isForwarded?: boolean;
|
|
74
|
-
/** Whether this is a broadcast message */
|
|
75
|
-
isBroadcast?: boolean;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Message webhook event
|
|
79
|
-
*/
|
|
80
|
-
export interface MessageWebhookEvent extends WebhookEventBase<'message'> {
|
|
81
|
-
data: MessageEventData;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Message status update event data
|
|
85
|
-
*/
|
|
86
|
-
export interface MessageStatusEventData {
|
|
87
|
-
/** WhatsApp message ID */
|
|
88
|
-
messageId: string;
|
|
89
|
-
/** New acknowledgment status */
|
|
90
|
-
ack: MessageAckStatus;
|
|
91
|
-
/** Sender of the original message */
|
|
92
|
-
from: string;
|
|
93
|
-
/** Recipient of the original message */
|
|
94
|
-
to: string;
|
|
95
|
-
/** Timestamp of status update (Unix ms) */
|
|
96
|
-
timestamp: number;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Message acknowledgment/status webhook event
|
|
100
|
-
*/
|
|
101
|
-
export interface MessageAckWebhookEvent extends WebhookEventBase<'message-status'> {
|
|
102
|
-
data: MessageStatusEventData;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* QR code update event data
|
|
106
|
-
*/
|
|
107
|
-
export interface QRCodeEventData {
|
|
108
|
-
/** QR code as base64 data URL */
|
|
109
|
-
qrCode: string;
|
|
110
|
-
/** QR code generation attempt number */
|
|
111
|
-
attempt: number;
|
|
112
|
-
/** Expiration timestamp (Unix ms) */
|
|
113
|
-
expiresAt: number;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* QR code update webhook event
|
|
117
|
-
*/
|
|
118
|
-
export interface QRCodeWebhookEvent extends WebhookEventBase<'qr-code'> {
|
|
119
|
-
data: QRCodeEventData;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Contact information
|
|
123
|
-
*/
|
|
124
|
-
export interface ContactInfo {
|
|
125
|
-
/** WhatsApp ID */
|
|
126
|
-
id: string;
|
|
127
|
-
/** Phone number */
|
|
128
|
-
phone: string;
|
|
129
|
-
/** Contact name */
|
|
130
|
-
name?: string;
|
|
131
|
-
/** Push name (WhatsApp display name) */
|
|
132
|
-
pushName?: string;
|
|
133
|
-
/** Profile picture URL */
|
|
134
|
-
profilePicUrl?: string;
|
|
135
|
-
/** Whether this is a business account */
|
|
136
|
-
isBusiness?: boolean;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Contact created event data
|
|
140
|
-
*/
|
|
141
|
-
export interface ContactCreatedEventData {
|
|
142
|
-
/** The new contact */
|
|
143
|
-
contact: ContactInfo;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Contact created webhook event
|
|
147
|
-
*/
|
|
148
|
-
export interface ContactCreatedWebhookEvent extends WebhookEventBase<'contact-created'> {
|
|
149
|
-
data: ContactCreatedEventData;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Contact updated event data
|
|
153
|
-
*/
|
|
154
|
-
export interface ContactUpdatedEventData {
|
|
155
|
-
/** The updated contact */
|
|
156
|
-
contact: ContactInfo;
|
|
157
|
-
/** Fields that were updated */
|
|
158
|
-
updatedFields: string[];
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Contact updated webhook event
|
|
162
|
-
*/
|
|
163
|
-
export interface ContactUpdatedWebhookEvent extends WebhookEventBase<'contact-updated'> {
|
|
164
|
-
data: ContactUpdatedEventData;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Contact deduplicated event data
|
|
168
|
-
*/
|
|
169
|
-
export interface ContactDeduplicatedEventData {
|
|
170
|
-
/** The primary contact that was kept */
|
|
171
|
-
primaryContact: ContactInfo;
|
|
172
|
-
/** The duplicate contact that was merged */
|
|
173
|
-
duplicateContact: ContactInfo;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Contact deduplicated webhook event
|
|
177
|
-
*/
|
|
178
|
-
export interface ContactDeduplicatedWebhookEvent extends WebhookEventBase<'contact-deduplicated'> {
|
|
179
|
-
data: ContactDeduplicatedEventData;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Instance status change event data
|
|
183
|
-
*/
|
|
184
|
-
export interface InstanceStatusEventData {
|
|
185
|
-
/** Instance ID */
|
|
186
|
-
instanceId: string;
|
|
187
|
-
/** Current status */
|
|
188
|
-
status: InstanceStatus;
|
|
189
|
-
/** Previous status before this change */
|
|
190
|
-
previousStatus?: InstanceStatus;
|
|
191
|
-
/** Timestamp of status change (Unix ms) */
|
|
192
|
-
timestamp: number;
|
|
193
|
-
/** Reason for status change */
|
|
194
|
-
reason?: string;
|
|
195
|
-
/** Connected WhatsApp number (if available) */
|
|
196
|
-
connectedNumber?: string;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Instance status change webhook event
|
|
200
|
-
*/
|
|
201
|
-
export interface InstanceStatusWebhookEvent extends WebhookEventBase<'instance-status'> {
|
|
202
|
-
data: InstanceStatusEventData;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Connection status update event data
|
|
206
|
-
* @deprecated Use InstanceStatusEventData instead
|
|
207
|
-
*/
|
|
208
|
-
export interface ConnectionEventData {
|
|
209
|
-
/** Connection status */
|
|
210
|
-
status: ConnectionStatus;
|
|
211
|
-
/** Reason for status change */
|
|
212
|
-
reason?: string;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Connection status webhook event
|
|
216
|
-
* @deprecated Use InstanceStatusWebhookEvent instead
|
|
217
|
-
*/
|
|
218
|
-
export interface ConnectionWebhookEvent {
|
|
219
|
-
event: 'connection.update';
|
|
220
|
-
instanceId: string;
|
|
221
|
-
data: ConnectionEventData;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Union type for all webhook events
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* ```typescript
|
|
228
|
-
* import { WebhookEvent, WebhookEventType } from '@zapyapi/sdk';
|
|
229
|
-
*
|
|
230
|
-
* function handleWebhook(event: WebhookEvent) {
|
|
231
|
-
* switch (event.event) {
|
|
232
|
-
* case 'message':
|
|
233
|
-
* console.log('New message:', event.data.text);
|
|
234
|
-
* break;
|
|
235
|
-
* case 'message-status':
|
|
236
|
-
* console.log('Status update:', event.data.ack);
|
|
237
|
-
* break;
|
|
238
|
-
* }
|
|
239
|
-
* }
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
export type WebhookEvent = MessageWebhookEvent | MessageAckWebhookEvent | QRCodeWebhookEvent | ContactCreatedWebhookEvent | ContactUpdatedWebhookEvent | ContactDeduplicatedWebhookEvent | InstanceStatusWebhookEvent;
|
|
243
|
-
/** Type guard for message events */
|
|
244
|
-
export declare function isMessageEvent(event: WebhookEvent): event is MessageWebhookEvent;
|
|
245
|
-
/** Type guard for message status events */
|
|
246
|
-
export declare function isMessageStatusEvent(event: WebhookEvent): event is MessageAckWebhookEvent;
|
|
247
|
-
/** Type guard for QR code events */
|
|
248
|
-
export declare function isQRCodeEvent(event: WebhookEvent): event is QRCodeWebhookEvent;
|
|
249
|
-
/** Type guard for contact created events */
|
|
250
|
-
export declare function isContactCreatedEvent(event: WebhookEvent): event is ContactCreatedWebhookEvent;
|
|
251
|
-
/** Type guard for contact updated events */
|
|
252
|
-
export declare function isContactUpdatedEvent(event: WebhookEvent): event is ContactUpdatedWebhookEvent;
|
|
253
|
-
/** Type guard for contact deduplicated events */
|
|
254
|
-
export declare function isContactDeduplicatedEvent(event: WebhookEvent): event is ContactDeduplicatedWebhookEvent;
|
|
255
|
-
/** Type guard for instance status events */
|
|
256
|
-
export declare function isInstanceStatusEvent(event: WebhookEvent): event is InstanceStatusWebhookEvent;
|
|
257
|
-
//# sourceMappingURL=webhook-events.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-events.types.d.ts","sourceRoot":"","sources":["../../../../../libs/sdk/src/types/webhook-events.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,IAAI,oBAAoB,EACzC,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB;IAC7E,4BAA4B;IAC5B,KAAK,EAAE,CAAC,CAAC;IACT,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,K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