ask-marcel-office-cli 0.1.0 → 1.0.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 +92 -0
- package/README.md +319 -120
- package/dist/cli.js +85117 -1741
- package/dist/commands.json +6312 -0
- package/dist/composition/build-deps.d.ts +6 -1
- package/dist/composition/cli.d.ts +14 -6
- package/dist/composition/package-manager.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +93317 -10724
- package/dist/infra/auth.d.ts +31 -3
- package/dist/infra/browser-auth.d.ts +106 -2
- package/dist/infra/graph-client.d.ts +63 -2
- package/dist/infra/mammoth-adapter.d.ts +4 -0
- package/dist/infra/playwright-loader.d.ts +4 -0
- package/dist/infra/process-runner-bun.d.ts +2 -0
- package/dist/infra/process-runner-node.d.ts +2 -0
- package/dist/infra/sheetjs-adapter.d.ts +9 -0
- package/dist/infra/turndown-adapter.d.ts +4 -0
- package/dist/presenter/output-text.d.ts +2 -0
- package/dist/presenter/output.d.ts +4 -2
- package/dist/use-cases/commands/build-command.d.ts +46 -2
- package/dist/use-cases/commands/command-types.d.ts +115 -1
- package/dist/use-cases/commands/convert-mail-attachment-to-markdown.d.ts +11 -0
- package/dist/use-cases/commands/convert-mail-attachment-to-pdf.d.ts +11 -0
- package/dist/use-cases/commands/convert-mail-to-markdown.d.ts +10 -0
- package/dist/use-cases/commands/docs-render.d.ts +31 -0
- package/dist/use-cases/commands/docs.d.ts +10 -0
- package/dist/use-cases/commands/docx-to-markdown.d.ts +11 -0
- package/dist/use-cases/commands/download-drive-item-as-markdown.d.ts +11 -0
- package/dist/use-cases/commands/download-drive-item-as-pdf.d.ts +11 -0
- package/dist/use-cases/commands/download-drive-item-version-as-markdown.d.ts +12 -0
- package/dist/use-cases/commands/download-drive-item-version-as-pdf.d.ts +12 -0
- package/dist/use-cases/commands/download-drive-item-version-content.d.ts +12 -0
- package/dist/use-cases/commands/download-onedrive-file-content.d.ts +5 -3
- package/dist/use-cases/commands/embedded-item-to-markdown.d.ts +59 -0
- package/dist/use-cases/commands/excel-error.d.ts +6 -0
- package/dist/use-cases/commands/extract-sharepoint-links-in-mail.d.ts +26 -0
- package/dist/use-cases/commands/fetch-raw-bytes.d.ts +56 -0
- package/dist/use-cases/commands/format-zod-error.d.ts +14 -0
- package/dist/use-cases/commands/get-calendar-event.d.ts +4 -6
- package/dist/use-cases/commands/get-calendar-view.d.ts +4 -4
- package/dist/use-cases/commands/get-channel-files-folder.d.ts +4 -7
- package/dist/use-cases/commands/get-chat.d.ts +3 -1
- package/dist/use-cases/commands/get-current-user.d.ts +4 -4
- package/dist/use-cases/commands/get-drive-delta.d.ts +4 -7
- package/dist/use-cases/commands/get-drive-item-analytics.d.ts +9 -0
- package/dist/use-cases/commands/get-drive-item-created-by-user.d.ts +4 -0
- package/dist/use-cases/commands/get-drive-item-last-modified-by-user.d.ts +4 -0
- package/dist/use-cases/commands/get-drive-item-list-item.d.ts +4 -0
- package/dist/use-cases/commands/get-drive-item.d.ts +4 -7
- package/dist/use-cases/commands/get-drive-root-delta.d.ts +4 -0
- package/dist/use-cases/commands/get-drive-root-item.d.ts +4 -6
- package/dist/use-cases/commands/get-drive-special-folder.d.ts +4 -0
- package/dist/use-cases/commands/get-excel-range.d.ts +4 -2
- package/dist/use-cases/commands/get-excel-table.d.ts +4 -2
- package/dist/use-cases/commands/get-excel-used-range.d.ts +10 -0
- package/dist/use-cases/commands/get-group-calendar-view.d.ts +4 -0
- package/dist/use-cases/commands/get-group.d.ts +4 -0
- package/dist/use-cases/commands/get-mail-attachment.d.ts +6 -2
- package/dist/use-cases/commands/get-mail-message-mime.d.ts +8 -0
- package/dist/use-cases/commands/get-mail-message.d.ts +4 -6
- package/dist/use-cases/commands/get-mail-rule.d.ts +9 -0
- package/dist/use-cases/commands/get-mailbox-settings.d.ts +4 -2
- package/dist/use-cases/commands/get-my-calendar.d.ts +4 -0
- package/dist/use-cases/commands/get-my-manager.d.ts +9 -0
- package/dist/use-cases/commands/get-my-profile-photo.d.ts +6 -2
- package/dist/use-cases/commands/get-onenote-page-as-markdown.d.ts +10 -0
- package/dist/use-cases/commands/get-onenote-page-content.d.ts +6 -2
- package/dist/use-cases/commands/get-organization.d.ts +4 -0
- package/dist/use-cases/commands/get-planner-bucket.d.ts +3 -1
- package/dist/use-cases/commands/get-planner-plan.d.ts +3 -1
- package/dist/use-cases/commands/get-planner-task-details.d.ts +3 -1
- package/dist/use-cases/commands/get-planner-task.d.ts +3 -1
- package/dist/use-cases/commands/get-shared-calendar-view.d.ts +4 -0
- package/dist/use-cases/commands/get-shared-mailbox-message.d.ts +4 -0
- package/dist/use-cases/commands/get-sharepoint-list-column.d.ts +4 -0
- package/dist/use-cases/commands/get-sharepoint-site-by-path.d.ts +4 -2
- package/dist/use-cases/commands/get-sharepoint-site-drive-by-id.d.ts +4 -7
- package/dist/use-cases/commands/get-sharepoint-site-list-item.d.ts +4 -8
- package/dist/use-cases/commands/get-sharepoint-site-list.d.ts +4 -7
- package/dist/use-cases/commands/{list-sharepoint-site-items.d.ts → get-sharepoint-site-onenote-page-content.d.ts} +4 -1
- package/dist/use-cases/commands/get-sharepoint-site.d.ts +4 -6
- package/dist/use-cases/commands/{get-sharepoint-site-item.d.ts → get-site-analytics.d.ts} +3 -2
- package/dist/use-cases/commands/get-specific-calendar-event.d.ts +4 -7
- package/dist/use-cases/commands/get-specific-calendar-view.d.ts +4 -6
- package/dist/use-cases/commands/get-team-channel.d.ts +5 -7
- package/dist/use-cases/commands/get-team-primary-channel.d.ts +4 -0
- package/dist/use-cases/commands/get-team.d.ts +4 -6
- package/dist/use-cases/commands/get-todo-task.d.ts +4 -7
- package/dist/use-cases/commands/get-user-manager.d.ts +10 -0
- package/dist/use-cases/commands/graph-scopes.d.ts +29 -0
- package/dist/use-cases/commands/inline-image-embedder.d.ts +20 -0
- package/dist/use-cases/commands/list-all-onenote-sections.d.ts +4 -4
- package/dist/use-cases/commands/list-calendar-event-instances.d.ts +5 -7
- package/dist/use-cases/commands/list-calendar-events-delta.d.ts +7 -3
- package/dist/use-cases/commands/list-calendar-events.d.ts +4 -4
- package/dist/use-cases/commands/list-calendar-group-calendars.d.ts +4 -0
- package/dist/use-cases/commands/list-calendar-groups.d.ts +4 -0
- package/dist/use-cases/commands/list-calendar-view-delta.d.ts +9 -3
- package/dist/use-cases/commands/list-calendars.d.ts +4 -4
- package/dist/use-cases/commands/list-chat-members.d.ts +5 -6
- package/dist/use-cases/commands/list-chats.d.ts +4 -4
- package/dist/use-cases/commands/list-conversation-messages.d.ts +12 -0
- package/dist/use-cases/commands/list-drive-item-permissions.d.ts +4 -7
- package/dist/use-cases/commands/list-drive-item-thumbnails.d.ts +4 -0
- package/dist/use-cases/commands/list-drive-item-versions.d.ts +4 -7
- package/dist/use-cases/commands/list-drives.d.ts +4 -4
- package/dist/use-cases/commands/list-excel-comments.d.ts +5 -0
- package/dist/use-cases/commands/list-excel-defined-names.d.ts +5 -0
- package/dist/use-cases/commands/list-excel-table-rows.d.ts +5 -8
- package/dist/use-cases/commands/list-excel-tables.d.ts +5 -7
- package/dist/use-cases/commands/list-excel-worksheet-charts.d.ts +5 -0
- package/dist/use-cases/commands/list-excel-worksheet-pivot-tables.d.ts +5 -0
- package/dist/use-cases/commands/list-excel-worksheets.d.ts +5 -7
- package/dist/use-cases/commands/list-focused-inbox-overrides.d.ts +4 -0
- package/dist/use-cases/commands/list-folder-files.d.ts +4 -7
- package/dist/use-cases/commands/list-followed-drive-items.d.ts +4 -0
- package/dist/use-cases/commands/list-group-conversations.d.ts +4 -0
- package/dist/use-cases/commands/list-group-events.d.ts +4 -0
- package/dist/use-cases/commands/list-group-members.d.ts +4 -0
- package/dist/use-cases/commands/list-group-owners.d.ts +4 -0
- package/dist/use-cases/commands/list-group-threads.d.ts +4 -0
- package/dist/use-cases/commands/list-groups.d.ts +4 -0
- package/dist/use-cases/commands/list-incomplete-planner-tasks.d.ts +13 -0
- package/dist/use-cases/commands/list-incomplete-todo-tasks.d.ts +14 -0
- package/dist/use-cases/commands/list-joined-teams.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-attachments.d.ts +10 -2
- package/dist/use-cases/commands/list-mail-child-folders.d.ts +4 -6
- package/dist/use-cases/commands/list-mail-folder-messages-delta.d.ts +4 -0
- package/dist/use-cases/commands/list-mail-folder-messages.d.ts +4 -6
- package/dist/use-cases/commands/{get-sharepoint-sites-delta.d.ts → list-mail-folders-delta.d.ts} +3 -1
- package/dist/use-cases/commands/list-mail-folders.d.ts +4 -4
- package/dist/use-cases/commands/list-mail-messages.d.ts +4 -4
- package/dist/use-cases/commands/list-mail-rules.d.ts +4 -2
- package/dist/use-cases/commands/list-my-direct-reports.d.ts +13 -0
- package/dist/use-cases/commands/list-my-memberships.d.ts +4 -0
- package/dist/use-cases/commands/list-my-transitive-memberships.d.ts +4 -0
- package/dist/use-cases/commands/list-onenote-notebook-sections.d.ts +4 -6
- package/dist/use-cases/commands/list-onenote-notebooks.d.ts +4 -4
- package/dist/use-cases/commands/list-onenote-section-pages.d.ts +4 -6
- package/dist/use-cases/commands/{list-outlook-contacts.d.ts → list-outlook-categories.d.ts} +3 -1
- package/dist/use-cases/commands/list-plan-buckets.d.ts +4 -6
- package/dist/use-cases/commands/list-plan-tasks.d.ts +3 -1
- package/dist/use-cases/commands/list-planner-plans.d.ts +4 -0
- package/dist/use-cases/commands/list-planner-tasks.d.ts +4 -4
- package/dist/use-cases/commands/list-recent-files.d.ts +4 -0
- package/dist/use-cases/commands/list-recently-used-insights.d.ts +4 -0
- package/dist/use-cases/commands/list-relevant-people.d.ts +4 -0
- package/dist/use-cases/commands/list-room-lists.d.ts +4 -0
- package/dist/use-cases/commands/list-rooms.d.ts +4 -0
- package/dist/use-cases/commands/list-sensitivity-labels.d.ts +4 -0
- package/dist/use-cases/commands/list-shared-calendar-events.d.ts +4 -0
- package/dist/use-cases/commands/list-shared-insights.d.ts +4 -0
- package/dist/use-cases/commands/list-shared-mailbox-folder-messages.d.ts +4 -0
- package/dist/use-cases/commands/list-shared-mailbox-messages.d.ts +4 -0
- package/dist/use-cases/commands/{search-sharepoint-sites.d.ts → list-shared-with-me.d.ts} +3 -1
- package/dist/use-cases/commands/list-sharepoint-list-columns.d.ts +4 -0
- package/dist/use-cases/commands/list-sharepoint-list-item-versions.d.ts +4 -0
- package/dist/use-cases/commands/list-sharepoint-site-drives.d.ts +4 -6
- package/dist/use-cases/commands/list-sharepoint-site-list-items.d.ts +4 -7
- package/dist/use-cases/commands/list-sharepoint-site-lists.d.ts +9 -2
- package/dist/use-cases/commands/list-sharepoint-site-onenote-notebook-sections.d.ts +5 -0
- package/dist/use-cases/commands/list-sharepoint-site-onenote-notebooks.d.ts +5 -0
- package/dist/use-cases/commands/list-sharepoint-site-onenote-section-pages.d.ts +5 -0
- package/dist/use-cases/commands/list-sharepoint-site-pages.d.ts +4 -0
- package/dist/use-cases/commands/list-site-columns.d.ts +4 -0
- package/dist/use-cases/commands/list-site-content-types.d.ts +4 -0
- package/dist/use-cases/commands/list-specific-calendar-events.d.ts +4 -6
- package/dist/use-cases/commands/list-team-channels.d.ts +4 -6
- package/dist/use-cases/commands/{list-channel-messages.d.ts → list-team-installed-apps.d.ts} +3 -2
- package/dist/use-cases/commands/list-todo-linked-resources.d.ts +4 -7
- package/dist/use-cases/commands/list-todo-task-lists.d.ts +4 -4
- package/dist/use-cases/commands/list-todo-tasks-delta.d.ts +8 -0
- package/dist/use-cases/commands/list-todo-tasks.d.ts +10 -2
- package/dist/use-cases/commands/list-trending-insights.d.ts +4 -0
- package/dist/use-cases/commands/list-user-direct-reports.d.ts +4 -0
- package/dist/use-cases/commands/markdown-pipeline.d.ts +23 -0
- package/dist/use-cases/commands/microsoft-search-query.d.ts +8 -0
- package/dist/use-cases/commands/my-quick-context.d.ts +6 -0
- package/dist/use-cases/commands/next-page.d.ts +8 -0
- package/dist/use-cases/commands/odata-query.d.ts +90 -0
- package/dist/use-cases/commands/office-to-markdown.d.ts +6 -0
- package/dist/use-cases/commands/onenote-5k-limit.d.ts +3 -0
- package/dist/use-cases/commands/output-path.d.ts +37 -0
- package/dist/use-cases/commands/scopes-check.d.ts +6 -0
- package/dist/use-cases/commands/search-mail-messages.d.ts +5 -0
- package/dist/use-cases/commands/search-my-documents.d.ts +4 -0
- package/dist/use-cases/commands/search-onedrive-files.d.ts +4 -9
- package/dist/use-cases/commands/search-onenote-pages.d.ts +13 -0
- package/dist/use-cases/commands/search-sharepoint-sites-by-name.d.ts +4 -0
- package/dist/use-cases/commands/sharepoint-link-extractor.d.ts +14 -0
- package/dist/use-cases/commands/text-passthrough.d.ts +24 -0
- package/dist/use-cases/commands/update.d.ts +16 -0
- package/dist/use-cases/commands/version-id.d.ts +18 -0
- package/dist/use-cases/commands/xlsx-to-markdown.d.ts +6 -0
- package/dist/use-cases/ports/filesystem.d.ts +8 -0
- package/dist/use-cases/ports/process-runner.d.ts +11 -0
- package/docs/commands.json +6312 -0
- package/package.json +13 -3
- package/dist/use-cases/commands/get-channel-message-hosted-content.d.ts +0 -9
- package/dist/use-cases/commands/get-channel-message.d.ts +0 -8
- package/dist/use-cases/commands/get-chat-message-hosted-content.d.ts +0 -8
- package/dist/use-cases/commands/get-chat-message.d.ts +0 -7
- package/dist/use-cases/commands/get-outlook-contact.d.ts +0 -6
- package/dist/use-cases/commands/list-channel-message-hosted-contents.d.ts +0 -8
- package/dist/use-cases/commands/list-channel-message-replies.d.ts +0 -8
- package/dist/use-cases/commands/list-channel-tabs.d.ts +0 -7
- package/dist/use-cases/commands/list-chat-message-hosted-contents.d.ts +0 -7
- package/dist/use-cases/commands/list-chat-message-replies.d.ts +0 -7
- package/dist/use-cases/commands/list-chat-messages.d.ts +0 -6
- package/dist/use-cases/commands/list-pinned-chat-messages.d.ts +0 -6
- package/dist/use-cases/commands/list-team-members.d.ts +0 -6
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
listItemId: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
8
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
siteId: z.ZodString;
|
|
5
|
+
onenotePageId: z.ZodString;
|
|
4
6
|
}, z.core.$strip>;
|
|
5
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
siteId: z.ZodString;
|
|
4
|
-
baseItemId: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: Command['execute'];
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
userId: z.ZodString;
|
|
5
|
+
select: z.ZodOptional<z.ZodString>;
|
|
6
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const execute: Command['execute'];
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central Microsoft Graph permission scope map (audit round-8 Wave C).
|
|
3
|
+
*
|
|
4
|
+
* Source of truth: Microsoft Graph permissions reference
|
|
5
|
+
* (https://learn.microsoft.com/en-us/graph/permissions-reference). Each
|
|
6
|
+
* command's `graphDocsUrl` Learn page documents the required scope(s).
|
|
7
|
+
*
|
|
8
|
+
* Convention: list the LEAST-PRIVILEGED scope Microsoft documents for the
|
|
9
|
+
* delegated permissions path. When multiple alternatives exist (e.g.
|
|
10
|
+
* `Mail.Read` OR `Mail.ReadBasic` OR `Mail.ReadWrite`) we pick the most
|
|
11
|
+
* read-only choice. The basic Teams web client token grants ~30 scopes
|
|
12
|
+
* (`User.Read`, `Mail.Read`, `Calendars.Read`, `Files.Read`, `Tasks.Read`,
|
|
13
|
+
* `Notes.Read.All`, `Sites.Read.All`, `Group.Read.All`, `Team.ReadBasic.All`,
|
|
14
|
+
* `Channel.ReadBasic.All`, `People.Read`, `MailboxSettings.Read`, etc.). The
|
|
15
|
+
* M365ChatClient elevated identity adds `Chat.ReadBasic` and ODSP allow-list
|
|
16
|
+
* access (covered by `needsElevatedToken: true` per command).
|
|
17
|
+
*
|
|
18
|
+
* Surface: this map is read by `docs.ts toEntry` at manifest-render time
|
|
19
|
+
* and merged into each command's `scopesRequired`. Per-command inline
|
|
20
|
+
* `meta.scopesRequired` takes precedence (so command files can override).
|
|
21
|
+
* An LLM uses this with `scopes-check` to predict 403s pre-flight.
|
|
22
|
+
*
|
|
23
|
+
* Lifecycle / meta commands intentionally absent (empty array would imply
|
|
24
|
+
* "no scope needed" which is true for them but also true of `update`,
|
|
25
|
+
* `docs`, `help-json` — none of which call Graph).
|
|
26
|
+
*/
|
|
27
|
+
declare const GRAPH_SCOPES_BY_COMMAND: Readonly<Record<string, ReadonlyArray<string>>>;
|
|
28
|
+
declare const lookupScopes: (commandName: string) => ReadonlyArray<string> | undefined;
|
|
29
|
+
export { GRAPH_SCOPES_BY_COMMAND, lookupScopes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Email body HTML often references inline attachments via `cid:<id>`
|
|
3
|
+
* URLs (e.g. `<img src="cid:logo123">`). Those `cid:` refs are
|
|
4
|
+
* meaningless outside the original mail viewer. To make markdown /
|
|
5
|
+
* HTML output self-contained we replace each `cid:<id>` with a base64
|
|
6
|
+
* `data:` URI sourced from the matching inline attachment.
|
|
7
|
+
*
|
|
8
|
+
* Hardening #1: only `image/*` content-types are embedded. Anything
|
|
9
|
+
* else (`text/html`, `application/javascript`, ...) would let an
|
|
10
|
+
* attacker turn an attachment into an executable payload via the
|
|
11
|
+
* data URI; skip and leave the original `cid:` ref in place.
|
|
12
|
+
*/
|
|
13
|
+
type InlineAttachment = {
|
|
14
|
+
readonly contentId: string;
|
|
15
|
+
readonly contentType: string;
|
|
16
|
+
readonly contentBytes: string;
|
|
17
|
+
};
|
|
18
|
+
declare const embedInlineImages: (html: string, attachments: ReadonlyArray<InlineAttachment>) => string;
|
|
19
|
+
export { embedInlineImages };
|
|
20
|
+
export type { InlineAttachment };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
4
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: Command['execute'];
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
top: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
declare const execute: Command['execute'];
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
4
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
startDateTime: z.ZodString;
|
|
5
|
+
endDateTime: z.ZodString;
|
|
6
|
+
top: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const execute: Command['execute'];
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
4
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { execute, schema };
|
|
1
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: Command['execute'];
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
4
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
conversationId: z.ZodString;
|
|
5
|
+
select: z.ZodOptional<z.ZodString>;
|
|
6
|
+
top: z.ZodOptional<z.ZodString>;
|
|
7
|
+
skip: z.ZodOptional<z.ZodString>;
|
|
8
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const execute: Command['execute'];
|
|
11
|
+
declare const meta: CommandMeta;
|
|
12
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
4
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
8
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: (graph: import("../../index.js").GraphClient, params: Record<string, string>) => Promise<import("../../index.js").Result<unknown, import("../../index.js").GraphError>>;
|
|
3
|
+
declare const schema: import("./command-types.js").CommandSchema;
|
|
4
|
+
declare const meta: CommandMeta;
|
|
5
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
top: z.ZodOptional<z.ZodString>;
|
|
5
|
+
skip: z.ZodOptional<z.ZodString>;
|
|
6
|
+
select: z.ZodOptional<z.ZodString>;
|
|
7
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
8
|
+
orderby: z.ZodOptional<z.ZodString>;
|
|
9
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const execute: Command['execute'];
|
|
12
|
+
declare const meta: CommandMeta;
|
|
13
|
+
export { execute, meta, schema };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
todoTaskListId: z.ZodString;
|
|
5
|
+
top: z.ZodOptional<z.ZodString>;
|
|
6
|
+
skip: z.ZodOptional<z.ZodString>;
|
|
7
|
+
select: z.ZodOptional<z.ZodString>;
|
|
8
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
orderby: z.ZodOptional<z.ZodString>;
|
|
10
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const execute: Command['execute'];
|
|
13
|
+
declare const meta: CommandMeta;
|
|
14
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { Command, CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
messageId: z.ZodString;
|
|
5
|
+
top: z.ZodOptional<z.ZodString>;
|
|
6
|
+
skip: z.ZodOptional<z.ZodString>;
|
|
7
|
+
select: z.ZodOptional<z.ZodString>;
|
|
8
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
orderby: z.ZodOptional<z.ZodString>;
|
|
10
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
4
11
|
}, z.core.$strip>;
|
|
5
|
-
declare const execute:
|
|
6
|
-
|
|
12
|
+
declare const execute: Command['execute'];
|
|
13
|
+
declare const meta: CommandMeta;
|
|
14
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const schema:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
export { execute, schema };
|
|
1
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
|
+
declare const execute: import("./command-types.js").CommandExecute, schema: import("./command-types.js").CommandSchema;
|
|
3
|
+
declare const meta: CommandMeta;
|
|
4
|
+
export { execute, meta, schema };
|
package/dist/use-cases/commands/{get-sharepoint-sites-delta.d.ts → list-mail-folders-delta.d.ts}
RENAMED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|