@wirecat/cli-core 0.476.0 → 0.477.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 (56) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/calendar/mcp/index.d.ts +12 -12
  3. package/dist/cli/index.d.ts +1 -1
  4. package/dist/cli/index.js +1 -1
  5. package/dist/cli/messenger/account-command.js +10 -8
  6. package/dist/cli/messenger/catch-up-answers.d.ts +14 -0
  7. package/dist/cli/messenger/chat-answers.d.ts +8 -2
  8. package/dist/cli/messenger/chat-answers.js +43 -0
  9. package/dist/cli/messenger/contacts-command.js +20 -25
  10. package/dist/cli/messenger/context.d.ts +2 -0
  11. package/dist/cli/messenger/conversation-answers.d.ts +21 -0
  12. package/dist/cli/messenger/message-answers.d.ts +21 -0
  13. package/dist/cli/messenger/message-items.js +8 -0
  14. package/dist/cli/messenger/message-writes.d.ts +42 -0
  15. package/dist/cli/messenger/people-queries.d.ts +2 -0
  16. package/dist/cli/messenger/people-queries.js +7 -1
  17. package/dist/cli/messenger/reactions-command.js +38 -2
  18. package/dist/cli/messenger/serve-relay.d.ts +1 -0
  19. package/dist/domain/models.d.ts +22 -3
  20. package/dist/entities/attachment.d.ts +8 -0
  21. package/dist/entities/attachment.js +9 -1
  22. package/dist/entities/contact-context.d.ts +42 -0
  23. package/dist/entities/contact-read.d.ts +15 -25
  24. package/dist/entities/contact-read.js +4 -15
  25. package/dist/entities/contact.d.ts +103 -134
  26. package/dist/entities/contact.js +13 -2
  27. package/dist/entities/conversation-results.d.ts +42 -0
  28. package/dist/entities/evidence.d.ts +168 -0
  29. package/dist/entities/index.d.ts +511 -201
  30. package/dist/entities/index.js +4 -3
  31. package/dist/entities/listener.d.ts +84 -0
  32. package/dist/entities/message-context.d.ts +63 -0
  33. package/dist/entities/message-write.d.ts +84 -0
  34. package/dist/entities/message.d.ts +21 -0
  35. package/dist/entities/reaction.d.ts +12 -0
  36. package/dist/entities/reaction.js +9 -0
  37. package/dist/entities/store-records.d.ts +21 -0
  38. package/dist/errors/reasons.js +2 -0
  39. package/dist/meetings/mcp/index.d.ts +15 -15
  40. package/dist/ports/messenger.d.ts +13 -2
  41. package/dist/render/markdown.js +4 -0
  42. package/dist/render/messages.js +7 -2
  43. package/dist/services/account.d.ts +1 -1
  44. package/dist/services/account.js +1 -2
  45. package/dist/services/people.d.ts +8 -5
  46. package/dist/services/people.js +6 -3
  47. package/dist/services/person-profile.d.ts +4 -3
  48. package/dist/services/person-profile.js +14 -3
  49. package/dist/store/sqlite/manifest.js +1 -0
  50. package/dist/store/sqlite/messages.js +5 -1
  51. package/dist/store/sqlite/migrations.generated.js +6 -0
  52. package/dist/store/sqlite/reads.js +1 -0
  53. package/dist/store/sqlite/schema.d.ts +16 -0
  54. package/dist/store/sqlite/schema.js +1 -0
  55. package/package.json +1 -1
  56. package/parity.json +20 -10
@@ -23,7 +23,7 @@ import { contact } from "./contact.js";
23
23
  import { contactActivity, contactCheck, linkedPerson } from "./contact-activity.js";
24
24
  import { contactContext, contactPreparation } from "./contact-context.js";
25
25
  import { contactNote } from "./contact-note.js";
26
- import { contactLookup, contactProfile, contactSync } from "./contact-read.js";
26
+ import { contactLookup, contactSync } from "./contact-read.js";
27
27
  import { contactImport, contactStateChange, contactUpdate } from "./contact-write.js";
28
28
  import { conversation } from "./conversation.js";
29
29
  import { conversationPreparation } from "./conversation-preparation.js";
@@ -72,6 +72,7 @@ import { poll, pollChange } from "./poll.js";
72
72
  import { pollVote } from "./poll-vote.js";
73
73
  import { contactAlias, contactNoteRemoval } from "./private-contact.js";
74
74
  import { ranking } from "./ranking.js";
75
+ import { reaction } from "./reaction.js";
75
76
  import { reactionChange } from "./reaction-change.js";
76
77
  import { recipient, recipientAdded, recipientChange, recipientOff, recipientRemoved } from "./recipient.js";
77
78
  import { recordedRun, runDetails, runHit, runLocation } from "./recorded-run.js";
@@ -93,7 +94,7 @@ import { topic } from "./topic.js";
93
94
  * subset of its fields, never a renamed one. Commands move onto these one by one; until then, a schema
94
95
  * is the target, not a description of today's output.
95
96
  */
96
- export { account, accountChange, accountPrivacy, accountPrivacyChange, accountProfile, accountSession, adminReport, agenda, analysisConsent, analysisConsentRevocation, attachment, attachmentBytes, attachmentExtraction, attachmentTextChange, automaticTags, botAdmin, botMenuEntry, botProfile, botSeenChat, botTemplate, botWebhook, cachedChatMetadata, callRecord, chart, chat, chatAdminChange, chatArchive, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatStats, chatTracking, chatUnread, contact, contactActivity, contactAlias, contactCheck, contactContext, contactImport, contactLookup, contactNote, contactNoteRemoval, contactPreparation, contactProfile, contactStateChange, contactSync, contactUpdate, conversation, conversationBatch, conversationBatchStatus, conversationBuildResult, conversationChange, conversationDetails, conversationEmbedding, conversationEmbeddingStatus, conversationHit, conversationPreparation, conversationReadiness, counterRefresh, counters, document, documentLink, endedAccountSessions, evidence, evidencePacket, fact, folder, hit, identity, imageEmbedding, inviteLink, job, joinRequest, linkedPerson, mediaArchive, mediaArchiveCheck, mediaArchiveMove, mediaArchiveTimer, meeting, meetingProjectCandidates, meetingSeriesInventory, member, memory, mention, mentionDecision, mentionDetails, mentionDomain, mentionRebuild, message, messageContext, messageCounts, messageDeletion, messageDownload, messageEvent, messageLink, messageLinks, messagePin, messageStar, messageSync, messageTranscript, messageWrite, model, modelKey, note, officialStats, organization, person, place, poll, pollChange, pollVote, project, ranking, reactionChange, recipient, recipientAdded, recipientChange, recipientOff, recipientRemoved, recordedRun, reference, relationship, reminder, removedModelKey, retention, runDetails, runHit, runLocation, savedSearch, scheduledJob, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, topic, trackedChat, trackedChatHistory, watchedMessage, watchItem, };
97
+ export { account, accountChange, accountPrivacy, accountPrivacyChange, accountProfile, accountSession, adminReport, agenda, analysisConsent, analysisConsentRevocation, attachment, attachmentBytes, attachmentExtraction, attachmentTextChange, automaticTags, botAdmin, botMenuEntry, botProfile, botSeenChat, botTemplate, botWebhook, cachedChatMetadata, callRecord, chart, chat, chatAdminChange, chatArchive, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatStats, chatTracking, chatUnread, contact, contactActivity, contactAlias, contactCheck, contactContext, contactImport, contactLookup, contactNote, contactNoteRemoval, contactPreparation, contactStateChange, contactSync, contactUpdate, conversation, conversationBatch, conversationBatchStatus, conversationBuildResult, conversationChange, conversationDetails, conversationEmbedding, conversationEmbeddingStatus, conversationHit, conversationPreparation, conversationReadiness, counterRefresh, counters, document, documentLink, endedAccountSessions, evidence, evidencePacket, fact, folder, hit, identity, imageEmbedding, inviteLink, job, joinRequest, linkedPerson, mediaArchive, mediaArchiveCheck, mediaArchiveMove, mediaArchiveTimer, meeting, meetingProjectCandidates, meetingSeriesInventory, member, memory, mention, mentionDecision, mentionDetails, mentionDomain, mentionRebuild, message, messageContext, messageCounts, messageDeletion, messageDownload, messageEvent, messageLink, messageLinks, messagePin, messageStar, messageSync, messageTranscript, messageWrite, model, modelKey, note, officialStats, organization, person, place, poll, pollChange, pollVote, project, ranking, reaction, reactionChange, recipient, recipientAdded, recipientChange, recipientOff, recipientRemoved, recordedRun, reference, relationship, reminder, removedModelKey, retention, runDetails, runHit, runLocation, savedSearch, scheduledJob, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, topic, trackedChat, trackedChatHistory, watchedMessage, watchItem, };
97
98
  export const ENTITIES = {
98
99
  sync_progress: syncProgress,
99
100
  ...MEETING_RESULT_ENTITIES,
@@ -158,7 +159,6 @@ export const ENTITIES = {
158
159
  contact,
159
160
  contact_note: contactNote,
160
161
  contact_lookup: contactLookup,
161
- contact_profile: contactProfile,
162
162
  contact_sync: contactSync,
163
163
  contact_update: contactUpdate,
164
164
  contact_state_change: contactStateChange,
@@ -331,6 +331,7 @@ export const ENTITIES = {
331
331
  poll: poll,
332
332
  poll_change: pollChange,
333
333
  poll_vote: pollVote,
334
+ reaction,
334
335
  reaction_change: reactionChange,
335
336
  topic,
336
337
  folder,
@@ -62,6 +62,13 @@ export declare const watchedMessage: v.StrictObjectSchema<{
62
62
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
63
63
  }, undefined>, undefined>;
64
64
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
65
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
66
+ readonly name: v.StringSchema<undefined>;
67
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
68
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
69
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
70
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
71
+ }, undefined>, undefined>;
65
72
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
66
73
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
67
74
  readonly text: v.StringSchema<undefined>;
@@ -94,6 +101,13 @@ export declare const watchedMessage: v.StrictObjectSchema<{
94
101
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
95
102
  }, undefined>, undefined>;
96
103
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
104
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
105
+ readonly name: v.StringSchema<undefined>;
106
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
107
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
108
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
109
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
110
+ }, undefined>, undefined>;
97
111
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
98
112
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
99
113
  readonly text: v.StringSchema<undefined>;
@@ -129,6 +143,13 @@ export declare const watchedMessage: v.StrictObjectSchema<{
129
143
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
130
144
  }, undefined>, undefined>;
131
145
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
146
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
147
+ readonly name: v.StringSchema<undefined>;
148
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
149
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
150
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
151
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
152
+ }, undefined>, undefined>;
132
153
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
133
154
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
134
155
  readonly text: v.StringSchema<undefined>;
@@ -543,6 +564,13 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
543
564
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
544
565
  }, undefined>, undefined>;
545
566
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
567
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
568
+ readonly name: v.StringSchema<undefined>;
569
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
570
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
571
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
572
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
573
+ }, undefined>, undefined>;
546
574
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
547
575
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
548
576
  readonly text: v.StringSchema<undefined>;
@@ -575,6 +603,13 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
575
603
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
576
604
  }, undefined>, undefined>;
577
605
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
607
+ readonly name: v.StringSchema<undefined>;
608
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
609
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
610
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
611
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
612
+ }, undefined>, undefined>;
578
613
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
579
614
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
580
615
  readonly text: v.StringSchema<undefined>;
@@ -610,6 +645,13 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
610
645
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
611
646
  }, undefined>, undefined>;
612
647
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
648
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
649
+ readonly name: v.StringSchema<undefined>;
650
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
651
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
652
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
653
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
654
+ }, undefined>, undefined>;
613
655
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
614
656
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
615
657
  readonly text: v.StringSchema<undefined>;
@@ -1131,6 +1173,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1131
1173
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1132
1174
  }, undefined>, undefined>;
1133
1175
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1176
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
1177
+ readonly name: v.StringSchema<undefined>;
1178
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1179
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1180
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1181
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1182
+ }, undefined>, undefined>;
1134
1183
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1135
1184
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1136
1185
  readonly text: v.StringSchema<undefined>;
@@ -1163,6 +1212,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1163
1212
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1164
1213
  }, undefined>, undefined>;
1165
1214
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1215
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
1216
+ readonly name: v.StringSchema<undefined>;
1217
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1218
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1219
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1220
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1221
+ }, undefined>, undefined>;
1166
1222
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1167
1223
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1168
1224
  readonly text: v.StringSchema<undefined>;
@@ -1198,6 +1254,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1198
1254
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1199
1255
  }, undefined>, undefined>;
1200
1256
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1257
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
1258
+ readonly name: v.StringSchema<undefined>;
1259
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1260
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1261
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1262
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1263
+ }, undefined>, undefined>;
1201
1264
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1202
1265
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1203
1266
  readonly text: v.StringSchema<undefined>;
@@ -1611,6 +1674,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1611
1674
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1612
1675
  }, undefined>, undefined>;
1613
1676
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1677
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
1678
+ readonly name: v.StringSchema<undefined>;
1679
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1680
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1681
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1682
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1683
+ }, undefined>, undefined>;
1614
1684
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1615
1685
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1616
1686
  readonly text: v.StringSchema<undefined>;
@@ -1643,6 +1713,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1643
1713
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1644
1714
  }, undefined>, undefined>;
1645
1715
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1716
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
1717
+ readonly name: v.StringSchema<undefined>;
1718
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1719
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1720
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1721
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1722
+ }, undefined>, undefined>;
1646
1723
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1647
1724
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1648
1725
  readonly text: v.StringSchema<undefined>;
@@ -1678,6 +1755,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1678
1755
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1679
1756
  }, undefined>, undefined>;
1680
1757
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1758
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
1759
+ readonly name: v.StringSchema<undefined>;
1760
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1761
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1762
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1763
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1764
+ }, undefined>, undefined>;
1681
1765
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1682
1766
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1683
1767
  readonly text: v.StringSchema<undefined>;
@@ -67,6 +67,13 @@ export declare const messageThread: v.StrictObjectSchema<{
67
67
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
68
68
  }, undefined>, undefined>;
69
69
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
70
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
71
+ readonly name: v.StringSchema<undefined>;
72
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
73
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
74
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
75
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
76
+ }, undefined>, undefined>;
70
77
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
71
78
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
72
79
  readonly text: v.StringSchema<undefined>;
@@ -99,6 +106,13 @@ export declare const messageThread: v.StrictObjectSchema<{
99
106
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
100
107
  }, undefined>, undefined>;
101
108
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
109
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
110
+ readonly name: v.StringSchema<undefined>;
111
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
112
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
113
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
114
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
115
+ }, undefined>, undefined>;
102
116
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
103
117
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
104
118
  readonly text: v.StringSchema<undefined>;
@@ -134,6 +148,13 @@ export declare const messageThread: v.StrictObjectSchema<{
134
148
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
135
149
  }, undefined>, undefined>;
136
150
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
151
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
152
+ readonly name: v.StringSchema<undefined>;
153
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
154
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
155
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
156
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
157
+ }, undefined>, undefined>;
137
158
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
138
159
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
139
160
  readonly text: v.StringSchema<undefined>;
@@ -280,6 +301,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
280
301
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
281
302
  }, undefined>, undefined>;
282
303
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
304
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
305
+ readonly name: v.StringSchema<undefined>;
306
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
307
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
308
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
309
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
310
+ }, undefined>, undefined>;
283
311
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
284
312
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
285
313
  readonly text: v.StringSchema<undefined>;
@@ -312,6 +340,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
312
340
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
313
341
  }, undefined>, undefined>;
314
342
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
343
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
344
+ readonly name: v.StringSchema<undefined>;
345
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
346
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
347
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
348
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
349
+ }, undefined>, undefined>;
315
350
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
316
351
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
317
352
  readonly text: v.StringSchema<undefined>;
@@ -347,6 +382,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
347
382
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
348
383
  }, undefined>, undefined>;
349
384
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
385
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
386
+ readonly name: v.StringSchema<undefined>;
387
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
388
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
389
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
390
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
391
+ }, undefined>, undefined>;
350
392
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
351
393
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
352
394
  readonly text: v.StringSchema<undefined>;
@@ -474,6 +516,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
474
516
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
475
517
  }, undefined>, undefined>;
476
518
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
519
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
520
+ readonly name: v.StringSchema<undefined>;
521
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
522
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
523
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
524
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
525
+ }, undefined>, undefined>;
477
526
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
478
527
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
479
528
  readonly text: v.StringSchema<undefined>;
@@ -506,6 +555,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
506
555
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
507
556
  }, undefined>, undefined>;
508
557
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
558
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
559
+ readonly name: v.StringSchema<undefined>;
560
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
561
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
562
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
563
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
564
+ }, undefined>, undefined>;
509
565
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
510
566
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
511
567
  readonly text: v.StringSchema<undefined>;
@@ -541,6 +597,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
541
597
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
542
598
  }, undefined>, undefined>;
543
599
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
600
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
601
+ readonly name: v.StringSchema<undefined>;
602
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
603
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
604
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
605
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
606
+ }, undefined>, undefined>;
544
607
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
545
608
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
546
609
  readonly text: v.StringSchema<undefined>;
@@ -63,6 +63,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
63
63
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
64
64
  }, undefined>, undefined>;
65
65
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
66
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
67
+ readonly name: v.StringSchema<undefined>;
68
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
69
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
70
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
71
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
72
+ }, undefined>, undefined>;
66
73
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
67
74
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
68
75
  readonly text: v.StringSchema<undefined>;
@@ -95,6 +102,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
95
102
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
96
103
  }, undefined>, undefined>;
97
104
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
105
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
106
+ readonly name: v.StringSchema<undefined>;
107
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
108
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
109
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
110
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
111
+ }, undefined>, undefined>;
98
112
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
99
113
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
100
114
  readonly text: v.StringSchema<undefined>;
@@ -130,6 +144,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
130
144
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
131
145
  }, undefined>, undefined>;
132
146
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
147
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
148
+ readonly name: v.StringSchema<undefined>;
149
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
150
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
151
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
152
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
153
+ }, undefined>, undefined>;
133
154
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
134
155
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
135
156
  readonly text: v.StringSchema<undefined>;
@@ -253,6 +274,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
253
274
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
254
275
  }, undefined>, undefined>;
255
276
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
277
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
278
+ readonly name: v.StringSchema<undefined>;
279
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
280
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
281
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
282
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
283
+ }, undefined>, undefined>;
256
284
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
257
285
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
258
286
  readonly text: v.StringSchema<undefined>;
@@ -285,6 +313,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
285
313
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
286
314
  }, undefined>, undefined>;
287
315
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
316
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
317
+ readonly name: v.StringSchema<undefined>;
318
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
319
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
320
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
321
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
322
+ }, undefined>, undefined>;
288
323
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
289
324
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
290
325
  readonly text: v.StringSchema<undefined>;
@@ -320,6 +355,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
320
355
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
321
356
  }, undefined>, undefined>;
322
357
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
358
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
359
+ readonly name: v.StringSchema<undefined>;
360
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
361
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
362
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
363
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
364
+ }, undefined>, undefined>;
323
365
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
324
366
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
325
367
  readonly text: v.StringSchema<undefined>;
@@ -451,6 +493,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
451
493
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
452
494
  }, undefined>, undefined>;
453
495
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
496
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
497
+ readonly name: v.StringSchema<undefined>;
498
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
499
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
500
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
501
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
502
+ }, undefined>, undefined>;
454
503
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
455
504
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
456
505
  readonly text: v.StringSchema<undefined>;
@@ -483,6 +532,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
483
532
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
484
533
  }, undefined>, undefined>;
485
534
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
535
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
536
+ readonly name: v.StringSchema<undefined>;
537
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
538
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
539
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
540
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
541
+ }, undefined>, undefined>;
486
542
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
487
543
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
488
544
  readonly text: v.StringSchema<undefined>;
@@ -518,6 +574,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
518
574
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
519
575
  }, undefined>, undefined>;
520
576
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
577
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
578
+ readonly name: v.StringSchema<undefined>;
579
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
580
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
581
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
582
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
583
+ }, undefined>, undefined>;
521
584
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
522
585
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
523
586
  readonly text: v.StringSchema<undefined>;
@@ -641,6 +704,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
641
704
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
642
705
  }, undefined>, undefined>;
643
706
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
707
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
708
+ readonly name: v.StringSchema<undefined>;
709
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
710
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
711
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
712
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
713
+ }, undefined>, undefined>;
644
714
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
645
715
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
646
716
  readonly text: v.StringSchema<undefined>;
@@ -673,6 +743,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
673
743
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
674
744
  }, undefined>, undefined>;
675
745
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
746
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
747
+ readonly name: v.StringSchema<undefined>;
748
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
749
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
750
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
751
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
752
+ }, undefined>, undefined>;
676
753
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
677
754
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
678
755
  readonly text: v.StringSchema<undefined>;
@@ -708,6 +785,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
708
785
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
709
786
  }, undefined>, undefined>;
710
787
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
788
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
789
+ readonly name: v.StringSchema<undefined>;
790
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
791
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
792
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
793
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
794
+ }, undefined>, undefined>;
711
795
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
712
796
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
713
797
  readonly text: v.StringSchema<undefined>;
@@ -76,6 +76,13 @@ export declare const message: v.StrictObjectSchema<{
76
76
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
77
77
  }, undefined>, undefined>;
78
78
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
79
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
80
+ readonly name: v.StringSchema<undefined>;
81
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
82
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
85
+ }, undefined>, undefined>;
79
86
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
80
87
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
81
88
  readonly text: v.StringSchema<undefined>;
@@ -108,6 +115,13 @@ export declare const message: v.StrictObjectSchema<{
108
115
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
109
116
  }, undefined>, undefined>;
110
117
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
118
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
119
+ readonly name: v.StringSchema<undefined>;
120
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
121
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
122
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
123
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
124
+ }, undefined>, undefined>;
111
125
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
112
126
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
113
127
  readonly text: v.StringSchema<undefined>;
@@ -144,6 +158,13 @@ export declare const message: v.StrictObjectSchema<{
144
158
  readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
145
159
  }, undefined>, undefined>;
146
160
  readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly contact: v.OptionalSchema<v.StrictObjectSchema<{
162
+ readonly name: v.StringSchema<undefined>;
163
+ readonly first_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
164
+ readonly last_name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
165
+ readonly phone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
166
+ readonly user_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
167
+ }, undefined>, undefined>;
147
168
  readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
148
169
  readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
149
170
  readonly text: v.StringSchema<undefined>;
@@ -0,0 +1,12 @@
1
+ import * as v from "valibot";
2
+ /** One person's reaction to a message. */
3
+ export declare const reaction: v.StrictObjectSchema<{
4
+ readonly person: v.StrictObjectSchema<{
5
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
6
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7
+ readonly username: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8
+ }, undefined>;
9
+ /** The emoji, or `custom:<id>` for a custom one. */
10
+ readonly reaction: v.StringSchema<undefined>;
11
+ readonly reacted_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
12
+ }, undefined>;
@@ -0,0 +1,9 @@
1
+ import * as v from "valibot";
2
+ import { id, text, time } from "./fields.js";
3
+ /** One person's reaction to a message. */
4
+ export const reaction = v.strictObject({
5
+ person: v.strictObject({ id, name: v.nullable(text), username: v.nullable(text) }),
6
+ /** The emoji, or `custom:<id>` for a custom one. */
7
+ reaction: text,
8
+ reacted_at: time,
9
+ });