@wirecat/cli-core 0.400.0 → 0.402.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 +39 -0
- package/README.md +1 -1
- package/dist/cli/bot/api.js +5 -2
- package/dist/cli/bot/store.js +1 -1
- package/dist/cli/config-command.js +13 -7
- package/dist/cli/context.d.ts +2 -0
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +2 -1
- package/dist/cli/meeting-evidence-answer.d.ts +46 -0
- package/dist/cli/meeting-evidence-answer.js +22 -0
- package/dist/cli/meeting-preparation-answer.js +1 -13
- package/dist/cli/messenger/account-sessions-command.js +0 -2
- package/dist/cli/messenger/archive-commands.js +1 -1
- package/dist/cli/messenger/doctor-command.js +0 -1
- package/dist/cli/messenger/message-writes.d.ts +192 -2
- package/dist/cli/messenger/message-writes.js +6 -2
- package/dist/cli/messenger/messages-send-command.js +9 -6
- package/dist/cli/messenger/models-command.js +0 -3
- package/dist/cli/messenger/records-command.js +0 -2
- package/dist/cli/messenger/review.js +1 -1
- package/dist/cli/messenger/schedule-command.js +2 -2
- package/dist/cli/messenger/search-answers.js +2 -0
- package/dist/cli/messenger/server-command.js +0 -3
- package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
- package/dist/cli/messenger/store-maintenance-command.js +7 -7
- package/dist/cli/messenger/stored.js +4 -1
- package/dist/cli/messenger/tasks-command.js +10 -6
- package/dist/cli/program.js +5 -1
- package/dist/documents/index.d.ts +1 -0
- package/dist/documents/index.js +1 -0
- package/dist/entities/hit.d.ts +4 -0
- package/dist/entities/hit.js +4 -0
- package/dist/entities/index.d.ts +285 -0
- package/dist/entities/index.js +5 -1
- package/dist/entities/meeting-evidence.d.ts +86 -0
- package/dist/entities/meeting-evidence.js +25 -0
- package/dist/entities/meeting-preparation-parts.d.ts +14 -0
- package/dist/entities/meeting-preparation-parts.js +15 -13
- package/dist/entities/meeting.d.ts +1 -1
- package/dist/entities/meeting.js +1 -1
- package/dist/entities/message-write.d.ts +187 -0
- package/dist/entities/message-write.js +2 -0
- package/dist/errors/reasons.js +2 -0
- package/dist/mcp/agent.js +12 -6
- package/dist/meetings/cli/index.js +3 -1
- package/dist/meetings/index.d.ts +1 -1
- package/dist/meetings/index.js +1 -1
- package/dist/meetings/mcp/index.d.ts +15 -15
- package/dist/meetings/read-answers.d.ts +18 -0
- package/dist/meetings/read-answers.js +30 -0
- package/dist/ports/messenger.d.ts +10 -1
- package/dist/search/dictionary.d.ts +20 -0
- package/dist/search/dictionary.js +106 -0
- package/dist/sends/guard.d.ts +1 -1
- package/dist/sends/guard.js +9 -5
- package/dist/sends/journal.d.ts +1 -1
- package/dist/sends/permissions.d.ts +10 -1
- package/dist/sends/permissions.js +43 -1
- package/dist/sends/upload.d.ts +4 -4
- package/dist/sends/upload.js +24 -20
- package/dist/services/documents/mirrors.d.ts +98 -0
- package/dist/services/documents/mirrors.js +144 -0
- package/dist/services/messages.js +1 -0
- package/dist/services/search-all-meetings.js +21 -8
- package/dist/services/task-rules.d.ts +1 -1
- package/dist/services/tasks.d.ts +2 -2
- package/dist/services/tasks.js +1 -1
- package/dist/store/sqlite/drizzle/bun.js +3 -3
- package/dist/store/sqlite/drizzle/bun.js.map +1 -1
- package/dist/store/sqlite/drizzle/core.js +2 -2
- package/dist/store/sqlite/drizzle/core.js.map +1 -1
- package/dist/store/sqlite/drizzle/node.js +3 -3
- package/dist/store/sqlite/drizzle/node.js.map +1 -1
- package/dist/store/sqlite/drizzle/{shared-O7CTKP45.js → shared-HKXF6HKX.js} +57 -57
- package/dist/store/sqlite/drizzle/{shared-O7CTKP45.js.map → shared-HKXF6HKX.js.map} +1 -1
- package/dist/store/sqlite/transcript-query.js +15 -5
- package/package.json +4 -2
- package/parity.json +6 -3
|
@@ -85,7 +85,6 @@ export const chatDeletionCommands = (messenger) => [
|
|
|
85
85
|
annotate(new Command("delete"), {
|
|
86
86
|
output: { entity: "chat_removal" },
|
|
87
87
|
effects: REMOTE_WRITE,
|
|
88
|
-
mcp: false,
|
|
89
88
|
examples: [`${messenger.app.command} personal chats delete "Book club"`],
|
|
90
89
|
})
|
|
91
90
|
.description("delete a chat from this account; the others in it keep it and its messages")
|
|
@@ -98,7 +97,6 @@ export const chatDeletionCommands = (messenger) => [
|
|
|
98
97
|
annotate(new Command("clear"), {
|
|
99
98
|
output: { entity: "chat_removal" },
|
|
100
99
|
effects: REMOTE_WRITE,
|
|
101
|
-
mcp: false,
|
|
102
100
|
examples: [`${messenger.app.command} personal chats clear "Book club"`],
|
|
103
101
|
})
|
|
104
102
|
.description("delete every message in a chat for this account; the others in it keep theirs")
|
|
@@ -113,7 +113,7 @@ const notes = (found, pretty, renderer) => {
|
|
|
113
113
|
renderer.note(`${chat.title ?? chat.id}: its admins are not known, so only your answers count`);
|
|
114
114
|
if (found.tasks && found.tasks.added + found.tasks.closed > 0)
|
|
115
115
|
renderer.note(`tasks: ${found.tasks.added} opened, ${found.tasks.closed} closed by the rules` +
|
|
116
|
-
(found.tasks.review > 0 ? `, ${found.tasks.review} pair(s) to review — tasks duplicates` : ""));
|
|
116
|
+
(found.tasks.review > 0 ? `, ${found.tasks.review} pair(s) to review — tasks duplicates list` : ""));
|
|
117
117
|
if (found.partial && pretty)
|
|
118
118
|
renderer.warn(PARTIAL_NOTE);
|
|
119
119
|
if (found.offline && pretty)
|
|
@@ -192,7 +192,7 @@ export const scheduleCommand = (messenger) => {
|
|
|
192
192
|
.join("\n");
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
|
-
annotate(command.command("run"), { effects: REMOTE_WRITE
|
|
195
|
+
annotate(command.command("run"), { effects: REMOTE_WRITE })
|
|
196
196
|
.description("run a schedule now, as its timer would, and wait for it")
|
|
197
197
|
.argument("<name>")
|
|
198
198
|
.action(async function (name) {
|
|
@@ -216,7 +216,7 @@ export const scheduleCommand = (messenger) => {
|
|
|
216
216
|
rmSync(file, { force: true });
|
|
217
217
|
say({ name, removed: true }, [`Removed ${name}.`]);
|
|
218
218
|
});
|
|
219
|
-
annotate(command.command("exec"), { effects: REMOTE_WRITE
|
|
219
|
+
annotate(command.command("exec"), { effects: REMOTE_WRITE })
|
|
220
220
|
.description("what a timer runs, given the schedule's file; to run one by hand, use run")
|
|
221
221
|
.argument("<file>")
|
|
222
222
|
.action(async function (file) {
|
|
@@ -185,7 +185,6 @@ export const serverCommand = (messenger, options = {}) => {
|
|
|
185
185
|
const withIdle = (sub) => options.idle ? sub.option("--idle <duration>", "stop after this long with nobody using it — 15m, 1h") : sub;
|
|
186
186
|
withIdle(destroysNothing(annotate(command.command("start"), {
|
|
187
187
|
effects: LOCAL_WRITE,
|
|
188
|
-
mcp: false,
|
|
189
188
|
examples: [`${app.command} personal server start`],
|
|
190
189
|
}))
|
|
191
190
|
.summary("start this profile's background server")
|
|
@@ -194,7 +193,6 @@ export const serverCommand = (messenger, options = {}) => {
|
|
|
194
193
|
});
|
|
195
194
|
destroysNothing(annotate(command.command("stop"), {
|
|
196
195
|
effects: LOCAL_WRITE,
|
|
197
|
-
mcp: false,
|
|
198
196
|
examples: [`${app.command} personal server stop`],
|
|
199
197
|
}))
|
|
200
198
|
.description("stop this profile's serve — through the unit if it runs under one")
|
|
@@ -202,7 +200,6 @@ export const serverCommand = (messenger, options = {}) => {
|
|
|
202
200
|
await stop(prepare(this));
|
|
203
201
|
});
|
|
204
202
|
withIdle(destroysNothing(annotate(command.command("restart"), {
|
|
205
|
-
mcp: false,
|
|
206
203
|
effects: LOCAL_WRITE,
|
|
207
204
|
examples: [`${app.command} personal server restart`],
|
|
208
205
|
})).description("stop it and start it again")).action(async function () {
|
|
@@ -2,9 +2,9 @@ import { Command } from "commander";
|
|
|
2
2
|
import type { Messenger } from "./context.js";
|
|
3
3
|
/** `doctor`'s short summary of the store. Must answer for a broken file, so an error is a field. */
|
|
4
4
|
export declare const storeSummary: (env: NodeJS.ProcessEnv) => Promise<{
|
|
5
|
-
error?: undefined;
|
|
6
5
|
path: string;
|
|
7
6
|
exists: boolean;
|
|
7
|
+
error?: undefined;
|
|
8
8
|
} | {
|
|
9
9
|
path: string;
|
|
10
10
|
exists: boolean;
|
|
@@ -92,7 +92,7 @@ const refuseWhileServing = (command, messenger) => {
|
|
|
92
92
|
throw new CliError("validation_error", `${messenger.app.command} serve is running for ${serving.join(", ")} — ${serving.map((profile) => `\`${messenger.app.command} ${profile} server stop\``).join(", ")} first`);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
const repairCommand = (messenger) => annotate(new Command("repair"), { output: { entity: "store_repair" }, effects: LOCAL_WRITE
|
|
95
|
+
const repairCommand = (messenger) => annotate(new Command("repair"), { output: { entity: "store_repair" }, effects: LOCAL_WRITE })
|
|
96
96
|
.summary("repair table shapes while keeping the old tables")
|
|
97
97
|
.description("bring every table to this build's shape, deleting nothing: a table of the wrong shape is kept as a copy beside a new one")
|
|
98
98
|
.option("--dry-run", "say what it would do, and change nothing")
|
|
@@ -142,7 +142,7 @@ const notesOf = (report, command) => {
|
|
|
142
142
|
}
|
|
143
143
|
return notes;
|
|
144
144
|
};
|
|
145
|
-
const copiesCommand = () => new Command("copies").description("the tables `store repair` kept as copies").addCommand(annotate(new Command("delete"), { output: { entity: "store_copy_removal" }, effects: LOCAL_WRITE
|
|
145
|
+
const copiesCommand = () => new Command("copies").description("the tables `store repair` kept as copies").addCommand(annotate(new Command("delete"), { output: { entity: "store_copy_removal" }, effects: LOCAL_WRITE })
|
|
146
146
|
.description("delete one copy `store repair` kept, named exactly; refuses any other table")
|
|
147
147
|
.argument("<name>", "the copy's name, as `store repair` printed it")
|
|
148
148
|
.action(async function (name) {
|
|
@@ -362,7 +362,7 @@ const chatsBehind = (database) => database
|
|
|
362
362
|
held: row.held === null ? null : isoOf(row.held),
|
|
363
363
|
refreshed: isoOf(row.refreshed),
|
|
364
364
|
}));
|
|
365
|
-
const migrateCommand = (messenger) => annotate(new Command("migrate"), { output: { entity: "store_migration" }, effects: LOCAL_WRITE
|
|
365
|
+
const migrateCommand = (messenger) => annotate(new Command("migrate"), { output: { entity: "store_migration" }, effects: LOCAL_WRITE })
|
|
366
366
|
.summary("migrate an older local archive")
|
|
367
367
|
.description("bring the store up to this build's schema, then normalize, index and stem the messages and notes stored before it")
|
|
368
368
|
.action(async function () {
|
|
@@ -478,7 +478,7 @@ const vacuumInto = async (path, target) => {
|
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
const stampNow = () => new Date().toISOString().replace(/[:.]/g, "-");
|
|
481
|
-
const backupCommand = () => destroysNothing(annotate(new Command("backup"), { output: { entity: "store_backup" }, effects: LOCAL_WRITE
|
|
481
|
+
const backupCommand = () => destroysNothing(annotate(new Command("backup"), { output: { entity: "store_backup" }, effects: LOCAL_WRITE }))
|
|
482
482
|
.description("copy the store into a new file, while it is in use; never overwrites a file")
|
|
483
483
|
.argument("<file>", "the new file")
|
|
484
484
|
.option(...ENCRYPT_OPTION)
|
|
@@ -522,7 +522,7 @@ const backupCommand = () => destroysNothing(annotate(new Command("backup"), { ou
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
/** The only way back into a sealed file: the format is this tool's own. */
|
|
525
|
-
const decryptCommand = () => annotate(new Command("decrypt"), { output: { entity: "store_decrypt" }, effects: LOCAL_WRITE
|
|
525
|
+
const decryptCommand = () => annotate(new Command("decrypt"), { output: { entity: "store_decrypt" }, effects: LOCAL_WRITE })
|
|
526
526
|
.description("open a file written with --encrypt into a new file; asks for its password")
|
|
527
527
|
.argument("<file>", "a file `store backup --encrypt` or `store export --encrypt` wrote")
|
|
528
528
|
.requiredOption("--output <file>", "the new file, readable only by you")
|
|
@@ -544,7 +544,7 @@ const decryptCommand = () => annotate(new Command("decrypt"), { output: { entity
|
|
|
544
544
|
* process has the file open — it would go on writing to the file set aside — or while this CLI's
|
|
545
545
|
* `serve` runs: that opens the store on its first write, so until then it holds nothing to see.
|
|
546
546
|
*/
|
|
547
|
-
const restoreCommand = (messenger) => annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE
|
|
547
|
+
const restoreCommand = (messenger) => annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE })
|
|
548
548
|
.summary("restore a backup while keeping the current store")
|
|
549
549
|
.description("put a backup in place of the store; the store it replaces is kept beside it, never deleted")
|
|
550
550
|
.argument("<file>", "a file `store backup` wrote; one written with --encrypt asks for its password")
|
|
@@ -661,7 +661,7 @@ const quiesce = async (path, messenger, then, warn, waitMs = STORE_LOCK_WAIT_MS)
|
|
|
661
661
|
* For a store this build cannot migrate: a backup beside it, then an empty store at this build's
|
|
662
662
|
* schema. The backup is made before anything is deleted, and its path is said before the delete.
|
|
663
663
|
*/
|
|
664
|
-
const resetCommand = (messenger) => annotate(new Command("reset"), { output: { entity: "store_reset" }, effects: LOCAL_WRITE
|
|
664
|
+
const resetCommand = (messenger) => annotate(new Command("reset"), { output: { entity: "store_reset" }, effects: LOCAL_WRITE })
|
|
665
665
|
.summary("back up the local archive and replace it with an empty one")
|
|
666
666
|
.description("back the store up beside itself, then delete it and start an empty one at this build's schema; asks first, or --yes")
|
|
667
667
|
.option("--no-backup", "delete the store without backing it up first")
|
|
@@ -417,7 +417,10 @@ export const stored = (messenger, { account, store, warn, events, pending, annou
|
|
|
417
417
|
const sent = await messenger.send(chatId, text, options);
|
|
418
418
|
// A scheduled message is not in the chat yet, and it will arrive under another id.
|
|
419
419
|
if (options.at === undefined) {
|
|
420
|
-
await save("messages.send", (opened) =>
|
|
420
|
+
await save("messages.send", async (opened) => {
|
|
421
|
+
for (const message of sent.messages ?? [sent.message])
|
|
422
|
+
await saveSent(opened, account, chatId, message, { via: "send" });
|
|
423
|
+
});
|
|
421
424
|
}
|
|
422
425
|
return sent;
|
|
423
426
|
},
|
|
@@ -29,7 +29,7 @@ const line = ({ id, key, state, kind, group, createdAt, message, note }) => [
|
|
|
29
29
|
: "(not in the store)",
|
|
30
30
|
].join(" ");
|
|
31
31
|
const when = (at) => (at === null ? "—" : at.slice(0, 16).replace("T", " "));
|
|
32
|
-
const toReview = (count) => count ? `; ${count} possible duplicate pair(s) went to tasks duplicates` : "";
|
|
32
|
+
const toReview = (count) => count ? `; ${count} possible duplicate pair(s) went to tasks duplicates list` : "";
|
|
33
33
|
const suggestionLine = ({ as, by, certainty, reason }) => `close suggested: ${as} by ${by} at certainty ${certainty}${reason === null ? "" : ` — ${reason}`}; waits on the owner`;
|
|
34
34
|
const card = (task) => [
|
|
35
35
|
`${task.key} ${task.status} ${task.type} ${task.category ?? "—"} ${task.title}`,
|
|
@@ -44,7 +44,7 @@ const card = (task) => [
|
|
|
44
44
|
].join("\n");
|
|
45
45
|
const applyText = (pass, yes, tool) => yes
|
|
46
46
|
? `${pass.chat}: ${pass.messages} messages read; ${pass.added} opened, ${pass.closed} closed` +
|
|
47
|
-
(pass.review ? `; ${pass.review} may be the same job as another — ${tool} tasks duplicates` : "")
|
|
47
|
+
(pass.review ? `; ${pass.review} may be the same job as another — ${tool} tasks duplicates list` : "")
|
|
48
48
|
: [
|
|
49
49
|
`${pass.chat}: ${pass.messages} messages read; would open ${pass.tasks.length}, close ${pass.closed}`,
|
|
50
50
|
...pass.tasks.map((task) => ` ${task.kind.padEnd(8)} ${(task.category ?? "—").padEnd(13)} ${task.source}`),
|
|
@@ -224,7 +224,7 @@ export const tasksCommand = (messenger) => {
|
|
|
224
224
|
? `${linked.relations.map((one) => `${one.from} ${one.kind} ${one.to}`).join("\n")}\n`
|
|
225
225
|
: `${card(linked)}\n`);
|
|
226
226
|
if (!("relations" in linked) && linked.review && context.format === "pretty")
|
|
227
|
-
context.renderer.note(`${linked.review} possible duplicate pair(s) went to tasks duplicates`);
|
|
227
|
+
context.renderer.note(`${linked.review} possible duplicate pair(s) went to tasks duplicates list`);
|
|
228
228
|
});
|
|
229
229
|
annotate(tasks.command("show"), {
|
|
230
230
|
output: { entity: "task_card" },
|
|
@@ -266,7 +266,11 @@ export const tasksCommand = (messenger) => {
|
|
|
266
266
|
if (found.length === 0 && context.format === "pretty")
|
|
267
267
|
context.renderer.note("no open or recent task looks alike");
|
|
268
268
|
});
|
|
269
|
-
const duplicates =
|
|
269
|
+
const duplicates = tasks.command("duplicates").description("pairs of tasks that may be one job");
|
|
270
|
+
withQuery(annotate(duplicates.command("list"), {
|
|
271
|
+
effects: LOCAL_READ,
|
|
272
|
+
examples: [`${tool} tasks duplicates list --limit 10`, `${tool} tasks duplicates list decision:unsure`],
|
|
273
|
+
})
|
|
270
274
|
.summary("pairs of tasks a rule opened that may be one job, newest first")
|
|
271
275
|
.description("pairs of tasks a rule opened that may be one job, newest first, with score and reasons: merge, reject or " +
|
|
272
276
|
"defer each; decision:unsure lists the ones deferred to the owner"), TASK_PAIR_QUERY)
|
|
@@ -274,10 +278,10 @@ export const tasksCommand = (messenger) => {
|
|
|
274
278
|
.action(async function (words) {
|
|
275
279
|
const context = messengerContext(this, messenger);
|
|
276
280
|
const { limit, offset } = pageOf(context.settings);
|
|
277
|
-
const decision = queryTerms(words, TASK_PAIR_QUERY, "tasks duplicates").get("decision");
|
|
281
|
+
const decision = queryTerms(words, TASK_PAIR_QUERY, "tasks duplicates list").get("decision");
|
|
278
282
|
const rows = await context.withServices((services) => services.tasks.duplicates({ decision, limit: limit + 1, offset }));
|
|
279
283
|
const shown = rows.slice(0, limit);
|
|
280
|
-
renderAnswer(this, context, pagedList("tasks duplicates", context.settings, {
|
|
284
|
+
renderAnswer(this, context, pagedList("tasks duplicates list", context.settings, {
|
|
281
285
|
items: shown.map(snakeKeys),
|
|
282
286
|
has_more: rows.length > limit,
|
|
283
287
|
}), () => (shown.length === 0 ? "" : `${shown.map(pairLine).join("\n")}\n`));
|
package/dist/cli/program.js
CHANGED
|
@@ -11,7 +11,7 @@ import { failureContext } from "../errors/reasons.js";
|
|
|
11
11
|
import { envName, readOnlyLockOf, readOnlyRefusal } from "../ports/app.js";
|
|
12
12
|
import { recorded, wasSettled } from "../runs/recording.js";
|
|
13
13
|
import { processRun, useAsProcessRun } from "../runs/scope.js";
|
|
14
|
-
import { AUTHORITY_KEY, keyForCommand } from "../sends/permissions.js";
|
|
14
|
+
import { AUTHORITY_KEY, BOT_API_KEY, isBotApi, keyForCommand } from "../sends/permissions.js";
|
|
15
15
|
import { logParsedArgv, logVersion } from "./argv-log.js";
|
|
16
16
|
import { commandPathOf } from "./command-contract.js";
|
|
17
17
|
import { outputFor, provide } from "./context.js";
|
|
@@ -258,6 +258,10 @@ const runOnce = async (argv, definition, options) => {
|
|
|
258
258
|
throw new CliError("permission_error", `\`${command} ${path.join(" ")}\` changes what a later run may do, and this profile keeps that from agents ` +
|
|
259
259
|
`(${AUTHORITY_KEY}) — the owner turns it on in a terminal: ` +
|
|
260
260
|
`\`${command} <profile> config set${path[0] === "bot" ? " --bot" : ""} permissions.${AUTHORITY_KEY} allow\``, { permission: AUTHORITY_KEY, sent: false });
|
|
261
|
+
if (options.agent && options.agent.botApi !== true && isBotApi(path))
|
|
262
|
+
throw new CliError("permission_error", `\`${command} ${path.join(" ")}\` calls the Bot API directly, past the send guard and the recipient list, ` +
|
|
263
|
+
`and this profile keeps that from agents (${BOT_API_KEY}) — the owner turns it on in a terminal: ` +
|
|
264
|
+
`\`${command} <profile> config set --bot permissions.${BOT_API_KEY} allow\``, { permission: BOT_API_KEY, sent: false });
|
|
261
265
|
const { lifetime, cooperative: stopsAtItsPace } = metaOf(action);
|
|
262
266
|
const persistent = lifetime === "persistent";
|
|
263
267
|
listens = persistent;
|
|
@@ -3,6 +3,7 @@ export { type Complete, extractMemories } from "../services/documents/extraction
|
|
|
3
3
|
export { documentIngestion, type IngestionOptions } from "../services/documents/ingestion.js";
|
|
4
4
|
export { type DocumentKnowledge, documentKnowledge } from "../services/documents/knowledge.js";
|
|
5
5
|
export { blocksMarkdown, inlineMarkdown, spliceMarkdown } from "../services/documents/markdown-splice.js";
|
|
6
|
+
export { conflictReport, fileMirrorState, type Mirror, type MirrorSyncOptions, mirrorId, mirrorStatus, syncMirrors, } from "../services/documents/mirrors.js";
|
|
6
7
|
export type { SyncOptions } from "../services/documents/ports.js";
|
|
7
8
|
export { extractDocumentMemories, type ImportedSource, type ProposalOptions } from "../services/documents/proposals.js";
|
|
8
9
|
export { type PushConflict, type PushOptions, type PushResult, planPush, pushDocuments, scanLocal, } from "../services/documents/push.js";
|
package/dist/documents/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { extractMemories } from "../services/documents/extraction.js";
|
|
|
3
3
|
export { documentIngestion } from "../services/documents/ingestion.js";
|
|
4
4
|
export { documentKnowledge } from "../services/documents/knowledge.js";
|
|
5
5
|
export { blocksMarkdown, inlineMarkdown, spliceMarkdown } from "../services/documents/markdown-splice.js";
|
|
6
|
+
export { conflictReport, fileMirrorState, mirrorId, mirrorStatus, syncMirrors, } from "../services/documents/mirrors.js";
|
|
6
7
|
export { extractDocumentMemories } from "../services/documents/proposals.js";
|
|
7
8
|
export { planPush, pushDocuments, scanLocal, } from "../services/documents/push.js";
|
|
8
9
|
export { syncDocuments } from "../services/documents/sync.js";
|
package/dist/entities/hit.d.ts
CHANGED
|
@@ -18,4 +18,8 @@ export declare const hit: v.StrictObjectSchema<{
|
|
|
18
18
|
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["title", "words", "meaning"], undefined>, undefined>, undefined>;
|
|
19
19
|
/** How far into the meeting the passage is. */
|
|
20
20
|
readonly offset_ms: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
21
|
+
/** A meeting passage's place: its transcript, chat or summary. */
|
|
22
|
+
readonly scope: v.OptionalSchema<v.PicklistSchema<["transcript", "chat", "summary"], undefined>, undefined>;
|
|
23
|
+
/** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
|
|
24
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
21
25
|
}, undefined>;
|
package/dist/entities/hit.js
CHANGED
|
@@ -19,4 +19,8 @@ export const hit = v.strictObject({
|
|
|
19
19
|
found_by: v.optional(v.array(v.picklist(["title", "words", "meaning"]))),
|
|
20
20
|
/** How far into the meeting the passage is. */
|
|
21
21
|
offset_ms: v.optional(v.nullable(count)),
|
|
22
|
+
/** A meeting passage's place: its transcript, chat or summary. */
|
|
23
|
+
scope: v.optional(v.picklist(["transcript", "chat", "summary"])),
|
|
24
|
+
/** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
|
|
25
|
+
id: v.optional(v.pipe(v.string(), v.minLength(1))),
|
|
22
26
|
});
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -2367,6 +2367,192 @@ export declare const ENTITIES: {
|
|
|
2367
2367
|
}, undefined>, undefined>;
|
|
2368
2368
|
readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2369
2369
|
}, undefined>;
|
|
2370
|
+
readonly messages: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2371
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
2372
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2373
|
+
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2374
|
+
readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2375
|
+
readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2376
|
+
readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2377
|
+
readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
2378
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2379
|
+
readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2380
|
+
readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2381
|
+
readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
2382
|
+
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`">]>;
|
|
2383
|
+
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>;
|
|
2384
|
+
readonly text: v.StringSchema<undefined>;
|
|
2385
|
+
readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2386
|
+
readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2387
|
+
readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2388
|
+
readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
|
|
2389
|
+
readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2390
|
+
readonly match: v.OptionalSchema<v.PicklistSchema<["words", "beginnings", "corrected"], undefined>, undefined>;
|
|
2391
|
+
readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2392
|
+
readonly from: v.StringSchema<undefined>;
|
|
2393
|
+
readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2394
|
+
}, undefined>, undefined>, undefined>;
|
|
2395
|
+
readonly found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
|
|
2396
|
+
readonly discovery: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2397
|
+
readonly coverage: v.NumberSchema<undefined>;
|
|
2398
|
+
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2399
|
+
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2400
|
+
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2401
|
+
}, undefined>, undefined>;
|
|
2402
|
+
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2403
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
2404
|
+
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`">]>;
|
|
2405
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2406
|
+
readonly text: v.StringSchema<undefined>;
|
|
2407
|
+
}, undefined>, undefined>, undefined>;
|
|
2408
|
+
readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2409
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
2410
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2411
|
+
readonly kind: v.StringSchema<undefined>;
|
|
2412
|
+
readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2413
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2414
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2415
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2416
|
+
readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2417
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2418
|
+
readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2419
|
+
readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2420
|
+
readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2421
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2422
|
+
readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2423
|
+
readonly origin: v.StringSchema<undefined>;
|
|
2424
|
+
readonly extractor: v.StringSchema<undefined>;
|
|
2425
|
+
readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
2426
|
+
readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2427
|
+
}, undefined>, undefined>;
|
|
2428
|
+
readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2429
|
+
readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2430
|
+
readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
|
|
2431
|
+
readonly text: v.StringSchema<undefined>;
|
|
2432
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2433
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2434
|
+
}, undefined>, undefined>;
|
|
2435
|
+
readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
|
|
2436
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2437
|
+
readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
2438
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2439
|
+
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>;
|
|
2440
|
+
readonly text: v.StringSchema<undefined>;
|
|
2441
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
2442
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2443
|
+
readonly kind: v.StringSchema<undefined>;
|
|
2444
|
+
readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2445
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2446
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2447
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2448
|
+
readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2449
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2450
|
+
readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2451
|
+
readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2452
|
+
readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2453
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2454
|
+
readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2455
|
+
readonly origin: v.StringSchema<undefined>;
|
|
2456
|
+
readonly extractor: v.StringSchema<undefined>;
|
|
2457
|
+
readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
2458
|
+
readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2459
|
+
}, undefined>, undefined>;
|
|
2460
|
+
readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2461
|
+
readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2462
|
+
readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
|
|
2463
|
+
readonly text: v.StringSchema<undefined>;
|
|
2464
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2465
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2466
|
+
}, undefined>, undefined>;
|
|
2467
|
+
readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2468
|
+
}, undefined>, undefined>;
|
|
2469
|
+
readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
2470
|
+
readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
|
|
2471
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2472
|
+
readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
2473
|
+
readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2474
|
+
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>;
|
|
2475
|
+
readonly text: v.StringSchema<undefined>;
|
|
2476
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
2477
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2478
|
+
readonly kind: v.StringSchema<undefined>;
|
|
2479
|
+
readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2480
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2481
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2482
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2483
|
+
readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2484
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2485
|
+
readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2486
|
+
readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
2487
|
+
readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2488
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2489
|
+
readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2490
|
+
readonly origin: v.StringSchema<undefined>;
|
|
2491
|
+
readonly extractor: v.StringSchema<undefined>;
|
|
2492
|
+
readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
2493
|
+
readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2494
|
+
}, undefined>, undefined>;
|
|
2495
|
+
readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2496
|
+
readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2497
|
+
readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
|
|
2498
|
+
readonly text: v.StringSchema<undefined>;
|
|
2499
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2500
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2501
|
+
}, undefined>, undefined>;
|
|
2502
|
+
readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2503
|
+
}, undefined>, undefined>;
|
|
2504
|
+
readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
2505
|
+
readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
2506
|
+
readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
|
|
2507
|
+
readonly counts: v.ArraySchema<v.StrictObjectSchema<{
|
|
2508
|
+
readonly reaction: v.StringSchema<undefined>;
|
|
2509
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
2510
|
+
}, undefined>, undefined>;
|
|
2511
|
+
readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2512
|
+
readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
2513
|
+
}, undefined>, undefined>, undefined>;
|
|
2514
|
+
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>;
|
|
2515
|
+
readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
2516
|
+
readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
|
|
2517
|
+
readonly email: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2518
|
+
readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2519
|
+
readonly from: v.NullableSchema<v.StrictObjectSchema<{
|
|
2520
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2521
|
+
readonly address: v.StringSchema<undefined>;
|
|
2522
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2523
|
+
}, undefined>, undefined>;
|
|
2524
|
+
readonly to: v.ArraySchema<v.StrictObjectSchema<{
|
|
2525
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2526
|
+
readonly address: v.StringSchema<undefined>;
|
|
2527
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2528
|
+
}, undefined>, undefined>;
|
|
2529
|
+
readonly cc: v.ArraySchema<v.StrictObjectSchema<{
|
|
2530
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2531
|
+
readonly address: v.StringSchema<undefined>;
|
|
2532
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2533
|
+
}, undefined>, undefined>;
|
|
2534
|
+
readonly bcc: v.ArraySchema<v.StrictObjectSchema<{
|
|
2535
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2536
|
+
readonly address: v.StringSchema<undefined>;
|
|
2537
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2538
|
+
}, undefined>, undefined>;
|
|
2539
|
+
readonly reply_addresses: v.ArraySchema<v.StrictObjectSchema<{
|
|
2540
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2541
|
+
readonly address: v.StringSchema<undefined>;
|
|
2542
|
+
readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2543
|
+
}, undefined>, undefined>;
|
|
2544
|
+
readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2545
|
+
readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
2546
|
+
readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2547
|
+
readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2548
|
+
readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
|
|
2549
|
+
readonly score: v.NumberSchema<undefined>;
|
|
2550
|
+
readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2551
|
+
readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
2552
|
+
}, undefined>, undefined>;
|
|
2553
|
+
}, undefined>, undefined>;
|
|
2554
|
+
readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2555
|
+
}, undefined>, undefined>, undefined>;
|
|
2370
2556
|
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>;
|
|
2371
2557
|
}, undefined>;
|
|
2372
2558
|
readonly message_pin: v.StrictObjectSchema<{
|
|
@@ -4257,6 +4443,8 @@ export declare const ENTITIES: {
|
|
|
4257
4443
|
readonly sender_ref: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>, undefined>;
|
|
4258
4444
|
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["title", "words", "meaning"], undefined>, undefined>, undefined>;
|
|
4259
4445
|
readonly offset_ms: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
4446
|
+
readonly scope: v.OptionalSchema<v.PicklistSchema<["transcript", "chat", "summary"], undefined>, undefined>;
|
|
4447
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
4260
4448
|
}, undefined>;
|
|
4261
4449
|
readonly document: v.StrictObjectSchema<{
|
|
4262
4450
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -5873,6 +6061,103 @@ export declare const ENTITIES: {
|
|
|
5873
6061
|
readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5874
6062
|
readonly updated_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`">]>;
|
|
5875
6063
|
}, undefined>;
|
|
6064
|
+
readonly meeting_evidence: v.StrictObjectSchema<{
|
|
6065
|
+
readonly schema_version: v.LiteralSchema<1, undefined>;
|
|
6066
|
+
readonly kind: v.LiteralSchema<"meeting", undefined>;
|
|
6067
|
+
readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
6068
|
+
readonly fingerprint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6069
|
+
readonly limits: v.StrictObjectSchema<{
|
|
6070
|
+
readonly cues: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6071
|
+
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6072
|
+
readonly max_read_bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6073
|
+
readonly max_transcript_pages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6074
|
+
}, undefined>;
|
|
6075
|
+
readonly content_bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6076
|
+
readonly coverage: v.StrictObjectSchema<{
|
|
6077
|
+
readonly provided: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6078
|
+
readonly included: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6079
|
+
readonly omitted: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
6080
|
+
readonly provided_exact: v.BooleanSchema<undefined>;
|
|
6081
|
+
readonly next_transcript_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
6082
|
+
readonly next_reference: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
6083
|
+
readonly transcript_pages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6084
|
+
readonly skipped_unavailable: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6085
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
6086
|
+
readonly truncated_by: v.NullableSchema<v.PicklistSchema<["cues", "bytes", "transcripts"], undefined>, undefined>;
|
|
6087
|
+
readonly input: v.LiteralSchema<"bounded-meeting-pages", undefined>;
|
|
6088
|
+
readonly archive_completeness: v.LiteralSchema<"unknown", undefined>;
|
|
6089
|
+
}, undefined>;
|
|
6090
|
+
readonly items: v.ArraySchema<v.StrictObjectSchema<{
|
|
6091
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
6092
|
+
readonly fingerprint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6093
|
+
readonly transcript_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6094
|
+
readonly content_hash: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6095
|
+
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6096
|
+
readonly offset_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6097
|
+
readonly end_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6098
|
+
readonly speaker_participant_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
6099
|
+
readonly speaker_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6100
|
+
readonly text: v.StringSchema<undefined>;
|
|
6101
|
+
readonly revision: v.PicklistSchema<["current", "superseded"], undefined>;
|
|
6102
|
+
}, undefined>, undefined>;
|
|
6103
|
+
}, undefined>;
|
|
6104
|
+
readonly meeting_person_context: v.StrictObjectSchema<{
|
|
6105
|
+
readonly person: v.StrictObjectSchema<{
|
|
6106
|
+
readonly uid: v.StringSchema<undefined>;
|
|
6107
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6108
|
+
}, undefined>;
|
|
6109
|
+
readonly items: v.ArraySchema<v.StrictObjectSchema<{
|
|
6110
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
6111
|
+
readonly cues: v.ArraySchema<v.StrictObjectSchema<{
|
|
6112
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
6113
|
+
readonly fingerprint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6114
|
+
readonly transcript_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6115
|
+
readonly content_hash: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6116
|
+
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6117
|
+
readonly offset_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6118
|
+
readonly end_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6119
|
+
readonly speaker_participant_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
6120
|
+
readonly speaker_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6121
|
+
readonly text: v.StringSchema<undefined>;
|
|
6122
|
+
readonly revision: v.PicklistSchema<["current", "superseded"], undefined>;
|
|
6123
|
+
}, undefined>, undefined>;
|
|
6124
|
+
readonly cue_coverage: v.StrictObjectSchema<{
|
|
6125
|
+
readonly included: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6126
|
+
readonly omitted: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
6127
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
6128
|
+
}, undefined>;
|
|
6129
|
+
}, undefined>, undefined>;
|
|
6130
|
+
readonly limits: v.StrictObjectSchema<{
|
|
6131
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6132
|
+
readonly cues: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6133
|
+
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6134
|
+
readonly scan_limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6135
|
+
}, undefined>;
|
|
6136
|
+
readonly content_bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6137
|
+
readonly coverage: v.StrictObjectSchema<{
|
|
6138
|
+
readonly involvements_scanned: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6139
|
+
readonly scan_limit_reached: v.BooleanSchema<undefined>;
|
|
6140
|
+
readonly pending: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6141
|
+
readonly truncated_by: v.NullableSchema<v.PicklistSchema<["meetings", "bytes"], undefined>, undefined>;
|
|
6142
|
+
readonly skipped_unavailable: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6143
|
+
readonly complete: v.LiteralSchema<false, undefined>;
|
|
6144
|
+
readonly input: v.LiteralSchema<"bounded-meeting-pages", undefined>;
|
|
6145
|
+
}, undefined>;
|
|
6146
|
+
}, undefined>;
|
|
6147
|
+
readonly event: v.StrictObjectSchema<{
|
|
6148
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6149
|
+
readonly event_series_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6150
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6151
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6152
|
+
readonly location: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6153
|
+
readonly starts_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>;
|
|
6154
|
+
readonly ends_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>;
|
|
6155
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6156
|
+
readonly origin: v.PicklistSchema<["auto", "owner"], undefined>;
|
|
6157
|
+
readonly deleted_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>;
|
|
6158
|
+
readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
6159
|
+
readonly updated_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`">]>;
|
|
6160
|
+
}, undefined>;
|
|
5876
6161
|
readonly meeting_review: v.StrictObjectSchema<{
|
|
5877
6162
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5878
6163
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|