@open-wa/schema 5.6.7 → 5.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/calling-media--BLrFrPc.cjs.map +1 -1
  2. package/dist/calling-media-BNTYvogE.mjs.map +1 -1
  3. package/dist/{calling-media-CeGgSzhw.d.cts → calling-media-TZ9L95OH.d.cts} +2 -1
  4. package/dist/{calling-media-CeGgSzhw.d.cts.map → calling-media-TZ9L95OH.d.cts.map} +1 -1
  5. package/dist/{calling-media-CeGgSzhw.d.mts → calling-media-TZ9L95OH.d.mts} +2 -1
  6. package/dist/{calling-media-CeGgSzhw.d.mts.map → calling-media-TZ9L95OH.d.mts.map} +1 -1
  7. package/dist/calling-media.d.cts +1 -1
  8. package/dist/calling-media.d.mts +1 -1
  9. package/dist/generated/index.cjs +1 -1
  10. package/dist/generated/index.d.cts +141 -581
  11. package/dist/generated/index.d.cts.map +1 -1
  12. package/dist/generated/index.d.mts +141 -581
  13. package/dist/generated/index.d.mts.map +1 -1
  14. package/dist/generated/index.mjs +1 -1
  15. package/dist/{index-HeicIada.d.cts → index-BETdayaV.d.cts} +53 -232
  16. package/dist/index-BETdayaV.d.cts.map +1 -0
  17. package/dist/{index-C3kjyOe-.d.mts → index-DH0WRSA7.d.mts} +53 -232
  18. package/dist/index-DH0WRSA7.d.mts.map +1 -0
  19. package/dist/index.cjs +7 -4
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +4 -4
  22. package/dist/index.d.mts +4 -4
  23. package/dist/index.mjs +3 -3
  24. package/dist/{interactive-DxUwKpzK.d.cts → interactive-BE_M4nur.d.cts} +14 -6
  25. package/dist/interactive-BE_M4nur.d.cts.map +1 -0
  26. package/dist/{interactive-DxUwKpzK.d.mts → interactive-BE_M4nur.d.mts} +14 -6
  27. package/dist/interactive-BE_M4nur.d.mts.map +1 -0
  28. package/dist/interactive-ClvvgmVP.cjs +630 -0
  29. package/dist/interactive-ClvvgmVP.cjs.map +1 -0
  30. package/dist/interactive-Dec4HB2U.mjs +475 -0
  31. package/dist/interactive-Dec4HB2U.mjs.map +1 -0
  32. package/dist/interactive.cjs +26 -304
  33. package/dist/interactive.d.cts +2 -2
  34. package/dist/interactive.d.mts +2 -2
  35. package/dist/interactive.mjs +2 -283
  36. package/dist/methods/index.cjs +1 -1
  37. package/dist/methods/index.d.cts +1 -1
  38. package/dist/methods/index.d.mts +1 -1
  39. package/dist/methods/index.mjs +1 -1
  40. package/dist/{methods-QZbG0hN2.cjs → methods-9kRJiEdZ.cjs} +14 -78
  41. package/dist/methods-9kRJiEdZ.cjs.map +1 -0
  42. package/dist/{methods-CGm5G9VI.mjs → methods-NixIgGkq.mjs} +6 -64
  43. package/dist/methods-NixIgGkq.mjs.map +1 -0
  44. package/package.json +3 -3
  45. package/src/__tests__/booking-time.contract.test.ts +88 -0
  46. package/src/booking-time.ts +39 -0
  47. package/src/calling-media.ts +2 -0
  48. package/src/calling.ts +1 -0
  49. package/src/common-types.ts +1 -1
  50. package/src/effect-projection.ts +90 -47
  51. package/src/generated/asyncapi.json +191 -89
  52. package/src/generated/openapi.json +1681 -1307
  53. package/src/interactive.ts +12 -1
  54. package/src/methods/calls.ts +2 -2
  55. package/dist/index-C3kjyOe-.d.mts.map +0 -1
  56. package/dist/index-HeicIada.d.cts.map +0 -1
  57. package/dist/interactive-DxUwKpzK.d.cts.map +0 -1
  58. package/dist/interactive-DxUwKpzK.d.mts.map +0 -1
  59. package/dist/interactive.cjs.map +0 -1
  60. package/dist/interactive.mjs.map +0 -1
  61. package/dist/methods-CGm5G9VI.mjs.map +0 -1
  62. package/dist/methods-QZbG0hN2.cjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as defineMethod, c as getMethodAliases, d as parameterRegistry, f as z, i as defineEvent, l as getParameterMetadata, n as buildKeyAliasMap, o as defineMethodV2, p as zObjectToTuple, r as clientRegistry, s as deriveNamespacedMethodName, t as Registry, u as normalizeParameterKeys } from "./registry-BIddXpin.mjs";
2
- import { $ as getBusinessProfile, $i as StorySchema, $n as sendSeen, $r as UnixSecondsToDateSchema, $t as archiveChat, A as sendInteractive, Aa as validateEventInput, Ai as BusinessProfileSchema, An as getUnsentMessages, Ar as nameParam, At as joinGroupViaLink, B as getLoadedMessageCount, Bi as GroupCreationResultSchema, Bn as sendContact, Br as Base64ToDataUrlSchema, Bt as setGroupToAdminsOnly, C as CallMediaOptionsSchema, Ca as WhatsAppEventSchema, Ci as AutoMediaSendOptionsSchema, Cn as getAllMessages, Cr as latitudeParam, Ct as getAllGroups, D as RawAudioFormatSchema, Da as deserializeWhatsAppEvent, Di as MediaSendOptionsSchema, Dn as getMyLastMessage, Dr as messageIdParam, Dt as getGroupMembers, E as MediaDescriptorSchema, Ea as deserializeEventResponse, Ei as ImageSendOptionsSchema, En as getMessagesForLLM, Er as mentionedJidListParam, Et as getGroupInviteLink, F as getConnectionState, Fi as CommunityMetadataSchema, Fn as sendAdvancedButtons, Fr as toParam, Ft as revokeGroupInviteLink, G as getWAVersion, Gi as LicenseTypeSchema, Gn as sendListMessage, Gr as FileToDataUrlSchema, Gt as getBlockedIds, H as getProcessStats, Hi as HostAccountSchema, Hn as sendFileFromUrl, Hr as ChatIdSchema, Ht as checkNumberStatus, I as getFeatures, Ii as CommunityParticipantIdsSchema, In as sendAlbum, Ir as userAgentParam, It as setGroupDescription, J as setMyName, Ji as NumberCheckSchema, Jn as sendMultipleContacts, Jr as HexColorSchema, Jt as getNumberProfile, K as healthCheck, Ki as MessageInfoSchema, Kn as sendLocation, Kr as GroupIdCodecSchema, Kt as getCommonGroups, L as getHostNumber, Li as CommunityParticipantsSchema, Ln as sendAudio, Lr as videoDataParam, Lt as setGroupEditToAdminsOnly, M as decryptMedia, Ma as projectEffectSchema, Mi as CommonGroupSchema, Mn as loadEarlierMessages, Mr as skipMyMessagesParam, Mt as promoteParticipant, N as downloadMedia, Ni as CommunityAdminIdsSchema, Nn as pinMessage, Nr as statusTextParam, Nt as rejectGroupJoinRequest, O as SendInteractiveInputSchema, Oa as serializeEventResponse, Oi as VideoSendOptionsSchema, On as getPollResults, Or as messageIdsParam, Ot as getGroupMembersId, P as getBatteryLevel, Pi as CommunityAdminsSchema, Pn as react, Pr as stickerDataParam, Pt as removeParticipant, Q as getBusinessProducts, Qi as ProductSchema, Qn as sendReplyWithMentions, Qr as UnixMillisToDateSchema, Qt as unblockContact, R as getLicenseFeatures, Ri as ContactStatusSchema, Rn as sendBanner, Rr as waitForIdParam, Rt as setGroupIcon, S as CallIdentitySchema, Sa as EventUpdateSchema, Si as AudioSendOptionsSchema, Sn as getAlbumMessages, Sr as includeNotificationsParam, St as demoteParticipant, T as CallSnapshotSchema, Ta as decodeWhatsAppEvent, Ti as GifSendOptionsSchema, Tn as getMessageInfo, Tr as longitudeParam, Tt as getGroupInfo, U as getSnapshot, Ui as LLMMessageSchema, Un as sendImage, Ur as ContactIdCodecSchema, Ut as checkReadReceipts, V as getMe, Vi as HealthCheckSchema, Vn as sendFile, Vr as ChatIdCodecSchema, Vt as blockContact, W as getUserAgent, Wi as LabelSchema, Wn as sendLinkWithAutoPreview, Wr as ContactIdSchema, Wt as getAllContacts, X as setProfilePicture, Xi as OrderSchema, Xn as sendPoll, Xr as MessageIdCodecSchema, Xt as requestPhoneNumber, Y as setMyStatus, Yi as NumberProfileSchema, Yn as sendPaymentRequest, Yr as IsoDatetimeToDateSchema, Yt as getProfilePicture, Z as LicenseFeaturesSchema, Zi as ProcessStatsSchema, Zn as sendPtt, Zr as MessageIdSchema, Zt as sharePhoneNumber, _ as startCall, _a as EventInputSchema, _i as PinDurationSchema, _n as SendTextResultSchema, _r as fileDataParam, _t as getCommunityParticipants, a as getEvents, aa as GroupIdSchema$1, ai as fileToBufferCodec, an as getChatWithNonContacts, ar as sendYouTubeLink, at as deleteAllStatus, b as CallCapabilitiesSchema, ba as EventResponseSchema, bi as PollVoteSchema, bn as editMessage, br as imageDataParam, bt as approveGroupJoinRequest, c as acceptCall, ca as LocationSchema, ci as fileToTempPathCodec, cn as markAsUnread, cr as unstarMessage, ct as getStories, d as getActiveCall, da as MessageSchema, di as isoDatetimeToDate, dn as setChatEphemeral, dr as captionParam, dt as postVideoStatus, ea as ChatSchema, ei as base64ToDataUrlCodec, en as clearChat, er as sendSticker, et as getOrder, f as getCallCapabilities, fa as MessageTypes, fi as jsonStringCodec, fn as unarchiveChat, fr as chatIdParam, ft as getAllCommunities, g as setCallMedia, ga as WhatsAppEventRegistrySchema, gi as urlToDataUrlCodec, gn as AlbumSendResultSchema, gr as documentDataParam, gt as getCommunityParticipantIds, h as rejectCall, ha as EventResponseRegistrySchema, hi as unixSecondsToDate, hn as AlbumMediaSchema, hr as contentParam, ht as getCommunityInfo, i as getEventResponses, ia as GroupChatIdSchema, ii as fileToBase64Codec, in as getChat, ir as sendVideoAsGif, it as removeLabel, j as sendRawMessage, ja as validateEventUpdate, ji as CartItemSchema, jn as getVCards, jr as onlyLocalParam, jt as leaveGroup, k as SendRawMessageInputSchema, ka as serializeWhatsAppEvent, ki as VoiceNoteOptionsSchema, kn as getStarredMessages, kr as messageOptionsParam, kt as getKickedGroups, l as clearCallAudio, la as MessageAck, li as groupIdCodec, ln as muteChat, lr as voteOnPoll, lt as postImageStatus, m as observeCallAudio, ma as SimpleListener, mi as unixMillisToDate, mn as unpinChat, mr as contactIdParam, mt as getCommunityAdmins, n as editEvent, na as ContactSchema, ni as contactIdCodec, nn as getAllChatIds, nr as sendTextWithMentions, nt as getAllLabels, o as respondToEvent, oa as GroupMetadataSchema, oi as fileToDataUrlCodec, on as isChatOnline, or as starMessage, ot as deleteStatus, p as muteCall, pa as SerializedMessageIdSchema, pi as messageIdCodec, pn as unmuteChat, pr as communityIdParam, pt as getCommunityAdminIds, q as isPlugged, qi as MessageInteractionSchema, qn as sendMessageWithThumb, qr as GroupIdSchema, qt as getContact, r as getEvent, ra as DataURLSchema, ri as createFileCodec, rn as getAllChats, rr as sendVCard, rt as getChatsByLabel, s as sendEvent, sa as IdSchema, si as fileToStreamCodec, sn as markAsRead, sr as unpinMessage, st as getStatus, t as cancelEvent, ta as ContactIdSchema$1, ti as chatIdCodec, tn as deleteChat, tr as sendText, tt as addLabel, u as endCall, ua as MessageIdReturnSchema, ui as hexColorCodec, un as pinChat, ur as audioDataParam, ut as postTextStatus, v as stopCallAudioObserver, va as EventListOptionsSchema, vi as PollResultsSchema, vn as StickerJobSchema, vr as filenameParam, vt as GroupInfoSchema, w as CallReasonSchema, wa as decodeEventResponse, wi as DocumentSendOptionsSchema, wn as getMessageById, wr as locationNameParam, wt as getGroupAdmins, x as CallEndReasonSchema, xa as EventResponseTypeSchema, xi as AudioAttachmentOptionsSchema, xn as forwardMessages, xr as includeMeParam, xt as createGroup, y as CallActionResultSchema, ya as EventPageSchema, yi as PollSendOptionsSchema, yn as deleteMessage, yr as groupIdParam, yt as addParticipant, z as getLicenseType, zi as FeatureFlagsSchema, zn as sendButtons, zr as withNewMessagesOnlyParam, zt as setGroupTitle } from "./methods-CGm5G9VI.mjs";
3
- import { BookingContentSchema, ButtonsContentSchema, CallActionSchema, CarouselCardSchema, CarouselContentSchema, CopyActionSchema, FormContentSchema, FormQuestionSchema, FormResponseSchema, InteractiveActionSchema, InteractiveContentSchema, InteractiveHeaderSchema, InteractiveResponseSchema, JsonObjectSchema, JsonValueSchema, LinkActionSchema, ListContentSchema, ListRowSchema, NativeActionSchema, NativeContentSchema, ReplyActionSchema, defineInteractiveMessage } from "./interactive.mjs";
2
+ import { C as defineInteractiveMessage, E as projectEffectSchema, S as ReplyActionSchema, T as normalizeBookingTimestamp, _ as LinkActionSchema, a as CarouselCardSchema, b as NativeActionSchema, c as FormContentSchema, d as InteractiveActionSchema, f as InteractiveContentSchema, g as JsonValueSchema, h as JsonObjectSchema, i as CallActionSchema, l as FormQuestionSchema, m as InteractiveResponseSchema, n as BookingTimestampRegistrySchema, o as CarouselContentSchema, p as InteractiveHeaderSchema, r as ButtonsContentSchema, s as CopyActionSchema, t as BookingContentSchema, u as FormResponseSchema, v as ListContentSchema, w as BookingTimestampSchema, x as NativeContentSchema, y as ListRowSchema } from "./interactive-Dec4HB2U.mjs";
3
+ import { $ as getBusinessProfile, $i as StorySchema, $n as sendSeen, $r as UnixSecondsToDateSchema, $t as archiveChat, A as sendInteractive, Aa as validateEventInput, Ai as BusinessProfileSchema, An as getUnsentMessages, Ar as nameParam, At as joinGroupViaLink, B as getLoadedMessageCount, Bi as GroupCreationResultSchema, Bn as sendContact, Br as Base64ToDataUrlSchema, Bt as setGroupToAdminsOnly, C as CallMediaOptionsSchema, Ca as WhatsAppEventSchema, Ci as AutoMediaSendOptionsSchema, Cn as getAllMessages, Cr as latitudeParam, Ct as getAllGroups, D as RawAudioFormatSchema, Da as deserializeWhatsAppEvent, Di as MediaSendOptionsSchema, Dn as getMyLastMessage, Dr as messageIdParam, Dt as getGroupMembers, E as MediaDescriptorSchema, Ea as deserializeEventResponse, Ei as ImageSendOptionsSchema, En as getMessagesForLLM, Er as mentionedJidListParam, Et as getGroupInviteLink, F as getConnectionState, Fi as CommunityMetadataSchema, Fn as sendAdvancedButtons, Fr as toParam, Ft as revokeGroupInviteLink, G as getWAVersion, Gi as LicenseTypeSchema, Gn as sendListMessage, Gr as FileToDataUrlSchema, Gt as getBlockedIds, H as getProcessStats, Hi as HostAccountSchema, Hn as sendFileFromUrl, Hr as ChatIdSchema, Ht as checkNumberStatus, I as getFeatures, Ii as CommunityParticipantIdsSchema, In as sendAlbum, Ir as userAgentParam, It as setGroupDescription, J as setMyName, Ji as NumberCheckSchema, Jn as sendMultipleContacts, Jr as HexColorSchema, Jt as getNumberProfile, K as healthCheck, Ki as MessageInfoSchema, Kn as sendLocation, Kr as GroupIdCodecSchema, Kt as getCommonGroups, L as getHostNumber, Li as CommunityParticipantsSchema, Ln as sendAudio, Lr as videoDataParam, Lt as setGroupEditToAdminsOnly, M as decryptMedia, Mi as CommonGroupSchema, Mn as loadEarlierMessages, Mr as skipMyMessagesParam, Mt as promoteParticipant, N as downloadMedia, Ni as CommunityAdminIdsSchema, Nn as pinMessage, Nr as statusTextParam, Nt as rejectGroupJoinRequest, O as SendInteractiveInputSchema, Oa as serializeEventResponse, Oi as VideoSendOptionsSchema, On as getPollResults, Or as messageIdsParam, Ot as getGroupMembersId, P as getBatteryLevel, Pi as CommunityAdminsSchema, Pn as react, Pr as stickerDataParam, Pt as removeParticipant, Q as getBusinessProducts, Qi as ProductSchema, Qn as sendReplyWithMentions, Qr as UnixMillisToDateSchema, Qt as unblockContact, R as getLicenseFeatures, Ri as ContactStatusSchema, Rn as sendBanner, Rr as waitForIdParam, Rt as setGroupIcon, S as CallIdentitySchema, Sa as EventUpdateSchema, Si as AudioSendOptionsSchema, Sn as getAlbumMessages, Sr as includeNotificationsParam, St as demoteParticipant, T as CallSnapshotSchema, Ta as decodeWhatsAppEvent, Ti as GifSendOptionsSchema, Tn as getMessageInfo, Tr as longitudeParam, Tt as getGroupInfo, U as getSnapshot, Ui as LLMMessageSchema, Un as sendImage, Ur as ContactIdCodecSchema, Ut as checkReadReceipts, V as getMe, Vi as HealthCheckSchema, Vn as sendFile, Vr as ChatIdCodecSchema, Vt as blockContact, W as getUserAgent, Wi as LabelSchema, Wn as sendLinkWithAutoPreview, Wr as ContactIdSchema, Wt as getAllContacts, X as setProfilePicture, Xi as OrderSchema, Xn as sendPoll, Xr as MessageIdCodecSchema, Xt as requestPhoneNumber, Y as setMyStatus, Yi as NumberProfileSchema, Yn as sendPaymentRequest, Yr as IsoDatetimeToDateSchema, Yt as getProfilePicture, Z as LicenseFeaturesSchema, Zi as ProcessStatsSchema, Zn as sendPtt, Zr as MessageIdSchema, Zt as sharePhoneNumber, _ as startCall, _a as EventInputSchema, _i as PinDurationSchema, _n as SendTextResultSchema, _r as fileDataParam, _t as getCommunityParticipants, a as getEvents, aa as GroupIdSchema$1, ai as fileToBufferCodec, an as getChatWithNonContacts, ar as sendYouTubeLink, at as deleteAllStatus, b as CallCapabilitiesSchema, ba as EventResponseSchema, bi as PollVoteSchema, bn as editMessage, br as imageDataParam, bt as approveGroupJoinRequest, c as acceptCall, ca as LocationSchema, ci as fileToTempPathCodec, cn as markAsUnread, cr as unstarMessage, ct as getStories, d as getActiveCall, da as MessageSchema, di as isoDatetimeToDate, dn as setChatEphemeral, dr as captionParam, dt as postVideoStatus, ea as ChatSchema, ei as base64ToDataUrlCodec, en as clearChat, er as sendSticker, et as getOrder, f as getCallCapabilities, fa as MessageTypes, fi as jsonStringCodec, fn as unarchiveChat, fr as chatIdParam, ft as getAllCommunities, g as setCallMedia, ga as WhatsAppEventRegistrySchema, gi as urlToDataUrlCodec, gn as AlbumSendResultSchema, gr as documentDataParam, gt as getCommunityParticipantIds, h as rejectCall, ha as EventResponseRegistrySchema, hi as unixSecondsToDate, hn as AlbumMediaSchema, hr as contentParam, ht as getCommunityInfo, i as getEventResponses, ia as GroupChatIdSchema, ii as fileToBase64Codec, in as getChat, ir as sendVideoAsGif, it as removeLabel, j as sendRawMessage, ja as validateEventUpdate, ji as CartItemSchema, jn as getVCards, jr as onlyLocalParam, jt as leaveGroup, k as SendRawMessageInputSchema, ka as serializeWhatsAppEvent, ki as VoiceNoteOptionsSchema, kn as getStarredMessages, kr as messageOptionsParam, kt as getKickedGroups, l as clearCallAudio, la as MessageAck, li as groupIdCodec, ln as muteChat, lr as voteOnPoll, lt as postImageStatus, m as observeCallAudio, ma as SimpleListener, mi as unixMillisToDate, mn as unpinChat, mr as contactIdParam, mt as getCommunityAdmins, n as editEvent, na as ContactSchema, ni as contactIdCodec, nn as getAllChatIds, nr as sendTextWithMentions, nt as getAllLabels, o as respondToEvent, oa as GroupMetadataSchema, oi as fileToDataUrlCodec, on as isChatOnline, or as starMessage, ot as deleteStatus, p as muteCall, pa as SerializedMessageIdSchema, pi as messageIdCodec, pn as unmuteChat, pr as communityIdParam, pt as getCommunityAdminIds, q as isPlugged, qi as MessageInteractionSchema, qn as sendMessageWithThumb, qr as GroupIdSchema, qt as getContact, r as getEvent, ra as DataURLSchema, ri as createFileCodec, rn as getAllChats, rr as sendVCard, rt as getChatsByLabel, s as sendEvent, sa as IdSchema, si as fileToStreamCodec, sn as markAsRead, sr as unpinMessage, st as getStatus, t as cancelEvent, ta as ContactIdSchema$1, ti as chatIdCodec, tn as deleteChat, tr as sendText, tt as addLabel, u as endCall, ua as MessageIdReturnSchema, ui as hexColorCodec, un as pinChat, ur as audioDataParam, ut as postTextStatus, v as stopCallAudioObserver, va as EventListOptionsSchema, vi as PollResultsSchema, vn as StickerJobSchema, vr as filenameParam, vt as GroupInfoSchema, w as CallReasonSchema, wa as decodeEventResponse, wi as DocumentSendOptionsSchema, wn as getMessageById, wr as locationNameParam, wt as getGroupAdmins, x as CallEndReasonSchema, xa as EventResponseTypeSchema, xi as AudioAttachmentOptionsSchema, xn as forwardMessages, xr as includeMeParam, xt as createGroup, y as CallActionResultSchema, ya as EventPageSchema, yi as PollSendOptionsSchema, yn as deleteMessage, yr as groupIdParam, yt as addParticipant, z as getLicenseType, zi as FeatureFlagsSchema, zn as sendButtons, zr as withNewMessagesOnlyParam, zt as setGroupTitle } from "./methods-NixIgGkq.mjs";
4
4
  import { implementMethod, implementMethodAsync } from "./implementor.mjs";
5
5
  import { getHttpMethodDefinitions } from "./http-manifest.mjs";
6
6
  import { a as normalizeCallMedia, c as decodeAudioPacket, i as describeCallMediaFailure, l as encodeAudioPacket, n as DEFAULT_MIC, o as AUDIO_FRAME_HEADER_BYTES, r as DEFAULT_SPEAKER, s as AUDIO_WIRE_VERSION, t as DEFAULT_CAM } from "./calling-media-BNTYvogE.mjs";
@@ -734,6 +734,6 @@ const HttpMethodEnum = z$1.enum([
734
734
  "HEAD"
735
735
  ]);
736
736
  //#endregion
737
- export { AUDIO_FRAME_HEADER_BYTES, AUDIO_WIRE_VERSION, ActionEnum, AlbumMediaSchema, AlbumSendResultSchema, AudioAttachmentOptionsSchema, AudioSendOptionsSchema, AutoMediaSendOptionsSchema, Base64ToDataUrlSchema, BookingContentSchema, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionResultSchema, CallActionSchema, CallCapabilitiesSchema, CallEndReasonSchema, CallIdentitySchema, CallMediaOptionsSchema, CallReasonSchema, CallSnapshotSchema, CarouselCardSchema, CarouselContentSchema, CartItemSchema, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfigSchema, CloudUploadOptionsSchema, CommonGroupSchema, CommunityAdminIdsSchema, CommunityAdminsSchema, CommunityMetadataSchema, CommunityParticipantIdsSchema, CommunityParticipantsSchema, ConfigSchema, ContactIdCodecSchema, ContactIdSchema, ContactSchema, ContactStatusSchema, CopyActionSchema, DEFAULT_CAM, DEFAULT_MIC, DEFAULT_SPEAKER, DIRECTORY_STRATEGY, DataURLSchema, DevToolsSchema, DocumentSendOptionsSchema, EventInputSchema, EventListOptionsSchema, EventPageSchema, EventResponseSchema, EventResponseTypeSchema, EventUpdateSchema, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestionSchema, FormResponseSchema, FunctionalityEnum, GifSendOptionsSchema, GroupChatIdSchema, GroupCreationResultSchema, GroupIdCodecSchema, GroupIdSchema, GroupInfoSchema, GroupMetadataSchema, HealthCheckSchema, HexColorSchema, HostAccountSchema, HttpMethodEnum, IdSchema, ImageSendOptionsSchema, InteractiveActionSchema, InteractiveContentSchema, InteractiveHeaderSchema, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValueSchema, LLMMessageSchema, LabelSchema, LicenseEnum, LicenseFeaturesSchema, LicenseType, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, LocationSchema, LoggingTransportSchema, MediaDescriptorSchema, MediaSendOptionsSchema, MessageAck, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageInfoSchema, MessageInteractionSchema, MessageSchema, MessageTypes, NativeActionSchema, NativeContentSchema, NotificationLanguage, NumberCheckSchema, NumberProfileSchema, OnError, OrderSchema, PartialConfigSchema, ParticipantChangePatchSchema, ParticipantChangeSchema, PinDurationSchema, PollResultsSchema, PollSendOptionsSchema, PollVoteSchema, ProcessStatsSchema, ProductSchema, ProxyServerCredentialsSchema, QRFormat, QueueOptionsSchema, RawAudioFormatSchema, Registry, ReplyActionSchema, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageIdSchema, SessionDataSchema, SimpleListener, StateEnum, StickerJobSchema, StorySchema, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, VideoSendOptionsSchema, ViewportSchema, VoiceNoteOptionsSchema, WhatsAppEventSchema, acceptCall, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, callStateEvent, cancelEvent, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createAsyncApiDocument, createFileCodec, createGroup, decodeAudioPacket, decodeEventResponse, decodeWhatsAppEvent, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, describeCallMediaFailure, deserializeEventResponse, deserializeWhatsAppEvent, documentDataParam, downloadMedia, editEvent, editMessage, encodeAudioPacket, endCall, eventContracts, eventJsonSchema, eventRegistry, eventResponseEvent, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getEvent, getEventContract, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMcpEventDefinitions, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, incomingCallEvent, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteCall, muteChat, nameParam, normalizeCallMedia, normalizeParameterKeys, observeCallAudio, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, pinMessage, pollVoteEvent, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, serializeEventResponse, serializeWhatsAppEvent, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, skipMyMessagesParam, starMessage, startCall, stateChangedEvent, statusTextParam, stickerDataParam, stopCallAudioObserver, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unpinMessage, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, validateEventInput, validateEventUpdate, videoDataParam, voteOnPoll, waitForIdParam, whatsappEvent, withNewMessagesOnlyParam, z, zObjectToTuple };
737
+ export { AUDIO_FRAME_HEADER_BYTES, AUDIO_WIRE_VERSION, ActionEnum, AlbumMediaSchema, AlbumSendResultSchema, AudioAttachmentOptionsSchema, AudioSendOptionsSchema, AutoMediaSendOptionsSchema, Base64ToDataUrlSchema, BookingContentSchema, BookingTimestampRegistrySchema, BookingTimestampSchema, BusinessProfileSchema, ButtonsContentSchema, CLOUD_PROVIDERS, CallActionResultSchema, CallActionSchema, CallCapabilitiesSchema, CallEndReasonSchema, CallIdentitySchema, CallMediaOptionsSchema, CallReasonSchema, CallSnapshotSchema, CarouselCardSchema, CarouselContentSchema, CartItemSchema, ChatIdCodecSchema, ChatIdSchema, ChatSchema, ClientConfigSchema, CloudUploadOptionsSchema, CommonGroupSchema, CommunityAdminIdsSchema, CommunityAdminsSchema, CommunityMetadataSchema, CommunityParticipantIdsSchema, CommunityParticipantsSchema, ConfigSchema, ContactIdCodecSchema, ContactIdSchema, ContactSchema, ContactStatusSchema, CopyActionSchema, DEFAULT_CAM, DEFAULT_MIC, DEFAULT_SPEAKER, DIRECTORY_STRATEGY, DataURLSchema, DevToolsSchema, DocumentSendOptionsSchema, EventInputSchema, EventListOptionsSchema, EventPageSchema, EventResponseSchema, EventResponseTypeSchema, EventUpdateSchema, FeatureFlagsSchema, FileToDataUrlSchema, FormContentSchema, FormQuestionSchema, FormResponseSchema, FunctionalityEnum, GifSendOptionsSchema, GroupChatIdSchema, GroupCreationResultSchema, GroupIdCodecSchema, GroupIdSchema, GroupInfoSchema, GroupMetadataSchema, HealthCheckSchema, HexColorSchema, HostAccountSchema, HttpMethodEnum, IdSchema, ImageSendOptionsSchema, InteractiveActionSchema, InteractiveContentSchema, InteractiveHeaderSchema, InteractiveResponseSchema, IsoDatetimeToDateSchema, JsonObjectSchema, JsonValueSchema, LLMMessageSchema, LabelSchema, LicenseEnum, LicenseFeaturesSchema, LicenseType, LicenseTypeSchema, LinkActionSchema, ListContentSchema, ListRowSchema, LocationSchema, LoggingTransportSchema, MediaDescriptorSchema, MediaSendOptionsSchema, MessageAck, MessageIdCodecSchema, MessageIdReturnSchema, MessageIdSchema, MessageInfoSchema, MessageInteractionSchema, MessageSchema, MessageTypes, NativeActionSchema, NativeContentSchema, NotificationLanguage, NumberCheckSchema, NumberProfileSchema, OnError, OrderSchema, PartialConfigSchema, ParticipantChangePatchSchema, ParticipantChangeSchema, PinDurationSchema, PollResultsSchema, PollSendOptionsSchema, PollVoteSchema, ProcessStatsSchema, ProductSchema, ProxyServerCredentialsSchema, QRFormat, QueueOptionsSchema, RawAudioFormatSchema, Registry, ReplyActionSchema, S3SyncSchema, SendInteractiveInputSchema, SendRawMessageInputSchema, SendTextResultSchema, SerializedMessageIdSchema, SessionDataSchema, SimpleListener, StateEnum, StickerJobSchema, StorySchema, StrictConfigSchema, UnixMillisToDateSchema, UnixSecondsToDateSchema, VideoSendOptionsSchema, ViewportSchema, VoiceNoteOptionsSchema, WhatsAppEventSchema, acceptCall, ackEvent, addLabel, addParticipant, addedToGroupEvent, anyMessageEvent, approveGroupJoinRequest, archiveChat, audioDataParam, base64ToDataUrlCodec, blockContact, buildKeyAliasMap, callStateEvent, cancelEvent, captionParam, chatIdCodec, chatIdParam, chatStateEvent, checkNumberStatus, checkReadReceipts, clearCallAudio, clearChat, clientRegistry, communityIdParam, contactIdCodec, contactIdParam, contentParam, createAsyncApiDocument, createFileCodec, createGroup, decodeAudioPacket, decodeEventResponse, decodeWhatsAppEvent, decryptMedia, defineEvent, defineInteractiveMessage, defineListenerV2, defineMethod, defineMethodV2, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, deriveNamespacedMethodName, describeCallMediaFailure, deserializeEventResponse, deserializeWhatsAppEvent, documentDataParam, downloadMedia, editEvent, editMessage, encodeAudioPacket, endCall, eventContracts, eventJsonSchema, eventRegistry, eventResponseEvent, fileDataParam, fileToBase64Codec, fileToBufferCodec, fileToDataUrlCodec, fileToStreamCodec, fileToTempPathCodec, filenameParam, formResponseEvent, forwardMessages, getActiveCall, getAlbumMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getCallCapabilities, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getDefaultConfig, getEvent, getEventContract, getEventResponses, getEvents, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getHttpMethodDefinitions, getKickedGroups, getLicenseFeatures, getLicenseType, getLoadedMessageCount, getMcpEventDefinitions, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMethodAliases, getMyLastMessage, getNumberProfile, getOrder, getParameterMetadata, getPollResults, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, groupIdCodec, groupIdParam, healthCheck, hexColorCodec, imageDataParam, implementMethod, implementMethodAsync, includeMeParam, includeNotificationsParam, incomingCallEvent, interactiveResponseEvent, isChatOnline, isPlugged, isoDatetimeToDate, joinGroupViaLink, jsonStringCodec, latitudeParam, leaveGroup, loadEarlierMessages, locationNameParam, logoutEvent, longitudeParam, markAsRead, markAsUnread, mentionedJidListParam, messageDeletedEvent, messageEvent, messageIdCodec, messageIdParam, messageIdsParam, messageOptionsParam, migrateV4Config, muteCall, muteChat, nameParam, normalizeBookingTimestamp, normalizeCallMedia, normalizeParameterKeys, observeCallAudio, onlyLocalParam, outputJsonSchema, parameterRegistry, parseConfig, participantsChangedEvent, pinChat, pinMessage, pollVoteEvent, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, reactionEvent, rejectCall, rejectGroupJoinRequest, removeLabel, removeParticipant, requestPhoneNumber, respondToEvent, revokeGroupInviteLink, sendAdvancedButtons, sendAlbum, sendAudio, sendBanner, sendButtons, sendContact, sendEvent, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendSticker, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, serializeEventResponse, serializeWhatsAppEvent, setCallMedia, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, sharePhoneNumber, skipMyMessagesParam, starMessage, startCall, stateChangedEvent, statusTextParam, stickerDataParam, stopCallAudioObserver, successResponseSchema, toParam, unarchiveChat, unblockContact, unixMillisToDate, unixSecondsToDate, unmuteChat, unpinChat, unpinMessage, unstarMessage, urlToDataUrlCodec, userAgentParam, validateConfig, validateEventInput, validateEventUpdate, videoDataParam, voteOnPoll, waitForIdParam, whatsappEvent, withNewMessagesOnlyParam, z, zObjectToTuple };
738
738
 
739
739
  //# sourceMappingURL=index.mjs.map
@@ -1,5 +1,12 @@
1
1
  import { z } from "zod";
2
+ import { Schema } from "effect";
3
+ //#region src/booking-time.d.ts
4
+ declare const BookingTimestampSchema: Schema.decodeTo<Schema.brand<Schema.String, "BookingTimestamp">, Schema.String, never, never>;
5
+ type BookingTimestamp = typeof BookingTimestampSchema.Type;
6
+ declare const normalizeBookingTimestamp: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"BookingTimestamp">;
7
+ //#endregion
2
8
  //#region src/interactive.d.ts
9
+ declare const BookingTimestampRegistrySchema: z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>;
3
10
  type JsonValue = null | boolean | number | string | JsonValue[] | {
4
11
  [key: string]: JsonValue;
5
12
  };
@@ -227,8 +234,8 @@ declare const BookingContentSchema: z.ZodObject<{
227
234
  title: z.ZodOptional<z.ZodString>;
228
235
  buttonLabel: z.ZodDefault<z.ZodString>;
229
236
  booking: z.ZodObject<{
230
- startAt: z.ZodISODateTime;
231
- endAt: z.ZodOptional<z.ZodISODateTime>;
237
+ startAt: z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>;
238
+ endAt: z.ZodOptional<z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>>;
232
239
  location: z.ZodOptional<z.ZodString>;
233
240
  url: z.ZodOptional<z.ZodURL>;
234
241
  managementUrl: z.ZodOptional<z.ZodURL>;
@@ -402,8 +409,8 @@ declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
402
409
  title: z.ZodOptional<z.ZodString>;
403
410
  buttonLabel: z.ZodDefault<z.ZodString>;
404
411
  booking: z.ZodObject<{
405
- startAt: z.ZodISODateTime;
406
- endAt: z.ZodOptional<z.ZodISODateTime>;
412
+ startAt: z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>;
413
+ endAt: z.ZodOptional<z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>>;
407
414
  location: z.ZodOptional<z.ZodString>;
408
415
  url: z.ZodOptional<z.ZodURL>;
409
416
  managementUrl: z.ZodOptional<z.ZodURL>;
@@ -463,6 +470,7 @@ declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
463
470
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
464
471
  }, z.core.$strict>], "type">;
465
472
  type InteractiveContent = z.input<typeof InteractiveContentSchema>;
473
+ type DecodedInteractiveContent = z.output<typeof InteractiveContentSchema>;
466
474
  type InteractiveAction = z.infer<typeof InteractiveActionSchema>;
467
475
  type InteractiveHeader = z.infer<typeof InteractiveHeaderSchema>;
468
476
  type FormQuestion = z.infer<typeof FormQuestionSchema>;
@@ -523,5 +531,5 @@ declare const InteractiveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
523
531
  type FormResponse = z.infer<typeof FormResponseSchema>;
524
532
  type InteractiveResponse = z.infer<typeof InteractiveResponseSchema>;
525
533
  //#endregion
526
- export { LinkActionSchema as C, NativeContentSchema as D, NativeActionSchema as E, ReplyActionSchema as O, JsonValueSchema as S, ListRowSchema as T, InteractiveHeaderSchema as _, CarouselContentSchema as a, JsonObjectSchema as b, FormQuestion as c, FormResponseSchema as d, InteractiveAction as f, InteractiveHeader as g, InteractiveContentSchema as h, CarouselCardSchema as i, defineInteractiveMessage as k, FormQuestionSchema as l, InteractiveContent as m, ButtonsContentSchema as n, CopyActionSchema as o, InteractiveActionSchema as p, CallActionSchema as r, FormContentSchema as s, BookingContentSchema as t, FormResponse as u, InteractiveResponse as v, ListContentSchema as w, JsonValue as x, InteractiveResponseSchema as y };
527
- //# sourceMappingURL=interactive-DxUwKpzK.d.cts.map
534
+ export { ReplyActionSchema as A, JsonValue as C, ListRowSchema as D, ListContentSchema as E, BookingTimestamp as M, BookingTimestampSchema as N, NativeActionSchema as O, normalizeBookingTimestamp as P, JsonObjectSchema as S, LinkActionSchema as T, InteractiveContentSchema as _, CarouselCardSchema as a, InteractiveResponse as b, DecodedInteractiveContent as c, FormQuestionSchema as d, FormResponse as f, InteractiveContent as g, InteractiveActionSchema as h, CallActionSchema as i, defineInteractiveMessage as j, NativeContentSchema as k, FormContentSchema as l, InteractiveAction as m, BookingTimestampRegistrySchema as n, CarouselContentSchema as o, FormResponseSchema as p, ButtonsContentSchema as r, CopyActionSchema as s, BookingContentSchema as t, FormQuestion as u, InteractiveHeader as v, JsonValueSchema as w, InteractiveResponseSchema as x, InteractiveHeaderSchema as y };
535
+ //# sourceMappingURL=interactive-BE_M4nur.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactive-BE_M4nur.d.cts","names":[],"sources":["../src/booking-time.ts","../src/interactive.ts"],"mappings":";;;cA0Ba,wBAAsB,OAAA,SAAA,OAAA,MAAA,OAAA,6BAAA,OAAA;KASvB,0BAA0B,uBAAuB;cAGhD,4BAAyB,gBAAA,qCAAA,iDAAA;;;cChCzB,gCAA8B,EAAA,wCAAA,mCAAA,EAAA,KAAA,kDAAA;KAG/B,+CAA+C;GAAiB,cAAc;;cAC7E,iBAAiB,EAAE,QAAQ;cAI3B,kBAAgB,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,oBAAA,EAAA,KAAA,kBAAA;cAKhB,mBAAiB,EAAA;;;;GAAmE,EAAA,KAAA;cACpF,kBAAgB,EAAA;;;;GAAkE,EAAA,KAAA;cAClF,kBAAgB,EAAA;;;;GAAiF,EAAA,KAAA;cACjG,kBAAgB,EAAA;;;;GAA0E,EAAA,KAAA;cAC1F,yBAAuB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;GAElC,EAAA,KAAA;cACW,oBAAkB,EAAA;;;GAGpB,EAAA,KAAA;cAmBE,yBAAuB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;GAKlC,EAAA,KAAA;cAMW,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEtB,EAAA,KAAA;cACE,eAAa,EAAA;;;;GAA6E,EAAA,KAAA;cAC1F,mBAAiB,EAAA;;;;;;;;;;;;;;;GAGnB,EAAA,KAAA;cACE,oBAAkB,EAAA;;;;;;;;;;;;GAIpB,EAAA,KAAA;cACE,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;GAEnB,EAAA,KAAA;cACE,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAIpB,EAAA,KAAA;cACE,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,EAAA,KAAA;cACE,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYtB,EAAA,KAAA;cACE,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGwG,EAAA,KAAA;cAE3H,0BAAwB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BnC,EAAA,KAAA;KAEU,qBAAqB,EAAE,aAAa;KAEpC,4BAA4B,EAAE,cAAc;KAC5C,oBAAoB,EAAE,aAAa;KACnC,oBAAoB,EAAE,aAAa;KACnC,eAAe,EAAE,aAAa;iBAE1B,yBAAyB,UAAU,oBAAoB,SAAS,IAAI,QAAQ,EAAE,cAAc;EAA6B,MAAM;;cAUlI,oBAAkB,EAAA;;;;;;;;;GAG7B,EAAA,KAAA;cACW,2BAAyB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKpC,EAAA,KAAA;KACU,eAAe,EAAE,aAAa;KAC9B,sBAAsB,EAAE,aAAa"}
@@ -1,5 +1,12 @@
1
1
  import { z } from "zod";
2
+ import { Schema } from "effect";
3
+ //#region src/booking-time.d.ts
4
+ declare const BookingTimestampSchema: Schema.decodeTo<Schema.brand<Schema.String, "BookingTimestamp">, Schema.String, never, never>;
5
+ type BookingTimestamp = typeof BookingTimestampSchema.Type;
6
+ declare const normalizeBookingTimestamp: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"BookingTimestamp">;
7
+ //#endregion
2
8
  //#region src/interactive.d.ts
9
+ declare const BookingTimestampRegistrySchema: z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>;
3
10
  type JsonValue = null | boolean | number | string | JsonValue[] | {
4
11
  [key: string]: JsonValue;
5
12
  };
@@ -227,8 +234,8 @@ declare const BookingContentSchema: z.ZodObject<{
227
234
  title: z.ZodOptional<z.ZodString>;
228
235
  buttonLabel: z.ZodDefault<z.ZodString>;
229
236
  booking: z.ZodObject<{
230
- startAt: z.ZodISODateTime;
231
- endAt: z.ZodOptional<z.ZodISODateTime>;
237
+ startAt: z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>;
238
+ endAt: z.ZodOptional<z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>>;
232
239
  location: z.ZodOptional<z.ZodString>;
233
240
  url: z.ZodOptional<z.ZodURL>;
234
241
  managementUrl: z.ZodOptional<z.ZodURL>;
@@ -402,8 +409,8 @@ declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
402
409
  title: z.ZodOptional<z.ZodString>;
403
410
  buttonLabel: z.ZodDefault<z.ZodString>;
404
411
  booking: z.ZodObject<{
405
- startAt: z.ZodISODateTime;
406
- endAt: z.ZodOptional<z.ZodISODateTime>;
412
+ startAt: z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>;
413
+ endAt: z.ZodOptional<z.ZodType<string & import("effect/Brand").Brand<"BookingTimestamp">, string, z.core.$ZodTypeInternals<string & import("effect/Brand").Brand<"BookingTimestamp">, string>>>;
407
414
  location: z.ZodOptional<z.ZodString>;
408
415
  url: z.ZodOptional<z.ZodURL>;
409
416
  managementUrl: z.ZodOptional<z.ZodURL>;
@@ -463,6 +470,7 @@ declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
463
470
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
464
471
  }, z.core.$strict>], "type">;
465
472
  type InteractiveContent = z.input<typeof InteractiveContentSchema>;
473
+ type DecodedInteractiveContent = z.output<typeof InteractiveContentSchema>;
466
474
  type InteractiveAction = z.infer<typeof InteractiveActionSchema>;
467
475
  type InteractiveHeader = z.infer<typeof InteractiveHeaderSchema>;
468
476
  type FormQuestion = z.infer<typeof FormQuestionSchema>;
@@ -523,5 +531,5 @@ declare const InteractiveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
523
531
  type FormResponse = z.infer<typeof FormResponseSchema>;
524
532
  type InteractiveResponse = z.infer<typeof InteractiveResponseSchema>;
525
533
  //#endregion
526
- export { LinkActionSchema as C, NativeContentSchema as D, NativeActionSchema as E, ReplyActionSchema as O, JsonValueSchema as S, ListRowSchema as T, InteractiveHeaderSchema as _, CarouselContentSchema as a, JsonObjectSchema as b, FormQuestion as c, FormResponseSchema as d, InteractiveAction as f, InteractiveHeader as g, InteractiveContentSchema as h, CarouselCardSchema as i, defineInteractiveMessage as k, FormQuestionSchema as l, InteractiveContent as m, ButtonsContentSchema as n, CopyActionSchema as o, InteractiveActionSchema as p, CallActionSchema as r, FormContentSchema as s, BookingContentSchema as t, FormResponse as u, InteractiveResponse as v, ListContentSchema as w, JsonValue as x, InteractiveResponseSchema as y };
527
- //# sourceMappingURL=interactive-DxUwKpzK.d.mts.map
534
+ export { ReplyActionSchema as A, JsonValue as C, ListRowSchema as D, ListContentSchema as E, BookingTimestamp as M, BookingTimestampSchema as N, NativeActionSchema as O, normalizeBookingTimestamp as P, JsonObjectSchema as S, LinkActionSchema as T, InteractiveContentSchema as _, CarouselCardSchema as a, InteractiveResponse as b, DecodedInteractiveContent as c, FormQuestionSchema as d, FormResponse as f, InteractiveContent as g, InteractiveActionSchema as h, CallActionSchema as i, defineInteractiveMessage as j, NativeContentSchema as k, FormContentSchema as l, InteractiveAction as m, BookingTimestampRegistrySchema as n, CarouselContentSchema as o, FormResponseSchema as p, ButtonsContentSchema as r, CopyActionSchema as s, BookingContentSchema as t, FormQuestion as u, InteractiveHeader as v, JsonValueSchema as w, InteractiveResponseSchema as x, InteractiveHeaderSchema as y };
535
+ //# sourceMappingURL=interactive-BE_M4nur.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactive-BE_M4nur.d.mts","names":[],"sources":["../src/booking-time.ts","../src/interactive.ts"],"mappings":";;;cA0Ba,wBAAsB,OAAA,SAAA,OAAA,MAAA,OAAA,6BAAA,OAAA;KASvB,0BAA0B,uBAAuB;cAGhD,4BAAyB,gBAAA,qCAAA,iDAAA;;;cChCzB,gCAA8B,EAAA,wCAAA,mCAAA,EAAA,KAAA,kDAAA;KAG/B,+CAA+C;GAAiB,cAAc;;cAC7E,iBAAiB,EAAE,QAAQ;cAI3B,kBAAgB,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,oBAAA,EAAA,KAAA,kBAAA;cAKhB,mBAAiB,EAAA;;;;GAAmE,EAAA,KAAA;cACpF,kBAAgB,EAAA;;;;GAAkE,EAAA,KAAA;cAClF,kBAAgB,EAAA;;;;GAAiF,EAAA,KAAA;cACjG,kBAAgB,EAAA;;;;GAA0E,EAAA,KAAA;cAC1F,yBAAuB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;GAElC,EAAA,KAAA;cACW,oBAAkB,EAAA;;;GAGpB,EAAA,KAAA;cAmBE,yBAAuB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;GAKlC,EAAA,KAAA;cAMW,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEtB,EAAA,KAAA;cACE,eAAa,EAAA;;;;GAA6E,EAAA,KAAA;cAC1F,mBAAiB,EAAA;;;;;;;;;;;;;;;GAGnB,EAAA,KAAA;cACE,oBAAkB,EAAA;;;;;;;;;;;;GAIpB,EAAA,KAAA;cACE,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;GAEnB,EAAA,KAAA;cACE,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAIpB,EAAA,KAAA;cACE,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,EAAA,KAAA;cACE,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYtB,EAAA,KAAA;cACE,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGwG,EAAA,KAAA;cAE3H,0BAAwB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BnC,EAAA,KAAA;KAEU,qBAAqB,EAAE,aAAa;KAEpC,4BAA4B,EAAE,cAAc;KAC5C,oBAAoB,EAAE,aAAa;KACnC,oBAAoB,EAAE,aAAa;KACnC,eAAe,EAAE,aAAa;iBAE1B,yBAAyB,UAAU,oBAAoB,SAAS,IAAI,QAAQ,EAAE,cAAc;EAA6B,MAAM;;cAUlI,oBAAkB,EAAA;;;;;;;;;GAG7B,EAAA,KAAA;cACW,2BAAyB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKpC,EAAA,KAAA;KACU,eAAe,EAAE,aAAa;KAC9B,sBAAsB,EAAE,aAAa"}