@wirecat/cli-core 0.657.0 → 0.659.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 +35 -0
- package/dist/background/daily-archive-timer.d.ts +1 -1
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/mcp/index.d.ts +12 -12
- package/dist/calendar/reads.d.ts +1 -0
- package/dist/calendar/reads.js +1 -1
- package/dist/cli/config-command.js +2 -9
- package/dist/cli/config-issues.js +1 -1
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/listings.d.ts +46 -0
- package/dist/cli/listings.js +188 -0
- package/dist/cli/messenger/messages-delete-command.d.ts +2 -1
- package/dist/cli/messenger/messages-delete-command.js +2 -1
- package/dist/cli/messenger/serve-relay.d.ts +1 -1
- package/dist/{cli → domain}/config-repair.d.ts +7 -0
- package/dist/{cli → domain}/config-repair.js +53 -0
- package/dist/entities/listings.d.ts +514 -0
- package/dist/entities/listings.js +154 -0
- package/dist/errors/reasons.js +4 -0
- package/dist/kit/sync-after-install.js +5 -0
- package/dist/replies/rules.d.ts +1 -1
- package/dist/replies/rules.js +1 -1
- package/dist/sends/permissions.js +5 -4
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/listings.d.ts +74 -0
- package/dist/services/listings.js +285 -0
- package/dist/services/metadata.d.ts +1 -1
- package/dist/store/index.d.ts +2 -0
- package/dist/store/index.js +2 -0
- package/dist/store/shared-config.d.ts +2 -0
- package/dist/store/shared-config.js +38 -8
- package/dist/store/sqlite/calendar-events.d.ts +10 -0
- package/dist/store/sqlite/calendar-events.js +18 -8
- package/dist/store/sqlite/document-listing.d.ts +99 -0
- package/dist/store/sqlite/document-listing.js +292 -0
- package/dist/store/sqlite/files.d.ts +2 -0
- package/dist/store/sqlite/files.js +7 -3
- package/dist/store/sqlite/meeting-listing.d.ts +108 -0
- package/dist/store/sqlite/meeting-listing.js +431 -0
- package/dist/store/store.d.ts +4 -0
- package/dist/store/store.js +6 -0
- package/package.json +1 -1
|
@@ -250,3 +250,56 @@ const serialise = (node, indent) => {
|
|
|
250
250
|
const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
|
|
251
251
|
return parts.length === 0 ? `${open}${close}` : `${open}\n${parts.join(",\n")}\n${indent}${close}`;
|
|
252
252
|
};
|
|
253
|
+
/** Fixes with one reading that a reader may make on its own; the rest change what the owner wrote, so they ask. */
|
|
254
|
+
export const SAFE_REPAIRS = new Set([
|
|
255
|
+
"byte_order_mark",
|
|
256
|
+
"comment",
|
|
257
|
+
"trailing_comma",
|
|
258
|
+
"missing_comma",
|
|
259
|
+
]);
|
|
260
|
+
const FIX_FOR = {
|
|
261
|
+
unquoted_key: (line) => `put the key on line ${line} in double quotes`,
|
|
262
|
+
single_quotes: (line) => `use double quotes for the text on line ${line}`,
|
|
263
|
+
missing_closer: (line) => `add the closing } or ] the file lacks after line ${line}, and check that nothing after it was lost`,
|
|
264
|
+
};
|
|
265
|
+
const FIX_FOR_REFUSAL = [
|
|
266
|
+
[/no comma between/, (line, before) => `add a comma after ${before} on line ${line}`],
|
|
267
|
+
[/no colon after/, (line) => `add a colon after the key on line ${line}`],
|
|
268
|
+
[/comma with nothing before/, (line) => `remove the extra comma on line ${line}`],
|
|
269
|
+
[/inside a quoted text/, (line) => `close the quotes on line ${line}`],
|
|
270
|
+
[/value that is not JSON/, (line) => `put the value on line ${line} in double quotes`],
|
|
271
|
+
[/key appears twice/, (line) => `keep one of the two keys named on line ${line}; the file holds both`],
|
|
272
|
+
];
|
|
273
|
+
/** A line as an error may show it: keys, punctuation and true, false or null stay; any other value becomes "…". */
|
|
274
|
+
const shown = (line) => line
|
|
275
|
+
.trim()
|
|
276
|
+
.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[^\s"',:{}[\]]+)(\s*:)?/g, (token, _value, key) => key || /^(true|false|null)$/.test(token) ? token : '"…"');
|
|
277
|
+
/**
|
|
278
|
+
* Why `text` is not JSON, for a person: the line and column, the line around it, and the likely fix. Only what a
|
|
279
|
+
* reader may not mend on its own (`SAFE_REPAIRS`) reaches here.
|
|
280
|
+
*/
|
|
281
|
+
export const explainBrokenJson = (text, result) => {
|
|
282
|
+
const lines = text.replace(/^\uFEFF/u, "").split(/\r?\n/);
|
|
283
|
+
const around = (line) => {
|
|
284
|
+
const near = lines[line - 1]?.trim() ? lines[line - 1] : lines[line - 2];
|
|
285
|
+
return near ? ` — near \`${shown(near)}\`` : "";
|
|
286
|
+
};
|
|
287
|
+
if (result.state === "repaired") {
|
|
288
|
+
const asked = result.fixes.find((one) => !SAFE_REPAIRS.has(one.kind)) ?? result.fixes[0];
|
|
289
|
+
if (!asked)
|
|
290
|
+
return "it is not valid JSON";
|
|
291
|
+
const fix = FIX_FOR[asked.kind]?.(asked.line);
|
|
292
|
+
return `line ${asked.line} has ${REPAIR_WORDS[asked.kind]}${around(asked.line)}${fix ? `; likely fix: ${fix}` : ""}`;
|
|
293
|
+
}
|
|
294
|
+
if (result.state === "valid")
|
|
295
|
+
return "it is valid JSON";
|
|
296
|
+
const { line, why } = result;
|
|
297
|
+
// The column counts a byte-order mark the shown line no longer has.
|
|
298
|
+
const column = line === 1 && text.charCodeAt(0) === 0xfeff ? result.column - 1 : result.column;
|
|
299
|
+
const head = (lines[line - 1] ?? "").slice(0, column - 1);
|
|
300
|
+
// The entry the column follows, not the whole line: `"tools": true`, without the `{"setup": {` before it.
|
|
301
|
+
const entry = head.slice(Math.max(head.lastIndexOf(","), head.lastIndexOf("{"), head.lastIndexOf("[")) + 1);
|
|
302
|
+
const before = shown(entry) || shown(lines[line - 2] ?? "");
|
|
303
|
+
const fix = FIX_FOR_REFUSAL.find(([pattern]) => pattern.test(why))?.[1](line, `\`${before}\``);
|
|
304
|
+
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
305
|
+
};
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/** One document of any account: a Drive file, a notes folder's file, an added source, an import's document. */
|
|
3
|
+
export declare const documentEntry: v.StrictObjectSchema<{
|
|
4
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7
|
+
readonly file_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly kind: v.PicklistSchema<readonly ["transcript", "doc", "sheet", "slides", "pdf", "docx", "xlsx", "pptx", "csv", "md", "txt", "html", "page", "image", "other"], undefined>;
|
|
9
|
+
readonly mime: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly size: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
11
|
+
readonly source: v.StrictObjectSchema<{
|
|
12
|
+
readonly provider: v.StringSchema<undefined>;
|
|
13
|
+
readonly account: v.StringSchema<undefined>;
|
|
14
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
15
|
+
readonly source: v.StringSchema<undefined>;
|
|
16
|
+
readonly label: v.StringSchema<undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
/** The folder it is in, inside its account; `null` at the top or where the source keeps no folders. */
|
|
19
|
+
readonly folder: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
21
|
+
/** Where it opens: its page at the source. */
|
|
22
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
+
/** Where it opens on this computer: a notes folder's file or the copy kept of an added file. */
|
|
24
|
+
readonly local_path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
/** When its source last changed it. */
|
|
26
|
+
readonly source_modified_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>;
|
|
27
|
+
/** When the store last wrote its copy. */
|
|
28
|
+
readonly stored_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`">]>;
|
|
29
|
+
readonly has_text: v.BooleanSchema<undefined>;
|
|
30
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
/** One document with a part of its text, its tags, the people it names and the meetings it belongs to. */
|
|
33
|
+
export declare const documentEntryDetails: v.StrictObjectSchema<{
|
|
34
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
35
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
36
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly file_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly kind: v.PicklistSchema<readonly ["transcript", "doc", "sheet", "slides", "pdf", "docx", "xlsx", "pptx", "csv", "md", "txt", "html", "page", "image", "other"], undefined>;
|
|
39
|
+
readonly mime: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly size: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
41
|
+
readonly source: v.StrictObjectSchema<{
|
|
42
|
+
readonly provider: v.StringSchema<undefined>;
|
|
43
|
+
readonly account: v.StringSchema<undefined>;
|
|
44
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
45
|
+
readonly source: v.StringSchema<undefined>;
|
|
46
|
+
readonly label: v.StringSchema<undefined>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
/** The folder it is in, inside its account; `null` at the top or where the source keeps no folders. */
|
|
49
|
+
readonly folder: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
/** Where it opens: its page at the source. */
|
|
52
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
/** Where it opens on this computer: a notes folder's file or the copy kept of an added file. */
|
|
54
|
+
readonly local_path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
/** When its source last changed it. */
|
|
56
|
+
readonly source_modified_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>;
|
|
57
|
+
/** When the store last wrote its copy. */
|
|
58
|
+
readonly stored_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`">]>;
|
|
59
|
+
readonly has_text: v.BooleanSchema<undefined>;
|
|
60
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
61
|
+
readonly text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
/** Where `text` starts in the whole text, in characters. */
|
|
63
|
+
readonly text_offset: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
64
|
+
/** The whole text's length, in characters. */
|
|
65
|
+
readonly text_length: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
66
|
+
/** More text follows `text`: read it with a larger offset. */
|
|
67
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
68
|
+
readonly extraction: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly extraction_error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly tags: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
72
|
+
readonly people: v.ArraySchema<v.StrictObjectSchema<{
|
|
73
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
74
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly kind: v.StringSchema<undefined>;
|
|
76
|
+
}, undefined>, undefined>;
|
|
77
|
+
readonly meetings: v.ArraySchema<v.StrictObjectSchema<{
|
|
78
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
79
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly 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>;
|
|
81
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
}, undefined>, undefined>;
|
|
83
|
+
readonly events: v.ArraySchema<v.StrictObjectSchema<{
|
|
84
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
85
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly 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>;
|
|
87
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
88
|
+
}, undefined>, undefined>;
|
|
89
|
+
}, undefined>;
|
|
90
|
+
/** One account holding documents, with its folders and how many documents each holds. */
|
|
91
|
+
export declare const documentSource: v.StrictObjectSchema<{
|
|
92
|
+
readonly provider: v.StringSchema<undefined>;
|
|
93
|
+
readonly account: v.StringSchema<undefined>;
|
|
94
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
95
|
+
readonly source: v.StringSchema<undefined>;
|
|
96
|
+
readonly label: v.StringSchema<undefined>;
|
|
97
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
98
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
99
|
+
/** Documents at the top of the account, in no folder. */
|
|
100
|
+
readonly loose: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
101
|
+
/** Every folder down to the depth asked, parents before children; `count` takes in the folders under it. */
|
|
102
|
+
readonly folders: v.ArraySchema<v.StrictObjectSchema<{
|
|
103
|
+
readonly path: v.StringSchema<undefined>;
|
|
104
|
+
readonly name: v.StringSchema<undefined>;
|
|
105
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
106
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
107
|
+
}, undefined>, undefined>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
/** One real meeting, call or calendar event: a calendar's event and its Zoom or Meet record are one row. */
|
|
110
|
+
export declare const meetingEntry: v.StrictObjectSchema<{
|
|
111
|
+
/** `event:<id>` when a calendar or a meeting service's record made an event of it, else `meeting:<account>/<id>`. */
|
|
112
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
113
|
+
readonly kind: v.PicklistSchema<readonly ["meeting", "call", "event"], undefined>;
|
|
114
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
115
|
+
readonly started_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>;
|
|
116
|
+
readonly ended_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>;
|
|
117
|
+
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
118
|
+
readonly all_day: v.BooleanSchema<undefined>;
|
|
119
|
+
/** The zone its calendar or meeting service gave it, which may differ from the computer's. */
|
|
120
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
121
|
+
readonly status: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
122
|
+
/** The link that joins it: a calendar copy's, else its first meeting's. */
|
|
123
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
124
|
+
/** Every distinct join link, with the source that gave it, so each opens in its own app. */
|
|
125
|
+
readonly links: v.ArraySchema<v.StrictObjectSchema<{
|
|
126
|
+
readonly source: v.StringSchema<undefined>;
|
|
127
|
+
readonly url: v.StringSchema<undefined>;
|
|
128
|
+
}, undefined>, undefined>;
|
|
129
|
+
readonly sources: v.ArraySchema<v.StrictObjectSchema<{
|
|
130
|
+
readonly provider: v.StringSchema<undefined>;
|
|
131
|
+
readonly account: v.StringSchema<undefined>;
|
|
132
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
133
|
+
readonly source: v.StringSchema<undefined>;
|
|
134
|
+
readonly label: v.StringSchema<undefined>;
|
|
135
|
+
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
136
|
+
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
138
|
+
}, undefined>, undefined>;
|
|
139
|
+
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
140
|
+
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
141
|
+
readonly participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
142
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
145
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
146
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
147
|
+
}, undefined>, undefined>;
|
|
148
|
+
readonly organizer: v.BooleanSchema<undefined>;
|
|
149
|
+
}, undefined>, undefined>;
|
|
150
|
+
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
151
|
+
readonly has_recording: v.BooleanSchema<undefined>;
|
|
152
|
+
readonly has_transcript: v.BooleanSchema<undefined>;
|
|
153
|
+
readonly has_summary: v.BooleanSchema<undefined>;
|
|
154
|
+
readonly documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
155
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
156
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
157
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
158
|
+
}, undefined>, undefined>;
|
|
159
|
+
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
160
|
+
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
161
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
/** One meeting row with its transcript lines, summaries, findings batches and the calendar's text. */
|
|
164
|
+
export declare const meetingEntryDetails: v.StrictObjectSchema<{
|
|
165
|
+
/** `event:<id>` when a calendar or a meeting service's record made an event of it, else `meeting:<account>/<id>`. */
|
|
166
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
167
|
+
readonly kind: v.PicklistSchema<readonly ["meeting", "call", "event"], undefined>;
|
|
168
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
+
readonly started_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>;
|
|
170
|
+
readonly ended_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>;
|
|
171
|
+
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
172
|
+
readonly all_day: v.BooleanSchema<undefined>;
|
|
173
|
+
/** The zone its calendar or meeting service gave it, which may differ from the computer's. */
|
|
174
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
175
|
+
readonly status: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
176
|
+
/** The link that joins it: a calendar copy's, else its first meeting's. */
|
|
177
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
178
|
+
/** Every distinct join link, with the source that gave it, so each opens in its own app. */
|
|
179
|
+
readonly links: v.ArraySchema<v.StrictObjectSchema<{
|
|
180
|
+
readonly source: v.StringSchema<undefined>;
|
|
181
|
+
readonly url: v.StringSchema<undefined>;
|
|
182
|
+
}, undefined>, undefined>;
|
|
183
|
+
readonly sources: v.ArraySchema<v.StrictObjectSchema<{
|
|
184
|
+
readonly provider: v.StringSchema<undefined>;
|
|
185
|
+
readonly account: v.StringSchema<undefined>;
|
|
186
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
187
|
+
readonly source: v.StringSchema<undefined>;
|
|
188
|
+
readonly label: v.StringSchema<undefined>;
|
|
189
|
+
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
190
|
+
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
191
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
192
|
+
}, undefined>, undefined>;
|
|
193
|
+
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
194
|
+
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
195
|
+
readonly participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
196
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
198
|
+
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
199
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
200
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
201
|
+
}, undefined>, undefined>;
|
|
202
|
+
readonly organizer: v.BooleanSchema<undefined>;
|
|
203
|
+
}, undefined>, undefined>;
|
|
204
|
+
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
205
|
+
readonly has_recording: v.BooleanSchema<undefined>;
|
|
206
|
+
readonly has_transcript: v.BooleanSchema<undefined>;
|
|
207
|
+
readonly has_summary: v.BooleanSchema<undefined>;
|
|
208
|
+
readonly documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
209
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
210
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
211
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
212
|
+
}, undefined>, undefined>;
|
|
213
|
+
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
214
|
+
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
215
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
216
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
217
|
+
readonly location: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
218
|
+
readonly summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
219
|
+
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
220
|
+
readonly source: v.StringSchema<undefined>;
|
|
221
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
222
|
+
readonly overview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
223
|
+
readonly sections: v.ArraySchema<v.StrictObjectSchema<{
|
|
224
|
+
readonly label: v.StringSchema<undefined>;
|
|
225
|
+
readonly text: v.StringSchema<undefined>;
|
|
226
|
+
}, undefined>, undefined>;
|
|
227
|
+
readonly next_steps: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
228
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
}, undefined>, undefined>;
|
|
230
|
+
readonly transcript: v.NullableSchema<v.StrictObjectSchema<{
|
|
231
|
+
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
232
|
+
readonly source: v.StringSchema<undefined>;
|
|
233
|
+
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
234
|
+
/** Lines from this position, as `--offset` asked. */
|
|
235
|
+
readonly offset: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
236
|
+
readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
237
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
238
|
+
readonly lines: v.ArraySchema<v.StrictObjectSchema<{
|
|
239
|
+
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
240
|
+
readonly offset_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
241
|
+
readonly end_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
242
|
+
readonly speaker: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
243
|
+
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
244
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
245
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
246
|
+
}, undefined>, undefined>;
|
|
247
|
+
readonly text: v.StringSchema<undefined>;
|
|
248
|
+
}, undefined>, undefined>;
|
|
249
|
+
}, undefined>, undefined>;
|
|
250
|
+
/** `findings` cite the row's meetings; `pending` of them wait for the owner's decision. */
|
|
251
|
+
readonly findings: v.ArraySchema<v.StrictObjectSchema<{
|
|
252
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
253
|
+
readonly status: v.PicklistSchema<["proposed", "reviewed"], undefined>;
|
|
254
|
+
readonly findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
255
|
+
readonly pending: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
256
|
+
}, undefined>, undefined>;
|
|
257
|
+
}, undefined>;
|
|
258
|
+
/**
|
|
259
|
+
* The listings' answers by entity name. Not in `ENTITIES`: that registry's inferred type is at the compiler's size
|
|
260
|
+
* limit, so a CLI registers these as its own (memo's `entityFields`).
|
|
261
|
+
*/
|
|
262
|
+
export declare const LISTING_ENTITIES: {
|
|
263
|
+
readonly document_entry: v.StrictObjectSchema<{
|
|
264
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
265
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
266
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
267
|
+
readonly file_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
268
|
+
readonly kind: v.PicklistSchema<readonly ["transcript", "doc", "sheet", "slides", "pdf", "docx", "xlsx", "pptx", "csv", "md", "txt", "html", "page", "image", "other"], undefined>;
|
|
269
|
+
readonly mime: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
270
|
+
readonly size: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
271
|
+
readonly source: v.StrictObjectSchema<{
|
|
272
|
+
readonly provider: v.StringSchema<undefined>;
|
|
273
|
+
readonly account: v.StringSchema<undefined>;
|
|
274
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
275
|
+
readonly source: v.StringSchema<undefined>;
|
|
276
|
+
readonly label: v.StringSchema<undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
/** The folder it is in, inside its account; `null` at the top or where the source keeps no folders. */
|
|
279
|
+
readonly folder: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
280
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
281
|
+
/** Where it opens: its page at the source. */
|
|
282
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
283
|
+
/** Where it opens on this computer: a notes folder's file or the copy kept of an added file. */
|
|
284
|
+
readonly local_path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
285
|
+
/** When its source last changed it. */
|
|
286
|
+
readonly source_modified_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>;
|
|
287
|
+
/** When the store last wrote its copy. */
|
|
288
|
+
readonly stored_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`">]>;
|
|
289
|
+
readonly has_text: v.BooleanSchema<undefined>;
|
|
290
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
291
|
+
}, undefined>;
|
|
292
|
+
readonly document_entry_details: v.StrictObjectSchema<{
|
|
293
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
294
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
295
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
296
|
+
readonly file_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
297
|
+
readonly kind: v.PicklistSchema<readonly ["transcript", "doc", "sheet", "slides", "pdf", "docx", "xlsx", "pptx", "csv", "md", "txt", "html", "page", "image", "other"], undefined>;
|
|
298
|
+
readonly mime: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
299
|
+
readonly size: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
300
|
+
readonly source: v.StrictObjectSchema<{
|
|
301
|
+
readonly provider: v.StringSchema<undefined>;
|
|
302
|
+
readonly account: v.StringSchema<undefined>;
|
|
303
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
304
|
+
readonly source: v.StringSchema<undefined>;
|
|
305
|
+
readonly label: v.StringSchema<undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
/** The folder it is in, inside its account; `null` at the top or where the source keeps no folders. */
|
|
308
|
+
readonly folder: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
309
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
310
|
+
/** Where it opens: its page at the source. */
|
|
311
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
312
|
+
/** Where it opens on this computer: a notes folder's file or the copy kept of an added file. */
|
|
313
|
+
readonly local_path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
314
|
+
/** When its source last changed it. */
|
|
315
|
+
readonly source_modified_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>;
|
|
316
|
+
/** When the store last wrote its copy. */
|
|
317
|
+
readonly stored_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`">]>;
|
|
318
|
+
readonly has_text: v.BooleanSchema<undefined>;
|
|
319
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
320
|
+
readonly text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
321
|
+
/** Where `text` starts in the whole text, in characters. */
|
|
322
|
+
readonly text_offset: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
323
|
+
/** The whole text's length, in characters. */
|
|
324
|
+
readonly text_length: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
325
|
+
/** More text follows `text`: read it with a larger offset. */
|
|
326
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
327
|
+
readonly extraction: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
328
|
+
readonly extraction_error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
329
|
+
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
330
|
+
readonly tags: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
331
|
+
readonly people: v.ArraySchema<v.StrictObjectSchema<{
|
|
332
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
333
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
334
|
+
readonly kind: v.StringSchema<undefined>;
|
|
335
|
+
}, undefined>, undefined>;
|
|
336
|
+
readonly meetings: v.ArraySchema<v.StrictObjectSchema<{
|
|
337
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
338
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
339
|
+
readonly 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>;
|
|
340
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
}, undefined>, undefined>;
|
|
342
|
+
readonly events: v.ArraySchema<v.StrictObjectSchema<{
|
|
343
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
344
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
345
|
+
readonly 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>;
|
|
346
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
347
|
+
}, undefined>, undefined>;
|
|
348
|
+
}, undefined>;
|
|
349
|
+
readonly document_source: v.StrictObjectSchema<{
|
|
350
|
+
readonly provider: v.StringSchema<undefined>;
|
|
351
|
+
readonly account: v.StringSchema<undefined>;
|
|
352
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
353
|
+
readonly source: v.StringSchema<undefined>;
|
|
354
|
+
readonly label: v.StringSchema<undefined>;
|
|
355
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
356
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
357
|
+
/** Documents at the top of the account, in no folder. */
|
|
358
|
+
readonly loose: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
359
|
+
/** Every folder down to the depth asked, parents before children; `count` takes in the folders under it. */
|
|
360
|
+
readonly folders: v.ArraySchema<v.StrictObjectSchema<{
|
|
361
|
+
readonly path: v.StringSchema<undefined>;
|
|
362
|
+
readonly name: v.StringSchema<undefined>;
|
|
363
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
364
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
365
|
+
}, undefined>, undefined>;
|
|
366
|
+
}, undefined>;
|
|
367
|
+
readonly meeting_entry: v.StrictObjectSchema<{
|
|
368
|
+
/** `event:<id>` when a calendar or a meeting service's record made an event of it, else `meeting:<account>/<id>`. */
|
|
369
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
370
|
+
readonly kind: v.PicklistSchema<readonly ["meeting", "call", "event"], undefined>;
|
|
371
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
372
|
+
readonly started_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>;
|
|
373
|
+
readonly ended_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>;
|
|
374
|
+
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
375
|
+
readonly all_day: v.BooleanSchema<undefined>;
|
|
376
|
+
/** The zone its calendar or meeting service gave it, which may differ from the computer's. */
|
|
377
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
378
|
+
readonly status: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
379
|
+
/** The link that joins it: a calendar copy's, else its first meeting's. */
|
|
380
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
381
|
+
/** Every distinct join link, with the source that gave it, so each opens in its own app. */
|
|
382
|
+
readonly links: v.ArraySchema<v.StrictObjectSchema<{
|
|
383
|
+
readonly source: v.StringSchema<undefined>;
|
|
384
|
+
readonly url: v.StringSchema<undefined>;
|
|
385
|
+
}, undefined>, undefined>;
|
|
386
|
+
readonly sources: v.ArraySchema<v.StrictObjectSchema<{
|
|
387
|
+
readonly provider: v.StringSchema<undefined>;
|
|
388
|
+
readonly account: v.StringSchema<undefined>;
|
|
389
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
390
|
+
readonly source: v.StringSchema<undefined>;
|
|
391
|
+
readonly label: v.StringSchema<undefined>;
|
|
392
|
+
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
393
|
+
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
394
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
395
|
+
}, undefined>, undefined>;
|
|
396
|
+
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
397
|
+
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
398
|
+
readonly participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
399
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
400
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
401
|
+
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
402
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
403
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
}, undefined>, undefined>;
|
|
405
|
+
readonly organizer: v.BooleanSchema<undefined>;
|
|
406
|
+
}, undefined>, undefined>;
|
|
407
|
+
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
408
|
+
readonly has_recording: v.BooleanSchema<undefined>;
|
|
409
|
+
readonly has_transcript: v.BooleanSchema<undefined>;
|
|
410
|
+
readonly has_summary: v.BooleanSchema<undefined>;
|
|
411
|
+
readonly documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
412
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
413
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
414
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
415
|
+
}, undefined>, undefined>;
|
|
416
|
+
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
417
|
+
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
418
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
419
|
+
}, undefined>;
|
|
420
|
+
readonly meeting_entry_details: v.StrictObjectSchema<{
|
|
421
|
+
/** `event:<id>` when a calendar or a meeting service's record made an event of it, else `meeting:<account>/<id>`. */
|
|
422
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
423
|
+
readonly kind: v.PicklistSchema<readonly ["meeting", "call", "event"], undefined>;
|
|
424
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
425
|
+
readonly started_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>;
|
|
426
|
+
readonly ended_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>;
|
|
427
|
+
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
428
|
+
readonly all_day: v.BooleanSchema<undefined>;
|
|
429
|
+
/** The zone its calendar or meeting service gave it, which may differ from the computer's. */
|
|
430
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
431
|
+
readonly status: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
432
|
+
/** The link that joins it: a calendar copy's, else its first meeting's. */
|
|
433
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
434
|
+
/** Every distinct join link, with the source that gave it, so each opens in its own app. */
|
|
435
|
+
readonly links: v.ArraySchema<v.StrictObjectSchema<{
|
|
436
|
+
readonly source: v.StringSchema<undefined>;
|
|
437
|
+
readonly url: v.StringSchema<undefined>;
|
|
438
|
+
}, undefined>, undefined>;
|
|
439
|
+
readonly sources: v.ArraySchema<v.StrictObjectSchema<{
|
|
440
|
+
readonly provider: v.StringSchema<undefined>;
|
|
441
|
+
readonly account: v.StringSchema<undefined>;
|
|
442
|
+
/** `provider:account`: what a list's `source:` term takes. */
|
|
443
|
+
readonly source: v.StringSchema<undefined>;
|
|
444
|
+
readonly label: v.StringSchema<undefined>;
|
|
445
|
+
readonly via: v.PicklistSchema<["calendar", "meeting"], undefined>;
|
|
446
|
+
readonly calendar: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
447
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
448
|
+
}, undefined>, undefined>;
|
|
449
|
+
/** The meeting records on this row, `meeting:<account>/<id>`. */
|
|
450
|
+
readonly meetings: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
451
|
+
readonly participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
452
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
453
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
454
|
+
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
455
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
456
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
457
|
+
}, undefined>, undefined>;
|
|
458
|
+
readonly organizer: v.BooleanSchema<undefined>;
|
|
459
|
+
}, undefined>, undefined>;
|
|
460
|
+
readonly participants_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
461
|
+
readonly has_recording: v.BooleanSchema<undefined>;
|
|
462
|
+
readonly has_transcript: v.BooleanSchema<undefined>;
|
|
463
|
+
readonly has_summary: v.BooleanSchema<undefined>;
|
|
464
|
+
readonly documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
465
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
466
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
467
|
+
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
468
|
+
}, undefined>, undefined>;
|
|
469
|
+
/** Findings waiting for the owner (`meetings actions`) that cite one of its meetings. */
|
|
470
|
+
readonly pending_findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
471
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
472
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
473
|
+
readonly location: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
474
|
+
readonly summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
475
|
+
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
476
|
+
readonly source: v.StringSchema<undefined>;
|
|
477
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
478
|
+
readonly overview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
479
|
+
readonly sections: v.ArraySchema<v.StrictObjectSchema<{
|
|
480
|
+
readonly label: v.StringSchema<undefined>;
|
|
481
|
+
readonly text: v.StringSchema<undefined>;
|
|
482
|
+
}, undefined>, undefined>;
|
|
483
|
+
readonly next_steps: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
484
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
485
|
+
}, undefined>, undefined>;
|
|
486
|
+
readonly transcript: v.NullableSchema<v.StrictObjectSchema<{
|
|
487
|
+
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
488
|
+
readonly source: v.StringSchema<undefined>;
|
|
489
|
+
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
490
|
+
/** Lines from this position, as `--offset` asked. */
|
|
491
|
+
readonly offset: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
492
|
+
readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
493
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
494
|
+
readonly lines: v.ArraySchema<v.StrictObjectSchema<{
|
|
495
|
+
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
496
|
+
readonly offset_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
497
|
+
readonly end_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
498
|
+
readonly speaker: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
499
|
+
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
500
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
501
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
502
|
+
}, undefined>, undefined>;
|
|
503
|
+
readonly text: v.StringSchema<undefined>;
|
|
504
|
+
}, undefined>, undefined>;
|
|
505
|
+
}, undefined>, undefined>;
|
|
506
|
+
/** `findings` cite the row's meetings; `pending` of them wait for the owner's decision. */
|
|
507
|
+
readonly findings: v.ArraySchema<v.StrictObjectSchema<{
|
|
508
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
509
|
+
readonly status: v.PicklistSchema<["proposed", "reviewed"], undefined>;
|
|
510
|
+
readonly findings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
511
|
+
readonly pending: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
512
|
+
}, undefined>, undefined>;
|
|
513
|
+
}, undefined>;
|
|
514
|
+
};
|