@wirecat/cli-core 0.399.0 → 0.400.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 +82 -0
- package/dist/analysis/consents.d.ts +11 -6
- package/dist/analysis/consents.js +5 -2
- package/dist/cli/bot/mcp.js +2 -1
- package/dist/cli/config-command.js +20 -1
- package/dist/cli/context.d.ts +2 -0
- package/dist/cli/context.js +1 -1
- package/dist/cli/effects.d.ts +4 -1
- package/dist/cli/effects.js +10 -2
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/json-fields.js +12 -1
- package/dist/cli/messenger/account-command.js +15 -6
- package/dist/cli/messenger/account-profile-query.d.ts +2 -0
- package/dist/cli/messenger/account-profile-query.js +13 -0
- package/dist/cli/messenger/account-sessions-command.js +1 -0
- package/dist/cli/messenger/admin-commands.js +12 -12
- package/dist/cli/messenger/admin-contacts-command.js +6 -3
- package/dist/cli/messenger/admin-folders-command.js +5 -5
- package/dist/cli/messenger/admin-moderation-command.js +4 -4
- package/dist/cli/messenger/admin-statistics-command.js +6 -14
- package/dist/cli/messenger/analysis-consents-query.d.ts +5 -0
- package/dist/cli/messenger/analysis-consents-query.js +20 -0
- package/dist/cli/messenger/archive-commands.js +3 -3
- package/dist/cli/messenger/attachments-command.js +3 -0
- package/dist/cli/messenger/backfill-command.js +5 -4
- package/dist/cli/messenger/chat-queries.d.ts +1 -0
- package/dist/cli/messenger/chat-queries.js +12 -2
- package/dist/cli/messenger/chats-command.js +2 -2
- package/dist/cli/messenger/chats-documents-command.js +7 -5
- package/dist/cli/messenger/chats-members-command.js +7 -3
- package/dist/cli/messenger/chats-read-command.js +1 -1
- package/dist/cli/messenger/chats-tracking-command.js +14 -6
- package/dist/cli/messenger/contacts-command.js +9 -5
- package/dist/cli/messenger/conversations-command.js +20 -16
- package/dist/cli/messenger/doctor-command.js +5 -1
- package/dist/cli/messenger/document-links-query.d.ts +2 -0
- package/dist/cli/messenger/document-links-query.js +9 -0
- package/dist/cli/messenger/download-command.js +1 -0
- package/dist/cli/messenger/flood-command.d.ts +2 -2
- package/dist/cli/messenger/flood-command.js +3 -3
- package/dist/cli/messenger/gaps-command.js +2 -2
- package/dist/cli/messenger/guard-commands.js +35 -13
- package/dist/cli/messenger/images-command.js +1 -0
- package/dist/cli/messenger/media-archive-command.js +2 -0
- package/dist/cli/messenger/media-archive-move-command.js +1 -0
- package/dist/cli/messenger/media-archive-timer-command.js +1 -1
- package/dist/cli/messenger/mentions-command.js +15 -2
- package/dist/cli/messenger/messages-command.js +2 -0
- package/dist/cli/messenger/messages-delete-command.js +1 -0
- package/dist/cli/messenger/messages-edit-command.js +1 -0
- package/dist/cli/messenger/messages-evidence-command.js +3 -1
- package/dist/cli/messenger/messages-forward-command.js +1 -0
- package/dist/cli/messenger/messages-pin-command.js +3 -0
- package/dist/cli/messenger/messages-send-command.js +1 -0
- package/dist/cli/messenger/metadata-command.js +6 -1
- package/dist/cli/messenger/models-command.js +10 -2
- package/dist/cli/messenger/polls-command.js +4 -0
- package/dist/cli/messenger/private-people-command.js +3 -3
- package/dist/cli/messenger/rankings-command.js +6 -11
- package/dist/cli/messenger/reactions-command.js +2 -0
- package/dist/cli/messenger/recipients-query.d.ts +5 -0
- package/dist/cli/messenger/recipients-query.js +18 -0
- package/dist/cli/messenger/records-command.js +13 -6
- package/dist/cli/messenger/search-command.js +3 -1
- package/dist/cli/messenger/searches-command.js +5 -1
- package/dist/cli/messenger/sends-query.d.ts +5 -0
- package/dist/cli/messenger/sends-query.js +33 -0
- package/dist/cli/messenger/serve-command.js +1 -0
- package/dist/cli/messenger/statistics-query.d.ts +14 -0
- package/dist/cli/messenger/statistics-query.js +143 -0
- package/dist/cli/messenger/stats-command.js +5 -5
- package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
- package/dist/cli/messenger/store-maintenance-command.js +10 -10
- package/dist/cli/messenger/tags-command.js +7 -1
- package/dist/cli/messenger/tasks-command.js +47 -8
- package/dist/cli/messenger/transcribe-command.js +1 -0
- package/dist/cli/messenger/watch-answers.d.ts +6 -0
- package/dist/cli/messenger/watch-answers.js +69 -0
- package/dist/cli/messenger/watch-command.d.ts +1 -1
- package/dist/cli/messenger/watch-command.js +56 -7
- package/dist/cli/program.js +5 -1
- package/dist/cli/runs/command.js +25 -38
- package/dist/cli/runs/query.d.ts +5 -0
- package/dist/cli/runs/query.js +32 -0
- package/dist/cli/runs/search-command.d.ts +4 -0
- package/dist/cli/runs/search-command.js +27 -0
- package/dist/cli/runs/search-query.d.ts +4 -0
- package/dist/cli/runs/search-query.js +50 -0
- package/dist/cli/runs/search.d.ts +2 -1
- package/dist/cli/runs/search.js +6 -6
- package/dist/domain/attachments.js +9 -1
- package/dist/domain/rankings-options.js +3 -3
- package/dist/entities/account-change.d.ts +89 -0
- package/dist/entities/account-change.js +20 -0
- package/dist/entities/account-profile.d.ts +7 -0
- package/dist/entities/account-profile.js +8 -0
- package/dist/entities/analysis-consent.d.ts +9 -0
- package/dist/entities/analysis-consent.js +4 -0
- package/dist/entities/attachment-results.d.ts +96 -0
- package/dist/entities/attachment-results.js +31 -0
- package/dist/entities/batch-result.d.ts +27 -0
- package/dist/entities/batch-result.js +18 -0
- package/dist/entities/chat-admin.d.ts +234 -0
- package/dist/entities/chat-admin.js +84 -0
- package/dist/entities/chat-change.d.ts +25 -0
- package/dist/entities/chat-change.js +11 -0
- package/dist/entities/chat-metadata.d.ts +34 -0
- package/dist/entities/chat-metadata.js +15 -0
- package/dist/entities/chat-moderation.d.ts +44 -0
- package/dist/entities/chat-moderation.js +37 -0
- package/dist/entities/chat-tracking.d.ts +26 -0
- package/dist/entities/chat-tracking.js +23 -0
- package/dist/entities/contact-activity.d.ts +52 -0
- package/dist/entities/contact-activity.js +42 -0
- package/dist/entities/contact-context.d.ts +1568 -0
- package/dist/entities/contact-context.js +191 -0
- package/dist/entities/contact-write.d.ts +22 -0
- package/dist/entities/contact-write.js +6 -0
- package/dist/entities/conversation-preparation.d.ts +63 -0
- package/dist/entities/conversation-preparation.js +23 -0
- package/dist/entities/conversation-results.d.ts +567 -0
- package/dist/entities/conversation-results.js +94 -0
- package/dist/entities/document-link.d.ts +13 -0
- package/dist/entities/document-link.js +11 -0
- package/dist/entities/extraction-report.d.ts +95 -0
- package/dist/entities/extraction-report.js +34 -0
- package/dist/entities/image-embedding.d.ts +9 -0
- package/dist/entities/image-embedding.js +10 -0
- package/dist/entities/index.d.ts +8006 -1928
- package/dist/entities/index.js +174 -3
- package/dist/entities/listener.d.ts +2150 -0
- package/dist/entities/listener.js +46 -0
- package/dist/entities/media-archive.d.ts +43 -0
- package/dist/entities/media-archive.js +32 -0
- package/dist/entities/meeting-task-proposal.d.ts +14 -0
- package/dist/entities/meeting-task-proposal.js +19 -0
- package/dist/entities/meeting.d.ts +1 -1
- package/dist/entities/meeting.js +1 -1
- package/dist/entities/mention.d.ts +63 -0
- package/dist/entities/mention.js +44 -0
- package/dist/entities/message-change.d.ts +19 -0
- package/dist/entities/message-change.js +6 -0
- package/dist/entities/message-context.d.ts +617 -0
- package/dist/entities/message-context.js +20 -0
- package/dist/entities/message-read.d.ts +73 -0
- package/dist/entities/message-read.js +58 -0
- package/dist/entities/message-transfer.d.ts +379 -0
- package/dist/entities/message-transfer.js +83 -0
- package/dist/entities/message-write.d.ts +191 -0
- package/dist/entities/message-write.js +8 -0
- package/dist/entities/model-key.d.ts +14 -0
- package/dist/entities/model-key.js +10 -0
- package/dist/entities/poll.d.ts +40 -0
- package/dist/entities/poll.js +16 -0
- package/dist/entities/private-contact.d.ts +10 -0
- package/dist/entities/private-contact.js +4 -0
- package/dist/entities/reaction-change.d.ts +7 -0
- package/dist/entities/reaction-change.js +8 -0
- package/dist/entities/recipient.d.ts +29 -0
- package/dist/entities/recipient.js +11 -0
- package/dist/entities/recorded-run.d.ts +103 -0
- package/dist/entities/recorded-run.js +44 -0
- package/dist/entities/saved-search.d.ts +4 -0
- package/dist/entities/saved-search.js +2 -0
- package/dist/entities/send-attempt.d.ts +31 -0
- package/dist/entities/send-attempt.js +29 -0
- package/dist/entities/store-maintenance.d.ts +319 -0
- package/dist/entities/store-maintenance.js +145 -0
- package/dist/entities/store-records.d.ts +442 -0
- package/dist/entities/store-records.js +99 -0
- package/dist/entities/tag-change.d.ts +74 -0
- package/dist/entities/tag-change.js +31 -0
- package/dist/entities/task-pair.d.ts +31 -0
- package/dist/entities/task-pair.js +23 -0
- package/dist/entities/task-results.d.ts +524 -0
- package/dist/entities/task-results.js +142 -0
- package/dist/errors/reasons.js +1 -0
- package/dist/mcp/agent.d.ts +3 -1
- package/dist/mcp/agent.js +9 -6
- package/dist/mcp/bot/server.d.ts +2 -0
- package/dist/mcp/bot/server.js +1 -0
- package/dist/mcp/server.js +3 -1
- package/dist/mcp/tools/attachments.js +1 -0
- package/dist/meetings/cli/index.js +1 -1
- package/dist/meetings/cli/passage.js +1 -0
- package/dist/meetings/index.d.ts +2 -1
- package/dist/meetings/index.js +1 -0
- package/dist/meetings/links.d.ts +16 -0
- package/dist/meetings/mcp/index.d.ts +15 -15
- package/dist/meetings/read-answers.d.ts +167 -0
- package/dist/meetings/read-answers.js +183 -0
- package/dist/runs/run.d.ts +10 -2
- package/dist/runs/run.js +11 -3
- package/dist/sends/journal.d.ts +8 -1
- package/dist/sends/journal.js +9 -2
- package/dist/sends/permissions.d.ts +5 -1
- package/dist/sends/permissions.js +11 -1
- package/dist/sends/recipients.d.ts +8 -0
- package/dist/sends/recipients.js +9 -0
- package/dist/services/admin-statistics.js +3 -3
- package/dist/services/chat-documents.d.ts +1 -0
- package/dist/services/chat-documents.js +9 -3
- package/dist/services/chats.d.ts +1 -1
- package/dist/services/chats.js +5 -2
- package/dist/services/meeting-links.d.ts +2 -17
- package/dist/store/exports.d.ts +1 -1
- package/dist/store/exports.js +1 -1
- package/dist/store/messages.d.ts +3 -1
- package/dist/store/messages.js +2 -2
- package/dist/store/roster.d.ts +4 -1
- package/dist/store/roster.js +2 -2
- package/dist/store/sqlite/chats.d.ts +12 -0
- package/dist/store/sqlite/chats.js +1 -0
- package/dist/store/sqlite/document-links.d.ts +1 -1
- package/dist/store/sqlite/document-links.js +5 -5
- package/dist/store/sqlite/involvements.js +2 -1
- package/dist/store/sqlite/roster.d.ts +2 -1
- package/dist/store/sqlite/roster.js +3 -2
- package/package.json +1 -1
- package/parity.json +8 -66
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const messageWrite: v.StrictObjectSchema<{
|
|
3
|
+
readonly operation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
|
+
readonly message: v.StrictObjectSchema<{
|
|
5
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
6
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7
|
+
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
10
|
+
readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
+
readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
12
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
15
|
+
readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
16
|
+
readonly timestamp: 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`">]>;
|
|
17
|
+
readonly edited_at: v.NullableSchema<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`">]>, undefined>;
|
|
18
|
+
readonly text: v.StringSchema<undefined>;
|
|
19
|
+
readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
21
|
+
readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
|
|
23
|
+
readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
+
readonly match: v.OptionalSchema<v.PicklistSchema<["words", "beginnings", "corrected"], undefined>, undefined>;
|
|
25
|
+
readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
26
|
+
readonly from: v.StringSchema<undefined>;
|
|
27
|
+
readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
}, undefined>, undefined>, undefined>;
|
|
29
|
+
readonly found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
|
|
30
|
+
readonly discovery: v.OptionalSchema<v.StrictObjectSchema<{
|
|
31
|
+
readonly coverage: v.NumberSchema<undefined>;
|
|
32
|
+
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
35
|
+
}, undefined>, undefined>;
|
|
36
|
+
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
37
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
38
|
+
readonly timestamp: 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`">]>;
|
|
39
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly text: v.StringSchema<undefined>;
|
|
41
|
+
}, undefined>, undefined>, undefined>;
|
|
42
|
+
readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
44
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
45
|
+
readonly kind: v.StringSchema<undefined>;
|
|
46
|
+
readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
47
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
52
|
+
readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
53
|
+
readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
54
|
+
readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
55
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
|
|
57
|
+
readonly origin: v.StringSchema<undefined>;
|
|
58
|
+
readonly extractor: v.StringSchema<undefined>;
|
|
59
|
+
readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
60
|
+
readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
}, undefined>, undefined>;
|
|
62
|
+
readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
+
readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
64
|
+
readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
|
|
65
|
+
readonly text: v.StringSchema<undefined>;
|
|
66
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
67
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
68
|
+
}, undefined>, undefined>;
|
|
69
|
+
readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
|
|
70
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
71
|
+
readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
72
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
73
|
+
readonly timestamp: v.NullableSchema<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`">]>, undefined>;
|
|
74
|
+
readonly text: v.StringSchema<undefined>;
|
|
75
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
76
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
77
|
+
readonly kind: v.StringSchema<undefined>;
|
|
78
|
+
readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
79
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
84
|
+
readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
85
|
+
readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
86
|
+
readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
87
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
88
|
+
readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
|
|
89
|
+
readonly origin: v.StringSchema<undefined>;
|
|
90
|
+
readonly extractor: v.StringSchema<undefined>;
|
|
91
|
+
readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
92
|
+
readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
93
|
+
}, undefined>, undefined>;
|
|
94
|
+
readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
95
|
+
readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
96
|
+
readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
|
|
97
|
+
readonly text: v.StringSchema<undefined>;
|
|
98
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
99
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
100
|
+
}, undefined>, undefined>;
|
|
101
|
+
readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
102
|
+
}, undefined>, undefined>;
|
|
103
|
+
readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
104
|
+
readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
|
|
105
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
106
|
+
readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
107
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly timestamp: v.NullableSchema<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`">]>, undefined>;
|
|
109
|
+
readonly text: v.StringSchema<undefined>;
|
|
110
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
111
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
112
|
+
readonly kind: v.StringSchema<undefined>;
|
|
113
|
+
readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
114
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
115
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
119
|
+
readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
120
|
+
readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
121
|
+
readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
122
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
|
|
124
|
+
readonly origin: v.StringSchema<undefined>;
|
|
125
|
+
readonly extractor: v.StringSchema<undefined>;
|
|
126
|
+
readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
127
|
+
readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
128
|
+
}, undefined>, undefined>;
|
|
129
|
+
readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
131
|
+
readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
|
|
132
|
+
readonly text: v.StringSchema<undefined>;
|
|
133
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
135
|
+
}, undefined>, undefined>;
|
|
136
|
+
readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
137
|
+
}, undefined>, undefined>;
|
|
138
|
+
readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
139
|
+
readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
140
|
+
readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
|
|
141
|
+
readonly counts: v.ArraySchema<v.StrictObjectSchema<{
|
|
142
|
+
readonly reaction: v.StringSchema<undefined>;
|
|
143
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
144
|
+
}, undefined>, undefined>;
|
|
145
|
+
readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
147
|
+
}, undefined>, undefined>, undefined>;
|
|
148
|
+
readonly scheduled_for: v.OptionalSchema<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`">]>, undefined>;
|
|
149
|
+
readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
150
|
+
readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
|
|
151
|
+
readonly email: v.OptionalSchema<v.StrictObjectSchema<{
|
|
152
|
+
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
153
|
+
readonly from: v.NullableSchema<v.StrictObjectSchema<{
|
|
154
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
155
|
+
readonly address: v.StringSchema<undefined>;
|
|
156
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
157
|
+
}, undefined>, undefined>;
|
|
158
|
+
readonly to: v.ArraySchema<v.StrictObjectSchema<{
|
|
159
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
160
|
+
readonly address: v.StringSchema<undefined>;
|
|
161
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
162
|
+
}, undefined>, undefined>;
|
|
163
|
+
readonly cc: v.ArraySchema<v.StrictObjectSchema<{
|
|
164
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
165
|
+
readonly address: v.StringSchema<undefined>;
|
|
166
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
167
|
+
}, undefined>, undefined>;
|
|
168
|
+
readonly bcc: v.ArraySchema<v.StrictObjectSchema<{
|
|
169
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
readonly address: v.StringSchema<undefined>;
|
|
171
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
172
|
+
}, undefined>, undefined>;
|
|
173
|
+
readonly reply_addresses: v.ArraySchema<v.StrictObjectSchema<{
|
|
174
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
175
|
+
readonly address: v.StringSchema<undefined>;
|
|
176
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
177
|
+
}, undefined>, undefined>;
|
|
178
|
+
readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
179
|
+
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
180
|
+
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
181
|
+
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
182
|
+
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
183
|
+
readonly score: v.NumberSchema<undefined>;
|
|
184
|
+
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
185
|
+
readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
186
|
+
}, undefined>, undefined>;
|
|
187
|
+
}, undefined>, undefined>;
|
|
188
|
+
readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
189
|
+
}, undefined>;
|
|
190
|
+
readonly scheduled_for: v.OptionalSchema<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`">]>, undefined>;
|
|
191
|
+
}, undefined>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const modelKey: v.StrictObjectSchema<{
|
|
3
|
+
readonly provider: v.StringSchema<undefined>;
|
|
4
|
+
readonly stored: v.OptionalSchema<v.PicklistSchema<["environment", "keyring", "file"], undefined>, undefined>;
|
|
5
|
+
readonly removed: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["environment", "keyring", "file"], undefined>, undefined>, undefined>;
|
|
6
|
+
}, undefined>;
|
|
7
|
+
export declare const storedModelKey: v.StrictObjectSchema<{
|
|
8
|
+
readonly provider: v.StringSchema<undefined>;
|
|
9
|
+
readonly stored: v.PicklistSchema<["environment", "keyring", "file"], undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
export declare const removedModelKey: v.StrictObjectSchema<{
|
|
12
|
+
readonly provider: v.StringSchema<undefined>;
|
|
13
|
+
readonly removed: v.ArraySchema<v.PicklistSchema<["environment", "keyring", "file"], undefined>, undefined>;
|
|
14
|
+
}, undefined>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { text } from "./fields.js";
|
|
3
|
+
const source = v.picklist(["environment", "keyring", "file"]);
|
|
4
|
+
export const modelKey = v.strictObject({
|
|
5
|
+
provider: text,
|
|
6
|
+
stored: v.optional(source),
|
|
7
|
+
removed: v.optional(v.array(source)),
|
|
8
|
+
});
|
|
9
|
+
export const storedModelKey = v.strictObject({ ...v.omit(modelKey, ["removed"]).entries, stored: source });
|
|
10
|
+
export const removedModelKey = v.strictObject({ ...v.omit(modelKey, ["stored"]).entries, removed: v.array(source) });
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const poll: v.StrictObjectSchema<{
|
|
3
|
+
readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
|
+
readonly message_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5
|
+
readonly question: v.StringSchema<undefined>;
|
|
6
|
+
readonly answers: v.ArraySchema<v.StrictObjectSchema<{
|
|
7
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
8
|
+
readonly text: v.StringSchema<undefined>;
|
|
9
|
+
readonly voters: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
+
readonly chosen: v.BooleanSchema<undefined>;
|
|
11
|
+
}, undefined>, undefined>;
|
|
12
|
+
readonly closed: v.BooleanSchema<undefined>;
|
|
13
|
+
readonly multiple: v.BooleanSchema<undefined>;
|
|
14
|
+
readonly anonymous: v.BooleanSchema<undefined>;
|
|
15
|
+
readonly voters: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
16
|
+
readonly quiz: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
17
|
+
readonly revote: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
18
|
+
readonly creator: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
export declare const pollChange: v.StrictObjectSchema<{
|
|
21
|
+
readonly operation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
22
|
+
readonly poll: v.StrictObjectSchema<{
|
|
23
|
+
readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
24
|
+
readonly message_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
25
|
+
readonly question: v.StringSchema<undefined>;
|
|
26
|
+
readonly answers: v.ArraySchema<v.StrictObjectSchema<{
|
|
27
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
28
|
+
readonly text: v.StringSchema<undefined>;
|
|
29
|
+
readonly voters: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
30
|
+
readonly chosen: v.BooleanSchema<undefined>;
|
|
31
|
+
}, undefined>, undefined>;
|
|
32
|
+
readonly closed: v.BooleanSchema<undefined>;
|
|
33
|
+
readonly multiple: v.BooleanSchema<undefined>;
|
|
34
|
+
readonly anonymous: v.BooleanSchema<undefined>;
|
|
35
|
+
readonly voters: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
36
|
+
readonly quiz: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
37
|
+
readonly revote: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
38
|
+
readonly creator: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
}, undefined>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { count, id, text } from "./fields.js";
|
|
3
|
+
export const poll = v.strictObject({
|
|
4
|
+
chat_id: id,
|
|
5
|
+
message_id: id,
|
|
6
|
+
question: text,
|
|
7
|
+
answers: v.array(v.strictObject({ id, text, voters: v.nullable(count), chosen: v.boolean() })),
|
|
8
|
+
closed: v.boolean(),
|
|
9
|
+
multiple: v.boolean(),
|
|
10
|
+
anonymous: v.boolean(),
|
|
11
|
+
voters: v.nullable(count),
|
|
12
|
+
quiz: v.optional(v.boolean()),
|
|
13
|
+
revote: v.optional(v.boolean()),
|
|
14
|
+
creator: v.optional(v.boolean()),
|
|
15
|
+
});
|
|
16
|
+
export const pollChange = v.strictObject({ operation_id: id, poll });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const contactAlias: v.StrictObjectSchema<{
|
|
3
|
+
readonly person_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
|
+
readonly alias: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
export declare const contactNoteRemoval: v.StrictObjectSchema<{
|
|
7
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
8
|
+
readonly person_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
9
|
+
readonly removed: v.BooleanSchema<undefined>;
|
|
10
|
+
}, undefined>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const reactionChange: v.StrictObjectSchema<{
|
|
3
|
+
readonly operation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
|
+
readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5
|
+
readonly message_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6
|
+
readonly reaction: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7
|
+
}, undefined>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const recipient: v.StrictObjectSchema<{
|
|
3
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5
|
+
readonly partner_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
6
|
+
readonly added_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`">]>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
export declare const recipientAdded: v.StrictObjectSchema<{
|
|
9
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
10
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly added: v.BooleanSchema<undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
export declare const recipientRemoved: v.StrictObjectSchema<{
|
|
14
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
15
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly removed: v.BooleanSchema<undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
export declare const recipientOff: v.StrictObjectSchema<{
|
|
19
|
+
readonly off: v.BooleanSchema<undefined>;
|
|
20
|
+
readonly was_on: v.BooleanSchema<undefined>;
|
|
21
|
+
}, undefined>;
|
|
22
|
+
export declare const recipientChange: v.StrictObjectSchema<{
|
|
23
|
+
readonly added: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
24
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
25
|
+
readonly title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
26
|
+
readonly removed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
27
|
+
readonly off: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
28
|
+
readonly was_on: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { id, text, time } from "./fields.js";
|
|
3
|
+
export const recipient = v.strictObject({ id, title: v.nullable(text), partner_id: v.optional(id), added_at: time });
|
|
4
|
+
export const recipientAdded = v.strictObject({ id, title: v.nullable(text), added: v.boolean() });
|
|
5
|
+
export const recipientRemoved = v.strictObject({ id, title: v.nullable(text), removed: v.boolean() });
|
|
6
|
+
export const recipientOff = v.strictObject({ off: v.boolean(), was_on: v.boolean() });
|
|
7
|
+
export const recipientChange = v.strictObject({
|
|
8
|
+
...v.partial(recipientAdded).entries,
|
|
9
|
+
...v.partial(recipientRemoved).entries,
|
|
10
|
+
...v.partial(recipientOff).entries,
|
|
11
|
+
});
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const recordedRun: v.StrictObjectSchema<{
|
|
3
|
+
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
|
+
readonly command: v.StringSchema<undefined>;
|
|
5
|
+
readonly profile: v.StringSchema<undefined>;
|
|
6
|
+
readonly started_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`">]>;
|
|
7
|
+
readonly completed_at: v.OptionalSchema<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`">]>, undefined>;
|
|
8
|
+
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
9
|
+
readonly requests: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
+
readonly duration_ms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
11
|
+
readonly cli_version: v.StringSchema<undefined>;
|
|
12
|
+
readonly runtime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly platform: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly arch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly error_code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly partial: v.OptionalSchema<v.StrictObjectSchema<{
|
|
17
|
+
readonly failed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
18
|
+
readonly stop_reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly failures: v.ArraySchema<v.StrictObjectSchema<{
|
|
20
|
+
readonly id: v.StringSchema<undefined>;
|
|
21
|
+
readonly stage: v.StringSchema<undefined>;
|
|
22
|
+
readonly error_code: v.StringSchema<undefined>;
|
|
23
|
+
readonly attachment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
24
|
+
}, undefined>, undefined>;
|
|
25
|
+
}, undefined>, undefined>;
|
|
26
|
+
readonly provider_error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly kept_because_failed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
28
|
+
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
29
|
+
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
30
|
+
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
31
|
+
readonly directory: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly event_count: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
33
|
+
readonly events: v.OptionalSchema<v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
34
|
+
readonly events_truncated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
export declare const runDetails: v.StrictObjectSchema<{
|
|
37
|
+
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
38
|
+
readonly command: v.StringSchema<undefined>;
|
|
39
|
+
readonly profile: v.StringSchema<undefined>;
|
|
40
|
+
readonly started_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`">]>;
|
|
41
|
+
readonly completed_at: v.OptionalSchema<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`">]>, undefined>;
|
|
42
|
+
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
43
|
+
readonly requests: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
44
|
+
readonly duration_ms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
45
|
+
readonly cli_version: v.StringSchema<undefined>;
|
|
46
|
+
readonly runtime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
readonly platform: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly arch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly error_code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly partial: v.OptionalSchema<v.StrictObjectSchema<{
|
|
51
|
+
readonly failed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
52
|
+
readonly stop_reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly failures: v.ArraySchema<v.StrictObjectSchema<{
|
|
54
|
+
readonly id: v.StringSchema<undefined>;
|
|
55
|
+
readonly stage: v.StringSchema<undefined>;
|
|
56
|
+
readonly error_code: v.StringSchema<undefined>;
|
|
57
|
+
readonly attachment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
58
|
+
}, undefined>, undefined>;
|
|
59
|
+
}, undefined>, undefined>;
|
|
60
|
+
readonly provider_error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly kept_because_failed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
62
|
+
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
63
|
+
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
64
|
+
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
65
|
+
readonly directory: v.StringSchema<undefined>;
|
|
66
|
+
readonly event_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
67
|
+
readonly events: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
export declare const runHit: v.StrictObjectSchema<{
|
|
70
|
+
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
71
|
+
readonly command: v.StringSchema<undefined>;
|
|
72
|
+
readonly profile: v.StringSchema<undefined>;
|
|
73
|
+
readonly started_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`">]>;
|
|
74
|
+
readonly completed_at: v.OptionalSchema<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`">]>, undefined>;
|
|
75
|
+
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
76
|
+
readonly requests: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
77
|
+
readonly duration_ms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
78
|
+
readonly cli_version: v.StringSchema<undefined>;
|
|
79
|
+
readonly runtime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly platform: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly arch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly error_code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
+
readonly partial: v.OptionalSchema<v.StrictObjectSchema<{
|
|
84
|
+
readonly failed: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
85
|
+
readonly stop_reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly failures: v.ArraySchema<v.StrictObjectSchema<{
|
|
87
|
+
readonly id: v.StringSchema<undefined>;
|
|
88
|
+
readonly stage: v.StringSchema<undefined>;
|
|
89
|
+
readonly error_code: v.StringSchema<undefined>;
|
|
90
|
+
readonly attachment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
91
|
+
}, undefined>, undefined>;
|
|
92
|
+
}, undefined>, undefined>;
|
|
93
|
+
readonly provider_error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly kept_because_failed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
95
|
+
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
96
|
+
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
97
|
+
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
98
|
+
readonly events: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
99
|
+
readonly events_truncated: v.BooleanSchema<undefined>;
|
|
100
|
+
}, undefined>;
|
|
101
|
+
export declare const runLocation: v.StrictObjectSchema<{
|
|
102
|
+
readonly path: v.StringSchema<undefined>;
|
|
103
|
+
}, undefined>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { count, id, text, time } from "./fields.js";
|
|
3
|
+
const events = v.array(v.record(v.string(), v.unknown()));
|
|
4
|
+
export const recordedRun = v.strictObject({
|
|
5
|
+
run_id: id,
|
|
6
|
+
command: text,
|
|
7
|
+
profile: text,
|
|
8
|
+
started_at: time,
|
|
9
|
+
completed_at: v.optional(time),
|
|
10
|
+
status: v.picklist(["success", "failed", "partial", "running"]),
|
|
11
|
+
requests: v.optional(count),
|
|
12
|
+
duration_ms: v.optional(count),
|
|
13
|
+
cli_version: text,
|
|
14
|
+
runtime: v.optional(text),
|
|
15
|
+
platform: v.optional(text),
|
|
16
|
+
arch: v.optional(text),
|
|
17
|
+
error_code: v.optional(text),
|
|
18
|
+
partial: v.optional(v.strictObject({
|
|
19
|
+
failed: count,
|
|
20
|
+
stop_reason: v.optional(text),
|
|
21
|
+
failures: v.array(v.strictObject({ id: text, stage: text, error_code: text, attachment: v.optional(count) })),
|
|
22
|
+
})),
|
|
23
|
+
provider_error: v.optional(text),
|
|
24
|
+
kept_because_failed: v.optional(v.boolean()),
|
|
25
|
+
operations: v.optional(v.array(text)),
|
|
26
|
+
codes: v.optional(v.array(text)),
|
|
27
|
+
trace_id: v.optional(id),
|
|
28
|
+
directory: v.optional(text),
|
|
29
|
+
event_count: v.optional(count),
|
|
30
|
+
events: v.optional(events),
|
|
31
|
+
events_truncated: v.optional(v.boolean()),
|
|
32
|
+
});
|
|
33
|
+
export const runDetails = v.strictObject({
|
|
34
|
+
...v.omit(recordedRun, ["events_truncated"]).entries,
|
|
35
|
+
directory: text,
|
|
36
|
+
event_count: count,
|
|
37
|
+
events,
|
|
38
|
+
});
|
|
39
|
+
export const runHit = v.strictObject({
|
|
40
|
+
...v.omit(recordedRun, ["directory", "event_count"]).entries,
|
|
41
|
+
events,
|
|
42
|
+
events_truncated: v.boolean(),
|
|
43
|
+
});
|
|
44
|
+
export const runLocation = v.strictObject({ path: text });
|
|
@@ -14,3 +14,7 @@ export declare const savedSearch: v.StrictObjectSchema<{
|
|
|
14
14
|
readonly last_run_at: v.NullableSchema<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`">]>, undefined>;
|
|
15
15
|
readonly runs: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
16
16
|
}, undefined>;
|
|
17
|
+
/** The number of unnamed history rows removed; saved searches remain. */
|
|
18
|
+
export declare const searchHistoryClear: v.StrictObjectSchema<{
|
|
19
|
+
readonly cleared: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
20
|
+
}, undefined>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const sendAttempt: v.StrictObjectSchema<{
|
|
3
|
+
readonly 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`">]>;
|
|
4
|
+
readonly profile: v.StringSchema<undefined>;
|
|
5
|
+
readonly chat_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
6
|
+
readonly outcome: v.PicklistSchema<["sent", "outcome_unknown", "refused", "failed", "reserved"], undefined>;
|
|
7
|
+
readonly kind: v.OptionalSchema<v.PicklistSchema<["message", "reaction", "edit", "forward", "pin", "read", "delete", "chat", "account"], undefined>, undefined>;
|
|
8
|
+
readonly action: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly people: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
+
readonly message_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
11
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly count: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
13
|
+
readonly for_everyone: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
14
|
+
readonly send_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
15
|
+
readonly operation_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
16
|
+
readonly parent_operation_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
17
|
+
readonly reply_to: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
18
|
+
readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
19
|
+
readonly send_as: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
20
|
+
readonly result_chat_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
21
|
+
readonly length: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
22
|
+
readonly attachments: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
23
|
+
readonly kind: v.PicklistSchema<["photo", "file", "video", "voice", "sticker"], undefined>;
|
|
24
|
+
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
25
|
+
}, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly scheduled_for: v.OptionalSchema<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`">]>, undefined>;
|
|
27
|
+
readonly notify: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
28
|
+
readonly origin: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly reservation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
30
|
+
readonly error_code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { count, id, text, time } from "./fields.js";
|
|
3
|
+
export const sendAttempt = v.strictObject({
|
|
4
|
+
at: time,
|
|
5
|
+
profile: text,
|
|
6
|
+
chat_id: v.nullable(id),
|
|
7
|
+
outcome: v.picklist(["sent", "outcome_unknown", "refused", "failed", "reserved"]),
|
|
8
|
+
kind: v.optional(v.picklist(["message", "reaction", "edit", "forward", "pin", "read", "delete", "chat", "account"])),
|
|
9
|
+
action: v.optional(text),
|
|
10
|
+
people: v.optional(count),
|
|
11
|
+
message_id: v.optional(id),
|
|
12
|
+
key: v.optional(text),
|
|
13
|
+
count: v.optional(count),
|
|
14
|
+
for_everyone: v.optional(v.boolean()),
|
|
15
|
+
send_id: v.optional(id),
|
|
16
|
+
operation_id: v.optional(id),
|
|
17
|
+
parent_operation_id: v.optional(id),
|
|
18
|
+
reply_to: v.optional(id),
|
|
19
|
+
thread_id: v.optional(id),
|
|
20
|
+
send_as: v.optional(id),
|
|
21
|
+
result_chat_id: v.optional(id),
|
|
22
|
+
length: v.optional(count),
|
|
23
|
+
attachments: v.optional(v.array(v.strictObject({ kind: v.picklist(["photo", "file", "video", "voice", "sticker"]), bytes: count }))),
|
|
24
|
+
scheduled_for: v.optional(time),
|
|
25
|
+
notify: v.optional(v.boolean()),
|
|
26
|
+
origin: v.optional(text),
|
|
27
|
+
reservation: v.optional(id),
|
|
28
|
+
error_code: v.optional(text),
|
|
29
|
+
});
|