google-mcp-suite 1.5.0 → 1.6.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/README.md +4 -4
- package/dist/docs/entities/ParagraphStyle.d.ts +33 -0
- package/dist/docs/entities/ParagraphStyle.d.ts.map +1 -0
- package/dist/docs/entities/ParagraphStyle.js +37 -0
- package/dist/docs/entities/ParagraphStyle.js.map +1 -0
- package/dist/docs/entities/TextStyle.d.ts +29 -0
- package/dist/docs/entities/TextStyle.d.ts.map +1 -0
- package/dist/docs/entities/TextStyle.js +32 -0
- package/dist/docs/entities/TextStyle.js.map +1 -0
- package/dist/docs/instructions.d.ts.map +1 -1
- package/dist/docs/instructions.js +4 -0
- package/dist/docs/instructions.js.map +1 -1
- package/dist/docs/lib/batch.d.ts +1 -1
- package/dist/docs/lib/batch.js +1 -1
- package/dist/docs/lib/batch.js.map +1 -1
- package/dist/docs/methods/create_paragraph_bullets/handler.d.ts +5 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.d.ts.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.js +8 -0
- package/dist/docs/methods/create_paragraph_bullets/handler.js.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/index.d.ts +35 -0
- package/dist/docs/methods/create_paragraph_bullets/index.d.ts.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/index.js +23 -0
- package/dist/docs/methods/create_paragraph_bullets/index.js.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.d.ts +32 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.d.ts.map +1 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.js +30 -0
- package/dist/docs/methods/create_paragraph_bullets/schema.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.d.ts +5 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.d.ts.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.js +8 -0
- package/dist/docs/methods/delete_paragraph_bullets/handler.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.d.ts +18 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.d.ts.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.js +23 -0
- package/dist/docs/methods/delete_paragraph_bullets/index.js.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts +15 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.d.ts.map +1 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.js +11 -0
- package/dist/docs/methods/delete_paragraph_bullets/schema.js.map +1 -0
- package/dist/docs/methods/registry.d.ts +96 -3
- package/dist/docs/methods/registry.d.ts.map +1 -1
- package/dist/docs/methods/registry.js +12 -3
- package/dist/docs/methods/registry.js.map +1 -1
- package/dist/docs/methods/update_paragraph_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_paragraph_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_paragraph_style/handler.js +16 -0
- package/dist/docs/methods/update_paragraph_style/handler.js.map +1 -0
- package/dist/docs/methods/update_paragraph_style/index.d.ts +37 -0
- package/dist/docs/methods/update_paragraph_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_paragraph_style/index.js +22 -0
- package/dist/docs/methods/update_paragraph_style/index.js.map +1 -0
- package/dist/docs/methods/update_paragraph_style/schema.d.ts +35 -0
- package/dist/docs/methods/update_paragraph_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_paragraph_style/schema.js +15 -0
- package/dist/docs/methods/update_paragraph_style/schema.js.map +1 -0
- package/dist/docs/methods/update_text_style/handler.d.ts +5 -0
- package/dist/docs/methods/update_text_style/handler.d.ts.map +1 -0
- package/dist/docs/methods/update_text_style/handler.js +26 -0
- package/dist/docs/methods/update_text_style/handler.js.map +1 -0
- package/dist/docs/methods/update_text_style/index.d.ts +32 -0
- package/dist/docs/methods/update_text_style/index.d.ts.map +1 -0
- package/dist/docs/methods/update_text_style/index.js +21 -0
- package/dist/docs/methods/update_text_style/index.js.map +1 -0
- package/dist/docs/methods/update_text_style/schema.d.ts +31 -0
- package/dist/docs/methods/update_text_style/schema.d.ts.map +1 -0
- package/dist/docs/methods/update_text_style/schema.js +15 -0
- package/dist/docs/methods/update_text_style/schema.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
32
|
<p align="center">
|
|
33
|
-
<sub><strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33 operations</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25 operations</a>), <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">15 operations</a>), and <strong>Docs</strong> (<a href="./src/docs/CAPABILITIES.md">
|
|
33
|
+
<sub><strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33 operations</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25 operations</a>), <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">15 operations</a>), and <strong>Docs</strong> (<a href="./src/docs/CAPABILITIES.md">9 operations</a>) ship today; Drive is on the way (shown dimmed).</sub>
|
|
34
34
|
</p>
|
|
35
35
|
|
|
36
36
|
## What it does
|
|
@@ -44,7 +44,7 @@ The design has two internal concepts and nothing else:
|
|
|
44
44
|
|
|
45
45
|
That is the whole surface. Read one operation folder and you understand all of them.
|
|
46
46
|
|
|
47
|
-
- **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17), Sheets with [15](./src/sheets/CAPABILITIES.md), and Docs with [
|
|
47
|
+
- **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17), Sheets with [15](./src/sheets/CAPABILITIES.md), and Docs with [9](./src/docs/CAPABILITIES.md) (Google publishes no MCP toolset for Sheets or Docs, so those are REST-sourced throughout); the split is explained in [MCP, and then some](#mcp-and-then-some).
|
|
48
48
|
- **The folder tree mirrors Google's docs.** A Google tools-list reference page becomes a `tools/` folder; a Google REST method reference page becomes a `methods/` folder. If you can find the operation in Google's docs, you can find it in this repo.
|
|
49
49
|
|
|
50
50
|
| Google's reference page | This repo's folder |
|
|
@@ -65,7 +65,7 @@ This is an MCP server, and deliberately more than one. Google publishes an MCP t
|
|
|
65
65
|
- **`tools/`** mirrors Google's **MCP toolset** reference, verbatim.
|
|
66
66
|
- **`methods/`** covers the broader **REST** reference, the operations the MCP toolset omits.
|
|
67
67
|
|
|
68
|
-
The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google publishes no MCP toolset for either, so those servers are methods-only ([15](./src/sheets/CAPABILITIES.md) and [
|
|
68
|
+
The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google publishes no MCP toolset for either, so those servers are methods-only ([15](./src/sheets/CAPABILITIES.md) and [9](./src/docs/CAPABILITIES.md) operations sourced entirely from the REST reference). Keeping the two sourced surfaces separate also makes each new operation a bounded, documentation-driven unit of work; the recipe is in [EXTENDING.md](./EXTENDING.md).
|
|
69
69
|
|
|
70
70
|
## Quickstart
|
|
71
71
|
|
|
@@ -173,7 +173,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full task list, [AGENTS.md](./A
|
|
|
173
173
|
| **Gmail** | ✅ Implemented | [33 operations](./src/gmail/CAPABILITIES.md): threads, messages, drafts, labels, filters, attachments |
|
|
174
174
|
| **Calendar** | ✅ Implemented | [25 operations](./src/calendar/CAPABILITIES.md): events, calendars, free/busy, and meeting-time suggestions |
|
|
175
175
|
| **Sheets** | ✅ Implemented | [15 operations](./src/sheets/CAPABILITIES.md): spreadsheets, values, batch and data-filter reads/writes, developer metadata |
|
|
176
|
-
| **Docs** | ✅ Implemented | [
|
|
176
|
+
| **Docs** | ✅ Implemented | [9 operations](./src/docs/CAPABILITIES.md): document reads and creation, curated text editing and styling |
|
|
177
177
|
| Drive | 🔜 Planned | files, folders, sharing, revisions |
|
|
178
178
|
|
|
179
179
|
Gmail is the reference (canary) implementation; Calendar is its first replication; Sheets and Docs are methods-only (Google publishes no MCP toolset for them); each new service mirrors the same shape.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The paragraph styling an agent can set on a range: a curated projection of
|
|
4
|
+
* the REST ParagraphStyle (indents, borders, shading, spacing modes, and
|
|
5
|
+
* direction stay in issue #35). Omitting a field leaves the existing style
|
|
6
|
+
* untouched, because the update's field mask is derived from the keys
|
|
7
|
+
* provided. Setting namedStyleType also resets other paragraph properties to
|
|
8
|
+
* match the named style, mirroring the Docs editor.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#ParagraphStyle
|
|
11
|
+
*/
|
|
12
|
+
export declare const ParagraphStyle: z.ZodObject<{
|
|
13
|
+
namedStyleType: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
NORMAL_TEXT: "NORMAL_TEXT";
|
|
15
|
+
TITLE: "TITLE";
|
|
16
|
+
SUBTITLE: "SUBTITLE";
|
|
17
|
+
HEADING_1: "HEADING_1";
|
|
18
|
+
HEADING_2: "HEADING_2";
|
|
19
|
+
HEADING_3: "HEADING_3";
|
|
20
|
+
HEADING_4: "HEADING_4";
|
|
21
|
+
HEADING_5: "HEADING_5";
|
|
22
|
+
HEADING_6: "HEADING_6";
|
|
23
|
+
}>>;
|
|
24
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
START: "START";
|
|
26
|
+
CENTER: "CENTER";
|
|
27
|
+
END: "END";
|
|
28
|
+
JUSTIFIED: "JUSTIFIED";
|
|
29
|
+
}>>;
|
|
30
|
+
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type ParagraphStyle = z.infer<typeof ParagraphStyle>;
|
|
33
|
+
//# sourceMappingURL=ParagraphStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParagraphStyle.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/ParagraphStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;iBA0BzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The paragraph styling an agent can set on a range: a curated projection of
|
|
4
|
+
* the REST ParagraphStyle (indents, borders, shading, spacing modes, and
|
|
5
|
+
* direction stay in issue #35). Omitting a field leaves the existing style
|
|
6
|
+
* untouched, because the update's field mask is derived from the keys
|
|
7
|
+
* provided. Setting namedStyleType also resets other paragraph properties to
|
|
8
|
+
* match the named style, mirroring the Docs editor.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#ParagraphStyle
|
|
11
|
+
*/
|
|
12
|
+
export const ParagraphStyle = z.object({
|
|
13
|
+
namedStyleType: z
|
|
14
|
+
.enum([
|
|
15
|
+
'NORMAL_TEXT',
|
|
16
|
+
'TITLE',
|
|
17
|
+
'SUBTITLE',
|
|
18
|
+
'HEADING_1',
|
|
19
|
+
'HEADING_2',
|
|
20
|
+
'HEADING_3',
|
|
21
|
+
'HEADING_4',
|
|
22
|
+
'HEADING_5',
|
|
23
|
+
'HEADING_6',
|
|
24
|
+
])
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('The named style type of the paragraph (headings, title, subtitle, normal text).'),
|
|
27
|
+
alignment: z
|
|
28
|
+
.enum(['START', 'CENTER', 'END', 'JUSTIFIED'])
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('The text alignment for the paragraph.'),
|
|
31
|
+
lineSpacing: z
|
|
32
|
+
.number()
|
|
33
|
+
.positive()
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('The amount of space between lines, as a percentage of normal (100 is single-spaced).'),
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=ParagraphStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParagraphStyle.js","sourceRoot":"","sources":["../../../src/docs/entities/ParagraphStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,cAAc,EAAE,CAAC;SACd,IAAI,CAAC;QACJ,aAAa;QACb,OAAO;QACP,UAAU;QACV,WAAW;QACX,WAAW;QACX,WAAW;QACX,WAAW;QACX,WAAW;QACX,WAAW;KACZ,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,iFAAiF,CAAC;IAC9F,SAAS,EAAE,CAAC;SACT,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;SAC7C,QAAQ,EAAE;SACV,QAAQ,CAAC,uCAAuC,CAAC;IACpD,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF,CACvF;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The paragraph styling an agent can set on a range: a curated projection of\n * the REST ParagraphStyle (indents, borders, shading, spacing modes, and\n * direction stay in issue #35). Omitting a field leaves the existing style\n * untouched, because the update's field mask is derived from the keys\n * provided. Setting namedStyleType also resets other paragraph properties to\n * match the named style, mirroring the Docs editor.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#ParagraphStyle\n */\nexport const ParagraphStyle = z.object({\n namedStyleType: z\n .enum([\n 'NORMAL_TEXT',\n 'TITLE',\n 'SUBTITLE',\n 'HEADING_1',\n 'HEADING_2',\n 'HEADING_3',\n 'HEADING_4',\n 'HEADING_5',\n 'HEADING_6',\n ])\n .optional()\n .describe('The named style type of the paragraph (headings, title, subtitle, normal text).'),\n alignment: z\n .enum(['START', 'CENTER', 'END', 'JUSTIFIED'])\n .optional()\n .describe('The text alignment for the paragraph.'),\n lineSpacing: z\n .number()\n .positive()\n .optional()\n .describe(\n 'The amount of space between lines, as a percentage of normal (100 is single-spaced).',\n ),\n});\n\nexport type ParagraphStyle = z.infer<typeof ParagraphStyle>;\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The character styling an agent can set on a range of text: a curated
|
|
4
|
+
* projection of the REST TextStyle (colors and font families stay in issue
|
|
5
|
+
* #35; tab, bookmark, and heading links ride with issue #36's tab work).
|
|
6
|
+
* Setting a boolean to false turns the style off; omitting a field leaves
|
|
7
|
+
* the existing style untouched, because the update's field mask is derived
|
|
8
|
+
* from the keys provided.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#TextStyle
|
|
11
|
+
*/
|
|
12
|
+
export declare const TextStyle: z.ZodObject<{
|
|
13
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
smallCaps: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
baselineOffset: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
NONE: "NONE";
|
|
20
|
+
SUPERSCRIPT: "SUPERSCRIPT";
|
|
21
|
+
SUBSCRIPT: "SUBSCRIPT";
|
|
22
|
+
}>>;
|
|
23
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type TextStyle = z.infer<typeof TextStyle>;
|
|
29
|
+
//# sourceMappingURL=TextStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyle.d.ts","sourceRoot":"","sources":["../../../src/docs/entities/TextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;iBAqBpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The character styling an agent can set on a range of text: a curated
|
|
4
|
+
* projection of the REST TextStyle (colors and font families stay in issue
|
|
5
|
+
* #35; tab, bookmark, and heading links ride with issue #36's tab work).
|
|
6
|
+
* Setting a boolean to false turns the style off; omitting a field leaves
|
|
7
|
+
* the existing style untouched, because the update's field mask is derived
|
|
8
|
+
* from the keys provided.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#TextStyle
|
|
11
|
+
*/
|
|
12
|
+
export const TextStyle = z.object({
|
|
13
|
+
bold: z.boolean().optional().describe('Whether the text is rendered as bold.'),
|
|
14
|
+
italic: z.boolean().optional().describe('Whether the text is italicized.'),
|
|
15
|
+
underline: z.boolean().optional().describe('Whether the text is underlined.'),
|
|
16
|
+
strikethrough: z.boolean().optional().describe('Whether the text is struck through.'),
|
|
17
|
+
smallCaps: z.boolean().optional().describe('Whether the text is in small capital letters.'),
|
|
18
|
+
baselineOffset: z
|
|
19
|
+
.enum(['NONE', 'SUPERSCRIPT', 'SUBSCRIPT'])
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("The text's vertical offset from its normal position; NONE resets a previous offset. Superscript and subscript text is automatically rendered smaller."),
|
|
22
|
+
fontSize: z
|
|
23
|
+
.number()
|
|
24
|
+
.positive()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe("The size of the text's font, in points (PT is the API's only unit)."),
|
|
27
|
+
link: z
|
|
28
|
+
.object({ url: z.string().describe('An external URL.') })
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('The hyperlink destination of the text.'),
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=TextStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyle.js","sourceRoot":"","sources":["../../../src/docs/entities/TextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC9E,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC1E,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC7E,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IACrF,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IAC3F,cAAc,EAAE,CAAC;SACd,IAAI,CAAC,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;SAC1C,QAAQ,EAAE;SACV,QAAQ,CACP,uJAAuJ,CACxJ;IACH,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,qEAAqE,CAAC;IAClF,IAAI,EAAE,CAAC;SACJ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;SACxD,QAAQ,EAAE;SACV,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The character styling an agent can set on a range of text: a curated\n * projection of the REST TextStyle (colors and font families stay in issue\n * #35; tab, bookmark, and heading links ride with issue #36's tab work).\n * Setting a boolean to false turns the style off; omitting a field leaves\n * the existing style untouched, because the update's field mask is derived\n * from the keys provided.\n *\n * @see https://developers.google.com/workspace/docs/api/reference/rest/v1/documents#TextStyle\n */\nexport const TextStyle = z.object({\n bold: z.boolean().optional().describe('Whether the text is rendered as bold.'),\n italic: z.boolean().optional().describe('Whether the text is italicized.'),\n underline: z.boolean().optional().describe('Whether the text is underlined.'),\n strikethrough: z.boolean().optional().describe('Whether the text is struck through.'),\n smallCaps: z.boolean().optional().describe('Whether the text is in small capital letters.'),\n baselineOffset: z\n .enum(['NONE', 'SUPERSCRIPT', 'SUBSCRIPT'])\n .optional()\n .describe(\n \"The text's vertical offset from its normal position; NONE resets a previous offset. Superscript and subscript text is automatically rendered smaller.\",\n ),\n fontSize: z\n .number()\n .positive()\n .optional()\n .describe(\"The size of the text's font, in points (PT is the API's only unit).\"),\n link: z\n .object({ url: z.string().describe('An external URL.') })\n .optional()\n .describe('The hyperlink destination of the text.'),\n});\n\nexport type TextStyle = z.infer<typeof TextStyle>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/docs/instructions.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/docs/instructions.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,QAmBkC,CAAC"}
|
|
@@ -18,6 +18,10 @@ export const instructions = identityInstructions('Google account') +
|
|
|
18
18
|
'insert_text with no index appends at the end of the ' +
|
|
19
19
|
'body, and body content starts at index 1. replace_all_text and ' +
|
|
20
20
|
'delete_content_range destroy the matched or ranged text irreversibly. ' +
|
|
21
|
+
'update_text_style and update_paragraph_style change only the style fields ' +
|
|
22
|
+
'you provide. delete_paragraph_bullets preserves the text; ' +
|
|
23
|
+
'create_paragraph_bullets consumes leading tabs to set nesting, so indices ' +
|
|
24
|
+
'can shift on first application. ' +
|
|
21
25
|
"The Docs API has no delete or list; removing a document is Drive's " +
|
|
22
26
|
'files.delete, and document creation takes only a title.';
|
|
23
27
|
//# sourceMappingURL=instructions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/docs/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,2EAA2E;IAC3E,wEAAwE;IACxE,UAAU,eAAe,8CAA8C;IACvE,4EAA4E;IAC5E,qEAAqE;IACrE,uEAAuE;IACvE,6EAA6E;IAC7E,yEAAyE;IACzE,kEAAkE;IAClE,sDAAsD;IACtD,iEAAiE;IACjE,wEAAwE;IACxE,qEAAqE;IACrE,yDAAyD,CAAC","sourcesContent":["/**\n * Served in the MCP initialize result; see `ServerOptions.instructions` in\n * src/lib/server.ts. A standalone module so tests can pin the content without\n * booting the server (index.ts's import side effect is `await server()`).\n */\nimport { SOURCE_META_KEY } from '../lib/operation.js';\nimport { identityInstructions } from '../lib/server.js';\n\nexport const instructions =\n identityInstructions('Google account') +\n 'Google publishes no MCP toolset for Docs, so every operation transcribes ' +\n 'the REST reference; each tools/list entry links its source page under ' +\n `_meta['${SOURCE_META_KEY}'] and carries the four MCP behavior hints. ` +\n 'get_document returns the body as text blocks with zero-based UTF-16 index ' +\n 'ranges; those ranges are what insert_text and delete_content_range ' +\n 'target, and they shift on every edit, so re-read the document before ' +\n 'computing new ranges. Non-text elements appear as U+FFFC placeholders, one ' +\n 'per UTF-16 unit, so block text length always equals its index span; an ' +\n 'emoji is two units, and ranges must not split a surrogate pair. ' +\n 'insert_text with no index appends at the end of the ' +\n 'body, and body content starts at index 1. replace_all_text and ' +\n 'delete_content_range destroy the matched or ranged text irreversibly. ' +\n \"The Docs API has no delete or list; removing a document is Drive's \" +\n 'files.delete, and document creation takes only a title.';\n"]}
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/docs/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,2EAA2E;IAC3E,wEAAwE;IACxE,UAAU,eAAe,8CAA8C;IACvE,4EAA4E;IAC5E,qEAAqE;IACrE,uEAAuE;IACvE,6EAA6E;IAC7E,yEAAyE;IACzE,kEAAkE;IAClE,sDAAsD;IACtD,iEAAiE;IACjE,wEAAwE;IACxE,4EAA4E;IAC5E,4DAA4D;IAC5D,4EAA4E;IAC5E,kCAAkC;IAClC,qEAAqE;IACrE,yDAAyD,CAAC","sourcesContent":["/**\n * Served in the MCP initialize result; see `ServerOptions.instructions` in\n * src/lib/server.ts. A standalone module so tests can pin the content without\n * booting the server (index.ts's import side effect is `await server()`).\n */\nimport { SOURCE_META_KEY } from '../lib/operation.js';\nimport { identityInstructions } from '../lib/server.js';\n\nexport const instructions =\n identityInstructions('Google account') +\n 'Google publishes no MCP toolset for Docs, so every operation transcribes ' +\n 'the REST reference; each tools/list entry links its source page under ' +\n `_meta['${SOURCE_META_KEY}'] and carries the four MCP behavior hints. ` +\n 'get_document returns the body as text blocks with zero-based UTF-16 index ' +\n 'ranges; those ranges are what insert_text and delete_content_range ' +\n 'target, and they shift on every edit, so re-read the document before ' +\n 'computing new ranges. Non-text elements appear as U+FFFC placeholders, one ' +\n 'per UTF-16 unit, so block text length always equals its index span; an ' +\n 'emoji is two units, and ranges must not split a surrogate pair. ' +\n 'insert_text with no index appends at the end of the ' +\n 'body, and body content starts at index 1. replace_all_text and ' +\n 'delete_content_range destroy the matched or ranged text irreversibly. ' +\n 'update_text_style and update_paragraph_style change only the style fields ' +\n 'you provide. delete_paragraph_bullets preserves the text; ' +\n 'create_paragraph_bullets consumes leading tabs to set nesting, so indices ' +\n 'can shift on first application. ' +\n \"The Docs API has no delete or list; removing a document is Drive's \" +\n 'files.delete, and document creation takes only a title.';\n"]}
|
package/dist/docs/lib/batch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { docs_v1 } from '@googleapis/docs';
|
|
2
2
|
/**
|
|
3
3
|
* Apply exactly one update request via `documents.batchUpdate`: the shared
|
|
4
|
-
* wrapper behind the curated
|
|
4
|
+
* wrapper behind the curated editing and styling operations (the rest of the
|
|
5
5
|
* 40-variant request union is issue #35). Replies map 1:1 with requests, so
|
|
6
6
|
* exactly one request means exactly one reply; surfacing it here keeps the
|
|
7
7
|
* `[0]` next to the invariant it depends on. Also returns the identity every
|
package/dist/docs/lib/batch.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Apply exactly one update request via `documents.batchUpdate`: the shared
|
|
3
|
-
* wrapper behind the curated
|
|
3
|
+
* wrapper behind the curated editing and styling operations (the rest of the
|
|
4
4
|
* 40-variant request union is issue #35). Replies map 1:1 with requests, so
|
|
5
5
|
* exactly one request means exactly one reply; surfacing it here keeps the
|
|
6
6
|
* `[0]` next to the invariant it depends on. Also returns the identity every
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../src/docs/lib/batch.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,IAAkB,EAClB,UAAkB,EAClB,OAA+B;IAM/B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QAChD,UAAU;QACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;KACrC,CAAC,CAAC;IACH,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACxB,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,UAAU;QACzC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,kBAAkB,IAAI,SAAS;KAC/D,CAAC;AACJ,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\n\n/**\n * Apply exactly one update request via `documents.batchUpdate`: the shared\n * wrapper behind the curated
|
|
1
|
+
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../src/docs/lib/batch.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,IAAkB,EAClB,UAAkB,EAClB,OAA+B;IAM/B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QAChD,UAAU;QACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;KACrC,CAAC,CAAC;IACH,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACxB,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,UAAU;QACzC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,kBAAkB,IAAI,SAAS;KAC/D,CAAC;AACJ,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\n\n/**\n * Apply exactly one update request via `documents.batchUpdate`: the shared\n * wrapper behind the curated editing and styling operations (the rest of the\n * 40-variant request union is issue #35). Replies map 1:1 with requests, so\n * exactly one request means exactly one reply; surfacing it here keeps the\n * `[0]` next to the invariant it depends on. Also returns the identity every\n * write reports: the document id and, when Google supplies one, the\n * post-write revision.\n */\nexport async function applyUpdate(\n docs: docs_v1.Docs,\n documentId: string,\n request: docs_v1.Schema$Request,\n): Promise<{\n reply: docs_v1.Schema$Response | undefined;\n documentId: string;\n revisionId: string | undefined;\n}> {\n const { data } = await docs.documents.batchUpdate({\n documentId,\n requestBody: { requests: [request] },\n });\n return {\n reply: data.replies?.[0],\n documentId: data.documentId ?? documentId,\n revisionId: data.writeControl?.requiredRevisionId ?? undefined,\n };\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { docs_v1 } from '@googleapis/docs';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(docs: docs_v1.Docs, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/create_paragraph_bullets/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAKxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { applyUpdate } from '../../lib/batch.js';
|
|
2
|
+
export async function handler(docs, args) {
|
|
3
|
+
const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {
|
|
4
|
+
createParagraphBullets: { range: args.range, bulletPreset: args.bulletPreset },
|
|
5
|
+
});
|
|
6
|
+
return { documentId, revisionId };
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/docs/methods/create_paragraph_bullets/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,IAAkB,EAClB,IAAkC;IAElC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE;QAC1E,sBAAsB,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE;KAC/E,CAAC,CAAC;IACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\nimport type { z } from 'zod';\nimport { applyUpdate } from '../../lib/batch.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n docs: docs_v1.Docs,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {\n createParagraphBullets: { range: args.range, bulletPreset: args.bulletPreset },\n });\n return { documentId, revisionId };\n}\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One CreateParagraphBulletsRequest applied via `documents.batchUpdate` (the
|
|
3
|
+
* curated subset; issue #35). Nesting levels come from each paragraph's
|
|
4
|
+
* leading tabs, which the API consumes on first application, so indices can
|
|
5
|
+
* shift; a repeat then finds no tabs left and changes nothing, which is why
|
|
6
|
+
* the idempotent hint holds despite the first-run shift.
|
|
7
|
+
*/
|
|
8
|
+
export declare const create_paragraph_bullets: import("../../../lib/operation.js").Operation<import("@googleapis/docs").docs_v1.Docs, import("zod").ZodObject<{
|
|
9
|
+
documentId: import("zod").ZodString;
|
|
10
|
+
range: import("zod").ZodObject<{
|
|
11
|
+
startIndex: import("zod").ZodNumber;
|
|
12
|
+
endIndex: import("zod").ZodNumber;
|
|
13
|
+
}, import("zod/v4/core").$strip>;
|
|
14
|
+
bulletPreset: import("zod").ZodEnum<{
|
|
15
|
+
BULLET_DISC_CIRCLE_SQUARE: "BULLET_DISC_CIRCLE_SQUARE";
|
|
16
|
+
BULLET_DIAMONDX_ARROW3D_SQUARE: "BULLET_DIAMONDX_ARROW3D_SQUARE";
|
|
17
|
+
BULLET_CHECKBOX: "BULLET_CHECKBOX";
|
|
18
|
+
BULLET_ARROW_DIAMOND_DISC: "BULLET_ARROW_DIAMOND_DISC";
|
|
19
|
+
BULLET_STAR_CIRCLE_SQUARE: "BULLET_STAR_CIRCLE_SQUARE";
|
|
20
|
+
BULLET_ARROW3D_CIRCLE_SQUARE: "BULLET_ARROW3D_CIRCLE_SQUARE";
|
|
21
|
+
BULLET_LEFTTRIANGLE_DIAMOND_DISC: "BULLET_LEFTTRIANGLE_DIAMOND_DISC";
|
|
22
|
+
BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE: "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE";
|
|
23
|
+
BULLET_DIAMOND_CIRCLE_SQUARE: "BULLET_DIAMOND_CIRCLE_SQUARE";
|
|
24
|
+
NUMBERED_DECIMAL_ALPHA_ROMAN: "NUMBERED_DECIMAL_ALPHA_ROMAN";
|
|
25
|
+
NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS: "NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS";
|
|
26
|
+
NUMBERED_DECIMAL_NESTED: "NUMBERED_DECIMAL_NESTED";
|
|
27
|
+
NUMBERED_UPPERALPHA_ALPHA_ROMAN: "NUMBERED_UPPERALPHA_ALPHA_ROMAN";
|
|
28
|
+
NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL: "NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL";
|
|
29
|
+
NUMBERED_ZERODECIMAL_ALPHA_ROMAN: "NUMBERED_ZERODECIMAL_ALPHA_ROMAN";
|
|
30
|
+
}>;
|
|
31
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
32
|
+
documentId: import("zod").ZodString;
|
|
33
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
}, import("zod/v4/core").$strip>>;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/create_paragraph_bullets/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;iCAanC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { docsOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* One CreateParagraphBulletsRequest applied via `documents.batchUpdate` (the
|
|
6
|
+
* curated subset; issue #35). Nesting levels come from each paragraph's
|
|
7
|
+
* leading tabs, which the API consumes on first application, so indices can
|
|
8
|
+
* shift; a repeat then finds no tabs left and changes nothing, which is why
|
|
9
|
+
* the idempotent hint holds despite the first-run shift.
|
|
10
|
+
*/
|
|
11
|
+
export const create_paragraph_bullets = docsOperation({
|
|
12
|
+
description: 'Turn the paragraphs a range overlaps into a bulleted or numbered list, using a glyph preset; leading tabs determine nesting.',
|
|
13
|
+
annotations: {
|
|
14
|
+
readOnlyHint: false,
|
|
15
|
+
destructiveHint: false,
|
|
16
|
+
idempotentHint: true,
|
|
17
|
+
openWorldHint: false,
|
|
18
|
+
},
|
|
19
|
+
source: 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#CreateParagraphBulletsRequest',
|
|
20
|
+
schema,
|
|
21
|
+
handler,
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/docs/methods/create_paragraph_bullets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC;IACpD,WAAW,EACT,8HAA8H;IAChI,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,oHAAoH;IACtH,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { docsOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * One CreateParagraphBulletsRequest applied via `documents.batchUpdate` (the\n * curated subset; issue #35). Nesting levels come from each paragraph's\n * leading tabs, which the API consumes on first application, so indices can\n * shift; a repeat then finds no tabs left and changes nothing, which is why\n * the idempotent hint holds despite the first-run shift.\n */\nexport const create_paragraph_bullets = docsOperation({\n description:\n 'Turn the paragraphs a range overlaps into a bulleted or numbered list, using a glyph preset; leading tabs determine nesting.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#CreateParagraphBulletsRequest',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
documentId: z.ZodString;
|
|
5
|
+
range: z.ZodObject<{
|
|
6
|
+
startIndex: z.ZodNumber;
|
|
7
|
+
endIndex: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
bulletPreset: z.ZodEnum<{
|
|
10
|
+
BULLET_DISC_CIRCLE_SQUARE: "BULLET_DISC_CIRCLE_SQUARE";
|
|
11
|
+
BULLET_DIAMONDX_ARROW3D_SQUARE: "BULLET_DIAMONDX_ARROW3D_SQUARE";
|
|
12
|
+
BULLET_CHECKBOX: "BULLET_CHECKBOX";
|
|
13
|
+
BULLET_ARROW_DIAMOND_DISC: "BULLET_ARROW_DIAMOND_DISC";
|
|
14
|
+
BULLET_STAR_CIRCLE_SQUARE: "BULLET_STAR_CIRCLE_SQUARE";
|
|
15
|
+
BULLET_ARROW3D_CIRCLE_SQUARE: "BULLET_ARROW3D_CIRCLE_SQUARE";
|
|
16
|
+
BULLET_LEFTTRIANGLE_DIAMOND_DISC: "BULLET_LEFTTRIANGLE_DIAMOND_DISC";
|
|
17
|
+
BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE: "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE";
|
|
18
|
+
BULLET_DIAMOND_CIRCLE_SQUARE: "BULLET_DIAMOND_CIRCLE_SQUARE";
|
|
19
|
+
NUMBERED_DECIMAL_ALPHA_ROMAN: "NUMBERED_DECIMAL_ALPHA_ROMAN";
|
|
20
|
+
NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS: "NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS";
|
|
21
|
+
NUMBERED_DECIMAL_NESTED: "NUMBERED_DECIMAL_NESTED";
|
|
22
|
+
NUMBERED_UPPERALPHA_ALPHA_ROMAN: "NUMBERED_UPPERALPHA_ALPHA_ROMAN";
|
|
23
|
+
NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL: "NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL";
|
|
24
|
+
NUMBERED_ZERODECIMAL_ALPHA_ROMAN: "NUMBERED_ZERODECIMAL_ALPHA_ROMAN";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
output: z.ZodObject<{
|
|
28
|
+
documentId: z.ZodString;
|
|
29
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/create_paragraph_bullets/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BlB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';
|
|
3
|
+
import { Range } from '../../entities/Range.js';
|
|
4
|
+
export const schema = {
|
|
5
|
+
input: z.object({
|
|
6
|
+
documentId: z.string().describe('The ID of the document to update.'),
|
|
7
|
+
range: Range.describe('The range to apply the bullet preset to.'),
|
|
8
|
+
bulletPreset: z
|
|
9
|
+
.enum([
|
|
10
|
+
'BULLET_DISC_CIRCLE_SQUARE',
|
|
11
|
+
'BULLET_DIAMONDX_ARROW3D_SQUARE',
|
|
12
|
+
'BULLET_CHECKBOX',
|
|
13
|
+
'BULLET_ARROW_DIAMOND_DISC',
|
|
14
|
+
'BULLET_STAR_CIRCLE_SQUARE',
|
|
15
|
+
'BULLET_ARROW3D_CIRCLE_SQUARE',
|
|
16
|
+
'BULLET_LEFTTRIANGLE_DIAMOND_DISC',
|
|
17
|
+
'BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE',
|
|
18
|
+
'BULLET_DIAMOND_CIRCLE_SQUARE',
|
|
19
|
+
'NUMBERED_DECIMAL_ALPHA_ROMAN',
|
|
20
|
+
'NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS',
|
|
21
|
+
'NUMBERED_DECIMAL_NESTED',
|
|
22
|
+
'NUMBERED_UPPERALPHA_ALPHA_ROMAN',
|
|
23
|
+
'NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL',
|
|
24
|
+
'NUMBERED_ZERODECIMAL_ALPHA_ROMAN',
|
|
25
|
+
])
|
|
26
|
+
.describe('The kinds of bullet glyphs to use, named by the glyphs of the first three nesting levels: BULLET_* presets are unordered lists, NUMBERED_* presets ordered lists.'),
|
|
27
|
+
}),
|
|
28
|
+
output: BatchUpdateReceipt,
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/docs/methods/create_paragraph_bullets/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACpE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QACjE,YAAY,EAAE,CAAC;aACZ,IAAI,CAAC;YACJ,2BAA2B;YAC3B,gCAAgC;YAChC,iBAAiB;YACjB,2BAA2B;YAC3B,2BAA2B;YAC3B,8BAA8B;YAC9B,kCAAkC;YAClC,sCAAsC;YACtC,8BAA8B;YAC9B,8BAA8B;YAC9B,qCAAqC;YACrC,yBAAyB;YACzB,iCAAiC;YACjC,wCAAwC;YACxC,kCAAkC;SACnC,CAAC;aACD,QAAQ,CACP,mKAAmK,CACpK;KACJ,CAAC;IACF,MAAM,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';\nimport { Range } from '../../entities/Range.js';\n\nexport const schema = {\n input: z.object({\n documentId: z.string().describe('The ID of the document to update.'),\n range: Range.describe('The range to apply the bullet preset to.'),\n bulletPreset: z\n .enum([\n 'BULLET_DISC_CIRCLE_SQUARE',\n 'BULLET_DIAMONDX_ARROW3D_SQUARE',\n 'BULLET_CHECKBOX',\n 'BULLET_ARROW_DIAMOND_DISC',\n 'BULLET_STAR_CIRCLE_SQUARE',\n 'BULLET_ARROW3D_CIRCLE_SQUARE',\n 'BULLET_LEFTTRIANGLE_DIAMOND_DISC',\n 'BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE',\n 'BULLET_DIAMOND_CIRCLE_SQUARE',\n 'NUMBERED_DECIMAL_ALPHA_ROMAN',\n 'NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS',\n 'NUMBERED_DECIMAL_NESTED',\n 'NUMBERED_UPPERALPHA_ALPHA_ROMAN',\n 'NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL',\n 'NUMBERED_ZERODECIMAL_ALPHA_ROMAN',\n ])\n .describe(\n 'The kinds of bullet glyphs to use, named by the glyphs of the first three nesting levels: BULLET_* presets are unordered lists, NUMBERED_* presets ordered lists.',\n ),\n }),\n output: BatchUpdateReceipt,\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { docs_v1 } from '@googleapis/docs';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(docs: docs_v1.Docs, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/delete_paragraph_bullets/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAKxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { applyUpdate } from '../../lib/batch.js';
|
|
2
|
+
export async function handler(docs, args) {
|
|
3
|
+
const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {
|
|
4
|
+
deleteParagraphBullets: { range: args.range },
|
|
5
|
+
});
|
|
6
|
+
return { documentId, revisionId };
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/docs/methods/delete_paragraph_bullets/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,IAAkB,EAClB,IAAkC;IAElC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE;QAC1E,sBAAsB,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;KAC9C,CAAC,CAAC;IACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\nimport type { z } from 'zod';\nimport { applyUpdate } from '../../lib/batch.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n docs: docs_v1.Docs,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {\n deleteParagraphBullets: { range: args.range },\n });\n return { documentId, revisionId };\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One DeleteParagraphBulletsRequest applied via `documents.batchUpdate` (the
|
|
3
|
+
* curated subset; issue #35). A removal, so destructive per the rubric
|
|
4
|
+
* (Google's unlabel precedent: reversible removals still count), and
|
|
5
|
+
* idempotent: bullets occupy no body indices, the text is preserved, and a
|
|
6
|
+
* repeat on unbulleted paragraphs is a no-op.
|
|
7
|
+
*/
|
|
8
|
+
export declare const delete_paragraph_bullets: import("../../../lib/operation.js").Operation<import("@googleapis/docs").docs_v1.Docs, import("zod").ZodObject<{
|
|
9
|
+
documentId: import("zod").ZodString;
|
|
10
|
+
range: import("zod").ZodObject<{
|
|
11
|
+
startIndex: import("zod").ZodNumber;
|
|
12
|
+
endIndex: import("zod").ZodNumber;
|
|
13
|
+
}, import("zod/v4/core").$strip>;
|
|
14
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
15
|
+
documentId: import("zod").ZodString;
|
|
16
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
}, import("zod/v4/core").$strip>>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/delete_paragraph_bullets/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;iCAanC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { docsOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* One DeleteParagraphBulletsRequest applied via `documents.batchUpdate` (the
|
|
6
|
+
* curated subset; issue #35). A removal, so destructive per the rubric
|
|
7
|
+
* (Google's unlabel precedent: reversible removals still count), and
|
|
8
|
+
* idempotent: bullets occupy no body indices, the text is preserved, and a
|
|
9
|
+
* repeat on unbulleted paragraphs is a no-op.
|
|
10
|
+
*/
|
|
11
|
+
export const delete_paragraph_bullets = docsOperation({
|
|
12
|
+
description: 'Remove bullets from the paragraphs a range overlaps; the text is preserved and the paragraphs leave their list.',
|
|
13
|
+
annotations: {
|
|
14
|
+
readOnlyHint: false,
|
|
15
|
+
destructiveHint: true,
|
|
16
|
+
idempotentHint: true,
|
|
17
|
+
openWorldHint: false,
|
|
18
|
+
},
|
|
19
|
+
source: 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#DeleteParagraphBulletsRequest',
|
|
20
|
+
schema,
|
|
21
|
+
handler,
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/docs/methods/delete_paragraph_bullets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC;IACpD,WAAW,EACT,iHAAiH;IACnH,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,oHAAoH;IACtH,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { docsOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * One DeleteParagraphBulletsRequest applied via `documents.batchUpdate` (the\n * curated subset; issue #35). A removal, so destructive per the rubric\n * (Google's unlabel precedent: reversible removals still count), and\n * idempotent: bullets occupy no body indices, the text is preserved, and a\n * repeat on unbulleted paragraphs is a no-op.\n */\nexport const delete_paragraph_bullets = docsOperation({\n description:\n 'Remove bullets from the paragraphs a range overlaps; the text is preserved and the paragraphs leave their list.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#DeleteParagraphBulletsRequest',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
documentId: z.ZodString;
|
|
5
|
+
range: z.ZodObject<{
|
|
6
|
+
startIndex: z.ZodNumber;
|
|
7
|
+
endIndex: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
output: z.ZodObject<{
|
|
11
|
+
documentId: z.ZodString;
|
|
12
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/delete_paragraph_bullets/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,MAAM;;;;;;;;;;;;CAMlB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';
|
|
3
|
+
import { Range } from '../../entities/Range.js';
|
|
4
|
+
export const schema = {
|
|
5
|
+
input: z.object({
|
|
6
|
+
documentId: z.string().describe('The ID of the document to update.'),
|
|
7
|
+
range: Range.describe('The range to delete bullets from.'),
|
|
8
|
+
}),
|
|
9
|
+
output: BatchUpdateReceipt,
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/docs/methods/delete_paragraph_bullets/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACpE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';\nimport { Range } from '../../entities/Range.js';\n\nexport const schema = {\n input: z.object({\n documentId: z.string().describe('The ID of the document to update.'),\n range: Range.describe('The range to delete bullets from.'),\n }),\n output: BatchUpdateReceipt,\n};\n"]}
|
|
@@ -3,9 +3,9 @@ import type { docs_v1 } from '@googleapis/docs';
|
|
|
3
3
|
* REST-sourced operations, from
|
|
4
4
|
* `developers.google.com/workspace/docs/api/reference/rest`. Google publishes
|
|
5
5
|
* no MCP toolset for Docs, so there is no `tools/` folder and this registry is
|
|
6
|
-
* the service's whole wire surface. The
|
|
7
|
-
* wrap `documents.batchUpdate` with exactly one request type;
|
|
8
|
-
* 40-variant union is issue #35.
|
|
6
|
+
* the service's whole wire surface. The curated editing and styling
|
|
7
|
+
* operations each wrap `documents.batchUpdate` with exactly one request type;
|
|
8
|
+
* the rest of the 40-variant union is issue #35.
|
|
9
9
|
*/
|
|
10
10
|
export declare const methods: {
|
|
11
11
|
get_document: import("../../lib/operation.js").Operation<docs_v1.Docs, import("zod").ZodObject<{
|
|
@@ -78,5 +78,98 @@ export declare const methods: {
|
|
|
78
78
|
documentId: import("zod").ZodString;
|
|
79
79
|
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
80
|
}, import("zod/v4/core").$strip>>;
|
|
81
|
+
update_text_style: import("../../lib/operation.js").Operation<docs_v1.Docs, import("zod").ZodObject<{
|
|
82
|
+
documentId: import("zod").ZodString;
|
|
83
|
+
range: import("zod").ZodObject<{
|
|
84
|
+
startIndex: import("zod").ZodNumber;
|
|
85
|
+
endIndex: import("zod").ZodNumber;
|
|
86
|
+
}, import("zod/v4/core").$strip>;
|
|
87
|
+
textStyle: import("zod").ZodObject<{
|
|
88
|
+
bold: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
89
|
+
italic: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
90
|
+
underline: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
91
|
+
strikethrough: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
92
|
+
smallCaps: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
93
|
+
baselineOffset: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
94
|
+
NONE: "NONE";
|
|
95
|
+
SUPERSCRIPT: "SUPERSCRIPT";
|
|
96
|
+
SUBSCRIPT: "SUBSCRIPT";
|
|
97
|
+
}>>;
|
|
98
|
+
fontSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
99
|
+
link: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
100
|
+
url: import("zod").ZodString;
|
|
101
|
+
}, import("zod/v4/core").$strip>>;
|
|
102
|
+
}, import("zod/v4/core").$strip>;
|
|
103
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
104
|
+
documentId: import("zod").ZodString;
|
|
105
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
106
|
+
}, import("zod/v4/core").$strip>>;
|
|
107
|
+
update_paragraph_style: import("../../lib/operation.js").Operation<docs_v1.Docs, import("zod").ZodObject<{
|
|
108
|
+
documentId: import("zod").ZodString;
|
|
109
|
+
range: import("zod").ZodObject<{
|
|
110
|
+
startIndex: import("zod").ZodNumber;
|
|
111
|
+
endIndex: import("zod").ZodNumber;
|
|
112
|
+
}, import("zod/v4/core").$strip>;
|
|
113
|
+
paragraphStyle: import("zod").ZodObject<{
|
|
114
|
+
namedStyleType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
115
|
+
NORMAL_TEXT: "NORMAL_TEXT";
|
|
116
|
+
TITLE: "TITLE";
|
|
117
|
+
SUBTITLE: "SUBTITLE";
|
|
118
|
+
HEADING_1: "HEADING_1";
|
|
119
|
+
HEADING_2: "HEADING_2";
|
|
120
|
+
HEADING_3: "HEADING_3";
|
|
121
|
+
HEADING_4: "HEADING_4";
|
|
122
|
+
HEADING_5: "HEADING_5";
|
|
123
|
+
HEADING_6: "HEADING_6";
|
|
124
|
+
}>>;
|
|
125
|
+
alignment: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
126
|
+
START: "START";
|
|
127
|
+
CENTER: "CENTER";
|
|
128
|
+
END: "END";
|
|
129
|
+
JUSTIFIED: "JUSTIFIED";
|
|
130
|
+
}>>;
|
|
131
|
+
lineSpacing: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
132
|
+
}, import("zod/v4/core").$strip>;
|
|
133
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
134
|
+
documentId: import("zod").ZodString;
|
|
135
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
136
|
+
}, import("zod/v4/core").$strip>>;
|
|
137
|
+
create_paragraph_bullets: import("../../lib/operation.js").Operation<docs_v1.Docs, import("zod").ZodObject<{
|
|
138
|
+
documentId: import("zod").ZodString;
|
|
139
|
+
range: import("zod").ZodObject<{
|
|
140
|
+
startIndex: import("zod").ZodNumber;
|
|
141
|
+
endIndex: import("zod").ZodNumber;
|
|
142
|
+
}, import("zod/v4/core").$strip>;
|
|
143
|
+
bulletPreset: import("zod").ZodEnum<{
|
|
144
|
+
BULLET_DISC_CIRCLE_SQUARE: "BULLET_DISC_CIRCLE_SQUARE";
|
|
145
|
+
BULLET_DIAMONDX_ARROW3D_SQUARE: "BULLET_DIAMONDX_ARROW3D_SQUARE";
|
|
146
|
+
BULLET_CHECKBOX: "BULLET_CHECKBOX";
|
|
147
|
+
BULLET_ARROW_DIAMOND_DISC: "BULLET_ARROW_DIAMOND_DISC";
|
|
148
|
+
BULLET_STAR_CIRCLE_SQUARE: "BULLET_STAR_CIRCLE_SQUARE";
|
|
149
|
+
BULLET_ARROW3D_CIRCLE_SQUARE: "BULLET_ARROW3D_CIRCLE_SQUARE";
|
|
150
|
+
BULLET_LEFTTRIANGLE_DIAMOND_DISC: "BULLET_LEFTTRIANGLE_DIAMOND_DISC";
|
|
151
|
+
BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE: "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE";
|
|
152
|
+
BULLET_DIAMOND_CIRCLE_SQUARE: "BULLET_DIAMOND_CIRCLE_SQUARE";
|
|
153
|
+
NUMBERED_DECIMAL_ALPHA_ROMAN: "NUMBERED_DECIMAL_ALPHA_ROMAN";
|
|
154
|
+
NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS: "NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS";
|
|
155
|
+
NUMBERED_DECIMAL_NESTED: "NUMBERED_DECIMAL_NESTED";
|
|
156
|
+
NUMBERED_UPPERALPHA_ALPHA_ROMAN: "NUMBERED_UPPERALPHA_ALPHA_ROMAN";
|
|
157
|
+
NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL: "NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL";
|
|
158
|
+
NUMBERED_ZERODECIMAL_ALPHA_ROMAN: "NUMBERED_ZERODECIMAL_ALPHA_ROMAN";
|
|
159
|
+
}>;
|
|
160
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
161
|
+
documentId: import("zod").ZodString;
|
|
162
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
163
|
+
}, import("zod/v4/core").$strip>>;
|
|
164
|
+
delete_paragraph_bullets: import("../../lib/operation.js").Operation<docs_v1.Docs, import("zod").ZodObject<{
|
|
165
|
+
documentId: import("zod").ZodString;
|
|
166
|
+
range: import("zod").ZodObject<{
|
|
167
|
+
startIndex: import("zod").ZodNumber;
|
|
168
|
+
endIndex: import("zod").ZodNumber;
|
|
169
|
+
}, import("zod/v4/core").$strip>;
|
|
170
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
171
|
+
documentId: import("zod").ZodString;
|
|
172
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
}, import("zod/v4/core").$strip>>;
|
|
81
174
|
};
|
|
82
175
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/docs/methods/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/docs/methods/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAYhD;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAakC,CAAC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { create_document } from './create_document/index.js';
|
|
2
|
+
import { create_paragraph_bullets } from './create_paragraph_bullets/index.js';
|
|
2
3
|
import { delete_content_range } from './delete_content_range/index.js';
|
|
4
|
+
import { delete_paragraph_bullets } from './delete_paragraph_bullets/index.js';
|
|
3
5
|
import { get_document } from './get_document/index.js';
|
|
4
6
|
import { insert_text } from './insert_text/index.js';
|
|
5
7
|
import { replace_all_text } from './replace_all_text/index.js';
|
|
8
|
+
import { update_paragraph_style } from './update_paragraph_style/index.js';
|
|
9
|
+
import { update_text_style } from './update_text_style/index.js';
|
|
6
10
|
/**
|
|
7
11
|
* REST-sourced operations, from
|
|
8
12
|
* `developers.google.com/workspace/docs/api/reference/rest`. Google publishes
|
|
9
13
|
* no MCP toolset for Docs, so there is no `tools/` folder and this registry is
|
|
10
|
-
* the service's whole wire surface. The
|
|
11
|
-
* wrap `documents.batchUpdate` with exactly one request type;
|
|
12
|
-
* 40-variant union is issue #35.
|
|
14
|
+
* the service's whole wire surface. The curated editing and styling
|
|
15
|
+
* operations each wrap `documents.batchUpdate` with exactly one request type;
|
|
16
|
+
* the rest of the 40-variant union is issue #35.
|
|
13
17
|
*/
|
|
14
18
|
export const methods = {
|
|
15
19
|
// documents
|
|
@@ -19,5 +23,10 @@ export const methods = {
|
|
|
19
23
|
insert_text,
|
|
20
24
|
replace_all_text,
|
|
21
25
|
delete_content_range,
|
|
26
|
+
// styling (curated batchUpdate requests)
|
|
27
|
+
update_text_style,
|
|
28
|
+
update_paragraph_style,
|
|
29
|
+
create_paragraph_bullets,
|
|
30
|
+
delete_paragraph_bullets,
|
|
22
31
|
};
|
|
23
32
|
//# sourceMappingURL=registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/docs/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/docs/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,8CAA8C;IAC9C,WAAW;IACX,gBAAgB;IAChB,oBAAoB;IACpB,yCAAyC;IACzC,iBAAiB;IACjB,sBAAsB;IACtB,wBAAwB;IACxB,wBAAwB;CAC4B,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\nimport type { AnyOperation } from '../../lib/operation.js';\nimport { create_document } from './create_document/index.js';\nimport { create_paragraph_bullets } from './create_paragraph_bullets/index.js';\nimport { delete_content_range } from './delete_content_range/index.js';\nimport { delete_paragraph_bullets } from './delete_paragraph_bullets/index.js';\nimport { get_document } from './get_document/index.js';\nimport { insert_text } from './insert_text/index.js';\nimport { replace_all_text } from './replace_all_text/index.js';\nimport { update_paragraph_style } from './update_paragraph_style/index.js';\nimport { update_text_style } from './update_text_style/index.js';\n\n/**\n * REST-sourced operations, from\n * `developers.google.com/workspace/docs/api/reference/rest`. Google publishes\n * no MCP toolset for Docs, so there is no `tools/` folder and this registry is\n * the service's whole wire surface. The curated editing and styling\n * operations each wrap `documents.batchUpdate` with exactly one request type;\n * the rest of the 40-variant union is issue #35.\n */\nexport const methods = {\n // documents\n get_document,\n create_document,\n // text editing (curated batchUpdate requests)\n insert_text,\n replace_all_text,\n delete_content_range,\n // styling (curated batchUpdate requests)\n update_text_style,\n update_paragraph_style,\n create_paragraph_bullets,\n delete_paragraph_bullets,\n} satisfies Record<string, AnyOperation<docs_v1.Docs>>;\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { docs_v1 } from '@googleapis/docs';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(docs: docs_v1.Docs, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/update_paragraph_style/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAYxC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { applyUpdate } from '../../lib/batch.js';
|
|
3
|
+
export async function handler(docs, args) {
|
|
4
|
+
const { paragraphStyle } = args;
|
|
5
|
+
const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {
|
|
6
|
+
updateParagraphStyle: {
|
|
7
|
+
range: args.range,
|
|
8
|
+
paragraphStyle: forGoogle(paragraphStyle),
|
|
9
|
+
// Derived from the provided keys (the REST JSON field names), so mask
|
|
10
|
+
// and values cannot desync.
|
|
11
|
+
fields: Object.keys(paragraphStyle).join(','),
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
return { documentId, revisionId };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/docs/methods/update_paragraph_style/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,IAAkB,EAClB,IAAkC;IAElC,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE;QAC1E,oBAAoB,EAAE;YACpB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,cAAc,EAAE,SAAS,CAAC,cAAc,CAAC;YACzC,sEAAsE;YACtE,4BAA4B;YAC5B,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SAC9C;KACF,CAAC,CAAC;IACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { applyUpdate } from '../../lib/batch.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n docs: docs_v1.Docs,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { paragraphStyle } = args;\n const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {\n updateParagraphStyle: {\n range: args.range,\n paragraphStyle: forGoogle(paragraphStyle),\n // Derived from the provided keys (the REST JSON field names), so mask\n // and values cannot desync.\n fields: Object.keys(paragraphStyle).join(','),\n },\n });\n return { documentId, revisionId };\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One UpdateParagraphStyleRequest applied via `documents.batchUpdate` (the
|
|
3
|
+
* curated subset; issue #35). Applies to every paragraph the range overlaps;
|
|
4
|
+
* only the provided fields change, and re-applying the same arguments yields
|
|
5
|
+
* the same styling.
|
|
6
|
+
*/
|
|
7
|
+
export declare const update_paragraph_style: import("../../../lib/operation.js").Operation<import("@googleapis/docs").docs_v1.Docs, import("zod").ZodObject<{
|
|
8
|
+
documentId: import("zod").ZodString;
|
|
9
|
+
range: import("zod").ZodObject<{
|
|
10
|
+
startIndex: import("zod").ZodNumber;
|
|
11
|
+
endIndex: import("zod").ZodNumber;
|
|
12
|
+
}, import("zod/v4/core").$strip>;
|
|
13
|
+
paragraphStyle: import("zod").ZodObject<{
|
|
14
|
+
namedStyleType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
15
|
+
NORMAL_TEXT: "NORMAL_TEXT";
|
|
16
|
+
TITLE: "TITLE";
|
|
17
|
+
SUBTITLE: "SUBTITLE";
|
|
18
|
+
HEADING_1: "HEADING_1";
|
|
19
|
+
HEADING_2: "HEADING_2";
|
|
20
|
+
HEADING_3: "HEADING_3";
|
|
21
|
+
HEADING_4: "HEADING_4";
|
|
22
|
+
HEADING_5: "HEADING_5";
|
|
23
|
+
HEADING_6: "HEADING_6";
|
|
24
|
+
}>>;
|
|
25
|
+
alignment: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
26
|
+
START: "START";
|
|
27
|
+
CENTER: "CENTER";
|
|
28
|
+
END: "END";
|
|
29
|
+
JUSTIFIED: "JUSTIFIED";
|
|
30
|
+
}>>;
|
|
31
|
+
lineSpacing: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
32
|
+
}, import("zod/v4/core").$strip>;
|
|
33
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
34
|
+
documentId: import("zod").ZodString;
|
|
35
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
}, import("zod/v4/core").$strip>>;
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/update_paragraph_style/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAajC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { docsOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* One UpdateParagraphStyleRequest applied via `documents.batchUpdate` (the
|
|
6
|
+
* curated subset; issue #35). Applies to every paragraph the range overlaps;
|
|
7
|
+
* only the provided fields change, and re-applying the same arguments yields
|
|
8
|
+
* the same styling.
|
|
9
|
+
*/
|
|
10
|
+
export const update_paragraph_style = docsOperation({
|
|
11
|
+
description: 'Set paragraph styling (named style such as headings, alignment, line spacing) on every paragraph a range overlaps; only the provided fields change.',
|
|
12
|
+
annotations: {
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
destructiveHint: false,
|
|
15
|
+
idempotentHint: true,
|
|
16
|
+
openWorldHint: false,
|
|
17
|
+
},
|
|
18
|
+
source: 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#UpdateParagraphStyleRequest',
|
|
19
|
+
schema,
|
|
20
|
+
handler,
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/docs/methods/update_paragraph_style/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC;IAClD,WAAW,EACT,qJAAqJ;IACvJ,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,kHAAkH;IACpH,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { docsOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * One UpdateParagraphStyleRequest applied via `documents.batchUpdate` (the\n * curated subset; issue #35). Applies to every paragraph the range overlaps;\n * only the provided fields change, and re-applying the same arguments yields\n * the same styling.\n */\nexport const update_paragraph_style = docsOperation({\n description:\n 'Set paragraph styling (named style such as headings, alignment, line spacing) on every paragraph a range overlaps; only the provided fields change.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#UpdateParagraphStyleRequest',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
documentId: z.ZodString;
|
|
5
|
+
range: z.ZodObject<{
|
|
6
|
+
startIndex: z.ZodNumber;
|
|
7
|
+
endIndex: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
paragraphStyle: z.ZodObject<{
|
|
10
|
+
namedStyleType: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
NORMAL_TEXT: "NORMAL_TEXT";
|
|
12
|
+
TITLE: "TITLE";
|
|
13
|
+
SUBTITLE: "SUBTITLE";
|
|
14
|
+
HEADING_1: "HEADING_1";
|
|
15
|
+
HEADING_2: "HEADING_2";
|
|
16
|
+
HEADING_3: "HEADING_3";
|
|
17
|
+
HEADING_4: "HEADING_4";
|
|
18
|
+
HEADING_5: "HEADING_5";
|
|
19
|
+
HEADING_6: "HEADING_6";
|
|
20
|
+
}>>;
|
|
21
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
START: "START";
|
|
23
|
+
CENTER: "CENTER";
|
|
24
|
+
END: "END";
|
|
25
|
+
JUSTIFIED: "JUSTIFIED";
|
|
26
|
+
}>>;
|
|
27
|
+
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
output: z.ZodObject<{
|
|
31
|
+
documentId: z.ZodString;
|
|
32
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/update_paragraph_style/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWlB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';
|
|
3
|
+
import { ParagraphStyle } from '../../entities/ParagraphStyle.js';
|
|
4
|
+
import { Range } from '../../entities/Range.js';
|
|
5
|
+
export const schema = {
|
|
6
|
+
input: z.object({
|
|
7
|
+
documentId: z.string().describe('The ID of the document to update.'),
|
|
8
|
+
range: Range.describe('The range overlapping the paragraphs to style.'),
|
|
9
|
+
paragraphStyle: ParagraphStyle.refine((style) => Object.keys(style).length > 0, {
|
|
10
|
+
message: 'At least one style field must be provided.',
|
|
11
|
+
}).describe('The styles to set on every paragraph the range overlaps. At least one field must be provided; the update mask is derived from the provided keys, so only those fields change.'),
|
|
12
|
+
}),
|
|
13
|
+
output: BatchUpdateReceipt,
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/docs/methods/update_paragraph_style/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACpE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,gDAAgD,CAAC;QACvE,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9E,OAAO,EAAE,4CAA4C;SACtD,CAAC,CAAC,QAAQ,CACT,+KAA+K,CAChL;KACF,CAAC;IACF,MAAM,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';\nimport { ParagraphStyle } from '../../entities/ParagraphStyle.js';\nimport { Range } from '../../entities/Range.js';\n\nexport const schema = {\n input: z.object({\n documentId: z.string().describe('The ID of the document to update.'),\n range: Range.describe('The range overlapping the paragraphs to style.'),\n paragraphStyle: ParagraphStyle.refine((style) => Object.keys(style).length > 0, {\n message: 'At least one style field must be provided.',\n }).describe(\n 'The styles to set on every paragraph the range overlaps. At least one field must be provided; the update mask is derived from the provided keys, so only those fields change.',\n ),\n }),\n output: BatchUpdateReceipt,\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { docs_v1 } from '@googleapis/docs';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { schema } from './schema.js';
|
|
4
|
+
export declare function handler(docs: docs_v1.Docs, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
|
|
5
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/update_text_style/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAuBxC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { forGoogle } from '../../../lib/google.js';
|
|
2
|
+
import { applyUpdate } from '../../lib/batch.js';
|
|
3
|
+
export async function handler(docs, args) {
|
|
4
|
+
const { textStyle } = args;
|
|
5
|
+
const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {
|
|
6
|
+
updateTextStyle: {
|
|
7
|
+
range: args.range,
|
|
8
|
+
// One source object feeds both mask and values: the spread carries every
|
|
9
|
+
// entity field through, and only fontSize is overridden (points to the
|
|
10
|
+
// PT Dimension). A future TextStyle field flows into both automatically;
|
|
11
|
+
// a mask key with no value would make Google RESET that property, which
|
|
12
|
+
// is exactly the desync this shape makes unrepresentable.
|
|
13
|
+
textStyle: forGoogle({
|
|
14
|
+
...textStyle,
|
|
15
|
+
fontSize: textStyle.fontSize === undefined
|
|
16
|
+
? undefined
|
|
17
|
+
: { magnitude: textStyle.fontSize, unit: 'PT' },
|
|
18
|
+
}),
|
|
19
|
+
// The key names are the REST JSON field names, which FieldMask accepts;
|
|
20
|
+
// a compile pin in the test holds that naming.
|
|
21
|
+
fields: Object.keys(textStyle).join(','),
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
return { documentId, revisionId };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/docs/methods/update_text_style/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,IAAkB,EAClB,IAAkC;IAElC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE;QAC1E,eAAe,EAAE;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,yEAAyE;YACzE,uEAAuE;YACvE,yEAAyE;YACzE,wEAAwE;YACxE,0DAA0D;YAC1D,SAAS,EAAE,SAAS,CAAC;gBACnB,GAAG,SAAS;gBACZ,QAAQ,EACN,SAAS,CAAC,QAAQ,KAAK,SAAS;oBAC9B,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE;aACpD,CAAC;YACF,wEAAwE;YACxE,+CAA+C;YAC/C,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACzC;KACF,CAAC,CAAC;IACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC","sourcesContent":["import type { docs_v1 } from '@googleapis/docs';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/google.js';\nimport { applyUpdate } from '../../lib/batch.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n docs: docs_v1.Docs,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { textStyle } = args;\n const { documentId, revisionId } = await applyUpdate(docs, args.documentId, {\n updateTextStyle: {\n range: args.range,\n // One source object feeds both mask and values: the spread carries every\n // entity field through, and only fontSize is overridden (points to the\n // PT Dimension). A future TextStyle field flows into both automatically;\n // a mask key with no value would make Google RESET that property, which\n // is exactly the desync this shape makes unrepresentable.\n textStyle: forGoogle({\n ...textStyle,\n fontSize:\n textStyle.fontSize === undefined\n ? undefined\n : { magnitude: textStyle.fontSize, unit: 'PT' },\n }),\n // The key names are the REST JSON field names, which FieldMask accepts;\n // a compile pin in the test holds that naming.\n fields: Object.keys(textStyle).join(','),\n },\n });\n return { documentId, revisionId };\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One UpdateTextStyleRequest applied via `documents.batchUpdate` (the curated
|
|
3
|
+
* subset; issue #35). Only the provided style fields change; re-applying the
|
|
4
|
+
* same arguments yields the same styling, so the operation is idempotent.
|
|
5
|
+
*/
|
|
6
|
+
export declare const update_text_style: import("../../../lib/operation.js").Operation<import("@googleapis/docs").docs_v1.Docs, import("zod").ZodObject<{
|
|
7
|
+
documentId: import("zod").ZodString;
|
|
8
|
+
range: import("zod").ZodObject<{
|
|
9
|
+
startIndex: import("zod").ZodNumber;
|
|
10
|
+
endIndex: import("zod").ZodNumber;
|
|
11
|
+
}, import("zod/v4/core").$strip>;
|
|
12
|
+
textStyle: import("zod").ZodObject<{
|
|
13
|
+
bold: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
14
|
+
italic: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
+
underline: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
16
|
+
strikethrough: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17
|
+
smallCaps: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18
|
+
baselineOffset: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
19
|
+
NONE: "NONE";
|
|
20
|
+
SUPERSCRIPT: "SUPERSCRIPT";
|
|
21
|
+
SUBSCRIPT: "SUBSCRIPT";
|
|
22
|
+
}>>;
|
|
23
|
+
fontSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
24
|
+
link: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
25
|
+
url: import("zod").ZodString;
|
|
26
|
+
}, import("zod/v4/core").$strip>>;
|
|
27
|
+
}, import("zod/v4/core").$strip>;
|
|
28
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
29
|
+
documentId: import("zod").ZodString;
|
|
30
|
+
revisionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
}, import("zod/v4/core").$strip>>;
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/update_text_style/index.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;iCAa5B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { docsOperation } from '../../operation.js';
|
|
2
|
+
import { handler } from './handler.js';
|
|
3
|
+
import { schema } from './schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* One UpdateTextStyleRequest applied via `documents.batchUpdate` (the curated
|
|
6
|
+
* subset; issue #35). Only the provided style fields change; re-applying the
|
|
7
|
+
* same arguments yields the same styling, so the operation is idempotent.
|
|
8
|
+
*/
|
|
9
|
+
export const update_text_style = docsOperation({
|
|
10
|
+
description: 'Set character styling (bold, italic, underline, strikethrough, small caps, baseline offset, font size, link) on a range of text; only the provided fields change.',
|
|
11
|
+
annotations: {
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
destructiveHint: false,
|
|
14
|
+
idempotentHint: true,
|
|
15
|
+
openWorldHint: false,
|
|
16
|
+
},
|
|
17
|
+
source: 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#UpdateTextStyleRequest',
|
|
18
|
+
schema,
|
|
19
|
+
handler,
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/docs/methods/update_text_style/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;IAC7C,WAAW,EACT,mKAAmK;IACrK,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EACJ,6GAA6G;IAC/G,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { docsOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * One UpdateTextStyleRequest applied via `documents.batchUpdate` (the curated\n * subset; issue #35). Only the provided style fields change; re-applying the\n * same arguments yields the same styling, so the operation is idempotent.\n */\nexport const update_text_style = docsOperation({\n description:\n 'Set character styling (bold, italic, underline, strikethrough, small caps, baseline offset, font size, link) on a range of text; only the provided fields change.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source:\n 'https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/request#UpdateTextStyleRequest',\n schema,\n handler,\n});\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
input: z.ZodObject<{
|
|
4
|
+
documentId: z.ZodString;
|
|
5
|
+
range: z.ZodObject<{
|
|
6
|
+
startIndex: z.ZodNumber;
|
|
7
|
+
endIndex: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
textStyle: z.ZodObject<{
|
|
10
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
smallCaps: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
baselineOffset: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
NONE: "NONE";
|
|
17
|
+
SUPERSCRIPT: "SUPERSCRIPT";
|
|
18
|
+
SUBSCRIPT: "SUBSCRIPT";
|
|
19
|
+
}>>;
|
|
20
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
url: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
output: z.ZodObject<{
|
|
27
|
+
documentId: z.ZodString;
|
|
28
|
+
revisionId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/docs/methods/update_text_style/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';
|
|
3
|
+
import { Range } from '../../entities/Range.js';
|
|
4
|
+
import { TextStyle } from '../../entities/TextStyle.js';
|
|
5
|
+
export const schema = {
|
|
6
|
+
input: z.object({
|
|
7
|
+
documentId: z.string().describe('The ID of the document to update.'),
|
|
8
|
+
range: Range.describe('The range of text to style; the API may extend it to include adjacent newlines.'),
|
|
9
|
+
textStyle: TextStyle.refine((style) => Object.keys(style).length > 0, {
|
|
10
|
+
message: 'At least one style field must be provided.',
|
|
11
|
+
}).describe('The styles to set. At least one field must be provided; the update mask is derived from the provided keys, so only those fields change.'),
|
|
12
|
+
}),
|
|
13
|
+
output: BatchUpdateReceipt,
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/docs/methods/update_text_style/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACpE,KAAK,EAAE,KAAK,CAAC,QAAQ,CACnB,iFAAiF,CAClF;QACD,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpE,OAAO,EAAE,4CAA4C;SACtD,CAAC,CAAC,QAAQ,CACT,yIAAyI,CAC1I;KACF,CAAC;IACF,MAAM,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BatchUpdateReceipt } from '../../entities/BatchUpdateReceipt.js';\nimport { Range } from '../../entities/Range.js';\nimport { TextStyle } from '../../entities/TextStyle.js';\n\nexport const schema = {\n input: z.object({\n documentId: z.string().describe('The ID of the document to update.'),\n range: Range.describe(\n 'The range of text to style; the API may extend it to include adjacent newlines.',\n ),\n textStyle: TextStyle.refine((style) => Object.keys(style).length > 0, {\n message: 'At least one style field must be provided.',\n }).describe(\n 'The styles to set. At least one field must be provided; the update mask is derived from the provided keys, so only those fields change.',\n ),\n }),\n output: BatchUpdateReceipt,\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-mcp-suite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Per-account MCP servers for Gmail, Google Calendar, Google Sheets, and Google Docs: identity is bound to the running instance, so an agent can never act on the wrong account; each server exposes Google's curated MCP toolset (where one exists) plus the broader REST surface.",
|
|
6
6
|
"keywords": [
|