@wirecat/cli-core 0.659.0 → 0.660.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 +51 -0
- package/dist/calendar/mcp/index.d.ts +12 -12
- package/dist/cli/ask-before-write.d.ts +8 -0
- package/dist/cli/ask-before-write.js +28 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/domain/providers.js +1 -1
- package/dist/entities/index.d.ts +33 -93
- package/dist/errors/reasons.js +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/meetings/answers.d.ts +35 -27
- package/dist/meetings/answers.js +3 -2
- package/dist/meetings/cli/index.d.ts +13 -0
- package/dist/meetings/cli/index.js +61 -16
- package/dist/meetings/cli/management.d.ts +16 -0
- package/dist/meetings/cli/management.js +90 -0
- package/dist/meetings/index.d.ts +5 -3
- package/dist/meetings/index.js +4 -2
- package/dist/meetings/item.d.ts +33 -19
- package/dist/meetings/item.js +29 -4
- package/dist/meetings/mcp/index.d.ts +15 -15
- package/dist/meetings/pull.d.ts +27 -2
- package/dist/meetings/pull.js +103 -78
- package/dist/meetings/read-through.d.ts +74 -0
- package/dist/meetings/read-through.js +330 -0
- package/dist/meetings/reads.d.ts +1 -0
- package/dist/meetings/reads.js +4 -2
- package/dist/meetings/result-items.d.ts +31 -0
- package/dist/meetings/result-items.js +31 -0
- package/dist/meetings/source.d.ts +47 -0
- package/dist/meetings/store.d.ts +7 -0
- package/dist/meetings/testing/memory.js +8 -1
- package/dist/search/service-query.d.ts +63 -0
- package/dist/search/service-query.js +57 -0
- package/dist/sends/permissions.js +4 -0
- package/dist/services/messages-search.js +3 -4
- package/dist/services/server-search.d.ts +2 -1
- package/dist/services/server-search.js +36 -32
- package/dist/store/sqlite/meetings.js +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,57 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## 0.660.0 — 14.11.2026
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`meetings list` and `meetings show` read the service and the store at once.** With a source that has `find` and
|
|
13
|
+
`get`, they ask the service for what may match, keep it as `meetings sync` does, then answer the whole query from
|
|
14
|
+
the store: one list, the store's paging. `--backend archive|server|both`, the words messages search uses, default
|
|
15
|
+
`both`; `--offline` reads the store only. Each item says `found_in` (`archive`, `server`, `both`). A service that
|
|
16
|
+
cannot be asked leaves the store's answer, a `missing` line that says why and `meta.complete: false` with a
|
|
17
|
+
`meetings.server-*` issue; a typed `--backend server` refuses. The service gets only what it can filter:
|
|
18
|
+
`started_at` as a window and the fields its `finds` names. Both sides read the query's dates in the owner's zone.
|
|
19
|
+
- **A live read keeps what sync stored.** An empty field of the service's record keeps the stored value and the
|
|
20
|
+
metadata merges; a record that changes nothing is not written. A meeting that cannot be kept is counted in the
|
|
21
|
+
answer (`meetings.server-failed`), and the call or page cap says so (`meetings.server-capped`).
|
|
22
|
+
- **`MeetingSource.finds`, `find(window, terms, cursor)` and `get(id)`**, all optional, and
|
|
23
|
+
`MeetingStore.meetingByExternalId`. `saveSourceMeeting` is the one writer `sync` and these reads use; it takes the
|
|
24
|
+
stored row as `kept`. `MeetingFilter` takes `ids`, `timezone` and `now`.
|
|
25
|
+
- **`meeting.provider_id`**, the service's id of the occurrence. `meetings show` takes it besides the store number and
|
|
26
|
+
the `meeting:` ref, and `meetings list provider_id:<id>` filters by it.
|
|
27
|
+
- **`meetings create|update|cancel|invitation`** from `createMeetingManagement`, mounted when a host passes
|
|
28
|
+
`management` to `addMeetingCommands`, for the ports it has. The writes ask first by default (`meetings.create`,
|
|
29
|
+
`meetings.update`, `meetings.cancel`) through the host's `askFirst`, `askBeforeWrite` from `@wirecat/cli-core/cli`:
|
|
30
|
+
with nobody to answer they refuse with `confirmation_required`, and `--yes` goes ahead. `--dry-run` answers
|
|
31
|
+
`applied: false`.
|
|
32
|
+
- **`serviceCallsOf`** in `src/search/service-query.ts`, one query simplifier for a service's own search: it keeps the
|
|
33
|
+
fields and operators a service declares it reads, leaves out the rest, splits OR into calls up to a cap and sends a
|
|
34
|
+
NOT only where the service can negate it. A branch no call can match is never asked, and a query of more than 64
|
|
35
|
+
OR branches is not complete. Messages server search uses it.
|
|
36
|
+
|
|
37
|
+
### Changed — may break callers
|
|
38
|
+
|
|
39
|
+
- **`meetings list` and `meetings show` are remote reads** (`{ remote: read, local: read }`, `partial`), and `show`
|
|
40
|
+
takes a string: the store number, the `meeting:` ref or the service's id. A host whose source has no `find`/`get`
|
|
41
|
+
now gets a `missing` line naming that until it adds them; `--backend archive` keeps the old store-only answer. Under
|
|
42
|
+
`<PREFIX>_READ_ONLY` they still ask the service, as `meetings sync` does.
|
|
43
|
+
- **`meetings list` reads dates in the host's `timezone`** (the computer's without it), not in UTC.
|
|
44
|
+
- **`meeting` and `meeting_details` items carry `provider_id` and `untrusted`** (`title`, `description`,
|
|
45
|
+
`location`), and `meeting_invitation` carries `untrusted: ["invitation"]`. A check against an exact item shape adds
|
|
46
|
+
them.
|
|
47
|
+
- **Messages server search no longer sends a `to:`, `cc:` or `bcc:` person to the server as the sender.** Only
|
|
48
|
+
`from:` narrows the server's call; the store still filters the others.
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- **The `google-meet` provider names its tool `gmeet`.** The Google Meet CLI is published as `@wirecat/gmeet-cli`
|
|
53
|
+
with the command `gmeet`; 0.655.0 named it `meet`, so a hint that opens a Meet meeting pointed at a command that
|
|
54
|
+
does not exist.
|
|
55
|
+
- **`access.denied` and `item.not-found` are registered reasons.** `./google`'s `googleError` raises them for a 403
|
|
56
|
+
and a 404; they were missing from the reason registry, so a CLI that lists its reasons from cli-core did not
|
|
57
|
+
declare them.
|
|
58
|
+
|
|
8
59
|
## 0.659.0 — 14.11.2026
|
|
9
60
|
|
|
10
61
|
### Added
|
|
@@ -10,13 +10,13 @@ export declare const calendarTools: ({
|
|
|
10
10
|
inputSchema: {
|
|
11
11
|
type: string;
|
|
12
12
|
properties: {
|
|
13
|
-
limit?: undefined;
|
|
14
13
|
account_id: {
|
|
15
14
|
type: string;
|
|
16
15
|
minimum: number;
|
|
17
16
|
};
|
|
18
17
|
query?: undefined;
|
|
19
18
|
timezone?: undefined;
|
|
19
|
+
limit?: undefined;
|
|
20
20
|
page?: undefined;
|
|
21
21
|
event?: undefined;
|
|
22
22
|
} | {
|
|
@@ -45,9 +45,9 @@ export declare const calendarTools: ({
|
|
|
45
45
|
};
|
|
46
46
|
event?: undefined;
|
|
47
47
|
} | {
|
|
48
|
-
limit?: undefined;
|
|
49
48
|
query?: undefined;
|
|
50
49
|
timezone?: undefined;
|
|
50
|
+
limit?: undefined;
|
|
51
51
|
page?: undefined;
|
|
52
52
|
event: {
|
|
53
53
|
type: string;
|
|
@@ -58,9 +58,9 @@ export declare const calendarTools: ({
|
|
|
58
58
|
minimum: number;
|
|
59
59
|
};
|
|
60
60
|
} | {
|
|
61
|
-
limit?: undefined;
|
|
62
61
|
query?: undefined;
|
|
63
62
|
timezone?: undefined;
|
|
63
|
+
limit?: undefined;
|
|
64
64
|
page?: undefined;
|
|
65
65
|
event?: undefined;
|
|
66
66
|
account_id?: undefined;
|
|
@@ -80,13 +80,13 @@ export declare const calendarTools: ({
|
|
|
80
80
|
inputSchema: {
|
|
81
81
|
type: string;
|
|
82
82
|
properties: {
|
|
83
|
-
limit?: undefined;
|
|
84
83
|
account_id: {
|
|
85
84
|
type: string;
|
|
86
85
|
minimum: number;
|
|
87
86
|
};
|
|
88
87
|
query?: undefined;
|
|
89
88
|
timezone?: undefined;
|
|
89
|
+
limit?: undefined;
|
|
90
90
|
page?: undefined;
|
|
91
91
|
event?: undefined;
|
|
92
92
|
} | {
|
|
@@ -115,9 +115,9 @@ export declare const calendarTools: ({
|
|
|
115
115
|
};
|
|
116
116
|
event?: undefined;
|
|
117
117
|
} | {
|
|
118
|
-
limit?: undefined;
|
|
119
118
|
query?: undefined;
|
|
120
119
|
timezone?: undefined;
|
|
120
|
+
limit?: undefined;
|
|
121
121
|
page?: undefined;
|
|
122
122
|
event: {
|
|
123
123
|
type: string;
|
|
@@ -128,9 +128,9 @@ export declare const calendarTools: ({
|
|
|
128
128
|
minimum: number;
|
|
129
129
|
};
|
|
130
130
|
} | {
|
|
131
|
-
limit?: undefined;
|
|
132
131
|
query?: undefined;
|
|
133
132
|
timezone?: undefined;
|
|
133
|
+
limit?: undefined;
|
|
134
134
|
page?: undefined;
|
|
135
135
|
event?: undefined;
|
|
136
136
|
account_id?: undefined;
|
|
@@ -150,13 +150,13 @@ export declare const calendarTools: ({
|
|
|
150
150
|
inputSchema: {
|
|
151
151
|
type: string;
|
|
152
152
|
properties: {
|
|
153
|
-
limit?: undefined;
|
|
154
153
|
account_id: {
|
|
155
154
|
type: string;
|
|
156
155
|
minimum: number;
|
|
157
156
|
};
|
|
158
157
|
query?: undefined;
|
|
159
158
|
timezone?: undefined;
|
|
159
|
+
limit?: undefined;
|
|
160
160
|
page?: undefined;
|
|
161
161
|
event?: undefined;
|
|
162
162
|
} | {
|
|
@@ -185,9 +185,9 @@ export declare const calendarTools: ({
|
|
|
185
185
|
};
|
|
186
186
|
event?: undefined;
|
|
187
187
|
} | {
|
|
188
|
-
limit?: undefined;
|
|
189
188
|
query?: undefined;
|
|
190
189
|
timezone?: undefined;
|
|
190
|
+
limit?: undefined;
|
|
191
191
|
page?: undefined;
|
|
192
192
|
event: {
|
|
193
193
|
type: string;
|
|
@@ -198,9 +198,9 @@ export declare const calendarTools: ({
|
|
|
198
198
|
minimum: number;
|
|
199
199
|
};
|
|
200
200
|
} | {
|
|
201
|
-
limit?: undefined;
|
|
202
201
|
query?: undefined;
|
|
203
202
|
timezone?: undefined;
|
|
203
|
+
limit?: undefined;
|
|
204
204
|
page?: undefined;
|
|
205
205
|
event?: undefined;
|
|
206
206
|
account_id?: undefined;
|
|
@@ -220,13 +220,13 @@ export declare const calendarTools: ({
|
|
|
220
220
|
inputSchema: {
|
|
221
221
|
type: string;
|
|
222
222
|
properties: {
|
|
223
|
-
limit?: undefined;
|
|
224
223
|
account_id: {
|
|
225
224
|
type: string;
|
|
226
225
|
minimum: number;
|
|
227
226
|
};
|
|
228
227
|
query?: undefined;
|
|
229
228
|
timezone?: undefined;
|
|
229
|
+
limit?: undefined;
|
|
230
230
|
page?: undefined;
|
|
231
231
|
event?: undefined;
|
|
232
232
|
} | {
|
|
@@ -255,9 +255,9 @@ export declare const calendarTools: ({
|
|
|
255
255
|
};
|
|
256
256
|
event?: undefined;
|
|
257
257
|
} | {
|
|
258
|
-
limit?: undefined;
|
|
259
258
|
query?: undefined;
|
|
260
259
|
timezone?: undefined;
|
|
260
|
+
limit?: undefined;
|
|
261
261
|
page?: undefined;
|
|
262
262
|
event: {
|
|
263
263
|
type: string;
|
|
@@ -268,9 +268,9 @@ export declare const calendarTools: ({
|
|
|
268
268
|
minimum: number;
|
|
269
269
|
};
|
|
270
270
|
} | {
|
|
271
|
-
limit?: undefined;
|
|
272
271
|
query?: undefined;
|
|
273
272
|
timezone?: undefined;
|
|
273
|
+
limit?: undefined;
|
|
274
274
|
page?: undefined;
|
|
275
275
|
event?: undefined;
|
|
276
276
|
account_id?: undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* The `ask` step of a declared CLI's write that has no guard of its own (`meetings create`): `deny` and `readonly`
|
|
4
|
+
* already stopped it before it ran (`refuseByCommandPermissions`), and `ask` is left to the command. At `ask` the owner
|
|
5
|
+
* is asked, `--yes` answers, an agent goes ahead, and with nobody to answer it refuses. Outside the CLI's run, where
|
|
6
|
+
* the profile's levels are not known, it refuses too.
|
|
7
|
+
*/
|
|
8
|
+
export declare const askBeforeWrite: (command: Command) => Promise<void>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CliError } from "@wirecat/cli-base";
|
|
2
|
+
import { levelFor } from "../sends/permissions.js";
|
|
3
|
+
import { commandPathOf } from "./command-contract.js";
|
|
4
|
+
import { environmentOf, withAgentLevels } from "./context.js";
|
|
5
|
+
import { terminalAsker } from "./messenger/ask.js";
|
|
6
|
+
import { commandPathKey } from "./permission-keys.js";
|
|
7
|
+
/**
|
|
8
|
+
* The `ask` step of a declared CLI's write that has no guard of its own (`meetings create`): `deny` and `readonly`
|
|
9
|
+
* already stopped it before it ran (`refuseByCommandPermissions`), and `ask` is left to the command. At `ask` the owner
|
|
10
|
+
* is asked, `--yes` answers, an agent goes ahead, and with nobody to answer it refuses. Outside the CLI's run, where
|
|
11
|
+
* the profile's levels are not known, it refuses too.
|
|
12
|
+
*/
|
|
13
|
+
export const askBeforeWrite = async (command) => {
|
|
14
|
+
const key = commandPathKey(commandPathOf(command));
|
|
15
|
+
if (!key)
|
|
16
|
+
return;
|
|
17
|
+
const environment = environmentOf(command);
|
|
18
|
+
if (!environment.resolveSettings)
|
|
19
|
+
throw new CliError("configuration_error", `${key} reads its permission level inside the tool's run only`);
|
|
20
|
+
const settings = environment.resolveSettings(withAgentLevels(command, command.optsWithGlobals()), {
|
|
21
|
+
env: environment.env ?? process.env,
|
|
22
|
+
needsProfile: false,
|
|
23
|
+
readOnly: true,
|
|
24
|
+
});
|
|
25
|
+
const { level } = levelFor(settings.permissions, key, environment.permissionDefaults);
|
|
26
|
+
if (level === "ask")
|
|
27
|
+
await terminalAsker(command)(key, { chatId: null, kind: "edit", key });
|
|
28
|
+
};
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export { answerEntity } from "./answer-entity.js";
|
|
|
53
53
|
export { type AppDoctorOptions, appDoctorReport } from "./app-doctor-command.js";
|
|
54
54
|
export type { AppMcpOptions } from "./app-mcp-command.js";
|
|
55
55
|
export { openAppStore } from "./app-store.js";
|
|
56
|
+
export { askBeforeWrite } from "./ask-before-write.js";
|
|
56
57
|
export { actorOf } from "./author.js";
|
|
57
58
|
export { type BaseStagesCommandOptions, baseStagesCommand } from "./base-stages-command.js";
|
|
58
59
|
export type { ApiCommandInput, ApiCommands } from "./bot/api.js";
|
package/dist/cli/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export { evaluateAgent, } from "./agent-evaluation.js";
|
|
|
47
47
|
export { answerEntity } from "./answer-entity.js";
|
|
48
48
|
export { appDoctorReport } from "./app-doctor-command.js";
|
|
49
49
|
export { openAppStore } from "./app-store.js";
|
|
50
|
+
export { askBeforeWrite } from "./ask-before-write.js";
|
|
50
51
|
export { actorOf } from "./author.js";
|
|
51
52
|
export { baseStagesCommand } from "./base-stages-command.js";
|
|
52
53
|
export { apiFlagOf, apiJson, apiOptionKey, apiPlainJson, checkApiBody, checkApiParameter, parseApiJson, readApiBody, } from "./bot/api-input.js";
|
package/dist/domain/providers.js
CHANGED
|
@@ -19,7 +19,7 @@ export const PROVIDERS = [
|
|
|
19
19
|
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
20
20
|
{ name: "added", kind: "notes", aliases: [] },
|
|
21
21
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
22
|
-
{ name: "google-meet", kind: "meetings", aliases: [], command: "
|
|
22
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "gmeet" },
|
|
23
23
|
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
24
24
|
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
25
25
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -93,6 +93,37 @@ import { topic } from "./topic.js";
|
|
|
93
93
|
*/
|
|
94
94
|
export { account, accountChange, accountPrivacy, accountPrivacyChange, accountProfile, accountSession, adminReport, agenda, analysisConsent, analysisConsentRevocation, attachment, attachmentBytes, attachmentExtraction, attachmentTextChange, automaticTags, botAdmin, botMenuEntry, botProfile, botSeenChat, botTemplate, botWebhook, cachedChatMetadata, callRecord, chart, chat, chatAdminChange, chatArchive, chatCoverage, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatStats, chatTracking, chatUnread, contact, contactActivity, contactAlias, contactCheck, contactContext, contactImport, contactLookup, contactNote, contactNoteRemoval, contactPreparation, contactStateChange, contactSync, contactUpdate, conversation, conversationBatch, conversationBatchStatus, conversationBuildResult, conversationChange, conversationDetails, conversationEmbedding, conversationEmbeddingStatus, conversationHit, conversationPreparation, conversationReadiness, counterRefresh, counters, document, documentLink, endedAccountSessions, evidence, evidencePacket, fact, folder, hit, identity, imageEmbedding, inviteLink, job, joinRequest, linkedPerson, mailCounts, mediaArchive, mediaArchiveCheck, mediaArchiveMove, mediaArchiveTimer, meeting, meetingProjectCandidates, meetingSeriesInventory, member, memory, mention, mentionDecision, mentionDetails, mentionDomain, mentionRebuild, message, messageContext, messageCounts, messageDeletion, messageDownload, messageEvent, messageLink, messageLinks, messagePin, messageStar, messageSync, messageTranscript, messageWrite, model, modelKey, note, officialStats, organization, person, place, poll, pollChange, pollVote, project, ranking, reaction, reactionChange, recipient, recipientAdded, recipientChange, recipientOff, recipientRemoved, recordedRun, reference, relationship, reminder, removedModelKey, responseTimes, retention, runDetails, runHit, runLocation, savedSearch, scheduledJob, scheduleHarness, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeImport, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskAnalysis, taskAnalysisMark, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, template, topic, topicIcon, trackedChat, trackedChatHistory, waitingChats, watchedMessage, watchItem, };
|
|
95
95
|
export declare const ENTITIES: {
|
|
96
|
+
readonly meeting_change: v.StrictObjectSchema<{
|
|
97
|
+
readonly action: v.PicklistSchema<["create", "update", "cancel"], undefined>;
|
|
98
|
+
readonly provider: v.StringSchema<undefined>;
|
|
99
|
+
readonly account: v.StringSchema<undefined>;
|
|
100
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
101
|
+
readonly occurrence_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
102
|
+
readonly change: v.OptionalSchema<v.StrictObjectSchema<{
|
|
103
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
+
readonly kind: v.OptionalSchema<v.PicklistSchema<["instant", "scheduled"], undefined>, undefined>;
|
|
105
|
+
readonly start_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly duration_minutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
107
|
+
readonly timezone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly agenda: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
}, undefined>, undefined>;
|
|
110
|
+
readonly applied: v.BooleanSchema<undefined>;
|
|
111
|
+
readonly meeting: v.OptionalSchema<v.StrictObjectSchema<{
|
|
112
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
113
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly kind: v.NullableSchema<v.PicklistSchema<["instant", "scheduled"], undefined>, undefined>;
|
|
115
|
+
readonly start_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly duration_minutes: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
117
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly agenda: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
119
|
+
readonly join_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
}, undefined>, undefined>;
|
|
121
|
+
}, undefined>;
|
|
122
|
+
readonly meeting_invitation: v.StrictObjectSchema<{
|
|
123
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
124
|
+
readonly invitation: v.StringSchema<undefined>;
|
|
125
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
126
|
+
}, undefined>;
|
|
96
127
|
readonly meeting_ingestion: v.StrictObjectSchema<{
|
|
97
128
|
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
98
129
|
readonly participants: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -5413,99 +5444,8 @@ export declare const ENTITIES: {
|
|
|
5413
5444
|
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`">]>;
|
|
5414
5445
|
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`">]>;
|
|
5415
5446
|
}, undefined>;
|
|
5416
|
-
readonly meeting: v.StrictObjectSchema<
|
|
5417
|
-
|
|
5418
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5419
|
-
readonly provider: v.StringSchema<undefined>;
|
|
5420
|
-
readonly account: v.StringSchema<undefined>;
|
|
5421
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5422
|
-
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5423
|
-
readonly location: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5424
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5425
|
-
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>;
|
|
5426
|
-
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>;
|
|
5427
|
-
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5428
|
-
readonly timezone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5429
|
-
readonly participants_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5430
|
-
readonly issues: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["time_without_zone"], undefined>, undefined>, undefined>;
|
|
5431
|
-
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`">]>;
|
|
5432
|
-
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`">]>;
|
|
5433
|
-
}, undefined>;
|
|
5434
|
-
readonly meeting_details: v.StrictObjectSchema<{
|
|
5435
|
-
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5436
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5437
|
-
readonly provider: v.StringSchema<undefined>;
|
|
5438
|
-
readonly account: v.StringSchema<undefined>;
|
|
5439
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5440
|
-
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5441
|
-
readonly location: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5442
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5443
|
-
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>;
|
|
5444
|
-
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>;
|
|
5445
|
-
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5446
|
-
readonly timezone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5447
|
-
readonly participants_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5448
|
-
readonly issues: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["time_without_zone"], undefined>, undefined>, undefined>;
|
|
5449
|
-
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`">]>;
|
|
5450
|
-
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`">]>;
|
|
5451
|
-
readonly event_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5452
|
-
readonly series_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5453
|
-
readonly series_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5454
|
-
readonly participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
5455
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5456
|
-
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5457
|
-
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5458
|
-
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
5459
|
-
readonly ref: v.StringSchema<undefined>;
|
|
5460
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5461
|
-
}, undefined>, undefined>;
|
|
5462
|
-
readonly joined_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>;
|
|
5463
|
-
readonly left_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>;
|
|
5464
|
-
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5465
|
-
}, undefined>, undefined>;
|
|
5466
|
-
readonly transcripts: v.ArraySchema<v.StrictObjectSchema<{
|
|
5467
|
-
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5468
|
-
readonly source: v.StringSchema<undefined>;
|
|
5469
|
-
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5470
|
-
readonly lines_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
5471
|
-
}, undefined>, undefined>;
|
|
5472
|
-
readonly chat: v.ArraySchema<v.StrictObjectSchema<{
|
|
5473
|
-
readonly sent_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`">]>;
|
|
5474
|
-
readonly sender: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5475
|
-
readonly recipient: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5476
|
-
readonly text: v.StringSchema<undefined>;
|
|
5477
|
-
}, undefined>, undefined>;
|
|
5478
|
-
readonly summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
5479
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5480
|
-
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5481
|
-
readonly source: v.StringSchema<undefined>;
|
|
5482
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5483
|
-
readonly overview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5484
|
-
readonly sections: v.ArraySchema<v.StrictObjectSchema<{
|
|
5485
|
-
readonly label: v.StringSchema<undefined>;
|
|
5486
|
-
readonly text: v.StringSchema<undefined>;
|
|
5487
|
-
}, undefined>, undefined>;
|
|
5488
|
-
readonly next_steps: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
5489
|
-
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5490
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5491
|
-
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`">]>;
|
|
5492
|
-
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`">]>;
|
|
5493
|
-
}, undefined>, undefined>;
|
|
5494
|
-
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
5495
|
-
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
5496
|
-
readonly kind: v.StringSchema<undefined>;
|
|
5497
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5498
|
-
readonly mime: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5499
|
-
readonly size: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5500
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5501
|
-
}, undefined>, undefined>;
|
|
5502
|
-
readonly documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
5503
|
-
readonly file_id: v.StringSchema<undefined>;
|
|
5504
|
-
readonly role: v.PicklistSchema<readonly ["transcript", "recording", "notes"], undefined>;
|
|
5505
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5506
|
-
readonly document: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
5507
|
-
}, undefined>, undefined>;
|
|
5508
|
-
}, undefined>;
|
|
5447
|
+
readonly meeting: v.StrictObjectSchema<import("../meetings/item.js").MeetingEntries, undefined>;
|
|
5448
|
+
readonly meeting_details: v.StrictObjectSchema<import("../meetings/answers.js").MeetingDetailsEntries, undefined>;
|
|
5509
5449
|
readonly meeting_hit: v.StrictObjectSchema<{
|
|
5510
5450
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5511
5451
|
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
package/dist/errors/reasons.js
CHANGED
|
@@ -56,6 +56,8 @@ const PROVIDER_API = [
|
|
|
56
56
|
validation("api.unknown-method", "the provider has no method by this name"),
|
|
57
57
|
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
58
58
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
59
|
+
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
60
|
+
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
59
61
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
60
62
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
61
63
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
@@ -239,6 +241,16 @@ const OTHERS = [
|
|
|
239
241
|
["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
|
|
240
242
|
["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
|
|
241
243
|
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
244
|
+
["meetings.server-offline", "permission_error", "meetings list and show ask the service; --offline was given"],
|
|
245
|
+
["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
|
|
246
|
+
["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
|
|
247
|
+
["meetings.server-refused", "permission_error", "the meetings service refused the request"],
|
|
248
|
+
["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
|
|
249
|
+
[
|
|
250
|
+
"meetings.server-capped",
|
|
251
|
+
"outcome_unknown",
|
|
252
|
+
"the meetings service may hold more matches than the calls and pages one list asks",
|
|
253
|
+
],
|
|
242
254
|
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
243
255
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
244
256
|
["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { byEngagement, CONTRACT_ROLES, ENGAGEMENT_LEVELS, type Engagement, engag
|
|
|
30
30
|
export { normalizeTag, TAG_TYPES, type TagType } from "./domain/tags.js";
|
|
31
31
|
export { envelopeOfVcard, isVcard, type VcardIssue, type VcardOptions } from "./domain/vcard.js";
|
|
32
32
|
export { type AppErrors, DETAILS as CORE_DETAILS, failureContext, REASONS as CORE_REASONS } from "./errors/reasons.js";
|
|
33
|
-
export { canonicalMeetingReference, formatMeetingReference, type MeetingReference, parseMeetingReference, } from "./meetings/index.js";
|
|
33
|
+
export { BACKENDS, type Backend, canonicalMeetingReference, formatMeetingReference, type MeetingReference, parseMeetingReference, type QueryTree, type ServiceCalls, type ServiceCapability, type ServiceOperator, serviceCallsOf, } from "./meetings/index.js";
|
|
34
34
|
export type { CheckRow, Finding, Moderator } from "./moderation/check.js";
|
|
35
35
|
export { act, judge } from "./moderation/check.js";
|
|
36
36
|
export type { GroupRules } from "./moderation/rules.js";
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export { byEngagement, CONTRACT_ROLES, ENGAGEMENT_LEVELS, engagementRank, invers
|
|
|
25
25
|
export { normalizeTag, TAG_TYPES } from "./domain/tags.js";
|
|
26
26
|
export { envelopeOfVcard, isVcard } from "./domain/vcard.js";
|
|
27
27
|
export { DETAILS as CORE_DETAILS, failureContext, REASONS as CORE_REASONS } from "./errors/reasons.js";
|
|
28
|
-
export { canonicalMeetingReference, formatMeetingReference, parseMeetingReference, } from "./meetings/index.js";
|
|
28
|
+
export { BACKENDS, canonicalMeetingReference, formatMeetingReference, parseMeetingReference, serviceCallsOf, } from "./meetings/index.js";
|
|
29
29
|
export { act, judge } from "./moderation/check.js";
|
|
30
30
|
export { defaultRules, ModerationRules, moderationPathFor } from "./moderation/rules.js";
|
|
31
31
|
export { resolveOutput } from "./output.js";
|
|
@@ -70,28 +70,31 @@ export declare const meetingSummary: v.StrictObjectSchema<{
|
|
|
70
70
|
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`">]>;
|
|
71
71
|
}, undefined>;
|
|
72
72
|
/** `meetings show`: the meeting with who took part, what was said in its chat, and what it holds. */
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
73
|
+
declare const meetingDetailsEntries: {
|
|
74
|
+
ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
75
|
+
id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
76
|
+
provider_id: v.StringSchema<undefined>;
|
|
77
|
+
provider: v.StringSchema<undefined>;
|
|
78
|
+
account: v.StringSchema<undefined>;
|
|
79
|
+
title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
81
|
+
location: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
82
|
+
url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
+
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>;
|
|
84
|
+
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>;
|
|
85
|
+
duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
86
|
+
timezone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
87
|
+
participants_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
88
|
+
issues: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["time_without_zone"], undefined>, undefined>, undefined>;
|
|
89
|
+
found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
|
|
90
|
+
untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
91
|
+
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`">]>;
|
|
92
|
+
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`">]>;
|
|
90
93
|
/** The stored event and series it belongs to, as `meetings_list` takes them. */
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
event_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
95
|
+
series_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
96
|
+
series_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
97
|
+
participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
95
98
|
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
96
99
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
97
100
|
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -104,19 +107,19 @@ export declare const meetingDetails: v.StrictObjectSchema<{
|
|
|
104
107
|
readonly left_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>;
|
|
105
108
|
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
106
109
|
}, undefined>, undefined>;
|
|
107
|
-
|
|
110
|
+
transcripts: v.ArraySchema<v.StrictObjectSchema<{
|
|
108
111
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
109
112
|
readonly source: v.StringSchema<undefined>;
|
|
110
113
|
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
111
114
|
readonly lines_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
112
115
|
}, undefined>, undefined>;
|
|
113
|
-
|
|
116
|
+
chat: v.ArraySchema<v.StrictObjectSchema<{
|
|
114
117
|
readonly sent_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`">]>;
|
|
115
118
|
readonly sender: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
116
119
|
readonly recipient: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
117
120
|
readonly text: v.StringSchema<undefined>;
|
|
118
121
|
}, undefined>, undefined>;
|
|
119
|
-
|
|
122
|
+
summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
120
123
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
121
124
|
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
122
125
|
readonly source: v.StringSchema<undefined>;
|
|
@@ -132,7 +135,7 @@ export declare const meetingDetails: v.StrictObjectSchema<{
|
|
|
132
135
|
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`">]>;
|
|
133
136
|
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`">]>;
|
|
134
137
|
}, undefined>, undefined>;
|
|
135
|
-
|
|
138
|
+
attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
136
139
|
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
137
140
|
readonly kind: v.StringSchema<undefined>;
|
|
138
141
|
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -144,13 +147,17 @@ export declare const meetingDetails: v.StrictObjectSchema<{
|
|
|
144
147
|
* The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
|
|
145
148
|
* a Drive profile has imported the file, else `null`: then `drive` can fetch it by `file_id`.
|
|
146
149
|
*/
|
|
147
|
-
|
|
150
|
+
documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
148
151
|
readonly file_id: v.StringSchema<undefined>;
|
|
149
152
|
readonly role: v.PicklistSchema<readonly ["transcript", "recording", "notes"], undefined>;
|
|
150
153
|
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
151
154
|
readonly document: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
152
155
|
}, undefined>, undefined>;
|
|
153
|
-
}
|
|
156
|
+
};
|
|
157
|
+
type MeetingDetailsEntriesOf = typeof meetingDetailsEntries;
|
|
158
|
+
export interface MeetingDetailsEntries extends MeetingDetailsEntriesOf {
|
|
159
|
+
}
|
|
160
|
+
export declare const meetingDetails: v.StrictObjectSchema<MeetingDetailsEntries, undefined>;
|
|
154
161
|
export type MeetingHitItem = v.InferOutput<typeof meetingHit>;
|
|
155
162
|
export type MeetingTranscriptItem = v.InferOutput<typeof meetingTranscript>;
|
|
156
163
|
export type MeetingSummaryItem = v.InferOutput<typeof meetingSummary>;
|
|
@@ -185,3 +192,4 @@ export declare const meetingHitItem: (hit: SearchHit & {
|
|
|
185
192
|
export declare const meetingHitsList: (found: MeetingSearchPage, limit: number, command?: string, args?: Record<string, unknown>, meta?: Partial<Meta>) => MeetingListBody<MeetingHitItem> & {
|
|
186
193
|
meta?: Partial<Meta>;
|
|
187
194
|
};
|
|
195
|
+
export {};
|
package/dist/meetings/answers.js
CHANGED
|
@@ -67,7 +67,7 @@ export const meetingSummary = v.strictObject({
|
|
|
67
67
|
updated_at: isoTime,
|
|
68
68
|
});
|
|
69
69
|
/** `meetings show`: the meeting with who took part, what was said in its chat, and what it holds. */
|
|
70
|
-
|
|
70
|
+
const meetingDetailsEntries = {
|
|
71
71
|
...meeting.entries,
|
|
72
72
|
/** The stored event and series it belongs to, as `meetings_list` takes them. */
|
|
73
73
|
event_id: v.nullable(text),
|
|
@@ -104,7 +104,8 @@ export const meetingDetails = v.strictObject({
|
|
|
104
104
|
title: v.nullable(text),
|
|
105
105
|
document: v.nullable(reference),
|
|
106
106
|
})),
|
|
107
|
-
}
|
|
107
|
+
};
|
|
108
|
+
export const meetingDetails = v.strictObject(meetingDetailsEntries);
|
|
108
109
|
const meetingRef = (accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId });
|
|
109
110
|
export const meetingTranscriptItem = (accountId, transcript, rows) => ({
|
|
110
111
|
ref: formatMeetingReference({
|