@wirecat/cli-core 1.0.0 → 1.2.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.
- package/CHANGELOG.md +144 -0
- package/THIRD_PARTY_NOTICES +43 -0
- package/dist/background/daily-archive-timer.d.ts +1 -1
- package/dist/cli/account-remove.d.ts +3 -0
- package/dist/cli/account-remove.js +1 -1
- package/dist/cli/documents/index.d.ts +2 -1
- package/dist/cli/documents/index.js +4 -1
- package/dist/cli/documents/words.d.ts +1 -1
- package/dist/cli/domain-lists-command.d.ts +16 -0
- package/dist/cli/domain-lists-command.js +88 -0
- package/dist/cli/index.d.ts +4 -3
- package/dist/cli/index.js +4 -3
- package/dist/cli/messenger/conversation-answers.d.ts +2 -0
- package/dist/cli/messenger/message-answers.d.ts +2 -0
- package/dist/cli/messenger/message-items.js +2 -0
- package/dist/cli/messenger/message-writes.d.ts +4 -0
- package/dist/cli/messenger/search-answers.js +2 -0
- package/dist/cli/model-catalogue-command.d.ts +6 -0
- package/dist/cli/model-catalogue-command.js +1 -1
- package/dist/cli/oauth-session.d.ts +38 -4
- package/dist/cli/oauth-session.js +72 -25
- package/dist/cli/shared-command-exports.d.ts +4 -0
- package/dist/cli/shared-command-exports.js +6 -0
- package/dist/cli/token-session.d.ts +9 -3
- package/dist/cli/token-session.js +34 -3
- package/dist/domain/domain-lists.d.ts +86 -0
- package/dist/domain/domain-lists.js +110 -0
- package/dist/domain/free-mail-domains.generated.d.ts +1 -0
- package/dist/domain/free-mail-domains.generated.js +4 -0
- package/dist/domain/models.d.ts +5 -0
- package/dist/domain/organization-sectors.d.ts +9 -3
- package/dist/domain/organization-sectors.generated.d.ts +1 -0
- package/dist/domain/organization-sectors.generated.js +1 -0
- package/dist/domain/organization-sectors.js +16 -3
- package/dist/domain/person-kinds.d.ts +6 -1
- package/dist/domain/person-kinds.js +5 -0
- package/dist/entities/contact-context.d.ts +4 -0
- package/dist/entities/conversation-results.d.ts +4 -0
- package/dist/entities/domain-list.d.ts +27 -0
- package/dist/entities/domain-list.js +28 -0
- package/dist/entities/evidence.d.ts +16 -0
- package/dist/entities/index.d.ts +56 -2
- package/dist/entities/index.js +3 -1
- package/dist/entities/knowledge-lists.d.ts +1 -1
- package/dist/entities/listener.d.ts +8 -0
- package/dist/entities/message-change.d.ts +2 -0
- package/dist/entities/message-context.d.ts +6 -0
- package/dist/entities/message-write.d.ts +8 -0
- package/dist/entities/message.d.ts +4 -0
- package/dist/entities/message.js +4 -0
- package/dist/entities/store-records.d.ts +2 -0
- package/dist/errors/reasons.js +20 -2
- package/dist/mail/cli/index.js +1 -1
- package/dist/mail/headers.d.ts +2 -0
- package/dist/mail/headers.js +2 -1
- package/dist/mail/mail-types.d.ts +48 -0
- package/dist/mail/mail-types.js +218 -0
- package/dist/mail/read.js +1 -0
- package/dist/mail/sort-rules.d.ts +58 -0
- package/dist/mail/sort-rules.js +79 -0
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/storage.d.ts +10 -2
- package/dist/oauth/storage.js +23 -9
- package/dist/search/lucene/registry.js +24 -0
- package/dist/services/domain-lists-download.d.ts +26 -0
- package/dist/services/domain-lists-download.js +155 -0
- package/dist/services/messages-search.js +1 -1
- package/dist/services/metadata.d.ts +1 -1
- package/dist/store/areas.d.ts +3 -1
- package/dist/store/areas.js +2 -0
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/people.d.ts +18 -9
- package/dist/store/people.js +8 -7
- package/dist/store/public.d.ts +1 -1
- package/dist/store/public.js +1 -1
- package/dist/store/queries.js +9 -2
- package/dist/store/sqlite/accounts.js +3 -1
- package/dist/store/sqlite/domain-organizations.d.ts +7 -4
- package/dist/store/sqlite/domain-organizations.js +94 -36
- package/dist/store/sqlite/email-types.d.ts +87 -0
- package/dist/store/sqlite/email-types.js +296 -0
- package/dist/store/sqlite/emails.d.ts +14 -2
- package/dist/store/sqlite/emails.js +32 -12
- package/dist/store/sqlite/identities.d.ts +4 -1
- package/dist/store/sqlite/identities.js +11 -2
- package/dist/store/sqlite/identity-rekey.js +2 -0
- package/dist/store/sqlite/lucene-fields.d.ts +6 -0
- package/dist/store/sqlite/lucene-fields.js +10 -0
- package/dist/store/sqlite/lucene.js +6 -0
- package/dist/store/sqlite/mail-sorting.d.ts +122 -0
- package/dist/store/sqlite/mail-sorting.js +482 -0
- package/dist/store/sqlite/manifest.js +6 -0
- package/dist/store/sqlite/merged-persons.d.ts +3 -2
- package/dist/store/sqlite/merged-persons.js +5 -3
- package/dist/store/sqlite/migrations.generated.js +76 -0
- package/dist/store/sqlite/people-list.d.ts +1 -6
- package/dist/store/sqlite/people-list.js +97 -42
- package/dist/store/sqlite/person-links.js +13 -3
- package/dist/store/sqlite/person-match-scan.js +5 -2
- package/dist/store/sqlite/schema/mail-sorting.d.ts +384 -0
- package/dist/store/sqlite/schema/mail-sorting.js +31 -0
- package/dist/store/sqlite/schema/sender-bots.d.ts +56 -0
- package/dist/store/sqlite/schema/sender-bots.js +9 -1
- package/dist/store/sqlite/schema.d.ts +66 -1
- package/dist/store/sqlite/schema.js +9 -1
- package/dist/store/sqlite/sender-bots.d.ts +89 -15
- package/dist/store/sqlite/sender-bots.js +417 -136
- package/dist/store/sqlite/sender-signals.d.ts +11 -4
- package/dist/store/sqlite/sender-signals.js +14 -10
- package/package.json +2 -2
|
@@ -210,6 +210,8 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
210
210
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
211
211
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
212
212
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
213
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
214
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
215
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
214
216
|
readonly score: v.NumberSchema<undefined>;
|
|
215
217
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -437,6 +439,8 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
437
439
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
438
440
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
439
441
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
442
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
443
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
440
444
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
441
445
|
readonly score: v.NumberSchema<undefined>;
|
|
442
446
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -702,6 +706,8 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
702
706
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
703
707
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
704
708
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
709
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
710
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
705
711
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
706
712
|
readonly score: v.NumberSchema<undefined>;
|
|
707
713
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -929,6 +935,8 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
929
935
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
930
936
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
931
937
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
938
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
939
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
932
940
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
933
941
|
readonly score: v.NumberSchema<undefined>;
|
|
934
942
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1230,6 +1238,8 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1230
1238
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1231
1239
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1232
1240
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1241
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1242
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1233
1243
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1234
1244
|
readonly score: v.NumberSchema<undefined>;
|
|
1235
1245
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1457,6 +1467,8 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1457
1467
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1458
1468
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1459
1469
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1470
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1471
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1460
1472
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1461
1473
|
readonly score: v.NumberSchema<undefined>;
|
|
1462
1474
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1722,6 +1734,8 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1722
1734
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1723
1735
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1724
1736
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1737
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1738
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1725
1739
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1726
1740
|
readonly score: v.NumberSchema<undefined>;
|
|
1727
1741
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1949,6 +1963,8 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1949
1963
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1950
1964
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1951
1965
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1966
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1967
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1952
1968
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1953
1969
|
readonly score: v.NumberSchema<undefined>;
|
|
1954
1970
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import { conversationBatch, conversationBatchStatus, conversationBuildResult, co
|
|
|
30
30
|
import { counterRefresh, counters } from "./counters.js";
|
|
31
31
|
import { document } from "./document.js";
|
|
32
32
|
import { documentLink } from "./document-link.js";
|
|
33
|
+
import { domainList } from "./domain-list.js";
|
|
33
34
|
import { evidence } from "./evidence.js";
|
|
34
35
|
import { fact } from "./fact.js";
|
|
35
36
|
import { reference } from "./fields.js";
|
|
@@ -92,7 +93,7 @@ import { topic } from "./topic.js";
|
|
|
92
93
|
* subset of its fields, never a renamed one. Commands move onto these one by one; until then, a schema
|
|
93
94
|
* is the target, not a description of today's output.
|
|
94
95
|
*/
|
|
95
|
-
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, chatCoverage, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatSending, 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, mailCounts, 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, responseTimes, retention, runDetails, runHit, runLocation, savedSearch, scheduledCancellation, scheduledJob, scheduledSend, scheduleHarness, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeImport, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskAnalysis, taskAnalysisMark, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, template, topic, topicIcon, trackedChat, trackedChatHistory, waitingChats, watchedMessage, watchItem, };
|
|
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, chatCoverage, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatSending, 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, domainList, endedAccountSessions, evidence, evidencePacket, fact, folder, hit, identity, imageEmbedding, inviteLink, job, joinRequest, linkedPerson, mailCounts, 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, responseTimes, retention, runDetails, runHit, runLocation, savedSearch, scheduledCancellation, scheduledJob, scheduledSend, scheduleHarness, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeImport, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskAnalysis, taskAnalysisMark, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, template, topic, topicIcon, trackedChat, trackedChatHistory, waitingChats, watchedMessage, watchItem, };
|
|
96
97
|
export declare const ENTITIES: {
|
|
97
98
|
readonly meeting_change: v.StrictObjectSchema<{
|
|
98
99
|
readonly action: v.PicklistSchema<["create", "update", "cancel"], undefined>;
|
|
@@ -650,6 +651,8 @@ export declare const ENTITIES: {
|
|
|
650
651
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
651
652
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
652
653
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
654
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
655
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
653
656
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
654
657
|
readonly score: v.NumberSchema<undefined>;
|
|
655
658
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -877,6 +880,8 @@ export declare const ENTITIES: {
|
|
|
877
880
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
878
881
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
879
882
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
883
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
884
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
880
885
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
881
886
|
readonly score: v.NumberSchema<undefined>;
|
|
882
887
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1109,6 +1114,8 @@ export declare const ENTITIES: {
|
|
|
1109
1114
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1110
1115
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1111
1116
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1117
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1118
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1112
1119
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1113
1120
|
readonly score: v.NumberSchema<undefined>;
|
|
1114
1121
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1480,6 +1487,8 @@ export declare const ENTITIES: {
|
|
|
1480
1487
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1481
1488
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1482
1489
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1490
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1491
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1483
1492
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1484
1493
|
readonly score: v.NumberSchema<undefined>;
|
|
1485
1494
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1731,6 +1740,8 @@ export declare const ENTITIES: {
|
|
|
1731
1740
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1732
1741
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1733
1742
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1743
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1744
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1734
1745
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1735
1746
|
readonly score: v.NumberSchema<undefined>;
|
|
1736
1747
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1958,6 +1969,8 @@ export declare const ENTITIES: {
|
|
|
1958
1969
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1959
1970
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1960
1971
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1972
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1973
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1961
1974
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1962
1975
|
readonly score: v.NumberSchema<undefined>;
|
|
1963
1976
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2189,6 +2202,8 @@ export declare const ENTITIES: {
|
|
|
2189
2202
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
2190
2203
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2191
2204
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2205
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2206
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2192
2207
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2193
2208
|
readonly score: v.NumberSchema<undefined>;
|
|
2194
2209
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2416,6 +2431,8 @@ export declare const ENTITIES: {
|
|
|
2416
2431
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
2417
2432
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2418
2433
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2434
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2435
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2419
2436
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2420
2437
|
readonly score: v.NumberSchema<undefined>;
|
|
2421
2438
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3165,6 +3182,8 @@ export declare const ENTITIES: {
|
|
|
3165
3182
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
3166
3183
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3167
3184
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3185
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3186
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3168
3187
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
3169
3188
|
readonly score: v.NumberSchema<undefined>;
|
|
3170
3189
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -4130,7 +4149,7 @@ export declare const ENTITIES: {
|
|
|
4130
4149
|
readonly kind: v.PicklistSchema<["company", "team", "family", "community"], undefined>;
|
|
4131
4150
|
readonly name: v.StringSchema<undefined>;
|
|
4132
4151
|
readonly scope: v.PicklistSchema<["personal", "work"], undefined>;
|
|
4133
|
-
readonly sector: v.NullableSchema<v.PicklistSchema<("
|
|
4152
|
+
readonly sector: v.NullableSchema<v.PicklistSchema<import("../domain/organization-sectors.js").Sector[], undefined>, undefined>;
|
|
4134
4153
|
readonly created_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`">]>;
|
|
4135
4154
|
}, undefined>;
|
|
4136
4155
|
readonly project: v.StrictObjectSchema<{
|
|
@@ -7347,6 +7366,8 @@ export declare const ENTITIES: {
|
|
|
7347
7366
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
7348
7367
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7349
7368
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7369
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7370
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7350
7371
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7351
7372
|
readonly score: v.NumberSchema<undefined>;
|
|
7352
7373
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -7574,6 +7595,8 @@ export declare const ENTITIES: {
|
|
|
7574
7595
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
7575
7596
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7576
7597
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7598
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7599
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7577
7600
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7578
7601
|
readonly score: v.NumberSchema<undefined>;
|
|
7579
7602
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -8046,6 +8069,8 @@ export declare const ENTITIES: {
|
|
|
8046
8069
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
8047
8070
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
8048
8071
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
8072
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8073
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8049
8074
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
8050
8075
|
readonly score: v.NumberSchema<undefined>;
|
|
8051
8076
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -8564,6 +8589,8 @@ export declare const ENTITIES: {
|
|
|
8564
8589
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
8565
8590
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
8566
8591
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
8592
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8593
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8567
8594
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
8568
8595
|
readonly score: v.NumberSchema<undefined>;
|
|
8569
8596
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -9272,6 +9299,8 @@ export declare const ENTITIES: {
|
|
|
9272
9299
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
9273
9300
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
9274
9301
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
9302
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9303
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9275
9304
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
9276
9305
|
readonly score: v.NumberSchema<undefined>;
|
|
9277
9306
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -10418,6 +10447,23 @@ export declare const ENTITIES: {
|
|
|
10418
10447
|
readonly to_embed: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10419
10448
|
readonly estimate_seconds: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10420
10449
|
}, undefined>;
|
|
10450
|
+
readonly domain_list: v.StrictObjectSchema<{
|
|
10451
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
10452
|
+
readonly title: v.StringSchema<undefined>;
|
|
10453
|
+
readonly signal: v.PicklistSchema<["sector", "freemail", "bad"], undefined>;
|
|
10454
|
+
readonly class: v.PicklistSchema<["commercial-ok", "non-commercial"], undefined>;
|
|
10455
|
+
readonly licence: v.StringSchema<undefined>;
|
|
10456
|
+
readonly licence_url: v.StringSchema<undefined>;
|
|
10457
|
+
readonly attribution: v.StringSchema<undefined>;
|
|
10458
|
+
readonly homepage: v.StringSchema<undefined>;
|
|
10459
|
+
readonly upstream: v.BooleanSchema<undefined>;
|
|
10460
|
+
readonly lines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
10461
|
+
readonly tags: v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10462
|
+
readonly version: v.StringSchema<undefined>;
|
|
10463
|
+
readonly installed_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`">]>;
|
|
10464
|
+
readonly sha256: v.StringSchema<undefined>;
|
|
10465
|
+
readonly path: v.StringSchema<undefined>;
|
|
10466
|
+
}, undefined>;
|
|
10421
10467
|
readonly model_key: v.StrictObjectSchema<{
|
|
10422
10468
|
readonly provider: v.StringSchema<undefined>;
|
|
10423
10469
|
readonly stored: v.OptionalSchema<v.PicklistSchema<["environment", "keyring", "file"], undefined>, undefined>;
|
|
@@ -11050,6 +11096,8 @@ export declare const ENTITIES: {
|
|
|
11050
11096
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
11051
11097
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11052
11098
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11099
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11100
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11053
11101
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
11054
11102
|
readonly score: v.NumberSchema<undefined>;
|
|
11055
11103
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -11277,6 +11325,8 @@ export declare const ENTITIES: {
|
|
|
11277
11325
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
11278
11326
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11279
11327
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11328
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11329
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11280
11330
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
11281
11331
|
readonly score: v.NumberSchema<undefined>;
|
|
11282
11332
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -11542,6 +11592,8 @@ export declare const ENTITIES: {
|
|
|
11542
11592
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
11543
11593
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11544
11594
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11595
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11596
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11545
11597
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
11546
11598
|
readonly score: v.NumberSchema<undefined>;
|
|
11547
11599
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -11769,6 +11821,8 @@ export declare const ENTITIES: {
|
|
|
11769
11821
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
11770
11822
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11771
11823
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
11824
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11825
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11772
11826
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
11773
11827
|
readonly score: v.NumberSchema<undefined>;
|
|
11774
11828
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
package/dist/entities/index.js
CHANGED
|
@@ -34,6 +34,7 @@ import { counterRefresh, counters } from "./counters.js";
|
|
|
34
34
|
import { deal, lead, pipeline, stage } from "./deal.js";
|
|
35
35
|
import { document } from "./document.js";
|
|
36
36
|
import { documentLink } from "./document-link.js";
|
|
37
|
+
import { domainList } from "./domain-list.js";
|
|
37
38
|
import { evidence } from "./evidence.js";
|
|
38
39
|
import { fact } from "./fact.js";
|
|
39
40
|
import { reference, untrusted } from "./fields.js";
|
|
@@ -101,7 +102,7 @@ import { topic } from "./topic.js";
|
|
|
101
102
|
* subset of its fields, never a renamed one. Commands move onto these one by one; until then, a schema
|
|
102
103
|
* is the target, not a description of today's output.
|
|
103
104
|
*/
|
|
104
|
-
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, chatCoverage, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatSending, 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, mailCounts, 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, responseTimes, retention, runDetails, runHit, runLocation, savedSearch, scheduledCancellation, scheduledJob, scheduledSend, scheduleHarness, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeImport, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskAnalysis, taskAnalysisMark, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, template, topic, topicIcon, trackedChat, trackedChatHistory, waitingChats, watchedMessage, watchItem, };
|
|
105
|
+
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, chatCoverage, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatSending, 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, domainList, endedAccountSessions, evidence, evidencePacket, fact, folder, hit, identity, imageEmbedding, inviteLink, job, joinRequest, linkedPerson, mailCounts, 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, responseTimes, retention, runDetails, runHit, runLocation, savedSearch, scheduledCancellation, scheduledJob, scheduledSend, scheduleHarness, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeImport, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskAnalysis, taskAnalysisMark, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, template, topic, topicIcon, trackedChat, trackedChatHistory, waitingChats, watchedMessage, watchItem, };
|
|
105
106
|
export const ENTITIES = {
|
|
106
107
|
sync_progress: syncProgress,
|
|
107
108
|
deal,
|
|
@@ -357,6 +358,7 @@ export const ENTITIES = {
|
|
|
357
358
|
chat_rules: chatRules,
|
|
358
359
|
chat_moderation: chatModeration,
|
|
359
360
|
"model.chosen": chosenModel,
|
|
361
|
+
domain_list: domainList,
|
|
360
362
|
model_key: modelKey,
|
|
361
363
|
chat_sending: chatSending,
|
|
362
364
|
"model_key.stored": storedModelKey,
|
|
@@ -6,7 +6,7 @@ export declare const organization: v.StrictObjectSchema<{
|
|
|
6
6
|
readonly kind: v.PicklistSchema<["company", "team", "family", "community"], undefined>;
|
|
7
7
|
readonly name: v.StringSchema<undefined>;
|
|
8
8
|
readonly scope: v.PicklistSchema<["personal", "work"], undefined>;
|
|
9
|
-
readonly sector: v.NullableSchema<v.PicklistSchema<("
|
|
9
|
+
readonly sector: v.NullableSchema<v.PicklistSchema<import("../domain/organization-sectors.js").Sector[], undefined>, undefined>;
|
|
10
10
|
readonly created_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`">]>;
|
|
11
11
|
}, undefined>;
|
|
12
12
|
/** @experimental */
|
|
@@ -208,6 +208,8 @@ export declare const watchedMessage: v.StrictObjectSchema<{
|
|
|
208
208
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
209
209
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
210
210
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
211
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
211
213
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
212
214
|
readonly score: v.NumberSchema<undefined>;
|
|
213
215
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -727,6 +729,8 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
|
|
|
727
729
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
728
730
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
729
731
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
732
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
733
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
730
734
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
731
735
|
readonly score: v.NumberSchema<undefined>;
|
|
732
736
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1353,6 +1357,8 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1353
1357
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1354
1358
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1355
1359
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1360
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1361
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1356
1362
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1357
1363
|
readonly score: v.NumberSchema<undefined>;
|
|
1358
1364
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1871,6 +1877,8 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1871
1877
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
1872
1878
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1873
1879
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1880
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1881
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1874
1882
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
1875
1883
|
readonly score: v.NumberSchema<undefined>;
|
|
1876
1884
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -236,6 +236,8 @@ declare const scheduledSendEntries: {
|
|
|
236
236
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
237
237
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
238
238
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
239
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
240
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
239
241
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
240
242
|
readonly score: v.NumberSchema<undefined>;
|
|
241
243
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -214,6 +214,8 @@ export declare const messageThread: v.StrictObjectSchema<{
|
|
|
214
214
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
215
215
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
216
216
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
217
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
218
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
217
219
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
218
220
|
readonly score: v.NumberSchema<undefined>;
|
|
219
221
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -465,6 +467,8 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
465
467
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
466
468
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
467
469
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
470
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
471
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
468
472
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
469
473
|
readonly score: v.NumberSchema<undefined>;
|
|
470
474
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -697,6 +701,8 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
697
701
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
698
702
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
699
703
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
704
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
705
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
700
706
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
701
707
|
readonly score: v.NumberSchema<undefined>;
|
|
702
708
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -210,6 +210,8 @@ export declare const messageWrite: v.StrictObjectSchema<{
|
|
|
210
210
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
211
211
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
212
212
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
213
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
214
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
215
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
214
216
|
readonly score: v.NumberSchema<undefined>;
|
|
215
217
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -438,6 +440,8 @@ export declare const messageWrite: v.StrictObjectSchema<{
|
|
|
438
440
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
439
441
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
440
442
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
443
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
444
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
441
445
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
442
446
|
readonly score: v.NumberSchema<undefined>;
|
|
443
447
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -674,6 +678,8 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
674
678
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
675
679
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
676
680
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
681
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
682
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
677
683
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
678
684
|
readonly score: v.NumberSchema<undefined>;
|
|
679
685
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -902,6 +908,8 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
902
908
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
903
909
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
904
910
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
911
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
912
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
905
913
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
906
914
|
readonly score: v.NumberSchema<undefined>;
|
|
907
915
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -232,6 +232,10 @@ export declare const message: v.StrictObjectSchema<{
|
|
|
232
232
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
233
233
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
234
234
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
235
|
+
/** What the email is, apart from its sender: one of the mail types. @experimental */
|
|
236
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
237
|
+
/** How it reached the owner: direct, group or broadcast. @experimental */
|
|
238
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
235
239
|
/** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
|
|
236
240
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
237
241
|
readonly score: v.NumberSchema<undefined>;
|
package/dist/entities/message.js
CHANGED
|
@@ -101,6 +101,10 @@ export const message = v.strictObject({
|
|
|
101
101
|
thread: reference,
|
|
102
102
|
read: v.nullable(v.boolean()),
|
|
103
103
|
flagged: v.nullable(v.boolean()),
|
|
104
|
+
/** What the email is, apart from its sender: one of the mail types. @experimental */
|
|
105
|
+
mail_type: v.optional(text),
|
|
106
|
+
/** How it reached the owner: direct, group or broadcast. @experimental */
|
|
107
|
+
reach: v.optional(text),
|
|
104
108
|
/** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
|
|
105
109
|
sender_score: v.optional(v.strictObject({ score: v.number(), signals: v.array(text), demoted: v.optional(v.literal(true)) })),
|
|
106
110
|
/** Mail `review`: filed in the mailbox of mail sent to many. */
|
|
@@ -241,6 +241,8 @@ export declare const storeExport: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
241
241
|
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
242
242
|
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
243
243
|
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
244
|
+
readonly mail_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
245
|
+
readonly reach: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
244
246
|
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
245
247
|
readonly score: v.NumberSchema<undefined>;
|
|
246
248
|
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
package/dist/errors/reasons.js
CHANGED
|
@@ -141,6 +141,7 @@ const OTHERS = [
|
|
|
141
141
|
["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
|
|
142
142
|
["search-harder.owner-only", "permission_error", "only the owner allows search all --harder, not an agent"],
|
|
143
143
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
144
|
+
["domain-lists.offline", "permission_error", "updating the domain lists needs the network; --offline was requested"],
|
|
144
145
|
["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
|
|
145
146
|
["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
|
|
146
147
|
[
|
|
@@ -662,10 +663,27 @@ const OTHERS = [
|
|
|
662
663
|
validation("identity.common-name", "more than six people have the name, so it proposes no one"),
|
|
663
664
|
validation("identity.not-a-person", "a bot, a program or an organization is never proposed as a person by name"),
|
|
664
665
|
validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
|
|
665
|
-
["sender-bot.not-found", "not_found", "no sender bot has that id;
|
|
666
|
+
["sender-bot.not-found", "not_found", "no sender bot has that id; the bots list names them"],
|
|
666
667
|
validation("sender-bot.owner", "the owner's own person is never a bot"),
|
|
667
|
-
validation("sender-bot.not-a-person", "the
|
|
668
|
+
validation("sender-bot.not-a-person", "the identity named is a sender bot's, not a person's; name a person"),
|
|
669
|
+
validation("sender-bot.empty", "the person or bot named holds no identity to move"),
|
|
668
670
|
validation("sender-bot.assignee", "a sender bot is no one's assignee; move it to a person first"),
|
|
671
|
+
validation("mail-sort.scope", "a sorting rule's scope is mail, list, subject, address or domain"),
|
|
672
|
+
validation("mail-sort.apply-to", "a sorting rule says whether it sorts past mail too: applyTo all or new"),
|
|
673
|
+
validation("mail-sort.value", "the value names no mail, list, subject, address or domain of that scope"),
|
|
674
|
+
validation("mail-sort.mail-type", "the mail type is not one of the known types"),
|
|
675
|
+
validation("mail-sort.sender", "a sorting rule makes a sender a bot or a person"),
|
|
676
|
+
validation("mail-sort.no-action", "a sorting rule sets a mail type, a sender or an organization"),
|
|
677
|
+
validation("mail-sort.owner-only", "only the owner moves or files senders, undoes and resets; a program removes its own rules"),
|
|
678
|
+
validation("mail-sort.sender-scope", "a sorting rule moves or files a sender at address or domain scope only"),
|
|
679
|
+
validation("mail-sort.sender-new", "a sender moves with its whole history, so an address rule that moves one applies to all"),
|
|
680
|
+
validation("mail-sort.over-addresses", "only a domain rule can beat the address rules"),
|
|
681
|
+
validation("mail-sort.free-mail-program", "only the owner sets a sorting rule on a free-mail or throwaway domain"),
|
|
682
|
+
validation("mail-sort.organization", "the organization named is not in the store"),
|
|
683
|
+
validation("mail-sort.confirm", "a free-mail domain rule needs the confirm of a dry run whose counts still hold; run the dry run again"),
|
|
684
|
+
validation("mail-sort.sender-ref", "the sender is named by an address, a person: ref or a sender-bot: ref"),
|
|
685
|
+
["mail-sort.not-found", "not_found", "no mail sorting rule has that id; the rules list names them"],
|
|
686
|
+
["mail-sort.email", "not_found", "no incoming email has that id"],
|
|
669
687
|
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
670
688
|
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
671
689
|
validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
|
package/dist/mail/cli/index.js
CHANGED
|
@@ -123,7 +123,7 @@ const searchCommand = (mail) => {
|
|
|
123
123
|
.option("--timezone <zone>", "the IANA timezone for calendar date boundaries")
|
|
124
124
|
.addHelpText("after", `
|
|
125
125
|
Fields: from: to: cc: bcc: subject: body: mailbox: (or label:) list: (a List-Id or its domain) is:unread|read|starred
|
|
126
|
-
has:attachment, filename:, content: (the text of attachments), size>, date: — \`${mail.app.command} personal search messages 'content:invoice'\`.
|
|
126
|
+
type: (order, bill, promotion… — what the email is) reach:direct|group|broadcast has:attachment, filename:, content: (the text of attachments), size>, date: — \`${mail.app.command} personal search messages 'content:invoice'\`.
|
|
127
127
|
chat: names a thread by its subject. Mail sent to many is in the mailbox bulk; NOT mailbox:bulk leaves it out.
|
|
128
128
|
Mail from senders with signs of fraud comes after the rest of the page; --plain-order keeps it in place.
|
|
129
129
|
--json: the list is items; each hit's reference is ref (msg:email/…), which messages show reads.${mail.server
|
package/dist/mail/headers.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export declare const authOf: (unfolded: string) => AuthVerdicts | undefined;
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const signedFieldsOf: (unfolded: string, from: string | undefined) => Set<string>;
|
|
39
39
|
export declare const addressesOf: (value: string | undefined) => string[];
|
|
40
|
+
/** A List-Id as the store keeps it: the part inside angle brackets, lower case. */
|
|
41
|
+
export declare const listIdOf: (raw: string | undefined) => string | undefined;
|
|
40
42
|
/** The header fields of one email, from its header text. */
|
|
41
43
|
export declare const headersOf: (text: string) => MailHeaders;
|
|
42
44
|
/** The header fields of a whole email, as `headersOf` reads them from a listing. */
|
package/dist/mail/headers.js
CHANGED
|
@@ -95,7 +95,8 @@ const nameOf = (value) => {
|
|
|
95
95
|
const name = before?.replace(/^"(.*)"$/, "$1").trim();
|
|
96
96
|
return name ? decodeWords(name) : undefined;
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
/** A List-Id as the store keeps it: the part inside angle brackets, lower case. */
|
|
99
|
+
export const listIdOf = (raw) => raw === undefined ? undefined : (/<([^>]+)>/.exec(raw)?.[1] ?? raw).trim().toLowerCase() || undefined;
|
|
99
100
|
/** The header fields of one email, from its header text. */
|
|
100
101
|
export const headersOf = (text) => {
|
|
101
102
|
const unfolded = unfold(text);
|